Unbreak mips native build

When I build mips native gdb today, I get the follow error,

../../../git/gdb/mips-linux-nat.c: In function '_initialize_mips_linux_nat':
../../../git/gdb/mips-linux-nat.c:792:15: error: assignment from incompatible pointer type [-Werror]
cc1: all warnings being treated as errors

It looks an oversight of recent target_ops delegation patches.  This
patch is to fix the build error.

gdb:

2014-02-24  Yao Qi  <yao@codesourcery.com>

	* mips-linux-nat.c (super_close): Update its type.
	(mips_linux_close): Pass 'self' to super_close.
This commit is contained in:
Yao Qi 2014-02-24 12:03:05 +08:00
parent 5c328c057e
commit 93063aa69b
2 changed files with 7 additions and 2 deletions

View file

@ -63,7 +63,7 @@ static void (*super_fetch_registers) (struct target_ops *,
static void (*super_store_registers) (struct target_ops *,
struct regcache *, int);
static void (*super_close) (void);
static void (*super_close) (struct target_ops *);
/* Map gdb internal register number to ptrace ``address''.
These ``addresses'' are normally defined in <asm/ptrace.h>.
@ -764,7 +764,7 @@ mips_linux_close (struct target_ops *self)
current_watches = NULL;
if (super_close)
super_close ();
super_close (self);
}
void _initialize_mips_linux_nat (void);