remote_gdb.hh (10599:910fc5624d68) remote_gdb.hh (10601:6efb37480d87)
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

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

204 virtual bool acc(Addr addr, size_t len) = 0;
205 bool trap(int type);
206 virtual bool breakpoint()
207 {
208 return trap(SIGTRAP);
209 }
210
211 protected:
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

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

204 virtual bool acc(Addr addr, size_t len) = 0;
205 bool trap(int type);
206 virtual bool breakpoint()
207 {
208 return trap(SIGTRAP);
209 }
210
211 protected:
212 class SingleStepEvent : public Event
213 {
214 protected:
215 BaseRemoteGDB *gdb;
216
217 public:
218 SingleStepEvent(BaseRemoteGDB *g) : gdb(g)
219 {}
220
221 void process();
222 };
223
224 SingleStepEvent singleStepEvent;
225
212 virtual void getregs() = 0;
213 virtual void setregs() = 0;
214
226 virtual void getregs() = 0;
227 virtual void setregs() = 0;
228
215 virtual void clearSingleStep() = 0;
216 virtual void setSingleStep() = 0;
229 void clearSingleStep();
230 void setSingleStep();
217
218 PCEventQueue *getPcEventQueue();
219 EventQueue *getComInstEventQueue();
220
221 /// Schedule an event which will be triggered "delta" instructions later.
222 void scheduleInstCommitEvent(Event *ev, int delta);
223 /// Deschedule an instruction count based event.
224 void descheduleInstCommitEvent(Event *ev);

--- 82 unchanged lines hidden ---
231
232 PCEventQueue *getPcEventQueue();
233 EventQueue *getComInstEventQueue();
234
235 /// Schedule an event which will be triggered "delta" instructions later.
236 void scheduleInstCommitEvent(Event *ev, int delta);
237 /// Deschedule an instruction count based event.
238 void descheduleInstCommitEvent(Event *ev);

--- 82 unchanged lines hidden ---