From: "Doug Evans" <dje@google.com>
To: "Vladimir Prus" <vladimir@codesourcery.com>,
gdb-patches@sources.redhat.com
Subject: Re: [RFA] Make mi_cmd_break_insert exception-safe.
Date: Fri, 01 Feb 2008 15:49:00 -0000 [thread overview]
Message-ID: <e394668d0802010743v1ce9c2b1va050c62e00ef32fc@mail.gmail.com> (raw)
In-Reply-To: <20080131221653.GB6715@caradoc.them.org>
On Jan 31, 2008 2:16 PM, Daniel Jacobowitz <drow@false.org> wrote:
> On Sun, Jan 27, 2008 at 05:15:07PM +0300, Vladimir Prus wrote:
> > The gdb_breakpoint function, as I understand it, was supposed to be part of
> > libgdb interface, defined in gdb.h header. However, libgdb is not even close to
> > being usable, and when I've asked about using gdb as a library some time ago, the
> > response was that it's too hard to do, and it's no longer a goal. Therefore,
> > I think it makes no sense to keep gdb_breakpoint non-throwing.
>
> There is a convention that the gdb_* functions don't throw, though.
> It's very confusing what does and does not throw in GDB. Before this
> patch, did gdb_breakpoint actually throw? If so, would fixing it
> by using try/catch inside gdb_breakpoint fix this bug too?
For future generations I wonder if we need to add something to
gdbint.texinfo. Maybe something along the lines of "gdb_* functions
in general do not throw, but that is an artifact of the original
libgdb design which is no longer important. That does not mean go out
and make anything throw willy-nilly, but if the preferred solution
involves making a gdb_* function throw where it did not before, then
go ahead." Or some such.
prev parent reply other threads:[~2008-02-01 15:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-27 17:22 Vladimir Prus
2008-01-27 21:29 ` Nick Roberts
2008-01-28 8:22 ` Vladimir Prus
2008-01-28 14:29 ` Nick Roberts
2008-01-31 22:27 ` Daniel Jacobowitz
2008-02-01 6:54 ` Vladimir Prus
2008-02-01 14:25 ` Daniel Jacobowitz
2008-02-01 14:50 ` Vladimir Prus
2008-02-01 15:09 ` Daniel Jacobowitz
2008-02-01 15:46 ` Doug Evans
2008-02-01 16:16 ` Vladimir Prus
2008-02-01 15:49 ` Doug Evans [this message]
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=e394668d0802010743v1ce9c2b1va050c62e00ef32fc@mail.gmail.com \
--to=dje@google.com \
--cc=gdb-patches@sources.redhat.com \
--cc=vladimir@codesourcery.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