From: David Mosberger-Tang <davidm@AZStarNet.com>
Subject: Re: gdb?
Date: Fri, 1 Mar 1996 11:00:29 -0700 [thread overview]
Message-ID: <199603011800.LAA09739@koala.azstarnet.com> (raw)
>>>>> On Fri, 01 Mar 1996 17:06:42 +0000, Nigel Metheringham <Nigel.Metheringham@theplanet.net> said:
Nigel> Is there a gdb that works OK with the red hat 2.1 release??
Nigel> Also, anyone tried xinetd? It compiles, seems to work with
Nigel> trivial test, bombs at startup if debug mode is on... (thats
Nigel> why I want gdb!).
I believe there is an RPM for gdb 4.15. For some reason it got left
off the final CD-ROM, but it should work. Otherwise, there are
patches on ftp.azstarnet.com.
The things you want to be careful about:
- link with -lg since libc 4.6.27 has no debugging symbols;
gdb will crash if you try to step or break in a function
without debugging symbols (this will be fixed, eventually...)
- don't use -O2 when debugging; due to instruction scheduling
and register allocation, debugging such a binary is a little
tricky (it works, but gdb will jump around in the sources
quite widely and trying to print a local variable will often
result in "no such variable" messages); using gcc options
"-g -O" works well, though.
If you notice any other problems, let me know and I'll add it to my
TODO list.
Enjoy,
--david
next reply other threads:[~1996-03-01 18:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-03-01 18:00 David Mosberger-Tang [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-03-01 17:06 gdb? Nigel Metheringham
1996-03-01 17:49 ` gdb? Erik Troan
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox