Replace ARG_MAX with ARG_LAST
authorYao Qi <yao@codesourcery.com>
Mon, 15 Dec 2014 13:40:29 +0000 (21:40 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 16 Dec 2014 05:13:17 +0000 (13:13 +0800)
commit2a54636794b71f8248dff12cd7608829ee068571
tree208a114165743fc13f289eb153c33a0b2e961934
parent395cf596db32c02f34fa211cf49c3e9231d7c277
Replace ARG_MAX with ARG_LAST

We define an enum ARG_MAX in linux_infcall_mmap, but it is conflict
with macro ARG_MAX which is defined in /usr/include/linux/limits.h.
This causes a build failure below,

 gdb/linux-tdep.c: In function 'linux_infcall_mmap':
 gdb/linux-tdep.c:1945:70: error: expected identifier before numeric constant

the enum in the pre-processed source becomes:

  enum
    {
      ARG_ADDR, ARG_LENGTH, ARG_PROT, ARG_FLAGS, ARG_FD, ARG_OFFSET, 131072
    };

This patch is to replace ARG_MAX with ARG_LAST.

gdb:

2014-12-16  Yao Qi  <yao@codesourcery.com>

* linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
ARG_LAST.
gdb/ChangeLog
gdb/linux-tdep.c
This page took 0.036821 seconds and 4 git commands to generate.