remote_gdb.hh (10595:25ecfc14f73f) remote_gdb.hh (10601:6efb37480d87)
1/*
2 * Copyright 2014 Google, Inc.
3 * Copyright (c) 2013 ARM Limited
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

--- 66 unchanged lines hidden (view full) ---

75 GDB64_NUMREGS = 98
76};
77
78const int GDB_REG_BYTES = std::max(GDB64_NUMREGS * sizeof(uint64_t),
79 GDB32_NUMREGS * sizeof(uint32_t));
80
81class RemoteGDB : public BaseRemoteGDB
82{
1/*
2 * Copyright 2014 Google, Inc.
3 * Copyright (c) 2013 ARM Limited
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

--- 66 unchanged lines hidden (view full) ---

75 GDB64_NUMREGS = 98
76};
77
78const int GDB_REG_BYTES = std::max(GDB64_NUMREGS * sizeof(uint64_t),
79 GDB32_NUMREGS * sizeof(uint32_t));
80
81class RemoteGDB : public BaseRemoteGDB
82{
83 protected:
84 bool acc(Addr addr, size_t len);
85 bool write(Addr addr, size_t size, const char *data);
83
86
84protected:
85 Addr notTakenBkpt;
86 Addr takenBkpt;
87 void getregs();
88 void setregs();
87
89
88protected:
89 bool acc(Addr addr, size_t len);
90 bool write(Addr addr, size_t size, const char *data);
91
92 void getregs();
93 void setregs();
94
95 void clearSingleStep();
96 void setSingleStep();
97
98public:
99 RemoteGDB(System *_system, ThreadContext *tc);
90 public:
91 RemoteGDB(System *_system, ThreadContext *tc);
100};
101} // namespace ArmISA
102
103#endif /* __ARCH_ARM_REMOTE_GDB_H__ */
92};
93} // namespace ArmISA
94
95#endif /* __ARCH_ARM_REMOTE_GDB_H__ */