This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
FYI: strdup() -> xstrdup()
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: FYI: strdup() -> xstrdup()
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 22 Nov 1999 20:32:10 +1100
- Organization: Cygnus Solutions
Just FYI,
I've checked in a patch with the ChangeLog entry:
Thu Nov 18 18:12:48 1999 Andrew Cagney <cagney@b1.cygnus.com>
* jv-typeprint.c (java_type_print_base), kod-cisco.c
(cisco_kod_open), kod.c (kod_set_os), xcoffread.c
(process_linenos), symfile.c (add_symbol_file_command),
remote-rdi.c (arm_rdi_open, rdilogfile_command), main.c
(captured_main), go32-nat.c (go32_create_inferior), exec.c
(exec_file_attach), corefile.c (core_file_command,
reopen_exec_file): Replace strdup with xstrdup.
None of the calls to strdup() were being checked. At least this gets
GDB to attempt a clean shutdown :-)
enjoy,
Andrew