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