This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] [2/4] SPU overlay support: The SPU target part
- From: Emi SUZUKI <emi-suzuki at tjsys dot co dot jp>
- To: uweigand at de dot ibm dot com
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 08 May 2007 17:10:59 +0900
- Subject: Re: [rfc] [2/4] SPU overlay support: The SPU target part
- References: <200705072225.l47MPxAl024340@d12av02.megacenter.de.ibm.com>
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