This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/9583] -break-insert failed when several source files have the same name


------- Additional Comments From seb dot sfo at free dot fr  2009-01-25 18:14 -------
I have get the latest gdb snapshot 6.8.50.20090125 and try something simpler.

I start gdb directly without using Anjuta nor the mi2 interface and use it to
debug Anjuta itself which load several plugins. So I do the following:

$ gdb /usr/local/bin/anjuta
GNU gdb (GDB) 6.8.50.20090125
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) run -c
... 
Wait about 30s, Anjuta is loading several plugins here
Ctrl+C
Program received signal SIGINT, Interrupt.
0xffffe410 in __kernel_vsyscall ()
(gdb) b
/home/seb2008.1/Programmation/Anjuta/anjuta/plugins/debug-manager/plugin.c:232
Breakpoint 1 at 0xb51d62c8: file plugin.c, line 232. (3 locations)
(gdb) info break
Num     Type           Disp Enb Address    What
1       breakpoint     keep y   <MULTIPLE> 
1.1                         y     0xb51d62c8 in ilanguage_get_from_mime_type
                                       at plugin.c:232
1.2                         y     0xb4784347 in value_added_fm_current_file
                                       at plugin.c:232
1.3                         y     0xb4332d53 in skip_iter_to_previous_line
                                       at plugin.c:232

So, the breakpoint has been put in 3 files
/home/seb2008.1/Programmation/Anjuta/anjuta/plugins/language-manager/plugin.c:232
/home/seb2008.1/Programmation/Anjuta/anjuta/plugins/subversion/plugin.c:232
/home/seb2008.1/Programmation/Anjuta/anjuta/plugins/language-support-cpp-java/plugin.c:232
but not in the right one.

If I do the same things with gdb 6.6 (from my distribution) I get

GNU gdb 6.6-5mdv2008.1 (Mandriva Linux release 2008.1)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as ""...
Using host libthread_db library "/lib/i686/libthread_db.so.1".
(gdb) run -c
Ctrl+C
Program received signal SIGINT, Interrupt.
[Switching to Thread -1228109248 (LWP 16501)]
0xffffe410 in __kernel_vsyscall ()
(gdb)  b
/home/seb2008.1/Programmation/Anjuta/anjuta/plugins/debug-manager/plugin.c:232
Breakpoint 1 at 0xb470b993: file plugin.c, line 232.
(gdb) info break
Num Type           Disp Enb Address    What
1   breakpoint     keep y   0xb470b993 in value_added_project_root_uri
                                       at plugin.c:232

It is correct.


-- 


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]