]>
Commit | Line | Data |
---|---|---|
c89b44cd TT |
1 | 2018-01-17 Tom Tromey <tom@tromey.com> |
2 | ||
3 | * dwarf2read.c (delayed_method_info): Remove typedef. | |
4 | (dwarf2_cu::method_info): Now a std::vector. | |
5 | (add_to_method_list): Update. | |
6 | (free_delayed_list): Remove. | |
7 | (compute_delayed_physnames): Update. | |
8 | (process_full_comp_unit, process_full_type_unit): Clear the method | |
9 | list. Remove cleanups. | |
10 | (psymtab_include_file_name): Add name_holder parameter. Use | |
11 | unique_xmalloc_ptr. | |
12 | (dwarf_decode_lines): Update. | |
13 | ||
fcd3b13d SM |
14 | 2018-01-17 Tom Tromey <tom@tromey.com> |
15 | Simon Marchi <simon.marchi@ericsson.com> | |
16 | ||
17 | * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor. | |
18 | (dwarf2_per_objfile::free_cached_comp_units) | |
19 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
20 | (init_cutu_and_read_dies_no_follow): Update. | |
21 | (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit. | |
22 | (dwarf2_cu::~dwarf2_cu): New. | |
23 | (free_heap_comp_unit, free_stack_comp_unit): Remove. | |
24 | (age_cached_comp_units, free_one_cached_comp_unit): Update. | |
25 | ||
685af9cd TT |
26 | 2018-01-17 Tom Tromey <tom@tromey.com> |
27 | Simon Marchi <simon.marchi@ericsson.com> | |
28 | ||
29 | * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove. | |
30 | (struct die_reader_specs) <abbrev_table>: New member. | |
31 | (struct abbrev_table): Add constructor. | |
32 | <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare. | |
33 | <abbrev_obstack>: Now an auto_obstack. | |
34 | (abbrev_table_up): New typedef. | |
35 | (init_cu_die_reader): Add abbrev_table parameter. | |
36 | (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter. | |
37 | Add result_dwo_abbrev_table. | |
38 | (init_tu_and_read_dwo_dies, init_cutu_and_read_dies) | |
39 | (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1): | |
40 | Update. | |
41 | (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as | |
42 | parameter. | |
43 | (skip_children): Update. | |
44 | (abbrev_table::alloc_abbrev): Rename from | |
45 | abbrev_table_alloc_abbrev. | |
46 | (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev. | |
47 | (abbrev_table::lookup_abbrev): Rename from | |
48 | abbrev_table_lookup_abbrev. | |
49 | (abbrev_table_read_table): Return abbrev_table_up. | |
50 | (abbrev_table_free, abbrev_table_free_cleanup) | |
51 | (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove. | |
52 | (load_partial_dies): Update. | |
53 | ||
5e2db402 TT |
54 | 2018-01-17 Tom Tromey <tom@tromey.com> |
55 | ||
56 | * dwarf2read.c (dwarf2_compute_name): Update comment. | |
57 | (read_func_scope, read_variable): Update. | |
58 | (new_symbol): Remove. | |
59 | (new_symbol_full): Rename to new_symbol. | |
60 | ||
ee7f689e | 61 | 2018-01-17 Mike Gulick <mgulick@mathworks.com> |
41667530 MG |
62 | |
63 | PR gdb/16577 | |
64 | * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue | |
65 | a warning instead of throwing an error, set section size to 0 and return | |
66 | NULL. | |
67 | * gdb_bfd.h (gdb_bfd_map_section): Update description. | |
68 | ||
4d9b86e1 SM |
69 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
70 | ||
71 | * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return | |
72 | std::string. | |
73 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
74 | * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): | |
75 | Likewise. | |
76 | (linux_ptrace_attach_fail_reason_string): Likewise. | |
77 | * linux-nat.c (attach_proc_task_lwp_callback): Adjust. | |
78 | ||
a7b2d0fb SM |
79 | 2018-01-17 Simon Marchi <simon.marchi@ericsson.com> |
80 | ||
81 | * linux-nat.c (linux_nat_attach): Remove xstrdup. | |
82 | ||
f517c180 EA |
83 | 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com> |
84 | ||
85 | PR gdb/21559 | |
86 | * configure.ac: Include <sys/types.h> prior to <sys/user.h> when | |
87 | checking for fs_base/gs_base fields in struct user_regs_struct. | |
88 | * configure: Regenerate. | |
89 | ||
7045b1ca YQ |
90 | 2018-01-17 Yao Qi <yao.qi@linaro.org> |
91 | ||
92 | * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New | |
93 | function. | |
94 | (aarch64_linux_init_abi): Install it to gdbarch hook | |
95 | gcc_target_options. | |
96 | ||
db422fb2 PA |
97 | 2018-01-15 Pedro Alves <palves@redhat.com> |
98 | ||
99 | * common/signals-state-save-restore.c | |
100 | (save_original_signals_state): Fix typos. | |
101 | ||
ba643918 SDJ |
102 | 2017-01-12 Tom Tromey <tom@tromey.com> |
103 | Sergio Durigan Junior <sergiodj@redhat.com> | |
104 | ||
105 | * Makefile.in (install-only): Install gdb-add-index. | |
106 | ||
906b4aac JB |
107 | 2018-01-12 John Baldwin <jhb@FreeBSD.org> |
108 | ||
109 | * fbsd-tdep.c (KVE_PROTECTION): Correct value. | |
110 | ||
bdf2a94a AA |
111 | 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com> |
112 | ||
113 | * infrun.c (keep_going_pass_signal): Clear step-over info when | |
114 | insert_breakpoints fails. | |
115 | ||
71d378ae PA |
116 | 2018-01-11 Pedro Alves <palves@redhat.com> |
117 | ||
118 | PR gdb/22583 | |
119 | * infrun.c (resume): Rename to ... | |
120 | (resume_1): ... this. | |
121 | (resume): Reimplement as wrapper around resume_1. | |
122 | ||
3cada740 PA |
123 | 2018-01-11 Pedro Alves <palves@redhat.com> |
124 | ||
125 | PR remote/22597 | |
126 | * remote.c (remote_parse_stop_reply): Default to the last-set | |
127 | general thread instead of to 'magic_null_ptid'. | |
128 | ||
618daa93 PA |
129 | 2018-01-10 Pedro Alves <palves@redhat.com> |
130 | ||
131 | * language.h (language_get_symbol_name_matcher): Rename ... | |
132 | (get_symbol_name_matcher): ... this. | |
133 | * language.c (language_get_symbol_name_matcher): Ditto. | |
134 | * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All | |
135 | callers adjusted. | |
136 | ||
c63d3e8d PA |
137 | 2018-01-10 Pedro Alves <palves@redhat.com> |
138 | ||
139 | PR gdb/22670 | |
140 | * dwarf2read.c | |
141 | (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher): | |
142 | Adjust to use language_get_symbol_name_matcher instead of | |
143 | language_defn::la_get_symbol_name_matcher. | |
144 | * language.c (language_get_symbol_name_matcher): If in Ada mode | |
145 | and the lookup name is a verbatim match, return Ada's matcher. | |
146 | * language.h (language_get_symbol_name_matcher): Adjust comment. | |
147 | (ada_lookup_name_info::verbatim_p):: New method. | |
148 | ||
d4c2a405 PA |
149 | 2018-01-10 Pedro Alves <palves@redhat.com> |
150 | ||
151 | PR gdb/22670 | |
152 | * ada-lang.c (ada_collect_symbol_completion_matches): If the | |
153 | minsym's language is language_auto or language_cplus, pass down | |
154 | language_ada instead. | |
155 | * symtab.c (compare_symbol_name): Don't frob symbol language here. | |
156 | ||
8825213e PA |
157 | 2018-01-10 Pedro Alves <palves@redhat.com> |
158 | ||
159 | PR gdb/22670 | |
160 | * minsyms.c (linkage_name_str): New function. | |
161 | (iterate_over_minimal_symbols): Use it. | |
162 | ||
2d97a5d9 JB |
163 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
164 | ||
165 | * NEWS: Document that 'info proc' now works on FreeBSD. | |
166 | ||
92fce24d JB |
167 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
168 | ||
169 | * configure.ac: Check for kinfo_getfile in libutil. | |
170 | * configure: Regenerate. | |
171 | * config.in: Regenerate. | |
172 | * fbsd-nat.c: Include "fbsd-tdep.h". | |
173 | (fbsd_fetch_cmdline): New. | |
174 | (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool | |
175 | rather than calling error. | |
176 | (fbsd_info_proc): New. | |
177 | (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails. | |
178 | (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails. | |
179 | (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc". | |
180 | ||
262f62f5 JB |
181 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
182 | ||
183 | * fbsd-nat.c (struct free_deleter): Remove. | |
184 | (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>. | |
185 | ||
b999e203 JB |
186 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
187 | ||
188 | * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return | |
189 | NULL for an empty pathname. | |
190 | ||
d2176225 JB |
191 | 2018-01-09 John Baldwin <jhb@FreeBSD.org> |
192 | ||
193 | * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET) | |
194 | (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ) | |
195 | (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
196 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
197 | (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP) | |
198 | (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD) | |
199 | (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD) | |
200 | (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout) | |
201 | (kinfo_proc_layout_32, kinfo_proc_layout_i386) | |
202 | (kinfo_proc_layout_64, fbsd_vm_map_entry_flags) | |
203 | (fbsd_core_info_proc_mappings, fbsd_core_vnode_path) | |
204 | (fbsd_core_fetch_timeval, fbsd_print_sigset) | |
205 | (fbsd_core_info_proc_status, fbsd_core_info_proc): New. | |
206 | (fbsd_init_abi): Install gdbarch "core_info_proc" method. | |
207 | * fbsd-tdep.h (fbsd_vm_map_entry_flags): New. | |
208 | ||
9c4ac400 ST |
209 | 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org> |
210 | ||
211 | * gdb/gnu-nat.c: Include <elf.h> and <link.h>. | |
212 | (gnu_xfer_auxv): New function. | |
213 | (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is | |
214 | TARGET_OBJECT_AUXV. | |
215 | ||
1e5ded6c YQ |
216 | 2018-01-08 Yao Qi <yao.qi@linaro.org> |
217 | Simon Marchi <simon.marchi@ericsson.com> | |
218 | ||
219 | * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and | |
220 | common/selftest.c. | |
221 | (COMMON_OBS): Remove selftest.o. | |
222 | * configure.ac: Append selftest-arch.c and common/selftest.c to | |
223 | CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS. | |
224 | * configure: Re-generated. | |
225 | * maint.c (maintenance_selftest): Wrap selftests::run_tests with | |
226 | GDB_SELF_TEST. | |
227 | (maintenance_info_selftests): Likewise. | |
228 | ||
04bafb1e XR |
229 | 2018-01-08 Xavier Roirand <roirand@adacore.com> |
230 | ||
231 | * ada-valprint.c (val_print_packed_array_elements): Use | |
232 | proper number of elements when printing an array indexed | |
233 | by an enumeration type. | |
234 | ||
518817b3 SM |
235 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
236 | ||
237 | * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove. | |
238 | (dw2_get_file_names_reader): Adjust. | |
239 | (lookup_dwo_signatured_type): Adjust. | |
240 | (lookup_dwp_signatured_type): Adjust. | |
241 | (lookup_signatured_type): Adjust. | |
242 | (create_type_unit_group): Adjust. | |
243 | (get_type_unit_group): Adjust. | |
244 | (process_psymtab_comp_unit_reader): Adjust. | |
245 | (build_type_psymtabs_reader): Adjust. | |
246 | (scan_partial_symbols): Adjust. | |
247 | (add_partial_symbol): Adjust. | |
248 | (add_partial_subprogram): Adjust. | |
249 | (peek_die_abbrev): Adjust. | |
250 | (fixup_go_packaging): Adjust. | |
251 | (process_imported_unit_die): Adjust. | |
252 | (dwarf2_compute_name): Adjust. | |
253 | (dwarf2_physname): Adjust. | |
254 | (read_import_statement): Adjust. | |
255 | (handle_DW_AT_stmt_list): Adjust. | |
256 | (read_file_scope): Adjust. | |
257 | (read_func_scope): Adjust. | |
258 | (read_lexical_block_scope): Adjust. | |
259 | (read_call_site_scope): Adjust. | |
260 | (read_variable): Adjust. | |
261 | (dwarf2_rnglists_process): Adjust. | |
262 | (dwarf2_ranges_process): Adjust. | |
263 | (dwarf2_ranges_read): Adjust. | |
264 | (dwarf2_get_pc_bounds): Adjust. | |
265 | (dwarf2_record_block_ranges): Adjust. | |
266 | (dwarf2_add_field): Adjust. | |
267 | (dwarf2_add_member_fn): Adjust. | |
268 | (read_structure_type): Adjust. | |
269 | (process_structure_scope): Adjust. | |
270 | (read_enumeration_type): Adjust. | |
271 | (read_array_type): Adjust. | |
272 | (mark_common_block_symbol_computed): Adjust. | |
273 | (read_common_block): Adjust. | |
274 | (read_namespace_type): Adjust. | |
275 | (read_namespace): Adjust. | |
276 | (read_module_type): Adjust. | |
277 | (read_tag_pointer_type): Adjust. | |
278 | (read_tag_ptr_to_member_type): Adjust. | |
279 | (read_tag_string_type): Adjust. | |
280 | (read_subroutine_type): Adjust. | |
281 | (read_typedef): Adjust. | |
282 | (read_base_type): Adjust. | |
283 | (attr_to_dynamic_prop): Adjust. | |
284 | (read_subrange_type): Adjust. | |
285 | (read_unspecified_type): Adjust. | |
286 | (dwarf2_read_abbrevs): Adjust. | |
287 | (load_partial_dies): Adjust. | |
288 | (read_partial_die): Adjust. | |
289 | (find_partial_die): Adjust. | |
290 | (guess_partial_die_structure_name): Adjust. | |
291 | (fixup_partial_die): Adjust. | |
292 | (read_attribute_value): Adjust. | |
293 | (read_addr_index): Adjust. | |
294 | (read_addr_index_from_leb128): Adjust. | |
295 | (read_str_index): Adjust. | |
296 | (dwarf2_string_attr): Adjust. | |
297 | (get_debug_line_section): Adjust. | |
298 | (dwarf_decode_line_header): Adjust. | |
299 | (lnp_state_machine::check_line_address): Adjust. | |
300 | (dwarf_decode_lines_1): Adjust. | |
301 | (dwarf_decode_lines): Adjust. | |
302 | (dwarf2_start_symtab): Adjust. | |
303 | (var_decode_location): Adjust. | |
304 | (new_symbol_full): Adjust. | |
305 | (dwarf2_const_value_data): Adjust. | |
306 | (dwarf2_const_value_attr): Adjust. | |
307 | (dwarf2_const_value): Adjust. | |
308 | (die_type): Adjust. | |
309 | (die_containing_type): Adjust. | |
310 | (build_error_marker_type): Adjust. | |
311 | (lookup_die_type): Adjust. | |
312 | (guess_full_die_structure_name): Adjust. | |
313 | (anonymous_struct_prefix): Adjust. | |
314 | (determine_prefix): Adjust. | |
315 | (dwarf2_name): Adjust. | |
316 | (follow_die_ref_or_sig): Adjust. | |
317 | (follow_die_offset): Adjust. | |
318 | (follow_die_ref): Adjust. | |
319 | (follow_die_sig_1): Adjust. | |
320 | (follow_die_sig): Adjust. | |
321 | (get_signatured_type): Adjust. | |
322 | (get_DW_AT_signature_type): Adjust. | |
323 | (decode_locdesc): Adjust. | |
324 | (dwarf_decode_macros): Adjust. | |
325 | (cu_debug_loc_section): Adjust. | |
326 | (fill_in_loclist_baton): Adjust. | |
327 | (dwarf2_symbol_mark_computed): Adjust. | |
328 | (init_one_comp_unit): Don't assign | |
329 | dwarf2_cu::dwarf2_per_objfile. | |
330 | (set_die_type): Adjust. | |
331 | ||
ed2dc618 SM |
332 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
333 | ||
334 | * dwarf2read.c (struct mapped_debug_names): Add constructor. | |
335 | <dwarf2_per_objfile>: New field. | |
336 | (dwarf2_per_objfile): Remove global. | |
337 | (get_dwarf2_per_objfile): New function. | |
338 | (set_dwarf2_per_objfile): New function. | |
339 | (dwarf2_build_psymtabs_hard): Change objfile parameter to | |
340 | dwarf2_per_objfile. | |
341 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
342 | (read_abbrev_offset): Likewise. | |
343 | (read_indirect_string): Likewise. | |
344 | (read_indirect_line_string): Likewise. | |
345 | (read_indirect_string_at_offset): Likewise. | |
346 | (read_indirect_string_from_dwz): Likewise. | |
347 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
348 | dwarf2_per_objfile. | |
349 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
350 | (create_all_comp_units): Change objfile parameter to | |
351 | dwarf2_per_objfile. | |
352 | (create_all_type_units): Likewise. | |
353 | (process_queue): Add dwarf2_per_objfile parameter. | |
354 | (read_and_check_comp_unit_head): Likewise. | |
355 | (lookup_dwo_unit_in_dwp): Likewise. | |
356 | (get_dwp_file): Likewise. | |
357 | (process_cu_includes): Likewise. | |
358 | (struct free_dwo_file_cleanup_data): New struct. | |
359 | (dwarf2_has_info): Use get_dwarf2_per_objfile and | |
360 | set_dwarf2_per_objfile. | |
361 | (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter. | |
362 | (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from | |
363 | context, adjust calls. | |
364 | (dw2_instantiate_symtab): Likewise. | |
365 | (dw2_get_cutu): Add dwarf2_per_objfile parameter. | |
366 | (dw2_get_cu): Likewise. | |
367 | (create_cu_from_index_list): Change objfile parameter to | |
368 | dwarf2_per_objfile. | |
369 | (create_cus_from_index_list): Get dwarf2_per_objfile from | |
370 | context, adjust calls. | |
371 | (create_cus_from_index): Likewise. | |
372 | (create_signatured_type_table_from_index): Change objfile | |
373 | parameter to dwarf2_per_objfile. | |
374 | (create_signatured_type_table_from_debug_names): Change objfile | |
375 | parameter to dwarf2_per_objfile. | |
376 | (create_addrmap_from_index): Likewise. | |
377 | (create_addrmap_from_aranges): Likewise. | |
378 | (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls. | |
379 | (dw2_setup): Remove. | |
380 | (dw2_get_file_names_reader): Get dwarf2_per_objfile from | |
381 | context. | |
382 | (dw2_find_last_source_symtab): Get dwarf2_per_objfile using | |
383 | get_dwarf2_per_objfile. | |
384 | (dw2_forget_cached_source_info): Likewise. | |
385 | (dw2_map_symtabs_matching_filename): Likewise. | |
386 | (struct dw2_symtab_iterator) <index>: Remove. | |
387 | <dwarf2_per_objfile>: New field. | |
388 | (dw2_symtab_iter_init): Replace index parameter with | |
389 | dwarf2_per_objfile. | |
390 | (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter. | |
391 | (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust. | |
392 | (dw2_print_stats): Likewise. | |
393 | (dw2_dump): Likewise. | |
394 | (dw2_expand_symtabs_for_function): Likewise. | |
395 | (dw2_expand_all_symtabs): Likewise. | |
396 | (dw2_expand_symtabs_with_fullname): Likewise. | |
397 | (dw2_expand_marked_cus): Replace index and objfile parameters | |
398 | with dwarf2_per_objfile. | |
399 | (dw_expand_symtabs_matching_file_matcher): Add | |
400 | dwarf2_per_objfile parameter and adjust calls. | |
401 | (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and | |
402 | adjust calls. | |
403 | (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup. | |
404 | (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and | |
405 | adjust calls. | |
406 | (create_cus_from_debug_names_list): Replace objfile parameter | |
407 | with dwarf2_per_objfile and adjust calls. | |
408 | (create_cus_from_debug_names): Likewise. | |
409 | (dwarf2_read_debug_names): Likewise. | |
410 | (mapped_debug_names::namei_to_name): Adjust call. | |
411 | (dw2_debug_names_iterator::next): Likewise. | |
412 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
413 | (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile. | |
414 | (dw2_debug_names_dump): Likewise. | |
415 | (dw2_debug_names_expand_symtabs_for_function): Likewise. | |
416 | (dw2_debug_names_expand_symtabs_matching): Likewise. | |
417 | (dwarf2_initialize_objfile): Likewise. | |
418 | (dwarf2_build_psymtabs): Likewise. | |
419 | (get_abbrev_section_for_cu): Get dwarf2_per_objfile from | |
420 | this_cu. | |
421 | (error_check_comp_unit_head): Add dwarf2_per_objfile parameter. | |
422 | (read_and_check_comp_unit_head): Likewise. | |
423 | (read_abbrev_offset): Likewise. | |
424 | (create_debug_type_hash_table): Likewise. | |
425 | (create_debug_types_hash_table): Likewise. | |
426 | (create_all_type_units): Replace objfile parameter with | |
427 | dwarf2_per_objfile. | |
428 | (add_type_unit): Add dwarf2_per_objfile parameter. | |
429 | (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter | |
430 | with dwarf2_per_objfile. | |
431 | (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu. | |
432 | (lookup_dwp_signatured_type): Likewise. | |
433 | (lookup_signatured_type): Likewise. | |
434 | (read_cutu_die_from_dwo): Likewise. | |
435 | (init_tu_and_read_dwo_dies): Likewise. | |
436 | (init_cutu_and_read_dies): Likewise. | |
437 | (init_cutu_and_read_dies_no_follow): Likewise. | |
438 | (allocate_type_unit_groups_table): Add objfile parameter. | |
439 | (create_type_unit_group): Use dwarf2_per_objfile from cu. | |
440 | (get_type_unit_group): Likewise. | |
441 | (process_psymtab_comp_unit): Update call. | |
442 | (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu. | |
443 | (build_type_psymtabs_1): Add dwarf2_per_objfile parameter. | |
444 | (print_tu_stats): Likewise. | |
445 | (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed | |
446 | in void* parameter. | |
447 | (build_type_psymtabs): Change objfile parameter to | |
448 | dwarf2_per_objfile. | |
449 | (process_skeletonless_type_unit): Use dwarf2_per_objfile | |
450 | passed in void* parameter. | |
451 | (process_skeletonless_type_units): Change objfile parameter to | |
452 | dwarf2_per_objfile. | |
453 | (set_partial_user): Likewise. | |
454 | (dwarf2_build_psymtabs_hard): Likewise. | |
455 | (read_comp_units_from_section): Likewise. | |
456 | (create_all_comp_units): Likewise. | |
457 | (scan_partial_symbols): Update calls. | |
458 | (add_partial_symbol): Likewise. | |
459 | (dwarf2_read_symtab): Use get_dwarf2_per_objfile. | |
460 | (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu. | |
461 | (process_queue): Add dwarf2_per_objfile parameter. | |
462 | (get_compunit_symtab): Use dwarf2_per_objfile from cu. | |
463 | (compute_compunit_symtab_includes): Likewise. | |
464 | (process_cu_includes): Add dwarf2_per_objfile parameter. | |
465 | (process_full_comp_unit): Use dwarf2_per_objfile from cu. | |
466 | (process_full_type_unit): Likewise. | |
467 | (process_imported_unit_die): Update call. | |
468 | (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu. | |
469 | (read_file_scope): Likewise. | |
470 | (allocate_dwo_file_hash_table): Add objfile parameter. | |
471 | (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter. | |
472 | (create_cus_hash_table): Likewise. | |
473 | (create_dwp_hash_table): Likewise. | |
474 | (create_dwo_unit_in_dwp_v1): Likewise. | |
475 | (create_dwp_v2_section): Likewise. | |
476 | (create_dwo_unit_in_dwp_v2): Likewise. | |
477 | (lookup_dwo_unit_in_dwp): Likewise. | |
478 | (try_open_dwop_file): Likewise. | |
479 | (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu. | |
480 | (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update | |
481 | cleanup to include a reference to dwarf2_per_objfile. | |
482 | (open_dwp_file): Add dwarf2_per_objfile parameter. | |
483 | (open_and_init_dwp_file): Likewise. | |
484 | (get_dwp_file): Likewise. | |
485 | (lookup_dwo_cutu): Use dwarf2_per_objfile from cu. | |
486 | (queue_and_load_all_dwo_tus): Update call. | |
487 | (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup | |
488 | data. | |
489 | (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu. | |
490 | (dwarf2_ranges_process): Likewise. | |
491 | (dwarf2_get_pc_bounds): Likewise. | |
492 | (mark_common_block_symbol_computed): Likewise. | |
493 | (abbrev_table_read_table): Add dwarf2_per_objfile parameter. | |
494 | (dwarf2_read_abbrevs): Update call. | |
495 | (read_partial_die): Use dwarf2_per_objfile from cu. | |
496 | (find_partial_die): Likewise. | |
497 | (fixup_partial_die): Likewise. | |
498 | (read_attribute_value): Likewise. | |
499 | (read_indirect_string_at_offset_from): Add objfile parameter. | |
500 | (read_indirect_string_at_offset): Add dwarf2_per_objfile | |
501 | parameter. | |
502 | (read_indirect_string_from_dwz): Add objfile parameter. | |
503 | (read_indirect_string): Add objfile parameter. | |
504 | (read_addr_index_1): Add dwarf2_per_objfile parameter. | |
505 | (read_addr_index): Use dwarf2_per_objfile from cu. | |
506 | (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't | |
507 | call dw2_setup. | |
508 | (read_str_index): Use dwarf2_per_objfile from cu. | |
509 | (get_debug_line_section): Likewise. | |
510 | (read_formatted_entries): Add dwarf2_per_objfile parameter. | |
511 | (dwarf_decode_line_header): Use dwarf2_per_objfile from cu. | |
512 | (new_symbol_full): Use dwarf2_per_objfile from cu. | |
513 | (build_error_marker_type): Likewise. | |
514 | (lookup_die_type): Likewise. | |
515 | (determine_prefix): Likewise. | |
516 | (follow_die_offset): Likewise. | |
517 | (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile. | |
518 | (dwarf2_fetch_constant_bytes): Don't call dw2_setup. | |
519 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
520 | (dwarf2_get_die_type): Likewise. | |
521 | (follow_die_sig_1): Use dwarf2_per_objfile from cu. | |
522 | (get_signatured_type): Likewise. | |
523 | (get_DW_AT_signature_type): Likewise. | |
524 | (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter. | |
525 | (dwarf_decode_macros): Use dwarf2_per_objfile from cu. | |
526 | (cu_debug_loc_section): Likewise. | |
527 | (fill_in_loclist_baton): Likewise. | |
528 | (dwarf2_symbol_mark_computed): Likewise. | |
529 | (dwarf2_find_containing_comp_unit): Change objfile parameter to | |
530 | dwarf2_per_objfile. | |
531 | (free_cached_comp_units): Use dwarf2_per_objfile passed in void* | |
532 | parameter. | |
533 | (age_cached_comp_units): Add dwarf2_per_objfile parameter. | |
534 | (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu. | |
535 | (dwarf2_free_objfile): Use get_dwarf2_per_objfile. | |
536 | (set_die_type): Use dwarf2_free_objfile from cu. | |
537 | (get_die_type_at_offset): Likewise. | |
538 | (dwarf2_per_objfile_free): Don't assign global variable. | |
539 | (debug_names) <constructor>: Add dwarf2_per_objfile | |
540 | parameter, update m_debugstrlookup construction. | |
541 | (debug_names::debug_str_lookup): Add dwarf2_per_objfile | |
542 | parameter. | |
543 | <m_dwarf2_per_objfile>: New field. | |
544 | <lookup>: Use m_dwarf2_per_objfile. | |
545 | (check_dwarf64_offsets): Add dwarf2_per_objfile parameter. | |
546 | (psyms_seen_size): Likewise. | |
547 | (write_gdbindex): Replace objfile parameter with | |
548 | dwarf2_per_objfile. | |
549 | (write_debug_names): Likewise. | |
550 | (write_psymtabs_to_index): Likewise. | |
551 | (save_gdb_index_command): Use get_dwarf2_per_objfile, update | |
552 | calls. | |
553 | ||
e3b94546 SM |
554 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
555 | ||
556 | * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove. | |
557 | <dwarf2_per_objfile>: New field. | |
558 | (struct dwarf2_per_cu_data) <objfile>: Remove. | |
559 | <dwarf2_per_objfile>: New field. | |
560 | (create_cu_from_index_list): Assign dwarf2_per_objfile instead | |
561 | of objfile. | |
562 | (create_signatured_type_table_from_index): Likewise. | |
563 | (create_debug_type_hash_table): Likewise. | |
564 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
565 | (lookup_dwo_unit): Access objfile through dwarf2_per_objfile. | |
566 | (create_type_unit_group): Assign dwarf2_per_objfile instead of | |
567 | objfile. | |
568 | (create_partial_symtab): Access objfile through | |
569 | dwarf2_per_objfile. | |
570 | (process_psymtab_comp_unit_reader): Likewise. | |
571 | (read_comp_units_from_section): Likewise. | |
572 | (scan_partial_symbols): Likewise. | |
573 | (add_partial_symbol): Likewise. | |
574 | (add_partial_subprogram): Likewise. | |
575 | (peek_die_abbrev): Likewise. | |
576 | (fixup_go_packaging): Likewise. | |
577 | (process_full_comp_unit): Likewise. | |
578 | (process_full_type_unit): Likewise. | |
579 | (process_imported_unit_die): Likewise. | |
580 | (dwarf2_compute_name): Likewise. | |
581 | (dwarf2_physname): Likewise. | |
582 | (read_import_statement): Likewise. | |
583 | (create_cus_hash_table): Assign dwarf2_physname instead of | |
584 | objfile. | |
585 | (read_func_scope): Access objfile through dwarf2_per_objfile. | |
586 | (read_lexical_block_scope): Likewise. | |
587 | (read_call_site_scope): Likewise. | |
588 | (read_variable): Likewise. | |
589 | (dwarf2_rnglists_process): Likewise. | |
590 | (dwarf2_ranges_process): Likewise. | |
591 | (dwarf2_ranges_read): Likewise. | |
592 | (dwarf2_record_block_ranges): Likewise. | |
593 | (dwarf2_add_field): Likewise. | |
594 | (dwarf2_add_member_fn): Likewise. | |
595 | (read_structure_type): Likewise. | |
596 | (process_structure_scope): Likewise. | |
597 | (read_enumeration_type): Likewise. | |
598 | (read_array_type): Likewise. | |
599 | (read_common_block): Likewise. | |
600 | (read_namespace_type): Likewise. | |
601 | (read_namespace): Likewise. | |
602 | (read_module_type): Likewise. | |
603 | (read_tag_pointer_type): Likewise. | |
604 | (read_tag_ptr_to_member_type): Likewise. | |
605 | (read_tag_string_type): Likewise. | |
606 | (read_subroutine_type): Likewise. | |
607 | (read_typedef): Likewise. | |
608 | (read_base_type): Likewise. | |
609 | (attr_to_dynamic_prop): Likewise. | |
610 | (read_subrange_type): Likewise. | |
611 | (read_unspecified_type): Likewise. | |
612 | (load_partial_dies): Likewise. | |
613 | (read_partial_die): Likewise. | |
614 | (find_partial_die): Likewise. | |
615 | (guess_partial_die_structure_name): Likewise. | |
616 | (fixup_partial_die): Likewise. | |
617 | (read_attribute_value): Likewise. | |
618 | (read_addr_index_from_leb128): Likewise. | |
619 | (dwarf2_read_addr_index): Likewise. | |
620 | (dwarf2_string_attr): Likewise. | |
621 | (lnp_state_machine::check_line_address): Likewise. | |
622 | (dwarf_decode_lines_1): Likewise. | |
623 | (dwarf_decode_lines): Likewise. | |
624 | (dwarf2_start_symtab): Likewise. | |
625 | (var_decode_location): Likewise. | |
626 | (new_symbol_full): Likewise. | |
627 | (dwarf2_const_value_data): Likewise. | |
628 | (dwarf2_const_value_attr): Likewise. | |
629 | (dwarf2_const_value): Likewise. | |
630 | (die_type): Likewise. | |
631 | (die_containing_type): Likewise. | |
632 | (lookup_die_type): Likewise. | |
633 | (guess_full_die_structure_name): Likewise. | |
634 | (anonymous_struct_prefix): Likewise. | |
635 | (dwarf2_name): Likewise. | |
636 | (follow_die_ref_or_sig): Likewise. | |
637 | (follow_die_offset): Likewise. | |
638 | (follow_die_ref): Likewise. | |
639 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
640 | (dwarf2_fetch_constant_bytes): Likewise. | |
641 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
642 | (dwarf2_get_die_type): Likewise. | |
643 | (follow_die_sig): Likewise. | |
644 | (decode_locdesc): Likewise. | |
645 | (dwarf2_per_cu_objfile): Likewise. | |
646 | (dwarf2_per_cu_text_offset): Likewise. | |
647 | (init_one_comp_unit): Assign dwarf2_per_objfile instead of | |
648 | objfile. | |
649 | (set_die_type): Access objfile through | |
650 | dwarf2_per_objfile. | |
651 | ||
b01ba14d SM |
652 | 2018-01-07 Simon Marchi <simon.marchi@ericsson.com> |
653 | ||
654 | * valprint.c (converted_character_d): Remove typedef. | |
655 | (DEF_VEC_O (converted_character_d)): Remove. | |
656 | (count_next_character): Use std::vector. | |
657 | (print_converted_chars_to_obstack): Likewise. | |
658 | (generic_printstr): Likewise. | |
659 | ||
4d0fdd9b SM |
660 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
661 | ||
662 | * xml-support.h (struct gdb_xml_value): Add constructor. | |
663 | <value>: Change type to unique_xmalloc_ptr. | |
664 | (gdb_xml_value_s): Remove typedef. | |
665 | (DEF_VEC_O (gdb_xml_value_s)): Remove. | |
666 | (gdb_xml_element_start_handler): Change parameter type to | |
667 | std::vector. | |
668 | (xml_find_attribute): Likewise. | |
669 | * xml-support.c (xml_find_attribute): Change parameter type to | |
670 | std::vector and adjust. | |
671 | (gdb_xml_values_cleanup): Remove. | |
672 | (gdb_xml_parser::start_element): Adjust to std::vector. | |
673 | (xinclude_start_include): Change paraeter type to std::vector | |
674 | and adjust. | |
675 | * btrace.c (check_xml_btrace_version): Likewise. | |
676 | (parse_xml_btrace_block): Likewise. | |
677 | (parse_xml_btrace_pt_config_cpu): Likewise. | |
678 | (parse_xml_btrace_pt): Likewise. | |
679 | (parse_xml_btrace_conf_bts): Likewise. | |
680 | (parse_xml_btrace_conf_pt): Likewise. | |
681 | * memory-map.c (memory_map_start_memory): Likewise. | |
682 | (memory_map_start_property): Likewise. | |
683 | * osdata.c (osdata_start_osdata): Likewise. | |
684 | (osdata_start_item): Likewise. | |
685 | (osdata_start_column): Likewise. | |
686 | * remote.c (start_thread): Likewise. | |
687 | * solib-aix.c (library_list_start_library): Likewise. | |
688 | (library_list_start_list): Likewise. | |
689 | * solib-svr4.c (library_list_start_library): Likewise. | |
690 | (svr4_library_list_start_list): Likewise. | |
691 | * solib-target.c (library_list_start_segment): Likewise. | |
692 | (library_list_start_section): Likewise. | |
693 | (library_list_start_library): Likewise. | |
694 | (library_list_start_list): Likewise. | |
695 | * tracepoint.c (traceframe_info_start_memory): Likewise. | |
696 | (traceframe_info_start_tvar): Likewise. | |
697 | * xml-syscall.c (syscall_start_syscall): Likewise. | |
698 | * xml-tdesc.c (tdesc_start_target): Likewise. | |
699 | (tdesc_start_feature): Likewise. | |
700 | (tdesc_start_reg): Likewise. | |
701 | (tdesc_start_union): Likewise. | |
702 | (tdesc_start_struct): Likewise. | |
703 | (tdesc_start_flags): Likewise. | |
704 | (tdesc_start_enum): Likewise. | |
705 | (tdesc_start_field): Likewise. | |
706 | (tdesc_start_enum_value): Likewise. | |
707 | (tdesc_start_vector): Likewise. | |
708 | ||
f979c73f SM |
709 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
710 | ||
711 | * extension.h (struct xmethod_worker) <clone>: Remove. | |
712 | * python/py-xmethods.c (struct python_xmethod_worker) <clone>: | |
713 | Remove. | |
714 | (python_xmethod_worker::clone): Remove. | |
715 | * valops.c (find_overload_match): Use std::move instead of | |
716 | clone. | |
717 | ||
ba18742c SM |
718 | 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca> |
719 | ||
720 | * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h. | |
721 | (struct extension_language_ops) <clone_xmethod_worker_data>: Remove. | |
722 | <free_xmethod_worker_data>: Remove. | |
723 | <get_matching_xmethod_workers>: Chance VEC to std::vector. | |
724 | <get_xmethod_arg_types>: Remove. | |
725 | <get_xmethod_result_type>: Remove. | |
726 | <invoke_xmethod>: Remove. | |
727 | * extension.c (new_xmethod_worker): Remove. | |
728 | (clone_xmethod_worker): Remove. | |
729 | (get_matching_xmethod_workers): Return void, pass std::vector by | |
730 | pointer. | |
731 | (get_xmethod_arg_types): Rename to... | |
732 | (xmethod_worker::get_arg_types): ... this, and adjust. | |
733 | (get_xmethod_result_type): Rename to... | |
734 | (xmethod_worker::get_result_type): ... this, and adjust. | |
735 | (invoke_xmethod): Remove. | |
736 | (free_xmethod_worker): Remove. | |
737 | (free_xmethod_worker_vec): Remove. | |
738 | * extension.h (enum ext_lang_rc): Move here from | |
739 | extension-priv.h. | |
740 | (struct xmethod_worker): Add constructor and destructor. | |
741 | <data>: Remove. | |
742 | <value>: Remove. | |
743 | <invoke, clone, do_get_result_type, do_get_arg_types>: New | |
744 | virtual pure methods. | |
745 | <get_arg_types, get_result_type>: New methods. | |
746 | (xmethod_worker_ptr): Remove typedef. | |
747 | (DEF_VEC_P (xmethod_worker_ptr)): Remove. | |
748 | (xmethod_worker_vec): Remove typedef. | |
749 | (xmethod_worker_up): New typedef. | |
750 | (invoke_xmethod): Remove. | |
751 | (clone_xmethod_worker): Remove. | |
752 | (free_xmethod_worker): Remove. | |
753 | (free_xmethod_worker_vec): Remove. | |
754 | (get_xmethod_arg_types): Remove. | |
755 | (get_xmethod_result_type): Remove. | |
756 | * valops.c (find_method_list): Use std::vector, don't use | |
757 | intermediate vector. | |
758 | (value_find_oload_method_list): Use std::vector. | |
759 | (find_overload_match): Use std::vector. | |
760 | (find_oload_champ): Use std::vector. | |
761 | * value.c (value_free): Use operator delete. | |
762 | (value_of_xmethod): Rename to... | |
763 | (value_from_xmethod): ... this. Don't assign | |
764 | xmethod_worker::value, take rvalue-reference. | |
765 | (result_type_of_xmethod): Adjust. | |
766 | (call_xmethod): Adjust. | |
767 | * value.h: Include extension.h. | |
768 | (struct xmethod_worker): Don't forward-declare. | |
769 | (value_of_xmethod): Rename to... | |
770 | (value_from_xmethod): ... this, take rvalue-reference. | |
771 | * python/py-xmethods.c (struct gdbpy_worker_data): Rename to... | |
772 | (struct python_xmethod_worker): ... this, add constructor and | |
773 | destructor. | |
774 | <invoke, clone, do_get_arg_types, do_get_result_type>: Implement. | |
775 | (gdbpy_free_xmethod_worker_data): Rename to... | |
776 | (python_xmethod_worker::~python_xmethod_worker): ... this and | |
777 | adjust. | |
778 | (gdbpy_clone_xmethod_worker_data): Rename to... | |
779 | (python_xmethod_worker::clone): ... this and adjust. | |
780 | (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use | |
781 | temporary vector. | |
782 | (gdbpy_get_xmethod_arg_types): Rename to... | |
783 | (python_xmethod_worker::do_get_arg_types): ... this and adjust. | |
784 | (gdbpy_get_xmethod_result_type): Rename to... | |
785 | (python_xmethod_worker::do_get_result_type): ... this and | |
786 | adjust. | |
787 | (gdbpy_invoke_xmethod): Rename to... | |
788 | (python_xmethod_worker::invoke): ... this and adjust. | |
789 | (new_python_xmethod_worker): Rename to... | |
790 | (python_xmethod_worker::python_xmethod_worker): ... this and | |
791 | adjust. | |
792 | * python/python-internal.h (gdbpy_clone_xmethod_worker_data): | |
793 | Remove. | |
794 | (gdbpy_free_xmethod_worker_data): Remove. | |
795 | (gdbpy_get_matching_xmethod_workers): Use std::vector. | |
796 | (gdbpy_get_xmethod_arg_types): Remove. | |
797 | (gdbpy_get_xmethod_result_type): Remove. | |
798 | (gdbpy_invoke_xmethod): Remove. | |
799 | * python/python.c (python_extension_ops): Remove obsolete | |
800 | callbacks. | |
801 | ||
e379cee6 PA |
802 | 2018-01-05 Pedro Alves <palves@redhat.com> |
803 | ||
804 | PR gdb/18653 | |
805 | * common/signals-state-save-restore.c | |
806 | (save_original_signals_state): New parameter 'quiet'. Warn if we | |
807 | find a custom handler preinstalled, instead of internal erroring. | |
808 | But only warn if !quiet. | |
809 | * common/signals-state-save-restore.h | |
810 | (save_original_signals_state): New parameter 'quiet'. | |
811 | * main.c (captured_main_1): Move save_original_signals_state call | |
812 | after option handling, and pass QUIET. | |
813 | ||
a655456c PA |
814 | 2018-01-05 Pedro Alves <palves@redhat.com> |
815 | ||
816 | * spu-tdep.c (spu_catch_start): Pass | |
817 | symbol_name_match_type::SEARCH_NAME to block_lookup_symbol. | |
818 | ||
de63c46b PA |
819 | 2018-01-05 Pedro Alves <palves@redhat.com> |
820 | ||
821 | PR gdb/22670 | |
822 | * ada-lang.c (literal_symbol_name_matcher): New function. | |
823 | (ada_get_symbol_name_matcher): Use it for | |
824 | symbol_name_match_type::SEARCH_NAME. | |
825 | * block.c (block_lookup_symbol): New parameter 'match_type'. Pass | |
826 | it down instead of assuming symbol_name_match_type::FULL. | |
827 | * block.h (block_lookup_symbol): New parameter 'match_type'. | |
828 | * c-valprint.c (print_unpacked_pointer): Use | |
829 | lookup_symbol_search_name instead of lookup_symbol. | |
830 | * compile/compile-object-load.c (get_out_value_type): Pass down | |
831 | symbol_name_match_type::SEARCH_NAME. | |
832 | * cp-namespace.c (cp_basic_lookup_symbol): Pass down | |
833 | symbol_name_match_type::FULL. | |
834 | * cp-support.c (cp_get_symbol_name_matcher): Handle | |
835 | symbol_name_match_type::SEARCH_NAME. | |
836 | * infrun.c (insert_exception_resume_breakpoint): Use | |
837 | lookup_symbol_search_name. | |
838 | * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name. | |
839 | * psymtab.c (maintenance_check_psymtabs): Use | |
840 | symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME. | |
841 | * stack.c (print_frame_args): Use lookup_symbol_search_name and | |
842 | SYMBOL_SEARCH_NAME. | |
843 | * symtab.c (lookup_local_symbol): Don't demangle the lookup name | |
844 | if symbol_name_match_type::SEARCH_NAME. | |
845 | (lookup_symbol_in_language): Pass down | |
846 | symbol_name_match_type::FULL. | |
847 | (lookup_symbol_search_name): New. | |
848 | (lookup_language_this): Pass down | |
849 | symbol_name_match_type::SEARCH_NAME. | |
850 | (lookup_symbol_aux, lookup_local_symbol): New parameter | |
851 | 'match_type'. Pass it down. | |
852 | * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator. | |
853 | (lookup_symbol_search_name): New declaration. | |
854 | (lookup_symbol_in_block): New 'match_type' parameter. | |
855 | ||
f98fc17b PA |
856 | 2018-01-05 Pedro Alves <palves@redhat.com> |
857 | ||
858 | PR gdb/22670 | |
859 | * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of | |
860 | ada_lookup_symbol. | |
861 | (ada_lookup_symbol): Reimplement in terms of | |
862 | ada_lookup_symbol_list, bits factored out from | |
863 | ada_lookup_encoded_symbol. | |
864 | ||
342f8240 JB |
865 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
866 | ||
867 | * ada-exp.y (write_object_renaming): When subscripting an array | |
868 | using a symbol as the index, pass the block in call to | |
869 | ada_lookup_encoded_symbol when looking that symbol up. | |
870 | ||
7150d33c JG |
871 | 2018-01-05 Jerome Guitton <guitton@adacore.com> |
872 | ||
873 | * ada-lang.c (ada_array_length): Use ada_index_type instead of | |
874 | TYPE_INDEX_TYPE. | |
875 | ||
cc0e770c JB |
876 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
877 | ||
878 | * ada-lang.c (ada_to_fixed_value_create): Add handling of | |
879 | the case where VALUE_LVAL (val0) is not lval_memory. | |
880 | ||
f79da888 | 881 | 2018-01-05 Xavier Roirand <roirand@adacore.com> |
e3861a03 XR |
882 | |
883 | * ada-valprint.c (print_optional_low_bound): Handle | |
884 | character-indexed array printing like boolean-indexed array | |
885 | printing. | |
886 | ||
cd385f94 JB |
887 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
888 | ||
889 | * NEWS: Create a new section for the next release branch. | |
890 | Rename the section of the current branch, now that it has | |
891 | been cut. | |
892 | ||
09aca949 JB |
893 | 2018-01-05 Joel Brobecker <brobecker@adacore.com> |
894 | ||
895 | GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7): | |
896 | * version.in: Bump version to 8.1.50.DATE-git. | |
897 | ||
9f757bf7 XR |
898 | 2018-01-03 Xavier Roirand <roirand@adacore.com> |
899 | ||
900 | * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>: | |
901 | Add field. | |
902 | * ada-lang.c (struct exception_support_info) <catch_handlers_sym>: | |
903 | Add field. | |
904 | (default_exception_support_info) <catch_handlers_sym>: Add field. | |
905 | (exception_support_info_fallback) <catch_handlers_sym>: Add field. | |
906 | (ada_exception_name_addr_1): Add "catch handlers" handling. | |
907 | (ada_exception_catchpoint_cond_string) <ex>: New parameter. | |
908 | Update all callers. | |
909 | (create_excep_cond_exprs) <ex>: Add parameter. | |
910 | (re_set_exception): Update create_excep_cond_exprs call. | |
911 | (print_it_exception, print_one_exception, print_mention_exception) | |
912 | (print_recreate_exception): Add "catch handler" handling. | |
913 | (allocate_location_catch_handlers, re_set_catch_handlers) | |
914 | (check_status_catch_handlers, print_it_catch_handlers) | |
915 | (print_one_catch_handlers, print_mention_catch_handlers) | |
916 | (print_recreate_catch_handlers): New function. | |
917 | (catch_handlers_breakpoint_ops): New variable. | |
918 | (catch_ada_exception_command_split) <is_catch_handlers_cmd>: | |
919 | Add parameter. Add "catch handler" handling. | |
920 | (ada_exception_sym_name, ada_exception_breakpoint_ops): | |
921 | Add "catch handler" handling. | |
922 | (ada_exception_catchpoint_cond_string): Add "catch handler" | |
923 | handling. | |
924 | (create_ada_exception_catchpoint): Update create_excep_cond_exprs | |
925 | call. | |
926 | (catch_ada_handlers_command): New function. | |
927 | (initialize_ada_catchpoint_ops): Initialize "catch handlers" | |
928 | operations structure. | |
929 | (_initialize_ada_language): Add "catch handlers" command entry. | |
930 | * NEWS: Document "catch handlers" feature. | |
931 | ||
9fe561ab JB |
932 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
933 | ||
934 | * ada-lang.c (ada_value_slice_from_ptr): Take array stride into | |
935 | account when creating the array type of the slice. | |
936 | (ada_value_slice): Likewise. | |
937 | ||
a405673c JB |
938 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
939 | ||
940 | * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>: | |
941 | New enum value. | |
942 | (create_array_type_with_stride): Add byte_stride_prop parameter. | |
943 | * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>: | |
944 | New parameter. Update all callers in this file. | |
945 | (array_type_has_dynamic_stride): New function. | |
946 | (is_dynamic_type_internal, resolve_dynamic_array): Add handling | |
947 | of arrays with dynamic byte strides. | |
948 | * dwarf2read.c (read_array_type): Add support for dynamic | |
949 | DW_AT_byte_stride attributes. | |
950 | ||
74a2f8ff JB |
951 | 2018-01-02 Joel Brobecker <brobecker@adacore.com> |
952 | ||
953 | * dwarf2read.c (read_unspecified_type): Treat | |
954 | DW_TAG_enumeration_type DIEs from Ada units as stubs. | |
955 | ||
e2882c85 JB |
956 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
957 | ||
958 | Update copyright year range in all GDB files. | |
959 | ||
1690bb24 JB |
960 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
961 | ||
962 | * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp | |
963 | and gdb/testsuite/gdb.base/step-line.c. | |
964 | ||
0f0c98a8 JB |
965 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
966 | ||
967 | * copyright.py (main): Dump the contents of | |
968 | MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND, | |
969 | even if BY_HAND is empty. | |
970 | ||
82e1e79a JB |
971 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
972 | ||
973 | * top.c (print_gdb_version): Update Copyright year in version | |
974 | message. | |
975 | ||
053f54e5 | 976 | 2018-01-01 Joel Brobecker <brobecker@adacore.com> |
47fea877 | 977 | |
053f54e5 | 978 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017. |
47fea877 | 979 | |
053f54e5 | 980 | For older changes see ChangeLog-2017. |
c906108c SS |
981 | \f |
982 | Local Variables: | |
983 | mode: change-log | |
984 | left-margin: 8 | |
985 | fill-column: 74 | |
986 | version-control: never | |
57da7796 | 987 | coding: utf-8 |
c906108c | 988 | End: |