remote_gdb.cc (12122:20512f6810d7) | remote_gdb.cc (12125:0066d9926c1a) |
---|---|
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 | 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::SingleStepEvent::process() | 292BaseRemoteGDB::processSingleStepEvent() |
293{ | 293{ |
294 if (!gdb->singleStepEvent.scheduled()) 295 gdb->scheduleInstCommitEvent(&gdb->singleStepEvent, 1); 296 gdb->trap(SIGTRAP); | 294 if (!singleStepEvent.scheduled()) 295 scheduleInstCommitEvent(&singleStepEvent, 1); 296 trap(SIGTRAP); |
297} 298 299BaseRemoteGDB::BaseRemoteGDB(System *_system, ThreadContext *c) : | 297} 298 299BaseRemoteGDB::BaseRemoteGDB(System *_system, ThreadContext *c) : |
300 inputEvent(NULL), trapEvent(this), listener(NULL), 301 number(-1), fd(-1), active(false), attached(false), system(_system), 302 context(c), singleStepEvent(this) | 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()) |
303{ 304} 305 306BaseRemoteGDB::~BaseRemoteGDB() 307{ 308 if (inputEvent) 309 delete inputEvent; 310} --- 807 unchanged lines hidden (view full) --- 1118 while ((nibble = digit2i(*src)) >= 0) { 1119 r *= 16; 1120 r += nibble; 1121 src++; 1122 } 1123 *srcp = src; 1124 return r; 1125} | 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} |
1126 | |