Re: [PATCH] Make target_read_alloc & al return vectors

Andreas Schwab
2018-07-07T18:24:50Z

On Jul 07 2018, Simon Marchi <simark@simark.ca> wrote:

> 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?

This is the next error:

CXXLD gdb
ia64-linux-nat.o:(.data.rel.ro._ZTV21ia64_linux_nat_target[_ZTV21ia64_linux_nat_target]+0x170): undefined reference to `ia64_linux_nat_target::can_use_hw_breakpoint(bptype, int, int)'
ia64-linux-nat.o:(.data.rel.ro._ZTV21ia64_linux_nat_target[_ZTV21ia64_linux_nat_target]+0x650): undefined reference to `ia64_linux_nat_target::read_description()'
ia64-linux-nat.o:(.data.rel.ro._ZTV21ia64_linux_nat_target[_ZTV21ia64_linux_nat_target]+0xba0): undefined reference to `ia64_linux_nat_target::low_new_thread(lwp_info*)'
collect2: error: ld returned 1 exit status

Andreas.

--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."