gdb: TYPE_VECTOR -> type::is_vector in amd64-windows-tdep.c
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 5 Oct 2020 16:21:14 +0000 (12:21 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 5 Oct 2020 16:22:39 +0000 (12:22 -0400)
commita1d217e844d89d85fcaeb0ca346acb8771c4d2f3
treed63aaae5a6c8cbbb313f65a37db00f02f8711372
parent1f1845d435fd0886f5c5561df8922268d2dfaefc
gdb: TYPE_VECTOR -> type::is_vector in amd64-windows-tdep.c

I get this build failure:

      CXX    amd64-windows-tdep.o
    cc1plus: warning: command-line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++
    /home/smarchi/src/binutils-gdb/gdb/amd64-windows-tdep.c: In function 'return_value_convention amd64_windows_return_value(gdbarch*, value*, type*, regcache*, gdb_byte*, const gdb_byte*)':
    /home/smarchi/src/binutils-gdb/gdb/amd64-windows-tdep.c:374:6: error: 'TYPE_VECTOR' was not declared in this scope
      374 |  if (TYPE_VECTOR (type) && len == 16)
          |      ^~~~~~~~~~~

TYPE_VECTOR was removed in favor of the type::is_vector method.

gdb/ChangeLog:

* amd64-windows-tdep.c (amd64_windows_return_value): Use
type::is_vector instead of TYPE_VECTOR.

Change-Id: I0ce26c3f7a33625761a8dba351c3158464f21b01
gdb/ChangeLog
gdb/amd64-windows-tdep.c