aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2025-03-14 00:32:46 -0400
committerSimon Marchi <simon.marchi@efficios.com>2025-03-14 12:23:09 -0400
commit5d58950c0d8fbe21051462db7572cba3c9b34a69 (patch)
tree3a6dd182009b5a42b49a9440ae19fd642695c750 /gdb/python/python.c
parent8215e9b0f3cab3743c4287a897f90dcb3119a5a7 (diff)
downloadbinutils-5d58950c0d8fbe21051462db7572cba3c9b34a69.zip
binutils-5d58950c0d8fbe21051462db7572cba3c9b34a69.tar.gz
binutils-5d58950c0d8fbe21051462db7572cba3c9b34a69.tar.bz2
gdb/dwarf: factor out to cutu_reader::skip_one_attribute method
I was reading cutu_reader::skip_one_die, and thought that the code to skip one attribute made it quite difficult to read. Factor this code out to a new method, to get it out of the way. As a bonus, it transforms one goto in a recursion call, which is also easier to follow. Unfortunately, I have no idea how to test DW_FORM_indirect, as it doesn't seem to appear anywhere in the testsuite, and I don't think that compilers often emit that. Change-Id: I2257b3e594aafb7c7da52ddd55baa651cefb802f Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions