aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-10-29 22:47:37 +0000
committerMark Kettenis <kettenis@gnu.org>2003-10-29 22:47:37 +0000
commit25e60c9b2cbe9ec7a2944b7de7d27fd5d56706d4 (patch)
tree5f6e95bd92894d5de67954550dfd5517a7c4fab1
parent5e681ec414dd2ebb9e926a6cfd25f23d45aba70f (diff)
downloadgdb-25e60c9b2cbe9ec7a2944b7de7d27fd5d56706d4.zip
gdb-25e60c9b2cbe9ec7a2944b7de7d27fd5d56706d4.tar.gz
gdb-25e60c9b2cbe9ec7a2944b7de7d27fd5d56706d4.tar.bz2
* fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/fbsd-proc.c23
2 files changed, 9 insertions, 16 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3c95606..5a6469e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,7 @@
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
"gdb_assert.h".
(core_gdbarch): New variable.
diff --git a/gdb/fbsd-proc.c b/gdb/fbsd-proc.c
index 6c47979..2c31768 100644
--- a/gdb/fbsd-proc.c
+++ b/gdb/fbsd-proc.c
@@ -129,19 +129,13 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size)
char *note_data = NULL;
fill_gregset (&gregs, -1);
- note_data = (char *) elfcore_write_prstatus (obfd,
- note_data,
- note_size,
- ptid_get_pid (inferior_ptid),
- stop_signal,
- &gregs);
+ note_data = elfcore_write_prstatus (obfd, note_data, note_size,
+ ptid_get_pid (inferior_ptid),
+ stop_signal, &gregs);
fill_fpregset (&fpregs, -1);
- note_data = (char *) elfcore_write_prfpreg (obfd,
- note_data,
- note_size,
- &fpregs,
- sizeof (fpregs));
+ note_data = elfcore_write_prfpreg (obfd, note_data, note_size,
+ &fpregs, sizeof (fpregs));
if (get_exec_file (0))
{
@@ -151,11 +145,8 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size)
if (get_inferior_args ())
psargs = reconcat (psargs, psargs, " ", get_inferior_args (), NULL);
- note_data = (char *) elfcore_write_prpsinfo (obfd,
- note_data,
- note_size,
- fname,
- psargs);
+ note_data = elfcore_write_prpsinfo (obfd, note_data, note_size,
+ fname, psargs);
}
make_cleanup (xfree, note_data);