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