Use gdbpy_enter in gdbpy_before_prompt_hook
[binutils-gdb.git] / gdb / rs6000-lynx178-tdep.c
index 3fb125a3b3a45be2a1eb6c3552905e5902bfac95..f2aa1f8448cf487b1522df89ef42a3937799d95f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2012-2016 Free Software Foundation, Inc.
+/* Copyright (C) 2012-2017 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -142,8 +142,6 @@ rs6000_lynx178_push_dummy_call (struct gdbarch *gdbarch,
       else
        {
          /* Argument can fit in one register.  No problem.  */
-         int adj = gdbarch_byte_order (gdbarch)
-                   == BFD_ENDIAN_BIG ? reg_size - len : 0;
          gdb_byte word[MAX_REGISTER_SIZE];
 
          memset (word, 0, reg_size);