diff options
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-finishbreakpoint.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/python/py-finishbreakpoint.c b/gdb/python/py-finishbreakpoint.c index 351f68c..45a7d87 100644 --- a/gdb/python/py-finishbreakpoint.c +++ b/gdb/python/py-finishbreakpoint.c @@ -107,10 +107,7 @@ bpfinishpy_pre_stop_hook (struct gdbpy_breakpoint_object *bp_obj) value_object_to_value (self_finishbp->function_value); struct type *value_type = type_object_to_type (self_finishbp->return_type); - - /* bpfinishpy_init cannot finish into DUMMY_FRAME (throws an error - in such case) so it is OK to always pass CTX_SAVER as NULL. */ - struct value *ret = get_return_value (function, value_type, NULL); + struct value *ret = get_return_value (function, value_type); if (ret) { |