gdbserver: set ptrace flags after creating inferiors
[deliverable/binutils-gdb.git] / gdb / tracefile.c
index 0b89cfa4981ff74677a6af4167916bca9baf5f3b..c26d8db986f0034984dd057e220822756e85a994 100644 (file)
@@ -1,6 +1,6 @@
 /* Trace file support in GDB.
 
-   Copyright (C) 1997-2014 Free Software Foundation, Inc.
+   Copyright (C) 1997-2015 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -41,7 +41,7 @@
 static void
 trace_file_writer_xfree (void *arg)
 {
-  struct trace_file_writer *writer = arg;
+  struct trace_file_writer *writer = (struct trace_file_writer *) arg;
 
   writer->ops->dtor (writer);
   xfree (writer);
@@ -429,7 +429,7 @@ tracefile_fetch_registers (struct regcache *regcache, int regno)
              return;
            }
 
-         regs = alloca (register_size (gdbarch, pc_regno));
+         regs = (gdb_byte *) alloca (register_size (gdbarch, pc_regno));
          store_unsigned_integer (regs, register_size (gdbarch, pc_regno),
                                  gdbarch_byte_order (gdbarch),
                                  tp->base.loc->address);
This page took 0.025351 seconds and 4 git commands to generate.