From: "Alex J. Dam" <alexjdam@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Re: compiler problem
Date: Sun, 24 Jul 2005 20:50:00 -0000 [thread overview]
Message-ID: <20050724205104.GB14145@hymen> (raw)
In-Reply-To: <20050724194826.14555.qmail@web53913.mail.yahoo.com>
Hello.
On Sun, Jul 24, 2005 at 12:48:25PM -0700, Fred J. wrote:
> ../14/makefile looks like this
> **************************************************
> include ../makefile
>
> in the parent directory I have this makefile
> **************************************************
> OBJS = main.o
> CFLAGS= -g -Wall
> proj1 : $(OBJS)
> $(CXX) $(CFLAGS) -o $@ $(OBJS) #CC -o proj1 $(OBJS)
> the macro @ evaluates to the current target.
>
> clean :
> rm -f $(OBJS)
>
> I did
> sam@debian:~/Exercies/ThinkingInC++/Vol1/C03/13$ make
> which went ok.
How does 13/makefile look like? Does 13/proj1 depend on 14/main.cpp?
> how can I know if the executable programs did or did
> not record the directories of the source files from
> which it was compiled. and if it did what are they?
These may help:
$ strings proj1 | grep bitwise.cpp
$ readelf --debug-dump=info proj1
> (gdb) break bitwise.cpp : 11
> No source file named bitwise.cpp. <-----this problem
> Make breakpoint pending on future shared library load?
> (y or [n])
GDB does not look for the source file right now, when you're setting
the breakpoint. This error seems to indicate that the executable
itself has no information about the source file. In fact, you can set
breakpoint even on files you have already moved or deleted; GDB just
won't be able to show the line the breakpoint was set at.
--
Alex J. Dam
next prev parent reply other threads:[~2005-07-24 20:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-24 19:48 Fred J.
2005-07-24 20:50 ` Alex J. Dam [this message]
2005-07-25 16:09 ` Travis Spencer
2005-07-25 20:28 ` Fred J.
2005-07-26 6:08 ` Travis Spencer
-- strict thread matches above, loose matches on Subject: below --
1999-12-02 5:42 Nicole Bogeajis
1999-12-02 13:44 ` Arthur Gold
1999-12-31 22:24 ` Arthur Gold
1999-12-31 22:24 ` Nicole Bogeajis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050724205104.GB14145@hymen \
--to=alexjdam@gmail.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).