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

Emi SUZUKI
2007-05-08T08:10:27Z

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