gdb
[Top][All Lists]
Advanced

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

[Gdb] loading a different file


From: Fred J.
Subject: [Gdb] loading a different file
Date: Wed, 24 Aug 2005 02:56:27 -0700 (PDT)

Hello

I am loading my proj1 file but it is actually loading
a different file
all together, could somebody please help...  thanks 

makefile************************************************************
OBJS= main.o stash.o
CFLAGS= -g -Wall 
proj1: $(OBJS)
        $(CXX) $(CFLAGS) -o $@ $(OBJS)
.SUFFIXES:.o .h
.h.o:
        $(CXX) -c $<

clean:
        rm -f $(OBJS) proj1

output************************************************************
(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 11
Breakpoint 1 at 0x8048730: file
../sysdeps/i386/elf/start.S, line 11.
(gdb) delete
Delete all breakpoints? (y or n) y
(gdb) break main.cpp:11
No source file named main.cpp.
Make breakpoint pending on future shared library load?
(y or [n])



__________________________________________________
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]