mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
gdb: introduce blockvector_up
Change-Id: Id43c5982969f85b5931ba8a32d208a7326ed3492 Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
@@ -512,6 +512,8 @@ private:
|
|||||||
std::vector<struct block *> m_blocks;
|
std::vector<struct block *> m_blocks;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
using blockvector_up = std::unique_ptr<blockvector>;
|
||||||
|
|
||||||
extern const struct blockvector *blockvector_for_pc (CORE_ADDR,
|
extern const struct blockvector *blockvector_for_pc (CORE_ADDR,
|
||||||
const struct block **);
|
const struct block **);
|
||||||
|
|
||||||
|
|||||||
@@ -830,7 +830,6 @@ buildsym_compunit::end_compunit_symtab_from_static_block
|
|||||||
(struct block *static_block, bool expandable)
|
(struct block *static_block, bool expandable)
|
||||||
{
|
{
|
||||||
struct compunit_symtab *cu = m_compunit_symtab;
|
struct compunit_symtab *cu = m_compunit_symtab;
|
||||||
std::unique_ptr<blockvector> blockvector;
|
|
||||||
struct subfile *subfile;
|
struct subfile *subfile;
|
||||||
CORE_ADDR end_addr;
|
CORE_ADDR end_addr;
|
||||||
|
|
||||||
@@ -856,7 +855,7 @@ buildsym_compunit::end_compunit_symtab_from_static_block
|
|||||||
finish_block_internal (NULL, get_global_symbols (), NULL, NULL,
|
finish_block_internal (NULL, get_global_symbols (), NULL, NULL,
|
||||||
m_last_source_start_addr, end_addr,
|
m_last_source_start_addr, end_addr,
|
||||||
true, expandable);
|
true, expandable);
|
||||||
blockvector = make_blockvector ();
|
blockvector_up blockvector = make_blockvector ();
|
||||||
|
|
||||||
/* Read the line table if it has to be read separately.
|
/* Read the line table if it has to be read separately.
|
||||||
This is only used by xcoffread.c. */
|
This is only used by xcoffread.c. */
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#ifndef GDB_BUILDSYM_H
|
#ifndef GDB_BUILDSYM_H
|
||||||
#define GDB_BUILDSYM_H
|
#define GDB_BUILDSYM_H
|
||||||
|
|
||||||
|
#include "block.h"
|
||||||
#include "gdbsupport/gdb_obstack.h"
|
#include "gdbsupport/gdb_obstack.h"
|
||||||
#include "symtab.h"
|
#include "symtab.h"
|
||||||
#include "addrmap.h"
|
#include "addrmap.h"
|
||||||
@@ -344,7 +345,7 @@ private:
|
|||||||
CORE_ADDR start, CORE_ADDR end,
|
CORE_ADDR start, CORE_ADDR end,
|
||||||
bool is_global, bool expandable);
|
bool is_global, bool expandable);
|
||||||
|
|
||||||
std::unique_ptr<blockvector> make_blockvector ();
|
blockvector_up make_blockvector ();
|
||||||
|
|
||||||
void watch_main_source_file_lossage ();
|
void watch_main_source_file_lossage ();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user