aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorAleksandar Ristovski <aristovski@qnx.com>2012-02-15 19:27:59 +0000
committerAleksandar Ristovski <aristovski@qnx.com>2012-02-15 19:27:59 +0000
commit4cb6da1cdd239a764f8a08f5aff0ab82ad270a7f (patch)
tree3dc49bee8dc4e59ca0a2cc05dfd789d290c86fda /gdb/stack.c
parent3af2590d3ee379d7e7ad4a1019887d3983721227 (diff)
downloadgdb-4cb6da1cdd239a764f8a08f5aff0ab82ad270a7f.zip
gdb-4cb6da1cdd239a764f8a08f5aff0ab82ad270a7f.tar.gz
gdb-4cb6da1cdd239a764f8a08f5aff0ab82ad270a7f.tar.bz2
* 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.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 95bb631..070d658 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -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. */