diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2025-04-24 11:13:37 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2025-04-24 12:50:20 -0400 |
commit | a163e2015a4e2f9b6701832d3c40f848524e4793 (patch) | |
tree | 34048802165176437c80e34939afbfb9f1380f9c /libctf/ctf-error.c | |
parent | 93e6a942e9707e0f229d61772651ae6cf38200c5 (diff) | |
download | binutils-a163e2015a4e2f9b6701832d3c40f848524e4793.zip binutils-a163e2015a4e2f9b6701832d3c40f848524e4793.tar.gz binutils-a163e2015a4e2f9b6701832d3c40f848524e4793.tar.bz2 |
gdb: fix completion of anonymous struct members
Completing fields inside an anonymous struct does not work. With:
struct commit_counters_hot {
union {
struct {
long owner;
};
char padding[16];
};
};
I get:
(gdb) complete print cc_hot.
print cc_hot.padding
After this patch, I get:
(gdb) complete print cc_hot.
print cc_hot.owner
print cc_hot.padding
Update break1.c to include an anonymous struct. The tests that complete
"z_field" inside gdb.base/completion.exp would start to fail without the
fix.
Change-Id: I46b65a95ad16b0825de58dfa241777fe57acc361
Reviewed-By: Keith Seitz <keiths@redhat.com>
Diffstat (limited to 'libctf/ctf-error.c')
0 files changed, 0 insertions, 0 deletions