1/* 2 * Copyright (c) 2011-2014,2017 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 247 unchanged lines hidden (view full) --- 256 "Cannot have two CPUs with the same id (%d)\n", id); 257 258 threadContexts[id] = tc; 259 _numContexts++; 260 261#if THE_ISA != NULL_ISA 262 int port = getRemoteGDBPort(); 263 if (port) { |
264 RemoteGDB *rgdb = new RemoteGDB(this, tc, port + id); 265 rgdb->listen(); |
266 267 BaseCPU *cpu = tc->getCpuPtr(); 268 if (cpu->waitForRemoteGDB()) { 269 inform("%s: Waiting for a remote GDB connection on port %d.\n", |
270 cpu->name(), rgdb->port()); |
271 |
272 rgdb->connect(); |
273 } 274 if (remoteGDB.size() <= id) { 275 remoteGDB.resize(id + 1); 276 } 277 278 remoteGDB[id] = rgdb; 279 } 280#endif --- 254 unchanged lines hidden --- |