aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-01-31 01:24:03 +0000
committerAndrew Cagney <cagney@redhat.com>2001-01-31 01:24:03 +0000
commit4fcf66da885273eeeea8e14b771d0e3ea20799d9 (patch)
tree54c8a3ebd35bd426e7f39acd89ac000930cc3a39 /gdb/breakpoint.c
parente191e0abe5e90c81f39b0a428de8e4e44184161f (diff)
downloadgdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.zip
gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.gz
gdb-4fcf66da885273eeeea8e14b771d0e3ea20799d9.tar.bz2
Replace strsave() with xstrdup().
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index a3ef479..3dea304 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -1,6 +1,6 @@
/* Everything about breakpoints, for GDB.
- Copyright 1986, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999, 2000
- Free Software Foundation, Inc.
+ Copyright 1986, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999,
+ 2000, 2001 Free Software Foundation, Inc.
This file is part of GDB.
@@ -3871,7 +3871,7 @@ create_longjmp_breakpoint (char *func_name)
b->enable = disabled;
b->silent = 1;
if (func_name)
- b->addr_string = strsave (func_name);
+ b->addr_string = xstrdup (func_name);
b->number = internal_breakpoint_number--;
}
@@ -3928,7 +3928,7 @@ create_thread_event_breakpoint (CORE_ADDR address)
b->enable = enabled;
/* addr_string has to be used or breakpoint_re_set will delete me. */
sprintf (addr_string, "*0x%s", paddr (b->address));
- b->addr_string = strsave (addr_string);
+ b->addr_string = xstrdup (addr_string);
return b;
}