aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1993-09-30 19:06:33 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1993-09-30 19:06:33 +0000
commit8d658c0866a3cb9beb3a049e1110858c29458e7d (patch)
tree08c3b25b481339cbc78d3ac0d64455df05198d02 /gdb/c-exp.y
parent185d20fcda2952210613d37d59dde24e1fafa237 (diff)
downloadgdb-8d658c0866a3cb9beb3a049e1110858c29458e7d.zip
gdb-8d658c0866a3cb9beb3a049e1110858c29458e7d.tar.gz
gdb-8d658c0866a3cb9beb3a049e1110858c29458e7d.tar.bz2
* c-exp.y, m2-exp.y: Change type of address for msymbol to
builtin_type_long. * infptrace.c (fetch_register, store_inferior_register, child_xfer_memory): Use PTRACE_XFER_TYPE for the type of ptrace transfers. Provide an `int' default for PTRACE_XFER_TYPE.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index d3351e8..1ab991c 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -633,7 +633,7 @@ variable: qualified_name
if (msymbol != NULL)
{
write_exp_elt_opcode (OP_LONG);
- write_exp_elt_type (builtin_type_int);
+ write_exp_elt_type (builtin_type_long);
write_exp_elt_longcst ((LONGEST) SYMBOL_VALUE_ADDRESS (msymbol));
write_exp_elt_opcode (OP_LONG);
write_exp_elt_opcode (UNOP_MEMVAL);
@@ -726,7 +726,7 @@ variable: name_not_typename
if (msymbol != NULL)
{
write_exp_elt_opcode (OP_LONG);
- write_exp_elt_type (builtin_type_int);
+ write_exp_elt_type (builtin_type_long);
write_exp_elt_longcst ((LONGEST) SYMBOL_VALUE_ADDRESS (msymbol));
write_exp_elt_opcode (OP_LONG);
write_exp_elt_opcode (UNOP_MEMVAL);