[PATCH 1/8] watch_command_1: Fix dangling frame access

Pedro Alves palves@redhat.com
Thu Apr 13 15:26:00 GMT 2017


On 04/13/2017 10:34 AM, Yao Qi wrote:
> Pedro Alves <palves@redhat.com> writes:
> 
>> -  if (exp_valid_block && frame)
>> +  if (exp_valid_block && wp_frame)
> 
> if (exp_valid_block != NULL && wp_frame != NULL)
> 
> Patch is good to me.

Thanks!  I did that change, and pushed patches 1-6, up until the
one that add cdtors to struct inferior.

I went ahead because last my non-POD + memset detector flagged 
struct inferior, and also because I saw that Sergio's C++fy
environ patch was adding yet another non-POD member to
struct inferior.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list