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