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 v2] inf-ptrace: Do not stop memory transfers after a single word


On Tue, Mar 14 2017, Pedro Alves wrote:

> On 03/14/2017 03:44 PM, Andreas Arnez wrote:
>> Version 1 is here:
>> 
>>   https://sourceware.org/ml/gdb-patches/2017-03/msg00043.html
>> 
>> Changes from version 1:
>> 
>> * "unsigned" -> "unsigned int"
>> 
>> * Compare pointers with NULL explicitly.
>
> Pedantically, it should be "if (errno != 0)" and
> "*xfered_len != 0 ? ...."  as well.

OK, changed those as well.

>
>> 
>> * Move the ptrace peek/poke loop to a separate routine for better
>>   readability.
>> 
>> OK to apply?
>
> LGTM.

Thanks!

I noticed that the commit message is now slightly wrong, because GDB now
*does* exploit writing to /proc/<pid>/mem.  Fixed the commit message
accordingly.

Pushed with the above changes.

--
Andreas


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