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