This is the mail archive of the gdb@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]

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


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.


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