public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* MI usage inside a user-defined commands
@ 2005-07-06 12:31 Karganov Konstantin
  2005-07-06 13:14 ` Daniel Jacobowitz
  0 siblings, 1 reply; 18+ messages in thread
From: Karganov Konstantin @ 2005-07-06 12:31 UTC (permalink / raw)
  To: gdb

Hello, all.

It seems that user-defined commands are always parsed by console cmd-line 
interpreter (no matter what interpreter was specified).
I tried to print a variable from the user-defined cmd and directly from 
the interpreter:

(gdb)
define aaaa
&"define aaaa\n"
>-data-evaluate-expression i
>end
^done
(gdb)
aaaa
&"aaaa\n"
&"Undefined command: \"-data-evaluate-expression\".  Try \"help\".\n"
^error,msg="Undefined command: \"-data-evaluate-expression\".  Try 
\"help\"."
(gdb)
-data-evaluate-expression i
^done,value="0"
(gdb)

I use gdb 6.3 built from sources on RedHat 9. Debug session is started as 
"gdb --i=mi a.out"

Is is a bug or a feature?

Best regards,
Konstantin.


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-07-07 21:47 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-06 12:31 MI usage inside a user-defined commands Karganov Konstantin
2005-07-06 13:14 ` Daniel Jacobowitz
2005-07-06 13:46   ` Karganov Konstantin
2005-07-06 13:50     ` Daniel Jacobowitz
2005-07-06 13:57       ` Karganov Konstantin
2005-07-07 12:21       ` Karganov Konstantin
2005-07-07 13:03         ` Daniel Jacobowitz
2005-07-07 14:16           ` Karganov Konstantin
2005-07-07 21:47             ` Nick Roberts
2005-07-06 21:26     ` Nick Roberts
2005-07-06 21:28       ` Daniel Jacobowitz
2005-07-06 22:50         ` Queries in MI [was Re: MI usage inside a user-defined commands] Nick Roberts
2005-07-06 23:06           ` Daniel Jacobowitz
2005-07-06 23:46           ` Bob Rossi
2005-07-07  0:33             ` Queries in MI Nick Roberts
2005-07-07  1:34               ` Bob Rossi
2005-07-07  3:32                 ` Nick Roberts
2005-07-06 21:41       ` MI usage inside a user-defined commands Bob Rossi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).