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] 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


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