This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] Change gdb_load_shlibs to gdb_load_shlib
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>
- Cc: <gdb-patches at sourceware dot org>, <qiyaoltc at gmail dot com>, <palves at redhat dot com>, <antoine dot tremblay at ericsson dot com>
- Date: Thu, 14 Apr 2016 10:33:01 +0100
- Subject: Re: [PATCH 1/2] Change gdb_load_shlibs to gdb_load_shlib
- Authentication-results: sourceware.org; auth=none
- References: <1460502865-10999-1-git-send-email-simon dot marchi at ericsson dot com>
Simon Marchi <simon.marchi@ericsson.com> writes:
> -proc gdb_load_shlibs { args } {
> - foreach file $args {
> - gdb_remote_download target [shlib_target_file $file]
> - }
> +proc gdb_load_shlib { file } {
> + set dest [gdb_remote_download target [shlib_target_file $file]]
Why don't define a new proc gdb_load_shlib but leave gdb_load_shlibs
there? gdb_load_shlibs can invoke gdb_load_shlib in a loop, and callers
of gdb_load_shlibs are not changed.
--
Yao (éå)