dwarf: Make sect_offset 64-bits
[binutils-gdb.git] / gdb / ChangeLog
1 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdbtypes.h (sect_offset): Change type to uint64_t.
4 (sect_offset_str): New function.
5 * dwarf2read.c (create_addrmap_from_aranges): Use
6 sect_offset_str.
7 (error_check_comp_unit_head): Likewise.
8 (create_debug_type_hash_table): Likewise.
9 (read_cutu_die_from_dwo): Likewise.
10 (init_cutu_and_read_dies): Likewise.
11 (init_cutu_and_read_dies_no_follow): Likewise.
12 (process_psymtab_comp_unit_reader): Likewise.
13 (partial_die_parent_scope): Likewise.
14 (peek_die_abbrev): Likewise.
15 (process_queue): Likewise.
16 (dwarf2_physname): Likewise.
17 (read_namespace_alias): Likewise.
18 (read_import_statement): Likewise.
19 (create_dwo_cu_reader): Likewise.
20 (create_cus_hash_table): Likewise.
21 (lookup_dwo_cutu): Likewise.
22 (inherit_abstract_dies): Likewise.
23 (read_func_scope): Likewise.
24 (read_call_site_scope): Likewise.
25 (dwarf2_add_member_fn): Likewise.
26 (read_common_block): Likewise.
27 (read_module_type): Likewise.
28 (read_typedef): Likewise.
29 (read_subrange_type): Likewise.
30 (load_partial_dies): Likewise.
31 (read_partial_die): Likewise.
32 (find_partial_die): Likewise.
33 (read_str_index): Likewise.
34 (dwarf2_string_attr): Likewise.
35 (build_error_marker_type): Likewise.
36 (lookup_die_type): Likewise.
37 (dump_die_shallow): Likewise.
38 (follow_die_ref): Likewise.
39 (dwarf2_fetch_die_loc_sect_off): Likewise.
40 (dwarf2_fetch_constant_bytes): Likewise.
41 (follow_die_sig): Likewise.
42 (get_signatured_type): Likewise.
43 (get_DW_AT_signature_type): Likewise.
44 (dwarf2_find_containing_comp_unit): Likewise.
45 (set_die_type): Likewise.
46
47 2018-02-21 John Baldwin <jhb@FreeBSD.org>
48
49 * arch/aarch64.c: Include "common-defs.h".
50 * arch/amd64.c: Likewise.
51 * arch/i386.c: Likewise.
52
53 2018-02-21 Tom Tromey <tom@tromey.com>
54
55 * value.h: (extract_field_op): Update.
56 * eval.c (extract_field_op): Return a const char *.
57 * expression.h (parse_expression_for_completion): Update.
58 * completer.c (complete_expression): Update.
59 (add_struct_fields): Make fieldname const.
60 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
61 (mark_completion_tag, parse_exp_in_context_1): Update.
62 (parse_expression_for_completion): Change "name" to
63 unique_xmalloc_ptr*.
64
65 2018-02-21 Tom Tromey <tom@tromey.com>
66
67 * infcall.c (call_function_by_hand_dummy): Use std::vector.
68
69 2018-02-21 Yao Qi <yao.qi@linaro.org>
70
71 * avr-tdep.c (avr_read_pc): Change parameter type to
72 readable_regcache.
73 * gdbarch.sh (read_pc): Likewise.
74 * gdbarch.c: Re-generated.
75 * gdbarch.h: Re-generated.
76 * hppa-tdep.c (hppa_read_pc): Change parameter type to
77 readable_regcache.
78 * ia64-tdep.c (ia64_read_pc): Likewise.
79 * mips-tdep.c (mips_read_pc): Likewise.
80 * spu-tdep.c (spu_read_pc): Likewise.
81
82 2018-02-21 Yao Qi <yao.qi@linaro.org>
83
84 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
85 * regcache-dump.c: New file.
86 * regcache.c: Move register_dump to regcache-dump.c.
87 (maintenance_print_registers): Likewise.
88 (maintenance_print_raw_registers): Likewise.
89 (maintenance_print_cooked_registers): Likewise.
90 (maintenance_print_register_groups): Likewise.
91 (maintenance_print_remote_registers): Likewise.
92 (_initialize_regcache): Likewise.
93 * regcache.h (register_dump): Moved from regcache.c.
94
95 2018-02-21 Yao Qi <yao.qi@linaro.org>
96
97 * regcache.c (regcache::regcache): Update.
98 (regcache::invalidate): Move it to detached_regcache::invalidate.
99 (get_thread_arch_aspace_regcache): Update.
100 (regcache::raw_update): Update.
101 (regcache::cooked_read): Remove some code.
102 (regcache::cooked_read_value): Likewise.
103 (regcache::raw_write): Remove assert on m_readonly_p.
104 (regcache::raw_supply_integer): Move it to
105 detached_regcache::raw_supply_integer.
106 (regcache::raw_supply_zeroed): Likewise.
107 * regcache.h (detached_regcache) <raw_supply_integer>: New
108 declaration.
109 <raw_supply_zeroed, invalidate>: Likewise.
110 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
111 <invalidate>: Likewise.
112 <m_readonly_p>: Removed.
113
114 2018-02-21 Yao Qi <yao.qi@linaro.org>
115
116 * infcmd.c (get_return_value): Let stop_regs point to
117 get_current_regcache.
118 * regcache.c (regcache::regcache): Remove.
119 (register_dump_reg_buffer): New class.
120 (regcache_print): Adjust.
121 * regcache.h (regcache): Remove constructors.
122
123 2018-02-21 Yao Qi <yao.qi@linaro.org>
124
125 * regcache.c (class register_dump): New class.
126 (register_dump_regcache, register_dump_none): New class.
127 (register_dump_remote, register_dump_groups): New class.
128 (regcache_print): Update.
129 * regcache.h (regcache_dump_what): Move it to regcache.c.
130 (regcache) <dump>: Remove.
131
132 2018-02-21 Yao Qi <yao.qi@linaro.org>
133
134 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
135 reg_buffer_rw *.
136 (jit_unwind_reg_set_impl): Call raw_supply.
137 (jit_frame_sniffer): Use reg_buffer_rw.
138 * record-full.c (record_full_core_regbuf): Change its type.
139 (record_full_core_open_1): Use reg_buffer_rw.
140 (record_full_close): Likewise.
141 (record_full_core_fetch_registers): Use regcache->raw_supply.
142 (record_full_core_store_registers): Likewise.
143 * regcache.c (regcache::get_register_status): Move it to
144 reg_buffer.
145 (regcache_raw_set_cached_value): Remove.
146 (regcache::raw_set_cached_value): Remove.
147 (regcache::raw_write): Call raw_supply.
148 (regcache::raw_supply): Move it to reg_buffer_rw.
149 * regcache.h (regcache_raw_set_cached_value): Remove.
150 (reg_buffer_rw): New class.
151
152 2018-02-21 Yao Qi <yao.qi@linaro.org>
153
154 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
155 readonly_detached_regcache.
156 (dummy_frame_prev_register): Use regcache->cooked_read.
157 * frame.c (frame_save_as_regcache): Change return type.
158 (frame_pop): Update.
159 * frame.h (frame_save_as_regcache): Update declaration.
160 * inferior.h (get_infcall_suspend_state_regcache): Update
161 declaration.
162 * infrun.c (infcall_suspend_state) <registers>: use
163 readonly_detached_regcache.
164 (save_infcall_suspend_state): Don't use regcache_dup.
165 (get_infcall_suspend_state_regcache): Change return type.
166 * linux-fork.c (struct fork_info) <savedregs>: Change to
167 readonly_detached_regcache.
168 <pc>: New field.
169 (fork_save_infrun_state): Don't use regcache_dup.
170 (info_checkpoints_command): Adjust.
171 * mi/mi-main.c (register_changed_p): Update declaration.
172 (mi_cmd_data_list_changed_registers): Use
173 readonly_detached_regcache.
174 (register_changed_p): Change parameter type to
175 readonly_detached_regcache.
176 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
177 readonly_detached_regcache.
178 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
179 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
180 New.
181 (regcache::save): Move it to reg_buffer.
182 (regcache::restore): Change parameter type.
183 (regcache_dup): Remove.
184 * regcache.h (reg_buffer) <save>: New method.
185 (readonly_detached_regcache): New class.
186 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
187 readonly_detached_regcache.
188 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
189
190 2018-02-21 Yao Qi <yao.qi@linaro.org>
191
192 * frame.c (frame_save_as_regcache): Use regcache method save.
193 (frame_pop): Use regcache method restore.
194 * infrun.c (restore_infcall_suspend_state): Likewise.
195 * linux-fork.c (fork_load_infrun_state): Likewise.
196 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
197 save.
198 * regcache.c (regcache_save): Remove.
199 (regcache::restore): More asserts.
200 (regcache_cpy): Remove.
201 * regcache.h (regcache_save): Remove the declaration.
202 (regcache::restore): Move from private to public.
203 Remove the friend declaration of regcache_cpy.
204 (regcache_cpy): Remove declaration.
205
206 2018-02-21 Yao Qi <yao.qi@linaro.org>
207
208 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
209 parameter type to 'readable_regcache *'.
210 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
211 * arm-tdep.c (arm_neon_quad_read): Likewise.
212 (arm_pseudo_read): Likewise.
213 * avr-tdep.c (avr_pseudo_register_read): Likewise.
214 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
215 * frv-tdep.c (frv_pseudo_register_read): Likewise.
216 * gdbarch.c: Re-generated.
217 * gdbarch.h: Re-generated.
218 * gdbarch.sh (pseudo_register_read): Change parameter type to
219 'readable_regcache *'.
220 (pseudo_register_read_value): Likewise.
221 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
222 (h8300_pseudo_register_read): Likewise.
223 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
224 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
225 (i386_pseudo_register_read_into_value): Likewise.
226 (i386_pseudo_register_read_value): Likewise.
227 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
228 declaration.
229 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
230 * m32c-tdep.c (m32c_raw_read): Likewise.
231 (m32c_read_flg): Likewise.
232 (m32c_banked_register): Likewise.
233 (m32c_banked_read): Likewise.
234 (m32c_sb_read): Likewise.
235 (m32c_part_read): Likewise.
236 (m32c_cat_read): Likewise.
237 (m32c_r3r2r1r0_read): Likewise.
238 (m32c_pseudo_register_read): Likewise.
239 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
240 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
241 (mep_pseudo_cr64_read): Likewise.
242 (mep_pseudo_register_read): Likewise.
243 * mips-tdep.c (mips_pseudo_register_read): Likewise.
244 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
245 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
246 * regcache.c (regcache::raw_read): Move it to readable_regcache.
247 (regcache::cooked_read): Likewise.
248 (regcache::cooked_read_value): Likewise.
249 (regcache_cooked_read_signed):
250 (regcache::cooked_read): Likewise.
251 * regcache.h (readable_regcache): New class.
252 (regcache): Inherit readable_regcache. Move some methods to
253 readable_regcache.
254 * rl78-tdep.c (rl78_pseudo_register_read): Change
255 parameter type to 'readable_regcache *'.
256 * rs6000-tdep.c (do_regcache_raw_read): Remove.
257 (e500_pseudo_register_read): Change parameter type to
258 'readable_regcache *'.
259 (dfp_pseudo_register_read): Likewise.
260 (vsx_pseudo_register_read): Likewise.
261 (efpr_pseudo_register_read): Likewise.
262 * s390-tdep.c (s390_pseudo_register_read): Likewise.
263 * sh-tdep.c (sh_pseudo_register_read): Likewise.
264 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
265 (sh64_pseudo_register_read): Likewise.
266 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
267 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
268 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
269 (spu_pseudo_register_read): Likewise.
270 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
271 (xtensa_pseudo_register_read): Likewise.
272
273 2018-02-21 Yao Qi <yao.qi@linaro.org>
274
275 * regcache.c (regcache::regcache): Call reg_buffer ctor.
276 (regcache::arch): Move it to reg_buffer::arch.
277 (regcache::register_buffer): Likewise.
278 (regcache::assert_regnum): Likewise.
279 (regcache::num_raw_registers): Likewise.
280 * regcache.h (reg_buffer): New class.
281 (regcache): Inherit reg_buffer.
282
283 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
284
285 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
286 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
287
288 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
289
290 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
291
292 2018-02-19 Alan Hayward <alan.hayward@arm.com>
293
294 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
295 (SFILES): Remove common/*.c files.
296 (COMMON_OBS): Remove some *.o files built from common/*.c files.
297 * common/common.host: Add common reference.
298 * configure.ac: Likewise.
299 * configure: Regenerate.
300
301 2018-02-16 Yao Qi <yao.qi@linaro.org>
302
303 * block.c (block_namespace_info): Inherit allocate_on_obstack.
304 (block_initialize_namespace): Use new.
305 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
306 (dwarf2_free_objfile): Use delete.
307 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
308 (copy_type_recursive): Use new.
309 * gdb_obstack.h (allocate_on_obstack): New.
310
311 2018-02-15 Yao Qi <yao.qi@linaro.org>
312
313 PR gdb/22849
314 * inferior.c (exit_inferior_1): Reset inf->control.
315
316 2018-02-15 Joel Brobecker <brobecker@adacore.com>
317
318 * ada-lang.c (ada_to_fixed_value_create): Delete advance
319 declaration.
320
321 2018-02-14 Pedro Alves <palves@redhat.com>
322
323 * frame-unwind.c (frame_unwind_try_unwinder): Always call
324 frame_cleanup_after_sniffer on exception.
325
326 2018-02-14 Tom Tromey <tom@tromey.com>
327
328 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
329 const.
330 (solib_bfd_open): Make pathname const.
331 * solib.c (solib_bfd_open): Make pathname const.
332 * solib-spu.c (spu_bfd_fopen): Make name const.
333 (spu_bfd_open): Make pathname const.
334 * solib-darwin.c (darwin_bfd_open): Make pathname const.
335 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
336
337 2018-02-14 Tom Tromey <tom@tromey.com>
338
339 * symfile.c (symfile_bfd_open): Update.
340 * source.h (openp, source_full_path_of, find_and_open_source):
341 Change argument type to unique_xmalloc_ptr.
342 * source.c (openp): Take a unique_xmalloc_ptr.
343 (source_full_path_of, find_and_open_source): Likewise.
344 (open_source_file, symtab_to_fullname): Update.
345 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
346 unique_xmalloc_ptr.
347 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
348 (exec_file_find): Update.
349 * psymtab.c (psymtab_to_fullname): Update.
350 * nto-tdep.h (nto_find_and_open_solib): Update.
351 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
352 unique_xmalloc_ptr.
353 * exec.c (exec_file_attach): Update.
354 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
355 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
356
357 2018-02-14 Tom Tromey <tom@tromey.com>
358
359 * solib.c: Include source.h.
360 * nto-tdep.c: Include source.h.
361 * mi/mi-cmd-env.c: Include source.h.
362 * infcmd.c: Include source.h.
363 * exec.c: Include source.h.
364 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
365 (add_path, directory_switch, source_path, init_source_path): Move
366 declarations...
367 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
368 (add_path, directory_switch, source_path, init_source_path):
369 ...here.
370
371 2018-02-14 Tom Tromey <tom@tromey.com>
372
373 * solist.h (exec_file_find, solib_find): Return
374 unique_xmalloc_ptr.
375 (solib_bfd_fopen): Take a const char *.
376 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
377 (exec_file_find, solib_find): Likewise.
378 (solib_bfd_fopen): Do not take ownership of "pathname".
379 (solib_bfd_open): Use unique_xmalloc_ptr.
380 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
381 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
382 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
383 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
384
385 2018-02-14 Joel Brobecker <brobecker@adacore.com>
386
387 * ada-lang.c (name_match_type_from_name): Remove reference to
388 ada_name_for_lookup in function's documentation.
389 * ada-lang.h (ada_name_for_lookup): Delete declaration.
390
391 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
392
393 * defs.h (enum openp_flags): New enum.
394 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
395 Move to enum openp_flags.
396 (openp_flags): New enum flags.
397 (openp): Change parameter type to openp_flags.
398 * source.c (openp): Change parameter type to openp_flags.
399 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
400 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
401
402 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
403
404 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
405 per-command.
406
407 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
408
409 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
410 into...
411 (class dwarf2_queue_guard): ...the destructor of this new class.
412 (dw2_do_instantiate_symtab): Create instance of the new class
413 dwarf2_queue_guard, remove cleanup.
414
415 2018-02-09 Tom Tromey <tom@tromey.com>
416
417 * source.c (find_source_lines): Don't reference past the end of
418 the vector.
419
420 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
421
422 * remote.c (remote_btrace_maybe_reopen): Change error message.
423 * btrace.c (btrace_enable): Likewise.
424 (parse_xml_btrace): Likewise.
425 (parse_xml_btrace_conf): Likewise.
426
427 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
428
429 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
430 (linux_enable_pt, linux_enable_bts): Call
431 diagnose_perf_event_open_fail.
432
433 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
434
435 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
436 Remove parameter and change return type. Update callers. Move it.
437 (linux_enable_bts, linux_enable_pt): Improve error message.
438 (linux_enable_pt): Remove zero buffer size check.
439 (linux_enable_btrace): Improve error messages. Remove NULL return
440 check.
441
442 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
443
444 * btrace.c (btrace_enable): Remove target_supports_btrace call.
445 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
446 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
447 (linux_supports_pt, linux_supports_btrace): Remove.
448 (linux_enable_bts): Call cpu_supports_bts.
449 * nat/linux-btrace.h (linux_supports_btrace): Remove.
450 * remote.c (remote_supports_btrace): Remove.
451 (init_remote_ops): Remove remote_supports_btrace.
452 * target-delegates.c: Regenerated.
453 * target.c (target_supports_btrace): Remove.
454 * target.h (target_ops) <to_supports_btrace>: Remove
455 (target_supports_btrace): Remove.
456 * x86-linux-nat.c (x86_linux_create_target): Remove
457 linux_supports_btrace.
458
459 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
460
461 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
462 btrace failed.
463 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
464 exception and use message in own exception.
465
466 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
467
468 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
469 (perf_event_pt_event_type): Use gdb_file_up.
470 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
471 scoped_fd, and scoped_mmap.
472
473 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
474
475 * common/scoped_mmap.h: New.
476 * unittests/scoped_mmap-selftest.c: New.
477 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
478 unittests/scoped_mmap-selftest.c.
479
480 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
481
482 * common/scoped_fd.h: New.
483 * unittests/scoped_fd-selftest.c: New.
484 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
485 unittests/scoped_fd-selftest.c.
486
487 2018-02-09 Tom Tromey <tom@tromey.com>
488
489 * auto-load.c (auto_load_section_scripts): Use
490 gdb::unique_xmalloc_ptr.
491
492 2018-02-09 Tom Tromey <tom@tromey.com>
493
494 * auto-load.c (execute_script_contents): Use std::string.
495
496 2018-02-09 Joel Brobecker <brobecker@adacore.com>
497
498 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
499 Python function, rather than a new command.
500
501 2018-02-08 Tom Tromey <tom@tromey.com>
502
503 * solib.c (solib_find_1): Use std::string.
504 (solib_bfd_fopen): Use unique_xmalloc_ptr.
505
506 2018-02-08 Tom Tromey <tom@tromey.com>
507
508 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
509
510 2018-02-08 Tom Tromey <tom@tromey.com>
511
512 * source.c (find_source_lines): Use gdb::def_vector.
513
514 2018-02-08 Tom Tromey <tom@tromey.com>
515
516 * macrocmd.c (struct temporary_macro_definition): New.
517 (macro_define_command): Use temporary_macro_definition. Remove
518 cleanups.
519 (free_macro_definition_ptr): Remove.
520
521 2018-02-08 Tom Tromey <tom@tromey.com>
522
523 * macroexp.c (maybe_expand): Use std::string.
524
525 2018-02-08 Tom Tromey <tom@tromey.com>
526
527 * macroexp.c (struct macro_buffer): Add initializers for some
528 members.
529 (init_buffer, init_shared_buffer, free_buffer)
530 (free_buffer_return_text): Remove.
531 (macro_buffer): New constructors.
532 (~macro_buffer): New destructor.
533 (macro_buffer::set_shared): New method.
534 (macro_buffer::resize_buffer, macro_buffer::appendc)
535 (macro_buffer::appendmem): Now methods, not free functions.
536 (set_token, append_tokens_without_splicing, stringify)
537 (macro_stringify): Update.
538 (gather_arguments): Change return type. Remove argc_p argument,
539 add args_ptr argument. Use std::vector.
540 (substitute_args): Remove argc argument. Accept std::vector.
541 (expand): Update. Use std::vector.
542 (scan, macro_expand, macro_expand_next): Update.
543
544 2018-02-08 Tom Tromey <tom@tromey.com>
545
546 * symtab.c (default_collect_symbol_completion_matches_break_on):
547 Use unique_xmalloc_ptr.
548 * macroscope.h: (sal_macro_scope, user_macro_scope)
549 (default_macro_scope): Return unique_xmalloc_ptr.
550 * macroscope.c (sal_macro_scope, user_macro_scope)
551 (default_macro_scope): Return unique_xmalloc_ptr.
552 * macroexp.h (macro_expand, macro_expand_once): Return
553 unique_xmalloc_ptr.
554 * macroexp.c (macro_expand, macro_expand_once): Return
555 unique_xmalloc_ptr.
556 * macrocmd.c (macro_expand_command, macro_expand_once_command)
557 (info_macro_command, info_macros_command): Use
558 unique_xmalloc_ptr.
559 * compile/compile-c-support.c (write_macro_definitions): Use
560 unique_xmalloc_ptr.
561 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
562
563 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
564
565 * value.c (value_static_field): Assign field type instead of
566 containing type when returning an optimized out value.
567
568 2018-02-06 Yao Qi <yao.qi@linaro.org>
569
570 * ft32-tdep.c (ft32_read_pc): Remove.
571 (ft32_write_pc): Remove.
572 (ft32_gdbarch_init): Update.
573 * m32r-tdep.c (m32r_read_pc): Remove.
574 (m32r_gdbarch_init): Update.
575 * mep-tdep.c (mep_read_pc): Remove.
576 (mep_gdbarch_init): Update.
577 * microblaze-tdep.c (microblaze_write_pc): Remove.
578 (microblaze_gdbarch_init): Update.
579 * mn10300-tdep.c (mn10300_read_pc): Remove.
580 (mn10300_write_pc): Remove.
581 (mn10300_gdbarch_init): Update.
582 * moxie-tdep.c (moxie_read_pc): Remove.
583 (moxie_write_pc): Remove.
584 (moxie_gdbarch_init): Update.
585
586 2018-02-06 Yao Qi <yao.qi@linaro.org>
587
588 * expprint.c (print_subexp_standard): Handle
589 OP_F77_UNDETERMINED_ARGLIST.
590 (dump_subexp_body_standard): Likewise.
591
592 2018-02-05 Alan Hayward <alan.hayward@arm.com>
593
594 * target-descriptions.c (tdesc_element_visitor) Add empty
595 implementations.
596 (tdesc_type): Move make_gdb_type from here.
597 (tdesc_type_builtin): Likewise.
598 (tdesc_type_vector): Likewise.
599 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
600 (make_gdb_type_struct): Move from tdesc_type_with_fields.
601 (make_gdb_type_union): Likewise.
602 (make_gdb_type_flags): Likewise.
603 (make_gdb_type_enum): Likewise.
604 (make_gdb_type): New function.
605 (tdesc_register_type): Use static make_gdb_type.
606
607 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
608
609 * infcmd.c (default_print_one_register_info): Align natural-format
610 column values consistently one under another.
611 (pad_to_column): New function.
612
613 2018-02-05 Joel Brobecker <brobecker@adacore.com>
614
615 * dwarf2read.c (dwarf2_physname): Move commment.
616
617 2018-02-01 Leszek Swirski <leszeks@google.com>
618
619 * varobj.c (varobj_formatted_print_options): Allow recursive
620 pretty printing if pretty printing is enabled.
621
622 2018-02-01 Leszek Swirski <leszeks@google.com>
623
624 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
625 names after a structop as a filename.
626
627 2018-02-01 Yao Qi <yao.qi@linaro.org>
628
629 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
630 (arm_record_coproc_data_proc): Likewise.
631
632 2018-02-01 Yao Qi <yao.qi@linaro.org>
633
634 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
635
636 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
637
638 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
639 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
640
641 2018-01-31 Pedro Alves <palves@redhat.com>
642
643 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
644 * inflow.c (child_terminal_save_inferior): Wrap reference to
645 tcgetpgrp in HAVE_TERMIOS_H.
646 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
647 _WIN32.
648 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
649 always iterate over all inferiors.
650 (gdbsim_cntrl_c): Adjust.
651 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
652
653 2018-01-31 Joel Brobecker <brobecker@adacore.com>
654
655 * gdbtypes.c (lookup_array_range_type): Make sure the array's
656 index type is objfile-owned if the element type is as well.
657
658 2018-01-31 Joel Brobecker <brobecker@adacore.com>
659
660 GDB 8.1 released.
661
662 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
663
664 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
665 "features/s390x-linux64.c".
666 (_initialize_s390_linux_tdep): Remove initialization of tdescs
667 s390_linux32 and s390x_linux64.
668 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
669 default tdesc.
670 * s390-tdep.c: Include "features/s390-linux32.c" and
671 "features/s390x-linux64.c".
672 (s390_tdesc_valid): Add check for tdesc_has_registers.
673 (s390_gdbarch_init): Make sure there is always a valid tdesc.
674 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
675 tdesc_s390x_linux64.
676 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
677 tdesc_s390x_linux64 to...
678 * s390-tdep.h: ...here.
679
680 2018-01-30 Pedro Alves <palves@redhat.com>
681
682 PR gdb/13211
683 * config.in, configure: Regenerate.
684 * configure.ac: Check for getpgid.
685 * go32-nat.c (go32_pass_ctrlc): New.
686 (go32_target): Install it.
687 * inf-child.c (inf_child_target): Install
688 child_terminal_save_inferior, child_pass_ctrlc and
689 child_interrupt.
690 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
691 (inf_ptrace_target): No longer install it.
692 * infcmd.c (interrupt_target_1): Adjust.
693 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
694 (child_interrupt): Declare.
695 (inferior::terminal_state): New.
696 * inflow.c (struct terminal_info): Update comments.
697 (inferior_process_group): Delete.
698 (terminal_is_ours): Delete.
699 (gdb_tty_state): New.
700 (child_terminal_init): Adjust.
701 (is_gdb_terminal, sharing_input_terminal_1)
702 (sharing_input_terminal): New functions.
703 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
704 Set the process's actual process group in the foreground if
705 possible. Handle is_ours_for_output/is_ours distinction. Don't
706 mark terminal as the inferior's if not sharing GDB's terminal.
707 Don't check attach_flag.
708 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
709 pass down a target_terminal_state.
710 (child_terminal_save_inferior): New, factored out from ...
711 (child_terminal_ours_1): ... this. Handle
712 target_terminal_state::is_ours_for_output.
713 (child_interrupt, child_pass_ctrlc): New.
714 (inflow_inferior_exit): Clear the inferior's terminal_state.
715 (copy_terminal_info): Copy the inferior's terminal state.
716 (_initialize_inflow): Remove reference to terminal_is_ours.
717 * inflow.h (inferior_process_group): Delete.
718 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
719 * procfs.c (procfs_target): Don't install procfs_interrupt.
720 (procfs_interrupt): Delete.
721 * remote.c (remote_serial_quit_handler): Adjust.
722 (remote_interrupt): Remove ptid parameter. Adjust.
723 * target-delegates.c: Regenerate.
724 * target.c: Include "terminal.h".
725 (target_terminal::terminal_state): Rename to ...
726 (target_terminal::m_terminal_state): ... this.
727 (target_terminal::init): Adjust.
728 (target_terminal::inferior): Adjust to per-inferior
729 terminal_state.
730 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
731 (target_terminal::ours, target_terminal::ours_for_output): Use
732 target_terminal_is_ours_kind.
733 (target_interrupt): Remove ptid parameter. Adjust.
734 (default_target_pass_ctrlc): Adjust.
735 * target.h (target_ops::to_terminal_save_inferior): New field.
736 (target_ops::to_interrupt): Remove ptid_t parameter.
737 (target_interrupt): Remove ptid_t parameter. Update comment.
738 (target_pass_ctrlc): Update comment.
739 * target/target.h (target_terminal_state): New scoped enum,
740 factored out of ...
741 (target_terminal::terminal_state): ... here.
742 (target_terminal::inferior): Update comments.
743 (target_terminal::restore_inferior): New.
744 (target_terminal::is_inferior, target_terminal::is_ours)
745 (target_terminal::is_ours_for_output): Adjust.
746 (target_terminal::scoped_restore_terminal_state): Adjust to
747 rename, and call restore_inferior() instead of inferior().
748 (target_terminal::scoped_restore_terminal_state::m_state): Change
749 type.
750 (target_terminal::terminal_state): Rename to ...
751 (target_terminal::m_terminal_state): ... this and change type.
752
753 2018-01-30 Pedro Alves <palves@redhat.com>
754
755 * linux-nat.c (wait_for_signal): New function.
756 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
757 directly.
758 (async_terminal_is_ours)
759 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
760 (linux_nat_add_target): Don't override
761 to_terminal_inferior/to_terminal_ours.
762
763 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
764
765 * remote.c (remote_follow_fork): Don't call "detach_inferior".
766
767 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
768
769 * dwarf2read.c (free_dwo_files): Add forward-declaration.
770 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
771 dwarf2_per_objfile_free here.
772 (dwarf2_per_objfile_free): Remove.
773 (_initialize_dwarf2_read): Don't register
774 dwarf2_per_objfile_free as a registry cleanup.
775
776 2018-01-27 Eli Zaretskii <eliz@gnu.org>
777
778 Avoid compilation errors in MinGW native builds
779
780 The error is triggered by including python-internal.h, and the
781 error message is:
782
783 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
784 from build-gnulib/import/math.h:27,
785 from d:/usr/Python26/include/pyport.h:235,
786 from d:/usr/Python26/include/Python.h:58,
787 from python/python-internal.h:94,
788 from python/py-arch.c:24:
789 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
790 using ::hypot;
791 ^~~~~
792
793 This happens because Python headers define 'hypot' to expand t
794 '_hypot' in the Windows builds.
795 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
796 'hypoth'. This avoids a compilation error.
797
798 2018-01-26 Alan Hayward <alan.hayward@arm.com>
799
800 * MAINTAINERS (Write After Approval): Fix ordering.
801
802 2018-01-26 Alan Hayward <alan.hayward@arm.com>
803
804 * MAINTAINERS (Write After Approval): Add Alan Hayward.
805
806 2018-01-26 Alan Modra <amodra@gmail.com>
807
808 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
809 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
810 Remove nop. Make const. Comment.
811 (powerpc32_plt_stub_so_2): New.
812 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
813 Correct count. Update uses.
814 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
815 Move common code reading PLT entry word. Correct
816 powerpc32_plt_stub PLT address calculation.
817 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
818 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
819 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
820 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
821 (ppc64_standard_linkage8): Likewise.
822 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
823 Correct insns description.
824 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
825
826 2018-01-24 Pedro Alves <palves@redhat.com>
827
828 GCC PR libstdc++/83906
829 * gdbtypes.c (operator==(const dynamic_prop &,
830 const dynamic_prop &)): New.
831 (operator==(const range_bounds &, const range_bounds &)): New.
832 (check_types_equal): Use them instead of memcmp.
833 * gdbtypes.h (operator==(const dynamic_prop &,
834 const dynamic_prop &)): Declare.
835 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
836 (operator==(const range_bounds &, const range_bounds &)): Declare.
837 (operator!=(const range_bounds &, const range_bounds &)): Declare.
838
839 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
840
841 * s390-linux-tdep.c (s390_record_address_mask)
842 (s390_record_calc_disp_common, s390_record_calc_disp)
843 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
844 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
845 (s390_process_record): Move to s390-tdep.c.
846 (s390_linux_init_abi_any): Adjust.
847 * s390-tdep.c (s390_record_address_mask)
848 (s390_record_calc_disp_common, s390_record_calc_disp)
849 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
850 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
851 (s390_process_record): Moved from s390-linux-tdep.c
852 (s390_gdbarch_init): Adjust.
853
854 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
855
856 * s390-linux-nat.c (s390-tdep.h): New include.
857 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
858 (HFILES_NO_SRCDIR): Add s390-tdep.h.
859 (ALLDEPFILES): Add s390-tdep.c.
860 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
861 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
862 * s390-tdep.h: ...this. New file.
863 * s390-linux-tdep.c (s390-tdep.h): New include.
864 (_initialize_s390_tdep): Rename to...
865 (_initialize_s390_linux_tdep): ...this and adjust.
866 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
867 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
868 s390-tdep.h.
869 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
870 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
871 (s390_is_partial_instruction, s390_software_single_step)
872 (is_non_branch_ril, s390_displaced_step_copy_insn)
873 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
874 (s390_prologue_data, s390_addr, s390_store, s390_load)
875 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
876 (s390_register_call_saved, s390_guess_tracepoint_registers)
877 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
878 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
879 (s390_pseudo_register_name, s390_pseudo_register_type)
880 (s390_pseudo_register_read, s390_pseudo_register_write)
881 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
882 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
883 (s390_addr_bits_remove, s390_address_class_type_flags)
884 (s390_address_class_type_flags_to_name)
885 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
886 (s390_function_arg_float, s390_function_arg_vector)
887 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
888 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
889 (s390_frame_align, s390_register_return_value, s390_return_value)
890 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
891 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
892 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
893 (s390_trad_frame_prev_register, s390_unwind_cache)
894 (s390_prologue_frame_unwind_cache)
895 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
896 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
897 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
898 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
899 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
900 (s390_frame_base_address, s390_local_base_address)
901 (s390_frame_base, s390_gcc_target_options)
902 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
903 (s390_validate_reg_range, s390_tdesc_valid)
904 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
905 * s390-tdep.c: ...this. New file.
906
907 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
908
909 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
910 (s390_process_record, s390_gdbarch_tdep_alloc)
911 (s390_linux_init_abi_any): Use/set new hook.
912
913 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
914
915 * s390-linux-tdep.c (osabi.h): New include.
916 (s390_linux_init_abi_31, s390_linux_init_abi_64)
917 (s390_linux_init_abi_any): New functions.
918 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
919
920 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
921
922 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
923 tdesc_has_registers check
924
925 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
926
927 * s390-linux-tdep.c (s390_tdesc_valid): New function.
928 (s390_validate_reg_range): New macro.
929 (s390_gdbarch_init): Adjust.
930
931 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
932
933 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
934 (s390_gdbarch_tdep_alloc): Adjust.
935 (s390_gdbarch_init): Adjust.
936
937 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
938
939 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
940 <have_tdb>: Change type to bool.
941 (s390_gdbarch_tdep_alloc): Adjust.
942 (s390_gdbarch_init): Adjust.
943
944 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
945
946 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
947 (gdbarch_tdep) <have_upper, have_vx>: New fields.
948 (s390_gdbarch_tdep_alloc): New function.
949 (s390_gdbarch_init): Allocate tdep at start and use its fields
950 instead of separate variables.
951
952 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
953
954 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
955 when looking for cached gdbarch and add comment for remaining.
956
957 2018-01-22 Pedro Alves <palves@redhat.com>
958 Sergio Durigan Junior <sergiodj@redhat.com>
959
960 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
961 case.
962
963 2018-01-22 Maciej W. Rozycki <macro@mips.com>
964
965 * MAINTAINERS: Update my company e-mail address.
966
967 2018-01-22 Yao Qi <yao.qi@linaro.org>
968
969 * regcache.c (cooked_write_test): New function.
970 (_initialize_regcache): Register the test.
971
972 2018-01-22 Yao Qi <yao.qi@linaro.org>
973
974 * ia64-tdep.c (ia64_pseudo_register_read): Call
975 regcache->cooked_read instead of regcache_cooked_read_unsigned.
976 * m32c-tdep.c (m32c_cat_read): Likewise.
977 (m32c_r3r2r1r0_read): Likewise.
978 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
979 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
980
981 2018-01-22 Yao Qi <yao.qi@linaro.org>
982
983 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
984 method raw_read instead of regcache_raw_read.
985 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
986 * arm-tdep.c (arm_neon_quad_read): Likewise.
987 * avr-tdep.c (avr_pseudo_register_read): Likewise.
988 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
989 * frv-tdep.c (frv_pseudo_register_read): Likewise.
990 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
991 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
992 (i386_pseudo_register_read_into_value): Likewise.
993 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
994 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
995 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
996 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
997 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
998 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
999 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1000 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1001 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
1002
1003 2018-01-22 Yao Qi <yao.qi@linaro.org>
1004
1005 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
1006 * configure.tgt: Remove target mt.
1007 * mt-tdep.c: Remove.
1008 * regcache.c (cooked_read_test): Remove the check for mt.
1009
1010 2018-01-22 Yao Qi <yao.qi@linaro.org>
1011
1012 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
1013 instead of gdbarch_pseudo_register_read_value.
1014
1015 2018-01-22 Joel Brobecker <brobecker@adacore.com>
1016
1017 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
1018 language is Ada.
1019
1020 2018-01-22 Joel Brobecker <brobecker@adacore.com>
1021
1022 * linespec.c (create_sals_line_offset): Remove code that preserved
1023 the symtab_and_line's line number.
1024
1025 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1026
1027 * varobj.c (varobj_create): Don't set valid_block when creating a
1028 floating varobj.
1029
1030 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1031
1032 * varobj.c (varobj_create): Remove out of date comment.
1033
1034 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1035
1036 PR mi/20395
1037 * ada-exp.y (write_var_from_sym): Pass extra parameter when
1038 updating innermost block.
1039 * parse.c (innermost_block_tracker::update): Take extra type
1040 parameter, and check types match before updating innermost block.
1041 (write_dollar_variable): Update innermost block for registers.
1042 * parser-defs.h (enum innermost_block_tracker_type): New enum.
1043 (innermost_block_tracker::innermost_block_tracker): Initialise
1044 m_types member.
1045 (innermost_block_tracker::reset): Take type parameter.
1046 (innermost_block_tracker::update): Take type parameter, and pass
1047 type through as needed.
1048 (innermost_block_tracker::m_types): New member.
1049 * varobj.c (varobj_create): Pass type when reseting innermost
1050 block.
1051
1052 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1053
1054 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
1055 * ada-lang.c (resolve_subexp): Likewise.
1056 * breakpoint.c (set_breakpoint_condition) Likewise.
1057 (watch_command_1) Likewise.
1058 * c-exp.y (variable): Likewise.
1059 * d-exp.y (PrimaryExpression): Likewise.
1060 * f-exp.y (variable): Likewise.
1061 * go-exp.y (variable): Likewise.
1062 * m2-exp.y (variable): Likewise.
1063 * objfiles.c (objfile::~objfile): Likewise.
1064 * p-exp.y (variable): Likewise.
1065 * parse.c (innermost_block): Change type.
1066 * parser-defs.h (class innermost_block_tracker): New.
1067 (innermost_block): Change to innermost_block_tracker.
1068 * printcmd.c (display_command): Switch to innermost_block API.
1069 (do_one_display): Likewise.
1070 * rust-exp.y (do_one_display): Likewise.
1071 * symfile.c (clear_symtab_users): Likewise.
1072 * varobj.c (varobj_create): Switch to innermost_block API, replace
1073 use of innermost_block with block stored on varobj object.
1074
1075 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
1076
1077 * expression.h (innermost_block): Remove declaration.
1078 * varobj.c: Add 'parser-defs.h' include.
1079
1080 2018-01-19 Tom Tromey <tom@tromey.com>
1081
1082 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
1083 symbols in the static and global blocks.
1084
1085 2018-01-19 James Clarke <jrtc27@jrtc27.com>
1086
1087 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
1088 gdb_ptrace.h, and move including gdb_wait.h ...
1089 * nat/linux-ptrace.h: ... to here.
1090
1091 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1092
1093 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
1094 inf_ptrace_detach_success.
1095 (inf_ptrace_detach_success): Add inferior parameter, use it
1096 instead of inferior_ptid, pass it to detach_inferior.
1097 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
1098 parameter.
1099 * inferior.c (detach_inferior): Add overload that takes an
1100 inferior object.
1101 * inferior.h (detach_inferior): Likewise.
1102 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
1103 use inferior_ptid, adjust call to inf_ptrace_detach_success.
1104 * linux-thread-db.c (thread_db_detach): Use inf parameter.
1105
1106 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1107
1108 * target.h (struct target_ops) <to_detach>: Add inferior
1109 parameter.
1110 (target_detach): Likewise.
1111 * target.c (dispose_inferior): Pass inferior down.
1112 (target_detach): Pass inferior down. Assert that it is equal to
1113 the current inferior.
1114 * aix-thread.c (aix_thread_detach): Pass inferior down.
1115 * corefile.c (core_file_command): Pass current_inferior() down.
1116 * corelow.c (core_detach): Add inferior parameter.
1117 * darwin-nat.c (darwin_detach): Likewise.
1118 * gnu-nat.c (gnu_detach): Likewise.
1119 * inf-ptrace.c (inf_ptrace_detach): Likewise.
1120 * infcmd.c (detach_command): Pass current_inferior() down to
1121 target_detach.
1122 * infrun.c (follow_fork_inferior): Pass parent_inf to
1123 target_detach.
1124 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
1125 target_detach.
1126 * linux-nat.c (linux_nat_detach): Add inferior parameter.
1127 * linux-thread-db.c (thread_db_detach): Likewise.
1128 * nto-procfs.c (procfs_detach): Likewise.
1129 * procfs.c (procfs_detach): Likewise.
1130 * record.c (record_detach): Likewise.
1131 * record.h (struct inferior): Forward-declare.
1132 (record_detach): Add inferior parameter.
1133 * remote-sim.c (gdbsim_detach): Likewise.
1134 * remote.c (remote_detach_1): Likewise.
1135 (remote_detach): Likewise.
1136 (extended_remote_detach): Likewise.
1137 * sol-thread.c (sol_thread_detach): Likewise.
1138 * target-debug.h (target_debug_print_inferior_p): New macro.
1139 * target-delegates.c: Re-generate.
1140 * top.c (kill_or_detach): Pass inferior down to target_detach.
1141 * windows-nat.c (windows_detach): Add inferior parameter.
1142
1143 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
1144
1145 * target.h (struct target_ops) <to_detach>: Remove args
1146 parameter.
1147 (target_detach): Likewise.
1148 * target.c (dispose_inferior): Adjust.
1149 (target_detach): Remove args parameter, adjust.
1150 * aix-thread.c (aix_thread_detach): Adjust.
1151 * corefile.c (core_file_command): Adjust.
1152 * corelow.c (core_detach): Adjust.
1153 * darwin-nat.c (darwin_detach): Adjust.
1154 * gnu-nat.c (gnu_detach): Adjust.
1155 * inf-ptrace.c (inf_ptrace_detach): Adjust.
1156 * infcmd.c (detach_command): Adjust
1157 * infrun.c (follow_fork_inferior): Adjust.
1158 (handle_vfork_child_exec_or_exit): Adjust.
1159 * linux-fork.c (linux_fork_detach): Remove args parameter.
1160 * linux-fork.h (linux_fork_detach): Likewise.
1161 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
1162 * linux-thread-db.c (thread_db_detach): Likewise.
1163 * nto-procfs.c (procfs_detach): Likewise.
1164 * procfs.c (procfs_detach): Likewise.
1165 (do_detach): Remove signo parameter.
1166 * record.c (record_detach): Remove args parameter.
1167 * record.h (record_detach): Likewise.
1168 * remote-sim.c (gdbsim_detach): Likewise.
1169 * remote.c (remote_detach_1): Likewise.
1170 (remote_detach): Likewise.
1171 (extended_remote_detach): Likewise.
1172 * sol-thread.c (sol_thread_detach): Likewise.
1173 * target-delegates.c: Re-generate.
1174 * top.c (struct qt_args) <args>: Remove field.
1175 (kill_or_detach): Don't pass args.
1176 (quit_force): Don't set args.
1177 * windows-nat.c (windows_detach): Remove args parameter.
1178
1179 2018-01-19 Yao Qi <yao.qi@linaro.org>
1180
1181 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
1182 (arm_linux_init_abi): Install it.
1183
1184 2018-01-19 Yao Qi <yao.qi@linaro.org>
1185
1186 * osabi.c (gdb_osabi_names): Extend the regexp for
1187 arm-linux-gnueabihf.
1188
1189 2018-01-18 Yao Qi <yao.qi@linaro.org>
1190
1191 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
1192 m_abbrevs.
1193 (abbrev_table::add_abbrev): Update.
1194 (abbrev_table::lookup_abbrev): Update.
1195
1196 2018-01-18 Yao Qi <yao.qi@linaro.org>
1197
1198 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
1199
1200 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1201
1202 * compile/compile.c (compile_to_object): Convert "triplet_rx"
1203 to "std::string".
1204
1205 2018-01-17 Tom Tromey <tom@tromey.com>
1206
1207 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
1208
1209 2018-01-17 Tom Tromey <tom@tromey.com>
1210
1211 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
1212 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
1213 (create_array_type_with_stride): Update.
1214 * dwarf2read.c (set_die_type): Update.
1215
1216 2018-01-17 Tom Tromey <tom@tromey.com>
1217
1218 * dwarf2read.c (delayed_method_info): Remove typedef.
1219 (dwarf2_cu::method_info): Now a std::vector.
1220 (add_to_method_list): Update.
1221 (free_delayed_list): Remove.
1222 (compute_delayed_physnames): Update.
1223 (process_full_comp_unit, process_full_type_unit): Clear the method
1224 list. Remove cleanups.
1225 (psymtab_include_file_name): Add name_holder parameter. Use
1226 unique_xmalloc_ptr.
1227 (dwarf_decode_lines): Update.
1228
1229 2018-01-17 Tom Tromey <tom@tromey.com>
1230 Simon Marchi <simon.marchi@ericsson.com>
1231
1232 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
1233 (dwarf2_per_objfile::free_cached_comp_units)
1234 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
1235 (init_cutu_and_read_dies_no_follow): Update.
1236 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
1237 (dwarf2_cu::~dwarf2_cu): New.
1238 (free_heap_comp_unit, free_stack_comp_unit): Remove.
1239 (age_cached_comp_units, free_one_cached_comp_unit): Update.
1240
1241 2018-01-17 Tom Tromey <tom@tromey.com>
1242 Simon Marchi <simon.marchi@ericsson.com>
1243
1244 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
1245 (struct die_reader_specs) <abbrev_table>: New member.
1246 (struct abbrev_table): Add constructor.
1247 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
1248 <abbrev_obstack>: Now an auto_obstack.
1249 (abbrev_table_up): New typedef.
1250 (init_cu_die_reader): Add abbrev_table parameter.
1251 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
1252 Add result_dwo_abbrev_table.
1253 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
1254 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
1255 Update.
1256 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
1257 parameter.
1258 (skip_children): Update.
1259 (abbrev_table::alloc_abbrev): Rename from
1260 abbrev_table_alloc_abbrev.
1261 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
1262 (abbrev_table::lookup_abbrev): Rename from
1263 abbrev_table_lookup_abbrev.
1264 (abbrev_table_read_table): Return abbrev_table_up.
1265 (abbrev_table_free, abbrev_table_free_cleanup)
1266 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
1267 (load_partial_dies): Update.
1268
1269 2018-01-17 Tom Tromey <tom@tromey.com>
1270
1271 * dwarf2read.c (dwarf2_compute_name): Update comment.
1272 (read_func_scope, read_variable): Update.
1273 (new_symbol): Remove.
1274 (new_symbol_full): Rename to new_symbol.
1275
1276 2018-01-17 Mike Gulick <mgulick@mathworks.com>
1277
1278 PR gdb/16577
1279 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
1280 a warning instead of throwing an error, set section size to 0 and return
1281 NULL.
1282 * gdb_bfd.h (gdb_bfd_map_section): Update description.
1283
1284 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1285
1286 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
1287 std::string.
1288 (linux_ptrace_attach_fail_reason_string): Likewise.
1289 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
1290 Likewise.
1291 (linux_ptrace_attach_fail_reason_string): Likewise.
1292 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
1293
1294 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
1295
1296 * linux-nat.c (linux_nat_attach): Remove xstrdup.
1297
1298 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
1299
1300 PR gdb/21559
1301 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
1302 checking for fs_base/gs_base fields in struct user_regs_struct.
1303 * configure: Regenerate.
1304
1305 2018-01-17 Yao Qi <yao.qi@linaro.org>
1306
1307 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
1308 function.
1309 (aarch64_linux_init_abi): Install it to gdbarch hook
1310 gcc_target_options.
1311
1312 2018-01-15 Pedro Alves <palves@redhat.com>
1313
1314 * common/signals-state-save-restore.c
1315 (save_original_signals_state): Fix typos.
1316
1317 2017-01-12 Tom Tromey <tom@tromey.com>
1318 Sergio Durigan Junior <sergiodj@redhat.com>
1319
1320 * Makefile.in (install-only): Install gdb-add-index.
1321
1322 2018-01-12 John Baldwin <jhb@FreeBSD.org>
1323
1324 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
1325
1326 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
1327
1328 * infrun.c (keep_going_pass_signal): Clear step-over info when
1329 insert_breakpoints fails.
1330
1331 2018-01-11 Pedro Alves <palves@redhat.com>
1332
1333 PR gdb/22583
1334 * infrun.c (resume): Rename to ...
1335 (resume_1): ... this.
1336 (resume): Reimplement as wrapper around resume_1.
1337
1338 2018-01-11 Pedro Alves <palves@redhat.com>
1339
1340 PR remote/22597
1341 * remote.c (remote_parse_stop_reply): Default to the last-set
1342 general thread instead of to 'magic_null_ptid'.
1343
1344 2018-01-10 Pedro Alves <palves@redhat.com>
1345
1346 * language.h (language_get_symbol_name_matcher): Rename ...
1347 (get_symbol_name_matcher): ... this.
1348 * language.c (language_get_symbol_name_matcher): Ditto.
1349 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
1350 callers adjusted.
1351
1352 2018-01-10 Pedro Alves <palves@redhat.com>
1353
1354 PR gdb/22670
1355 * dwarf2read.c
1356 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
1357 Adjust to use language_get_symbol_name_matcher instead of
1358 language_defn::la_get_symbol_name_matcher.
1359 * language.c (language_get_symbol_name_matcher): If in Ada mode
1360 and the lookup name is a verbatim match, return Ada's matcher.
1361 * language.h (language_get_symbol_name_matcher): Adjust comment.
1362 (ada_lookup_name_info::verbatim_p):: New method.
1363
1364 2018-01-10 Pedro Alves <palves@redhat.com>
1365
1366 PR gdb/22670
1367 * ada-lang.c (ada_collect_symbol_completion_matches): If the
1368 minsym's language is language_auto or language_cplus, pass down
1369 language_ada instead.
1370 * symtab.c (compare_symbol_name): Don't frob symbol language here.
1371
1372 2018-01-10 Pedro Alves <palves@redhat.com>
1373
1374 PR gdb/22670
1375 * minsyms.c (linkage_name_str): New function.
1376 (iterate_over_minimal_symbols): Use it.
1377
1378 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1379
1380 * NEWS: Document that 'info proc' now works on FreeBSD.
1381
1382 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1383
1384 * configure.ac: Check for kinfo_getfile in libutil.
1385 * configure: Regenerate.
1386 * config.in: Regenerate.
1387 * fbsd-nat.c: Include "fbsd-tdep.h".
1388 (fbsd_fetch_cmdline): New.
1389 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
1390 rather than calling error.
1391 (fbsd_info_proc): New.
1392 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
1393 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
1394 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
1395
1396 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1397
1398 * fbsd-nat.c (struct free_deleter): Remove.
1399 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
1400
1401 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1402
1403 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
1404 NULL for an empty pathname.
1405
1406 2018-01-09 John Baldwin <jhb@FreeBSD.org>
1407
1408 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
1409 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
1410 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
1411 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
1412 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
1413 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
1414 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
1415 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
1416 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
1417 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
1418 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
1419 (fbsd_core_fetch_timeval, fbsd_print_sigset)
1420 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
1421 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
1422 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
1423
1424 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
1425
1426 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
1427 (gnu_xfer_auxv): New function.
1428 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
1429 TARGET_OBJECT_AUXV.
1430
1431 2018-01-08 Yao Qi <yao.qi@linaro.org>
1432 Simon Marchi <simon.marchi@ericsson.com>
1433
1434 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
1435 common/selftest.c.
1436 (COMMON_OBS): Remove selftest.o.
1437 * configure.ac: Append selftest-arch.c and common/selftest.c to
1438 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
1439 * configure: Re-generated.
1440 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
1441 GDB_SELF_TEST.
1442 (maintenance_info_selftests): Likewise.
1443
1444 2018-01-08 Xavier Roirand <roirand@adacore.com>
1445
1446 * ada-valprint.c (val_print_packed_array_elements): Use
1447 proper number of elements when printing an array indexed
1448 by an enumeration type.
1449
1450 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1451
1452 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
1453 (dw2_get_file_names_reader): Adjust.
1454 (lookup_dwo_signatured_type): Adjust.
1455 (lookup_dwp_signatured_type): Adjust.
1456 (lookup_signatured_type): Adjust.
1457 (create_type_unit_group): Adjust.
1458 (get_type_unit_group): Adjust.
1459 (process_psymtab_comp_unit_reader): Adjust.
1460 (build_type_psymtabs_reader): Adjust.
1461 (scan_partial_symbols): Adjust.
1462 (add_partial_symbol): Adjust.
1463 (add_partial_subprogram): Adjust.
1464 (peek_die_abbrev): Adjust.
1465 (fixup_go_packaging): Adjust.
1466 (process_imported_unit_die): Adjust.
1467 (dwarf2_compute_name): Adjust.
1468 (dwarf2_physname): Adjust.
1469 (read_import_statement): Adjust.
1470 (handle_DW_AT_stmt_list): Adjust.
1471 (read_file_scope): Adjust.
1472 (read_func_scope): Adjust.
1473 (read_lexical_block_scope): Adjust.
1474 (read_call_site_scope): Adjust.
1475 (read_variable): Adjust.
1476 (dwarf2_rnglists_process): Adjust.
1477 (dwarf2_ranges_process): Adjust.
1478 (dwarf2_ranges_read): Adjust.
1479 (dwarf2_get_pc_bounds): Adjust.
1480 (dwarf2_record_block_ranges): Adjust.
1481 (dwarf2_add_field): Adjust.
1482 (dwarf2_add_member_fn): Adjust.
1483 (read_structure_type): Adjust.
1484 (process_structure_scope): Adjust.
1485 (read_enumeration_type): Adjust.
1486 (read_array_type): Adjust.
1487 (mark_common_block_symbol_computed): Adjust.
1488 (read_common_block): Adjust.
1489 (read_namespace_type): Adjust.
1490 (read_namespace): Adjust.
1491 (read_module_type): Adjust.
1492 (read_tag_pointer_type): Adjust.
1493 (read_tag_ptr_to_member_type): Adjust.
1494 (read_tag_string_type): Adjust.
1495 (read_subroutine_type): Adjust.
1496 (read_typedef): Adjust.
1497 (read_base_type): Adjust.
1498 (attr_to_dynamic_prop): Adjust.
1499 (read_subrange_type): Adjust.
1500 (read_unspecified_type): Adjust.
1501 (dwarf2_read_abbrevs): Adjust.
1502 (load_partial_dies): Adjust.
1503 (read_partial_die): Adjust.
1504 (find_partial_die): Adjust.
1505 (guess_partial_die_structure_name): Adjust.
1506 (fixup_partial_die): Adjust.
1507 (read_attribute_value): Adjust.
1508 (read_addr_index): Adjust.
1509 (read_addr_index_from_leb128): Adjust.
1510 (read_str_index): Adjust.
1511 (dwarf2_string_attr): Adjust.
1512 (get_debug_line_section): Adjust.
1513 (dwarf_decode_line_header): Adjust.
1514 (lnp_state_machine::check_line_address): Adjust.
1515 (dwarf_decode_lines_1): Adjust.
1516 (dwarf_decode_lines): Adjust.
1517 (dwarf2_start_symtab): Adjust.
1518 (var_decode_location): Adjust.
1519 (new_symbol_full): Adjust.
1520 (dwarf2_const_value_data): Adjust.
1521 (dwarf2_const_value_attr): Adjust.
1522 (dwarf2_const_value): Adjust.
1523 (die_type): Adjust.
1524 (die_containing_type): Adjust.
1525 (build_error_marker_type): Adjust.
1526 (lookup_die_type): Adjust.
1527 (guess_full_die_structure_name): Adjust.
1528 (anonymous_struct_prefix): Adjust.
1529 (determine_prefix): Adjust.
1530 (dwarf2_name): Adjust.
1531 (follow_die_ref_or_sig): Adjust.
1532 (follow_die_offset): Adjust.
1533 (follow_die_ref): Adjust.
1534 (follow_die_sig_1): Adjust.
1535 (follow_die_sig): Adjust.
1536 (get_signatured_type): Adjust.
1537 (get_DW_AT_signature_type): Adjust.
1538 (decode_locdesc): Adjust.
1539 (dwarf_decode_macros): Adjust.
1540 (cu_debug_loc_section): Adjust.
1541 (fill_in_loclist_baton): Adjust.
1542 (dwarf2_symbol_mark_computed): Adjust.
1543 (init_one_comp_unit): Don't assign
1544 dwarf2_cu::dwarf2_per_objfile.
1545 (set_die_type): Adjust.
1546
1547 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
1548
1549 * dwarf2read.c (struct mapped_debug_names): Add constructor.
1550 <dwarf2_per_objfile>: New field.
1551 (dwarf2_per_objfile): Remove global.
1552 (get_dwarf2_per_objfile): New function.
1553 (set_dwarf2_per_objfile): New function.
1554 (dwarf2_build_psymtabs_hard): Change objfile parameter to
1555 dwarf2_per_objfile.
1556 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
1557 (read_abbrev_offset): Likewise.
1558 (read_indirect_string): Likewise.
1559 (read_indirect_line_string): Likewise.
1560 (read_indirect_string_at_offset): Likewise.
1561 (read_indirect_string_from_dwz): Likewise.
1562 (dwarf2_find_containing_comp_unit): Change objfile parameter to
1563 dwarf2_per_objfile.
1564 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
1565 (create_all_comp_units): Change objfile parameter to
1566 dwarf2_per_objfile.
1567 (create_all_type_units): Likewise.
1568 (process_queue): Add dwarf2_per_objfile parameter.
1569 (read_and_check_comp_unit_head): Likewise.
1570 (lookup_dwo_unit_in_dwp): Likewise.
1571 (get_dwp_file): Likewise.
1572 (process_cu_includes): Likewise.
1573 (struct free_dwo_file_cleanup_data): New struct.
1574 (dwarf2_has_info): Use get_dwarf2_per_objfile and
1575 set_dwarf2_per_objfile.
1576 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
1577 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
1578 context, adjust calls.
1579 (dw2_instantiate_symtab): Likewise.
1580 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
1581 (dw2_get_cu): Likewise.
1582 (create_cu_from_index_list): Change objfile parameter to
1583 dwarf2_per_objfile.
1584 (create_cus_from_index_list): Get dwarf2_per_objfile from
1585 context, adjust calls.
1586 (create_cus_from_index): Likewise.
1587 (create_signatured_type_table_from_index): Change objfile
1588 parameter to dwarf2_per_objfile.
1589 (create_signatured_type_table_from_debug_names): Change objfile
1590 parameter to dwarf2_per_objfile.
1591 (create_addrmap_from_index): Likewise.
1592 (create_addrmap_from_aranges): Likewise.
1593 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
1594 (dw2_setup): Remove.
1595 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
1596 context.
1597 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
1598 get_dwarf2_per_objfile.
1599 (dw2_forget_cached_source_info): Likewise.
1600 (dw2_map_symtabs_matching_filename): Likewise.
1601 (struct dw2_symtab_iterator) <index>: Remove.
1602 <dwarf2_per_objfile>: New field.
1603 (dw2_symtab_iter_init): Replace index parameter with
1604 dwarf2_per_objfile.
1605 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
1606 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
1607 (dw2_print_stats): Likewise.
1608 (dw2_dump): Likewise.
1609 (dw2_expand_symtabs_for_function): Likewise.
1610 (dw2_expand_all_symtabs): Likewise.
1611 (dw2_expand_symtabs_with_fullname): Likewise.
1612 (dw2_expand_marked_cus): Replace index and objfile parameters
1613 with dwarf2_per_objfile.
1614 (dw_expand_symtabs_matching_file_matcher): Add
1615 dwarf2_per_objfile parameter and adjust calls.
1616 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
1617 adjust calls.
1618 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
1619 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
1620 adjust calls.
1621 (create_cus_from_debug_names_list): Replace objfile parameter
1622 with dwarf2_per_objfile and adjust calls.
1623 (create_cus_from_debug_names): Likewise.
1624 (dwarf2_read_debug_names): Likewise.
1625 (mapped_debug_names::namei_to_name): Adjust call.
1626 (dw2_debug_names_iterator::next): Likewise.
1627 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
1628 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
1629 (dw2_debug_names_dump): Likewise.
1630 (dw2_debug_names_expand_symtabs_for_function): Likewise.
1631 (dw2_debug_names_expand_symtabs_matching): Likewise.
1632 (dwarf2_initialize_objfile): Likewise.
1633 (dwarf2_build_psymtabs): Likewise.
1634 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
1635 this_cu.
1636 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
1637 (read_and_check_comp_unit_head): Likewise.
1638 (read_abbrev_offset): Likewise.
1639 (create_debug_type_hash_table): Likewise.
1640 (create_debug_types_hash_table): Likewise.
1641 (create_all_type_units): Replace objfile parameter with
1642 dwarf2_per_objfile.
1643 (add_type_unit): Add dwarf2_per_objfile parameter.
1644 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
1645 with dwarf2_per_objfile.
1646 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
1647 (lookup_dwp_signatured_type): Likewise.
1648 (lookup_signatured_type): Likewise.
1649 (read_cutu_die_from_dwo): Likewise.
1650 (init_tu_and_read_dwo_dies): Likewise.
1651 (init_cutu_and_read_dies): Likewise.
1652 (init_cutu_and_read_dies_no_follow): Likewise.
1653 (allocate_type_unit_groups_table): Add objfile parameter.
1654 (create_type_unit_group): Use dwarf2_per_objfile from cu.
1655 (get_type_unit_group): Likewise.
1656 (process_psymtab_comp_unit): Update call.
1657 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
1658 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
1659 (print_tu_stats): Likewise.
1660 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
1661 in void* parameter.
1662 (build_type_psymtabs): Change objfile parameter to
1663 dwarf2_per_objfile.
1664 (process_skeletonless_type_unit): Use dwarf2_per_objfile
1665 passed in void* parameter.
1666 (process_skeletonless_type_units): Change objfile parameter to
1667 dwarf2_per_objfile.
1668 (set_partial_user): Likewise.
1669 (dwarf2_build_psymtabs_hard): Likewise.
1670 (read_comp_units_from_section): Likewise.
1671 (create_all_comp_units): Likewise.
1672 (scan_partial_symbols): Update calls.
1673 (add_partial_symbol): Likewise.
1674 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
1675 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
1676 (process_queue): Add dwarf2_per_objfile parameter.
1677 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
1678 (compute_compunit_symtab_includes): Likewise.
1679 (process_cu_includes): Add dwarf2_per_objfile parameter.
1680 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
1681 (process_full_type_unit): Likewise.
1682 (process_imported_unit_die): Update call.
1683 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
1684 (read_file_scope): Likewise.
1685 (allocate_dwo_file_hash_table): Add objfile parameter.
1686 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
1687 (create_cus_hash_table): Likewise.
1688 (create_dwp_hash_table): Likewise.
1689 (create_dwo_unit_in_dwp_v1): Likewise.
1690 (create_dwp_v2_section): Likewise.
1691 (create_dwo_unit_in_dwp_v2): Likewise.
1692 (lookup_dwo_unit_in_dwp): Likewise.
1693 (try_open_dwop_file): Likewise.
1694 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
1695 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
1696 cleanup to include a reference to dwarf2_per_objfile.
1697 (open_dwp_file): Add dwarf2_per_objfile parameter.
1698 (open_and_init_dwp_file): Likewise.
1699 (get_dwp_file): Likewise.
1700 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
1701 (queue_and_load_all_dwo_tus): Update call.
1702 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
1703 data.
1704 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
1705 (dwarf2_ranges_process): Likewise.
1706 (dwarf2_get_pc_bounds): Likewise.
1707 (mark_common_block_symbol_computed): Likewise.
1708 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
1709 (dwarf2_read_abbrevs): Update call.
1710 (read_partial_die): Use dwarf2_per_objfile from cu.
1711 (find_partial_die): Likewise.
1712 (fixup_partial_die): Likewise.
1713 (read_attribute_value): Likewise.
1714 (read_indirect_string_at_offset_from): Add objfile parameter.
1715 (read_indirect_string_at_offset): Add dwarf2_per_objfile
1716 parameter.
1717 (read_indirect_string_from_dwz): Add objfile parameter.
1718 (read_indirect_string): Add objfile parameter.
1719 (read_addr_index_1): Add dwarf2_per_objfile parameter.
1720 (read_addr_index): Use dwarf2_per_objfile from cu.
1721 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
1722 call dw2_setup.
1723 (read_str_index): Use dwarf2_per_objfile from cu.
1724 (get_debug_line_section): Likewise.
1725 (read_formatted_entries): Add dwarf2_per_objfile parameter.
1726 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
1727 (new_symbol_full): Use dwarf2_per_objfile from cu.
1728 (build_error_marker_type): Likewise.
1729 (lookup_die_type): Likewise.
1730 (determine_prefix): Likewise.
1731 (follow_die_offset): Likewise.
1732 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
1733 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
1734 (dwarf2_fetch_die_type_sect_off): Likewise.
1735 (dwarf2_get_die_type): Likewise.
1736 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
1737 (get_signatured_type): Likewise.
1738 (get_DW_AT_signature_type): Likewise.
1739 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
1740 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
1741 (cu_debug_loc_section): Likewise.
1742 (fill_in_loclist_baton): Likewise.
1743 (dwarf2_symbol_mark_computed): Likewise.
1744 (dwarf2_find_containing_comp_unit): Change objfile parameter to
1745 dwarf2_per_objfile.
1746 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
1747 parameter.
1748 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
1749 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
1750 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
1751 (set_die_type): Use dwarf2_free_objfile from cu.
1752 (get_die_type_at_offset): Likewise.
1753 (dwarf2_per_objfile_free): Don't assign global variable.
1754 (debug_names) <constructor>: Add dwarf2_per_objfile
1755 parameter, update m_debugstrlookup construction.
1756 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
1757 parameter.
1758 <m_dwarf2_per_objfile>: New field.
1759 <lookup>: Use m_dwarf2_per_objfile.
1760 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
1761 (psyms_seen_size): Likewise.
1762 (write_gdbindex): Replace objfile parameter with
1763 dwarf2_per_objfile.
1764 (write_debug_names): Likewise.
1765 (write_psymtabs_to_index): Likewise.
1766 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
1767 calls.
1768
1769 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
1770
1771 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
1772 <dwarf2_per_objfile>: New field.
1773 (struct dwarf2_per_cu_data) <objfile>: Remove.
1774 <dwarf2_per_objfile>: New field.
1775 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
1776 of objfile.
1777 (create_signatured_type_table_from_index): Likewise.
1778 (create_debug_type_hash_table): Likewise.
1779 (fill_in_sig_entry_from_dwo_entry): Likewise.
1780 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
1781 (create_type_unit_group): Assign dwarf2_per_objfile instead of
1782 objfile.
1783 (create_partial_symtab): Access objfile through
1784 dwarf2_per_objfile.
1785 (process_psymtab_comp_unit_reader): Likewise.
1786 (read_comp_units_from_section): Likewise.
1787 (scan_partial_symbols): Likewise.
1788 (add_partial_symbol): Likewise.
1789 (add_partial_subprogram): Likewise.
1790 (peek_die_abbrev): Likewise.
1791 (fixup_go_packaging): Likewise.
1792 (process_full_comp_unit): Likewise.
1793 (process_full_type_unit): Likewise.
1794 (process_imported_unit_die): Likewise.
1795 (dwarf2_compute_name): Likewise.
1796 (dwarf2_physname): Likewise.
1797 (read_import_statement): Likewise.
1798 (create_cus_hash_table): Assign dwarf2_physname instead of
1799 objfile.
1800 (read_func_scope): Access objfile through dwarf2_per_objfile.
1801 (read_lexical_block_scope): Likewise.
1802 (read_call_site_scope): Likewise.
1803 (read_variable): Likewise.
1804 (dwarf2_rnglists_process): Likewise.
1805 (dwarf2_ranges_process): Likewise.
1806 (dwarf2_ranges_read): Likewise.
1807 (dwarf2_record_block_ranges): Likewise.
1808 (dwarf2_add_field): Likewise.
1809 (dwarf2_add_member_fn): Likewise.
1810 (read_structure_type): Likewise.
1811 (process_structure_scope): Likewise.
1812 (read_enumeration_type): Likewise.
1813 (read_array_type): Likewise.
1814 (read_common_block): Likewise.
1815 (read_namespace_type): Likewise.
1816 (read_namespace): Likewise.
1817 (read_module_type): Likewise.
1818 (read_tag_pointer_type): Likewise.
1819 (read_tag_ptr_to_member_type): Likewise.
1820 (read_tag_string_type): Likewise.
1821 (read_subroutine_type): Likewise.
1822 (read_typedef): Likewise.
1823 (read_base_type): Likewise.
1824 (attr_to_dynamic_prop): Likewise.
1825 (read_subrange_type): Likewise.
1826 (read_unspecified_type): Likewise.
1827 (load_partial_dies): Likewise.
1828 (read_partial_die): Likewise.
1829 (find_partial_die): Likewise.
1830 (guess_partial_die_structure_name): Likewise.
1831 (fixup_partial_die): Likewise.
1832 (read_attribute_value): Likewise.
1833 (read_addr_index_from_leb128): Likewise.
1834 (dwarf2_read_addr_index): Likewise.
1835 (dwarf2_string_attr): Likewise.
1836 (lnp_state_machine::check_line_address): Likewise.
1837 (dwarf_decode_lines_1): Likewise.
1838 (dwarf_decode_lines): Likewise.
1839 (dwarf2_start_symtab): Likewise.
1840 (var_decode_location): Likewise.
1841 (new_symbol_full): Likewise.
1842 (dwarf2_const_value_data): Likewise.
1843 (dwarf2_const_value_attr): Likewise.
1844 (dwarf2_const_value): Likewise.
1845 (die_type): Likewise.
1846 (die_containing_type): Likewise.
1847 (lookup_die_type): Likewise.
1848 (guess_full_die_structure_name): Likewise.
1849 (anonymous_struct_prefix): Likewise.
1850 (dwarf2_name): Likewise.
1851 (follow_die_ref_or_sig): Likewise.
1852 (follow_die_offset): Likewise.
1853 (follow_die_ref): Likewise.
1854 (dwarf2_fetch_die_loc_sect_off): Likewise.
1855 (dwarf2_fetch_constant_bytes): Likewise.
1856 (dwarf2_fetch_die_type_sect_off): Likewise.
1857 (dwarf2_get_die_type): Likewise.
1858 (follow_die_sig): Likewise.
1859 (decode_locdesc): Likewise.
1860 (dwarf2_per_cu_objfile): Likewise.
1861 (dwarf2_per_cu_text_offset): Likewise.
1862 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
1863 objfile.
1864 (set_die_type): Access objfile through
1865 dwarf2_per_objfile.
1866
1867 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
1868
1869 * valprint.c (converted_character_d): Remove typedef.
1870 (DEF_VEC_O (converted_character_d)): Remove.
1871 (count_next_character): Use std::vector.
1872 (print_converted_chars_to_obstack): Likewise.
1873 (generic_printstr): Likewise.
1874
1875 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1876
1877 * xml-support.h (struct gdb_xml_value): Add constructor.
1878 <value>: Change type to unique_xmalloc_ptr.
1879 (gdb_xml_value_s): Remove typedef.
1880 (DEF_VEC_O (gdb_xml_value_s)): Remove.
1881 (gdb_xml_element_start_handler): Change parameter type to
1882 std::vector.
1883 (xml_find_attribute): Likewise.
1884 * xml-support.c (xml_find_attribute): Change parameter type to
1885 std::vector and adjust.
1886 (gdb_xml_values_cleanup): Remove.
1887 (gdb_xml_parser::start_element): Adjust to std::vector.
1888 (xinclude_start_include): Change paraeter type to std::vector
1889 and adjust.
1890 * btrace.c (check_xml_btrace_version): Likewise.
1891 (parse_xml_btrace_block): Likewise.
1892 (parse_xml_btrace_pt_config_cpu): Likewise.
1893 (parse_xml_btrace_pt): Likewise.
1894 (parse_xml_btrace_conf_bts): Likewise.
1895 (parse_xml_btrace_conf_pt): Likewise.
1896 * memory-map.c (memory_map_start_memory): Likewise.
1897 (memory_map_start_property): Likewise.
1898 * osdata.c (osdata_start_osdata): Likewise.
1899 (osdata_start_item): Likewise.
1900 (osdata_start_column): Likewise.
1901 * remote.c (start_thread): Likewise.
1902 * solib-aix.c (library_list_start_library): Likewise.
1903 (library_list_start_list): Likewise.
1904 * solib-svr4.c (library_list_start_library): Likewise.
1905 (svr4_library_list_start_list): Likewise.
1906 * solib-target.c (library_list_start_segment): Likewise.
1907 (library_list_start_section): Likewise.
1908 (library_list_start_library): Likewise.
1909 (library_list_start_list): Likewise.
1910 * tracepoint.c (traceframe_info_start_memory): Likewise.
1911 (traceframe_info_start_tvar): Likewise.
1912 * xml-syscall.c (syscall_start_syscall): Likewise.
1913 * xml-tdesc.c (tdesc_start_target): Likewise.
1914 (tdesc_start_feature): Likewise.
1915 (tdesc_start_reg): Likewise.
1916 (tdesc_start_union): Likewise.
1917 (tdesc_start_struct): Likewise.
1918 (tdesc_start_flags): Likewise.
1919 (tdesc_start_enum): Likewise.
1920 (tdesc_start_field): Likewise.
1921 (tdesc_start_enum_value): Likewise.
1922 (tdesc_start_vector): Likewise.
1923
1924 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * extension.h (struct xmethod_worker) <clone>: Remove.
1927 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
1928 Remove.
1929 (python_xmethod_worker::clone): Remove.
1930 * valops.c (find_overload_match): Use std::move instead of
1931 clone.
1932
1933 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
1934
1935 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
1936 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
1937 <free_xmethod_worker_data>: Remove.
1938 <get_matching_xmethod_workers>: Chance VEC to std::vector.
1939 <get_xmethod_arg_types>: Remove.
1940 <get_xmethod_result_type>: Remove.
1941 <invoke_xmethod>: Remove.
1942 * extension.c (new_xmethod_worker): Remove.
1943 (clone_xmethod_worker): Remove.
1944 (get_matching_xmethod_workers): Return void, pass std::vector by
1945 pointer.
1946 (get_xmethod_arg_types): Rename to...
1947 (xmethod_worker::get_arg_types): ... this, and adjust.
1948 (get_xmethod_result_type): Rename to...
1949 (xmethod_worker::get_result_type): ... this, and adjust.
1950 (invoke_xmethod): Remove.
1951 (free_xmethod_worker): Remove.
1952 (free_xmethod_worker_vec): Remove.
1953 * extension.h (enum ext_lang_rc): Move here from
1954 extension-priv.h.
1955 (struct xmethod_worker): Add constructor and destructor.
1956 <data>: Remove.
1957 <value>: Remove.
1958 <invoke, clone, do_get_result_type, do_get_arg_types>: New
1959 virtual pure methods.
1960 <get_arg_types, get_result_type>: New methods.
1961 (xmethod_worker_ptr): Remove typedef.
1962 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
1963 (xmethod_worker_vec): Remove typedef.
1964 (xmethod_worker_up): New typedef.
1965 (invoke_xmethod): Remove.
1966 (clone_xmethod_worker): Remove.
1967 (free_xmethod_worker): Remove.
1968 (free_xmethod_worker_vec): Remove.
1969 (get_xmethod_arg_types): Remove.
1970 (get_xmethod_result_type): Remove.
1971 * valops.c (find_method_list): Use std::vector, don't use
1972 intermediate vector.
1973 (value_find_oload_method_list): Use std::vector.
1974 (find_overload_match): Use std::vector.
1975 (find_oload_champ): Use std::vector.
1976 * value.c (value_free): Use operator delete.
1977 (value_of_xmethod): Rename to...
1978 (value_from_xmethod): ... this. Don't assign
1979 xmethod_worker::value, take rvalue-reference.
1980 (result_type_of_xmethod): Adjust.
1981 (call_xmethod): Adjust.
1982 * value.h: Include extension.h.
1983 (struct xmethod_worker): Don't forward-declare.
1984 (value_of_xmethod): Rename to...
1985 (value_from_xmethod): ... this, take rvalue-reference.
1986 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
1987 (struct python_xmethod_worker): ... this, add constructor and
1988 destructor.
1989 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
1990 (gdbpy_free_xmethod_worker_data): Rename to...
1991 (python_xmethod_worker::~python_xmethod_worker): ... this and
1992 adjust.
1993 (gdbpy_clone_xmethod_worker_data): Rename to...
1994 (python_xmethod_worker::clone): ... this and adjust.
1995 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
1996 temporary vector.
1997 (gdbpy_get_xmethod_arg_types): Rename to...
1998 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
1999 (gdbpy_get_xmethod_result_type): Rename to...
2000 (python_xmethod_worker::do_get_result_type): ... this and
2001 adjust.
2002 (gdbpy_invoke_xmethod): Rename to...
2003 (python_xmethod_worker::invoke): ... this and adjust.
2004 (new_python_xmethod_worker): Rename to...
2005 (python_xmethod_worker::python_xmethod_worker): ... this and
2006 adjust.
2007 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
2008 Remove.
2009 (gdbpy_free_xmethod_worker_data): Remove.
2010 (gdbpy_get_matching_xmethod_workers): Use std::vector.
2011 (gdbpy_get_xmethod_arg_types): Remove.
2012 (gdbpy_get_xmethod_result_type): Remove.
2013 (gdbpy_invoke_xmethod): Remove.
2014 * python/python.c (python_extension_ops): Remove obsolete
2015 callbacks.
2016
2017 2018-01-05 Pedro Alves <palves@redhat.com>
2018
2019 PR gdb/18653
2020 * common/signals-state-save-restore.c
2021 (save_original_signals_state): New parameter 'quiet'. Warn if we
2022 find a custom handler preinstalled, instead of internal erroring.
2023 But only warn if !quiet.
2024 * common/signals-state-save-restore.h
2025 (save_original_signals_state): New parameter 'quiet'.
2026 * main.c (captured_main_1): Move save_original_signals_state call
2027 after option handling, and pass QUIET.
2028
2029 2018-01-05 Pedro Alves <palves@redhat.com>
2030
2031 * spu-tdep.c (spu_catch_start): Pass
2032 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
2033
2034 2018-01-05 Pedro Alves <palves@redhat.com>
2035
2036 PR gdb/22670
2037 * ada-lang.c (literal_symbol_name_matcher): New function.
2038 (ada_get_symbol_name_matcher): Use it for
2039 symbol_name_match_type::SEARCH_NAME.
2040 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
2041 it down instead of assuming symbol_name_match_type::FULL.
2042 * block.h (block_lookup_symbol): New parameter 'match_type'.
2043 * c-valprint.c (print_unpacked_pointer): Use
2044 lookup_symbol_search_name instead of lookup_symbol.
2045 * compile/compile-object-load.c (get_out_value_type): Pass down
2046 symbol_name_match_type::SEARCH_NAME.
2047 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
2048 symbol_name_match_type::FULL.
2049 * cp-support.c (cp_get_symbol_name_matcher): Handle
2050 symbol_name_match_type::SEARCH_NAME.
2051 * infrun.c (insert_exception_resume_breakpoint): Use
2052 lookup_symbol_search_name.
2053 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
2054 * psymtab.c (maintenance_check_psymtabs): Use
2055 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
2056 * stack.c (print_frame_args): Use lookup_symbol_search_name and
2057 SYMBOL_SEARCH_NAME.
2058 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
2059 if symbol_name_match_type::SEARCH_NAME.
2060 (lookup_symbol_in_language): Pass down
2061 symbol_name_match_type::FULL.
2062 (lookup_symbol_search_name): New.
2063 (lookup_language_this): Pass down
2064 symbol_name_match_type::SEARCH_NAME.
2065 (lookup_symbol_aux, lookup_local_symbol): New parameter
2066 'match_type'. Pass it down.
2067 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
2068 (lookup_symbol_search_name): New declaration.
2069 (lookup_symbol_in_block): New 'match_type' parameter.
2070
2071 2018-01-05 Pedro Alves <palves@redhat.com>
2072
2073 PR gdb/22670
2074 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
2075 ada_lookup_symbol.
2076 (ada_lookup_symbol): Reimplement in terms of
2077 ada_lookup_symbol_list, bits factored out from
2078 ada_lookup_encoded_symbol.
2079
2080 2018-01-05 Joel Brobecker <brobecker@adacore.com>
2081
2082 * ada-exp.y (write_object_renaming): When subscripting an array
2083 using a symbol as the index, pass the block in call to
2084 ada_lookup_encoded_symbol when looking that symbol up.
2085
2086 2018-01-05 Jerome Guitton <guitton@adacore.com>
2087
2088 * ada-lang.c (ada_array_length): Use ada_index_type instead of
2089 TYPE_INDEX_TYPE.
2090
2091 2018-01-05 Joel Brobecker <brobecker@adacore.com>
2092
2093 * ada-lang.c (ada_to_fixed_value_create): Add handling of
2094 the case where VALUE_LVAL (val0) is not lval_memory.
2095
2096 2018-01-05 Xavier Roirand <roirand@adacore.com>
2097
2098 * ada-valprint.c (print_optional_low_bound): Handle
2099 character-indexed array printing like boolean-indexed array
2100 printing.
2101
2102 2018-01-05 Joel Brobecker <brobecker@adacore.com>
2103
2104 * NEWS: Create a new section for the next release branch.
2105 Rename the section of the current branch, now that it has
2106 been cut.
2107
2108 2018-01-05 Joel Brobecker <brobecker@adacore.com>
2109
2110 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
2111 * version.in: Bump version to 8.1.50.DATE-git.
2112
2113 2018-01-03 Xavier Roirand <roirand@adacore.com>
2114
2115 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
2116 Add field.
2117 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
2118 Add field.
2119 (default_exception_support_info) <catch_handlers_sym>: Add field.
2120 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
2121 (ada_exception_name_addr_1): Add "catch handlers" handling.
2122 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
2123 Update all callers.
2124 (create_excep_cond_exprs) <ex>: Add parameter.
2125 (re_set_exception): Update create_excep_cond_exprs call.
2126 (print_it_exception, print_one_exception, print_mention_exception)
2127 (print_recreate_exception): Add "catch handler" handling.
2128 (allocate_location_catch_handlers, re_set_catch_handlers)
2129 (check_status_catch_handlers, print_it_catch_handlers)
2130 (print_one_catch_handlers, print_mention_catch_handlers)
2131 (print_recreate_catch_handlers): New function.
2132 (catch_handlers_breakpoint_ops): New variable.
2133 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
2134 Add parameter. Add "catch handler" handling.
2135 (ada_exception_sym_name, ada_exception_breakpoint_ops):
2136 Add "catch handler" handling.
2137 (ada_exception_catchpoint_cond_string): Add "catch handler"
2138 handling.
2139 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
2140 call.
2141 (catch_ada_handlers_command): New function.
2142 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
2143 operations structure.
2144 (_initialize_ada_language): Add "catch handlers" command entry.
2145 * NEWS: Document "catch handlers" feature.
2146
2147 2018-01-02 Joel Brobecker <brobecker@adacore.com>
2148
2149 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
2150 account when creating the array type of the slice.
2151 (ada_value_slice): Likewise.
2152
2153 2018-01-02 Joel Brobecker <brobecker@adacore.com>
2154
2155 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
2156 New enum value.
2157 (create_array_type_with_stride): Add byte_stride_prop parameter.
2158 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
2159 New parameter. Update all callers in this file.
2160 (array_type_has_dynamic_stride): New function.
2161 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
2162 of arrays with dynamic byte strides.
2163 * dwarf2read.c (read_array_type): Add support for dynamic
2164 DW_AT_byte_stride attributes.
2165
2166 2018-01-02 Joel Brobecker <brobecker@adacore.com>
2167
2168 * dwarf2read.c (read_unspecified_type): Treat
2169 DW_TAG_enumeration_type DIEs from Ada units as stubs.
2170
2171 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2172
2173 Update copyright year range in all GDB files.
2174
2175 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2176
2177 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
2178 and gdb/testsuite/gdb.base/step-line.c.
2179
2180 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2181
2182 * copyright.py (main): Dump the contents of
2183 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
2184 even if BY_HAND is empty.
2185
2186 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2187
2188 * top.c (print_gdb_version): Update Copyright year in version
2189 message.
2190
2191 2018-01-01 Joel Brobecker <brobecker@adacore.com>
2192
2193 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
2194
2195 For older changes see ChangeLog-2017.
2196 \f
2197 Local Variables:
2198 mode: change-log
2199 left-margin: 8
2200 fill-column: 74
2201 version-control: never
2202 coding: utf-8
2203 End: