<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://sourceware.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="4.4+"
          urlbase="http://sourceware.org/bugzilla/"
          
          maintainer="overseers@sourceware.org"
>

    <bug>
          <bug_id>12843</bug_id>
          
          <creation_ts>2011-06-05 01:56:00 +0000</creation_ts>
          <short_desc>gdb failed to set a breakpoint on Windows</short_desc>
          <delta_ts>2011-11-11 19:59:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>gdb</product>
          <component>gdb</component>
          <version>HEAD</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>7.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="asmwarrior">asmwarrior</reporter>
          <assigned_to name="Keith Seitz">keiths</assigned_to>
          <cc>keiths</cc>
          <cf_gcchost></cf_gcchost>
          <cf_gcctarget></cf_gcctarget>
          <cf_gccbuild></cf_gccbuild>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49145</commentid>
    <comment_count>0</comment_count>
    <who name="asmwarrior">asmwarrior</who>
    <bug_when>2011-06-05 01:56:59 +0000</bug_when>
    <thetext>I build a gdb-7.3.50.20110604 cvs gdb version under MinGW and MSYS.

But when debugging, gdb failed to set a breakpoint, it seems it failed to handle the windows style file path.

look at the log:

&gt; break &quot;E:/code/cb/cb_trunk/src/plugins/codecompletion/parser/parserthread.cpp:524&quot;
No source file named E.
Breakpoint 2 (&quot;E:/code/cb/cb_trunk/src/plugins/codecompletion/parser/parserthread.cpp:524) pending.
&gt;&gt;&gt;&gt;&gt;&gt;cb_gdb:

You see, &quot;No source file named E.&quot;, this is the error message.

the gdb 20110401 cvs snapshot build works quite well on setting breakpoints. 

I found that the change in linespec.c in
http://sourceware.org/ml/gdb-cvs/2011-05/msg00255.html
and
http://sourceware.org/ml/gdb-cvs/2011-05/msg00196.html

maybe cause this issue.

If I replace the linespec.c with an old version of linespec.c before May 24, 2011, then gdb build 20110604snapshot can correctly set breakpoints under Windows. 

the related discussion is 
http://sourceware.org/ml/gdb/2011-06/msg00030.html

asmwarrior
ollydbg from codeblocks&apos; forum</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51694</commentid>
    <comment_count>1</comment_count>
    <who name="cvs-commit@gcc.gnu.org">cvs-commit</who>
    <bug_when>2011-11-11 19:52:50 +0000</bug_when>
    <thetext>CVSROOT:	/cvs/src
Module name:	src
Changes by:	kseitz@sourceware.org	2011-11-11 19:52:47

Modified files:
	gdb            : ChangeLog linespec.c 

Log message:
	PR gdb/12843
	* linespec.c (locate_first_half): Keep &apos;:&apos; if it looks
	like it could be part of a Windows path starting with
	a drive letter.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&amp;r1=1.13507&amp;r2=1.13508
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/linespec.c.diff?cvsroot=src&amp;r1=1.130&amp;r2=1.131</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51695</commentid>
    <comment_count>2</comment_count>
    <who name="cvs-commit@gcc.gnu.org">cvs-commit</who>
    <bug_when>2011-11-11 19:53:16 +0000</bug_when>
    <thetext>CVSROOT:	/cvs/src
Module name:	src
Changes by:	kseitz@sourceware.org	2011-11-11 19:53:13

Modified files:
	gdb/testsuite  : ChangeLog 
Added files:
	gdb/testsuite/gdb.base: linespecs.exp 

Log message:
	PR gdb/12843
	* gdb.base/linespecs.exp: New file.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&amp;r1=1.2933&amp;r2=1.2934
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/linespecs.exp.diff?cvsroot=src&amp;r1=NONE&amp;r2=1.1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51696</commentid>
    <comment_count>3</comment_count>
    <who name="Keith Seitz">keiths</who>
    <bug_when>2011-11-11 19:59:26 +0000</bug_when>
    <thetext>Patch committed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>