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 --- 275 unchanged lines hidden (view full) --- 284 285void 286BaseRemoteGDB::TrapEvent::process() 287{ 288 gdb->trap(_type); 289} 290 291void |
292BaseRemoteGDB::processSingleStepEvent() |
293{ |
294 if (!singleStepEvent.scheduled()) 295 scheduleInstCommitEvent(&singleStepEvent, 1); 296 trap(SIGTRAP); |
297} 298 299BaseRemoteGDB::BaseRemoteGDB(System *_system, ThreadContext *c) : |
300 inputEvent(NULL), trapEvent(this), listener(NULL), number(-1), 301 fd(-1), active(false), attached(false), system(_system), 302 context(c), 303 singleStepEvent([this]{ processSingleStepEvent(); }, name()) |
304{ 305} 306 307BaseRemoteGDB::~BaseRemoteGDB() 308{ 309 if (inputEvent) 310 delete inputEvent; 311} --- 807 unchanged lines hidden (view full) --- 1119 while ((nibble = digit2i(*src)) >= 0) { 1120 r *= 16; 1121 r += nibble; 1122 src++; 1123 } 1124 *srcp = src; 1125 return r; 1126} |