This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Using cross compiled GDB under Emacs
- From: Dmytro Bablinyuk <dmytro dot bablinyuk at rftechnology dot com dot au>
- To: gdb at sources dot redhat dot com
- Date: Thu, 06 Oct 2005 11:40:19 +1000
- Subject: Using cross compiled GDB under Emacs
I have cross compiled gdb and I can set a break point under emacs using
'C-x space' but when gdb stops at breakpoint Emacs does not show the
line where gdb stopped. If I use 'b' command - the same, Emacs does not
show the file and line where it stopped. If I try to see line info it
says that no line number available.
Here is dump:
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-pc-linux-gnu
--target=powerpc-linux-uclibc"...0xfff00100 in ?? ()
(gdb) ram
add symbol table from file "u-boot" at
.text_addr = 0x3fc7000
(gdb) b board_init_r
Breakpoint 1 at 0x3fcba28: file board.c, line 588.
(gdb) c
Continuing.
Breakpoint 1, <signal handler called>
(gdb) info line
No line number information available.
(gdb)
Does anybody know how to 'attach' emacs to gdb?
The program was compiled with these options
-ggdb -Os -fPIC -ffixed-r14 -meabi -D__KERNEL__
-DTEXT_BASE=0xFFF00000 -fno-builtin -ffreestanding -nostdinc -isystem
-pipe -DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -DCONFIG_CPM2 -ffixed-r2
-ffixed-r29 -mstring -mcpu=603e -mmultiple -Wall -Wstrict-prototypes
Thank you