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