[PATCH] print_frame add info

William Douglas
2012-12-18T01:40:35Z

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