Make skip without argument skip the current inline function
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 25 Dec 2019 15:35:32 +0000 (16:35 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 14 Jan 2020 20:20:16 +0000 (21:20 +0100)
commit717c684dd1afe36293a256aa2bce4b3af56402c5
tree0d2e12e16f47a0806a7fb63d843e4e250b7719bc
parente44925ae5689fc997b833d039e971484f54bd8c0
Make skip without argument skip the current inline function

Previously always the outermost function block was used, but
since skip is now able to skip over inline functions it is more
natural to skip the inline function that the program is currently
executing.

gdb:
2020-01-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>

* skip.c (skip_function_command): Make skip w/o arguments use the
name of the inlined function if pc is inside any inlined function.

gdb/testsuite:
2020-01-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>

* gdb.base/skip-inline.exp: Extend test.
gdb/ChangeLog
gdb/skip.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/skip-inline.exp