Re: [PATCH] Make target_read_alloc & al return vectors

Andreas Schwab
2018-07-07T08:54:21Z

../../gdb/ia64-tdep.c: In function ‘LONGEST getunwind_table(gdb_byte**)’:
../../gdb/ia64-tdep.c:2664:16: error: too many arguments to function ‘gdb::optional<std::vector<unsigned char, gdb::default_init_allocator<unsigned char, std::allocator<unsigned char> > > > target_read_alloc(target_ops*, target_object, const char*)’
NULL, buf_p);
^
In file included from ../../gdb/inferior.h:41:0,
from ../../gdb/ia64-tdep.c:21:
../../gdb/target.h:341:40: note: declared here
extern gdb::optional<gdb::byte_vector> target_read_alloc
^
../../gdb/ia64-tdep.c:2663:5: error: cannot convert ‘gdb::optional<std::vector<unsigned char, gdb::default_init_allocator<unsigned char, std::allocator<unsigned char> > > >’ to ‘LONGEST {aka long int}’ in assignment
x = target_read_alloc (current_top_target (), TARGET_OBJECT_UNWIND_TABLE,
^

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."