Re: [PATCH] Make target_read_alloc & al return vectors

Simon Marchi
2018-07-07T17:58:02Z

On 2018-07-07 13:23, Andreas Schwab wrote:
> This is the next error:
>
> ../../gdb/ia64-linux-nat.c:73:8: error: conflicting return type
> specified for ‘virtual bool
> ia64_linux_nat_target::have_steppable_watchpoint()’
> bool have_steppable_watchpoint () { return 1; }
> ^
> In file included from ../../gdb/inferior.h:41:0,
> from ../../gdb/ia64-linux-nat.c:22:
> ../../gdb/target.h:554:17: error: overriding ‘virtual int
> target_ops::have_steppable_watchpoint()’
> virtual int have_steppable_watchpoint ()
> ^

The fix for this is probably obvious (change int for bool). Can you
take care of it? I'm not on my gdb-development-capable computer, and
probably don't have an ia64 cross-compiler handy. Does the patch for
target_read_alloc look good to you?

Simon