Re: [GD-Linux] signals and exceptions
Brought to you by:
vexxed72
From: Mads B. D. <ma...@ch...> - 2001-11-16 11:19:46
|
On Thu, 15 Nov 2001, D. Stimits wrote: > > I just compiled that code snippet as-is and called it from somewhere > > deeply nested in my code - and it dumped out the filename, function > > name and ugly hex offset into the function for the most recent 32 > > functions on the stack! > > Can you tell me what compiler flags you used? I created a simple program > to test this, I used "-Wall -g", but it seems to only give hex offsets: > Traced: ./deleteme(__eh_alloc+0x1b2) [0x804896e] > Traced: ./deleteme(__eh_alloc+0x2af) [0x8048a6b] > Traced: ./deleteme(__eh_alloc+0x299) [0x8048a55] > Traced: ./deleteme(__eh_alloc+0x27d) [0x8048a39] > Traced: ./deleteme(__eh_alloc+0x261) [0x8048a1d] > Traced: ./deleteme(__eh_alloc+0x14c) [0x8048908] > Traced: /lib/i686/libc.so.6(__libc_start_main+0x93) [0x400ae177] > Traced: ./deleteme(__eh_alloc+0x35) [0x80487f1] > > My executable was named "deleteme" to remind me to remove it if I > forget, so it obviously got the file name right for the executable, but > the actual source was "db_display.cpp". All of my function calls are > listed in stripped form. Was there something you used to get the name of > functions rather than my uglier format? I forgot to add, that you need to put the -rdynamic flag on you linker line, quite possible last on the line, to make it work. See my answer to Steve Baker for line stuff. Mads -- Mads Bondo Dydensborg. ma...@ch... The irony is that Bill Gates claims to be making a stable operating system and Linus Torvalds claims to be trying to take over the world. - Seen on Linux Kernel mailing list |