From: Michael Snyder Date: Tue, 15 Mar 2011 19:28:59 +0000 (+0000) Subject: 2011-03-15 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3df5b084eb26745b433ab9ea47e6ecff3b864ba;p=binutils-gdb.git 2011-03-15 Michael Snyder * frame.c (find_frame_sal): Assert sym is not null. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 85a0d3fa723..dc48a2a3dcb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,7 @@ 2011-03-15 Michael Snyder + * 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 bf3ce77ba7e..1fe6256ff1a 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) {