diff options
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r-- | gdb/python/python.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c index 1c2d5c600e5..156500ada73 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -748,7 +748,13 @@ gdbpy_decode_line (PyObject *self, PyObject *args) TRY { if (location != NULL) - sals = decode_line_1 (location, 0, 0, 0); + { + struct decode_line_options options; + + init_decode_line_options (&options); + options.flags = 0; + sals = decode_line_1 (location, &options); + } else { set_default_source_symtab_and_line (); |