Add a symbol's value to the computed frag offset, rather than overwriting it.
[deliverable/binutils-gdb.git] / gdb / d10v-tdep.c
index 93e3c6e05a3f6f2c5810c1c2a25734b379600b32..cfd70b0878e3f79ce37db65f6234b60c3552279a 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-dependent code for Mitsubishi D10V, for GDB.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 2000 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -104,6 +104,11 @@ d10v_frame_chain_valid (chain, frame)
   return ((chain) != 0 && (frame) != 0 && (frame)->pc > IMEM_START);
 }
 
+CORE_ADDR
+d10v_stack_align (CORE_ADDR len)
+{
+  return (len + 1) & ~1;
+}
 
 /* Should we use EXTRACT_STRUCT_VALUE_ADDRESS instead of
    EXTRACT_RETURN_VALUE?  GCC_P is true if compiled with gcc
@@ -1334,7 +1339,7 @@ trace_info (args, from_tty)
 static int
 print_insn (memaddr, stream)
      CORE_ADDR memaddr;
-     GDB_FILE *stream;
+     struct ui_file *stream;
 {
   /* If there's no disassembler, something is very wrong.  */
   if (tm_print_insn == NULL)
This page took 0.025577 seconds and 4 git commands to generate.