diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-06-28 23:59:29 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-06-28 23:59:29 +0000 |
commit | b435e160dd3606c70fee73fa1461cf26607e4d6f (patch) | |
tree | b19307c5598434fbf741b2b6c707dd43508da24a /gdb/fbsd-proc.c | |
parent | e073c4747aebd9b65de341f6201fa479e57ea275 (diff) | |
download | gdb-b435e160dd3606c70fee73fa1461cf26607e4d6f.zip gdb-b435e160dd3606c70fee73fa1461cf26607e4d6f.tar.gz gdb-b435e160dd3606c70fee73fa1461cf26607e4d6f.tar.bz2 |
2004-06-26 Andrew Cagney <cagney@gnu.org>
* xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
xstrprintf.
* varobj.c (varobj_gen_name, create_child, c_name_of_child)
(c_value_of_variable): Ditto.
* utils.c (internal_vproblem): Ditto.
* solib-aix5.c (build_so_list_from_mapfile): Ditto.
* remote.c (add_packet_config_cmd): Ditto.
* remote-rdp.c (rdp_set_command_line): Ditto.
* regcache.c (regcache_dump): Ditto.
* frv-tdep.c (new_variant, new_variant): Ditto.
* fbsd-proc.c (child_pid_to_exec_file): Ditto.
(fbsd_find_memory_regions): Ditto.
* breakpoint.c (create_thread_event_breakpoint)
(create_breakpoints): Ditto.
* aix-thread.c (aix_thread_pid_to_str): Ditto.
* ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
Index: doc/ChangeLog
2004-06-26 Andrew Cagney <cagney@gnu.org>
* gdbint.texinfo (Coding): Replace xasprintf with xstrprintf.
Diffstat (limited to 'gdb/fbsd-proc.c')
-rw-r--r-- | gdb/fbsd-proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/fbsd-proc.c b/gdb/fbsd-proc.c index 8eed4cc..f021d27 100644 --- a/gdb/fbsd-proc.c +++ b/gdb/fbsd-proc.c @@ -38,7 +38,7 @@ child_pid_to_exec_file (int pid) char *path; char *buf; - xasprintf (&path, "/proc/%d/file", pid); + path = xstrprintf ("/proc/%d/file", pid); buf = xcalloc (MAXPATHLEN, sizeof (char)); make_cleanup (xfree, path); make_cleanup (xfree, buf); @@ -82,7 +82,7 @@ fbsd_find_memory_regions (int (*func) (CORE_ADDR, unsigned long, char protection[4]; int read, write, exec; - xasprintf (&mapfilename, "/proc/%ld/map", (long) pid); + mapfilename = xstrprintf ("/proc/%ld/map", (long) pid); mapfile = fopen (mapfilename, "r"); if (mapfile == NULL) error ("Couldn't open %s\n", mapfilename); |