if (block == NULL)
gdbarch = target_gdbarch ();
else
- gdbarch = block_gdbarch (block);
+ gdbarch = block->gdbarch ();
sym.symbol
= language_lookup_primitive_type_as_symbol (this, gdbarch, name);
if (sym.symbol != NULL)
/* See block. */
struct gdbarch *
-block_gdbarch (const struct block *block)
+block::gdbarch () const
{
- if (block->function () != nullptr)
- return block->function ()->arch ();
+ if (function () != nullptr)
+ return function ()->arch ();
- return block->objfile ()->arch ();
+ return objfile ()->arch ();
}
/* See block.h. */
struct objfile *objfile () const;
+ /* Return the architecture of this block. */
+
+ struct gdbarch *gdbarch () const;
+
/* Addresses in the executable code that are in this block. */
CORE_ADDR m_start;
struct block *m_blocks[1];
};
-/* Return the architecture of BLOCK, which must be non-NULL. */
-
-extern struct gdbarch *block_gdbarch (const struct block *block);
-
extern struct symbol *block_linkage_function (const struct block *);
extern struct symbol *block_containing_function (const struct block *);
if (block == NULL)
gdbarch = target_gdbarch ();
else
- gdbarch = block_gdbarch (block);
+ gdbarch = block->gdbarch ();
sym.symbol
= language_lookup_primitive_type_as_symbol (langdef, gdbarch, name);
sym.block = NULL;
if (block == NULL)
gdbarch = target_gdbarch ();
else
- gdbarch = block_gdbarch (block);
+ gdbarch = block->gdbarch ();
sym.symbol
= language_lookup_primitive_type_as_symbol (langdef, gdbarch, name);
sym.block = NULL;
if (block == NULL)
gdbarch = target_gdbarch ();
else
- gdbarch = block_gdbarch (block);
+ gdbarch = block->gdbarch ();
result.symbol = language_lookup_primitive_type_as_symbol (this,
gdbarch, name);
result.block = NULL;