[Bug cli/18301] New: add try/catch command to cli

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug cli/18301] New: add try/catch command to cli

rootedjoy833 at gmail dot com
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.
Reply | Threaded
Open this post in threaded view
|

[Bug cli/18301] add try/catch command to cli

rootedjoy833 at gmail dot com
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.
Reply | Threaded
Open this post in threaded view
|

[Bug cli/18301] add try/catch command to cli

rootedjoy833 at gmail dot com
In reply to this post by rootedjoy833 at gmail dot com
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.