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