This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] btrace: less debug output
- From: Markus Metzger <markus dot t dot metzger at intel dot com>
- To: palves at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 9 Feb 2015 10:05:25 +0100
- Subject: [PATCH] btrace: less debug output
- Authentication-results: sourceware.org; auth=none
For some programs, "set debug record 1" will print tons of "no lines at
0x..." messages. This is not always helpful.
Change it to only print those messages for values bigger than 1.
2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
gdb/
* btrace.c (ftrace_update_lines): Add record_debug check.
---
gdb/btrace.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gdb/btrace.c b/gdb/btrace.c
index 206e692..b29e0b2 100644
--- a/gdb/btrace.c
+++ b/gdb/btrace.c
@@ -554,7 +554,8 @@ ftrace_update_lines (struct btrace_function *bfun, CORE_ADDR pc)
sal = find_pc_line (pc, 0);
if (sal.symtab == NULL || sal.line == 0)
{
- DEBUG_FTRACE ("no lines at %s", core_addr_to_string_nz (pc));
+ if (record_debug > 1)
+ DEBUG_FTRACE ("no lines at %s", core_addr_to_string_nz (pc));
return;
}
--
1.8.3.1