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