process.cc (5335:69d45f5f21a2) process.cc (5512:755fcaf7a4cf)
1/*
2 * Copyright (c) 2001-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;

--- 32 unchanged lines hidden (view full) ---

41#include "base/statistics.hh"
42#include "config/full_system.hh"
43#include "cpu/thread_context.hh"
44#include "mem/page_table.hh"
45#include "mem/physical.hh"
46#include "mem/translating_port.hh"
47#include "params/Process.hh"
48#include "params/LiveProcess.hh"
1/*
2 * Copyright (c) 2001-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;

--- 32 unchanged lines hidden (view full) ---

41#include "base/statistics.hh"
42#include "config/full_system.hh"
43#include "cpu/thread_context.hh"
44#include "mem/page_table.hh"
45#include "mem/physical.hh"
46#include "mem/translating_port.hh"
47#include "params/Process.hh"
48#include "params/LiveProcess.hh"
49#include "sim/debug.hh"
49#include "sim/process.hh"
50#include "sim/process_impl.hh"
51#include "sim/stats.hh"
52#include "sim/syscall_emul.hh"
53#include "sim/system.hh"
54
55#include "arch/isa_specific.hh"
56#if THE_ISA == ALPHA_ISA

--- 139 unchanged lines hidden (view full) ---

196
197int
198Process::registerThreadContext(ThreadContext *tc)
199{
200 // add to list
201 int myIndex = threadContexts.size();
202 threadContexts.push_back(tc);
203
50#include "sim/process.hh"
51#include "sim/process_impl.hh"
52#include "sim/stats.hh"
53#include "sim/syscall_emul.hh"
54#include "sim/system.hh"
55
56#include "arch/isa_specific.hh"
57#if THE_ISA == ALPHA_ISA

--- 139 unchanged lines hidden (view full) ---

197
198int
199Process::registerThreadContext(ThreadContext *tc)
200{
201 // add to list
202 int myIndex = threadContexts.size();
203 threadContexts.push_back(tc);
204
204 RemoteGDB *rgdb = new RemoteGDB(system, tc);
205 GDBListener *gdbl = new GDBListener(rgdb, 7000 + myIndex);
206 gdbl->listen();
207 //gdbl->accept();
205 int port = getRemoteGDBPort();
206 if (port) {
207 RemoteGDB *rgdb = new RemoteGDB(system, tc);
208 GDBListener *gdbl = new GDBListener(rgdb, port + myIndex);
209 gdbl->listen();
208
210
209 remoteGDB.push_back(rgdb);
211 remoteGDB.push_back(rgdb);
212 }
210
211 // return CPU number to caller
212 return myIndex;
213}
214
215void
216Process::startup()
217{

--- 513 unchanged lines hidden ---
213
214 // return CPU number to caller
215 return myIndex;
216}
217
218void
219Process::startup()
220{

--- 513 unchanged lines hidden ---