aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc64-netbsd-tdep.c
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2024-06-03 17:18:30 +0200
committerHannes Domani <ssbssa@yahoo.de>2024-06-03 17:18:30 +0200
commitf74da7b8b3d6f14ba9ad21b380f743e4bdc4e952 (patch)
tree51da3aa988b6f38d4eaec4bbe864be911ebca043 /gdb/sparc64-netbsd-tdep.c
parent8e8b2ab688b3d7e6035e6c782a2b42501d57c667 (diff)
downloadgdb-f74da7b8b3d6f14ba9ad21b380f743e4bdc4e952.zip
gdb-f74da7b8b3d6f14ba9ad21b380f743e4bdc4e952.tar.gz
gdb-f74da7b8b3d6f14ba9ad21b380f743e4bdc4e952.tar.bz2
Allow calling of convenience functions with python
As mentioned in PR13326, currently when you try to call a convenience function with python, you get this error: (gdb) py print(gdb.convenience_variable("_isvoid")(3)) Traceback (most recent call last): File "<string>", line 1, in <module> RuntimeError: Value is not callable (not TYPE_CODE_FUNC or TYPE_CODE_METHOD). Error while executing Python code. So this extends valpy_call to handle TYPE_CODE_INTERNAL_FUNCTION as well, making this possible: (gdb) py print(gdb.convenience_variable("_isvoid")(3)) 0 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=13326 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/sparc64-netbsd-tdep.c')
0 files changed, 0 insertions, 0 deletions