aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-dump.c
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2023-12-11 15:41:26 +0100
committerTom Tromey <tom@tromey.com>2024-04-16 11:54:46 -0600
commit08b91f595d7e2f181e3ac18838ff5a9421aa4d33 (patch)
tree9853b8fa7586b52dcfa9ff5d08a733d6bcdd7e77 /libctf/ctf-dump.c
parentb6fc194038ce0744532d6471499326114c0f0d90 (diff)
downloadbinutils-08b91f595d7e2f181e3ac18838ff5a9421aa4d33.zip
binutils-08b91f595d7e2f181e3ac18838ff5a9421aa4d33.tar.gz
binutils-08b91f595d7e2f181e3ac18838ff5a9421aa4d33.tar.bz2
[gdb/symtab] Refactor condition in scan_attributes
In scan_attributes there's code: ... if (new_reader->cu == reader->cu && new_info_ptr > watermark_ptr && *parent_entry == nullptr) ... else if (*parent_entry == nullptr) ... ... that uses the "*parent_entry == nullptr" condition twice. Make this somewhat more readable by factoring out the condition: ... if (*parent_entry == nullptr) { if (new_reader->cu == reader->cu && new_info_ptr > watermark_ptr) ... else ... } ... This also allows us to factor out "form_addr (origin_offset, origin_is_dwz)". Tested on x86_64-linux.
Diffstat (limited to 'libctf/ctf-dump.c')
0 files changed, 0 insertions, 0 deletions