diff options
author | Tom Tromey <tromey@adacore.com> | 2022-10-18 11:32:52 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-10-31 08:49:06 -0600 |
commit | 86430497337968e6163aef370c6312e7b5ed6504 (patch) | |
tree | cc8e805321dc54a833dcc8fea91acf661a444373 /sim/m32c | |
parent | 1bf074fb6b5474f94e315d7047c0500535f0a2ef (diff) | |
download | binutils-86430497337968e6163aef370c6312e7b5ed6504.zip binutils-86430497337968e6163aef370c6312e7b5ed6504.tar.gz binutils-86430497337968e6163aef370c6312e7b5ed6504.tar.bz2 |
Fix regression in pointer-to-member printing
PR c++/29243 points out that "info func" on a certain C++ executable
will cause an infinite loop in gdb.
I tracked this down to a bug introduced by commit 6b5a7bc76 ("Handle
member pointers directly in generic_value_print"). Before this
commit, the C++ code to print a member pointer would wind up calling
value_print_scalar_formatted; but afterward it simply calls
generic_value_print and gets into a loop.
This patch restores the previous behavior and adds a regression test.
Diffstat (limited to 'sim/m32c')
0 files changed, 0 insertions, 0 deletions