remote_gdb.cc (12466:58a7a5e976dd) | remote_gdb.cc (12487:fddccd96c9fc) |
---|---|
1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2002-2005 The Regents of The University of Michigan 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 276 unchanged lines hidden (view full) --- 285enum GdbBreakpointType { 286 GdbSoftBp = '0', 287 GdbHardBp = '1', 288 GdbWriteWp = '2', 289 GdbReadWp = '3', 290 GdbAccWp = '4', 291}; 292 | 1/* 2 * Copyright 2015 LabWare 3 * Copyright 2014 Google, Inc. 4 * Copyright (c) 2002-2005 The Regents of The University of Michigan 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 276 unchanged lines hidden (view full) --- 285enum GdbBreakpointType { 286 GdbSoftBp = '0', 287 GdbHardBp = '1', 288 GdbWriteWp = '2', 289 GdbReadWp = '3', 290 GdbAccWp = '4', 291}; 292 |
293#ifndef NDEBUG |
|
293const char * 294break_type(char c) 295{ 296 switch(c) { 297 case GdbSoftBp: return "software breakpoint"; 298 case GdbHardBp: return "hardware breakpoint"; 299 case GdbWriteWp: return "write watchpoint"; 300 case GdbReadWp: return "read watchpoint"; 301 case GdbAccWp: return "access watchpoint"; 302 default: return "unknown breakpoint/watchpoint"; 303 } 304} | 294const char * 295break_type(char c) 296{ 297 switch(c) { 298 case GdbSoftBp: return "software breakpoint"; 299 case GdbHardBp: return "hardware breakpoint"; 300 case GdbWriteWp: return "write watchpoint"; 301 case GdbReadWp: return "read watchpoint"; 302 case GdbAccWp: return "access watchpoint"; 303 default: return "unknown breakpoint/watchpoint"; 304 } 305} |
306#endif |
|
305 306std::map<Addr, HardBreakpoint *> hardBreakMap; 307 308EventQueue * 309getComInstEventQueue(ThreadContext *tc) 310{ 311 return tc->getCpuPtr()->comInstEventQueue[tc->threadId()]; 312} --- 764 unchanged lines hidden --- | 307 308std::map<Addr, HardBreakpoint *> hardBreakMap; 309 310EventQueue * 311getComInstEventQueue(ThreadContext *tc) 312{ 313 return tc->getCpuPtr()->comInstEventQueue[tc->threadId()]; 314} --- 764 unchanged lines hidden --- |