OLD | NEW |
1 /* Generic load for hardware simulator models. | 1 /* Generic load for hardware simulator models. |
2 Copyright (C) 1997, 2007-2012 Free Software Foundation, Inc. | 2 Copyright (C) 1997-2013 Free Software Foundation, Inc. |
3 Contributed by Cygnus Support. | 3 Contributed by Cygnus Support. |
4 | 4 |
5 This file is part of GDB, the GNU debugger. | 5 This file is part of GDB, the GNU debugger. |
6 | 6 |
7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
11 | 11 |
12 This program is distributed in the hope that it will be useful, | 12 This program is distributed in the hope that it will be useful, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 STATE_LOAD_AT_LMA_P (sd), | 53 STATE_LOAD_AT_LMA_P (sd), |
54 sim_write); | 54 sim_write); |
55 if (result_bfd == NULL) | 55 if (result_bfd == NULL) |
56 { | 56 { |
57 bfd_close (STATE_PROG_BFD (sd)); | 57 bfd_close (STATE_PROG_BFD (sd)); |
58 STATE_PROG_BFD (sd) = NULL; | 58 STATE_PROG_BFD (sd) = NULL; |
59 return SIM_RC_FAIL; | 59 return SIM_RC_FAIL; |
60 } | 60 } |
61 return SIM_RC_OK; | 61 return SIM_RC_OK; |
62 } | 62 } |
OLD | NEW |