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