This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/9583] -break-insert failed when several source files have the same name
- From: "nickrob at snap dot net dot nz" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 18 Jan 2009 19:13:19 -0000
- Subject: [Bug mi/9583] -break-insert failed when several source files have the same name
- References: <20080720111801.9583.seb.sfo@free.fr>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From nickrob at snap dot net dot nz 2009-01-18 19:13 -------
Subject: Re: -break-insert failed when several source files have the same name
> I cannot get exactly the same things so I have put a breakpoint at
> plugins/debug-manager/plugin.c:232 and
> plugins/language-support-cpp-java/plugin.c:1648
>
> And with gdb 6.8 I get a break in plugins/language-manager/plugin.c:232
>
> info break gives the following output:
Several things surprise me about this output:
1) The breakpoint locations are from different files (I guess we already knew
that).
2) The file plugins/language-manager/plugin.c isn't one of those files.
> info break
> Num Type Disp Enb Address What
> 1 breakpoint keep y <MULTIPLE> 0xb5203453
^^^^^^^^^^
3) The hexaecimal address on the above line. This is the only line that
-break-list outputs and in your earlier log it looks like:
bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<MULTIPLE>",addr="0xb56f97dd",times="1"}
and the addr field is duplicated.
I don't see how this can happen in the gdb code. Are you sure this is vanilla
gdb?
What does "show version" say? e.g for me: GNU gdb (GDB) 6.8.50.20090116-cvs
> breakpoint already hit 1 time
> 1.1 y 0xb5203453 in ilanguage_get_from_mime_type at
> plugin.c:232
> 1.2 y 0xb4f880ca in deactivate_plugin at plugin.c:232
> 1.3 y 0xb45f2447 in value_added_fm_current_file at
> plugin.c:232
> done
>
> The second breakpoints have been set in several files which is wrong. The
> breakpoint 1.1 is in plugins/language-manager/plugin.c:232, the breakpoint 1.2
> is in plugins/message-view/plugin.c:232, the breakpoint 1.3 is in
> plugins/subversion/plugin.c:232
Is it possible to set a breakpoint after plugins/language-manager/plugin.c:232
has loaded and and do "info break" to see if this results in a normal
breakpoint at the rght place?
--
http://sourceware.org/bugzilla/show_bug.cgi?id=9583
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.