This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] print_frame add info
- From: William Douglas <william dot douglas at intel dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 17 Dec 2012 17:51:39 -0800
- Subject: [PATCH] print_frame add info
Hi all,
I want to have gdb's output for shared objects' stack frames changed to
append the from /path/to/lib.so.1 even if the function name or file name
are available.
It would make things easier for me when I don't readily know what
library a certain file is in and the change doesn't seem especially
drastic.
Any comments on this change?
--
diff --git a/gdb/stack.c b/gdb/stack.c
index 51747ea..9d28b74 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1198,7 +1198,7 @@ print_frame (struct frame_info *frame, int
print_level,
annotate_frame_source_end ();
}
- if (pc_p && (!funname || (!sal.symtab || !sal.symtab->filename)))
+ if (pc_p)
{
#ifdef PC_SOLIB
char *lib = PC_SOLIB (get_frame_pc (frame));
--
William Douglas, Intel Open Source Technology Center