This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v3 10/15] btrace: less debug output


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]