diff options
author | Tom Tromey <tom@tromey.com> | 2021-04-22 19:39:56 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-04-22 19:39:56 -0600 |
commit | 432ce4cf6800a3693656fde1306d83ce767e2b2a (patch) | |
tree | bdcee743c2655bfc754a470e1e64b500d3517239 /config | |
parent | ae6a3f81a178760dc2e1dafcb680b69dc4be9a92 (diff) | |
download | binutils-432ce4cf6800a3693656fde1306d83ce767e2b2a.zip binutils-432ce4cf6800a3693656fde1306d83ce767e2b2a.tar.gz binutils-432ce4cf6800a3693656fde1306d83ce767e2b2a.tar.bz2 |
Fix ptype/o bug with "<no data fields>"
I noticed that when using ptype/o, the "<no data fields>" text that
may be emitted is indented incorrectly. This patch fixes the bug and
adds a new test case.
I also removed a stray backslash from ptype-offsets.exp that I noticed
while writing the test. This seemed too trivial to warrant a separate
patch.
gdb/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* c-typeprint.c (c_type_print_base_struct_union): Use
print_spaces_filtered_with_print_options.
gdb/testsuite/ChangeLog
2021-04-22 Tom Tromey <tom@tromey.com>
* gdb.base/ptype-offsets.cc (struct empty_member): New.
(main): Use empty_member.
* gdb.base/ptype-offsets.exp: Add new test.
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions