diff --git a/qemu/include/qemu/log.h b/qemu/include/qemu/log.h index 0d68e2e4..ceb442a4 100644 --- a/qemu/include/qemu/log.h +++ b/qemu/include/qemu/log.h @@ -123,4 +123,7 @@ static inline void qemu_log_close(void) } } +void qemu_set_dfilter_ranges(const char *ranges); +bool qemu_log_in_addr_range(uint64_t addr); + #endif diff --git a/qemu/qemu-log.c b/qemu/qemu-log.c index 39432fdb..4e9f38ee 100644 --- a/qemu/qemu-log.c +++ b/qemu/qemu-log.c @@ -34,3 +34,17 @@ void qemu_log(const char *fmt, ...) } va_end(ap); } + +/* Returns true if addr is in our debug filter or no filter defined + */ +bool qemu_log_in_addr_range(uint64_t addr) +{ + // Unicorn: stubbed + return true; +} + + +void qemu_set_dfilter_ranges(const char *filter_spec) +{ + // Unicorn: stubbed +}