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