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: [rfc] [2/4] SPU overlay support: The SPU target part


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


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