gdb
[Top][All Lists]
Advanced

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

[Gdb] loading wrong file


From: Fred J.
Subject: [Gdb] loading wrong file
Date: Wed, 24 Aug 2005 12:13:34 -0700 (PDT)

Hello

gdb is loading the wrong file, I would appreciate help
as this is not
the first time it happens and I wonder why it keeps on
happening.

thanks
$ls
main.cpp
main.o
makefile
proj1
semantic.cache
stash.cpp
stash.h
stash.o

$gdb proj1
Current directory is
~/Exercies/ThinkingInC++/Vol1/4thCh/7/
GNU gdb 6.3-debian
Copyright 2004 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 "i386-linux"...Using host
libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) file proj1 
Load new symbol table from
"/home/sam/Exercies/ThinkingInC++/Vol1/4thCh/7/proj1"?
(y or n) y
Reading symbols from
/home/sam/Exercies/ThinkingInC++/Vol1/4thCh/7/proj1...done.
(gdb) b 13
Breakpoint 1 at 0x8048730: file
../sysdeps/i386/elf/start.S, line 13.
(gdb) 

the breaker point above is in the wrong file, it
suppose to be in
main.cpp.

(gdb) r
Starting program:
/home/sam/Exercies/ThinkingInC++/Vol1/4thCh/7/proj1 

Breakpoint 1, _start () at
../sysdeps/i386/elf/start.S:47
47      ../sysdeps/i386/elf/start.S: No such file or
directory.
        in ../sysdeps/i386/elf/start.S
Current language:  auto; currently asm
(gdb) n
_start () at ../sysdeps/i386/elf/start.S:52
52      in ../sysdeps/i386/elf/start.S
(gdb) 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

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