aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-02-12 08:12:02 -0700
committerTom Tromey <tromey@adacore.com>2024-03-08 10:50:12 -0700
commit99761c5ab53e11105b6067bc4314e74bb066006c (patch)
treede1272d440cd7d8c6680ccf36f5fa9f016706161 /gdb/infcmd.c
parent03fa0c63d3a5944afcf031ecf0b433b2985e6eeb (diff)
downloadgdb-99761c5ab53e11105b6067bc4314e74bb066006c.zip
gdb-99761c5ab53e11105b6067bc4314e74bb066006c.tar.gz
gdb-99761c5ab53e11105b6067bc4314e74bb066006c.tar.bz2
Export "finish" return value to Python
This patch changes the Python "stop" event emission code to also add the function return value, if it is known. This happens when the stop comes from a "finish" command and when the value can be fetched. The test is in the next patch. Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index c1fdbb3..ac41ebf 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1484,23 +1484,6 @@ get_return_value (struct symbol *func_symbol, struct value *function)
return value;
}
-/* The captured function return value/type and its position in the
- value history. */
-
-struct return_value_info
-{
- /* The captured return value. May be NULL if we weren't able to
- retrieve it. See get_return_value. */
- struct value *value;
-
- /* The return type. In some cases, we'll not be able extract the
- return value, but we always know the type. */
- struct type *type;
-
- /* If we captured a value, this is the value history index. */
- int value_history_index;
-};
-
/* Helper for print_return_value. */
static void