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