diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-11-12 17:42:55 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-11-12 17:43:39 -0500 |
commit | bf6e5d01d7b149e116a008bd4348983c6f56e9ba (patch) | |
tree | 0f3d9451c6034d3cb0108189eb97e998e7bcf031 /gdb/dwarf2 | |
parent | e57cf1f2cdf819946494becf282e47194aa6216d (diff) | |
download | gdb-bf6e5d01d7b149e116a008bd4348983c6f56e9ba.zip gdb-bf6e5d01d7b149e116a008bd4348983c6f56e9ba.tar.gz gdb-bf6e5d01d7b149e116a008bd4348983c6f56e9ba.tar.bz2 |
gdb/dwarf: fix call to dwarf2_queue_guard in dw2_do_instantiate_symtab
It took me a while to understand why that would even compile: it looks
like we pass a type name as a pointer, that makes no sense. By looking
at the DWARF, I understood that the compiler actually interprets it as a
function declaration. So the statement was doing nothing, no
dwarf2_queue_guard was instantiated. Fix it by passing the right
variable name.
gdb/ChangeLog:
* dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
dwarf2_queue_guard.
Change-Id: I3a7bdead9e8c39f8342a471f10181b85b8f0d801
Diffstat (limited to 'gdb/dwarf2')
-rw-r--r-- | gdb/dwarf2/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 5c3849b..1b43fc8 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -2435,7 +2435,7 @@ dw2_do_instantiate_symtab (dwarf2_per_cu_data *per_cu, /* The destructor of dwarf2_queue_guard frees any entries left on the queue. After this point we're guaranteed to leave this function with the dwarf queue empty. */ - dwarf2_queue_guard q_guard (dwarf2_per_objfile); + dwarf2_queue_guard q_guard (per_objfile); if (!per_objfile->symtab_set_p (per_cu)) { |