gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gdb] remote gdbserver; main has no line number information


From: David Wuertele
Subject: [Gdb] remote gdbserver; main has no line number information
Date: Mon, 24 Feb 2003 18:07:22 -0800
User-agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i686-pc-linux-gnu)

I compiled gdbserver on a mipsel target (--host=mipsel-linux) then
compiled gdb on an intel host (--host=i686-pc-linux-gnu
--target=mipsel-linux).  There seems to be something wrong with the
symbol parsing.  On the target:

# gcc -o hello -g -g3 -ggdb -ggdb3 -static hello.c
# /usr/local/bin/gdbserver 0:8888 ./hello
Process ./hello created; pid = 356

On the dev host:

/usr/local/bin/mipsel-linux-gdb

Current directory is /nfsroot/root/
GNU gdb 5.3
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 "--host=i686-pc-linux-gnu --target=mipsel-linux
Current directory is /nfsroot/root/
".
(gdb) sym hello
(gdb) target remote 10.0.0.2:8888
Remote debugging using 10.0.0.2:8888
0x00400180 in _ftext ()
(gdb) b main
Breakpoint 1 at 0x4003ec
(gdb) c
Continuing.

Breakpoint 1, 0x004003ec in main (argc=1, argv=0x7fff7d94)
(gdb) s
Single stepping until exit from function main, 
which has no line number information.
printf (format=0x0) at printf.c:33
33      printf.c: No such file or directory.
        in printf.c


Why doesn't main have any line number information?
When I try to create a breakpoint, it complains:

(gdb) sym hello
Reading symbols from hello...done.
(gdb) target remote 10.0.0.2:8888
Remote debugging using 10.0.0.2:8888
0x00400180 in _ftext ()
(gdb) b hello.c:26
No line 26 in file "hello.c".
(gdb) 


Any suggestions?

Dave





reply via email to

[Prev in Thread] Current Thread [Next in Thread]