From: Simon Marchi <simon.marchi@ericsson.com>
To: Yao Qi <qiyaoltc@gmail.com>
Cc: <gdb-patches@sourceware.org>, <palves@redhat.com>,
<antoine.tremblay@ericsson.com>
Subject: Re: [PATCH 1/2] Change gdb_load_shlibs to gdb_load_shlib
Date: Thu, 14 Apr 2016 15:17:00 -0000 [thread overview]
Message-ID: <570FB48A.8000201@ericsson.com> (raw)
In-Reply-To: <864mb4o7qq.fsf@gmail.com>
On 16-04-14 05:33 AM, Yao Qi wrote:
> 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.
It would have been the lazy but clever way to do it, for sure. I hadn't
thought of that.
I am not sure I like it though, because it makes multiple procs that do kind
of the same thing, but with subtle differences. That's what causes confusion
later. It's the same feeling I had about gdb_download and gdb_remote_download...
Pedro (and others), what do you think?
next prev parent reply other threads:[~2016-04-14 15:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-12 23:14 Simon Marchi
2016-04-12 23:14 ` [PATCH 2/2] ftrace tests: Use gdb_load_shlib result to lookup IPA in info sharedlibrary Simon Marchi
2016-04-13 18:18 ` [PATCH 1/2] Change gdb_load_shlibs to gdb_load_shlib Pedro Alves
2016-04-13 21:05 ` Simon Marchi
2016-04-14 11:28 ` Pedro Alves
2016-04-14 9:33 ` Yao Qi
2016-04-14 15:17 ` Simon Marchi [this message]
2016-04-14 15:27 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=570FB48A.8000201@ericsson.com \
--to=simon.marchi@ericsson.com \
--cc=antoine.tremblay@ericsson.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
--cc=qiyaoltc@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox