Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Sebastien LE DUC <sebastien.leduc@st.com>
To: gdb@sourceware.org
Subject: user defined command
Date: Mon, 16 Apr 2007 07:14:00 -0000	[thread overview]
Message-ID: <46232233.2050004@st.com> (raw)

Hi all,
I am trying to define a user defined command in which I want to set a 
breakpoint and associate a command to it:

define nextev
tbreak *traceSched  if $r2h == 0
commands
silent
tbreak *$r3h
cont
end
cont
end


The problem is that gdb takes the first "end" as the end of the 
definition of the command instead  of the end of the commands associated 
to the breakpoint.
so I get an error for the second "end"

Anybody knows how I can achieve what I want?

Thanks in advance
Sebastien Le Duc



             reply	other threads:[~2007-04-16  7:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-16  7:14 Sebastien LE DUC [this message]
2007-04-16 10:48 ` Daniel Jacobowitz
2007-04-16 19:38   ` Eli Zaretskii
2007-04-17  8:31     ` Denis PILAT

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=46232233.2050004@st.com \
    --to=sebastien.leduc@st.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