X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fsymm-xdep.c;h=bb19a1a37defb7c7b1a5bdb4611ad8b780fefc2f;hb=bea80b013deed137522eac146fcc413a959166bf;hp=65cab3494c931b4f73b835e7d16ea0259e0608c0;hpb=318bf84ffe5bc5472cefe0c1a838f132f9ac4ff9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/symm-xdep.c b/gdb/symm-xdep.c index 65cab3494c..bb19a1a37d 100644 --- a/gdb/symm-xdep.c +++ b/gdb/symm-xdep.c @@ -70,7 +70,7 @@ int regno; else { reg_tmp = *(int *)®isters[REGISTER_BYTE(regno)]; - ptrace(XPT_RREGS, inferior_pid, ®s, 0); + ptrace(XPT_RREGS, inferior_pid, (PTRACE_ARG3_TYPE) ®s, 0); switch (regno) { case 0: @@ -106,7 +106,7 @@ int regno; } } #endif /* 0 */ - ptrace(XPT_WREGS, inferior_pid, ®s, 0); + ptrace(XPT_WREGS, inferior_pid, (PTRACE_ARG3_TYPE) ®s, 0); } void @@ -119,7 +119,7 @@ fetch_inferior_registers (regno) registers_fetched (); - ptrace(XPT_RREGS, inferior_pid, ®s, 0); + ptrace(XPT_RREGS, inferior_pid, (PTRACE_ARG3_TYPE) ®s, 0); *(int *)®isters[REGISTER_BYTE(0)] = regs.pr_eax; *(int *)®isters[REGISTER_BYTE(5)] = regs.pr_ebx; *(int *)®isters[REGISTER_BYTE(2)] = regs.pr_ecx; @@ -179,7 +179,7 @@ core_file_command (filename, from_tty) make_cleanup (free, filename); if (have_inferior_p ()) - error ("To look at a core file, you must kill the inferior with \"kill\"."); + error ("To look at a core file, you must kill the program with \"kill\"."); corechan = open (filename, O_RDONLY, 0); if (corechan < 0) perror_with_name (filename); @@ -427,7 +427,7 @@ i386_float_info () extern int corechan; if (have_inferior_p()) { - call_ptrace(XPT_RREGS, inferior_pid, ®set, 0); + call_ptrace(XPT_RREGS, inferior_pid, (PTRACE_ARG3_TYPE) ®set, 0); } else { if (lseek (corechan, 0, 0) < 0) { perror ("seek on core file");