From: Pawel K <pawlaczus@yahoo.com>
To: gdb@sourceware.org
Subject: Re: gdb changes the path
Date: Fri, 07 Sep 2007 12:35:00 -0000 [thread overview]
Message-ID: <227141.71071.qm@web33804.mail.mud.yahoo.com> (raw)
In-Reply-To: <20070907114628.GA18775@caradoc.them.org>
--- Daniel Jacobowitz <drow@false.org> wrote:
> On Fri, Sep 07, 2007 at 02:14:45AM -0700, Pawel K
> wrote:
> > 2. How to force gdb to use the relative path as in
> > breakpoint nr 3 above ?
>
> Why? It's a different name for the same file, and
> GDB knows its full
> name.
Since when I specify the breakpoint like:
(gdb) bre functions.h:100
I cannot "list" the source lines.
I can "list" the source line when I specify the
breakpoint like in step 3 or like as follows:
(gdb) bre include/functions.h:100
I also found that when I specify the breakpoint like
in step 3 or like
(gdb) include/functions.h:100
the gdb breaks execution in the next function.
Both functions are defined inside the the same class.
So now I have 2 problems:
1. I cannot list the source code in case of absolute
path.
2. Gdb stops execution in the next function.
As I wrote in my previous e-mail. I compile it as
follows:
g++ -O0 -g ...
Do You have any idea what can be wrong ?
thank You for help
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
next prev parent reply other threads:[~2007-09-07 12:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-07 9:21 Pawel K
2007-09-07 11:49 ` Daniel Jacobowitz
2007-09-07 12:35 ` Pawel K [this message]
2007-09-07 13:37 ` Daniel Jacobowitz
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=227141.71071.qm@web33804.mail.mud.yahoo.com \
--to=pawlaczus@yahoo.com \
--cc=gdb@sourceware.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