[Mingw-users] possible regression in gdb 7.4 with -break-insert +0

2 views
Skip to first unread message

Martin

unread,
Mar 20, 2012, 9:03:48 AM3/20/12
to MinGW Users List
I believe I found a regression in gdb 7.4. (Tested on Win 32bit Vista)

If indeed it is, I am unsure how to report. Also I can not provide
sample code (except in pascal, using fpc)

using "gdb -i mi", the command "-break-insert +0" should insert a
breakpoint at the an offset of 0 lines from current.

With previous versions of gdb, if the command was issued before
-exec-run, then a breakpoint was inserted at the first line of code.


Using gdb 7.3-2
-break-insert +0
^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00402f64",func="main",file="WatchesPrg.pas",fullname="b:\\lazarus_latest\\debugger\\test\\gdbmi\\testapps\\watchesprg.pas",line="269",times="0",original-location="WatchesPrg.pas:269"}
(gdb)


Using gdb 7.4-2
-break-insert +0
^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x00402f64",func="main",file="WatchesPrg.pas",fullname="b:\\lazarus_latest\\debugger\\test\\gdbmi\\TestApps\\WatchesPrg.pas",line="269",times="0",original-location="WatchesPrg.pas:+0"}
(gdb)

and then
-exec-run
....
&"Error in re-setting breakpoint 2: No line 0 in file \"WatchesPrg.pas\".\n"
=breakpoint-modified,bkpt={number="2",type="breakpoint",disp="keep",enabled="n",addr="<PENDING>",pending="WatchesPrg.pas:+0",times="0",original-location="WatchesPrg.pas:+0"}


------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
MinGW-users mailing list
MinGW...@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-use...@lists.sourceforge.net?subject=unsubscribe

Eli Zaretskii

unread,
Mar 20, 2012, 3:03:24 PM3/20/12
to MinGW Users List
> Date: Tue, 20 Mar 2012 13:03:48 +0000
> From: Martin <laz...@mfriebe.de>

>
> I believe I found a regression in gdb 7.4. (Tested on Win 32bit Vista)
>
> If indeed it is, I am unsure how to report. Also I can not provide
> sample code (except in pascal, using fpc)

Please report it here:

g...@sourceware.org

And don't worry about the example in Pascal, just post it. At least
one of the active contributors to GDB (and to its Windows port) uses
fpc, so you are not alone.

Thanks.

Reply all
Reply to author
Forward
0 new messages