This is the mail archive of the gdb-patches@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]

Re: [PATCH 3/5] powerpc64-aix inf-ptrace patch


>>>>> ">" == Raunaq 12 <raunaq12@in.ibm.com> writes:

>> Since that is not the right way to go about it, I thought it would be
>> better to create a new file called 'inf-ptrace64.c' derived from
>> inf-ptrace instead, This new file contains all these above mentioned
>> changes.  inf-ptrace64 will be compiled only if the host is detected
>> as powerpc64-ibm-aix.  SO, it will not interfere with the original
>> inf-ptrace that is used if host is powerpc-ibm-aix

No, copying the file is worse than other available alternatives.
For example you can use configure to discover the proper argument types,
and then write a function that wraps ptrace and provides the needed
casts.

Tom


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