]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Avoid using DW_* macros in dwarf2/attribute.c
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6c412691
TT
12020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
4 DW_ADDR.
5 (attribute::string): Don't use DW_STRING.
6 (attribute::get_ref_die_offset): Don't use DW_UNSND.
7 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
8
95f982e5
TT
92020-09-29 Tom Tromey <tom@tromey.com>
10
11 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
12 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
14 * dwarf2/attribute.h (struct attribute): Rename methods.
15 * dwarf2/attribute.c (attribute::as_address): Rename from
16 value_as_address.
17 (attribute::as_string): Rename from value_as_string.
18
f800b00e
TT
192020-09-29 Tom Tromey <tom@tromey.com>
20
21 * dwarf2/read.c (partial_die_info::read) <case
22 DW_AT_linkage_name>: Use value_as_string.
23 (dwarf2_string_attr): Use value_as_string.
24 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
25 method.
26 * dwarf2/attribute.c (attribute::value_as_string): New method.
27
de38d64a
PA
282020-09-29 Pedro Alves <pedro@palves.net>
29
30 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
31 defined before using '#pragma GCC diagnostic' instead of checking
32 __clang__.
33
9aed480c
TT
342020-09-28 Tom Tromey <tom@tromey.com>
35
36 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
37 (handle_signal_stop): Update.
38 * procfs.c (procfs_target::insert_watchpoint): Update.
39 * target.h (target_have_steppable_watchpoint): Now a function.
40
8a3ecb79
TT
412020-09-28 Tom Tromey <tom@tromey.com>
42
43 * infrun.c (set_schedlock_func): Update.
44 * target.h (target_can_lock_scheduler): Now a function.
45
55f6301a
TT
462020-09-28 Tom Tromey <tom@tromey.com>
47
48 * inferior.h (class inferior) <has_execution>: Update.
49 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
50 * valops.c (find_function_in_inferior)
51 (value_allocate_space_in_inferior): Update.
52 * top.c (kill_or_detach): Update.
53 * target.c (target_preopen, set_target_permissions): Update.
54 (target_has_execution_current): Remove.
55 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
56 Update.
57 * solib.c (update_solib_list, reload_shared_libraries): Update.
58 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
59 * solib-dsbt.c (enable_break): Update.
60 * score-tdep.c (score7_fetch_inst): Update.
61 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
62 Update.
63 * remote.c (remote_target::start_remote)
64 (remote_target::remote_check_symbols, remote_target::open_1)
65 (remote_target::remote_detach_1, remote_target::verify_memory)
66 (remote_target::xfer_partial, remote_target::read_description)
67 (remote_target::get_min_fast_tracepoint_insn_len): Update.
68 * record-full.c (record_full_open_1): Update.
69 * record-btrace.c (record_btrace_target_open): Update.
70 * objc-lang.c (lookup_objc_class, lookup_child_selector)
71 (value_nsstring): Update.
72 * linux-thread-db.c (add_thread_db_info)
73 (thread_db_find_new_threads_silently, check_thread_db_callback)
74 (try_thread_db_load_1, record_thread): Update.
75 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
76 Update.
77 * linux-fork.c (checkpoint_command): Update.
78 * infrun.c (set_non_stop, set_observer_mode)
79 (check_multi_target_resumption, for_each_just_stopped_thread)
80 (maybe_remove_breakpoints, normal_stop)
81 (class infcall_suspend_state): Update.
82 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
83 (info_program_command, attach_command): Update.
84 * infcall.c (call_function_by_hand_dummy): Update.
85 * inf-loop.c (inferior_event_handler): Update.
86 * gcore.c (gcore_command, derive_heap_segment): Update.
87 * exec.c (exec_file_command): Update.
88 * eval.c (evaluate_subexp): Update.
89 * compile/compile.c (compile_to_object): Update.
90 * cli/cli-dump.c (restore_command): Update.
91 * breakpoint.c (update_watchpoint)
92 (update_inserted_breakpoint_locations)
93 (insert_breakpoint_locations, get_bpstat_thread): Update.
94 * target.h (target_has_execution): Remove macro.
95 (target_has_execution_current): Don't declare.
96 (target_has_execution): Rename from target_has_execution_1. Add
97 argument default.
98
05374cfd
TT
992020-09-28 Tom Tromey <tom@tromey.com>
100
101 * mi/mi-main.c (exec_reverse_continue)
102 (mi_cmd_list_target_features): Update.
103 * infrun.c (set_exec_direction_func): Update.
104 * target.c (default_execution_direction): Update.
105 * reverse.c (exec_reverse_once): Update.
106 * target.h (target_can_execute_reverse): Now a function.
107
9dccd06e
TT
1082020-09-28 Tom Tromey <tom@tromey.com>
109
110 * tui/tui-regs.c (tui_get_register)
111 (tui_data_window::show_registers): Update.
112 * thread.c (scoped_restore_current_thread::restore)
113 (scoped_restore_current_thread::scoped_restore_current_thread):
114 Update.
115 * regcache-dump.c (regcache_print): Update.
116 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
117 Update.
118 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
119 * mep-tdep.c (current_me_module, current_options): Update.
120 * linux-thread-db.c (thread_db_load): Update.
121 * infcmd.c (registers_info, info_vector_command)
122 (info_float_command): Update.
123 * ia64-tdep.c (ia64_frame_prev_register)
124 (ia64_sigtramp_frame_prev_register): Update.
125 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
126 * gcore.c (derive_stack_segment): Update.
127 * frame.c (get_current_frame, has_stack_frames): Update.
128 * findvar.c (language_defn::read_var_value): Update.
129 * arm-tdep.c (arm_pc_is_thumb): Update.
130 * target.c (target_has_registers): Rename from
131 target_has_registers_1.
132 * target.h (target_has_registers): Remove macro.
133 (target_has_registers): Rename from target_has_registers_1.
134
841de120
TT
1352020-09-28 Tom Tromey <tom@tromey.com>
136
137 * windows-tdep.c (tlb_make_value): Update.
138 * tui/tui-regs.c (tui_data_window::show_registers): Update.
139 * thread.c (scoped_restore_current_thread::restore)
140 (scoped_restore_current_thread::scoped_restore_current_thread)
141 (thread_command): Update.
142 * stack.c (backtrace_command_1, frame_apply_level_command)
143 (frame_apply_all_command, frame_apply_command): Update.
144 * infrun.c (siginfo_make_value, restore_infcall_control_state):
145 Update.
146 * gcore.c (derive_stack_segment): Update.
147 * frame.c (get_current_frame, has_stack_frames): Update.
148 * auxv.c (info_auxv_command): Update.
149 * ada-tasks.c (ada_build_task_list): Update.
150 * target.c (target_has_stack): Rename from target_has_stack_1.
151 * target.h (target_has_stack): Remove macro.
152 (target_has_stack): Rename from target_has_stack_1.
153
a739972c
TT
1542020-09-28 Tom Tromey <tom@tromey.com>
155
156 * target.c (target_has_memory): Rename from target_has_memory_1.
157 * tui/tui-regs.c (tui_data_window::show_registers): Update.
158 * thread.c (scoped_restore_current_thread::restore)
159 (scoped_restore_current_thread::scoped_restore_current_thread):
160 Update.
161 * frame.c (get_current_frame, has_stack_frames): Update.
162 * target.h (target_has_memory): Remove macro.
163 (target_has_memory): Rename from target_has_memory_1.
164
5b8a4776
TT
1652020-09-28 Tom Tromey <tom@tromey.com>
166
167 * target.c (target_has_all_memory_1): Remove.
168 * target.h (target_has_all_memory): Remove define.
169 (target_has_all_memory_1): Don't declare.
170
bd356ec6
SM
1712020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
172
173 * ser-base.c: Adjust comments formatting.
174
2c72d5e5
TT
1752020-09-27 Tom Tromey <tom@tromey.com>
176
177 PR tui/25342:
178 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
179
35a98237
TT
1802020-09-27 Tom Tromey <tom@tromey.com>
181
182 PR tui/25342:
183 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
184
9e820dec
TT
1852020-09-27 Tom Tromey <tom@tromey.com>
186
187 * unittests/tui-selftests.c: Update.
188 * tui/tui-winsource.h (struct tui_source_window_base)
189 <extra_margin, show_line_number, refresh_pad>: New methods.
190 <m_max_length, m_pad>: New members.
191 (tui_copy_source_line): Update.
192 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
193 first_col, line_width, ndigits parameters. Add length.
194 (tui_source_window_base::show_source_line): Write to pad. Line
195 number now 0-based.
196 (tui_source_window_base::refresh_pad): New method.
197 (tui_source_window_base::show_source_content): Write to pad. Call
198 refresh_pad.
199 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
200 not refill.
201 (tui_source_window_base::update_exec_info): Call
202 show_line_number.
203 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
204 method.
205 <m_digits>: New member.
206 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
207 and m_max_length.
208 (tui_source_window::show_line_number): New method.
209 * tui/tui-io.h (tui_puts): Fix comment.
210 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
211 m_max_length.
212
c15c15c8
TT
2132020-09-27 Tom Tromey <tom@tromey.com>
214
215 * tui/tui-winsource.c
216 (tui_source_window_base::set_is_exec_point_at): Don't call
217 show_source_line.
218
149830c1
TT
2192020-09-27 Tom Tromey <tom@tromey.com>
220
221 * python/py-tui.c (class tui_py_window) <refresh_window>: New
222 method.
223 <erase>: Update.
224 <cursor_x, cursor_y>: Remove.
225 <m_inner_window>: New member.
226 (tui_py_window::rerender): Create inner window.
227 (tui_py_window::output): Write to inner window.
228
8f9929bb
GR
2292020-09-26 Gareth Rees <grees@undo.io> (tiny change)
230
231 PR python/26586
232 * cli/cli-script.c (execute_control_commands): don't set
233 instream to nullptr here as this breaks the from_tty argument
234 to gdb.execute in Python.
235 (execute_user_command): set instream to nullptr here instead.
236
956bdb59
SM
2372020-09-25 Simon Marchi <simon.marchi@efficios.com>
238
239 * infrun.h (infrun_debug_printf): Fix formatting.
240 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
241
3b93626b
SJ
2422020-09-25 Saagar Jha <saagar@saagarjha.com>
243
244 * compile/compile-object-load.h (struct munmap_list): Add
245 explicitly-defined move constructor.
246
b551a89f
TT
2472020-09-24 Tom Tromey <tromey@adacore.com>
248
249 PR tui/26638:
250 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
251 method.
252 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
253 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
254 (tui_prev_win): Rewrite.
255
99bb393f
HD
2562020-09-23 Hannes Domani <ssbssa@yahoo.de>
257
258 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
259 in WOW64 processes as SIGINT.
260 * nat/windows-nat.h: Make wow64_process a shared variable.
261 * windows-nat.c: Remove static wow64_process variable.
262
20a5fcbd
TT
2632020-09-23 Tom Tromey <tom@tromey.com>
264
265 PR symtab/25470:
266 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
267 offset and bit size.
268 * printcmd.c (print_scalar_formatted): Handle zero-length
269 integer.
270 (print_scalar_formatted): Use bit_size_differs_p.
271 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
272 constant.
273 (union type_specific): <int_stuff>: New member.
274 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
275 methods.
276 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
277 TYPE_SPECIFIC_FIELD.
278 (recursive_dump_type, copy_type_recursive): Update.
279 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
280 DW_AT_data_bit_offset.
281
bac51ab7
TT
2822020-09-23 Tom Tromey <tom@tromey.com>
283
284 * utils.h (class gdb_argv): Add move operators.
285 <append>: New methods.
286 * compile/compile.c (build_argc_argv): Remove.
287 (compile_args_argc): Remove.
288 (compile_args_argv): Change type.
289 (set_compile_args): Simplify.
290 (append_args): Remove.
291 (filter_args): Remove argcp parameter.
292 (get_args): Return gdb_argv. Simplify.
293 (compile_to_object): Update.
294
92677124
TT
2952020-09-23 Tom Tromey <tom@tromey.com>
296
297 * compile/compile-object-run.c (do_module_cleanup)
298 <~do_module_cleanup> :Remove.
299 (do_module_cleanup): Update.
300 * compile/compile-object-load.h (struct munmap_list): Add move
301 assignment operator.
302 <source_file>: Now a std::string.
303 <munmap_list>: Rename. No longer a pointer.
304 * compile/compile-object-load.c (struct setup_sections_data): Add
305 constructor.
306 <setup_one_section>: Declare.
307 <munmap_list>: Move earlier.
308 <m_bfd>: New member.
309 <m_last_size, m_last_section_first, m_last_prot,
310 m_last_max_alignment>: Rename, add initializers where needed.
311 (setup_sections_data::setup_one_section): Rename from
312 setup_sections. Update.
313 (compile_object_load): Update. Don't use bfd_map_over_sections.
314
e616f60a
TT
3152020-09-23 Tom Tromey <tom@tromey.com>
316
317 * compile/compile-object-run.c (struct do_module_cleanup): Add
318 parameters to constructor. Update destructor.
319 <source_file, scope, scope_data, out_value_type, out_value_addr,
320 munmap_list_head, objfile_name_string>: Remove.
321 <module>: New member.
322 (do_module_cleanup): Update.
323 (compile_object_run): Update.
324
e947a848
TT
3252020-09-23 Tom Tromey <tom@tromey.com>
326
327 * compile/compile.c (eval_compile_command): Update.
328 * compile/compile-object-run.h (compile_object_run): Take a
329 compile_module_up.
330 * compile/compile-object-run.c (compile_object_run): Take a
331 compile_module_up.
332 * compile/compile-object-load.h (struct compile_module): Add
333 constructor, destructor.
334 (compile_module_up): New typedef.
335 (compile_object_load): Return compile_object_up.
336 * compile/compile-object-load.c (compile_object_load): Return
337 compile_module_up.
338
0dbf6ee6
TT
3392020-09-23 Tom Tromey <tom@tromey.com>
340
341 * compile/compile-object-run.c (struct do_module_cleanup): Add
342 constructor, destructor.
343 <objfile_name_string>: Don't use struct hack.
344 (do_module_cleanup): Use delete.
345 (compile_object_run): Use new.
346
ebe824f5
TT
3472020-09-23 Tom Tromey <tom@tromey.com>
348
349 * compile/compile-cplus-types.c
350 (compile_cplus_convert_struct_or_union): Use std::vector.
351 (compile_cplus_convert_func): Likewise.
352 * compile/compile-c-types.c (convert_func): Use std::vector.
353
5dd918d9
TT
3542020-09-21 Tom Tromey <tromey@adacore.com>
355
356 * sparc-tdep.c (sparc32_skip_prologue): Use
357 skip_prologue_using_sal.
358
5486c517
TT
3592020-09-19 Tom Tromey <tom@tromey.com>
360
361 * symfile.c (add_section_size_callback): Remove.
362 (load_one_section): Rename from load_section_callback. Change
363 parameters.
364 (generic_load): Use foreach.
365
8a6bb1d1
TT
3662020-09-19 Tom Tromey <tom@tromey.com>
367
368 * exec.c (add_to_section_table): Remove.
369 (build_section_table): Use foreach.
370
08f93a1a
TT
3712020-09-19 Tom Tromey <tom@tromey.com>
372
373 * elfread.c (elf_locate_sections): Change parameters.
374 (elf_symfile_read): Use foreach.
375
03cd72b8
TT
3762020-09-19 Tom Tromey <tom@tromey.com>
377
378 * cli/cli-dump.c (struct callback_data): Remove.
379 (restore_one_section): Rename from restore_section_callback.
380 Change parameters.
381 (restore_binary_file): Change parameters.
382 (restore_command): Use foreach.
383
f4f2b85f
TT
3842020-09-19 Tom Tromey <tom@tromey.com>
385
386 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
387 (gcore_copy_callback): Likewise.
388 (gcore_memory_sections): Use foreach.
389
b35c1d1c
TT
3902020-09-19 Tom Tromey <tom@tromey.com>
391
392 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
393 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
394 parameters.
395 (generic_elf_osabi_sniffer): Use foreach.
396 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
397 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
398
5bb6e9dd
TT
3992020-09-19 Tom Tromey <tom@tromey.com>
400
401 * dwarf2/read.c (locate_dwz_sections): Change parameters.
402 (dwarf2_get_dwz_file): Use foreach.
403 (dwarf2_locate_dwo_sections): Change parameters.
404 (open_and_init_dwo_file): Use foreach.
405 (dwarf2_locate_common_dwp_sections): Change parameters.
406 (open_and_init_dwp_file): Use foreach.
407
ad7277da
TT
4082020-09-19 Tom Tromey <tom@tromey.com>
409
410 * symfile.h: (find_lowest_section): Don't declare.
411 * symfile.c (find_lowest_section): Now static. Change
412 parameters.
413 (struct place_section_arg): Remove.
414 (place_section): Change parameters.
415 (addr_info_make_relative): Use foreach.
416 (symfile_dummy_outputs): Remove.
417 (default_symfile_relocate): Use foreach.
418
cb814f2e
TT
4192020-09-19 Tom Tromey <tom@tromey.com>
420
421 * objfiles.c (add_to_objfile_sections): Rename from
422 add_to_objfile_sections_full.
423 (add_to_objfile_sections): Remove.
424 (build_objfile_section_table): Use foreach.
425
3cabfd26
TT
4262020-09-19 Tom Tromey <tom@tromey.com>
427
428 * stap-probe.c (get_stap_base_address_1): Remove.
429 (get_stap_base_address): Use foreach.
430
1ce51eb5
TT
4312020-09-19 Tom Tromey <tom@tromey.com>
432
433 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
434 parameters.
435 (gdb_bfd_close_or_warn): Use foreach.
436
a190fabb
TT
4372020-09-19 Tom Tromey <tom@tromey.com>
438
439 * corelow.c (add_to_thread_list): Change parameters.
440 (core_target_open): Use foreach.
441
cafb0d81
TT
4422020-09-19 Tom Tromey <tom@tromey.com>
443
444 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
445 existing function.
446
c8d5abea
AB
4472020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
448
449 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
450 for arrays.
451
6d816919
AB
4522020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
453
454 * eval.c: Remove 'f-lang.h' include.
455 (value_f90_subarray): Moved to f-lang.c.
456 (eval_call): Renamed to...
457 (evaluate_subexp_do_call): ...this, is no longer static, header
458 comment moved into header file.
459 (evaluate_funcall): Update call to eval_call.
460 (skip_undetermined_arglist): Moved to f-lang.c.
461 (fortran_value_subarray): Likewise.
462 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
463 moved to evaluate_subexp_f.
464 (calc_f77_array_dims): Moved to f-lang.c
465 * expprint.c (print_subexp_funcall): New function.
466 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
467 moved to print_subexp_f, OP_FUNCALL uses new function.
468 (dump_subexp_body_funcall): New function.
469 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
470 moved to dump_subexp_f, OP_FUNCALL uses new function.
471 * expression.h (evaluate_subexp_do_call): Declare.
472 * f-lang.c (value_f90_subarray): Moved from eval.c.
473 (skip_undetermined_arglist): Likewise.
474 (calc_f77_array_dims): Likewise.
475 (fortran_value_subarray): Likewise.
476 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
477 (operator_length_f): Likewise.
478 (print_subexp_f): Likewise.
479 (dump_subexp_body_f): Likewise.
480 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
481 declaration of this operation to here.
482 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
483 support moved to operator_length_f.
484 * parser-defs.h (dump_subexp_body_funcall): Declare.
485 (print_subexp_funcall): Declare.
486 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
487 fortran-operator.def.
488
8c37706a
AB
4892020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
490
491 * eval.c (fortran_value_subarray): New function, content is taken
492 from...
493 (evaluate_subexp_standard): ...here, in two places. Now arrays
494 and strings both call the new function.
495 (calc_f77_array_dims): Add header comment, handle strings.
496
14f9473c
VC
4972020-09-18 Victor Collod <vcollod@nvidia.com>
498
499 PR gdb/26635
500 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
501 (i386_analyze_prologue): Call i386_skip_endbr.
502
b60cea74
TT
5032020-09-18 Tom Tromey <tromey@adacore.com>
504
505 * windows-nat.c (struct windows_nat_target) <wait>: Update.
506 (windows_nat_target::wait): Update.
507 * target/wait.h (enum target_wait_flag): New. Use
508 DEF_ENUM_FLAGS_TYPE.
509 * target/target.h (target_wait): Change type of options.
510 * target.h (target_options_to_string, default_target_wait):
511 Update.
512 (struct target_ops) <wait>: Change type of options.
513 * target.c (target_wait, default_target_wait, do_option): Change
514 type of "options".
515 (target_options_to_string): Likewise.
516 * target-delegates.c: Rebuild.
517 * target-debug.h (target_debug_print_target_wait_flags): Rename
518 from target_debug_print_options.
519 * sol-thread.c (class sol_thread_target) <wait>: Update.
520 (sol_thread_target::wait): Update.
521 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
522 (rs6000_nat_target::wait): Update.
523 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
524 Update.
525 (remote_target::wait_ns, remote_target::wait_as): Change type of
526 "options".
527 (remote_target::wait): Update.
528 * remote-sim.c (struct gdbsim_target) <wait>: Update.
529 (gdbsim_target::wait): Update.
530 * record-full.c (class record_full_base_target) <wait>: Update.
531 (record_full_wait_1): Change type of "options".
532 (record_full_base_target::wait): Update.
533 * record-btrace.c (class record_btrace_target) <wait>: Update.
534 (record_btrace_target::wait): Update.
535 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
536 Update.
537 (ravenscar_thread_target::wait): Update.
538 * procfs.c (class procfs_target) <wait>: Update.
539 (procfs_target::wait): Update.
540 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
541 * obsd-nat.c (obsd_nat_target::wait): Update.
542 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
543 (nto_procfs_target::wait): Update.
544 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
545 * nbsd-nat.c (nbsd_wait): Change type of "options".
546 (nbsd_nat_target::wait): Update.
547 * linux-thread-db.c (class thread_db_target) <wait>: Update.
548 (thread_db_target::wait): Update.
549 * linux-nat.h (class linux_nat_target) <wait>: Update.
550 * linux-nat.c (linux_nat_target::wait): Update.
551 (linux_nat_wait_1): Update.
552 * infrun.c (do_target_wait_1, do_target_wait): Change type of
553 "options".
554 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
555 * inf-ptrace.c (inf_ptrace_target::wait): Update.
556 * go32-nat.c (struct go32_nat_target) <wait>: Update.
557 (go32_nat_target::wait): Update.
558 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
559 * gnu-nat.c (gnu_nat_target::wait): Update.
560 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
561 * fbsd-nat.c (fbsd_nat_target::wait): Update.
562 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
563 * darwin-nat.c (darwin_nat_target::wait): Update.
564 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
565 (bsd_uthread_target::wait): Update.
566 * aix-thread.c (class aix_thread_target) <wait>: Update.
567 (aix_thread_target::wait): Update.
568
0295dde6
AB
5692020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * compile/compile-object-run.c (create_copied_type_recursive): New
572 function.
573 (compile_object_run): Use new function.
574
d3483b43
JT
5752020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
576
577 * NEWS: Mention x86_64 Cygwin core file support.
578
e7d612ad
JT
5792020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
580
581 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
582 (core_process_module_section): Handle NOTE_INFO_MODULE64.
583
aff9d387
JT
5842020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
585
62a5151b
JT
586 * windows-tdep.h: Add prototypes.
587 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
588 (i386_windows_core_pid_to_str): Move and rename ...
589 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
590 (windows_core_pid_to_str): ... and here.
591 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
592
5932020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
594 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
595 (amd64_windows_init_abi_common): ... and register.
596
7d155da3
JT
5972020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
598
599 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
600 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
601
e8ef12b9
PA
6022020-09-18 Pedro Alves <pedro@palves.net>
603
604 PR gdb/26631
605 * thread.c (thread_find_command): Switch inferior before calling
606 target methods.
607
c1e1314d
TT
6082020-09-17 Tom Tromey <tromey@adacore.com>
609
610 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
611 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
612 (tdesc_arch_data_up): New typedef.
613 (tdesc_use_registers, tdesc_data_alloc): Update.
614 (tdesc_data_cleanup): Don't declare.
615 * target-descriptions.c (tdesc_data_alloc): Return a
616 tdesc_arch_data_up.
617 (tdesc_arch_data_deleter::operator()): Rename from
618 tdesc_data_cleanup. Change argument type.
619 (tdesc_use_registers): Change early_data to an rvalue reference.
620 (tdesc_use_registers): Don't use delete.
621 * sparc-tdep.c (sparc32_gdbarch_init): Update.
622 * s390-tdep.c (s390_gdbarch_init): Update.
623 * rx-tdep.c (rx_gdbarch_init): Update.
624 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
625 * riscv-tdep.c (riscv_gdbarch_init): Update.
626 * or1k-tdep.c (or1k_gdbarch_init): Update.
627 * nios2-tdep.c (nios2_gdbarch_init): Update.
628 * nds32-tdep.c (nds32_gdbarch_init): Update.
629 * mips-tdep.c (mips_gdbarch_init): Update.
630 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
631 * m68k-tdep.c (m68k_gdbarch_init): Update.
632 * i386-tdep.c (i386_gdbarch_init): Update.
633 * arm-tdep.c (arm_gdbarch_init): Update.
634 * arc-tdep.c (arc_tdesc_init): Update.
635 (arc_gdbarch_init): Update.
636 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
637
0363df3d
HD
6382020-09-17 Hannes Domani <ssbssa@yahoo.de>
639
640 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
641 for WOW64 processes.
642
280a9412
TT
6432020-09-17 Tom Tromey <tom@tromey.com>
644
645 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
646
6108fd18
TT
6472020-09-17 Tom Tromey <tom@tromey.com>
648
649 * value.c (preserve_values): Update.
650 * python/py-type.c (save_objfile_types): Update.
651 * guile/scm-type.c (save_objfile_types): Update.
652 * gdbtypes.h (create_copied_types_hash): Return htab_up.
653 * gdbtypes.c (create_copied_types_hash): Return htab_up.
654 * compile/compile-object-run.c (compile_object_run): Update.
655
fa9b1164
TT
6562020-09-17 Tom Tromey <tom@tromey.com>
657
658 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
659 Remove.
660 <m_table>: Now htab_up.
661 * typeprint.c (typedef_hash_table::recursively_update)
662 (typedef_hash_table::add_template_parameters)
663 (typedef_hash_table::typedef_hash_table): Update.
664 (typedef_hash_table::~typedef_hash_table): Remove.
665 (typedef_hash_table::typedef_hash_table)
666 (typedef_hash_table::find_global_typedef)
667 (typedef_hash_table::find_typedef): Update.
668
eb53f105
TT
6692020-09-17 Tom Tromey <tom@tromey.com>
670
671 * target-descriptions.c (tdesc_use_registers): Use htab_up.
672
7a8a5d47
TT
6732020-09-17 Tom Tromey <tom@tromey.com>
674
675 * linespec.c (class decode_compound_collector)
676 <~decode_compound_collector>: Remove.
677 <m_unique_syms>: Now htab_up.
678 (decode_compound_collector::operator ()): Update.
679 (class symtab_collector) <~symtab_collector>: Remove.
680 <m_symtab_table>: Now htab_up.
681 (symtab_collector::operator ()): Update.
682
99032cfc
TT
6832020-09-17 Tom Tromey <tom@tromey.com>
684
685 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
686 (filename_seen_cache::clear): Update.
687 (~filename_seen_cache): Remove.
688 (filename_seen_cache::seen): Update.
689 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
690 htab_up.
691 <~filename_seen_cache>: Remove.
692 <traverse>: Update.
693
32580f6d
TT
6942020-09-17 Tom Tromey <tom@tromey.com>
695
696 * completer.c (completion_tracker::discard_completions)
697 (completion_tracker::~completion_tracker)
698 (completion_tracker::maybe_add_completion)
699 (completion_tracker::remove_completion)
700 (completion_tracker::recompute_lowest_common_denominator)
701 (completion_tracker::build_completion_result): Update.
702 * completer.h (class completion_tracker) <have_completions>:
703 Update.
704 <m_entries_hash>: Now htab_up.
705
c1fb9836
TT
7062020-09-17 Tom Tromey <tom@tromey.com>
707
708 * breakpoint.c (ambiguous_names_p): Use htab_up.
709
88f07206
TT
7102020-09-17 Tom Tromey <tom@tromey.com>
711
712 * auto-load.c (struct auto_load_pspace_info)
713 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
714 <loaded_script_files, loaded_script_texts>: Change type to
715 htab_up.
716 (~auto_load_pspace_info) Remove.
717 (init_loaded_scripts_info, maybe_add_script_file)
718 (maybe_add_script_text, auto_load_info_scripts): Update.
719
9519b2ee
TT
7202020-09-17 Tom Tromey <tromey@adacore.com>
721
722 * c-exp.y (name_obstack): Now static.
723
d2cd4113
CC
7242020-09-17 Chungyi Chi <demonic@csie.io>
725
726 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
727
b650a282
SM
7282020-09-16 Simon Marchi <simon.marchi@efficios.com>
729
730 * breakpoint.h (init_catchpoint): Change int parameter to bool.
731 (add_solib_catchpoint): Likewise.
732 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
733 to bool.
734 (add_solib_catchpoint): Change int parameter/variable to bool.
735 (catch_load_or_unload): Likewise.
736 (init_catchpoint): Likewise.
737 (create_fork_vfork_event_catchpoint): Likewise.
738 (catch_fork_command_1): Likewise.
739 (catch_exec_command_1): Likewise.
740
4d0bcfcf
SM
7412020-09-16 Simon Marchi <simon.marchi@efficios.com>
742
743 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
744 Change instance_flags to m_instance_flags.
745
fe830662
TT
7462020-09-16 Tom Tromey <tromey@adacore.com>
747
748 PR gdb/26598:
749 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
750
fe5ddfc3
JB
7512020-09-16 John Baldwin <jhb@FreeBSD.org>
752
753 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
754 PL_FLAG_EXEC.
755 (fbsd_nat_target::insert_exec_catchpoint)
756 (fbsd_nat_target::remove_exec_catchpoint): Always define.
757 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
758 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
759
e911c666
JB
7602020-09-16 John Baldwin <jhb@FreeBSD.org>
761
762 * configure.ac: Remove check for kinfo_getvmmap().
763 * configure, config.in: Regenerate.
764 * fbsd-nat.c (fbsd_read_mapping): Remove
765 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
766 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
767 kinfo_get_vmmap() are always present.
768
1f17d372
JB
7692020-09-16 John Baldwin <jhb@FreeBSD.org>
770
771 * fbsd-nat.c: Always include support for
772 TARGET_OBJECT_SIGNAL_INFO.
773
bcb1da7f
JB
7742020-09-16 John Baldwin <jhb@FreeBSD.org>
775
776 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
777 sysctl and remove procfs fallback.
778
5515f729
JB
7792020-09-16 John Baldwin <jhb@FreeBSD.org>
780
781 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
782 * fbsd-nat.h: Likewise.
783
da1df1db
TBA
7842020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
785
786 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
787 argument.
788
0e25e767
AB
7892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
790
791 * ada-lang.c (ada_language_data): Delete.
792 (ada_language): Remove references to ada_language_data.
793 * c-lang.c (c_language_data): Delete.
794 (c_language): Remove references to c_language_data.
795 (cplus_language_data): Delete.
796 (cplus_language): Remove references to cplus_language_data.
797 (asm_language_data): Delete.
798 (asm_language): Remove references to asm_language_data.
799 (minimal_language_data): Delete.
800 (minimal_language): Remove references to minimal_language_data.
801 * d-lang.c (d_language_data): Delete.
802 (d_language): Remove references to d_language_data.
803 * f-lang.c (f_language_data): Delete.
804 (f_language): Remove references to f_language_data.
805 * go-lang.c (go_language_data): Delete.
806 (go_language): Remove references to go_language_data.
807 * language.c (unknown_language_data): Delete.
808 (unknown_language): Remove references to unknown_language_data.
809 (auto_language_data): Delete.
810 (auto_language): Remove references to auto_language_data.
811 * language.h (language_data): Delete struct.
812 (language_defn): No longer inherit from language_data.
813 * m2-lang.c (m2_language_data): Delete.
814 (m2_language): Remove references to m2_language_data.
815 * objc-lang.c (objc_language_data): Delete.
816 (objc_language): Remove references to objc_language_data.
817 * opencl-lang.c (opencl_language_data): Delete.
818 (opencl_language): Remove references to opencl_language_data.
819 * p-lang.c (pascal_language_data): Delete.
820 (pascal_language): Remove references to pascal_language_data.
821 * rust-lang.c (rust_language_data): Delete.
822 (rust_language): Remove references to rust_language_data.
823
b7c6e27d
AB
8242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
825
826 * ada-lang.c (ada_language_data): Remove la_op_print_tab
827 initializer.
828 (ada_language::opcode_print_table): New member function.
829 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
830 (c_language::opcode_print_table): New member function.
831 (cplus_language_data): Remove la_op_print_tab initializer.
832 (cplus_language::opcode_print_table): New member function.
833 (asm_language_data): Remove la_op_print_tab initializer.
834 (asm_language::opcode_print_table): New member function.
835 (minimal_language_data): Remove la_op_print_tab initializer.
836 (minimal_language::opcode_print_table): New member function.
837 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
838 (d_language::opcode_print_table): New member function.
839 * expprint.c (print_subexp_standard): Update call to
840 opcode_print_table.
841 (op_string): Likewise.
842 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
843 (f_language::opcode_print_table): New member function.
844 * go-lang.c (go_language_data): Remove la_op_print_tab
845 initializer.
846 (go_language::opcode_print_table): New member function.
847 * language.c (unknown_language_data): Remove la_op_print_tab
848 initializer.
849 (unknown_language::opcode_print_table): New member function.
850 (auto_language_data): Remove la_op_print_tab initializer.
851 (auto_language::opcode_print_table): New member function.
852 * language.h (language_data): Remove la_op_print_tab field.
853 (language_defn::opcode_print_table): Declare new member function.
854 * m2-lang.c (m2_language_data): Remove la_op_print_tab
855 initializer.
856 (m2_language::opcode_print_table): New member function.
857 * objc-lang.c (objc_language_data): Remove la_op_print_tab
858 initializer.
859 (objc_language::opcode_print_table): New member function.
860 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
861 initializer.
862 (opencl_language::opcode_print_table): New member function.
863 * p-lang.c (pascal_language_data): Remove la_op_print_tab
864 initializer.
865 (pascal_language::opcode_print_table): New member function.
866 * rust-lang.c (rust_language_data): Remove la_op_print_tab
867 initializer.
868 (rust_language::opcode_print_table): New member function.
869
5aba6ebe
AB
8702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
871
872 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
873 (ada_language::expression_ops): New member function.
874 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
875 (c_language::expression_ops): New member function.
876 (cplus_language_data): Remove la_exp_desc initializer.
877 (cplus_language::expression_ops): New member function.
878 (asm_language_data): Remove la_exp_desc initializer.
879 (asm_language::expression_ops): New member function.
880 (minimal_language_data): Remove la_exp_desc initializer.
881 (minimal_language::expression_ops): New member function.
882 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
883 (d_language::expression_ops): New member function.
884 * eval.c (evaluate_subexp): Update call to expression_ops.
885 * expprint.c (print_subexp): Likewise.
886 (op_name): Likewise.
887 (dump_subexp_body): Likewise.
888 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
889 (f_language::expression_ops): New member function.
890 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
891 (go_language::expression_ops): New member function.
892 * language.c (language_defn::expression_ops): New function.
893 (unknown_language_data): Remove la_exp_desc initializer.
894 (auto_language_data): Likewise.
895 * language.h (language_data): Remove la_exp_desc field.
896 (language_defn::expression_ops): Declare new member function.
897 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
898 (m2_language::expression_ops): New member function.
899 * objc-lang.c (objc_language_data): Remove la_exp_desc
900 initializer.
901 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
902 initializer.
903 (opencl_language::expression_ops): New member function.
904 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
905 * parse.c (operator_length): Update call to expression_ops.
906 (exp_iterate): Likewise.
907 * rust-lang.c (rust_language_data): Remove la_exp_desc
908 initializer.
909 (ruse_language::expression_ops): New member function.
910
b63a3f3f
AB
9112020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * ada-lang.c (ada_language_data): Remove la_varobj_ops
914 initializer.
915 (ada_language::varobj_ops): New member function.
916 * c-lang.c (c_language_data): Remove la_varobj_ops
917 initializer.
918 (cplus_language_data): Likewise.
919 (cplus_language::varobj_ops): New member function.
920 (asm_language_data): Remove la_varobj_ops initializer.
921 (minimal_language_data): Likewise.
922 * d-lang.c (d_language_data): Likewise.
923 * f-lang.c (f_language_data): Likewise.
924 * go-lang.c (go_language_data): Likewise.
925 * language.c (language_defn::varobj_ops): New function.
926 (unknown_language_data): Remove la_varobj_ops
927 initializer.
928 (auto_language_data): Likewise.
929 * language.h (language_data): Remove la_varobj_ops field.
930 (language_defn::varobj_ops): Declare new member function.
931 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
932 * objc-lang.c (objc_language_data): Likewise.
933 * opencl-lang.c (opencl_language_data): Likewise.
934 * p-lang.c (pascal_language_data): Likewise.
935 * rust-lang.c (rust_language_data): Likewise.
936 * varobj.c (varobj_create): Update call to varobj_ops.
937 * varobj.h (default_varobj_ops): Delete define.
938
1ac14a04
AB
9392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
940
941 * ada-lang.c (ada_language_data): Remove la_macro_expansion
942 initializer.
943 * c-lang.c (c_language_data): Likewise.
944 (c_language::macro_expansion): New member function.
945 (cplus_language_data): Likewise.
946 (cplus_language::macro_expansion): New member function.
947 (asm_language_data): Likewise.
948 (asm_language::macro_expansion): New member function.
949 (minimal_language_data): Likewise.
950 (minimal_language::macro_expansion): New member function.
951 * d-lang.c (d_language_data): Remove la_macro_expansion
952 initializer.
953 * f-lang.c (f_language_data): Likewise.
954 * go-lang.c (go_language_data): Likewise.
955 * language.c (unknown_language_data): Likewise.
956 (auto_language_data): Likewise.
957 * language.h (language_data): Remove la_macro_expansion field.
958 (language_defn::macro_expansion): New member function.
959 * m2-lang.c (m2_language_data): Remove la_macro_expansion
960 initializer.
961 * objc-lang.c (objc_language_data): Likewise.
962 (objc_language::macro_expansion): New member function.
963 * opencl-lang.c (opencl_language_data): Likewise.
964 (opencl_language::macro_expansion): New member function.
965 * p-lang.c (pascal_language_data): Remove la_macro_expansion
966 initializer.
967 * rust-lang.c (rust_language_data): Likewise.
968 * symtab.c (default_collect_symbol_completion_matches_break_on):
969 Update call to macro_expansion.
970
3a3440fb
AB
9712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
972
973 * ada-lang.c (ada_language_data): Remove la_array_ordering
974 initializer.
975 * c-lang.c (c_language_data): Likewise.
976 (cplus_language_data): Likewise.
977 (asm_language_data): Likewise.
978 (minimal_language_data): Likewise.
979 * d-lang.c (d_language_data): Likewise.
980 * dwarf2/read.c (read_array_order): Update for call to
981 array_ordering.
982 * f-lang.c (f_language_data): Remove la_array_ordering
983 initializer.
984 (f_language::array_ordering): New member function.
985 * go-lang.c (go_language_data): Remove la_array_ordering
986 initializer.
987 * language.c (unknown_language_data): Likewise.
988 (auto_language_data): Likewise.
989 * language.h (language_data): Delete la_array_ordering field.
990 (language_defn::array_ordering): New member function.
991 * m2-lang.c (m2_language_data): Remove la_array_ordering
992 initializer.
993 * objc-lang.c (objc_language_data): Likewise.
994 * opencl-lang.c (opencl_language_data): Likewise.
995 * p-lang.c (pascal_language_data): Likewise.
996 * rust-lang.c (rust_language_data): Likewise.
997
0d201fa4
AB
9982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
999
1000 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1001 initializer.
1002 * c-lang.c (c_language_data): Likewise.
1003 (cplus_language_data): Likewise.
1004 (asm_language_data): Likewise.
1005 (minimal_language_data): Likewise.
1006 * d-lang.c (d_language_data): Likewise.
1007 * f-lang.c (f_language_data): Likewise.
1008 (f_language::case_sensitivity): New member function.
1009 * go-lang.c (go_language_data): Remove la_case_sensitivity
1010 initializer.
1011 * language.c (enum case_mode): Moved here from language.h.
1012 (case_mode): Make static.
1013 (show_case_command): Update for case_sensitivity being a method.
1014 (set_case_command): Likewise.
1015 (set_range_case): Likewise.
1016 (unknown_language_data): Remove la_case_sensitivity initializer.
1017 (auto_language_data): Likewise.
1018 * language.h (case_mode): Delete, move enum declaration to
1019 language.c.
1020 (language_data): Delete la_case_sensitivity field.
1021 (language_defn::case_sensitivity): New member function.
1022 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1023 initializer.
1024 * objc-lang.c (objc_language_data): Likewise.
1025 * opencl-lang.c (opencl_language_data): Likewise.
1026 * p-lang.c (pascal_language_data): Likewise.
1027 * rust-lang.c (rust_language_data): Likewise.
1028
efdf6a73
AB
10292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1030
1031 * ada-lang.c (ada_language_data): Remove la_range_check
1032 initializer.
1033 * c-lang.c (c_language_data): Likewise.
1034 (cplus_language_data): Likewise.
1035 (asm_language_data): Likewise.
1036 (minimal_language_data): Likewise.
1037 * d-lang.c (d_language_data): Likewise.
1038 * f-lang.c (f_language_data): Likewise.
1039 (f_language::range_checking_on_by_default): New member function.
1040 * go-lang.c (go_language_data): Remove la_range_check initializer.
1041 * language.c (enum range_mode): Moved here from language.h.
1042 (range_mode): Made static.
1043 (show_range_command): Update to use
1044 range_checking_on_by_default.
1045 (set_range_command): Likewise.
1046 (set_range_case): Likewise.
1047 (unknown_language_data): Remove la_range_check initializer.
1048 (auto_language_data): Likewise.
1049 * language.h (range_mode): Delete. Enum definition moved to
1050 language.c.
1051 (language_data): Remove la_range_check field.
1052 (language_defn::range_checking_on_by_default): New member
1053 function.
1054 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1055 (m2_language::range_checking_on_by_default): New member function.
1056 * objc-lang.c (objc_language_data): Remove la_range_check
1057 initializer.
1058 * opencl-lang.c (opencl_language_data): Likewise.
1059 * p-lang.c (pascal_language_data): Likewise.
1060 (pascal_language::range_checking_on_by_default): New member
1061 function.
1062 * rust-lang.c (rust_language_data): Remove la_range_check
1063 initializer.
1064 (rust_language::range_checking_on_by_default): New member
1065 function.
1066
bf92aec5
AB
10672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * dwarf2/read.c (dwarf2_physname): Remove special case for
1070 language_go.
1071 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1072 member function.
1073
d3355e4d
AB
10742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1075
1076 * ada-lang.c (ada_language_data): Remove
1077 la_store_sym_names_in_linkage_form_p initializer.
1078 (ada_language::store_sym_names_in_linkage_form_p): New member
1079 function.
1080 * c-lang.c (c_language_data): Remove
1081 la_store_sym_names_in_linkage_form_p initializer.
1082 (c_language::store_sym_names_in_linkage_form_p): New member
1083 function.
1084 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1085 initializer.
1086 (asm_language_data): Likewise.
1087 (asm_language::store_sym_names_in_linkage_form_p): New member
1088 function.
1089 (minimal_language_data): Remove
1090 la_store_sym_names_in_linkage_form_p initializer.
1091 (minimal_language::store_sym_names_in_linkage_form_p): New member
1092 function.
1093 * d-lang.c (d_language_data): Remove
1094 la_store_sym_names_in_linkage_form_p initializer.
1095 * dwarf2/read.c (dwarf2_physname): Update call to
1096 store_sym_names_in_linkage_form_p.
1097 * f-lang.c (f_language_data): Remove
1098 la_store_sym_names_in_linkage_form_p initializer.
1099 * go-lang.c (go_language_data): Remove
1100 la_store_sym_names_in_linkage_form_p initializer.
1101 * language.c (unknown_language_data): Remove
1102 la_store_sym_names_in_linkage_form_p initializer.
1103 (unknown_language::store_sym_names_in_linkage_form_p): New member
1104 function.
1105 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1106 initializer.
1107 (auto_language::store_sym_names_in_linkage_form_p): New member
1108 function.
1109 * language.h (language_data): Remove
1110 la_store_sym_names_in_linkage_form_p member variable.
1111 (language_defn::store_sym_names_in_linkage_form_p): New member
1112 function.
1113 * m2-lang.c (m2_language_data): Remove
1114 la_store_sym_names_in_linkage_form_p initializer.
1115 * objc-lang.c (objc_language_data): Likewise.
1116 * opencl-lang.c (opencl_language_data): Likewise.
1117 * p-lang.c (pascal_language_data): Likewise.
1118 * rust-lang.c (rust_language_data): Likewise.
1119
22c12a6c
AB
11202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 * ada-lang.c (ada_language_data): Remove string_lower_bound
1123 initializer.
1124 * c-lang.c (c_language_data): Likewise.
1125 (cplus_language_data): Likewise.
1126 (asm_language_data): Likewise.
1127 (minimal_language_data): Likewise.
1128 * d-lang.c (d_language_data): Likewise.
1129 * f-lang.c (f_language_data): Likewise.
1130 * go-lang.c (go_language_data): Likewise.
1131 * language.c (unknown_language_data): Likewise.
1132 (auto_language_data): Likewise.
1133 * language.h (language_data): Remove string_lower_bound field.
1134 (language_defn::string_lower_bound): New member function.
1135 * m2-lang.c (m2_language_data): Remove string_lower_bound
1136 initializer.
1137 (m2_language::string_lower_bound): New member function.
1138 * objc-lang.c (objc_language_data): Remove string_lower_bound
1139 initializer.
1140 * opencl-lang.c (opencl_language_data): Likewise.
1141 * p-lang.c (pascal_language_data): Likewise.
1142 * rust-lang.c (rust_language_data): Likewise.
1143 * valops.c (value_cstring): Update call to string_lower_bound.
1144 (value_string): Likewise.
1145 * value.c (allocate_repeated_value): Likewise.
1146
1c236ddd
AB
11472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1148
1149 * valops.c (value_repeat): Fix incorrect argument name in comment.
1150
67bd3fd5
AB
11512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1152
1153 * ada-lang.c (ada_language_data): Remove c_style_arrays
1154 initializer.
1155 (ada_language::c_style_arrays_p): New member fuction.
1156 * c-lang.c (c_language_data): Remove c_style_arrays
1157 initializer.
1158 (cplus_language_data): Likewise.
1159 (asm_language_data): Likewise.
1160 (minimal_language_data): Likewise.
1161 * d-lang.c (d_language_data): Likewise.
1162 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1163 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1164 (f_language::c_style_arrays_p): New member function.
1165 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1166 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1167 * language.c (unknown_language_data): Remove c_style_arrays
1168 initializer.
1169 (auto_language_data): Likewise.
1170 * language.h (language_data): Remove c_style_arrays field.
1171 (language_defn::c_style_arrays_p): New member function.
1172 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1173 (m2_language::c_style_arrays_p): New member function.
1174 * objc-lang.c (objc_language_data): Remove c_style_arrays
1175 initializer.
1176 * opencl-lang.c (opencl_language_data): Likewise.
1177 * p-lang.c (pascal_language_data): Likewise.
1178 * rust-lang.c (rust_language_data): Likewise.
1179 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1180 and update local variable to a bool.
1181 * valops.c (value_cast): Update call to c_style_arrays_p.
1182 (value_array): Likewise.
1183 * value.c (coerce_array): Likewise.
1184
85967615
AB
11852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1186
1187 * ada-lang.c (ada_language_data): Remove la_language initializer.
1188 * c-lang.c (c_language_data): Likewise.
1189 (cplus_language_data): Likewise.
1190 (asm_language_data): Likewise.
1191 (minimal_language_data): Likewise.
1192 * d-lang.c (d_language_data): Likewise.
1193 * f-lang.c (f_language_data): Likewise.
1194 * go-lang.c (go_language_data): Likewise.
1195 * language.c (unknown_language_data): Likewise.
1196 (auto_language_data): Likewise.
1197 * language.h (language_data): Remove la_language field.
1198 (language_defn::language_defn): Initialise la_language field.
1199 (language_defn::la_language): New member variable.
1200 * m2-lang.c (m2_language_data): Remove la_language field.
1201 * objc-lang.c (objc_language_data): Likewise.
1202 * opencl-lang.c (opencl_language_data): Likewise.
1203 * p-lang.c (pascal_language_data): Likewise.
1204 * rust-lang.c (rust_language_data): Likewise.
1205
e171d6f1
AB
12062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1207
1208 * ada-lang.c (ada_extensions): Delete, moved into
1209 ada_language::filename_extensions.
1210 (ada_language_data): Remove la_filename_extensions initializer.
1211 (ada_language::filename_extensions): New member function.
1212 * c-lang.c (c_extensions): Delete, moved into
1213 c_language::filename_extensions.
1214 (c_language_data): Remove la_filename_extensions initializer.
1215 (c_language::filename_extensions): New member function.
1216 (cplus_extensions): Delete, moved into
1217 cplus_language::filename_extensions.
1218 (cplus_language_data): Remove la_filename_extensions initializer.
1219 (cplus_language::filename_extensions): New member function.
1220 (asm_extensions): Delete, moved into
1221 asm_language::filename_extensions.
1222 (asm_language_data): Remove la_filename_extensions initializer.
1223 (asm_language::filename_extensions): New member function.
1224 (minimal_language_data): Remove la_filename_extensions
1225 initializer.
1226 * d-lang.c (d_extensions): Delete, moved into
1227 d_language::filename_extensions.
1228 (d_language_data): Remove la_filename_extensions initializer.
1229 (d_language::filename_extensions): New member function.
1230 * f-lang.c (f_extensions): Delete, moved into
1231 f_language::filename_extensions.
1232 (f_language_data): Remove la_filename_extensions initializer.
1233 (f_language::filename_extensions): New member function.
1234 * go-lang.c (go_language_data): Remove la_filename_extensions
1235 initializer.
1236 * language.c (add_set_language_command): Update now that
1237 filename_extensions returns a vector.
1238 (unknown_language_data): Remove la_filename_extensions
1239 initializer.
1240 (auto_language_data): Likewise.
1241 * language.h (language_data): Remove la_filename_extensions field.
1242 (language_defn::filename_extensions): New member function.
1243 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1244 initializer.
1245 * objc-lang.c (objc_extensions): Delete, moved into
1246 objc_language::filename_extensions.
1247 (objc_language_data): Remove la_filename_extensions initializer.
1248 (objc_language::filename_extensions): New member function.
1249 * opencl-lang.c (opencl_language_data): Remove
1250 la_filename_extensions initializer.
1251 * p-lang.c (pascal_extensions): Delete, moved into
1252 pascal_language::filename_extensions.
1253 (pascal_language_data): Remove la_filename_extensions initializer.
1254 (pascal_language::filename_extensions): New member function.
1255 * rust-lang.c (rust_extensions): Delete, moved into
1256 rust_language::filename_extensions.
1257 (rust_language_data): Remove la_filename_extensions initializer.
1258 (rust_language::filename_extensions): New member function.
1259 * symfile.c (add_filename_language): Add new assert.
1260
6f7664a9
AB
12612020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1262
1263 * ada-lang.c (ada_language_data): Remove la_name and
1264 la_natural_name initializers.
1265 (ada_language::name): New member function.
1266 (ada_language::natural_name): New member function.
1267 * c-lang.c (c_language_data): Remove la_name and
1268 la_natural_name initializers.
1269 (c_language::name): New member function.
1270 (c_language::natural_name): New member function.
1271 (cplus_language_data): Remove la_name and
1272 la_natural_name initializers.
1273 (cplus_language::name): New member function.
1274 (cplus_language::natural_name): New member function.
1275 (asm_language_data): Remove la_name and
1276 la_natural_name initializers.
1277 (asm_language::name): New member function.
1278 (asm_language::natural_name): New member function.
1279 (minimal_language_data): Remove la_name and
1280 la_natural_name initializers.
1281 (minimal_language::name): New member function.
1282 (minimal_language::natural_name): New member function.
1283 * compile/compile.c (compile_to_object): Update call to
1284 lanugage_defn::name.
1285 * d-lang.c (d_language_data): Remove la_name and
1286 la_natural_name initializers.
1287 (d_language::name): New member function.
1288 (d_language::natural_name): New member function.
1289 * expprint.c (print_subexp_standard): Update call to
1290 language_defn::name.
1291 (dump_raw_expression): Likewise
1292 (dump_prefix_expression): Likewise.
1293 * f-lang.c (f_language_data): Remove la_name and
1294 la_natural_name initializers.
1295 (f_language::name): New member function.
1296 (f_language::natural_name): New member function.
1297 * go-lang.c (go_language_data): Remove la_name and
1298 la_natural_name initializers.
1299 (go_language::name): New member function.
1300 (go_language::natural_name): New member function.
1301 * language.c (show_language_command): Update call to
1302 language_defn::name.
1303 (set_language_command): Likewise.
1304 (language_enum): Likewise.
1305 (language_str): Likewise.
1306 (add_set_language_command): Likewise, use
1307 language_defn::natural_name in the doc string.
1308 (unknown_language_data): Remove la_name and
1309 la_natural_name initializers.
1310 (unknown_language::name): New member function.
1311 (unknown_language::natural_name): New member function.
1312 (auto_language_data): Remove la_name and
1313 la_natural_name initializers.
1314 (auto_language::name): New member function.
1315 (auto_language::natural_name): New member function.
1316 (language_lookup_primitive_type_as_symbol): Update call to
1317 language_defn::name.
1318 * language.h (language_data): Remove la_name and la_natural_name
1319 member variables.
1320 (language_defn::name): New member function.
1321 (language_defn::natural_name): New member function.
1322 * m2-lang.c (m2_language_data): Remove la_name and
1323 la_natural_name initializers.
1324 (m2_language::name): New member function.
1325 (m2_language::natural_name): New member function.
1326 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1327 language_defn::natural_name.
1328 * objc-lang.c (objc_language_data): Remove la_name and
1329 la_natural_name initializers.
1330 (objc_language::name): New member function.
1331 (objc_language::natural_name): New member function.
1332 * opencl-lang.c (opencl_language_data): Remove la_name and
1333 la_natural_name initializers.
1334 (opencl_language::name): New member function.
1335 (opencl_language::natural_name): New member function.
1336 * p-lang.c (pascal_language_data): Remove la_name and
1337 la_natural_name initializers.
1338 (pascal_language::name): New member function.
1339 (pascal_language::natural_name): New member function.
1340 * rust-lang.c (rust_language_data): Remove la_name and
1341 la_natural_name initializers.
1342 (rust_language::name): New member function.
1343 (rust_language::natural_name): New member function.
1344 * symtab.c (lookup_language_this): Update call to
1345 language_defn::name.
1346
5bae7c4e
AB
13472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * ada-lang.c (ada_language_data): Remove la_name_of_this
1350 initializer.
1351 * ax-gdb.c (gen_expr): Update call to name_of_this.
1352 * c-exp.y (classify_name): Likewise.
1353 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1354 (cplus_language_data): Likewise.
1355 (cplus_language::name_of_this): New member function.
1356 (asm_language_data): Remove la_name_of_this initializer.
1357 (minimal_language_data): Likewise.
1358 * d-lang.c (d_language_data): Likewise.
1359 (d_language::name_of_this): New member function.
1360 * expprint.c (print_subexp_standard): Update call to name_of_this.
1361 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1362 * go-lang.c (go_language_data): Likewise.
1363 * language.c (unknown_language_data): Likewise.
1364 (unknown_language::name_of_this): New member function.
1365 (auto_language_data): Remove la_name_of_this initializer.
1366 (auto_language::name_of_this): New member function.
1367 * language.h (language_data): Delete la_name_of_this member
1368 variable.
1369 (language_defn::name_of_this): New member function.
1370 * m2-lang.c (m2_language_data): Remove la_name_of_this
1371 initializer.
1372 * objc-lang.c (objc_language_data): Likewise.
1373 (objc_language::name_of_this): New member function.
1374 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1375 initializer.
1376 * p-lang.c (pascal_language_data): Likewise.
1377 (pascal_language::name_of_this): New member function.
1378 * rust-lang.c (rust_language_data): Remove la_name_of_this
1379 initializer.
1380 * symtab.c (lookup_language_this): Update call to name_of_this.
1381 (lookup_symbol_aux): Likewise.
1382 * valops.c (value_of_this): Likewise.
1383
22e3f3ed
AB
13842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1385
1386 * ada-lang.c (ada_language_data): Remove
1387 la_struct_too_deep_ellipsis initializer.
1388 (ada_language::struct_too_deep_ellipsis): New member function.
1389 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1390 initializer.
1391 (cplus_language_data): Likewise.
1392 (asm_language_data): Likewise.
1393 (minimal_language_data): Likewise.
1394 * cp-valprint.c (cp_print_value): Update call to
1395 struct_too_deep_ellipsis.
1396 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1397 initializer.
1398 * f-lang.c (f_language_data): Likewise.
1399 (f_language::struct_too_deep_ellipsis): New member function.
1400 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1401 initializer.
1402 * language.c (unknown_language_data): Likewise.
1403 (auto_language_data): Likewise.
1404 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1405 member variable.
1406 (language_defn::struct_too_deep_ellipsis): New member function.
1407 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1408 initializer.Q
1409 * objc-lang.c (objc_language_data): Likewise.
1410 * opencl-lang.c (opencl_language_data): Likewise.
1411 * p-lang.c (pascal_language_data): Likewise.
1412 * rust-lang.c (rust_language_data): Likewise.
1413 * valprint.c (val_print_check_max_depth): Update call to
1414 struct_too_deep_ellipsis.
1415
ed29e1c7
FW
14162020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1417
1418 * MAINTAINERS (Write After Approval): Add myself.
1419
12d8f940
TT
14202020-09-15 Tom Tromey <tom@tromey.com>
1421
1422 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1423 Remove.
1424
6b5a7bc7
TT
14252020-09-15 Tom Tromey <tom@tromey.com>
1426
1427 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1428 and TYPE_CODE_METHODPTR cases.
1429 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1430 (c_value_print_inner): Update.
1431 * valprint.c (generic_value_print_memberptr): New function, from
1432 c_value_print_memberptr.
1433 (generic_value_print): Use it. Call cplus_print_method_ptr.
1434
47f0e2ff
TT
14352020-09-15 Tom Tromey <tromey@adacore.com>
1436
1437 * python/python-internal.h (PyInt_FromLong): Remove define.
1438 * python/py-value.c (convert_value_from_python): Use
1439 gdb_py_object_from_longest.
1440 * python/py-type.c (typy_get_code): Use
1441 gdb_py_object_from_longest.
1442 * python/py-symtab.c (salpy_get_line): Use
1443 gdb_py_object_from_longest.
1444 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1445 gdb_py_object_from_longest.
1446 * python/py-record.c (recpy_gap_reason_code): Use
1447 gdb_py_object_from_longest.
1448 * python/py-record-btrace.c (recpy_bt_insn_size)
1449 (recpy_bt_func_level, btpy_list_count): Use
1450 gdb_py_object_from_longest.
1451 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1452 gdb_py_object_from_longest. Fix error handling.
1453 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1454 gdb_py_object_from_longest.
1455 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1456 gdb_py_object_from_longest.
1457 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1458 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1459 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1460
512116ce
TT
14612020-09-15 Tom Tromey <tromey@adacore.com>
1462
1463 * python/python.c (gdbpy_parameter_value): Use
1464 gdb_py_object_from_ulongest.
1465
4ab1029c
TT
14662020-09-15 Tom Tromey <tromey@adacore.com>
1467
1468 * python/py-infevents.c (create_register_changed_event_object):
1469 Use gdb_py_object_from_longest.
1470 * python/py-exitedevent.c (create_exited_event_object): Use
1471 gdb_py_object_from_longest.
1472
062534d4
TT
14732020-09-15 Tom Tromey <tromey@adacore.com>
1474
1475 * python/python.c (gdbpy_parameter_value): Use
1476 gdb_py_object_from_longest.
1477 * python/py-type.c (convert_field, typy_range): Use
1478 gdb_py_object_from_longest.
1479 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1480 gdb_py_object_from_longest.
1481 * python/py-lazy-string.c (stpy_get_length): Use
1482 gdb_py_object_from_longest.
1483 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1484 gdb_py_object_from_longest.
1485 * python/py-infevents.c (create_memory_changed_event_object): Use
1486 gdb_py_object_from_longest.
1487 * python/py-inferior.c (infpy_get_num): Use
1488 gdb_py_object_from_longest.
1489 (infpy_get_pid): Likewise.
1490
d1cab987
TT
14912020-09-15 Tom Tromey <tromey@adacore.com>
1492
1493 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1494 defines.
1495 * python/py-value.c (valpy_long): Use
1496 gdb_py_object_from_ulongest.
1497 * python/py-symtab.c (salpy_get_pc): Use
1498 gdb_py_object_from_ulongest.
1499 (salpy_get_last): Likewise.
1500 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1501 gdb_py_object_from_ulongest.
1502 * python/py-lazy-string.c (stpy_get_address): Use
1503 gdb_py_object_from_ulongest.
1504 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1505 * python/py-arch.c (archpy_disassemble): Use
1506 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1507 error handling.
1508
4bde49dc
TT
15092020-09-15 Tom Tromey <tromey@adacore.com>
1510
1511 * python/python-internal.h (gdb_py_long_from_longest): Remove
1512 defines.
1513 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1514 * python/py-type.c (convert_field, typy_get_sizeof): Use
1515 gdb_py_object_from_longest.
1516 * python/py-record-btrace.c (btpy_list_index): Use
1517 gdb_py_object_from_longest.
1518
37431074
TT
15192020-09-15 Tom Tromey <tromey@adacore.com>
1520
1521 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1522 * python/py-record.c (recpy_element_number): Use
1523 gdb_py_object_from_longest.
1524 (recpy_gap_number): Likewise.
1525
cbe25684
TT
15262020-09-15 Tom Tromey <tromey@adacore.com>
1527
1528 * top.c (ui::ui): Update.
1529 (highest_ui_num): Remove.
1530 * top.h (struct ui) <num>: Remove.
1531
db92ac45
TT
15322020-09-15 Tom Tromey <tromey@adacore.com>
1533
1534 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1535 * ui-style.c (ansi_regex_text): Now array.
1536 * rust-exp.y (number_regex_text): Now array.
1537 * linespec.c (linespec_quote_characters): Now array.
1538 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1539 Now arrays.
1540
d2b31b67
SM
15412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1542
1543 * debuginfod-support.c (debuginfod_client_deleter): New.
1544 (debuginfod_client_up): New.
1545 (debuginfod_init): Return debuginfod_client_up.
1546 (debuginfod_source_query): Adjust.
1547 (debuginfod_debuginfo_query): Adjust.
1548
3246bd8e
SM
15492020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1550
1551 * debuginfod-support.c (debuginfod_source_query): Use
1552 make_unique_xstrdup.
1553
10242f36
SM
15542020-09-14 Simon Marchi <simon.marchi@efficios.com>
1555
1556 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1557 with `type::instance_flags`.
1558
e1044e6a
MM
15592020-09-14 Michael Mullin <masmullin@gmail.com>
1560
1561 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1562 Remove baton parameter.
1563
04902b09
PA
15642020-09-14 Pedro Alves <pedro@palves.net>
1565
1566 * Makefile.in (SELFTESTS_SRCS): Add
1567 unittests/enum-flags-selftests.c.
1568 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1569 btrace_function_flags instead of enum btrace_function_flag.
1570 * compile/compile-c-types.c (convert_qualified): Use
1571 enum_flags::raw.
1572 * compile/compile-cplus-symbols.c (convert_one_symbol)
1573 (convert_symbol_bmsym):
1574 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1575 (compile_cplus_convert_struct_or_union_methods)
1576 (compile_cplus_instance::convert_qualified_base):
1577 * go-exp.y (parse_string_or_char): Add cast to int.
1578 * unittests/enum-flags-selftests.c: New file.
1579 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1580 type to btrace_thread_flags from btrace_thread_flag.
1581 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1582 local's type to btrace_thread_flags from btrace_thread_flag. Add
1583 cast in DEBUG call.
1584
69896a2c
PA
15852020-09-14 Pedro Alves <pedro@palves.net>
1586
1587 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1588 * gdbtypes.c (address_space_name_to_int): Rename to ...
1589 (address_space_name_to_type_instance_flags): ... this.
1590 (address_space_int_to_name): Rename to ...
1591 (address_space_type_instance_flags_to_name): ... this.
1592 * gdbtypes.h (address_space_name_to_int): Rename to ...
1593 (address_space_name_to_type_instance_flags): ... this.
1594 (address_space_int_to_name): Rename to ...
1595 (address_space_type_instance_flags_to_name): ... this.
1596 * type-stack.c (type_stack::insert): Adjust to rename.
1597 * type-stack.h (type_stack::insert): Likewise.
1598
314ad88d
PA
15992020-09-14 Pedro Alves <pedro@palves.net>
1600 Andrew Burgess <andrew.burgess@embecosm.com>
1601
1602 * avr-tdep.c (avr_address_class_type_flags): Return
1603 type_instance_flags.
1604 (avr_address_class_type_flags_to_name): Take a
1605 type_instance_flags.
1606 (avr_address_class_name_to_type_flags): Return bool and take a
1607 type_instance_flags.
1608 * d-lang.c (build_d_types): Use type::set_instance_flags.
1609 * ft32-tdep.c (ft32_address_class_type_flags): Return
1610 type_instance_flags.
1611 (ft32_address_class_type_flags_to_name): Take a
1612 type_instance_flags.
1613 (ft32_address_class_name_to_type_flags): Return bool and take a
1614 type_instance_flags.
1615 (ft32_gdbarch_init): Use type::set_instance_flags.
1616 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1617 * gdbarch.h, gdbarch.c: Regenerate.
1618 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1619 (address_class_name_to_type_flags): Use type_instance_flags and
1620 bool.
1621 * gdbtypes.c (address_space_name_to_int)
1622 (address_space_int_to_name, make_qualified_type): Use
1623 type_instance_flags.
1624 (make_qualified_type): Use type_instance_flags and
1625 type::set_instance_flags.
1626 (make_type_with_address_space, make_cv_type, make_vector_type)
1627 (check_typedef): Use type_instance_flags.
1628 (recursive_dump_type): Cast type_instance_flags to unsigned for
1629 printing.
1630 (copy_type_recursive): Use type::set_instance_flags.
1631 (gdbtypes_post_init): Use type::set_instance_flags.
1632 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1633 <m_instance_flags>: ... this.
1634 <instance_flags, set_instance_flags>: New methods.
1635 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1636 (SET_TYPE_INSTANCE_FLAGS): New.
1637 (address_space_name_to_int, address_space_int_to_name)
1638 (make_type_with_address_space): Pass flags using
1639 type_instance_flags instead of int.
1640 * stabsread.c (cleanup_undefined_types_noname): Use
1641 type::set_instance_flags.
1642 * s390-tdep.c (s390_address_class_type_flags): Return
1643 type_instance_flags.
1644 (s390_address_class_type_flags_to_name): Take a
1645 type_instance_flags.
1646 (s390_address_class_name_to_type_flags): Return bool and take a
1647 type_instance_flags.
1648 * type-stack.c (type_stack::follow_types): Use
1649 type_instance_flags.
1650 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1651
27087b7f
TT
16522020-09-14 Tom Tromey <tromey@adacore.com>
1653
1654 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1655 * x86-tdep.c (x86_is_thunk_register_name)
1656 (x86_in_indirect_branch_thunk): Update.
1657 * sparc64-tdep.c (sparc64_fpu_register_names)
1658 (sparc64_cp0_register_names, sparc64_register_names)
1659 (sparc64_pseudo_register_names): Now const.
1660 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1661 cp0_registers_num>: Now const.
1662 * sparc-tdep.c (sparc_core_register_names)
1663 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1664 (sparc32_pseudo_register_names): Now const.
1665 (validate_tdesc_registers): Update.
1666 * rust-lang.c (rust_extensions): Now const.
1667 * p-lang.c (p_extensions): Now const.
1668 * objc-lang.c (objc_extensions): Now const.
1669 * nto-tdep.c (nto_thread_state_str): Now const.
1670 * moxie-tdep.c (moxie_register_names): Now const.
1671 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1672 Now const.
1673 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1674 (mips_linux_reg_names): Now const.
1675 (mips_gdbarch_init): Update.
1676 * microblaze-tdep.c (microblaze_register_names): Now const.
1677 * m68k-tdep.c (m68k_register_names): Now const.
1678 * m32r-tdep.c (m32r_register_names): Now const.
1679 * ia64-tdep.c (ia64_register_names): Now const.
1680 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1681 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1682 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1683 ymm_avx512_register_names, pkeys_register_names>: Now const.
1684 * i386-tdep.c (i386_register_names, i386_zmm_names)
1685 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1686 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1687 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1688 * f-lang.c (f_extensions): Now const.
1689 * d-lang.c (d_extensions): Now const.
1690 * csky-tdep.c (csky_register_names): Now const.
1691 * charset.c (default_charset_names, charset_enum): Now const.
1692 (_initialize_charset): Update.
1693 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1694 const.
1695 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1696 (bsd_uthread_solib_loaded): Update.
1697 (bsd_uthread_state): Now const.
1698 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1699 (amd64_ymm_avx512_names, amd64_ymmh_names)
1700 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1701 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1702 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1703 (amd64_dword_names): Now const.
1704 * agent.c (can_use_agent_enum): Now const.
1705 * ada-tasks.c (task_states, long_task_states): Now const.
1706 * ada-lang.c (known_runtime_file_name_patterns)
1707 (known_auxiliary_function_name_patterns, attribute_names)
1708 (standard_exc, ada_extensions): Now const.
1709
89806626
SM
17102020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1711
1712 * bcache.h (struct bcache) <bcache>: Remove constructor.
1713 <m_hash_function, m_compare_function>: Remove.
1714 <~bcache>: Make virtual.
1715 <compare>: Remove static method, introduce virtual method.
1716 <default_hash>: Remove.
1717 <hash>: New virtual method.
1718 * bcache.c (bcache::expand_hash_table): Update.
1719 (bcache::insert): Update.
1720 (bcache::hash): New.
1721 (bcache::compare): Update comment and parameter names.
1722 * gdbtypes.c (types_deeply_equal): Update.
1723 * psymtab.h (struct psymbol_bcache): New struct.
1724 (class psymtab_storage) <psymtab_storage>: Make default.
1725 <psymbol_cache>: Change type to psymbol_bcache.
1726 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1727 (psymbol_hash): Change to...
1728 (psymbol_bcache::hash): ... this.
1729 (psymbol_compare): Change to...
1730 (psymbol_bcache::compare): ... this.
1731
677c92fe
SM
17322020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1733
1734 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1735 checking for initial lwp.
1736
3eba3a01
TT
17372020-09-14 Tom Tromey <tromey@adacore.com>
1738
1739 * m68k-tdep.c (m68k_extract_return_value): Use
1740 pointer_result_regnum.
1741 (m68k_store_return_value): Likewise.
1742 (m68k_reg_struct_return_p): Handle vectors and arrays.
1743 (m68k_return_value): Handle arrays.
1744 (m68k_svr4_return_value): Fix single-element aggregate handling.
1745 Handle long double. Adjust for embedded ABI.
1746 (m68k_svr4_init_abi): Set pointer_result_regnum.
1747 (m68k_embedded_init_abi): New function.
1748 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1749 (m68k_osabi_sniffer): New function.
1750 (_initialize_m68k_tdep): Register osabi sniffer.
1751 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1752 member.
1753
33f4dd48
SM
17542020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1755
1756 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1757 with gdb::unique_xmalloc_ptr<char>.
1758
8400a90d
SM
17592020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1760
1761 * xml-support.h (xml_fetch_another): Change type to be a
1762 function_view.
1763 (xml_process_xincludes): Remove baton parameter.
1764 (xml_fetch_content_from_file): Change baton parameter to
1765 dirname.
1766 * xml-support.c (struct xinclude_parsing_data)
1767 <xinclude_parsing_data>: Remove baton parameter.
1768 <fetcher_baton>: Remove.
1769 (xinclude_start_include): Adjust.
1770 (xml_process_xincludes): Adjust.
1771 (xml_fetch_content_from_file): Replace baton parameter with
1772 dirname.
1773 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1774 (xml_init_syscalls_info): Use a lambda.
1775 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1776 (file_read_description_xml): Use a lambda.
1777 (fetch_available_features_from_target): Change baton parameter
1778 to target_ops.
1779 (target_read_description_xml): Use a lambda.
1780 (target_fetch_description_xml): Use a lambda.
1781 (string_read_description_xml): Update.
1782
04f5bab2
SM
17832020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1784
1785 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1786 uses with type::endianity_is_not_default.
1787
db558e34
SM
17882020-09-14 Simon Marchi <simon.marchi@efficios.com>
1789
1790 * gdbtypes.h (struct type) <endianity_is_not_default,
1791 set_endianity_is_not_default>: New methods.
1792 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1793 type::endianity_is_not_default, change all write call sites to
1794 use type::set_endianity_is_not_default.
1795
22c4c60c
SM
17962020-09-14 Simon Marchi <simon.marchi@efficios.com>
1797
1798 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1799 uses with type::is_fixed_instance.
1800
9cdd0d12
SM
18012020-09-14 Simon Marchi <simon.marchi@efficios.com>
1802
1803 * gdbtypes.h (struct type) <is_fixed_instance,
1804 set_is_fixed_instance>: New methods.
1805 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1806 write call sites to use type::set_is_fixed_instance.
1807
0becda7a
SM
18082020-09-14 Simon Marchi <simon.marchi@efficios.com>
1809
1810 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1811 uses with type::is_gnu_ifunc.
1812
03cc7249
SM
18132020-09-14 Simon Marchi <simon.marchi@efficios.com>
1814
1815 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1816 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1817 use type::set_is_gnu_ifunc.
1818
3f46044c
SM
18192020-09-14 Simon Marchi <simon.marchi@efficios.com>
1820
1821 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1822 uses with type::stub_is_supported.
1823
9baccff6
SM
18242020-09-14 Simon Marchi <simon.marchi@efficios.com>
1825
1826 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1827 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1828 use type::set_stub_is_supported.
1829
bd63c870
SM
18302020-09-14 Simon Marchi <simon.marchi@efficios.com>
1831
1832 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1833 uses with type::is_vector.
1834
2062087b
SM
18352020-09-14 Simon Marchi <simon.marchi@efficios.com>
1836
1837 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1838 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1839 use type::set_is_vector.
1840
a409645d
SM
18412020-09-14 Simon Marchi <simon.marchi@efficios.com>
1842
1843 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1844 uses with type::has_varargs.
1845
1d6286ed
SM
18462020-09-14 Simon Marchi <simon.marchi@efficios.com>
1847
1848 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1849 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1850 use type::set_has_varargs.
1851
7f9f399b
SM
18522020-09-14 Simon Marchi <simon.marchi@efficios.com>
1853
1854 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1855 uses with type::is_prototyped.
1856
27e69b7a
SM
18572020-09-14 Simon Marchi <simon.marchi@efficios.com>
1858
1859 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1860 New methods.
1861 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1862 call sites to use type::set_is_prototyped.
1863
d2183968
SM
18642020-09-14 Simon Marchi <simon.marchi@efficios.com>
1865
1866 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1867 uses with type::target_is_stub.
1868
8f53807e
SM
18692020-09-14 Simon Marchi <simon.marchi@efficios.com>
1870
1871 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1872 New methods.
1873 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1874 sites to use type::set_target_is_stub.
1875
e46d3488
SM
18762020-09-14 Simon Marchi <simon.marchi@efficios.com>
1877
1878 * gdbtypes.h (TYPE_STUB): Remove, replace all
1879 uses with type::is_stub.
1880
b4b73759
SM
18812020-09-14 Simon Marchi <simon.marchi@efficios.com>
1882
1883 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1884 (TYPE_STUB): Use type::is_stub, change all write call sites to
1885 use type::set_is_stub.
1886
20ce4123
SM
18872020-09-14 Simon Marchi <simon.marchi@efficios.com>
1888
1889 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1890 type::has_no_signedness.
1891
15152a54
SM
18922020-09-14 Simon Marchi <simon.marchi@efficios.com>
1893
1894 * gdbtypes.h (struct type) <has_no_signedness,
1895 set_has_no_signedness>: New methods.
1896 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1897 call sites to use type::set_has_no_signedness.
1898
c6d940a9
SM
18992020-09-14 Simon Marchi <simon.marchi@efficios.com>
1900
1901 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1902 type::is_unsigned.
1903
653223d3
SM
19042020-09-14 Simon Marchi <simon.marchi@efficios.com>
1905
1906 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1907 methods.
1908 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1909 sites to use type::set_is_unsigned.
1910
55ea94da 19112020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 1912 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 1913
e851246a
SM
1914 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1915 pointer and stack frame offset when unwinding.
55ea94da 1916
6791b117
PA
19172020-09-13 Pedro Alves <pedro@palves.net>
1918
1919 * NEWS: Document "-break-insert --qualified".
1920 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1921
77f2120b
PA
19222020-09-13 Pedro Alves <pedro@palves.net>
1923
1924 * linespec.c (classify_mtype, compare_msyms): Delete.
1925 (search_minsyms_for_name): Remove classification logic. Instead
1926 filter out trampoline symbols if we also found an external
1927 function of the same name.
1928
ed6a896c
JB
19292020-09-13 Joel Brobecker <brobecker@adacore.com>
1930
1931 * NEWS: Create a new section for the next release branch.
1932 Rename the section of the current branch, now that it has
1933 been cut.
1934
32aea73e
JB
19352020-09-13 Joel Brobecker <brobecker@adacore.com>
1936
1937 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1938 * version.in: Bump version to 11.0.50.DATE-git.
1939
8087c3fa
JB
19402020-09-12 Joel Brobecker <brobecker@adacore.com>
1941
1942 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1943
2a67f09d
FW
19442020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1945 Felix Willgerodt <Felix.Willgerodt@intel.com>
1946
1947 * gdbarch.sh: Added bfloat16 type.
1948 * gdbarch.c: Regenerated.
1949 * gdbarch.h: Regenerated.
1950 * gdbtypes.c (floatformats_bfloat16): New struct.
1951 (gdbtypes_post_init): Add builtin_bfloat16.
1952 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1953 (floatformats_bfloat16): New struct.
1954 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1955 (i386_ymm_type): Add field "v16_bfloat16"
1956 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1957 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1958 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1959 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1960 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1961 * features/i386/64bit-avx512.c: Regenerated.
1962 * features/i386/64bit-sse.xml: Add bfloat16 type.
1963 * features/i386/64bit-sse.c: Regenerated.
1964
1347d111
FW
19652020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1966
1967 * i386-tdep.c (i386_zmm_type): Fix field names.
1968 (i386_ymm_type): Fix field names.
1969
7a4e8e7d
TBA
19702020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1971
1972 * breakpoint.c: Fix typo in the help message of the
1973 "set breakpoint condition-evaluation" command.
1974
cf4ac4be
KR
19752020-09-10 Kamil Rytarowski <n54@gmx.com>
1976
1977 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1978 * (nbsd_nat_target::pid_to_exec_file)
1979 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1980 (nbsd_nat_target::post_startup_inferior)
1981 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1982 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1983 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1984 * (nbsd_thread_lister): Remove.
1985
f404573e
KR
19862020-09-10 Kamil Rytarowski <n54@gmx.com>
1987
1988 * fork-inferior.c (startup_inferior): Avoid double free.
1989
1ccb2c17
KR
19902020-09-10 Kamil Rytarowski <n54@gmx.com>
1991
1992 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1993 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1994
feedfcc7
KR
19952020-09-10 Kamil Rytarowski <n54@gmx.com>
1996
1997 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1998 * netbsd-nat.c: Include <sys/ptrace.h>.
1999 * (netbsd_nat::enable_proc_events): Add.
2000
c489f8c6
KR
20012020-09-10 Kamil Rytarowski <n54@gmx.com>
2002
2003 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2004 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2005 (netbsd_nat::for_each_thread): Add.
2006 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2007 "gdbsupport/common-debug.h".
2008 * (netbsd_nat::netbsd_thread_lister)
2009 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2010 (netbsd_nat::for_each_thread): Add.
2011
330662f6
KR
20122020-09-10 Kamil Rytarowski <n54@gmx.com>
2013
2014 * netbsd-nat.h: Include <unistd.h>.
2015 * (netbsd_nat::pid_to_exec_file): Add.
2016 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2017 * (netbsd_nat::pid_to_exec_file) Add.
2018
70b67307
KR
20192020-09-10 Kamil Rytarowski <n54@gmx.com>
2020
2021 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2022
99cf6da6
KR
20232020-09-10 Kamil Rytarowski <n54@gmx.com>
2024
2025 * netbsd-nat.h: New file.
2026 * netbsd-nat.c: Likewise.
2027
1b788fb6
TT
20282020-09-09 Tom Tromey <tromey@adacore.com>
2029
2030 * ada-lang.c (remove_extra_symbols): Do not increment when
2031 removing an element
2032
03b0a45f
TT
20332020-09-08 Tom Tromey <tromey@adacore.com>
2034
2035 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2036
3cae4447
TT
20372020-09-08 Tom Tromey <tromey@adacore.com>
2038
2039 PR win32/25302:
2040 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2041 (gdb_bfd_init_data): New function.
2042 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2043
7f08fd51
TBA
20442020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2045
2046 * infrun.c (fetch_inferior_event): Use
2047 `switch_to_target_no_thread` to switch the target.
2048
3e6ff933
TT
20492020-09-06 Tom Tromey <tom@tromey.com>
2050
2051 * symfile.h (dwarf2_free_objfile): Don't declare.
2052
e56798df
AKS
20532020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2054
2055 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2056 to match 16 byte real/complex type generated by Flang compiler.
2057
8f5c6526
TV
20582020-09-03 Tom de Vries <tdevries@suse.de>
2059
2060 PR breakpoint/26546
2061 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2062 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2063
c5065df0
SM
20642020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2065
2066 * maint.c (index_digits): New function.
2067 (struct maint_print_section_data): Remove.
2068 (print_bfd_section_info): Remove print_data parameter, add arg
2069 and index_digits.
2070 (print_objfile_section_info): Likewise.
2071 (print_bfd_section_info_maybe_relocated): Likewise (plus
2072 objfile).
2073 (maintenance_info_sections): Adjust calls.
2074
02c6f3f1
TT
20752020-09-02 Tom Tromey <tromey@adacore.com>
2076
2077 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2078 for null pointers.
2079 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2080
ef5e5b0b
SM
20812020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2082
2083 * bcache.h (struct bcache) <insert>: Change type of `added` to
2084 pointer to bool.
2085 * bcache.c (bcache::insert): Likewise.
2086 * gdbtypes.c (check_types_worklist): Adjust.
2087 * psymtab.c (add_psymbol_to_bcache): Adjust.
2088
973695d6
KB
20892020-08-31 Kevin Buettner <kevinb@redhat.com>
2090
2091 * corelow.c (unordered_set): Include.
2092 (class core_target): Add field 'm_core_unavailable_mappings'.
2093 (core_target::build_file_mappings): Print only one warning
2094 per inaccessible file. Add unavailable/broken mappings
2095 to m_core_unavailable_mappings.
2096 (core_target::xfer_partial): Call...
2097 (core_target::xfer_memory_via_mappings): New method.
2098
264fc0e2
SM
20992020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2100
2101 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2102 type to bool.
2103
2de01bdb
SM
21042020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2105
2106 * dwarf2/read.c (struct field_info): Fix indentation.
2107
f3bd50f1
SM
21082020-08-31 Simon Marchi <simon.marchi@efficios.com>
2109
2110 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2111 ordering in comment.
2112 * frame.c (frame_id_eq): Fix indentation.
2113
22b9b4b0
SL
21142020-08-31 Scott Linder <scott@scottlinder.com>
2115 Simon Marchi <simon.marchi@efficios.com>
2116
2117 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2118 inline frame ids in outer frame.
2119
84154d16
SM
21202020-08-31 Simon Marchi <simon.marchi@efficios.com>
2121
2122 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2123 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2124 (outer_frame_id): Use FID_STACK_OUTER instead of
2125 FID_STACK_INVALID.
2126 (frame_id_p): Don't check for outer_frame_id.
2127
8efaf6b3
SM
21282020-08-31 Simon Marchi <simon.marchi@efficios.com>
2129
2130 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2131 regnum/frame in value. Call allocate_value_lazy.
2132 * frame.c (frame_unwind_register_value): Use
2133 val_print_not_saved.
2134
fe1fe7ea
SM
21352020-08-31 Simon Marchi <simon.marchi@efficios.com>
2136
2137 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2138
f7c7700d
PA
21392020-08-29 Pedro Alves <pedro@palves.net>
2140
2141 * progspace.c (print_program_space): Use all_inferiors. Switch to
2142 the inferior before calling target_pid_to_str.
2143
e0814aae
TT
21442020-08-28 Tom Tromey <tom@tromey.com>
2145
2146 * xcoffread.c (xcoff_end_psymtab): Update comment.
2147 * dbxread.c (dbx_end_psymtab): Update comment.
2148
626d2320
TV
21492020-08-28 Tom de Vries <tdevries@suse.de>
2150
2151 PR breakpoint/26544
2152 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2153 event_location.
2154 (create_breakpoint): Same.
2155 (base_breakpoint_decode_location): Same.
2156 (bkpt_create_sals_from_location): Same.
2157 (bkpt_decode_location): Same.
2158 (bkpt_probe_create_sals_from_location): Same.
2159 (bkpt_probe_decode_location): Same.
2160 (tracepoint_create_sals_from_location): Same.
2161 (tracepoint_decode_location): Same.
2162 (tracepoint_probe_decode_location): Same.
2163 (strace_marker_create_sals_from_location): Same.
2164 (strace_marker_decode_location): Same.
2165 (create_sals_from_location_default): Same.
2166 (decode_location_default): Same.
2167 * breakpoint.h (struct breakpoint_ops): Same.
2168 (create_breakpoint): Same.
2169 * linespec.h (decode_line_full): Same.
2170 * linespec.c (decode_line_full): Same. Throw error if
2171 result.size () == 0.
2172
df631783
PA
21732020-08-27 Pedro Alves <pedro@palves.net>
2174
2175 PR gdb/26524
2176 * breakpoint.c (until_break_fsm) <location_breakpoint,
2177 caller_breakpoint>: Delete fields.
2178 <breakpoints>: New field.
2179 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2180 two individual breakpoints.
2181 (until_break_fsm::should_stop): Loop over breakpoints in the
2182 breakpoint vector.
2183 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2184 vector.
2185 (until_break_command): Handle location expanding into multiple
2186 sals.
2187
b2b38aa4
PA
21882020-08-27 Pedro Alves <pedro@palves.net>
2189
2190 PR gdb/26523
2191 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2192 bp_until breakpoints user-specified locations. Update intro
2193 comment.
2194
b886559f
SM
21952020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2196
2197 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2198 gdb_bfd_sections): New.
2199 * maint.c (print_bfd_section_info): Change param type to
2200 maint_print_section_data.
2201 (print_objfile_section_info): Likewise.
2202 (print_bfd_section_info_maybe_relocated): Likewise.
2203 (maintenance_info_sections): Use gdb_bfd_sections.
2204
4c6e63bf
SV
22052020-08-25 Shahab Vahedi <shahab@synopsys.com>
2206
2207 * MAINTAINERS: Add ARC target and maintainer.
2208
8d7f0635
AK
22092020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2210
2211 * configure.tgt: ARC support for GNU/Linux.
2212 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2213 * arc-linux-tdep.c: New file.
2214 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2215 * arc-tdep.c (arc_write_pc): Use it.
2216
fdd8731b
SV
22172020-08-25 Shahab Vahedi <shahab@synopsys.com>
2218
2219 * arc-tdep.c (arc_check_for_hardware_loop): New.
2220 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2221
22459524
SV
22222020-08-25 Shahab Vahedi <shahab@synopsys.com>
2223
2224 * arc-tdep.h: Include "gdbarch.h".
2225
995d3a19
SV
22262020-08-25 Shahab Vahedi <shahab@synopsys.com>
2227
2228 * arch/arc.h
2229 (arc_gdbarch_features): New class to stir the selection of target XML.
2230 (arc_create_target_description): Use FEATURES to choose XML target.
2231 (arc_lookup_target_description): Use arc_create_target_description
2232 to create _new_ target descriptions or return the already created
2233 ones if the FEATURES is the same.
2234 * arch/arc.c: Implementation of prototypes described above.
2235 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2236 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2237 * arc-tdep.c (*_feature_name): Make feature names consistent.
2238 (arc_register_feature): A new struct to hold information about
2239 registers of a particular target/feature.
2240 (arc_check_tdesc_feature): Check if XML provides registers in
2241 compliance with ARC_REGISTER_FEATURE structs.
2242 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2243 (determine_*_reg_feature_set): Which feature name to look for.
2244 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2245 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2246 to expected ISA enums to be used in arc_gdbarch_features structs.
2247 * features/Makefile (FEATURE_XMLFILES): Add new files.
2248 * gdb/features/arc/v1-aux.c: New file.
2249 * gdb/features/arc/v1-aux.xml: Likewise.
2250 * gdb/features/arc/v1-core.c: Likewise.
2251 * gdb/features/arc/v1-core.xml: Likewise.
2252 * gdb/features/arc/v2-aux.c: Likewise.
2253 * gdb/features/arc/v2-aux.xml: Likewise.
2254 * gdb/features/arc/v2-core.c: Likewise.
2255 * gdb/features/arc/v2-core.xml: Likewise.
2256 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2257
3945d2d7
GM
22582020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2259 Andrew Burgess <andrew.burgess@embecosm.com>
2260
2261 PR m2/26372
fc5d6901 2262 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2263 an assert. Remove single element array indexing pattern as the
2264 MULTI_SUBSCRIPT support will handle this case too.
2265
2677f2d3
SM
22662020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2267
2268 * value.h (valprint_check_validity): Move declaration from
2269 here...
2270 * valprint.h (valprint_check_validity): ... to here.
2271
c426fddb
SM
22722020-08-24 Simon Marchi <simon.marchi@efficios.com>
2273
2274 * debug.h: New file.
2275 * debug.c (debug_prefixed_vprintf): New function.
2276 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2277 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2278
1eb8556f
SM
22792020-08-24 Simon Marchi <simon.marchi@efficios.com>
2280
2281 * infrun.h (infrun_debug_printf_1): New function declaration.
2282 (infrun_debug_printf): New macro.
2283 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2284 throughout.
2285 (infrun_debug_printf): New function.
2286 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2287 (handle_jit_event): Likewise.
2288
b8fff44e
MW
22892020-08-21 Mark Wielaard <mark@klomp.org>
2290
2291 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2292
d19c3068
SM
22932020-08-22 Simon Marchi <simon.marchi@efficios.com>
2294
2295 * frame.c (enum class frame_id_status): New.
2296 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2297 (fprintf_frame): Update.
2298 (compute_frame_id): Set frame id status to "computing" on entry.
2299 Set it back to "not_computed" on failure and to "computed" on
2300 success.
2301 (get_frame_id): Assert the frame id is not being computed.
2302 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2303 (create_new_frame): Likewise.
2304 (frame_cleanup_after_sniffer): Update assert.
2305
b70e516e
SM
23062020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2307
2308 * regcache.c (pid_ptid_regcache_map): New type.
2309 (target_ptid_regcache_map): Remove.
2310 (target_pid_ptid_regcache_map): New type.
2311 (regcaches): Change type to target_pid_ptid_regcache_map.
2312 (get_thread_arch_aspace_regcache): Update.
2313 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2314 case.
2315 (regcaches_size): Update.
2316 (regcache_count): Update.
2317 (registers_changed_ptid_target_pid_test): New.
2318 (_initialize_regcache): Register new test.
2319
cdd9148a
SM
23202020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2321
2322 * regcache.c (regcache_count): New.
2323 (struct regcache_test_data): New.
2324 (regcache_test_data_up): New.
2325 (populate_regcaches_for_test): New.
2326 (regcaches_test): Remove.
2327 (get_thread_arch_aspace_regcache_test): New.
2328 (registers_changed_ptid_all_test): New.
2329 (registers_changed_ptid_target_test): New.
2330 (registers_changed_ptid_target_ptid_test): New.
2331 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2332 (_initialize_regcache): Register new tests.
2333
dd125343
SM
23342020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2335
2336 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2337 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2338 gdbarch and aspace parameter. Use current inferior's aspace.
2339 Validate regcache's arch value.
2340 (regcaches_test): Update.
2341
3ee93972
SM
23422020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2343
2344 * regcache.c (regcaches_test): Call registers_changed.
2345
33bf4c5c
TBA
23462020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2347
2348 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2349
c2fd7fae
AKS
23502020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2351
2352 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2353 to find the end of prologue for flang compiled binaries.
2354 * arm-tdep.c (arm_skip_prologue): Likewise.
2355 * i386-tdep.c (i386_skip_prologue): Likewise.
2356 * producer.c (producer_is_llvm): New function.
2357 (producer_parsing_tests): Added new tests for clang/flang.
2358 * producer.h (producer_is_llvm): New declaration.
2359
9327494e
SM
23602020-08-18 Simon Marchi <simon.marchi@efficios.com>
2361
2362 * linux-nat.c (linux_nat_debug_printf): New function.
2363 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2364
d138725a
AM
23652020-08-18 Aaron Merey <amerey@redhat.com>
2366
2367 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2368 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2369 (CLIBS): Add DEBUGINFOD_LIBS.
2370
f9b11e6b
ST
23712020-08-17 Sergei Trofimovich <siarheit@google.com>
2372
2373 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2374 'gdbarch_num_regs'.
2375
3ae7ab99
TT
23762020-08-17 Tom Tromey <tromey@adacore.com>
2377
2378 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2379 ada_get_decoded_value returns NULL.
2380
b017825f
TT
23812020-08-17 Tom Tromey <tromey@adacore.com>
2382
2383 * python/py-inferior.c (infpy_search_memory): Use
2384 gdb_py_object_from_ulongest.
2385 * python/py-infevents.c (create_inferior_call_event_object)
2386 (create_memory_changed_event_object): Use
2387 gdb_py_object_from_ulongest.
2388 * python/py-linetable.c (ltpy_entry_get_pc): Use
2389 gdb_py_object_from_ulongest.
2390
7635cf79
SM
23912020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2392
2393 * loc.c (class symbol_needs_eval_context): Fix indentation.
2394
f54be24b
SM
23952020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2396
2397 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2398 bool.
2399
53d5a2a5
TV
24002020-08-17 Tom de Vries <tdevries@suse.de>
2401
2402 PR gdb/26393
2403 * gdbtypes.c (dump_dynamic_prop): New function.
2404 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2405
547ce8f0
TV
24062020-08-15 Tom de Vries <tdevries@suse.de>
2407
2408 PR backtrace/26390
2409 * stack.c (print_frame_args): Temporarily set the selected
2410 frame to FRAME while printing the frame's arguments.
2411
6ea815e7
PFC
24122020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2413
2414 PR breakpoints/26385
2415 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2416 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2417
6e562fa3
PFC
24182020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2419
2420 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2421 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2422 and >= to check return value instead of == -1 and != -1.
2423
d369b608
SM
24242020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2425
2426 * utils.h (class gdb_argv) <as_array_view>: New method.
2427 * utils.c (gdb_argv_as_array_view_test): New.
2428 (_initialize_utils): Register selftest.
2429 * maint.c (maintenance_selftest): Use the new method.
2430
b31488a3
KR
24312020-08-13 Kamil Rytarowski <n54@gmx.com>
2432
2433 * target.h (supports_dumpcore, dumpcore): New
2434 function declarations.
2435 * target.c (supports_dumpcore, dumpcore): New
2436 functions.
2437 * target-delegates.c: Rebuild.
2438 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2439 and target_dumpcore ().
2440
002a3166
AM
24412020-08-13 Aaron Merey <amerey@redhat.com>
2442
2443 * debuginfod-support.c: Replace global variables with user_data.
2444
ece5bc8a
SM
24452020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2446
2447 * maint.c (maintenance_selftest): Split args and pass array_view
2448 to run_tests.
2449
6d8a0a5e
LM
24502020-08-12 Luis Machado <luis.machado@linaro.org>
2451
2452 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2453 type's length.
2454 Use %s and pulongest to print the length.
2455
7cf663a9
PA
24562020-08-12 Pedro Alves <palves@redhat.com>
2457
2458 * NEWS: Move "Multi-target debugging support" item to the
2459 "Changes since GDB 9" section.
2460
27c7b875
PA
24612020-08-12 Pedro Alves <palves@redhat.com>
2462
2463 PR gdb/26336
2464 * progspace.c (program_space::remove_objfile): Invalidate the
2465 frame cache.
2466
1796a2a1
TV
24672020-08-11 Tom de Vries <tdevries@suse.de>
2468
2469 * MAINTAINERS: Mark ms1 as deleted.
2470
f8e3fe0d
LM
24712020-08-10 Luis Machado <luis.machado@linaro.org>
2472
2473 PR gdb/26310
2474
2475 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2476 act accordingly.
2477 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2478 movz/str/stur/stp skipping behavior.
2479
cc308722
LM
24802020-08-10 Luis Machado <luis.machado@linaro.org>
2481
2482 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2483 struct user_sve_header instead of struct sve_context.
2484
041d9819
SM
24852020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2486
2487 * read.h (dwarf2_fetch_die_loc_sect_off,
2488 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2489 `void *` parameter with function_view.
2490 * read.c (dwarf2_fetch_die_loc_sect_off,
2491 dwarf2_fetch_die_loc_cu_off): Likewise.
2492 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2493 (per_cu_dwarf_call): Adjust.
2494 (get_frame_address_in_block_wrapper): Remove.
2495 (indirect_synthetic_pointer): Adjust.
2496 (get_ax_pc): Remove.
2497 (dwarf2_compile_expr_to_ax): Adjust.
2498
38f8aa06
TV
24992020-08-08 Tom de Vries <tdevries@suse.de>
2500
2501 PR build/26344
2502 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2503 constructor.
2504 * regcache.c (get_thread_arch_aspace_regcache): Same.
2505
a52b3ae2
TT
25062020-08-07 Tom Tromey <tromey@adacore.com>
2507
2508 * ravenscar-thread.c
2509 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2510 New method.
2511 (ravenscar_thread_target::wait): Check
2512 runtime_initialized.
2513 (ravenscar_thread_target::prepare_to_store)
2514 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2515 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2516 (ravenscar_thread_target::stopped_by_watchpoint)
2517 (ravenscar_thread_target::stopped_data_address)
2518 (ravenscar_thread_target::core_of_thread): Use
2519 scoped_restore_current_thread and
2520 set_base_thread_from_ravenscar_task.
2521
0e29517d
TT
25222020-08-07 Tom Tromey <tromey@adacore.com>
2523
2524 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2525
592f9bd7
TT
25262020-08-07 Tom Tromey <tromey@adacore.com>
2527
2528 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2529 update_inferior_ptid before update_thread_list.
2530 (temporarily_change_regcache_ptid): New class.
2531 (ravenscar_thread_target::fetch_registers)
2532 (ravenscar_thread_target::store_registers)
2533 (ravenscar_thread_target::prepare_to_store): Use base thread when
2534 forwarding operation.
2535
39e2018a
TT
25362020-08-07 Tom Tromey <tromey@adacore.com>
2537
2538 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2539 "is_pid" case.
2540
2080266b
TT
25412020-08-07 Tom Tromey <tromey@adacore.com>
2542
2543 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2544 New methods.
2545 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2546 first.
2547 (ravenscar_thread_target::add_thread): Rename from
2548 ravenscar_add_thread.
2549 (ravenscar_thread_target::update_thread_list): Use a lambda.
2550 (ravenscar_thread_target::xfer_partial): New method.
2551
78c02f21
TT
25522020-08-07 Tom Tromey <tromey@adacore.com>
2553
2554 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2555 gdb::function_view.
2556 (iterate_over_live_ada_tasks): Change type of argument.
2557 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2558 of argument.
2559
d5d833af
TT
25602020-08-07 Tom Tromey <tromey@adacore.com>
2561
2562 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2563 Remove.
2564 (ravenscar_thread_target::extra_thread_info): Remove.
2565 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2566 defer to target beneath for non-Ravenscar threads.
2567
a8ac85bb
TT
25682020-08-07 Tom Tromey <tromey@adacore.com>
2569
2570 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2571 get_base_thread_from_ravenscar_task>: Now methods.
2572 <m_cpu_map>: New member.
2573 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2574 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2575 (ravenscar_thread_target::task_is_currently_active): Update.
2576 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2577 Now a method.
2578 (ravenscar_thread_target::add_active_thread): Put initial thread
2579 into the m_cpu_map.
2580
550ab58d
TT
25812020-08-07 Tom Tromey <tromey@adacore.com>
2582
2583 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2584 event_ptid.
2585
e9546579
TT
25862020-08-07 Tom Tromey <tromey@adacore.com>
2587
2588 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2589 runtime_initialized.
2590
3d4470e5
TT
25912020-08-07 Tom Tromey <tromey@adacore.com>
2592
2593 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2594 add_active_thread.
2595 (ravenscar_thread_target::add_active_thread): Now public.
2596 (ravenscar_inferior_created): Call add_active_thread after pushing
2597 the target.
2598
888bdb2b
SM
25992020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2600
2601 * regcache.c (ptid_regcache_map): New type.
2602 (target_ptid_regcache_map): New type.
2603 (regcaches): Change type to target_ptid_regcache_map.
2604 (get_thread_arch_aspace_regcache): Update to regcaches' new
2605 type.
2606 (regcache_thread_ptid_changed): Likewise.
2607 (registers_changed_ptid): Likewise.
2608 (regcaches_size): Likewise.
2609 (regcaches_test): Update.
2610 (regcache_thread_ptid_changed): Update.
2611 * regcache.h (regcache_up): New type.
2612 * gdbsupport/ptid.h (hash_ptid): New struct.
2613
b161a60d
SM
26142020-08-07 Simon Marchi <simon.marchi@efficios.com>
2615
2616 * observable.h (thread_ptid_changed): Add parameter
2617 `process_stratum_target *`.
2618 * infrun.c (infrun_thread_ptid_changed): Add parameter
2619 `process_stratum_target *` and use it.
2620 (selftests): New namespace.
2621 (infrun_thread_ptid_changed): New function.
2622 (_initialize_infrun): Register selftest.
2623 * regcache.c (regcache_thread_ptid_changed): Add parameter
2624 `process_stratum_target *` and use it.
2625 (regcache_thread_ptid_changed): New function.
2626 (_initialize_regcache): Register selftest.
2627 * thread.c (thread_change_ptid): Pass target to
2628 thread_ptid_changed observable.
2629
d2854d8d
CT
26302020-08-06 Caroline Tice <cmtice@google.com>
2631
fe4c3d43
SM
2632 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2633 (struct dwp_sections): Update field comments. Add loclists and
2634 rnglists fields.
2635 (struct virtual_v2_dwo_sections): Rename struct to
2636 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2637 size & offset fields for loclists and rnglists.
2638 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2639 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2640 skipping dummy type units.
2641 (create_dwp_hash_table): Update the large comment above the function to
2642 discuss Version 5 DWP files as well, with references. Update all the
2643 version checks in the function to check for version 5 as well. Add new
2644 section at the end to create dwp hash table for version 5.
2645 (create_dwp_v2_section): Rename function to
2646 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2647 Add V5 to error message text.
2648 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2649 into calls to create_dwp_v2_or_v5_section.
2650 (create_dwo_unit_in_dwp_v5): New function.
2651 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2652 check for version2; add else clause to handle version 5.
2653 (open_and_init_dwo_file): Add code to check dwarf version & only call
2654 create_debug_types_hash_table (with sections.types) if version is not 5;
2655 else call create_debug_type_hash_table, with sections.info.
2656 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2657 version 5.
2658 (dwarf2_locate_v5_dwp_sections): New function.
2659 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2660 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2661
159ed7d9
SM
26622020-08-06 Simon Marchi <simon.marchi@efficios.com>
2663
2664 * regcache.h (class regcache): Remove friend
2665 registers_changed_ptid.
2666 <regcache_thread_ptid_changed>: Remove.
2667 <regcaches>: Remove.
2668 * regcache.c (regcache::regcaches): Rename to...
2669 (regcaches): ... this. Make static.
2670 (get_thread_arch_aspace_regcache): Update.
2671 (regcache::regcache_thread_ptid_changed): Rename to...
2672 (regcache_thread_ptid_changed): ... this. Update.
2673 (class regcache_access): Remove.
2674 (regcaches_test): Update.
2675 (_initialize_regcache): Update.
2676 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2677 <forward_list>.
2678
174981ae
SM
26792020-08-06 Simon Marchi <simon.marchi@efficios.com>
2680
2681 * regcache.h (class regcache) <current_regcache>: Rename to...
2682 <regcaches>: ... this. Move doc here.
2683 * regcache.c (regcache::current_regcache) Rename to...
2684 (regcache::regcaches): ... this. Move doc to header.
2685 (get_thread_arch_aspace_regcache): Update.
2686 (regcache::regcache_thread_ptid_changed): Update.
2687 (registers_changed_ptid): Update.
2688 (class regcache_access) <current_regcache_size>: Rename to...
2689 <regcaches_size>: ... this.
2690 (current_regcache_test): Rename to...
2691 (regcaches_test): ... this.
2692 (_initialize_regcache): Update.
2693
ed908db6
VC
26942020-08-06 Victor Collod <vcollod@nvidia.com>
2695
2696 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2697
b5582ab7
KB
26982020-08-05 Kevin Buettner <kevinb@redhat.com>
2699
2700 * corelow.c (core_target::build_file_mappings): Don't output
2701 null pathname in warning.
2702
ea946b86
SM
27032020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2704
2705 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2706 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2707 gdb.dwarf2/dw2-single-line-discriminators.exp,
2708 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2709
57d02173
TT
27102020-08-05 Tom Tromey <tromey@adacore.com>
2711
2712 PR rust/26197:
2713 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2714 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2715 Fix off-by-one and type size errors in ordinary case.
2716
5555c86d
TV
27172020-08-05 Tom de Vries <tdevries@suse.de>
2718
2719 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2720 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2721
97916bfe
SM
27222020-08-04 Simon Marchi <simon.marchi@efficios.com>
2723
2724 * frame.h (frame_id_p): Return bool.
2725 (frame_id_artificial_p): Return bool.
2726 (frame_id_eq): Return bool.
2727 (has_stack_frames): Return bool.
2728 (get_selected_frame): Fix typo in comment.
2729 (get_frame_pc_if_available): Return bool.
2730 (get_frame_address_in_block_if_available): Return bool.
2731 (get_frame_func_if_available): Return bool.
2732 (read_frame_register_unsigned): Return bool.
2733 (get_frame_register_bytes): Return bool.
2734 (safe_frame_unwind_memory): Return bool.
2735 (deprecated_frame_register_read): Return bool.
2736 (frame_unwinder_is): Return bool.
2737 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2738 bool.
2739 <this_id::p>: Likewise.
2740 <prev_p>: Likewise.
2741 (frame_stash_add): Return bool.
2742 (get_frame_id): Use bool.
2743 (frame_id_build_special) Use bool.
2744 (frame_id_build_unavailable_stack): Use bool.
2745 (frame_id_build): Use bool.
2746 (frame_id_p): Return bool, use true/false instead of 1/0.
2747 (frame_id_artificial_p): Likewise.
2748 (frame_id_eq): Likewise.
2749 (frame_id_inner): Likewise.
2750 (get_frame_func_if_available): Likewise.
2751 (read_frame_register_unsigned): Likewise.
2752 (deprecated_frame_register_read): Likewise.
2753 (get_frame_register_bytes): Likewise.
2754 (has_stack_frames): Likewise.
2755 (inside_main_func): Likewise.
2756 (inside_entry_func): Likewise.
2757 (get_frame_pc_if_available): Likewise.
2758 (get_frame_address_in_block_if_available): Likewise.
2759 (frame_unwinder_is): Likewise.
2760 (safe_frame_unwind_memory): Likewise.
2761 (frame_unwind_arch): Likewise.
2762
fedfee88
SM
27632020-08-04 Simon Marchi <simon.marchi@efficios.com>
2764
2765 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2766 type to cached_copy_status.
2767 (fprintf_frame): Adjust.
2768 (get_frame_func_if_available): Adjust.
2769 (frame_cleanup_after_sniffer): Adjust.
2770
6cfa9b59
MW
27712020-08-04 Mark Wielaard <mark@klomp.org>
2772
2773 * MAINTAINERS (Write After Approval): Update email address.
2774
66d6346b
SM
27752020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2776
2777 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2778 dynamic_prop::const_val.
2779
8a6d5e35
SM
27802020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2781
2782 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2783 dynamic_prop::kind.
2784
51d6067d
SM
27852020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2786
2787 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2788
b26e2ae7
JM
27892020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2790
2791 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2792
39791af2
JM
27932020-08-04 Weimin Pan <weimin.pan@oracle.com>
2794 Jose E. Marchesi <jose.marchesi@oracle.com>
2795
2796 * configure.tgt: Add entry for bpf-*-*.
2797 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2798 (ALLDEPFILES): Add bpf-tdep.c.
2799 * bpf-tdep.c: New file.
2800 * MAINTAINERS: Add bpf target and maintainer.
2801 * NEWS: Mention the support for the new target.
2802
521894aa
TV
28032020-08-04 Tom de Vries <tdevries@suse.de>
2804
2805 PR symtab/23270
2806 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2807 Error.
2808
5d6356e9
JB
28092020-08-03 John Baldwin <jhb@FreeBSD.org>
2810
2811 * syscalls/freebsd.xml: Regenerate.
2812
0cf82b81
JB
28132020-08-03 John Baldwin <jhb@FreeBSD.org>
2814
2815 * syscalls/update-freebsd.sh: Fix usage and year range.
2816
8f34b746
TV
28172020-08-03 Tom de Vries <tdevries@suse.de>
2818
2819 PR symtab/26333
2820 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2821 DW_LNE_lo_user/DW_LNE_hi_user range.
2822
5e500d33
SM
28232020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2824
2825 PR ada/26318
2826 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2827 kind.
2828
78319c15
TBA
28292020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2830
2831 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2832
4c55e970
TBA
28332020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2834
2835 * breakpoint.c (set_breakpoint_condition): Update the condition
2836 expressions after checking that the input condition string parses
2837 successfully and does not contain junk at the end.
2838
1e620590
TBA
28392020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2840
2841 * breakpoint.c (set_breakpoint_condition): Update the
2842 condition string after parsing the new condition successfully.
2843
c8693053
RO
28442020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2845
2846 * proc-api.c (_STRUCTURED_PROC): Don't define.
2847 * proc-events.c: Likewise.
2848 * proc-flags.c: Likewise.
2849 * proc-why.c: Likewise.
2850 * procfs.c: Likewise.
2851
2852 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2853 * configure, config.in: Regenerate.
2854
5a99adb8
TV
28552020-07-30 Tom de Vries <tdevries@suse.de>
2856
2857 PR build/26320
2858 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2859 m_red/m_green/m_blue in a union.
2860
8ba83e91
TV
28612020-07-29 Tom de Vries <tdevries@suse.de>
2862
2863 PR tdep/26280
2864 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2865
f75a0693
AB
28662020-07-28 Tom Tromey <tromey@adacore.com>
2867
2868 PR symtab/26270:
2869 * symtab.h (find_pc_partial_function_sym): Declare.
2870 * cli/cli-cmds.c (disassemble_command): Use
2871 find_pc_partial_function_sym. Check asm_demangle.
2872 * blockframe.c (cache_pc_function_sym): New global.
2873 (cache_pc_function_name): Remove.
2874 (clear_pc_function_cache): Update.
2875 (find_pc_partial_function_sym): New function, from
2876 find_pc_partial_function.
2877 (find_pc_partial_function): Rewrite using
2878 find_pc_partial_function_sym.
2879
16f3242c
TT
28802020-07-28 Tom Tromey <tromey@adacore.com>
2881
2882 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2883 help. Add usage.
2884
4888741a
TT
28852020-07-28 Tom Tromey <tromey@adacore.com>
2886
2887 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2888 <DW_OP_GNU_variable_value>: Cast to address type.
2889
4d46f402
KR
28902020-07-28 Kamil Rytarowski <n54@gmx.com>
2891
2892 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2893 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2894 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2895 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2896 (nbsd_get_siginfo_type): New.
2897 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2898 (_initialize_nbsd_tdep): New.
2899
d70f978b
L
29002020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2901
2902 PR binutils/26301
2903 * configure: Regenerated.
2904
377170fa
L
29052020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2906
2907 PR binutils/26301
2908 * configure: Regenerated.
2909
43d5901d
AB
29102020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2911
2912 * python/py-frame.c: Remove 'user-regs.h' include.
2913 (frapy_read_register): Rewrite to make use of
2914 gdbpy_parse_register_id.
2915 * python/py-registers.c (gdbpy_parse_register_id): New function,
2916 moved here from python/py-unwind.c. Updated the return type, and
2917 also accepts register descriptor objects.
2918 * python/py-unwind.c: Remove 'user-regs.h' include.
2919 (pyuw_parse_register_id): Moved to python/py-registers.c.
2920 (unwind_infopy_add_saved_register): Update to use
2921 gdbpy_parse_register_id.
2922 (pending_framepy_read_register): Likewise.
2923 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2924
14fa8fb3
AB
29252020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2926
2927 * python/py-registers.c: Add 'user-regs.h' include.
2928 (register_descriptor_iter_find): New function.
2929 (register_descriptor_iterator_object_methods): New static global
2930 methods array.
2931 (register_descriptor_iterator_object_type): Add pointer to methods
2932 array.
2933
ddce1758
JB
29342020-07-27 John Baldwin <jhb@FreeBSD.org>
2935
2936 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2937 for all architectures on FreeBSD 11.3 and later.
2938
a4089f52
TT
29392020-07-27 Tom Tromey <tromey@adacore.com>
2940
2941 * gcore.h (load_corefile): Don't declare.
2942
95420d30
TV
29432020-07-27 Tom de Vries <tdevries@suse.de>
2944
2945 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2946 * config.in: Regenerate.
2947 * configure: Regenerate.
2948
05a6b8c2
EZ
29492020-07-26 Eli Zaretskii <eliz@gnu.org>
2950
2951 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2952 ws2tcpip.h. When checking whether socklen_t type is defined, use
2953 ws2tcpip.h if it is available and sys/socket.h isn't.
2954 * configure: Regenerate.
2955 * config.in: Regenerate.
2956
e79eb02f
AB
29572020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2958
2959 PR fortran/23051
2960 PR fortran/26139
2961 * valops.c (value_ind): Pass address to
2962 readjust_indirect_value_type.
2963 * value.c (readjust_indirect_value_type): Make parameter
2964 non-const, and add extra address parameter. Resolve original type
2965 before using it.
2966 * value.h (readjust_indirect_value_type): Update function
2967 signature and comment.
2968
876518dd
TV
29692020-07-25 Tom de Vries <tdevries@suse.de>
2970
2971 PR symtab/26243
2972 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2973 entries.
2974
f6720b1c
AM
29752020-07-24 Aaron Merey <amerey@redhat.com>
2976
2977 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2978 * configure: Rebuild.
2979
513487e1
KB
29802020-07-23 Kevin Buettner <kevinb@redhat.com>
2981
2982 PR corefiles/26294
2983 * corelow.c (_initialize_corelow): Add period to help text
2984 for "maintenance print core-file-backed-mappings".
2985
e7bc9db8
PA
29862020-07-23 Pedro Alves <pedro@palves.net>
2987
2988 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2989 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2990 meanwhile.
2991 * frame.c (frame_cache_generation, get_frame_cache_generation):
2992 New.
2993 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2994 (get_prev_frame_if_no_cycle): On exception, don't touch
2995 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2996 * frame.h (get_frame_cache_generation): Declare.
2997
90fcc466
TV
29982020-07-23 Tom de Vries <tdevries@suse.de>
2999
3000 PR tui/26282
3001 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3002 New default constructor.
3003
78344df7
AB
30042020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3005
3006 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3007 exclude non-statement entries.
3008
b089853a
KB
30092020-07-22 Kevin Buettner <kevinb@redhat.com>
3010
3011 * NEWS (New commands): Mention new command
3012 "maintenance print core-file-backed-mappings".
3013
09c2f5d4
KB
30142020-07-22 Kevin Buettner <kevinb@redhat.com>
3015
3016 * corelow.c (gdbcmd.h): Include.
3017 (core_target::info_proc_mappings): New method.
3018 (get_current_core_target): New function.
3019 (maintenance_print_core_file_backed_mappings): New function.
3020 (_initialize_corelow): Add core-file-backed-mappings to
3021 "maint print" commands.
3022
9c5ec5c2 30232020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3024
9c5ec5c2
KB
3025 * linux-tdep.c (dump_note_entry_p): New function.
3026 (linux_dump_mapping_p_ftype): New typedef.
3027 (linux_find_memory_regions_full): Add new parameter,
3028 should_dump_mapping_p.
3029 (linux_find_memory_regions): Adjust call to
3030 linux_find_memory_regions_full.
3031 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3032 call to linux_find_memory_regions_full.
3033
db082f59
KB
30342020-07-22 Kevin Buettner <kevinb@redhat.com>
3035
3036 * corelow.c (solist.h, unordered_map): Include.
3037 (class core_target): Add field m_core_file_mappings and
3038 method build_file_mappings.
3039 (core_target::core_target): Call build_file_mappings.
3040 (core_target::~core_target): Free memory associated with
3041 m_core_file_mappings.
3042 (core_target::build_file_mappings): New method.
3043 (core_target::xfer_partial): Use m_core_file_mappings
3044 for memory transfers.
3045 * linux-tdep.c (linux_read_core_file_mappings): New
3046 function.
3047 (linux_core_info_proc_mappings): Rewrite to use
3048 linux_read_core_file_mappings.
3049 (linux_init_abi): Register linux_read_core_file_mappings.
3050
7e183d27
KB
30512020-07-22 Kevin Buettner <kevinb@redhat.com>
3052
3053 * arch-utils.c (default_read_core_file_mappings): New function.
3054 * arch-utils.c (default_read_core_file_mappings): Declare.
3055 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3056 * gdbarch.h, gdbarch.c: Regenerate.
3057
2735d421
KB
30582020-07-22 Kevin Buettner <kevinb@redhat.com>
3059
3060 PR corefiles/25631
3061 * corelow.c (core_target:xfer_partial): Revise
3062 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3063 case after first checking the stratum beneath the core
3064 target.
3065 (has_all_memory): Return true.
3066 * target.c (raw_memory_xfer_partial): Revise comment
3067 regarding use of has_all_memory.
3068
e56cb451
KB
30692020-07-22 Kevin Buettner <kevinb@redhat.com>
3070
3071 * exec.h (section_table_xfer_memory): Revise declaration,
3072 replacing section name parameter with an optional callback
3073 predicate.
3074 * exec.c (section_table_xfer_memory): Likewise.
3075 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3076 of section_table_xfer_memory.
3077
32fa152e
TT
30782020-07-22 Tom Tromey <tromey@adacore.com>
3079
3080 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3081 lookup_symbol_search_name.
3082
a67a1c41
AB
30832020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3084
3085 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3086 redundant local variable.
3087 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3088 reference, not pointer, update code accordingly.
3089
a7b4ff4f
SM
30902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3091 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3092
3093 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3094 * jit.c (jit_breakpoint_re_set_internal): Use the
3095 `skip_jit_symbol_lookup` field.
3096
2340e834
SM
30972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3098 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3099
3100 * jit.c (jit_read_descriptor): Define the descriptor address once,
3101 use twice.
3102 (jit_breakpoint_deleted): Move the declaration of the loop variable
3103 `iter` into the loop header.
3104 (jit_breakpoint_re_set_internal): Move the declaration of the local
3105 variable `objf_data` to the first point of definition.
3106 (jit_event_handler): Move the declaration of local variables
3107 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3108 Rename `objf` to `jited`.
3109
c1072906
SM
31102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3111
3112 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3113 Remove.
3114 * jit.c (get_jiter_objfile_data): Update.
3115
c8474dc3
TBA
31162020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3117 Simon Marchi <simon.marchi@polymtl.ca>
3118
3119 * jit.c (struct jit_program_space_data): Remove.
3120 (jit_program_space_key): Remove.
3121 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3122 stuff.
3123 (get_jit_program_space_data): Remove.
3124 (jit_breakpoint_deleted): Iterate on all of the program space's
3125 objfiles.
3126 (jit_inferior_init): Likewise.
3127 (jit_breakpoint_re_set_internal): Likewise. Also change return
3128 type to void.
3129 (jit_breakpoint_re_set): Pass current_program_space to
3130 jit_breakpoint_re_set_internal.
3131
77208eb7
SM
31322020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3133
3134 * jit.h (struct jiter_objfile_data) <cached_code_address,
3135 jit_breakpoint>: Move to here from ...
3136 * jit.c (jit_program_space_data): ... here.
3137 (jiter_objfile_data::~jiter_objfile_data): Update.
3138 (jit_breakpoint_deleted): Update.
3139 (jit_breakpoint_re_set_internal): Update.
3140
8c1c720f
SM
31412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3142
3143 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3144 checks.
3145 (jit_read_descriptor): Remove NULL check.
3146 (jit_event_handler): Add an assertion.
3147
0e74a041
SM
31482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3149
3150 * jit.h (struct jit_objfile_data): Split into...
3151 (struct jiter_objfile_data): ... this ...
3152 (struct jited_objfile_data): ... and this.
3153 * objfiles.h (struct objfile) <jit_data>: Remove.
3154 <jiter_data, jited_data>: New fields.
3155 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3156 (jiter_objfile_data::~jiter_objfile_data): ... this.
3157 (get_jit_objfile_data): Rename to ...
3158 (get_jiter_objfile_data): ... this.
3159 (add_objfile_entry): Update.
3160 (jit_read_descriptor): Use get_jiter_objfile_data.
3161 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3162 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3163 (jit_inferior_exit_hook): Use objfile's jited_data field.
3164
238b5c9f
SM
31652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3166
3167 * jit.h: Forward-declare `struct minimal_symbol`.
3168 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3169 constructor, destructor, and an objfile* field.
3170 * jit.c (jit_objfile_data): Remove.
3171 (struct jit_objfile_data): Migrate from here to jit.h.
3172 (jit_objfile_data::~jit_objfile_data): New destructor
3173 implementation with code moved from free_objfile_data.
3174 (free_objfile_data): Delete.
3175 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3176 (jit_find_objf_with_entry_addr): Ditto.
3177 (jit_inferior_exit_hook): Ditto.
3178 (_initialize_jit): Remove the call to
3179 register_objfile_data_with_cleanup.
3180 * objfiles.h (struct objfile) <jit_data>: New field.
3181
fe053b9e
TBA
31822020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3183
3184 * jit.h: Forward-declare `struct objfile`.
3185 (jit_event_handler): Add a second parameter, the JITer objfile.
3186 * jit.c (jit_read_descriptor): Change the signature to take the
3187 JITer objfile as an argument instead of the jit_program_space_data.
3188 (jit_inferior_init): Update the call to jit_read_descriptor.
3189 (jit_event_handler): Use the new JITer objfile argument when calling
3190 jit_read_descriptor.
3191 * breakpoint.c (handle_jit_event): Update the call to
3192 jit_event_handler to pass the JITer objfile.
3193
4cec0c66
JB
31942020-07-21 John Baldwin <jhb@FreeBSD.org>
3195
3196 * gdbarch.c: Regenerate.
3197 * gdbarch.h: Regenerate.
3198 * gdbarch.sh (handle_segmentation_fault): Remove method.
3199 * infrun.c (handle_segmentation_fault): Remove.
3200 (print_signal_received_reason): Remove call to
3201 handle_segmentation_fault.
3202
0e42f66a
JB
32032020-07-21 John Baldwin <jhb@FreeBSD.org>
3204
3205 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3206 Rename to sparc64_linux_report_signal_info and add siggnal
3207 argument.
3208 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3209 instead of sparc64_linux_handle_segmentation_fault.
3210
77bdfeb2
JB
32112020-07-21 John Baldwin <jhb@FreeBSD.org>
3212
3213 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3214 i386_linux_report_signal_info instead of
3215 i386_linux_handle_segmentation_fault.
3216 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3217 to i386_linux_report_signal_info and add siggnal argument.
3218 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3219 of i386_linux_handle_segmentation_fault.
3220 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3221 to i386_linux_report_signal_info and add siggnal argument.
3222
ad97bfc5
JB
32232020-07-21 John Baldwin <jhb@FreeBSD.org>
3224
3225 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3226 hook if present.
3227
272bb05c
JB
32282020-07-21 John Baldwin <jhb@FreeBSD.org>
3229
3230 * gdbarch.c: Regenerate.
3231 * gdbarch.h: Regenerate.
3232 * gdbarch.sh (report_signal_info): New method.
3233 * infrun.c (print_signal_received_reason): Invoke gdbarch
3234 report_signal_info hook if present.
3235
baf8791e
AB
32362020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3237
3238 * python/py-registers.c : Add 'unordered_map' include.
3239 (gdbpy_new_reggroup): Renamed to...
3240 (gdbpy_get_reggroup): ...this. Update to only create register
3241 group descriptors when needed.
3242 (gdbpy_reggroup_iter_next): Update.
3243
f7306dac
AB
32442020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3245
3246 * python/py-registers.c (gdbpy_register_object_data): New static
3247 global.
3248 (gdbpy_register_object_data_init): New function.
3249 (gdbpy_new_register_descriptor): Renamed to...
3250 (gdbpy_get_register_descriptor): ...this, and update to reuse
3251 existing register descriptors where possible.
3252 (gdbpy_register_descriptor_iter_next): Update.
3253 (gdbpy_initialize_registers): Register new gdbarch data.
3254
05c309a8
SM
32552020-07-21 Simon Marchi <simon.marchi@efficios.com>
3256
3257 * linux-nat.c (stopped_pids): Make static.
3258
d1fd641e
SM
32592020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3260
3261 PR ada/26235
3262 * gdbtypes.c (ada_discrete_type_low_bound,
3263 ada_discrete_type_high_bound): Handle undefined bounds.
3264
1de14d77
KR
32652020-07-21 Kamil Rytarowski <n54@gmx.com>
3266
3267 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3268 declaration.
3269 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3270 function.
3271
ed810cc7
JB
32722020-07-20 John Baldwin <jhb@FreeBSD.org>
3273
3274 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3275 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3276 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3277 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3278 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3279 method.
3280
ae5369e7
LC
32812020-07-20 Ludovic Courtès <ludo@gnu.org>
3282
3283 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3284 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3285 which are deprecated in Guile 3.0.
3286 * configure.ac (try_guile_versions): Add "guile-3.0".
3287 * configure (try_guile_versions): Regenerate.
3288 * NEWS: Update entry.
3289
68cf161c
LC
32902020-07-20 Ludovic Courtès <ludo@gnu.org>
3291 Doug Evans <dje@google.com>
3292
3293 PR gdb/21104
3294 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3295 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3296 USING_GUILE_BEFORE_2_2.
3297 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3298 Change type to 'scm_t_port_type *'.
3299 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3300 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3301 parameter and honor it. Update callers.
3302 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3303 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3304 functions.
3305 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3306 USING_GUILE_BEFORE_2_2.
3307 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3308 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3309 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3310 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3311 and 'SCM_PORT_TYPE'.
3312 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3313 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3314 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3315 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3316 [!USING_GUILE_BEFORE_2_2]: New functions.
3317 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3318 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3319 'gdbscm_memory_port_read'.
3320 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3321 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3322 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3323 function.
3324 (ioscm_init_memory_port): Remove.
3325 (ioscm_init_memory_port_stream): New function
3326 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3327 function.
3328 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3329 Return scm_from_uint (0).
3330 (gdbscm_set_memory_port_read_buffer_size_x)
3331 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3332 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3333 Return scm_from_uint (0).
3334 (gdbscm_set_memory_port_write_buffer_size_x)
3335 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3336 * configure.ac (try_guile_versions): Add "guile-2.2".
3337 * configure: Regenerate.
3338 * NEWS: Add entry.
3339
aee91db3
TT
33402020-07-18 Tom Tromey <tom@tromey.com>
3341
3342 * linux-nat.c (linux_multi_process): Remove.
3343 (linux_nat_target::supports_multi_process): Return true.
3344
0e267416
AB
33452020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3346
3347 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3348 (riscv_lookup_target_description): Return pointer out of
3349 unique_ptr.
3350 * target-descriptions.c (allocate_target_description): Add
3351 comment.
3352 (target_desc_deleter::operator()): Likewise.
3353 * target-descriptions.h (struct target_desc_deleter): Moved to
3354 gdbsupport/tdesc.h.
3355 (target_desc_up): Likewise.
3356
f80c8ec4
TT
33572020-07-17 Tom Tromey <tromey@adacore.com>
3358
3359 * linux-nat.c (linux_nat_target::supports_non_stop)
3360 (linux_nat_target::always_non_stop_p): Use "true".
3361 (linux_nat_target::supports_disable_randomization): Use "true" and
3362 "false".
3363
d0ce17d8
CT
33642020-07-16 Caroline Tice <cmtice@google.com>
3365
3366 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3367 (RNGLIST_HEADER_SIZE64): New constant definition.
3368 (struct dwop_section_names): Add rnglists_dwo.
3369 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3370 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3371 (struct dwo_sections): Add rnglists field.
3372 (read_attribut_reprocess): Add tag parameter.
3373 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3374 (cu_debug_rnglists_section): New function (decl & definition).
3375 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3376 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3377 die whose range is being checked; get rnglist section from
3378 cu_debug_rnglists_section, to get from either objfile or dwo file as
3379 appropriate. Add cases for DW_RLE_base_addressx,
3380 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3381 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3382 test inside if-condition and updating complaint message.
3383 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3384 dwarf2_rnglists_process.
3385 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3386 dwarf2_ranges_process.
3387 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3388 need_ranges_base and update comment appropriately. Also pass die tag
3389 to dwarf2_ranges_read.
3390 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3391 need_ranges_base and update comment appropriately. Also pass die tag
3392 to dwarf2_ranges_process.
3393 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3394 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3395 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3396 need_ranges_base and update comment appropriately. Also pass die tag
3397 to read_attribute_reprocess and dwarf2_ranges_read.
3398 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3399 and update function comment appropriately.
3400 (read_loclist_index): Call read_loclists_rnglists_header instead of
3401 read_loclist_header.
3402 (read_rnglist_index): New function.
3403 (read_attribute_reprocess): Add tag parameter. Add code for
3404 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3405 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3406
3dcc261c
AB
34072020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3408
3409 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3410 being resolved.
3411
ccb9eba6
AB
34122020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3413
3414 * arch-utils.c (show_architecture): Update formatting of messages.
3415
cf88be68
SM
34162020-07-12 Simon Marchi <simon.marchi@efficios.com>
3417
3418 * gdbtypes.h (struct type) <bounds>: Handle array and string
3419 types.
3420 * ada-lang.c (assign_aggregate): Use type::bounds on
3421 array/string type.
3422 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3423 * c-varobj.c (c_number_of_children): Likewise.
3424 (c_describe_child): Likewise.
3425 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3426 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3427 (f_type_print_base): Likewise.
3428 * f-valprint.c (f77_array_offset_tbl): Likewise.
3429 (f77_get_upperbound): Likewise.
3430 (f77_print_array_1): Likewise.
3431 * guile/scm-type.c (gdbscm_type_range): Likewise.
3432 * m2-typeprint.c (m2_array): Likewise.
3433 (m2_is_long_set_of_type): Likewise.
3434 * m2-valprint.c (get_long_set_bounds): Likewise.
3435 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3436 * python/py-type.c (typy_range): Likewise.
3437 * rust-lang.c (rust_internal_print_type): Likewise.
3438 * type-stack.c (type_stack::follow_types): Likewise.
3439 * valarith.c (value_subscripted_rvalue): Likewise.
3440 * valops.c (value_cast): Likewise.
3441
509971ae
SM
34422020-07-12 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3445 callers to use the equivalent accessor methods.
3446
107406b7
SM
34472020-07-12 Simon Marchi <simon.marchi@efficios.com>
3448
3449 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3450 (struct type) <bit_stride>: New method.
3451 (TYPE_BIT_STRIDE): Remove.
3452 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3453
bb789949
SM
34542020-07-12 Simon Marchi <simon.marchi@efficios.com>
3455
3456 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3457 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3458 callers to use the equivalent accessor methods instead.
3459
39498edb
SM
34602020-07-12 Simon Marchi <simon.marchi@efficios.com>
3461
3462 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3463 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3464 callers to use the equivalent accessor methods instead.
3465
3b606f38
SM
34662020-07-12 Simon Marchi <simon.marchi@efficios.com>
3467
3468 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3469 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3470 to use dynamic_prop::kind.
3471
064d9cb9
SM
34722020-07-12 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3475 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3476 to get the bound property's kind and check against
3477 PROP_UNDEFINED.
3478
5537ddd0
SM
34792020-07-12 Simon Marchi <simon.marchi@efficios.com>
3480
3481 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3482 all callers to use type::range_bounds followed by
3483 dynamic_prop::{low,high}.
3484
8c2e4e06
SM
34852020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3486
3487 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3488 const_val, set_const_val, baton, set_locexpr, set_loclist,
3489 set_addr_offset, variant_parts, set_variant_parts,
3490 original_type, set_original_type>: New methods.
3491 <kind>: Rename to...
3492 <m_kind>: ... this. Update all users to use the new methods
3493 instead.
3494 <data>: Rename to...
3495 <m_data>: ... this. Update all users to use the new methods
3496 instead.
3497
7c6f2712
SM
34982020-07-12 Simon Marchi <simon.marchi@efficios.com>
3499
3500 * gdbtypes.c (get_discrete_bounds): Return failure if
3501 the range type's bounds are not both defined and constant
3502 values.
3503 (get_array_bounds): Update comment. Remove undefined bound check.
3504
599088e3
SM
35052020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3506
3507 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3508 the type::bounds method directly.
3509
c4dfcb36
SM
35102020-07-12 Simon Marchi <simon.marchi@efficios.com>
3511
3512 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3513 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3514 are used to set the range type's bounds to use set_bounds.
3515
0a278aa7
PW
35162020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3517
3518 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3519
cce20f10
PA
35202020-07-10 Pedro Alves <pedro@palves.net>
3521
3522 * gdbthread.h (inferior_ref): Define.
3523 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3524 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3525 * thread.c
3526 (scoped_restore_current_thread::restore):
3527 Adjust to gdb::ref_ptr.
3528 (scoped_restore_current_thread::~scoped_restore_current_thread):
3529 Remove manual decref handling.
3530 (scoped_restore_current_thread::scoped_restore_current_thread):
3531 Adjust to use
3532 inferior_ref::new_reference/thread_info_ref::new_reference.
3533 Incref the thread before calling get_frame_id instead of after.
3534 Let TARGET_CLOSE_ERROR propagate.
3535
6d7aa592
PA
35362020-07-10 Pedro Alves <pedro@palves.net>
3537
3538 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3539 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3540 NOT_AVAILABLE_ERROR.
3541 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3542 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3543
b3e3a4c1
SM
35442020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3545 Pedro Alves <pedro@palves.net>
3546
3547 PR gdb/26199
3548 * infrun.c (threads_are_resumed_pending_p): Delete.
3549 (do_target_wait): Remove threads_are_executing and
3550 threads_are_resumed_pending_p checks from the inferior_matches
3551 lambda. Update comments.
3552
d6cc5d98
PA
35532020-07-10 Pedro Alves <pedro@palves.net>
3554
3555 PR gdb/26199
3556 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3557 executing threads.
3558
7d3badc6
PA
35592020-07-10 Pedro Alves <pedro@palves.net>
3560
3561 PR gdb/26199
3562 * infrun.c (handle_no_resumed): Handle multiple targets.
3563
42bd97a6
PA
35642020-07-10 Pedro Alves <pedro@palves.net>
3565
3566 PR gdb/26199
3567 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3568 target_is_async_p.
3569
43667cc6
PA
35702020-07-10 Pedro Alves <pedro@palves.net>
3571
3572 PR gdb/26199
3573 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3574 threads, not all threads.
3575
96118d11
PA
35762020-07-10 Pedro Alves <pedro@palves.net>
3577
3578 PR gdb/26199
3579 * remote.c (remote_target::open_1): Pass remote target pointer as
3580 data to create_async_event_handler.
3581 (remote_async_inferior_event_handler): Mark async event handler
3582 before returning if the remote target still has either pending
3583 events or unacknowledged notifications.
3584
54904d81
JB
35852020-07-10 John Baldwin <jhb@FreeBSD.org>
3586
3587 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3588 declaration.
3589 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3590 function.
3591
f37e5866
JB
35922020-07-09 John Baldwin <jhb@FreeBSD.org>
3593
3594 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3595 inferior_ptid.
3596
fc238d4a
JB
35972020-07-09 John Baldwin <jhb@FreeBSD.org>
3598
3599 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3600 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3601 AT_FREEBSD_PS_STRINGS.
3602
6e2469ff
HD
36032020-07-08 Hannes Domani <ssbssa@yahoo.de>
3604
3605 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3606 of debugfile path on Windows.
3607
d1076c41
JB
36082020-07-08 John Baldwin <jhb@FreeBSD.org>
3609
3610 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3611 argument to 'data'.
3612
15f3b077
TT
36132020-07-08 Tom Tromey <tromey@adacore.com>
3614
3615 * ada-lang.c (ada_exception_message_1): Use read_memory.
3616
9fc501fd
AB
36172020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3618
3619 PR python/22748
3620 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3621 special handling for inline frames.
3622 * findvar.c (value_of_register_lazy): Skip inline frames when
3623 creating lazy register values.
3624 * frame.c (frame_id_computed_p): Delete definition.
3625 * frame.h (frame_id_computed_p): Delete declaration.
3626
64cb3757
AB
36272020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3628
3629 * NEWS: Mention additions to Python API.
3630 * python/py-arch.c (archpy_register_groups): New function.
3631 (arch_object_methods): Add 'register_groups' method.
3632 * python/py-registers.c (reggroup_iterator_object): New struct.
3633 (reggroup_object): New struct.
3634 (gdbpy_new_reggroup): New function.
3635 (gdbpy_reggroup_to_string): New function.
3636 (gdbpy_reggroup_name): New function.
3637 (gdbpy_reggroup_iter): New function.
3638 (gdbpy_reggroup_iter_next): New function.
3639 (gdbpy_new_reggroup_iterator): New function
3640 (gdbpy_initialize_registers): Register new types.
3641 (reggroup_iterator_object_type): Define new Python type.
3642 (gdbpy_reggroup_getset): New static global.
3643 (reggroup_object_type): Define new Python type.
3644 * python/python-internal.h
3645
0f767f94
AB
36462020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3647
3648 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3649 * python/py-arch.c (archpy_registers): New function.
3650 (arch_object_methods): Add 'registers' method.
3651 * python/py-registers.c: New file.
3652 * python/python-internal.h
3653 (gdbpy_new_register_descriptor_iterator): Declare.
3654 (gdbpy_initialize_registers): Declare.
3655 * python/python.c (do_start_initialization): Call
3656 gdbpy_initialize_registers.
3657 * NEWS: Mention additions to the Python API.
3658
87dbc774
AB
36592020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3660
3661 * NEWS: Mention new Python API method.
3662 * python/py-unwind.c (pending_framepy_architecture): New function.
3663 (pending_frame_object_methods): Add architecture method.
3664
3bc98c0c
AB
36652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3666
3667 * gdbarch.c: Regenerate.
3668 * gdbarch.h: Regenerate.
3669 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3670 (gdbarch_data): Use internal_error for the case where
3671 deprecated_set_gdbarch_data was originally needed.
3672 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3673 and use passed in obstack.
3674 (libunwind_frame_set_descr): Should no longer get back NULL from
3675 gdbarch_data.
3676 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3677 type.
3678 * user-regs.c (user_regs_init): Update parameters, and use passed
3679 in obstack.
3680 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3681 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3682
d8cc8af6
TV
36832020-07-06 Tom de Vries <tdevries@suse.de>
3684
3685 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3686 End-Of-Sequence in lte_is_less_than.
3687 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3688 "gdb: Don't reorder line table entries too much when sorting".
3689
947f7597
TV
36902020-07-06 Tom de Vries <tdevries@suse.de>
3691
3692 PR tui/26205
3693 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3694
1e7c1b22
TV
36952020-07-05 Tom de Vries <tdevries@suse.de>
3696
3697 PR build/26187
3698 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3699 std::uncaught_exceptions instead of deprecated
3700 std::uncaught_exception.
3701
a36158ec
SM
37022020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3703
3704 * macroexp.h (macro_stringify): Return
3705 gdb::unique_xmalloc_ptr<char>.
3706 * macroexp.c (macro_stringify): Likewise.
3707 * macrotab.c (fixup_definition): Update.
3708
14d960c8
SM
37092020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3710
3711 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3712 (lex_one_token): Update.
3713 * macroexp.c (struct macro_buffer) <release>: Return
3714 gdb::unique_xmalloc_ptr<char>.
3715 (macro_stringify): Update.
3716 (macro_expand): Update.
3717 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3718 * macroexp.h (macro_expand_next): Likewise.
3719
211d5b1c
SM
37202020-07-02 Simon Marchi <simon.marchi@efficios.com>
3721
3722 * macroexp.h (macro_lookup_ftype): Remove.
3723 (macro_expand, macro_expand_once, macro_expand_next): Remove
3724 lookup function parameters, add scope parameter.
3725 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3726 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3727 * macroscope.h (standard_macro_lookup): Change parameter type
3728 to macro_scope.
3729 * macroscope.c (standard_macro_lookup): Likewise.
3730 * c-exp.y (lex_one_token): Update.
3731 * macrocmd.c (macro_expand_command): Likewise.
3732 (macro_expand_once_command): Likewise.
3733
b1a35af2
SM
37342020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3735
3736 * inf-loop.c (inferior_event_handler): Remove client_data param.
3737 * inf-loop.h (inferior_event_handler): Likewise.
3738 * infcmd.c (step_1): Adjust.
3739 * infrun.c (proceed): Adjust.
3740 (fetch_inferior_event): Remove client_data param.
3741 (infrun_async_inferior_event_handler): Adjust.
3742 * infrun.h (fetch_inferior_event): Remove `void *` param.
3743 * linux-nat.c (handle_target_event): Adjust.
3744 * record-btrace.c (record_btrace_handle_async_inferior_event):
3745 Adjust.
3746 * record-full.c (record_full_async_inferior_event_handler):
3747 Adjust.
3748 * remote.c (remote_async_inferior_event_handler): Adjust.
3749
1cdf9e33
TT
37502020-07-01 Tom Tromey <tom@tromey.com>
3751
3752 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3753 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3754
32c1e210
TT
37552020-07-01 Tom Tromey <tom@tromey.com>
3756
3757 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3758 tui_gen_win_info.
3759 (tui_win_info::make_window): Merge with
3760 tui_gen_win_info::make_window.
3761 (tui_win_info::make_visible): Move from tui_gen_win_info.
3762 * tui/tui-win.c (tui_win_info::max_width): Move from
3763 tui_gen_win_info.
3764 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3765 type.
3766 <window_factory>: Likewise.
3767 * tui/tui-layout.c (tui_win_info::resize): Move from
3768 tui_gen_win_info.
3769 (make_standard_window): Change return type.
3770 (get_locator_window, tui_get_window_by_name): Likewise.
3771 (tui_layout_window::apply): Remove a cast.
3772 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3773 (struct tui_win_info): Merge with tui_gen_win_info.
3774 (struct tui_gen_win_info): Remove.
3775
a30cb6da
TT
37762020-07-01 Tom Tromey <tom@tromey.com>
3777
3778 * tui/tui-stack.h (struct tui_locator_window): Derive from
3779 tui_win_info.
3780 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3781 <can_box>: New method.
3782
1eb2161f
TT
37832020-07-01 Tom Tromey <tom@tromey.com>
3784
3785 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3786
7134f2eb
TT
37872020-07-01 Tom Tromey <tom@tromey.com>
3788
3789 * tui/tui-regs.c (tui_data_window::display_registers_from)
3790 (tui_data_window::display_registers_from)
3791 (tui_data_window::first_data_item_displayed)
3792 (tui_data_window::delete_data_content_windows): Update.
3793 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3794 Remove.
3795 (tui_data_window::check_register_values): Update.
3796 (tui_data_item_window::rerender): Add parameters. Update.
3797 (tui_data_item_window::refresh_window): Remove.
3798 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3799 virtual.
3800 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3801 tui_gen_win_info.
3802 <refresh_window, max_height, min_height>: Remove.
3803 <rerender>: Add parameters.
3804 <x, y, visible>: New members.
3805 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3806 <m_item_width>: New member.
3807
22b7b041
TT
38082020-07-01 Tom Tromey <tom@tromey.com>
3809
3810 * tui/tui-regs.c (tui_data_window::show_register_group)
3811 (tui_data_window::check_register_values): Update.
3812 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3813 from item_no.
3814
c9753adb
TT
38152020-07-01 Tom Tromey <tom@tromey.com>
3816
3817 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3818 useless "if".
3819
9ab26b4a
TT
38202020-07-01 Tom Tromey <tom@tromey.com>
3821
3822 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3823 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3824
e555083f
TT
38252020-07-01 Tom Tromey <tom@tromey.com>
3826
3827 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3828 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3829 (struct tui_line_or_address): Move from tui-data.h.
3830 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3831 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3832 (tui_cmd_window, tui_source_window_base, tui_source_window)
3833 (tui_disasm_window): Don't declare.
3834 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3835 to tui-winsource.h.
3836 (SINGLE_KEY): Move to tui-stack.c.
3837
7a02bab7
TT
38382020-07-01 Tom Tromey <tom@tromey.com>
3839
3840 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3841 std::string.
3842 * tui/tui-regs.c (class tab_expansion_file): New.
3843 (tab_expansion_file::write): New method.
3844 (tui_register_format): Change return type. Use
3845 tab_expansion_file.
3846 (tui_get_register, tui_data_window::display_registers_from)
3847 (tui_data_item_window::rerender): Update.
3848 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3849 * tui/tui-io.c (tui_expand_tabs): Remove.
3850
ea68593b
TT
38512020-07-01 Tom Tromey <tom@tromey.com>
3852
3853 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3854
a8caed5d
FS
38552020-07-01 Fangrui Song <maskray@google.com>
3856
3857 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3858
9cdf9820
AKS
38592020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3860
3861 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3862 forms for DW_AT_associated and DW_AT_allocated attributes,
3863 which is already checked in function attr_to_dynamic_prop.
3864
a1520ad8
TT
38652020-06-30 Tom Tromey <tromey@adacore.com>
3866
3867 * dwarf2/read.c (quirk_rust_enum): Correctly call
3868 alloc_rust_variant for default-less enum.
3869
5ac58899
TT
38702020-06-30 Tom Tromey <tromey@adacore.com>
3871
3872 PR build/26183:
3873 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3874 gdb::to_string.
3875
19b187a9
SM
38762020-06-29 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3879 * gdbarch.h: Re-generate.
3880
cd4c4c07
TT
38812020-06-28 Tom Tromey <tom@tromey.com>
3882
3883 * command.h (cmd_types): Remove.
3884 (cmd_type): Don't declare.
3885 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3886 typedef.
3887 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3888 * cli/cli-decode.c (cmd_type): Remove.
3889
05779d57
PA
38902020-06-27 Pedro Alves <palves@redhat.com>
3891
3892 * fork-child.c (prefork_hook): Adjust.
3893 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3894 Delete.
3895 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3896 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3897 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3898 Remove declarations.
3899 (struct inferior) <set_tty, tty>: New methods.
3900 (struct inferior) <terminal>: Rename to ...
3901 (struct inferior) <m_terminal>: ... this and make private.
3902 * main.c (captured_main_1): Adjust.
3903 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3904 (mi_cmd_inferior_tty_show): Adjust.
3905 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3906 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3907
1776e3e5
NA
39082020-06-26 Nick Alcock <nick.alcock@oracle.com>
3909
3910 * configure.ac: Add --enable-libctf: handle --disable-static
3911 properly.
3912 * acinclude.m4: sinclude ../config/enable.m4.
3913 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3914 (LIBCTF): Substitute in.
3915 (CTF_DEPS): New, likewise.
3916 (CLIBS): libctf needs symbols from libbfd: move earlier.
3917 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3918 flags.
3919 * ctfread.c: Surround in ENABLE_LIBCTF.
3920 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3921 * configure: Regenerate.
3922 * config.in: Likewise.
3923
58373b80
SM
39242020-06-25 Simon Marchi <simon.marchi@efficios.com>
3925
3926 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3927
277474ee
SM
39282020-06-25 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * inferior.h (struct inferior) <terminal>: Change type to
3931 gdb::unique_xmalloc_ptr<char>.
3932 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3933 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3934 field, adjust to unique pointer.
3935 (get_inferior_io_terminal): Adjust to unique pointer.
3936
6d74da72
AB
39372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3938
3939 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3940 registers, not just the known core set of registers.
3941
2e52d038
AB
39422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3943
3944 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3945 fflags, frm, and fcsr registers.
3946 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3947 restore groups.
3948 (riscv_tdesc_unknown_reg): New function.
3949 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3950 tdesc_use_registers.
3951 * riscv-tdep.h (struct gdbarch_tdep): Add
3952 unknown_csrs_first_regnum, unknown_csrs_count,
3953 duplicate_fflags_regnum, duplicate_frm_regnum, and
3954 duplicate_fcsr_regnum fields.
3955
be64fd07
AB
39562020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3957
3958 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3959 callback, use the callback (when not null) to help number unknown
3960 registers.
3961 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3962 (tdesc_use_registers): Add extra parameter to declaration.
3963
3b9fce96
AB
39642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3965
3966 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3967 in the file.
3968 (class riscv_pending_register_alias): Likewise.
3969 (riscv_register_feature::register_info): Change 'required_p' field
3970 to 'required', and change its type. Add 'check' member function.
3971 (riscv_register_feature::register_info::check): Define new member
3972 function.
3973 (riscv_xreg_feature): Change initialisation of 'required' field.
3974 (riscv_freg_feature): Likewise.
3975 (riscv_virtual_feature): Likewise.
3976 (riscv_csr_feature): Likewise.
3977 (riscv_check_tdesc_feature): Take extra parameter, the csr
3978 tdesc_feature, rewrite the function to use the new
3979 riscv_register_feature::register_info::check function.
3980 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3981
865bad26
AB
39822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * features/Makefile: Remove all references to the deleted files
3985 below.
3986 * features/riscv/32bit-csr.c: Deleted.
3987 * features/riscv/32bit-csr.xml: Deleted.
3988 * features/riscv/64bit-csr.c: Deleted.
3989 * features/riscv/64bit-csr.xml: Deleted.
3990 * features/riscv/rebuild-csr-xml.sh: Deleted.
3991
ed69cbc8
AB
39922020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3993
3994 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3995 whitespace error for declaration of names member variable.
3996 (struct riscv_register_feature): Add new prefer_first_name member
3997 variable, and fix whitespace error in declaration of registers.
3998 (riscv_xreg_feature): Initialize prefer_first_name field.
3999 (riscv_freg_feature): Likewise.
4000 (riscv_virtual_feature): Likewise.
4001 (riscv_csr_feature): Likewise.
4002 (riscv_register_name): Expand on comments. Remove register name
4003 modifications for CSR and virtual registers.
4004
4445e8f5
AB
40052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4006
4007 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4008 errors.
4009
767a879e
AB
40102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4011
4012 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4013 riscv-opc.h.
4014 (class riscv_pending_register_alias): New class.
4015 (riscv_check_tdesc_feature): Take vector of pending aliases and
4016 populate it as appropriate.
4017 (riscv_setup_register_aliases): Delete.
4018 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4019 to riscv_check_tdesc_feature in all cases. Use the vector to
4020 create the register aliases.
4021
bb6e55f3
RO
40222020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4023
4024 * sol2-tdep.c (sol2_static_transform_name): Remove.
4025 (sol2_init_abi): Don't register it.
4026 * gdbarch.sh (static_transform_name): Remove.
4027 * gdbarch.c, gdbarch.h: Regenerate.
4028
4029 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4030 gdbarch_static_transform_name.
4031 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4032 * stabsread.c (define_symbol) <'X'>: Remove.
4033 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4034 handling.
4035 <'V'>: Likewise.
4036 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4037 <'S'>: Remove call to gdbarch_static_transform_name.
4038
c6d36836
RO
40392020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4040
4041 * procfs.c (procfs_pre_trace): New function.
4042 (procfs_target::create_inferior): Pass it to fork_inferior.
4043
a7e6196b
RO
40442020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4045
4046 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4047 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4048 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4049 sol2-tdep.o, sparc-sol2-tdep.o.
4050 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4051 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4052 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4053 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4054
d412e696
RO
40552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4056
4057 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4058 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4059 Call sol2_init_abi.
4060 Remove calls to set_gdbarch_skip_solib_resolver,
4061 set_gdbarch_core_pid_to_str.
4062 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4063 (i386_sol2_static_transform_name): Remove.
4064 (i386_sol2_init_abi): Call sol2_init_abi.
4065 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4066 set_gdbarch_static_transform_name,
4067 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4068 Use sol2_sigtramp_p.
4069 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4070 (sol2_sigtramp_p): New function.
4071 (sol2_static_transform_name): New function.
4072 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4073 (sol2_init_abi): New function.
4074 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4075 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4076 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4077 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4078 (sparc_sol2_static_transform_name): Remove.
4079 (sparc32_sol2_init_abi): Call sol2_init_abi.
4080 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4081 set_gdbarch_static_transform_name,
4082 set_gdbarch_skip_solib_resolver,
4083 set_gdbarch_core_pid_to_str.
4084 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4085 (sparc_sol2_static_transform_name): Remove
4086 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4087 call sol2_sigtramp_p.
4088 (sparc64_sol2_init_abi): Call sol2_init_abi.
4089 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4090 set_gdbarch_static_transform_name,
4091 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4092
a8654e7d
PW
40932020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4094
4095 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4096 * exec.c (validate_exec_file): If from_tty, set both
4097 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4098 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4099 and from_tty, unconditionally ask a confirmation.
4100
caa7fd04
AB
41012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4102
4103 * target-descriptions.c (tdesc_architecture_name): Protect against
4104 NULL pointer dereference.
4105 (maint_print_xml_tdesc_cmd): New function.
4106 (_initialize_target_descriptions): Register new 'maint print
4107 xml-tdesc' command and give it the filename completer.
4108 * NEWS: Mention new 'maint print xml-tdesc' command.
4109
fbf42f4e
AB
41102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4111
4112 * target-descriptions.c (class tdesc_compatible_info): New class.
4113 (struct target_desc): Change type of compatible vector.
4114 (tdesc_compatible_p): Update for change in type of
4115 target_desc::compatible.
4116 (tdesc_compatible_info_list): New function.
4117 (tdesc_compatible_info_arch_name): New function.
4118 (tdesc_add_compatible): Update for change in type of
4119 target_desc::compatible.
4120 (print_c_tdesc::visit_pre): Likewise.
4121
20821f4e
AB
41222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4125 whitespace to underscore.
4126 (maint_print_c_tdesc_cmd): Use fake filename for target
4127 descriptions that came from the target.
4128 (_initialize_target_descriptions): Add filename command completion
4129 for 'maint print c-tdesc'.
4130
1fb5ee62
SM
41312020-06-23 Simon Marchi <simon.marchi@efficios.com>
4132
4133 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4134 lines.
4135
fc3ecb3e
SM
41362020-06-23 Simon Marchi <simon.marchi@efficios.com>
4137
4138 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4139 lines.
4140 (dwarf2_find_location_expression): Likewise.
4141 (call_site_parameter_matches): Likewise.
4142 (dwarf2_compile_expr_to_ax): Likewise.
4143 (disassemble_dwarf_expression): Likewise.
4144 (loclist_describe_location): Likewise.
4145
236ef034
PA
41462020-06-23 Pedro Alves <palves@redhat.com>
4147
4148 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4149 progspace-and-thread.h. Include scoped-mock-context.h instead.
4150 (register_to_value_test): Use scoped_mock_context.
4151 * regcache.c: Include "scoped-mock-context.h".
4152 (cooked_read_test): Don't error out if a target is already pushed.
4153 Use scoped_mock_context. Adjust.
4154 * scoped-mock-context.h: New file.
4155
39e7ecca
AB
41562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4157
4158 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4159 initializer.
4160 (ada_language::is_string_type_p): New member function.
4161 * c-lang.c (c_language_data): Delete la_is_string_type_p
4162 initializer.
4163 (cplus_language_data): Likewise.
4164 (asm_language_data): Likewise.
4165 (minimal_language_data): Likewise.
4166 * d-lang.c (d_language_data): Likewise.
4167 * f-lang.c (f_is_string_type_p): Delete function, implementation
4168 moved to f_language::is_string_type_p.
4169 (f_language_data): Delete la_is_string_type_p initializer.
4170 (f_language::is_string_type_p): New member function,
4171 implementation from f_is_string_type_p.
4172 * go-lang.c (go_is_string_type_p): Delete function, implementation
4173 moved to go_language::is_string_type_p.
4174 (go_language_data): Delete la_is_string_type_p initializer.
4175 (go_language::is_string_type_p): New member function,
4176 implementation from go_is_string_type_p.
4177 * language.c (language_defn::is_string_type_p): Define new member
4178 function.
4179 (default_is_string_type_p): Make static, add comment copied from
4180 header file.
4181 (unknown_language_data): Delete la_is_string_type_p initializer.
4182 (unknown_language::is_string_type_p): New member function.
4183 (auto_language_data): Delete la_is_string_type_p initializer.
4184 (auto_language::is_string_type_p): New member function.
4185 * language.h (language_data): Delete la_is_string_type_p field.
4186 (language_defn::is_string_type_p): Declare new function.
4187 (default_is_string_type_p): Delete desclaration, move comment to
4188 definition.
4189 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4190 moved to m2_language::is_string_type_p.
4191 (m2_language_data): Delete la_is_string_type_p initializer.
4192 (m2_language::is_string_type_p): New member function,
4193 implementation from m2_is_string_type_p.
4194 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4195 initializer.
4196 * opencl-lang.c (opencl_language_data): Likewise.
4197 * p-lang.c (pascal_is_string_type_p): Delete function,
4198 implementation moved to pascal_language::is_string_type_p.
4199 (pascal_language_data): Delete la_is_string_type_p initializer.
4200 (pascal_language::is_string_type_p): New member function,
4201 implementation from pascal_is_string_type_p.
4202 * rust-lang.c (rust_is_string_type_p): Delete function,
4203 implementation moved to rust_language::is_string_type_p.
4204 (rust_language_data): Delete la_is_string_type_p initializer.
4205 (rust_language::is_string_type_p): New member function,
4206 implementation from rust_is_string_type_p.
4207 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4208 is_string_type_p.
4209
4ffc13fb
AB
42102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4211
4212 * ada-lang.c (ada_language_data): Delete la_print_typedef
4213 initializer.
4214 (ada_language::print_typedef): New member function.
4215 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4216 (cplus_language_data): Likewise.
4217 (asm_language_data): Likewise.
4218 (minimal_language_data): Likewise.
4219 * d-lang.c (d_language_data): Likewise.
4220 * f-lang.c (f_language_data): Likewise.
4221 (f_language::print_typedef): New member function.
4222 * go-lang.c (go_language_data): Delete la_print_typedef
4223 initializer.
4224 * language.c (language_defn::print_typedef): Define member
4225 function.
4226 (unknown_language_data): Delete la_print_typedef initializer.
4227 (unknown_language::print_typedef): New member function.
4228 (auto_language_data): Delete la_print_typedef initializer.
4229 (auto_language::print_typedef): New member function.
4230 * language.h (language_data): Delete la_print_typedef field.
4231 (language_defn::print_typedef): Declare new member function.
4232 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4233 (default_print_typedef): Delete declaration.
4234 * m2-lang.c (m2_language_data): Delete la_print_typedef
4235 initializer.
4236 (m2_language::print_typedef): New member function.
4237 * objc-lang.c (objc_language_data): Delete la_print_typedef
4238 initializer.
4239 * opencl-lang.c (opencl_language_data): Likewise.
4240 * p-lang.c (pascal_language_data): Likewise.
4241 (pascal_language::print_typedef): New member function.
4242 * rust-lang.c (rust_print_typedef): Delete function,
4243 implementation moved to rust_language::print_typedef.
4244 (rust_language): Delete la_print_typedef initializer.
4245 (rust_language::print_typedef): New member function,
4246 implementation from rust_print_typedef.
4247 * typeprint.c (default_print_typedef): Delete.
4248
d711ee67
AB
42492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4250
4251 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4252 (ada_language::printstr): New member function.
4253 * c-lang.c (c_language_data): Delete la_printstr initializer.
4254 (cplus_language_data): Likewise.
4255 (asm_language_data): Likewise.
4256 (minimal_language_data): Likewise.
4257 * d-lang.c (d_language_data): Likewise.
4258 * f-lang.c (f_printstr): Rename to f_language::printstr.
4259 (f_language_data): Delete la_printstr initializer.
4260 (f_language::printstr): New member function, implementation from
4261 f_printstr.
4262 * go-lang.c (go_language_data): Delete la_printstr initializer.
4263 * language.c (language_defn::printstr): Define new member
4264 function.
4265 (unk_lang_printstr): Delete.
4266 (unknown_language_data): Delete la_printstr initializer.
4267 (unknown_language::printstr): New member function.
4268 (auto_language_data): Delete la_printstr initializer.
4269 (auto_language::printstr): New member function.
4270 * language.h (language_data): Delete la_printstr field.
4271 (language_defn::printstr): Declare new member function.
4272 (LA_PRINT_STRING): Update call to printstr.
4273 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4274 (m2_language_data): Delete la_printstr initializer.
4275 (m2_language::printstr): New member function, implementation from
4276 m2_printstr.
4277 * objc-lang.c (objc_language_data): Delete la_printstr
4278 initializer.
4279 * opencl-lang.c (opencl_language_data): Likewise.
4280 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4281 (pascal_language_data): Delete la_printstr initializer.
4282 (pascal_language::printstr): New member function, implementation
4283 from pascal_printstr.
4284 * p-lang.h (pascal_printstr): Delete declaration.
4285 * rust-lang.c (rust_printstr): Update header comment.
4286 (rust_language_data): Delete la_printstr initializer.
4287 (rust_language::printstr): New member function.
4288
52b50f2c
AB
42892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4290
4291 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4292 (ada_language::printchar): New member function.
4293 * c-lang.c (c_language_data): Delete la_printchar initializer.
4294 (cplus_language_data): Likewise.
4295 (asm_language_data): Likewise.
4296 (minimal_language_data): Likewise.
4297 * d-lang.c (d_language_data): Likewise.
4298 * f-lang.c (f_printchar): Rename to f_language::printchar.
4299 (f_language_data): Delete la_printchar initializer.
4300 (f_language::printchar): New member function, implementation from
4301 f_printchar.
4302 * go-lang.c (go_language_data): Delete la_printchar initializer.
4303 * language.c (unk_lang_printchar): Delete.
4304 (language_defn::printchar): Define new member function.
4305 (unknown_language_data): Delete la_printchar initializer.
4306 (unknown_language::printchar): New member function.
4307 (auto_language_data): Delete la_printchar initializer.
4308 (auto_language::printchar): New member function.
4309 * language.h (language_data): Delete la_printchar field.
4310 (language_defn::printchar): Declare new member function.
4311 (LA_PRINT_CHAR): Update call to printchar.
4312 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4313 (m2_language::printchar): New member function.
4314 * objc-lang.c (objc_language_data): Delete la_printchar
4315 initializer.
4316 * opencl-lang.c (opencl_language_data): Likewise.
4317 * p-lang.c (pascal_language_data): Delete la_printchar
4318 initializer.
4319 (pascal_language::printchar): New member function.
4320 * rust-lang.c (rust_printchar): Rename to
4321 rust_language::printchar.
4322 (rust_language_data): Delete la_printchar initializer.
4323 (rust_language::printchar): New member function, implementation
4324 from rust_printchar.
4325
ec8cec5b
AB
43262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4327
4328 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4329 (ada_language_data): Delete la_emitchar initializer.
4330 (ada_language::emitchar): New member function, implementation from
4331 emit_char.
4332 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4333 (cplus_language_data): Likewise.
4334 (asm_language_data): Likewise.
4335 (minimal_language_data): Likewise.
4336 * d-lang.c (d_language_data): Likewise.
4337 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4338 (f_language_data): Delete la_emitchar initializer.
4339 (f_language::emitchar): New member function, implementation from
4340 f_emit_char.
4341 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4342 * language.c (unk_lang_emit_char): Delete.
4343 (language_defn::emitchar): New member function definition.
4344 (unknown_language_data): Delete la_emitchar initializer.
4345 (unknown_language::emitchar): New member function.
4346 (auto_language_data): Delete la_emitchar initializer.
4347 (auto_language::emitchar): New member function.
4348 * language.h (language_data): Delete la_emitchar field.
4349 (language_defn::emitchar): New member field declaration.
4350 (LA_EMIT_CHAR): Update call to emitchar.
4351 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4352 (m2_language_data): Delete la_emitchar initializer.
4353 (m2_language::emitchar): New member function, implementation from
4354 m2_emit_char.
4355 * objc-lang.c (objc_language_data): Delete la_emitchar
4356 initializer.
4357 * opencl-lang.c (opencl_language_data): Likewise.
4358 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4359 (pascal_language_data): Delete la_emitchar initializer.
4360 (pascal_language::emitchar): New member function, implementation
4361 from pascal_emit_char.
4362 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4363 (rust_language_data): Delete la_emitchar initializer.
4364 (rust_language::emitchar): New member function, implementation
4365 from rust_emitchar.
4366
1bf9c363
AB
43672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4368
4369 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4370 (ada_language_data): Delete la_post_parser initializer.
4371 (ada_language::post_parser): New member function.
4372 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4373 (cplus_language_data): Likewise.
4374 (asm_language_data): Likewise.
4375 (minimal_language_data): Likewise.
4376 * d-lang.c (d_language_data): Likewise.
4377 * f-lang.c (f_language_data): Likewise.
4378 * go-lang.c (go_language_data): Likewise.
4379 * language.c (unknown_language_data): Likewise.
4380 (auto_language_data): Likewise.
4381 * language.h (language_data): Delete la_post_parser field.
4382 (language_defn::post_parser): New member function.
4383 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4384 * objc-lang.c (objc_language_data): Likewise.
4385 * opencl-lang.c (opencl_language_data): Likewise.
4386 * p-lang.c (pascal_language_data): Likewise.
4387 * parse.c (parse_exp_in_context): Update call to post_parser.
4388 (null_post_parser): Delete definition.
4389 * parser-defs.h (null_post_parser): Delete declaration.
4390 * rust-lang.c (rust_language_data): Delete la_post_parser
4391 initializer.
4392
87afa652
AB
43932020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4394
4395 * ada-lang.c (parse): Rename to ada_language::parser.
4396 (ada_language_data): Delete la_parser initializer.
4397 (ada_language::parser): New member function, implementation from
4398 parse.
4399 * c-lang.c (c_language_data): Delete la_parser initializer.
4400 (cplus_language_data): Likewise.
4401 (asm_language_data): Likewise.
4402 (minimal_language_data): Likewise.
4403 * d-lang.c (d_language_data): Likewise.
4404 (d_language::parser): New member function.
4405 * f-lang.c (f_language_data): Delete la_parser initializer.
4406 (f_language::parser): New member function.
4407 * go-lang.c (go_language_data): Delete la_parser initializer.
4408 (go_language::parser): New member function.
4409 * language.c (unk_lang_parser): Delete.
4410 (language_defn::parser): Define new member function.
4411 (unknown_language_data): Delete la_parser initializer.
4412 (unknown_language::parser): New member function.
4413 (auto_language_data): Delete la_parser initializer.
4414 (auto_language::parser): New member function.
4415 * language.h (language_data): Delete la_parser field.
4416 (language_defn::parser): Declare new member function.
4417 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4418 (m2_language::parser): New member function.
4419 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4420 * opencl-lang.c (opencl_language_data): Likewise.
4421 * p-lang.c (pascal_language_data): Likewise.
4422 (pascal_language::parser): New member function.
4423 * parse.c (parse_exp_in_context): Update call to parser.
4424 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4425 (rust_language::parser): New member function.
4426
37825800
AB
44272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4428
4429 * top.c (print_gdb_configuration): Print --with-python-libdir
4430 configuration value.
4431
5b860c93
PW
44322020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4433
4434 * NEWS: Mention change to the alias command.
4435
cf00cd6f
PW
44362020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4437
4438 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4439 (alias_command_completer)
4440 (make_alias_options_def_group): New functions.
4441 (alias_opts, alias_option_defs): New struct and array.
4442 (alias_usage_error): Update usage.
4443 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4444 Use option framework.
4445 (_initialize_cli_cmds): Update alias command help.
4446 Update aliases command help.
4447 (show_user):
4448 Add NULL for new default_args lookup_cmd argument.
4449 (valid_command_p): Rename to validate_aliased_command.
4450 Add NULL for new default_args lookup_cmd argument. Verify that the
4451 aliased_command has no default args.
4452 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4453 (lookup_cmd_1, lookup_cmd): New argument default_args.
4454 (add_alias_cmd):
4455 Add NULL for new default_args lookup_cmd argument.
4456 (print_help_for_command): Show default args under the layout
4457 alias some_alias = some_aliased_cmd some_alias_default_arg.
4458 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4459 xfree default_args in destructor.
4460 * cli/cli-script.c (process_next_line, do_define_command):
4461 Add NULL for new default_args lookup_cmd argument.
4462 * command.h: Declare new default_args argument in lookup_cmd
4463 and lookup_cmd_1.
4464 * completer.c (complete_line_internal_1):
4465 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4466 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4467 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4468 Likewise.
4469 * infcmd.c (_initialize_infcmd): Likewise.
4470 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4471 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4472 * python/py-param.c (add_setshow_generic): Likewise.
4473 * remote.c (_initialize_remote): Likewise.
4474 * top.c (execute_command): Prepend default_args if command has some.
4475 (set_verbose):
4476 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4477 * tracepoint.c (validate_actionline, encode_actions_1):
4478 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4479
bd920864
TBA
44802020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4481
4482 * jit.c (jit_read_descriptor): Use bool as the return type.
4483 (jit_breakpoint_re_set_internal): Use bool as the return type.
4484 Invert the return value logic; return true if the jit breakpoint
4485 has been successfully initialized.
4486 (jit_inferior_init): Update the call to
4487 jit_breakpoint_re_set_internal.
4488
f8098322
PA
44892020-06-22 Pedro Alves <palves@redhat.com>
4490
4491 PR gdb/25939
4492 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4493 Use the current inferior instead. Don't return
4494 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4495 wait again.
4496 * sol-thread.c (sol_thread_target::wait): Don't reference
4497 inferior_ptid.
4498 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4499 (sol_update_thread_list_callback): Use the current inferior's pid
4500 instead of inferior_ptid.
4501
196535a6
RO
45022020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4503
4504 * procfs.c: Cleanup many comments.
4505
4506 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4507 (AFTER_WATCHFLAG): Replace by value.
4508
4509 (MAIN_PROC_NAME_FORMAT): Inline ...
4510 (create_procinfo): ... here.
4511
4512 (procfs_debug_inferior): Remove SYS_exec handling.
4513 (syscall_is_exec): Likewise.
4514 (procfs_set_exec_trap): Likewise.
4515
4516 (syscall_is_lwp_exit): Inline in callers.
4517 (syscall_is_exit): Likewise.
4518 (syscall_is_exec): Likewise.
4519 (syscall_is_lwp_create): Likewise.
4520
4521 (invalidate_cache): Remove #if 0 code.
4522
4523 (make_signal_thread_runnable): Remove.
4524 (procfs_target::resume): Remove #if 0 code.
4525
cf6f3e86
RO
45262020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4527
4528 PR gdb/25939
4529 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4530 call ...
4531 (procfs_target::create_inferior): ... here.
4532
48e9cc84
PW
45332020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4534
4535 * exec.c (validate_exec_file): Ensure the build-id is up to
4536 date by calling reopen_exec_file (that checks file timestamp
4537 to decide to re-read the file).
4538
3922b302
PA
45392020-06-18 Pedro Alves <palves@redhat.com>
4540
4541 PR gdb/25412
4542 * gdbthread.h (delete_thread, delete_thread_silent)
4543 (find_thread_ptid): Update comments.
4544 * thread.c (current_thread_): New global.
4545 (is_current_thread): Move higher, and reimplement.
4546 (inferior_thread): Reimplement.
4547 (set_thread_exited): Use bool. Add assertions.
4548 (add_thread_silent): Simplify thread-reuse handling by always
4549 calling delete_thread.
4550 (delete_thread): Remove intro comment.
4551 (find_thread_ptid): Skip exited threads.
4552 (switch_to_thread_no_regs): Write to current_thread_.
4553 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4554 INFERIOR_PTID. Clear current_thread_.
4555
6dbdab44
PA
45562020-06-18 Pedro Alves <palves@redhat.com>
4557
4558 * aix-thread.c (pd_update): Use switch_to_thread.
4559
2da4b788
PA
45602020-06-18 Pedro Alves <palves@redhat.com>
4561
4562 * ravenscar-thread.c (ravenscar_thread_target): Update.
4563 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4564 (ravenscar_thread_target::add_active_thread): ... this. Don't
4565 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4566 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4567
50838d1b
PA
45682020-06-18 Pedro Alves <palves@redhat.com>
4569
4570 * nat/windows-nat.c (current_windows_thread): Remove.
4571 * nat/windows-nat.h (current_windows_thread): Remove.
4572 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4573 Adjust.
4574 (display_selectors): Adjust to fetch the current
4575 windows_thread_info based on inferior_ptid.
4576 (fake_create_process): No longer write to current_windows_thread.
4577 (windows_nat_target::get_windows_debug_event):
4578 Don't set inferior_ptid or current_windows_thread.
4579 (windows_nat_target::wait): Adjust to not rely on
4580 current_windows_thread.
4581 (do_initial_windows_stuff): Now a method of windows_nat_target.
4582 Switch to the last_ptid thread.
4583 (windows_nat_target::attach): Adjust.
4584 (windows_nat_target::detach): Use switch_to_no_thread instead of
4585 writing to inferior_ptid directly.
4586 (windows_nat_target::create_inferior): Adjust.
4587
31ce04e9
PA
45882020-06-18 Pedro Alves <palves@redhat.com>
4589
4590 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4591
1ee1a363
PA
45922020-06-18 Pedro Alves <palves@redhat.com>
4593
4594 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4595 after creating it, instead of writing to inferior_ptid. Don't
4596 write to inferior_ptid.
4597
6d350754
PA
45982020-06-18 Pedro Alves <palves@redhat.com>
4599
4600 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4601
5d971d48
PA
46022020-06-18 Pedro Alves <palves@redhat.com>
4603
4604 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4605 it, instead of writing to inferior_ptid.
4606
86e57d1b
PA
46072020-06-18 Pedro Alves <palves@redhat.com>
4608
4609 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4610 to inferior_ptid.
4611
f2e1c129
PA
46122020-06-18 Pedro Alves <palves@redhat.com>
4613
4614 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4615 instead of writing to inferior_ptid directly.
4616
60db1b85
PA
46172020-06-18 Pedro Alves <palves@redhat.com>
4618
4619 * corelow.c (core_target::close): Use switch_to_no_thread instead
4620 of writing to inferior_ptid directly.
4621 (add_to_thread_list, core_target_open): Use switch_to_thread
4622 instead of writing to inferior_ptid directly.
4623
fe7d6a8d
PA
46242020-06-18 Pedro Alves <palves@redhat.com>
4625
4626 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4627 inferior_ptid.
4628 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4629 inferior_ptid.
4630 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4631 inferior_ptid directly.
4632 (darwin_nat_target::init_thread_list): Switch to thread, instead
4633 of writing to inferior_ptid.
4634 (darwin_nat_target::attach): Don't write to inferior_ptid.
4635 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4636
975f8708
PA
46372020-06-18 Pedro Alves <palves@redhat.com>
4638
4639 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4640 thread.
4641 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4642 Instead use switch_to_thread.
4643 (gnu_nat_target::detach): Use switch_to_no_thread
4644 instead of writing to inferior_ptid directly. Used passed-in
4645 inferior instead of looking up the inferior by pid.
4646
1a204730
PA
46472020-06-18 Pedro Alves <palves@redhat.com>
4648
4649 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4650 inferior_ptid.
4651
ebe84f23
PA
46522020-06-18 Pedro Alves <palves@redhat.com>
4653
4654 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4655 inferior_ptid.
4656 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4657 thread.
4658 (nto_procfs_target::detach): Avoid referencing
4659 inferior_ptid. Use switch_to_no_thread instead of writing to
4660 inferior_ptid directly.
4661 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4662 instead of writing to inferior_ptid directly.
4663 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4664 to thread.
4665
191f02e5
PA
46662020-06-18 Pedro Alves <palves@redhat.com>
4667
4668 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4669 after creating it, instead of writing to inferior_ptid.
4670 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4671 to inferior_ptid directly.
4672 (gdbsim_target::wait): Don't write to inferior_ptid.
4673
0ac55310
PA
46742020-06-18 Pedro Alves <palves@redhat.com>
4675
4676 * remote.c (remote_target::remote_notice_new_inferior): Use
4677 switch_to_thread instead of writing to inferior_ptid directly.
4678 (remote_target::add_current_inferior_and_thread): Use
4679 switch_to_no_thread instead of writing to inferior_ptid directly.
4680 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4681 and switch_to_thread instead of using set_current_inferior or
4682 writing to inferior_ptid directly.
4683
5233f39b
PA
46842020-06-18 Pedro Alves <palves@redhat.com>
4685
4686 * tracectf.c (ctf_target_open): Switch to added thread instead of
4687 writing to inferior_ptid directly.
4688 (ctf_target::close): Use switch_to_no_thread instead of writing to
4689 inferior_ptid directly.
4690
087e161b
PA
46912020-06-18 Pedro Alves <palves@redhat.com>
4692
4693 * tracefile-tfile.c (tfile_target_open): Don't write to
4694 inferior_ptid directly, instead switch to added thread.
4695 (tfile_target::close): Use switch_to_no_thread instead of writing
4696 to inferior_ptid directly.
4697
7fb43e53
PA
46982020-06-18 Pedro Alves <palves@redhat.com>
4699
4700 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4701 (procfs_target::detach): Use switch_to_no_thread
4702 instead of writing to inferior_ptid directly.
4703 (do_attach): Change return type to void. Switch to the added
4704 thread.
4705 (procfs_target::create_inferior): Switch to the added thread.
4706 (procfs_do_thread_registers): Don't write to inferior_ptid.
4707
18493a00
PA
47082020-06-18 Pedro Alves <palves@redhat.com>
4709
4710 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4711 of writing to inferior_ptid.
4712 (scoped_restore_exited_inferior): Delete.
4713 (handle_vfork_child_exec_or_exit): Simplify using
4714 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4715 instead of writing to inferior_ptid.
4716 (THREAD_STOPPED_BY): Delete.
4717 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4718 (thread_stopped_by_hw_breakpoint): Delete.
4719 (save_waitstatus): Use
4720 scoped_restore_current_thread+switch_to_thread, and call
4721 target_stopped_by_watchpoint instead of
4722 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4723 instead of thread_stopped_by_sw_breakpoint, and
4724 target_stopped_by_hw_breakpoint instead of
4725 thread_stopped_by_hw_breakpoint.
4726 (handle_inferior_event)
4727 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4728 inferior_ptid directly, nor
4729 set_current_inferior/set_current_program_space. Use
4730 switch_to_thread / switch_to_inferior_no_thread instead.
4731
a0776b13
PA
47322020-06-18 Pedro Alves <palves@redhat.com>
4733
4734 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4735 instead of writing to inferior_ptid.
4736
6155c136
PA
47372020-06-18 Pedro Alves <palves@redhat.com>
4738
4739 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4740 added thread.
4741 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4742 to the added thread.
4743 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4744 instead of writing to inferior_ptid.
4745
c5316fc6
PA
47462020-06-18 Pedro Alves <palves@redhat.com>
4747
4748 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4749 (register_to_value_test): Mock a program_space too. Heap-allocate
4750 the address space. Don't write to inferior_ptid. Use
4751 switch_to_thread instead.
4752
8df01799
PA
47532020-06-18 Pedro Alves <palves@redhat.com>
4754
4755 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4756 Delete.
4757 (find_signalled_thread()): New, factored out from
4758 linux_make_corefile_notes and adjusted to handle exited threads.
4759 (linux_make_corefile_notes): Adjust to use the new
4760 find_signalled_thread.
4761
41792d68
PA
47622020-06-18 Pedro Alves <palves@redhat.com>
4763
4764 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4765 of saving/restoring inferior_ptid.
4766
612f258a
TT
47672020-06-17 Tom Tromey <tom@tromey.com>
4768
4769 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4770 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4771 declare.
4772 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4773
efb763a5
SM
47742020-06-15 Simon Marchi <simon.marchi@efficios.com>
4775
4776 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4777 of partial symtabs.
4778
2951f6c0
SM
47792020-06-17 Simon Marchi <simon.marchi@efficios.com>
4780
4781 * regformats/reg-arm.dat: Remove.
4782 * regformats/reg-bfin.dat: Remove.
4783 * regformats/reg-cris.dat: Remove.
4784 * regformats/reg-crisv32.dat: Remove.
4785 * regformats/reg-m32r.dat: Remove.
4786 * regformats/reg-tilegx.dat: Remove.
4787 * regformats/reg-tilegx32.dat: Remove.
4788
7d458ea5
SM
47892020-06-17 Simon Marchi <simon.marchi@efficios.com>
4790
4791 * features/Makefile (WHICH): Remove arm files.
4792 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4793 * regformats/arm/arm-with-neon.dat: Remove.
4794 * regformats/arm/arm-with-vfpv2.dat: Remove.
4795 * regformats/arm/arm-with-vfpv3.dat: Remove.
4796
3af96c0d
SM
47972020-06-17 Simon Marchi <simon.marchi@efficios.com>
4798
4799 * features/Makefile (XMLTOC): Remove rx.xml.
4800
b25e22fd
PA
48012020-06-17 Pedro Alves <palves@redhat.com>
4802
4803 * gdbthread.h (thread_control_state) <trap_expected> Update
4804 comments.
4805
a78a19b1
AB
48062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4807
4808 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4809 ada_language::lookup_symbol_nonlocal.
4810 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4811 (ada_language::lookup_symbol_nonlocal): New member function,
4812 implementation from ada_lookup_symbol_nonlocal.
4813 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4814 initializer.
4815 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4816 initializer.
4817 (cplus_language::lookup_symbol_nonlocal): New member function.
4818 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4819 (minimal_language_data) Likewise.
4820 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4821 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4822 initializer.
4823 (d_language::lookup_symbol_nonlocal): New member function.
4824 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4825 initializer.
4826 (f_language::lookup_symbol_nonlocal): New member function.
4827 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4828 initializer.
4829 * language.c (unknown_language_data): Likewise.
4830 (auto_language_data): Likewise.
4831 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4832 field.
4833 (language_defn::lookup_symbol_nonlocal): New member function.
4834 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4835 initializer.
4836 * objc-lang.c (objc_language_data): Likewise.
4837 * opencl-lang.c (opencl_language_data): Likewise.
4838 * p-lang.c (pascal_language_data): Likewise.
4839 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4840 rust_language::lookup_symbol_nonlocal.
4841 (rust_language_data): Delete la_lookup_symbol_nonlocal
4842 initializer.
4843 (rust_language::lookup_symbol_nonlocal): New member function,
4844 implementation from rust_lookup_symbol_nonlocal.
4845 * symtab.c (lookup_symbol_aux): Update call to
4846 lookup_symbol_nonlocal.
4847 (basic_lookup_symbol_nonlocal): Rename to...
4848 (language_defn::lookup_symbol_nonlocal): ...this, and update
4849 header comment. Remove language_defn parameter, and replace with
4850 uses of `this'.
4851 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4852
ebe2334e
AB
48532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4854
4855 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4856 initializer.
4857 (ada_language::value_print_inner): New member function.
4858 * c-lang.c (c_language_data): Delete la_value_print_inner
4859 initializer.
4860 (cplus_language_data): Likewise.
4861 (asm_language_data): Likewise.
4862 (minimal_language_data): Likewise.
4863 * d-lang.c (d_language_data): Likewise.
4864 (d_language::value_print_inner): New member function.
4865 * f-lang.c (f_language_data): Delete la_value_print_inner
4866 initializer.
4867 (f_language::value_print_inner): New member function.
4868 * f-lang.h (f_value_print_innner): Rename to...
4869 (f_value_print_inner): ...this (note spelling of 'inner').
4870 * f-valprint.c (f_value_print_innner): Rename to...
4871 (f_value_print_inner): ...this (note spelling of 'inner').
4872 * go-lang.c (go_language_data): Delete la_value_print_inner
4873 initializer.
4874 (go_language::value_print_inner): New member function.
4875 * language.c (language_defn::value_print_inner): Define new member
4876 function.
4877 (unk_lang_value_print_inner): Delete.
4878 (unknown_language_data): Delete la_value_print_inner initializer.
4879 (unknown_language::value_print_inner): New member function.
4880 (auto_language_data): Delete la_value_print_inner initializer.
4881 (auto_language::value_print_inner): New member function.
4882 * language.h (language_data): Delete la_value_print_inner field.
4883 (language_defn::value_print_inner): Delcare new member function.
4884 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4885 initializer.
4886 (m2_language::value_print_inner): New member function.
4887 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4888 initializer.
4889 * opencl-lang.c (opencl_language_data): Likewise.
4890 * p-lang.c (pascal_language_data): Likewise.
4891 (pascal_language::value_print_inner): New member function.
4892 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4893 initializer.
4894 (rust_language::value_print_inner): New member function.
4895 * valprint.c (do_val_print): Update call to value_print_inner.
4896
a1d1fa3e
AB
48972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4898
4899 * ada-lang.c (ada_language_data): Delete la_value_print
4900 initializer.
4901 (ada_language::value_print): New member function.
4902 * c-lang.c (c_language_data): Delete la_value_print initializer.
4903 (cplus_language_data): Likewise.
4904 (asm_language_data): Likewise.
4905 (minimal_language_data): Likewise.
4906 * d-lang.c (d_language_data): Likewise.
4907 * f-lang.c (f_language_data): Likewise.
4908 * go-lang.c (go_language_data): Likewise.
4909 * language.c (unk_lang_value_print): Delete.
4910 (language_defn::value_print): Define new member function.
4911 (unknown_language_data): Delete la_value_print initializer.
4912 (unknown_language::value_print): New member function.
4913 (auto_language_data): Delete la_value_print initializer.
4914 (auto_language::value_print): New member function.
4915 * language.h (language_data): Delete la_value_print field.
4916 (language_defn::value_print): Declare new member function.
4917 (LA_VALUE_PRINT): Update call to value_print.
4918 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4919 * objc-lang.c (objc_language_data): Likewise.
4920 * opencl-lang.c (opencl_language_data): Likewise.
4921 * p-lang.c (pascal_language_data): Likewise.
4922 (pascal_language::value_print): New member function.
4923 * rust-lang.c (rust_language_data): Delete la_value_print
4924 initializer.
4925
f16a9f57
AB
49262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4927
4928 * ada-lang.c (ada_watch_location_expression): Rename to
4929 ada_language::watch_location_expression.
4930 (ada_language_data): Delete la_watch_location_expression
4931 initializer.
4932 (ada_language::watch_location_expression): New member function,
4933 implementation from ada_watch_location_expression.
4934 * breakpoint.c (watch_command_1): Update call to
4935 watch_location_expression.
4936 * c-lang.c (c_watch_location_expression): Rename to
4937 language_defn::watch_location_expression.
4938 (c_language_data): Delete la_watch_location_expression
4939 initializer.
4940 (cplus_language_data): Likewise.
4941 (asm_language_data): Likewise.
4942 (minimal_language_data): Likewise.
4943 * c-lang.h (c_watch_location_expression): Delete declaration.
4944 * d-lang.c (d_language_data): Delete la_watch_location_expression
4945 initializer.
4946 * f-lang.c (f_language_data): Likewise.
4947 * go-lang.c (go_language_data): Likewise.
4948 * language.c (language_defn::watch_location_expression): Member
4949 function implementation from c_watch_location_expression.
4950 (unknown_language_data): Delete la_watch_location_expression
4951 initializer.
4952 (auto_language_data): Likewise.
4953 * language.h (language_data): Delete la_watch_location_expression
4954 field.
4955 (language_defn::watch_location_expression): Declare new member
4956 function.
4957 * m2-lang.c (m2_language_data): Delete
4958 la_watch_location_expression initializer.
4959 * objc-lang.c (objc_language_data): Likewise.
4960 * opencl-lang.c (opencl_language_data): Likewise.
4961 * p-lang.c (pascal_language_data): Likewise.
4962 * rust-lang.c (rust_watch_location_expression): Rename to
4963 rust_language::watch_location_expression.
4964 (rust_language_data): Delete la_watch_location_expression
4965 initializer.
4966 (rust_language::watch_location_expression): New member function,
4967 implementation from rust_watch_location_expression.
4968
7e56227d
AB
49692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4970
4971 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4972 ada_language::collect_symbol_completion_matches.
4973 (ada_language_data): Delete la_collect_symbol_completion_matches
4974 initializer.
4975 (ada_language::collect_symbol_completion_matches): New member
4976 function, implementation from
4977 ada_collect_symbol_completion_matches.
4978 * c-lang.c (c_language_data): Delete
4979 la_collect_symbol_completion_matches initializer.
4980 (cplus_language_data): Likewise.
4981 (asm_language_data): Likewise.
4982 (minimal_language_data): Likewise.
4983 * d-lang.c (d_language_data): Likewise.
4984 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4985 f_language::collect_symbol_completion_matches.
4986 (f_language_data): Delete la_collect_symbol_completion_matches
4987 initializer.
4988 (f_language::collect_symbol_completion_matches) New member
4989 function, implementation from f_collect_symbol_completion_matches.
4990 * go-lang.c (go_language_data): Delete
4991 la_collect_symbol_completion_matches initializer.
4992 * language.c (unknown_language_data): Likewise.
4993 (auto_language_data): Likewise.
4994 * language.h (language_data): Delete
4995 la_collect_symbol_completion_matches field.
4996 (language_defn::collect_symbol_completion_matches): New member
4997 function.
4998 * m2-lang.c (m2_language_data): Delete
4999 la_collect_symbol_completion_matches initializer.
5000 * objc-lang.c (objc_language_data): Likewise.
5001 * opencl-lang.c (opencl_language_data): Likewise.
5002 * p-lang.c (pascal_language_data): Likewise.
5003 * rust-lang.c (rust_language_data): Likewise.
5004 * symtab.c (default_collect_symbol_completion_matches): Delete.
5005 (collect_symbol_completion_matches): Update call to
5006 collect_symbol_completion_matches.
5007 (collect_symbol_completion_matches_type): Likewise.
5008 * symtab.h (default_collect_symbol_completion_matches): Delete
5009 declaration.
5010
53fc67f8
AB
50112020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5012
5013 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5014 (ada_language_data): Delete la_word_break_characters initializer.
5015 (ada_language::word_break_characters): New member function.
5016 * c-lang.c (c_language_data): Delete la_word_break_characters
5017 initializer.
5018 (cplus_language_data): Likewise.
5019 (asm_language_data): Likewise.
5020 (minimal_language_data): Likewise.
5021 * completer.c: Update global comment.
5022 (advance_to_expression_complete_word_point): Update call to
5023 word_break_characters.
5024 (complete_files_symbols): Likewise.
5025 (complete_line_internal_1): Likewise.
5026 (default_completer_handle_brkchars): Likewise.
5027 (skip_quoted_chars): Likewise.
5028 * d-lang.c (d_language_data): Delete la_word_break_characters
5029 initializer.
5030 * f-lang.c (f_word_break_characters): Delete.
5031 (f_language_data): Delete la_word_break_characters initializer.
5032 (f_language::word_break_characters): New member function.
5033 * go-lang.c (go_language_data): Delete la_word_break_characters
5034 initializer.
5035 * language.c (unknown_language_data): Likewise.
5036 (auto_language_data): Likewise.
5037 * language.h (default_word_break_characters): Move declaration to
5038 earlier in the file.
5039 (language_data): Delete la_word_break_characters field.
5040 (language_defn::word_break_characters): New member function.
5041 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5042 initializer.
5043 * objc-lang.c (objc_language_data): Likewise.
5044 * opencl-lang.c (opencl_language_data): Likewise.
5045 * p-lang.c (pascal_language_data): Likewise.
5046 * rust-lang.c (rust_language_data): Likewise.
5047
c9debfb9
AB
50482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5049
5050 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5051 (ada_language_data): Delete la_get_symbol_name_matcher
5052 initializer.
5053 (language_defn::get_symbol_name_matcher_inner): New member
5054 function.
5055 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5056 initializer.
5057 (cplus_language_data): Likewise.
5058 (cplus_language::get_symbol_name_matcher_inner): New member
5059 function.
5060 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5061 (minimal_language_data): Likewise.
5062 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5063 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5064 initializer.
5065 * dictionary.c (iter_match_first_hashed): Update call to
5066 get_symbol_name_matcher.
5067 (iter_match_next_hashed): Likewise.
5068 (iter_match_next_linear): Likewise.
5069 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5070 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5071 initializer.
5072 (f_language::get_symbol_name_matcher_inner): New member function.
5073 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5074 initializer.
5075 * language.c (default_symbol_name_matcher): Update header comment,
5076 make static.
5077 (language_defn::get_symbol_name_matcher): New definition.
5078 (language_defn::get_symbol_name_matcher_inner): Likewise.
5079 (get_symbol_name_matcher): Delete.
5080 (unknown_language_data): Delete la_get_symbol_name_matcher
5081 initializer.
5082 (auto_language_data): Likewise.
5083 * language.h (language_data): Delete la_get_symbol_name_matcher
5084 field.
5085 (language_defn::get_symbol_name_matcher): New member function.
5086 (language_defn::get_symbol_name_matcher_inner): Likewise.
5087 (default_symbol_name_matcher): Delete declaration.
5088 * linespec.c (find_methods): Update call to
5089 get_symbol_name_matcher.
5090 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5091 initializer.
5092 * minsyms.c (lookup_minimal_symbol): Update call to
5093 get_symbol_name_matcher.
5094 (iterate_over_minimal_symbols): Likewise.
5095 * objc-lang.c (objc_language_data): Delete
5096 la_get_symbol_name_matcher initializer.
5097 * opencl-lang.c (opencl_language_data): Likewise.
5098 * p-lang.c (pascal_language_data): Likewise.
5099 * psymtab.c (psymbol_name_matches): Update call to
5100 get_symbol_name_matcher.
5101 * rust-lang.c (rust_language_data): Delete
5102 la_get_symbol_name_matcher initializer.
5103 * symtab.c (symbol_matches_search_name): Update call to
5104 get_symbol_name_matcher.
5105 (compare_symbol_name): Likewise.
5106
9a49ad8c
AB
51072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5108
5109 * ada-lang.c (ada_language_data): Delete la_compute_program
5110 initializer.
5111 * c-lang.c (c_language_data): Likewise.
5112 (c_language::compute_program): New member function.
5113 (cplus_language_data): Delete la_compute_program initializer.
5114 (cplus_language::compute_program): New member function.
5115 (asm_language_data): Delete la_compute_program initializer.
5116 (minimal_language_data): Likewise.
5117 * c-lang.h (c_compute_program): Update comment.
5118 (cplus_compute_program): Likewise.
5119 * compile/compile-c-support.c (c_compute_program): Likewise.
5120 (cplus_compute_program): Likewise.
5121 * compile/compile.c (compile_to_object): Update call to
5122 la_compute_program.
5123 * d-lang.c (d_language_data): Delete la_compute_program
5124 initializer.
5125 * f-lang.c (f_language_data): Likewise.
5126 * go-lang.c (go_language_data): Likewise.
5127 * language.c (unknown_language_data): Likewise.
5128 (auto_language_data): Likewise.
5129 * language.h (language_data): Delete la_compute_program field.
5130 (language_defn::compute_program): New member function.
5131 * m2-lang.c (m2_language_data): Delete la_compute_program
5132 initializer.
5133 * objc-lang.c (objc_language_data): Likewise.
5134 * opencl-lang.c (opencl_language_data): Likewise.
5135 * p-lang.c (pascal_language_data): Likewise.
5136 * rust-lang.c (rust_language_data): Likewise.
5137
eff93b4d
AB
51382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5139
5140 * ada-lang.c (ada_language_data) Delete
5141 la_class_name_from_physname initializer.
5142 * c-lang.c (c_language_data): Likewise.
5143 (cplus_language_data): Likewise.
5144 (cplus_language::class_name_from_physname): New member function.
5145 (asm_language_data): Delete la_class_name_from_physname
5146 initializer.
5147 (minimal_language_data): Likewise.
5148 * d-lang.c (d_language_data): Likewise.
5149 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5150 method on language_defn class.
5151 (guess_full_die_structure_name): Likewise.
5152 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5153 initializer.
5154 * go-lang.c (go_language_data): Likewise.
5155 * language.c (language_class_name_from_physname): Delete.
5156 (unk_lang_class_name): Delete.
5157 (unknown_language_data): Delete la_class_name_from_physname
5158 initializer.
5159 (auto_language_data): Likewise.
5160 * language.h (language_data): Delete la_class_name_from_physname
5161 field.
5162 (language_defn::class_name_from_physname): New function.
5163 (language_class_name_from_physname): Delete declaration.
5164 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5165 initializer.
5166 * objc-lang.c (objc_language_data): Likewise.
5167 * opencl-lang.c (opencl_language_data): Likewise.
5168 * p-lang.c (pascal_language_data): Likewise.
5169 * rust-lang.c (rust_language_data): Likewise.
5170
de543742
TT
51712020-06-16 Tom Tromey <tom@tromey.com>
5172
5173 * tui/tui-data.h (STATUS_NAME): New macro.
5174 * tui/tui-layout.c (tui_remove_some_windows)
5175 (initialize_known_windows, tui_register_window)
5176 (tui_layout_split::remove_windows, initialize_layouts)
5177 (tui_new_layout_command): Don't use hard-coded window names.
5178
a350efd4
TT
51792020-06-16 Tom Tromey <tom@tromey.com>
5180
5181 PR tui/25348:
5182 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5183 tui_initialize_readline. Only run once. Call rl_initialize.
5184 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5185 tui_initialize_readline.
5186 * tui/tui-io.c (tui_setup_io): Call
5187 tui_ensure_readline_initialized.
5188 * tui/tui-interp.c (tui_interp::init): Update.
5189
39ec0490
TT
51902020-06-16 Tom Tromey <tom@tromey.com>
5191
5192 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5193 Also preserve the status window.
5194
d2d1ea20
TT
51952020-06-16 Tom Tromey <tom@tromey.com>
5196
5197 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5198 where m_window==nullptr.
5199
66920317
TT
52002020-06-15 Tom Tromey <tromey@adacore.com>
5201
5202 * windows-nat.c (windows_nat::handle_output_debug_string):
5203 Update.
5204 (windows_nat::handle_ms_vc_exception): Update.
5205 * target.h (target_read_string): Change API.
5206 * target.c (target_read_string): Change API.
5207 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5208 Update.
5209 * solib-frv.c (frv_current_sos): Update.
5210 * solib-dsbt.c (dsbt_current_sos): Update.
5211 * solib-darwin.c (darwin_current_sos): Update.
5212 * linux-thread-db.c (inferior_has_bug): Update.
5213 * expprint.c (print_subexp_standard): Update.
5214 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5215 (ada_exception_message_1): Update.
5216
a5d871dd
TT
52172020-06-15 Tom Tromey <tromey@adacore.com>
5218
5219 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5220
670e35fa
TT
52212020-06-15 Tom Tromey <tromey@adacore.com>
5222
5223 * valprint.c (read_string): Update comment.
5224 * target.c (MIN): Remove.
5225 (target_read_string): Rewrite.
5226
f5272a3b
TT
52272020-06-15 Tom Tromey <tromey@adacore.com>
5228
5229 * corefile.c (read_memory_string): Remove.
5230 * ada-valprint.c (ada_value_print_ptr): Update.
5231 * ada-lang.h (ada_tag_name): Change return type.
5232 * ada-lang.c (type_from_tag): Update.
5233 (ada_tag_name_from_tsd): Change return type. Use
5234 target_read_string.
5235 (ada_tag_name): Likewise.
5236 * gdbcore.h (read_memory_string): Don't declare.
5237
2c074f49
HD
52382020-06-14 Hannes Domani <ssbssa@yahoo.de>
5239
5240 * symtab.c (rbreak_command): Ignore Windows drive colon.
5241
6a17d503
SM
52422020-06-12 Simon Marchi <simon.marchi@efficios.com>
5243
5244 * NEWS: Mention removed GDBserver host support.
5245
453c733f
NC
52462020-06-12 Nelson Chu <nelson.chu@sifive.com>
5247
5248 * features/riscv/rebuild-csr-xml.sh: Updated.
5249
2b4e6a3f
TT
52502020-06-11 Tom Tromey <tom@tromey.com>
5251
5252 PR gdb/18318:
5253 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5254
4412332f
JG
52552020-06-09 Jonny Grant <jg@jguk.org>
52562020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5257
5258 * main.c (captured_main_1): Don't print new line after help.
5259 (print_gdb_help): add mailing list and IRC channel information
5260 to --help. Add new lines between items in the footer. Remove
5261 quotes around bug url.
5262
2f33032a
KS
52632020-06-11 Keith Seitz <keiths@redhat.com>
5264
5265 PR gdb/21356
5266 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5267 Resolve typedefs for type length calculations.
5268
7ab96794
TV
52692020-06-10 Tom de Vries <tdevries@suse.de>
5270
5271 PR ada/24713
5272 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5273 (write_psymbols): Enable .gdb_index for ada.
5274 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5275 ada.
5276
e5f3ece2
TV
52772020-06-10 Tom de Vries <tdevries@suse.de>
5278
5279 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5280 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5281 namei" instead of "const char *name" argument.
5282 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5283 dw2_symtab_iter_init.
5284
940da03e
SM
52852020-06-08 Simon Marchi <simon.marchi@efficios.com>
5286
5287 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5288 to use type::field and field::type instead.
5289
b6cdac4b
SM
52902020-06-08 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5293 to use field::type instead.
5294
5d14b6e5
SM
52952020-06-08 Simon Marchi <simon.marchi@efficios.com>
5296
5297 * gdbtypes.h (struct field) <type, set_type>: New methods.
5298 Rename `type` field to...
5299 <m_type>: ... this. Change references throughout to use type or
5300 set_type methods.
5301 (FIELD_TYPE): Use field::type. Change call sites that modify
5302 the field's type to use field::set_type instead.
5303
3d967001
SM
53042020-06-08 Simon Marchi <simon.marchi@efficios.com>
5305
5306 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5307 to use type::index_type instead.
5308
262abc0d
SM
53092020-06-08 Simon Marchi <simon.marchi@efficios.com>
5310
5311 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5312 methods.
5313 (TYPE_INDEX_TYPE): Use type::index_type.
5314 * gdbtypes.c (create_array_type_with_stride): Likewise.
5315
82836c92
TT
53162020-06-07 Tom Tromey <tom@tromey.com>
5317
5318 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5319 parameter.
5320 (generic_value_print): Update.
5321
940dace9
AB
53222020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5323
5324 Revert commit 982a38f60b0.
5325 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5326
982a38f6
AB
53272020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5328
5329 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5330 avoid use after free.
5331
82f06518
TV
53322020-06-05 Tom de Vries <tdevries@suse.de>
5333
5334 * NEWS: Fix typos.
5335
f8c41851
SM
53362020-06-04 Simon Marchi <simon.marchi@efficios.com>
5337
5338 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5339 the per_bfd object.
5340 (dwarf2_read_debug_names): Likewise.
5341 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5342 object when re-using a per_bfd object with an index.
5343
f9b5d5ea
TV
53442020-06-03 Tom de Vries <tdevries@suse.de>
5345
5346 PR symtab/26046
5347 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5348 children for C++.
5349 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5350 DW_TAG_subprogram.
5351
f6eee2d0
AB
53522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5353
5354 * ada-lang.c (ada_language_data): Delete skip_trampoline
5355 initializer.
5356 * c-lang.c (c_language_data): Likewise.
5357 (cplus_language_data): Likewise.
5358 (cplus_language::skip_trampoline): New member function.
5359 (asm_language_data): Delete skip_trampoline initializer.
5360 (minimal_language_data): Likewise.
5361 * d-lang.c (d_language_data): Likewise.
5362 * f-lang.c (f_language_data): Likewise.
5363 * go-lang.c (go_language_data): Likewise.
5364 * language.c (unk_lang_trampoline): Delete function.
5365 (skip_language_trampoline): Update.
5366 (unknown_language_data): Delete skip_trampoline initializer.
5367 (auto_language_data): Likewise.
5368 * language.h (language_data): Delete skip_trampoline field.
5369 (language_defn::skip_trampoline): New function.
5370 * m2-lang.c (m2_language_data): Delete skip_trampoline
5371 initializer.
5372 * objc-lang.c (objc_skip_trampoline): Delete function, move
5373 implementation to objc_language::skip_trampoline.
5374 (objc_language_data): Delete skip_trampoline initializer.
5375 (objc_language::skip_trampoline): New member function with
5376 implementation from objc_skip_trampoline.
5377 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5378 initializer.
5379 * p-lang.c (pascal_language_data): Likewise.
5380 * rust-lang.c (rust_language_data): Likewise.
5381
0a50df5d
AB
53822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5383
5384 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5385 (ada_language::demangle): New member function.
5386 * c-lang.c (c_language_data): Delete la_demangle initializer.
5387 (cplus_language_data): Delete la_demangle initializer.
5388 (cplus_language::demangle): New member function.
5389 (asm_language_data): Delete la_demangle initializer.
5390 (minimal_language_data): Delete la_demangle initializer.
5391 * d-lang.c (d_language_data): Delete la_demangle initializer.
5392 (d_language::demangle): New member function.
5393 * f-lang.c (f_language_data): Delete la_demangle initializer.
5394 (f_language::demangle): New member function.
5395 * go-lang.c (go_language_data): Delete la_demangle initializer.
5396 (go_language::demangle): New member function.
5397 * language.c (language_demangle): Update.
5398 (unk_lang_demangle): Delete.
5399 (unknown_language_data): Delete la_demangle initializer.
5400 (unknown_language::demangle): New member function.
5401 (auto_language_data): Delete la_demangle initializer.
5402 (auto_language::demangle): New member function.
5403 * language.h (language_data): Delete la_demangle field.
5404 (language_defn::demangle): New function.
5405 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5406 * objc-lang.c (objc_language_data): Delete la_demangle
5407 initializer.
5408 (objc_language::demangle): New member function.
5409 * opencl-lang.c (opencl_language_data): Delete la_demangle
5410 initializer.
5411 * p-lang.c (pascal_language_data): Likewise.
5412 * rust-lang.c (rust_language_data): Likewise.
5413 (rust_language::demangle): New member function.
5414
fbfb0a46
AB
54152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5416
5417 * ada-lang.c (ada_language_data): Delete la_print_type
5418 initializer.
5419 (ada_language::print_type): New member function.
5420 * c-lang.c (c_language_data): Delete la_print_type initializer.
5421 (c_language::print_type): New member function.
5422 (cplus_language_data): Delete la_print_type initializer.
5423 (cplus_language::print_type): New member function.
5424 (asm_language_data): Delete la_print_type initializer.
5425 (asm_language::print_type): New member function.
5426 (minimal_language_data): Delete la_print_type initializer.
5427 (minimal_language::print_type): New member function.
5428 * d-lang.c (d_language_data): Delete la_print_type initializer.
5429 (d_language::print_type): New member function.
5430 * f-lang.c (f_language_data): Delete la_print_type initializer.
5431 (f_language::print_type): New member function.
5432 * go-lang.c (go_language_data): Delete la_print_type initializer.
5433 (go_language::print_type): New member function.
5434 * language.c (unk_lang_print_type): Delete.
5435 (unknown_language_data): Delete la_print_type initializer.
5436 (unknown_language::print_type): New member function.
5437 (auto_language_data): Delete la_print_type initializer.
5438 (auto_language::print_type): New member function.
5439 * language.h (language_data): Delete la_print_type field.
5440 (language_defn::print_type): New function.
5441 (LA_PRINT_TYPE): Update.
5442 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5443 (m2_language::print_type): New member function.
5444 * objc-lang.c (objc_language_data): Delete la_print_type
5445 initializer.
5446 (objc_language::print_type): New member function.
5447 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5448 to opencl_language::print_type.
5449 (opencl_language_data): Delete la_print_type initializer.
5450 (opencl_language::print_type): New member function, implementation
5451 from opencl_print_type.
5452 * p-lang.c (pascal_language_data): Delete la_print_type
5453 initializer.
5454 (pascal_language::print_type): New member function.
5455 * rust-lang.c (rust_print_type): Delete, implementation moved to
5456 rust_language::print_type.
5457 (rust_language_data): Delete la_print_type initializer.
5458 (rust_language::print_type): New member function, implementation
5459 from rust_print_type.
5460
6f827019
AB
54612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5462
5463 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5464 implementation moves to...
5465 (ada_language::sniff_from_mangled_name): ...here. Update return
5466 type.
5467 (ada_language_data): Delete la_sniff_from_mangled_name
5468 initializer.
5469 * c-lang.c (c_language_data): Likewise.
5470 (cplus_language_data): Likewise.
5471 (cplus_language::sniff_from_mangled_name): New member function,
5472 implementation taken from gdb_sniff_from_mangled_name.
5473 (asm_language_data): Delete la_sniff_from_mangled_name
5474 initializer.
5475 (minimal_language_data): Likewise.
5476 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5477 implementation moves to cplus_language::sniff_from_mangled_name.
5478 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5479 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5480 moves to...
5481 (d_language::sniff_from_mangled_name): ...here.
5482 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5483 * f-lang.c (f_language_data): Likewise.
5484 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5485 moves to...
5486 (go_language::sniff_from_mangled_name): ...here.
5487 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5488 * language.c (language_sniff_from_mangled_name): Delete.
5489 (unknown_language_data): Delete la_sniff_from_mangled_name
5490 initializer.
5491 (auto_language_data): Likewise.
5492 * language.h (language_data): Delete la_sniff_from_mangled_name
5493 field.
5494 (language_defn::sniff_from_mangled_name): New function.
5495 (language_sniff_from_mangled_name): Delete declaration.
5496 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5497 field.
5498 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5499 implementation moves to...
5500 (objc_language::sniff_from_mangled_name): ...here.
5501 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5502 * opencl-lang.c (opencl_language_data): Likewise.
5503 * p-lang.c (pascal_language_data): Likewise.
5504 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5505 implementation moves to...
5506 (rust_language::sniff_from_mangled_name): ...here.
5507 (rust_language_data): Delete la_sniff_from_mangled_name
5508 initializer.
5509 * symtab.c (symbol_find_demangled_name): Call
5510 sniff_from_mangled_name member function.
5511
fb8006fd
AB
55122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5513
5514 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5515 initializer.
5516 * c-lang.c (c_language_data): Likewise.
5517 (cplus_language_data): Likewise.
5518 (cplus_language::search_name_hash): New member function.
5519 (asm_language_data): Delete la_search_name_hash initializer.
5520 (minimal_language_data): Likewise.
5521 * d-lang.c (d_language_data): Likewise.
5522 * dictionary.c (default_search_name_hash): Rename to...
5523 (language_defn::search_name_hash): ...this.
5524 * f-lang.c (f_language_data): Likewise.
5525 (f_language::search_name_hash): New member function.
5526 * go-lang.c (go_language_data): Delete la_search_name_hash
5527 initializer.
5528 * language.c (unknown_language_data): Likewise.
5529 (auto_language_data): Likewise.
5530 * language.h (struct language_data): Delete la_search_name_hash
5531 field.
5532 (language_defn::search_name_hash): Declare new member function.
5533 (default_search_name_hash): Delete declaration.
5534 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5535 initializer.
5536 * objc-lang.c (objc_language_data): Likewise.
5537 * opencl-lang.c (opencl_language_data): Likewise.
5538 * p-lang.c (pascal_language_data): Likewise.
5539 * rust-lang.c (rust_language_data): Likewise.
5540 * symtab.c (search_name_hash): Update call.
5541
8e25bafe
AB
55422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5543
5544 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5545 initializer.
5546 * c-lang.c (class compile_instance): Declare.
5547 (c_language_data): Delete la_get_compile_instance initializer.
5548 (c_language::get_compile_instance): New member function.
5549 (cplus_language_data): Delete la_get_compile_instance initializer.
5550 (cplus_language::get_compile_instance): New member function.
5551 (asm_language_data): Delete la_get_compile_instance initializer.
5552 (minimal_language_data): Likewise.
5553 * c-lang.h (c_get_compile_context): Update comment.
5554 (cplus_get_compile_context): Update comment.
5555 * compile/compile.c (compile_to_object): Update calls, don't rely
5556 on function pointer being NULL.
5557 * d-lang.c (d_language_data): Delete la_get_compile_instance
5558 initializer.
5559 * f-lang.c (f_language_data): Likewise.
5560 * go-lang.c (go_language_data): Likewise.
5561 * language.c (unknown_language_data): Likewise.
5562 (auto_language_data): Likewise.
5563 * language.h (language_data): Delete la_get_compile_instance field.
5564 (language_defn::get_compile_instance): New member function.
5565 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5566 initializer.
5567 * objc-lang.c (objc_language_data): Likewise.
5568 * opencl-lang.c (opencl_language_data): Likewise.
5569 * p-lang.c (pascal_language_data): Likewise.
5570 * rust-lang.c (rust_language_data): Likewise.
5571
4009ee92
AB
55722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * ada-lang.c (ada_add_all_symbols): Update comment.
5575 (ada_iterate_over_symbols): Delete, move implementation to...
5576 (ada_language::iterate_over_symbols): ...here, a new member
5577 function, rewrite to use range based for loop.
5578 (ada_language_data): Delete la_iterate_over_symbols initializer.
5579 * c-lang.c (c_language_data): Likewise.
5580 (cplus_language_data): Likewise.
5581 (asm_language_data): Likewise.
5582 (minimal_language_data): Likewise.
5583 * d-lang.c (d_language_data): Likewise.
5584 * f-lang.c (f_language_data): Likewise.
5585 * go-lang.c (go_language_data): Likewise.
5586 * language.c (unknown_language_data): Likewise.
5587 (auto_language_data): Likewise.
5588 * language.h (language_data): Delete la_iterate_over_symbols field.
5589 (language_defn::iterate_over_symbols): New member function.
5590 (LA_ITERATE_OVER_SYMBOLS): Update.
5591 * linespec.c (iterate_over_all_matching_symtabs): Update.
5592 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5593 initializer.
5594 * objc-lang.c (objc_language_data): Likewise.
5595 * opencl-lang.c (opencl_language_data): Likewise.
5596 * p-lang.c (pascal_language_data): Likewise.
5597 * rust-lang.c (rust_language_data): Likewise.
5598
54f4ca46
AB
55992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5600
5601 * ada-lang.c (ada_language_data): Delete
5602 la_lookup_transparent_type initializer.
5603 * c-lang.c (c_language_data): Likewise.
5604 (cplus_language_data): Likewise.
5605 (cplus_language::lookup_transparent_type): New member function.
5606 (asm_language_data): Delete la_lookup_transparent_type
5607 initializer.
5608 (minimal_language_data): Likewise.
5609 * d-lang.c (d_language_data): Likewise.
5610 * f-lang.c (f_language_data): Likewise.
5611 * go-lang.c (go_language_data): Likewise.
5612 * language.c (unknown_language_data): Likewise.
5613 (auto_language_data): Likewise.
5614 * language.h (struct language_data): Delete
5615 la_lookup_transparent_type field.
5616 (language_defn::lookup_transparent_type): New member function.
5617 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5618 initializer.
5619 * objc-lang.c (objc_language_data): Likewise.
5620 * opencl-lang.c (opencl_language_data): Likewise.
5621 * p-lang.c (pascal_language_data): Likewise.
5622 * rust-lang.c (rust_language_data): Likewise.
5623 * symtab.c (symbol_matches_domain): Update call.
5624
1fb314aa
AB
56252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5626
5627 * ada-lang.c (ada_language_arch_info): Delete function, move
5628 implementation to...
5629 (ada_language::language_arch_info): ...here, a new member
5630 function.
5631 (ada_language_data): Delete la_language_arch_info.
5632 * c-lang.c (c_language_data): Likewise.
5633 (c_language::language_arch_info): New member function.
5634 (cplus_language_arch_info): Delete function, move
5635 implementation to...
5636 (cplus_language::language_arch_info): ...here, a new member
5637 function.
5638 (cplus_language_data): Delete la_language_arch_info.
5639 (asm_language_data): Likewise.
5640 (asm_language::language_arch_info): New member function.
5641 (minimal_language_data): Delete la_language_arch_info.
5642 (minimal_language::language_arch_info): New member function.
5643 * d-lang.c (d_language_arch_info): Delete function, move
5644 implementation to...
5645 (d_language::language_arch_info): ...here, a new member
5646 function.
5647 (d_language_data): Delete la_language_arch_info.
5648 * f-lang.c (f_language_arch_info): Delete function, move
5649 implementation to...
5650 (f_language::language_arch_info): ...here, a new member
5651 function.
5652 (f_language_data): Delete la_language_arch_info.
5653 * go-lang.c (go_language_arch_info): Delete function, move
5654 implementation to...
5655 (go_language::language_arch_info): ...here, a new member
5656 function.
5657 (go_language_data): Delete la_language_arch_info.
5658 * language.c (unknown_language_data): Likewise.
5659 (unknown_language::language_arch_info): New member function.
5660 (auto_language_data): Delete la_language_arch_info.
5661 (auto_language::language_arch_info): New member function.
5662 (language_gdbarch_post_init): Update call to
5663 la_language_arch_info.
5664 * language.h (language_data): Delete la_language_arch_info
5665 function pointer.
5666 (language_defn::language_arch_info): New function.
5667 * m2-lang.c (m2_language_arch_info): Delete function, move
5668 implementation to...
5669 (m2_language::language_arch_info): ...here, a new member
5670 function.
5671 (m2_language_data): Delete la_language_arch_info.
5672 * objc-lang.c (objc_language_arch_info): Delete function, move
5673 implementation to...
5674 (objc_language::language_arch_info): ...here, a new member
5675 function.
5676 (objc_language_data): Delete la_language_arch_info.
5677 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5678 implementation to...
5679 (opencl_language::language_arch_info): ...here, a new member
5680 function.
5681 (opencl_language_data): Delete la_language_arch_info.
5682 * p-lang.c (pascal_language_arch_info): Delete function, move
5683 implementation to...
5684 (pascal_language::language_arch_info): ...here, a new member
5685 function.
5686 (pascal_language_data): Delete la_language_arch_info.
5687 * rust-lang.c (rust_language_arch_info): Delete function, move
5688 implementation to...
5689 (rust_language::language_arch_info): ...here, a new member
5690 function.
5691 (rust_language_data): Delete la_language_arch_info.
5692
48448202
AB
56932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5694
5695 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5696 initializer.
5697 * c-lang.c (c_language_data): Likewise.
5698 (cplus_language_data): Likewise.
5699 (cplus_language::pass_by_reference_info): New method.
5700 (asm_language_data): Delete la_pass_by_reference initializer.
5701 (minimal_language_data): Likewise.
5702 * cp-abi.c (cp_pass_by_reference): Remove use of
5703 default_pass_by_reference.
5704 * d-lang.c (d_language_data): Likewise.
5705 * f-lang.c (f_language_data): Likewise.
5706 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5707 default_pass_by_reference.
5708 * go-lang.c (go_language_data): Likewise.
5709 * language.c (language_pass_by_reference): Update.
5710 (default_pass_by_reference): Delete.
5711 (unknown_language_data): Delete la_pass_by_reference
5712 initializer.
5713 (auto_language_data): Likewise.
5714 * language.h (struct language_data): Delete la_pass_by_reference
5715 field.
5716 (language_defn::pass_by_reference_info): New member function.
5717 (default_pass_by_reference): Delete declaration.
5718 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5719 initializer.
5720 * objc-lang.c (objc_language_data): Likewise.
5721 * opencl-lang.c (opencl_language_data): Likewise.
5722 * p-lang.c (pascal_language_data): Likewise.
5723 * rust-lang.c (rust_language_data): Likewise.
5724
15e5fd35
AB
57252020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5726
5727 * ada-lang.c (ada_read_var_value): Delete function, move
5728 implementation to...
5729 (ada_language::read_var_value): ...here.
5730 (ada_language_data): Delete la_read_var_value initializer.
5731 * c-lang.c (c_language_data): Likewise.
5732 (cplus_language_data): Likewise.
5733 (minimal_language_data): Likewise.
5734 * d-lang.c (d_language_data): Likewise.
5735 * f-lang.c (f_language_data): Likewise.
5736 * findvar.c (default_read_var_value): Rename to...
5737 (language_defn::read_var_value): ...this.
5738 * findvar.c (read_var_value): Update header comment, and change to
5739 call member function instead of function pointer.
5740 * go-lang.c (go_language_data): Likewise.
5741 * language.c (unknown_language_data): Delete la_read_var_value
5742 initializer.
5743 (auto_language_data): Likewise.
5744 * language.h (struct language_data): Delete la_read_var_value
5745 field.
5746 (language_defn::read_var_value): New member function.
5747 (default_read_var_value): Delete declaration.
5748 * m2-lang.c (m2_language_data): Delete la_read_var_value
5749 initializer.
5750 * objc-lang.c (objc_language_data): Likewise.
5751 * opencl-lang.c (opencl_language_data): Likewise.
5752 * p-lang.c (pascal_language_data): Likewise.
5753 * rust-lang.c (rust_language_data): Likewise.
5754 * value.h (default_read_var_value): Delete declaration.
5755
5bd40f2a
AB
57562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5757
5758 * ada-lang.c (ada_print_array_index): Delete function, move
5759 implementation to...
5760 (ada_language::print_array_index): ...here.
5761 (ada_language_data): Delete la_print_array_index initializer.
5762 * c-lang.c (c_language_data): Likewise.
5763 (cplus_language_data): Likewise.
5764 (minimal_language_data): Likewise.
5765 * d-lang.c (d_language_data): Likewise.
5766 * f-lang.c (f_language_data): Likewise.
5767 * go-lang.c (go_language_data): Likewise.
5768 * language.c (default_print_array_index): Delete function, move
5769 implementation to...
5770 (language_defn::print_array_index): ...here.
5771 (unknown_language_data): Delete la_print_array_index initializer.
5772 (auto_language_data): Likewise.
5773 * language.h (struct language_data): Delete la_print_array_index
5774 field.
5775 (language_defn::print_array_index): New member function.
5776 (LA_PRINT_ARRAY_INDEX): Update.
5777 (default_print_array_index): Delete declaration.
5778 * m2-lang.c (m2_language_data): Delete la_print_array_index
5779 initializer.
5780 * objc-lang.c (objc_language_data): Likewise.
5781 * opencl-lang.c (opencl_language_data): Likewise.
5782 * p-lang.c (pascal_language_data): Likewise.
5783 * rust-lang.c (rust_language_data): Likewise.
5784
0874fd07
AB
57852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5786
5787 * gdb/ada-lang.c (ada_language_defn): Convert to...
5788 (ada_language_data): ...this.
5789 (class ada_language): New class.
5790 (ada_language_defn): New static global.
5791 * gdb/c-lang.c (c_language_defn): Convert to...
5792 (c_language_data): ...this.
5793 (class c_language): New class.
5794 (c_language_defn): New static global.
5795 (cplus_language_defn): Convert to...
5796 (cplus_language_data): ...this.
5797 (class cplus_language): New class.
5798 (cplus_language_defn): New static global.
5799 (asm_language_defn): Convert to...
5800 (asm_language_data): ...this.
5801 (class asm_language): New class.
5802 (asm_language_defn): New static global.
5803 (minimal_language_defn): Convert to...
5804 (minimal_language_data): ...this.
5805 (class minimal_language): New class.
5806 (minimal_language_defn): New static global.
5807 * gdb/d-lang.c (d_language_defn): Convert to...
5808 (d_language_data): ...this.
5809 (class d_language): New class.
5810 (d_language_defn): New static global.
5811 * gdb/f-lang.c (f_language_defn): Convert to...
5812 (f_language_data): ...this.
5813 (class f_language): New class.
5814 (f_language_defn): New static global.
5815 * gdb/go-lang.c (go_language_defn): Convert to...
5816 (go_language_data): ...this.
5817 (class go_language): New class.
5818 (go_language_defn): New static global.
5819 * gdb/language.c (unknown_language_defn): Remove declaration.
5820 (current_language): Initialize to nullptr, real initialization is
5821 moved to _initialize_language.
5822 (languages): Delete global.
5823 (language_defn::languages): Define.
5824 (set_language_command): Use language_defn::languages.
5825 (set_language): Likewise.
5826 (range_error): Likewise.
5827 (language_enum): Likewise.
5828 (language_def): Likewise.
5829 (add_set_language_command): Use language_def::languages for the
5830 language list, and language_def to lookup language pointers.
5831 (skip_language_trampoline): Use language_defn::languages.
5832 (unknown_language_defn): Convert to...
5833 (unknown_language_data): ...this.
5834 (class unknown_language): New class.
5835 (unknown_language_defn): New static global.
5836 (auto_language_defn): Convert to...
5837 (auto_language_data): ...this.
5838 (class auto_language): New class.
5839 (auto_language_defn): New static global.
5840 (language_gdbarch_post_init): Use language_defn::languages.
5841 (_initialize_language): Initialize current_language.
5842 * gdb/language.h (struct language_defn): Rename to...
5843 (struct language_data): ...this.
5844 (struct language_defn): New.
5845 (auto_language_defn): Delete.
5846 (unknown_language_defn): Delete.
5847 (minimal_language_defn): Delete.
5848 (ada_language_defn): Delete.
5849 (asm_language_defn): Delete.
5850 (c_language_defn): Delete.
5851 (cplus_language_defn): Delete.
5852 (d_language_defn): Delete.
5853 (f_language_defn): Delete.
5854 (go_language_defn): Delete.
5855 (m2_language_defn): Delete.
5856 (objc_language_defn): Delete.
5857 (opencl_language_defn): Delete.
5858 (pascal_language_defn): Delete.
5859 (rust_language_defn): Delete.
5860 * gdb/m2-lang.c (m2_language_defn): Convert to...
5861 (m2_language_data): ...this.
5862 (class m2_language): New class.
5863 (m2_language_defn): New static global.
5864 * gdb/objc-lang.c (objc_language_defn): Convert to...
5865 (objc_language_data): ...this.
5866 (class objc_language): New class.
5867 (objc_language_defn): New static global.
5868 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5869 (opencl_language_data): ...this.
5870 (class opencl_language): New class.
5871 (opencl_language_defn): New static global.
5872 * gdb/p-lang.c (pascal_language_defn): Convert to...
5873 (pascal_language_data): ...this.
5874 (class pascal_language): New class.
5875 (pascal_language_defn): New static global.
5876 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5877 language pointer, update comment format.
5878 * gdb/rust-lang.c (rust_language_defn): Convert to...
5879 (rust_language_data): ...this.
5880 (class rust_language): New class.
5881 (rust_language_defn): New static global.
5882
1313c56e
AB
58832020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5884
5885 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5886 member variable.
5887 <m_stmt_at_address>: New member variable.
5888 (lnp_state_machine::record_line): Don't record some lines, update
5889 tracking of is_stmt at the same address.
5890 (lnp_state_machine::lnp_state_machine): Initialise new member
5891 variables.
5892
b7ed9f3d
ST
58932020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5894
5895 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5896 "-include gnu-nat-mig.h".
5897 * gnu-nat-mig.h: New file.
5898 * gnu-nat.c: Include "gnu-nat-mig.h".
5899 (exc_server, msg_reply_server, notify_server,
5900 process_reply_server): Remove declarations.
5901
14a8ad62
ST
59022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5903
5904 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5905 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5906 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5907 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5908 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5909 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5910 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5911 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5912 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5913 to gnu_nat_target class.
5914 * gnu-nat.c: Likewise.
5915 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5916 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5917 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5918 object.
5919 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5920 instead of `gnu_target'.
5921
0af5e106
ST
59222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5923
5924 * i386-gnu-tdep.c: Include "gdbcore.h"
5925 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5926 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5927 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5928 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5929 i386_gnu_sigcontext_addr): New functions
5930 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5931 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5932 tdep.
5933
078f2fc9
ST
59342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5935
5936 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5937 before fork_inferior call. Avoid calling it if target_is_pushed returns
5938 true.
5939
53dff92c
ST
59402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5941
5942 * gnu-nat.h (gnu_target): New variable declaration.
5943 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5944 gnu_target.
5945 * gnu-nat.c (gnu_target): New variable.
5946 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5947 add_thread_silent, and add_thread calls.
5948 (gnu_nat_target::create_inferior): Pass gnu_target to
5949 add_thread_silent, thread_change_ptid call.
5950 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5951 call.
5952
5a8b8627
ST
59532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5954
5955 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5956 (gnu_nat_target::find_memory_regions): Remove unused
5957 `old_address' variable.
5958
366f550a
ST
59592020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5960
5961 * gnu-nat.c: Include "gdbarch.h".
5962
f14871bf
ST
59632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5964
5965 * reply_mig_hack.awk (Error return): Cast function through
5966 void *, to bypass compiler function call check.
5967
c6887cfb
ST
59682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5969
5970 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5971 $(srcdir)/reply_mig_hack.awk.
5972
6930bffe
ST
59732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5974
5975 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5976
112c22ed
JG
59772020-05-30 Jonny Grant <jg@jguk.org>
5978
5979 * configure.ac (ACX_BUGURL): change bug URL to https.
5980
f68f85b5
PA
59812020-05-30 Pedro Alves <palves@redhat.com>
5982
5983 * cp-support.c (replace_typedefs_template): New.
5984 (replace_typedefs_qualified_name): Handle
5985 DEMANGLE_COMPONENT_TEMPLATE.
5986
976ca316
SM
59872020-05-29 Simon Marchi <simon.marchi@efficios.com>
5988
5989 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5990 dwarf2/index-cache.h, dwarf2/index-write.c,
5991 dwarf2/index-write.h, dwarf2/line-header.c,
5992 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5993 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5994 variables and fields from `dwarf2_per_objfile` to just
5995 `per_objfile` throughout.
5996
989ade05
SM
59972020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5998
5999 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6000 <push_dwarf_reg_entry_value>: Add comment.
6001
c47bae85
KB
60022020-05-28 Kevin Buettner <kevinb@redhat.com>
6003 Keith Seitz <keiths@redhat.com>
6004
6005 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6006 instead of PyEval_ReleaseLock.
6007 (class gdbpy_gil): Move to earlier in file.
6008 (finalize_python): Set gdb_python_initialized.
6009 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6010 when not initialized.
6011
44486dcf
SM
60122020-05-28 Simon Marchi <simon.marchi@efficios.com>
6013
6014 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6015 <push_dwarf_reg_entry_value>: Remove assert. Override
6016 per_objfile with caller_per_objfile.
6017
f030440d
TV
60182020-05-28 Tom de Vries <tdevries@suse.de>
6019
6020 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6021 PR gold/15646 workaround to symbol kind "type".
6022
f0fbb768
TT
60232020-05-27 Tom Tromey <tromey@adacore.com>
6024
6025 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6026
af0b2a3e
TT
60272020-05-27 Tom Tromey <tromey@adacore.com>
6028
6029 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6030 Use htab_find_with_hash.
6031 <add_abbrev>: Remove "abbrev_number" parameter.
6032 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6033 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6034 (hash_abbrev): Add comment.
6035 (abbrev_table::lookup_abbrev): Move to header file.
6036 (abbrev_table::read): Update.
6037
7d00ffec
TT
60382020-05-27 Tom Tromey <tromey@adacore.com>
6039
6040 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6041 method.
6042 <canonical_name>: New member.
6043 <raw_name>: Rename from "name".
6044 (partial_die_info): Initialize canonical_name.
6045 (scan_partial_symbols): Check raw_name.
6046 (partial_die_parent_scope, partial_die_full_name)
6047 (add_partial_symbol, add_partial_subprogram)
6048 (add_partial_enumeration, load_partial_dies): Use "name" method.
6049 (partial_die_info::name): New method.
6050 (partial_die_info::read, guess_partial_die_structure_name)
6051 (partial_die_info::fixup): Update.
6052
697bba18
TT
60532020-05-27 Tom Tromey <tromey@adacore.com>
6054
6055 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6056 <get_ref_die_offset>: Inline.
6057 <get_ref_die_offset_complaint>: New method.
6058 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6059 (attribute::get_ref_die_offset_complaint): Rename from
6060 get_ref_die_offset. Just issue complaint.
6061
c17ace43
HD
60622020-05-27 Hannes Domani <ssbssa@yahoo.de>
6063
6064 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6065
96445f0b
HD
60662020-05-27 Hannes Domani <ssbssa@yahoo.de>
6067
6068 * exec.c (exec_file_attach): Use errno value of first openp failure.
6069
ac637ec3
HD
60702020-05-27 Hannes Domani <ssbssa@yahoo.de>
6071
6072 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6073 Don't close thread handle.
6074
17ee85fc
TT
60752020-05-27 Tom Tromey <tom@tromey.com>
6076 Simon Marchi <simon.marchi@efficios.com>
6077
6078 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6079 shared_ptr.
6080 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6081 member.
6082 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6083 dwarf2_per_bfd_objfile_data_key>: New globals.
6084 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6085 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6086 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6087 shared.
6088 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6089 short-circuit when sharing.
6090 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6091 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6092
39b16f87
SM
60932020-05-27 Simon Marchi <simon.marchi@efficios.com>
6094
6095 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6096 to...
6097 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6098 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6099
fcf23d5b
SM
61002020-05-27 Simon Marchi <simon.marchi@efficios.com>
6101
6102 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6103 build_name_components, find_name_components_bounds>:
6104 Add per_objfile parameter.
6105 (struct mapped_index) <symbol_name_at>: Likewise.
6106 (struct mapped_debug_names): Remove constructor.
6107 <dwarf2_per_objfile>: Remove field.
6108 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6109 (mapped_index_base::find_name_components_bounds,
6110 mapped_index_base::build_name_components,
6111 dw2_expand_symtabs_matching_symbol): Likewise.
6112 (class mock_mapped_index) <symbol_name_at>: Likewise.
6113 (check_match): Likewise.
6114 (check_find_bounds_finds): Likewise.
6115 (test_mapped_index_find_name_component_bounds): Update.
6116 (CHECK_MATCH): Update.
6117 (dw2_expand_symtabs_matching): Update.
6118 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6119 per_objfile parameter.
6120 <find_vec_in_debug_names>: Likewise.
6121 <m_per_objfile>: New field.
6122 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6123 parameter.
6124 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6125 (dw2_debug_names_iterator::next): Update.
6126 (dw2_debug_names_lookup_symbol): Update.
6127 (dw2_debug_names_expand_symtabs_for_function): Update.
6128 (dw2_debug_names_map_matching_symbols): Update.
6129 (dw2_debug_names_expand_symtabs_matching): Update.
6130 (dwarf2_read_debug_names): Update.
6131
7188ed02
SM
61322020-05-27 Simon Marchi <simon.marchi@efficios.com>
6133
6134 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6135 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6136 move to dwarf2_per_objfile.
6137 <read_in_chain>: Remove.
6138 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6139 remove_all_cus, age_comp_units>: New methods.
6140 <m_dwarf2_cus>: New member.
6141 (struct dwarf2_per_cu_data) <cu>: Remove.
6142 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6143 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6144 moved to methods of dwarf2_per_objfile.
6145 (dwarf2_clear_marks): Remove.
6146 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6147 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6148 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6149 (dwarf2_per_objfile::remove_all_cus): New.
6150 (class free_cached_comp_units) <~free_cached_comp_units>:
6151 Update.
6152 (load_cu): Update.
6153 (dw2_do_instantiate_symtab): Adjust.
6154 (fill_in_sig_entry_from_dwo_entry): Adjust.
6155 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6156 (cutu_reader::cutu_reader): Likewise.
6157 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6158 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6159 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6160 and dwarf2_per_objfile::age_comp_units.
6161 (load_partial_comp_unit): Update.
6162 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6163 (process_queue): Likewise.
6164 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6165 backlink.
6166 (dwarf2_read_addr_index): Likewise.
6167 (follow_die_offset): Likewise.
6168 (dwarf2_fetch_die_loc_sect_off): Likewise.
6169 (dwarf2_fetch_constant_bytes): Likewise.
6170 (dwarf2_fetch_die_type_sect_off): Likewise.
6171 (follow_die_sig_1): Likewise.
6172 (load_full_type_unit): Likewise.
6173 (read_signatured_type): Likewise.
6174 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6175 (dwarf2_cu::~dwarf2_cu): Remove.
6176 (dwarf2_per_objfile::get_cu): New.
6177 (dwarf2_per_objfile::set_cu): New.
6178 (age_cached_comp_units): Rename to...
6179 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6180 to std::unordered_map.
6181 (free_one_cached_comp_unit): Rename to...
6182 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6183 to std::unordered_map.
6184 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6185 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6186 a dwarf2_per_objfile in data.
6187 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6188 (dwarf2_clear_marks): Remove.
6189
2e671100
SM
61902020-05-27 Simon Marchi <simon.marchi@efficios.com>
6191
6192 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6193 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6194 (init_tu_and_read_dwo_dies): Likewise.
6195 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6196 (cutu_reader::cutu_reader): Likewise.
6197 (load_partial_comp_unit): Likewise.
6198 (process_psymtab_comp_unit): Update.
6199 (build_type_psymtabs_1): Update.
6200 (process_skeletonless_type_unit): Update.
6201 (load_full_comp_unit): Update.
6202 (find_partial_die): Update.
6203 (dwarf2_read_addr_index): Update.
6204 (read_signatured_type): Update.
6205
2e6a9f79
SM
62062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6207
6208 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6209 m_header_read_in>: New fields.
6210 <get_header>: New method.
6211 * dwarf2/read.c (per_cu_header_read_in): Remove.
6212 (dwarf2_per_cu_data::get_header): New.
6213 (dwarf2_per_cu_data::addr_size): Update.
6214 (dwarf2_per_cu_data::offset_size): Update.
6215 (dwarf2_per_cu_data::ref_addr_size): Update.
6216
1b555f17
SM
62172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6218
6219 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6220 (dw2_do_instantiate_symtab): Update.
6221 (queue_and_load_all_dwo_tus): Change parameter from
6222 dwarf2_per_cu_data to dwarf2_cu.
6223 (dwarf2_fetch_die_loc_sect_off): Update.
6224 (dwarf2_fetch_constant_bytes): Update.
6225 (dwarf2_fetch_die_type_sect_off): Update.
6226
8fc0b21d
SM
62272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6228
6229 * dwarf2/read.c (process_full_comp_unit,
6230 process_full_type_unit): Remove per_cu, per_objfile paramters.
6231 Add dwarf2_cu parameter.
6232 (process_queue): Update.
6233
168c9250
SM
62342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6235
6236 * dwarf2/read.c (create_cu_from_index_list): Replace
6237 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6238 (create_cus_from_index_list): Likewise.
6239 (create_cus_from_index): Likewise.
6240 (create_signatured_type_table_from_index): Likewise.
6241 (create_cus_from_debug_names_list): Likewise.
6242 (create_cus_from_debug_names): Likewise.
6243 (dwarf2_read_gdb_index): Update.
6244 (dwarf2_read_debug_names): Update.
6245
e286671b
TT
62462020-05-27 Tom Tromey <tom@tromey.com>
6247 Simon Marchi <simon.marchi@efficios.com>
6248
6249 * dwarf2/read.h (struct dwarf2_per_objfile)
6250 <get_type_for_signatured_type, set_type_for_signatured_type>:
6251 New methods.
6252 <m_type_map>: New member.
6253 (struct signatured_type) <type>: Remove.
6254 * dwarf2/read.c
6255 (dwarf2_per_objfile::get_type_for_signatured_type,
6256 dwarf2_per_objfile::set_type_for_signatured_type): New.
6257 (get_signatured_type): Use new methods.
6258
8adb8487
TT
62592020-05-27 Tom Tromey <tom@tromey.com>
6260 Simon Marchi <simon.marchi@efficios.com>
6261
6262 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6263 (struct dwarf2_per_objfile) <type_units>: New member.
6264 <get_type_unit_group_unshareable>: New method.
6265 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6266 num_symtabs, symtabs>: Remove; move to
6267 type_unit_group_unshareable.
6268 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6269 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6270 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6271
127bbf4b
SM
62722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6273
6274 * dwarf2/read.h (struct dwarf2_per_cu_data):
6275 <dwarf2_per_objfile>: Remove.
6276 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6277 dwarf2_per_objfile.
6278 (create_signatured_type_table_from_index): Likewise.
6279 (create_signatured_type_table_from_debug_names): Likewise.
6280 (create_debug_type_hash_table): Likewise.
6281 (fill_in_sig_entry_from_dwo_entry): Likewise.
6282 (create_type_unit_group): Likewise.
6283 (read_comp_units_from_section): Likewise.
6284 (create_cus_hash_table): Likewise.
6285
f6e649dd
SM
62862020-05-27 Simon Marchi <simon.marchi@efficios.com>
6287
6288 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6289 dwarf2_per_cu_data::dwarf2_per_objfile.
6290 (compute_compunit_symtab_includes): Likewise.
6291 (dwarf2_cu::start_symtab): Likewise.
6292
aa66c379
SM
62932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6294
6295 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6296 parameter.
6297 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6298 (read_namespace_alias): Update.
6299 (lookup_die_type): Update.
6300 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6301 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6302 Update.
6303 (disassemble_dwarf_expression): Update.
6304
120ce1b5
SM
63052020-05-27 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * dwarf2/read.h (struct dwarf2_queue_item): Add
6308 dwarf2_per_objfile parameter, assign new parameter.
6309 <per_objfile>: New field.
6310 * dwarf2/read.c (free_one_cached_comp_unit): Add
6311 dwarf2_per_objfile parameter.
6312 (queue_comp_unit): Likewise.
6313 (dw2_do_instantiate_symtab): Update.
6314 (process_psymtab_comp_unit): Update.
6315 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6316 (process_imported_unit_die): Update.
6317 (queue_and_load_dwo_tu): Update.
6318 (follow_die_offset): Update.
6319 (follow_die_sig_1): Update.
6320
9f47c707
SM
63212020-05-27 Simon Marchi <simon.marchi@efficios.com>
6322
6323 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6324 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6325 (read_call_site_scope): Assign per_objfile.
6326 (dwarf2_per_cu_data::objfile): Remove.
6327 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6328 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6329 dwarf2_per_objfile parameter.
6330 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6331 dwarf2_per_objfile parameter.
6332 (dwarf_expr_reg_to_entry_parameter): Add output
6333 dwarf2_per_objfile parameter.
6334 (locexpr_get_frame_base): Update.
6335 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6336 <push_dwarf_reg_entry_value>: Update.
6337 <call_site_to_target_addr>: Update.
6338 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6339 parameter.
6340 (value_of_dwarf_reg_entry): Update.
6341 (rw_pieced_value): Update.
6342 (indirect_synthetic_pointer): Update.
6343 (dwarf2_evaluate_property): Update.
6344 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6345 parameter.
6346 (locexpr_read_variable): Update.
6347 (locexpr_get_symbol_read_needs): Update.
6348 (loclist_read_variable): Update.
6349
14095eb3
SM
63502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6351
6352 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6353 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6354 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6355 parameter.
6356 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6357 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6358 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6359 parameter.
6360 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6361 sect_variable_value): Add dwarf2_per_objfile parameter.
6362 (class dwarf_evaluate_loc_desc) <dwarf_call,
6363 dwarf_variable_value>: Update.
6364 (fetch_const_value_from_synthetic_pointer): Add
6365 dwarf2_per_objfile parameter.
6366 (fetch_const_value_from_synthetic_pointer): Update.
6367 (coerced_pieced_ref): Update.
6368 (class symbol_needs_eval_context) <dwarf_call,
6369 dwarf_variable_value>: Update.
6370 (dwarf2_compile_expr_to_ax): Update.
6371
3c3cd3d4
SM
63722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6373
6374 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6375 parameter.
6376 (dwarf2_evaluate_loc_desc_full): Update.
6377
82ca3f51
SM
63782020-05-27 Simon Marchi <simon.marchi@efficios.com>
6379
6380 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6381 parameter.
6382 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6383 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6384 dwarf2_per_objfile parameter.
6385 (decode_debug_loc_dwo_addresses): Likewise.
6386 (dwarf2_find_location_expression): Update.
6387 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6388 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6389 parameter.
6390 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6391 parameter.
6392 (locexpr_describe_location_1): Likewise.
6393 (locexpr_describe_location): Update.
6394
4b167ea1
SM
63952020-05-27 Simon Marchi <simon.marchi@efficios.com>
6396
6397 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6398 Remove.
6399 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6400 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6401 (dwarf2_compile_property_to_c): Update.
6402 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6403 use text offset from objfile.
6404 (locexpr_tracepoint_var_ref): Update.
6405 (locexpr_generate_c_location): Update.
6406 (loclist_describe_location): Update.
6407 (loclist_tracepoint_var_ref): Update.
6408 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6409 dwarf2_per_objfile parameter.
6410 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6411 use text offset from objfile.
6412 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6413
89b07335
SM
64142020-05-27 Simon Marchi <simon.marchi@efficios.com>
6415
6416 * dwarf2/expr.h (struct dwarf_expr_context)
6417 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6418 <offset>: Remove.
6419 <per_objfile>: New member.
6420 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6421 dwarf2_per_objfile parameter. Don't set offset, set
6422 per_objfile.
6423 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6424 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6425 a dwarf2_per_objfile object instead of an offset.
6426 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6427 constructor.
6428 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6429 to dwarf2_expr_executor constructor. Don't set offset.
6430 (dwarf2_fetch_cfa_info): Update.
6431 (struct dwarf2_frame_cache) <text_offset>: Remove.
6432 <per_objfile>: New field.
6433 (dwarf2_frame_cache): Update.
6434 (dwarf2_frame_prev_register): Update.
6435 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6436 <dwarf_evaluate_loc_desc>: Add constructor.
6437 (dwarf2_evaluate_loc_desc_full): Update.
6438 (dwarf2_locexpr_baton_eval): Update.
6439 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6440 Add constructor.
6441 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6442
293e7e51
SM
64432020-05-27 Simon Marchi <simon.marchi@efficios.com>
6444
6445 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6446 addr_sized_int_type>: Move to dwarf2_cu.
6447 <int_type>: Move to dwarf2_per_objfile.
6448 (struct dwarf2_per_objfile) <int_type>: Move here.
6449 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6450 addr_sized_int_type>: Move here.
6451 (read_func_scope): Update.
6452 (read_array_type): Update.
6453 (read_tag_string_type): Update.
6454 (attr_to_dynamic_prop): Update.
6455 (dwarf2_per_cu_data::int_type): Rename to...
6456 (dwarf2_per_objfile::int_type): ... this.
6457 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6458 (dwarf2_cu::addr_sized_int_type): ... this.
6459 (read_subrange_type): Update.
6460 (dwarf2_per_cu_data::addr_type): Rename to...
6461 (dwarf2_cu::addr_type): ... this.
6462 (set_die_type): Update.
6463
64874a40
SM
64642020-05-27 Simon Marchi <simon.marchi@efficios.com>
6465
6466 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6467 data through per_cu->cu.
6468
4ab09049
SM
64692020-05-27 Simon Marchi <simon.marchi@efficios.com>
6470
6471 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6472 dwarf2_per_cu_data parameter fo dwarf2_cu.
6473 (lookup_dwo_type_unit): Likewise.
6474 (read_cutu_die_from_dwo): Likewise.
6475 (lookup_dwo_unit): Likewise.
6476 (open_and_init_dwo_file): Likewise.
6477 (lookup_dwo_cutu): Likewise.
6478 (lookup_dwo_comp_unit): Likewise.
6479 (lookup_dwo_type_unit): Likewise.
6480 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6481 (cutu_reader::cutu_reader): Update.
6482
47b14e86
SM
64832020-05-27 Simon Marchi <simon.marchi@efficios.com>
6484
6485 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6486 parameter.
6487 (process_full_type_unit): Likewise.
6488 (process_queue): Update.
6489
43182c09
SM
64902020-05-27 Simon Marchi <simon.marchi@efficios.com>
6491
6492 * dwarf2/read.c (recursively_compute_inclusions): Add
6493 dwarf2_per_objfile parameter.
6494 (compute_compunit_symtab_includes): Likewise.
6495 (process_cu_includes): Update.
6496
7aa104c4
SM
64972020-05-27 Simon Marchi <simon.marchi@efficios.com>
6498
6499 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6500 parameter.
6501 (create_type_unit_group): Update.
6502 (process_psymtab_comp_unit_reader): Update.
6503 (build_type_psymtabs_reader): Update.
6504
e3beb21d
SM
65052020-05-27 Simon Marchi <simon.marchi@efficios.com>
6506
6507 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6508 object through m_this_cu->cu.
6509
d460f660
SM
65102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6511
6512 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6513 the info parameter.
6514 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6515
ab432490
SM
65162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6517
6518 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6519 per_objfile parameter.
6520 (load_full_type_unit): Add per_objfile parameter.
6521 (read_signatured_type): Likewise.
6522 (load_full_comp_unit): Likewise.
6523 (load_cu): Likewise.
6524 (dw2_do_instantiate_symtab): Likewise.
6525 (dw2_get_file_names): Likewise.
6526 (dw2_map_symtabs_matching_filename): Update.
6527 (dw_expand_symtabs_matching_file_matcher): Update.
6528 (dw2_map_symbol_filenames): Update.
6529 (process_psymtab_comp_unit): Add per_objfile parameter.
6530 (build_type_psymtabs_1): Update.
6531 (process_skeletonless_type_unit): Update.
6532 (dwarf2_build_psymtabs_hard): Update.
6533 (load_partial_comp_unit): Add per_objfile parameter.
6534 (scan_partial_symbols): Update.
6535 (load_full_comp_unit): Add per_objfile parameter.
6536 (process_imported_unit_die): Update.
6537 (create_cus_hash_table): Update.
6538 (find_partial_die): Update.
6539 (dwarf2_read_addr_index): Update.
6540 (follow_die_offset): Update.
6541 (dwarf2_fetch_die_loc_sect_off): Update.
6542 (dwarf2_fetch_constant_bytes): Update.
6543 (dwarf2_fetch_die_type_sect_off): Update.
6544 (follow_die_sig_1): Update.
6545 (load_full_type_unit): Add per_objfile parameter.
6546 (read_signatured_type): Likewise.
6547
313bad1b
SM
65482020-05-27 Simon Marchi <simon.marchi@efficios.com>
6549
6550 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6551 of objfile_name.
6552
c3699833
SM
65532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6554
6555 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6556 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6557 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6558 field.
6559 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6560 (create_cus_from_index): Update.
6561 (dwarf2_read_gdb_index): Update.
6562 (create_cus_from_debug_names): Update.
6563 (dwarf2_read_debug_names): Update.
6564 (get_abbrev_section_for_cu): Update.
6565 (create_all_comp_units): Update.
6566 (read_attribute_value): Update.
6567 (get_debug_line_section): Update.
6568 * dwarf2/index-cache.c (index_cache::store): Update.
6569 * dwarf2/index-write.c (save_gdb_index_command): Update.
6570 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6571
1859c670
SM
65722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6573
6574 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6575 member.
6576 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6577 dwarf2_per_cu_data::per_bfd.
6578 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6579 (create_type_unit_group): Likewise.
6580 (queue_comp_unit): Remove reference to
6581 per_cu->dwarf2_per_objfile.
6582 (maybe_queue_comp_unit): Likewise.
6583 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6584 (create_cus_hash_table): Assign new field.
6585
5e22e966
SM
65862020-05-27 Simon Marchi <simon.marchi@efficios.com>
6587
6588 * dwarf2/read.c: Replace
6589 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6590 dwarf2_cu->per_objfile throughout.
6591
97a1449a
SM
65922020-05-27 Simon Marchi <simon.marchi@efficios.com>
6593
6594 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6595 parameter, don't use per_cu->dwarf2_per_objfile.
6596 (dw2_instantiate_symtab): Likewise.
6597 (dw2_find_last_source_symtab): Update.
6598 (dw2_map_expand_apply): Update.
6599 (dw2_lookup_symbol): Update.
6600 (dw2_expand_symtabs_for_function): Update.
6601 (dw2_expand_all_symtabs): Update.
6602 (dw2_expand_symtabs_with_fullname): Update.
6603 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6604 don't use per_cu->dwarf2_per_objfile.
6605 (dw2_expand_marked_cus): Update.
6606 (dw2_find_pc_sect_compunit_symtab): Update.
6607 (dw2_debug_names_lookup_symbol): Update.
6608 (dw2_debug_names_expand_symtabs_for_function): Update.
6609 (dw2_debug_names_map_matching_symbols): Update.
6610 (dwarf2_psymtab::expand_psymtab): Update.
6611
9e021579
SM
66122020-05-27 Simon Marchi <simon.marchi@efficios.com>
6613
6614 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6615 <per_objfile>: New member.
6616 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6617 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6618 call to dwarf2_cu.
6619 (cutu_reader::cutu_reader): Update.
6620 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6621
ae090bdb
SM
66222020-05-27 Simon Marchi <simon.marchi@efficios.com>
6623
6624 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6625 struct dwarf2_per_objfile.
6626 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6627 dwarf2_per_bfd.
6628 * dwarf2/read.c (set_die_type): Update.
6629 (get_die_type_at_offset): Update.
6630
af758d11
SM
66312020-05-27 Tom Tromey <tom@tromey.com>
6632 Simon Marchi <simon.marchi@efficios.com>
6633
6634 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6635 method.
6636 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6637 get_symtab, set_symtab>: New methods.
6638 <m_symtabs>: New field.
6639 (struct dwarf2_psymtab): Derive from partial_symtab.
6640 <readin_p, get_compunit_symtab>: Declare methods.
6641 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6642 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6643 New methods.
6644 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6645 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6646 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6647 (dw2_symtab_iter_next, dw2_print_stats)
6648 (dw2_expand_symtabs_with_fullname)
6649 (dw2_expand_symtabs_matching_one)
6650 (dw_expand_symtabs_matching_file_matcher)
6651 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6652 (dw2_debug_names_iterator::next)
6653 (dw2_debug_names_map_matching_symbols)
6654 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6655 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6656 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6657 New methods.
6658 (get_compunit_symtab, process_full_comp_unit)
6659 (process_full_type_unit): Update.
6660 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6661
5989a64e
SM
66622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6663
6664 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6665 then introduce a new dwarf2_per_objfile type.
6666 <read_line_string>: Move to the new dwarf2_per_objfile type.
6667 <objfile>: Likewise.
6668 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6669 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6670 dwarf2_per_objfile->per_bfd.
6671 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6672 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6673 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6674 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6675 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6676 (dwarf2_per_objfile::locate_sections): Rename to...
6677 (dwarf2_per_bfd::locate_sections): ... this.
6678 (dwarf2_per_objfile::get_cutu): Rename to...
6679 (dwarf2_per_bfd::get_cutu): ... this.
6680 (dwarf2_per_objfile::get_cu): Rename to...
6681 (dwarf2_per_bfd::get_cu): ... this.
6682 (dwarf2_per_objfile::get_tu): Rename to...
6683 (dwarf2_per_bfd::get_tu): ... this.
6684 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6685 (dwarf2_per_bfd::allocate_per_cu): ... this.
6686 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6687 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6688 (get_gdb_index_contents_ftype): Change parameter from
6689 dwarf2_per_objfile to dwarf2_per_bfd.
6690 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6691 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6692
a50264ba
TT
66932020-05-27 Tom Tromey <tom@tromey.com>
6694 Simon Marchi <simon.marchi@efficios.com>
6695
6696 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6697 (allocate_piece_closure): Set "per_objfile" member.
6698 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6699 (locexpr_describe_location, loclist_describe_location): Use new
6700 member.
6701 * dwarf2/read.c (read_call_site_scope)
6702 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6703 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6704 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6705 handle_data_member_location): Set per_objfile member.
6706 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6707 member.
6708 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6709
d3473f0c
TT
67102020-05-27 Tom Tromey <tom@tromey.com>
6711
6712 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6713 allocate_signatured_type>: Declare new methods.
6714 <m_num_psymtabs>: New member.
6715 (struct dwarf2_per_cu_data) <index>: New member.
6716 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6717 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6718 (create_cu_from_index_list): Use allocate_per_cu.
6719 (create_signatured_type_table_from_index)
6720 (create_signatured_type_table_from_debug_names)
6721 (create_debug_type_hash_table, add_type_unit)
6722 (read_comp_units_from_section): Use allocate_signatured_type.
6723
5717c425
TT
67242020-05-27 Tom Tromey <tom@tromey.com>
6725
6726 * psymtab.c (partial_map_expand_apply)
6727 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6728 (psym_lookup_global_symbol_language)
6729 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6730 (psym_print_stats, psym_expand_symtabs_for_function)
6731 (psym_map_symbol_filenames, psym_map_matching_symbols)
6732 (psym_expand_symtabs_matching)
6733 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6734 (maintenance_check_psymtabs): Update.
6735 * psympriv.h (struct partial_symtab) <readin_p,
6736 get_compunit_symtab>: Add objfile parameter.
6737 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6738 Likewise.
6739 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6740 get_compunit_symtab>: Likewise.
6741 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6742
45940949
TT
67432020-05-27 Tom Tromey <tom@tromey.com>
6744
6745 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6746 member.
6747 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6748 (create_cu_from_index_list)
6749 (create_signatured_type_table_from_index)
6750 (create_signatured_type_table_from_debug_names)
6751 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6752 (dwarf2_create_include_psymtab)
6753 (create_debug_type_hash_table, add_type_unit)
6754 (create_type_unit_group, read_comp_units_from_section)
6755 (dwarf2_compute_name, create_cus_hash_table)
6756 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6757 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6758 obstack.
6759 (dw2_get_real_path): Likewise. Change argument to
6760 dwarf2_per_objfile.
6761
f8c6d152
LM
67622020-05-27 Luis Machado <luis.machado@linaro.org>
6763
6764 PR tdep/26000
6765 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6766 for ldrd (immediate).
6767
e98d2e6d
PW
67682020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6769
6770 * command.h: Add comment giving the name of class_tui.
6771 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6772 create the fake command for the help for class_tui.
6773
53a47a3e
TT
67742020-05-26 Tom Tromey <tromey@adacore.com>
6775
6776 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6777 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6778 (val_atr): New function.
6779 (value_val_atr): Use it.
6780 * ada-valprint.c (print_optional_low_bound): Change low bound
6781 handling for enums.
6782 (val_print_packed_array_elements): Don't call discrete_position.
6783 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6784 discrete_position for enum types.
6785 * language.c (default_print_array_index): Change type.
6786 * language.h (struct language_defn) <la_print_array_index>: Add
6787 index_type parameter, change type of index_value.
6788 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6789 (default_print_array_index): Update.
6790 * valprint.c (maybe_print_array_index): Don't call
6791 value_from_longest. Update.
6792 (value_print_array_elements): Don't call discrete_position.
6793
0bc2354b
TT
67942020-05-26 Tom Tromey <tromey@adacore.com>
6795
6796 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6797 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6798
1218a4bf
CDA
67992020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6800
6801 PR gdb/13519
6802 * avr-tdep.c (avr_integer_to_address): Return data or code
6803 address accordingly to the second 'type' argument of the
6804 function.
6805
92651b1d
MW
68062020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6807
6808 * infcmd.c, inferior.h: (construct_inferior_arguments):
6809 Moved function from here to gdbsupport/common-inferior.{h,cc}
6810
0a4f5f8c
TT
68112020-05-23 Tom Tromey <tom@tromey.com>
6812
6813 Revert commit eca1f90c:
6814 * NEWS: Remove entry for completion styling.
6815 * completer.c (_rl_completion_prefix_display_length): Move
6816 declaration later.
6817 (gdb_fnprint): Revert.
6818 (gdb_display_match_list_1): Likewise.
6819 * cli/cli-style.c (completion_prefix_style)
6820 (completion_difference_style, completion_suffix_style): Remove.
6821 (_initialize_cli_style): Revert.
6822 * cli/cli-style.h (completion_prefix_style)
6823 (completion_difference_style, completion_suffix_style): Don't
6824 declare.
6825
e08bd6c5
PA
68262020-05-24 Pedro Alves <palves@redhat.com>
6827
6828 * symtab.c (completion_list_add_name): Return boolean indication
6829 of whether the symbol matched.
6830 (completion_list_add_symbol): Don't try to remove C++ aliases if
6831 the symbol didn't match in the first place.
6832 * symtab.h (completion_list_add_name): Return bool.
6833
ceacbf6e
SM
68342020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6835
6836 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6837 type::field.
6838
26f16254
JB
68392020-05-23 Joel Brobecker <brobecker@adacore.com>
6840
6841 GDB 9.2 released.
6842
eca1f90c
TT
68432020-05-23 Tom Tromey <tom@tromey.com>
6844
6845 * NEWS: Add entry for completion styling.
6846 * completer.c (_rl_completion_prefix_display_length): Move
6847 declaration earlier.
6848 (gdb_fnprint): Use completion_style.
6849 (gdb_display_match_list_1): Likewise.
6850 * cli/cli-style.c (completion_prefix_style)
6851 (completion_difference_style, completion_suffix_style): New
6852 globals.
6853 (_initialize_cli_style): Register new globals.
6854 * cli/cli-style.h (completion_prefix_style)
6855 (completion_difference_style, completion_suffix_style): Declare.
6856
51e2cfa2
PA
68572020-05-23 Pedro Alves <palves@redhat.com>
6858
6859 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6860 (parse_escape): Use ISDIGIT instead of isdigit.
6861 (puts_debug): Use gdb_isprint instead of isprint.
6862 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6863 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6864 ISSPACE instead of isspace.
6865 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6866 instead of isspace.
6867 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6868 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6869 instead of isxdigit and ISDIGIT instead of isdigit.
6870
80fc5e77
SM
68712020-05-22 Simon Marchi <simon.marchi@efficios.com>
6872
6873 * gdbtypes.h (struct type) <field>: New method.
6874 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6875 or type::field.
6876
3cabb6b0
SM
68772020-05-22 Simon Marchi <simon.marchi@efficios.com>
6878
6879 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6880 (TYPE_FIELDS): Use type::fields. Change all call sites that
6881 modify the propery to use type::set_fields instead.
6882
1f704f76
SM
68832020-05-22 Simon Marchi <simon.marchi@efficios.com>
6884
6885 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6886 type::num_fields instead.
6887
5e33d5f4
SM
68882020-05-22 Simon Marchi <simon.marchi@efficios.com>
6889
6890 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6891 methods.
6892 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6893 that modify the number of fields to use type::set_num_fields
6894 instead.
6895
9392ebb3
TT
68962020-05-22 Tom Tromey <tromey@adacore.com>
6897
6898 * compile/compile-object-load.h (munmap_list_free): Don't
6899 declare.
6900
7c13f4e8
AB
69012020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6902
6903 * annotate.c (annotate_source_line): Update return type, add call
6904 to update current symtab and line.
6905 * annotate.h (annotate_source_line): Update return type, and
6906 extend header comment.
6907 * source.c (info_line_command): Check annotation_level before
6908 calling annotate_source_line.
6909 * stack.c (print_frame_info): If calling annotate_source_line
6910 returns true, then don't print any other source line information.
6911
aa370940
SM
69122020-05-21 Simon Marchi <simon.marchi@efficios.com>
6913
6914 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6915
84d53fa9
SM
69162020-05-21 Simon Marchi <simon.marchi@efficios.com>
6917
6918 * coffread.c (patch_type): Remove NULL check before xfree.
6919 * corefile.c (set_gnutarget): Likewise.
6920 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6921 * exec.c (build_section_table): Likewise.
6922 * remote.c (remote_target::pass_signals): Likewise.
6923 * utils.c (n_spaces): Likewise.
6924 * cli/cli-script.c (document_command): Likewise.
6925 * i386-windows-tdep.c (core_process_module_section): Likewise.
6926 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6927
9d428aae
SM
69282020-05-20 Simon Marchi <simon.marchi@efficios.com>
6929
6930 * symfile.c (reread_symbols): Clear objfile's section_offsets
6931 vector and section indices, re-compute them by calling
6932 sym_offsets.
6933
250106a7
TT
69342020-05-20 Tom Tromey <tromey@adacore.com>
6935
6936 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6937 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6938
9a0bacfb
TV
69392020-05-20 Tom de Vries <tdevries@suse.de>
6940
6941 PR symtab/25833
6942 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6943
7b958a48
AM
69442020-05-20 Alan Modra <amodra@gmail.com>
6945
6946 PR 25993
6947 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6948 bfd_set_filename.
6949 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6950 passed to bfd_set_filename.
6951 * symfile-mem.c (add_vsyscall_page): Likewise for string
6952 passed to symbol_file_add_from_memory.
6953 (symbol_file_add_from_memory): Make name param a const char* and
6954 don't strdup.
6955
c7e97679
AM
69562020-05-20 Alan Modra <amodra@gmail.com>
6957
6958 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6959 rather than accessing bfd->filename directly.
6960 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6961 and use bfd_section_name.
6962 * dwarf2/frame.c (decode_frame_entry): Likewise.
6963 * exec.c (exec_set_section_address): Likewise.
6964 * solib-aix.c (solib_aix_bfd_open): Likewise.
6965 * stap-probe.c (get_stap_base_address): Likewise.
6966 * symfile.c (reread_symbols): Likewise.
6967
563c591b
TT
69682020-05-19 Tom Tromey <tromey@adacore.com>
6969
6970 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6971
f408d82c
SM
69722020-05-19 Simon Marchi <simon.marchi@efficios.com>
6973
6974 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6975
98c59b52
PA
69762020-05-19 Pedro Alves <palves@redhat.com>
6977
6978 * NEWS (set exec-file-mismatch): Adjust entry.
6979 * exec.c: Include "build-id.h".
6980 (validate_exec_file): Try to match build IDs instead of filenames.
6981 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6982 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6983 and pass down 'warn_if_slow'.
6984 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6985 gdb_bfd_open_closure to pass it down.
6986 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6987
4111f652
PA
69882020-05-19 Pedro Alves <palves@redhat.com>
6989
6990 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6991 * target.c (target_fileio_open_1): Rename to target_fileio_open
6992 and make extern. Use bool.
6993 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6994 (target_fileio_read_alloc_1): Adjust.
6995 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6996 (target_fileio_open_warn_if_slow): Delete declaration.
6997
ad80db5b
PA
69982020-05-19 Pedro Alves <palves@redhat.com>
6999
7000 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7001 Adjust all callers.
7002
1d6ce4d3
YS
70032020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7004
7005 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7006 whether disp is negative.
7007
9005fbbb
SM
70082020-05-19 Simon Marchi <simon.marchi@efficios.com>
7009
7010 * symfile.h (struct symfile_segment_data)
7011 <~symfile_segment_data>: Remove.
7012 <segment_info>: Change to std::vector.
7013 * symfile.c (default_symfile_segments): Update.
7014 * elfread.c (elf_symfile_segments): Update.
7015
68b888ff
SM
70162020-05-19 Simon Marchi <simon.marchi@efficios.com>
7017
7018 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7019 <segments>: New.
7020 <segment_bases, segment_sizes>: Remove.
7021 * symfile.c (default_symfile_segments): Update.
7022 * elfread.c (elf_symfile_segments): Update.
7023 * remote.c (remote_target::get_offsets): Update.
7024 * solib-target.c (solib_target_relocate_section_addresses):
7025 Update.
7026
62982abd
SM
70272020-05-19 Simon Marchi <simon.marchi@efficios.com>
7028
7029 * symfile.h (struct symfile_segment_data): Initialize fields.
7030 <~symfile_segment_data>: Add.
7031 (symfile_segment_data_up): New.
7032 (struct sym_fns) <sym_segments>: Return a
7033 symfile_segment_data_up.
7034 (default_symfile_segments): Return a symfile_segment_data_up.
7035 (free_symfile_segment_data): Remove.
7036 (get_symfile_segment_data): Return a symfile_segment_data_up.
7037 * symfile.c (default_symfile_segments): Likewise.
7038 (get_symfile_segment_data): Likewise.
7039 (free_symfile_segment_data): Remove.
7040 (symfile_find_segment_sections): Update.
7041 * elfread.c (elf_symfile_segments): Return a
7042 symfile_segment_data_up.
7043 * remote.c (remote_target::get_offsets): Update.
7044 * solib-target.c (solib_target_relocate_section_addresses):
7045 Update.
7046 * symfile-debug.c (debug_sym_segments): Return a
7047 symfile_segment_data_up.
7048
7f204339
RO
70492020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7050
e52a0f1b
RO
7051 PR build/25981
7052 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7053 Hardcode register numbers.
7054
7f204339
RO
7055 PR build/25981
7056 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7057 procfs_find_LDT_entry): Remove.
7058 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7059 procfs_find_LDT_entry): Remove.
7060 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7061 Remove.
7062
7f32a4d5
PA
70632020-05-17 Pedro Alves <palves@redhat.com>
7064 Andrew Burgess <andrew.burgess@embecosm.com>
7065 Keno Fischer <keno@juliacomputing.com>
7066
7067 PR gdb/25741
7068 * breakpoint.c (build_target_condition_list): Update comments.
7069 (build_target_command_list): Update comments and skip matching
7070 locations.
7071 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7072 a separate function. Simplify "set breakpoint auto-hw off"
7073 handling.
7074 (insert_breakpoints): Update comment.
7075 (tracepoint_locations_match): New parameter. For breakpoints,
7076 compare location types too, if the caller wants to.
7077 (handle_automatic_hardware_breakpoints): New functions.
7078 (bp_location_is_less_than): Also sort by location type and
7079 hardware breakpoint length.
7080 (update_global_location_list): Handle "set breakpoint auto-hw on"
7081 here.
7082 (update_breakpoint_locations): Ask breakpoint_locations_match to
7083 ignore location types.
7084
7d93a1e0
SM
70852020-05-16 Simon Marchi <simon.marchi@efficios.com>
7086
7087 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7088 type::name instead.
7089
d0e39ea2
SM
70902020-05-16 Simon Marchi <simon.marchi@efficios.com>
7091
7092 * gdbtypes.h (struct type) <name, set_name>: New methods.
7093 (TYPE_CODE): Use type::name. Change all call sites used to set
7094 the name to use type::set_name instead.
7095
2dab0c7b
TT
70962020-05-16 Tom Tromey <tom@tromey.com>
7097
7098 * top.c (quit_force): Update.
7099 * infrun.c (handle_no_resumed): Update.
7100 * top.h (all_uis): New function.
7101 (ALL_UIS): Remove.
7102
59f7bd8d
SM
71032020-05-16 Simon Marchi <simon.marchi@efficios.com>
7104
7105 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7106
9bf058f0
PA
71072020-05-16 Pedro Alves <palves@redhat.com>
7108
7109 * ia64-linux-nat.c
7110 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7111 Declare method.
7112 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7113
8f86ae1a
SM
71142020-05-15 Simon Marchi <simon.marchi@efficios.com>
7115
7116 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7117 (sparc64_adi_info): Likewise.
7118
d6bc0792
TT
71192020-05-15 Tom Tromey <tom@tromey.com>
7120
7121 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7122 block_objfile.
7123 (lookup_objfile_from_block): Remove.
7124 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7125 (lookup_global_symbol): Use block_objfile.
7126 * symtab.h (lookup_objfile_from_block): Don't declare.
7127 * printcmd.c (clear_dangling_display_expressions): Use
7128 block_objfile.
7129 * parse.c (operator_check_standard): Use block_objfile.
7130
8c14c3a3
TT
71312020-05-15 Tom Tromey <tom@tromey.com>
7132
7133 * language.c (language_alloc_type_symbol): Set
7134 SYMBOL_SECTION.
7135 * symtab.c (initialize_objfile_symbol): Remove.
7136 (allocate_symbol): Remove.
7137 (allocate_template_symbol): Remove.
7138 * dwarf2/read.c (fixup_go_packaging): Use "new".
7139 (new_symbol): Use "new".
7140 (read_variable): Don't call initialize_objfile_symbol. Use
7141 "new".
7142 (read_func_scope): Use "new".
7143 * xcoffread.c (process_xcoff_symbol): Don't call
7144 initialize_objfile_symbol.
7145 (SYMBOL_DUP): Remove.
7146 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7147 "new".
7148 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7149 (allocate_template_symbol): Don't declare.
7150 (struct symbol): Add copy constructor. Change defaults.
7151 * jit.c (finalize_symtab): Use "new".
7152 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7153 Use "new".
7154 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7155 (common_block_end): Use "new".
7156 * mdebugread.c (parse_symbol): Use "new".
7157 (new_symbol): Likewise.
7158
5b4a1a8d
PW
71592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7160
7161 * NEWS: Mention changes to help and apropos.
7162
57b4f16e
PW
71632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7164
7165 * command.h (enum command_class): Improve comments, document
7166 that class_alias is for user-defined aliases, give the class
7167 name for each class, remove unused class_xdb.
7168 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7169 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7170 by a precise class.
7171 * infcmd.c (_initialize_infcmd): Likewise.
7172 * reverse.c (_initialize_reverse): Likewise.
7173 * stack.c (_initialize_stack): Likewise.
7174 * symfile.c (_initialize_symfile): Likewise.
7175 * tracepoint.c (_initialize_tracepoint): Likewise.
7176
7c05caf7
PW
71772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7178
7179 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7180 when their aliased command is traversed.
7181 (help_cmd): Add fput_command_names_styled call to
7182 output command name and aliases when command has an alias.
7183
3b3aaacb
PW
71842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7185
7186 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7187 * cli/cli-decode.c (help_cmd_list): Declare as static,
7188 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7189 a command together with the command.
7190 (fput_command_name_styled, fput_command_names_styled): New functions.
7191 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7192 fput_command_name_styled.
7193 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7194 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7195
7aa1b46f
PW
71962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7197
7198 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7199 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7200 * command.h (cmd_show_list): Likewise.
7201 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7202 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7203
89bcba74
PW
72042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7205
7206 * unittests/command-def-selftests.c (traverse_command_structure):
7207 Verify all commands of a list have the same prefix command and
7208 that only the top cmdlist commands have a null prefix.
7209
3f4d92eb
PW
72102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7211
7212 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7213 as prefix, not one of its aliases.
7214 (set_cmd_prefix): Remove.
7215 (do_add_cmd): Centralize the setting of the prefix of a command, when
7216 command is defined after its full chain of prefix commands.
7217 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7218 (add_setshow_cmd_full): Likewise.
7219 (update_prefix_field_of_prefixed_commands): New function.
7220 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7221 update_prefix_field_of_prefixed_commands.
7222 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7223 addresses of remote_set_cmdlist and remote_show_cmdlist given
7224 as argument, not the address of an argument.
7225 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7226 * gdb/remote.c (_initialize_remote): Likewise.
7227
0605465f
PW
72282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7229
7230 * cli/cli-cmds.c (alias_command): Check for an existing alias
7231 using lookup_cmd_composition, as valid_command_p is too strict
7232 and forbids aliases that are the prefix of an existing alias
7233 or command.
7234 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7235 command is properly recognised as a valid command.
7236
58e6ac70
PW
72372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7238
7239 * unittests/help-doc-selftests.c: Rename to
7240 unittests/command-def-selftests.c
7241 * unittests/command-def-selftests.c (help_doc_tests): Update some
7242 comments.
7243 (command_structure_tests, traverse_command_structure): New namespace
7244 and function.
7245 (command_structure_invariants_tests): New function.
7246 (_initialize_command_def_selftests) Renamed from
7247 _initialize_help_doc_selftests, register command_structure_invariants
7248 selftest.
7249
a7b9ceb8
PW
72502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7251
7252 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7253 an alias of 'show'.
7254
b2188a06
JB
72552020-05-15 Joel Brobecker <brobecker@adacore.com>
7256
7257 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7258 ada_is_fixed_point_type. Update all callers.
7259 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7260 all callers.
7261 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7262 Update all callers.
7263 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7264 print_fixed_point_type. Update all callers.
7265 * ada-valprint.c (ada_value_print_num): Replace call to
7266 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7267
a51951c2
KB
72682020-05-14 Kevin Buettner <kevinb@redhat.com>
7269
7270 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7271 processors.
7272 (cpu_supports_bts): Add CV_AMD case.
7273
29d6859f
LM
72742020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7275 Simon Marchi <simon.marchi@efficios.com>
7276
7277 * infrun.c (stop_all_threads): Collect multiple wait events at
7278 each pass.
7279
78134374
SM
72802020-05-14 Simon Marchi <simon.marchi@efficios.com>
7281
7282 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7283 type::code instead.
7284
67607e24
SM
72852020-05-14 Simon Marchi <simon.marchi@efficios.com>
7286
7287 * gdbtypes.h (struct type) <code, set_code>: New methods.
7288 (TYPE_CODE): Use type::code. Change all call sites used to set
7289 the code to use type::set_code instead.
7290
a05575d3
TBA
72912020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7292 Tom de Vries <tdevries@suse.de>
7293 Pedro Alves <palves@redhat.com>
7294
7295 PR threads/25478
7296 * infrun.c (stop_all_threads): Do NOT ignore
7297 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7298 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7299 received.
7300 (handle_no_resumed): Remove code handling a live inferior with no
7301 threads.
7302 * remote.c (has_single_non_exited_thread): New.
7303 (remote_target::update_thread_list): Do not delete a thread if is
7304 the last thread of the process.
7305 * thread.c (thread_select): Call delete_exited_threads instead of
7306 prune_threads.
7307
6ad82919
TBA
73082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7309
7310 * infrun.c (stop_all_threads): Enable/disable thread events of all
7311 targets. Move a debug message denoting the end of the function
7312 into the SCOPED_EXIT block.
7313
d890404b
TBA
73142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7315
7316 * process-stratum-target.h: Include <set>.
7317 (all_non_exited_process_targets, switch_to_target_no_thread): New
7318 function declarations.
7319 * process-stratum-target.c (all_non_exited_process_targets)
7320 (switch_to_target_no_thread): New function implementations.
7321
293b3ebc
TBA
73222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7323
7324 * infrun.c (handle_inferior_event): Extract out a piece of code
7325 into...
7326 (mark_non_executing_threads): ...this new function.
7327
7ca9b62a
TBA
73282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7329
7330 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7331 use.
7332
fc75c28b
TBA
73332020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7334
7335 * regcache.c (regcache_read_pc_protected): New function
7336 implementation that returns 0 if the PC cannot read via
7337 'regcache_read_pc'.
7338 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7339 instead of 'regcache_read_pc'.
7340 (keep_going_pass_signal): Ditto.
7341
a89febbd
TT
73422020-05-13 Tom Tromey <tromey@adacore.com>
7343
7344 * ada-lang.c (align_value): Remove.
7345 (ada_template_to_fixed_record_type_1): Use align_up.
7346
f7e23710
TBA
73472020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7348
7349 * async-event.c: Update the copyright year.
7350 * async-event.h: Update the copyright year.
7351
02ff80c2
SM
73522020-05-12 Simon Marchi <simon.marchi@efficios.com>
7353
7354 * objfiles.h (is_addr_in_objfile,
7355 shared_objfile_contains_address_p): Return bool.
7356 * objfile.c (is_addr_in_objfile,
7357 shared_objfile_contains_address_p): Return bool.
7358
4fd6c7e8
TT
73592020-05-11 Tom Tromey <tromey@adacore.com>
7360
7361 * cli/cli-cmds.c (info_command): Restore.
7362 (_initialize_cli_cmds): Use add_prefix_command for "info".
7363 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7364
5eb68a39
TT
73652020-05-11 Tom Tromey <tromey@adacore.com>
7366
7367 * ada-lang.c (ada_value_primitive_field): Now public.
7368 * ada-lang.h (ada_value_primitive_field): Declare.
7369 * ada-valprint.c (print_field_values): Use
7370 ada_value_primitive_field for wrapper fields.
7371
7666722f
TV
73722020-05-11 Tom de Vries <tdevries@suse.de>
7373
7374 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7375 MODULE_DOMAIN.
7376
3ee6bb11
TV
73772020-05-11 Tom de Vries <tdevries@suse.de>
7378
7379 PR symtab/25941
7380 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7381 with length 0, if not gdb-produced.
7382 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7383
43434996
TV
73842020-05-09 Tom de Vries <tdevries@suse.de>
7385
7386 PR gdb/25955
7387 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7388 calculation.
7389
2f78cffc
TT
73902020-05-09 Tom Tromey <tom@tromey.com>
7391
7392 * top.c (server_command): Now bool.
7393 * top.h (server_command): Now bool.
7394
4f7bc5ed
TT
73952020-05-08 Tom Tromey <tromey@adacore.com>
7396
7397 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7398 already being processed.
7399
8be4b118
TT
74002020-05-08 Tom Tromey <tom@tromey.com>
7401
7402 * printcmd.c (struct display) <next>: Remove.
7403 <display>: New constructor.
7404 <exp_string>: Now a std::string.
7405 <enabled_p>: Now a bool.
7406 (display_number): Move definition earlier.
7407 (displays): Rename from display_chain. Now a std::vector.
7408 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7409 (display_command): Update.
7410 (do_one_display, disable_display)
7411 (enable_disable_display_command, do_enable_disable_display):
7412 Update.
7413 (free_display): Remove.
7414 (clear_displays): Rewrite.
7415 (delete_display): Update.
7416 (map_display_numbers): Use function_view. Remove "data"
7417 parameter. Update.
7418 (do_delete_display): Remove.
7419 (undisplay_command): Update.
7420 (do_one_display, do_displays, disable_display)
7421 (info_display_command): Update.
7422 (do_enable_disable_display): Remove.
7423 (enable_disable_display_command)
7424 (clear_dangling_display_expressions): Update.
7425
94c93c35
TT
74262020-05-08 Tom Tromey <tom@tromey.com>
7427
7428 * symtab.c (set_symbol_cache_size)
7429 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7430 (maintenance_print_symbol_cache_statistics): Update.
7431 * symmisc.c (print_symbol_bcache_statistics)
7432 (print_objfile_statistics, maintenance_print_objfiles)
7433 (maintenance_info_symtabs, maintenance_check_symtabs)
7434 (maintenance_expand_symtabs, maintenance_info_line_tables):
7435 Update.
7436 * symfile-debug.c (set_debug_symfile): Update.
7437 * source.c (forget_cached_source_info): Update.
7438 * python/python.c (gdbpy_progspaces): Update.
7439 * psymtab.c (maintenance_info_psymtabs): Update.
7440 * probe.c (parse_probes): Update.
7441 * linespec.c (iterate_over_all_matching_symtabs)
7442 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7443 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7444 * exec.c (exec_target::close): Update.
7445 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7446 * breakpoint.c (print_one_breakpoint_location)
7447 (create_longjmp_master_breakpoint)
7448 (create_std_terminate_master_breakpoint): Update.
7449 * progspace.c (program_spaces): Now a std::vector.
7450 (maybe_new_address_space): Update.
7451 (add_program_space): Remove.
7452 (program_space::program_space): Update.
7453 (remove_program_space): Update.
7454 (number_of_program_spaces): Remove.
7455 (print_program_space, update_address_spaces): Update.
7456 * progspace.h (program_spaces): Change type.
7457 (ALL_PSPACES): Remove.
7458 (number_of_program_spaces): Don't declare.
7459 (struct program_space) <next>: Remove.
7460
a1fd1ac9
TT
74612020-05-08 Tom Tromey <tom@tromey.com>
7462
7463 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7464 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7465 (enable_break): Update.
7466 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7467 (frv_fdpic_find_canonical_descriptor): Update.
7468 (frv_fetch_objfile_link_map): Update.
7469 * progspace.c (program_space::free_all_objfiles): Update.
7470 (program_space::solibs): New method.
7471 * progspace.h (struct program_space) <solibs>: New method.
7472 * solist.h (master_so_list): Don't declare.
7473 (ALL_SO_LIBS): Remove.
7474 * solib.h (so_list_head): Remove.
7475 (update_solib_list): Update comment.
7476 * solib.c (master_so_list): Remove.
7477 (solib_used, update_solib_list, solib_add)
7478 (info_sharedlibrary_command, clear_solib)
7479 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7480
38eae084
TT
74812020-05-08 Tom Tromey <tom@tromey.com>
7482
7483 * extension.c (extension_languages): Now a std::array.
7484 (ALL_EXTENSION_LANGUAGES): Remove.
7485 (get_ext_lang_defn, get_ext_lang_of_file)
7486 (eval_ext_lang_from_control_command): Update.
7487 (finish_ext_lang_initialization)
7488 (auto_load_ext_lang_scripts_for_objfile)
7489 (ext_lang_type_printers::ext_lang_type_printers)
7490 (apply_ext_lang_type_printers)
7491 (ext_lang_type_printers::~ext_lang_type_printers)
7492 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7493 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7494 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7495 (get_matching_xmethod_workers, ext_lang_colorize)
7496 (ext_lang_before_prompt): Update.
7497 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7498
596dc4ad
TT
74992020-05-08 Tom Tromey <tom@tromey.com>
7500
7501 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7502 overload.
7503 <swap_string, m_string>: Remove.
7504 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7505 Update.
7506 * stabsread.c (define_symbol, read_type): Update.
7507 * linespec.c (find_linespec_symbols): Update.
7508 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7509 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7510 * dbxread.c (read_dbx_symtab): Update.
7511 * cp-support.h (cp_canonicalize_string_full)
7512 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7513 Return unique_xmalloc_ptr.
7514 * cp-support.c (inspect_type): Update.
7515 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7516 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7517 Likewise.
7518 * c-typeprint.c (print_name_maybe_canonical): Update.
7519 * break-catch-throw.c (check_status_exception_catchpoint):
7520 Update.
7521
bf4cb9be
TV
75222020-05-08 Tom de Vries <tdevries@suse.de>
7523
7524 * infrun.c (follow_fork): Copy current_line and current_symtab to
7525 child thread.
7526
a1b68f28
SM
75272020-05-07 Simon Marchi <simon.marchi@efficios.com>
7528
7529 * async-event.c (struct async_signal_handler, struct
7530 async_event_handler): Reformat, remove typedef.
7531
98d48915
SM
75322020-05-07 Simon Marchi <simon.marchi@efficios.com>
7533
7534 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7535 access thistype->main_type->dyn_prop_list directly.
7536
7aa91313
SM
75372020-05-07 Simon Marchi <simon.marchi@efficios.com>
7538
7539 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7540 (remove_dyn_prop): Remove. Update all users to use
7541 type::remove_dyn_prop.
7542 * gdbtypes.c (remove_dyn_prop): Rename to...
7543 (type::remove_dyn_prop): ... this.
7544
5c54719c
SM
75452020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7546
7547 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7548 (add_dyn_prop): Remove. Update all users to use
7549 type::add_dyn_prop.
7550 * gdbtypes.c (add_dyn_prop): Rename to...
7551 (type::add_dyn_prop): ... this.
7552
24e99c6c
SM
75532020-05-07 Simon Marchi <simon.marchi@efficios.com>
7554
7555 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7556 (get_dyn_prop): Remove. Update all users to use
7557 type::dyn_prop.
7558 * gdbtypes.c (get_dyn_prop): Rename to...
7559 (type::dyn_prop): ... this.
7560
0d4bf016
SM
75612020-05-06 Simon Marchi <simon.marchi@efficios.com>
7562
7563 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7564
ac4a4f1c
SM
75652020-05-06 Simon Marchi <simon.marchi@efficios.com>
7566
7567 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7568 instruction, skip it if it's there.
7569
a3bbacc1
SM
75702020-05-05 Simon Marchi <simon.marchi@efficios.com>
7571
7572 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7573
c3236f84
SM
75742020-05-04 Simon Marchi <simon.marchi@efficios.com>
7575
7576 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7577 * gdbtypes.c (recursive_dump_type): Remove use of
7578 TYPE_INCOMPLETE.
7579
3b6acaee
TT
75802020-05-03 Tom Tromey <tom@tromey.com>
7581
7582 * breakpoint.c (catch_command, tcatch_command): Remove.
7583 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7584 add_show_prefix_cmd.
7585 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7586 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7587 Remove.
7588 (add_internal_problem_command): Use add_basic_prefix_cmd,
7589 add_show_prefix_cmd.
7590 * mips-tdep.c (set_mipsfpu_command): Remove.
7591 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7592 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7593 (_initialize_index_cache): Use add_basic_prefix_cmd.
7594 * memattr.c (dummy_cmd): Remove.
7595 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7596 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7597 (_initialize_tui_win): Use add_basic_prefix_cmd,
7598 add_show_prefix_cmd.
7599 * cli/cli-logging.c (set_logging_command): Remove.
7600 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7601 add_show_prefix_cmd.
7602 (show_logging_command): Remove.
7603 * target.c (target_command): Remove.
7604 (add_target): Use add_basic_prefix_cmd.
7605
a51119cd
HD
76062020-05-02 Hannes Domani <ssbssa@yahoo.de>
7607
7608 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7609
652fc23a 76102020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7611
652fc23a
PW
7612 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7613 info_command.
7614
117539e6
KR
76152020-04-30 Kamil Rytarowski <n54@gmx.com>
7616
7617 * nbsd-nat.c (nbsd_enable_proc_events)
7618 (nbsd_nat_target::post_startup_inferior): Add.
7619 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7620 (nbsd_nat_target::update_thread_list): Rewrite.
7621 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7622 "PTRACE_LWP_CREATE".
7623 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7624
102e38eb 76252020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7626
102e38eb
PW
7627 * stack.c (_initialize_stack): Remove duplicated creation
7628 of "frame" command and "f" alias.
7629
ee9d1e5f
HD
76302020-04-30 Hannes Domani <ssbssa@yahoo.de>
7631
7632 PR gdb/18706
7633 * gdbtypes.c (check_typedef): Calculate size of array of
7634 stubbed type.
7635
627c7fb8
HD
76362020-04-30 Hannes Domani <ssbssa@yahoo.de>
7637
7638 PR gdb/15559
7639 * i386-tdep.c (i386_push_dummy_call): Call
7640 i386_thiscall_push_dummy_call.
7641 (i386_thiscall_push_dummy_call): New function.
7642 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7643 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7644 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7645
ffc2844e
SM
76462020-04-29 Simon Marchi <simon.marchi@efficios.com>
7647
7648 * gdbarch.sh (do_read): Add shellcheck disable directive for
7649 warning SC2162.
7650
1207375d
SM
76512020-04-29 Simon Marchi <simon.marchi@efficios.com>
7652
7653 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7654 "referenced but not assigned" warning.
7655
9fdb2916
SM
76562020-04-29 Simon Marchi <simon.marchi@efficios.com>
7657
7658 * gdbarch.sh: Remove code that sets fallbackdefault.
7659
759cea5e
SM
76602020-04-29 Simon Marchi <simon.marchi@efficios.com>
7661
7662 * gdbarch.sh: Use shell operators && and || instead of
7663 -a and -o.
7664
cb02ab24
SM
76652020-04-29 Simon Marchi <simon.marchi@efficios.com>
7666
7667 * gdbarch.sh: Use $(...) instead of `...`.
7668
a6fc5ffc
SM
76692020-04-29 Simon Marchi <simon.marchi@efficios.com>
7670
7671 * gdbarch.sh: Use double quotes around variables.
7672
8d113d13
SM
76732020-04-29 Simon Marchi <simon.marchi@efficios.com>
7674
7675 * gdbarch.sh: Use %s with printf, instead of variables in the
7676 format string.
7677
ed6acedd
TT
76782020-04-29 Tom Tromey <tromey@adacore.com>
7679
7680 PR ada/25875:
7681 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7682 type fields here.
7683 (read_enumeration_type): Call
7684 update_enumeration_type_from_children later. Update comments.
7685 (process_enumeration_scope): Don't create type fields.
7686
b68b1b58
KR
76872020-04-29 Kamil Rytarowski <n54@gmx.com>
7688
7689 * nbsd-tdep.c: Include "xml-syscall.h".
7690 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7691
f94b2e03
KR
76922020-04-29 Kamil Rytarowski <n54@gmx.com>
7693
7694 * nbsd-nat.c: Include "sys/wait.h".
7695 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7696 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7697 (nbsd_nat_target::remove_exec_catchpoint)
7698 (nbsd_nat_target::set_syscall_catchpoint): Add.
7699 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7700 (nbsd_nat_target::insert_exec_catchpoint)
7701 (nbsd_nat_target::remove_exec_catchpoint)
7702 (nbsd_nat_target::set_syscall_catchpoint): Add.
7703 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7704 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7705 `nbsd_get_syscall_number'.
7706
fc49bc72
TT
77072020-04-29 Tom Tromey <tom@tromey.com>
7708
7709 * stack.c (print_block_frame_labels): Remove.
7710
d642b692
HD
77112020-04-29 Hannes Domani <ssbssa@yahoo.de>
7712
7713 PR gdb/17320
7714 * ada-valprint.c (val_print_packed_array_elements): Move array
7715 end bracket to new line.
7716 (ada_val_print_string): Remove extra spaces before first array
7717 element.
7718 * c-valprint.c (c_value_print_array): Likewise.
7719 * m2-valprint.c (m2_print_array_contents): Likewise.
7720 (m2_value_print_inner): Likewise.
7721 * p-valprint.c (pascal_value_print_inner): Likewise.
7722 * valprint.c (generic_val_print_array): Likewise.
7723 (value_print_array_elements): Move first array element and array
7724 end bracket to new line.
7725
ea90f227
TV
77262020-04-29 Tom de Vries <tdevries@suse.de>
7727
7728 PR symtab/25889
7729 * linespec.c (find_method): Fix ix calculation.
7730
4498ef4f
KR
77312020-04-28 Kamil Rytarowski <n54@gmx.com>
7732
7733 * syscalls/update-netbsd.sh: New file.
7734 * syscalls/netbsd.xml: Regenerate.
7735 * data-directory/Makefile.in: Register `netbsd.xml' in
7736 `SYSCALLS_FILES'.
7737
a55e30b5
SM
77382020-04-28 Simon Marchi <simon.marchi@efficios.com>
7739
7740 * syscalls/update-freebsd.sh: Add double quotes.
7741
2b2fbab8
TT
77422020-04-28 Tom Tromey <tom@tromey.com>
7743
7744 * NEWS: Update.
7745 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7746 (cmdpy_init): Allow class_tui.
7747
a65189c9
TV
77482020-04-28 Mark Williams <mark@myosotissp.com>
7749
7750 PR gdb/24480
7751 * dwarf2read.c: Add missing assingments to list_in_scope when
7752 start_symtab was already called.
7753
1b95cdb7
SM
77542020-04-28 Simon Marchi <simon.marchi@efficios.com>
7755
7756 PR gdb/25881
7757 * dwarf2/read.c (offset_map_type): Use
7758 gdb:hash_enum<sect_offset> as hash function.
7759
15cd93d0
TV
77602020-04-28 Tom de Vries <tdevries@suse.de>
7761
7762 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7763 with DW_AT_signature.
7764
1eb39914
SM
77652020-04-27 Simon Marchi <simon.marchi@efficios.com>
7766
7767 * configure.ac: Remove check for fs_base/gs_base in
7768 user_regs_struct.
7769 * configure: Re-generate.
7770 * config.in: Re-generate.
7771 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7772 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7773 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7774
991a3e2e
LM
77752020-04-27 Luis Machado <luis.machado@linaro.org>
7776
7777 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7778 problematic inline frame unwinding situation.
7779 * frame.c (frame_id_computed_p): New function.
7780 * frame.h (frame_id_computed_p): New prototype.
7781
361ba0e8
TT
77822020-04-26 Tom Tromey <tom@tromey.com>
7783
7784 * command.h (enum command_class) <class_pseudo>: Remove.
7785
bc3609fd
PW
77862020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7787
7788 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7789 and whitespace.
7790
b9771db7
KR
77912020-04-25 Kamil Rytarowski <n54@gmx.com>
7792
ec16513e
SM
7793 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7794 `PT_GET_PROCESS_STATE' block.
b9771db7 7795
7151c1af
TT
77962020-04-24 Tom Tromey <tom@tromey.com>
7797
7798 * symtab.h (symbol_get_demangled_name): Don't declare.
7799 * symtab.c (symbol_get_demangled_name): Remove.
7800 (general_symbol_info::natural_name)
7801 (general_symbol_info::demangled_name): Update.
7802
906bb4c5
TT
78032020-04-24 Tom Tromey <tom@tromey.com>
7804
7805 PR rust/25025:
7806 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7807
bcfe6157
TT
78082020-04-24 Tom Tromey <tom@tromey.com>
7809
7810 PR symtab/12707:
7811 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7812 exists.
7813 (new_symbol): Likewise.
7814 * compile/compile-object-load.c (get_out_value_type): Use
7815 symbol_matches_search_name.
7816
f049a313
TT
78172020-04-24 Tom Tromey <tom@tromey.com>
7818
7819 * dwarf2/read.c (add_partial_symbol): Do not call
7820 compute_and_set_names.
7821
76e288d1
TT
78222020-04-24 Tom Tromey <tom@tromey.com>
7823
7824 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7825 overload.
7826
2467f4f6
TT
78272020-04-24 Tom Tromey <tom@tromey.com>
7828
7829 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7830 (add_psymbol_to_list): New overload. Make old overload call new
7831 one.
7832 * psympriv.h (add_psymbol_to_list): New overload.
7833
e61108c9
TT
78342020-04-24 Tom Tromey <tom@tromey.com>
7835
7836 * dwarf2/read.c (partial_die_info::read) <case
7837 DW_AT_linkage_name>: Use value_as_string.
7838 (dwarf2_string_attr): Use value_as_string.
7839 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7840 method.
7841 * dwarf2/attribute.c (attribute::value_as_string): New method.
7842
8c87a452
TT
78432020-04-24 Tom Tromey <tom@tromey.com>
7844
7845 * symtab.c (general_symbol_info::natural_name)
7846 (general_symbol_info::demangled_name): Check for language_rust.
7847
787de330
TT
78482020-04-24 Tom Tromey <tom@tromey.com>
7849
7850 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7851 (dwarf2_physname): ... from here.
7852 (partial_die_info::read): Add Rust "{" hack.
7853
ff985671
TT
78542020-04-24 Tom Tromey <tom@tromey.com>
7855
7856 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7857 method.
7858 (symbol_set_demangled_name): Don't declare.
7859 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7860 symbol_set_demangled_name.
7861 (general_symbol_info::set_language)
7862 (general_symbol_info::compute_and_set_names): Update.
7863 * minsyms.c (minimal_symbol_reader::install): Update.
7864 * dwarf2/read.c (new_symbol): Update.
7865
1acda803
TT
78662020-04-24 Tom Tromey <tromey@adacore.com>
7867
7868 PR python/23662:
7869 * python/py-type.c (convert_field): Handle
7870 FIELD_LOC_KIND_DWARF_BLOCK.
7871 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7872 (typy_get_dynamic): Nw function.
7873 (type_object_getset): Add "dynamic".
7874 * NEWS: Add entry.
7875
d656f129
TT
78762020-04-24 Tom Tromey <tromey@adacore.com>
7877
7878 * ada-typeprint.c (print_choices, print_variant_part)
7879 (print_record_field_types_dynamic): New functions.
7880 (print_record_field_types): Use print_record_field_types_dynamic.
7881
7d79de9a
TT
78822020-04-24 Tom Tromey <tromey@adacore.com>
7883
7884 * dwarf2/read.c (handle_data_member_location): New overload.
7885 (dwarf2_add_field): Use it.
7886 (decode_locdesc): Add "computed" parameter. Update comment.
7887 * gdbtypes.c (is_dynamic_type_internal): Also look for
7888 FIELD_LOC_KIND_DWARF_BLOCK.
7889 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7890 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7891 virtual base classes.
7892 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7893 FIELD_LOC_KIND_DWARF_BLOCK.
7894
f8e89861
TT
78952020-04-24 Tom Tromey <tromey@adacore.com>
7896
7897 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7898 * gdbtypes.c (is_dynamic_type_internal): Check
7899 TYPE_HAS_DYNAMIC_LENGTH.
7900 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7901 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7902 New macros.
7903 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7904 constant.
7905
9c6a1327
TT
79062020-04-24 Tom Tromey <tromey@adacore.com>
7907
7908 * dwarf2/read.c (struct variant_field): Rewrite.
7909 (struct variant_part_builder): New.
7910 (struct nextfield): Remove "variant" field. Add "offset".
7911 (struct field_info): Add "current_variant_part" and
7912 "variant_parts".
7913 (alloc_discriminant_info): Remove.
7914 (alloc_rust_variant): New function.
7915 (quirk_rust_enum): Update.
7916 (dwarf2_add_field): Set "offset" member. Don't handle
7917 DW_TAG_variant_part.
7918 (offset_map_type): New typedef.
7919 (convert_variant_range, create_one_variant)
7920 (create_one_variant_part, create_variant_parts)
7921 (add_variant_property): New functions.
7922 (dwarf2_attach_fields_to_type): Call add_variant_property.
7923 (read_structure_type): Don't handle DW_TAG_variant_part.
7924 (handle_variant_part, handle_variant): New functions.
7925 (handle_struct_member_die): Use them.
7926 (process_structure_scope): Don't handle variant parts.
7927 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7928 (struct discriminant_info): Remove.
7929 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7930 (struct main_type) <flag_discriminated_union>: Remove.
7931 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7932 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7933 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7934 Update.
7935 * valops.c (value_union_variant): Remove.
7936 * value.h (value_union_variant): Don't declare.
7937
b249d2c2
TT
79382020-04-24 Tom Tromey <tromey@adacore.com>
7939
7940 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7941 (ada_value_primitive_packed_val): Update.
7942 * ada-valprint.c (ada_value_print_1): Update.
7943 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7944 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7945 just an address. Use evaluate_for_locexpr_baton.
7946 (dwarf2_evaluate_property): Update.
7947 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7948 array_view.
7949 * findvar.c (default_read_var_value): Update.
7950 * gdbtypes.c (compute_variant_fields_inner)
7951 (resolve_dynamic_type_internal): Update.
7952 (resolve_dynamic_type): Change type of valaddr parameter.
7953 * gdbtypes.h (resolve_dynamic_type): Update.
7954 * valarith.c (value_subscripted_rvalue): Update.
7955 * value.c (value_from_contents_and_address): Update.
7956
61122aa9
TT
79572020-04-24 Tom Tromey <tromey@adacore.com>
7958
7959 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7960 "push_initial_value" parameter.
7961 (dwarf2_evaluate_property): Likewise.
7962 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7963
ef83a141
TT
79642020-04-24 Tom Tromey <tromey@adacore.com>
7965
7966 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7967 (variant::matches, compute_variant_fields_recurse)
7968 (compute_variant_fields_inner, compute_variant_fields): New
7969 functions.
7970 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7971 Use resolved_type after type is made.
7972 (operator==): Add new cases.
7973 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7974 (struct discriminant_range, struct variant, struct variant_part):
7975 New.
7976 (union dynamic_prop_data) <variant_parts, original_type>: New
7977 members.
7978 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7979 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7980 constants.
7981 * value.c (unpack_bits_as_long): Now public.
7982 * value.h (unpack_bits_as_long): Declare.
7983
675127ec
TT
79842020-04-24 Tom Tromey <tromey@adacore.com>
7985
7986 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7987 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7988
9852ceef
HD
79892020-04-24 Hannes Domani <ssbssa@yahoo.de>
7990
7991 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7992
7632c6ce
KR
79932020-04-24 Kamil Rytarowski <n54@gmx.com>
7994
7995 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7996 (remove_fork_catchpoint, post_startup_inferior)
7997 (post_attach): Move...
7998 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7999 (remove_fork_catchpoint, post_startup_inferior)
8000 (post_attach): ...here.
8001 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8002 (remove_fork_catchpoint, post_startup_inferior)
8003 (post_attach): Move...
8004 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8005 (remove_fork_catchpoint, post_startup_inferior)
8006 (post_attach): ...here.
8007
7be2bb4f
TT
80082020-04-24 Tom Tromey <tromey@adacore.com>
8009
8010 * nat/windows-nat.h (struct windows_thread_info)
8011 <pc_adjusted>: New member.
8012 * windows-nat.c (windows_fetch_one_register): Check
8013 pc_adjusted.
8014 (windows_nat_target::get_windows_debug_event)
8015 (windows_nat_target::wait): Set pc_adjusted.
8016
f80cb3b4
TV
80172020-04-24 Tom de Vries <tdevries@suse.de>
8018
8019 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8020 Run gdb-add-index inside temp dir.
8021
29514b87
TT
80222020-04-23 Tom Tromey <tromey@adacore.com>
8023
8024 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8025 in loop.
8026
5939967b
LM
80272020-04-23 Luis Machado <luis.machado@linaro.org>
8028
8029 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8030 get_frame_register instead of gdbarch_unwind_pc.
8031
70bc38f5
TV
80322020-04-23 Tom de Vries <tdevries@suse.de>
8033
8034 * symtab.c (lookup_global_symbol): Prefer def over decl.
8035
de82891c
TV
80362020-04-23 Tom de Vries <tdevries@suse.de>
8037
8038 PR symtab/25807
8039 * block.c (best_symbol, better_symbol): Promote to external.
8040 * block.h (best_symbol, better_symbol): Declare.
8041 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8042 decl.
8043
ecc6c606
TT
80442020-04-23 Tom Tromey <tromey@adacore.com>
8045
8046 PR ada/25837:
8047 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8048 "const char *", not a "const std::string &".
8049 <name_and_matcher::operator==>: Update.
8050 * unittests/lookup_name_info-selftests.c: Change type of
8051 "result".
8052
740480b8
TT
80532020-04-23 Tom Tromey <tom@tromey.com>
8054
8055 * inferior.h (iterate_over_inferiors): Don't declare.
8056 * inferior.c (iterate_over_inferiors): Remove.
8057 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8058 Remove.
8059 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8060 use iterate_over_inferiors.
8061 (darwin_resume_inferior_it)
8062 (struct resume_inferior_threads_param)
8063 (darwin_resume_inferior_threads_it): Remove.
8064 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8065
ae3ab1f0
TV
80662020-04-23 Tom de Vries <tdevries@suse.de>
8067
8068 * blockframe.c (find_pc_partial_function): Use
8069 find_pc_sect_compunit_symtab rather than
8070 objfile->sf->qf->find_pc_sect_compunit_symtab.
8071
317d2668
TV
80722020-04-22 Tom de Vries <tdevries@suse.de>
8073
8074 PR symtab/25764
8075 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8076 in psymtabs.
8077
eea9e357
TV
80782020-04-22 Tom de Vries <tdevries@suse.de>
8079
8080 PR symtab/25801
8081 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8082 symtabs.
8083
3d5afab3
TV
80842020-04-22 Tom de Vries <tdevries@suse.de>
8085
8086 PR symtab/25700
8087 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8088 CU if already created.
8089
d43b7a2d
TBA
80902020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8091
8092 * infrun.c (displaced_step_fixup): Switch to the event_thread
8093 before calling displaced_step_restore, not after.
8094
d89edf9b
MM
80952020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8096
8097 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8098 its inferior is not recorded by us.
8099 (record_btrace_target_open): Replace call to
8100 all_non_exited_threads () with call to current_inferior
8101 ()->non_exited_threads ().
8102 (record_btrace_target::stop_recording): Likewise.
8103 (record_btrace_target::close): Likewise.
8104 (record_btrace_target::wait): Likewise.
8105 (record_btrace_target::record_stop_replaying): Likewise.
8106
5897fd49
MM
81072020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8108
8109 * btrace.c (btrace_enable): Throw an error on double enables and
8110 when enabling recording fails.
8111 (btrace_disable): Throw an error if the thread is not recorded.
8112
1a476b6d
MM
81132020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8114
8115 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8116 request if we do not have a thread_info.
8117
4778a5f8
TV
81182020-04-21 Tom de Vries <tdevries@suse.de>
8119
8120 PR gdb/25471
8121 * thread.c
8122 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8123 exception in get_frame_id.
8124
0fa7617d
TT
81252020-04-20 Tom Tromey <tromey@adacore.com>
8126
8127 * python/python.c (struct gdbpy_event): Mark move constructor as
8128 noexcept.
8129 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8130 constructor as noexcept.
8131 * completer.h (struct completion_result): Mark move constructor as
8132 noexcept.
8133 * completer.c (completion_result::completion_result): Use
8134 initialization style. Don't call reset_match_list.
8135
ad23bda0
MS
81362020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8137
8138 * MAINTAINERS (Write After Approval): Add myself.
8139
45e1f031
TT
81402020-04-18 Tom Tromey <tom@tromey.com>
8141
8142 * windows-tdep.c (init_w32_command_list)
8143 (w32_prefix_command_valid): Restore.
8144 (_initialize_windows_tdep): Call init_w32_command_list.
8145
08feed99
TT
81462020-04-18 Tom Tromey <tom@tromey.com>
8147
8148 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8149 * value.c (value_fn_field): Update.
8150 * valops.c (find_function_in_inferior)
8151 (value_allocate_space_in_inferior): Update.
8152 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8153 Update.
8154 * tui/tui-source.c (tui_source_window::set_contents): Update.
8155 * symtab.c (lookup_global_or_static_symbol)
8156 (find_function_start_sal_1, skip_prologue_sal)
8157 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8158 * symmisc.c (dump_msymbols, dump_symtab_1)
8159 (maintenance_print_one_line_table): Update.
8160 * symfile.c (init_entry_point_info, section_is_mapped)
8161 (list_overlays_command, simple_read_overlay_table)
8162 (simple_overlay_update_1): Update.
8163 * stap-probe.c (handle_stap_probe): Update.
8164 * stabsread.c (dbx_init_float_type, define_symbol)
8165 (read_one_struct_field, read_enum_type, read_range_type): Update.
8166 * source.c (info_line_command): Update.
8167 * python/python.c (gdbpy_source_objfile_script)
8168 (gdbpy_execute_objfile_script): Update.
8169 * python/py-type.c (save_objfile_types): Update.
8170 * python/py-objfile.c (py_free_objfile): Update.
8171 * python/py-inferior.c (python_new_objfile): Update.
8172 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8173 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8174 (maintenance_check_psymtabs): Update.
8175 * printcmd.c (info_address_command): Update.
8176 * objfiles.h (struct objfile) <arch>: New method, from
8177 get_objfile_arch.
8178 (get_objfile_arch): Don't declare.
8179 * objfiles.c (get_objfile_arch): Remove.
8180 (filter_overlapping_sections): Update.
8181 * minsyms.c (msymbol_is_function): Update.
8182 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8183 (output_nondebug_symbol): Update.
8184 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8185 (mdebug_expand_psymtab): Update.
8186 * machoread.c (macho_add_oso_symfile): Update.
8187 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8188 Update.
8189 * linux-fork.c (checkpoint_command): Update.
8190 * linespec.c (convert_linespec_to_sals): Update.
8191 * jit.c (finalize_symtab): Update.
8192 * infrun.c (insert_exception_resume_from_probe): Update.
8193 * ia64-tdep.c (ia64_find_unwind_table): Update.
8194 * hppa-tdep.c (internalize_unwinds): Update.
8195 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8196 Update.
8197 * gcore.c (call_target_sbrk): Update.
8198 * elfread.c (record_minimal_symbol, elf_symtab_read)
8199 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8200 (elf_gnu_ifunc_resolve_by_got): Update.
8201 * dwarf2/read.c (create_addrmap_from_index)
8202 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8203 (read_debug_names_from_section)
8204 (process_psymtab_comp_unit_reader, add_partial_symbol)
8205 (add_partial_subprogram, process_full_comp_unit)
8206 (read_file_scope, read_func_scope, read_lexical_block_scope)
8207 (read_call_site_scope, dwarf2_ranges_read)
8208 (dwarf2_record_block_ranges, dwarf2_add_field)
8209 (mark_common_block_symbol_computed, read_tag_pointer_type)
8210 (read_tag_string_type, dwarf2_init_float_type)
8211 (dwarf2_init_complex_target_type, read_base_type)
8212 (partial_die_info::read, partial_die_info::read)
8213 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8214 (dwarf2_fetch_die_loc_sect_off): Update.
8215 * dwarf2/loc.c (dwarf2_find_location_expression)
8216 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8217 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8218 (dwarf2_loc_desc_get_symbol_read_needs)
8219 (locexpr_describe_location_piece, locexpr_describe_location_1)
8220 (loclist_describe_location): Update.
8221 * dwarf2/index-write.c (write_debug_names): Update.
8222 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8223 * dtrace-probe.c (dtrace_process_dof): Update.
8224 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8225 (process_one_symbol): Update.
8226 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8227 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8228 (coff_read_enum_type): Update.
8229 * cli/cli-cmds.c (edit_command, list_command): Update.
8230 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8231 * breakpoint.c (create_overlay_event_breakpoint)
8232 (create_longjmp_master_breakpoint)
8233 (create_std_terminate_master_breakpoint)
8234 (create_exception_master_breakpoint, get_sal_arch): Update.
8235 * block.c (block_gdbarch): Update.
8236 * annotate.c (annotate_source_line): Update.
8237
0743fc83
TT
82382020-04-17 Tom Tromey <tromey@adacore.com>
8239
8240 * auto-load.c (show_auto_load_cmd): Remove.
8241 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8242 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8243 (maintenance_print_arc_command): Remove.
8244 * tui/tui-win.c (tui_command): Remove.
8245 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8246 * tui/tui-layout.c (tui_layout_command): Remove.
8247 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8248 * python/python.c (user_set_python, user_show_python): Remove.
8249 (_initialize_python): Use add_basic_prefix_cmd,
8250 add_show_prefix_cmd.
8251 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8252 (install_gdb_commands): Use add_basic_prefix_cmd,
8253 add_show_prefix_cmd.
8254 (info_guile_command): Remove.
8255 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8256 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8257 add_show_prefix_cmd.
8258 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8259 Remove do_set and do_show parameters.
8260 * cli/cli-style.c (set_style, show_style): Remove.
8261 (_initialize_cli_style): Use add_basic_prefix_cmd,
8262 add_show_prefix_cmd.
8263 (cli_style_option::add_setshow_commands): Remove do_set and
8264 do_show parameters.
8265 (cli_style_option::add_setshow_commands): Use
8266 add_basic_prefix_cmd, add_show_prefix_cmd.
8267 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8268 (set_style_name): Remove.
8269 * cli/cli-dump.c (dump_command, append_command): Remove.
8270 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8271 (tekhex_dump_command, binary_dump_command)
8272 (binary_append_command): Remove.
8273 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8274 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8275 (init_w32_command_list): Remove; move into ...
8276 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8277 * valprint.c (set_print, show_print, set_print_raw)
8278 (show_print_raw): Remove.
8279 (_initialize_valprint): Use add_basic_prefix_cmd,
8280 add_show_prefix_cmd.
8281 * typeprint.c (set_print_type, show_print_type): Remove.
8282 (_initialize_typeprint): Use add_basic_prefix_cmd,
8283 add_show_prefix_cmd.
8284 * record.c (set_record_command, show_record_command): Remove.
8285 (_initialize_record): Use add_basic_prefix_cmd,
8286 add_show_prefix_cmd.
8287 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8288 add_show_prefix_cmd.
8289 (info_command, show_command, set_debug, show_debug): Remove.
8290 * top.h (set_history, show_history): Don't declare.
8291 * top.c (set_history, show_history): Remove.
8292 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8293 (unset_tdesc_cmd): Remove.
8294 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8295 add_show_prefix_cmd.
8296 * symtab.c (info_module_command): Remove.
8297 (_initialize_symtab): Use add_basic_prefix_cmd.
8298 * symfile.c (overlay_command): Remove.
8299 (_initialize_symfile): Use add_basic_prefix_cmd.
8300 * sparc64-tdep.c (info_adi_command): Remove.
8301 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8302 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8303 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8304 add_show_prefix_cmd.
8305 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8306 (_initialize_serial): Use add_basic_prefix_cmd,
8307 add_show_prefix_cmd.
8308 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8309 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8310 add_show_prefix_cmd.
8311 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8312 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8313 add_show_prefix_cmd.
8314 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8315 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8316 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8317 add_show_prefix_cmd.
8318 * remote.c (remote_command, set_remote_cmd): Remove.
8319 (_initialize_remote): Use add_basic_prefix_cmd.
8320 * record-full.c (set_record_full_command)
8321 (show_record_full_command): Remove.
8322 (_initialize_record_full): Use add_basic_prefix_cmd,
8323 add_show_prefix_cmd.
8324 * record-btrace.c (cmd_set_record_btrace)
8325 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8326 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8327 (cmd_show_record_btrace_pt): Remove.
8328 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8329 add_show_prefix_cmd.
8330 * ravenscar-thread.c (set_ravenscar_command)
8331 (show_ravenscar_command): Remove.
8332 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8333 add_show_prefix_cmd.
8334 * mips-tdep.c (show_mips_command, set_mips_command)
8335 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8336 add_show_prefix_cmd.
8337 * maint.c (maintenance_command, maintenance_info_command)
8338 (maintenance_check_command, maintenance_print_command)
8339 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8340 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8341 add_show_prefix_cmd.
8342 (show_per_command_cmd): Remove.
8343 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8344 Remove.
8345 (maintenance_show_test_settings_cmd): Remove.
8346 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8347 add_show_prefix_cmd.
8348 * maint-test-options.c (maintenance_test_options_command):
8349 Remove.
8350 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8351 * macrocmd.c (macro_command): Remove
8352 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8353 * language.c (set_check, show_check): Remove.
8354 (_initialize_language): Use add_basic_prefix_cmd,
8355 add_show_prefix_cmd.
8356 * infcmd.c (unset_command): Remove.
8357 (_initialize_infcmd): Use add_basic_prefix_cmd.
8358 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8359 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8360 add_show_prefix_cmd.
8361 * go32-nat.c (go32_info_dos_command): Remove.
8362 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8363 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8364 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8365 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8366 (_initialize_frame): Use add_basic_prefix_cmd,
8367 add_show_prefix_cmd.
8368 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8369 (_initialize_dcache): Use add_basic_prefix_cmd,
8370 add_show_prefix_cmd.
8371 * cp-support.c (maint_cplus_command): Remove.
8372 (_initialize_cp_support): Use add_basic_prefix_cmd.
8373 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8374 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8375 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8376 add_basic_prefix_cmd, add_show_prefix_cmd.
8377 * breakpoint.c (save_command): Remove.
8378 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8379 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8380 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8381 add_show_prefix_cmd.
8382 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8383 (set_ada_command, show_ada_command): Remove.
8384 (_initialize_ada_language): Use add_basic_prefix_cmd,
8385 add_show_prefix_cmd.
8386 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8387
3557f442
KR
83882020-04-16 Kamil Rytarowski <n54@gmx.com>
8389
8390 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8391 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8392
16197208
SM
83932020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8394
8395 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8396 warning messages.
8397
00ac85d3
SM
83982020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8399
8400 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8401 import table is not at beginning of .idata section.
8402
381ce63f
PA
84032020-04-16 Pedro Alves <palves@redhat.com>
8404
8405 * inferior.c (delete_inferior): Use delete operator directly
8406 instead of delete_program_space.
8407 * progspace.c (add_program_space): New, factored out from
8408 program_space::program_space.
8409 (remove_program_space): New, factored out from
8410 delete_program_space.
8411 (program_space::program_space): Remove intro comment. Rewrite.
8412 (program_space::~program_space): Remove intro comment. Call
8413 remove_program_space.
8414 (delete_program_space): Delete.
8415 * progspace.h (program_space::program_space): Make explicit. Move
8416 intro comment here, adjusted.
8417 (program_space::~program_space): Move intro comment here,
8418 adjusted.
8419 (delete_program_space): Remove.
8420
a010605f
TT
84212020-04-16 Tom Tromey <tromey@adacore.com>
8422
8423 * windows-nat.c (windows_nat::handle_access_violation): New
8424 function.
8425 * nat/windows-nat.h (handle_access_violation): Declare.
8426 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8427 windows-nat.c. Call handle_access_violation.
8428
efba5c23
TV
84292020-04-16 Tom de Vries <tdevries@suse.de>
8430
8431 PR symtab/25791
8432 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8433 CUs without psymtab.
8434
97ed802d
KB
84352020-04-16 Kevin Buettner <kevinb@redhat.com>
8436
8437 * python/python.c (do_start_initialization): Don't call
8438 PyEval_InitThreads for Python 3.9 and beyond.
8439
c7d64809
KR
84402020-04-15 Kamil Rytarowski <n54@gmx.com>
8441
8442 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8443 thread functions.
8444 (obsd_nat_target::wait): Likewise.
8445
ce127a96
TT
84462020-04-15 Tom Tromey <tromey@adacore.com>
8447
8448 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8449 (DEBUG_EXCEPT): Use debug_printf.
8450
99f1bc6a
AB
84512020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8452
8453 * completer.c (class completion_tracker::completion_hash_entry)
8454 <hash_name>: New member function.
8455 (completion_tracker::discard_completions): New callback to hash a
8456 completion_hash_entry, pass this to htab_create_alloc.
8457
a0e9b532
JT
84582016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8459
8460 * windows-nat.c (windows_make_so): Warn rather than stopping with
8461 an error if realpath() fails.
8462
06ca5dd4
KR
84632020-04-14 Kamil Rytarowski <n54@gmx.com>
8464
8465 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8466 (nbsd_nat_target::info_proc): Add do_status.
8467
194d088f
TV
84682020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8469 Tom de Vries <tdevries@suse.de>
8470
8471 PR symtab/25718
8472 * psympriv.h (struct partial_symtab::read_symtab)
8473 (struct partial_symtab::expand_psymtab)
8474 (struct partial_symtab::read_dependencies): Update comments.
8475 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8476 read_symtab for includer.
8477 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8478 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8479 (struct dwarf2_include_psymtab::m_readin): Remove.
8480 (struct dwarf2_include_psymtab::includer): New member function.
8481 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8482
c1a66c06
TV
84832020-04-14 Tom de Vries <tdevries@suse.de>
8484
8485 PR symtab/25720
8486 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8487 with NULL symbol_matcher and lookup_name.
8488 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8489 and lookup_name.
8490 * dwarf2/read.c (dw2_expand_symtabs_matching)
8491 (dw2_debug_names_expand_symtabs_matching): Same.
8492 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8493 Make lookup_name a pointer. Update comment.
8494 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8495 lookup_name being a pointer.
8496 * symfile.c (expand_symtabs_matching): Same.
8497 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8498 * linespec.c (iterate_over_all_matching_symtabs): Same.
8499
400b5eca
TT
85002020-04-13 Tom Tromey <tom@tromey.com>
8501
8502 * run-on-main-thread.c: Update include.
8503 * unittests/main-thread-selftests.c: Update include.
8504 * tui/tui-win.c: Update include.
8505 * tui/tui-io.c: Update include.
8506 * tui/tui-interp.c: Update include.
8507 * tui/tui-hooks.c: Update include.
8508 * top.h: Update include.
8509 * top.c: Update include.
8510 * ser-base.c: Update include.
8511 * remote.c: Update include.
8512 * remote-notif.c: Update include.
8513 * remote-fileio.c: Update include.
8514 * record-full.c: Update include.
8515 * record-btrace.c: Update include.
8516 * python/python.c: Update include.
8517 * posix-hdep.c: Update include.
8518 * mingw-hdep.c: Update include.
8519 * mi/mi-main.c: Update include.
8520 * mi/mi-interp.c: Update include.
8521 * main.c: Update include.
8522 * linux-nat.c: Update include.
8523 * interps.c: Update include.
8524 * infrun.c: Update include.
8525 * inf-loop.c: Update include.
8526 * event-top.c: Update include.
8527 * event-loop.c: Move to ../gdbsupport/.
8528 * event-loop.h: Move to ../gdbsupport/.
8529 * async-event.h: Update include.
8530 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8531
93b54c8e
TT
85322020-04-13 Tom Tromey <tom@tromey.com>
8533
8534 * tui/tui-win.c: Include async-event.h.
8535 * remote.c: Include async-event.h.
8536 * remote-notif.c: Include async-event.h.
8537 * record-full.c: Include async-event.h.
8538 * record-btrace.c: Include async-event.h.
8539 * infrun.c: Include async-event.h.
8540 * event-top.c: Include async-event.h.
8541 * event-loop.h: Move some declarations to async-event.h.
8542 * event-loop.c: Don't include ser-event.h or top.h. Move some
8543 code to async-event.c.
8544 * async-event.h: New file.
8545 * async-event.c: New file.
8546 * Makefile.in (COMMON_SFILES): Add async-event.c.
8547 (HFILES_NO_SRCDIR): Add async-event.h.
8548
c1cd3163
TT
85492020-04-13 Tom Tromey <tom@tromey.com>
8550
8551 * utils.c (flush_streams): New function.
8552 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8553
29f2bf4f
TT
85542020-04-13 Tom Tromey <tom@tromey.com>
8555
8556 * event-loop.c (handle_file_event): Use warning, not
8557 printf_unfiltered.
8558
98029d02
TT
85592020-04-13 Tom Tromey <tom@tromey.com>
8560
8561 * event-loop.c: Include <chrono>.
8562
06cc9596
TT
85632020-04-13 Tom Tromey <tom@tromey.com>
8564
8565 * gdb_select.h: Move to ../gdbsupport/.
8566 * event-loop.c: Update include path.
8567 * top.c: Update include path.
8568 * ser-base.c: Update include path.
8569 * ui-file.c: Update include path.
8570 * ser-tcp.c: Update include path.
8571 * guile/scm-ports.c: Update include path.
8572 * posix-hdep.c: Update include path.
8573 * ser-unix.c: Update include path.
8574 * gdb_usleep.c: Update include path.
8575 * mingw-hdep.c: Update include path.
8576 * inflow.c: Update include path.
8577 * infrun.c: Update include path.
8578 * event-top.c: Update include path.
8579
8ae8e197
TT
85802020-04-13 Tom Tromey <tom@tromey.com>
8581
8582 * configure: Rebuild.
8583 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8584
58cf28e8
TT
85852020-04-13 Tom Tromey <tom@tromey.com>
8586
8587 * event-loop.h (start_event_loop): Don't declare.
8588 * event-loop.c (start_event_loop): Move...
8589 * main.c (start_event_loop): ...here. Now static.
8590
b7f999ae
SDJ
85912020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8592
8593 * MAINTAINERS: Update my email address.
8594
1085dfd4
KR
85952020-04-12 Kamil Rytarowski <n54@gmx.com>
8596
8597 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8598 IP_ALL.
8599
49d1d1f5
KR
86002020-04-12 Kamil Rytarowski <n54@gmx.com>
8601
8602 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8603 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8604
b4848d2a
KR
86052020-04-12 Kamil Rytarowski <n54@gmx.com>
8606
8607 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8608 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8609
51c133d5
KR
86102020-04-12 Kamil Rytarowski <n54@gmx.com>
8611
8612 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8613
54b8cbd0
KR
86142020-04-11 Kamil Rytarowski <n54@gmx.com>
8615
8616 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8617 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8618 (nbsd_nat_target::info_proc): New functions.
8619 * nbsd-nat.c (kinfo_get_vmmap): New function.
8620 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8621 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8622 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8623 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8624 functions.
8625 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8626 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8627 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8628 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8629 (KINFO_VME_FLAG_GROWS_DOWN): New.
8630
cf83625d
AS
86312020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8632
8633 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8634 bit shift.
8635
0c4311ab
TT
86362020-04-10 Tom Tromey <tromey@adacore.com>
8637
8638 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8639
3e65b3e9
TT
86402020-04-10 Tom Tromey <tromey@adacore.com>
8641
8642 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8643 separate debug files.
8644
13302e95
HD
86452020-04-10 Hannes Domani <ssbssa@yahoo.de>
8646
8647 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8648 Move to...
8649 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8650 ... here.
8651 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8652 Check for STATUS_WX86_BREAKPOINT.
8653 (windows_nat_target::wait): Same.
8654
bdfc1e8a
TV
86552020-04-10 Tom de Vries <tdevries@suse.de>
8656
8657 PR cli/25808
8658 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8659
f4460aec
SM
86602020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8661
8662 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8663 (Write After Approval): Remove Tom de Vries.
8664
a25198bb
BE
86652020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8666
8667 revert partially:
8668 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8669
aac66a4c
SM
8670 * buildsym.c (record_line): Fix undefined behavior and preserve
8671 lines at eof.
a25198bb 8672
206c98a6
KR
86732020-04-09 Kamil Rytarowski <n54@gmx.com>
8674
8675 * auxv.h (svr4_auxv_parse): New.
8676 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8677 and generic_auxv_parse.
8678 (svr4_auxv_parse): Add.
8679 * obsd-tdep.c: Include "auxv.h".
8680 (obsd_auxv_parse): Remove.
8681 (obsd_init_abi): Remove comment.
8682 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8683 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8684 * nbsd-tdep.c: Include "auxv.h".
8685 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8686
71fbdbaf
TT
86872020-04-08 Tom Tromey <tromey@adacore.com>
8688
8689 * nat/windows-nat.h (last_wait_event): Don't declare.
8690 (wait_for_debug_event): Update comment.
8691 * nat/windows-nat.c (last_wait_event): Now static.
8692
2c1d95e8
TT
86932020-04-08 Tom Tromey <tromey@adacore.com>
8694
8695 * windows-nat.c (wait_for_debug_event): Move to
8696 nat/windows-nat.c.
8697 * nat/windows-nat.h (wait_for_debug_event): Declare.
8698 * nat/windows-nat.c (wait_for_debug_event): Move from
8699 windows-nat.c. No longer static.
8700
d2977bc4
TT
87012020-04-08 Tom Tromey <tromey@adacore.com>
8702
8703 * windows-nat.c (get_windows_debug_event): Use
8704 fetch_pending_stop.
8705 * nat/windows-nat.h (fetch_pending_stop): Declare.
8706 * nat/windows-nat.c (fetch_pending_stop): New function.
8707
e758e19c
TT
87082020-04-08 Tom Tromey <tromey@adacore.com>
8709
8710 * windows-nat.c (windows_continue): Use matching_pending_stop and
8711 continue_last_debug_event.
8712 * nat/windows-nat.h (matching_pending_stop)
8713 (continue_last_debug_event): Declare.
8714 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8715 (matching_pending_stop, continue_last_debug_event): New
8716 functions.
8717
8d30e395
TT
87182020-04-08 Tom Tromey <tromey@adacore.com>
8719
8720 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8721 (handle_exception_result): Move to nat/windows-nat.h.
8722 (DEBUG_EXCEPTION_SIMPLE): Remove.
8723 (windows_nat::handle_ms_vc_exception): New function.
8724 (handle_exception): Move to nat/windows-nat.c.
8725 (get_windows_debug_event): Update.
8726 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8727 nat/windows-nat.c.
8728 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8729 (handle_exception_result): Move from windows-nat.c.
8730 (handle_exception): Declare.
8731 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8732 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8733 windows-nat.c.
8734
29de418d
TT
87352020-04-08 Tom Tromey <tromey@adacore.com>
8736
8737 * windows-nat.c (exception_count, event_count): Remove.
8738 (handle_exception, get_windows_debug_event)
8739 (do_initial_windows_stuff): Update.
8740
a816ba18
TT
87412020-04-08 Tom Tromey <tromey@adacore.com>
8742
8743 * windows-nat.c (windows_nat::handle_load_dll)
8744 (windows_nat::handle_unload_dll): Rename. No longer static.
8745 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8746 Declare.
8747
a00caa12
TT
87482020-04-08 Tom Tromey <tromey@adacore.com>
8749
8750 * complaints.h (stop_whining): Declare at top-level.
8751 (complaint): Don't declare stop_whining.
8752
d41b524f
TT
87532020-04-08 Tom Tromey <tromey@adacore.com>
8754
8755 * windows-nat.c (windows_nat::handle_output_debug_string):
8756 Rename. No longer static.
8757 * nat/windows-nat.h (handle_output_debug_string): Declare.
8758
3c76026d
TT
87592020-04-08 Tom Tromey <tromey@adacore.com>
8760
8761 * windows-nat.c (current_process_handle, current_process_id)
8762 (main_thread_id, last_sig, current_event, last_wait_event)
8763 (current_windows_thread, desired_stop_thread_id, pending_stops)
8764 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8765 (display_selectors, fake_create_process)
8766 (get_windows_debug_event): Update.
8767 * nat/windows-nat.h (current_process_handle, current_process_id)
8768 (main_thread_id, last_sig, current_event, last_wait_event)
8769 (current_windows_thread, desired_stop_thread_id, pending_stops)
8770 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8771 * nat/windows-nat.c (current_process_handle, current_process_id)
8772 (main_thread_id, last_sig, current_event, last_wait_event)
8773 (current_windows_thread, desired_stop_thread_id, pending_stops)
8774 (siginfo_er): New globals. Move from windows-nat.c.
8775
9d8679cc
TT
87762020-04-08 Tom Tromey <tromey@adacore.com>
8777
8778 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8779 (handle_load_dll): Update.
8780 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8781
28688adf
TT
87822020-04-08 Tom Tromey <tromey@adacore.com>
8783
8784 * windows-nat.c (enum thread_disposition_type): Move to
8785 nat/windows-nat.h.
8786 (windows_nat::thread_rec): Rename from thread_rec. No longer
8787 static.
8788 (windows_add_thread, windows_nat_target::fetch_registers)
8789 (windows_nat_target::store_registers, handle_exception)
8790 (windows_nat_target::resume, get_windows_debug_event)
8791 (windows_nat_target::get_tib_address)
8792 (windows_nat_target::thread_name)
8793 (windows_nat_target::thread_alive): Update.
8794 * nat/windows-nat.h (enum thread_disposition_type): Move from
8795 windows-nat.c.
8796 (thread_rec): Declare.
8797
4834dad0
TT
87982020-04-08 Tom Tromey <tromey@adacore.com>
8799
8800 * windows-nat.c: Add "using namespace".
8801 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8802 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8803
65bafd5b
TT
88042020-04-08 Tom Tromey <tromey@adacore.com>
8805
8806 * nat/windows-nat.h (struct windows_thread_info): Declare
8807 destructor.
8808 * nat/windows-nat.c (~windows_thread_info): New.
8809
0a4afda3
TT
88102020-04-08 Tom Tromey <tromey@adacore.com>
8811
8812 PR gdb/22992
8813 * windows-nat.c (current_event): Update comment.
8814 (last_wait_event, desired_stop_thread_id): New globals.
8815 (struct pending_stop): New.
8816 (pending_stops): New global.
8817 (windows_nat_target) <stopped_by_sw_breakpoint>
8818 <supports_stopped_by_sw_breakpoint>: New methods.
8819 (windows_fetch_one_register): Add assertions. Adjust PC.
8820 (windows_continue): Handle pending stops. Suspend other threads
8821 when stepping. Use last_wait_event
8822 (wait_for_debug_event): New function.
8823 (get_windows_debug_event): Use wait_for_debug_event. Handle
8824 pending stops. Queue spurious stops.
8825 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8826 (windows_nat_target::kill): Use wait_for_debug_event.
8827 * nat/windows-nat.h (struct windows_thread_info)
8828 <stopped_at_software_breakpoint>: New field.
8829 * nat/windows-nat.c (windows_thread_info::resume): Clear
8830 stopped_at_software_breakpoint.
8831
8e61ebec
TT
88322020-04-08 Tom Tromey <tromey@adacore.com>
8833
8834 * windows-nat.c (enum thread_disposition_type): New.
8835 (thread_rec): Replace "get_context" parameter with "disposition";
8836 change type.
8837 (windows_add_thread, windows_nat_target::fetch_registers)
8838 (windows_nat_target::store_registers, handle_exception)
8839 (windows_nat_target::resume, get_windows_debug_event)
8840 (windows_nat_target::get_tib_address)
8841 (windows_nat_target::thread_name)
8842 (windows_nat_target::thread_alive): Update.
8843
98a03287
TT
88442020-04-08 Tom Tromey <tromey@adacore.com>
8845
8846 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8847 (windows_continue): Use windows_continue::resume.
8848 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8849 resume>: Declare new methods.
8850 * nat/windows-nat.c: New file.
8851 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8852
7c7411bc
TT
88532020-04-08 Tom Tromey <tromey@adacore.com>
8854
8855 * windows-nat.c (windows_add_thread, windows_delete_thread)
8856 (windows_nat_target::fetch_registers)
8857 (windows_nat_target::store_registers, fake_create_process)
8858 (windows_nat_target::resume, windows_nat_target::resume)
8859 (get_windows_debug_event, windows_nat_target::wait)
8860 (windows_nat_target::pid_to_str)
8861 (windows_nat_target::get_tib_address)
8862 (windows_nat_target::get_ada_task_ptid)
8863 (windows_nat_target::thread_name)
8864 (windows_nat_target::thread_alive): Use lwp, not tid.
8865
2950fdf7
TT
88662020-04-08 Tom Tromey <tromey@adacore.com>
8867
8868 * windows-nat.c (handle_exception)
8869 (windows_nat_target::thread_name): Update.
8870 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8871 <name>: Now unique_xmalloc_ptr.
8872
62fe396b
TT
88732020-04-08 Tom Tromey <tromey@adacore.com>
8874
8875 * windows-nat.c (thread_rec)
8876 (windows_nat_target::fetch_registers): Update.
8877 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8878 Update comment.
8879 <debug_registers_changed, reload_context>: Now bool.
8880
e9534bd2
TT
88812020-04-08 Tom Tromey <tromey@adacore.com>
8882
8883 * windows-nat.c (windows_add_thread): Use new.
8884 (windows_init_thread_list, windows_delete_thread): Use delete.
8885 (get_windows_debug_event): Update.
8886 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8887 destructor, and initializers.
8888
ae1f8880
TT
88892020-04-08 Tom Tromey <tromey@adacore.com>
8890
8891 * windows-nat.c (struct windows_thread_info): Remove.
8892 * nat/windows-nat.h: New file.
8893
55a1e039
TT
88942020-04-08 Tom Tromey <tromey@adacore.com>
8895
8896 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8897 (thread_rec, windows_add_thread, windows_delete_thread)
8898 (windows_continue): Update.
8899
93366324
TT
89002020-04-08 Tom Tromey <tromey@adacore.com>
8901
8902 * windows-nat.c (struct windows_thread_info): Remove typedef.
8903 (thread_head): Remove.
8904 (thread_list): New global.
8905 (thread_rec, windows_add_thread, windows_init_thread_list)
8906 (windows_delete_thread, windows_continue): Update.
8907
0f2265e2
SM
89082020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8909
8910 * windows-tdep.h (windows_init_abi): Add comment.
8911 (cygwin_init_abi): New declaration.
8912 * windows-tdep.c: Split signal enumeration in two, one for
8913 Windows and one for Cygwin.
8914 (windows_gdb_signal_to_target): Only deal with signal of the
8915 Windows OS ABI.
8916 (cygwin_gdb_signal_to_target): New function.
8917 (windows_init_abi): Rename to windows_init_abi_common, don't set
8918 gdb_signal_to_target gdbarch method. Add new new function with
8919 this name.
8920 (cygwin_init_abi): New function.
8921 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8922 comment. Don't call windows_init_abi.
8923 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8924 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8925 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8926 i386_windows_init_abi_common, don't call windows_init_abi. Add
8927 a new function of this name.
8928 (i386_cygwin_init_abi): New function.
8929 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8930 OS ABI Cygwin.
8931
3810f182
SM
89322020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8933
8934 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8935 parameter.c.
8936 (dwarf2_read_gdb_index): Update.
8937
063f8e80
KR
89382020-04-07 Kamil Rytarowski <n54@gmx.com>
8939
8940 * nbsd-tdep.c: Include "objfiles.h".
8941 (nbsd_skip_solib_resolver): New.
8942 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8943
85a9510c 89442020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8945
8946 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8947 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8948 with DW_LLE_base_addressx are being emitted in DWARFv5.
8949 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8950 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8951 unsigned integer.
8952
9fc3eaae 89532020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8954
8955 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8956 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8957 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8958 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8959 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8960 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8961 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8962
8963
41144253 89642020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8965
8966 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8967 (read_loclist_index): New function definition.
8968 (lookup_loclist_base): New function definition.
8969 (read_loclist_header): New function definition.
8970 (dwarf2_cu): Add loclist_base and loclist_header field.
8971 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8972 (read_full_die_1): Read the value of DW_AT_loclists_base.
8973 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8974 (read_attribute_value): Handle DW_FORM_loclistx.
8975 (skip_one_die): Handle DW_FORM_loclistx.
8976 (loclist_header): New structure declaration.
8977 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8978
9f4e76a4
SM
89792020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8980
8981 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8982 constructor. Remove `addr` parameter from other constructor and
8983 add `per_cu` parameter.
8984 * dwarf2/read.c (create_partial_symtab): Update.
8985
25c11aca
TV
89862020-04-07 Tom de Vries <tdevries@suse.de>
8987
8988 PR symtab/25796
8989 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8990 (partial_die_info::fixup): Inherit has_const_value.
8991
5707e24b
TV
89922020-04-07 Tom de Vries <tdevries@suse.de>
8993
8994 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8995 symbols without address.
8996
05f00e22
KR
89972020-04-06 Kamil Rytarowski <n54@gmx.com>
8998
8999 * nbsd-nat.h (struct thread_info): Add forward declaration.
9000 (nbsd_nat_target::thread_alive): Add.
9001 (nbsd_nat_target::thread_name): Likewise.
9002 (nbsd_nat_target::update_thread_list): Likewise.
9003 (update_thread_list::post_attach): Likewise.
9004 (post_attach::pid_to_str): Likewise.
9005 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9006 (nbsd_thread_lister): Add.
9007 (nbsd_nat_target::thread_alive): Likewise.
9008 (nbsd_nat_target::thread_name): Likewise.
9009 (nbsd_add_threads): Likewise.
9010 (update_thread_list::post_attach): Likewise.
9011 (nbsd_nat_target::update_thread_list): Likewise.
9012 (post_attach::pid_to_str): Likewise.
9013
6ee448cc
TT
90142020-04-06 Tom Tromey <tromey@adacore.com>
9015
9016 * ada-valprint.c (print_variant_part): Extract the variant field.
9017 (print_field_values): Use the field as the outer value when
9018 recursing.
9019
dea34e8c
TT
90202020-04-06 Tom Tromey <tromey@adacore.com>
9021
9022 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9023 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9024 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9025 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9026 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9027
93689ce9
TT
90282020-04-06 Tom Tromey <tromey@adacore.com>
9029
9030 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9031 TYPE_CODE_ERROR.
9032
79743962
KR
90332020-04-06 Kamil Rytarowski <n54@gmx.com>
9034
9035 * nbsd-tdep.c: Include "gdbarch.h".
9036 Define enum with NetBSD signal numbers.
9037 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9038 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9039 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9040 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9041 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9042 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9043 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9044 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9045 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9046 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9047 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9048 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9049
9e7c9a03
HD
90502020-04-03 Hannes Domani <ssbssa@yahoo.de>
9051
9052 PR gdb/25325
9053 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9054
d9e49b61
TT
90552020-04-03 Tom Tromey <tromey@adacore.com>
9056
9057 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9058 Read constant block.
9059
e0fc5c3f
SM
90602020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9061
9062 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9063 (gdb_bfd_get_full_section_contents): New declaration.
9064 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9065 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9066 gdb_bfd_get_full_section_contents.
9067
e2ff18a0
SM
90682020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9069
9070 * exec.c (build_section_table): Replace internal_error with
9071 gdb_assert.
9072 (section_table_xfer_memory_partial): Likewise.
9073 * mdebugread.c (parse_partial_symbols): Likewise.
9074 * psymtab.c (lookup_partial_symbol): Likewise.
9075 * utils.c (wrap_here): Likewise.
9076
0830d301
TT
90772020-04-02 Tom Tromey <tromey@adacore.com>
9078
9079 * f-lang.c (build_fortran_types): Use arch_type to initialize
9080 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9081
e7da7f8f
TT
90822020-04-02 Tom Tromey <tromey@adacore.com>
9083
9084 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9085 of attributes.
9086
c90d28ac
AB
90872020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9088 Bernd Edlinger <bernd.edlinger@hotmail.de>
9089 Tom Tromey <tromey@adacore.com>
9090
9091 * buildsym.c (buildsym_compunit::record_line): Remove
9092 deduplication code.
9093
1aa98955
TV
90942020-04-02 Tom de Vries <tdevries@suse.de>
9095
9096 PR ada/24671
9097 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9098
d3214198
TV
90992020-04-02 Tom de Vries <tdevries@suse.de>
9100
9101 * dwarf2/read.c (dwarf2_gdb_index_functions,
9102 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9103 NULL.
9104 * psymtab.c (psym_lookup_global_symbol_language): New function.
9105 (psym_functions): Init psym_lookup_global_symbol_language with
9106 psym_lookup_global_symbol_language.
9107 * symfile-debug.c (debug_sym_quick_functions): Init
9108 lookup_global_symbol_language with NULL.
9109 * symfile.c (set_initial_language): Remove fixme comment.
9110 * symfile.h (struct quick_symbol_functions): Add
9111 lookup_global_symbol_language.
9112 * symtab.c (find_quick_global_symbol_language): New function.
9113 (find_main_name): Use find_quick_global_symbol_language.
9114
2836752f
SM
91152020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9116
9117 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9118
64dc2d4b
BE
91192020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9120
9121 * buildsym.c (record_line): Fix undefined behavior and preserve
9122 lines at eof.
9123
bbe3dc41
BE
91242020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9125
9126 * buildsym.c (record_line): Fix the resizing condition.
9127
6b4a335b
TT
91282020-04-01 Tom Tromey <tom@tromey.com>
9129
9130 * value.h (value_literal_complex): Add comment.
9131 * valops.c (value_literal_complex): Refer to value.h.
9132
3638a098
TT
91332020-04-01 Tom Tromey <tom@tromey.com>
9134
9135 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9136 (scalar_type): New rule, from typebase.
9137 (typebase): Use scalar_type. Recognize complex types.
9138 (field_name): Handle FLOAT_KEYWORD.
9139 (ident_tokens): Add _Complex and __complex__.
9140
c34e8714
TT
91412020-04-01 Tom Tromey <tom@tromey.com>
9142
9143 PR exp/25299:
9144 * valarith.c (promotion_type, complex_binop): New functions.
9145 (scalar_binop): Handle complex numbers. Use promotion_type.
9146 (value_pos, value_neg, value_complement): Handle complex numbers.
9147
fa649bb7
TT
91482020-04-01 Tom Tromey <tom@tromey.com>
9149
9150 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9151 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9152 (parse_number): Handle complex numbers.
9153
981c08ce
TT
91542020-04-01 Tom Tromey <tom@tromey.com>
9155
9156 * c-valprint.c (c_decorations): Change complex suffix to "i".
9157
4c99290d
TT
91582020-04-01 Tom Tromey <tom@tromey.com>
9159
9160 * valprint.c (generic_value_print_complex): Use accessors.
9161 * value.h (value_real_part, value_imaginary_part): Declare.
9162 * valops.c (value_real_part, value_imaginary_part): New
9163 functions.
9164 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9165
5b930b45
TT
91662020-04-01 Tom Tromey <tom@tromey.com>
9167
9168 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9169 (read_range_type): Update.
9170 * mdebugread.c (basic_type): Update.
9171 * go-lang.c (build_go_types): Use init_complex_type.
9172 * gdbtypes.h (struct main_type) <complex_type>: New member.
9173 (init_complex_type): Update.
9174 (arch_complex_type): Don't declare.
9175 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9176 Make name if none given. Use alloc_type_copy. Look for cached
9177 complex type.
9178 (arch_complex_type): Remove.
9179 (gdbtypes_post_init): Use init_complex_type.
9180 * f-lang.c (build_fortran_types): Use init_complex_type.
9181 * dwarf2/read.c (read_base_type): Update.
9182 * d-lang.c (build_d_types): Use init_complex_type.
9183 * ctfread.c (read_base_type): Update.
9184
53cccef1
TBA
91852020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9186
9187 * infrun.c (stop_all_threads): Update assertion, plus when
9188 stopping threads, take into account that we might be trying
9189 to stop an all-stop target.
9190 (stop_waiting): Call 'stop_all_threads' if there exists a
9191 non-stop target.
9192
a0714d30
TBA
91932020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9194
9195 * target.h (exists_non_stop_target): New function declaration.
9196 * target.c (exists_non_stop_target): New function.
9197
60e22c1e
HD
91982020-04-01 Hannes Domani <ssbssa@yahoo.de>
9199
9200 PR gdb/24789
9201 * eval.c (is_integral_or_integral_reference): New function.
9202 (evaluate_subexp_standard): Allow integer references in
9203 pointer arithmetic.
9204
e139a727
TBA
92052020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9206
9207 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9208 check for no ptid in the stop reply when the target is non-stop.
9209
e0802d59
TT
92102020-04-01 Tom Tromey <tromey@adacore.com>
9211
9212 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9213 "name" parameter to rvalue reference. Initialize m_name_holder.
9214 <lookup_name_info>: New overloads.
9215 <name>: Return gdb::string_view.
9216 <c_str>: New method.
9217 <make_ignore_params>: Update.
9218 <search_name_hash>: Update.
9219 <language_lookup_name>: Return const char *.
9220 <m_name>: Change type.
9221 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9222 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9223 (lookup_name_info::match_any): Update.
9224 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9225 Update.
9226 * minsyms.c (linkage_name_str): Update.
9227 * language.c (default_symbol_name_matcher): Update.
9228 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9229 Update.
9230 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9231 (ada_lookup_name_info::ada_lookup_name_info): Update.
9232 (literal_symbol_name_matcher): Update.
9233
8c072cb6
TT
92342020-04-01 Tom Tromey <tromey@adacore.com>
9235
9236 * psymtab.c (psymtab_search_name): Remove function.
9237 (psym_lookup_symbol): Create search name and lookup name here.
9238 (lookup_partial_symbol): Remove "name" parameter; add
9239 lookup_name.
9240 (psym_expand_symtabs_for_function): Update.
9241
6f29a534
TT
92422020-03-31 Joel Jones <joelkevinjones@gmail.com>
9243
9244 PR tui/25597:
9245 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9246
af62665e
TT
92472020-03-31 Tom Tromey <tromey@adacore.com>
9248
9249 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9250 memcpy.
9251
d1a89da5
NC
92522020-03-30 Nelson Chu <nelson.chu@sifive.com>
9253
9254 * features/riscv/32bit-csr.xml: Regenerated.
9255 * features/riscv/64bit-csr.xml: Regenerated.
9256
d8af9068
TT
92572020-03-30 Tom Tromey <tromey@adacore.com>
9258
9259 * ada-valprint.c (print_variant_part): Update.
9260 * ada-lang.h (ada_which_variant_applies): Update.
9261 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9262 outer_valaddr parameters; replace with "outer" value parameter.
9263 (to_fixed_variant_branch_type): Update.
9264
227c0bf4
PFC
92652020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9266
9267 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9268 <list>. Remove inclusion of observable.h.
9269 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9270 (struct arch_lwp_info): New struct.
9271 (class ppc_linux_dreg_interface): New class.
9272 (struct ppc_linux_process_info): New struct.
9273 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9274 <low_new_clone, low_forget_process, low_prepare_to_resume>
9275 <copy_thread_dreg_state, mark_thread_stale>
9276 <mark_debug_registers_changed, register_hw_breakpoint>
9277 <clear_hw_breakpoint, register_wp, clear_wp>
9278 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9279 <num_memory_accesses, get_trigger_type>
9280 <create_watchpoint_request, hwdebug_point_cmp>
9281 <init_arch_lwp_info, get_arch_lwp_info>
9282 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9283 methods.
9284 <struct ptid_hash>: New inner struct.
9285 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9286 members.
9287 (saved_dabr_value, hwdebug_info, max_slots_number)
9288 (struct hw_break_tuple, struct thread_points, ppc_threads)
9289 (have_ptrace_hwdebug_interface)
9290 (hwdebug_find_thread_points_by_tid)
9291 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9292 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9293 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9294 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9295 use m_dreg_interface.
9296 (hwdebug_point_cmp): Change to...
9297 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9298 reference arguments instead of pointers.
9299 (ppc_linux_nat_target::ranged_break_num_registers): Use
9300 m_dreg_interface.
9301 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9302 m_dreg_interface. Call register_hw_breakpoint.
9303 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9304 m_dreg_interface. Call clear_hw_breakpoint.
9305 (get_trigger_type): Change to...
9306 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9307 comment.
9308 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9309 use m_dreg_interface. Call register_hw_breakpoint.
9310 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9311 use m_dreg_interface. Call clear_hw_breakpoint.
9312 (can_use_watchpoint_cond_accel): Change to...
9313 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9314 method. Update comment, use m_dreg_interface and
9315 m_process_info.
9316 (calculate_dvc): Change to...
9317 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9318 m_dreg_interface.
9319 (num_memory_accesses): Change to...
9320 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9321 (check_condition): Change to...
9322 (ppc_linux_nat_target::check_condition): ...this method.
9323 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9324 comment, use m_dreg_interface.
9325 (create_watchpoint_request): Change to...
9326 (ppc_linux_nat_target::create_watchpoint_request): ...this
9327 method. Use m_dreg_interface.
9328 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9329 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9330 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9331 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9332 (ppc_linux_nat_target::low_forget_process)
9333 (ppc_linux_nat_target::low_new_fork)
9334 (ppc_linux_nat_target::low_new_clone)
9335 (ppc_linux_nat_target::low_delete_thread)
9336 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9337 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9338 only call mark_thread_stale.
9339 (ppc_linux_thread_exit): Remove.
9340 (ppc_linux_nat_target::stopped_data_address): Change to...
9341 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9342 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9343 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9344 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9345 comment. Call low_stopped_data_address.
9346 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9347 m_dreg_interface.
9348 (ppc_linux_nat_target::masked_watch_num_registers): Use
9349 m_dreg_interface.
9350 (ppc_linux_nat_target::copy_thread_dreg_state)
9351 (ppc_linux_nat_target::mark_thread_stale)
9352 (ppc_linux_nat_target::mark_debug_registers_changed)
9353 (ppc_linux_nat_target::register_hw_breakpoint)
9354 (ppc_linux_nat_target::clear_hw_breakpoint)
9355 (ppc_linux_nat_target::register_wp)
9356 (ppc_linux_nat_target::clear_wp)
9357 (ppc_linux_nat_target::init_arch_lwp_info)
9358 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9359 (_initialize_ppc_linux_nat): Remove observer callback.
9360
4db10d8f
PFC
93612020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9362
9363 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9364 (ppc_linux_nat_target::auxv_parse)
9365 (ppc_linux_nat_target::read_description)
9366 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9367 Move up.
9368
1310c1b0
PFC
93692020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9370
9371 * linux-nat.h (low_new_clone): New method.
9372 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9373
69b037c3
SM
93742020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9375
9376 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9377 (dbx_expand_psymtab): ... this.
9378 (start_psymtab): Update.
9379 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9380 (mdebug_expand_psymtab): ... this.
9381 (parse_partial_symbols): Update.
9382 (new_psymtab): Update.
9383 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9384 (xcoff_expand_psymtab): ... this.
9385 (xcoff_start_psymtab): Update.
9386
48993951
SM
93872020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9388
9389 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9390 <expand_dependencies>: ... this.
9391 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9392 (partial_symtab::expand_dependencies): ... this.
9393 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9394 Update.
9395 (dwarf2_psymtab::expand_psymtab): Update.
9396 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9397 * mdebugread.c (psymtab_to_symtab_1): Update.
9398 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9399
3ad83046
SM
94002020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9401
9402 * psympriv.h (discard_psymtab): Remove.
9403 * dbxread.c (dbx_end_psymtab): Update.
9404 * xcoffread.c (xcoff_end_psymtab): Update.
9405
4d1b9ab6
TT
94062020-03-28 Tom Tromey <tom@tromey.com>
9407
9408 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9409 comment.
9410
f1749218
TT
94112020-03-28 Tom Tromey <tom@tromey.com>
9412
9413 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9414
ebea7626
HD
94152020-03-27 Hannes Domani <ssbssa@yahoo.de>
9416
9417 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9418
a879b4d5
JB
94192020-03-26 John Baldwin <jhb@FreeBSD.org>
9420
9421 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9422
0826b30a
TT
94232020-03-26 Tom Tromey <tom@tromey.com>
9424
9425 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9426 (mark_common_block_symbol_computed, read_tag_string_type)
9427 (attr_to_dynamic_prop, read_subrange_type): Update.
9428 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9429 to be methods on struct attribute.
9430 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9431 (read_call_site_scope, partial_die_info::read)
9432 (partial_die_info::read, lookup_die_type, follow_die_ref):
9433 Update.
9434 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9435 from dwarf2_get_ref_die_offset.
9436 (attribute::constant_value): New method, from
9437 dwarf2_get_attr_constant_value.
9438 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9439 Declare method.
9440 <constant_value>: New method.
9441
2b2558bf
TT
94422020-03-26 Tom Tromey <tom@tromey.com>
9443
9444 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9445 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9446 (dwarf_type_encoding_name): Move to stringify.c.
9447 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9448 * dwarf2/stringify.c: New file.
9449 * dwarf2/stringify.h: New file.
9450
eeb64781
TT
94512020-03-26 Tom Tromey <tom@tromey.com>
9452
9453 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9454 Rewrite.
9455
a39fdb41
TT
94562020-03-26 Tom Tromey <tom@tromey.com>
9457
9458 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9459 methods.
9460 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9461 (lookup_ranges_base): Likewise.
9462 (read_cutu_die_from_dwo, read_full_die_1): Update.
9463
436c571c
TT
94642020-03-26 Tom Tromey <tom@tromey.com>
9465
9466 * dwarf2/read.c (read_import_statement, read_file_scope)
9467 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9468 (read_lexical_block_scope, read_call_site_scope)
9469 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9470 (handle_struct_member_die, process_structure_scope)
9471 (update_enumeration_type_from_children)
9472 (process_enumeration_scope, read_array_type, read_common_block)
9473 (read_namespace, read_module, read_subroutine_type): Update.
9474 (sibling_die): Remove.
9475
052c8bb8
TT
94762020-03-26 Tom Tromey <tom@tromey.com>
9477
9478 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9479 (build_type_psymtabs_reader, read_structure_type)
9480 (read_enumeration_type, read_full_die_1): Update.
9481 (dwarf2_attr_no_follow): Move to die.h.
9482 * dwarf2/die.h (struct die_info) <attr>: New method.
9483
2b24b6e4
TT
94842020-03-26 Tom Tromey <tom@tromey.com>
9485
9486 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9487 <base_address>: Now an optional.
9488 (dwarf2_find_base_address, dwarf2_rnglists_process)
9489 (dwarf2_ranges_process, fill_in_loclist_baton)
9490 (dwarf2_symbol_mark_computed): Update.
9491
c2d50fd0
TT
94922020-03-26 Tom Tromey <tom@tromey.com>
9493
9494 * dwarf2/read.c (struct die_info): Move to die.h.
9495 * dwarf2/die.h: New file.
9496
0df7ad3a
TT
94972020-03-26 Tom Tromey <tom@tromey.com>
9498
9499 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9500 * dwarf2/read.c
9501 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9502 Move to line-header.c.
9503 (read_checked_initial_length_and_offset, read_formatted_entries):
9504 Likewise.
9505 (dwarf_decode_line_header): Split into two.
9506 * dwarf2/line-header.c
9507 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9508 Move from read.c.
9509 (read_checked_initial_length_and_offset, read_formatted_entries):
9510 Likewise.
9511 (dwarf_decode_line_header): New function, split from read.c.
9512
86c0bb4c
TT
95132020-03-26 Tom Tromey <tom@tromey.com>
9514
9515 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9516 Declare method.
9517 * dwarf2/read.c (read_attribute_value): Update.
9518 (dwarf2_per_objfile::read_line_string): Rename from
9519 read_indirect_line_string.
9520 (read_formatted_entries): Update.
9521
2ef46c2f
TT
95222020-03-26 Tom Tromey <tom@tromey.com>
9523
9524 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9525 variable.
9526
4f9c1eda
TT
95272020-03-26 Tom Tromey <tom@tromey.com>
9528
9529 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9530 const.
9531 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9532 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9533 parameter const.
9534
5a0e026f
TT
95352020-03-26 Tom Tromey <tom@tromey.com>
9536
9537 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9538 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9539 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9540 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9541
8844c11b
TT
95422020-03-26 Tom Tromey <tom@tromey.com>
9543
9544 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9545 file_names_size, file_full_name, file_file_name>: Use const.
9546 <file_name_at, file_names>: Add const overload.
9547 * dwarf2/line-header.c (line_header::file_file_name)
9548 (line_header::file_full_name): Update.
9549
c90ec28a
TT
95502020-03-26 Tom Tromey <tom@tromey.com>
9551
9552 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9553 (macro_start_file, consume_improper_spaces)
9554 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9555 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9556 (dwarf_decode_macros): Move to macro.c.
9557 * dwarf2/macro.c: New file.
9558 * dwarf2/macro.h: New file.
9559 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9560
4f44ae6c
TT
95612020-03-26 Tom Tromey <tom@tromey.com>
9562
9563 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9564 method.
9565 * dwarf2/section.c: New method. From
9566 read_indirect_string_at_offset_from.
9567 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9568 (read_indirect_string_at_offset_from): Move to section.c.
9569 (read_indirect_string_at_offset): Rewrite.
9570 (read_indirect_line_string_at_offset): Remove.
9571 (read_indirect_string, read_indirect_line_string)
9572 (dwarf_decode_macro_bytes): Update.
9573
a0194fa8
TT
95742020-03-26 Tom Tromey <tom@tromey.com>
9575
9576 * dwarf2/section.h (struct dwarf2_section_info)
9577 <overload_complaint>: Declare.
9578 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9579 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9580 Rename from dwarf2_section_buffer_overflow_complaint.
9581 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9582 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9583
3d27bbdb
TT
95842020-03-26 Tom Tromey <tom@tromey.com>
9585
9586 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9587 Declare.
9588 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9589 Move from read.c.
9590 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9591 to section.c.
9592
9eac9650
TT
95932020-03-26 Tom Tromey <tom@tromey.com>
9594
9595 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9596
bf80d710
TT
95972020-03-26 Tom Tromey <tom@tromey.com>
9598
9599 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9600 "builder".
9601 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9602 parameter.
9603 (dwarf_decode_macros): Update.
9604
0314b390
TT
96052020-03-26 Tom Tromey <tom@tromey.com>
9606
9607 * dwarf2/read.c (read_attribute_value): Update.
9608 (read_indirect_string_from_dwz): Move to dwz.c; change into
9609 method.
9610 (dwarf_decode_macro_bytes): Update.
9611 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9612 * dwarf2/dwz.c: New file.
9613 * Makefile.in (COMMON_SFILES): Add dwz.c.
9614
9fda78b6
TT
96152020-03-26 Tom Tromey <tom@tromey.com>
9616
9617 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9618 * dwarf2/read.c: Add include.
9619 * dwarf2/index-write.c: Add include.
9620 * dwarf2/index-cache.c: Add include.
9621 * dwarf2/dwz.h: New file.
9622
33aa3c10
TT
96232020-03-25 Tom Tromey <tom@tromey.com>
9624
9625 * compile/compile-object-load.c (get_out_value_type): Mention
9626 correct symbol name in error message.
9627
d503b685
HD
96282020-03-25 Hannes Domani <ssbssa@yahoo.de>
9629
9630 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9631
7b1eff95
TV
96322020-03-25 Tom de Vries <tdevries@suse.de>
9633
9634 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9635 * symmisc.c (dump_symtab_1): Print user and includes fields.
9636 (maintenance_info_symtabs): Same.
9637
dd895392
AB
96382020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9639
9640 PR gdb/25534
9641 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9642 (riscv_regcache_cooked_write): New function.
9643 (riscv_push_dummy_call): Use new function.
9644 (riscv_return_value): Likewise.
9645
5ab2fbf1
SM
96462020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9647
9648 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9649 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9650 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9651 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9652 * infrun.c (follow_fork): Likewise.
9653 (follow_fork_inferior): Likewise.
9654 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9655 * linux-nat.h (class linux_nat_target): Likewise.
9656 * remote.c (class remote_target) <follow_fork>: Likewise.
9657 (remote_target::follow_fork): Likewise.
9658 * target-delegates.c: Re-generate.
9659 * target.c (default_follow_fork): Likewise.
9660 (target_follow_fork): Likewise.
9661 * target.h (struct target_ops) <follow_fork>: Likewise.
9662 (target_follow_fork): Likewise.
9663
a64fafb5
TV
96642020-03-24 Tom de Vries <tdevries@suse.de>
9665
9666 * psymtab.c (maintenance_info_psymtabs): Print user field.
9667
fe26d3a3
TT
96682020-03-20 Tom Tromey <tromey@adacore.com>
9669
9670 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9671 const.
9672 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9673 const.
9674
c884cc46
SM
96752020-03-20 Simon Marchi <simon.marchi@efficios.com>
9676
9677 * ptrace.m4: Don't check for ptrace declaration.
9678 * config.in: Re-generate.
9679 * configure: Re-generate.
9680 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9681 not defined.
9682
1ff700c2
KR
96832020-03-20 Kamil Rytarowski <n54@gmx.com>
9684
9685 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9686 `PTRACE_TYPE_RET'.
9687 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9688 * sparc-nat.c (gdb_ptrace): Likewise.
9689 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9690
f7d4f0b1
TT
96912020-03-20 Tom Tromey <tromey@adacore.com>
9692
9693 * c-exp.y (lex_one_token): Fix assert.
9694
f67210ff
TT
96952020-03-20 Tom Tromey <tromey@adacore.com>
9696
9697 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9698 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9699 strncpy call.
9700
1773be9e
TT
97012020-03-20 Tom Tromey <tromey@adacore.com>
9702
9703 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9704
70304be9
TT
97052020-03-20 Tom Tromey <tromey@adacore.com>
9706
9707 * ada-valprint.c (print_variant_part): Remove parameters; switch
9708 to value-based API.
9709 (print_field_values): Likewise.
9710 (ada_val_print_struct_union): Likewise.
9711 (ada_value_print_1): Update.
9712
9faa006d
KR
97132020-03-20 Kamil Rytarowski <n54@gmx.com>
9714
9715 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9716 nbsd_nat_target instead of inf_ptrace_target.
9717 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9718 nbsd_nat_target.
9719
4a90f062
KR
97202020-03-20 Kamil Rytarowski <n54@gmx.com>
9721
9722 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9723 it to the ptrace call.
9724 * (store_registers): Likewise.
9725
97262020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9727
9728 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9729 it to the ptrace call.
9730 * (store_registers): Likewise.
9731
2d07da27
LM
97322020-03-19 Luis Machado <luis.machado@linaro.org>
9733
9734 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9735 valid, fetch vg value from ptrace.
9736
f09db380
KR
97372020-03-19 Kamil Rytarowski <n54@gmx.com>
9738 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9739 * inf-ptrace.c: Likewise.
9740 * (gdb_ptrace): Add.
9741 * (inf_ptrace_target::resume): Update.
9742 * (inf_ptrace_target::xfer_partial): Likewise.
9743 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9744 * (inf_ptrace_peek_poke): Update.
9745
fcc7376e
KR
97462020-03-19 Kamil Rytarowski <n54@gmx.com>
9747
9748 * x86-bsd-nat.c (gdb_ptrace): New.
9749 * (x86bsd_dr_set): Add new argument `ptid'.
9750 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9751 x86bsd_dr_set_addr): Update.
9752
cada5fc9
AB
97532020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9754
9755 * remote.c (remote_target::process_stop_reply): Handle events for
9756 all threads differently.
9757
19a2740f
AB
97582020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9759
9760 * completer.c (completion_tracker::remove_completion): Define new
9761 function.
9762 * completer.h (completion_tracker::remove_completion): Declare new
9763 function.
9764 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9765 when adding a C++ function symbol.
9766
724fd9ba
AB
97672020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9768
9769 * completer.c (completion_tracker::completion_hash_entry): Define
9770 new class.
9771 (advance_to_filename_complete_word_point): Call
9772 recompute_lowest_common_denominator.
9773 (completion_tracker::completion_tracker): Call discard_completions
9774 to setup the hash table.
9775 (completion_tracker::discard_completions): Allow for being called
9776 from the constructor, pass new equal function, and element deleter
9777 when constructing the hash table. Initialise new class member
9778 variables.
9779 (completion_tracker::maybe_add_completion): Remove use of
9780 m_entries_vec, and store more information into m_entries_hash.
9781 (completion_tracker::recompute_lcd_visitor): New function, most
9782 content taken from...
9783 (completion_tracker::recompute_lowest_common_denominator):
9784 ...here, this now just visits each item in the hash calling the
9785 above visitor.
9786 (completion_tracker::build_completion_result): Remove use of
9787 m_entries_vec, call recompute_lowest_common_denominator.
9788 * completer.h (completion_tracker::have_completions): Remove use
9789 of m_entries_vec.
9790 (completion_tracker::completion_hash_entry): Declare new class.
9791 (completion_tracker::recompute_lowest_common_denominator): Change
9792 function signature.
9793 (completion_tracker::recompute_lcd_visitor): Declare new function.
9794 (completion_tracker::m_entries_vec): Delete.
9795 (completion_tracker::m_entries_hash): Initialize to NULL.
9796 (completion_tracker::m_lowest_common_denominator_valid): New
9797 member variable.
9798 (completion_tracker::m_lowest_common_denominator_max_length): New
9799 member variable.
9800
5a82b8a1
KR
98012020-03-17 Kamil Rytarowski <n54@gmx.com>
9802
9803 * regformats/regdef.h: Put reg in gdb namespace.
9804
fb516a69
KR
98052020-03-17 Kamil Rytarowski <n54@gmx.com>
9806
9807 * i386-bsd-nat.c (gdb_ptrace): New.
9808 * (i386bsd_fetch_inferior_registers,
9809 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9810 * (i386bsd_fetch_inferior_registers,
9811 i386bsd_store_inferior_registers) Use gdb_ptrace.
9812
1c0aa1fb
KR
98132020-03-17 Kamil Rytarowski <n54@gmx.com>
9814
9815 * amd64-bsd-nat.c (gdb_ptrace): New.
9816 * (amd64bsd_fetch_inferior_registers,
9817 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9818 * (amd64bsd_fetch_inferior_registers,
9819 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9820
5ccd2fb7
KR
98212020-03-17 Kamil Rytarowski <n54@gmx.com>
9822
9823 * user-regs.c (user_reg::read): Rename to...
9824 (user_reg::xread): ...this.
9825 * (append_user_reg): Rename argument `read' to `xread'.
9826 * (user_reg_add_builtin): Likewise.
9827 * (user_reg_add): Likewise.
9828 * (value_of_user_reg): Likewise.
9829
2108a63a
KR
98302020-03-17 Kamil Rytarowski <n54@gmx.com>
9831
9832 * sparc-nat.c (gdb_ptrace): New.
9833 * sparc-nat.c (sparc_fetch_inferior_registers)
9834 (sparc_store_inferior_registers) Remove obsolete comment.
9835 * sparc-nat.c (sparc_fetch_inferior_registers)
9836 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9837 * sparc-nat.c (sparc_fetch_inferior_registers)
9838 (sparc_store_inferior_registers) Use gdb_ptrace.
9839
a225c9a8
KR
98402020-03-17 Kamil Rytarowski <n54@gmx.com>
9841
9842 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9843 it to the ptrace call.
9844 * sh-nbsd-nat.c (store_registers): Likewise.
9845
98097623
KR
98462020-03-17 Kamil Rytarowski <n54@gmx.com>
9847
9848 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9849 nbsd_nat_target instead of inf_ptrace_target.
9850 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9851 nbsd_nat_target.
9852
9e38d619
KR
98532020-03-17 Kamil Rytarowski <n54@gmx.com>
9854
9855 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9856
a2ecbe9f
KR
98572020-03-17 Kamil Rytarowski <n54@gmx.com>
9858
9859 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9860 <sys/sysctl.h>.
9861 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9862
58990295
TV
98632020-03-17 Tom de Vries <tdevries@suse.de>
9864
9865 PR gdb/23710
9866 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9867 fields.
9868 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9869 fields.
9870 (process_imported_unit_die): Skip import of c++ CUs.
9871
771dd3a8
TT
98722020-03-16 Tom Tromey <tom@tromey.com>
9873
9874 * p-valprint.c (pascal_object_print_value): Initialize
9875 base_value.
9876
817a7585
AK
98772020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9878 Shahab Vahedi <shahab@synopsys.com>
9879
9880 * Makefile.in: Add arch/arc.o
9881 * configure.tgt: Likewise.
9882 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9883 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9884 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9885 * arc-tdep.h (arc_read_description): Add proto type.
9886 * arch/arc.c: New file.
9887 * arch/arc.h: Likewise.
9888 * features/Makefile: Replace old target descriptions with new.
9889 * features/arc-arcompact.c: Remove.
9890 * features/arc-arcompact.xml: Likewise.
9891 * features/arc-v2.c: Likewise
9892 * features/arc-v2.xml: Likewise
9893 * features/arc/aux-arcompact.xml: New file.
9894 * features/arc/aux-v2.xml: Likewise.
9895 * features/arc/core-arcompact.xml: Likewise.
9896 * features/arc/core-v2.xml: Likewise.
9897 * features/arc/aux-arcompact.c: Generate.
9898 * features/arc/aux-v2.c: Likewise.
9899 * features/arc/core-arcompact.c: Likewise.
9900 * features/arc/core-v2.c: Likewise.
9901 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9902
67430cd0
TT
99032020-03-16 Tom Tromey <tromey@adacore.com>
9904
9905 PR gdb/25663:
9906 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9907 putting value into bcache.
9908
30efb6c7
SM
99092020-03-16 Simon Marchi <simon.marchi@efficios.com>
9910
9911 PR gdb/21500
9912 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9913 to...
9914 (amd64_windows_init_abi_common): ... this. Don't set size of
9915 long type.
9916 (amd64_windows_init_abi): New function.
9917 (amd64_cygwin_init_abi): New function.
9918 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9919 the Cygwin OS ABI.
9920 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9921 comment.
9922
8db52437
SM
99232020-03-16 Simon Marchi <simon.marchi@efficios.com>
9924
9925 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9926 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9927 (pe_import_directory_entry): New struct type.
9928 (is_linked_with_cygwin_dll): New function.
9929 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9930 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9931 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9932
5982a56a
SM
99332020-03-16 Simon Marchi <simon.marchi@efficios.com>
9934
9935 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9936 i386_cygwin_core_osabi_sniffer.
9937
7a1998df
SM
99382020-03-16 Simon Marchi <simon.marchi@efficios.com>
9939
9940 * i386-cygwin-tdep.c: Rename to...
9941 * i386-windows-tdep.c: ... this.
9942 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9943 i386-windows-tdep.c.
9944 * configure.tgt: Likewise.
9945
053205cc
SM
99462020-03-16 Simon Marchi <simon.marchi@efficios.com>
9947
9948 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9949 * osabi.c (gdb_osabi_names): Add "Windows".
9950 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9951 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9952 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9953 i386_cygwin_osabi_sniffer.
9954 (_initialize_i386_cygwin_tdep): Register OS ABI
9955 GDB_OSABI_WINDOWS for i386.
9956 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9957 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9958 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9959 for x86-64.
9960 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9961 when the target matches '*-*-mingw*'.
9962
fe4b2ee6
SM
99632020-03-16 Simon Marchi <simon.marchi@efficios.com>
9964
9965 * defs.h (enum gdb_osabi): Move to...
9966 * osabi.h (enum gdb_osabi): ... here.
9967 * gdbarch.sh: Include osabi.h in gdbarch.h.
9968 * gdbarch.h: Re-generate.
9969
cb9b645d
SM
99702020-03-16 Simon Marchi <simon.marchi@efficios.com>
9971
9972 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9973 function.
9974 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9975
3293bbaf
TT
99762020-03-14 Tom Tromey <tom@tromey.com>
9977
9978 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9979 for C++.
9980 (c_type_print_modifier): Likewise. Add "language" parameter.
9981 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9982 (c_type_print_base_1): Update.
9983 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9984 constants.
9985 * type-stack.c (type_stack::insert): Handle tp_atomic and
9986 tp_restrict.
9987 (type_stack::follow_type_instance_flags): Likewise.
9988 (type_stack::follow_types): Likewise. Merge type-following code.
9989 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9990 (space_identifier, cv_with_space_id)
9991 (const_or_volatile_or_space_identifier_noopt)
9992 (const_or_volatile_or_space_identifier): Remove.
9993 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9994 rules.
9995 (ptr_operator, typebase): Update.
9996 (enum token_flag) <FLAG_C>: New constant.
9997 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9998 "_Atomic".
9999 (lex_one_token): Handle FLAG_C.
10000
154151a6
KR
100012020-03-14 Kamil Rytarowski <n54@gmx.com>
10002
10003 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10004 it to the ptrace call.
10005 * m68k-bsd-nat.c (store_registers): Likewise.
10006
bc107784
KR
100072020-03-14 Kamil Rytarowski <n54@gmx.com>
10008
10009 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10010 gdb_byte *.
10011 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10012 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10013 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10014
01a80117
KR
100152020-03-14 Kamil Rytarowski <n54@gmx.com>
10016
10017 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10018 nbsd_nat_target instead of inf_ptrace_target.
10019 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10020 nbsd_nat_target.
10021
f90280ca
KR
100222020-03-14 Kamil Rytarowski <n54@gmx.com>
10023
10024 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10025 register_t.
10026
6def66f1
KR
100272020-03-14 Kamil Rytarowski <n54@gmx.com>
10028
10029 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10030 it to the ptrace call.
10031 * alpha-bsd-nat.c (store_registers): Likewise.
10032
66eaca97
KR
100332020-03-14 Kamil Rytarowski <n54@gmx.com>
10034
10035 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10036 includes.
10037 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10038 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10039 fill_fpregset): Likewise.
10040
4fed520b
KR
100412020-03-14 Kamil Rytarowski <n54@gmx.com>
10042
10043 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10044 nbsd_nat_target instead of inf_ptrace_target.
10045 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10046 nbsd_nat_target.
10047
2190cf06
KR
100482020-03-14 Kamil Rytarowski <n54@gmx.com>
10049
10050 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10051 register_t.
10052
75c56d3d
KR
100532020-03-14 Kamil Rytarowski <n54@gmx.com>
10054
10055 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10056 it to the ptrace call.
10057 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10058 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10059 * arm-nbsd-nat.c (store_register): Likewise.
10060 * arm-nbsd-nat.c (store_regs): Likewise.
10061 * arm-nbsd-nat.c (store_fp_register): Likewise.
10062 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10063
6018d381
KR
100642020-03-14 Kamil Rytarowski <n54@gmx.com>
10065
10066 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10067 nbsd_nat_target instead of inf_ptrace_target.
10068 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10069 nbsd_nat_target.
10070
013f99f0
KR
100712020-03-14 Kamil Rytarowski <n54@gmx.com>
10072
10073 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10074 it to the ptrace call.
10075 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10076
12753073
KR
100772020-03-14 Kamil Rytarowski <n54@gmx.com>
10078
6227b330
KR
10079 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10080 it to the ptrace call.
10081 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10082
100832020-03-14 Kamil Rytarowski <n54@gmx.com>
10084
10085 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10086 gdb_byte *.
12753073
KR
10087 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10088
d5be5fa4
KR
100892020-03-14 Kamil Rytarowski <n54@gmx.com>
10090
10091 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10092 instead of inf_ptrace_target.
10093 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10094 nbsd_nat_target.
10095
8110f842
KR
100962020-03-14 Kamil Rytarowski <n54@gmx.com>
10097
10098 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10099 register_t.
10100
52feded7
KR
101012020-03-14 Kamil Rytarowski <n54@gmx.com>
10102
10103 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10104 register_t.
10105
25567eee
KR
101062020-03-14 Kamil Rytarowski <n54@gmx.com>
10107
10108 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10109 register_t.
10110
426a9c18
TT
101112020-03-13 Tom Tromey <tom@tromey.com>
10112
10113 * value.h (val_print): Don't declare.
10114 * valprint.h (val_print_array_elements)
10115 (val_print_scalar_formatted, generic_val_print): Don't declare.
10116 * valprint.c (generic_val_print_array): Take a struct value.
10117 (generic_val_print_ptr, generic_val_print_memberptr)
10118 (generic_val_print_bool, generic_val_print_int)
10119 (generic_val_print_char, generic_val_print_complex)
10120 (generic_val_print): Remove.
10121 (generic_value_print): Update.
10122 (do_val_print): Remove unused parameters. Don't call
10123 la_val_print.
10124 (val_print): Remove.
10125 (common_val_print): Update. Don't call value_check_printable.
10126 (val_print_scalar_formatted, val_print_array_elements): Remove.
10127 * rust-lang.c (rust_val_print): Remove.
10128 (rust_language_defn): Update.
10129 * p-valprint.c (pascal_val_print): Remove.
10130 (pascal_value_print_inner): Update.
10131 (pascal_object_print_val_fields, pascal_object_print_val):
10132 Remove.
10133 (pascal_object_print_static_field): Update.
10134 * p-lang.h (pascal_val_print): Don't declare.
10135 * p-lang.c (pascal_language_defn): Update.
10136 * opencl-lang.c (opencl_language_defn): Update.
10137 * objc-lang.c (objc_language_defn): Update.
10138 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10139 * m2-lang.h (m2_val_print): Don't declare.
10140 * m2-lang.c (m2_language_defn): Update.
10141 * language.h (struct language_defn) <la_val_print>: Remove.
10142 * language.c (unk_lang_value_print_inner): Rename. Change
10143 argument types.
10144 (unknown_language_defn, auto_language_defn): Update.
10145 * go-valprint.c (go_val_print): Remove.
10146 * go-lang.h (go_val_print): Don't declare.
10147 * go-lang.c (go_language_defn): Update.
10148 * f-valprint.c (f_val_print): Remove.
10149 * f-lang.h (f_value_print): Don't declare.
10150 * f-lang.c (f_language_defn): Update.
10151 * d-valprint.c (d_val_print): Remove.
10152 * d-lang.h (d_value_print): Don't declare.
10153 * d-lang.c (d_language_defn): Update.
10154 * cp-valprint.c (cp_print_value_fields)
10155 (cp_print_value_fields_rtti, cp_print_value): Remove.
10156 (cp_print_static_field): Update.
10157 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10158 (c_val_print_struct, c_val_print_union, c_val_print_int)
10159 (c_val_print_memberptr, c_val_print): Remove.
10160 * c-lang.h (c_val_print_array, cp_print_value_fields)
10161 (cp_print_value_fields_rtti): Don't declare.
10162 * c-lang.c (c_language_defn, cplus_language_defn)
10163 (asm_language_defn, minimal_language_defn): Update.
10164 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10165 (ada_val_print_enum): Take a struct value.
10166 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10167 (ada_val_print): Remove.
10168 (ada_value_print_1): Update.
10169 (printable_val_type): Remove.
10170 * ada-lang.h (ada_val_print): Don't declare.
10171 * ada-lang.c (ada_language_defn): Update.
10172
42331a1e
TT
101732020-03-13 Tom Tromey <tom@tromey.com>
10174
10175 * valprint.c (do_val_print): Update.
10176 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10177 a struct value.
10178 (value_to_value_object_no_release): Declare.
10179 * python/py-value.c (value_to_value_object_no_release): New
10180 function.
10181 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10182 struct value.
10183 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10184 function.
10185 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10186 a struct value.
10187 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10188 Declare.
10189 (gdbscm_apply_val_pretty_printer): Take a struct value.
10190 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10191 value.
10192 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10193 value.
10194 * extension-priv.h (struct extension_language_ops)
10195 <apply_val_pretty_printer>: Take a struct value.
10196 * cp-valprint.c (cp_print_value): Create a struct value.
10197 (cp_print_value): Update.
10198
3a916a97
TT
101992020-03-13 Tom Tromey <tom@tromey.com>
10200
10201 * ada-valprint.c (print_field_values): Call common_val_print.
10202
b59eac37
TT
102032020-03-13 Tom Tromey <tom@tromey.com>
10204
10205 * ada-valprint.c (val_print_packed_array_elements): Remove
10206 bitoffset and val parameters. Call common_val_print.
10207 (ada_val_print_string): Remove offset, address, and original_value
10208 parameters.
10209 (ada_val_print_array): Update.
10210 (ada_value_print_array): New function.
10211 (ada_value_print_1): Call it.
10212
03371129
TT
102132020-03-13 Tom Tromey <tom@tromey.com>
10214
10215 * ada-valprint.c (ada_value_print): Use common_val_print.
10216
2e088f8b
TT
102172020-03-13 Tom Tromey <tom@tromey.com>
10218
10219 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10220
39ef85a8
TT
102212020-03-13 Tom Tromey <tom@tromey.com>
10222
10223 * ada-valprint.c (ada_value_print_num): New function.
10224 (ada_value_print_1): Use it.
10225
b9fa6e07
TT
102262020-03-13 Tom Tromey <tom@tromey.com>
10227
10228 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10229
416595d6
TT
102302020-03-13 Tom Tromey <tom@tromey.com>
10231
10232 * ada-valprint.c (ada_value_print_ptr): New function.
10233 (ada_value_print_1): Use it.
10234
5b5e15ec
TT
102352020-03-13 Tom Tromey <tom@tromey.com>
10236
10237 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10238 call common_val_print.
10239 (ada_val_print_1): Update.
10240 (ada_value_print_1): New function.
10241 (ada_value_print_inner): Rewrite.
10242
fbf54e75
TT
102432020-03-13 Tom Tromey <tom@tromey.com>
10244
10245 * cp-valprint.c (cp_print_value_fields): Update.
10246 (cp_print_value): New function.
10247
64b653ca
TT
102482020-03-13 Tom Tromey <tom@tromey.com>
10249
10250 * m2-valprint.c (m2_value_print_inner): Use
10251 cp_print_value_fields.
10252 * cp-valprint.c (cp_print_value_fields): New function.
10253 * c-valprint.c (c_value_print_struct): New function.
10254 (c_value_print_inner): Use c_value_print_struct.
10255 * c-lang.h (cp_print_value_fields): Declare.
10256
6999f067
TT
102572020-03-13 Tom Tromey <tom@tromey.com>
10258
10259 * c-valprint.c (c_value_print_array): New function.
10260 (c_value_print_inner): Use it.
10261
ce80b8bd
TT
102622020-03-13 Tom Tromey <tom@tromey.com>
10263
10264 * c-valprint.c (c_value_print_memberptr): New function.
10265 (c_value_print_inner): Use it.
10266
2faac269
TT
102672020-03-13 Tom Tromey <tom@tromey.com>
10268
10269 * c-valprint.c (c_value_print_int): New function.
10270 (c_value_print_inner): Use it.
10271
da3e2c29
TT
102722020-03-13 Tom Tromey <tom@tromey.com>
10273
10274 * c-valprint.c (c_value_print_ptr): New function.
10275 (c_value_print_inner): Use it.
10276
50836231
TT
102772020-03-13 Tom Tromey <tom@tromey.com>
10278
10279 * c-valprint.c (c_value_print_inner): Rewrite.
10280
4f412b6e
TT
102812020-03-13 Tom Tromey <tom@tromey.com>
10282
10283 * valprint.c (generic_value_print_complex): New function.
10284 (generic_value_print): Use it.
10285
f5354008
TT
102862020-03-13 Tom Tromey <tom@tromey.com>
10287
10288 * valprint.c (generic_val_print_float): Don't call
10289 val_print_scalar_formatted.
10290 (generic_val_print, generic_value_print): Update.
10291
3eec3b05
TT
102922020-03-13 Tom Tromey <tom@tromey.com>
10293
10294 * valprint.c (generic_value_print_char): New function
10295 (generic_value_print): Use it.
10296
fdddfccb
TT
102972020-03-13 Tom Tromey <tom@tromey.com>
10298
10299 * valprint.c (generic_value_print_int): New function.
10300 (generic_value_print): Use it.
10301
6dde7521
TT
103022020-03-13 Tom Tromey <tom@tromey.com>
10303
10304 * valprint.c (generic_value_print_bool): New function.
10305 (generic_value_print): Use it.
10306
4112d2e6
TT
103072020-03-13 Tom Tromey <tom@tromey.com>
10308
10309 * valprint.c (generic_val_print_func): Simplify.
10310 (generic_val_print, generic_value_print): Update.
10311
65786af6
TT
103122020-03-13 Tom Tromey <tom@tromey.com>
10313
10314 * valprint.c (generic_val_print_flags): Remove.
10315 (generic_val_print, generic_value_print): Update.
10316 (val_print_type_code_flags): Add original_value parameter.
10317
40f3ce18
TT
103182020-03-13 Tom Tromey <tom@tromey.com>
10319
10320 * valprint.c (generic_val_print): Update.
10321 (generic_value_print): Update.
10322 * valprint.c (generic_val_print_enum): Don't call
10323 val_print_scalar_formatted.
10324
2a5b130b
TT
103252020-03-13 Tom Tromey <tom@tromey.com>
10326
10327 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10328 * valprint.c (generic_value_print_ptr): New function.
10329
abc66ce9
TT
103302020-03-13 Tom Tromey <tom@tromey.com>
10331
10332 * valprint.c (generic_value_print): Rewrite.
10333
07a32858
TT
103342020-03-13 Tom Tromey <tom@tromey.com>
10335
10336 * p-valprint.c (pascal_object_print_value_fields)
10337 (pascal_object_print_value): New functions.
10338
64d64d3a
TT
103392020-03-13 Tom Tromey <tom@tromey.com>
10340
10341 * p-valprint.c (pascal_value_print_inner): Rewrite.
10342
6a95a1f5
TT
103432020-03-13 Tom Tromey <tom@tromey.com>
10344
10345 * f-valprint.c (f_value_print_innner): Rewrite.
10346
59fcdac6
TT
103472020-03-13 Tom Tromey <tom@tromey.com>
10348
10349 * m2-valprint.c (m2_print_unbounded_array): New overload.
10350 (m2_print_unbounded_array): Update.
10351 (m2_print_array_contents): Take a struct value.
10352 (m2_value_print_inner): Rewrite.
10353
d133c3e1
TT
103542020-03-13 Tom Tromey <tom@tromey.com>
10355
10356 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10357 (d_value_print_inner): New function.
10358 * d-lang.h (d_value_print_inner): Declare.
10359 * d-lang.c (d_language_defn): Use d_value_print_inner.
10360
23b0f06b
TT
103612020-03-13 Tom Tromey <tom@tromey.com>
10362
10363 * go-valprint.c (go_value_print_inner): New function.
10364 * go-lang.h (go_value_print_inner): Declare.
10365 * go-lang.c (go_language_defn): Use go_value_print_inner.
10366
5f56f7cb
TT
103672020-03-13 Tom Tromey <tom@tromey.com>
10368
10369 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10370 API.
10371 (rust_val_print): Rewrite.
10372 (rust_value_print_inner): New function, from rust_val_print.
10373 (rust_language_defn): Use rust_value_print_inner.
10374
26792ee0
TT
103752020-03-13 Tom Tromey <tom@tromey.com>
10376
10377 * ada-valprint.c (ada_value_print_inner): New function.
10378 * ada-lang.h (ada_value_print_inner): Declare.
10379 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10380
24051bbe
TT
103812020-03-13 Tom Tromey <tom@tromey.com>
10382
10383 * f-valprint.c (f_value_print_innner): New function.
10384 * f-lang.h (f_value_print_innner): Declare.
10385 * f-lang.c (f_language_defn): Use f_value_print_innner.
10386
c0941be6
TT
103872020-03-13 Tom Tromey <tom@tromey.com>
10388
10389 * p-valprint.c (pascal_value_print_inner): New function.
10390 * p-lang.h (pascal_value_print_inner): Declare.
10391 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10392
62c4663d
TT
103932020-03-13 Tom Tromey <tom@tromey.com>
10394
10395 * m2-valprint.c (m2_value_print_inner): New function.
10396 * m2-lang.h (m2_value_print_inner): Declare.
10397 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10398
62182190
TT
103992020-03-13 Tom Tromey <tom@tromey.com>
10400
10401 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10402 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10403 * c-valprint.c (c_value_print_inner): New function.
10404 * c-lang.h (c_value_print_inner): Declare.
10405 * c-lang.c (c_language_defn, cplus_language_defn)
10406 (asm_language_defn, minimal_language_defn): Use
10407 c_value_print_inner.
10408
1e592a8a
TT
104092020-03-13 Tom Tromey <tom@tromey.com>
10410
10411 * p-valprint.c (pascal_object_print_value_fields): Now static.
10412 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10413
7fe471e9
TT
104142020-03-13 Tom Tromey <tom@tromey.com>
10415
10416 * c-valprint.c (c_val_print_array): Simplify.
10417
d121c6ce
TT
104182020-03-13 Tom Tromey <tom@tromey.com>
10419
10420 * valprint.c (value_print_array_elements): New function.
10421 * valprint.h (value_print_array_elements): Declare.
10422
4dba70ee
TT
104232020-03-13 Tom Tromey <tom@tromey.com>
10424
10425 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10426 * mips-tdep.c (mips_print_register): Use
10427 value_print_scalar_formatted.
10428
4f9ae810
TT
104292020-03-13 Tom Tromey <tom@tromey.com>
10430
10431 * valprint.h (value_print_scalar_formatted): Declare.
10432 * valprint.c (value_print_scalar_formatted): New function.
10433
156bfec9
TT
104342020-03-13 Tom Tromey <tom@tromey.com>
10435
10436 * valprint.h (generic_value_print): Declare.
10437 * valprint.c (generic_value_print): New function.
10438
2b4e573d
TT
104392020-03-13 Tom Tromey <tom@tromey.com>
10440
10441 * valprint.c (do_val_print): Call la_value_print_inner, if
10442 available.
10443 * rust-lang.c (rust_language_defn): Update.
10444 * p-lang.c (pascal_language_defn): Update.
10445 * opencl-lang.c (opencl_language_defn): Update.
10446 * objc-lang.c (objc_language_defn): Update.
10447 * m2-lang.c (m2_language_defn): Update.
10448 * language.h (struct language_defn) <la_value_print_inner>: New
10449 member.
10450 * language.c (unknown_language_defn, auto_language_defn): Update.
10451 * go-lang.c (go_language_defn): Update.
10452 * f-lang.c (f_language_defn): Update.
10453 * d-lang.c (d_language_defn): Update.
10454 * c-lang.c (c_language_defn, cplus_language_defn)
10455 (asm_language_defn, minimal_language_defn): Update.
10456 * ada-lang.c (ada_language_defn): Update.
10457
a1f6a07c
TT
104582020-03-13 Tom Tromey <tom@tromey.com>
10459
10460 * c-valprint.c (c_value_print): Use common_val_print.
10461
410cf315
TT
104622020-03-13 Tom Tromey <tom@tromey.com>
10463
10464 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10465
72a45c93
TT
104662020-03-13 Tom Tromey <tom@tromey.com>
10467
10468 * f-valprint.c (f77_print_array_1, f_val_print): Use
10469 common_val_print.
10470
040f66bd
TT
104712020-03-13 Tom Tromey <tom@tromey.com>
10472
10473 * riscv-tdep.c (riscv_print_one_register_info): Use
10474 common_val_print.
10475
a6e05a6c
TT
104762020-03-13 Tom Tromey <tom@tromey.com>
10477
10478 * mi/mi-main.c (output_register): Use common_val_print.
10479
3444c526
TT
104802020-03-13 Tom Tromey <tom@tromey.com>
10481
10482 * infcmd.c (default_print_one_register_info): Use
10483 common_val_print.
10484
c2a44efe
TT
104852020-03-13 Tom Tromey <tom@tromey.com>
10486
10487 * valprint.h (common_val_print_checked): Declare.
10488 * valprint.c (common_val_print_checked): New function.
10489 * stack.c (print_frame_arg): Use common_val_print_checked.
10490
b0c26e99
TT
104912020-03-13 Tom Tromey <tom@tromey.com>
10492
10493 * valprint.c (do_val_print): New function, from val_print.
10494 (val_print): Use do_val_print.
10495 (common_val_print): Use do_val_print.
10496
ce3acbe9
TT
104972020-03-13 Tom Tromey <tom@tromey.com>
10498
10499 * valprint.c (value_print): Use scoped_value_mark.
10500
96c7f873
TV
105012020-03-13 Tom de Vries <tdevries@suse.de>
10502
10503 PR symtab/25646
10504 * psymtab.c (partial_symtab::partial_symtab): Don't set
10505 globals_offset and statics_offset. Push element onto
10506 current_global_psymbols and current_static_psymbols stacks.
10507 (concat): New function.
10508 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10509 element from current_global_psymbols and current_static_psymbols
10510 stacks. Concat popped elements to global_psymbols and
10511 static_symbols.
10512 (add_psymbol_to_list): Use current_global_psymbols and
10513 current_static_psymbols stacks.
10514 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10515 current_static_psymbols fields.
10516
6ba0a321
CB
105172020-03-12 Christian Biesinger <cbiesinger@google.com>
10518
10519 * corelow.c (sniff_core_bfd): Remove.
10520 (class core_target) <m_core_vec>: Remove.
10521 (core_target::core_target): Update.
10522 (core_file_fns): Remove.
10523 (deprecated_add_core_fns): Remove.
10524 (default_core_sniffer): Remove.
10525 (sniff_core_bfd): Remove.
10526 (default_check_format): Remove.
10527 (gdb_check_format): Remove.
10528 (core_target_open): Update.
10529 (core_target::get_core_register_section): Update.
10530 (get_core_registers_cb): Update.
10531 (core_target::fetch_registers): Update.
10532 * gdbcore.h (struct core_fns): Remove.
10533 (deprecated_add_core_fns): Remove.
10534 (default_core_sniffer): Remove.
10535 (default_check_format): Remove.
10536
227031b2
TT
105372020-03-12 Tom Tromey <tom@tromey.com>
10538
10539 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10540 CORE_ADDR.
10541 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10542
53807e9f
TT
105432020-03-12 Tom Tromey <tom@tromey.com>
10544
10545 * remote.c (remote_target::download_tracepoint)
10546 (remote_target::enable_tracepoint)
10547 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10548 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10549 sprintf_vma.
10550
64f25102
TT
105512020-03-12 Tom Tromey <tom@tromey.com>
10552
10553 * symfile-mem.c: Update CORE_ADDR size assert.
10554
272cd5a3
SM
105552020-03-12 Simon Marchi <simon.marchi@efficios.com>
10556
10557 * selftest.m4: Move to gdbsupport/.
10558 * acinclude.m4: Update path to selftest.m4.
10559
74cd3f9d
SM
105602020-03-12 Simon Marchi <simon.marchi@efficios.com>
10561
10562 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10563 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10564 gdbarch-selfselftests.c and selftest-arch.c.
10565 (SUBDIR_UNITTESTS_OBS): Rename to...
10566 (SELFTESTS_OBS): ... this.
10567 (COMMON_SFILES): Remove disasm-selftests.c and
10568 gdbarch-selftests.c.
10569 * configure.ac: Don't add selftest-arch.{c,o} to
10570 CONFIG_{SRCS,OBS}.
10571 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10572 preprocessor conditions.
10573
db6878ac
SM
105742020-03-12 Simon Marchi <simon.marchi@efficios.com>
10575
10576 * configure.ac: Don't source bfd/development.sh.
10577 * selftest.m4: Modify comment.
10578 * configure: Re-generate.
10579
4d696a5c
SM
105802020-03-12 Simon Marchi <simon.marchi@efficios.com>
10581
10582 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10583 not "true" or "false".
10584 * configure: Re-generate.
10585
8dd8e1c7
CB
105862020-03-12 Christian Biesinger <cbiesinger@google.com>
10587
10588 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10589 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10590 renamed to arm_nbsd_supply_gregset.
10591 (fetch_register): Update to call arm_nbsd_supply_gregset.
10592 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10593 (arm_netbsd_nat_target::fetch_registers): Update.
10594 (fetch_elfcore_registers): Removed.
10595 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10596 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10597 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10598 not require NetBSD system headers.
10599 (arm_nbsd_regset): New struct.
10600 (arm_nbsd_iterate_over_regset_sections): New function.
10601 (arm_netbsd_init_abi_common): Updated to call
10602 set_gdbarch_iterate_over_regset_sections.
10603 * arm-nbsd-tdep.h: New file.
10604
dd69bf7a
KB
106052020-03-11 Kevin Buettner <kevinb@redhat.com>
10606
10607 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10608 recursion.
10609
a0761e34
SM
106102020-03-11 Simon Marchi <simon.marchi@efficios.com>
10611
10612 * configure: Re-generate.
10613
e7a82140
TT
106142020-03-11 Tom Tromey <tromey@adacore.com>
10615
10616 * ada-typeprint.c (print_choices): Fix comment.
10617
dcc050c8
AB
106182020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10619
10620 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10621 previous item in the list, when the list has no items.
10622
1c33af77
TV
106232020-03-11 Tom de Vries <tdevries@suse.de>
10624
10625 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10626 PROP_LOCLIST handling code.
10627
8c95582d
AB
106282020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10629
10630 * buildsym-legacy.c (record_line): Pass extra parameter to
10631 record_line.
10632 * buildsym.c (buildsym_compunit::record_line): Take an extra
10633 parameter, reduce duplication in the line table, and record the
10634 is_stmt flag in the line table.
10635 * buildsym.h (buildsym_compunit::record_line): Add extra
10636 parameter.
10637 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10638 non-statement lines.
10639 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10640 this to the symtab builder.
10641 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10642 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10643 through to dwarf_record_line_1.
10644 * infrun.c (process_event_stop_test): When stepping, don't stop at
10645 a non-statement instruction, and only refresh the step info when
10646 we land in the middle of a line's range. Also add an extra
10647 comment.
10648 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10649 field.
10650 * record-btrace.c (btrace_find_line_range): Only record lines
10651 marked as is-statement.
10652 * stack.c (frame_show_address): Show the frame address if we are
10653 in a non-statement sal.
10654 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10655 (maintenance_print_one_line_table): Print a header for the is_stmt
10656 column, and include is_stmt information in the output.
10657 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10658 preference to non-statements.
10659 (find_pcs_for_symtab_line): Prefer is-statement entries.
10660 (find_line_common): Likewise.
10661 * symtab.h (struct linetable_entry): Add is_stmt field.
10662 (struct symtab_and_line): Likewise.
10663 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10664 arranging the line table.
10665
e4003a34
TV
106662020-03-07 Tom de Vries <tdevries@suse.de>
10667
10668 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10669 DIE.
10670
e8932576
TT
106712020-03-07 Tom Tromey <tom@tromey.com>
10672
10673 * valops.c (value_literal_complex): Remove obsolete comment.
10674 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10675 comment.
10676
29734269
SM
106772020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10678
10679 * infrun.h: Forward-declare thread_info.
10680 (set_step_info): Add thread_info parameter, add doc.
10681 * infrun.c (set_step_info): Add thread_info parameter, move doc
10682 to header.
10683 * infrun.c (process_event_stop_test): Pass thread to
10684 set_step_info call.
10685 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10686 set_step_info.
10687 (prepare_one_step): Add thread_info parameter, pass it to
10688 set_step_frame and prepare_one_step (recursive) call.
10689 (step_1): Pass thread to prepare_one_step call.
10690 (step_command_fsm::should_stop): Pass thread to
10691 prepare_one_step.
10692 (until_next_fsm): Pass thread to set_step_frame call.
10693 (finish_command): Pass thread to set_step_info call.
10694
b7d64b29
HD
106952020-03-06 Hannes Domani <ssbssa@yahoo.de>
10696
10697 * windows-tdep.c (windows_solib_create_inferior_hook):
10698 Check if inferior is running.
10699
09f2921c
TV
107002020-03-06 Tom de Vries <tdevries@suse.de>
10701
10702 * NEWS: Fix "the the".
10703 * ctfread.c: Same.
10704
fd760e79
TV
107052020-03-06 Tom de Vries <tdevries@suse.de>
10706
10707 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10708
20ea4a60
AB
107092020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10710
10711 * .dir-locals.el: Add a comment referencing the other copies of
10712 this file.
10713
0afbabf0
JB
107142020-03-05 John Baldwin <jhb@FreeBSD.org>
10715
10716 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10717 psargs.
10718
842806cb
TBA
107192020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10720
10721 * .gitattributes: New file.
10722
be1e3d3e
TT
107232020-03-04 Tom Tromey <tom@tromey.com>
10724
10725 * symmisc.c (print_symbol_bcache_statistics)
10726 (print_objfile_statistics): Update.
10727 * symfile.c (allocate_symtab): Use intern.
10728 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10729 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10730 macro_cache>: Remove.
10731 <string_cache>: New member.
10732 (struct objfile) <intern>: New methods.
10733 * elfread.c (elf_symtab_read): Use intern.
10734 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10735 (dwarf2_compute_name, dwarf2_physname)
10736 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10737 names.
10738 (guess_partial_die_structure_name): Update.
10739 (partial_die_info::fixup): Intern name.
10740 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10741 name.
10742 (dwarf2_name): Intern name. Update.
10743 * buildsym.c (buildsym_compunit::get_macro_table): Use
10744 string_cache.
10745
4e7625fd
TT
107462020-03-04 Tom Tromey <tom@tromey.com>
10747
10748 * jit.c (bfd_open_from_target_memory): Make "target" const.
10749 * corefile.c (gnutarget): Now const.
10750 * gdbcore.h (gnutarget): Now const.
10751
46f9f931
HD
107522020-03-04 Hannes Domani <ssbssa@yahoo.de>
10753
10754 * NEWS: Mention support for WOW64 processes.
10755 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10756 (amd64_windows_segment_register_p): Remove static.
10757 (_initialize_amd64_windows_nat): Update.
10758 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10759 * i386-windows-nat.c (context_offset): Update.
10760 (i386_mappings): Rename and remove static.
10761 (i386_windows_segment_register_p): Remove static.
10762 (_initialize_i386_windows_nat): Update.
10763 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10764 (STATUS_WX86_SINGLE_STEP): New macro.
10765 (EnumProcessModulesEx): New macro.
10766 (Wow64SuspendThread): New macro.
10767 (Wow64GetThreadContext): New macro.
10768 (Wow64SetThreadContext): New macro.
10769 (Wow64GetThreadSelectorEntry): New macro.
10770 (windows_set_context_register_offsets): Add static.
10771 (windows_set_segment_register_p): Likewise.
10772 (windows_add_thread): Adapt for WOW64 processes.
10773 (windows_fetch_one_register): Likewise.
10774 (windows_nat_target::fetch_registers): Likewise.
10775 (windows_store_one_register): Likewise.
10776 (display_selector): Likewise.
10777 (display_selectors): Likewise.
10778 (handle_exception): Likewise.
10779 (windows_continue): Likewise.
10780 (windows_nat_target::resume): Likewise.
10781 (windows_add_all_dlls): Likewise.
10782 (do_initial_windows_stuff): Likewise.
10783 (windows_nat_target::attach): Likewise.
10784 (windows_get_exec_module_filename): Likewise.
10785 (windows_nat_target::create_inferior): Likewise.
10786 (windows_xfer_siginfo): Likewise.
10787 (_initialize_loadable): Initialize Wow64SuspendThread,
10788 Wow64GetThreadContext, Wow64SetThreadContext,
10789 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10790 * windows-nat.h (windows_set_context_register_offsets):
10791 Remove declaration.
10792 (windows_set_segment_register_p): Likewise.
10793 (i386_windows_segment_register_p): Add declaration.
10794 (amd64_windows_segment_register_p): Likewise.
10795
440cf44e
LM
107962020-03-04 Luis Machado <luis.machado@linaro.org>
10797
10798 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10799 in "info registers" for AArch64/ARM.
10800
10801 The change caused "info registers" to not print GPR's.
10802
10803 gdb/ChangeLog:
10804
10805 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10806
10807 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10808 when reg->group is empty and reggroup is not.
10809
1009d92f
TT
108102020-03-03 Tom Tromey <tromey@adacore.com>
10811
10812 * dwarf2/frame.c (struct dwarf2_frame_cache)
10813 <checked_tailcall_bottom, entry_cfa_sp_offset,
10814 entry_cfa_sp_offset_p>: Remove members.
10815 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10816 (dwarf2_frame_prev_register): Don't call
10817 dwarf2_tailcall_sniffer_first.
10818 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10819 * frame-unwind.c (add_unwinder): New fuction.
10820 (frame_unwind_init): Use it. Add tailcall unwinder.
10821
5e5d66b6
AB
108222020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10823 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10824
10825 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10826 value should be printed as true.
10827
584cf46d
HD
108282020-03-03 Hannes Domani <ssbssa@yahoo.de>
10829
10830 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10831 (windows_init_abi): Set and use windows_so_ops.
10832
7b973adc
SDJ
108332020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10834
10835 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10836 when verifying if dealing with a convenience variable.
10837
bb7b70ab
LM
108382020-03-03 Luis Machado <luis.machado@linaro.org>
10839
10840 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10841
9822cb57
SM
108422020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10843
10844 * infrun.c (gdbarch_supports_displaced_stepping): New.
10845 (use_displaced_stepping): Break up conditions in smaller pieces.
10846 Use gdbarch_supports_displaced_stepping.
10847 (displaced_step_prepare_throw): Use
10848 gdbarch_supports_displaced_stepping.
10849
63e163f2
AB
108502020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10851
10852 * NEWS: Mention new behaviour of the history filename.
10853 * top.c (write_history_p): Add comment.
10854 (show_write_history_p): Add header comment, give a different
10855 message when history writing is on, but the history filename is
10856 empty.
10857 (history_filename): Add comment.
10858 (history_filename_empty): New function.
10859 (show_history_filename): Add header comment, give a different
10860 message when the filename is empty.
10861 (init_history): Compare history_filename against nullptr, and only
10862 read history if the filename is not empty.
10863 (set_history_filename): Add header comment, and only make
10864 non-empty filenames absolute.
10865 (init_main): Make the filename argument to 'set history filename'
10866 optional.
10867
81b86b97
CB
108682020-03-02 Christian Biesinger <cbiesinger@google.com>
10869
10870 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10871 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10872 (fetch_fp_register): Update.
10873 (fetch_fp_regs): Update.
10874 (store_fp_register): Update.
10875 (store_fp_regs): Update.
10876 (arm_netbsd_nat_target::read_description): New function.
10877 (fetch_elfcore_registers): Update.
10878
24ed6739
AB
108792020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10880
10881 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10882 general_thread if the stop reply is missing a thread-id.
10883 (remote_target::process_stop_reply): Use the first non-exited
10884 thread if the target didn't pass a thread-id.
10885 * infrun.c (do_target_wait): Move call to
10886 switch_to_inferior_no_thread to ....
10887 (do_target_wait_1): ... here.
10888
a84bb2a0
JT
108892020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10890
10891 * debuginfod-support.c: Include defs.h first.
10892
658dadf0
TV
108932020-02-28 Tom de Vries <tdevries@suse.de>
10894
10895 * symfile.c (set_initial_language): Use default language for lookup.
10896
4ebe4877
SM
108972020-02-28 Simon Marchi <simon.marchi@efficios.com>
10898
10899 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10900 reader variable, pass `this` to read_cutu_die_from_dwo.
10901
e5da1139
AM
109022020-02-27 Aaron Merey <amerey@redhat.com>
10903
10904 * source.c (open_source_file): Check for nullptr when computing
10905 srcpath.
10906
317f7127
TT
109072020-02-27 Tom Tromey <tromey@adacore.com>
10908
10909 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10910 member.
10911 (dwarf2_add_field): Don't update nfields.
10912 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10913
3104d9ee
AB
109142020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10915
10916 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10917 abs.
10918
b83470bf
TT
109192020-02-26 Tom Tromey <tom@tromey.com>
10920
10921 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10922 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10923 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10924 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10925 per_cu_data.
10926
edfe0a0c
TT
109272020-02-26 Tom Tromey <tom@tromey.com>
10928
10929 * dwarf2/index-write.c (psym_index_map): Change type.
10930 (add_address_entry_worker, write_one_signatured_type)
10931 (recursively_count_psymbols, recursively_write_psymbols)
10932 (class debug_names, psyms_seen_size, write_gdbindex)
10933 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10934
0d79cdc4
AM
109352020-02-26 Aaron Merey <amerey@redhat.com>
10936
10937 * Makefile.in: Handle optional debuginfod support.
10938 * NEWS: Update.
10939 * README: Add --with-debuginfod summary.
10940 * config.in: Regenerate.
10941 * configure: Regenerate.
10942 * configure.ac: Handle optional debuginfod support.
10943 * debuginfod-support.c: debuginfod helper functions.
10944 * debuginfod-support.h: Ditto.
10945 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10946 summary.
10947 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10948 when a dwz file cannot be found.
10949 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10950 debuginfo file cannot be found.
10951 * source.c (open_source_file): Query debuginfod servers when a
10952 source file cannot be found.
10953 * top.c (print_gdb_configuration): Include
10954 --{with,without}-debuginfod in the output.
10955
b65ce565
JG
109562020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10957
10958 * thread.c (thr_try_catch_cmd): Print thread name.
10959
d4c9a4f8
SM
109602020-02-26 Simon Marchi <simon.marchi@efficios.com>
10961
10962 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10963 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10964 dwarf2_fetch_die_type_sect_off): Move to...
10965 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10966 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10967 dwarf2_fetch_die_type_sect_off): ... here.
10968 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10969 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10970 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10971
0dce4280
TV
109722020-02-26 Tom de Vries <tdevries@suse.de>
10973
10974 PR gdb/25603
10975 * symfile.c (set_initial_language): Exit-early if
10976 language_mode == language_mode_manual.
10977
450a1bfc
SM
109782020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10979
10980 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10981 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10982 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10983
9e80cfa1
AB
109842020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10985
10986 * gdbtypes.c (create_array_type_with_stride): Handle negative
10987 array strides.
10988 * valarith.c (value_subscripted_rvalue): Likewise.
10989
09624f1f
LM
109902020-02-25 Luis Machado <luis.machado@linaro.org>
10991
10992 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10993
8cb5117c
SM
109942020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10995
10996 * loc.h (dwarf2_get_die_type): Move to...
10997 * read.h (dwarf2_get_die_type): ... here.
10998 * read.c (dwarf2_get_die_type): Move doc to header.
10999
c325c44e
JB
110002020-02-25 Joel Brobecker <brobecker@adacore.com>
11001
11002 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11003 'gnulib/Makefile.in' to the list.
11004
4ac93832
TT
110052020-02-24 Tom Tromey <tom@tromey.com>
11006
11007 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11008 Remove.
11009 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11010 XOBNEWVEC.
11011
197400e8
TT
110122020-02-24 Tom Tromey <tom@tromey.com>
11013
11014 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11015 New method.
11016 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11017 (dw2_do_instantiate_symtab, dw2_get_file_names)
11018 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11019
76935768
TT
110202020-02-24 Tom Tromey <tom@tromey.com>
11021
11022 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11023 make_scoped_restore.
11024 (dwarf2_psymtab::read_symtab): Don't clear
11025 reading_partial_symbols.
11026
a88ef40d
TV
110272020-02-24 Tom de Vries <tdevries@suse.de>
11028
11029 PR gdb/25592
11030 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11031
c9af6521
TV
110322020-02-24 Tom de Vries <tdevries@suse.de>
11033
11034 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11035 commands layout next/prev/regs.
11036
5707a07a
TT
110372020-02-22 Tom Tromey <tom@tromey.com>
11038
11039 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11040 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11041
3b0fb49e
TT
110422020-02-22 Tom Tromey <tom@tromey.com>
11043
11044 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11045
283be8bf
TT
110462020-02-22 Tom Tromey <tom@tromey.com>
11047
11048 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11049 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11050 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11051 * tui/tui.c (_initialize_tui): Add usage text.
11052
ca793b96
TT
110532020-02-22 Tom Tromey <tom@tromey.com>
11054
11055 * tui/tui-win.c (tui_set_focus_command)
11056 (tui_set_win_height_command): Use error_no_arg.
11057 (_initialize_tui_win): Update help text.
11058 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11059
432b5c40
TT
110602020-02-22 Tom Tromey <tom@tromey.com>
11061
11062 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11063 * tui/tui-disasm.h (struct tui_disasm_window)
11064 <display_start_addr>: Declare.
11065 * tui/tui-source.h (struct tui_source_window)
11066 <display_start_addr>: Declare.
11067 * tui/tui-winsource.h (struct tui_source_window_base)
11068 <show_source_line, display_start_addr>: New methods.
11069 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11070 Rename and move to protected section.
11071 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11072 (tui_source_window_base::do_erase_source_content): Update.
11073 (tui_source_window_base::show_source_line): Now a method.
11074 (tui_source_window_base::show_source_content)
11075 (tui_source_window_base::tui_source_window_base)
11076 (tui_source_window_base::rerender)
11077 (tui_source_window_base::refill)
11078 (tui_source_window_base::do_scroll_horizontal)
11079 (tui_source_window_base::set_is_exec_point_at)
11080 (tui_source_window_base::update_breakpoint_info)
11081 (tui_source_window_base::update_exec_info): Update.
11082 * tui/tui-source.c (tui_source_window::set_contents)
11083 (tui_source_window::showing_source_p)
11084 (tui_source_window::do_scroll_vertical)
11085 (tui_source_window::location_matches_p)
11086 (tui_source_window::line_is_displayed): Update.
11087 (tui_source_window::display_start_addr): New method.
11088 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11089 (tui_disasm_window::do_scroll_vertical)
11090 (tui_disasm_window::location_matches_p): Update.
11091 (tui_disasm_window::display_start_addr): New method.
11092
01b1af32
TT
110932020-02-22 Tom Tromey <tom@tromey.com>
11094
11095 * NEWS: Add entry for gdb.register_window_type.
11096 * tui/tui-layout.h (window_factory): New typedef.
11097 (tui_register_window): Declare.
11098 * tui/tui-layout.c (saved_tui_windows): New global.
11099 (tui_apply_current_layout): Use it.
11100 (tui_register_window): New function.
11101 * python/python.c (do_start_initialization): Call
11102 gdbpy_initialize_tui.
11103 (python_GdbMethods): Add "register_window_type" function.
11104 * python/python-internal.h (gdbpy_register_tui_window)
11105 (gdbpy_initialize_tui): Declare.
11106 * python/py-tui.c: New file.
11107 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11108
fc96d20b
TT
111092020-02-22 Tom Tromey <tom@tromey.com>
11110
11111 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11112
935c78c0
TT
111132020-02-22 Tom Tromey <tom@tromey.com>
11114
11115 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11116 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11117 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11118 (tui_set_win_focus_to): Move from tui-win.c.
11119
0240c8f1
TT
111202020-02-22 Tom Tromey <tom@tromey.com>
11121
11122 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11123 functions.
11124 (known_window_types): New global.
11125 (tui_get_window_by_name): Reimplement.
11126 (initialize_known_windows): New function.
11127 (validate_window_name): Rewrite.
11128 (_initialize_tui_layout): Call initialize_known_windows.
11129
fdb01f0c
TT
111302020-02-22 Tom Tromey <tom@tromey.com>
11131
11132 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11133 Remove constants.
11134 * tui/tui-winsource.h (struct tui_source_window_base)
11135 <tui_source_window_base>: Remove parameter.
11136 * tui/tui-winsource.c
11137 (tui_source_window_base::tui_source_window_base): Remove
11138 parameter.
11139 (tui_source_window_base::refill): Update.
11140 * tui/tui-stack.h (struct tui_locator_window)
11141 <tui_locator_window>: Update.
11142 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11143 Default the constructor.
11144 * tui/tui-regs.h (struct tui_data_item_window)
11145 <tui_data_item_window>: Default the constructor.
11146 (struct tui_data_window) <tui_data_window>: Likewise.
11147 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11148 Default the constructor.
11149 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11150 Default the constructor.
11151 <type>: Remove.
11152 (struct tui_win_info) <tui_win_info>: Default the constructor.
11153 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11154 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11155 Default the constructor.
11156
865a5aec
TT
111572020-02-22 Tom Tromey <tom@tromey.com>
11158
11159 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11160 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11161 * tui/tui-win.c (tui_resize_all): Don't call
11162 tui_delete_invisible_windows.
11163 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11164 done.
11165 (tui_set_layout): Update.
11166 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11167 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11168 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11169
e098d18c
TT
111702020-02-22 Tom Tromey <tom@tromey.com>
11171
11172 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11173 correctly.
11174
eb9c8874
TT
111752020-02-22 Tom Tromey <tom@tromey.com>
11176
11177 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11178
7eed1a8e
TT
111792020-02-22 Tom Tromey <tom@tromey.com>
11180
11181 * tui/tui-winsource.h (struct tui_source_window_iterator)
11182 <inner_iterator>: New etytypedef.
11183 <tui_source_window_iterator>: Take "end" parameter.
11184 <tui_source_window_iterator>: Take iterator.
11185 <operator*, advance>: Update.
11186 <m_iter>: Change type.
11187 <m_end>: New field.
11188 (struct tui_source_windows) <begin, end>: Update.
11189 * tui/tui-layout.c (tui_windows): New global.
11190 (tui_apply_current_layout): Clear tui_windows.
11191 (tui_layout_window::apply): Update tui_windows.
11192 * tui/tui-data.h (tui_windows): Declare.
11193 (all_tui_windows): Now inline function.
11194 (class tui_window_iterator, struct all_tui_windows): Remove.
11195
7c043ba6
TT
111962020-02-22 Tom Tromey <tom@tromey.com>
11197
11198 PR tui/17850:
11199 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11200 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11201 "height" argument.
11202 (class tui_layout_window) <get_sizes>: Likewise.
11203 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11204 argument.
11205 <get_sizes>: Add "height" argument.
11206 <m_vertical>: New field.
11207 * tui/tui-layout.c (tui_layout_split::clone): Update.
11208 (tui_layout_split::get_sizes): Add "height" argument.
11209 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11210 (tui_new_layout_command): Parse "-horizontal".
11211 (_initialize_tui_layout): Update help string.
11212 (tui_layout_split::specification): Add "-horizontal" when needed.
11213 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11214 argument.
11215 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11216 New methods.
11217
6bc56648
TT
112182020-02-22 Tom Tromey <tom@tromey.com>
11219
11220 * tui/tui-layout.h (enum tui_adjust_result): New.
11221 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11222 (class tui_layout_window) <adjust_size>: Return
11223 tui_adjust_result. Rewrite.
11224 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11225 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11226
c22fef7e
TT
112272020-02-22 Tom Tromey <tom@tromey.com>
11228
11229 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11230 parameter and return types.
11231 (class tui_layout_base) <specification>: Add "depth".
11232 (class tui_layout_window) <specification>: Add "depth".
11233 (class tui_layout_split) <specification>: Add "depth".
11234 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11235 and return types.
11236 (tui_new_layout_command): Parse sub-layouts.
11237 (_initialize_tui_layout): Update help string.
11238 (tui_layout_window::specification): Add "depth".
11239 (add_layout_command): Update.
11240
ee325b61
TT
112412020-02-22 Tom Tromey <tom@tromey.com>
11242
11243 * NEWS: Add "tui new-layout" item.
11244 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11245 Add new-layout command to help text.
11246 (validate_window_name): New function.
11247 (tui_new_layout_command): New function.
11248 (_initialize_tui_layout): Register "new-layout".
11249 (tui_layout_window::specification): New method.
11250 (tui_layout_window::specification): New method.
11251 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11252 method.
11253 (class tui_layout_window) <specification>: New method.
11254 (class tui_layout_split) <specification>: New method.
11255
416eb92d
TT
112562020-02-22 Tom Tromey <tom@tromey.com>
11257
11258 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11259 * tui/tui-win.c (window_name_completer): Update comment.
11260 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11261 Declare method.
11262 (class tui_layout_window) <replace_window>: Likewise.
11263 (class tui_layout_split) <replace_window>: Likewise.
11264 (tui_set_layout): Don't declare.
11265 (tui_set_initial_layout): Declare function.
11266 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11267 (asm_regs_layout): New globals.
11268 (tui_current_layout, show_layout): Remove.
11269 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11270 (find_layout, tui_apply_layout): New function.
11271 (layout_completer): Remove.
11272 (tui_next_layout): Reimplement.
11273 (tui_next_layout_command): New function.
11274 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11275 (tui_regs_layout): Reimplement.
11276 (tui_regs_layout_command): New function.
11277 (extract_display_start_addr): Rewrite.
11278 (next_layout, prev_layout): Remove.
11279 (tui_layout_window::replace_window): New method.
11280 (tui_layout_split::replace_window): New method.
11281 (destroy_layout): New function.
11282 (layout_list): New global.
11283 (add_layout_command): New function.
11284 (initialize_layouts): Update.
11285 (tui_layout_command): New function.
11286 (_initialize_tui_layout): Install "layout" commands.
11287 * tui/tui-data.h (enum tui_layout_type): Remove.
11288 (tui_current_layout): Don't declare.
11289
0dbc2fc7
TT
112902020-02-22 Tom Tromey <tom@tromey.com>
11291
11292 * tui/tui-regs.c (tui_reg_layout): Remove.
11293 (tui_reg_command): Use tui_regs_layout.
11294 * tui/tui-layout.h (tui_reg_command): Declare.
11295 * tui/tui-layout.c (tui_reg_command): New function.
11296
5afe342e
TT
112972020-02-22 Tom Tromey <tom@tromey.com>
11298
11299 * tui/tui.c (tui_rl_delete_other_windows): Call
11300 tui_remove_some_windows.
11301 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11302 Declare method.
11303 (class tui_layout_window) <remove_windows>: New method.
11304 (class tui_layout_split) <remove_windows>: Declare.
11305 (tui_remove_some_windows): Declare.
11306 * tui/tui-layout.c (tui_remove_some_windows): New function.
11307 (tui_layout_split::remove_windows): New method.
11308
427326a8
TT
113092020-02-22 Tom Tromey <tom@tromey.com>
11310
11311 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11312 * tui/tui-layout.h (tui_next_layout): Declare.
11313 * tui/tui-layout.c (tui_next_layout): New function.
11314
3fe12b6d
TT
113152020-02-22 Tom Tromey <tom@tromey.com>
11316
11317 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11318 correct coordinates.
11319
59b8b5d2
TT
113202020-02-22 Tom Tromey <tom@tromey.com>
11321
11322 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11323 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11324 DATA_WIN case.
11325
2a3d458b
TT
113262020-02-22 Tom Tromey <tom@tromey.com>
11327
11328 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11329 TUI_DISASM_WIN, not tui_win_list.
11330
3f0cbb04
TT
113312020-02-22 Tom Tromey <tom@tromey.com>
11332
11333 * valprint.c (generic_val_print_enum_1)
11334 (val_print_type_code_flags): Style member names.
11335 * rust-lang.c (val_print_struct, rust_print_enum)
11336 (rust_print_struct_def, rust_internal_print_type): Style member
11337 names.
11338 * p-valprint.c (pascal_object_print_value_fields): Style member
11339 names. Only call fprintf_symbol_filtered for static members.
11340 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11341 * f-valprint.c (f_val_print): Style member names.
11342 * f-typeprint.c (f_type_print_base): Style member names.
11343 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11344 call fprintf_symbol_filtered for static members.
11345 (cp_print_class_member): Style member names.
11346 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11347 member names.
11348 * ada-valprint.c (ada_print_scalar): Style enum names.
11349 (ada_val_print_enum): Likewise.
11350 * ada-typeprint.c (print_enum_type): Style enum names.
11351
d4d947ae
TT
113522020-02-21 Tom Tromey <tom@tromey.com>
11353
11354 * psympriv.h (struct partial_symtab): Update comment.
11355
e94e944b
TT
113562020-02-21 Tom Tromey <tromey@adacore.com>
11357
11358 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11359 type is CORE_ADDR.
11360
1eb73179
TV
113612020-02-21 Tom de Vries <tdevries@suse.de>
11362
11363 PR gdb/25534
11364 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11365 if dependencies[i]->user != NULL.
11366
4f180d53
AT
113672020-02-21 Ali Tamur <tamur@google.com>
11368
11369 * dwarf2/read.c (dwarf2_name): Add null check.
11370
22b6cd70
TT
113712020-02-20 Tom Tromey <tom@tromey.com>
11372
11373 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11374 ">=", in binary search.
11375 (dwarf2_find_containing_comp_unit): New overload.
11376 (run_test): New self-test.
11377 (_initialize_dwarf2_read): Register new test.
11378
bd0cf5a6
NC
113792020-02-20 Nelson Chu <nelson.chu@sifive.com>
11380
11381 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11382 * riscv-tdep.h: Likewise.
11383 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11384 rv32-only CSR.
11385 * features/riscv/64bit-csr.xml: Regenerated.
11386
3f702acd
SDJ
113872020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11388 Tom Tromey <tom@tromey.com>
11389
11390 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11391 of 'fputc_unfiltered'.
11392 (putchar_unfiltered): Call 'fputc_unfiltered'.
11393 (fputc_unfiltered): Call 'fputs_unfiltered'.
11394
d13c7322
AB
113952020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11396
11397 * config.in: Regenerate.
11398 * configure: Regenerate.
11399 * configure.ac: Add --with-python-libdir option.
11400 * main.c: Use WITH_PYTHON_LIBDIR.
11401
869d8950
TT
114022020-02-19 Tom Tromey <tom@tromey.com>
11403
11404 * symtab.c (general_symbol_info::compute_and_set_names): Use
11405 obstack_strndup. Simplify call to symbol_set_demangled_name.
11406
298e9637
SM
114072020-02-19 Simon Marchi <simon.marchi@efficios.com>
11408
11409 * dwarf2/read.c (allocate_signatured_type_table,
11410 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11411 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11412 Remove objfile parameter, update all callers.
11413
08410482
DE
114142020-02-19 Doug Evans <dje@google.com>
11415
11416 PR rust/25535
11417 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11418 rust_enum_variant calculation.
11419
dfdeeca1
TT
114202020-02-19 Tom Tromey <tromey@adacore.com>
11421
11422 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11423
2ef5453b
TT
114242020-02-19 Tom Tromey <tromey@adacore.com>
11425
11426 * ada-lang.c (cache_symbol): Use obstack_strdup.
11427
9f1528a1
AB
114282020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11429
11430 * configure: Regenerate.
11431
d3c22fa8
TT
114322020-02-19 Tom Tromey <tromey@adacore.com>
11433
11434 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11435 NULL check.
11436
bf84f706
MR
114372020-02-19 Maciej W. Rozycki <macro@wdc.com>
11438
11439 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11440
d1c9b20f
AB
114412020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11442
11443 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11444 if GDBSERVER is not defined.
11445 (riscv_tdesc_cache): Likewise, also store const target_desc.
11446 (STATIC_IN_GDB): Define.
11447 (riscv_create_target_description): Update declaration with
11448 STATIC_IN_GDB.
11449 (riscv_lookup_target_description): New function, only define if
11450 GDBSERVER is not defined.
11451 * arch/riscv.h (riscv_create_target_description): Declare only
11452 when GDBSERVER is defined.
11453 (riscv_lookup_target_description): New declaration when GDBSERVER
11454 is not defined.
11455 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11456 (riscv_linux_read_features): ...this, and return
11457 riscv_gdbarch_features instead of target_desc.
11458 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11459 (riscv_linux_read_description): Rename to...
11460 (riscv_linux_read_features): ...this.
11461 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11462 Update to use riscv_gdbarch_features and
11463 riscv_lookup_target_description.
11464 * riscv-tdep.c (riscv_find_default_target_description): Use
11465 riscv_lookup_target_description instead of
11466 riscv_create_target_description.
11467
373d7ac0
SM
114682020-02-18 Simon Marchi <simon.marchi@efficios.com>
11469
11470 * valprint.c (generic_val_print_enum_1): When printing a flag
11471 enum with value 0 and there is no enumerator with value 0, print
11472 just "0" instead of "(unknown: 0x0)".
11473
b29a2df0
SM
114742020-02-18 Simon Marchi <simon.marchi@efficios.com>
11475
11476 * valprint.c (generic_val_print_enum_1): Print unknown part of
11477 flag enum in hex.
11478
6740f0cc
SM
114792020-02-18 Simon Marchi <simon.marchi@efficios.com>
11480
11481 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11482 flag enums to contain duplicate enumerators.
11483 * valprint.c (generic_val_print_enum_1): Update comment.
11484
edd45eb0
SM
114852020-02-18 Simon Marchi <simon.marchi@efficios.com>
11486
11487 * dwarf2/read.c: Include "count-one-bits.h".
11488 (update_enumeration_type_from_children): If an enumerator has
11489 multiple bits set, don't treat the enumeration as a "flag enum".
11490 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11491 of flag enums have 0 or 1 bit set.
11492
6d0cf446
BE
114932020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11494
11495 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11496 conversion.
11497 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11498 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11499 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11500 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11501 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11502
7001c1b7
SM
115032020-02-18 Simon Marchi <simon.marchi@efficios.com>
11504
11505 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11506
fdb61c6c
SM
115072020-02-14 Simon Marchi <simon.marchi@efficios.com>
11508
11509 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11510 displaced_step_closure_up.
11511 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11512 (struct displaced_step_closure_up):
11513 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11514 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11515 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11516 Likewise.
11517 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11518 * gdbarch.c, gdbarch.h: Re-generate.
11519 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11520 displaced_step_closure_up.
11521 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11522 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11523 * infrun.h (displaced_step_closure_up): New type alias.
11524 (struct displaced_step_inferior_state) <step_closure>: Change
11525 type to displaced_step_closure_up.
11526 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11527 displaced_step_closure_up.
11528 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11529
a4a38eb4
TT
115302020-02-14 Tom Tromey <tom@tromey.com>
11531
11532 * minidebug.c (gnu_debug_key): New global.
11533 (find_separate_debug_file_in_section): Use it.
11534
e8217e61
SM
115352020-02-14 Simon Marchi <simon.marchi@efficios.com>
11536
11537 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11538 std::unique_ptr.
11539 * gdbarch.c: Re-generate.
11540 * gdbarch.h: Re-generate.
11541 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11542 change.
11543 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11544 type to std::unique_ptr.
11545 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11546 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11547 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11548 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11549 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11550 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11551 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11552 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11553 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11554
d8d83535
SM
115552020-02-14 Simon Marchi <simon.marchi@efficios.com>
11556
11557 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11558 std::unique_ptr.
11559 (displaced_step_clear): Rename to...
11560 (displaced_step_reset): ... this. Just call displaced->reset ().
11561 (displaced_step_clear_cleanup): Rename to...
11562 (displaced_step_reset_cleanup): ... this.
11563 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11564 (displaced_step_fixup): Likewise.
11565 (resume_1): Likewise.
11566 (handle_inferior_event): Restore child's memory before calling
11567 displaced_step_fixup on the parent.
11568 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11569 to std::unique_ptr.
11570 <step_closure>: Change type to std::unique_ptr.
11571
5f661e03
SM
115722020-02-14 Simon Marchi <simon.marchi@efficios.com>
11573
11574 * arm-tdep.c: Include count-one-bits.h.
11575 (cleanup_block_store_pc): Use count_one_bits.
11576 (cleanup_block_load_pc): Use count_one_bits.
11577 (arm_copy_block_xfer): Use count_one_bits.
11578 (thumb2_copy_block_xfer): Use count_one_bits.
11579 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11580 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11581 (thumb_get_next_pcs_raw): Use count_one_bits.
11582 (arm_get_next_pcs_raw): Use count_one_bits_l.
11583 * arch/arm.c (bitcount): Remove.
11584 * arch/arm.h (bitcount): Remove.
11585
8084e579
TT
115862020-02-14 Tom Tromey <tromey@adacore.com>
11587
11588 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11589 Update.
11590 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11591 * dwarf2/loc.c (call_site_find_chain_1): Return
11592 unique_xmalloc_ptr.
11593 (call_site_find_chain): Likewise.
11594
258bf0ee
RB
115952020-02-14 Richard Biener <rguenther@suse.de>
11596
11597 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11598 on expression with division operators.
11599
f98a8458
AKS
116002020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11601
11602 * MAINTAINERS (Write After Approval): Adding myself.
11603
d1437c0e
TT
116042020-02-12 Tom Tromey <tom@tromey.com>
11605
11606 * event-loop.c (event_data, gdb_event, event_handler_func):
11607 Remove.
11608
3d4560f7
TT
116092020-02-12 Tom Tromey <tom@tromey.com>
11610
11611 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11612 (dwarf2_frame_objfile_data): Add comment.
11613 (find_comp_unit, set_comp_unit): New functions.
11614 (dwarf2_frame_find_fde): Use find_comp_unit.
11615 (dwarf2_build_frame_info): Use set_comp_unit.
11616
21982304
TT
116172020-02-12 Tom Tromey <tom@tromey.com>
11618
11619 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11620 (comp_unit): Don't initialize objfile.
11621 (execute_cfa_program): Add text_offset parameter.
11622 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11623 (dwarf2_frame_cache): Update.
11624 (dwarf2_build_frame_info): Don't set "objfile" member.
11625
4debb237
TT
116262020-02-12 Tom Tromey <tom@tromey.com>
11627
11628 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11629 (decode_frame_entry): Likewise.
11630 (dwarf2_build_frame_info): Update.
11631
0d404d44
TT
116322020-02-12 Tom Tromey <tom@tromey.com>
11633
11634 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11635 (decode_frame_entry_1): Use the comp_unit obstack.
11636
a7a3ae5c
TT
116372020-02-12 Tom Tromey <tom@tromey.com>
11638
11639 * dwarf2/frame.c (struct comp_unit): Add initializers and
11640 constructor.
11641 (dwarf2_frame_objfile_data): Store a comp_unit.
11642 (dwarf2_frame_find_fde): Update.
11643 (dwarf2_build_frame_info): Use "new".
11644
a9d65418
TT
116452020-02-12 Tom Tromey <tom@tromey.com>
11646
11647 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11648 (dwarf2_fde_table): Typedef for std::vector.
11649 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11650 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11651 (decode_frame_entry): Update.
11652 (dwarf2_build_frame_info): Use "new".
11653
7559c217
CB
116542020-02-12 Christian Biesinger <cbiesinger@google.com>
11655
11656 * arm-tdep.c (arm_gdbarch_init): Update.
11657 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11658 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11659 have_neon, is_m>: Change to bool.
11660
aeefc73c
CB
116612020-02-12 Christian Biesinger <cbiesinger@google.com>
11662
11663 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11664
d27b8e5f
TT
116652020-02-12 Tom Tromey <tom@tromey.com>
11666
11667 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11668
cd5900f3
HD
116692020-02-12 Hannes Domani <ssbssa@yahoo.de>
11670
11671 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11672 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11673
f056b22b
TT
116742020-02-11 Tom Tromey <tom@tromey.com>
11675
11676 * psymtab.h: Update comment.
11677
f92ff6b5
TT
116782020-02-11 Tom Tromey <tom@tromey.com>
11679
11680 * gdb_obstack.h (struct auto_obstack): Use
11681 DISABLE_COPY_AND_ASSIGN.
11682
3fd6912b
TT
116832020-02-11 Tom Tromey <tom@tromey.com>
11684
11685 * dwarf2/frame.h (struct objfile): Don't forward declare.
11686
69ed9b74
CB
116872020-02-11 Christian Biesinger <cbiesinger@google.com>
11688
11689 * cris-tdep.c (cris_supply_gregset): Change signature to match
11690 what struct regset expects.
11691 (cris_regset): New struct.
11692 (fetch_core_registers): Remove.
11693 (cris_iterate_over_regset_sections): New function.
11694 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11695 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11696
bda874f6
CB
116972020-02-11 Christian Biesinger <cbiesinger@google.com>
11698
11699 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11700 registers.
11701
754e1564
CB
117022020-02-11 Christian Biesinger <cbiesinger@google.com>
11703
11704 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11705
8ddd8e0e
SM
117062020-02-11 Simon Marchi <simon.marchi@efficios.com>
11707
11708 * configure: Re-generate.
11709
898e7f60
SM
117102020-02-11 Simon Marchi <simon.marchi@efficios.com>
11711
11712 * configure: Re-generate.
11713
58df732b
SM
117142020-02-11 Simon Marchi <simon.marchi@efficios.com>
11715
11716 * acinclude: Update warning.m4 path.
11717 * warning.m4: Move to gdbsupport.
11718
da5bd37e
TT
117192020-02-11 Tom Tromey <tromey@adacore.com>
11720
11721 * remote.c (remote_console_output): Update.
11722 * printcmd.c (printf_command): Update.
11723 * event-loop.c (gdb_wait_for_event): Update.
11724 * linux-nat.c (sigchld_handler): Update.
11725 * remote-sim.c (gdb_os_write_stdout): Update.
11726 (gdb_os_flush_stdout): Update.
11727 (gdb_os_flush_stderr): Update.
11728 (gdb_os_write_stderr): Update.
11729 * exceptions.c (print_exception): Update.
11730 * remote-fileio.c (remote_fileio_func_read): Update.
11731 (remote_fileio_func_write): Update.
11732 * tui/tui.c (tui_enable): Update.
11733 * tui/tui-interp.c (tui_interp::init): Update.
11734 * utils.c (init_page_info): Update.
11735 (putchar_unfiltered, fputc_unfiltered): Update.
11736 (gdb_flush): Update.
11737 (emit_style_escape): Update.
11738 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11739 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11740 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11741 (stderr_file::write): Update.
11742 (stderr_file::puts): Update.
11743 * ui-file.h (ui_file_isatty, ui_file_write)
11744 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11745 (ui_file_puts): Don't declare.
11746
85f0dd3c
TV
117472020-02-10 Tom de Vries <tdevries@suse.de>
11748
11749 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11750 sentinel to char *.
11751
2e927613
TV
117522020-02-09 Tom de Vries <tdevries@suse.de>
11753
11754 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11755 filename if it matches "<artificial>".
11756
6bafc845
HD
117572020-02-09 Hannes Domani <ssbssa@yahoo.de>
11758
11759 * windows-tdep.c (struct enum_value_name): New struct.
11760 (create_enum): New function.
11761 (windows_get_siginfo_type): Create and use enum types.
11762
7928d571
HD
117632020-02-09 Hannes Domani <ssbssa@yahoo.de>
11764
11765 * NEWS: Mention $_siginfo support for Windows.
11766 * windows-nat.c (handle_exception): Set siginfo_er.
11767 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11768 (windows_xfer_siginfo): New function.
11769 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11770 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11771 (init_windows_gdbarch_data): New function.
11772 (get_windows_gdbarch_data): New function.
11773 (windows_get_siginfo_type): New function.
11774 (windows_init_abi): Register windows_get_siginfo_type.
11775 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11776
6751ebae
TT
117772020-02-08 Tom Tromey <tom@tromey.com>
11778
11779 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11780 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11781 <keep>: Declare method.
11782 <m_keep>: Remove member.
11783 <~cutu_reader>: Remove.
11784 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11785 (cutu_reader::cutu_reader): Update.
11786 (cutu_reader::keep): Rename from ~cutu_reader.
11787 (process_psymtab_comp_unit, build_type_psymtabs_1)
11788 (process_skeletonless_type_unit, load_partial_comp_unit)
11789 (load_full_comp_unit, dwarf2_read_addr_index)
11790 (read_signatured_type): Update.
11791
135f5437
TT
117922020-02-08 Tom Tromey <tom@tromey.com>
11793
11794 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11795 "want_partial_unit" parameter.
11796 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11797 Inline check for DW_TAG_partial_unit.
11798 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11799
9f66ff1c
TT
118002020-02-08 Tom Tromey <tom@tromey.com>
11801
11802 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11803 read.c.
11804 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11805 read.c.
11806
c8a7a66f
TT
118072020-02-08 Tom Tromey <tom@tromey.com>
11808
11809 * dwarf2/read.c (read_address): Move to comp-unit.c.
11810 (dwarf2_rnglists_process, dwarf2_ranges_process)
11811 (read_attribute_value, dwarf_decode_lines_1)
11812 (var_decode_location, decode_locdesc): Update.
11813 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11814 read.c. Remove "cu" parameter.
11815 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11816 method.
11817
8266302d
TT
118182020-02-08 Tom Tromey <tom@tromey.com>
11819
11820 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11821 (read_indirect_line_string): Update.
11822 * dwarf2/comp-unit.c (read_offset): Remove.
11823 (read_comp_unit_head): Update.
11824 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11825 method.
11826 (read_offset): Don't declare.
11827
4057dfde
TT
118282020-02-08 Tom Tromey <tom@tromey.com>
11829
11830 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11831 * dwarf2/read.c (struct comp_unit_head): Move to
11832 dwarf2/comp-unit.h.
11833 (enum class rcuh_kind): Move to comp-unit.h.
11834 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11835 (read_comp_unit_head, error_check_comp_unit_head)
11836 (read_and_check_comp_unit_head): Move to comp-unit.c.
11837 (read_offset, dwarf_unit_type_name): Likewise.
11838 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11839 (cutu_reader::cutu_reader, read_call_site_scope)
11840 (find_partial_die, follow_die_offset): Update.
11841 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11842
24aa364d
TT
118432020-02-08 Tom Tromey <tom@tromey.com>
11844
11845 * dwarf2/read.c (read_offset_1): Move to leb.c.
11846 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11847 (dwarf_decode_macro_bytes): Update.
11848 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11849 * dwarf2/leb.h (read_offset): Declare.
11850
2c7d5afc
TT
118512020-02-08 Tom Tromey <tom@tromey.com>
11852
11853 * dwarf2/read.c (dwarf2_section_size): Remove.
11854 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11855 Update.
11856 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11857
4075cb26
TT
118582020-02-08 Tom Tromey <tom@tromey.com>
11859
11860 * dwarf2/read.c (read_initial_length): Move to leb.c.
11861 * dwarf2/leb.h (read_initial_length): Declare.
11862 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11863 handle_nonstd parameter.
11864 * dwarf2/frame.c (read_initial_length): Remove.
11865 (decode_frame_entry_1): Update.
11866
09ba997f
TT
118672020-02-08 Tom Tromey <tom@tromey.com>
11868
11869 * dwarf2/loc.c (dwarf2_find_location_expression)
11870 (dwarf_evaluate_loc_desc::get_tls_address)
11871 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11872 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11873 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11874 (dwarf2_compile_property_to_c)
11875 (dwarf2_loc_desc_get_symbol_read_needs)
11876 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11877 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11878 (loclist_describe_location, loclist_tracepoint_var_ref)
11879 (loclist_generate_c_location): Update.
11880 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11881 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11882 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11883 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11884 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11885 (dwarf2_per_cu_data::addr_size)
11886 (dwarf2_per_cu_data::ref_addr_size)
11887 (dwarf2_per_cu_data::text_offset)
11888 (dwarf2_per_cu_data::addr_type): Now methods.
11889 (per_cu_header_read_in): Make per_cu "const".
11890 (dwarf2_version): Remove.
11891 (dwarf2_per_cu_data::int_type): Now a method.
11892 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11893 (set_die_type, read_array_type, read_subrange_index_type)
11894 (read_tag_string_type, read_subrange_type): Update.
11895 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11896 offset_size, ref_addr_size, text_offset, addr_type, version,
11897 objfile, int_type, addr_sized_int_type>: Declare methods.
11898
96c738c0
TT
118992020-02-08 Tom Tromey <tom@tromey.com>
11900
11901 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11902 Move earlier.
11903
8fdd972c
TT
119042020-02-08 Tom Tromey <tom@tromey.com>
11905
11906 * dwarf2/read.h (dwarf_line_debug): Declare.
11907 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11908 * dwarf2/read.c: Move line_header code to new files.
11909 (dwarf_line_debug): No longer static.
11910 * dwarf2/line-header.c: New file.
11911 * dwarf2/line-header.h: New file.
11912
03075812
TT
119132020-02-08 Tom Tromey <tom@tromey.com>
11914
11915 * dwarf2/read.c (struct line_header) <file_full_name,
11916 file_file_name>: Return unique_xmalloc_ptr.
11917 (line_header::file_file_name): Update.
11918 (line_header::file_full_name): Update.
11919 (dw2_get_file_names_reader): Update.
11920 (macro_start_file): Update.
11921
bb822404
TT
119222020-02-08 Tom Tromey <tom@tromey.com>
11923
11924 * dwarf2/read.c (struct line_header) <file_full_name,
11925 file_file_name>: Declare methods.
11926 (dw2_get_file_names_reader): Update.
11927 (file_file_name): Now a method.
11928 (file_full_name): Likewise.
11929 (macro_start_file): Update.
11930
009b64fc
TT
119312020-02-08 Tom Tromey <tom@tromey.com>
11932
11933 * dwarf2/read.c (dwarf_always_disassemble)
11934 (show_dwarf_always_disassemble): Move to loc.c.
11935 (_initialize_dwarf2_read): Move "always-disassemble" registration
11936 to loc.c.
11937 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11938 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11939 static.
11940 (show_dwarf_always_disassemble): Move from read.c.
11941 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11942
5895093f
TT
119432020-02-08 Tom Tromey <tom@tromey.com>
11944
11945 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11946 (create_quick_file_names_table): Return htab_up.
11947 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11948 Update.
11949 * dwarf2/read.h (struct dwarf2_per_objfile)
11950 <quick_file_names_table>: Now htab_up.
11951
b3b32279
TT
119522020-02-08 Tom Tromey <tom@tromey.com>
11953
11954 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11955
1d33d811
TT
119562020-02-08 Tom Tromey <tom@tromey.com>
11957
11958 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11959 Rewrite.
11960 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11961 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11962 (abbrev_table::abbrev_table): No longer inline.
11963 (ABBREV_HASH_SIZE): Remove.
11964 (abbrev_table::m_abbrevs): Now an htab_up.
11965
86de1d91
TT
119662020-02-08 Tom Tromey <tom@tromey.com>
11967
11968 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11969 (cutu_reader): Update.
11970 (build_type_psymtabs_1): Update.
11971 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11972 (abbrev_table::alloc_abbrev): Update.
11973 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11974 (abbrev_table::read): New static method, renamed from
11975 abbrev_table_read_table.
11976 (abbrev_table::alloc_abbrev)
11977 (abbrev_table::add_abbrev): Now private.
11978 (abbrev_table::abbrev_table): Now private.
11979 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11980
0335378b
TT
119812020-02-08 Tom Tromey <tom@tromey.com>
11982
11983 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11984 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11985 htab_up.
11986
48b490f2
TT
119872020-02-08 Tom Tromey <tom@tromey.com>
11988
11989 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11990 htab_up.
11991 (lookup_dwo_unit_in_dwp): Update.
11992 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11993 on obstack.
11994
bc68fb19
TT
119952020-02-08 Tom Tromey <tom@tromey.com>
11996
11997 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11998 obstack.
11999
d15acc42
TT
120002020-02-08 Tom Tromey <tom@tromey.com>
12001
12002 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12003 line_header_hash.
12004 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12005 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12006 Change type to htab_up.
12007
eaa5fa8b
TT
120082020-02-08 Tom Tromey <tom@tromey.com>
12009
12010 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12011 htab_up. Don't allocate on obstack.
12012 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12013 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12014 Change type to htab_up.
12015
b0b6a987
TT
120162020-02-08 Tom Tromey <tom@tromey.com>
12017
12018 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12019 Change type to htab_up.
12020 * dwarf2/read.c (create_signatured_type_table_from_index)
12021 (create_signatured_type_table_from_debug_names)
12022 (create_all_type_units, add_type_unit)
12023 (lookup_dwo_signatured_type, lookup_signatured_type)
12024 (process_skeletonless_type_unit): Update.
12025 (create_debug_type_hash_table, create_debug_types_hash_table):
12026 Change type of types_htab.
12027 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12028 htab_up. Don't allocate on obstack.
12029 (create_cus_hash_table): Change type of cus_htab parameter.
12030 (struct dwo_file) <cus, tus>: Now htab_up.
12031 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12032 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12033 (queue_and_load_all_dwo_tus): Update.
12034 * dwarf2/index-write.c (write_gdbindex): Update.
12035 (write_debug_names): Update.
12036
39856def
TT
120372020-02-08 Tom Tromey <tom@tromey.com>
12038
12039 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12040 dwarf2/read.c. Remove "next" member. Add constructor ntad
12041 destructor.
12042 (struct dwarf2_per_objfile) <queue>: New member.
12043 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12044 dwarf2/read.h.
12045 (dwarf2_queue, dwarf2_queue_tail): Remove.
12046 (class dwarf2_queue_guard): Add parameter to constructor. Use
12047 DISABLE_COPY_AND_ASSIGN.
12048 <m_per_objfile>: New member.
12049 <~dwarf2_queue_guard>: Rewrite.
12050 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12051 Update.
12052 (~dwarf2_queue_item): New.
12053
3e225074
TT
120542020-02-08 Tom Tromey <tom@tromey.com>
12055
12056 * dwarf2/read.c (struct die_info) <has_children>: New member.
12057 (dw2_get_file_names_reader): Remove has_children.
12058 (dw2_get_file_names): Update.
12059 (read_cutu_die_from_dwo): Remove has_children.
12060 (cutu_reader::init_tu_and_read_dwo_dies)
12061 (cutu_reader::cutu_reader): Update.
12062 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12063 Remove has_children.
12064 (build_type_psymtabs_1, process_skeletonless_type_unit)
12065 (load_partial_comp_unit, load_full_comp_unit): Update.
12066 (create_dwo_cu_reader): Remove has_children.
12067 (create_cus_hash_table, read_die_and_children): Update.
12068 (read_full_die_1,read_full_die): Remove has_children.
12069 (read_signatured_type): Update.
12070 (class cutu_reader) <has_children>: Remove.
12071
82ca8957
TT
120722020-02-08 Tom Tromey <tom@tromey.com>
12073
12074 * dwarf2/expr.c: Rename from dwarf2expr.c.
12075 * dwarf2/expr.h: Rename from dwarf2expr.h.
12076 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12077 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12078 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12079 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12080 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12081 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12082 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12083 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12084 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12085 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12086 * dwarf2/loc.c: Rename from dwarf2loc.c.
12087 * dwarf2/loc.h: Rename from dwarf2loc.h.
12088 * dwarf2/read.c: Rename from dwarf2read.c.
12089 * dwarf2/read.h: Rename from dwarf2read.h.
12090 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12091 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12092 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12093 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12094 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12095 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12096 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12097 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12098 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12099 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12100 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12101 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12102 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12103 Update.
12104 * Makefile.in (COMMON_SFILES): Update.
12105 (HFILES_NO_SRCDIR): Update.
12106
9e35d499
TT
121072020-02-08 Tom Tromey <tom@tromey.com>
12108
12109 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12110 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12111
1eba2311
TT
121122020-02-08 Tom Tromey <tom@tromey.com>
12113
12114 * dwarf2read.h (struct die_info): Don't declare.
12115
e41c2da2
TT
121162020-02-08 Tom Tromey <tom@tromey.com>
12117
12118 * dwarf2read.h (die_info_ptr): Remove typedef.
12119
4fc6c0d5
TT
121202020-02-08 Tom Tromey <tom@tromey.com>
12121
12122 * dwarf2read.c (read_call_site_scope)
12123 (handle_data_member_location, dwarf2_add_member_fn)
12124 (mark_common_block_symbol_computed, read_common_block)
12125 (attr_to_dynamic_prop, partial_die_info::read)
12126 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12127 (dwarf2_symbol_mark_computed, set_die_type): Update.
12128 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12129 method.
12130 (attr_form_is_block): Don't declare.
12131 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12132
cd6c91b4
TT
121332020-02-08 Tom Tromey <tom@tromey.com>
12134
12135 * dwarf2read.c (dwarf2_find_base_address, )
12136 (read_call_site_scope, rust_containing_type)
12137 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12138 (handle_data_member_location, dwarf2_add_member_fn)
12139 (get_alignment, read_structure_type, process_structure_scope)
12140 (mark_common_block_symbol_computed, read_common_block)
12141 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12142 (partial_die_info::read, read_attribute_value, new_symbol)
12143 (lookup_die_type, dwarf2_get_ref_die_offset)
12144 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12145 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12146 (dwarf2_symbol_mark_computed): Update.
12147 * dwarf2/attribute.h (struct attribute) <value_as_address,
12148 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12149 methods.
12150 (value_as_address, attr_form_is_section_offset)
12151 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12152 * dwarf2/attribute.c (attribute::value_as_address)
12153 (attribute::form_is_section_offset, attribute::form_is_constant)
12154 (attribute::form_is_ref): Now methods.
12155
162dce55
TT
121562020-02-08 Tom Tromey <tom@tromey.com>
12157
12158 * dwarf2read.c (struct attribute, DW_STRING)
12159 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12160 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12161 (attr_form_is_block, attr_form_is_section_offset)
12162 (attr_form_is_constant, attr_form_is_ref): Move.
12163 * dwarf2/attribute.h: New file.
12164 * dwarf2/attribute.c: New file, from dwarf2read.c.
12165 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12166
3054dd54
TT
121672020-02-08 Tom Tromey <tom@tromey.com>
12168
12169 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12170 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12171 Move.
12172 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12173 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12174 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12175 abbrev.c.
12176 * dwarf2/abbrev.h: New file.
12177 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12178 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12179
96b79293
TT
121802020-02-08 Tom Tromey <tom@tromey.com>
12181
12182 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12183 (dwarf2_section_size, dwarf2_get_section_info)
12184 (create_signatured_type_table_from_debug_names)
12185 (create_addrmap_from_aranges, read_debug_names_from_section)
12186 (get_gdb_index_contents_from_section, read_comp_unit_head)
12187 (error_check_comp_unit_head, read_abbrev_offset)
12188 (create_debug_type_hash_table, init_cu_die_reader)
12189 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12190 (read_comp_units_from_section, create_cus_hash_table)
12191 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12192 (create_dwp_v2_section, dwarf2_rnglists_process)
12193 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12194 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12195 (read_indirect_string_from_dwz, read_addr_index_1)
12196 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12197 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12198 (fill_in_loclist_baton): Update.
12199 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12200 get_containing_section, get_bfd_owner, get_bfd_section,
12201 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12202 (dwarf2_read_section, get_section_name, get_section_file_name)
12203 (get_containing_section, get_section_bfd_owner)
12204 (get_section_bfd_section, get_section_name, get_section_file_name)
12205 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12206 declare.
12207 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12208 (dwarf2_section_info::get_bfd_owner)
12209 (dwarf2_section_info::get_bfd_section)
12210 (dwarf2_section_info::get_name)
12211 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12212 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12213 (dwarf2_section_info::read): Now methods.
12214 * dwarf-index-write.c (class debug_names): Update.
12215
2c86cff9
TT
122162020-02-08 Tom Tromey <tom@tromey.com>
12217
12218 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12219 Move to dwarf2/section.h.
12220 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12221 (get_section_bfd_section, get_section_name)
12222 (get_section_file_name, get_section_id, get_section_flags)
12223 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12224 dwarf2/section.c.
12225 * dwarf2/section.h: New file.
12226 * dwarf2/section.c: New file, from dwarf2read.c.
12227 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12228
f4382c45
TT
122292020-02-08 Tom Tromey <tom@tromey.com>
12230
12231 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12232 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12233 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12234 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12235 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12236 * dwarf2/leb.h: New file, from dwarf2read.c.
12237 * dwarf2/leb.c: New file, from dwarf2read.c.
12238 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12239 Remove.
12240 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12241 (COMMON_SFILES): Add dwarf2/leb.c.
12242
01840b7a
JB
122432020-02-08 Joel Brobecker <brobecker@adacore.com>
12244
12245 GDB 9.1 released.
12246
dfcb27e4
IB
122472020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12248
12249 PR gdb/25190:
aac66a4c
SM
12250 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12251 * gdb/remote.c (remote_console_output): Update.
12252 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12253 (ui_file_puts): ...this.
12254 * gdb/ui-file.h (ui_file_puts): Add declaration.
12255 * gdb/utils.c (emit_style_escape): Update.
12256 (flush_wrap_buffer): Update.
12257 (fputs_maybe_filtered): Update.
12258 (fputs_unfiltered): Add function.
dfcb27e4 12259
faa17681
IB
122602020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12261
aac66a4c
SM
12262 * gdb/event-loop.c (gdb_wait_for_event): Update.
12263 * gdb/printcmd.c (printf_command): Update.
12264 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12265 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12266 (gdb_os_flush_stderr): Update.
12267 * gdb/remote.c (remote_console_output): Update.
12268 * gdb/ui-file.c (gdb_flush): Rename to...
12269 (ui_file_flush): ...this.
12270 (stderr_file::write): Update.
12271 (stderr_file::puts): Update.
12272 * gdb/ui-file.h (gdb_flush): Rename to...
12273 (ui_file_flush): ...this.
12274 * gdb/utils.c (gdb_flush): Add function.
12275 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12276
5abbbe1d
TT
122772020-02-07 Tom Tromey <tromey@adacore.com>
12278
12279 PR breakpoints/24915:
12280 * source.c (find_and_open_source): Do not check basenames_may_differ.
12281
919adfe8
TT
122822020-02-07 Tom Tromey <tom@tromey.com>
12283
12284 * README: Update gdbserver documentation.
12285 * gdbserver: Move to top level.
12286 * configure.tgt (build_gdbserver): Remove.
12287 * configure.ac: Remove --enable-gdbserver.
12288 * configure: Rebuild.
12289 * Makefile.in (distclean): Don't mention gdbserver.
12290
1d5d29e7
SV
122912020-02-06 Shahab Vahedi <shahab@synopsys.com>
12292
12293 * source-cache.c (source_cache::ensure): Surround
12294 get_plain_source_lines with a try/catch.
12295 (source_cache::get_line_charpos): Get rid of try/catch
12296 and only check for the return value of "ensure".
12297 * tui/tui-source.c (tui_source_window::set_contents):
12298 Simplify "nlines" calculation.
12299
6eb1129c
SV
123002020-02-06 Shahab Vahedi <shahab@synopsys.com>
12301
12302 * MAINTAINERS (Write After Approval): Add myself.
12303
c6a42d11
CB
123042020-02-05 Christian Biesinger <cbiesinger@google.com>
12305
12306 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12307 function call.
12308
c8ecdda6
CB
123092020-02-05 Christian Biesinger <cbiesinger@google.com>
12310
12311 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12312
f6480e70
MR
123132020-02-05 Maciej W. Rozycki <macro@wdc.com>
12314
12315 * nat/riscv-linux-tdesc.h: New file.
12316 * nat/riscv-linux-tdesc.c: New file, taking code from...
12317 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12318 ... here.
12319 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12320 NATDEPFILES.
12321
dcc9fbc6
AB
123222020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12323
12324 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12325 we don't set the fake simulator ptid to the null_ptid.
12326
719546c4
SM
123272020-02-03 Simon Marchi <simon.marchi@efficios.com>
12328
12329 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12330 * gdbthread.h (class thread_info) <resumed>: Likewise.
12331 * infrun.c (resume_1): Likewise.
12332 (proceed): Likewise.
12333 (infrun_thread_stop_requested): Likewise.
12334 (stop_all_threads): Likewise.
12335 (handle_inferior_event): Likewise.
12336 (restart_threads): Likewise.
12337 (finish_step_over): Likewise.
12338 (keep_going_stepped_thread): Likewise.
12339 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12340 (linux_handle_extended_wait): Likewise.
12341 * record-btrace.c (get_thread_current_frame_id): Likewise.
12342 * record-full.c (record_full_wait_1): Likewise.
12343 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12344 * target.c (target_resume): Likewise.
12345 * thread.c (set_running_thread): Likewise.
12346
e409c542
AKS
123472020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12348
12349 * f-valprint.c (f77_print_array_1): Changed datatype of index
12350 variable to LONGEST from int to enable it to contain bound
12351 values correctly.
12352
ee98c0da
MR
123532020-02-03 Maciej W. Rozycki <macro@wdc.com>
12354
12355 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12356 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12357 offsets according to FLEN determined.
12358 (riscv_linux_nat_target::read_description): Determine FLEN
12359 dynamically.
12360 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12361 according to FLEN determined.
12362 (riscv_linux_nat_target::store_registers): Likewise.
12363
aa66aac4
SV
123642020-02-01 Shahab Vahedi <shahab@synopsys.com>
12365
12366 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12367 when reg->group is empty and reggroup is not.
12368
fd9faca8
TT
123692020-01-31 Tom Tromey <tromey@adacore.com>
12370
12371 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12372 Call beneath target's mourn_inferior after unpushing.
12373
42330a68
AB
123742020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12375
12376 PR tui/9765
12377 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12378 have enough lines to fill the screen, still return the lowest
12379 address we found.
12380
7a27a45b
AB
123812020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12382
12383 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12384 '-', '<', and '>' commands.
12385
c47f70e2
PA
123862020-01-29 Pedro Alves <palves@redhat.com>
12387 Sergio Durigan Junior <sergiodj@redhat.com>
12388
12389 * infcmd.c (construct_inferior_arguments): Assert that
12390 'argc' is greater than 0.
12391
5133a315
LM
123922020-01-29 Luis Machado <luis.machado@linaro.org>
12393
12394 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12395 (BRK_INSN_MASK): Define to 0xd4200000.
12396 (aarch64_program_breakpoint_here_p): New function.
12397 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12398 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12399 breakpoint.c.
12400 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12401 breakpoint.h
12402 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12403 call gdbarch_program_breakpoint_here_p.
12404 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12405 default_program_breakpoint_here_p, changed return type to bool and
12406 simplified.
12407 * breakpoint.h (program_breakpoint_here): Moved prototype to
12408 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12409 return type to bool.
12410 * gdbarch.c: Regenerate.
12411 * gdbarch.h: Regenerate.
12412 * gdbarch.sh (program_breakpoint_here_p): New method.
12413 * infrun.c (handle_signal_stop): Call
12414 gdbarch_program_breakpoint_here_p.
12415
168f8c6b
TT
124162020-01-26 Tom Tromey <tom@tromey.com>
12417
12418 * ctfread.c (struct ctf_fp_info): Reindent.
12419 (_initialize_ctfread): Remove.
12420
128a391f
TT
124212020-01-26 Tom Tromey <tom@tromey.com>
12422
12423 * psymtab.c (partial_map_expand_apply)
12424 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12425 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12426 (psym_print_stats, psym_expand_symtabs_for_function)
12427 (psym_map_symbol_filenames, psym_map_matching_symbols)
12428 (psym_expand_symtabs_matching)
12429 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12430 (maintenance_check_psymtabs): Use new methods.
12431 * psympriv.h (struct partial_symtab) <readin_p,
12432 get_compunit_symtab>: New methods.
12433 <readin, compunit_symtab>: Remove members.
12434 (struct standard_psymtab): New.
12435 (struct legacy_psymtab): Derive from standard_psymtab.
12436 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12437 standard_psymtab.
12438 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12439
0494dbec
TT
124402020-01-26 Tom Tromey <tom@tromey.com>
12441
12442 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12443 read_dependencies. Add assert.
12444 * psymtab.c (partial_symtab::read_dependencies): New method.
12445 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12446 method.
12447 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12448 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12449 read_dependencies.
12450 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12451 Add assert.
12452
8566b89b
TT
124532020-01-26 Tom Tromey <tom@tromey.com>
12454
12455 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12456 Call expand_psymtab.
12457 (xcoff_read_symtab): Call expand_psymtab.
12458 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12459 legacy_expand_psymtab.
12460 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12461 method.
12462 (struct legacy_psymtab) <expand_psymtab>: Implement.
12463 <legacy_expand_psymtab>: New member.
12464 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12465 (parse_partial_symbols): Set legacy_expand_psymtab.
12466 (psymtab_to_symtab_1): Change argument order. Call
12467 expand_psymtab.
12468 (new_psymtab): Set legacy_expand_psymtab.
12469 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12470 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12471 expand_psymtab.
12472 (dwarf2_psymtab::expand_psymtab): Rename from
12473 psymtab_to_symtab_1. Call expand_psymtab.
12474 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12475 (dbx_end_psymtab): Likewise.
12476 (dbx_psymtab_to_symtab_1): Change argument order. Call
12477 expand_psymtab.
12478 (dbx_read_symtab): Call expand_psymtab.
12479 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12480 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12481 (ctf_psymtab::read_symtab): Call expand_psymtab.
12482
077cbab2
TT
124832020-01-26 Tom Tromey <tom@tromey.com>
12484
12485 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12486 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12487 messages.
12488 * mdebugread.c (mdebug_read_symtab): Remove prints.
12489 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12490 assert.
12491 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12492
891813be
TT
124932020-01-26 Tom Tromey <tom@tromey.com>
12494
12495 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12496 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12497 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12498 legacy_symtab.
12499 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12500 * psymtab.c (psymtab_to_symtab): Call method.
12501 (dump_psymtab): Update.
12502 * psympriv.h (struct partial_symtab): Add virtual destructor.
12503 <read_symtab>: New method.
12504 (struct legacy_symtab): New.
12505 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12506 (struct pst_map) <pst>: Now a legacy_psymtab.
12507 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12508 (new_psymtab): Use legacy_psymtab.
12509 * dwarf2read.h (struct dwarf2_psymtab): New.
12510 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12511 * dwarf2read.c (dwarf2_create_include_psymtab)
12512 (dwarf2_build_include_psymtabs, create_type_unit_group)
12513 (create_partial_symtab, process_psymtab_comp_unit_reader)
12514 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12515 (set_partial_user): Use dwarf2_psymtab.
12516 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12517 (psymtab_to_symtab_1, process_full_comp_unit)
12518 (process_full_type_unit, dwarf2_ranges_read)
12519 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12520 (dwarf_decode_lines): Use dwarf2_psymtab.
12521 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12522 (add_address_entry_worker, write_one_signatured_type)
12523 (recursively_count_psymbols, recursively_write_psymbols)
12524 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12525 (write_debug_names): Likewise.
12526 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12527 <pst>: Now a legacy_psymtab.
12528 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12529 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12530 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12531 * ctfread.c (struct ctf_psymtab): New.
12532 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12533 ctf_psymtab.
12534 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12535 (create_partial_symtab): Return a ctf_psymtab.
12536 (scan_partial_symbols): Update.
12537
c3693a1d
TT
125382020-01-26 Tom Tromey <tom@tromey.com>
12539
12540 * xcoffread.c (xcoff_start_psymtab): Use new.
12541 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12542 renamed from start_psymtab_common.
12543 * psympriv.h (struct partial_symtab): Add new constructor.
12544 (start_psymtab_common): Don't declare.
12545 * mdebugread.c (parse_partial_symbols): Use new.
12546 * dwarf2read.c (create_partial_symtab): Use new.
12547 * dbxread.c (start_psymtab): Use new.
12548 * ctfread.c (create_partial_symtab): Use new.
12549
32caafd0
TT
125502020-01-26 Tom Tromey <tom@tromey.com>
12551
12552 * xcoffread.c (xcoff_end_psymtab): Use new.
12553 * psymtab.c (start_psymtab_common): Use new.
12554 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12555 Update.
12556 * psympriv.h (struct partial_symtab): Add parameters to
12557 constructor. Don't inline.
12558 (allocate_psymtab): Don't declare.
12559 * mdebugread.c (new_psymtab): Use new.
12560 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12561 * dbxread.c (dbx_end_psymtab): Use new.
12562
abaa2f23
TT
125632020-01-26 Tom Tromey <tom@tromey.com>
12564
12565 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12566 allocate_psymtab. Update documentation.
12567 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12568 allocate_psymtab. Do not use new.
12569 (allocate_psymtab): Use new. Update.
12570
6d94535f
TT
125712020-01-26 Tom Tromey <tom@tromey.com>
12572
12573 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12574 * psymtab.c (psym_print_stats): Update.
12575 * psympriv.h (struct partial_symtab) <readin,
12576 psymtabs_addrmap_supported, anonymous>: Now bool.
12577 * mdebugread.c (psymtab_to_symtab_1): Update.
12578 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12579 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12580 (process_full_comp_unit, process_full_type_unit): Update.
12581 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12582 * ctfread.c (psymtab_to_symtab): Update.
12583
6f17252b
TT
125842020-01-26 Tom Tromey <tom@tromey.com>
12585
12586 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12587 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12588 * psymtab.c (psymtab_storage): Delete psymtabs.
12589 (psymtab_storage::allocate_psymtab): Use new.
12590 (psymtab_storage::discard_psymtab): Use delete.
12591 * psympriv.h (struct partial_symtab): Add constructor and
12592 initializers.
12593
f6f1cebc
TT
125942020-01-26 Tom Tromey <tom@tromey.com>
12595
12596 * machoread.c: Do not include psympriv.h.
12597
e47e48f6
PW
125982020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12599
12600 * NEWS: Mention the new option and the set/show commands.
12601
a2fedca9
PW
126022020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12603
12604 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12605 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12606 (validate_exec_file): New variables, enums, functions.
12607 (exec_file_locate_attach, print_section_info): Style the filenames.
12608 (_initialize_exec): Install show_exec_file_mismatch_command and
12609 set_exec_file_mismatch_command.
12610 * gdbcore.h (validate_exec_file): Declare.
12611 * infcmd.c (attach_command): Call validate_exec_file.
12612 * remote.c ( remote_target::remote_add_inferior): Likewise.
12613
7ffa82e1
AB
126142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12615
12616 * frame.c (find_frame_sal): Move call to get_next_frame into more
12617 inner scope.
12618 * inline-frame.c (inilne_state) <inline_state>: Update argument
12619 types.
12620 (inilne_state) <skipped_symbol>: Rename to...
12621 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12622 (skip_inline_frames): Build vector of skipped symbols and use this
12623 to reate the inline_state.
12624 (inline_skipped_symbol): Add a comment and some assertions, fetch
12625 skipped symbol from the list.
12626
3d92a3e3
AB
126272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12628
12629 * buildsym.c (lte_is_less_than): Delete.
12630 (buildsym_compunit::end_symtab_with_blockvector): Create local
12631 lambda function to sort line table entries, and use
12632 std::stable_sort instead of std::sort.
12633 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12634 markers when looking for a previous line.
12635
94a72be7
AB
126362020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12637
12638 * dwarf2read.c (lnp_state_machine::record_line): Include
12639 end_sequence parameter in debug print out. Record the line if we
12640 are at an end_sequence marker even if it's not the start of a
12641 statement.
12642 * symmisc.c (maintenance_print_one_line_table): Print end of
12643 sequence markers with 'END' not '0'.
12644
53af73bf
PA
126452020-01-24 Pedro Alves <palves@redhat.com>
12646
12647 PR gdb/25410
12648 * thread.c (scoped_restore_current_thread::restore): Use
12649 switch_to_inferior_no_thread.
12650 * exec.c: Include "progspace-and-thread.h".
12651 (add_target_sections, remove_target_sections):
12652 scoped_restore_current_pspace_and_thread instead of
12653 scoped_restore_current_thread.
12654 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12655 and aspace to the inferior before calling clone_program_space.
12656 Remove stale comment.
12657
3050c6f4
CB
126582020-01-24 Christian Biesinger <cbiesinger@google.com>
12659
12660 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12661 (arm_netbsd_nat_target::fetch_registers): ...this.
12662 (arm_nbsd_nat_target::store_registers): Rename to...
12663 (arm_netbsd_nat_target::store_registers): ...this.
12664
73685c7e
CB
126652020-01-24 Christian Biesinger <cbiesinger@google.com>
12666
12667 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12668 register_t.
12669
89203d40
CB
126702020-01-24 Christian Biesinger <cbiesinger@google.com>
12671
12672 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12673 Update comment.
12674 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12675 Likewise.
12676 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12677 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12678 the correct replacement (iterate_over_regset_sections).
12679 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12680 Update comment.
12681
1ba1ac88
AB
126822020-01-24 Graham Markall <graham.markall@embecosm.com>
12683
12684 PR gdb/23718
12685 * gdb/python/python.c (execute_gdb_command): Call
12686 async_enable_stdin in catch block.
12687
f3364a6d
AB
126882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12689
12690 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12691 SWITCH_THRU_ALL_UIS.
12692
733d0a67
AB
126932020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12694
12695 PR tui/9765
12696 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12697 comment, add extra parameter, and update to store previous symbol
12698 when appropriate.
12699 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12700 add extra parameter.
12701 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12702 remove unneeded parameter, add try/catch around gdb_print_insn,
12703 rewrite to add items to asm_lines vector.
12704 (tui_find_backward_disassembly_start_address): New function.
12705 (tui_find_disassembly_address): Updated throughout.
12706 (tui_disasm_window::set_contents): Update for changes to
12707 tui_disassemble.
12708 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12709 number of lines to scroll.
12710
b3b3bada
SM
127112020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12712
12713 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12714 (SECT_OFF_DATA): Likewise.
12715 (SECT_OFF_RODATA): Likewise.
12716 (SECT_OFF_TEXT): Likewise.
12717 (SECT_OFF_BSS): Likewise.
12718 (struct objfile) <text_section_offset, data_section_offset>: New
12719 methods.
12720 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12721 objfile::text_section_offset.
12722 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12723 * coffread.c (coff_symtab_read): Likewise.
12724 (enter_linenos): Likewise.
12725 (process_coff_symbol): Likewise.
12726 * ctfread.c (get_objfile_text_range): Likewise.
12727 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12728 Use objfile::data_section_offset.
12729 * dwarf2-frame.c (execute_cfa_program): Use
12730 objfile::text_section_offset.
12731 (dwarf2_frame_find_fde): Likewise.
12732 * dwarf2read.c (create_addrmap_from_index): Likewise.
12733 (create_addrmap_from_aranges): Likewise.
12734 (dw2_find_pc_sect_compunit_symtab): Likewise.
12735 (process_psymtab_comp_unit_reader): Likewise.
12736 (add_partial_symbol): Likewise.
12737 (add_partial_subprogram): Likewise.
12738 (process_full_comp_unit): Likewise.
12739 (read_file_scope): Likewise.
12740 (read_func_scope): Likewise.
12741 (read_lexical_block_scope): Likewise.
12742 (read_call_site_scope): Likewise.
12743 (dwarf2_rnglists_process): Likewise.
12744 (dwarf2_ranges_process): Likewise.
12745 (dwarf2_ranges_read): Likewise.
12746 (dwarf_decode_lines_1): Likewise.
12747 (new_symbol): Likewise.
12748 (dwarf2_fetch_die_loc_sect_off): Likewise.
12749 (dwarf2_per_cu_text_offset): Likewise.
12750 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12751 * hppa-tdep.c (read_unwind_info): Likewise.
12752 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12753 * psympriv.h (struct partial_symtab): Likewise.
12754 * psymtab.c (find_pc_sect_psymtab): Likewise.
12755 * solib-svr4.c (enable_break): Likewise.
12756 * stap-probe.c (relocate_address): Use
12757 objfile::data_section_offset.
12758 * xcoffread.c (enter_line_range): Use
12759 objfile::text_section_offset.
12760 (read_xcoff_symtab): Likewise.
12761
ab53f382
SM
127622020-01-23 Simon Marchi <simon.marchi@efficios.com>
12763
12764 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12765 declaration to narrower scopes.
12766
e7eee665
SM
127672020-01-23 Simon Marchi <simon.marchi@efficios.com>
12768
12769 * darwin-nat.h (struct darwin_exception_msg, enum
12770 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12771 Move up.
12772 (class darwin_nat_target) <wait_1, check_new_threads,
12773 decode_exception_message, decode_message, stop_inferior,
12774 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12775 * darwin-nat.c (darwin_check_new_threads): Rename to...
12776 (darwin_nat_target::check_new_threads): ... this.
12777 (darwin_suspend_inferior_it): Remove.
12778 (darwin_decode_exception_message): Rename to...
12779 (darwin_nat_target::decode_exception_message): ... this.
12780 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12781 (darwin_decode_message): Rename to...
12782 (darwin_nat_target::decode_message): ... this.
12783 (cancel_breakpoint): Rename to...
12784 (darwin_nat_target::cancel_breakpoint): ... this.
12785 (darwin_wait): Rename to...
12786 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12787 instead of iterate_over_inferiors.
12788 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12789 (darwin_stop_inferior): Rename to...
12790 (darwin_nat_target::stop_inferior): ... this.
12791 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12792 (darwin_init_thread_list): Rename to...
12793 (darwin_nat_target::init_thread_list): ... this.
12794 (darwin_ptrace_him): Rename to...
12795 (darwin_nat_target::ptrace_him): ... this.
12796 (darwin_nat_target::create_inferior): Pass lambda function to
12797 fork_inferior.
12798 (darwin_nat_target::detach): Call stop_inferior instead of
12799 darwin_stop_inferior.
12800 * fork-inferior.h (fork_inferior): Change init_trace_fun
12801 parameter to gdb::function_view.
12802 * fork-inferior.c (fork_inferior): Likewise.
12803
c162ed3e
HD
128042020-01-23 Hannes Domani <ssbssa@yahoo.de>
12805
12806 * i386-cygwin-tdep.c (core_process_module_section): Update.
12807 * windows-nat.c (struct lm_info_windows): Add text_offset.
12808 (windows_xfer_shared_libraries): Update.
12809 * windows-tdep.c (windows_xfer_shared_library):
12810 Add text_offset_cached argument.
12811 * windows-tdep.h (windows_xfer_shared_library): Update.
12812
a1237872
SM
128132020-01-21 Simon Marchi <simon.marchi@efficios.com>
12814
12815 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12816
b3ee6dd9
SM
128172020-01-21 Simon Marchi <simon.marchi@efficios.com>
12818
12819 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12820 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12821 replace with range-based for.
12822 (gdbsim_interrupt_inferior): Remove.
12823 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12824 with a range-based for. Inline code from
12825 gdbsim_interrupt_inferior.
12826
f9fac3c8
SM
128272020-01-21 Simon Marchi <simon.marchi@efficios.com>
12828
12829 * infrun.c (proceed): Fix indentation.
12830
f6474de9
TT
128312020-01-21 Tom Tromey <tromey@adacore.com>
12832
12833 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12834 * python/python.c (python_extension_ops): Update.
12835 (gdbpy_colorize): New function.
12836 * python/lib/gdb/__init__.py (colorize): New function.
12837 * extension.h (ext_lang_colorize): Declare.
12838 * extension.c (ext_lang_colorize): New function.
12839 * extension-priv.h (struct extension_language_ops) <colorize>: New
12840 member.
12841 * cli/cli-style.c (_initialize_cli_style): Update help text.
12842
f0c702d4
LM
128432020-01-21 Luis Machado <luis.machado@linaro.org>
12844
12845 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12846 <cond>: Change type to bool.
12847 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12848 (aarch64_displaced_step_cb): Likewise.
12849 (aarch64_displaced_step_tb): Likewise.
12850
1ab139e5
LM
128512020-01-21 Luis Machado <luis.machado@linaro.org>
12852
12853 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12854 output.
12855
0c271889
LM
128562020-01-21 Luis Machado <luis.machado@linaro.org>
12857
12858 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12859 <pc_adjust>: Adjust the documentation.
12860 (aarch64_displaced_step_fixup): Check if PC really moved before
12861 adjusting it.
12862
4d89c1c7
TT
128632020-01-19 Tom Tromey <tom@tromey.com>
12864
12865 * disasm.c (~gdb_disassembler): New destructor.
12866 (gdb_buffered_insn_length): Call disassemble_free_target.
12867 * disasm.h (class gdb_disassembler): Declare destructor. Use
12868 DISABLE_COPY_AND_ASSIGN.
12869
c0ab21c2
TT
128702020-01-19 Tom Tromey <tom@tromey.com>
12871
12872 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12873 (die_reader_func_ftype): Remove.
12874 (cutu_reader): New class.
12875 (dw2_get_file_names_reader): Remove "data" parameter.
12876 (dw2_get_file_names): Use cutu_reader.
12877 (create_debug_type_hash_table): Update.
12878 (read_cutu_die_from_dwo): Update comment.
12879 (lookup_dwo_unit): Add dwo_name parameter.
12880 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12881 die_reader_func_ftype and data parameters.
12882 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12883 Remove die_reader_func_ftype and data parameters.
12884 (~cutu_reader): New; from init_cutu_and_read_dies.
12885 (cutu_reader::cutu_reader): Rename from
12886 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12887 and data parameters.
12888 (init_cutu_and_read_dies_simple): Remove.
12889 (struct process_psymtab_comp_unit_data): Remove.
12890 (process_psymtab_comp_unit_reader): Remove data parameter; add
12891 want_partial_unit and pretend_language parameters.
12892 (process_psymtab_comp_unit): Use cutu_reader.
12893 (build_type_psymtabs_reader): Remove data parameter.
12894 (build_type_psymtabs_1): Use cutu_reader.
12895 (process_skeletonless_type_unit): Likewise.
12896 (load_partial_comp_unit_reader): Remove.
12897 (load_partial_comp_unit): Use cutu_reader.
12898 (load_full_comp_unit_reader): Remove.
12899 (load_full_comp_unit): Use cutu_reader.
12900 (struct create_dwo_cu_data): Remove.
12901 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12902 dwo_unit parameters.
12903 (create_cus_hash_table): Use cutu_reader.
12904 (struct dwarf2_read_addr_index_data): Remove.
12905 (dwarf2_read_addr_index_reader): Remove.
12906 (dwarf2_read_addr_index): Use cutu_reader.
12907 (read_signatured_type_reader): Remove.
12908 (read_signatured_type): Use cutu_reader.
12909
45bbae5c
TT
129102020-01-19 Tom Tromey <tom@tromey.com>
12911
12912 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12913 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12914 (tui_wrefresh): Declare.
12915 * tui/tui-wingeneral.c (suppress_output): New global.
12916 (tui_suppress_output, ~tui_suppress_output): New constructor and
12917 destructor.
12918 (tui_wrefresh): New function.
12919 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12920 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12921 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12922 method.
12923 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12924 tui_wrefresh.
12925 (tui_data_window::no_refresh): New method.
12926 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12927 (tui_reg_command): Use tui_suppress_output
12928 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12929 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12930 method.
12931 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12932
4f13c1c0
TT
129332020-01-19 Tom Tromey <tom@tromey.com>
12934
12935 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12936 Handle case where symtab is null.
12937
fa47e446
SM
129382020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12939
12940 * linux-fork.c (one_fork_p): Simplify.
12941
26f42329
SM
129422020-01-17 Simon Marchi <simon.marchi@efficios.com>
12943
12944 * top.c (struct qt_args): Remove.
12945 (kill_or_detach): Change return type to void, replace `void *`
12946 parameter with a proper one.
12947 (print_inferior_quit_action): Likewise.
12948 (quit_confirm): Use range-based for loop to iterate over inferiors.
12949 (quit_force): Likewise.
12950
a9ac81b1
SM
129512020-01-17 Simon Marchi <simon.marchi@efficios.com>
12952
12953 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12954 `void *` parameter with proper parameters.
12955 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12956 (print_one_inferior): Change return type to void, replace `void *`
12957 parameter with proper parameters.
12958 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12959 inferiors.
12960 (get_other_inferior): Remove.
12961 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12962 inferiors.
12963
788eca49
SM
129642020-01-17 Simon Marchi <simon.marchi@efficios.com>
12965
12966 * mi/mi-interp.c (report_initial_inferior): Remove.
12967 (mi_interp::init): Use range-based for to iterate over inferiors.
12968
d9bc85b6
SM
129692020-01-17 Simon Marchi <simon.marchi@efficios.com>
12970
12971 * python/py-inferior.c (build_inferior_list): Remove.
12972 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12973
40c94099
CB
129742020-01-16 Christian Biesinger <cbiesinger@google.com>
12975
12976 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12977 (btrace_stitch_trace): Likewise.
12978 * charset.c (intermediate_encoding): Likewise (vaild).
12979 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12980 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12981 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12982
e0cdfe3c
HD
129832020-01-16 Hannes Domani <ssbssa@yahoo.de>
12984
12985 * windows-tdep.c (windows_get_tlb_type):
12986 Add rtl_user_process_parameters type.
12987
790f1718 129882020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12989 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12990
12991 PR build/24805
12992 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12993 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12994 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12995 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12996 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12997 (ps_plog): Redeclare exported functions with default visibility.
12998
3112ed97
NA
129992020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13000
13001 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13002 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13003
8dc3273e
SM
130042020-01-15 Simon Marchi <simon.marchi@efficios.com>
13005
13006 * infcmd.c (post_create_inferior): Use get_thread_regcache
13007 instead of get_current_regcache.
13008
ff47f4f0
TT
130092020-01-14 Tom Tromey <tom@tromey.com>
13010
13011 PR symtab/12535:
13012 * python/python.c (gdbpy_decode_line): Treat empty string the same
13013 as no argument.
13014
975f45b7
TT
130152020-01-14 Tom Tromey <tom@tromey.com>
13016
13017 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13018
25e57356
TT
130192020-01-14 Tom Tromey <tom@tromey.com>
13020
13021 * nat/linux-btrace.c: Don't include <config.h>.
13022 * nat/linux-ptrace.c: Don't include <config.h>.
13023 * nat/x86-linux-dregs.c: Don't include <config.h>.
13024
05ea2a05
TT
130252020-01-14 Tom Tromey <tom@tromey.com>
13026
13027 * configure: Rebuild.
13028 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13029
01027315
TT
130302020-01-14 Tom Tromey <tom@tromey.com>
13031
13032 * nat/x86-linux-dregs.c: Include configh.h.
13033 * nat/linux-ptrace.c: Include configh.h.
13034 * nat/linux-btrace.c: Include configh.h.
13035 * defs.h: Include config.h, bfd.h.
13036 * configure.ac: Don't source common.host.
13037 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13038 * configure: Rebuild.
13039 * acinclude.m4: Update path.
13040 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13041 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13042 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13043 (CLIBS): Add LIBSUPPORT.
13044 (CDEPS): Likewise.
13045 (COMMON_SFILES): Remove gdbsupport files.
13046 (HFILES_NO_SRCDIR): Likewise.
13047 (stamp-version): Update path to create-version.sh.
13048 (ALLDEPFILES): Remove gdbsupport files.
13049
b2ceabe8
TT
130502020-01-14 Tom Tromey <tom@tromey.com>
13051
13052 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13053 USE_WIN32API when needed.
13054 * configure.ac (USE_WIN32API): Don't define.
13055 (WIN32LIBS): Use WIN32APILIBS.
13056 * configure: Rebuild.
13057
25c51f71
TT
130582020-01-14 Tom Tromey <tom@tromey.com>
13059
13060 * configure: Rebuild.
13061 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13062
717c684d
BE
130632020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13064
13065 * skip.c (skip_function_command): Make skip w/o arguments use the
13066 name of the inlined function if pc is inside any inlined function.
13067
7da6a5b9
LM
130682020-01-14 Luis Machado <luis.machado@linaro.org>
13069
13070 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13071 * infrun.c (resume_1): Likewise.
13072 (handle_inferior_event): Remove stale comment.
13073 * linux-nat.c (linux_nat_target::resume): Update comments.
13074 (save_stop_reason): Likewise.
13075 (linux_nat_filter_event): Likewise.
13076 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13077
44e4c775
AB
130782020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13079
13080 * elfread.c (record_minimal_symbol): Set section index to 0 for
13081 non-allocatable sections.
13082
18a8505e
AT
13083
130842020-01-13 Ali Tamur <tamur@google.com>
13085
13086 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13087 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13088 to gdb::optional. Update comments.
13089 (dwo_file): Update comments.
13090 (read_attribute): Update API to take an additional out parameter,
13091 need_reprocess. This is used to mark attributes that need other
13092 attributes (e.g. str_offsets_base) for correct computation which may not
13093 have been read yet.
13094 (read_attribute_reprocess): New function declaration.
13095 (read_addr_index): Likewise.
13096 (read_dwo_str_index): Likewise.
13097 (read_stub_str_index): Likewise.
13098 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13099 (lookup_addr_base): New function definition.
13100 (lookup_ranges_base): Likewise.
13101 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13102 lookup_ranges_base.
13103 (init_cutu_and_read_dies): Update comments.
13104 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13105 unit. This is used to inherit parent's str_offsets_base and addr_base.
13106 Update comments.
13107 (init_cutu_and_read_dies_simple): Reflect API changes.
13108 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13109 (create_cus_hash_table): Change API to take parent compile unit.
13110 Reflect API changes.
13111 (open_and_init_dwo_file): Reflect API changes.
13112 (dwarf2_get_pc_bounds): Update comments.
13113 (dwarf2_record_block_ranges): Likewise.
13114 (read_full_die_1): Change implementation to reprocess attributes that
13115 need str_offsets_base and addr_base.
13116 (partial_die_info::read): Likewise.
13117 (read_attribute_reprocess): New function definition.
13118 (read_attribute_value): Change API to take an additional out parameter,
13119 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13120 when a non-dwo compile unit has index based attributes.
13121 (read_attribute): Reflect API changes.
13122 (read_addr_index_1): Reflect API changes. Update comments.
13123 (dwarf2_read_addr_index_data): Reflect API changes.
13124 (dwarf2_read_addr_index): Likewise.
13125 (read_str_index): Change API and implementation. This becomes a helper
13126 to be used by the new string index related methods. Update error
13127 message and comments.
13128 (read_dwo_str_index): New function definition.
13129 (read_stub_str_index): Likewise.
13130 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13131 * symfile.h (dwarf2_debug_sections): Likewise.
13132 * xcoffread.c (dwarf2_debug_sections): Likewise.
13133
0cac9354
SM
131342020-01-13 Simon Marchi <simon.marchi@efficios.com>
13135
13136 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13137 core_reg_sect type to gdb_byte *.
13138 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13139 * cris-tdep.c (fetch_core_registers): Likewise.
13140 * corelow.c (core_target::get_core_register_section): Change
13141 type of `contents` to gdb::byte_vector.
13142
9a6d629c
AB
131432020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13144
13145 * tui/tui-wingeneral.c (box_win): Position the title in the center
13146 of the border.
13147
d8b2f9e3
SM
131482020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13149
13150 * corelow.c (core_target::get_core_register_section): Use
13151 std::vector instead of alloca.
13152
bb564c58
SM
131532020-01-13 Simon Marchi <simon.marchi@efficios.com>
13154
13155 * warning.m4: Add -Wmissing-declarations to build_warnings.
13156 * configure: Re-generate.
13157
6b366111
SM
131582020-01-13 Simon Marchi <simon.marchi@efficios.com>
13159
13160 * python/python.c (init__gdb_module): Add declaration.
13161
6c265988
SM
131622020-01-13 Simon Marchi <simon.marchi@efficios.com>
13163
13164 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13165 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13166 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13167 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13168 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13169 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13170 * ada-exp.y (_initialize_ada_exp): Add declaration.
13171 * ada-lang.c (_initialize_ada_language): Add declaration.
13172 * ada-tasks.c (_initialize_tasks): Add declaration.
13173 * agent.c (_initialize_agent): Add declaration.
13174 * aix-thread.c (_initialize_aix_thread): Add declaration.
13175 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13176 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13177 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13178 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13179 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13180 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13181 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13182 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13183 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13184 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13185 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13186 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13187 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13188 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13189 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13190 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13191 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13192 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13193 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13194 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13195 * annotate.c (_initialize_annotate): Add declaration.
13196 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13197 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13198 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13199 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13200 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13201 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13202 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13203 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13204 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13205 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13206 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13207 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13208 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13209 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13210 * auto-load.c (_initialize_auto_load): Add declaration.
13211 * auxv.c (_initialize_auxv): Add declaration.
13212 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13213 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13214 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13215 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13216 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13217 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13218 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13219 * breakpoint.c (_initialize_breakpoint): Add declaration.
13220 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13221 * btrace.c (_initialize_btrace): Add declaration.
13222 * charset.c (_initialize_charset): Add declaration.
13223 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13224 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13225 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13226 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13227 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13228 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13229 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13230 * coffread.c (_initialize_coffread): Add declaration.
13231 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13232 * compile/compile.c (_initialize_compile): Add declaration.
13233 * complaints.c (_initialize_complaints): Add declaration.
13234 * completer.c (_initialize_completer): Add declaration.
13235 * copying.c (_initialize_copying): Add declaration.
13236 * corefile.c (_initialize_core): Add declaration.
13237 * corelow.c (_initialize_corelow): Add declaration.
13238 * cp-abi.c (_initialize_cp_abi): Add declaration.
13239 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13240 * cp-support.c (_initialize_cp_support): Add declaration.
13241 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13242 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13243 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13244 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13245 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13246 * ctfread.c (_initialize_ctfread): Add declaration.
13247 * d-lang.c (_initialize_d_language): Add declaration.
13248 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13249 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13250 * dbxread.c (_initialize_dbxread): Add declaration.
13251 * dcache.c (_initialize_dcache): Add declaration.
13252 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13253 * disasm.c (_initialize_disasm): Add declaration.
13254 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13255 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13256 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13257 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13258 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13259 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13260 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13261 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13262 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13263 * elfread.c (_initialize_elfread): Add declaration.
13264 * exec.c (_initialize_exec): Add declaration.
13265 * extension.c (_initialize_extension): Add declaration.
13266 * f-lang.c (_initialize_f_language): Add declaration.
13267 * f-valprint.c (_initialize_f_valprint): Add declaration.
13268 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13269 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13270 * filesystem.c (_initialize_filesystem): Add declaration.
13271 * findcmd.c (_initialize_mem_search): Add declaration.
13272 * findvar.c (_initialize_findvar): Add declaration.
13273 * fork-child.c (_initialize_fork_child): Add declaration.
13274 * frame-base.c (_initialize_frame_base): Add declaration.
13275 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13276 * frame.c (_initialize_frame): Add declaration.
13277 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13278 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13279 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13280 * gcore.c (_initialize_gcore): Add declaration.
13281 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13282 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13283 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13284 * gdbarch.c (_initialize_gdbarch): Add declaration.
13285 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13286 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13287 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13288 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13289 * go-lang.c (_initialize_go_language): Add declaration.
13290 * go32-nat.c (_initialize_go32_nat): Add declaration.
13291 * guile/guile.c (_initialize_guile): Add declaration.
13292 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13293 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13294 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13295 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13296 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13297 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13298 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13299 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13300 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13301 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13302 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13303 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13304 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13305 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13306 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13307 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13308 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13309 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13310 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13311 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13312 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13313 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13314 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13315 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13316 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13317 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13318 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13319 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13320 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13321 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13322 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13323 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13324 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13325 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13326 * infcall.c (_initialize_infcall): Add declaration.
13327 * infcmd.c (_initialize_infcmd): Add declaration.
13328 * inflow.c (_initialize_inflow): Add declaration.
13329 * infrun.c (_initialize_infrun): Add declaration.
13330 * interps.c (_initialize_interpreter): Add declaration.
13331 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13332 * jit.c (_initialize_jit): Add declaration.
13333 * language.c (_initialize_language): Add declaration.
13334 * linux-fork.c (_initialize_linux_fork): Add declaration.
13335 * linux-nat.c (_initialize_linux_nat): Add declaration.
13336 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13337 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13338 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13339 * m2-lang.c (_initialize_m2_language): Add declaration.
13340 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13341 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13342 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13343 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13344 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13345 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13346 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13347 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13348 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13349 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13350 * machoread.c (_initialize_machoread): Add declaration.
13351 * macrocmd.c (_initialize_macrocmd): Add declaration.
13352 * macroscope.c (_initialize_macroscope): Add declaration.
13353 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13354 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13355 * maint.c (_initialize_maint_cmds): Add declaration.
13356 * mdebugread.c (_initialize_mdebugread): Add declaration.
13357 * memattr.c (_initialize_mem): Add declaration.
13358 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13359 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13360 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13361 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13362 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13363 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13364 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13365 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13366 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13367 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13368 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13369 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13370 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13371 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13372 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13373 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13374 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13375 * mipsread.c (_initialize_mipsread): Add declaration.
13376 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13377 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13378 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13379 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13380 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13381 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13382 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13383 * nto-procfs.c (_initialize_procfs): Add declaration.
13384 * objc-lang.c (_initialize_objc_language): Add declaration.
13385 * observable.c (_initialize_observer): Add declaration.
13386 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13387 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13388 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13389 * osabi.c (_initialize_gdb_osabi): Add declaration.
13390 * osdata.c (_initialize_osdata): Add declaration.
13391 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13392 * parse.c (_initialize_parse): Add declaration.
13393 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13394 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13395 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13396 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13397 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13398 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13399 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13400 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13401 * printcmd.c (_initialize_printcmd): Add declaration.
13402 * probe.c (_initialize_probe): Add declaration.
13403 * proc-api.c (_initialize_proc_api): Add declaration.
13404 * proc-events.c (_initialize_proc_events): Add declaration.
13405 * proc-service.c (_initialize_proc_service): Add declaration.
13406 * procfs.c (_initialize_procfs): Add declaration.
13407 * producer.c (_initialize_producer): Add declaration.
13408 * psymtab.c (_initialize_psymtab): Add declaration.
13409 * python/python.c (_initialize_python): Add declaration.
13410 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13411 * record-btrace.c (_initialize_record_btrace): Add declaration.
13412 * record-full.c (_initialize_record_full): Add declaration.
13413 * record.c (_initialize_record): Add declaration.
13414 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13415 * regcache.c (_initialize_regcache): Add declaration.
13416 * reggroups.c (_initialize_reggroup): Add declaration.
13417 * remote-notif.c (_initialize_notif): Add declaration.
13418 * remote-sim.c (_initialize_remote_sim): Add declaration.
13419 * remote.c (_initialize_remote): Add declaration.
13420 * reverse.c (_initialize_reverse): Add declaration.
13421 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13422 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13423 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13424 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13425 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13426 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13427 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13428 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13429 Add declaration.
13430 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13431 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13432 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13433 * rust-exp.y (_initialize_rust_exp): Add declaration.
13434 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13435 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13436 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13437 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13438 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13439 * score-tdep.c (_initialize_score_tdep): Add declaration.
13440 * ser-go32.c (_initialize_ser_dos): Add declaration.
13441 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13442 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13443 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13444 * ser-uds.c (_initialize_ser_socket): Add declaration.
13445 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13446 * serial.c (_initialize_serial): Add declaration.
13447 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13448 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13449 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13450 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13451 * skip.c (_initialize_step_skip): Add declaration.
13452 * sol-thread.c (_initialize_sol_thread): Add declaration.
13453 * solib-aix.c (_initialize_solib_aix): Add declaration.
13454 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13455 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13456 * solib-frv.c (_initialize_frv_solib): Add declaration.
13457 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13458 * solib-target.c (_initialize_solib_target): Add declaration.
13459 * solib.c (_initialize_solib): Add declaration.
13460 * source-cache.c (_initialize_source_cache): Add declaration.
13461 * source.c (_initialize_source): Add declaration.
13462 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13463 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13464 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13465 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13466 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13467 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13468 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13469 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13470 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13471 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13472 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13473 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13474 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13475 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13476 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13477 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13478 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13479 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13480 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13481 * stabsread.c (_initialize_stabsread): Add declaration.
13482 * stack.c (_initialize_stack): Add declaration.
13483 * stap-probe.c (_initialize_stap_probe): Add declaration.
13484 * std-regs.c (_initialize_frame_reg): Add declaration.
13485 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13486 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13487 * symfile.c (_initialize_symfile): Add declaration.
13488 * symmisc.c (_initialize_symmisc): Add declaration.
13489 * symtab.c (_initialize_symtab): Add declaration.
13490 * target.c (_initialize_target): Add declaration.
13491 * target-connection.c (_initialize_target_connection): Add
13492 declaration.
13493 * target-dcache.c (_initialize_target_dcache): Add declaration.
13494 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13495 * thread.c (_initialize_thread): Add declaration.
13496 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13497 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13498 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13499 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13500 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13501 * tracectf.c (_initialize_ctf): Add declaration.
13502 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13503 * tracefile.c (_initialize_tracefile): Add declaration.
13504 * tracepoint.c (_initialize_tracepoint): Add declaration.
13505 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13506 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13507 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13508 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13509 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13510 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13511 * tui/tui.c (_initialize_tui): Add declaration.
13512 * typeprint.c (_initialize_typeprint): Add declaration.
13513 * ui-style.c (_initialize_ui_style): Add declaration.
13514 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13515 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13516 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13517 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13518 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13519 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13520 * unittests/filtered_iterator-selftests.c
13521 (_initialize_filtered_iterator_selftests): Add declaration.
13522 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13523 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13524 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13525 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13526 * unittests/main-thread-selftests.c
13527 (_initialize_main_thread_selftests): Add declaration.
13528 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13529 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13530 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13531 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13532 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13533 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13534 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13535 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13536 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13537 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13538 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13539 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13540 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13541 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13542 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13543 declaration.
13544 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13545 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13546 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13547 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13548 * user-regs.c (_initialize_user_regs): Add declaration.
13549 * utils.c (_initialize_utils): Add declaration.
13550 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13551 * valops.c (_initialize_valops): Add declaration.
13552 * valprint.c (_initialize_valprint): Add declaration.
13553 * value.c (_initialize_values): Add declaration.
13554 * varobj.c (_initialize_varobj): Add declaration.
13555 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13556 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13557 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13558 * windows-nat.c (_initialize_windows_nat): Add declaration.
13559 (_initialize_check_for_gdb_ini): Add declaration.
13560 (_initialize_loadable): Add declaration.
13561 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13562 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13563 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13564 * xcoffread.c (_initialize_xcoffread): Add declaration.
13565 * xml-support.c (_initialize_xml_support): Add declaration.
13566 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13567 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13568 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13569 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13570
e2de1eec
SM
135712020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13572
13573 * regformats/regdat.sh: Generate declaration for init function.
13574
e0037b4c
SM
135752020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13576
13577 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13578 up.
13579 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13580 close_one_inferior>: New methods.
13581 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13582 pass down target to find_inferior_pid.
13583 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13584 Pass down target to find_inferior_ptid.
13585 (gdbsim_target::create_inferior): Pass down target to
13586 add_thread_silent.
13587 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13588 target down to find_inferior_ptid and switch_to_thread.
13589 (gdbsim_target::close): Update to call close_one_inferior.
13590 (struct resume_data): Remove.
13591 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13592 directly, rather than through a void pointer.
13593 (gdbsim_target::resume): Update to call resume_one_inferior.
13594
58920b5b
SM
135952020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13596
13597 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13598
4ec89149
PA
135992020-01-12 Pedro Alves <palves@redhat.com>
13600
13601 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13602 directly for the current inferior instead of
13603 discard_all_inferiors.
13604 (discard_all_inferiors): Delete.
13605
7c392d1d
TT
136062020-01-11 Tom Tromey <tom@tromey.com>
13607
13608 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13609 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13610 deprecated_safe_get_selected_frame.
13611
d9ebdab7
TBA
136122020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13613
13614 * inferior.c (print_inferior): Switch inferior before printing it.
13615
f3c469b9
PA
136162020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13617 Pedro Alves <palves@redhat.com>
13618
13619 * progspace-and-thread.c (switch_to_program_space_and_thread):
13620 Assert there's an inferior for PSPACE. Use
13621 switch_to_inferior_no_thread to switch the inferior too.
13622 * progspace.c (program_space::~program_space): Call
13623 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13624 (program_space::free_all_objfiles): Don't call clear_symtab_users
13625 here.
13626 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13627
65c574f6
PA
136282020-01-10 Pedro Alves <palves@redhat.com>
13629
13630 * NEWS: Mention multi-target debugging, "info connections", and
13631 "add-inferior -no-connection".
13632
2f4fcf00
PA
136332020-01-10 Pedro Alves <palves@redhat.com>
13634
13635 * infrun.c: Include "target-connection.h".
13636 (check_multi_target_resumption): New.
13637 (proceed): Call it.
13638 * target-connection.c (make_target_connection_string): Make
13639 extern.
13640 * target-connection.h (make_target_connection_string): Declare.
13641
121b3efd
PA
136422020-01-10 Pedro Alves <palves@redhat.com>
13643
13644 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13645 * inferior.c (uiout_field_connection): New function.
13646 (print_inferior): Add new "connection-id" column.
13647 (add_inferior_command): Show connection number/string of added
13648 inferior.
13649 * process-stratum-target.h
13650 (process_stratum_target::connection_string): New virtual method.
13651 (process_stratum_target::connection_number): New field.
13652 * remote.c (remote_target::connection_string): New override.
13653 * target-connection.c: New file.
13654 * target-connection.h: New file.
13655 * target.c (decref_target): Remove process_stratum targets from
13656 the connection list.
13657 (target_stack::push): Add process_stratum targets to the
13658 connection list.
13659
4f837581
PA
136602020-01-10 Pedro Alves <palves@redhat.com>
13661
13662 Revert:
13663 2016-04-12 Pedro Alves <palves@redhat.com>
13664 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13665 Remove references to name.
13666 * serial.h (struct serial) <name>: Delete.
13667
f4ec508e
PA
136682020-01-10 Pedro Alves <palves@redhat.com>
13669
13670 * gdbarch-selftests.c (register_to_value_test): Remove "target
13671 already pushed" check.
13672
5b6d1e4f
PA
136732020-01-10 Pedro Alves <palves@redhat.com>
13674 John Baldwin <jhb@FreeBSD.org>
13675
13676 * aarch64-linux-nat.c
13677 (aarch64_linux_nat_target::thread_architecture): Adjust.
13678 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13679 (task_command_1): Likewise.
13680 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13681 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13682 (aix_thread_target::store_registers)
13683 (aix_thread_target::thread_alive): Adjust.
13684 * amd64-fbsd-tdep.c: Include "inferior.h".
13685 (amd64fbsd_get_thread_local_address): Pass down target.
13686 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13687 thread's gdbarch instead of target_gdbarch.
13688 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13689 get_last_target_status.
13690 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13691 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13692 inferiors.
13693 (update_inserted_breakpoint_locations): Skip if inferiors with no
13694 execution.
13695 (update_global_location_list): When handling moribund locations,
13696 find representative inferior for location's pspace, and use thread
13697 count of its process_stratum target.
13698 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13699 * bsd-uthread.c (bsd_uthread_target::wait): Use
13700 as_process_stratum_target and adjust thread_change_ptid and
13701 add_thread calls.
13702 (bsd_uthread_target::update_thread_list): Use
13703 as_process_stratum_target and adjust find_thread_ptid,
13704 thread_change_ptid and add_thread calls.
13705 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13706 find_thread_ptid call.
13707 * corelow.c (add_to_thread_list): Adjust add_thread call.
13708 (core_target_open): Adjust add_thread_silent and thread_count
13709 calls.
13710 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13711 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13712 * event-top.c (async_disconnect): Pop targets from all inferiors.
13713 * exec.c (add_target_sections): Push exec target on all inferiors
13714 sharing the program space.
13715 (remove_target_sections): Remove the exec target from all
13716 inferiors sharing the program space.
13717 (exec_on_vfork): New.
13718 * exec.h (exec_on_vfork): Declare.
13719 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13720 Pass it down.
13721 (fbsd_nat_target::update_thread_list): Adjust.
13722 (fbsd_nat_target::resume): Adjust.
13723 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13724 down.
13725 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13726 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13727 get_thread_arch_regcache call.
13728 * fork-child.c (gdb_startup_inferior): Pass target down to
13729 startup_inferior and set_executing.
13730 * gdbthread.h (struct process_stratum_target): Forward declare.
13731 (add_thread, add_thread_silent, add_thread_with_info)
13732 (in_thread_list): Add process_stratum_target parameter.
13733 (find_thread_ptid(inferior*, ptid_t)): New overload.
13734 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13735 parameter.
13736 (all_threads()): Delete overload.
13737 (all_threads, all_non_exited_threads): Add process_stratum_target
13738 parameter.
13739 (all_threads_safe): Use brace initialization.
13740 (thread_count): Add process_stratum_target parameter.
13741 (set_resumed, set_running, set_stop_requested, set_executing)
13742 (threads_are_executing, finish_thread_state): Add
13743 process_stratum_target parameter.
13744 (switch_to_thread): Use is_current_thread.
13745 * i386-fbsd-tdep.c: Include "inferior.h".
13746 (i386fbsd_get_thread_local_address): Pass down target.
13747 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13748 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13749 have_inferiors check.
13750 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13751 (inf_ptrace_target::attach): Adjust.
13752 * infcall.c (run_inferior_call): Adjust.
13753 * infcmd.c (run_command_1): Pass target to
13754 scoped_finish_thread_state.
13755 (proceed_thread_callback): Skip inferiors with no execution.
13756 (continue_command): Rename 'all_threads' local to avoid hiding
13757 'all_threads' function. Adjust get_last_target_status call.
13758 (prepare_one_step): Adjust set_running call.
13759 (signal_command): Use user_visible_resume_target. Compare thread
13760 pointers instead of inferior_ptid.
13761 (info_program_command): Adjust to pass down target.
13762 (attach_command): Mark target's 'thread_executing' flag.
13763 (stop_current_target_threads_ns): New, factored out from ...
13764 (interrupt_target_1): ... this. Switch inferior before making
13765 target calls.
13766 * inferior-iter.h
13767 (struct all_inferiors_iterator, struct all_inferiors_range)
13768 (struct all_inferiors_safe_range)
13769 (struct all_non_exited_inferiors_range): Filter on
13770 process_stratum_target too. Remove explicit.
13771 * inferior.c (inferior::inferior): Push dummy target on target
13772 stack.
13773 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13774 Add process_stratum_target parameter, and pass it down.
13775 (have_live_inferiors): Adjust.
13776 (switch_to_inferior_and_push_target): New.
13777 (add_inferior_command, clone_inferior_command): Handle
13778 "-no-connection" parameter. Use
13779 switch_to_inferior_and_push_target.
13780 (_initialize_inferior): Mention "-no-connection" option in
13781 the help of "add-inferior" and "clone-inferior" commands.
13782 * inferior.h: Include "process-stratum-target.h".
13783 (interrupt_target_1): Use bool.
13784 (struct inferior) <push_target, unpush_target, target_is_pushed,
13785 find_target_beneath, top_target, process_target, target_at,
13786 m_stack>: New.
13787 (discard_all_inferiors): Delete.
13788 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13789 (all_inferiors, all_non_exited_inferiors): Add
13790 process_stratum_target parameter.
13791 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13792 (target_last_proc_target): New global.
13793 (follow_fork_inferior): Push target on new inferior. Pass target
13794 to add_thread_silent. Call exec_on_vfork. Handle target's
13795 reference count.
13796 (follow_fork): Adjust get_last_target_status call. Also consider
13797 target.
13798 (follow_exec): Push target on new inferior.
13799 (struct execution_control_state) <target>: New field.
13800 (user_visible_resume_target): New.
13801 (do_target_resume): Call target_async.
13802 (resume_1): Set target's threads_executing flag. Consider resume
13803 target.
13804 (commit_resume_all_targets): New.
13805 (proceed): Also consider resume target. Skip threads of inferiors
13806 with no execution. Commit resumtion in all targets.
13807 (start_remote): Pass current inferior to wait_for_inferior.
13808 (infrun_thread_stop_requested): Consider target as well. Pass
13809 thread_info pointer to clear_inline_frame_state instead of ptid.
13810 (infrun_thread_thread_exit): Consider target as well.
13811 (random_pending_event_thread): New inferior parameter. Use it.
13812 (do_target_wait): Rename to ...
13813 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13814 down.
13815 (threads_are_resumed_pending_p, do_target_wait): New.
13816 (prepare_for_detach): Adjust calls.
13817 (wait_for_inferior): New inferior parameter. Handle it. Use
13818 do_target_wait_1 instead of do_target_wait.
13819 (fetch_inferior_event): Adjust. Switch to representative
13820 inferior. Pass target down.
13821 (set_last_target_status): Add process_stratum_target parameter.
13822 Save target in global.
13823 (get_last_target_status): Add process_stratum_target parameter and
13824 handle it.
13825 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13826 (context_switch): Check inferior_ptid == null_ptid before calling
13827 inferior_thread().
13828 (get_inferior_stop_soon): Pass down target.
13829 (wait_one): Rename to ...
13830 (poll_one_curr_target): ... this.
13831 (struct wait_one_event): New.
13832 (wait_one): New.
13833 (stop_all_threads): Adjust.
13834 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13835 event's target.
13836 (switch_back_to_stepped_thread): Also consider target.
13837 (print_stop_event): Update.
13838 (normal_stop): Update. Also consider the resume target.
13839 * infrun.h (wait_for_inferior): Remove declaration.
13840 (user_visible_resume_target): New declaration.
13841 (get_last_target_status, set_last_target_status): New
13842 process_stratum_target parameter.
13843 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13844 process_stratum_target parameter, and use it.
13845 (clear_inline_frame_state (thread_info*)): New.
13846 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13847 process_stratum_target parameter.
13848 (clear_inline_frame_state (thread_info*)): Declare.
13849 * linux-fork.c (delete_checkpoint_command): Pass target down to
13850 find_thread_ptid.
13851 (checkpoint_command): Adjust.
13852 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13853 instead of just tweaking inferior_ptid.
13854 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13855 (exit_lwp): Pass target down to find_thread_ptid.
13856 (attach_proc_task_lwp_callback): Pass target down to
13857 add_thread/set_running/set_executing.
13858 (linux_nat_target::attach): Pass target down to
13859 thread_change_ptid.
13860 (get_detach_signal): Pass target down to find_thread_ptid.
13861 Consider last target status's target.
13862 (linux_resume_one_lwp_throw, resume_lwp)
13863 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13864 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13865 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13866 (linux_nat_target::async_wait_fd): New.
13867 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13868 target down.
13869 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13870 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13871 * linux-thread-db.c (struct thread_db_info::process_target): New
13872 field.
13873 (add_thread_db_info): Save target.
13874 (get_thread_db_info): New process_stratum_target parameter. Also
13875 match target.
13876 (delete_thread_db_info): New process_stratum_target parameter.
13877 Also match target.
13878 (thread_from_lwp): Adjust to pass down target.
13879 (thread_db_notice_clone): Pass down target.
13880 (check_thread_db_callback): Pass down target.
13881 (try_thread_db_load_1): Always push the thread_db target.
13882 (try_thread_db_load, record_thread): Pass target down.
13883 (thread_db_target::detach): Pass target down. Always unpush the
13884 thread_db target.
13885 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13886 target down. Always unpush the thread_db target.
13887 (find_new_threads_callback, thread_db_find_new_threads_2)
13888 (thread_db_target::update_thread_list): Pass target down.
13889 (thread_db_target::pid_to_str): Pass current inferior down.
13890 (thread_db_target::get_thread_local_address): Pass target down.
13891 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13892 target down.
13893 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13894 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13895 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13896 (procfs_init_inferior): Rename to ...
13897 (procfs_target::procfs_init_inferior): ... this and adjust.
13898 (procfs_target::create_inferior, procfs_notice_thread)
13899 (procfs_do_thread_registers): Adjust.
13900 * ppc-fbsd-tdep.c: Include "inferior.h".
13901 (ppcfbsd_get_thread_local_address): Pass down target.
13902 * proc-service.c (ps_xfer_memory): Switch current inferior and
13903 program space as well.
13904 (get_ps_regcache): Pass target down.
13905 * process-stratum-target.c
13906 (process_stratum_target::thread_address_space)
13907 (process_stratum_target::thread_architecture): Pass target down.
13908 * process-stratum-target.h
13909 (process_stratum_target::threads_executing): New field.
13910 (as_process_stratum_target): New.
13911 * ravenscar-thread.c
13912 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13913 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13914 down.
13915 * record-btrace.c (record_btrace_target::info_record): Adjust.
13916 (record_btrace_target::record_method)
13917 (record_btrace_target::record_is_replaying)
13918 (record_btrace_target::fetch_registers)
13919 (get_thread_current_frame_id, record_btrace_target::resume)
13920 (record_btrace_target::wait, record_btrace_target::stop): Pass
13921 target down.
13922 * record-full.c (record_full_wait_1): Switch to event thread.
13923 Pass target down.
13924 * regcache.c (regcache::regcache)
13925 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13926 process_stratum_target parameter and handle it.
13927 (current_thread_target): New global.
13928 (get_thread_regcache): Add process_stratum_target parameter and
13929 handle it. Switch inferior before calling target method.
13930 (get_thread_regcache): Pass target down.
13931 (get_thread_regcache_for_ptid): Pass target down.
13932 (registers_changed_ptid): Add process_stratum_target parameter and
13933 handle it.
13934 (registers_changed_thread, registers_changed): Pass target down.
13935 (test_get_thread_arch_aspace_regcache): New.
13936 (current_regcache_test): Define a couple local test_target_ops
13937 instances and use them for testing.
13938 (readwrite_regcache): Pass process_stratum_target parameter.
13939 (cooked_read_test, cooked_write_test): Pass mock_target down.
13940 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13941 (get_thread_arch_aspace_regcache): Add process_stratum_target
13942 parameter.
13943 (regcache::target): New method.
13944 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13945 (regcache::registers_changed_ptid): Add process_stratum_target
13946 parameter.
13947 (regcache::m_target): New field.
13948 (registers_changed_ptid): Add process_stratum_target parameter.
13949 * remote.c (remote_state::supports_vCont_probed): New field.
13950 (remote_target::async_wait_fd): New method.
13951 (remote_unpush_and_throw): Add remote_target parameter.
13952 (get_current_remote_target): Adjust.
13953 (remote_target::remote_add_inferior): Push target.
13954 (remote_target::remote_add_thread)
13955 (remote_target::remote_notice_new_inferior)
13956 (get_remote_thread_info): Pass target down.
13957 (remote_target::update_thread_list): Skip threads of inferiors
13958 bound to other targets. (remote_target::close): Don't discard
13959 inferiors. (remote_target::add_current_inferior_and_thread)
13960 (remote_target::process_initial_stop_replies)
13961 (remote_target::start_remote)
13962 (remote_target::remote_serial_quit_handler): Pass down target.
13963 (remote_target::remote_unpush_target): New remote_target
13964 parameter. Unpush the target from all inferiors.
13965 (remote_target::remote_unpush_and_throw): New remote_target
13966 parameter. Pass it down.
13967 (remote_target::open_1): Check whether the current inferior has
13968 execution instead of checking whether any inferior is live. Pass
13969 target down.
13970 (remote_target::remote_detach_1): Pass down target. Use
13971 remote_unpush_target.
13972 (extended_remote_target::attach): Pass down target.
13973 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13974 (remote_target::append_resumption): Pass down target.
13975 (remote_target::append_pending_thread_resumptions)
13976 (remote_target::remote_resume_with_hc, remote_target::resume)
13977 (remote_target::commit_resume): Pass down target.
13978 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13979 (remote_target::interrupt_query)
13980 (remote_target::remove_new_fork_children)
13981 (remote_target::check_pending_events_prevent_wildcard_vcont)
13982 (remote_target::remote_parse_stop_reply)
13983 (remote_target::process_stop_reply): Pass down target.
13984 (first_remote_resumed_thread): New remote_target parameter. Pass
13985 it down.
13986 (remote_target::wait_as): Pass down target.
13987 (unpush_and_perror): New remote_target parameter. Pass it down.
13988 (remote_target::readchar, remote_target::remote_serial_write)
13989 (remote_target::getpkt_or_notif_sane_1)
13990 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13991 down target.
13992 (remote_target::mourn_inferior): Pass down target. Use
13993 remote_unpush_target.
13994 (remote_target::core_of_thread)
13995 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13996 (remote_target::pid_to_exec_file)
13997 (remote_target::thread_handle_to_thread_info): Pass down target.
13998 (remote_target::async_wait_fd): New.
13999 * riscv-fbsd-tdep.c: Include "inferior.h".
14000 (riscv_fbsd_get_thread_local_address): Pass down target.
14001 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14002 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14003 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14004 Adjust.
14005 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14006 * solib-svr4.c (enable_break): Pass down target.
14007 * spu-multiarch.c (parse_spufs_run): Pass down target.
14008 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14009 * target-delegates.c: Regenerate.
14010 * target.c (g_target_stack): Delete.
14011 (current_top_target): Return the current inferior's top target.
14012 (target_has_execution_1): Refer to the passed-in inferior's top
14013 target.
14014 (target_supports_terminal_ours): Check whether the initial
14015 inferior was already created.
14016 (decref_target): New.
14017 (target_stack::push): Incref/decref the target.
14018 (push_target, push_target, unpush_target): Adjust.
14019 (target_stack::unpush): Defref target.
14020 (target_is_pushed): Return bool. Adjust to refer to the current
14021 inferior's target stack.
14022 (dispose_inferior): Delete, and inline parts ...
14023 (target_preopen): ... here. Only dispose of the current inferior.
14024 (target_detach): Hold strong target reference while detaching.
14025 Pass target down.
14026 (target_thread_name): Add assertion.
14027 (target_resume): Pass down target.
14028 (target_ops::beneath, find_target_at): Adjust to refer to the
14029 current inferior's target stack.
14030 (get_dummy_target): New.
14031 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14032 has a thread running.
14033 (initialize_targets): Rename to ...
14034 (_initialize_target): ... this.
14035 * target.h: Include "gdbsupport/refcounted-object.h".
14036 (struct target_ops): Inherit refcounted_object.
14037 (target_ops::shortname, target_ops::longname): Make const.
14038 (target_ops::async_wait_fd): New method.
14039 (decref_target): Declare.
14040 (struct target_ops_ref_policy): New.
14041 (target_ops_ref): New typedef.
14042 (get_dummy_target): Declare function.
14043 (target_is_pushed): Return bool.
14044 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14045 (all_matching_threads_iterator::all_matching_threads_iterator):
14046 Handle filter target.
14047 * thread-iter.h (struct all_matching_threads_iterator, struct
14048 all_matching_threads_range, class all_non_exited_threads_range):
14049 Filter by target too. Remove explicit.
14050 * thread.c (threads_executing): Delete.
14051 (inferior_thread): Pass down current inferior.
14052 (clear_thread_inferior_resources): Pass down thread pointer
14053 instead of ptid_t.
14054 (add_thread_silent, add_thread_with_info, add_thread): Add
14055 process_stratum_target parameter. Use it for thread and inferior
14056 searches.
14057 (is_current_thread): New.
14058 (thread_info::deletable): Use it.
14059 (find_thread_ptid, thread_count, in_thread_list)
14060 (thread_change_ptid, set_resumed, set_running): New
14061 process_stratum_target parameter. Pass it down.
14062 (set_executing): New process_stratum_target parameter. Pass it
14063 down. Adjust reference to 'threads_executing'.
14064 (threads_are_executing): New process_stratum_target parameter.
14065 Adjust reference to 'threads_executing'.
14066 (set_stop_requested, finish_thread_state): New
14067 process_stratum_target parameter. Pass it down.
14068 (switch_to_thread): Also match inferior.
14069 (switch_to_thread): New process_stratum_target parameter. Pass it
14070 down.
14071 (update_threads_executing): Reimplement.
14072 * top.c (quit_force): Pop targets from all inferior.
14073 (gdb_init): Don't call initialize_targets.
14074 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14075 Declare.
14076 (windows_add_thread, windows_delete_thread): Adjust.
14077 (get_windows_debug_event): Rename to ...
14078 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14079 * tracefile-tfile.c (tfile_target_open): Pass down target.
14080 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14081 Forward declare.
14082 (switch_to_thread): Add process_stratum_target parameter.
14083 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14084 parameter. Use it.
14085 (mi_on_resume): Pass target down.
14086 * nat/fork-inferior.c (startup_inferior): Add
14087 process_stratum_target parameter. Pass it down.
14088 * nat/fork-inferior.h (startup_inferior): Add
14089 process_stratum_target parameter.
14090 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14091
75c6c844
PA
140922020-01-10 Pedro Alves <palves@redhat.com>
14093
14094 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14095 directly. Instead find the first thread in the thread list and
14096 use switch_to_thread.
14097
78f2c40a
PA
140982020-01-10 Pedro Alves <palves@redhat.com>
14099
14100 * remote.c (remote_target::remote_add_inferior): Don't bind a
14101 process to the current inferior if the current inferior is already
14102 bound to a process.
14103
e7af6c70
TBA
141042020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14105 Pedro Alves <palves@redhat.com>
14106
14107 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14108 If no process is specified, return null_ptid instead of
14109 inferior_ptid.
14110 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14111 TARGET_WAITKIND_SIGNALLED with no pid.
14112
31ba933e
PA
141132020-01-10 Pedro Alves <palves@redhat.com>
14114
14115 * remote.c (first_remote_resumed_thread): New.
14116 (remote_target::wait_as): Use it as default event_ptid instead of
14117 inferior_ptid.
14118
735fc2ca
PA
141192020-01-10 Pedro Alves <palves@redhat.com>
14120
14121 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14122
c17e02e1
PA
141232020-01-10 Pedro Alves <palves@redhat.com>
14124
14125 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14126 not -1.
14127
ab1ddbcf
PA
141282020-01-10 Pedro Alves <palves@redhat.com>
14129
14130 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14131 ptid to get_last_target_status.
14132 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14133 ptid to get_last_target_status.
14134 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14135 get_last_target_status.
14136 (info_program_command): Don't pass a target_waitstatus to
14137 get_last_target_status.
14138 * infrun.c (init_wait_for_inferior): Use
14139 nullify_last_target_wait_ptid.
14140 (get_last_target_status): Handle nullptr arguments.
14141 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14142 (print_stop_event): Don't pass a ptid to get_last_target_status.
14143 (normal_stop): Don't pass a ptid to get_last_target_status.
14144 * infrun.h (get_last_target_status, set_last_target_status): Move
14145 comments here and update.
14146 (nullify_last_target_wait_ptid): Declare.
14147 * linux-fork.c (fork_load_infrun_state): Remove local extern
14148 declaration of nullify_last_target_wait_ptid.
14149 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14150 to get_last_target_status.
14151
f3f8ece4
PA
141522020-01-10 Pedro Alves <palves@redhat.com>
14153
14154 * gdbthread.h (scoped_restore_current_thread)
14155 <dont_restore, restore, m_dont_restore>: Declare.
14156 * thread.c (thread_alive): Add assertion. Return bool.
14157 (switch_to_thread_if_alive): New.
14158 (prune_threads): Switch inferior/thread.
14159 (print_thread_info_1): Switch thread before calling target methods.
14160 (scoped_restore_current_thread::restore): New, factored out from
14161 ...
14162 (scoped_restore_current_thread::~scoped_restore_current_thread):
14163 ... this.
14164 (scoped_restore_current_thread::scoped_restore_current_thread):
14165 Add assertion.
14166 (thread_apply_all_command, thread_select): Use
14167 switch_to_thread_if_alive.
14168 * infrun.c (proceed, restart_threads, handle_signal_stop)
14169 (switch_back_to_stepped_thread): Switch current thread before
14170 calling target methods.
14171
db2d40f7
PA
141722020-01-10 Pedro Alves <palves@redhat.com>
14173
14174 * inferior.c (switch_to_inferior_no_thread): New function,
14175 factored out from ...
14176 (inferior_command): ... here.
14177 * inferior.h (switch_to_inferior_no_thread): Declare.
14178 * mi/mi-main.c (run_one_inferior): Use
14179 switch_to_inferior_no_thread.
14180
bd420a2d
PA
141812020-01-10 Pedro Alves <palves@redhat.com>
14182
14183 * infcmd.c (kill_command): Remove dead code.
14184
ddf5db90
PA
141852020-01-10 Pedro Alves <palves@redhat.com>
14186
14187 * remote.c (remote_target::mourn_inferior): No longer check
14188 whether the target is running.
14189
5018ce90
PA
141902020-01-10 Pedro Alves <palves@redhat.com>
14191
14192 * corelow.c (core_target::has_execution): Change parameter type to
14193 inferior pointer.
14194 * inferior.c (number_of_live_inferiors): Use
14195 inferior::has_execution instead of target_has_execution_1.
14196 * inferior.h (inferior::has_execution): New.
14197 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14198 inferior::has_execution instead of target_has_execution_1.
14199 * process-stratum-target.c
14200 (process_stratum_target::has_execution): Change parameter type to
14201 inferior pointer. Check the inferior's PID instead of
14202 inferior_ptid.
14203 * process-stratum-target.h
14204 (process_stratum_target::has_execution): Change parameter type to
14205 inferior pointer.
14206 * record-full.c (record_full_core_target::has_execution): Change
14207 parameter type to inferior pointer.
14208 * target.c (target_has_execution_1): Change parameter type to
14209 inferior pointer.
14210 (target_has_execution_current): Adjust.
14211 * target.h (target_ops::has_execution): Change parameter type to
14212 inferior pointer.
14213 (target_has_execution_1): Change parameter type to inferior
14214 pointer. Change return type to bool.
14215 * tracefile.h (tracefile_target::has_execution): Change parameter
14216 type to inferior pointer.
14217
74375d18
PA
142182020-01-10 Pedro Alves <palves@redhat.com>
14219
14220 * exceptions.c (print_flush): Remove current_top_target() check.
14221
acdf84a6
PA
142222020-01-10 Pedro Alves <palves@redhat.com>
14223
14224 * remote.c (show_remote_exec_file): Show the current inferior's
14225 exec-file instead of the command variable's value.
14226
ec506636
PA
142272020-01-10 Pedro Alves <palves@redhat.com>
14228
14229 * record-full.c (record_full_resume_ptid): New global.
14230 (record_full_target::resume): Set it.
14231 (record_full_wait_1): Use record_full_resume_ptid instead of
14232 inferior_ptid.
14233
873657b9
PA
142342020-01-10 Pedro Alves <palves@redhat.com>
14235
14236 * gdbthread.h (scoped_restore_current_thread)
14237 <dont_restore, restore, m_dont_restore>: Declare.
14238 * thread.c (thread_alive): Add assertion. Return bool.
14239 (switch_to_thread_if_alive): New.
14240 (prune_threads): Switch inferior/thread.
14241 (print_thread_info_1): Switch thread before calling target methods.
14242 (scoped_restore_current_thread::restore): New, factored out from
14243 ...
14244 (scoped_restore_current_thread::~scoped_restore_current_thread):
14245 ... this.
14246 (scoped_restore_current_thread::scoped_restore_current_thread):
14247 Add assertion.
14248 (thread_apply_all_command, thread_select): Use
14249 switch_to_thread_if_alive.
14250
7f0ae84c
GB
142512020-01-10 George Barrett <bob@bob131.so>
14252
14253 * stap-probe.c (stap_modify_semaphore): Don't check for null
14254 semaphores.
14255 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14256 for null semaphores.
14257
f5a7c406
AB
142582020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14259
14260 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14261 all source windows, and maintain horizontal scroll status while
14262 doing so.
14263
9ae6bf64
TT
142642020-01-09 Tom Tromey <tom@tromey.com>
14265
14266 PR tui/18932:
14267 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14268 update_source_window, not print_source_lines.
14269
b2efe70c
AB
142702020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14271
14272 * tui/tui.c (tui_enable): Register tui hooks after calling
14273 tui_display_main.
14274
5f23a082
CB
142752020-01-09 Christian Biesinger <cbiesinger@google.com>
14276
14277 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14278
3061113b
SM
142792020-01-08 Simon Marchi <simon.marchi@efficios.com>
14280
14281 * thread.c (print_thread_info_1): Fix indentation.
14282
57d75002
CB
142832020-01-09 Christian Biesinger <cbiesinger@google.com>
14284
14285 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14286 unique_xmalloc_ptr outside the if to always free the demangled name.
14287
6a053cb1
TT
142882020-01-08 Tom Tromey <tromey@adacore.com>
14289
14290 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14291 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14292 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14293 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14294 Remove.
14295 (section_offsets): New typedef.
14296 * symtab.c (fixup_section, get_msymbol_address): Update.
14297 * symmisc.c (dump_msymbols): Update.
14298 * symfile.h (relative_addr_info_to_section_offsets)
14299 (symfile_map_offsets_to_segments): Update.
14300 * symfile.c (build_section_addr_info_from_objfile)
14301 (init_objfile_sect_indices): Update.
14302 (struct place_section_arg): Change type of "offsets".
14303 (place_section): Update.
14304 (relative_addr_info_to_section_offsets): Change type of
14305 "section_offsets". Remove "num_sections" parameter.
14306 (default_symfile_offsets, syms_from_objfile_1)
14307 (set_objfile_default_section_offset): Update.
14308 (reread_symbols): No need to preserve section offsets by hand.
14309 (symfile_map_offsets_to_segments): Change type of "offsets".
14310 * stap-probe.c (relocate_address): Update.
14311 * stabsread.h (process_one_symbol): Update.
14312 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14313 (solib_target_relocate_section_addresses): Update.
14314 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14315 Update.
14316 * solib-frv.c (frv_relocate_main_executable): Update.
14317 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14318 * solib-aix.c (solib_aix_get_section_offsets): Change return
14319 type.
14320 (solib_aix_solib_create_inferior_hook): Update.
14321 * remote.c (remote_target::get_offsets): Update.
14322 * psymtab.c (find_pc_sect_psymtab): Update.
14323 * psympriv.h (struct partial_symbol) <address, text_low,
14324 text_high>: Update.
14325 * objfiles.h (obj_section_offset): Update.
14326 (struct objfile) <section_offsets>: Change type.
14327 <num_sections>: Remove.
14328 (objfile_relocate): Update.
14329 * objfiles.c (entry_point_address_query): Update
14330 (relocate_one_symbol): Change type of "section_offsets".
14331 (objfile_relocate1, objfile_relocate1): Change type of
14332 "new_offsets".
14333 (objfile_rebase1): Update.
14334 * mipsread.c (mipscoff_symfile_read): Update.
14335 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14336 parameter.
14337 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14338 (parse_external, psymtab_to_symtab_1): Update.
14339 * machoread.c (macho_symfile_offsets): Update.
14340 * ia64-tdep.c (ia64_find_unwind_table): Update.
14341 * hppa-tdep.c (read_unwind_info): Update.
14342 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14343 * dwarf2read.c (create_addrmap_from_index)
14344 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14345 (process_psymtab_comp_unit_reader, add_partial_symbol)
14346 (add_partial_subprogram, process_full_comp_unit)
14347 (read_file_scope, read_func_scope, read_lexical_block_scope)
14348 (read_call_site_scope, dwarf2_rnglists_process)
14349 (dwarf2_ranges_process, dwarf2_ranges_read)
14350 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14351 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14352 Update.
14353 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14354 Update.
14355 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14356 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14357 (process_one_symbol): Change type of "section_offsets".
14358 * ctfread.c (get_objfile_text_range): Update.
14359 * coffread.c (coff_symtab_read, enter_linenos)
14360 (process_coff_symbol): Update.
14361 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14362 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14363
456e800a
TT
143642020-01-08 Tom Tromey <tromey@adacore.com>
14365
14366 * dwarf2read.c (parse_macro_definition): Use std::string.
14367 (parse_macro_definition): Likewise.
14368
6dfa2fc2
TT
143692020-01-08 Tom Tromey <tromey@adacore.com>
14370
14371 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14372 (ATTR_ALLOC_CHUNK): Remove.
14373
421d1616
TT
143742020-01-08 Tom Tromey <tromey@adacore.com>
14375
14376 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14377
43816ebc
TT
143782020-01-08 Tom Tromey <tromey@adacore.com>
14379
14380 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14381 (dwarf2_compute_name, open_dwo_file): Likewise.
14382 (process_enumeration_scope): Use std::vector.
14383 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14384 (partial_die_info::fixup, dwarf2_start_subfile)
14385 (guess_full_die_structure_name, dwarf2_name): Likewise.
14386 (determine_prefix): Update.
14387 (guess_full_die_structure_name): Make return type const.
14388 (partial_die_full_name): Return unique_xmalloc_ptr.
14389 (DW_FIELD_ALLOC_CHUNK): Remove.
14390
4212d509
TT
143912020-01-07 Tom Tromey <tromey@adacore.com>
14392
14393 PR build/24937:
14394 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14395
06a6207a
JT
143962020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14397
14398 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14399
153d79c4
AB
144002020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14401
14402 * stack.c (print_frame_info): Move disassemble_next_line code
14403 inside source_print block.
14404
66182876
EZ
144052020-01-06 Eli Zaretskii <eliz@gnu.org>
14406
14407 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14408 gdb/signals.h, as we are now using native signal symbols.
14409
cbfa8581
SV
144102020-01-06 Shahab Vahedi <shahab@synopsys.com>
14411
14412 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14413 overflow by an early check of content vs threshold.
aac66a4c 14414 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14415 Likewise.
14416
3f602821
EZ
144172020-01-06 Eli Zaretskii <eliz@gnu.org>
14418
14419 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14420
a08c904d
JT
144212020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14422
14423 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14424 export table if no section contains it's RVA.
14425
89a65580
EZ
144262020-01-06 Eli Zaretskii <eliz@gnu.org>
14427
14428 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14429
8b7fcda2
HD
144302020-01-06 Hannes Domani <ssbssa@yahoo.de>
14431
14432 * source.c (print_source_lines_base): Set last_line_listed.
14433
a61b4f69
SV
144342020-01-06 Shahab Vahedi <shahab@synopsys.com>
14435
14436 * tui/tui-disasm.c: Remove trailing spaces.
14437
559e7e50
EZ
144382020-01-06 Eli Zaretskii <eliz@gnu.org>
14439 Pedro Alves <palves@redhat.com>
14440
14441 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14442 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14443 (windows_gdb_signal_to_target): New function, uses the above
14444 enumeration to convert GDB internal signal codes to equivalent
14445 Windows codes.
14446 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14447 * windows-nat.c: Include "gdb_wait.h".
14448 (get_windows_debug_event): Extract the fatal exception from the
14449 exit status and convert to the equivalent Posix signal number.
14450 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14451 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14452 * gdbsupport/gdb_wait.c: New file, implements
14453 windows_status_to_termsig.
14454 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14455 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14456
f2302a34
AB
144572020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14458
14459 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14460 show_layout.
14461
6a5206eb
LM
144622020-01-05 Luis Machado <luis.machado@linaro.org>
14463
14464 * aarch64-linux-nat.c
14465 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14466 and bfd_mach_aarch64.
14467
6ec1d75e
PW
144682020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14469
14470 * ui-file.c (stdio_file::can_emit_style_escape)
14471 (tee_file::can_emit_style_escape): Ensure style is used also on
14472 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14473 to gdb_stdout.
14474 * main.c (set_gdb_data_directory): Use file style to output the
14475 warning that the given pathname is not a directory.
14476 * top.c (show_history_filename, gdb_safe_append_history)
14477 (show_gdb_datadir): Use file style.
14478
44f81a76
HD
144792020-01-03 Hannes Domani <ssbssa@yahoo.de>
14480
14481 * solib-target.c (struct lm_info_target):
14482 Change offsets to be a unique_xmalloc_ptr.
14483 (solib_target_relocate_section_addresses): Update.
14484
25057eb0
HD
144852020-01-03 Hannes Domani <ssbssa@yahoo.de>
14486
14487 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14488
6e2118f5
BE
144892020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14490
14491 * MAINTAINERS (Write After Approval): Add myself.
14492
8133c7dc
LM
144932020-01-02 Luis Machado <luis.machado@linaro.org>
14494
14495 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14496 Cell BE architecture.
14497 * target.h (struct target_ops) <thread_architecture>: Likewise.
14498
48189bec
HD
144992020-01-01 Hannes Domani <ssbssa@yahoo.de>
14500
14501 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14502
ead1063b
HD
145032020-01-01 Hannes Domani <ssbssa@yahoo.de>
14504
14505 * MAINTAINERS (Write After Approval): Add myself.
14506
e5d78223
JB
145072020-01-01 Joel Brobecker <brobecker@adacore.com>
14508
14509 * gdbarch.sh: Update copyright year range of generated files.
14510
b811d2c2
JB
145112020-01-01 Joel Brobecker <brobecker@adacore.com>
14512
14513 Update copyright year range in all GDB files.
14514
5f4def5c
JB
145152020-01-01 Joel Brobecker <brobecker@adacore.com>
14516
14517 * copyright.py: Convert to Python 3.
14518
51fd4002
JB
145192020-01-01 Joel Brobecker <brobecker@adacore.com>
14520
14521 * copyright.py: Adapt after move of gnulib directory from gdb
14522 directory to toplevel directory.
14523
5fb651f2
JB
145242020-01-01 Joel Brobecker <brobecker@adacore.com>
14525
14526 * copyright.py (main): Exit if run from the wrong directory.
14527
5dd8bf88
JB
145282020-01-01 Joel Brobecker <brobecker@adacore.com>
14529
14530 * top.c (print_gdb_version): Change copyright year to 2020.
14531
9f71dacb 145322020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14533
9f71dacb 14534 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14535
9f71dacb 14536For older changes see ChangeLog-2019.
c906108c
SS
14537\f
14538Local Variables:
14539mode: change-log
14540left-margin: 8
14541fill-column: 74
14542version-control: never
57da7796 14543coding: utf-8
c906108c 14544End: