AIX 64bit support

Joel Brobecker brobecker@adacore.com
Tue Aug 21 15:40:00 GMT 2012


> Let me know if we can do #ifdef check in a macro and call the marco as
> mentioned below would be feasible to reduce the many #ifdef checks ?
> 
> 
> macro for ptrace64aix
> 
> #define ptrace_check_64aix(req, tid, addr, data, buff) \
>     #ifdef BFD64 \
>     if (!ptrace64aix (req, (long long) tid, \
>                      (long long) addr, data, buff)) \
>      #else \
>     if (!ptrace64aix (req, tid, \
>  			    (unsigned long) addr, data, buff)) \
>     #endif \

Can you please instead make those functions instead? It will make
the code much easier to understand, IMO.


-- 
Joel



More information about the Gdb-patches mailing list