stack: check frame_unwind_caller_id
authorMarkus Metzger <markus.t.metzger@intel.com>
Thu, 11 Feb 2016 10:07:09 +0000 (11:07 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Fri, 12 Feb 2016 08:46:31 +0000 (09:46 +0100)
commita038fa3e14a477d4d72a26c2e139fa47d2774be2
tree6cf48ff732e34f47017006f91ed34c014445454d
parent2f3ef606b91298855e9ea13ae0e0316c23f06c9b
stack: check frame_unwind_caller_id

Callers of frame_unwind_caller_* functions are supposed to check
frame_unwind_caller_id.

Add such a check to frame_info and treat an invalid caller ID as if the caller
PC were not available.

gdb/
* stack.c (frame_info): Check frame_unwind_caller_id.
gdb/ChangeLog
gdb/stack.c