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