OLD | NEW |
1 /* Simulator tracing/debugging support. | 1 /* Simulator tracing/debugging support. |
2 Copyright (C) 1997-1998, 2001, 2007-2012 Free Software Foundation, | 2 Copyright (C) 1997-1998, 2001, 2007-2012 Free Software Foundation, |
3 Inc. | 3 Inc. |
4 Contributed by Cygnus Support. | 4 Contributed by Cygnus Support. |
5 | 5 |
6 This file is part of GDB, the GNU debugger. | 6 This file is part of GDB, the GNU debugger. |
7 | 7 |
8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 FILE *cfile = TRACE_FILE (CPU_TRACE_DATA (STATE_CPU (sd, i))); | 487 FILE *cfile = TRACE_FILE (CPU_TRACE_DATA (STATE_CPU (sd, i))); |
488 if (cfile != NULL && cfile != sfile) | 488 if (cfile != NULL && cfile != sfile) |
489 { | 489 { |
490 /* If output from different cpus is going to the same file, | 490 /* If output from different cpus is going to the same file, |
491 avoid closing the file twice. */ | 491 avoid closing the file twice. */ |
492 for (j = 0; j < i; ++j) | 492 for (j = 0; j < i; ++j) |
493 if (TRACE_FILE (CPU_TRACE_DATA (STATE_CPU (sd, j))) == cfile) | 493 if (TRACE_FILE (CPU_TRACE_DATA (STATE_CPU (sd, j))) == cfile) |
494 break; | 494 break; |
495 if (i == j) | 495 if (i == j) |
496 fclose (cfile); | 496 fclose (cfile); |
error: old chunk mismatch |
None
OLD | NEW |