This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug build/23415] New: binutils-gdb/gdb/ia64-tdep.c:2664:16: error: too many arguments to function target_read_alloc


https://sourceware.org/bugzilla/show_bug.cgi?id=23415

            Bug ID: 23415
           Summary: binutils-gdb/gdb/ia64-tdep.c:2664:16: error: too many
                    arguments to function target_read_alloc
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: build
          Assignee: unassigned at sourceware dot org
          Reporter: slyfox at inbox dot ru
  Target Milestone: ---

gdb fails to build on ia64 (looks like API to read data from core files changed
slightly). Current binutils-gdb git master:

    $ ../binutils-gdb/configure --build=x86_64-pc-linux-gnu
--host=ia64-unknown-linux-gnu --target=ia64-unknown-linux-gnu
    $ make

ia64-unknown-linux-gnu-g++ -x c++  -g -O2   -I. -I../../binutils-gdb/gdb
-I../../binutils-gdb/gdb/common -I../../binutils-gdb/gdb/config
-DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H
-I../../binutils-gdb/gdb/../include/opcode
-I../../binutils-gdb/gdb/../opcodes/.. -I../../binutils-gdb/gdb/../readline/..
-I../../binutils-gdb/gdb/../zlib -I../bfd -I../../binutils-gdb/gdb/../bfd
-I../../binutils-gdb/gdb/../include -I../libdecnumber
-I../../binutils-gdb/gdb/../libdecnumber 
-I../../binutils-gdb/gdb/gnulib/import -Ibuild-gnulib/import   -DTUI=1  -Wall
-Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Wempty-body -Wunused-but-set-parameter
-Wunused-but-set-variable -Wno-sign-compare -Wno-narrowing
-Wno-error=maybe-uninitialized -Wsuggest-override -Wimplicit-fallthrough=3
-Wduplicated-cond -Wformat-nonliteral -Werror -c -o ia64-tdep.o -MT ia64-tdep.o
-MMD -MP -MF ./.deps/ia64-tdep.Tpo ../../binutils-gdb/gdb/ia64-tdep.c
../../binutils-gdb/gdb/ia64-tdep.c: In function 'LONGEST
getunwind_table(gdb_byte**)':
../../binutils-gdb/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 ../../binutils-gdb/gdb/inferior.h:41,
                 from ../../binutils-gdb/gdb/ia64-tdep.c:21:
../../binutils-gdb/gdb/target.h:341:40: note: declared here
 extern gdb::optional<gdb::byte_vector> target_read_alloc
                                        ^~~~~~~~~~~~~~~~~
../../binutils-gdb/gdb/ia64-tdep.c:2664:16: 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
     NULL, buf_p);
                ^

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]