Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "William A. Gatliff" <bgat@billgatliff.com>
To: Joel Brobecker <brobecker@gnat.com>
Cc: gdb@sources.redhat.com
Subject: Re: "tbreak" and "commands" commands...
Date: Fri, 26 Jul 2002 12:01:00 -0000	[thread overview]
Message-ID: <20020726140130.A15935@saturn.billgatliff.com> (raw)
In-Reply-To: <20020726185406.GG10000@gnat.com>; from brobecker@gnat.com on Fri, Jul 26, 2002 at 11:54:06AM -0700

Joel:


Does it work with "break" instead of "tbreak"?  I've never tried it
with tbreak, but "break" works in 5.1--- I use it a lot.

b.g.

On Fri, Jul 26, 2002 at 11:54:06AM -0700, Joel Brobecker wrote:
> Hello,
> 
> According to the documentation, we should be able to associate a list
> of commands to execute when the inferior hits a temporary breakpoint.
> It currently does not seem to be the case. Is there a limitation in this
> area, or is this a regression (in which case I'll be happy to work on
> this)?
> 
> Here is a small copy of a simple session:
> <<
> GNU gdb 2002-07-26-cvs
> [snip]
> This GDB was configured as "i686-pc-linux-gnu"...
> (gdb) tbreak test.c:8
> Breakpoint 1 at 0x804854f: file test.c, line 8.
> (gdb) command
> Type commands for when breakpoint 1 is hit, one per line.
> End with a line saying just "end".
> >printf "+++ breakpoint hit\n"
> >continue
> >end
> (gdb) run
> Starting program: /nfs/paris/paris.a/brobecke/act/report/gdb/B726-014__cont_abbrev/test.bonn 
> main () at test.c:8
> 8           printf ("Hello world.\n");
> (gdb) 
> >>
> 
> As you see, the inferior stopped at breakpoint 1, but the command list was
> not executed...
> 
> Thanks,
> -- 
> Joel

-- 
Bill Gatliff
bgat@billgatliff.com


  reply	other threads:[~2002-07-26 19:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-26 11:54 Joel Brobecker
2002-07-26 12:01 ` William A. Gatliff [this message]
2002-07-26 13:31   ` Joel Brobecker
2002-07-26 13:46     ` Fernando Nasser
2002-07-26 14:19       ` Joel Brobecker
2002-07-26 14:49         ` Fernando Nasser

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=20020726140130.A15935@saturn.billgatliff.com \
    --to=bgat@billgatliff.com \
    --cc=brobecker@gnat.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