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