aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-frame.c')
-rw-r--r--gdb/python/py-frame.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/python/py-frame.c b/gdb/python/py-frame.c
index 891f44e..c5ae391 100644
--- a/gdb/python/py-frame.c
+++ b/gdb/python/py-frame.c
@@ -468,14 +468,13 @@ static PyObject *
frapy_find_sal (PyObject *self, PyObject *args)
{
struct frame_info *frame;
- struct symtab_and_line sal;
PyObject *sal_obj = NULL; /* Initialize to appease gcc warning. */
TRY
{
FRAPY_REQUIRE_VALID (self, frame);
- find_frame_sal (frame, &sal);
+ symtab_and_line sal = find_frame_sal (frame);
sal_obj = symtab_and_line_to_sal_object (sal);
}
CATCH (except, RETURN_MASK_ALL)