* commands command not allowed in macros, bug?
@ 2004-03-29 18:43 Doug Evans
2004-03-31 9:18 ` Doug Evans
0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2004-03-29 18:43 UTC (permalink / raw)
To: gdb
gdb = 5.2.1
I'm unable to add any commands commands to macros.
The command line reader doesn't know to specially parse
`commands' commands like it does `if' and `while'.
It'd be a useful feature to have.
[whether one want this to apply to all commands that take input
followed by `end' I dunno]
---
bash$ gcc -g hello.c
bash$ gdb-5.2.1 ./a.out
(gdb) define foo
break main
commands
echo foo\n
end
(gdb) show user foo
User command foo:
break main
commands
echo foo\n
(gdb) foo
Breakpoint 1 at 0x8048406: file hello.c, line 6.
[gdb is now hung waiting for the user to type `end']
end # <<< type this in
foo # gdb prints this, the commands of breakpoint 1 are run
(gdb) quit
---
fwiw I have a patch, if only I could submit it ....
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-30 7:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-29 18:43 commands command not allowed in macros, bug? Doug Evans
2004-03-31 9:18 ` Doug Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox