Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Beginner question regarding gdb symbol files
@ 2008-02-21 13:47 luca regini
  2008-02-21 16:53 ` Daniel Jacobowitz
  0 siblings, 1 reply; 9+ messages in thread
From: luca regini @ 2008-02-21 13:47 UTC (permalink / raw)
  To: gdb

I have a project that is organized like the Makefile that follows. I
have an executable that links two shared objects. I separate debug
symbols from shared libraries and executable files. I would like to
debug the stripped executable using the stripped symbols. Sadly i am
not able to view any debug information. I tryed to use both the
symbol-file and add-symbol-file to read the stripped symbols.
Any help is very appreciated.


libbellac.so: bellaclib.c
	gcc -g -c bellaclib.c -o bellac.o
	gcc -g -s -shared -Wl,-soname,libbellac.so -o libbellac.so bellac.o
	strip bellac.o --only-keep-debug -o clib.dbg

libbellacpp.so: bellacpplib.cpp
	g++ -g -c bellacpplib.cpp -o bellacpp.o
	g++ -g -s -shared -Wl,-soname,libbellacpp.so -o libbellacpp.so bellacpp.o
	strip bellacpp.o --only-keep-debug -o cpplib.dbg

all: main.cpp libbellac.so libbellacpp.so
	g++ -g -c main.cpp -o main.o
	g++ -s main.o libbellac.so libbellacpp.so -o test
	strip main.o --only-keep-debug -o test.dbg

clean:
	rm -f *.so *.o *.dbg


Greets,
Luca


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-02-29 13:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-21 13:47 Beginner question regarding gdb symbol files luca regini
2008-02-21 16:53 ` Daniel Jacobowitz
2008-02-28 16:13   ` luca regini
2008-02-28 16:53     ` Daniel Jacobowitz
2008-02-28 17:00       ` luca regini
2008-02-28 17:13         ` Daniel Jacobowitz
2008-02-29  1:10           ` Michael Snyder
2008-02-29 13:40             ` luca regini
2008-02-29 18:19               ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox