This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/2] Remove argument pc in get_next_pcs
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 26 Jan 2016 14:09:14 +0000
- Subject: Re: [PATCH 0/2] Remove argument pc in get_next_pcs
- Authentication-results: sourceware.org; auth=none
- References: <1452851849-24127-1-git-send-email-yao dot qi at linaro dot org>
Yao Qi <qiyaoltc@gmail.com> writes:
> Hi,
> get_next_pcs in struct linux_target_ops has two arguments, PC and
> REGCACHE. Since PC can be got from REGCACHE, PC is redundant, so this
> patch series remove it in various places. After the removal, PC is
> got from regcache via regcache_read_pc, so patch #1 uses
> regcache_read_pc out of *the_low_target.get_next_pcs. Then, patch #2
> removes PC arguments and PC can be got inside the implementations of
> get_next_pcs via regcache_read_pc.
>
> Regression tested on arm-linux.
These two patches are pushed in.
--
Yao (éå)