projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add tiny memory model GD test cases.
[deliverable/binutils-gdb.git]
/
gdb
/
ax-gdb.c
diff --git
a/gdb/ax-gdb.c
b/gdb/ax-gdb.c
index a57d573db27736f1ebd3a3d3c005790ee19e05f7..7a9d1e7a8f03d38f9ce068f9bffcc2dc46a54137 100644
(file)
--- a/
gdb/ax-gdb.c
+++ b/
gdb/ax-gdb.c
@@
-1,6
+1,6
@@
/* GDB-specific functions for operating on agent expressions.
/* GDB-specific functions for operating on agent expressions.
- Copyright (C) 1998-201
4
Free Software Foundation, Inc.
+ Copyright (C) 1998-201
5
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-30,7
+30,6
@@
#include "target.h"
#include "ax.h"
#include "ax-gdb.h"
#include "target.h"
#include "ax.h"
#include "ax-gdb.h"
-#include <string.h>
#include "block.h"
#include "regcache.h"
#include "user-regs.h"
#include "block.h"
#include "regcache.h"
#include "user-regs.h"
@@
-41,6
+40,7
@@
#include "arch-utils.h"
#include "cli/cli-utils.h"
#include "linespec.h"
#include "arch-utils.h"
#include "cli/cli-utils.h"
#include "linespec.h"
+#include "objfiles.h"
#include "valprint.h"
#include "c-lang.h"
#include "valprint.h"
#include "c-lang.h"
@@
-712,14
+712,14
@@
gen_var_ref (struct gdbarch *gdbarch, struct agent_expr *ax,
case LOC_UNRESOLVED:
{
case LOC_UNRESOLVED:
{
- struct
minimal_symbol *
msym
+ struct
bound_minimal_symbol
msym
= lookup_minimal_symbol (SYMBOL_LINKAGE_NAME (var), NULL, NULL);
= lookup_minimal_symbol (SYMBOL_LINKAGE_NAME (var), NULL, NULL);
- if (!msym)
+ if (!msym
.minsym
)
error (_("Couldn't resolve symbol `%s'."), SYMBOL_PRINT_NAME (var));
/* Push the address of the variable. */
error (_("Couldn't resolve symbol `%s'."), SYMBOL_PRINT_NAME (var));
/* Push the address of the variable. */
- ax_const_l (ax, MSYMBOL_VALUE_ADDRESS (msym));
+ ax_const_l (ax,
B
MSYMBOL_VALUE_ADDRESS (msym));
value->kind = axs_lvalue_memory;
}
break;
value->kind = axs_lvalue_memory;
}
break;
@@
-2187,7
+2187,7
@@
gen_expr (struct expression *exp, union exp_element **pc,
case OP_THIS:
{
struct symbol *sym, *func;
case OP_THIS:
{
struct symbol *sym, *func;
- struct block *b;
+
const
struct block *b;
const struct language_defn *lang;
b = block_for_pc (ax->scope);
const struct language_defn *lang;
b = block_for_pc (ax->scope);
This page took
0.024941 seconds
and
4
git commands to generate.