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