Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Luo Yi" <firingme@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: How can I define the breakpoint-commands in my gdbinit file
Date: Thu, 14 Dec 2006 04:27:00 -0000	[thread overview]
Message-ID: <ulklbp0eo.fsf@gnu.org> (raw)
In-Reply-To: <77d8667c0612131751v2913b5d3l31f5d14fd94cdf40@mail.gmail.com> 	(firingme@gmail.com)

> Date: Thu, 14 Dec 2006 09:51:19 +0800
> From: "Luo Yi" <firingme@gmail.com>
> 
> How can I define the breakpoint-commands in my gdbinit file ?
> 
> define b1
> b *0x805d3bf
> commands
> silent
> printf "ne, eax = %x\n", $eax
> end    <<< ------------
> end
> 
> the commands need a end instruction which can't appear in the middle
> of the gdbinit file.

There are bugs in nesting canned commands that are finished by `end'.

I have a local patch to solve at least some of the bugs, but I never
got to apply it because I was requested to show the results of the
test suite after applying the patch, and never had time to install
expect and run the suite.

I could try to dig out that patch, if you want to try it.


  parent reply	other threads:[~2006-12-14  4:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-14  1:51 Luo Yi
2006-12-14  1:54 ` Daniel Jacobowitz
2006-12-14  2:01   ` Luo Yi
2006-12-14  3:10     ` Daniel Jacobowitz
2006-12-14  4:27 ` Eli Zaretskii [this message]
2006-12-14  5:02   ` Luo Yi
2006-12-14 21:10     ` Eli Zaretskii

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=ulklbp0eo.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=firingme@gmail.com \
    --cc=gdb@sourceware.org \
    /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