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