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