Fix --host cris-*-linux build of GDBServer.
Commit Message
Compiling GDBServer with --host cris-*-linux yields a compilation error :
linux-cris-low.c:65:21: error: ‘void’ must be the only parameter
This patch fixes the issue by removing the void parameter in cris_get_pc.
gdb/gdbserver/ChangeLog:
* linux-cris-low.c (cris_get_pc): Remove void arg.
---
gdb/gdbserver/linux-cris-low.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 20/10/15 20:24, Antoine Tremblay wrote:
> Compiling GDBServer with --host cris-*-linux yields a compilation error :
>
> linux-cris-low.c:65:21: error: ‘void’ must be the only parameter
>
> This patch fixes the issue by removing the void parameter in cris_get_pc.
>
> gdb/gdbserver/ChangeLog:
> * linux-cris-low.c (cris_get_pc): Remove void arg.
The change is obvious, and patch is OK to me. Thanks for splitting
it out of your ARM GDBserver breakpoint patches.
On 10/21/2015 04:18 AM, Yao Qi wrote:
> On 20/10/15 20:24, Antoine Tremblay wrote:
>> Compiling GDBServer with --host cris-*-linux yields a compilation error :
>>
>> linux-cris-low.c:65:21: error: ‘void’ must be the only parameter
>>
>> This patch fixes the issue by removing the void parameter in cris_get_pc.
>>
>> gdb/gdbserver/ChangeLog:
>> * linux-cris-low.c (cris_get_pc): Remove void arg.
>
> The change is obvious, and patch is OK to me. Thanks for splitting
> it out of your ARM GDBserver breakpoint patches.
>
Pushed. Yes, it's obvious I guess I'm overly cautious.
@@ -62,7 +62,7 @@ cris_cannot_fetch_register (int regno)
extern int debug_threads;
static CORE_ADDR
-cris_get_pc (struct regcache *regcache, void)
+cris_get_pc (struct regcache *regcache)
{
unsigned long pc;
collect_register_by_name (regcache, "pc", &pc);