diff options
Diffstat (limited to 'gdb/i386obsd-tdep.c')
-rw-r--r-- | gdb/i386obsd-tdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386obsd-tdep.c b/gdb/i386obsd-tdep.c index f344a97..8684b07 100644 --- a/gdb/i386obsd-tdep.c +++ b/gdb/i386obsd-tdep.c @@ -141,7 +141,7 @@ i386obsd_aout_supply_regset (const struct regset *regset, { struct gdbarch *gdbarch = get_regcache_arch (regcache); const struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - const gdb_byte *gregs = regs; + const gdb_byte *gregs = (const gdb_byte *) regs; gdb_assert (len >= tdep->sizeof_gregset + I387_SIZEOF_FSAVE); @@ -348,7 +348,7 @@ i386obsd_trapframe_cache (struct frame_info *this_frame, void **this_cache) int i; if (*this_cache) - return *this_cache; + return (struct trad_frame_cache *) *this_cache; cache = trad_frame_cache_zalloc (this_frame); *this_cache = cache; |