aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/expop.h8
-rw-r--r--gdb/expprint.c6
2 files changed, 8 insertions, 6 deletions
diff --git a/gdb/expop.h b/gdb/expop.h
index 9e6ab0d..bfe55e4 100644
--- a/gdb/expop.h
+++ b/gdb/expop.h
@@ -20,7 +20,6 @@
#ifndef EXPOP_H
#define EXPOP_H
-#include "block.h"
#include "c-lang.h"
#include "cp-abi.h"
#include "expression.h"
@@ -229,11 +228,8 @@ check_objfile (struct symbol *sym, struct objfile *objfile)
return check_objfile (sym->objfile (), objfile);
}
-static inline bool
-check_objfile (const struct block *block, struct objfile *objfile)
-{
- return check_objfile (block_objfile (block), objfile);
-}
+extern bool check_objfile (const struct block *block,
+ struct objfile *objfile);
static inline bool
check_objfile (const block_symbol &sym, struct objfile *objfile)
diff --git a/gdb/expprint.c b/gdb/expprint.c
index b70645f..63004f7 100644
--- a/gdb/expprint.c
+++ b/gdb/expprint.c
@@ -75,6 +75,12 @@ debug_exp (struct expression *exp)
namespace expr
{
+bool
+check_objfile (const struct block *block, struct objfile *objfile)
+{
+ return check_objfile (block_objfile (block), objfile);
+}
+
void
dump_for_expression (struct ui_file *stream, int depth, enum exp_opcode op)
{