summaryrefslogtreecommitdiff
path: root/src/base/remote_gdb.hh
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2014-12-03 03:27:19 -0800
committerGabe Black <gabeblack@google.com>2014-12-03 03:27:19 -0800
commit2d9dae01fbfe04a12a8deff85ffb617d9d0b6638 (patch)
tree7998a866f2c591b0a41263a3d97bbea0e11d85c1 /src/base/remote_gdb.hh
parentb7dc4ba5161c8b18e5e5181bad724d571ab194c1 (diff)
downloadgem5-2d9dae01fbfe04a12a8deff85ffb617d9d0b6638.tar.xz
sim: Make it possible to override the breakpoint length check.
The check which makes sure the length of the breakpoint being written is the same as a MachInst is only correct on fixed instruction width ISAs. Instead of incorrectly applying that check to all ISAs, this change makes that the default check and lets ISA specific GDB classes override it.
Diffstat (limited to 'src/base/remote_gdb.hh')
-rw-r--r--src/base/remote_gdb.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base/remote_gdb.hh b/src/base/remote_gdb.hh
index babf61049..8fab556f3 100644
--- a/src/base/remote_gdb.hh
+++ b/src/base/remote_gdb.hh
@@ -192,6 +192,8 @@ class BaseRemoteGDB
PCEventQueue *getPcEventQueue();
protected:
+ virtual bool checkBpLen(size_t len);
+
class HardBreakpoint : public PCEvent
{
private: