remote_gdb.cc (12449:2260f4a68210) | remote_gdb.cc (13611:c8b7847b4171) |
---|---|
1/* 2 * Copyright 2014 Google, Inc. 3 * Copyright (c) 2002-2005 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 206 unchanged lines hidden (view full) --- 215 r.gpr[i] = context->readIntReg(reg_redir[i]); 216 } else { 217 for (int i = 0; i < 32; ++i) 218 r.gpr[i] = context->readIntReg(i); 219 } 220 221 for (int i = 0; i < 32; ++i) 222#ifdef KGDB_FP_REGS | 1/* 2 * Copyright 2014 Google, Inc. 3 * Copyright (c) 2002-2005 The Regents of The University of Michigan 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 206 unchanged lines hidden (view full) --- 215 r.gpr[i] = context->readIntReg(reg_redir[i]); 216 } else { 217 for (int i = 0; i < 32; ++i) 218 r.gpr[i] = context->readIntReg(i); 219 } 220 221 for (int i = 0; i < 32; ++i) 222#ifdef KGDB_FP_REGS |
223 r.fpr[i] = context->readFloatRegBits(i); | 223 r.fpr[i] = context->readFloatReg(i); |
224#else 225 r.fpr[i] = 0; 226#endif 227} 228 229void 230RemoteGDB::AlphaGdbRegCache::setRegs(ThreadContext *context) const 231{ --- 6 unchanged lines hidden (view full) --- 238 } else { 239 for (int i = 0; i < 32; ++i) { 240 context->setIntReg(i, r.gpr[i]); 241 } 242 } 243 244#ifdef KGDB_FP_REGS 245 for (int i = 0; i < NumFloatArchRegs; ++i) { | 224#else 225 r.fpr[i] = 0; 226#endif 227} 228 229void 230RemoteGDB::AlphaGdbRegCache::setRegs(ThreadContext *context) const 231{ --- 6 unchanged lines hidden (view full) --- 238 } else { 239 for (int i = 0; i < 32; ++i) { 240 context->setIntReg(i, r.gpr[i]); 241 } 242 } 243 244#ifdef KGDB_FP_REGS 245 for (int i = 0; i < NumFloatArchRegs; ++i) { |
246 context->setFloatRegBits(i, gdbregs.regs64[i + KGDB_REG_F0]); | 246 context->setFloatReg(i, gdbregs.regs64[i + KGDB_REG_F0]); |
247 } 248#endif 249 context->pcState(r.pc); 250} 251 252 253BaseGdbRegCache* 254RemoteGDB::gdbRegs() 255{ 256 return new AlphaGdbRegCache(this); 257} 258 | 247 } 248#endif 249 context->pcState(r.pc); 250} 251 252 253BaseGdbRegCache* 254RemoteGDB::gdbRegs() 255{ 256 return new AlphaGdbRegCache(this); 257} 258 |