xemacs doesn't show source code when debugging using MinGW gdb



Hi,

I'm having a problem runing MinGW gdb in xemacs in that gdb doesn't show
source code when debugging in xemacs. After start, I do a step but the
xemacs editor shows two windows: top for commands of a debugger and bottom,
which is empty. I am using MinGW gdb 6.8 distributed on the MinGW website

http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=20507

Below is an output of the MinGW gdb:

Current directory is e:/cg/osg/buildosg/bin/
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
(gdb) b main
Breakpoint 1 at 0x407dd9: file osgdistortion.cpp, line 661.
(gdb) r
Starting program: e:\cg\osg\buildosg\bin/osgdistortiond.exe
[New thread 1660.0x1634]

Breakpoint 1, main (argc=1, argv=0x3db140) at osgdistortion.cpp:661
(gdb)

Below is the output of:

M-x describe-installation

uname -a: CYGWIN_NT-5.0 TSUNAMI 1.3.20(0.73/3/2) 2003-02-08 12:10 i686
unknown unknown Cygwin

../configure '--with-dragndrop' '--with-postgresql=no' '--with-x=no'
'--bindir=/usr/local/bin/i686-pc-cygwin' '--with-site-lisp=yes'
'--with-ipv6-cname=no' '--with-netinstall'


XEmacs 21.4.13 "Rational FORTRAN" configured for `i686-pc-cygwin'.


Compilation / Installation:
Source code location: /development/xemacs/xemacs-21.4-release
Installation prefix: /usr/local
Operating system description file: `s/cygwin32.h'
Machine description file: `m/intel386.h'
Compiler:
gcc -I/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../include/noX
-I/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../include/noX -g -O3 -Wall
-Wno-switch -Winline -Wmissing-prototypes -Wsign-compare -Wshadow -Wpointer-arith
Relocating allocator for buffers: no
GNU version of malloc: yes

Window System:
Compiling in support for the Microsoft window system.
Using MS-Windows menubars.
Using MS-Windows scrollbars.
Using MS-Windows dialog boxes.
Using MS-Windows native widgets.
Compiling in support for Drag'n'Drop (EXPERIMENTAL).
- Drag'n'Drop prototype: msw.

TTY:
Compiling in support for ncurses.

Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Compiling in support for X-Face message headers.

Sound:
Compiling in support for sound (native).

Databases:
Compiling in support for GNU DBM.

Internationalization:
Compiling in support for file coding.

Mail:
Compiling in support for POP mail retrieval.

Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.


Thank you,

Linh

PS
I had to switch to the MinGW gdb since the Cygwin gdb couldn't debug
this program I'm running but the MinGW gdb could. The cygwin gdb gave
this error and exit:
Program received signal SIGTRAP, Trace/breakpoint trap.
0x7c901231 in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll
(gdb) warning: HEAP[osglightd.exe]:
warning: Invalid Address specified to RtlFreeHeap( 003D0000, 6EA9D540 )


.



Relevant Pages

  • Re: Distributions vs kernel development
    ... > That's interesting - what I find dissapointing about the Linux From Scratch ... And how many users are you trying to support? ... > distribution than an installation from source. ... > on-going use of a system, I think compiling from source is better overall. ...
    (Linux-Kernel)
  • mm/slub.c warnings
    ... I get these warnings when compiling mm/slub.c in linux-2.6.git: ... # Linux kernel version: 2.6.24 ... # Device Drivers ... # PCI IDE chipsets support ...
    (Linux-Kernel)
  • cvs-src summary for 11/04/04 to 18/04/04
    ... Brian Feldman added support to dump and restore for a -P argument ... lightweight SNMP server used by the ATM implementation. ... Robert Watson merged the umct driver, ... Upgrading GDB ...
    (freebsd-current)
  • Package load-path problems
    ... Having difficulties with xemacs package loadings. ... Compiling in support for the Microsoft window system. ... Compiling in support for GIF images. ...
    (comp.emacs.xemacs)
  • Re: [git pull] kgdb-light -v10
    ... instead I use linux serial console, gdb messes with getty and things ... # Device Drivers ... # SCSI support type ... # CD-ROM/DVD Filesystems ...
    (Linux-Kernel)