2009-10-19 Michael Snyder <msnyder@vmware.com>
[deliverable/binutils-gdb.git] / gdb / scm-exp.c
index 2c6e0b499776b3bf66e81b7d5253e9a70f92e182..1dd161594256f0d0ea7e65e204a6bc7622692b35 100644 (file)
@@ -312,7 +312,8 @@ tryagain:
          if (!is_scmvalue_type (value_type (val)))
            error ("quoted scm form yields non-SCM value");
          svalue = extract_signed_integer (value_contents (val),
-                                          TYPE_LENGTH (value_type (val)));
+                                          TYPE_LENGTH (value_type (val)),
+                                          gdbarch_byte_order (parse_gdbarch));
          goto handle_immediate;
        }
       return;
@@ -470,7 +471,7 @@ handle_immediate:
   if (!skipping)
     {
       write_exp_elt_opcode (OP_LONG);
-      write_exp_elt_type (builtin_type_scm);
+      write_exp_elt_type (builtin_scm_type (parse_gdbarch)->builtin_scm);
       write_exp_elt_longcst (svalue);
       write_exp_elt_opcode (OP_LONG);
     }
This page took 0.035994 seconds and 4 git commands to generate.