Revert "[gdb/symtab] Fix infinite recursion in dwarf2_cu::get_builder()"
authorTom de Vries <tdevries@suse.de>
Wed, 12 May 2021 14:03:02 +0000 (16:03 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 12 May 2021 14:03:02 +0000 (16:03 +0200)
commit3db19b2d7241efde4ca9a7b0e6f33b0929f0cf03
tree68c8bdedbf0083e0fc8fcd37d6931d0541519127
parenta7077ce7604f78b896595dceccd89d70d2a050a0
Revert "[gdb/symtab] Fix infinite recursion in dwarf2_cu::get_builder()"

This reverts commit 4cf88725da1cb503be04d3237354105ec170bc86.

It causes the following regression:
...
$ cat shadow.cc
namespace A {}

int
main()
{
  using namespace A;
  return 0;
}
$ g++-10 -g shadow.cc -flto -o shadow
$ ./gdb -q -batch ./shadow  -ex "b main"
Aborted (core dumped)
...
gdb/ChangeLog
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/dwarf2/read.c