From: Doug Evans <dje@transmeta.com>
To: gdb@sources.redhat.com
Subject: commands command not allowed in macros, bug?
Date: Mon, 29 Mar 2004 18:43:00 -0000 [thread overview]
Message-ID: <200403261736.i2QHaLn29409@claire.transmeta.com> (raw)
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 ....
next reply other threads:[~2004-03-26 17:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-29 18:43 Doug Evans [this message]
2004-03-31 9:18 ` Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200403261736.i2QHaLn29409@claire.transmeta.com \
--to=dje@transmeta.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox