std::vector<struct block *> m_blocks;
};
+using blockvector_up = std::unique_ptr<blockvector>;
+
extern const struct blockvector *blockvector_for_pc (CORE_ADDR,
const struct block **);
(struct block *static_block, bool expandable)
{
struct compunit_symtab *cu = m_compunit_symtab;
- std::unique_ptr<blockvector> blockvector;
struct subfile *subfile;
CORE_ADDR end_addr;
finish_block_internal (NULL, get_global_symbols (), NULL, NULL,
m_last_source_start_addr, end_addr,
true, expandable);
- blockvector = make_blockvector ();
+ blockvector_up blockvector = make_blockvector ();
/* Read the line table if it has to be read separately.
This is only used by xcoffread.c. */
#ifndef GDB_BUILDSYM_H
#define GDB_BUILDSYM_H
+#include "block.h"
#include "gdbsupport/gdb_obstack.h"
#include "symtab.h"
#include "addrmap.h"
CORE_ADDR start, CORE_ADDR end,
bool is_global, bool expandable);
- std::unique_ptr<blockvector> make_blockvector ();
+ blockvector_up make_blockvector ();
void watch_main_source_file_lossage ();