diff options
author | Mark Kettenis <kettenis@gnu.org> | 2002-04-08 21:53:00 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2002-04-08 21:53:00 +0000 |
commit | a4e4e50196d9a712db4221a8d00b8e613d77336b (patch) | |
tree | 14fdf057777041c9ab2d3fcf7c5ee3093211d509 /gdb | |
parent | 46fe4e66d4ed8b285bf0c9f3e783ce8c5e05f481 (diff) | |
download | gdb-a4e4e50196d9a712db4221a8d00b8e613d77336b.zip gdb-a4e4e50196d9a712db4221a8d00b8e613d77336b.tar.gz gdb-a4e4e50196d9a712db4221a8d00b8e613d77336b.tar.bz2 |
* fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
s/asprintf/xasprintf/.
(fbsd_make_corefile_notes): s/strdup/xstrdup/.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/fbsd-proc.c | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7d50840..d8b337d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-04-07 Mark Kettenis <kettenis@gnu.org> + + * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions): + s/asprintf/xasprintf/. + (fbsd_make_corefile_notes): s/strdup/xstrdup/. + 2002-04-07 Andrew Cagney <ac131313@redhat.com> I believe Jeff Law denies responsability for this one: diff --git a/gdb/fbsd-proc.c b/gdb/fbsd-proc.c index 91746d6..c68238d 100644 --- a/gdb/fbsd-proc.c +++ b/gdb/fbsd-proc.c @@ -35,7 +35,7 @@ child_pid_to_exec_file (int pid) char *path; char *buf; - asprintf (&path, "/proc/%d/file", pid); + xasprintf (&path, "/proc/%d/file", pid); buf = xcalloc (MAXPATHLEN, sizeof (char)); make_cleanup (xfree, path); make_cleanup (xfree, buf); @@ -84,7 +84,7 @@ fbsd_find_memory_regions (int (*func) (CORE_ADDR, char protection[4]; int read, write, exec; - asprintf (&mapfilename, "/proc/%ld/map", (long) pid); + xasprintf (&mapfilename, "/proc/%ld/map", (long) pid); mapfile = fopen (mapfilename, "r"); if (mapfile == NULL) error ("Couldn't open %s\n", mapfilename); @@ -145,7 +145,7 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size) if (get_exec_file (0)) { char *fname = strrchr (get_exec_file (0), '/') + 1; - char *psargs = strdup (fname); + char *psargs = xstrdup (fname); if (get_inferior_args ()) psargs = reconcat (psargs, psargs, " ", get_inferior_args (), NULL); |