[mingw,gdb CVS HEAD] can't set breakpoint

asmwarrior asmwarrior@gmail.com
Fri Jul 27 05:02:00 GMT 2012


On 2012-7-27 12:04, asmwarrior wrote:
> I just see this message: (when debugging under Code::Blocks)
>
> [debug]> break "E:/code/cb/test_code/Toggle/MyWXMain.cpp:66"
> [debug]Function "66" not defined in "E:/code/cb/test_code/Toggle/MyWXMain.cpp".
> [debug]Breakpoint 2 ("E:/code/cb/test_code/Toggle/MyWXMain.cpp:66") pending.
>
> Why this command is regard as "Function 66".
> When the app started, it can't hit the bp.
>
> It works OK with gdb cvs 2012-07-25.
>
> Yuanhui Zhang
>
>

I believe this issue is caused by the last two commits in file "linespec.c".

Revision: 5134bbd001531c5c6d02573d4d7fb86b17a549ec
Author: Keith Seitz
Date: 2012-7-27 0:22:44
Message:
* linespec.c (linespec_lexer_lex_number): The input

is also a valid number if the next character is a comma
	or colon.
----
Modified: gdb/ChangeLog
Modified: gdb/linespec.c

and
Revision: 4643fc6023b9d9aad57359b5624756b880c085d1
Author: Hui Zhu
Date: 2012-7-25 20:26:23
Message:
2012-07-25  Hui Zhu  <hui_zhu@mentor.com>

* linespec.c (linespec_lexer_lex_number): Update comments,
	change the return and add check to make sure the input is
	the decimal numbers.
	(linespec_lexer_lex_one): If linespec_lexer_lex_number return
	false, call linespec_lexer_lex_string.
----
Modified: gdb/ChangeLog
Modified: gdb/linespec.c

I revert these two changes, and the breakpoint command works OK.



More information about the Gdb mailing list