stack: fix gdb.dwarf2/dw2-undefined-ret-addr.exp regression
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 22 Jul 2016 08:01:19 +0000 (10:01 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Thu, 6 Oct 2016 12:32:44 +0000 (14:32 +0200)
commitc620c3e48d01e70c435c146905cab1a50382ce89
tree34edbc038ea17a5eddc60881b9efe29cbc294ebf
parentfcddde94ee566423cacf455a86e2e797b11d1cee
stack: fix gdb.dwarf2/dw2-undefined-ret-addr.exp regression

Commit a038fa3e14a4 stack: check frame_unwind_caller_id adds a frame_id check to
frame_info and treats a missing frame_id as NOT_AVAILABLE_ERROR.  This causes a
regression in gdb.dwarf2/dw2-undefined-ret-addr.exp.

Treat a missing frame_id as OPTIMIZED_OUT_ERROR instead.

See also https://sourceware.org/ml/gdb-patches/2016-07/msg00273.html.
gdb/ChangeLog
gdb/stack.c