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