Discussion:
[Bug cli/18301] New: add try/catch command to cli
dje at google dot com
2015-04-22 19:19:32 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18301

Bug ID: 18301
Summary: add try/catch command to cli
Product: gdb
Version: HEAD
Status: NEW
Severity: enhancement
Priority: P2
Component: cli
Assignee: unassigned at sourceware dot org
Reporter: dje at google dot com

IWBN if gdb's scripting language had a try/catch command.

One use case is being able to do something regardless of whether python is
present (with python one can cope with errors in gdb commands).

"catch" is already a gdb command, so try/except would be better.

try
foo
except
bar
end

or some such.
--
You are receiving this mail because:
You are on the CC list for the bug.
palves at redhat dot com
2015-04-23 08:50:37 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18301

Pedro Alves <palves at redhat dot com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com

--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
See Bug 8487.
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-04-18 17:13:22 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18301

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |tromey at sourceware dot org
Resolution|--- |DUPLICATE

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Dup.

*** This bug has been marked as a duplicate of bug 8487 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...