aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.c
diff options
context:
space:
mode:
authorJeff Holcomb <jeffh@redhat.com>2001-01-26 19:47:23 +0000
committerJeff Holcomb <jeffh@redhat.com>2001-01-26 19:47:23 +0000
commit5b616ba11e5389dc47b9d85a3cbfbdbb54955801 (patch)
treeb9efaef3347e013222c3a8b373607dbef3007a0f /gdb/varobj.c
parentb91d87cfc7f7c17338c5100c06424cc1b0b59c28 (diff)
downloadfsf-binutils-gdb-5b616ba11e5389dc47b9d85a3cbfbdbb54955801.zip
fsf-binutils-gdb-5b616ba11e5389dc47b9d85a3cbfbdbb54955801.tar.gz
fsf-binutils-gdb-5b616ba11e5389dc47b9d85a3cbfbdbb54955801.tar.bz2
2001-01-24 Jeff Holcomb <jeffh@redhat.com>
* remote-udi.c (udi_open): Change strdup to xstrdup. * thread.c (thread_apply_all_command): Change strdup to xstrdup. Update copyright message. * varobj.c (delete_variable_1): Likewise. * gdb_string.h: Remove declaration of strdup. Update copyright message. * config/xm-mpw.h: Likewise. * config/i386/xm-i386mach.h: Likewise. * config/m68k/xm-apollo68b.h: Likewise. * config/m68k/xm-hp300bsd.h: Likewise. * config/rs6000/xm-rs6000.h: Likewise. * config/vax/xm-vaxult.h: Remove declaration of strdup. * config/vax/xm-vaxult2.h: Likewise.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r--gdb/varobj.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c
index ae024a4..97e2a4e 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -1,5 +1,5 @@
/* Implementation of the GDB variable objects API.
- Copyright 1999, 2000 Free Software Foundation, Inc.
+ Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -1072,7 +1072,7 @@ delete_variable_1 (struct cpstack **resultp, int *delcountp, struct varobj *var,
yet been installed, don't report it, it belongs to the caller... */
if (var->obj_name != NULL)
{
- cppush (resultp, strdup (var->obj_name));
+ cppush (resultp, xstrdup (var->obj_name));
*delcountp = *delcountp + 1;
}