Re: gdb-7.8 branching status (2014-06-04)

Pedro Alves
2014-06-04T17:54:55Z

On 06/04/2014 06:46 PM, Joel Brobecker wrote:

> It looks like a call to a hook which is NULL (supports_z_point_type),
> which probably shoots down my hope of the same issue affecting Windows
> as well (there, the hook appears to be non-NULL).

Ah, I guess you're seeing the crash in mem-break.c:

static int
z_type_supported (char z_type)
{
return (z_type >= '0' && z_type <= '4'
&& the_target->supports_z_point_type (z_type));
}

>
> I'm trying to see if I should define it for LynxOS or not, but
> then we have the same issue with SPU, I think.

The function is a boolean, so assuming false if the
hook is NULL is fine:

return (z_type >= '0' && z_type <= '4'
+ && the_target->supports_z_point_type != NULL
&& the_target->supports_z_point_type (z_type));

--
Pedro Alves