forked from Imagelibrary/binutils-gdb
* frame.c (find_frame_sal): Initialize sal->pspace field from frame
data. * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL. testuite: * gdb.base/break-inline.exp: New file. * gdb.base/break-inline.c: New file.
This commit is contained in:
@@ -909,6 +909,11 @@ set_last_displayed_sal (int valid, struct program_space *pspace,
|
||||
last_displayed_addr = addr;
|
||||
last_displayed_symtab = symtab;
|
||||
last_displayed_line = line;
|
||||
if (valid && pspace == NULL)
|
||||
{
|
||||
warning (_("Trying to set NULL pspace."));
|
||||
clear_last_displayed_sal ();
|
||||
}
|
||||
}
|
||||
|
||||
/* Forget the last sal we displayed. */
|
||||
|
||||
Reference in New Issue
Block a user