diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-03-15 19:28:59 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-03-15 19:28:59 +0000 |
commit | f3df5b084eb26745b433ab9ea47e6ecff3b864ba (patch) | |
tree | 1e9de57c2ee76bf9d3f4def8aaa8c6f9f1d7df65 | |
parent | 13f6513cd468be473c97822b4907b05bc408d69c (diff) | |
download | gdb-f3df5b084eb26745b433ab9ea47e6ecff3b864ba.zip gdb-f3df5b084eb26745b433ab9ea47e6ecff3b864ba.tar.gz gdb-f3df5b084eb26745b433ab9ea47e6ecff3b864ba.tar.bz2 |
2011-03-15 Michael Snyder <msnyder@vmware.com>
* frame.c (find_frame_sal): Assert sym is not null.
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/frame.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 85a0d3f..dc48a2a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-03-15 Michael Snyder <msnyder@vmware.com> + * frame.c (find_frame_sal): Assert sym is not null. + * dbxread.c (process_one_symbol): Assert 'name' is not null. * objc-lang.c (selectors_info): Check strchr for null result. diff --git a/gdb/frame.c b/gdb/frame.c index bf3ce77..1fe6256 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1899,6 +1899,8 @@ find_frame_sal (struct frame_info *frame, struct symtab_and_line *sal) else sym = inline_skipped_symbol (inferior_ptid); + /* If frame is inline, it certainly has symbols. */ + gdb_assert (sym); init_sal (sal); if (SYMBOL_LINE (sym) != 0) { |