I believe it is.
Another reason to use "break" rather than "-break-insert" is that pending breakpoints does not work at all with -break-insert

Eran


On Thu, May 15, 2008 at 5:06 PM, Fiveight <fiveight@tom.com> wrote:
Thanks.

I am using GDB 6.8, I will use "break" instead "-break-insert".

Is this a bug?

Fiveight
----- Original Message -----
From: Eran Ifrah
Sent: Thursday, May 15, 2008 9:17 AM
Subject: Re: [Mingw-users] How to use -break-insert command ?

You cant, the GDB MI does not allow using names with spaces inside them - even when you enclose them with double quotes.

Only "break" command does.

Eran


On Thu, May 15, 2008 at 3:59 AM, fiveight <fiveight@tom.com> wrote:
Hi All:

I'm using gdb/mi(MinGW) to debug my program.In my program,.There is a file named "a b.c"(there is a space between character 'a' and 'b').I want to insert a breakpoint in line 5 of this file. But when I enter command:

-break-insert a b.c:5

the output is:

&"mi_cmd_break_insert: Garbage following <location>\n"
^error,msg="mi_cmd_break_insert: Garbage following <location>"

enter command:

-break-insert "a b.c:5"

the output is:

&"Function \"a\" not defined in loaded symbols.\n"
^error,msg="Function \"a\" not defined in loaded symbols."

How can I use -break-insert command with a file which name contains space?

Thanks
Fiveight
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users



--
Eran Ifrah
eran.ifrah@gmail.com


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users




--
Eran Ifrah
eran.ifrah@gmail.com