This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Final separate debug info patch
- From: Alexander Larsson <alexl at redhat dot com>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 19 Nov 2002 02:47:23 -0500 (EST)
- Subject: Re: Final separate debug info patch
On 19 Nov 2002, Jim Blandy wrote:
>
> It looks like the stripping process may break some executables. If $D
> is the top directory of a current GDB source tree, try this:
>
> $ g++ --version
> g++ (GCC) 3.3 20020820 (experimental)
> Copyright (C) 2002 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> $ g++ -g $D/gdb/testsuite/gdb.c++/try_catch.cc -o try_catch
> $ ./try_catch
> $ /home/jimb/elfutils/bin/strip -f try_catch.separate-debug try_catch
> $ ./try_catch
> Segmentation fault
> $
This doesn't happen for me with gdb from cvs HEAD and gcc (GCC) 3.2
20020903 (Red Hat Linux 8.0 3.2-7). Does it happen if you just run strip
without the -f flag? It might well be a bug in the new strip command.
> So the effect is to:
> - run all the tests once with separate debug info, and then
> - run all the tests again with the normal debug info arrangement.
>
> This makes it easy to see if the patch has any effect on the tests.
Thats cool.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl@redhat.com alla@lysator.liu.se
He's a superhumanly strong alcoholic grifter who hides his scarred face behind
a mask. She's a time-travelling antique-collecting Hell's Angel with a knack
for trouble. They fight crime!