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: [RFC][PATCH v2] Rebase executable to match relocated base address


>>>>> "Hannes" == Hannes Domani via gdb-patches <gdb-patches@sourceware.org> writes:

>> But I'm not at all sure about my approach to forward the image base
>> via auxv data, but I needed a solution that worked for gdbserver as well.

I don't know about this either :(.  Should it use the "library list
format" stuff instead?  Or, how does it work on Linux?

>> 
>> +static int
>> +win32_read_auxv (CORE_ADDR offset, unsigned char *myaddr, unsigned int len)

New functions need an introductory comment.

>> 
>> +static enum target_xfer_status
>> +windows_xfer_auxv (gdb_byte *readbuf, ULONGEST offset, ULONGEST len,
>> +          ULONGEST *xfered_len)

Here too.

>> +  solib_target_so_ops.solib_create_inferior_hook =
>> +    windows_solib_create_inferior_hook;

"=" should be after the line break.

Tom


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