public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/30713] New: do not catch 'const gdb_exception &'
@ 2023-08-01 22:39 tromey at sourceware dot org
  2023-08-01 22:43 ` [Bug gdb/30713] " tromey at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: tromey at sourceware dot org @ 2023-08-01 22:39 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30713

            Bug ID: 30713
           Summary: do not catch 'const gdb_exception &'
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

Right now a fair amount of code looks like:

try
...
catch (const gdb_exception &)
... stuff

However,this can end up swallowing a QUIT if one is not careful.

I think it would be better to catch 'const gdb_exception_error &'
in nearly every spot.

One question is what to do with this:

struct gdb_quit_bad_alloc
  : public gdb_exception_quit,
    public std::bad_alloc


I don't know why it derives from the _quit form and not
_error.  Perhaps that's fine, though, since it would just
end up returning to the top level.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug gdb/30713] do not catch 'const gdb_exception &'
  2023-08-01 22:39 [Bug gdb/30713] New: do not catch 'const gdb_exception &' tromey at sourceware dot org
@ 2023-08-01 22:43 ` tromey at sourceware dot org
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2023-08-01 22:43 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30713

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |30714


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=30714
[Bug 30714] make DWARF CU expansion interruptible
-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-01 22:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-01 22:39 [Bug gdb/30713] New: do not catch 'const gdb_exception &' tromey at sourceware dot org
2023-08-01 22:43 ` [Bug gdb/30713] " tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).