> If I understood Andrew correctly you should only use the cooked > functions here, so the line > > regcache_raw_read (regcache, RAX_REGNUM, &addr); > > should read > > regcahce_cooked_read (regcache, RAX_REGNUM, &addr); > > With that change, this is OK. > > Thanks, Ditto from me, Michael, thanks for cleaning this up. Andrew