* -break-insert and multi-byte file names
@ 2007-09-28 18:06 Gordon Prieur
2007-09-28 18:21 ` Daniel Jacobowitz
2007-09-29 17:57 ` Eli Zaretskii
0 siblings, 2 replies; 6+ messages in thread
From: Gordon Prieur @ 2007-09-28 18:06 UTC (permalink / raw)
To: gdb
Hi,
I'm working on a netbeans C++/gdb debugger problem setting breakpoints
in multi-byte filenames. My filename is the Russian equivalent of
test.cc (in
UTF-8 its "\u0422\u0435\u0441\u0442.cc" but for simplicity I'm just going
to type it as test.cc in this email).
If I type "b test.cc:10" I get a valid breakpoint. If I type
"-break-insert test.cc:10"
I get "mi_cmd_break_insert: Garbage following <location>" and a failed
breakpoint.
I've tried various quoting permutations but none have worked.
Short of setting all my breakpoints with the non-mi breakpoint
commands, is
there any way to get this to work? Am I likely to run into other gdb/mi
problems
with multi-byte filenames?
Thanks,
Gordon
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: -break-insert and multi-byte file names
2007-09-28 18:06 -break-insert and multi-byte file names Gordon Prieur
@ 2007-09-28 18:21 ` Daniel Jacobowitz
2007-09-28 18:29 ` Gordon Prieur
2007-09-29 17:57 ` Eli Zaretskii
1 sibling, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2007-09-28 18:21 UTC (permalink / raw)
To: Gordon Prieur; +Cc: gdb
On Fri, Sep 28, 2007 at 10:56:34AM -0700, Gordon Prieur wrote:
> If I type "b test.cc:10" I get a valid breakpoint. If I type "-break-insert
> test.cc:10"
> I get "mi_cmd_break_insert: Garbage following <location>" and a failed
> breakpoint.
> I've tried various quoting permutations but none have worked.
The MI version should probably have quotes in it somewhere...
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: -break-insert and multi-byte file names
2007-09-28 18:21 ` Daniel Jacobowitz
@ 2007-09-28 18:29 ` Gordon Prieur
2007-09-28 18:35 ` Daniel Jacobowitz
0 siblings, 1 reply; 6+ messages in thread
From: Gordon Prieur @ 2007-09-28 18:29 UTC (permalink / raw)
To: Gordon Prieur, gdb
Daniel Jacobowitz wrote:
> On Fri, Sep 28, 2007 at 10:56:34AM -0700, Gordon Prieur wrote:
>
>> If I type "b test.cc:10" I get a valid breakpoint. If I type "-break-insert
>> test.cc:10"
>> I get "mi_cmd_break_insert: Garbage following <location>" and a failed
>> breakpoint.
>> I've tried various quoting permutations but none have worked.
>>
>
> The MI version should probably have quotes in it somewhere...
>
I've tried:
-break-insert "foo.c:10"
-break-insert "foo.c":10
-break-insert 'foo.c:10'
-break-insert 'foo.c':10
Any other permutations I should try?
Gordon
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: -break-insert and multi-byte file names
2007-09-28 18:29 ` Gordon Prieur
@ 2007-09-28 18:35 ` Daniel Jacobowitz
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Jacobowitz @ 2007-09-28 18:35 UTC (permalink / raw)
To: Gordon Prieur; +Cc: gdb
On Fri, Sep 28, 2007 at 11:21:03AM -0700, Gordon Prieur wrote:
> I've tried:
>
> -break-insert "foo.c:10"
> -break-insert "foo.c":10
> -break-insert 'foo.c:10'
> -break-insert 'foo.c':10
>
> Any other permutations I should try?
No, I would expect the first one to work.
I suppose you could try "\"foo.c\":10" but I don't think it will help
if those don't.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: -break-insert and multi-byte file names
2007-09-28 18:06 -break-insert and multi-byte file names Gordon Prieur
2007-09-28 18:21 ` Daniel Jacobowitz
@ 2007-09-29 17:57 ` Eli Zaretskii
[not found] ` <46FE8F99.4040604@Sun.COM>
1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2007-09-29 17:57 UTC (permalink / raw)
To: Gordon Prieur; +Cc: gdb
> Date: Fri, 28 Sep 2007 10:56:34 -0700
> From: Gordon Prieur <Gordon.Prieur@Sun.COM>
>
> I'm working on a netbeans C++/gdb debugger problem setting breakpoints
> in multi-byte filenames. My filename is the Russian equivalent of
> test.cc (in
> UTF-8 its "\u0422\u0435\u0441\u0442.cc" but for simplicity I'm just going
> to type it as test.cc in this email).
>
> If I type "b test.cc:10" I get a valid breakpoint. If I type
> "-break-insert test.cc:10"
> I get "mi_cmd_break_insert: Garbage following <location>" and a failed
> breakpoint.
> I've tried various quoting permutations but none have worked.
On what OS is that? I mean the OS on which GDB runs, not the target.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: -break-insert and multi-byte file names
[not found] ` <46FE8F99.4040604@Sun.COM>
@ 2007-09-29 21:07 ` Eli Zaretskii
0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2007-09-29 21:07 UTC (permalink / raw)
To: Gordon Prieur; +Cc: gdb
> Date: Sat, 29 Sep 2007 10:47:05 -0700
> From: Gordon Prieur <Gordon.Prieur@Sun.COM>
> Cc: gdb@sourceware.org
>
> Its on Solaris 10.
What happens if you invoke GDB with stdin redirected from a file, and
that file has the "-break-insert test.cc:10" command where the name of
the file is encoded in UTF-8? Does it work then?
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-09-29 17:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-28 18:06 -break-insert and multi-byte file names Gordon Prieur
2007-09-28 18:21 ` Daniel Jacobowitz
2007-09-28 18:29 ` Gordon Prieur
2007-09-28 18:35 ` Daniel Jacobowitz
2007-09-29 17:57 ` Eli Zaretskii
[not found] ` <46FE8F99.4040604@Sun.COM>
2007-09-29 21:07 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox