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