I've created the new patch. Here is example of usage patched gdb: (gdb) backtrace #0 main () at /home/eldar/testdir/test.c:4 (gdb) set backtrace filename-display basename (gdb) backtrace #0 main () at test.c:4 (gdb) set backtrace filename-display without-compile-dir (gdb) backtrace #0 main () at testdir/test.c:4 (gdb) set backtrace filename-display full (gdb) backtrace #0 main () at /home/eldar/testdir/test.c:4 I can change something if you want. If this implementation is good I will prepare ChangeLog and testsuite. On Thu, Jul 28, 2011 at 7:17 PM, Tom Tromey wrote: > I forget (I never keep records of this, I think perhaps I should) -- did > we get you started on the copyright assignment paperwork? Not yet, because my previous patches is very different. I mean the different files was changed and I don't know which files I need to change in the next patch. I hope some people here can accept implementation in this last patch. After I can start the copyright assignment. > iam> +static int backtrace_skip_compile; > iam> +static void > > Newline between these two lines. I'm not sure that's right because I see that there's no newline in this case (if you look at other places related 'set backtrace ...'). > iam> +char * > iam> +get_display_filename_from_sal (struct symtab_and_line *sal) > > Should have an introductory comment before this function. Comment was added in 'frame.h' > Ah, ok -- you are using the absolute file name when compiling. > That seems weird to me, but I understand now. Some big build systems uses absolute file name (e.g. Mozilla) because I started this topic. I wrote about motivation idea in my first message with patch. With best regards, Eldar.