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