Mail Archives: djgpp/2002/11/10/10:15:21
>-========================-
>Gdb stuff:
>-========================-
>
>Here is the output of using gdb on welcome.exe
>compiled with djgpp-g++ -g welcome.cpp -o welcome.exe
C:\Archives\RIP2\DJGPP\bin>gdb welcomeg.exe
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-pc-msdosdjgpp"...
(gdb) list
1 welcome.cpp: No such file or directory (ENOENT).
in welcome.cpp
(gdb) run
Starting program: c:/Archives/RIP2/DJGPP/bin/welcomeg.exe
Program received signal SIGSEGV, Segmentation fault.
0x0001e1df in std::ostream::sentry::sentry(std::ostream&) ()
(gdb) n
Single stepping until exit from function _ZNSo6sentryC1ERSo,
which has no line number information.
Exiting due to signal SIGSEGV
General Protection Fault at eip=0001e1df
eax=00000000 ebx=00043b58 ecx=00043b58 edx=000c7f60 esi=00000054
edi=00001630
ebp=000c7f28 esp=000c7f24
program=c:\Archives\RIP2\DJGPP\bin\welcomeg.exe
cs: sel=01ef base=022c0000 limit=000cffff
ds: sel=01f7 base=022c0000 limit=000cffff
es: sel=01f7 base=022c0000 limit=000cffff
fs: sel=01e7 base=00009e20 limit=00003fff
gs: sel=0207 base=00000000 limit=0010ffff
ss: sel=01f7 base=022c0000 limit=000cffff
App stack: [000c7fdc..00047fdc] Exceptn stack: [00047e8c..00045f4c]
Call frame traceback EIPs:
0x0001e1df
0x0001e44e
0x0000167e
0x0000d817
Program exited with code 0377.
>Here is the output of using gdb on welcome.exe (no -g)
>compiled with djgpp-g++ welcome.cpp -o welcome.exe
C:\Archives\RIP2\DJGPP\bin>gdb welcome.exe
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "i386-pc-msdosdjgpp"...
(gdb) list
1 globals.cc: No such file or directory (ENOENT).
in globals.cc
(gdb) run
Starting program: c:/Archives/RIP2/DJGPP/bin/welcome.exe
Program received signal SIGSEGV, Segmentation fault.
0x0001e1df in std::ostream::sentry::sentry(std::ostream&) ()
(gdb) n
Single stepping until exit from function _ZNSo6sentryC1ERSo,
which has no line number information.
Exiting due to signal SIGSEGV
General Protection Fault at eip=0001e1df
eax=00000000 ebx=00043b58 ecx=00043b58 edx=000c7f60 esi=00000054
edi=00001630
ebp=000c7f28 esp=000c7f24
program=c:\Archives\RIP2\DJGPP\bin\welcome.exe
cs: sel=01ef base=022d0000 limit=000cffff
ds: sel=01f7 base=022d0000 limit=000cffff
es: sel=01f7 base=022d0000 limit=000cffff
fs: sel=01e7 base=00009e10 limit=00003fff
gs: sel=0207 base=00000000 limit=0010ffff
ss: sel=01f7 base=022d0000 limit=000cffff
App stack: [000c7fdc..00047fdc] Exceptn stack: [00047e8c..00045f4c]
Call frame traceback EIPs:
0x0001e1df
0x0001e44e
0x0000167e
0x0000d817
Program exited with code 0377.
Is any of this helpful?
Charles
- Raw text -