OLD | NEW |
1 /* Target-dependent, architecture-independent code for DICOS, for GDB. | 1 /* Target-dependent, architecture-independent code for DICOS, for GDB. |
2 | 2 |
3 Copyright (C) 2009-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2009-2012 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of GDB. | 5 This file is part of GDB. |
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. |
(...skipping 25 matching lines...) Expand all Loading... |
36 list of shared libraries. There's no "main executable" in DICOS, | 36 list of shared libraries. There's no "main executable" in DICOS, |
37 so this accounts for all code. */ | 37 so this accounts for all code. */ |
38 set_gdbarch_has_global_solist (gdbarch, 1); | 38 set_gdbarch_has_global_solist (gdbarch, 1); |
39 | 39 |
40 /* The DICOS breakpoint API takes care of magically making | 40 /* The DICOS breakpoint API takes care of magically making |
41 breakpoints visible to all inferiors. */ | 41 breakpoints visible to all inferiors. */ |
42 set_gdbarch_has_global_breakpoints (gdbarch, 1); | 42 set_gdbarch_has_global_breakpoints (gdbarch, 1); |
43 | 43 |
44 /* There's no (standard definition of) entry point or a guaranteed | 44 /* There's no (standard definition of) entry point or a guaranteed |
45 text location with a symbol where to place the call dummy, so we | 45 text location with a symbol where to place the call dummy, so we |
46 put it on the stack. */ | 46 need it on the stack. Rely on i386_gdbarch_init used also for |
47 set_gdbarch_call_dummy_location (gdbarch, ON_STACK); | 47 amd64 to set up ON_STACK inferior calls. */ |
48 | 48 |
49 /* DICOS rewinds the PC itself. */ | 49 /* DICOS rewinds the PC itself. */ |
50 set_gdbarch_decr_pc_after_break (gdbarch, 0); | 50 set_gdbarch_decr_pc_after_break (gdbarch, 0); |
51 } | 51 } |
52 | 52 |
53 /* Return true if ABFD is a dicos load module. HEADER_SIZE is the | 53 /* Return true if ABFD is a dicos load module. HEADER_SIZE is the |
54 expected size of the "header" section in bytes. */ | 54 expected size of the "header" section in bytes. */ |
55 | 55 |
56 int | 56 int |
57 dicos_load_module_p (bfd *abfd, int header_size) | 57 dicos_load_module_p (bfd *abfd, int header_size) |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 ret = 1; | 110 ret = 1; |
111 break; | 111 break; |
112 } | 112 } |
113 } | 113 } |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 xfree (symbol_table); | 117 xfree (symbol_table); |
118 return ret; | 118 return ret; |
119 } | 119 } |
OLD | NEW |