public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: gdb search wrong source file
       [not found] <20070927082957.51BBB9829E@nan.false.org>
@ 2007-09-27 12:07 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2007-09-27 12:07 UTC (permalink / raw)
  To: xchen; +Cc: gdb

On Thu, Sep 27, 2007 at 04:29:09PM +0800, xchen wrote:
> Hi,
> 
>     I use gdbserver run on my board. The problem is that gdb search wrong
> source file.Blowed is my snapshot.
> 
> Breakpoint 1, 0x1000a5cc in main ()
> (gdb) list
> 1 in ../sysdeps/powerpc/powerpc32/elf/start.S

You do not have debugging information for main.  Your program was
either compiled without debug info, or stripped.

-- 
Daniel Jacobowitz
CodeSourcery

^ permalink raw reply	[flat|nested] 2+ messages in thread

* gdb search wrong source file
@ 2007-09-27 10:41 xchen
  0 siblings, 0 replies; 2+ messages in thread
From: xchen @ 2007-09-27 10:41 UTC (permalink / raw)
  To: gdb

Hi,

    I use gdbserver run on my board. The problem is that gdb search wrong
source file.Blowed is my snapshot.

Breakpoint 1, 0x1000a5cc in main ()
(gdb) list
1 in ../sysdeps/powerpc/powerpc32/elf/start.S
(gdb) info source
Current source file is ../sysdeps/powerpc/powerpc32/elf/start.S
Compilation directory is /var/tmp/BUILD/glibc-2.3.2/csu
Source language is asm.
Compiled with DWARF 2 debugging format.
Does not include preprocessor macro info.
(gdb) list
1 in ../sysdeps/powerpc/powerpc32/elf/start.S
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x0ff940c0 0x0ff9cc84 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/mnt/cf/shared/lib/libpthread.so.0
0x0ff5fc24 0x0ff63bb4 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/mnt/cf/shared/lib/librt.so.1
0x0feb9a78 0x0ff198bc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/mnt/cf/shared/lib/libstdc++.so.5
0x0fdae728 0x0fe1e998 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
(gdb) pwd
Working directory /home/chenxi/cpu_io_v106_20070910/cpu_v106_af/cpu_v/Debug.
(gdb) show directories
Source directories searched: $cdir:$cwd

Library loaded correctly. I try to use dir to add all my path, but gdb think
current source file is start.s. Actually root.cpp should be the current
file. How can I make it right.  BTW last month, gdbserver don't have this
bug when I use it debug.

Thx,
Xi



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-27 12:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20070927082957.51BBB9829E@nan.false.org>
2007-09-27 12:07 ` gdb search wrong source file Daniel Jacobowitz
2007-09-27 10:41 xchen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).