Subject: gdb, what I made wrong?!
From: [email-masked] (Leszek Kowlski)

30 Jun 1998 02:38:59 -0700
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: [email-masked]

Hi everyone,

I have just built gdb-4.16 under Windows 95 but unfortunately it crashed. 

When I started my gdb from command line I had windows with following
message:

GDB caused an invalid page fault in
module <unknown> at 0000:0010cac0.
Registers:
EAX=0040037f CS=016f EIP=0010cac0 EFLGS=00010206
EBX=00000000 SS=0177 ESP=027dfe18 EBP=027dfe28
ECX=00040006 DS=0177 ESI=815a7ba4 FS=395f
EDX=027dfe24 ES=0177 EDI=00000000 GS=0000
Bytes at CS:EIP:
00 81 e9 00 02 26 8e 06 20 00 be 57 d7 ba 08 00 

and under other gdb:

This GDB was configured as "i386-cygwin32"...
(gdb) break *0x401000
Breakpoint 1 at 0x401000
(gdb) run
Starting program: /gnu/gdb-4.16/i386-qssl281-svr4/gdb/./gdb.exe 
bff30000:/WINDOWS/SYSTEM/GDI32.DLL
bff60000:/WINDOWS/SYSTEM/USER32.DLL
7c6c0000:/WINDOWS/SYSTEM/WSOCK32.DLL
bfed0000:/WINDOWS/SYSTEM/ADVAPI32.DLL
bff70000:/WINDOWS/SYSTEM/KERNEL32.DLL

[failed reading symbols from DLL]
"/WINDOWS/SYSTEM/SHLWAPI.DLL": error reading line numbers

7fdc0000:/WINDOWS/SYSTEM/SHELL32.DLL

[failed reading symbols from DLL]
"/WINDOWS/SYSTEM/COMCTL32.DLL": error reading line numbers

63280000:/WINDOWS/SYSTEM/URL.DLL

Breakpoint 1, 0x401000 in mainCRTStartup ()

0x401000 <mainCRTStartup>:	pushl  %ebp
0x401001 <mainCRTStartup+1>:	movl   %esp,%ebp
0x401003 <mainCRTStartup+3>:	subl   $0x4,%esp
0x401006 <mainCRTStartup+6>:	cmpl   $0x0,0x502000
0x40100d <mainCRTStartup+13>:	je     0x401010 <mainCRTStartup+16>
0x40100f <mainCRTStartup+15>:	int3   
0x401010 <mainCRTStartup+16>:	fnstcw 0xfffffffe(%ebp)
0x401013 <mainCRTStartup+19>:	movw   0xfffffffe(%ebp),%ax
0x401017 <mainCRTStartup+23>:	andl   $0xfffff0c0,%eax
0x40101c <mainCRTStartup+28>:	movw   %ax,0xfffffffe(%ebp)
0x401020 <mainCRTStartup+32>:	movw   0xfffffffe(%ebp),%ax
0x401024 <mainCRTStartup+36>:	orl    $0x33f,%eax
0x401029 <mainCRTStartup+41>:	movw   %ax,0xfffffffe(%ebp)
0x40102d <mainCRTStartup+45>:	fldcw  0xfffffffe(%ebp)
0x401030 <mainCRTStartup+48>:	pushl  0x4a2d3c
0x401036 <mainCRTStartup+54>:	call   0x4f154c <cygwin_crt0>

x4f154c <cygwin_crt0>:	pushl  %ebp
0x4f154d <cygwin_crt0+1>:	movl   %esp,%ebp
0x4f154f <cygwin_crt0+3>:	subl   $0x4,%esp
0x4f1552 <cygwin_crt0+6>:	movl   $0xa8,0x500768
0x4f155c <cygwin_crt0+16>:	movl   $0x11,0x50076c
0x4f1566 <cygwin_crt0+26>:	movl   $0x5,0x500770
0x4f1570 <cygwin_crt0+36>:	movl   $0x4f1ac0,0x500790
0x4f157a <cygwin_crt0+46>:	movl   $0x4f1ac8,0x500794
0x4f1584 <cygwin_crt0+56>:	movl   $0x50bd58,0x500778
0x4f158e <cygwin_crt0+66>:	movl   $0x50bd54,0x500774
0x4f1598 <cygwin_crt0+76>:	movl   $0x4a2d3c,0x50078c
0x4f15a2 <cygwin_crt0+86>:	movl   $0x50bd5c,0x500788
0x4f15ac <cygwin_crt0+96>:	leal   0xfffffffc(%ebp),%edx
0x4f15af <cygwin_crt0+99>:	movl   %edx,0x500764
0x4f15b5 <cygwin_crt0+105>:	movl   $0x4e98e8,0x50077c
0x4f15bf <cygwin_crt0+115>:	movl   $0x4e8938,0x500780
0x4f15c9 <cygwin_crt0+125>:	movl   $0x4e9c8c,0x500784
0x4f15d3 <cygwin_crt0+135>:	pushl  $0x0
0x4f15d5 <cygwin_crt0+137>:	call   0x4f1ab8 <GetModuleHandleA@4>

0x4f1ab9 <GetModuleHandleA@4>:  jmp    *0x50c47c

I received message:

'Program received signal SIGSEGV, Segmentation fault.'

Before, I built a few cross compilers from gcc-2.8.1 stuff and I had no any
problems. I am using gcc b18.

Thank you for any hints. Please send e-mail directly to me.

==
leszek

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".