Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@gnat.com>
To: Fernando Nasser <fnasser@redhat.com>
Cc: "William A. Gatliff" <bgat@billgatliff.com>, gdb@sources.redhat.com
Subject: Re: "tbreak" and "commands" commands...
Date: Fri, 26 Jul 2002 14:19:00 -0000	[thread overview]
Message-ID: <20020726211926.GK10000@gnat.com> (raw)
In-Reply-To: <3D415F90.BE61E0BD@redhat.com>

> Yes, it is a bug anyway.  We should either refuse or handle the
> commands.

OK. I think the right thing to do now is to open a PR. I forgot to
mention it in my first message, but I had consulted the database before
sending it.

> Is there any specific reason you want to delete the breakpoint?
> You can just disable it as part of the commands.

I can't say for sure, because I am not the one who came across this odd
behavior. I was just asked why it id not work...

But I think I have an idea. I think they (the persons who found this
problem) are using a script to do some regression testing. They know the
code with go through certain locations in a certain order. So they
put temporary breakpoints one after the other. They make them temporary
in order for the previous breakpoints not to interfere during the
execution.

I don't have a problem rejecting commands on temporary breakpoints.
They already use the work-around you suggest of disabling the breakpoint
inside the command, but this is a light pain, and may also be prone to
error.

It seems that there we don't know of any reason at the moment why
commands could not work with temporary breakpoints. So I will see if I
can fix that. If it turns out to be too complicated, then we can change
GDB to refuse commands with temporary breakpoints. Does it sound
reasonable?

-- 
Joel


  reply	other threads:[~2002-07-26 21:19 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
2002-07-26 13:31   ` Joel Brobecker
2002-07-26 13:46     ` Fernando Nasser
2002-07-26 14:19       ` Joel Brobecker [this message]
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=20020726211926.GK10000@gnat.com \
    --to=brobecker@gnat.com \
    --cc=bgat@billgatliff.com \
    --cc=fnasser@redhat.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