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