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