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