* fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
This commit is contained in:
parent
5e681ec414
commit
25e60c9b2c
|
@ -1,5 +1,7 @@
|
||||||
2003-10-29 Mark Kettenis <kettenis@gnu.org>
|
2003-10-29 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
|
||||||
|
|
||||||
* corelow.c: Include "arch-utils.h", "regset.h" and
|
* corelow.c: Include "arch-utils.h", "regset.h" and
|
||||||
"gdb_assert.h".
|
"gdb_assert.h".
|
||||||
(core_gdbarch): New variable.
|
(core_gdbarch): New variable.
|
||||||
|
|
|
@ -129,19 +129,13 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size)
|
||||||
char *note_data = NULL;
|
char *note_data = NULL;
|
||||||
|
|
||||||
fill_gregset (&gregs, -1);
|
fill_gregset (&gregs, -1);
|
||||||
note_data = (char *) elfcore_write_prstatus (obfd,
|
note_data = elfcore_write_prstatus (obfd, note_data, note_size,
|
||||||
note_data,
|
ptid_get_pid (inferior_ptid),
|
||||||
note_size,
|
stop_signal, &gregs);
|
||||||
ptid_get_pid (inferior_ptid),
|
|
||||||
stop_signal,
|
|
||||||
&gregs);
|
|
||||||
|
|
||||||
fill_fpregset (&fpregs, -1);
|
fill_fpregset (&fpregs, -1);
|
||||||
note_data = (char *) elfcore_write_prfpreg (obfd,
|
note_data = elfcore_write_prfpreg (obfd, note_data, note_size,
|
||||||
note_data,
|
&fpregs, sizeof (fpregs));
|
||||||
note_size,
|
|
||||||
&fpregs,
|
|
||||||
sizeof (fpregs));
|
|
||||||
|
|
||||||
if (get_exec_file (0))
|
if (get_exec_file (0))
|
||||||
{
|
{
|
||||||
|
@ -151,11 +145,8 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size)
|
||||||
if (get_inferior_args ())
|
if (get_inferior_args ())
|
||||||
psargs = reconcat (psargs, psargs, " ", get_inferior_args (), NULL);
|
psargs = reconcat (psargs, psargs, " ", get_inferior_args (), NULL);
|
||||||
|
|
||||||
note_data = (char *) elfcore_write_prpsinfo (obfd,
|
note_data = elfcore_write_prpsinfo (obfd, note_data, note_size,
|
||||||
note_data,
|
fname, psargs);
|
||||||
note_size,
|
|
||||||
fname,
|
|
||||||
psargs);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
make_cleanup (xfree, note_data);
|
make_cleanup (xfree, note_data);
|
||||||
|
|
Loading…
Reference in New Issue