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: gdb-7.8 branching status (2014-06-04)


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


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