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