OLD | NEW |
1 /* Replay a remote debug session logfile for GDB. | 1 /* Replay a remote debug session logfile for GDB. |
2 Copyright (C) 1996, 1998-2000, 2002-2003, 2005-2012 Free Software | 2 Copyright (C) 1996, 1998-2000, 2002-2003, 2005-2012 Free Software |
3 Foundation, Inc. | 3 Foundation, Inc. |
4 Written by Fred Fish (fnf@cygnus.com) from pieces of gdbserver. | 4 Written by Fred Fish (fnf@cygnus.com) from pieces of gdbserver. |
5 | 5 |
6 This file is part of GDB. | 6 This file is part of GDB. |
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 |
11 (at your option) any later version. | 11 (at your option) any later version. |
12 | 12 |
13 This program is distributed in the hope that it will be useful, | 13 This program is distributed in the hope that it will be useful, |
14 but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 GNU General Public License for more details. | 16 GNU General Public License for more details. |
17 | 17 |
18 You should have received a copy of the GNU General Public License | 18 You should have received a copy of the GNU General Public License |
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 19 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
20 | 20 |
21 #include "config.h" | 21 #include "config.h" |
| 22 #include "build-gnulib-gdbserver/config.h" |
| 23 |
22 #include <stdio.h> | 24 #include <stdio.h> |
23 #if HAVE_SYS_FILE_H | 25 #if HAVE_SYS_FILE_H |
24 #include <sys/file.h> | 26 #include <sys/file.h> |
25 #endif | 27 #endif |
26 #if HAVE_SIGNAL_H | 28 #if HAVE_SIGNAL_H |
27 #include <signal.h> | 29 #include <signal.h> |
28 #endif | 30 #endif |
29 #include <ctype.h> | 31 #include <ctype.h> |
30 #if HAVE_FCNTL_H | 32 #if HAVE_FCNTL_H |
31 #include <fcntl.h> | 33 #include <fcntl.h> |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 break; | 479 break; |
478 case 'c': | 480 case 'c': |
479 /* Command executed by gdb */ | 481 /* Command executed by gdb */ |
480 while ((ch = logchar (fp)) != EOL); | 482 while ((ch = logchar (fp)) != EOL); |
481 break; | 483 break; |
482 } | 484 } |
483 } | 485 } |
484 remote_close (); | 486 remote_close (); |
485 exit (0); | 487 exit (0); |
486 } | 488 } |
OLD | NEW |