main.cc (3868:5a58b399e883) main.cc (4046:ef34b290091e)
1/*
2 * Copyright (c) 2000-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;

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

106 async_exit = true;
107}
108
109/// Abort signal handler.
110void
111abortHandler(int sigtype)
112{
113 cerr << "Program aborted at cycle " << curTick << endl;
1/*
2 * Copyright (c) 2000-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;

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

106 async_exit = true;
107}
108
109/// Abort signal handler.
110void
111abortHandler(int sigtype)
112{
113 cerr << "Program aborted at cycle " << curTick << endl;
114
115#if TRACING_ON
116 // dump trace buffer, if there is one
117 Trace::theLog.dump(cerr);
118#endif
119}
120
121int
122main(int argc, char **argv)
123{
124 signal(SIGFPE, SIG_IGN); // may occur on misspeculated paths
125 signal(SIGTRAP, SIG_IGN);
126 signal(SIGUSR1, dumpStatsHandler); // dump intermediate stats

--- 346 unchanged lines hidden ---
114}
115
116int
117main(int argc, char **argv)
118{
119 signal(SIGFPE, SIG_IGN); // may occur on misspeculated paths
120 signal(SIGTRAP, SIG_IGN);
121 signal(SIGUSR1, dumpStatsHandler); // dump intermediate stats

--- 346 unchanged lines hidden ---