]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR python/18565 - make Frame.function work for inline frames
authorTom Tromey <tom@tromey.com>
Mon, 13 Jun 2016 02:45:29 +0000 (20:45 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 3 Aug 2016 15:56:55 +0000 (09:56 -0600)
commitff4a25a115a0f477174eb0b4763d186a590c035a
treeefe15a0664fa0644eb23fdd0ee44ecb5562e9245
parentd2ed2edaf76fc10505214290d04c3cf312acfbca
PR python/18565 - make Frame.function work for inline frames

PR python/18565 notes that calling frame filters don't work properly for
inlined functions.  This happens because Frame.function on an inline
frame will yield the wrong result.  This patch changes this code to use
find_frame_funname instead, which handles inline frames properly.

Built and regtested on x86-64 Fedora 24.

2016-08-03  Tom Tromey  <tom@tromey.com>

PR python/18565:
* python/py-frame.c (frapy_function): Use find_frame_funname.

2016-08-03  Tom Tromey  <tom@tromey.com>

PR python/18565:
* gdb.python/py-frame-inline.exp: Add Frame.function test.
gdb/ChangeLog
gdb/python/py-frame.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-frame-inline.exp