[PATCH 0/4] Fix CU expansion queue-related problems

Simon Marchi simon.marchi@polymtl.ca
Tue Nov 17 19:12:27 GMT 2020

This patch series fixes problems explained in PR 26828 [1].  The
problems are related to CU DIEs loading/freeing and the CU expansion
queue.  All the gory details are in the commit logs.

I tried to write a test case for this using the DWARF assembler but I
couldn't manage to do it.  I decided to submit the series anyway,
because I'd still like to fix the issue.  I might try again later, but I
might also not have the time, so if anybody would like to give it a try,
you are welcome.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=26828

Simon Marchi (4):
  gdb/dwarf: add some logging in dwarf2/read.c
  gdb/dwarf: add assertion in maybe_queue_comp_unit
  gdb/dwarf: don't enqueue CU in maybe_queue_comp_unit if already
  gdb/dwarf: create and destroy dwarf2_per_bfd's CUs-to-expand queue

 gdb/dwarf2/read.c | 112 ++++++++++++++++++++++++++++++----------------
 gdb/dwarf2/read.h |   2 +-
 2 files changed, 75 insertions(+), 39 deletions(-)


More information about the Gdb-patches mailing list