X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Frs6000-nat.c;h=833cf01619593f1f737405b53ea5fb05b8b15b89;hb=6a2c1b8790e58ce0688507b5b1f8369aa621a665;hp=8f5d25cdb3093a4b66296361b948a7e9594da4f7;hpb=bcc0c096d5b0f77482cdb3154acd2515a0ca832f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index 8f5d25cdb3..833cf01619 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -162,7 +162,7 @@ static void fetch_register (struct regcache *regcache, int regno) { struct gdbarch *gdbarch = get_regcache_arch (regcache); - int addr[MAX_REGISTER_SIZE]; + int addr[PPC_MAX_REGISTER_SIZE]; int nr, isfloat; pid_t pid = ptid_get_pid (regcache_get_ptid (regcache)); @@ -221,7 +221,7 @@ static void store_register (struct regcache *regcache, int regno) { struct gdbarch *gdbarch = get_regcache_arch (regcache); - int addr[MAX_REGISTER_SIZE]; + int addr[PPC_MAX_REGISTER_SIZE]; int nr, isfloat; pid_t pid = ptid_get_pid (regcache_get_ptid (regcache)); @@ -524,11 +524,13 @@ rs6000_wait (struct target_ops *ops, /* Set the current architecture from the host running GDB. Called when starting a child process. */ -static void (*super_create_inferior) (struct target_ops *,char *exec_file, - char *allargs, char **env, int from_tty); +static void (*super_create_inferior) (struct target_ops *, + const char *exec_file, + const std::string &allargs, + char **env, int from_tty); static void -rs6000_create_inferior (struct target_ops * ops, char *exec_file, - char *allargs, char **env, int from_tty) +rs6000_create_inferior (struct target_ops * ops, const char *exec_file, + const std::string &allargs, char **env, int from_tty) { enum bfd_architecture arch; unsigned long mach;