summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorFernando Nasser <fnasser@redhat.com>2001-01-25 16:35:05 +0000
committerFernando Nasser <fnasser@redhat.com>2001-01-25 16:35:05 +0000
commit3738aee39078be0bf511dd5e28b4fd832e2ff8fc (patch)
tree4464c7b5e664381fec9081da61263a4cfab40420 /gdb
parenta2e86e26a672a398e5847b93a8adb2e092c8a98d (diff)
downloadgdb-3738aee39078be0bf511dd5e28b4fd832e2ff8fc.tar.gz
2001-01-24 Fernando Nasser <fnasser@redhat.com>
From Martin Hunt <hunt@cygnus.com> * generic/gdbtk-cmds.c (gdb_set_bp_addr, gdb_set_bp): Change strsave() to xstrdup().
Diffstat (limited to 'gdb')
-rw-r--r--gdb/gdbtk/generic/gdbtk-cmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdbtk/generic/gdbtk-cmds.c b/gdb/gdbtk/generic/gdbtk-cmds.c
index 79753924d57..e3517da7183 100644
--- a/gdb/gdbtk/generic/gdbtk-cmds.c
+++ b/gdb/gdbtk/generic/gdbtk-cmds.c
@@ -3774,7 +3774,7 @@ gdb_set_bp (clientData, interp, objc, objv)
/* FIXME: this won't work for duplicate basenames! */
xasprintf (&buf, "%s:%d", basename (Tcl_GetStringFromObj (objv[1], NULL)),
line);
- b->addr_string = strsave (buf);
+ b->addr_string = xstrdup (buf);
free(buf);
/* now send notification command back to GUI */
@@ -3880,7 +3880,7 @@ gdb_set_bp_addr (clientData, interp, objc, objv)
b->thread = thread;
xasprintf (&buf, "*(0x%lx)", addr);
- b->addr_string = strsave (buf);
+ b->addr_string = xstrdup (buf);
/* now send notification command back to GUI */