OLD | NEW |
1 /* Generic symbol file reading for the GNU debugger, GDB. | 1 /* Generic symbol file reading for the GNU debugger, GDB. |
2 | 2 |
3 Copyright (C) 1990-2012 Free Software Foundation, Inc. | 3 Copyright (C) 1990-2012 Free Software Foundation, Inc. |
4 | 4 |
5 Contributed by Cygnus Support, using pieces from other GDB modules. | 5 Contributed by Cygnus Support, using pieces from other GDB modules. |
6 | 6 |
7 This file is part of GDB. | 7 This file is part of GDB. |
8 | 8 |
9 This program is free software; you can redistribute it and/or modify | 9 This program is free software; you can redistribute it and/or modify |
10 it under the terms of the GNU General Public License as published by | 10 it under the terms of the GNU General Public License as published by |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 /* List of all available sym_fns. On gdb startup, each object file reader | 141 /* List of all available sym_fns. On gdb startup, each object file reader |
142 calls add_symtab_fns() to register information on each format it is | 142 calls add_symtab_fns() to register information on each format it is |
143 prepared to read. */ | 143 prepared to read. */ |
144 | 144 |
145 typedef const struct sym_fns *sym_fns_ptr; | 145 typedef const struct sym_fns *sym_fns_ptr; |
146 DEF_VEC_P (sym_fns_ptr); | 146 DEF_VEC_P (sym_fns_ptr); |
147 | 147 |
148 static VEC (sym_fns_ptr) *symtab_fns = NULL; | 148 static VEC (sym_fns_ptr) *symtab_fns = NULL; |
149 | 149 |
150 /* Flag for whether user will be reloading symbols multiple times. | |
151 Defaults to ON for VxWorks, otherwise OFF. */ | |
152 | |
153 #ifdef SYMBOL_RELOADING_DEFAULT | |
154 int symbol_reloading = SYMBOL_RELOADING_DEFAULT; | |
155 #else | |
156 int symbol_reloading = 0; | |
157 #endif | |
158 static void | |
159 show_symbol_reloading (struct ui_file *file, int from_tty, | |
160 struct cmd_list_element *c, const char *value) | |
161 { | |
162 fprintf_filtered (file, _("Dynamic symbol table reloading " | |
163 "multiple times in one run is %s.\n"), | |
164 value); | |
165 } | |
166 | |
167 /* If non-zero, shared library symbols will be added automatically | 150 /* If non-zero, shared library symbols will be added automatically |
168 when the inferior is created, new libraries are loaded, or when | 151 when the inferior is created, new libraries are loaded, or when |
169 attaching to the inferior. This is almost always what users will | 152 attaching to the inferior. This is almost always what users will |
170 want to have happen; but for very large programs, the startup time | 153 want to have happen; but for very large programs, the startup time |
171 will be excessive, and so if this is a problem, the user can clear | 154 will be excessive, and so if this is a problem, the user can clear |
172 this flag and then add the shared library symbols as needed. Note | 155 this flag and then add the shared library symbols as needed. Note |
173 that there is a potential for confusion, since if the shared | 156 that there is a potential for confusion, since if the shared |
174 library symbols are not loaded, commands like "info fun" will *not* | 157 library symbols are not loaded, commands like "info fun" will *not* |
175 report all the functions that are actually present. */ | 158 report all the functions that are actually present. */ |
176 | 159 |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 if (strcmp (s, ".sdynbss") == 0) | 534 if (strcmp (s, ".sdynbss") == 0) |
552 return ".sbss"; | 535 return ".sbss"; |
553 | 536 |
554 return s; | 537 return s; |
555 } | 538 } |
556 | 539 |
557 /* qsort comparator for addrs_section_sort. Sort entries in ascending order by | 540 /* qsort comparator for addrs_section_sort. Sort entries in ascending order by |
558 their (name, sectindex) pair. sectindex makes the sort by name stable. */ | 541 their (name, sectindex) pair. sectindex makes the sort by name stable. */ |
559 | 542 |
560 static int | 543 static int |
error: old chunk mismatch |
None
OLD | NEW |