[patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)

Tom Tromey tromey@redhat.com
Mon Aug 1 18:04:00 GMT 2011


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> I am against just omitting compilation directory, if something should be
Jan> omitted I am more for really printing just the basename.

Ok.

Jan> I have some idea in display with debug info to use:
Jan> #3  0x00000034c72428ad in libglib-2.0.so.0:g_main_context_iteration (context=0x1149980, may_block=1) at gmain.c:2843

There is already a PR open with this as a feature request.
I think it would be a good addition.

Jan> So that one can copy-paste it for less-ambiguous (currently not yet implemented):
Jan> (gdb) break libglib-2.0.so.0:g_main_context_iteration
Jan> (gdb) list libglib-2.0.so.0:g_main_context_iteration

Yeah, nice.

Tom



More information about the Gdb-patches mailing list