Inline breakpoints
authorPedro Alves <palves@redhat.com>
Thu, 14 Jun 2018 11:23:56 +0000 (12:23 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 14 Jun 2018 11:24:39 +0000 (12:24 +0100)
commita898ca0e0c5893c58b60a7f76225d104df240549
treefc1b5a6e74aaf89d9b8b0fa500db62f215f4ccc8
parent1d39de443a38448226ffc408290c17c54c598c39
Inline breakpoints

gdb/ChangeLog:
yyyy-mm-dd  Pedro Alves  <palves@redhat.com>

* inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
parameter with a block parameter.  Compare location's block symbol
with the frame's block instead of addresses.
(skip_inline_frames): Pass the current block instead of the
frame's address.  Break out as soon as we determine the frame
should not be skipped.

gdb/testsuite/ChangeLog:
yyyy-mm-dd  Pedro Alves  <palves@redhat.com>

* gdb.opt/inline-break.c (func_callee, func_caller): New.
(main): Call func_caller.
gdb/inline-frame.c
gdb/testsuite/gdb.opt/inline-break.c
gdb/testsuite/gdb.opt/inline-break.exp