aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-09-15 00:57:12 -0600
committerTom Tromey <tom@tromey.com>2018-09-23 23:15:12 -0600
commit2b4ad2fe4300489fd40dbe07e1675ff1cf0bee58 (patch)
tree457da478463cdd8a535b0337d9d19d0096c8805d /binutils
parentfd3ba736db19d4c7cd928f3735329339a8c8ef47 (diff)
downloadbinutils-2b4ad2fe4300489fd40dbe07e1675ff1cf0bee58.zip
binutils-2b4ad2fe4300489fd40dbe07e1675ff1cf0bee58.tar.gz
binutils-2b4ad2fe4300489fd40dbe07e1675ff1cf0bee58.tar.bz2
Consolidate gdb.GdbError handling
I noticed two nearly identical copies of the same code for handling gdb.GdbError. The only differences were in some error messages. These differences didn't seem very important, so this patch pulls the code out into a new function. 2018-09-23 Tom Tromey <tom@tromey.com> * python/py-function.c (fnpy_call): Use gdbpy_handle_exception. * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception. * python/python-internal.h (gdbpy_handle_exception): Declare. * python/py-utils.c (gdbpy_handle_exception): New function.
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions