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