Re: executing code in mmapped memory

From: Dennis Handly (dhandly_at_cup.hp.com)
Date: 08/30/03

  • Next message: Anton Ertl: "Re: executing code in mmapped memory"
    Date: Sat, 30 Aug 2003 02:36:28 GMT
    
    

    Anton Ertl (anton@mips.complang.tuwien.ac.at) wrote:
    : I just jump into it with a: bv %r0(%r3)

    That's the problem. You can't use BV. You must use BVE or BLE or BE.
    Possibly linking with -N may allow BV to work.

    : >From a register dump, what is sr4, sr5, pcsqh and pcoqh?

    : sr4: 0x4c39c00 (only displays with "p/x $sr4", not with "info reg")

    (I see sr4 before sr0.)

    : sr5: 0x95e3400
    : pcsqh: 4c39c00 pcoqh: 6f616b10

    That's your problem. pcsqh should be the value of sr5.

    : gdb shows $pc as having the same value.
    : - anton

    gdb is broken. $pc should really be the value of $pcsqh
    concatenated with $pcoqh. gdb should have said, signal 11, your PC is bad.


  • Next message: Anton Ertl: "Re: executing code in mmapped memory"