Mail Archives: djgpp/2002/11/08/15:30:05
On 08 Nov 2002 18:21:03 GMT, Martin Str|mberg
<ams AT speedy DOT ludd DOT luth DOT se> wrote:
>Charles Wilkins <chas AT pcscs DOT com> wrote:
>:>And what does symify and bfdsymify say when run here?
>: Please explain.. I have yet to use symify or bfdsymify..
>: Do I run these under linux or dos?
>
>DOZE. They fill in function names on the lines of the call stack trace
>after the program crashes (if the program includes debug information).
>
>In your case, this will possibly tell us how early the program
>crashes.
>
>
>Right,
>
> MartinS
I didn't notice a copy of bfdsymify anywhere. What package is this a
part of?
I do, however, have symify..
After running symify -o welcome.out welcome.exe
welcome.out was created.
Then after running welcome.exe the contents of welcome.out were
updated.
Here are those contents:
welcome.out
==============================================================
C:\Archives\RIP2\DJGPP\bin>symify welcome.exe
C:\Archives\RIP2\DJGPP\bin>welcome
Exiting due to signal SIGSEGV
General Protection Fault at eip=0001a11f
eax=00000000 ebx=0003eb58 ecx=0003eb58 edx=007cffa0 esi=00000054
edi=00001630
ebp=007cff68 esp=007cff64
program=C:\ARCHIVES\RIP2\DJGPP\BIN\WELCOME.EXE
cs: sel=01a7 base=01670000 limit=007dffff
ds: sel=01af base=01670000 limit=007dffff
es: sel=01af base=01670000 limit=007dffff
fs: sel=017f base=00005870 limit=0000ffff
gs: sel=01bf base=00000000 limit=0010ffff
ss: sel=01af base=01670000 limit=007dffff
App stack: [007d0000..00750000] Exceptn stack: [00042c88..00040d48]
Call frame traceback EIPs:
0x0001a11f ___udivmoddi4+6831
0x0001a36e ___udivmoddi4+7422
0x0000167e _main+36
0x0000d1f8 ___crt1_startup+176
C:\Archives\RIP2\DJGPP\bin>symify -o welcome.out welcome.exe
C:\Archives\RIP2\DJGPP\bin>edit welcome.out
C:\Archives\RIP2\DJGPP\bin>welcome
Exiting due to signal SIGSEGV
General Protection Fault at eip=0001a11f
eax=00000000 ebx=0003eb58 ecx=0003eb58 edx=007cffa0 esi=00000054
edi=00001630
ebp=007cff68 esp=007cff64
program=C:\ARCHIVES\RIP2\DJGPP\BIN\WELCOME.EXE
cs: sel=01a7 base=01670000 limit=007dffff
ds: sel=01af base=01670000 limit=007dffff
es: sel=01af base=01670000 limit=007dffff
fs: sel=017f base=00005870 limit=0000ffff
gs: sel=01bf base=00000000 limit=0010ffff
ss: sel=01af base=01670000 limit=007dffff
App stack: [007d0000..00750000] Exceptn stack: [00042c88..00040d48]
Call frame traceback EIPs:
0x0001a11f ___udivmoddi4+6831
0x0001a36e ___udivmoddi4+7422
0x0000167e _main+36
0x0000d1f8 ___crt1_startup+176
C:\Archives\RIP2\DJGPP\bin>symify
Usage: symify [-o <outfile>] [-i <corefile>] <program>
This program adds debug information to DJGPP program call frame
tracebacks
C:\Archives\RIP2\DJGPP\bin>symify -o welcome.out welcome.exe
Just for reference, here is the welcome.cpp:
welcome.cpp
=============================================================
#include <iostream>
int main() {
std::cout << "Hello, world !!!" << std::endl;
return 0;
}
- Raw text -