remote_gdb.hh (10600:e60c7758cf69) | remote_gdb.hh (10601:6efb37480d87) |
---|---|
1/* 2 * Copyright 2014 Google, Inc. 3 * Copyright (c) 2007 The Hewlett-Packard Development Company 4 * All rights reserved. 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 102 unchanged lines hidden (view full) --- 111 GDB64_NUMREGS = (GDB64_GS_32 + 1) / 2 + 1 112 }; 113 114 RemoteGDB(System *system, ThreadContext *context); 115 116 bool acc(Addr addr, size_t len); 117 118 protected: | 1/* 2 * Copyright 2014 Google, Inc. 3 * Copyright (c) 2007 The Hewlett-Packard Development Company 4 * All rights reserved. 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 102 unchanged lines hidden (view full) --- 111 GDB64_NUMREGS = (GDB64_GS_32 + 1) / 2 + 1 112 }; 113 114 RemoteGDB(System *system, ThreadContext *context); 115 116 bool acc(Addr addr, size_t len); 117 118 protected: |
119 class SingleStepEvent : public Event 120 { 121 protected: 122 RemoteGDB *gdb; 123 124 public: 125 SingleStepEvent(RemoteGDB *g) : gdb(g) 126 {} 127 128 void process(); 129 }; 130 131 SingleStepEvent singleStepEvent; 132 | |
133 void getregs(); 134 void setregs(); 135 | 119 void getregs(); 120 void setregs(); 121 |
136 void clearSingleStep(); 137 void setSingleStep(); 138 | |
139 bool checkBpLen(size_t len) { return len == 1; } 140}; 141 142const int GDB_REG_BYTES = 143 std::max(RemoteGDB::GDB32_NUMREGS * sizeof(uint32_t), 144 RemoteGDB::GDB64_NUMREGS * sizeof(uint64_t)); 145 146} 147 148#endif // __ARCH_X86_REMOTEGDB_HH__ | 122 bool checkBpLen(size_t len) { return len == 1; } 123}; 124 125const int GDB_REG_BYTES = 126 std::max(RemoteGDB::GDB32_NUMREGS * sizeof(uint32_t), 127 RemoteGDB::GDB64_NUMREGS * sizeof(uint64_t)); 128 129} 130 131#endif // __ARCH_X86_REMOTEGDB_HH__ |