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