etting debug flags doesn't help with debugging.

etting debug flags doesn't help with debugging.

Post by Thaddeus L Olcz » Thu, 18 Jan 2001 00:33:40



I'm trying to single step through khtmlpart.
When I call configure I set the appropriate debug flag,
yet when I try to debug it I see nothing (just to be safe
I've renamed strip ) just assemble ( if a I have the assmebler window
open ). It seems like the debugging information just isn't present.
I know on Windows sometimes the debugging information is in a seperate
file which may not get copied when you install.
Is this the case? If so how do I install the debug info?
TIA
 
 
 

etting debug flags doesn't help with debugging.

Post by Carsten Pfeiffe » Fri, 19 Jan 2001 00:11:39


Hi,

Quote:> I'm trying to single step through khtmlpart.
> When I call configure I set the appropriate debug flag,

--enable-debug, right?

Quote:> yet when I try to debug it I see nothing (just to be safe
> I've renamed strip ) just assemble ( if a I have the assmebler window

you did make install?

Quote:> open ). It seems like the debugging information just isn't present.
> I know on Windows sometimes the debugging information is in a seperate
> file which may not get copied when you install.
> Is this the case? If so how do I install the debug info?

No, they should be in the .so. Try nm --debug-syms libkhtml.so, to see if
you've got debug-symbols or not. I'm not sure which de* you're
using, try gdb or kdbg maybe.

Best wishes,
Carsten Pfeiffer

 
 
 

1. problem with debugging flag '-g' of gcc

I am having trouble in using the debugging flag -g of the gcc compiler.

Wihout the '-g' in the linking stage I got the final executable without error.
With the '-g' in the linking stage ld complains that it can't find libX11.

/lib/  has libX11.so.3 sym-linked to /usr/X11/lib/libX11.so.3.1.0
/usr/X11/lib/ has libX11.sa and libX11.so.3, but no libX11.a ; is that
the problem ?

I have the Slackware 2.0 distribution

Following provides detail by using the '-v' option:

------------withOUT '-g':

darkstar.. gcc -v -c -I/usr/include/tcl tkHelloWorld.c
Reading specs from /usr/lib/gcc-lib/i486-linux/2.5.8/specs
gcc version 2.5.8
 /usr/lib/gcc-lib/i486-linux/2.5.8/cpp -lang-c -v -I/usr/include/tcl -undef -D__GNUC__=2 -D__GNUC_MINOR__=5 -Dunix -Di386 -Dlinux -D__unix__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386) -D__i486__ tkHelloWorld.c /tmp/cca01141.i
GNU CPP version 2.5.8 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/tcl
 /usr/local/include
 /usr/i486-linux/include
 /usr/lib/gcc-lib/i486-linux/2.5.8/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i486-linux/2.5.8/cc1 /tmp/cca01141.i -quiet -dumpbase tkHelloWorld.c -version -o /tmp/cca01141.s
GNU C version 2.5.8 (80386, BSD syntax) compiled by GNU C version 2.5.8.
 as -o tkHelloWorld.o /tmp/cca01141.s

darkstar.. gcc -v tkHelloWorld.o -ltk -ltcl -lX11 -lm
Reading specs from /usr/lib/gcc-lib/i486-linux/2.5.8/specs
gcc version 2.5.8
 ld -dll-verbose -m486 /usr/lib/crt0.o -L/usr/lib/gcc-lib/i486-linux/2.5.8 tkHelloWorld.o -ltk -ltcl -lX11 -lm -lgcc -lc -lgcc
Fixup count 0
Removed 2286 symbols from symtab
Fixup table address: 1124
darkstar..

---------- with '-g':
darkstar.. gcc -v -c -g -I/usr/include/tcl tkHelloWorld.c
Reading specs from /usr/lib/gcc-lib/i486-linux/2.5.8/specs
gcc version 2.5.8
 /usr/lib/gcc-lib/i486-linux/2.5.8/cpp -lang-c -v -I/usr/include/tcl -undef -D__GNUC__=2 -D__GNUC_MINOR__=5 -Dunix -Di386 -Dlinux -D__unix__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux -Asystem(unix) -Asystem(posix) -Acpu(i386) -Amachine(i386) -g -D__i486__ tkHelloWorld.c /tmp/cca01180.i
GNU CPP version 2.5.8 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/tcl
 /usr/local/include
 /usr/i486-linux/include
 /usr/lib/gcc-lib/i486-linux/2.5.8/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i486-linux/2.5.8/cc1 /tmp/cca01180.i -quiet -dumpbase tkHelloWorld.c -g -version -o /tmp/cca01180.s
GNU C version 2.5.8 (80386, BSD syntax) compiled by GNU C version 2.5.8.
 as -o tkHelloWorld.o /tmp/cca01180.s

darkstar.. gcc -v -g -I/usr/include/tcl tkHelloWorld.o -ltk -ltcl -lX11 -lm
Reading specs from /usr/lib/gcc-lib/i486-linux/2.5.8/specs
gcc version 2.5.8
 ld -dll-verbose -m486 /usr/lib/crt0.o -static -L/usr/lib/gcc-lib/i486-linux/2.5.8 tkHelloWorld.o -ltk -ltcl -lX11 -lm -lgcc -lg -lgcc
ld: No such file or directory for libX11
darkstar..

Thanks in advance,
Patrick

2. Login Screen Options

3. NAMED's debug doesn't work?!?!

4. ps/2 Mouse not working

5. AIX 4.3.3.0, informix doesn't work after upgrade, how to debug ?

6. Networking

7. slab.c ATOMIC debug check to immediately trap atomic abuse while debugging

8. RedHat 2.1/w. sendmail problem?

9. : Kernel debugging (saving debug info)

10. Newbie: Different behaviour between debug and non-debug

11. to debug or not to debug (was Re: Hiring Unix programming interns - writing an online quiz)

12. NET-2 code (beta) ignores debug flag!

13. Help: Can't debug String anymore