}
}
-/* Push a context block. Args are an identifying nesting level
- (checkable when you pop it), and the starting PC address of this
+/* Push a context block. VALU is the starting PC address of this
context. */
context_stack &
-buildsym_compunit::push_context (int desc, CORE_ADDR valu)
+buildsym_compunit::push_context (CORE_ADDR valu)
{
context_stack &ctx
= m_context_stack.emplace_back (std::move (m_local_symbols),
m_local_using_directives,
- m_pending_blocks, valu, desc);
+ m_pending_blocks, valu);
m_local_using_directives = nullptr;
struct context_stack
{
context_stack (std::vector<symbol *> locals, using_direct *local_using_directives,
- pending_block *old_blocks, CORE_ADDR start_addr, int depth)
+ pending_block *old_blocks, CORE_ADDR start_addr)
: locals (std::move (locals)),
local_using_directives (local_using_directives),
old_blocks (old_blocks),
- start_addr (start_addr),
- depth (depth)
+ start_addr (start_addr)
{}
/* Outer locals at the time we entered. */
/* PC where this context starts. */
CORE_ADDR start_addr;
-
- /* For error-checking matching push/pop. */
- int depth;
};
/* Flags associated with a linetable entry. */
m_producer = producer;
}
- context_stack &push_context (int desc, CORE_ADDR valu);
+ context_stack &push_context (CORE_ADDR valu);
context_stack pop_context ();
}
gdb_assert (cu->get_builder () != nullptr);
- context_stack &ctx = cu->get_builder ()->push_context (0, lowpc);
+ context_stack &ctx = cu->get_builder ()->push_context (lowpc);
ctx.name = new_symbol (die, read_type_die (die, cu), cu, templ_func);
if (dwarf2_func_is_main_p (die, cu))
lowpc = per_objfile->relocate (unrel_low);
highpc = per_objfile->relocate (unrel_high);
- cu->get_builder ()->push_context (0, lowpc);
+ cu->get_builder ()->push_context (lowpc);
for (die_info *child_die : die->children ())
process_die (child_die, cu);