remote_gdb.hh (11274:d9a0136ab8cc) | remote_gdb.hh (12031:46116545e745) |
---|---|
1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2007 The Hewlett-Packard Development Company 5 * All rights reserved. 6 * 7 * The license below extends only to copyright in the software and shall 8 * not be construed as granting a license to any other intellectual --- 71 unchanged lines hidden (view full) --- 80 uint32_t fs; 81 uint32_t gs; 82 } r; 83 public: 84 char *data() const { return (char *)&r; } 85 size_t size() const { return sizeof(r); } 86 void getRegs(ThreadContext*); 87 void setRegs(ThreadContext*) const; | 1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2007 The Hewlett-Packard Development Company 5 * All rights reserved. 6 * 7 * The license below extends only to copyright in the software and shall 8 * not be construed as granting a license to any other intellectual --- 71 unchanged lines hidden (view full) --- 80 uint32_t fs; 81 uint32_t gs; 82 } r; 83 public: 84 char *data() const { return (char *)&r; } 85 size_t size() const { return sizeof(r); } 86 void getRegs(ThreadContext*); 87 void setRegs(ThreadContext*) const; |
88 const std::string name() const { return gdb->name() + ".X86GdbRegCache"; } | 88 const std::string 89 name() const 90 { 91 return gdb->name() + ".X86GdbRegCache"; 92 } |
89 }; 90 91 class AMD64GdbRegCache : public BaseGdbRegCache 92 { 93 using BaseGdbRegCache::BaseGdbRegCache; 94 private: 95 struct { 96 uint64_t rax; --- 26 unchanged lines hidden (view full) --- 123 * knows about, it is ok to have smaller ones. 124 */ 125 } r; 126 public: 127 char *data() const { return (char *)&r; } 128 size_t size() const { return sizeof(r); } 129 void getRegs(ThreadContext*); 130 void setRegs(ThreadContext*) const; | 93 }; 94 95 class AMD64GdbRegCache : public BaseGdbRegCache 96 { 97 using BaseGdbRegCache::BaseGdbRegCache; 98 private: 99 struct { 100 uint64_t rax; --- 26 unchanged lines hidden (view full) --- 127 * knows about, it is ok to have smaller ones. 128 */ 129 } r; 130 public: 131 char *data() const { return (char *)&r; } 132 size_t size() const { return sizeof(r); } 133 void getRegs(ThreadContext*); 134 void setRegs(ThreadContext*) const; |
131 const std::string name() const { return gdb->name() + ".AMD64GdbRegCache"; } | 135 const std::string 136 name() const 137 { 138 return gdb->name() + ".AMD64GdbRegCache"; 139 } |
132 }; 133 | 140 }; 141 |
142 X86GdbRegCache regCache32; 143 AMD64GdbRegCache regCache64; 144 |
|
134 public: 135 RemoteGDB(System *system, ThreadContext *context); 136 BaseGdbRegCache *gdbRegs(); 137}; 138} // namespace X86ISA 139 140#endif // __ARCH_X86_REMOTEGDB_HH__ | 145 public: 146 RemoteGDB(System *system, ThreadContext *context); 147 BaseGdbRegCache *gdbRegs(); 148}; 149} // namespace X86ISA 150 151#endif // __ARCH_X86_REMOTEGDB_HH__ |