This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]