Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Sébastien Granjoux" <seb.sfo@free.fr>
To: gdb@sourceware.org
Subject: Breakpoint doesn't take in account full name in gdb 6.8
Date: Thu, 24 Jul 2008 21:44:00 -0000	[thread overview]
Message-ID: <4888E89A.8090704@free.fr> (raw)

Hello,

Gdb 6.8 breakpoints don't take care of the path of the source files.

I'm debugging a program which includes several source files having the 
same name (in different directories). The program is compiled with 
debugging information including the full path and gdb 6.6 was working 
fine  on this. Now, when I set a breakpoint in one of these files, the 
program stopped in the first file found even if I have set the 
breakpoint in another file.

I was using mi2 interpreter and I get the following:

gdb -interpreter=mi2 /usr/local/bin/anjuta

(gdb)
  -break-insert -f 
/home/seb/Programmation/Anjuta/anjuta/plugins/debug-manager/plugin.c:232
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>", 
pending="/home/seb/Programmation/Anjuta/anjuta/plugins/debug-manager/plugin.c:232", 
times="0"}
(gdb)
-exec-run
^running
(gdb)
*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1", 
frame={addr="0xb5532c72",func="atp_plugin_class_init", 
args=[{name="klass",value="0x8607488"}],file="plugin.c", 
fullname="/home/seb/Programmation/Anjuta/anjuta/plugins/tools/plugin.c",line="232"}
(gdb)
-break-list
^done,BreakpointTable={nr_rows="1",nr_cols="6",hdr=[
{width="7",alignment="-1",col_name="number",colhdr="Num"}, 
{width="14",alignment="-1",col_name="type",colhdr="Type"}, 
{width="4",alignment="-1",col_name="disp",colhdr="Disp"}, 
{width="3",alignment="-1",col_name="enabled",colhdr="Enb"}, 
{width="10",alignment="-1",col_name="addr",colhdr="Address"}, 
{width="40",alignment="2",col_name="what",colhdr="What"}], 
body=[bkpt={number="1", type="breakpoint", disp="keep", enabled="y", 
addr="<MULTIPLE>", addr="0xb57917dd",times="1"}]}


I have tried without using mi2 commands and get the same result. Tell me 
if you need more information about this bug.


Sébastien


             reply	other threads:[~2008-07-24 20:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-24 21:44 Sébastien Granjoux [this message]
2008-07-25  8:00 ` Vladimir Prus
2008-07-25 18:22   ` Sébastien Granjoux

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=4888E89A.8090704@free.fr \
    --to=seb.sfo@free.fr \
    --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