FYI: strdup() -> xstrdup()

Andrew Cagney ac131313@cygnus.com
Mon Nov 22 01:32:00 GMT 1999


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


More information about the Gdb-patches mailing list