MIPS simulator initializes LSI pmon vector table with code

Alexandre Oliva aoliva@redhat.com
Thu Apr 18 12:46:00 GMT 2002


There's a chunk of memory in LSI pmon that is supposed to contain
pointers to `system call' handlers.  However, sim_open() will
clobber the valid addresses it stores in this table with code bare
code (as opposed to pointers to code) that was meant to catch invalid
accesses.  This is obviously wrong.  I'm checking this in, since Frank
Ch. Eigler and Eric Christopher agreed it was a reasonable thing to
do.  I'll leave the complete fix for someone who has a real
understanding of what was supposed to be done there.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sim-mips-no-code-in-vtable.patch
Type: text/x-patch
Size: 1083 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20020418/40bd16d3/attachment.bin>
-------------- next part --------------

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


More information about the Gdb-patches mailing list