* 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:
Aleksandar Ristovski
2012-02-15 19:27:59 +00:00
parent 3af2590d3e
commit 4cb6da1cdd
6 changed files with 75 additions and 0 deletions

View File

@@ -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. */