This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v3 10/15] 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: Thu, 29 Jan 2015 17:28:14 +0100
- Subject: [PATCH v3 10/15] btrace: less debug output
- Authentication-results: sourceware.org; auth=none
- References: <1422548899-9789-1-git-send-email-markus dot t dot metzger at intel dot com>
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-01-29 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