From: Vincent Rubiolo <vincent.rubiolo@windriver.com>
To: Bob Rossi <bob@brasko.net>
Cc: wmaple <wmaple@126.com>, gdb <gdb@sources.redhat.com>
Subject: Re: Is there a way to define a macro?
Date: Thu, 15 Sep 2005 12:41:00 -0000 [thread overview]
Message-ID: <43296BE1.1080001@windriver.com> (raw)
In-Reply-To: <20050915123338.GA2777@white>
Hello,
You may also want to take a look at automatic display, which can also
and save you lots of keystrokes.
See http://sources.redhat.com/gdb/current/onlinedocs/gdb_9.html#SEC62
for more details,
Cheers,
Vincent
Bob Rossi wrote:
> On Thu, Sep 15, 2005 at 08:22:44PM +0800, wmaple wrote:
>
>>Hi.
>>
>>When I debug a program on disassambly level, for inspecting registers or memory units, I have to enter same commands again and again. For example, after execution of each instruction, I want to inspecting all common registers. So, every time, I have to enter command 'info register' several times. Is there a way to define a macro, by which I can enter these commands conveniently.
>>
>>Thanks!
>
>
> Yes, try something like this,
>
> define macro1
> b main
> r
> next
> next
> next
> end
>
> Put that in your .gdbinit file and then start up GDB and type 'macro1'
> to get it to execute the commands.
>
> Bob Rossi
--
Using Firefox and Thunderbird at Wind River:
http://twiki.wrs.com/do/view/ENGtools/MozillaAtWindriver
next prev parent reply other threads:[~2005-09-15 12:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20050915122428.XNUA13028.eastrmgxi08.cox.net@sourceware.org>
2005-09-15 12:33 ` Bob Rossi
2005-09-15 12:41 ` Vincent Rubiolo [this message]
[not found] <200509151224.j8FCOaR5030806@truba.ispras.ru>
2005-09-15 12:44 ` Konstantin Karganov
2005-09-15 12:24 wmaple
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=43296BE1.1080001@windriver.com \
--to=vincent.rubiolo@windriver.com \
--cc=bob@brasko.net \
--cc=gdb@sources.redhat.com \
--cc=wmaple@126.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).