1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 124 unchanged lines hidden (view full) --- 133 StringWrap name(tc->getCpuPtr()->name() + ".break_event"); 134 DPRINTFN("break event %s triggered\n", descr()); 135 debug_break(); 136 if (remove) 137 delete this; 138} 139 140#if FULL_SYSTEM |
141void 142sched_break_pc_sys(System *sys, Addr addr) 143{ 144 new BreakPCEvent(&sys->pcEventQueue, "debug break", addr, true); 145} 146 |
147void 148sched_break_pc(Addr addr) 149{ 150 for (vector<System *>::iterator sysi = System::systemList.begin(); 151 sysi != System::systemList.end(); ++sysi) { 152 sched_break_pc_sys(*sysi, addr); 153 } 154 155} 156#endif |