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; --- 36 unchanged lines hidden (view full) --- 45//XXX This is temporary 46#include "arch/isa_specific.hh" 47 48using namespace std; 49using namespace TheISA; 50 51namespace Trace { 52 |
53NativeTrace::NativeTrace(const Params *p) 54 : InstTracer(p) |
55{ |
56 if (ListenSocket::allDisabled()) 57 fatal("All listeners are disabled!"); 58 |
59 int port = 8000; 60 while(!native_listener.listen(port, true)) 61 { 62 DPRINTF(GDBMisc, "Can't bind port %d\n", port); 63 port++; 64 } 65 ccprintf(cerr, "Listening for native process on port %d\n", port); 66 fd = native_listener.accept(); --- 158 unchanged lines hidden --- |