[rfc] [2/4] SPU overlay support: The SPU target part

Emi SUZUKI emi-suzuki@tjsys.co.jp
Tue May 8 08:10:00 GMT 2007


Hello Ulrich, 

I know that the duscussion about the corresponding gdbarch changes is
going on (and I unfortunately have no alternative idea about it), but
just want to notice you something that I came across.  

> +static void
> +spu_overlay_new_objfile (struct objfile *objfile)
> +{
> +  struct spu_overlay_table *ovly_table;
> +  bfd *obfd = objfile->obfd;
> +  struct obj_section *osect;

It will cause SEGV if objfile is NULL.  
That code seems to be optimized out by `-O2' option of GCC, though.  

-- 
Emi SUZUKI / emi-suzuki at tjsys.co.jp



More information about the Gdb-patches mailing list