This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Help... GDB no longer works after updating...


Kris Erickson schrieb am 2001-09-19, 18:03:

>Here is a simple test file I created, the error that it generates and executing
>the show command.
[...]
>cygwin session follows
>------------------------------------
$ cat hello.c
#include <stdlib.h>

int main(void) {
    printf("Hello World\n");
}

>Administrator@STORK ~/tmp
>$ gdb -nw test.exe
>GNU gdb 5.0 (20010428-1)
>Copyright 2001 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 "i686-pc-cygwin"...
>(gdb) run
>Starting program: /home/administrator/tmp/test.exe
>gdb: unknown target exception 0x000006d1 at 0x77e87e08
>
>Program received signal ?, Unknown signal.
>0x77e87e08 in _libkernel32_a_iname ()
>(gdb) info target
>Symbols from "/home/administrator/tmp/test.exe".
>Win32 child process:
>        Using the running image of child thread 2808.0x7d8.
>        While running this, GDB does not access memory from...
>Local exec file:
>        `/home/administrator/tmp/test.exe', file type pei-i386.
>        Entry point: 0x401000
>        0x00401000 - 0x00401400 is .text
>        0x00402000 - 0x00402200 is .data
>        0x00403000 - 0x0040300c is .bss
>        0x00404000 - 0x00404200 is .idata

$ gdb -nw hello.exe
GNU gdb 5.0 (20010428-1)
Copyright 2001 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 "i686-pc-cygwin"...
(gdb) run
Starting program: /home/Siebenschlaefer/script/c/hello.exe
Hello World

Program exited with code 014.
(gdb) info target
Symbols from "/home/Siebenschlaefer/script/c/hello.exe".
Local exec file:
        `/home/Siebenschlaefer/script/c/hello.exe', file type pei-i386.
        Entry point: 0x401000
        0x00401000 - 0x00401400 is .text
        0x00402000 - 0x00402200 is .data
        0x00403000 - 0x0040300c is .bss
        0x00404000 - 0x00404200 is .idata
(gdb)

Hmmm, no problems here.

Gerrit
-- 
$ uname -a
CYGWIN_NT-4.0 LORELEY 1.3.3(0.46/3/2) 2001-09-12 23:54 i686 unknown


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]