* ui-file.h (ui_file_xstrdup): Mention that the length argument
authorPedro Alves <palves@redhat.com>
Fri, 14 Aug 2009 00:32:33 +0000 (00:32 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 14 Aug 2009 00:32:33 +0000 (00:32 +0000)
commit759ef83693911e20efd389b20cbf8f3a8eec30eb
tree7e7de1542d7ae1e9bef5d8ca15956af47858f0d2
parent4da0d875114aa6b8c919e2e36dc17ef3cab1dc69
* ui-file.h (ui_file_xstrdup): Mention that the length argument
may be NULL.
* ui-file.c (ui_file_xstrdup): Don't dereference LENGTH if it is
NULL.
* aix-thread.c (aix_thread_extra_thread_info): Pass NULL as length
parameter to ui_file_xstrdup.
* arm-tdep.c (_initialize_arm_tdep): Ditto.
* infrun.c (print_target_wait_results): Ditto.
* language.c (add_language): Ditto.
* linespec.c (cplusplus_error): Ditto.
* remote.c (escape_buffer): Ditto.
* typeprint.c (type_to_string): Ditto.
* utils.c (error_stream): Ditto.
* varobj.c (value_get_print_value): Ditto.
* xtensa-tdep.c (xtensa_verify_config): Replace `dummy' local with
`length' local.  Pass it to ui_file_xstrdup, and avoid an strlen
call.
* gdbarch.sh (verify_gdbarch): Ditto.
* gdbarch.c: Regenerate.
* cli/cli-setshow.c (do_setshow_command): Pass NULL as length
parameter to ui_file_xstrdup.
* python/python-frame.c (frapy_str): Ditto.
* python/python-type.c (typy_str): Use the length local instead of
calling strlen.
* python/python-value.c (valpy_str): Pass NULL as length parameter
to ui_file_xstrdup.
19 files changed:
gdb/ChangeLog
gdb/aix-thread.c
gdb/arm-tdep.c
gdb/cli/cli-setshow.c
gdb/gdbarch.c
gdb/gdbarch.sh
gdb/infrun.c
gdb/language.c
gdb/linespec.c
gdb/python/python-frame.c
gdb/python/python-type.c
gdb/python/python-value.c
gdb/remote.c
gdb/typeprint.c
gdb/ui-file.c
gdb/ui-file.h
gdb/utils.c
gdb/varobj.c
gdb/xtensa-tdep.c