]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix regression in variant part handling
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cae21f8e
TT
12020-09-30 Tom Tromey <tromey@adacore.com>
2
3 * dwarf2/read.c (handle_variant): Use constant_value.
4
529908cb
TT
52020-09-29 Tom Tromey <tom@tromey.com>
6
7 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
8 (read_file_scope, dwarf2_get_pc_bounds)
9 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
10 (read_structure_type, handle_struct_member_die)
11 (read_enumeration_type, read_array_type, read_set_type)
12 (read_tag_pointer_type, read_tag_reference_type)
13 (read_subroutine_type, read_base_type, read_subrange_type)
14 (read_full_die_1, partial_die_info::read)
15 (partial_die_info::read, by, new_symbol)
16 (dwarf2_const_value_data, dwarf2_const_value_attr)
17 (dump_die_shallow, dwarf2_fetch_constant_bytes)
18 (prepare_one_comp_unit): Update.
19 * dwarf2/attribute.h (DW_UNSND): Remove.
20
c45bc3f8
TT
212020-09-29 Tom Tromey <tom@tromey.com>
22
23 * dwarf2/read.c (read_func_scope, prototyped_function_p)
24 (read_subroutine_type, partial_die_info::read)
25 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
26 (dwarf2_add_member_fn): Update.
27 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
28 * dwarf2/attribute.c (attribute::as_boolean): New method.
29
23dca5c3
TT
302020-09-29 Tom Tromey <tom@tromey.com>
31
32 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
33 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
34 method.
35 * dwarf2/attribute.c (attribute::as_virtuality): New method.
36
52c14d11
TT
372020-09-29 Tom Tromey <tom@tromey.com>
38
39 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
40 the attribute's form.
41
e8e5c158
TT
422020-09-29 Tom Tromey <tom@tromey.com>
43
44 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
45 (dwarf2_add_member_fn): Update.
46 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
47 * dwarf2/attribute.c (attribute::defaulted): New method, from
48 is_valid_DW_AT_defaulted.
49
d4df075e
TT
502020-09-29 Tom Tromey <tom@tromey.com>
51
52 * dwarf2/read.c (dw2_get_file_names_reader)
53 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
54 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
55 (dwarf2_symbol_mark_computed): Use as_unsigned.
56 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
57 method.
58 <form_is_section_offset>: Update comment.
59
bf23a268
TT
602020-09-29 Tom Tromey <tom@tromey.com>
61
62 * dwarf2/read.c (dwarf2_access_attribute): Rename from
63 dwarf2_default_access_attribute. Look up attribute.
64 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
65 Update.
66
7a5f294d
TT
672020-09-29 Tom Tromey <tom@tromey.com>
68
69 * dwarf2/read.c (skip_one_die): Update.
70 (read_full_die_1): Change how reprocessing is done.
71 (partial_die_info::read): Update.
72 (read_attribute_value): Remove need_reprocess parameter.
73 (read_attribute): Likewise.
74 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
75 New method.
76
36d378cf
TT
772020-09-29 Tom Tromey <tom@tromey.com>
78
79 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
80 (dwarf2_const_value_attr, dump_die_shallow)
81 (dwarf2_fetch_constant_bytes): Update.
82 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
83 comment.
84 <set_address>: New method.
85 (DW_ADDR): Remove.
86 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
87 (attribute::as_string, attribute::as_address): Add assert.
88
fe56917a
TT
892020-09-29 Tom Tromey <tom@tromey.com>
90
91 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
92 (read_attribute_reprocess, read_attribute_value): Update.
93 (read_attribute): Clear requires_reprocessing.
94 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
95 form_requires_reprocessing>: New methods.
96 <string_init>: Clear requires_reprocessing.
97 <set_unsigned_reprocess>: New method.
98 <name>: Shrink by one bit.
99 <requires_reprocessing>: New member.
100 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
101 method.
102
414ad644
TT
1032020-09-29 Tom Tromey <tom@tromey.com>
104
105 * dwarf2/read.c (read_attribute_value): Update.
106 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
107 set_unsigned>: New methods.
108 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
109
1bc397c5
TT
1102020-09-29 Tom Tromey <tom@tromey.com>
111
112 * dwarf2/read.c (get_alignment, read_array_order)
113 (read_attribute_value, dwarf2_const_value_attr)
114 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
115 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
116 New methods.
117 (DW_SND): Remove.
118
630ed6b9
TT
1192020-09-29 Tom Tromey <tom@tromey.com>
120
121 * dwarf2/read.c (read_attribute_value, lookup_die_type)
122 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
123 Update.
124 * dwarf2/attribute.h (struct attribute) <as_signature,
125 set_signature>: New methods.
126 (DW_SIGNATURE): Remove.
127
9d2246fc
TT
1282020-09-29 Tom Tromey <tom@tromey.com>
129
130 * dwarf2/read.c (read_call_site_scope)
131 (handle_data_member_location, dwarf2_add_member_fn)
132 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
133 (partial_die_info::read, read_attribute_value)
134 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
135 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
136 (dwarf2_symbol_mark_computed): Update.
137 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
138 methods.
139 (DW_BLOCK): Remove.
140 * dwarf2/attribute.c (attribute::form_is_block): Add
141 DW_FORM_data16.
142
c6481205
TT
1432020-09-29 Tom Tromey <tom@tromey.com>
144
145 * dwarf2/read.c (read_cutu_die_from_dwo)
146 (read_attribute_reprocess, read_attribute_value, read_attribute)
147 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
148 (dwarf2_fetch_constant_bytes): Update.
149 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
150 <set_string_noncanonical, set_string_canonical>: New methods.
151 <string_is_canonical>: Update comment.
152 <canonical_string_p>: Add assert.
153 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
154 * dwarf2/attribute.c (attribute::form_is_string): New method.
155 (attribute::string): Use it.
156
3b64bf15
TT
1572020-09-29 Tom Tromey <tom@tromey.com>
158
159 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
160 (dump_die_shallow): Use canonical_string_p.
161 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
162 method.
163
2c830f54
TT
1642020-09-29 Tom Tromey <tom@tromey.com>
165
166 * dwarf2/read.c (partial_die_info::read)
167 (dwarf2_const_value_attr, anonymous_struct_prefix, )
168 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
169 attribute::as_string.
170
6c412691
TT
1712020-09-29 Tom Tromey <tom@tromey.com>
172
173 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
174 DW_ADDR.
175 (attribute::string): Don't use DW_STRING.
176 (attribute::get_ref_die_offset): Don't use DW_UNSND.
177 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
178
95f982e5
TT
1792020-09-29 Tom Tromey <tom@tromey.com>
180
181 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
182 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
183 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
184 * dwarf2/attribute.h (struct attribute): Rename methods.
185 * dwarf2/attribute.c (attribute::as_address): Rename from
186 value_as_address.
187 (attribute::as_string): Rename from value_as_string.
188
f800b00e
TT
1892020-09-29 Tom Tromey <tom@tromey.com>
190
191 * dwarf2/read.c (partial_die_info::read) <case
192 DW_AT_linkage_name>: Use value_as_string.
193 (dwarf2_string_attr): Use value_as_string.
194 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
195 method.
196 * dwarf2/attribute.c (attribute::value_as_string): New method.
197
de38d64a
PA
1982020-09-29 Pedro Alves <pedro@palves.net>
199
200 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
201 defined before using '#pragma GCC diagnostic' instead of checking
202 __clang__.
203
9aed480c
TT
2042020-09-28 Tom Tromey <tom@tromey.com>
205
206 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
207 (handle_signal_stop): Update.
208 * procfs.c (procfs_target::insert_watchpoint): Update.
209 * target.h (target_have_steppable_watchpoint): Now a function.
210
8a3ecb79
TT
2112020-09-28 Tom Tromey <tom@tromey.com>
212
213 * infrun.c (set_schedlock_func): Update.
214 * target.h (target_can_lock_scheduler): Now a function.
215
55f6301a
TT
2162020-09-28 Tom Tromey <tom@tromey.com>
217
218 * inferior.h (class inferior) <has_execution>: Update.
219 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
220 * valops.c (find_function_in_inferior)
221 (value_allocate_space_in_inferior): Update.
222 * top.c (kill_or_detach): Update.
223 * target.c (target_preopen, set_target_permissions): Update.
224 (target_has_execution_current): Remove.
225 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
226 Update.
227 * solib.c (update_solib_list, reload_shared_libraries): Update.
228 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
229 * solib-dsbt.c (enable_break): Update.
230 * score-tdep.c (score7_fetch_inst): Update.
231 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
232 Update.
233 * remote.c (remote_target::start_remote)
234 (remote_target::remote_check_symbols, remote_target::open_1)
235 (remote_target::remote_detach_1, remote_target::verify_memory)
236 (remote_target::xfer_partial, remote_target::read_description)
237 (remote_target::get_min_fast_tracepoint_insn_len): Update.
238 * record-full.c (record_full_open_1): Update.
239 * record-btrace.c (record_btrace_target_open): Update.
240 * objc-lang.c (lookup_objc_class, lookup_child_selector)
241 (value_nsstring): Update.
242 * linux-thread-db.c (add_thread_db_info)
243 (thread_db_find_new_threads_silently, check_thread_db_callback)
244 (try_thread_db_load_1, record_thread): Update.
245 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
246 Update.
247 * linux-fork.c (checkpoint_command): Update.
248 * infrun.c (set_non_stop, set_observer_mode)
249 (check_multi_target_resumption, for_each_just_stopped_thread)
250 (maybe_remove_breakpoints, normal_stop)
251 (class infcall_suspend_state): Update.
252 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
253 (info_program_command, attach_command): Update.
254 * infcall.c (call_function_by_hand_dummy): Update.
255 * inf-loop.c (inferior_event_handler): Update.
256 * gcore.c (gcore_command, derive_heap_segment): Update.
257 * exec.c (exec_file_command): Update.
258 * eval.c (evaluate_subexp): Update.
259 * compile/compile.c (compile_to_object): Update.
260 * cli/cli-dump.c (restore_command): Update.
261 * breakpoint.c (update_watchpoint)
262 (update_inserted_breakpoint_locations)
263 (insert_breakpoint_locations, get_bpstat_thread): Update.
264 * target.h (target_has_execution): Remove macro.
265 (target_has_execution_current): Don't declare.
266 (target_has_execution): Rename from target_has_execution_1. Add
267 argument default.
268
05374cfd
TT
2692020-09-28 Tom Tromey <tom@tromey.com>
270
271 * mi/mi-main.c (exec_reverse_continue)
272 (mi_cmd_list_target_features): Update.
273 * infrun.c (set_exec_direction_func): Update.
274 * target.c (default_execution_direction): Update.
275 * reverse.c (exec_reverse_once): Update.
276 * target.h (target_can_execute_reverse): Now a function.
277
9dccd06e
TT
2782020-09-28 Tom Tromey <tom@tromey.com>
279
280 * tui/tui-regs.c (tui_get_register)
281 (tui_data_window::show_registers): Update.
282 * thread.c (scoped_restore_current_thread::restore)
283 (scoped_restore_current_thread::scoped_restore_current_thread):
284 Update.
285 * regcache-dump.c (regcache_print): Update.
286 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
287 Update.
288 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
289 * mep-tdep.c (current_me_module, current_options): Update.
290 * linux-thread-db.c (thread_db_load): Update.
291 * infcmd.c (registers_info, info_vector_command)
292 (info_float_command): Update.
293 * ia64-tdep.c (ia64_frame_prev_register)
294 (ia64_sigtramp_frame_prev_register): Update.
295 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
296 * gcore.c (derive_stack_segment): Update.
297 * frame.c (get_current_frame, has_stack_frames): Update.
298 * findvar.c (language_defn::read_var_value): Update.
299 * arm-tdep.c (arm_pc_is_thumb): Update.
300 * target.c (target_has_registers): Rename from
301 target_has_registers_1.
302 * target.h (target_has_registers): Remove macro.
303 (target_has_registers): Rename from target_has_registers_1.
304
841de120
TT
3052020-09-28 Tom Tromey <tom@tromey.com>
306
307 * windows-tdep.c (tlb_make_value): Update.
308 * tui/tui-regs.c (tui_data_window::show_registers): Update.
309 * thread.c (scoped_restore_current_thread::restore)
310 (scoped_restore_current_thread::scoped_restore_current_thread)
311 (thread_command): Update.
312 * stack.c (backtrace_command_1, frame_apply_level_command)
313 (frame_apply_all_command, frame_apply_command): Update.
314 * infrun.c (siginfo_make_value, restore_infcall_control_state):
315 Update.
316 * gcore.c (derive_stack_segment): Update.
317 * frame.c (get_current_frame, has_stack_frames): Update.
318 * auxv.c (info_auxv_command): Update.
319 * ada-tasks.c (ada_build_task_list): Update.
320 * target.c (target_has_stack): Rename from target_has_stack_1.
321 * target.h (target_has_stack): Remove macro.
322 (target_has_stack): Rename from target_has_stack_1.
323
a739972c
TT
3242020-09-28 Tom Tromey <tom@tromey.com>
325
326 * target.c (target_has_memory): Rename from target_has_memory_1.
327 * tui/tui-regs.c (tui_data_window::show_registers): Update.
328 * thread.c (scoped_restore_current_thread::restore)
329 (scoped_restore_current_thread::scoped_restore_current_thread):
330 Update.
331 * frame.c (get_current_frame, has_stack_frames): Update.
332 * target.h (target_has_memory): Remove macro.
333 (target_has_memory): Rename from target_has_memory_1.
334
5b8a4776
TT
3352020-09-28 Tom Tromey <tom@tromey.com>
336
337 * target.c (target_has_all_memory_1): Remove.
338 * target.h (target_has_all_memory): Remove define.
339 (target_has_all_memory_1): Don't declare.
340
bd356ec6
SM
3412020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
342
343 * ser-base.c: Adjust comments formatting.
344
2c72d5e5
TT
3452020-09-27 Tom Tromey <tom@tromey.com>
346
347 PR tui/25342:
348 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
349
35a98237
TT
3502020-09-27 Tom Tromey <tom@tromey.com>
351
352 PR tui/25342:
353 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
354
9e820dec
TT
3552020-09-27 Tom Tromey <tom@tromey.com>
356
357 * unittests/tui-selftests.c: Update.
358 * tui/tui-winsource.h (struct tui_source_window_base)
359 <extra_margin, show_line_number, refresh_pad>: New methods.
360 <m_max_length, m_pad>: New members.
361 (tui_copy_source_line): Update.
362 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
363 first_col, line_width, ndigits parameters. Add length.
364 (tui_source_window_base::show_source_line): Write to pad. Line
365 number now 0-based.
366 (tui_source_window_base::refresh_pad): New method.
367 (tui_source_window_base::show_source_content): Write to pad. Call
368 refresh_pad.
369 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
370 not refill.
371 (tui_source_window_base::update_exec_info): Call
372 show_line_number.
373 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
374 method.
375 <m_digits>: New member.
376 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
377 and m_max_length.
378 (tui_source_window::show_line_number): New method.
379 * tui/tui-io.h (tui_puts): Fix comment.
380 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
381 m_max_length.
382
c15c15c8
TT
3832020-09-27 Tom Tromey <tom@tromey.com>
384
385 * tui/tui-winsource.c
386 (tui_source_window_base::set_is_exec_point_at): Don't call
387 show_source_line.
388
149830c1
TT
3892020-09-27 Tom Tromey <tom@tromey.com>
390
391 * python/py-tui.c (class tui_py_window) <refresh_window>: New
392 method.
393 <erase>: Update.
394 <cursor_x, cursor_y>: Remove.
395 <m_inner_window>: New member.
396 (tui_py_window::rerender): Create inner window.
397 (tui_py_window::output): Write to inner window.
398
8f9929bb
GR
3992020-09-26 Gareth Rees <grees@undo.io> (tiny change)
400
401 PR python/26586
402 * cli/cli-script.c (execute_control_commands): don't set
403 instream to nullptr here as this breaks the from_tty argument
404 to gdb.execute in Python.
405 (execute_user_command): set instream to nullptr here instead.
406
956bdb59
SM
4072020-09-25 Simon Marchi <simon.marchi@efficios.com>
408
409 * infrun.h (infrun_debug_printf): Fix formatting.
410 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
411
3b93626b
SJ
4122020-09-25 Saagar Jha <saagar@saagarjha.com>
413
414 * compile/compile-object-load.h (struct munmap_list): Add
415 explicitly-defined move constructor.
416
b551a89f
TT
4172020-09-24 Tom Tromey <tromey@adacore.com>
418
419 PR tui/26638:
420 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
421 method.
422 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
423 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
424 (tui_prev_win): Rewrite.
425
99bb393f
HD
4262020-09-23 Hannes Domani <ssbssa@yahoo.de>
427
428 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
429 in WOW64 processes as SIGINT.
430 * nat/windows-nat.h: Make wow64_process a shared variable.
431 * windows-nat.c: Remove static wow64_process variable.
432
20a5fcbd
TT
4332020-09-23 Tom Tromey <tom@tromey.com>
434
435 PR symtab/25470:
436 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
437 offset and bit size.
438 * printcmd.c (print_scalar_formatted): Handle zero-length
439 integer.
440 (print_scalar_formatted): Use bit_size_differs_p.
441 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
442 constant.
443 (union type_specific): <int_stuff>: New member.
444 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
445 methods.
446 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
447 TYPE_SPECIFIC_FIELD.
448 (recursive_dump_type, copy_type_recursive): Update.
449 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
450 DW_AT_data_bit_offset.
451
bac51ab7
TT
4522020-09-23 Tom Tromey <tom@tromey.com>
453
454 * utils.h (class gdb_argv): Add move operators.
455 <append>: New methods.
456 * compile/compile.c (build_argc_argv): Remove.
457 (compile_args_argc): Remove.
458 (compile_args_argv): Change type.
459 (set_compile_args): Simplify.
460 (append_args): Remove.
461 (filter_args): Remove argcp parameter.
462 (get_args): Return gdb_argv. Simplify.
463 (compile_to_object): Update.
464
92677124
TT
4652020-09-23 Tom Tromey <tom@tromey.com>
466
467 * compile/compile-object-run.c (do_module_cleanup)
468 <~do_module_cleanup> :Remove.
469 (do_module_cleanup): Update.
470 * compile/compile-object-load.h (struct munmap_list): Add move
471 assignment operator.
472 <source_file>: Now a std::string.
473 <munmap_list>: Rename. No longer a pointer.
474 * compile/compile-object-load.c (struct setup_sections_data): Add
475 constructor.
476 <setup_one_section>: Declare.
477 <munmap_list>: Move earlier.
478 <m_bfd>: New member.
479 <m_last_size, m_last_section_first, m_last_prot,
480 m_last_max_alignment>: Rename, add initializers where needed.
481 (setup_sections_data::setup_one_section): Rename from
482 setup_sections. Update.
483 (compile_object_load): Update. Don't use bfd_map_over_sections.
484
e616f60a
TT
4852020-09-23 Tom Tromey <tom@tromey.com>
486
487 * compile/compile-object-run.c (struct do_module_cleanup): Add
488 parameters to constructor. Update destructor.
489 <source_file, scope, scope_data, out_value_type, out_value_addr,
490 munmap_list_head, objfile_name_string>: Remove.
491 <module>: New member.
492 (do_module_cleanup): Update.
493 (compile_object_run): Update.
494
e947a848
TT
4952020-09-23 Tom Tromey <tom@tromey.com>
496
497 * compile/compile.c (eval_compile_command): Update.
498 * compile/compile-object-run.h (compile_object_run): Take a
499 compile_module_up.
500 * compile/compile-object-run.c (compile_object_run): Take a
501 compile_module_up.
502 * compile/compile-object-load.h (struct compile_module): Add
503 constructor, destructor.
504 (compile_module_up): New typedef.
505 (compile_object_load): Return compile_object_up.
506 * compile/compile-object-load.c (compile_object_load): Return
507 compile_module_up.
508
0dbf6ee6
TT
5092020-09-23 Tom Tromey <tom@tromey.com>
510
511 * compile/compile-object-run.c (struct do_module_cleanup): Add
512 constructor, destructor.
513 <objfile_name_string>: Don't use struct hack.
514 (do_module_cleanup): Use delete.
515 (compile_object_run): Use new.
516
ebe824f5
TT
5172020-09-23 Tom Tromey <tom@tromey.com>
518
519 * compile/compile-cplus-types.c
520 (compile_cplus_convert_struct_or_union): Use std::vector.
521 (compile_cplus_convert_func): Likewise.
522 * compile/compile-c-types.c (convert_func): Use std::vector.
523
5dd918d9
TT
5242020-09-21 Tom Tromey <tromey@adacore.com>
525
526 * sparc-tdep.c (sparc32_skip_prologue): Use
527 skip_prologue_using_sal.
528
5486c517
TT
5292020-09-19 Tom Tromey <tom@tromey.com>
530
531 * symfile.c (add_section_size_callback): Remove.
532 (load_one_section): Rename from load_section_callback. Change
533 parameters.
534 (generic_load): Use foreach.
535
8a6bb1d1
TT
5362020-09-19 Tom Tromey <tom@tromey.com>
537
538 * exec.c (add_to_section_table): Remove.
539 (build_section_table): Use foreach.
540
08f93a1a
TT
5412020-09-19 Tom Tromey <tom@tromey.com>
542
543 * elfread.c (elf_locate_sections): Change parameters.
544 (elf_symfile_read): Use foreach.
545
03cd72b8
TT
5462020-09-19 Tom Tromey <tom@tromey.com>
547
548 * cli/cli-dump.c (struct callback_data): Remove.
549 (restore_one_section): Rename from restore_section_callback.
550 Change parameters.
551 (restore_binary_file): Change parameters.
552 (restore_command): Use foreach.
553
f4f2b85f
TT
5542020-09-19 Tom Tromey <tom@tromey.com>
555
556 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
557 (gcore_copy_callback): Likewise.
558 (gcore_memory_sections): Use foreach.
559
b35c1d1c
TT
5602020-09-19 Tom Tromey <tom@tromey.com>
561
562 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
563 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
564 parameters.
565 (generic_elf_osabi_sniffer): Use foreach.
566 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
567 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
568
5bb6e9dd
TT
5692020-09-19 Tom Tromey <tom@tromey.com>
570
571 * dwarf2/read.c (locate_dwz_sections): Change parameters.
572 (dwarf2_get_dwz_file): Use foreach.
573 (dwarf2_locate_dwo_sections): Change parameters.
574 (open_and_init_dwo_file): Use foreach.
575 (dwarf2_locate_common_dwp_sections): Change parameters.
576 (open_and_init_dwp_file): Use foreach.
577
ad7277da
TT
5782020-09-19 Tom Tromey <tom@tromey.com>
579
580 * symfile.h: (find_lowest_section): Don't declare.
581 * symfile.c (find_lowest_section): Now static. Change
582 parameters.
583 (struct place_section_arg): Remove.
584 (place_section): Change parameters.
585 (addr_info_make_relative): Use foreach.
586 (symfile_dummy_outputs): Remove.
587 (default_symfile_relocate): Use foreach.
588
cb814f2e
TT
5892020-09-19 Tom Tromey <tom@tromey.com>
590
591 * objfiles.c (add_to_objfile_sections): Rename from
592 add_to_objfile_sections_full.
593 (add_to_objfile_sections): Remove.
594 (build_objfile_section_table): Use foreach.
595
3cabfd26
TT
5962020-09-19 Tom Tromey <tom@tromey.com>
597
598 * stap-probe.c (get_stap_base_address_1): Remove.
599 (get_stap_base_address): Use foreach.
600
1ce51eb5
TT
6012020-09-19 Tom Tromey <tom@tromey.com>
602
603 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
604 parameters.
605 (gdb_bfd_close_or_warn): Use foreach.
606
a190fabb
TT
6072020-09-19 Tom Tromey <tom@tromey.com>
608
609 * corelow.c (add_to_thread_list): Change parameters.
610 (core_target_open): Use foreach.
611
cafb0d81
TT
6122020-09-19 Tom Tromey <tom@tromey.com>
613
614 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
615 existing function.
616
c8d5abea
AB
6172020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
618
619 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
620 for arrays.
621
6d816919
AB
6222020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
623
624 * eval.c: Remove 'f-lang.h' include.
625 (value_f90_subarray): Moved to f-lang.c.
626 (eval_call): Renamed to...
627 (evaluate_subexp_do_call): ...this, is no longer static, header
628 comment moved into header file.
629 (evaluate_funcall): Update call to eval_call.
630 (skip_undetermined_arglist): Moved to f-lang.c.
631 (fortran_value_subarray): Likewise.
632 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
633 moved to evaluate_subexp_f.
634 (calc_f77_array_dims): Moved to f-lang.c
635 * expprint.c (print_subexp_funcall): New function.
636 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
637 moved to print_subexp_f, OP_FUNCALL uses new function.
638 (dump_subexp_body_funcall): New function.
639 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
640 moved to dump_subexp_f, OP_FUNCALL uses new function.
641 * expression.h (evaluate_subexp_do_call): Declare.
642 * f-lang.c (value_f90_subarray): Moved from eval.c.
643 (skip_undetermined_arglist): Likewise.
644 (calc_f77_array_dims): Likewise.
645 (fortran_value_subarray): Likewise.
646 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
647 (operator_length_f): Likewise.
648 (print_subexp_f): Likewise.
649 (dump_subexp_body_f): Likewise.
650 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
651 declaration of this operation to here.
652 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
653 support moved to operator_length_f.
654 * parser-defs.h (dump_subexp_body_funcall): Declare.
655 (print_subexp_funcall): Declare.
656 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
657 fortran-operator.def.
658
8c37706a
AB
6592020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
660
661 * eval.c (fortran_value_subarray): New function, content is taken
662 from...
663 (evaluate_subexp_standard): ...here, in two places. Now arrays
664 and strings both call the new function.
665 (calc_f77_array_dims): Add header comment, handle strings.
666
14f9473c
VC
6672020-09-18 Victor Collod <vcollod@nvidia.com>
668
669 PR gdb/26635
670 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
671 (i386_analyze_prologue): Call i386_skip_endbr.
672
b60cea74
TT
6732020-09-18 Tom Tromey <tromey@adacore.com>
674
675 * windows-nat.c (struct windows_nat_target) <wait>: Update.
676 (windows_nat_target::wait): Update.
677 * target/wait.h (enum target_wait_flag): New. Use
678 DEF_ENUM_FLAGS_TYPE.
679 * target/target.h (target_wait): Change type of options.
680 * target.h (target_options_to_string, default_target_wait):
681 Update.
682 (struct target_ops) <wait>: Change type of options.
683 * target.c (target_wait, default_target_wait, do_option): Change
684 type of "options".
685 (target_options_to_string): Likewise.
686 * target-delegates.c: Rebuild.
687 * target-debug.h (target_debug_print_target_wait_flags): Rename
688 from target_debug_print_options.
689 * sol-thread.c (class sol_thread_target) <wait>: Update.
690 (sol_thread_target::wait): Update.
691 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
692 (rs6000_nat_target::wait): Update.
693 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
694 Update.
695 (remote_target::wait_ns, remote_target::wait_as): Change type of
696 "options".
697 (remote_target::wait): Update.
698 * remote-sim.c (struct gdbsim_target) <wait>: Update.
699 (gdbsim_target::wait): Update.
700 * record-full.c (class record_full_base_target) <wait>: Update.
701 (record_full_wait_1): Change type of "options".
702 (record_full_base_target::wait): Update.
703 * record-btrace.c (class record_btrace_target) <wait>: Update.
704 (record_btrace_target::wait): Update.
705 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
706 Update.
707 (ravenscar_thread_target::wait): Update.
708 * procfs.c (class procfs_target) <wait>: Update.
709 (procfs_target::wait): Update.
710 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
711 * obsd-nat.c (obsd_nat_target::wait): Update.
712 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
713 (nto_procfs_target::wait): Update.
714 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
715 * nbsd-nat.c (nbsd_wait): Change type of "options".
716 (nbsd_nat_target::wait): Update.
717 * linux-thread-db.c (class thread_db_target) <wait>: Update.
718 (thread_db_target::wait): Update.
719 * linux-nat.h (class linux_nat_target) <wait>: Update.
720 * linux-nat.c (linux_nat_target::wait): Update.
721 (linux_nat_wait_1): Update.
722 * infrun.c (do_target_wait_1, do_target_wait): Change type of
723 "options".
724 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
725 * inf-ptrace.c (inf_ptrace_target::wait): Update.
726 * go32-nat.c (struct go32_nat_target) <wait>: Update.
727 (go32_nat_target::wait): Update.
728 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
729 * gnu-nat.c (gnu_nat_target::wait): Update.
730 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
731 * fbsd-nat.c (fbsd_nat_target::wait): Update.
732 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
733 * darwin-nat.c (darwin_nat_target::wait): Update.
734 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
735 (bsd_uthread_target::wait): Update.
736 * aix-thread.c (class aix_thread_target) <wait>: Update.
737 (aix_thread_target::wait): Update.
738
0295dde6
AB
7392020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
740
741 * compile/compile-object-run.c (create_copied_type_recursive): New
742 function.
743 (compile_object_run): Use new function.
744
d3483b43
JT
7452020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
746
747 * NEWS: Mention x86_64 Cygwin core file support.
748
e7d612ad
JT
7492020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
750
751 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
752 (core_process_module_section): Handle NOTE_INFO_MODULE64.
753
aff9d387
JT
7542020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
755
62a5151b
JT
756 * windows-tdep.h: Add prototypes.
757 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
758 (i386_windows_core_pid_to_str): Move and rename ...
759 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
760 (windows_core_pid_to_str): ... and here.
761 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
762
7632020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
764 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
765 (amd64_windows_init_abi_common): ... and register.
766
7d155da3
JT
7672020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
768
769 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
770 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
771
e8ef12b9
PA
7722020-09-18 Pedro Alves <pedro@palves.net>
773
774 PR gdb/26631
775 * thread.c (thread_find_command): Switch inferior before calling
776 target methods.
777
c1e1314d
TT
7782020-09-17 Tom Tromey <tromey@adacore.com>
779
780 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
781 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
782 (tdesc_arch_data_up): New typedef.
783 (tdesc_use_registers, tdesc_data_alloc): Update.
784 (tdesc_data_cleanup): Don't declare.
785 * target-descriptions.c (tdesc_data_alloc): Return a
786 tdesc_arch_data_up.
787 (tdesc_arch_data_deleter::operator()): Rename from
788 tdesc_data_cleanup. Change argument type.
789 (tdesc_use_registers): Change early_data to an rvalue reference.
790 (tdesc_use_registers): Don't use delete.
791 * sparc-tdep.c (sparc32_gdbarch_init): Update.
792 * s390-tdep.c (s390_gdbarch_init): Update.
793 * rx-tdep.c (rx_gdbarch_init): Update.
794 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
795 * riscv-tdep.c (riscv_gdbarch_init): Update.
796 * or1k-tdep.c (or1k_gdbarch_init): Update.
797 * nios2-tdep.c (nios2_gdbarch_init): Update.
798 * nds32-tdep.c (nds32_gdbarch_init): Update.
799 * mips-tdep.c (mips_gdbarch_init): Update.
800 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
801 * m68k-tdep.c (m68k_gdbarch_init): Update.
802 * i386-tdep.c (i386_gdbarch_init): Update.
803 * arm-tdep.c (arm_gdbarch_init): Update.
804 * arc-tdep.c (arc_tdesc_init): Update.
805 (arc_gdbarch_init): Update.
806 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
807
0363df3d
HD
8082020-09-17 Hannes Domani <ssbssa@yahoo.de>
809
810 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
811 for WOW64 processes.
812
280a9412
TT
8132020-09-17 Tom Tromey <tom@tromey.com>
814
815 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
816
6108fd18
TT
8172020-09-17 Tom Tromey <tom@tromey.com>
818
819 * value.c (preserve_values): Update.
820 * python/py-type.c (save_objfile_types): Update.
821 * guile/scm-type.c (save_objfile_types): Update.
822 * gdbtypes.h (create_copied_types_hash): Return htab_up.
823 * gdbtypes.c (create_copied_types_hash): Return htab_up.
824 * compile/compile-object-run.c (compile_object_run): Update.
825
fa9b1164
TT
8262020-09-17 Tom Tromey <tom@tromey.com>
827
828 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
829 Remove.
830 <m_table>: Now htab_up.
831 * typeprint.c (typedef_hash_table::recursively_update)
832 (typedef_hash_table::add_template_parameters)
833 (typedef_hash_table::typedef_hash_table): Update.
834 (typedef_hash_table::~typedef_hash_table): Remove.
835 (typedef_hash_table::typedef_hash_table)
836 (typedef_hash_table::find_global_typedef)
837 (typedef_hash_table::find_typedef): Update.
838
eb53f105
TT
8392020-09-17 Tom Tromey <tom@tromey.com>
840
841 * target-descriptions.c (tdesc_use_registers): Use htab_up.
842
7a8a5d47
TT
8432020-09-17 Tom Tromey <tom@tromey.com>
844
845 * linespec.c (class decode_compound_collector)
846 <~decode_compound_collector>: Remove.
847 <m_unique_syms>: Now htab_up.
848 (decode_compound_collector::operator ()): Update.
849 (class symtab_collector) <~symtab_collector>: Remove.
850 <m_symtab_table>: Now htab_up.
851 (symtab_collector::operator ()): Update.
852
99032cfc
TT
8532020-09-17 Tom Tromey <tom@tromey.com>
854
855 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
856 (filename_seen_cache::clear): Update.
857 (~filename_seen_cache): Remove.
858 (filename_seen_cache::seen): Update.
859 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
860 htab_up.
861 <~filename_seen_cache>: Remove.
862 <traverse>: Update.
863
32580f6d
TT
8642020-09-17 Tom Tromey <tom@tromey.com>
865
866 * completer.c (completion_tracker::discard_completions)
867 (completion_tracker::~completion_tracker)
868 (completion_tracker::maybe_add_completion)
869 (completion_tracker::remove_completion)
870 (completion_tracker::recompute_lowest_common_denominator)
871 (completion_tracker::build_completion_result): Update.
872 * completer.h (class completion_tracker) <have_completions>:
873 Update.
874 <m_entries_hash>: Now htab_up.
875
c1fb9836
TT
8762020-09-17 Tom Tromey <tom@tromey.com>
877
878 * breakpoint.c (ambiguous_names_p): Use htab_up.
879
88f07206
TT
8802020-09-17 Tom Tromey <tom@tromey.com>
881
882 * auto-load.c (struct auto_load_pspace_info)
883 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
884 <loaded_script_files, loaded_script_texts>: Change type to
885 htab_up.
886 (~auto_load_pspace_info) Remove.
887 (init_loaded_scripts_info, maybe_add_script_file)
888 (maybe_add_script_text, auto_load_info_scripts): Update.
889
9519b2ee
TT
8902020-09-17 Tom Tromey <tromey@adacore.com>
891
892 * c-exp.y (name_obstack): Now static.
893
d2cd4113
CC
8942020-09-17 Chungyi Chi <demonic@csie.io>
895
896 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
897
b650a282
SM
8982020-09-16 Simon Marchi <simon.marchi@efficios.com>
899
900 * breakpoint.h (init_catchpoint): Change int parameter to bool.
901 (add_solib_catchpoint): Likewise.
902 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
903 to bool.
904 (add_solib_catchpoint): Change int parameter/variable to bool.
905 (catch_load_or_unload): Likewise.
906 (init_catchpoint): Likewise.
907 (create_fork_vfork_event_catchpoint): Likewise.
908 (catch_fork_command_1): Likewise.
909 (catch_exec_command_1): Likewise.
910
4d0bcfcf
SM
9112020-09-16 Simon Marchi <simon.marchi@efficios.com>
912
913 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
914 Change instance_flags to m_instance_flags.
915
fe830662
TT
9162020-09-16 Tom Tromey <tromey@adacore.com>
917
918 PR gdb/26598:
919 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
920
fe5ddfc3
JB
9212020-09-16 John Baldwin <jhb@FreeBSD.org>
922
923 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
924 PL_FLAG_EXEC.
925 (fbsd_nat_target::insert_exec_catchpoint)
926 (fbsd_nat_target::remove_exec_catchpoint): Always define.
927 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
928 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
929
e911c666
JB
9302020-09-16 John Baldwin <jhb@FreeBSD.org>
931
932 * configure.ac: Remove check for kinfo_getvmmap().
933 * configure, config.in: Regenerate.
934 * fbsd-nat.c (fbsd_read_mapping): Remove
935 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
936 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
937 kinfo_get_vmmap() are always present.
938
1f17d372
JB
9392020-09-16 John Baldwin <jhb@FreeBSD.org>
940
941 * fbsd-nat.c: Always include support for
942 TARGET_OBJECT_SIGNAL_INFO.
943
bcb1da7f
JB
9442020-09-16 John Baldwin <jhb@FreeBSD.org>
945
946 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
947 sysctl and remove procfs fallback.
948
5515f729
JB
9492020-09-16 John Baldwin <jhb@FreeBSD.org>
950
951 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
952 * fbsd-nat.h: Likewise.
953
da1df1db
TBA
9542020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
955
956 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
957 argument.
958
0e25e767
AB
9592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
960
961 * ada-lang.c (ada_language_data): Delete.
962 (ada_language): Remove references to ada_language_data.
963 * c-lang.c (c_language_data): Delete.
964 (c_language): Remove references to c_language_data.
965 (cplus_language_data): Delete.
966 (cplus_language): Remove references to cplus_language_data.
967 (asm_language_data): Delete.
968 (asm_language): Remove references to asm_language_data.
969 (minimal_language_data): Delete.
970 (minimal_language): Remove references to minimal_language_data.
971 * d-lang.c (d_language_data): Delete.
972 (d_language): Remove references to d_language_data.
973 * f-lang.c (f_language_data): Delete.
974 (f_language): Remove references to f_language_data.
975 * go-lang.c (go_language_data): Delete.
976 (go_language): Remove references to go_language_data.
977 * language.c (unknown_language_data): Delete.
978 (unknown_language): Remove references to unknown_language_data.
979 (auto_language_data): Delete.
980 (auto_language): Remove references to auto_language_data.
981 * language.h (language_data): Delete struct.
982 (language_defn): No longer inherit from language_data.
983 * m2-lang.c (m2_language_data): Delete.
984 (m2_language): Remove references to m2_language_data.
985 * objc-lang.c (objc_language_data): Delete.
986 (objc_language): Remove references to objc_language_data.
987 * opencl-lang.c (opencl_language_data): Delete.
988 (opencl_language): Remove references to opencl_language_data.
989 * p-lang.c (pascal_language_data): Delete.
990 (pascal_language): Remove references to pascal_language_data.
991 * rust-lang.c (rust_language_data): Delete.
992 (rust_language): Remove references to rust_language_data.
993
b7c6e27d
AB
9942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
995
996 * ada-lang.c (ada_language_data): Remove la_op_print_tab
997 initializer.
998 (ada_language::opcode_print_table): New member function.
999 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1000 (c_language::opcode_print_table): New member function.
1001 (cplus_language_data): Remove la_op_print_tab initializer.
1002 (cplus_language::opcode_print_table): New member function.
1003 (asm_language_data): Remove la_op_print_tab initializer.
1004 (asm_language::opcode_print_table): New member function.
1005 (minimal_language_data): Remove la_op_print_tab initializer.
1006 (minimal_language::opcode_print_table): New member function.
1007 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1008 (d_language::opcode_print_table): New member function.
1009 * expprint.c (print_subexp_standard): Update call to
1010 opcode_print_table.
1011 (op_string): Likewise.
1012 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1013 (f_language::opcode_print_table): New member function.
1014 * go-lang.c (go_language_data): Remove la_op_print_tab
1015 initializer.
1016 (go_language::opcode_print_table): New member function.
1017 * language.c (unknown_language_data): Remove la_op_print_tab
1018 initializer.
1019 (unknown_language::opcode_print_table): New member function.
1020 (auto_language_data): Remove la_op_print_tab initializer.
1021 (auto_language::opcode_print_table): New member function.
1022 * language.h (language_data): Remove la_op_print_tab field.
1023 (language_defn::opcode_print_table): Declare new member function.
1024 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1025 initializer.
1026 (m2_language::opcode_print_table): New member function.
1027 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1028 initializer.
1029 (objc_language::opcode_print_table): New member function.
1030 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1031 initializer.
1032 (opencl_language::opcode_print_table): New member function.
1033 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1034 initializer.
1035 (pascal_language::opcode_print_table): New member function.
1036 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1037 initializer.
1038 (rust_language::opcode_print_table): New member function.
1039
5aba6ebe
AB
10402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1041
1042 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1043 (ada_language::expression_ops): New member function.
1044 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1045 (c_language::expression_ops): New member function.
1046 (cplus_language_data): Remove la_exp_desc initializer.
1047 (cplus_language::expression_ops): New member function.
1048 (asm_language_data): Remove la_exp_desc initializer.
1049 (asm_language::expression_ops): New member function.
1050 (minimal_language_data): Remove la_exp_desc initializer.
1051 (minimal_language::expression_ops): New member function.
1052 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1053 (d_language::expression_ops): New member function.
1054 * eval.c (evaluate_subexp): Update call to expression_ops.
1055 * expprint.c (print_subexp): Likewise.
1056 (op_name): Likewise.
1057 (dump_subexp_body): Likewise.
1058 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1059 (f_language::expression_ops): New member function.
1060 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1061 (go_language::expression_ops): New member function.
1062 * language.c (language_defn::expression_ops): New function.
1063 (unknown_language_data): Remove la_exp_desc initializer.
1064 (auto_language_data): Likewise.
1065 * language.h (language_data): Remove la_exp_desc field.
1066 (language_defn::expression_ops): Declare new member function.
1067 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1068 (m2_language::expression_ops): New member function.
1069 * objc-lang.c (objc_language_data): Remove la_exp_desc
1070 initializer.
1071 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1072 initializer.
1073 (opencl_language::expression_ops): New member function.
1074 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1075 * parse.c (operator_length): Update call to expression_ops.
1076 (exp_iterate): Likewise.
1077 * rust-lang.c (rust_language_data): Remove la_exp_desc
1078 initializer.
1079 (ruse_language::expression_ops): New member function.
1080
b63a3f3f
AB
10812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1082
1083 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1084 initializer.
1085 (ada_language::varobj_ops): New member function.
1086 * c-lang.c (c_language_data): Remove la_varobj_ops
1087 initializer.
1088 (cplus_language_data): Likewise.
1089 (cplus_language::varobj_ops): New member function.
1090 (asm_language_data): Remove la_varobj_ops initializer.
1091 (minimal_language_data): Likewise.
1092 * d-lang.c (d_language_data): Likewise.
1093 * f-lang.c (f_language_data): Likewise.
1094 * go-lang.c (go_language_data): Likewise.
1095 * language.c (language_defn::varobj_ops): New function.
1096 (unknown_language_data): Remove la_varobj_ops
1097 initializer.
1098 (auto_language_data): Likewise.
1099 * language.h (language_data): Remove la_varobj_ops field.
1100 (language_defn::varobj_ops): Declare new member function.
1101 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1102 * objc-lang.c (objc_language_data): Likewise.
1103 * opencl-lang.c (opencl_language_data): Likewise.
1104 * p-lang.c (pascal_language_data): Likewise.
1105 * rust-lang.c (rust_language_data): Likewise.
1106 * varobj.c (varobj_create): Update call to varobj_ops.
1107 * varobj.h (default_varobj_ops): Delete define.
1108
1ac14a04
AB
11092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1110
1111 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1112 initializer.
1113 * c-lang.c (c_language_data): Likewise.
1114 (c_language::macro_expansion): New member function.
1115 (cplus_language_data): Likewise.
1116 (cplus_language::macro_expansion): New member function.
1117 (asm_language_data): Likewise.
1118 (asm_language::macro_expansion): New member function.
1119 (minimal_language_data): Likewise.
1120 (minimal_language::macro_expansion): New member function.
1121 * d-lang.c (d_language_data): Remove la_macro_expansion
1122 initializer.
1123 * f-lang.c (f_language_data): Likewise.
1124 * go-lang.c (go_language_data): Likewise.
1125 * language.c (unknown_language_data): Likewise.
1126 (auto_language_data): Likewise.
1127 * language.h (language_data): Remove la_macro_expansion field.
1128 (language_defn::macro_expansion): New member function.
1129 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1130 initializer.
1131 * objc-lang.c (objc_language_data): Likewise.
1132 (objc_language::macro_expansion): New member function.
1133 * opencl-lang.c (opencl_language_data): Likewise.
1134 (opencl_language::macro_expansion): New member function.
1135 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1136 initializer.
1137 * rust-lang.c (rust_language_data): Likewise.
1138 * symtab.c (default_collect_symbol_completion_matches_break_on):
1139 Update call to macro_expansion.
1140
3a3440fb
AB
11412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * ada-lang.c (ada_language_data): Remove la_array_ordering
1144 initializer.
1145 * c-lang.c (c_language_data): Likewise.
1146 (cplus_language_data): Likewise.
1147 (asm_language_data): Likewise.
1148 (minimal_language_data): Likewise.
1149 * d-lang.c (d_language_data): Likewise.
1150 * dwarf2/read.c (read_array_order): Update for call to
1151 array_ordering.
1152 * f-lang.c (f_language_data): Remove la_array_ordering
1153 initializer.
1154 (f_language::array_ordering): New member function.
1155 * go-lang.c (go_language_data): Remove la_array_ordering
1156 initializer.
1157 * language.c (unknown_language_data): Likewise.
1158 (auto_language_data): Likewise.
1159 * language.h (language_data): Delete la_array_ordering field.
1160 (language_defn::array_ordering): New member function.
1161 * m2-lang.c (m2_language_data): Remove la_array_ordering
1162 initializer.
1163 * objc-lang.c (objc_language_data): Likewise.
1164 * opencl-lang.c (opencl_language_data): Likewise.
1165 * p-lang.c (pascal_language_data): Likewise.
1166 * rust-lang.c (rust_language_data): Likewise.
1167
0d201fa4
AB
11682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1169
1170 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1171 initializer.
1172 * c-lang.c (c_language_data): Likewise.
1173 (cplus_language_data): Likewise.
1174 (asm_language_data): Likewise.
1175 (minimal_language_data): Likewise.
1176 * d-lang.c (d_language_data): Likewise.
1177 * f-lang.c (f_language_data): Likewise.
1178 (f_language::case_sensitivity): New member function.
1179 * go-lang.c (go_language_data): Remove la_case_sensitivity
1180 initializer.
1181 * language.c (enum case_mode): Moved here from language.h.
1182 (case_mode): Make static.
1183 (show_case_command): Update for case_sensitivity being a method.
1184 (set_case_command): Likewise.
1185 (set_range_case): Likewise.
1186 (unknown_language_data): Remove la_case_sensitivity initializer.
1187 (auto_language_data): Likewise.
1188 * language.h (case_mode): Delete, move enum declaration to
1189 language.c.
1190 (language_data): Delete la_case_sensitivity field.
1191 (language_defn::case_sensitivity): New member function.
1192 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1193 initializer.
1194 * objc-lang.c (objc_language_data): Likewise.
1195 * opencl-lang.c (opencl_language_data): Likewise.
1196 * p-lang.c (pascal_language_data): Likewise.
1197 * rust-lang.c (rust_language_data): Likewise.
1198
efdf6a73
AB
11992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1200
1201 * ada-lang.c (ada_language_data): Remove la_range_check
1202 initializer.
1203 * c-lang.c (c_language_data): Likewise.
1204 (cplus_language_data): Likewise.
1205 (asm_language_data): Likewise.
1206 (minimal_language_data): Likewise.
1207 * d-lang.c (d_language_data): Likewise.
1208 * f-lang.c (f_language_data): Likewise.
1209 (f_language::range_checking_on_by_default): New member function.
1210 * go-lang.c (go_language_data): Remove la_range_check initializer.
1211 * language.c (enum range_mode): Moved here from language.h.
1212 (range_mode): Made static.
1213 (show_range_command): Update to use
1214 range_checking_on_by_default.
1215 (set_range_command): Likewise.
1216 (set_range_case): Likewise.
1217 (unknown_language_data): Remove la_range_check initializer.
1218 (auto_language_data): Likewise.
1219 * language.h (range_mode): Delete. Enum definition moved to
1220 language.c.
1221 (language_data): Remove la_range_check field.
1222 (language_defn::range_checking_on_by_default): New member
1223 function.
1224 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1225 (m2_language::range_checking_on_by_default): New member function.
1226 * objc-lang.c (objc_language_data): Remove la_range_check
1227 initializer.
1228 * opencl-lang.c (opencl_language_data): Likewise.
1229 * p-lang.c (pascal_language_data): Likewise.
1230 (pascal_language::range_checking_on_by_default): New member
1231 function.
1232 * rust-lang.c (rust_language_data): Remove la_range_check
1233 initializer.
1234 (rust_language::range_checking_on_by_default): New member
1235 function.
1236
bf92aec5
AB
12372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1238
1239 * dwarf2/read.c (dwarf2_physname): Remove special case for
1240 language_go.
1241 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1242 member function.
1243
d3355e4d
AB
12442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1245
1246 * ada-lang.c (ada_language_data): Remove
1247 la_store_sym_names_in_linkage_form_p initializer.
1248 (ada_language::store_sym_names_in_linkage_form_p): New member
1249 function.
1250 * c-lang.c (c_language_data): Remove
1251 la_store_sym_names_in_linkage_form_p initializer.
1252 (c_language::store_sym_names_in_linkage_form_p): New member
1253 function.
1254 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1255 initializer.
1256 (asm_language_data): Likewise.
1257 (asm_language::store_sym_names_in_linkage_form_p): New member
1258 function.
1259 (minimal_language_data): Remove
1260 la_store_sym_names_in_linkage_form_p initializer.
1261 (minimal_language::store_sym_names_in_linkage_form_p): New member
1262 function.
1263 * d-lang.c (d_language_data): Remove
1264 la_store_sym_names_in_linkage_form_p initializer.
1265 * dwarf2/read.c (dwarf2_physname): Update call to
1266 store_sym_names_in_linkage_form_p.
1267 * f-lang.c (f_language_data): Remove
1268 la_store_sym_names_in_linkage_form_p initializer.
1269 * go-lang.c (go_language_data): Remove
1270 la_store_sym_names_in_linkage_form_p initializer.
1271 * language.c (unknown_language_data): Remove
1272 la_store_sym_names_in_linkage_form_p initializer.
1273 (unknown_language::store_sym_names_in_linkage_form_p): New member
1274 function.
1275 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1276 initializer.
1277 (auto_language::store_sym_names_in_linkage_form_p): New member
1278 function.
1279 * language.h (language_data): Remove
1280 la_store_sym_names_in_linkage_form_p member variable.
1281 (language_defn::store_sym_names_in_linkage_form_p): New member
1282 function.
1283 * m2-lang.c (m2_language_data): Remove
1284 la_store_sym_names_in_linkage_form_p initializer.
1285 * objc-lang.c (objc_language_data): Likewise.
1286 * opencl-lang.c (opencl_language_data): Likewise.
1287 * p-lang.c (pascal_language_data): Likewise.
1288 * rust-lang.c (rust_language_data): Likewise.
1289
22c12a6c
AB
12902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1291
1292 * ada-lang.c (ada_language_data): Remove string_lower_bound
1293 initializer.
1294 * c-lang.c (c_language_data): Likewise.
1295 (cplus_language_data): Likewise.
1296 (asm_language_data): Likewise.
1297 (minimal_language_data): Likewise.
1298 * d-lang.c (d_language_data): Likewise.
1299 * f-lang.c (f_language_data): Likewise.
1300 * go-lang.c (go_language_data): Likewise.
1301 * language.c (unknown_language_data): Likewise.
1302 (auto_language_data): Likewise.
1303 * language.h (language_data): Remove string_lower_bound field.
1304 (language_defn::string_lower_bound): New member function.
1305 * m2-lang.c (m2_language_data): Remove string_lower_bound
1306 initializer.
1307 (m2_language::string_lower_bound): New member function.
1308 * objc-lang.c (objc_language_data): Remove string_lower_bound
1309 initializer.
1310 * opencl-lang.c (opencl_language_data): Likewise.
1311 * p-lang.c (pascal_language_data): Likewise.
1312 * rust-lang.c (rust_language_data): Likewise.
1313 * valops.c (value_cstring): Update call to string_lower_bound.
1314 (value_string): Likewise.
1315 * value.c (allocate_repeated_value): Likewise.
1316
1c236ddd
AB
13172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 * valops.c (value_repeat): Fix incorrect argument name in comment.
1320
67bd3fd5
AB
13212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1322
1323 * ada-lang.c (ada_language_data): Remove c_style_arrays
1324 initializer.
1325 (ada_language::c_style_arrays_p): New member fuction.
1326 * c-lang.c (c_language_data): Remove c_style_arrays
1327 initializer.
1328 (cplus_language_data): Likewise.
1329 (asm_language_data): Likewise.
1330 (minimal_language_data): Likewise.
1331 * d-lang.c (d_language_data): Likewise.
1332 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1333 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1334 (f_language::c_style_arrays_p): New member function.
1335 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1336 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1337 * language.c (unknown_language_data): Remove c_style_arrays
1338 initializer.
1339 (auto_language_data): Likewise.
1340 * language.h (language_data): Remove c_style_arrays field.
1341 (language_defn::c_style_arrays_p): New member function.
1342 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1343 (m2_language::c_style_arrays_p): New member function.
1344 * objc-lang.c (objc_language_data): Remove c_style_arrays
1345 initializer.
1346 * opencl-lang.c (opencl_language_data): Likewise.
1347 * p-lang.c (pascal_language_data): Likewise.
1348 * rust-lang.c (rust_language_data): Likewise.
1349 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1350 and update local variable to a bool.
1351 * valops.c (value_cast): Update call to c_style_arrays_p.
1352 (value_array): Likewise.
1353 * value.c (coerce_array): Likewise.
1354
85967615
AB
13552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1356
1357 * ada-lang.c (ada_language_data): Remove la_language initializer.
1358 * c-lang.c (c_language_data): Likewise.
1359 (cplus_language_data): Likewise.
1360 (asm_language_data): Likewise.
1361 (minimal_language_data): Likewise.
1362 * d-lang.c (d_language_data): Likewise.
1363 * f-lang.c (f_language_data): Likewise.
1364 * go-lang.c (go_language_data): Likewise.
1365 * language.c (unknown_language_data): Likewise.
1366 (auto_language_data): Likewise.
1367 * language.h (language_data): Remove la_language field.
1368 (language_defn::language_defn): Initialise la_language field.
1369 (language_defn::la_language): New member variable.
1370 * m2-lang.c (m2_language_data): Remove la_language field.
1371 * objc-lang.c (objc_language_data): Likewise.
1372 * opencl-lang.c (opencl_language_data): Likewise.
1373 * p-lang.c (pascal_language_data): Likewise.
1374 * rust-lang.c (rust_language_data): Likewise.
1375
e171d6f1
AB
13762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1377
1378 * ada-lang.c (ada_extensions): Delete, moved into
1379 ada_language::filename_extensions.
1380 (ada_language_data): Remove la_filename_extensions initializer.
1381 (ada_language::filename_extensions): New member function.
1382 * c-lang.c (c_extensions): Delete, moved into
1383 c_language::filename_extensions.
1384 (c_language_data): Remove la_filename_extensions initializer.
1385 (c_language::filename_extensions): New member function.
1386 (cplus_extensions): Delete, moved into
1387 cplus_language::filename_extensions.
1388 (cplus_language_data): Remove la_filename_extensions initializer.
1389 (cplus_language::filename_extensions): New member function.
1390 (asm_extensions): Delete, moved into
1391 asm_language::filename_extensions.
1392 (asm_language_data): Remove la_filename_extensions initializer.
1393 (asm_language::filename_extensions): New member function.
1394 (minimal_language_data): Remove la_filename_extensions
1395 initializer.
1396 * d-lang.c (d_extensions): Delete, moved into
1397 d_language::filename_extensions.
1398 (d_language_data): Remove la_filename_extensions initializer.
1399 (d_language::filename_extensions): New member function.
1400 * f-lang.c (f_extensions): Delete, moved into
1401 f_language::filename_extensions.
1402 (f_language_data): Remove la_filename_extensions initializer.
1403 (f_language::filename_extensions): New member function.
1404 * go-lang.c (go_language_data): Remove la_filename_extensions
1405 initializer.
1406 * language.c (add_set_language_command): Update now that
1407 filename_extensions returns a vector.
1408 (unknown_language_data): Remove la_filename_extensions
1409 initializer.
1410 (auto_language_data): Likewise.
1411 * language.h (language_data): Remove la_filename_extensions field.
1412 (language_defn::filename_extensions): New member function.
1413 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1414 initializer.
1415 * objc-lang.c (objc_extensions): Delete, moved into
1416 objc_language::filename_extensions.
1417 (objc_language_data): Remove la_filename_extensions initializer.
1418 (objc_language::filename_extensions): New member function.
1419 * opencl-lang.c (opencl_language_data): Remove
1420 la_filename_extensions initializer.
1421 * p-lang.c (pascal_extensions): Delete, moved into
1422 pascal_language::filename_extensions.
1423 (pascal_language_data): Remove la_filename_extensions initializer.
1424 (pascal_language::filename_extensions): New member function.
1425 * rust-lang.c (rust_extensions): Delete, moved into
1426 rust_language::filename_extensions.
1427 (rust_language_data): Remove la_filename_extensions initializer.
1428 (rust_language::filename_extensions): New member function.
1429 * symfile.c (add_filename_language): Add new assert.
1430
6f7664a9
AB
14312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1432
1433 * ada-lang.c (ada_language_data): Remove la_name and
1434 la_natural_name initializers.
1435 (ada_language::name): New member function.
1436 (ada_language::natural_name): New member function.
1437 * c-lang.c (c_language_data): Remove la_name and
1438 la_natural_name initializers.
1439 (c_language::name): New member function.
1440 (c_language::natural_name): New member function.
1441 (cplus_language_data): Remove la_name and
1442 la_natural_name initializers.
1443 (cplus_language::name): New member function.
1444 (cplus_language::natural_name): New member function.
1445 (asm_language_data): Remove la_name and
1446 la_natural_name initializers.
1447 (asm_language::name): New member function.
1448 (asm_language::natural_name): New member function.
1449 (minimal_language_data): Remove la_name and
1450 la_natural_name initializers.
1451 (minimal_language::name): New member function.
1452 (minimal_language::natural_name): New member function.
1453 * compile/compile.c (compile_to_object): Update call to
1454 lanugage_defn::name.
1455 * d-lang.c (d_language_data): Remove la_name and
1456 la_natural_name initializers.
1457 (d_language::name): New member function.
1458 (d_language::natural_name): New member function.
1459 * expprint.c (print_subexp_standard): Update call to
1460 language_defn::name.
1461 (dump_raw_expression): Likewise
1462 (dump_prefix_expression): Likewise.
1463 * f-lang.c (f_language_data): Remove la_name and
1464 la_natural_name initializers.
1465 (f_language::name): New member function.
1466 (f_language::natural_name): New member function.
1467 * go-lang.c (go_language_data): Remove la_name and
1468 la_natural_name initializers.
1469 (go_language::name): New member function.
1470 (go_language::natural_name): New member function.
1471 * language.c (show_language_command): Update call to
1472 language_defn::name.
1473 (set_language_command): Likewise.
1474 (language_enum): Likewise.
1475 (language_str): Likewise.
1476 (add_set_language_command): Likewise, use
1477 language_defn::natural_name in the doc string.
1478 (unknown_language_data): Remove la_name and
1479 la_natural_name initializers.
1480 (unknown_language::name): New member function.
1481 (unknown_language::natural_name): New member function.
1482 (auto_language_data): Remove la_name and
1483 la_natural_name initializers.
1484 (auto_language::name): New member function.
1485 (auto_language::natural_name): New member function.
1486 (language_lookup_primitive_type_as_symbol): Update call to
1487 language_defn::name.
1488 * language.h (language_data): Remove la_name and la_natural_name
1489 member variables.
1490 (language_defn::name): New member function.
1491 (language_defn::natural_name): New member function.
1492 * m2-lang.c (m2_language_data): Remove la_name and
1493 la_natural_name initializers.
1494 (m2_language::name): New member function.
1495 (m2_language::natural_name): New member function.
1496 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1497 language_defn::natural_name.
1498 * objc-lang.c (objc_language_data): Remove la_name and
1499 la_natural_name initializers.
1500 (objc_language::name): New member function.
1501 (objc_language::natural_name): New member function.
1502 * opencl-lang.c (opencl_language_data): Remove la_name and
1503 la_natural_name initializers.
1504 (opencl_language::name): New member function.
1505 (opencl_language::natural_name): New member function.
1506 * p-lang.c (pascal_language_data): Remove la_name and
1507 la_natural_name initializers.
1508 (pascal_language::name): New member function.
1509 (pascal_language::natural_name): New member function.
1510 * rust-lang.c (rust_language_data): Remove la_name and
1511 la_natural_name initializers.
1512 (rust_language::name): New member function.
1513 (rust_language::natural_name): New member function.
1514 * symtab.c (lookup_language_this): Update call to
1515 language_defn::name.
1516
5bae7c4e
AB
15172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1518
1519 * ada-lang.c (ada_language_data): Remove la_name_of_this
1520 initializer.
1521 * ax-gdb.c (gen_expr): Update call to name_of_this.
1522 * c-exp.y (classify_name): Likewise.
1523 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1524 (cplus_language_data): Likewise.
1525 (cplus_language::name_of_this): New member function.
1526 (asm_language_data): Remove la_name_of_this initializer.
1527 (minimal_language_data): Likewise.
1528 * d-lang.c (d_language_data): Likewise.
1529 (d_language::name_of_this): New member function.
1530 * expprint.c (print_subexp_standard): Update call to name_of_this.
1531 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1532 * go-lang.c (go_language_data): Likewise.
1533 * language.c (unknown_language_data): Likewise.
1534 (unknown_language::name_of_this): New member function.
1535 (auto_language_data): Remove la_name_of_this initializer.
1536 (auto_language::name_of_this): New member function.
1537 * language.h (language_data): Delete la_name_of_this member
1538 variable.
1539 (language_defn::name_of_this): New member function.
1540 * m2-lang.c (m2_language_data): Remove la_name_of_this
1541 initializer.
1542 * objc-lang.c (objc_language_data): Likewise.
1543 (objc_language::name_of_this): New member function.
1544 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1545 initializer.
1546 * p-lang.c (pascal_language_data): Likewise.
1547 (pascal_language::name_of_this): New member function.
1548 * rust-lang.c (rust_language_data): Remove la_name_of_this
1549 initializer.
1550 * symtab.c (lookup_language_this): Update call to name_of_this.
1551 (lookup_symbol_aux): Likewise.
1552 * valops.c (value_of_this): Likewise.
1553
22e3f3ed
AB
15542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1555
1556 * ada-lang.c (ada_language_data): Remove
1557 la_struct_too_deep_ellipsis initializer.
1558 (ada_language::struct_too_deep_ellipsis): New member function.
1559 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1560 initializer.
1561 (cplus_language_data): Likewise.
1562 (asm_language_data): Likewise.
1563 (minimal_language_data): Likewise.
1564 * cp-valprint.c (cp_print_value): Update call to
1565 struct_too_deep_ellipsis.
1566 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1567 initializer.
1568 * f-lang.c (f_language_data): Likewise.
1569 (f_language::struct_too_deep_ellipsis): New member function.
1570 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1571 initializer.
1572 * language.c (unknown_language_data): Likewise.
1573 (auto_language_data): Likewise.
1574 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1575 member variable.
1576 (language_defn::struct_too_deep_ellipsis): New member function.
1577 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1578 initializer.Q
1579 * objc-lang.c (objc_language_data): Likewise.
1580 * opencl-lang.c (opencl_language_data): Likewise.
1581 * p-lang.c (pascal_language_data): Likewise.
1582 * rust-lang.c (rust_language_data): Likewise.
1583 * valprint.c (val_print_check_max_depth): Update call to
1584 struct_too_deep_ellipsis.
1585
ed29e1c7
FW
15862020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1587
1588 * MAINTAINERS (Write After Approval): Add myself.
1589
12d8f940
TT
15902020-09-15 Tom Tromey <tom@tromey.com>
1591
1592 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1593 Remove.
1594
6b5a7bc7
TT
15952020-09-15 Tom Tromey <tom@tromey.com>
1596
1597 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1598 and TYPE_CODE_METHODPTR cases.
1599 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1600 (c_value_print_inner): Update.
1601 * valprint.c (generic_value_print_memberptr): New function, from
1602 c_value_print_memberptr.
1603 (generic_value_print): Use it. Call cplus_print_method_ptr.
1604
47f0e2ff
TT
16052020-09-15 Tom Tromey <tromey@adacore.com>
1606
1607 * python/python-internal.h (PyInt_FromLong): Remove define.
1608 * python/py-value.c (convert_value_from_python): Use
1609 gdb_py_object_from_longest.
1610 * python/py-type.c (typy_get_code): Use
1611 gdb_py_object_from_longest.
1612 * python/py-symtab.c (salpy_get_line): Use
1613 gdb_py_object_from_longest.
1614 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1615 gdb_py_object_from_longest.
1616 * python/py-record.c (recpy_gap_reason_code): Use
1617 gdb_py_object_from_longest.
1618 * python/py-record-btrace.c (recpy_bt_insn_size)
1619 (recpy_bt_func_level, btpy_list_count): Use
1620 gdb_py_object_from_longest.
1621 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1622 gdb_py_object_from_longest. Fix error handling.
1623 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1624 gdb_py_object_from_longest.
1625 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1626 gdb_py_object_from_longest.
1627 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1628 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1629 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1630
512116ce
TT
16312020-09-15 Tom Tromey <tromey@adacore.com>
1632
1633 * python/python.c (gdbpy_parameter_value): Use
1634 gdb_py_object_from_ulongest.
1635
4ab1029c
TT
16362020-09-15 Tom Tromey <tromey@adacore.com>
1637
1638 * python/py-infevents.c (create_register_changed_event_object):
1639 Use gdb_py_object_from_longest.
1640 * python/py-exitedevent.c (create_exited_event_object): Use
1641 gdb_py_object_from_longest.
1642
062534d4
TT
16432020-09-15 Tom Tromey <tromey@adacore.com>
1644
1645 * python/python.c (gdbpy_parameter_value): Use
1646 gdb_py_object_from_longest.
1647 * python/py-type.c (convert_field, typy_range): Use
1648 gdb_py_object_from_longest.
1649 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1650 gdb_py_object_from_longest.
1651 * python/py-lazy-string.c (stpy_get_length): Use
1652 gdb_py_object_from_longest.
1653 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1654 gdb_py_object_from_longest.
1655 * python/py-infevents.c (create_memory_changed_event_object): Use
1656 gdb_py_object_from_longest.
1657 * python/py-inferior.c (infpy_get_num): Use
1658 gdb_py_object_from_longest.
1659 (infpy_get_pid): Likewise.
1660
d1cab987
TT
16612020-09-15 Tom Tromey <tromey@adacore.com>
1662
1663 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1664 defines.
1665 * python/py-value.c (valpy_long): Use
1666 gdb_py_object_from_ulongest.
1667 * python/py-symtab.c (salpy_get_pc): Use
1668 gdb_py_object_from_ulongest.
1669 (salpy_get_last): Likewise.
1670 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1671 gdb_py_object_from_ulongest.
1672 * python/py-lazy-string.c (stpy_get_address): Use
1673 gdb_py_object_from_ulongest.
1674 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1675 * python/py-arch.c (archpy_disassemble): Use
1676 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1677 error handling.
1678
4bde49dc
TT
16792020-09-15 Tom Tromey <tromey@adacore.com>
1680
1681 * python/python-internal.h (gdb_py_long_from_longest): Remove
1682 defines.
1683 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1684 * python/py-type.c (convert_field, typy_get_sizeof): Use
1685 gdb_py_object_from_longest.
1686 * python/py-record-btrace.c (btpy_list_index): Use
1687 gdb_py_object_from_longest.
1688
37431074
TT
16892020-09-15 Tom Tromey <tromey@adacore.com>
1690
1691 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1692 * python/py-record.c (recpy_element_number): Use
1693 gdb_py_object_from_longest.
1694 (recpy_gap_number): Likewise.
1695
cbe25684
TT
16962020-09-15 Tom Tromey <tromey@adacore.com>
1697
1698 * top.c (ui::ui): Update.
1699 (highest_ui_num): Remove.
1700 * top.h (struct ui) <num>: Remove.
1701
db92ac45
TT
17022020-09-15 Tom Tromey <tromey@adacore.com>
1703
1704 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1705 * ui-style.c (ansi_regex_text): Now array.
1706 * rust-exp.y (number_regex_text): Now array.
1707 * linespec.c (linespec_quote_characters): Now array.
1708 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1709 Now arrays.
1710
d2b31b67
SM
17112020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1712
1713 * debuginfod-support.c (debuginfod_client_deleter): New.
1714 (debuginfod_client_up): New.
1715 (debuginfod_init): Return debuginfod_client_up.
1716 (debuginfod_source_query): Adjust.
1717 (debuginfod_debuginfo_query): Adjust.
1718
3246bd8e
SM
17192020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1720
1721 * debuginfod-support.c (debuginfod_source_query): Use
1722 make_unique_xstrdup.
1723
10242f36
SM
17242020-09-14 Simon Marchi <simon.marchi@efficios.com>
1725
1726 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1727 with `type::instance_flags`.
1728
e1044e6a
MM
17292020-09-14 Michael Mullin <masmullin@gmail.com>
1730
1731 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1732 Remove baton parameter.
1733
04902b09
PA
17342020-09-14 Pedro Alves <pedro@palves.net>
1735
1736 * Makefile.in (SELFTESTS_SRCS): Add
1737 unittests/enum-flags-selftests.c.
1738 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1739 btrace_function_flags instead of enum btrace_function_flag.
1740 * compile/compile-c-types.c (convert_qualified): Use
1741 enum_flags::raw.
1742 * compile/compile-cplus-symbols.c (convert_one_symbol)
1743 (convert_symbol_bmsym):
1744 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1745 (compile_cplus_convert_struct_or_union_methods)
1746 (compile_cplus_instance::convert_qualified_base):
1747 * go-exp.y (parse_string_or_char): Add cast to int.
1748 * unittests/enum-flags-selftests.c: New file.
1749 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1750 type to btrace_thread_flags from btrace_thread_flag.
1751 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1752 local's type to btrace_thread_flags from btrace_thread_flag. Add
1753 cast in DEBUG call.
1754
69896a2c
PA
17552020-09-14 Pedro Alves <pedro@palves.net>
1756
1757 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1758 * gdbtypes.c (address_space_name_to_int): Rename to ...
1759 (address_space_name_to_type_instance_flags): ... this.
1760 (address_space_int_to_name): Rename to ...
1761 (address_space_type_instance_flags_to_name): ... this.
1762 * gdbtypes.h (address_space_name_to_int): Rename to ...
1763 (address_space_name_to_type_instance_flags): ... this.
1764 (address_space_int_to_name): Rename to ...
1765 (address_space_type_instance_flags_to_name): ... this.
1766 * type-stack.c (type_stack::insert): Adjust to rename.
1767 * type-stack.h (type_stack::insert): Likewise.
1768
314ad88d
PA
17692020-09-14 Pedro Alves <pedro@palves.net>
1770 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * avr-tdep.c (avr_address_class_type_flags): Return
1773 type_instance_flags.
1774 (avr_address_class_type_flags_to_name): Take a
1775 type_instance_flags.
1776 (avr_address_class_name_to_type_flags): Return bool and take a
1777 type_instance_flags.
1778 * d-lang.c (build_d_types): Use type::set_instance_flags.
1779 * ft32-tdep.c (ft32_address_class_type_flags): Return
1780 type_instance_flags.
1781 (ft32_address_class_type_flags_to_name): Take a
1782 type_instance_flags.
1783 (ft32_address_class_name_to_type_flags): Return bool and take a
1784 type_instance_flags.
1785 (ft32_gdbarch_init): Use type::set_instance_flags.
1786 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1787 * gdbarch.h, gdbarch.c: Regenerate.
1788 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1789 (address_class_name_to_type_flags): Use type_instance_flags and
1790 bool.
1791 * gdbtypes.c (address_space_name_to_int)
1792 (address_space_int_to_name, make_qualified_type): Use
1793 type_instance_flags.
1794 (make_qualified_type): Use type_instance_flags and
1795 type::set_instance_flags.
1796 (make_type_with_address_space, make_cv_type, make_vector_type)
1797 (check_typedef): Use type_instance_flags.
1798 (recursive_dump_type): Cast type_instance_flags to unsigned for
1799 printing.
1800 (copy_type_recursive): Use type::set_instance_flags.
1801 (gdbtypes_post_init): Use type::set_instance_flags.
1802 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1803 <m_instance_flags>: ... this.
1804 <instance_flags, set_instance_flags>: New methods.
1805 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1806 (SET_TYPE_INSTANCE_FLAGS): New.
1807 (address_space_name_to_int, address_space_int_to_name)
1808 (make_type_with_address_space): Pass flags using
1809 type_instance_flags instead of int.
1810 * stabsread.c (cleanup_undefined_types_noname): Use
1811 type::set_instance_flags.
1812 * s390-tdep.c (s390_address_class_type_flags): Return
1813 type_instance_flags.
1814 (s390_address_class_type_flags_to_name): Take a
1815 type_instance_flags.
1816 (s390_address_class_name_to_type_flags): Return bool and take a
1817 type_instance_flags.
1818 * type-stack.c (type_stack::follow_types): Use
1819 type_instance_flags.
1820 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1821
27087b7f
TT
18222020-09-14 Tom Tromey <tromey@adacore.com>
1823
1824 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1825 * x86-tdep.c (x86_is_thunk_register_name)
1826 (x86_in_indirect_branch_thunk): Update.
1827 * sparc64-tdep.c (sparc64_fpu_register_names)
1828 (sparc64_cp0_register_names, sparc64_register_names)
1829 (sparc64_pseudo_register_names): Now const.
1830 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1831 cp0_registers_num>: Now const.
1832 * sparc-tdep.c (sparc_core_register_names)
1833 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1834 (sparc32_pseudo_register_names): Now const.
1835 (validate_tdesc_registers): Update.
1836 * rust-lang.c (rust_extensions): Now const.
1837 * p-lang.c (p_extensions): Now const.
1838 * objc-lang.c (objc_extensions): Now const.
1839 * nto-tdep.c (nto_thread_state_str): Now const.
1840 * moxie-tdep.c (moxie_register_names): Now const.
1841 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1842 Now const.
1843 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1844 (mips_linux_reg_names): Now const.
1845 (mips_gdbarch_init): Update.
1846 * microblaze-tdep.c (microblaze_register_names): Now const.
1847 * m68k-tdep.c (m68k_register_names): Now const.
1848 * m32r-tdep.c (m32r_register_names): Now const.
1849 * ia64-tdep.c (ia64_register_names): Now const.
1850 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1851 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1852 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1853 ymm_avx512_register_names, pkeys_register_names>: Now const.
1854 * i386-tdep.c (i386_register_names, i386_zmm_names)
1855 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1856 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1857 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1858 * f-lang.c (f_extensions): Now const.
1859 * d-lang.c (d_extensions): Now const.
1860 * csky-tdep.c (csky_register_names): Now const.
1861 * charset.c (default_charset_names, charset_enum): Now const.
1862 (_initialize_charset): Update.
1863 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1864 const.
1865 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1866 (bsd_uthread_solib_loaded): Update.
1867 (bsd_uthread_state): Now const.
1868 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1869 (amd64_ymm_avx512_names, amd64_ymmh_names)
1870 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1871 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1872 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1873 (amd64_dword_names): Now const.
1874 * agent.c (can_use_agent_enum): Now const.
1875 * ada-tasks.c (task_states, long_task_states): Now const.
1876 * ada-lang.c (known_runtime_file_name_patterns)
1877 (known_auxiliary_function_name_patterns, attribute_names)
1878 (standard_exc, ada_extensions): Now const.
1879
89806626
SM
18802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1881
1882 * bcache.h (struct bcache) <bcache>: Remove constructor.
1883 <m_hash_function, m_compare_function>: Remove.
1884 <~bcache>: Make virtual.
1885 <compare>: Remove static method, introduce virtual method.
1886 <default_hash>: Remove.
1887 <hash>: New virtual method.
1888 * bcache.c (bcache::expand_hash_table): Update.
1889 (bcache::insert): Update.
1890 (bcache::hash): New.
1891 (bcache::compare): Update comment and parameter names.
1892 * gdbtypes.c (types_deeply_equal): Update.
1893 * psymtab.h (struct psymbol_bcache): New struct.
1894 (class psymtab_storage) <psymtab_storage>: Make default.
1895 <psymbol_cache>: Change type to psymbol_bcache.
1896 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1897 (psymbol_hash): Change to...
1898 (psymbol_bcache::hash): ... this.
1899 (psymbol_compare): Change to...
1900 (psymbol_bcache::compare): ... this.
1901
677c92fe
SM
19022020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1905 checking for initial lwp.
1906
3eba3a01
TT
19072020-09-14 Tom Tromey <tromey@adacore.com>
1908
1909 * m68k-tdep.c (m68k_extract_return_value): Use
1910 pointer_result_regnum.
1911 (m68k_store_return_value): Likewise.
1912 (m68k_reg_struct_return_p): Handle vectors and arrays.
1913 (m68k_return_value): Handle arrays.
1914 (m68k_svr4_return_value): Fix single-element aggregate handling.
1915 Handle long double. Adjust for embedded ABI.
1916 (m68k_svr4_init_abi): Set pointer_result_regnum.
1917 (m68k_embedded_init_abi): New function.
1918 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1919 (m68k_osabi_sniffer): New function.
1920 (_initialize_m68k_tdep): Register osabi sniffer.
1921 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1922 member.
1923
33f4dd48
SM
19242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1927 with gdb::unique_xmalloc_ptr<char>.
1928
8400a90d
SM
19292020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1930
1931 * xml-support.h (xml_fetch_another): Change type to be a
1932 function_view.
1933 (xml_process_xincludes): Remove baton parameter.
1934 (xml_fetch_content_from_file): Change baton parameter to
1935 dirname.
1936 * xml-support.c (struct xinclude_parsing_data)
1937 <xinclude_parsing_data>: Remove baton parameter.
1938 <fetcher_baton>: Remove.
1939 (xinclude_start_include): Adjust.
1940 (xml_process_xincludes): Adjust.
1941 (xml_fetch_content_from_file): Replace baton parameter with
1942 dirname.
1943 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1944 (xml_init_syscalls_info): Use a lambda.
1945 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1946 (file_read_description_xml): Use a lambda.
1947 (fetch_available_features_from_target): Change baton parameter
1948 to target_ops.
1949 (target_read_description_xml): Use a lambda.
1950 (target_fetch_description_xml): Use a lambda.
1951 (string_read_description_xml): Update.
1952
04f5bab2
SM
19532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1954
1955 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1956 uses with type::endianity_is_not_default.
1957
db558e34
SM
19582020-09-14 Simon Marchi <simon.marchi@efficios.com>
1959
1960 * gdbtypes.h (struct type) <endianity_is_not_default,
1961 set_endianity_is_not_default>: New methods.
1962 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1963 type::endianity_is_not_default, change all write call sites to
1964 use type::set_endianity_is_not_default.
1965
22c4c60c
SM
19662020-09-14 Simon Marchi <simon.marchi@efficios.com>
1967
1968 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1969 uses with type::is_fixed_instance.
1970
9cdd0d12
SM
19712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1972
1973 * gdbtypes.h (struct type) <is_fixed_instance,
1974 set_is_fixed_instance>: New methods.
1975 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1976 write call sites to use type::set_is_fixed_instance.
1977
0becda7a
SM
19782020-09-14 Simon Marchi <simon.marchi@efficios.com>
1979
1980 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1981 uses with type::is_gnu_ifunc.
1982
03cc7249
SM
19832020-09-14 Simon Marchi <simon.marchi@efficios.com>
1984
1985 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1986 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1987 use type::set_is_gnu_ifunc.
1988
3f46044c
SM
19892020-09-14 Simon Marchi <simon.marchi@efficios.com>
1990
1991 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1992 uses with type::stub_is_supported.
1993
9baccff6
SM
19942020-09-14 Simon Marchi <simon.marchi@efficios.com>
1995
1996 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1997 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1998 use type::set_stub_is_supported.
1999
bd63c870
SM
20002020-09-14 Simon Marchi <simon.marchi@efficios.com>
2001
2002 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2003 uses with type::is_vector.
2004
2062087b
SM
20052020-09-14 Simon Marchi <simon.marchi@efficios.com>
2006
2007 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2008 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2009 use type::set_is_vector.
2010
a409645d
SM
20112020-09-14 Simon Marchi <simon.marchi@efficios.com>
2012
2013 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2014 uses with type::has_varargs.
2015
1d6286ed
SM
20162020-09-14 Simon Marchi <simon.marchi@efficios.com>
2017
2018 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2019 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2020 use type::set_has_varargs.
2021
7f9f399b
SM
20222020-09-14 Simon Marchi <simon.marchi@efficios.com>
2023
2024 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2025 uses with type::is_prototyped.
2026
27e69b7a
SM
20272020-09-14 Simon Marchi <simon.marchi@efficios.com>
2028
2029 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2030 New methods.
2031 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2032 call sites to use type::set_is_prototyped.
2033
d2183968
SM
20342020-09-14 Simon Marchi <simon.marchi@efficios.com>
2035
2036 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2037 uses with type::target_is_stub.
2038
8f53807e
SM
20392020-09-14 Simon Marchi <simon.marchi@efficios.com>
2040
2041 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2042 New methods.
2043 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2044 sites to use type::set_target_is_stub.
2045
e46d3488
SM
20462020-09-14 Simon Marchi <simon.marchi@efficios.com>
2047
2048 * gdbtypes.h (TYPE_STUB): Remove, replace all
2049 uses with type::is_stub.
2050
b4b73759
SM
20512020-09-14 Simon Marchi <simon.marchi@efficios.com>
2052
2053 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2054 (TYPE_STUB): Use type::is_stub, change all write call sites to
2055 use type::set_is_stub.
2056
20ce4123
SM
20572020-09-14 Simon Marchi <simon.marchi@efficios.com>
2058
2059 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2060 type::has_no_signedness.
2061
15152a54
SM
20622020-09-14 Simon Marchi <simon.marchi@efficios.com>
2063
2064 * gdbtypes.h (struct type) <has_no_signedness,
2065 set_has_no_signedness>: New methods.
2066 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2067 call sites to use type::set_has_no_signedness.
2068
c6d940a9
SM
20692020-09-14 Simon Marchi <simon.marchi@efficios.com>
2070
2071 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2072 type::is_unsigned.
2073
653223d3
SM
20742020-09-14 Simon Marchi <simon.marchi@efficios.com>
2075
2076 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2077 methods.
2078 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2079 sites to use type::set_is_unsigned.
2080
55ea94da 20812020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2082 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2083
e851246a
SM
2084 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2085 pointer and stack frame offset when unwinding.
55ea94da 2086
6791b117
PA
20872020-09-13 Pedro Alves <pedro@palves.net>
2088
2089 * NEWS: Document "-break-insert --qualified".
2090 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2091
77f2120b
PA
20922020-09-13 Pedro Alves <pedro@palves.net>
2093
2094 * linespec.c (classify_mtype, compare_msyms): Delete.
2095 (search_minsyms_for_name): Remove classification logic. Instead
2096 filter out trampoline symbols if we also found an external
2097 function of the same name.
2098
ed6a896c
JB
20992020-09-13 Joel Brobecker <brobecker@adacore.com>
2100
2101 * NEWS: Create a new section for the next release branch.
2102 Rename the section of the current branch, now that it has
2103 been cut.
2104
32aea73e
JB
21052020-09-13 Joel Brobecker <brobecker@adacore.com>
2106
2107 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2108 * version.in: Bump version to 11.0.50.DATE-git.
2109
8087c3fa
JB
21102020-09-12 Joel Brobecker <brobecker@adacore.com>
2111
2112 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2113
2a67f09d
FW
21142020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2115 Felix Willgerodt <Felix.Willgerodt@intel.com>
2116
2117 * gdbarch.sh: Added bfloat16 type.
2118 * gdbarch.c: Regenerated.
2119 * gdbarch.h: Regenerated.
2120 * gdbtypes.c (floatformats_bfloat16): New struct.
2121 (gdbtypes_post_init): Add builtin_bfloat16.
2122 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2123 (floatformats_bfloat16): New struct.
2124 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2125 (i386_ymm_type): Add field "v16_bfloat16"
2126 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2127 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2128 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2129 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2130 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2131 * features/i386/64bit-avx512.c: Regenerated.
2132 * features/i386/64bit-sse.xml: Add bfloat16 type.
2133 * features/i386/64bit-sse.c: Regenerated.
2134
1347d111
FW
21352020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2136
2137 * i386-tdep.c (i386_zmm_type): Fix field names.
2138 (i386_ymm_type): Fix field names.
2139
7a4e8e7d
TBA
21402020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2141
2142 * breakpoint.c: Fix typo in the help message of the
2143 "set breakpoint condition-evaluation" command.
2144
cf4ac4be
KR
21452020-09-10 Kamil Rytarowski <n54@gmx.com>
2146
2147 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2148 * (nbsd_nat_target::pid_to_exec_file)
2149 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2150 (nbsd_nat_target::post_startup_inferior)
2151 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2152 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2153 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2154 * (nbsd_thread_lister): Remove.
2155
f404573e
KR
21562020-09-10 Kamil Rytarowski <n54@gmx.com>
2157
2158 * fork-inferior.c (startup_inferior): Avoid double free.
2159
1ccb2c17
KR
21602020-09-10 Kamil Rytarowski <n54@gmx.com>
2161
2162 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2163 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2164
feedfcc7
KR
21652020-09-10 Kamil Rytarowski <n54@gmx.com>
2166
2167 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2168 * netbsd-nat.c: Include <sys/ptrace.h>.
2169 * (netbsd_nat::enable_proc_events): Add.
2170
c489f8c6
KR
21712020-09-10 Kamil Rytarowski <n54@gmx.com>
2172
2173 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2174 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2175 (netbsd_nat::for_each_thread): Add.
2176 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2177 "gdbsupport/common-debug.h".
2178 * (netbsd_nat::netbsd_thread_lister)
2179 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2180 (netbsd_nat::for_each_thread): Add.
2181
330662f6
KR
21822020-09-10 Kamil Rytarowski <n54@gmx.com>
2183
2184 * netbsd-nat.h: Include <unistd.h>.
2185 * (netbsd_nat::pid_to_exec_file): Add.
2186 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2187 * (netbsd_nat::pid_to_exec_file) Add.
2188
70b67307
KR
21892020-09-10 Kamil Rytarowski <n54@gmx.com>
2190
2191 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2192
99cf6da6
KR
21932020-09-10 Kamil Rytarowski <n54@gmx.com>
2194
2195 * netbsd-nat.h: New file.
2196 * netbsd-nat.c: Likewise.
2197
1b788fb6
TT
21982020-09-09 Tom Tromey <tromey@adacore.com>
2199
2200 * ada-lang.c (remove_extra_symbols): Do not increment when
2201 removing an element
2202
03b0a45f
TT
22032020-09-08 Tom Tromey <tromey@adacore.com>
2204
2205 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2206
3cae4447
TT
22072020-09-08 Tom Tromey <tromey@adacore.com>
2208
2209 PR win32/25302:
2210 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2211 (gdb_bfd_init_data): New function.
2212 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2213
7f08fd51
TBA
22142020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2215
2216 * infrun.c (fetch_inferior_event): Use
2217 `switch_to_target_no_thread` to switch the target.
2218
3e6ff933
TT
22192020-09-06 Tom Tromey <tom@tromey.com>
2220
2221 * symfile.h (dwarf2_free_objfile): Don't declare.
2222
e56798df
AKS
22232020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2224
2225 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2226 to match 16 byte real/complex type generated by Flang compiler.
2227
8f5c6526
TV
22282020-09-03 Tom de Vries <tdevries@suse.de>
2229
2230 PR breakpoint/26546
2231 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2232 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2233
c5065df0
SM
22342020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2235
2236 * maint.c (index_digits): New function.
2237 (struct maint_print_section_data): Remove.
2238 (print_bfd_section_info): Remove print_data parameter, add arg
2239 and index_digits.
2240 (print_objfile_section_info): Likewise.
2241 (print_bfd_section_info_maybe_relocated): Likewise (plus
2242 objfile).
2243 (maintenance_info_sections): Adjust calls.
2244
02c6f3f1
TT
22452020-09-02 Tom Tromey <tromey@adacore.com>
2246
2247 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2248 for null pointers.
2249 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2250
ef5e5b0b
SM
22512020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2252
2253 * bcache.h (struct bcache) <insert>: Change type of `added` to
2254 pointer to bool.
2255 * bcache.c (bcache::insert): Likewise.
2256 * gdbtypes.c (check_types_worklist): Adjust.
2257 * psymtab.c (add_psymbol_to_bcache): Adjust.
2258
973695d6
KB
22592020-08-31 Kevin Buettner <kevinb@redhat.com>
2260
2261 * corelow.c (unordered_set): Include.
2262 (class core_target): Add field 'm_core_unavailable_mappings'.
2263 (core_target::build_file_mappings): Print only one warning
2264 per inaccessible file. Add unavailable/broken mappings
2265 to m_core_unavailable_mappings.
2266 (core_target::xfer_partial): Call...
2267 (core_target::xfer_memory_via_mappings): New method.
2268
264fc0e2
SM
22692020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2270
2271 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2272 type to bool.
2273
2de01bdb
SM
22742020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2275
2276 * dwarf2/read.c (struct field_info): Fix indentation.
2277
f3bd50f1
SM
22782020-08-31 Simon Marchi <simon.marchi@efficios.com>
2279
2280 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2281 ordering in comment.
2282 * frame.c (frame_id_eq): Fix indentation.
2283
22b9b4b0
SL
22842020-08-31 Scott Linder <scott@scottlinder.com>
2285 Simon Marchi <simon.marchi@efficios.com>
2286
2287 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2288 inline frame ids in outer frame.
2289
84154d16
SM
22902020-08-31 Simon Marchi <simon.marchi@efficios.com>
2291
2292 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2293 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2294 (outer_frame_id): Use FID_STACK_OUTER instead of
2295 FID_STACK_INVALID.
2296 (frame_id_p): Don't check for outer_frame_id.
2297
8efaf6b3
SM
22982020-08-31 Simon Marchi <simon.marchi@efficios.com>
2299
2300 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2301 regnum/frame in value. Call allocate_value_lazy.
2302 * frame.c (frame_unwind_register_value): Use
2303 val_print_not_saved.
2304
fe1fe7ea
SM
23052020-08-31 Simon Marchi <simon.marchi@efficios.com>
2306
2307 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2308
f7c7700d
PA
23092020-08-29 Pedro Alves <pedro@palves.net>
2310
2311 * progspace.c (print_program_space): Use all_inferiors. Switch to
2312 the inferior before calling target_pid_to_str.
2313
e0814aae
TT
23142020-08-28 Tom Tromey <tom@tromey.com>
2315
2316 * xcoffread.c (xcoff_end_psymtab): Update comment.
2317 * dbxread.c (dbx_end_psymtab): Update comment.
2318
626d2320
TV
23192020-08-28 Tom de Vries <tdevries@suse.de>
2320
2321 PR breakpoint/26544
2322 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2323 event_location.
2324 (create_breakpoint): Same.
2325 (base_breakpoint_decode_location): Same.
2326 (bkpt_create_sals_from_location): Same.
2327 (bkpt_decode_location): Same.
2328 (bkpt_probe_create_sals_from_location): Same.
2329 (bkpt_probe_decode_location): Same.
2330 (tracepoint_create_sals_from_location): Same.
2331 (tracepoint_decode_location): Same.
2332 (tracepoint_probe_decode_location): Same.
2333 (strace_marker_create_sals_from_location): Same.
2334 (strace_marker_decode_location): Same.
2335 (create_sals_from_location_default): Same.
2336 (decode_location_default): Same.
2337 * breakpoint.h (struct breakpoint_ops): Same.
2338 (create_breakpoint): Same.
2339 * linespec.h (decode_line_full): Same.
2340 * linespec.c (decode_line_full): Same. Throw error if
2341 result.size () == 0.
2342
df631783
PA
23432020-08-27 Pedro Alves <pedro@palves.net>
2344
2345 PR gdb/26524
2346 * breakpoint.c (until_break_fsm) <location_breakpoint,
2347 caller_breakpoint>: Delete fields.
2348 <breakpoints>: New field.
2349 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2350 two individual breakpoints.
2351 (until_break_fsm::should_stop): Loop over breakpoints in the
2352 breakpoint vector.
2353 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2354 vector.
2355 (until_break_command): Handle location expanding into multiple
2356 sals.
2357
b2b38aa4
PA
23582020-08-27 Pedro Alves <pedro@palves.net>
2359
2360 PR gdb/26523
2361 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2362 bp_until breakpoints user-specified locations. Update intro
2363 comment.
2364
b886559f
SM
23652020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2366
2367 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2368 gdb_bfd_sections): New.
2369 * maint.c (print_bfd_section_info): Change param type to
2370 maint_print_section_data.
2371 (print_objfile_section_info): Likewise.
2372 (print_bfd_section_info_maybe_relocated): Likewise.
2373 (maintenance_info_sections): Use gdb_bfd_sections.
2374
4c6e63bf
SV
23752020-08-25 Shahab Vahedi <shahab@synopsys.com>
2376
2377 * MAINTAINERS: Add ARC target and maintainer.
2378
8d7f0635
AK
23792020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2380
2381 * configure.tgt: ARC support for GNU/Linux.
2382 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2383 * arc-linux-tdep.c: New file.
2384 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2385 * arc-tdep.c (arc_write_pc): Use it.
2386
fdd8731b
SV
23872020-08-25 Shahab Vahedi <shahab@synopsys.com>
2388
2389 * arc-tdep.c (arc_check_for_hardware_loop): New.
2390 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2391
22459524
SV
23922020-08-25 Shahab Vahedi <shahab@synopsys.com>
2393
2394 * arc-tdep.h: Include "gdbarch.h".
2395
995d3a19
SV
23962020-08-25 Shahab Vahedi <shahab@synopsys.com>
2397
2398 * arch/arc.h
2399 (arc_gdbarch_features): New class to stir the selection of target XML.
2400 (arc_create_target_description): Use FEATURES to choose XML target.
2401 (arc_lookup_target_description): Use arc_create_target_description
2402 to create _new_ target descriptions or return the already created
2403 ones if the FEATURES is the same.
2404 * arch/arc.c: Implementation of prototypes described above.
2405 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2406 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2407 * arc-tdep.c (*_feature_name): Make feature names consistent.
2408 (arc_register_feature): A new struct to hold information about
2409 registers of a particular target/feature.
2410 (arc_check_tdesc_feature): Check if XML provides registers in
2411 compliance with ARC_REGISTER_FEATURE structs.
2412 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2413 (determine_*_reg_feature_set): Which feature name to look for.
2414 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2415 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2416 to expected ISA enums to be used in arc_gdbarch_features structs.
2417 * features/Makefile (FEATURE_XMLFILES): Add new files.
2418 * gdb/features/arc/v1-aux.c: New file.
2419 * gdb/features/arc/v1-aux.xml: Likewise.
2420 * gdb/features/arc/v1-core.c: Likewise.
2421 * gdb/features/arc/v1-core.xml: Likewise.
2422 * gdb/features/arc/v2-aux.c: Likewise.
2423 * gdb/features/arc/v2-aux.xml: Likewise.
2424 * gdb/features/arc/v2-core.c: Likewise.
2425 * gdb/features/arc/v2-core.xml: Likewise.
2426 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2427
3945d2d7
GM
24282020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2429 Andrew Burgess <andrew.burgess@embecosm.com>
2430
2431 PR m2/26372
fc5d6901 2432 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2433 an assert. Remove single element array indexing pattern as the
2434 MULTI_SUBSCRIPT support will handle this case too.
2435
2677f2d3
SM
24362020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2437
2438 * value.h (valprint_check_validity): Move declaration from
2439 here...
2440 * valprint.h (valprint_check_validity): ... to here.
2441
c426fddb
SM
24422020-08-24 Simon Marchi <simon.marchi@efficios.com>
2443
2444 * debug.h: New file.
2445 * debug.c (debug_prefixed_vprintf): New function.
2446 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2447 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2448
1eb8556f
SM
24492020-08-24 Simon Marchi <simon.marchi@efficios.com>
2450
2451 * infrun.h (infrun_debug_printf_1): New function declaration.
2452 (infrun_debug_printf): New macro.
2453 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2454 throughout.
2455 (infrun_debug_printf): New function.
2456 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2457 (handle_jit_event): Likewise.
2458
b8fff44e
MW
24592020-08-21 Mark Wielaard <mark@klomp.org>
2460
2461 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2462
d19c3068
SM
24632020-08-22 Simon Marchi <simon.marchi@efficios.com>
2464
2465 * frame.c (enum class frame_id_status): New.
2466 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2467 (fprintf_frame): Update.
2468 (compute_frame_id): Set frame id status to "computing" on entry.
2469 Set it back to "not_computed" on failure and to "computed" on
2470 success.
2471 (get_frame_id): Assert the frame id is not being computed.
2472 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2473 (create_new_frame): Likewise.
2474 (frame_cleanup_after_sniffer): Update assert.
2475
b70e516e
SM
24762020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2477
2478 * regcache.c (pid_ptid_regcache_map): New type.
2479 (target_ptid_regcache_map): Remove.
2480 (target_pid_ptid_regcache_map): New type.
2481 (regcaches): Change type to target_pid_ptid_regcache_map.
2482 (get_thread_arch_aspace_regcache): Update.
2483 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2484 case.
2485 (regcaches_size): Update.
2486 (regcache_count): Update.
2487 (registers_changed_ptid_target_pid_test): New.
2488 (_initialize_regcache): Register new test.
2489
cdd9148a
SM
24902020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2491
2492 * regcache.c (regcache_count): New.
2493 (struct regcache_test_data): New.
2494 (regcache_test_data_up): New.
2495 (populate_regcaches_for_test): New.
2496 (regcaches_test): Remove.
2497 (get_thread_arch_aspace_regcache_test): New.
2498 (registers_changed_ptid_all_test): New.
2499 (registers_changed_ptid_target_test): New.
2500 (registers_changed_ptid_target_ptid_test): New.
2501 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2502 (_initialize_regcache): Register new tests.
2503
dd125343
SM
25042020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2505
2506 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2507 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2508 gdbarch and aspace parameter. Use current inferior's aspace.
2509 Validate regcache's arch value.
2510 (regcaches_test): Update.
2511
3ee93972
SM
25122020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2513
2514 * regcache.c (regcaches_test): Call registers_changed.
2515
33bf4c5c
TBA
25162020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2517
2518 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2519
c2fd7fae
AKS
25202020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2521
2522 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2523 to find the end of prologue for flang compiled binaries.
2524 * arm-tdep.c (arm_skip_prologue): Likewise.
2525 * i386-tdep.c (i386_skip_prologue): Likewise.
2526 * producer.c (producer_is_llvm): New function.
2527 (producer_parsing_tests): Added new tests for clang/flang.
2528 * producer.h (producer_is_llvm): New declaration.
2529
9327494e
SM
25302020-08-18 Simon Marchi <simon.marchi@efficios.com>
2531
2532 * linux-nat.c (linux_nat_debug_printf): New function.
2533 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2534
d138725a
AM
25352020-08-18 Aaron Merey <amerey@redhat.com>
2536
2537 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2538 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2539 (CLIBS): Add DEBUGINFOD_LIBS.
2540
f9b11e6b
ST
25412020-08-17 Sergei Trofimovich <siarheit@google.com>
2542
2543 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2544 'gdbarch_num_regs'.
2545
3ae7ab99
TT
25462020-08-17 Tom Tromey <tromey@adacore.com>
2547
2548 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2549 ada_get_decoded_value returns NULL.
2550
b017825f
TT
25512020-08-17 Tom Tromey <tromey@adacore.com>
2552
2553 * python/py-inferior.c (infpy_search_memory): Use
2554 gdb_py_object_from_ulongest.
2555 * python/py-infevents.c (create_inferior_call_event_object)
2556 (create_memory_changed_event_object): Use
2557 gdb_py_object_from_ulongest.
2558 * python/py-linetable.c (ltpy_entry_get_pc): Use
2559 gdb_py_object_from_ulongest.
2560
7635cf79
SM
25612020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2562
2563 * loc.c (class symbol_needs_eval_context): Fix indentation.
2564
f54be24b
SM
25652020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2566
2567 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2568 bool.
2569
53d5a2a5
TV
25702020-08-17 Tom de Vries <tdevries@suse.de>
2571
2572 PR gdb/26393
2573 * gdbtypes.c (dump_dynamic_prop): New function.
2574 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2575
547ce8f0
TV
25762020-08-15 Tom de Vries <tdevries@suse.de>
2577
2578 PR backtrace/26390
2579 * stack.c (print_frame_args): Temporarily set the selected
2580 frame to FRAME while printing the frame's arguments.
2581
6ea815e7
PFC
25822020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2583
2584 PR breakpoints/26385
2585 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2586 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2587
6e562fa3
PFC
25882020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2589
2590 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2591 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2592 and >= to check return value instead of == -1 and != -1.
2593
d369b608
SM
25942020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2595
2596 * utils.h (class gdb_argv) <as_array_view>: New method.
2597 * utils.c (gdb_argv_as_array_view_test): New.
2598 (_initialize_utils): Register selftest.
2599 * maint.c (maintenance_selftest): Use the new method.
2600
b31488a3
KR
26012020-08-13 Kamil Rytarowski <n54@gmx.com>
2602
2603 * target.h (supports_dumpcore, dumpcore): New
2604 function declarations.
2605 * target.c (supports_dumpcore, dumpcore): New
2606 functions.
2607 * target-delegates.c: Rebuild.
2608 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2609 and target_dumpcore ().
2610
002a3166
AM
26112020-08-13 Aaron Merey <amerey@redhat.com>
2612
2613 * debuginfod-support.c: Replace global variables with user_data.
2614
ece5bc8a
SM
26152020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2616
2617 * maint.c (maintenance_selftest): Split args and pass array_view
2618 to run_tests.
2619
6d8a0a5e
LM
26202020-08-12 Luis Machado <luis.machado@linaro.org>
2621
2622 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2623 type's length.
2624 Use %s and pulongest to print the length.
2625
7cf663a9
PA
26262020-08-12 Pedro Alves <palves@redhat.com>
2627
2628 * NEWS: Move "Multi-target debugging support" item to the
2629 "Changes since GDB 9" section.
2630
27c7b875
PA
26312020-08-12 Pedro Alves <palves@redhat.com>
2632
2633 PR gdb/26336
2634 * progspace.c (program_space::remove_objfile): Invalidate the
2635 frame cache.
2636
1796a2a1
TV
26372020-08-11 Tom de Vries <tdevries@suse.de>
2638
2639 * MAINTAINERS: Mark ms1 as deleted.
2640
f8e3fe0d
LM
26412020-08-10 Luis Machado <luis.machado@linaro.org>
2642
2643 PR gdb/26310
2644
2645 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2646 act accordingly.
2647 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2648 movz/str/stur/stp skipping behavior.
2649
cc308722
LM
26502020-08-10 Luis Machado <luis.machado@linaro.org>
2651
2652 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2653 struct user_sve_header instead of struct sve_context.
2654
041d9819
SM
26552020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2656
2657 * read.h (dwarf2_fetch_die_loc_sect_off,
2658 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2659 `void *` parameter with function_view.
2660 * read.c (dwarf2_fetch_die_loc_sect_off,
2661 dwarf2_fetch_die_loc_cu_off): Likewise.
2662 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2663 (per_cu_dwarf_call): Adjust.
2664 (get_frame_address_in_block_wrapper): Remove.
2665 (indirect_synthetic_pointer): Adjust.
2666 (get_ax_pc): Remove.
2667 (dwarf2_compile_expr_to_ax): Adjust.
2668
38f8aa06
TV
26692020-08-08 Tom de Vries <tdevries@suse.de>
2670
2671 PR build/26344
2672 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2673 constructor.
2674 * regcache.c (get_thread_arch_aspace_regcache): Same.
2675
a52b3ae2
TT
26762020-08-07 Tom Tromey <tromey@adacore.com>
2677
2678 * ravenscar-thread.c
2679 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2680 New method.
2681 (ravenscar_thread_target::wait): Check
2682 runtime_initialized.
2683 (ravenscar_thread_target::prepare_to_store)
2684 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2685 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2686 (ravenscar_thread_target::stopped_by_watchpoint)
2687 (ravenscar_thread_target::stopped_data_address)
2688 (ravenscar_thread_target::core_of_thread): Use
2689 scoped_restore_current_thread and
2690 set_base_thread_from_ravenscar_task.
2691
0e29517d
TT
26922020-08-07 Tom Tromey <tromey@adacore.com>
2693
2694 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2695
592f9bd7
TT
26962020-08-07 Tom Tromey <tromey@adacore.com>
2697
2698 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2699 update_inferior_ptid before update_thread_list.
2700 (temporarily_change_regcache_ptid): New class.
2701 (ravenscar_thread_target::fetch_registers)
2702 (ravenscar_thread_target::store_registers)
2703 (ravenscar_thread_target::prepare_to_store): Use base thread when
2704 forwarding operation.
2705
39e2018a
TT
27062020-08-07 Tom Tromey <tromey@adacore.com>
2707
2708 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2709 "is_pid" case.
2710
2080266b
TT
27112020-08-07 Tom Tromey <tromey@adacore.com>
2712
2713 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2714 New methods.
2715 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2716 first.
2717 (ravenscar_thread_target::add_thread): Rename from
2718 ravenscar_add_thread.
2719 (ravenscar_thread_target::update_thread_list): Use a lambda.
2720 (ravenscar_thread_target::xfer_partial): New method.
2721
78c02f21
TT
27222020-08-07 Tom Tromey <tromey@adacore.com>
2723
2724 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2725 gdb::function_view.
2726 (iterate_over_live_ada_tasks): Change type of argument.
2727 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2728 of argument.
2729
d5d833af
TT
27302020-08-07 Tom Tromey <tromey@adacore.com>
2731
2732 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2733 Remove.
2734 (ravenscar_thread_target::extra_thread_info): Remove.
2735 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2736 defer to target beneath for non-Ravenscar threads.
2737
a8ac85bb
TT
27382020-08-07 Tom Tromey <tromey@adacore.com>
2739
2740 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2741 get_base_thread_from_ravenscar_task>: Now methods.
2742 <m_cpu_map>: New member.
2743 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2744 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2745 (ravenscar_thread_target::task_is_currently_active): Update.
2746 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2747 Now a method.
2748 (ravenscar_thread_target::add_active_thread): Put initial thread
2749 into the m_cpu_map.
2750
550ab58d
TT
27512020-08-07 Tom Tromey <tromey@adacore.com>
2752
2753 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2754 event_ptid.
2755
e9546579
TT
27562020-08-07 Tom Tromey <tromey@adacore.com>
2757
2758 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2759 runtime_initialized.
2760
3d4470e5
TT
27612020-08-07 Tom Tromey <tromey@adacore.com>
2762
2763 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2764 add_active_thread.
2765 (ravenscar_thread_target::add_active_thread): Now public.
2766 (ravenscar_inferior_created): Call add_active_thread after pushing
2767 the target.
2768
888bdb2b
SM
27692020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2770
2771 * regcache.c (ptid_regcache_map): New type.
2772 (target_ptid_regcache_map): New type.
2773 (regcaches): Change type to target_ptid_regcache_map.
2774 (get_thread_arch_aspace_regcache): Update to regcaches' new
2775 type.
2776 (regcache_thread_ptid_changed): Likewise.
2777 (registers_changed_ptid): Likewise.
2778 (regcaches_size): Likewise.
2779 (regcaches_test): Update.
2780 (regcache_thread_ptid_changed): Update.
2781 * regcache.h (regcache_up): New type.
2782 * gdbsupport/ptid.h (hash_ptid): New struct.
2783
b161a60d
SM
27842020-08-07 Simon Marchi <simon.marchi@efficios.com>
2785
2786 * observable.h (thread_ptid_changed): Add parameter
2787 `process_stratum_target *`.
2788 * infrun.c (infrun_thread_ptid_changed): Add parameter
2789 `process_stratum_target *` and use it.
2790 (selftests): New namespace.
2791 (infrun_thread_ptid_changed): New function.
2792 (_initialize_infrun): Register selftest.
2793 * regcache.c (regcache_thread_ptid_changed): Add parameter
2794 `process_stratum_target *` and use it.
2795 (regcache_thread_ptid_changed): New function.
2796 (_initialize_regcache): Register selftest.
2797 * thread.c (thread_change_ptid): Pass target to
2798 thread_ptid_changed observable.
2799
d2854d8d
CT
28002020-08-06 Caroline Tice <cmtice@google.com>
2801
fe4c3d43
SM
2802 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2803 (struct dwp_sections): Update field comments. Add loclists and
2804 rnglists fields.
2805 (struct virtual_v2_dwo_sections): Rename struct to
2806 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2807 size & offset fields for loclists and rnglists.
2808 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2809 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2810 skipping dummy type units.
2811 (create_dwp_hash_table): Update the large comment above the function to
2812 discuss Version 5 DWP files as well, with references. Update all the
2813 version checks in the function to check for version 5 as well. Add new
2814 section at the end to create dwp hash table for version 5.
2815 (create_dwp_v2_section): Rename function to
2816 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2817 Add V5 to error message text.
2818 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2819 into calls to create_dwp_v2_or_v5_section.
2820 (create_dwo_unit_in_dwp_v5): New function.
2821 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2822 check for version2; add else clause to handle version 5.
2823 (open_and_init_dwo_file): Add code to check dwarf version & only call
2824 create_debug_types_hash_table (with sections.types) if version is not 5;
2825 else call create_debug_type_hash_table, with sections.info.
2826 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2827 version 5.
2828 (dwarf2_locate_v5_dwp_sections): New function.
2829 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2830 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2831
159ed7d9
SM
28322020-08-06 Simon Marchi <simon.marchi@efficios.com>
2833
2834 * regcache.h (class regcache): Remove friend
2835 registers_changed_ptid.
2836 <regcache_thread_ptid_changed>: Remove.
2837 <regcaches>: Remove.
2838 * regcache.c (regcache::regcaches): Rename to...
2839 (regcaches): ... this. Make static.
2840 (get_thread_arch_aspace_regcache): Update.
2841 (regcache::regcache_thread_ptid_changed): Rename to...
2842 (regcache_thread_ptid_changed): ... this. Update.
2843 (class regcache_access): Remove.
2844 (regcaches_test): Update.
2845 (_initialize_regcache): Update.
2846 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2847 <forward_list>.
2848
174981ae
SM
28492020-08-06 Simon Marchi <simon.marchi@efficios.com>
2850
2851 * regcache.h (class regcache) <current_regcache>: Rename to...
2852 <regcaches>: ... this. Move doc here.
2853 * regcache.c (regcache::current_regcache) Rename to...
2854 (regcache::regcaches): ... this. Move doc to header.
2855 (get_thread_arch_aspace_regcache): Update.
2856 (regcache::regcache_thread_ptid_changed): Update.
2857 (registers_changed_ptid): Update.
2858 (class regcache_access) <current_regcache_size>: Rename to...
2859 <regcaches_size>: ... this.
2860 (current_regcache_test): Rename to...
2861 (regcaches_test): ... this.
2862 (_initialize_regcache): Update.
2863
ed908db6
VC
28642020-08-06 Victor Collod <vcollod@nvidia.com>
2865
2866 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2867
b5582ab7
KB
28682020-08-05 Kevin Buettner <kevinb@redhat.com>
2869
2870 * corelow.c (core_target::build_file_mappings): Don't output
2871 null pathname in warning.
2872
ea946b86
SM
28732020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2874
2875 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2876 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2877 gdb.dwarf2/dw2-single-line-discriminators.exp,
2878 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2879
57d02173
TT
28802020-08-05 Tom Tromey <tromey@adacore.com>
2881
2882 PR rust/26197:
2883 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2884 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2885 Fix off-by-one and type size errors in ordinary case.
2886
5555c86d
TV
28872020-08-05 Tom de Vries <tdevries@suse.de>
2888
2889 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2890 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2891
97916bfe
SM
28922020-08-04 Simon Marchi <simon.marchi@efficios.com>
2893
2894 * frame.h (frame_id_p): Return bool.
2895 (frame_id_artificial_p): Return bool.
2896 (frame_id_eq): Return bool.
2897 (has_stack_frames): Return bool.
2898 (get_selected_frame): Fix typo in comment.
2899 (get_frame_pc_if_available): Return bool.
2900 (get_frame_address_in_block_if_available): Return bool.
2901 (get_frame_func_if_available): Return bool.
2902 (read_frame_register_unsigned): Return bool.
2903 (get_frame_register_bytes): Return bool.
2904 (safe_frame_unwind_memory): Return bool.
2905 (deprecated_frame_register_read): Return bool.
2906 (frame_unwinder_is): Return bool.
2907 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2908 bool.
2909 <this_id::p>: Likewise.
2910 <prev_p>: Likewise.
2911 (frame_stash_add): Return bool.
2912 (get_frame_id): Use bool.
2913 (frame_id_build_special) Use bool.
2914 (frame_id_build_unavailable_stack): Use bool.
2915 (frame_id_build): Use bool.
2916 (frame_id_p): Return bool, use true/false instead of 1/0.
2917 (frame_id_artificial_p): Likewise.
2918 (frame_id_eq): Likewise.
2919 (frame_id_inner): Likewise.
2920 (get_frame_func_if_available): Likewise.
2921 (read_frame_register_unsigned): Likewise.
2922 (deprecated_frame_register_read): Likewise.
2923 (get_frame_register_bytes): Likewise.
2924 (has_stack_frames): Likewise.
2925 (inside_main_func): Likewise.
2926 (inside_entry_func): Likewise.
2927 (get_frame_pc_if_available): Likewise.
2928 (get_frame_address_in_block_if_available): Likewise.
2929 (frame_unwinder_is): Likewise.
2930 (safe_frame_unwind_memory): Likewise.
2931 (frame_unwind_arch): Likewise.
2932
fedfee88
SM
29332020-08-04 Simon Marchi <simon.marchi@efficios.com>
2934
2935 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2936 type to cached_copy_status.
2937 (fprintf_frame): Adjust.
2938 (get_frame_func_if_available): Adjust.
2939 (frame_cleanup_after_sniffer): Adjust.
2940
6cfa9b59
MW
29412020-08-04 Mark Wielaard <mark@klomp.org>
2942
2943 * MAINTAINERS (Write After Approval): Update email address.
2944
66d6346b
SM
29452020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2946
2947 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2948 dynamic_prop::const_val.
2949
8a6d5e35
SM
29502020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2951
2952 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2953 dynamic_prop::kind.
2954
51d6067d
SM
29552020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2956
2957 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2958
b26e2ae7
JM
29592020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2960
2961 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2962
39791af2
JM
29632020-08-04 Weimin Pan <weimin.pan@oracle.com>
2964 Jose E. Marchesi <jose.marchesi@oracle.com>
2965
2966 * configure.tgt: Add entry for bpf-*-*.
2967 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2968 (ALLDEPFILES): Add bpf-tdep.c.
2969 * bpf-tdep.c: New file.
2970 * MAINTAINERS: Add bpf target and maintainer.
2971 * NEWS: Mention the support for the new target.
2972
521894aa
TV
29732020-08-04 Tom de Vries <tdevries@suse.de>
2974
2975 PR symtab/23270
2976 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2977 Error.
2978
5d6356e9
JB
29792020-08-03 John Baldwin <jhb@FreeBSD.org>
2980
2981 * syscalls/freebsd.xml: Regenerate.
2982
0cf82b81
JB
29832020-08-03 John Baldwin <jhb@FreeBSD.org>
2984
2985 * syscalls/update-freebsd.sh: Fix usage and year range.
2986
8f34b746
TV
29872020-08-03 Tom de Vries <tdevries@suse.de>
2988
2989 PR symtab/26333
2990 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2991 DW_LNE_lo_user/DW_LNE_hi_user range.
2992
5e500d33
SM
29932020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2994
2995 PR ada/26318
2996 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2997 kind.
2998
78319c15
TBA
29992020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3000
3001 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3002
4c55e970
TBA
30032020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3004
3005 * breakpoint.c (set_breakpoint_condition): Update the condition
3006 expressions after checking that the input condition string parses
3007 successfully and does not contain junk at the end.
3008
1e620590
TBA
30092020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3010
3011 * breakpoint.c (set_breakpoint_condition): Update the
3012 condition string after parsing the new condition successfully.
3013
c8693053
RO
30142020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3015
3016 * proc-api.c (_STRUCTURED_PROC): Don't define.
3017 * proc-events.c: Likewise.
3018 * proc-flags.c: Likewise.
3019 * proc-why.c: Likewise.
3020 * procfs.c: Likewise.
3021
3022 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3023 * configure, config.in: Regenerate.
3024
5a99adb8
TV
30252020-07-30 Tom de Vries <tdevries@suse.de>
3026
3027 PR build/26320
3028 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3029 m_red/m_green/m_blue in a union.
3030
8ba83e91
TV
30312020-07-29 Tom de Vries <tdevries@suse.de>
3032
3033 PR tdep/26280
3034 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3035
f75a0693
AB
30362020-07-28 Tom Tromey <tromey@adacore.com>
3037
3038 PR symtab/26270:
3039 * symtab.h (find_pc_partial_function_sym): Declare.
3040 * cli/cli-cmds.c (disassemble_command): Use
3041 find_pc_partial_function_sym. Check asm_demangle.
3042 * blockframe.c (cache_pc_function_sym): New global.
3043 (cache_pc_function_name): Remove.
3044 (clear_pc_function_cache): Update.
3045 (find_pc_partial_function_sym): New function, from
3046 find_pc_partial_function.
3047 (find_pc_partial_function): Rewrite using
3048 find_pc_partial_function_sym.
3049
16f3242c
TT
30502020-07-28 Tom Tromey <tromey@adacore.com>
3051
3052 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3053 help. Add usage.
3054
4888741a
TT
30552020-07-28 Tom Tromey <tromey@adacore.com>
3056
3057 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3058 <DW_OP_GNU_variable_value>: Cast to address type.
3059
4d46f402
KR
30602020-07-28 Kamil Rytarowski <n54@gmx.com>
3061
3062 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3063 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3064 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3065 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3066 (nbsd_get_siginfo_type): New.
3067 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3068 (_initialize_nbsd_tdep): New.
3069
d70f978b
L
30702020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3071
3072 PR binutils/26301
3073 * configure: Regenerated.
3074
377170fa
L
30752020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3076
3077 PR binutils/26301
3078 * configure: Regenerated.
3079
43d5901d
AB
30802020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3081
3082 * python/py-frame.c: Remove 'user-regs.h' include.
3083 (frapy_read_register): Rewrite to make use of
3084 gdbpy_parse_register_id.
3085 * python/py-registers.c (gdbpy_parse_register_id): New function,
3086 moved here from python/py-unwind.c. Updated the return type, and
3087 also accepts register descriptor objects.
3088 * python/py-unwind.c: Remove 'user-regs.h' include.
3089 (pyuw_parse_register_id): Moved to python/py-registers.c.
3090 (unwind_infopy_add_saved_register): Update to use
3091 gdbpy_parse_register_id.
3092 (pending_framepy_read_register): Likewise.
3093 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3094
14fa8fb3
AB
30952020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3096
3097 * python/py-registers.c: Add 'user-regs.h' include.
3098 (register_descriptor_iter_find): New function.
3099 (register_descriptor_iterator_object_methods): New static global
3100 methods array.
3101 (register_descriptor_iterator_object_type): Add pointer to methods
3102 array.
3103
ddce1758
JB
31042020-07-27 John Baldwin <jhb@FreeBSD.org>
3105
3106 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3107 for all architectures on FreeBSD 11.3 and later.
3108
a4089f52
TT
31092020-07-27 Tom Tromey <tromey@adacore.com>
3110
3111 * gcore.h (load_corefile): Don't declare.
3112
95420d30
TV
31132020-07-27 Tom de Vries <tdevries@suse.de>
3114
3115 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3116 * config.in: Regenerate.
3117 * configure: Regenerate.
3118
05a6b8c2
EZ
31192020-07-26 Eli Zaretskii <eliz@gnu.org>
3120
3121 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3122 ws2tcpip.h. When checking whether socklen_t type is defined, use
3123 ws2tcpip.h if it is available and sys/socket.h isn't.
3124 * configure: Regenerate.
3125 * config.in: Regenerate.
3126
e79eb02f
AB
31272020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3128
3129 PR fortran/23051
3130 PR fortran/26139
3131 * valops.c (value_ind): Pass address to
3132 readjust_indirect_value_type.
3133 * value.c (readjust_indirect_value_type): Make parameter
3134 non-const, and add extra address parameter. Resolve original type
3135 before using it.
3136 * value.h (readjust_indirect_value_type): Update function
3137 signature and comment.
3138
876518dd
TV
31392020-07-25 Tom de Vries <tdevries@suse.de>
3140
3141 PR symtab/26243
3142 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3143 entries.
3144
f6720b1c
AM
31452020-07-24 Aaron Merey <amerey@redhat.com>
3146
3147 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3148 * configure: Rebuild.
3149
513487e1
KB
31502020-07-23 Kevin Buettner <kevinb@redhat.com>
3151
3152 PR corefiles/26294
3153 * corelow.c (_initialize_corelow): Add period to help text
3154 for "maintenance print core-file-backed-mappings".
3155
e7bc9db8
PA
31562020-07-23 Pedro Alves <pedro@palves.net>
3157
3158 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3159 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3160 meanwhile.
3161 * frame.c (frame_cache_generation, get_frame_cache_generation):
3162 New.
3163 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3164 (get_prev_frame_if_no_cycle): On exception, don't touch
3165 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3166 * frame.h (get_frame_cache_generation): Declare.
3167
90fcc466
TV
31682020-07-23 Tom de Vries <tdevries@suse.de>
3169
3170 PR tui/26282
3171 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3172 New default constructor.
3173
78344df7
AB
31742020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3175
3176 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3177 exclude non-statement entries.
3178
b089853a
KB
31792020-07-22 Kevin Buettner <kevinb@redhat.com>
3180
3181 * NEWS (New commands): Mention new command
3182 "maintenance print core-file-backed-mappings".
3183
09c2f5d4
KB
31842020-07-22 Kevin Buettner <kevinb@redhat.com>
3185
3186 * corelow.c (gdbcmd.h): Include.
3187 (core_target::info_proc_mappings): New method.
3188 (get_current_core_target): New function.
3189 (maintenance_print_core_file_backed_mappings): New function.
3190 (_initialize_corelow): Add core-file-backed-mappings to
3191 "maint print" commands.
3192
9c5ec5c2 31932020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3194
9c5ec5c2
KB
3195 * linux-tdep.c (dump_note_entry_p): New function.
3196 (linux_dump_mapping_p_ftype): New typedef.
3197 (linux_find_memory_regions_full): Add new parameter,
3198 should_dump_mapping_p.
3199 (linux_find_memory_regions): Adjust call to
3200 linux_find_memory_regions_full.
3201 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3202 call to linux_find_memory_regions_full.
3203
db082f59
KB
32042020-07-22 Kevin Buettner <kevinb@redhat.com>
3205
3206 * corelow.c (solist.h, unordered_map): Include.
3207 (class core_target): Add field m_core_file_mappings and
3208 method build_file_mappings.
3209 (core_target::core_target): Call build_file_mappings.
3210 (core_target::~core_target): Free memory associated with
3211 m_core_file_mappings.
3212 (core_target::build_file_mappings): New method.
3213 (core_target::xfer_partial): Use m_core_file_mappings
3214 for memory transfers.
3215 * linux-tdep.c (linux_read_core_file_mappings): New
3216 function.
3217 (linux_core_info_proc_mappings): Rewrite to use
3218 linux_read_core_file_mappings.
3219 (linux_init_abi): Register linux_read_core_file_mappings.
3220
7e183d27
KB
32212020-07-22 Kevin Buettner <kevinb@redhat.com>
3222
3223 * arch-utils.c (default_read_core_file_mappings): New function.
3224 * arch-utils.c (default_read_core_file_mappings): Declare.
3225 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3226 * gdbarch.h, gdbarch.c: Regenerate.
3227
2735d421
KB
32282020-07-22 Kevin Buettner <kevinb@redhat.com>
3229
3230 PR corefiles/25631
3231 * corelow.c (core_target:xfer_partial): Revise
3232 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3233 case after first checking the stratum beneath the core
3234 target.
3235 (has_all_memory): Return true.
3236 * target.c (raw_memory_xfer_partial): Revise comment
3237 regarding use of has_all_memory.
3238
e56cb451
KB
32392020-07-22 Kevin Buettner <kevinb@redhat.com>
3240
3241 * exec.h (section_table_xfer_memory): Revise declaration,
3242 replacing section name parameter with an optional callback
3243 predicate.
3244 * exec.c (section_table_xfer_memory): Likewise.
3245 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3246 of section_table_xfer_memory.
3247
32fa152e
TT
32482020-07-22 Tom Tromey <tromey@adacore.com>
3249
3250 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3251 lookup_symbol_search_name.
3252
a67a1c41
AB
32532020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3256 redundant local variable.
3257 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3258 reference, not pointer, update code accordingly.
3259
a7b4ff4f
SM
32602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3261 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3262
3263 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3264 * jit.c (jit_breakpoint_re_set_internal): Use the
3265 `skip_jit_symbol_lookup` field.
3266
2340e834
SM
32672020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3268 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3269
3270 * jit.c (jit_read_descriptor): Define the descriptor address once,
3271 use twice.
3272 (jit_breakpoint_deleted): Move the declaration of the loop variable
3273 `iter` into the loop header.
3274 (jit_breakpoint_re_set_internal): Move the declaration of the local
3275 variable `objf_data` to the first point of definition.
3276 (jit_event_handler): Move the declaration of local variables
3277 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3278 Rename `objf` to `jited`.
3279
c1072906
SM
32802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3281
3282 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3283 Remove.
3284 * jit.c (get_jiter_objfile_data): Update.
3285
c8474dc3
TBA
32862020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3287 Simon Marchi <simon.marchi@polymtl.ca>
3288
3289 * jit.c (struct jit_program_space_data): Remove.
3290 (jit_program_space_key): Remove.
3291 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3292 stuff.
3293 (get_jit_program_space_data): Remove.
3294 (jit_breakpoint_deleted): Iterate on all of the program space's
3295 objfiles.
3296 (jit_inferior_init): Likewise.
3297 (jit_breakpoint_re_set_internal): Likewise. Also change return
3298 type to void.
3299 (jit_breakpoint_re_set): Pass current_program_space to
3300 jit_breakpoint_re_set_internal.
3301
77208eb7
SM
33022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3303
3304 * jit.h (struct jiter_objfile_data) <cached_code_address,
3305 jit_breakpoint>: Move to here from ...
3306 * jit.c (jit_program_space_data): ... here.
3307 (jiter_objfile_data::~jiter_objfile_data): Update.
3308 (jit_breakpoint_deleted): Update.
3309 (jit_breakpoint_re_set_internal): Update.
3310
8c1c720f
SM
33112020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3312
3313 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3314 checks.
3315 (jit_read_descriptor): Remove NULL check.
3316 (jit_event_handler): Add an assertion.
3317
0e74a041
SM
33182020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3319
3320 * jit.h (struct jit_objfile_data): Split into...
3321 (struct jiter_objfile_data): ... this ...
3322 (struct jited_objfile_data): ... and this.
3323 * objfiles.h (struct objfile) <jit_data>: Remove.
3324 <jiter_data, jited_data>: New fields.
3325 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3326 (jiter_objfile_data::~jiter_objfile_data): ... this.
3327 (get_jit_objfile_data): Rename to ...
3328 (get_jiter_objfile_data): ... this.
3329 (add_objfile_entry): Update.
3330 (jit_read_descriptor): Use get_jiter_objfile_data.
3331 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3332 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3333 (jit_inferior_exit_hook): Use objfile's jited_data field.
3334
238b5c9f
SM
33352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3336
3337 * jit.h: Forward-declare `struct minimal_symbol`.
3338 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3339 constructor, destructor, and an objfile* field.
3340 * jit.c (jit_objfile_data): Remove.
3341 (struct jit_objfile_data): Migrate from here to jit.h.
3342 (jit_objfile_data::~jit_objfile_data): New destructor
3343 implementation with code moved from free_objfile_data.
3344 (free_objfile_data): Delete.
3345 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3346 (jit_find_objf_with_entry_addr): Ditto.
3347 (jit_inferior_exit_hook): Ditto.
3348 (_initialize_jit): Remove the call to
3349 register_objfile_data_with_cleanup.
3350 * objfiles.h (struct objfile) <jit_data>: New field.
3351
fe053b9e
TBA
33522020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3353
3354 * jit.h: Forward-declare `struct objfile`.
3355 (jit_event_handler): Add a second parameter, the JITer objfile.
3356 * jit.c (jit_read_descriptor): Change the signature to take the
3357 JITer objfile as an argument instead of the jit_program_space_data.
3358 (jit_inferior_init): Update the call to jit_read_descriptor.
3359 (jit_event_handler): Use the new JITer objfile argument when calling
3360 jit_read_descriptor.
3361 * breakpoint.c (handle_jit_event): Update the call to
3362 jit_event_handler to pass the JITer objfile.
3363
4cec0c66
JB
33642020-07-21 John Baldwin <jhb@FreeBSD.org>
3365
3366 * gdbarch.c: Regenerate.
3367 * gdbarch.h: Regenerate.
3368 * gdbarch.sh (handle_segmentation_fault): Remove method.
3369 * infrun.c (handle_segmentation_fault): Remove.
3370 (print_signal_received_reason): Remove call to
3371 handle_segmentation_fault.
3372
0e42f66a
JB
33732020-07-21 John Baldwin <jhb@FreeBSD.org>
3374
3375 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3376 Rename to sparc64_linux_report_signal_info and add siggnal
3377 argument.
3378 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3379 instead of sparc64_linux_handle_segmentation_fault.
3380
77bdfeb2
JB
33812020-07-21 John Baldwin <jhb@FreeBSD.org>
3382
3383 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3384 i386_linux_report_signal_info instead of
3385 i386_linux_handle_segmentation_fault.
3386 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3387 to i386_linux_report_signal_info and add siggnal argument.
3388 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3389 of i386_linux_handle_segmentation_fault.
3390 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3391 to i386_linux_report_signal_info and add siggnal argument.
3392
ad97bfc5
JB
33932020-07-21 John Baldwin <jhb@FreeBSD.org>
3394
3395 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3396 hook if present.
3397
272bb05c
JB
33982020-07-21 John Baldwin <jhb@FreeBSD.org>
3399
3400 * gdbarch.c: Regenerate.
3401 * gdbarch.h: Regenerate.
3402 * gdbarch.sh (report_signal_info): New method.
3403 * infrun.c (print_signal_received_reason): Invoke gdbarch
3404 report_signal_info hook if present.
3405
baf8791e
AB
34062020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3407
3408 * python/py-registers.c : Add 'unordered_map' include.
3409 (gdbpy_new_reggroup): Renamed to...
3410 (gdbpy_get_reggroup): ...this. Update to only create register
3411 group descriptors when needed.
3412 (gdbpy_reggroup_iter_next): Update.
3413
f7306dac
AB
34142020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3415
3416 * python/py-registers.c (gdbpy_register_object_data): New static
3417 global.
3418 (gdbpy_register_object_data_init): New function.
3419 (gdbpy_new_register_descriptor): Renamed to...
3420 (gdbpy_get_register_descriptor): ...this, and update to reuse
3421 existing register descriptors where possible.
3422 (gdbpy_register_descriptor_iter_next): Update.
3423 (gdbpy_initialize_registers): Register new gdbarch data.
3424
05c309a8
SM
34252020-07-21 Simon Marchi <simon.marchi@efficios.com>
3426
3427 * linux-nat.c (stopped_pids): Make static.
3428
d1fd641e
SM
34292020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3430
3431 PR ada/26235
3432 * gdbtypes.c (ada_discrete_type_low_bound,
3433 ada_discrete_type_high_bound): Handle undefined bounds.
3434
1de14d77
KR
34352020-07-21 Kamil Rytarowski <n54@gmx.com>
3436
3437 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3438 declaration.
3439 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3440 function.
3441
ed810cc7
JB
34422020-07-20 John Baldwin <jhb@FreeBSD.org>
3443
3444 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3445 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3446 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3447 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3448 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3449 method.
3450
ae5369e7
LC
34512020-07-20 Ludovic Courtès <ludo@gnu.org>
3452
3453 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3454 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3455 which are deprecated in Guile 3.0.
3456 * configure.ac (try_guile_versions): Add "guile-3.0".
3457 * configure (try_guile_versions): Regenerate.
3458 * NEWS: Update entry.
3459
68cf161c
LC
34602020-07-20 Ludovic Courtès <ludo@gnu.org>
3461 Doug Evans <dje@google.com>
3462
3463 PR gdb/21104
3464 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3465 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3466 USING_GUILE_BEFORE_2_2.
3467 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3468 Change type to 'scm_t_port_type *'.
3469 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3470 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3471 parameter and honor it. Update callers.
3472 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3473 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3474 functions.
3475 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3476 USING_GUILE_BEFORE_2_2.
3477 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3478 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3479 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3480 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3481 and 'SCM_PORT_TYPE'.
3482 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3483 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3484 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3485 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3486 [!USING_GUILE_BEFORE_2_2]: New functions.
3487 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3488 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3489 'gdbscm_memory_port_read'.
3490 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3491 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3492 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3493 function.
3494 (ioscm_init_memory_port): Remove.
3495 (ioscm_init_memory_port_stream): New function
3496 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3497 function.
3498 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3499 Return scm_from_uint (0).
3500 (gdbscm_set_memory_port_read_buffer_size_x)
3501 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3502 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3503 Return scm_from_uint (0).
3504 (gdbscm_set_memory_port_write_buffer_size_x)
3505 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3506 * configure.ac (try_guile_versions): Add "guile-2.2".
3507 * configure: Regenerate.
3508 * NEWS: Add entry.
3509
aee91db3
TT
35102020-07-18 Tom Tromey <tom@tromey.com>
3511
3512 * linux-nat.c (linux_multi_process): Remove.
3513 (linux_nat_target::supports_multi_process): Return true.
3514
0e267416
AB
35152020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3516
3517 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3518 (riscv_lookup_target_description): Return pointer out of
3519 unique_ptr.
3520 * target-descriptions.c (allocate_target_description): Add
3521 comment.
3522 (target_desc_deleter::operator()): Likewise.
3523 * target-descriptions.h (struct target_desc_deleter): Moved to
3524 gdbsupport/tdesc.h.
3525 (target_desc_up): Likewise.
3526
f80c8ec4
TT
35272020-07-17 Tom Tromey <tromey@adacore.com>
3528
3529 * linux-nat.c (linux_nat_target::supports_non_stop)
3530 (linux_nat_target::always_non_stop_p): Use "true".
3531 (linux_nat_target::supports_disable_randomization): Use "true" and
3532 "false".
3533
d0ce17d8
CT
35342020-07-16 Caroline Tice <cmtice@google.com>
3535
3536 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3537 (RNGLIST_HEADER_SIZE64): New constant definition.
3538 (struct dwop_section_names): Add rnglists_dwo.
3539 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3540 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3541 (struct dwo_sections): Add rnglists field.
3542 (read_attribut_reprocess): Add tag parameter.
3543 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3544 (cu_debug_rnglists_section): New function (decl & definition).
3545 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3546 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3547 die whose range is being checked; get rnglist section from
3548 cu_debug_rnglists_section, to get from either objfile or dwo file as
3549 appropriate. Add cases for DW_RLE_base_addressx,
3550 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3551 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3552 test inside if-condition and updating complaint message.
3553 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3554 dwarf2_rnglists_process.
3555 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3556 dwarf2_ranges_process.
3557 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3558 need_ranges_base and update comment appropriately. Also pass die tag
3559 to dwarf2_ranges_read.
3560 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3561 need_ranges_base and update comment appropriately. Also pass die tag
3562 to dwarf2_ranges_process.
3563 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3564 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3565 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3566 need_ranges_base and update comment appropriately. Also pass die tag
3567 to read_attribute_reprocess and dwarf2_ranges_read.
3568 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3569 and update function comment appropriately.
3570 (read_loclist_index): Call read_loclists_rnglists_header instead of
3571 read_loclist_header.
3572 (read_rnglist_index): New function.
3573 (read_attribute_reprocess): Add tag parameter. Add code for
3574 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3575 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3576
3dcc261c
AB
35772020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3578
3579 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3580 being resolved.
3581
ccb9eba6
AB
35822020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3583
3584 * arch-utils.c (show_architecture): Update formatting of messages.
3585
cf88be68
SM
35862020-07-12 Simon Marchi <simon.marchi@efficios.com>
3587
3588 * gdbtypes.h (struct type) <bounds>: Handle array and string
3589 types.
3590 * ada-lang.c (assign_aggregate): Use type::bounds on
3591 array/string type.
3592 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3593 * c-varobj.c (c_number_of_children): Likewise.
3594 (c_describe_child): Likewise.
3595 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3596 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3597 (f_type_print_base): Likewise.
3598 * f-valprint.c (f77_array_offset_tbl): Likewise.
3599 (f77_get_upperbound): Likewise.
3600 (f77_print_array_1): Likewise.
3601 * guile/scm-type.c (gdbscm_type_range): Likewise.
3602 * m2-typeprint.c (m2_array): Likewise.
3603 (m2_is_long_set_of_type): Likewise.
3604 * m2-valprint.c (get_long_set_bounds): Likewise.
3605 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3606 * python/py-type.c (typy_range): Likewise.
3607 * rust-lang.c (rust_internal_print_type): Likewise.
3608 * type-stack.c (type_stack::follow_types): Likewise.
3609 * valarith.c (value_subscripted_rvalue): Likewise.
3610 * valops.c (value_cast): Likewise.
3611
509971ae
SM
36122020-07-12 Simon Marchi <simon.marchi@efficios.com>
3613
3614 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3615 callers to use the equivalent accessor methods.
3616
107406b7
SM
36172020-07-12 Simon Marchi <simon.marchi@efficios.com>
3618
3619 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3620 (struct type) <bit_stride>: New method.
3621 (TYPE_BIT_STRIDE): Remove.
3622 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3623
bb789949
SM
36242020-07-12 Simon Marchi <simon.marchi@efficios.com>
3625
3626 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3627 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3628 callers to use the equivalent accessor methods instead.
3629
39498edb
SM
36302020-07-12 Simon Marchi <simon.marchi@efficios.com>
3631
3632 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3633 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3634 callers to use the equivalent accessor methods instead.
3635
3b606f38
SM
36362020-07-12 Simon Marchi <simon.marchi@efficios.com>
3637
3638 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3639 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3640 to use dynamic_prop::kind.
3641
064d9cb9
SM
36422020-07-12 Simon Marchi <simon.marchi@efficios.com>
3643
3644 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3645 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3646 to get the bound property's kind and check against
3647 PROP_UNDEFINED.
3648
5537ddd0
SM
36492020-07-12 Simon Marchi <simon.marchi@efficios.com>
3650
3651 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3652 all callers to use type::range_bounds followed by
3653 dynamic_prop::{low,high}.
3654
8c2e4e06
SM
36552020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3656
3657 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3658 const_val, set_const_val, baton, set_locexpr, set_loclist,
3659 set_addr_offset, variant_parts, set_variant_parts,
3660 original_type, set_original_type>: New methods.
3661 <kind>: Rename to...
3662 <m_kind>: ... this. Update all users to use the new methods
3663 instead.
3664 <data>: Rename to...
3665 <m_data>: ... this. Update all users to use the new methods
3666 instead.
3667
7c6f2712
SM
36682020-07-12 Simon Marchi <simon.marchi@efficios.com>
3669
3670 * gdbtypes.c (get_discrete_bounds): Return failure if
3671 the range type's bounds are not both defined and constant
3672 values.
3673 (get_array_bounds): Update comment. Remove undefined bound check.
3674
599088e3
SM
36752020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3676
3677 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3678 the type::bounds method directly.
3679
c4dfcb36
SM
36802020-07-12 Simon Marchi <simon.marchi@efficios.com>
3681
3682 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3683 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3684 are used to set the range type's bounds to use set_bounds.
3685
0a278aa7
PW
36862020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3687
3688 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3689
cce20f10
PA
36902020-07-10 Pedro Alves <pedro@palves.net>
3691
3692 * gdbthread.h (inferior_ref): Define.
3693 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3694 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3695 * thread.c
3696 (scoped_restore_current_thread::restore):
3697 Adjust to gdb::ref_ptr.
3698 (scoped_restore_current_thread::~scoped_restore_current_thread):
3699 Remove manual decref handling.
3700 (scoped_restore_current_thread::scoped_restore_current_thread):
3701 Adjust to use
3702 inferior_ref::new_reference/thread_info_ref::new_reference.
3703 Incref the thread before calling get_frame_id instead of after.
3704 Let TARGET_CLOSE_ERROR propagate.
3705
6d7aa592
PA
37062020-07-10 Pedro Alves <pedro@palves.net>
3707
3708 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3709 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3710 NOT_AVAILABLE_ERROR.
3711 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3712 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3713
b3e3a4c1
SM
37142020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3715 Pedro Alves <pedro@palves.net>
3716
3717 PR gdb/26199
3718 * infrun.c (threads_are_resumed_pending_p): Delete.
3719 (do_target_wait): Remove threads_are_executing and
3720 threads_are_resumed_pending_p checks from the inferior_matches
3721 lambda. Update comments.
3722
d6cc5d98
PA
37232020-07-10 Pedro Alves <pedro@palves.net>
3724
3725 PR gdb/26199
3726 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3727 executing threads.
3728
7d3badc6
PA
37292020-07-10 Pedro Alves <pedro@palves.net>
3730
3731 PR gdb/26199
3732 * infrun.c (handle_no_resumed): Handle multiple targets.
3733
42bd97a6
PA
37342020-07-10 Pedro Alves <pedro@palves.net>
3735
3736 PR gdb/26199
3737 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3738 target_is_async_p.
3739
43667cc6
PA
37402020-07-10 Pedro Alves <pedro@palves.net>
3741
3742 PR gdb/26199
3743 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3744 threads, not all threads.
3745
96118d11
PA
37462020-07-10 Pedro Alves <pedro@palves.net>
3747
3748 PR gdb/26199
3749 * remote.c (remote_target::open_1): Pass remote target pointer as
3750 data to create_async_event_handler.
3751 (remote_async_inferior_event_handler): Mark async event handler
3752 before returning if the remote target still has either pending
3753 events or unacknowledged notifications.
3754
54904d81
JB
37552020-07-10 John Baldwin <jhb@FreeBSD.org>
3756
3757 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3758 declaration.
3759 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3760 function.
3761
f37e5866
JB
37622020-07-09 John Baldwin <jhb@FreeBSD.org>
3763
3764 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3765 inferior_ptid.
3766
fc238d4a
JB
37672020-07-09 John Baldwin <jhb@FreeBSD.org>
3768
3769 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3770 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3771 AT_FREEBSD_PS_STRINGS.
3772
6e2469ff
HD
37732020-07-08 Hannes Domani <ssbssa@yahoo.de>
3774
3775 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3776 of debugfile path on Windows.
3777
d1076c41
JB
37782020-07-08 John Baldwin <jhb@FreeBSD.org>
3779
3780 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3781 argument to 'data'.
3782
15f3b077
TT
37832020-07-08 Tom Tromey <tromey@adacore.com>
3784
3785 * ada-lang.c (ada_exception_message_1): Use read_memory.
3786
9fc501fd
AB
37872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3788
3789 PR python/22748
3790 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3791 special handling for inline frames.
3792 * findvar.c (value_of_register_lazy): Skip inline frames when
3793 creating lazy register values.
3794 * frame.c (frame_id_computed_p): Delete definition.
3795 * frame.h (frame_id_computed_p): Delete declaration.
3796
64cb3757
AB
37972020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3798
3799 * NEWS: Mention additions to Python API.
3800 * python/py-arch.c (archpy_register_groups): New function.
3801 (arch_object_methods): Add 'register_groups' method.
3802 * python/py-registers.c (reggroup_iterator_object): New struct.
3803 (reggroup_object): New struct.
3804 (gdbpy_new_reggroup): New function.
3805 (gdbpy_reggroup_to_string): New function.
3806 (gdbpy_reggroup_name): New function.
3807 (gdbpy_reggroup_iter): New function.
3808 (gdbpy_reggroup_iter_next): New function.
3809 (gdbpy_new_reggroup_iterator): New function
3810 (gdbpy_initialize_registers): Register new types.
3811 (reggroup_iterator_object_type): Define new Python type.
3812 (gdbpy_reggroup_getset): New static global.
3813 (reggroup_object_type): Define new Python type.
3814 * python/python-internal.h
3815
0f767f94
AB
38162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3817
3818 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3819 * python/py-arch.c (archpy_registers): New function.
3820 (arch_object_methods): Add 'registers' method.
3821 * python/py-registers.c: New file.
3822 * python/python-internal.h
3823 (gdbpy_new_register_descriptor_iterator): Declare.
3824 (gdbpy_initialize_registers): Declare.
3825 * python/python.c (do_start_initialization): Call
3826 gdbpy_initialize_registers.
3827 * NEWS: Mention additions to the Python API.
3828
87dbc774
AB
38292020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3830
3831 * NEWS: Mention new Python API method.
3832 * python/py-unwind.c (pending_framepy_architecture): New function.
3833 (pending_frame_object_methods): Add architecture method.
3834
3bc98c0c
AB
38352020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3836
3837 * gdbarch.c: Regenerate.
3838 * gdbarch.h: Regenerate.
3839 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3840 (gdbarch_data): Use internal_error for the case where
3841 deprecated_set_gdbarch_data was originally needed.
3842 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3843 and use passed in obstack.
3844 (libunwind_frame_set_descr): Should no longer get back NULL from
3845 gdbarch_data.
3846 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3847 type.
3848 * user-regs.c (user_regs_init): Update parameters, and use passed
3849 in obstack.
3850 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3851 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3852
d8cc8af6
TV
38532020-07-06 Tom de Vries <tdevries@suse.de>
3854
3855 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3856 End-Of-Sequence in lte_is_less_than.
3857 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3858 "gdb: Don't reorder line table entries too much when sorting".
3859
947f7597
TV
38602020-07-06 Tom de Vries <tdevries@suse.de>
3861
3862 PR tui/26205
3863 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3864
1e7c1b22
TV
38652020-07-05 Tom de Vries <tdevries@suse.de>
3866
3867 PR build/26187
3868 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3869 std::uncaught_exceptions instead of deprecated
3870 std::uncaught_exception.
3871
a36158ec
SM
38722020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3873
3874 * macroexp.h (macro_stringify): Return
3875 gdb::unique_xmalloc_ptr<char>.
3876 * macroexp.c (macro_stringify): Likewise.
3877 * macrotab.c (fixup_definition): Update.
3878
14d960c8
SM
38792020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3880
3881 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3882 (lex_one_token): Update.
3883 * macroexp.c (struct macro_buffer) <release>: Return
3884 gdb::unique_xmalloc_ptr<char>.
3885 (macro_stringify): Update.
3886 (macro_expand): Update.
3887 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3888 * macroexp.h (macro_expand_next): Likewise.
3889
211d5b1c
SM
38902020-07-02 Simon Marchi <simon.marchi@efficios.com>
3891
3892 * macroexp.h (macro_lookup_ftype): Remove.
3893 (macro_expand, macro_expand_once, macro_expand_next): Remove
3894 lookup function parameters, add scope parameter.
3895 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3896 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3897 * macroscope.h (standard_macro_lookup): Change parameter type
3898 to macro_scope.
3899 * macroscope.c (standard_macro_lookup): Likewise.
3900 * c-exp.y (lex_one_token): Update.
3901 * macrocmd.c (macro_expand_command): Likewise.
3902 (macro_expand_once_command): Likewise.
3903
b1a35af2
SM
39042020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3905
3906 * inf-loop.c (inferior_event_handler): Remove client_data param.
3907 * inf-loop.h (inferior_event_handler): Likewise.
3908 * infcmd.c (step_1): Adjust.
3909 * infrun.c (proceed): Adjust.
3910 (fetch_inferior_event): Remove client_data param.
3911 (infrun_async_inferior_event_handler): Adjust.
3912 * infrun.h (fetch_inferior_event): Remove `void *` param.
3913 * linux-nat.c (handle_target_event): Adjust.
3914 * record-btrace.c (record_btrace_handle_async_inferior_event):
3915 Adjust.
3916 * record-full.c (record_full_async_inferior_event_handler):
3917 Adjust.
3918 * remote.c (remote_async_inferior_event_handler): Adjust.
3919
1cdf9e33
TT
39202020-07-01 Tom Tromey <tom@tromey.com>
3921
3922 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3923 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3924
32c1e210
TT
39252020-07-01 Tom Tromey <tom@tromey.com>
3926
3927 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3928 tui_gen_win_info.
3929 (tui_win_info::make_window): Merge with
3930 tui_gen_win_info::make_window.
3931 (tui_win_info::make_visible): Move from tui_gen_win_info.
3932 * tui/tui-win.c (tui_win_info::max_width): Move from
3933 tui_gen_win_info.
3934 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3935 type.
3936 <window_factory>: Likewise.
3937 * tui/tui-layout.c (tui_win_info::resize): Move from
3938 tui_gen_win_info.
3939 (make_standard_window): Change return type.
3940 (get_locator_window, tui_get_window_by_name): Likewise.
3941 (tui_layout_window::apply): Remove a cast.
3942 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3943 (struct tui_win_info): Merge with tui_gen_win_info.
3944 (struct tui_gen_win_info): Remove.
3945
a30cb6da
TT
39462020-07-01 Tom Tromey <tom@tromey.com>
3947
3948 * tui/tui-stack.h (struct tui_locator_window): Derive from
3949 tui_win_info.
3950 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3951 <can_box>: New method.
3952
1eb2161f
TT
39532020-07-01 Tom Tromey <tom@tromey.com>
3954
3955 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3956
7134f2eb
TT
39572020-07-01 Tom Tromey <tom@tromey.com>
3958
3959 * tui/tui-regs.c (tui_data_window::display_registers_from)
3960 (tui_data_window::display_registers_from)
3961 (tui_data_window::first_data_item_displayed)
3962 (tui_data_window::delete_data_content_windows): Update.
3963 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3964 Remove.
3965 (tui_data_window::check_register_values): Update.
3966 (tui_data_item_window::rerender): Add parameters. Update.
3967 (tui_data_item_window::refresh_window): Remove.
3968 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3969 virtual.
3970 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3971 tui_gen_win_info.
3972 <refresh_window, max_height, min_height>: Remove.
3973 <rerender>: Add parameters.
3974 <x, y, visible>: New members.
3975 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3976 <m_item_width>: New member.
3977
22b7b041
TT
39782020-07-01 Tom Tromey <tom@tromey.com>
3979
3980 * tui/tui-regs.c (tui_data_window::show_register_group)
3981 (tui_data_window::check_register_values): Update.
3982 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3983 from item_no.
3984
c9753adb
TT
39852020-07-01 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3988 useless "if".
3989
9ab26b4a
TT
39902020-07-01 Tom Tromey <tom@tromey.com>
3991
3992 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3993 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3994
e555083f
TT
39952020-07-01 Tom Tromey <tom@tromey.com>
3996
3997 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3998 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3999 (struct tui_line_or_address): Move from tui-data.h.
4000 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4001 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4002 (tui_cmd_window, tui_source_window_base, tui_source_window)
4003 (tui_disasm_window): Don't declare.
4004 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4005 to tui-winsource.h.
4006 (SINGLE_KEY): Move to tui-stack.c.
4007
7a02bab7
TT
40082020-07-01 Tom Tromey <tom@tromey.com>
4009
4010 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4011 std::string.
4012 * tui/tui-regs.c (class tab_expansion_file): New.
4013 (tab_expansion_file::write): New method.
4014 (tui_register_format): Change return type. Use
4015 tab_expansion_file.
4016 (tui_get_register, tui_data_window::display_registers_from)
4017 (tui_data_item_window::rerender): Update.
4018 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4019 * tui/tui-io.c (tui_expand_tabs): Remove.
4020
ea68593b
TT
40212020-07-01 Tom Tromey <tom@tromey.com>
4022
4023 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4024
a8caed5d
FS
40252020-07-01 Fangrui Song <maskray@google.com>
4026
4027 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4028
9cdf9820
AKS
40292020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4030
4031 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4032 forms for DW_AT_associated and DW_AT_allocated attributes,
4033 which is already checked in function attr_to_dynamic_prop.
4034
a1520ad8
TT
40352020-06-30 Tom Tromey <tromey@adacore.com>
4036
4037 * dwarf2/read.c (quirk_rust_enum): Correctly call
4038 alloc_rust_variant for default-less enum.
4039
5ac58899
TT
40402020-06-30 Tom Tromey <tromey@adacore.com>
4041
4042 PR build/26183:
4043 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4044 gdb::to_string.
4045
19b187a9
SM
40462020-06-29 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4049 * gdbarch.h: Re-generate.
4050
cd4c4c07
TT
40512020-06-28 Tom Tromey <tom@tromey.com>
4052
4053 * command.h (cmd_types): Remove.
4054 (cmd_type): Don't declare.
4055 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4056 typedef.
4057 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4058 * cli/cli-decode.c (cmd_type): Remove.
4059
05779d57
PA
40602020-06-27 Pedro Alves <palves@redhat.com>
4061
4062 * fork-child.c (prefork_hook): Adjust.
4063 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4064 Delete.
4065 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4066 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4067 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4068 Remove declarations.
4069 (struct inferior) <set_tty, tty>: New methods.
4070 (struct inferior) <terminal>: Rename to ...
4071 (struct inferior) <m_terminal>: ... this and make private.
4072 * main.c (captured_main_1): Adjust.
4073 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4074 (mi_cmd_inferior_tty_show): Adjust.
4075 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4076 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4077
1776e3e5
NA
40782020-06-26 Nick Alcock <nick.alcock@oracle.com>
4079
4080 * configure.ac: Add --enable-libctf: handle --disable-static
4081 properly.
4082 * acinclude.m4: sinclude ../config/enable.m4.
4083 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4084 (LIBCTF): Substitute in.
4085 (CTF_DEPS): New, likewise.
4086 (CLIBS): libctf needs symbols from libbfd: move earlier.
4087 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4088 flags.
4089 * ctfread.c: Surround in ENABLE_LIBCTF.
4090 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4091 * configure: Regenerate.
4092 * config.in: Likewise.
4093
58373b80
SM
40942020-06-25 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4097
277474ee
SM
40982020-06-25 Simon Marchi <simon.marchi@efficios.com>
4099
4100 * inferior.h (struct inferior) <terminal>: Change type to
4101 gdb::unique_xmalloc_ptr<char>.
4102 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4103 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4104 field, adjust to unique pointer.
4105 (get_inferior_io_terminal): Adjust to unique pointer.
4106
6d74da72
AB
41072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4108
4109 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4110 registers, not just the known core set of registers.
4111
2e52d038
AB
41122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4113
4114 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4115 fflags, frm, and fcsr registers.
4116 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4117 restore groups.
4118 (riscv_tdesc_unknown_reg): New function.
4119 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4120 tdesc_use_registers.
4121 * riscv-tdep.h (struct gdbarch_tdep): Add
4122 unknown_csrs_first_regnum, unknown_csrs_count,
4123 duplicate_fflags_regnum, duplicate_frm_regnum, and
4124 duplicate_fcsr_regnum fields.
4125
be64fd07
AB
41262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4127
4128 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4129 callback, use the callback (when not null) to help number unknown
4130 registers.
4131 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4132 (tdesc_use_registers): Add extra parameter to declaration.
4133
3b9fce96
AB
41342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4135
4136 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4137 in the file.
4138 (class riscv_pending_register_alias): Likewise.
4139 (riscv_register_feature::register_info): Change 'required_p' field
4140 to 'required', and change its type. Add 'check' member function.
4141 (riscv_register_feature::register_info::check): Define new member
4142 function.
4143 (riscv_xreg_feature): Change initialisation of 'required' field.
4144 (riscv_freg_feature): Likewise.
4145 (riscv_virtual_feature): Likewise.
4146 (riscv_csr_feature): Likewise.
4147 (riscv_check_tdesc_feature): Take extra parameter, the csr
4148 tdesc_feature, rewrite the function to use the new
4149 riscv_register_feature::register_info::check function.
4150 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4151
865bad26
AB
41522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4153
4154 * features/Makefile: Remove all references to the deleted files
4155 below.
4156 * features/riscv/32bit-csr.c: Deleted.
4157 * features/riscv/32bit-csr.xml: Deleted.
4158 * features/riscv/64bit-csr.c: Deleted.
4159 * features/riscv/64bit-csr.xml: Deleted.
4160 * features/riscv/rebuild-csr-xml.sh: Deleted.
4161
ed69cbc8
AB
41622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4163
4164 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4165 whitespace error for declaration of names member variable.
4166 (struct riscv_register_feature): Add new prefer_first_name member
4167 variable, and fix whitespace error in declaration of registers.
4168 (riscv_xreg_feature): Initialize prefer_first_name field.
4169 (riscv_freg_feature): Likewise.
4170 (riscv_virtual_feature): Likewise.
4171 (riscv_csr_feature): Likewise.
4172 (riscv_register_name): Expand on comments. Remove register name
4173 modifications for CSR and virtual registers.
4174
4445e8f5
AB
41752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4176
4177 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4178 errors.
4179
767a879e
AB
41802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4181
4182 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4183 riscv-opc.h.
4184 (class riscv_pending_register_alias): New class.
4185 (riscv_check_tdesc_feature): Take vector of pending aliases and
4186 populate it as appropriate.
4187 (riscv_setup_register_aliases): Delete.
4188 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4189 to riscv_check_tdesc_feature in all cases. Use the vector to
4190 create the register aliases.
4191
bb6e55f3
RO
41922020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4193
4194 * sol2-tdep.c (sol2_static_transform_name): Remove.
4195 (sol2_init_abi): Don't register it.
4196 * gdbarch.sh (static_transform_name): Remove.
4197 * gdbarch.c, gdbarch.h: Regenerate.
4198
4199 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4200 gdbarch_static_transform_name.
4201 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4202 * stabsread.c (define_symbol) <'X'>: Remove.
4203 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4204 handling.
4205 <'V'>: Likewise.
4206 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4207 <'S'>: Remove call to gdbarch_static_transform_name.
4208
c6d36836
RO
42092020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4210
4211 * procfs.c (procfs_pre_trace): New function.
4212 (procfs_target::create_inferior): Pass it to fork_inferior.
4213
a7e6196b
RO
42142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4215
4216 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4217 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4218 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4219 sol2-tdep.o, sparc-sol2-tdep.o.
4220 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4221 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4222 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4223 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4224
d412e696
RO
42252020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4226
4227 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4228 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4229 Call sol2_init_abi.
4230 Remove calls to set_gdbarch_skip_solib_resolver,
4231 set_gdbarch_core_pid_to_str.
4232 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4233 (i386_sol2_static_transform_name): Remove.
4234 (i386_sol2_init_abi): Call sol2_init_abi.
4235 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4236 set_gdbarch_static_transform_name,
4237 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4238 Use sol2_sigtramp_p.
4239 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4240 (sol2_sigtramp_p): New function.
4241 (sol2_static_transform_name): New function.
4242 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4243 (sol2_init_abi): New function.
4244 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4245 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4246 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4247 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4248 (sparc_sol2_static_transform_name): Remove.
4249 (sparc32_sol2_init_abi): Call sol2_init_abi.
4250 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4251 set_gdbarch_static_transform_name,
4252 set_gdbarch_skip_solib_resolver,
4253 set_gdbarch_core_pid_to_str.
4254 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4255 (sparc_sol2_static_transform_name): Remove
4256 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4257 call sol2_sigtramp_p.
4258 (sparc64_sol2_init_abi): Call sol2_init_abi.
4259 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4260 set_gdbarch_static_transform_name,
4261 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4262
a8654e7d
PW
42632020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4264
4265 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4266 * exec.c (validate_exec_file): If from_tty, set both
4267 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4268 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4269 and from_tty, unconditionally ask a confirmation.
4270
caa7fd04
AB
42712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4272
4273 * target-descriptions.c (tdesc_architecture_name): Protect against
4274 NULL pointer dereference.
4275 (maint_print_xml_tdesc_cmd): New function.
4276 (_initialize_target_descriptions): Register new 'maint print
4277 xml-tdesc' command and give it the filename completer.
4278 * NEWS: Mention new 'maint print xml-tdesc' command.
4279
fbf42f4e
AB
42802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4281
4282 * target-descriptions.c (class tdesc_compatible_info): New class.
4283 (struct target_desc): Change type of compatible vector.
4284 (tdesc_compatible_p): Update for change in type of
4285 target_desc::compatible.
4286 (tdesc_compatible_info_list): New function.
4287 (tdesc_compatible_info_arch_name): New function.
4288 (tdesc_add_compatible): Update for change in type of
4289 target_desc::compatible.
4290 (print_c_tdesc::visit_pre): Likewise.
4291
20821f4e
AB
42922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4293
4294 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4295 whitespace to underscore.
4296 (maint_print_c_tdesc_cmd): Use fake filename for target
4297 descriptions that came from the target.
4298 (_initialize_target_descriptions): Add filename command completion
4299 for 'maint print c-tdesc'.
4300
1fb5ee62
SM
43012020-06-23 Simon Marchi <simon.marchi@efficios.com>
4302
4303 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4304 lines.
4305
fc3ecb3e
SM
43062020-06-23 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4309 lines.
4310 (dwarf2_find_location_expression): Likewise.
4311 (call_site_parameter_matches): Likewise.
4312 (dwarf2_compile_expr_to_ax): Likewise.
4313 (disassemble_dwarf_expression): Likewise.
4314 (loclist_describe_location): Likewise.
4315
236ef034
PA
43162020-06-23 Pedro Alves <palves@redhat.com>
4317
4318 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4319 progspace-and-thread.h. Include scoped-mock-context.h instead.
4320 (register_to_value_test): Use scoped_mock_context.
4321 * regcache.c: Include "scoped-mock-context.h".
4322 (cooked_read_test): Don't error out if a target is already pushed.
4323 Use scoped_mock_context. Adjust.
4324 * scoped-mock-context.h: New file.
4325
39e7ecca
AB
43262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4327
4328 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4329 initializer.
4330 (ada_language::is_string_type_p): New member function.
4331 * c-lang.c (c_language_data): Delete la_is_string_type_p
4332 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_is_string_type_p): Delete function, implementation
4338 moved to f_language::is_string_type_p.
4339 (f_language_data): Delete la_is_string_type_p initializer.
4340 (f_language::is_string_type_p): New member function,
4341 implementation from f_is_string_type_p.
4342 * go-lang.c (go_is_string_type_p): Delete function, implementation
4343 moved to go_language::is_string_type_p.
4344 (go_language_data): Delete la_is_string_type_p initializer.
4345 (go_language::is_string_type_p): New member function,
4346 implementation from go_is_string_type_p.
4347 * language.c (language_defn::is_string_type_p): Define new member
4348 function.
4349 (default_is_string_type_p): Make static, add comment copied from
4350 header file.
4351 (unknown_language_data): Delete la_is_string_type_p initializer.
4352 (unknown_language::is_string_type_p): New member function.
4353 (auto_language_data): Delete la_is_string_type_p initializer.
4354 (auto_language::is_string_type_p): New member function.
4355 * language.h (language_data): Delete la_is_string_type_p field.
4356 (language_defn::is_string_type_p): Declare new function.
4357 (default_is_string_type_p): Delete desclaration, move comment to
4358 definition.
4359 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4360 moved to m2_language::is_string_type_p.
4361 (m2_language_data): Delete la_is_string_type_p initializer.
4362 (m2_language::is_string_type_p): New member function,
4363 implementation from m2_is_string_type_p.
4364 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4365 initializer.
4366 * opencl-lang.c (opencl_language_data): Likewise.
4367 * p-lang.c (pascal_is_string_type_p): Delete function,
4368 implementation moved to pascal_language::is_string_type_p.
4369 (pascal_language_data): Delete la_is_string_type_p initializer.
4370 (pascal_language::is_string_type_p): New member function,
4371 implementation from pascal_is_string_type_p.
4372 * rust-lang.c (rust_is_string_type_p): Delete function,
4373 implementation moved to rust_language::is_string_type_p.
4374 (rust_language_data): Delete la_is_string_type_p initializer.
4375 (rust_language::is_string_type_p): New member function,
4376 implementation from rust_is_string_type_p.
4377 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4378 is_string_type_p.
4379
4ffc13fb
AB
43802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4381
4382 * ada-lang.c (ada_language_data): Delete la_print_typedef
4383 initializer.
4384 (ada_language::print_typedef): New member function.
4385 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4386 (cplus_language_data): Likewise.
4387 (asm_language_data): Likewise.
4388 (minimal_language_data): Likewise.
4389 * d-lang.c (d_language_data): Likewise.
4390 * f-lang.c (f_language_data): Likewise.
4391 (f_language::print_typedef): New member function.
4392 * go-lang.c (go_language_data): Delete la_print_typedef
4393 initializer.
4394 * language.c (language_defn::print_typedef): Define member
4395 function.
4396 (unknown_language_data): Delete la_print_typedef initializer.
4397 (unknown_language::print_typedef): New member function.
4398 (auto_language_data): Delete la_print_typedef initializer.
4399 (auto_language::print_typedef): New member function.
4400 * language.h (language_data): Delete la_print_typedef field.
4401 (language_defn::print_typedef): Declare new member function.
4402 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4403 (default_print_typedef): Delete declaration.
4404 * m2-lang.c (m2_language_data): Delete la_print_typedef
4405 initializer.
4406 (m2_language::print_typedef): New member function.
4407 * objc-lang.c (objc_language_data): Delete la_print_typedef
4408 initializer.
4409 * opencl-lang.c (opencl_language_data): Likewise.
4410 * p-lang.c (pascal_language_data): Likewise.
4411 (pascal_language::print_typedef): New member function.
4412 * rust-lang.c (rust_print_typedef): Delete function,
4413 implementation moved to rust_language::print_typedef.
4414 (rust_language): Delete la_print_typedef initializer.
4415 (rust_language::print_typedef): New member function,
4416 implementation from rust_print_typedef.
4417 * typeprint.c (default_print_typedef): Delete.
4418
d711ee67
AB
44192020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4420
4421 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4422 (ada_language::printstr): New member function.
4423 * c-lang.c (c_language_data): Delete la_printstr initializer.
4424 (cplus_language_data): Likewise.
4425 (asm_language_data): Likewise.
4426 (minimal_language_data): Likewise.
4427 * d-lang.c (d_language_data): Likewise.
4428 * f-lang.c (f_printstr): Rename to f_language::printstr.
4429 (f_language_data): Delete la_printstr initializer.
4430 (f_language::printstr): New member function, implementation from
4431 f_printstr.
4432 * go-lang.c (go_language_data): Delete la_printstr initializer.
4433 * language.c (language_defn::printstr): Define new member
4434 function.
4435 (unk_lang_printstr): Delete.
4436 (unknown_language_data): Delete la_printstr initializer.
4437 (unknown_language::printstr): New member function.
4438 (auto_language_data): Delete la_printstr initializer.
4439 (auto_language::printstr): New member function.
4440 * language.h (language_data): Delete la_printstr field.
4441 (language_defn::printstr): Declare new member function.
4442 (LA_PRINT_STRING): Update call to printstr.
4443 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4444 (m2_language_data): Delete la_printstr initializer.
4445 (m2_language::printstr): New member function, implementation from
4446 m2_printstr.
4447 * objc-lang.c (objc_language_data): Delete la_printstr
4448 initializer.
4449 * opencl-lang.c (opencl_language_data): Likewise.
4450 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4451 (pascal_language_data): Delete la_printstr initializer.
4452 (pascal_language::printstr): New member function, implementation
4453 from pascal_printstr.
4454 * p-lang.h (pascal_printstr): Delete declaration.
4455 * rust-lang.c (rust_printstr): Update header comment.
4456 (rust_language_data): Delete la_printstr initializer.
4457 (rust_language::printstr): New member function.
4458
52b50f2c
AB
44592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4460
4461 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4462 (ada_language::printchar): New member function.
4463 * c-lang.c (c_language_data): Delete la_printchar initializer.
4464 (cplus_language_data): Likewise.
4465 (asm_language_data): Likewise.
4466 (minimal_language_data): Likewise.
4467 * d-lang.c (d_language_data): Likewise.
4468 * f-lang.c (f_printchar): Rename to f_language::printchar.
4469 (f_language_data): Delete la_printchar initializer.
4470 (f_language::printchar): New member function, implementation from
4471 f_printchar.
4472 * go-lang.c (go_language_data): Delete la_printchar initializer.
4473 * language.c (unk_lang_printchar): Delete.
4474 (language_defn::printchar): Define new member function.
4475 (unknown_language_data): Delete la_printchar initializer.
4476 (unknown_language::printchar): New member function.
4477 (auto_language_data): Delete la_printchar initializer.
4478 (auto_language::printchar): New member function.
4479 * language.h (language_data): Delete la_printchar field.
4480 (language_defn::printchar): Declare new member function.
4481 (LA_PRINT_CHAR): Update call to printchar.
4482 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4483 (m2_language::printchar): New member function.
4484 * objc-lang.c (objc_language_data): Delete la_printchar
4485 initializer.
4486 * opencl-lang.c (opencl_language_data): Likewise.
4487 * p-lang.c (pascal_language_data): Delete la_printchar
4488 initializer.
4489 (pascal_language::printchar): New member function.
4490 * rust-lang.c (rust_printchar): Rename to
4491 rust_language::printchar.
4492 (rust_language_data): Delete la_printchar initializer.
4493 (rust_language::printchar): New member function, implementation
4494 from rust_printchar.
4495
ec8cec5b
AB
44962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4497
4498 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4499 (ada_language_data): Delete la_emitchar initializer.
4500 (ada_language::emitchar): New member function, implementation from
4501 emit_char.
4502 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4503 (cplus_language_data): Likewise.
4504 (asm_language_data): Likewise.
4505 (minimal_language_data): Likewise.
4506 * d-lang.c (d_language_data): Likewise.
4507 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4508 (f_language_data): Delete la_emitchar initializer.
4509 (f_language::emitchar): New member function, implementation from
4510 f_emit_char.
4511 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4512 * language.c (unk_lang_emit_char): Delete.
4513 (language_defn::emitchar): New member function definition.
4514 (unknown_language_data): Delete la_emitchar initializer.
4515 (unknown_language::emitchar): New member function.
4516 (auto_language_data): Delete la_emitchar initializer.
4517 (auto_language::emitchar): New member function.
4518 * language.h (language_data): Delete la_emitchar field.
4519 (language_defn::emitchar): New member field declaration.
4520 (LA_EMIT_CHAR): Update call to emitchar.
4521 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4522 (m2_language_data): Delete la_emitchar initializer.
4523 (m2_language::emitchar): New member function, implementation from
4524 m2_emit_char.
4525 * objc-lang.c (objc_language_data): Delete la_emitchar
4526 initializer.
4527 * opencl-lang.c (opencl_language_data): Likewise.
4528 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4529 (pascal_language_data): Delete la_emitchar initializer.
4530 (pascal_language::emitchar): New member function, implementation
4531 from pascal_emit_char.
4532 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4533 (rust_language_data): Delete la_emitchar initializer.
4534 (rust_language::emitchar): New member function, implementation
4535 from rust_emitchar.
4536
1bf9c363
AB
45372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4538
4539 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4540 (ada_language_data): Delete la_post_parser initializer.
4541 (ada_language::post_parser): New member function.
4542 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4543 (cplus_language_data): Likewise.
4544 (asm_language_data): Likewise.
4545 (minimal_language_data): Likewise.
4546 * d-lang.c (d_language_data): Likewise.
4547 * f-lang.c (f_language_data): Likewise.
4548 * go-lang.c (go_language_data): Likewise.
4549 * language.c (unknown_language_data): Likewise.
4550 (auto_language_data): Likewise.
4551 * language.h (language_data): Delete la_post_parser field.
4552 (language_defn::post_parser): New member function.
4553 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4554 * objc-lang.c (objc_language_data): Likewise.
4555 * opencl-lang.c (opencl_language_data): Likewise.
4556 * p-lang.c (pascal_language_data): Likewise.
4557 * parse.c (parse_exp_in_context): Update call to post_parser.
4558 (null_post_parser): Delete definition.
4559 * parser-defs.h (null_post_parser): Delete declaration.
4560 * rust-lang.c (rust_language_data): Delete la_post_parser
4561 initializer.
4562
87afa652
AB
45632020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4564
4565 * ada-lang.c (parse): Rename to ada_language::parser.
4566 (ada_language_data): Delete la_parser initializer.
4567 (ada_language::parser): New member function, implementation from
4568 parse.
4569 * c-lang.c (c_language_data): Delete la_parser initializer.
4570 (cplus_language_data): Likewise.
4571 (asm_language_data): Likewise.
4572 (minimal_language_data): Likewise.
4573 * d-lang.c (d_language_data): Likewise.
4574 (d_language::parser): New member function.
4575 * f-lang.c (f_language_data): Delete la_parser initializer.
4576 (f_language::parser): New member function.
4577 * go-lang.c (go_language_data): Delete la_parser initializer.
4578 (go_language::parser): New member function.
4579 * language.c (unk_lang_parser): Delete.
4580 (language_defn::parser): Define new member function.
4581 (unknown_language_data): Delete la_parser initializer.
4582 (unknown_language::parser): New member function.
4583 (auto_language_data): Delete la_parser initializer.
4584 (auto_language::parser): New member function.
4585 * language.h (language_data): Delete la_parser field.
4586 (language_defn::parser): Declare new member function.
4587 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4588 (m2_language::parser): New member function.
4589 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4590 * opencl-lang.c (opencl_language_data): Likewise.
4591 * p-lang.c (pascal_language_data): Likewise.
4592 (pascal_language::parser): New member function.
4593 * parse.c (parse_exp_in_context): Update call to parser.
4594 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4595 (rust_language::parser): New member function.
4596
37825800
AB
45972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4598
4599 * top.c (print_gdb_configuration): Print --with-python-libdir
4600 configuration value.
4601
5b860c93
PW
46022020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4603
4604 * NEWS: Mention change to the alias command.
4605
cf00cd6f
PW
46062020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4607
4608 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4609 (alias_command_completer)
4610 (make_alias_options_def_group): New functions.
4611 (alias_opts, alias_option_defs): New struct and array.
4612 (alias_usage_error): Update usage.
4613 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4614 Use option framework.
4615 (_initialize_cli_cmds): Update alias command help.
4616 Update aliases command help.
4617 (show_user):
4618 Add NULL for new default_args lookup_cmd argument.
4619 (valid_command_p): Rename to validate_aliased_command.
4620 Add NULL for new default_args lookup_cmd argument. Verify that the
4621 aliased_command has no default args.
4622 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4623 (lookup_cmd_1, lookup_cmd): New argument default_args.
4624 (add_alias_cmd):
4625 Add NULL for new default_args lookup_cmd argument.
4626 (print_help_for_command): Show default args under the layout
4627 alias some_alias = some_aliased_cmd some_alias_default_arg.
4628 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4629 xfree default_args in destructor.
4630 * cli/cli-script.c (process_next_line, do_define_command):
4631 Add NULL for new default_args lookup_cmd argument.
4632 * command.h: Declare new default_args argument in lookup_cmd
4633 and lookup_cmd_1.
4634 * completer.c (complete_line_internal_1):
4635 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4636 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4637 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4638 Likewise.
4639 * infcmd.c (_initialize_infcmd): Likewise.
4640 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4641 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4642 * python/py-param.c (add_setshow_generic): Likewise.
4643 * remote.c (_initialize_remote): Likewise.
4644 * top.c (execute_command): Prepend default_args if command has some.
4645 (set_verbose):
4646 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4647 * tracepoint.c (validate_actionline, encode_actions_1):
4648 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4649
bd920864
TBA
46502020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4651
4652 * jit.c (jit_read_descriptor): Use bool as the return type.
4653 (jit_breakpoint_re_set_internal): Use bool as the return type.
4654 Invert the return value logic; return true if the jit breakpoint
4655 has been successfully initialized.
4656 (jit_inferior_init): Update the call to
4657 jit_breakpoint_re_set_internal.
4658
f8098322
PA
46592020-06-22 Pedro Alves <palves@redhat.com>
4660
4661 PR gdb/25939
4662 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4663 Use the current inferior instead. Don't return
4664 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4665 wait again.
4666 * sol-thread.c (sol_thread_target::wait): Don't reference
4667 inferior_ptid.
4668 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4669 (sol_update_thread_list_callback): Use the current inferior's pid
4670 instead of inferior_ptid.
4671
196535a6
RO
46722020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4673
4674 * procfs.c: Cleanup many comments.
4675
4676 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4677 (AFTER_WATCHFLAG): Replace by value.
4678
4679 (MAIN_PROC_NAME_FORMAT): Inline ...
4680 (create_procinfo): ... here.
4681
4682 (procfs_debug_inferior): Remove SYS_exec handling.
4683 (syscall_is_exec): Likewise.
4684 (procfs_set_exec_trap): Likewise.
4685
4686 (syscall_is_lwp_exit): Inline in callers.
4687 (syscall_is_exit): Likewise.
4688 (syscall_is_exec): Likewise.
4689 (syscall_is_lwp_create): Likewise.
4690
4691 (invalidate_cache): Remove #if 0 code.
4692
4693 (make_signal_thread_runnable): Remove.
4694 (procfs_target::resume): Remove #if 0 code.
4695
cf6f3e86
RO
46962020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4697
4698 PR gdb/25939
4699 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4700 call ...
4701 (procfs_target::create_inferior): ... here.
4702
48e9cc84
PW
47032020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4704
4705 * exec.c (validate_exec_file): Ensure the build-id is up to
4706 date by calling reopen_exec_file (that checks file timestamp
4707 to decide to re-read the file).
4708
3922b302
PA
47092020-06-18 Pedro Alves <palves@redhat.com>
4710
4711 PR gdb/25412
4712 * gdbthread.h (delete_thread, delete_thread_silent)
4713 (find_thread_ptid): Update comments.
4714 * thread.c (current_thread_): New global.
4715 (is_current_thread): Move higher, and reimplement.
4716 (inferior_thread): Reimplement.
4717 (set_thread_exited): Use bool. Add assertions.
4718 (add_thread_silent): Simplify thread-reuse handling by always
4719 calling delete_thread.
4720 (delete_thread): Remove intro comment.
4721 (find_thread_ptid): Skip exited threads.
4722 (switch_to_thread_no_regs): Write to current_thread_.
4723 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4724 INFERIOR_PTID. Clear current_thread_.
4725
6dbdab44
PA
47262020-06-18 Pedro Alves <palves@redhat.com>
4727
4728 * aix-thread.c (pd_update): Use switch_to_thread.
4729
2da4b788
PA
47302020-06-18 Pedro Alves <palves@redhat.com>
4731
4732 * ravenscar-thread.c (ravenscar_thread_target): Update.
4733 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4734 (ravenscar_thread_target::add_active_thread): ... this. Don't
4735 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4736 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4737
50838d1b
PA
47382020-06-18 Pedro Alves <palves@redhat.com>
4739
4740 * nat/windows-nat.c (current_windows_thread): Remove.
4741 * nat/windows-nat.h (current_windows_thread): Remove.
4742 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4743 Adjust.
4744 (display_selectors): Adjust to fetch the current
4745 windows_thread_info based on inferior_ptid.
4746 (fake_create_process): No longer write to current_windows_thread.
4747 (windows_nat_target::get_windows_debug_event):
4748 Don't set inferior_ptid or current_windows_thread.
4749 (windows_nat_target::wait): Adjust to not rely on
4750 current_windows_thread.
4751 (do_initial_windows_stuff): Now a method of windows_nat_target.
4752 Switch to the last_ptid thread.
4753 (windows_nat_target::attach): Adjust.
4754 (windows_nat_target::detach): Use switch_to_no_thread instead of
4755 writing to inferior_ptid directly.
4756 (windows_nat_target::create_inferior): Adjust.
4757
31ce04e9
PA
47582020-06-18 Pedro Alves <palves@redhat.com>
4759
4760 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4761
1ee1a363
PA
47622020-06-18 Pedro Alves <palves@redhat.com>
4763
4764 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4765 after creating it, instead of writing to inferior_ptid. Don't
4766 write to inferior_ptid.
4767
6d350754
PA
47682020-06-18 Pedro Alves <palves@redhat.com>
4769
4770 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4771
5d971d48
PA
47722020-06-18 Pedro Alves <palves@redhat.com>
4773
4774 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4775 it, instead of writing to inferior_ptid.
4776
86e57d1b
PA
47772020-06-18 Pedro Alves <palves@redhat.com>
4778
4779 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4780 to inferior_ptid.
4781
f2e1c129
PA
47822020-06-18 Pedro Alves <palves@redhat.com>
4783
4784 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4785 instead of writing to inferior_ptid directly.
4786
60db1b85
PA
47872020-06-18 Pedro Alves <palves@redhat.com>
4788
4789 * corelow.c (core_target::close): Use switch_to_no_thread instead
4790 of writing to inferior_ptid directly.
4791 (add_to_thread_list, core_target_open): Use switch_to_thread
4792 instead of writing to inferior_ptid directly.
4793
fe7d6a8d
PA
47942020-06-18 Pedro Alves <palves@redhat.com>
4795
4796 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4797 inferior_ptid.
4798 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4799 inferior_ptid.
4800 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4801 inferior_ptid directly.
4802 (darwin_nat_target::init_thread_list): Switch to thread, instead
4803 of writing to inferior_ptid.
4804 (darwin_nat_target::attach): Don't write to inferior_ptid.
4805 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4806
975f8708
PA
48072020-06-18 Pedro Alves <palves@redhat.com>
4808
4809 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4810 thread.
4811 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4812 Instead use switch_to_thread.
4813 (gnu_nat_target::detach): Use switch_to_no_thread
4814 instead of writing to inferior_ptid directly. Used passed-in
4815 inferior instead of looking up the inferior by pid.
4816
1a204730
PA
48172020-06-18 Pedro Alves <palves@redhat.com>
4818
4819 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4820 inferior_ptid.
4821
ebe84f23
PA
48222020-06-18 Pedro Alves <palves@redhat.com>
4823
4824 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4825 inferior_ptid.
4826 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4827 thread.
4828 (nto_procfs_target::detach): Avoid referencing
4829 inferior_ptid. Use switch_to_no_thread instead of writing to
4830 inferior_ptid directly.
4831 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4832 instead of writing to inferior_ptid directly.
4833 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4834 to thread.
4835
191f02e5
PA
48362020-06-18 Pedro Alves <palves@redhat.com>
4837
4838 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4839 after creating it, instead of writing to inferior_ptid.
4840 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4841 to inferior_ptid directly.
4842 (gdbsim_target::wait): Don't write to inferior_ptid.
4843
0ac55310
PA
48442020-06-18 Pedro Alves <palves@redhat.com>
4845
4846 * remote.c (remote_target::remote_notice_new_inferior): Use
4847 switch_to_thread instead of writing to inferior_ptid directly.
4848 (remote_target::add_current_inferior_and_thread): Use
4849 switch_to_no_thread instead of writing to inferior_ptid directly.
4850 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4851 and switch_to_thread instead of using set_current_inferior or
4852 writing to inferior_ptid directly.
4853
5233f39b
PA
48542020-06-18 Pedro Alves <palves@redhat.com>
4855
4856 * tracectf.c (ctf_target_open): Switch to added thread instead of
4857 writing to inferior_ptid directly.
4858 (ctf_target::close): Use switch_to_no_thread instead of writing to
4859 inferior_ptid directly.
4860
087e161b
PA
48612020-06-18 Pedro Alves <palves@redhat.com>
4862
4863 * tracefile-tfile.c (tfile_target_open): Don't write to
4864 inferior_ptid directly, instead switch to added thread.
4865 (tfile_target::close): Use switch_to_no_thread instead of writing
4866 to inferior_ptid directly.
4867
7fb43e53
PA
48682020-06-18 Pedro Alves <palves@redhat.com>
4869
4870 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4871 (procfs_target::detach): Use switch_to_no_thread
4872 instead of writing to inferior_ptid directly.
4873 (do_attach): Change return type to void. Switch to the added
4874 thread.
4875 (procfs_target::create_inferior): Switch to the added thread.
4876 (procfs_do_thread_registers): Don't write to inferior_ptid.
4877
18493a00
PA
48782020-06-18 Pedro Alves <palves@redhat.com>
4879
4880 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4881 of writing to inferior_ptid.
4882 (scoped_restore_exited_inferior): Delete.
4883 (handle_vfork_child_exec_or_exit): Simplify using
4884 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4885 instead of writing to inferior_ptid.
4886 (THREAD_STOPPED_BY): Delete.
4887 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4888 (thread_stopped_by_hw_breakpoint): Delete.
4889 (save_waitstatus): Use
4890 scoped_restore_current_thread+switch_to_thread, and call
4891 target_stopped_by_watchpoint instead of
4892 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4893 instead of thread_stopped_by_sw_breakpoint, and
4894 target_stopped_by_hw_breakpoint instead of
4895 thread_stopped_by_hw_breakpoint.
4896 (handle_inferior_event)
4897 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4898 inferior_ptid directly, nor
4899 set_current_inferior/set_current_program_space. Use
4900 switch_to_thread / switch_to_inferior_no_thread instead.
4901
a0776b13
PA
49022020-06-18 Pedro Alves <palves@redhat.com>
4903
4904 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4905 instead of writing to inferior_ptid.
4906
6155c136
PA
49072020-06-18 Pedro Alves <palves@redhat.com>
4908
4909 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4910 added thread.
4911 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4912 to the added thread.
4913 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4914 instead of writing to inferior_ptid.
4915
c5316fc6
PA
49162020-06-18 Pedro Alves <palves@redhat.com>
4917
4918 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4919 (register_to_value_test): Mock a program_space too. Heap-allocate
4920 the address space. Don't write to inferior_ptid. Use
4921 switch_to_thread instead.
4922
8df01799
PA
49232020-06-18 Pedro Alves <palves@redhat.com>
4924
4925 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4926 Delete.
4927 (find_signalled_thread()): New, factored out from
4928 linux_make_corefile_notes and adjusted to handle exited threads.
4929 (linux_make_corefile_notes): Adjust to use the new
4930 find_signalled_thread.
4931
41792d68
PA
49322020-06-18 Pedro Alves <palves@redhat.com>
4933
4934 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4935 of saving/restoring inferior_ptid.
4936
612f258a
TT
49372020-06-17 Tom Tromey <tom@tromey.com>
4938
4939 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4940 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4941 declare.
4942 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4943
efb763a5
SM
49442020-06-15 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4947 of partial symtabs.
4948
2951f6c0
SM
49492020-06-17 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * regformats/reg-arm.dat: Remove.
4952 * regformats/reg-bfin.dat: Remove.
4953 * regformats/reg-cris.dat: Remove.
4954 * regformats/reg-crisv32.dat: Remove.
4955 * regformats/reg-m32r.dat: Remove.
4956 * regformats/reg-tilegx.dat: Remove.
4957 * regformats/reg-tilegx32.dat: Remove.
4958
7d458ea5
SM
49592020-06-17 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * features/Makefile (WHICH): Remove arm files.
4962 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4963 * regformats/arm/arm-with-neon.dat: Remove.
4964 * regformats/arm/arm-with-vfpv2.dat: Remove.
4965 * regformats/arm/arm-with-vfpv3.dat: Remove.
4966
3af96c0d
SM
49672020-06-17 Simon Marchi <simon.marchi@efficios.com>
4968
4969 * features/Makefile (XMLTOC): Remove rx.xml.
4970
b25e22fd
PA
49712020-06-17 Pedro Alves <palves@redhat.com>
4972
4973 * gdbthread.h (thread_control_state) <trap_expected> Update
4974 comments.
4975
a78a19b1
AB
49762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4977
4978 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4979 ada_language::lookup_symbol_nonlocal.
4980 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4981 (ada_language::lookup_symbol_nonlocal): New member function,
4982 implementation from ada_lookup_symbol_nonlocal.
4983 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4984 initializer.
4985 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4986 initializer.
4987 (cplus_language::lookup_symbol_nonlocal): New member function.
4988 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4989 (minimal_language_data) Likewise.
4990 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4991 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4992 initializer.
4993 (d_language::lookup_symbol_nonlocal): New member function.
4994 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4995 initializer.
4996 (f_language::lookup_symbol_nonlocal): New member function.
4997 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4998 initializer.
4999 * language.c (unknown_language_data): Likewise.
5000 (auto_language_data): Likewise.
5001 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5002 field.
5003 (language_defn::lookup_symbol_nonlocal): New member function.
5004 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5005 initializer.
5006 * objc-lang.c (objc_language_data): Likewise.
5007 * opencl-lang.c (opencl_language_data): Likewise.
5008 * p-lang.c (pascal_language_data): Likewise.
5009 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5010 rust_language::lookup_symbol_nonlocal.
5011 (rust_language_data): Delete la_lookup_symbol_nonlocal
5012 initializer.
5013 (rust_language::lookup_symbol_nonlocal): New member function,
5014 implementation from rust_lookup_symbol_nonlocal.
5015 * symtab.c (lookup_symbol_aux): Update call to
5016 lookup_symbol_nonlocal.
5017 (basic_lookup_symbol_nonlocal): Rename to...
5018 (language_defn::lookup_symbol_nonlocal): ...this, and update
5019 header comment. Remove language_defn parameter, and replace with
5020 uses of `this'.
5021 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5022
ebe2334e
AB
50232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5024
5025 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5026 initializer.
5027 (ada_language::value_print_inner): New member function.
5028 * c-lang.c (c_language_data): Delete la_value_print_inner
5029 initializer.
5030 (cplus_language_data): Likewise.
5031 (asm_language_data): Likewise.
5032 (minimal_language_data): Likewise.
5033 * d-lang.c (d_language_data): Likewise.
5034 (d_language::value_print_inner): New member function.
5035 * f-lang.c (f_language_data): Delete la_value_print_inner
5036 initializer.
5037 (f_language::value_print_inner): New member function.
5038 * f-lang.h (f_value_print_innner): Rename to...
5039 (f_value_print_inner): ...this (note spelling of 'inner').
5040 * f-valprint.c (f_value_print_innner): Rename to...
5041 (f_value_print_inner): ...this (note spelling of 'inner').
5042 * go-lang.c (go_language_data): Delete la_value_print_inner
5043 initializer.
5044 (go_language::value_print_inner): New member function.
5045 * language.c (language_defn::value_print_inner): Define new member
5046 function.
5047 (unk_lang_value_print_inner): Delete.
5048 (unknown_language_data): Delete la_value_print_inner initializer.
5049 (unknown_language::value_print_inner): New member function.
5050 (auto_language_data): Delete la_value_print_inner initializer.
5051 (auto_language::value_print_inner): New member function.
5052 * language.h (language_data): Delete la_value_print_inner field.
5053 (language_defn::value_print_inner): Delcare new member function.
5054 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5055 initializer.
5056 (m2_language::value_print_inner): New member function.
5057 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5058 initializer.
5059 * opencl-lang.c (opencl_language_data): Likewise.
5060 * p-lang.c (pascal_language_data): Likewise.
5061 (pascal_language::value_print_inner): New member function.
5062 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5063 initializer.
5064 (rust_language::value_print_inner): New member function.
5065 * valprint.c (do_val_print): Update call to value_print_inner.
5066
a1d1fa3e
AB
50672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5068
5069 * ada-lang.c (ada_language_data): Delete la_value_print
5070 initializer.
5071 (ada_language::value_print): New member function.
5072 * c-lang.c (c_language_data): Delete la_value_print initializer.
5073 (cplus_language_data): Likewise.
5074 (asm_language_data): Likewise.
5075 (minimal_language_data): Likewise.
5076 * d-lang.c (d_language_data): Likewise.
5077 * f-lang.c (f_language_data): Likewise.
5078 * go-lang.c (go_language_data): Likewise.
5079 * language.c (unk_lang_value_print): Delete.
5080 (language_defn::value_print): Define new member function.
5081 (unknown_language_data): Delete la_value_print initializer.
5082 (unknown_language::value_print): New member function.
5083 (auto_language_data): Delete la_value_print initializer.
5084 (auto_language::value_print): New member function.
5085 * language.h (language_data): Delete la_value_print field.
5086 (language_defn::value_print): Declare new member function.
5087 (LA_VALUE_PRINT): Update call to value_print.
5088 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5089 * objc-lang.c (objc_language_data): Likewise.
5090 * opencl-lang.c (opencl_language_data): Likewise.
5091 * p-lang.c (pascal_language_data): Likewise.
5092 (pascal_language::value_print): New member function.
5093 * rust-lang.c (rust_language_data): Delete la_value_print
5094 initializer.
5095
f16a9f57
AB
50962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5097
5098 * ada-lang.c (ada_watch_location_expression): Rename to
5099 ada_language::watch_location_expression.
5100 (ada_language_data): Delete la_watch_location_expression
5101 initializer.
5102 (ada_language::watch_location_expression): New member function,
5103 implementation from ada_watch_location_expression.
5104 * breakpoint.c (watch_command_1): Update call to
5105 watch_location_expression.
5106 * c-lang.c (c_watch_location_expression): Rename to
5107 language_defn::watch_location_expression.
5108 (c_language_data): Delete la_watch_location_expression
5109 initializer.
5110 (cplus_language_data): Likewise.
5111 (asm_language_data): Likewise.
5112 (minimal_language_data): Likewise.
5113 * c-lang.h (c_watch_location_expression): Delete declaration.
5114 * d-lang.c (d_language_data): Delete la_watch_location_expression
5115 initializer.
5116 * f-lang.c (f_language_data): Likewise.
5117 * go-lang.c (go_language_data): Likewise.
5118 * language.c (language_defn::watch_location_expression): Member
5119 function implementation from c_watch_location_expression.
5120 (unknown_language_data): Delete la_watch_location_expression
5121 initializer.
5122 (auto_language_data): Likewise.
5123 * language.h (language_data): Delete la_watch_location_expression
5124 field.
5125 (language_defn::watch_location_expression): Declare new member
5126 function.
5127 * m2-lang.c (m2_language_data): Delete
5128 la_watch_location_expression initializer.
5129 * objc-lang.c (objc_language_data): Likewise.
5130 * opencl-lang.c (opencl_language_data): Likewise.
5131 * p-lang.c (pascal_language_data): Likewise.
5132 * rust-lang.c (rust_watch_location_expression): Rename to
5133 rust_language::watch_location_expression.
5134 (rust_language_data): Delete la_watch_location_expression
5135 initializer.
5136 (rust_language::watch_location_expression): New member function,
5137 implementation from rust_watch_location_expression.
5138
7e56227d
AB
51392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5140
5141 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5142 ada_language::collect_symbol_completion_matches.
5143 (ada_language_data): Delete la_collect_symbol_completion_matches
5144 initializer.
5145 (ada_language::collect_symbol_completion_matches): New member
5146 function, implementation from
5147 ada_collect_symbol_completion_matches.
5148 * c-lang.c (c_language_data): Delete
5149 la_collect_symbol_completion_matches initializer.
5150 (cplus_language_data): Likewise.
5151 (asm_language_data): Likewise.
5152 (minimal_language_data): Likewise.
5153 * d-lang.c (d_language_data): Likewise.
5154 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5155 f_language::collect_symbol_completion_matches.
5156 (f_language_data): Delete la_collect_symbol_completion_matches
5157 initializer.
5158 (f_language::collect_symbol_completion_matches) New member
5159 function, implementation from f_collect_symbol_completion_matches.
5160 * go-lang.c (go_language_data): Delete
5161 la_collect_symbol_completion_matches initializer.
5162 * language.c (unknown_language_data): Likewise.
5163 (auto_language_data): Likewise.
5164 * language.h (language_data): Delete
5165 la_collect_symbol_completion_matches field.
5166 (language_defn::collect_symbol_completion_matches): New member
5167 function.
5168 * m2-lang.c (m2_language_data): Delete
5169 la_collect_symbol_completion_matches initializer.
5170 * objc-lang.c (objc_language_data): Likewise.
5171 * opencl-lang.c (opencl_language_data): Likewise.
5172 * p-lang.c (pascal_language_data): Likewise.
5173 * rust-lang.c (rust_language_data): Likewise.
5174 * symtab.c (default_collect_symbol_completion_matches): Delete.
5175 (collect_symbol_completion_matches): Update call to
5176 collect_symbol_completion_matches.
5177 (collect_symbol_completion_matches_type): Likewise.
5178 * symtab.h (default_collect_symbol_completion_matches): Delete
5179 declaration.
5180
53fc67f8
AB
51812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5182
5183 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5184 (ada_language_data): Delete la_word_break_characters initializer.
5185 (ada_language::word_break_characters): New member function.
5186 * c-lang.c (c_language_data): Delete la_word_break_characters
5187 initializer.
5188 (cplus_language_data): Likewise.
5189 (asm_language_data): Likewise.
5190 (minimal_language_data): Likewise.
5191 * completer.c: Update global comment.
5192 (advance_to_expression_complete_word_point): Update call to
5193 word_break_characters.
5194 (complete_files_symbols): Likewise.
5195 (complete_line_internal_1): Likewise.
5196 (default_completer_handle_brkchars): Likewise.
5197 (skip_quoted_chars): Likewise.
5198 * d-lang.c (d_language_data): Delete la_word_break_characters
5199 initializer.
5200 * f-lang.c (f_word_break_characters): Delete.
5201 (f_language_data): Delete la_word_break_characters initializer.
5202 (f_language::word_break_characters): New member function.
5203 * go-lang.c (go_language_data): Delete la_word_break_characters
5204 initializer.
5205 * language.c (unknown_language_data): Likewise.
5206 (auto_language_data): Likewise.
5207 * language.h (default_word_break_characters): Move declaration to
5208 earlier in the file.
5209 (language_data): Delete la_word_break_characters field.
5210 (language_defn::word_break_characters): New member function.
5211 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5212 initializer.
5213 * objc-lang.c (objc_language_data): Likewise.
5214 * opencl-lang.c (opencl_language_data): Likewise.
5215 * p-lang.c (pascal_language_data): Likewise.
5216 * rust-lang.c (rust_language_data): Likewise.
5217
c9debfb9
AB
52182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5219
5220 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5221 (ada_language_data): Delete la_get_symbol_name_matcher
5222 initializer.
5223 (language_defn::get_symbol_name_matcher_inner): New member
5224 function.
5225 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5226 initializer.
5227 (cplus_language_data): Likewise.
5228 (cplus_language::get_symbol_name_matcher_inner): New member
5229 function.
5230 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5231 (minimal_language_data): Likewise.
5232 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5233 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5234 initializer.
5235 * dictionary.c (iter_match_first_hashed): Update call to
5236 get_symbol_name_matcher.
5237 (iter_match_next_hashed): Likewise.
5238 (iter_match_next_linear): Likewise.
5239 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5240 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5241 initializer.
5242 (f_language::get_symbol_name_matcher_inner): New member function.
5243 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5244 initializer.
5245 * language.c (default_symbol_name_matcher): Update header comment,
5246 make static.
5247 (language_defn::get_symbol_name_matcher): New definition.
5248 (language_defn::get_symbol_name_matcher_inner): Likewise.
5249 (get_symbol_name_matcher): Delete.
5250 (unknown_language_data): Delete la_get_symbol_name_matcher
5251 initializer.
5252 (auto_language_data): Likewise.
5253 * language.h (language_data): Delete la_get_symbol_name_matcher
5254 field.
5255 (language_defn::get_symbol_name_matcher): New member function.
5256 (language_defn::get_symbol_name_matcher_inner): Likewise.
5257 (default_symbol_name_matcher): Delete declaration.
5258 * linespec.c (find_methods): Update call to
5259 get_symbol_name_matcher.
5260 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5261 initializer.
5262 * minsyms.c (lookup_minimal_symbol): Update call to
5263 get_symbol_name_matcher.
5264 (iterate_over_minimal_symbols): Likewise.
5265 * objc-lang.c (objc_language_data): Delete
5266 la_get_symbol_name_matcher initializer.
5267 * opencl-lang.c (opencl_language_data): Likewise.
5268 * p-lang.c (pascal_language_data): Likewise.
5269 * psymtab.c (psymbol_name_matches): Update call to
5270 get_symbol_name_matcher.
5271 * rust-lang.c (rust_language_data): Delete
5272 la_get_symbol_name_matcher initializer.
5273 * symtab.c (symbol_matches_search_name): Update call to
5274 get_symbol_name_matcher.
5275 (compare_symbol_name): Likewise.
5276
9a49ad8c
AB
52772020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5278
5279 * ada-lang.c (ada_language_data): Delete la_compute_program
5280 initializer.
5281 * c-lang.c (c_language_data): Likewise.
5282 (c_language::compute_program): New member function.
5283 (cplus_language_data): Delete la_compute_program initializer.
5284 (cplus_language::compute_program): New member function.
5285 (asm_language_data): Delete la_compute_program initializer.
5286 (minimal_language_data): Likewise.
5287 * c-lang.h (c_compute_program): Update comment.
5288 (cplus_compute_program): Likewise.
5289 * compile/compile-c-support.c (c_compute_program): Likewise.
5290 (cplus_compute_program): Likewise.
5291 * compile/compile.c (compile_to_object): Update call to
5292 la_compute_program.
5293 * d-lang.c (d_language_data): Delete la_compute_program
5294 initializer.
5295 * f-lang.c (f_language_data): Likewise.
5296 * go-lang.c (go_language_data): Likewise.
5297 * language.c (unknown_language_data): Likewise.
5298 (auto_language_data): Likewise.
5299 * language.h (language_data): Delete la_compute_program field.
5300 (language_defn::compute_program): New member function.
5301 * m2-lang.c (m2_language_data): Delete la_compute_program
5302 initializer.
5303 * objc-lang.c (objc_language_data): Likewise.
5304 * opencl-lang.c (opencl_language_data): Likewise.
5305 * p-lang.c (pascal_language_data): Likewise.
5306 * rust-lang.c (rust_language_data): Likewise.
5307
eff93b4d
AB
53082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5309
5310 * ada-lang.c (ada_language_data) Delete
5311 la_class_name_from_physname initializer.
5312 * c-lang.c (c_language_data): Likewise.
5313 (cplus_language_data): Likewise.
5314 (cplus_language::class_name_from_physname): New member function.
5315 (asm_language_data): Delete la_class_name_from_physname
5316 initializer.
5317 (minimal_language_data): Likewise.
5318 * d-lang.c (d_language_data): Likewise.
5319 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5320 method on language_defn class.
5321 (guess_full_die_structure_name): Likewise.
5322 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5323 initializer.
5324 * go-lang.c (go_language_data): Likewise.
5325 * language.c (language_class_name_from_physname): Delete.
5326 (unk_lang_class_name): Delete.
5327 (unknown_language_data): Delete la_class_name_from_physname
5328 initializer.
5329 (auto_language_data): Likewise.
5330 * language.h (language_data): Delete la_class_name_from_physname
5331 field.
5332 (language_defn::class_name_from_physname): New function.
5333 (language_class_name_from_physname): Delete declaration.
5334 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5335 initializer.
5336 * objc-lang.c (objc_language_data): Likewise.
5337 * opencl-lang.c (opencl_language_data): Likewise.
5338 * p-lang.c (pascal_language_data): Likewise.
5339 * rust-lang.c (rust_language_data): Likewise.
5340
de543742
TT
53412020-06-16 Tom Tromey <tom@tromey.com>
5342
5343 * tui/tui-data.h (STATUS_NAME): New macro.
5344 * tui/tui-layout.c (tui_remove_some_windows)
5345 (initialize_known_windows, tui_register_window)
5346 (tui_layout_split::remove_windows, initialize_layouts)
5347 (tui_new_layout_command): Don't use hard-coded window names.
5348
a350efd4
TT
53492020-06-16 Tom Tromey <tom@tromey.com>
5350
5351 PR tui/25348:
5352 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5353 tui_initialize_readline. Only run once. Call rl_initialize.
5354 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5355 tui_initialize_readline.
5356 * tui/tui-io.c (tui_setup_io): Call
5357 tui_ensure_readline_initialized.
5358 * tui/tui-interp.c (tui_interp::init): Update.
5359
39ec0490
TT
53602020-06-16 Tom Tromey <tom@tromey.com>
5361
5362 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5363 Also preserve the status window.
5364
d2d1ea20
TT
53652020-06-16 Tom Tromey <tom@tromey.com>
5366
5367 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5368 where m_window==nullptr.
5369
66920317
TT
53702020-06-15 Tom Tromey <tromey@adacore.com>
5371
5372 * windows-nat.c (windows_nat::handle_output_debug_string):
5373 Update.
5374 (windows_nat::handle_ms_vc_exception): Update.
5375 * target.h (target_read_string): Change API.
5376 * target.c (target_read_string): Change API.
5377 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5378 Update.
5379 * solib-frv.c (frv_current_sos): Update.
5380 * solib-dsbt.c (dsbt_current_sos): Update.
5381 * solib-darwin.c (darwin_current_sos): Update.
5382 * linux-thread-db.c (inferior_has_bug): Update.
5383 * expprint.c (print_subexp_standard): Update.
5384 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5385 (ada_exception_message_1): Update.
5386
a5d871dd
TT
53872020-06-15 Tom Tromey <tromey@adacore.com>
5388
5389 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5390
670e35fa
TT
53912020-06-15 Tom Tromey <tromey@adacore.com>
5392
5393 * valprint.c (read_string): Update comment.
5394 * target.c (MIN): Remove.
5395 (target_read_string): Rewrite.
5396
f5272a3b
TT
53972020-06-15 Tom Tromey <tromey@adacore.com>
5398
5399 * corefile.c (read_memory_string): Remove.
5400 * ada-valprint.c (ada_value_print_ptr): Update.
5401 * ada-lang.h (ada_tag_name): Change return type.
5402 * ada-lang.c (type_from_tag): Update.
5403 (ada_tag_name_from_tsd): Change return type. Use
5404 target_read_string.
5405 (ada_tag_name): Likewise.
5406 * gdbcore.h (read_memory_string): Don't declare.
5407
2c074f49
HD
54082020-06-14 Hannes Domani <ssbssa@yahoo.de>
5409
5410 * symtab.c (rbreak_command): Ignore Windows drive colon.
5411
6a17d503
SM
54122020-06-12 Simon Marchi <simon.marchi@efficios.com>
5413
5414 * NEWS: Mention removed GDBserver host support.
5415
453c733f
NC
54162020-06-12 Nelson Chu <nelson.chu@sifive.com>
5417
5418 * features/riscv/rebuild-csr-xml.sh: Updated.
5419
2b4e6a3f
TT
54202020-06-11 Tom Tromey <tom@tromey.com>
5421
5422 PR gdb/18318:
5423 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5424
4412332f
JG
54252020-06-09 Jonny Grant <jg@jguk.org>
54262020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5427
5428 * main.c (captured_main_1): Don't print new line after help.
5429 (print_gdb_help): add mailing list and IRC channel information
5430 to --help. Add new lines between items in the footer. Remove
5431 quotes around bug url.
5432
2f33032a
KS
54332020-06-11 Keith Seitz <keiths@redhat.com>
5434
5435 PR gdb/21356
5436 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5437 Resolve typedefs for type length calculations.
5438
7ab96794
TV
54392020-06-10 Tom de Vries <tdevries@suse.de>
5440
5441 PR ada/24713
5442 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5443 (write_psymbols): Enable .gdb_index for ada.
5444 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5445 ada.
5446
e5f3ece2
TV
54472020-06-10 Tom de Vries <tdevries@suse.de>
5448
5449 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5450 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5451 namei" instead of "const char *name" argument.
5452 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5453 dw2_symtab_iter_init.
5454
940da03e
SM
54552020-06-08 Simon Marchi <simon.marchi@efficios.com>
5456
5457 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5458 to use type::field and field::type instead.
5459
b6cdac4b
SM
54602020-06-08 Simon Marchi <simon.marchi@efficios.com>
5461
5462 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5463 to use field::type instead.
5464
5d14b6e5
SM
54652020-06-08 Simon Marchi <simon.marchi@efficios.com>
5466
5467 * gdbtypes.h (struct field) <type, set_type>: New methods.
5468 Rename `type` field to...
5469 <m_type>: ... this. Change references throughout to use type or
5470 set_type methods.
5471 (FIELD_TYPE): Use field::type. Change call sites that modify
5472 the field's type to use field::set_type instead.
5473
3d967001
SM
54742020-06-08 Simon Marchi <simon.marchi@efficios.com>
5475
5476 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5477 to use type::index_type instead.
5478
262abc0d
SM
54792020-06-08 Simon Marchi <simon.marchi@efficios.com>
5480
5481 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5482 methods.
5483 (TYPE_INDEX_TYPE): Use type::index_type.
5484 * gdbtypes.c (create_array_type_with_stride): Likewise.
5485
82836c92
TT
54862020-06-07 Tom Tromey <tom@tromey.com>
5487
5488 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5489 parameter.
5490 (generic_value_print): Update.
5491
940dace9
AB
54922020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5493
5494 Revert commit 982a38f60b0.
5495 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5496
982a38f6
AB
54972020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5498
5499 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5500 avoid use after free.
5501
82f06518
TV
55022020-06-05 Tom de Vries <tdevries@suse.de>
5503
5504 * NEWS: Fix typos.
5505
f8c41851
SM
55062020-06-04 Simon Marchi <simon.marchi@efficios.com>
5507
5508 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5509 the per_bfd object.
5510 (dwarf2_read_debug_names): Likewise.
5511 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5512 object when re-using a per_bfd object with an index.
5513
f9b5d5ea
TV
55142020-06-03 Tom de Vries <tdevries@suse.de>
5515
5516 PR symtab/26046
5517 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5518 children for C++.
5519 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5520 DW_TAG_subprogram.
5521
f6eee2d0
AB
55222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5523
5524 * ada-lang.c (ada_language_data): Delete skip_trampoline
5525 initializer.
5526 * c-lang.c (c_language_data): Likewise.
5527 (cplus_language_data): Likewise.
5528 (cplus_language::skip_trampoline): New member function.
5529 (asm_language_data): Delete skip_trampoline initializer.
5530 (minimal_language_data): Likewise.
5531 * d-lang.c (d_language_data): Likewise.
5532 * f-lang.c (f_language_data): Likewise.
5533 * go-lang.c (go_language_data): Likewise.
5534 * language.c (unk_lang_trampoline): Delete function.
5535 (skip_language_trampoline): Update.
5536 (unknown_language_data): Delete skip_trampoline initializer.
5537 (auto_language_data): Likewise.
5538 * language.h (language_data): Delete skip_trampoline field.
5539 (language_defn::skip_trampoline): New function.
5540 * m2-lang.c (m2_language_data): Delete skip_trampoline
5541 initializer.
5542 * objc-lang.c (objc_skip_trampoline): Delete function, move
5543 implementation to objc_language::skip_trampoline.
5544 (objc_language_data): Delete skip_trampoline initializer.
5545 (objc_language::skip_trampoline): New member function with
5546 implementation from objc_skip_trampoline.
5547 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5548 initializer.
5549 * p-lang.c (pascal_language_data): Likewise.
5550 * rust-lang.c (rust_language_data): Likewise.
5551
0a50df5d
AB
55522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5553
5554 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5555 (ada_language::demangle): New member function.
5556 * c-lang.c (c_language_data): Delete la_demangle initializer.
5557 (cplus_language_data): Delete la_demangle initializer.
5558 (cplus_language::demangle): New member function.
5559 (asm_language_data): Delete la_demangle initializer.
5560 (minimal_language_data): Delete la_demangle initializer.
5561 * d-lang.c (d_language_data): Delete la_demangle initializer.
5562 (d_language::demangle): New member function.
5563 * f-lang.c (f_language_data): Delete la_demangle initializer.
5564 (f_language::demangle): New member function.
5565 * go-lang.c (go_language_data): Delete la_demangle initializer.
5566 (go_language::demangle): New member function.
5567 * language.c (language_demangle): Update.
5568 (unk_lang_demangle): Delete.
5569 (unknown_language_data): Delete la_demangle initializer.
5570 (unknown_language::demangle): New member function.
5571 (auto_language_data): Delete la_demangle initializer.
5572 (auto_language::demangle): New member function.
5573 * language.h (language_data): Delete la_demangle field.
5574 (language_defn::demangle): New function.
5575 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5576 * objc-lang.c (objc_language_data): Delete la_demangle
5577 initializer.
5578 (objc_language::demangle): New member function.
5579 * opencl-lang.c (opencl_language_data): Delete la_demangle
5580 initializer.
5581 * p-lang.c (pascal_language_data): Likewise.
5582 * rust-lang.c (rust_language_data): Likewise.
5583 (rust_language::demangle): New member function.
5584
fbfb0a46
AB
55852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5586
5587 * ada-lang.c (ada_language_data): Delete la_print_type
5588 initializer.
5589 (ada_language::print_type): New member function.
5590 * c-lang.c (c_language_data): Delete la_print_type initializer.
5591 (c_language::print_type): New member function.
5592 (cplus_language_data): Delete la_print_type initializer.
5593 (cplus_language::print_type): New member function.
5594 (asm_language_data): Delete la_print_type initializer.
5595 (asm_language::print_type): New member function.
5596 (minimal_language_data): Delete la_print_type initializer.
5597 (minimal_language::print_type): New member function.
5598 * d-lang.c (d_language_data): Delete la_print_type initializer.
5599 (d_language::print_type): New member function.
5600 * f-lang.c (f_language_data): Delete la_print_type initializer.
5601 (f_language::print_type): New member function.
5602 * go-lang.c (go_language_data): Delete la_print_type initializer.
5603 (go_language::print_type): New member function.
5604 * language.c (unk_lang_print_type): Delete.
5605 (unknown_language_data): Delete la_print_type initializer.
5606 (unknown_language::print_type): New member function.
5607 (auto_language_data): Delete la_print_type initializer.
5608 (auto_language::print_type): New member function.
5609 * language.h (language_data): Delete la_print_type field.
5610 (language_defn::print_type): New function.
5611 (LA_PRINT_TYPE): Update.
5612 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5613 (m2_language::print_type): New member function.
5614 * objc-lang.c (objc_language_data): Delete la_print_type
5615 initializer.
5616 (objc_language::print_type): New member function.
5617 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5618 to opencl_language::print_type.
5619 (opencl_language_data): Delete la_print_type initializer.
5620 (opencl_language::print_type): New member function, implementation
5621 from opencl_print_type.
5622 * p-lang.c (pascal_language_data): Delete la_print_type
5623 initializer.
5624 (pascal_language::print_type): New member function.
5625 * rust-lang.c (rust_print_type): Delete, implementation moved to
5626 rust_language::print_type.
5627 (rust_language_data): Delete la_print_type initializer.
5628 (rust_language::print_type): New member function, implementation
5629 from rust_print_type.
5630
6f827019
AB
56312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5632
5633 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5634 implementation moves to...
5635 (ada_language::sniff_from_mangled_name): ...here. Update return
5636 type.
5637 (ada_language_data): Delete la_sniff_from_mangled_name
5638 initializer.
5639 * c-lang.c (c_language_data): Likewise.
5640 (cplus_language_data): Likewise.
5641 (cplus_language::sniff_from_mangled_name): New member function,
5642 implementation taken from gdb_sniff_from_mangled_name.
5643 (asm_language_data): Delete la_sniff_from_mangled_name
5644 initializer.
5645 (minimal_language_data): Likewise.
5646 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5647 implementation moves to cplus_language::sniff_from_mangled_name.
5648 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5649 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5650 moves to...
5651 (d_language::sniff_from_mangled_name): ...here.
5652 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5653 * f-lang.c (f_language_data): Likewise.
5654 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5655 moves to...
5656 (go_language::sniff_from_mangled_name): ...here.
5657 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5658 * language.c (language_sniff_from_mangled_name): Delete.
5659 (unknown_language_data): Delete la_sniff_from_mangled_name
5660 initializer.
5661 (auto_language_data): Likewise.
5662 * language.h (language_data): Delete la_sniff_from_mangled_name
5663 field.
5664 (language_defn::sniff_from_mangled_name): New function.
5665 (language_sniff_from_mangled_name): Delete declaration.
5666 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5667 field.
5668 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5669 implementation moves to...
5670 (objc_language::sniff_from_mangled_name): ...here.
5671 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5672 * opencl-lang.c (opencl_language_data): Likewise.
5673 * p-lang.c (pascal_language_data): Likewise.
5674 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5675 implementation moves to...
5676 (rust_language::sniff_from_mangled_name): ...here.
5677 (rust_language_data): Delete la_sniff_from_mangled_name
5678 initializer.
5679 * symtab.c (symbol_find_demangled_name): Call
5680 sniff_from_mangled_name member function.
5681
fb8006fd
AB
56822020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5683
5684 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5685 initializer.
5686 * c-lang.c (c_language_data): Likewise.
5687 (cplus_language_data): Likewise.
5688 (cplus_language::search_name_hash): New member function.
5689 (asm_language_data): Delete la_search_name_hash initializer.
5690 (minimal_language_data): Likewise.
5691 * d-lang.c (d_language_data): Likewise.
5692 * dictionary.c (default_search_name_hash): Rename to...
5693 (language_defn::search_name_hash): ...this.
5694 * f-lang.c (f_language_data): Likewise.
5695 (f_language::search_name_hash): New member function.
5696 * go-lang.c (go_language_data): Delete la_search_name_hash
5697 initializer.
5698 * language.c (unknown_language_data): Likewise.
5699 (auto_language_data): Likewise.
5700 * language.h (struct language_data): Delete la_search_name_hash
5701 field.
5702 (language_defn::search_name_hash): Declare new member function.
5703 (default_search_name_hash): Delete declaration.
5704 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5705 initializer.
5706 * objc-lang.c (objc_language_data): Likewise.
5707 * opencl-lang.c (opencl_language_data): Likewise.
5708 * p-lang.c (pascal_language_data): Likewise.
5709 * rust-lang.c (rust_language_data): Likewise.
5710 * symtab.c (search_name_hash): Update call.
5711
8e25bafe
AB
57122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5713
5714 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5715 initializer.
5716 * c-lang.c (class compile_instance): Declare.
5717 (c_language_data): Delete la_get_compile_instance initializer.
5718 (c_language::get_compile_instance): New member function.
5719 (cplus_language_data): Delete la_get_compile_instance initializer.
5720 (cplus_language::get_compile_instance): New member function.
5721 (asm_language_data): Delete la_get_compile_instance initializer.
5722 (minimal_language_data): Likewise.
5723 * c-lang.h (c_get_compile_context): Update comment.
5724 (cplus_get_compile_context): Update comment.
5725 * compile/compile.c (compile_to_object): Update calls, don't rely
5726 on function pointer being NULL.
5727 * d-lang.c (d_language_data): Delete la_get_compile_instance
5728 initializer.
5729 * f-lang.c (f_language_data): Likewise.
5730 * go-lang.c (go_language_data): Likewise.
5731 * language.c (unknown_language_data): Likewise.
5732 (auto_language_data): Likewise.
5733 * language.h (language_data): Delete la_get_compile_instance field.
5734 (language_defn::get_compile_instance): New member function.
5735 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5736 initializer.
5737 * objc-lang.c (objc_language_data): Likewise.
5738 * opencl-lang.c (opencl_language_data): Likewise.
5739 * p-lang.c (pascal_language_data): Likewise.
5740 * rust-lang.c (rust_language_data): Likewise.
5741
4009ee92
AB
57422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5743
5744 * ada-lang.c (ada_add_all_symbols): Update comment.
5745 (ada_iterate_over_symbols): Delete, move implementation to...
5746 (ada_language::iterate_over_symbols): ...here, a new member
5747 function, rewrite to use range based for loop.
5748 (ada_language_data): Delete la_iterate_over_symbols initializer.
5749 * c-lang.c (c_language_data): Likewise.
5750 (cplus_language_data): Likewise.
5751 (asm_language_data): Likewise.
5752 (minimal_language_data): Likewise.
5753 * d-lang.c (d_language_data): Likewise.
5754 * f-lang.c (f_language_data): Likewise.
5755 * go-lang.c (go_language_data): Likewise.
5756 * language.c (unknown_language_data): Likewise.
5757 (auto_language_data): Likewise.
5758 * language.h (language_data): Delete la_iterate_over_symbols field.
5759 (language_defn::iterate_over_symbols): New member function.
5760 (LA_ITERATE_OVER_SYMBOLS): Update.
5761 * linespec.c (iterate_over_all_matching_symtabs): Update.
5762 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5763 initializer.
5764 * objc-lang.c (objc_language_data): Likewise.
5765 * opencl-lang.c (opencl_language_data): Likewise.
5766 * p-lang.c (pascal_language_data): Likewise.
5767 * rust-lang.c (rust_language_data): Likewise.
5768
54f4ca46
AB
57692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5770
5771 * ada-lang.c (ada_language_data): Delete
5772 la_lookup_transparent_type initializer.
5773 * c-lang.c (c_language_data): Likewise.
5774 (cplus_language_data): Likewise.
5775 (cplus_language::lookup_transparent_type): New member function.
5776 (asm_language_data): Delete la_lookup_transparent_type
5777 initializer.
5778 (minimal_language_data): Likewise.
5779 * d-lang.c (d_language_data): Likewise.
5780 * f-lang.c (f_language_data): Likewise.
5781 * go-lang.c (go_language_data): Likewise.
5782 * language.c (unknown_language_data): Likewise.
5783 (auto_language_data): Likewise.
5784 * language.h (struct language_data): Delete
5785 la_lookup_transparent_type field.
5786 (language_defn::lookup_transparent_type): New member function.
5787 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5788 initializer.
5789 * objc-lang.c (objc_language_data): Likewise.
5790 * opencl-lang.c (opencl_language_data): Likewise.
5791 * p-lang.c (pascal_language_data): Likewise.
5792 * rust-lang.c (rust_language_data): Likewise.
5793 * symtab.c (symbol_matches_domain): Update call.
5794
1fb314aa
AB
57952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5796
5797 * ada-lang.c (ada_language_arch_info): Delete function, move
5798 implementation to...
5799 (ada_language::language_arch_info): ...here, a new member
5800 function.
5801 (ada_language_data): Delete la_language_arch_info.
5802 * c-lang.c (c_language_data): Likewise.
5803 (c_language::language_arch_info): New member function.
5804 (cplus_language_arch_info): Delete function, move
5805 implementation to...
5806 (cplus_language::language_arch_info): ...here, a new member
5807 function.
5808 (cplus_language_data): Delete la_language_arch_info.
5809 (asm_language_data): Likewise.
5810 (asm_language::language_arch_info): New member function.
5811 (minimal_language_data): Delete la_language_arch_info.
5812 (minimal_language::language_arch_info): New member function.
5813 * d-lang.c (d_language_arch_info): Delete function, move
5814 implementation to...
5815 (d_language::language_arch_info): ...here, a new member
5816 function.
5817 (d_language_data): Delete la_language_arch_info.
5818 * f-lang.c (f_language_arch_info): Delete function, move
5819 implementation to...
5820 (f_language::language_arch_info): ...here, a new member
5821 function.
5822 (f_language_data): Delete la_language_arch_info.
5823 * go-lang.c (go_language_arch_info): Delete function, move
5824 implementation to...
5825 (go_language::language_arch_info): ...here, a new member
5826 function.
5827 (go_language_data): Delete la_language_arch_info.
5828 * language.c (unknown_language_data): Likewise.
5829 (unknown_language::language_arch_info): New member function.
5830 (auto_language_data): Delete la_language_arch_info.
5831 (auto_language::language_arch_info): New member function.
5832 (language_gdbarch_post_init): Update call to
5833 la_language_arch_info.
5834 * language.h (language_data): Delete la_language_arch_info
5835 function pointer.
5836 (language_defn::language_arch_info): New function.
5837 * m2-lang.c (m2_language_arch_info): Delete function, move
5838 implementation to...
5839 (m2_language::language_arch_info): ...here, a new member
5840 function.
5841 (m2_language_data): Delete la_language_arch_info.
5842 * objc-lang.c (objc_language_arch_info): Delete function, move
5843 implementation to...
5844 (objc_language::language_arch_info): ...here, a new member
5845 function.
5846 (objc_language_data): Delete la_language_arch_info.
5847 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5848 implementation to...
5849 (opencl_language::language_arch_info): ...here, a new member
5850 function.
5851 (opencl_language_data): Delete la_language_arch_info.
5852 * p-lang.c (pascal_language_arch_info): Delete function, move
5853 implementation to...
5854 (pascal_language::language_arch_info): ...here, a new member
5855 function.
5856 (pascal_language_data): Delete la_language_arch_info.
5857 * rust-lang.c (rust_language_arch_info): Delete function, move
5858 implementation to...
5859 (rust_language::language_arch_info): ...here, a new member
5860 function.
5861 (rust_language_data): Delete la_language_arch_info.
5862
48448202
AB
58632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5864
5865 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5866 initializer.
5867 * c-lang.c (c_language_data): Likewise.
5868 (cplus_language_data): Likewise.
5869 (cplus_language::pass_by_reference_info): New method.
5870 (asm_language_data): Delete la_pass_by_reference initializer.
5871 (minimal_language_data): Likewise.
5872 * cp-abi.c (cp_pass_by_reference): Remove use of
5873 default_pass_by_reference.
5874 * d-lang.c (d_language_data): Likewise.
5875 * f-lang.c (f_language_data): Likewise.
5876 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5877 default_pass_by_reference.
5878 * go-lang.c (go_language_data): Likewise.
5879 * language.c (language_pass_by_reference): Update.
5880 (default_pass_by_reference): Delete.
5881 (unknown_language_data): Delete la_pass_by_reference
5882 initializer.
5883 (auto_language_data): Likewise.
5884 * language.h (struct language_data): Delete la_pass_by_reference
5885 field.
5886 (language_defn::pass_by_reference_info): New member function.
5887 (default_pass_by_reference): Delete declaration.
5888 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5889 initializer.
5890 * objc-lang.c (objc_language_data): Likewise.
5891 * opencl-lang.c (opencl_language_data): Likewise.
5892 * p-lang.c (pascal_language_data): Likewise.
5893 * rust-lang.c (rust_language_data): Likewise.
5894
15e5fd35
AB
58952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5896
5897 * ada-lang.c (ada_read_var_value): Delete function, move
5898 implementation to...
5899 (ada_language::read_var_value): ...here.
5900 (ada_language_data): Delete la_read_var_value initializer.
5901 * c-lang.c (c_language_data): Likewise.
5902 (cplus_language_data): Likewise.
5903 (minimal_language_data): Likewise.
5904 * d-lang.c (d_language_data): Likewise.
5905 * f-lang.c (f_language_data): Likewise.
5906 * findvar.c (default_read_var_value): Rename to...
5907 (language_defn::read_var_value): ...this.
5908 * findvar.c (read_var_value): Update header comment, and change to
5909 call member function instead of function pointer.
5910 * go-lang.c (go_language_data): Likewise.
5911 * language.c (unknown_language_data): Delete la_read_var_value
5912 initializer.
5913 (auto_language_data): Likewise.
5914 * language.h (struct language_data): Delete la_read_var_value
5915 field.
5916 (language_defn::read_var_value): New member function.
5917 (default_read_var_value): Delete declaration.
5918 * m2-lang.c (m2_language_data): Delete la_read_var_value
5919 initializer.
5920 * objc-lang.c (objc_language_data): Likewise.
5921 * opencl-lang.c (opencl_language_data): Likewise.
5922 * p-lang.c (pascal_language_data): Likewise.
5923 * rust-lang.c (rust_language_data): Likewise.
5924 * value.h (default_read_var_value): Delete declaration.
5925
5bd40f2a
AB
59262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5927
5928 * ada-lang.c (ada_print_array_index): Delete function, move
5929 implementation to...
5930 (ada_language::print_array_index): ...here.
5931 (ada_language_data): Delete la_print_array_index initializer.
5932 * c-lang.c (c_language_data): Likewise.
5933 (cplus_language_data): Likewise.
5934 (minimal_language_data): Likewise.
5935 * d-lang.c (d_language_data): Likewise.
5936 * f-lang.c (f_language_data): Likewise.
5937 * go-lang.c (go_language_data): Likewise.
5938 * language.c (default_print_array_index): Delete function, move
5939 implementation to...
5940 (language_defn::print_array_index): ...here.
5941 (unknown_language_data): Delete la_print_array_index initializer.
5942 (auto_language_data): Likewise.
5943 * language.h (struct language_data): Delete la_print_array_index
5944 field.
5945 (language_defn::print_array_index): New member function.
5946 (LA_PRINT_ARRAY_INDEX): Update.
5947 (default_print_array_index): Delete declaration.
5948 * m2-lang.c (m2_language_data): Delete la_print_array_index
5949 initializer.
5950 * objc-lang.c (objc_language_data): Likewise.
5951 * opencl-lang.c (opencl_language_data): Likewise.
5952 * p-lang.c (pascal_language_data): Likewise.
5953 * rust-lang.c (rust_language_data): Likewise.
5954
0874fd07
AB
59552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5956
5957 * gdb/ada-lang.c (ada_language_defn): Convert to...
5958 (ada_language_data): ...this.
5959 (class ada_language): New class.
5960 (ada_language_defn): New static global.
5961 * gdb/c-lang.c (c_language_defn): Convert to...
5962 (c_language_data): ...this.
5963 (class c_language): New class.
5964 (c_language_defn): New static global.
5965 (cplus_language_defn): Convert to...
5966 (cplus_language_data): ...this.
5967 (class cplus_language): New class.
5968 (cplus_language_defn): New static global.
5969 (asm_language_defn): Convert to...
5970 (asm_language_data): ...this.
5971 (class asm_language): New class.
5972 (asm_language_defn): New static global.
5973 (minimal_language_defn): Convert to...
5974 (minimal_language_data): ...this.
5975 (class minimal_language): New class.
5976 (minimal_language_defn): New static global.
5977 * gdb/d-lang.c (d_language_defn): Convert to...
5978 (d_language_data): ...this.
5979 (class d_language): New class.
5980 (d_language_defn): New static global.
5981 * gdb/f-lang.c (f_language_defn): Convert to...
5982 (f_language_data): ...this.
5983 (class f_language): New class.
5984 (f_language_defn): New static global.
5985 * gdb/go-lang.c (go_language_defn): Convert to...
5986 (go_language_data): ...this.
5987 (class go_language): New class.
5988 (go_language_defn): New static global.
5989 * gdb/language.c (unknown_language_defn): Remove declaration.
5990 (current_language): Initialize to nullptr, real initialization is
5991 moved to _initialize_language.
5992 (languages): Delete global.
5993 (language_defn::languages): Define.
5994 (set_language_command): Use language_defn::languages.
5995 (set_language): Likewise.
5996 (range_error): Likewise.
5997 (language_enum): Likewise.
5998 (language_def): Likewise.
5999 (add_set_language_command): Use language_def::languages for the
6000 language list, and language_def to lookup language pointers.
6001 (skip_language_trampoline): Use language_defn::languages.
6002 (unknown_language_defn): Convert to...
6003 (unknown_language_data): ...this.
6004 (class unknown_language): New class.
6005 (unknown_language_defn): New static global.
6006 (auto_language_defn): Convert to...
6007 (auto_language_data): ...this.
6008 (class auto_language): New class.
6009 (auto_language_defn): New static global.
6010 (language_gdbarch_post_init): Use language_defn::languages.
6011 (_initialize_language): Initialize current_language.
6012 * gdb/language.h (struct language_defn): Rename to...
6013 (struct language_data): ...this.
6014 (struct language_defn): New.
6015 (auto_language_defn): Delete.
6016 (unknown_language_defn): Delete.
6017 (minimal_language_defn): Delete.
6018 (ada_language_defn): Delete.
6019 (asm_language_defn): Delete.
6020 (c_language_defn): Delete.
6021 (cplus_language_defn): Delete.
6022 (d_language_defn): Delete.
6023 (f_language_defn): Delete.
6024 (go_language_defn): Delete.
6025 (m2_language_defn): Delete.
6026 (objc_language_defn): Delete.
6027 (opencl_language_defn): Delete.
6028 (pascal_language_defn): Delete.
6029 (rust_language_defn): Delete.
6030 * gdb/m2-lang.c (m2_language_defn): Convert to...
6031 (m2_language_data): ...this.
6032 (class m2_language): New class.
6033 (m2_language_defn): New static global.
6034 * gdb/objc-lang.c (objc_language_defn): Convert to...
6035 (objc_language_data): ...this.
6036 (class objc_language): New class.
6037 (objc_language_defn): New static global.
6038 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6039 (opencl_language_data): ...this.
6040 (class opencl_language): New class.
6041 (opencl_language_defn): New static global.
6042 * gdb/p-lang.c (pascal_language_defn): Convert to...
6043 (pascal_language_data): ...this.
6044 (class pascal_language): New class.
6045 (pascal_language_defn): New static global.
6046 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6047 language pointer, update comment format.
6048 * gdb/rust-lang.c (rust_language_defn): Convert to...
6049 (rust_language_data): ...this.
6050 (class rust_language): New class.
6051 (rust_language_defn): New static global.
6052
1313c56e
AB
60532020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6054
6055 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6056 member variable.
6057 <m_stmt_at_address>: New member variable.
6058 (lnp_state_machine::record_line): Don't record some lines, update
6059 tracking of is_stmt at the same address.
6060 (lnp_state_machine::lnp_state_machine): Initialise new member
6061 variables.
6062
b7ed9f3d
ST
60632020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6064
6065 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6066 "-include gnu-nat-mig.h".
6067 * gnu-nat-mig.h: New file.
6068 * gnu-nat.c: Include "gnu-nat-mig.h".
6069 (exc_server, msg_reply_server, notify_server,
6070 process_reply_server): Remove declarations.
6071
14a8ad62
ST
60722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6073
6074 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6075 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6076 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6077 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6078 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6079 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6080 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6081 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6082 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6083 to gnu_nat_target class.
6084 * gnu-nat.c: Likewise.
6085 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6086 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6087 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6088 object.
6089 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6090 instead of `gnu_target'.
6091
0af5e106
ST
60922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6093
6094 * i386-gnu-tdep.c: Include "gdbcore.h"
6095 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6096 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6097 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6098 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6099 i386_gnu_sigcontext_addr): New functions
6100 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6101 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6102 tdep.
6103
078f2fc9
ST
61042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6105
6106 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6107 before fork_inferior call. Avoid calling it if target_is_pushed returns
6108 true.
6109
53dff92c
ST
61102020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6111
6112 * gnu-nat.h (gnu_target): New variable declaration.
6113 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6114 gnu_target.
6115 * gnu-nat.c (gnu_target): New variable.
6116 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6117 add_thread_silent, and add_thread calls.
6118 (gnu_nat_target::create_inferior): Pass gnu_target to
6119 add_thread_silent, thread_change_ptid call.
6120 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6121 call.
6122
5a8b8627
ST
61232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6124
6125 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6126 (gnu_nat_target::find_memory_regions): Remove unused
6127 `old_address' variable.
6128
366f550a
ST
61292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6130
6131 * gnu-nat.c: Include "gdbarch.h".
6132
f14871bf
ST
61332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6134
6135 * reply_mig_hack.awk (Error return): Cast function through
6136 void *, to bypass compiler function call check.
6137
c6887cfb
ST
61382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6139
6140 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6141 $(srcdir)/reply_mig_hack.awk.
6142
6930bffe
ST
61432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6144
6145 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6146
112c22ed
JG
61472020-05-30 Jonny Grant <jg@jguk.org>
6148
6149 * configure.ac (ACX_BUGURL): change bug URL to https.
6150
f68f85b5
PA
61512020-05-30 Pedro Alves <palves@redhat.com>
6152
6153 * cp-support.c (replace_typedefs_template): New.
6154 (replace_typedefs_qualified_name): Handle
6155 DEMANGLE_COMPONENT_TEMPLATE.
6156
976ca316
SM
61572020-05-29 Simon Marchi <simon.marchi@efficios.com>
6158
6159 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6160 dwarf2/index-cache.h, dwarf2/index-write.c,
6161 dwarf2/index-write.h, dwarf2/line-header.c,
6162 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6163 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6164 variables and fields from `dwarf2_per_objfile` to just
6165 `per_objfile` throughout.
6166
989ade05
SM
61672020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6168
6169 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6170 <push_dwarf_reg_entry_value>: Add comment.
6171
c47bae85
KB
61722020-05-28 Kevin Buettner <kevinb@redhat.com>
6173 Keith Seitz <keiths@redhat.com>
6174
6175 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6176 instead of PyEval_ReleaseLock.
6177 (class gdbpy_gil): Move to earlier in file.
6178 (finalize_python): Set gdb_python_initialized.
6179 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6180 when not initialized.
6181
44486dcf
SM
61822020-05-28 Simon Marchi <simon.marchi@efficios.com>
6183
6184 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6185 <push_dwarf_reg_entry_value>: Remove assert. Override
6186 per_objfile with caller_per_objfile.
6187
f030440d
TV
61882020-05-28 Tom de Vries <tdevries@suse.de>
6189
6190 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6191 PR gold/15646 workaround to symbol kind "type".
6192
f0fbb768
TT
61932020-05-27 Tom Tromey <tromey@adacore.com>
6194
6195 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6196
af0b2a3e
TT
61972020-05-27 Tom Tromey <tromey@adacore.com>
6198
6199 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6200 Use htab_find_with_hash.
6201 <add_abbrev>: Remove "abbrev_number" parameter.
6202 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6203 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6204 (hash_abbrev): Add comment.
6205 (abbrev_table::lookup_abbrev): Move to header file.
6206 (abbrev_table::read): Update.
6207
7d00ffec
TT
62082020-05-27 Tom Tromey <tromey@adacore.com>
6209
6210 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6211 method.
6212 <canonical_name>: New member.
6213 <raw_name>: Rename from "name".
6214 (partial_die_info): Initialize canonical_name.
6215 (scan_partial_symbols): Check raw_name.
6216 (partial_die_parent_scope, partial_die_full_name)
6217 (add_partial_symbol, add_partial_subprogram)
6218 (add_partial_enumeration, load_partial_dies): Use "name" method.
6219 (partial_die_info::name): New method.
6220 (partial_die_info::read, guess_partial_die_structure_name)
6221 (partial_die_info::fixup): Update.
6222
697bba18
TT
62232020-05-27 Tom Tromey <tromey@adacore.com>
6224
6225 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6226 <get_ref_die_offset>: Inline.
6227 <get_ref_die_offset_complaint>: New method.
6228 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6229 (attribute::get_ref_die_offset_complaint): Rename from
6230 get_ref_die_offset. Just issue complaint.
6231
c17ace43
HD
62322020-05-27 Hannes Domani <ssbssa@yahoo.de>
6233
6234 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6235
96445f0b
HD
62362020-05-27 Hannes Domani <ssbssa@yahoo.de>
6237
6238 * exec.c (exec_file_attach): Use errno value of first openp failure.
6239
ac637ec3
HD
62402020-05-27 Hannes Domani <ssbssa@yahoo.de>
6241
6242 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6243 Don't close thread handle.
6244
17ee85fc
TT
62452020-05-27 Tom Tromey <tom@tromey.com>
6246 Simon Marchi <simon.marchi@efficios.com>
6247
6248 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6249 shared_ptr.
6250 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6251 member.
6252 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6253 dwarf2_per_bfd_objfile_data_key>: New globals.
6254 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6255 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6256 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6257 shared.
6258 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6259 short-circuit when sharing.
6260 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6261 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6262
39b16f87
SM
62632020-05-27 Simon Marchi <simon.marchi@efficios.com>
6264
6265 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6266 to...
6267 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6268 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6269
fcf23d5b
SM
62702020-05-27 Simon Marchi <simon.marchi@efficios.com>
6271
6272 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6273 build_name_components, find_name_components_bounds>:
6274 Add per_objfile parameter.
6275 (struct mapped_index) <symbol_name_at>: Likewise.
6276 (struct mapped_debug_names): Remove constructor.
6277 <dwarf2_per_objfile>: Remove field.
6278 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6279 (mapped_index_base::find_name_components_bounds,
6280 mapped_index_base::build_name_components,
6281 dw2_expand_symtabs_matching_symbol): Likewise.
6282 (class mock_mapped_index) <symbol_name_at>: Likewise.
6283 (check_match): Likewise.
6284 (check_find_bounds_finds): Likewise.
6285 (test_mapped_index_find_name_component_bounds): Update.
6286 (CHECK_MATCH): Update.
6287 (dw2_expand_symtabs_matching): Update.
6288 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6289 per_objfile parameter.
6290 <find_vec_in_debug_names>: Likewise.
6291 <m_per_objfile>: New field.
6292 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6293 parameter.
6294 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6295 (dw2_debug_names_iterator::next): Update.
6296 (dw2_debug_names_lookup_symbol): Update.
6297 (dw2_debug_names_expand_symtabs_for_function): Update.
6298 (dw2_debug_names_map_matching_symbols): Update.
6299 (dw2_debug_names_expand_symtabs_matching): Update.
6300 (dwarf2_read_debug_names): Update.
6301
7188ed02
SM
63022020-05-27 Simon Marchi <simon.marchi@efficios.com>
6303
6304 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6305 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6306 move to dwarf2_per_objfile.
6307 <read_in_chain>: Remove.
6308 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6309 remove_all_cus, age_comp_units>: New methods.
6310 <m_dwarf2_cus>: New member.
6311 (struct dwarf2_per_cu_data) <cu>: Remove.
6312 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6313 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6314 moved to methods of dwarf2_per_objfile.
6315 (dwarf2_clear_marks): Remove.
6316 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6317 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6318 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6319 (dwarf2_per_objfile::remove_all_cus): New.
6320 (class free_cached_comp_units) <~free_cached_comp_units>:
6321 Update.
6322 (load_cu): Update.
6323 (dw2_do_instantiate_symtab): Adjust.
6324 (fill_in_sig_entry_from_dwo_entry): Adjust.
6325 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6326 (cutu_reader::cutu_reader): Likewise.
6327 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6328 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6329 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6330 and dwarf2_per_objfile::age_comp_units.
6331 (load_partial_comp_unit): Update.
6332 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6333 (process_queue): Likewise.
6334 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6335 backlink.
6336 (dwarf2_read_addr_index): Likewise.
6337 (follow_die_offset): Likewise.
6338 (dwarf2_fetch_die_loc_sect_off): Likewise.
6339 (dwarf2_fetch_constant_bytes): Likewise.
6340 (dwarf2_fetch_die_type_sect_off): Likewise.
6341 (follow_die_sig_1): Likewise.
6342 (load_full_type_unit): Likewise.
6343 (read_signatured_type): Likewise.
6344 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6345 (dwarf2_cu::~dwarf2_cu): Remove.
6346 (dwarf2_per_objfile::get_cu): New.
6347 (dwarf2_per_objfile::set_cu): New.
6348 (age_cached_comp_units): Rename to...
6349 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6350 to std::unordered_map.
6351 (free_one_cached_comp_unit): Rename to...
6352 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6353 to std::unordered_map.
6354 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6355 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6356 a dwarf2_per_objfile in data.
6357 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6358 (dwarf2_clear_marks): Remove.
6359
2e671100
SM
63602020-05-27 Simon Marchi <simon.marchi@efficios.com>
6361
6362 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6363 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6364 (init_tu_and_read_dwo_dies): Likewise.
6365 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6366 (cutu_reader::cutu_reader): Likewise.
6367 (load_partial_comp_unit): Likewise.
6368 (process_psymtab_comp_unit): Update.
6369 (build_type_psymtabs_1): Update.
6370 (process_skeletonless_type_unit): Update.
6371 (load_full_comp_unit): Update.
6372 (find_partial_die): Update.
6373 (dwarf2_read_addr_index): Update.
6374 (read_signatured_type): Update.
6375
2e6a9f79
SM
63762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6377
6378 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6379 m_header_read_in>: New fields.
6380 <get_header>: New method.
6381 * dwarf2/read.c (per_cu_header_read_in): Remove.
6382 (dwarf2_per_cu_data::get_header): New.
6383 (dwarf2_per_cu_data::addr_size): Update.
6384 (dwarf2_per_cu_data::offset_size): Update.
6385 (dwarf2_per_cu_data::ref_addr_size): Update.
6386
1b555f17
SM
63872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6388
6389 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6390 (dw2_do_instantiate_symtab): Update.
6391 (queue_and_load_all_dwo_tus): Change parameter from
6392 dwarf2_per_cu_data to dwarf2_cu.
6393 (dwarf2_fetch_die_loc_sect_off): Update.
6394 (dwarf2_fetch_constant_bytes): Update.
6395 (dwarf2_fetch_die_type_sect_off): Update.
6396
8fc0b21d
SM
63972020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6398
6399 * dwarf2/read.c (process_full_comp_unit,
6400 process_full_type_unit): Remove per_cu, per_objfile paramters.
6401 Add dwarf2_cu parameter.
6402 (process_queue): Update.
6403
168c9250
SM
64042020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6405
6406 * dwarf2/read.c (create_cu_from_index_list): Replace
6407 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6408 (create_cus_from_index_list): Likewise.
6409 (create_cus_from_index): Likewise.
6410 (create_signatured_type_table_from_index): Likewise.
6411 (create_cus_from_debug_names_list): Likewise.
6412 (create_cus_from_debug_names): Likewise.
6413 (dwarf2_read_gdb_index): Update.
6414 (dwarf2_read_debug_names): Update.
6415
e286671b
TT
64162020-05-27 Tom Tromey <tom@tromey.com>
6417 Simon Marchi <simon.marchi@efficios.com>
6418
6419 * dwarf2/read.h (struct dwarf2_per_objfile)
6420 <get_type_for_signatured_type, set_type_for_signatured_type>:
6421 New methods.
6422 <m_type_map>: New member.
6423 (struct signatured_type) <type>: Remove.
6424 * dwarf2/read.c
6425 (dwarf2_per_objfile::get_type_for_signatured_type,
6426 dwarf2_per_objfile::set_type_for_signatured_type): New.
6427 (get_signatured_type): Use new methods.
6428
8adb8487
TT
64292020-05-27 Tom Tromey <tom@tromey.com>
6430 Simon Marchi <simon.marchi@efficios.com>
6431
6432 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6433 (struct dwarf2_per_objfile) <type_units>: New member.
6434 <get_type_unit_group_unshareable>: New method.
6435 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6436 num_symtabs, symtabs>: Remove; move to
6437 type_unit_group_unshareable.
6438 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6439 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6440 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6441
127bbf4b
SM
64422020-05-27 Simon Marchi <simon.marchi@efficios.com>
6443
6444 * dwarf2/read.h (struct dwarf2_per_cu_data):
6445 <dwarf2_per_objfile>: Remove.
6446 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6447 dwarf2_per_objfile.
6448 (create_signatured_type_table_from_index): Likewise.
6449 (create_signatured_type_table_from_debug_names): Likewise.
6450 (create_debug_type_hash_table): Likewise.
6451 (fill_in_sig_entry_from_dwo_entry): Likewise.
6452 (create_type_unit_group): Likewise.
6453 (read_comp_units_from_section): Likewise.
6454 (create_cus_hash_table): Likewise.
6455
f6e649dd
SM
64562020-05-27 Simon Marchi <simon.marchi@efficios.com>
6457
6458 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6459 dwarf2_per_cu_data::dwarf2_per_objfile.
6460 (compute_compunit_symtab_includes): Likewise.
6461 (dwarf2_cu::start_symtab): Likewise.
6462
aa66c379
SM
64632020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6464
6465 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6466 parameter.
6467 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6468 (read_namespace_alias): Update.
6469 (lookup_die_type): Update.
6470 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6471 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6472 Update.
6473 (disassemble_dwarf_expression): Update.
6474
120ce1b5
SM
64752020-05-27 Simon Marchi <simon.marchi@efficios.com>
6476
6477 * dwarf2/read.h (struct dwarf2_queue_item): Add
6478 dwarf2_per_objfile parameter, assign new parameter.
6479 <per_objfile>: New field.
6480 * dwarf2/read.c (free_one_cached_comp_unit): Add
6481 dwarf2_per_objfile parameter.
6482 (queue_comp_unit): Likewise.
6483 (dw2_do_instantiate_symtab): Update.
6484 (process_psymtab_comp_unit): Update.
6485 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6486 (process_imported_unit_die): Update.
6487 (queue_and_load_dwo_tu): Update.
6488 (follow_die_offset): Update.
6489 (follow_die_sig_1): Update.
6490
9f47c707
SM
64912020-05-27 Simon Marchi <simon.marchi@efficios.com>
6492
6493 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6494 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6495 (read_call_site_scope): Assign per_objfile.
6496 (dwarf2_per_cu_data::objfile): Remove.
6497 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6498 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6499 dwarf2_per_objfile parameter.
6500 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6501 dwarf2_per_objfile parameter.
6502 (dwarf_expr_reg_to_entry_parameter): Add output
6503 dwarf2_per_objfile parameter.
6504 (locexpr_get_frame_base): Update.
6505 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6506 <push_dwarf_reg_entry_value>: Update.
6507 <call_site_to_target_addr>: Update.
6508 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6509 parameter.
6510 (value_of_dwarf_reg_entry): Update.
6511 (rw_pieced_value): Update.
6512 (indirect_synthetic_pointer): Update.
6513 (dwarf2_evaluate_property): Update.
6514 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6515 parameter.
6516 (locexpr_read_variable): Update.
6517 (locexpr_get_symbol_read_needs): Update.
6518 (loclist_read_variable): Update.
6519
14095eb3
SM
65202020-05-27 Simon Marchi <simon.marchi@efficios.com>
6521
6522 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6523 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6524 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6525 parameter.
6526 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6527 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6528 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6529 parameter.
6530 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6531 sect_variable_value): Add dwarf2_per_objfile parameter.
6532 (class dwarf_evaluate_loc_desc) <dwarf_call,
6533 dwarf_variable_value>: Update.
6534 (fetch_const_value_from_synthetic_pointer): Add
6535 dwarf2_per_objfile parameter.
6536 (fetch_const_value_from_synthetic_pointer): Update.
6537 (coerced_pieced_ref): Update.
6538 (class symbol_needs_eval_context) <dwarf_call,
6539 dwarf_variable_value>: Update.
6540 (dwarf2_compile_expr_to_ax): Update.
6541
3c3cd3d4
SM
65422020-05-27 Simon Marchi <simon.marchi@efficios.com>
6543
6544 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6545 parameter.
6546 (dwarf2_evaluate_loc_desc_full): Update.
6547
82ca3f51
SM
65482020-05-27 Simon Marchi <simon.marchi@efficios.com>
6549
6550 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6551 parameter.
6552 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6553 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6554 dwarf2_per_objfile parameter.
6555 (decode_debug_loc_dwo_addresses): Likewise.
6556 (dwarf2_find_location_expression): Update.
6557 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6558 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6559 parameter.
6560 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6561 parameter.
6562 (locexpr_describe_location_1): Likewise.
6563 (locexpr_describe_location): Update.
6564
4b167ea1
SM
65652020-05-27 Simon Marchi <simon.marchi@efficios.com>
6566
6567 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6568 Remove.
6569 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6570 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6571 (dwarf2_compile_property_to_c): Update.
6572 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6573 use text offset from objfile.
6574 (locexpr_tracepoint_var_ref): Update.
6575 (locexpr_generate_c_location): Update.
6576 (loclist_describe_location): Update.
6577 (loclist_tracepoint_var_ref): Update.
6578 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6579 dwarf2_per_objfile parameter.
6580 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6581 use text offset from objfile.
6582 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6583
89b07335
SM
65842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6585
6586 * dwarf2/expr.h (struct dwarf_expr_context)
6587 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6588 <offset>: Remove.
6589 <per_objfile>: New member.
6590 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6591 dwarf2_per_objfile parameter. Don't set offset, set
6592 per_objfile.
6593 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6594 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6595 a dwarf2_per_objfile object instead of an offset.
6596 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6597 constructor.
6598 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6599 to dwarf2_expr_executor constructor. Don't set offset.
6600 (dwarf2_fetch_cfa_info): Update.
6601 (struct dwarf2_frame_cache) <text_offset>: Remove.
6602 <per_objfile>: New field.
6603 (dwarf2_frame_cache): Update.
6604 (dwarf2_frame_prev_register): Update.
6605 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6606 <dwarf_evaluate_loc_desc>: Add constructor.
6607 (dwarf2_evaluate_loc_desc_full): Update.
6608 (dwarf2_locexpr_baton_eval): Update.
6609 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6610 Add constructor.
6611 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6612
293e7e51
SM
66132020-05-27 Simon Marchi <simon.marchi@efficios.com>
6614
6615 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6616 addr_sized_int_type>: Move to dwarf2_cu.
6617 <int_type>: Move to dwarf2_per_objfile.
6618 (struct dwarf2_per_objfile) <int_type>: Move here.
6619 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6620 addr_sized_int_type>: Move here.
6621 (read_func_scope): Update.
6622 (read_array_type): Update.
6623 (read_tag_string_type): Update.
6624 (attr_to_dynamic_prop): Update.
6625 (dwarf2_per_cu_data::int_type): Rename to...
6626 (dwarf2_per_objfile::int_type): ... this.
6627 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6628 (dwarf2_cu::addr_sized_int_type): ... this.
6629 (read_subrange_type): Update.
6630 (dwarf2_per_cu_data::addr_type): Rename to...
6631 (dwarf2_cu::addr_type): ... this.
6632 (set_die_type): Update.
6633
64874a40
SM
66342020-05-27 Simon Marchi <simon.marchi@efficios.com>
6635
6636 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6637 data through per_cu->cu.
6638
4ab09049
SM
66392020-05-27 Simon Marchi <simon.marchi@efficios.com>
6640
6641 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6642 dwarf2_per_cu_data parameter fo dwarf2_cu.
6643 (lookup_dwo_type_unit): Likewise.
6644 (read_cutu_die_from_dwo): Likewise.
6645 (lookup_dwo_unit): Likewise.
6646 (open_and_init_dwo_file): Likewise.
6647 (lookup_dwo_cutu): Likewise.
6648 (lookup_dwo_comp_unit): Likewise.
6649 (lookup_dwo_type_unit): Likewise.
6650 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6651 (cutu_reader::cutu_reader): Update.
6652
47b14e86
SM
66532020-05-27 Simon Marchi <simon.marchi@efficios.com>
6654
6655 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6656 parameter.
6657 (process_full_type_unit): Likewise.
6658 (process_queue): Update.
6659
43182c09
SM
66602020-05-27 Simon Marchi <simon.marchi@efficios.com>
6661
6662 * dwarf2/read.c (recursively_compute_inclusions): Add
6663 dwarf2_per_objfile parameter.
6664 (compute_compunit_symtab_includes): Likewise.
6665 (process_cu_includes): Update.
6666
7aa104c4
SM
66672020-05-27 Simon Marchi <simon.marchi@efficios.com>
6668
6669 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6670 parameter.
6671 (create_type_unit_group): Update.
6672 (process_psymtab_comp_unit_reader): Update.
6673 (build_type_psymtabs_reader): Update.
6674
e3beb21d
SM
66752020-05-27 Simon Marchi <simon.marchi@efficios.com>
6676
6677 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6678 object through m_this_cu->cu.
6679
d460f660
SM
66802020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6681
6682 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6683 the info parameter.
6684 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6685
ab432490
SM
66862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6687
6688 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6689 per_objfile parameter.
6690 (load_full_type_unit): Add per_objfile parameter.
6691 (read_signatured_type): Likewise.
6692 (load_full_comp_unit): Likewise.
6693 (load_cu): Likewise.
6694 (dw2_do_instantiate_symtab): Likewise.
6695 (dw2_get_file_names): Likewise.
6696 (dw2_map_symtabs_matching_filename): Update.
6697 (dw_expand_symtabs_matching_file_matcher): Update.
6698 (dw2_map_symbol_filenames): Update.
6699 (process_psymtab_comp_unit): Add per_objfile parameter.
6700 (build_type_psymtabs_1): Update.
6701 (process_skeletonless_type_unit): Update.
6702 (dwarf2_build_psymtabs_hard): Update.
6703 (load_partial_comp_unit): Add per_objfile parameter.
6704 (scan_partial_symbols): Update.
6705 (load_full_comp_unit): Add per_objfile parameter.
6706 (process_imported_unit_die): Update.
6707 (create_cus_hash_table): Update.
6708 (find_partial_die): Update.
6709 (dwarf2_read_addr_index): Update.
6710 (follow_die_offset): Update.
6711 (dwarf2_fetch_die_loc_sect_off): Update.
6712 (dwarf2_fetch_constant_bytes): Update.
6713 (dwarf2_fetch_die_type_sect_off): Update.
6714 (follow_die_sig_1): Update.
6715 (load_full_type_unit): Add per_objfile parameter.
6716 (read_signatured_type): Likewise.
6717
313bad1b
SM
67182020-05-27 Simon Marchi <simon.marchi@efficios.com>
6719
6720 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6721 of objfile_name.
6722
c3699833
SM
67232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6724
6725 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6726 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6727 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6728 field.
6729 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6730 (create_cus_from_index): Update.
6731 (dwarf2_read_gdb_index): Update.
6732 (create_cus_from_debug_names): Update.
6733 (dwarf2_read_debug_names): Update.
6734 (get_abbrev_section_for_cu): Update.
6735 (create_all_comp_units): Update.
6736 (read_attribute_value): Update.
6737 (get_debug_line_section): Update.
6738 * dwarf2/index-cache.c (index_cache::store): Update.
6739 * dwarf2/index-write.c (save_gdb_index_command): Update.
6740 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6741
1859c670
SM
67422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6743
6744 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6745 member.
6746 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6747 dwarf2_per_cu_data::per_bfd.
6748 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6749 (create_type_unit_group): Likewise.
6750 (queue_comp_unit): Remove reference to
6751 per_cu->dwarf2_per_objfile.
6752 (maybe_queue_comp_unit): Likewise.
6753 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6754 (create_cus_hash_table): Assign new field.
6755
5e22e966
SM
67562020-05-27 Simon Marchi <simon.marchi@efficios.com>
6757
6758 * dwarf2/read.c: Replace
6759 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6760 dwarf2_cu->per_objfile throughout.
6761
97a1449a
SM
67622020-05-27 Simon Marchi <simon.marchi@efficios.com>
6763
6764 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6765 parameter, don't use per_cu->dwarf2_per_objfile.
6766 (dw2_instantiate_symtab): Likewise.
6767 (dw2_find_last_source_symtab): Update.
6768 (dw2_map_expand_apply): Update.
6769 (dw2_lookup_symbol): Update.
6770 (dw2_expand_symtabs_for_function): Update.
6771 (dw2_expand_all_symtabs): Update.
6772 (dw2_expand_symtabs_with_fullname): Update.
6773 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6774 don't use per_cu->dwarf2_per_objfile.
6775 (dw2_expand_marked_cus): Update.
6776 (dw2_find_pc_sect_compunit_symtab): Update.
6777 (dw2_debug_names_lookup_symbol): Update.
6778 (dw2_debug_names_expand_symtabs_for_function): Update.
6779 (dw2_debug_names_map_matching_symbols): Update.
6780 (dwarf2_psymtab::expand_psymtab): Update.
6781
9e021579
SM
67822020-05-27 Simon Marchi <simon.marchi@efficios.com>
6783
6784 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6785 <per_objfile>: New member.
6786 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6787 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6788 call to dwarf2_cu.
6789 (cutu_reader::cutu_reader): Update.
6790 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6791
ae090bdb
SM
67922020-05-27 Simon Marchi <simon.marchi@efficios.com>
6793
6794 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6795 struct dwarf2_per_objfile.
6796 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6797 dwarf2_per_bfd.
6798 * dwarf2/read.c (set_die_type): Update.
6799 (get_die_type_at_offset): Update.
6800
af758d11
SM
68012020-05-27 Tom Tromey <tom@tromey.com>
6802 Simon Marchi <simon.marchi@efficios.com>
6803
6804 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6805 method.
6806 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6807 get_symtab, set_symtab>: New methods.
6808 <m_symtabs>: New field.
6809 (struct dwarf2_psymtab): Derive from partial_symtab.
6810 <readin_p, get_compunit_symtab>: Declare methods.
6811 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6812 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6813 New methods.
6814 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6815 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6816 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6817 (dw2_symtab_iter_next, dw2_print_stats)
6818 (dw2_expand_symtabs_with_fullname)
6819 (dw2_expand_symtabs_matching_one)
6820 (dw_expand_symtabs_matching_file_matcher)
6821 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6822 (dw2_debug_names_iterator::next)
6823 (dw2_debug_names_map_matching_symbols)
6824 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6825 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6826 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6827 New methods.
6828 (get_compunit_symtab, process_full_comp_unit)
6829 (process_full_type_unit): Update.
6830 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6831
5989a64e
SM
68322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6833
6834 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6835 then introduce a new dwarf2_per_objfile type.
6836 <read_line_string>: Move to the new dwarf2_per_objfile type.
6837 <objfile>: Likewise.
6838 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6839 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6840 dwarf2_per_objfile->per_bfd.
6841 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6842 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6843 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6844 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6845 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6846 (dwarf2_per_objfile::locate_sections): Rename to...
6847 (dwarf2_per_bfd::locate_sections): ... this.
6848 (dwarf2_per_objfile::get_cutu): Rename to...
6849 (dwarf2_per_bfd::get_cutu): ... this.
6850 (dwarf2_per_objfile::get_cu): Rename to...
6851 (dwarf2_per_bfd::get_cu): ... this.
6852 (dwarf2_per_objfile::get_tu): Rename to...
6853 (dwarf2_per_bfd::get_tu): ... this.
6854 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6855 (dwarf2_per_bfd::allocate_per_cu): ... this.
6856 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6857 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6858 (get_gdb_index_contents_ftype): Change parameter from
6859 dwarf2_per_objfile to dwarf2_per_bfd.
6860 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6861 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6862
a50264ba
TT
68632020-05-27 Tom Tromey <tom@tromey.com>
6864 Simon Marchi <simon.marchi@efficios.com>
6865
6866 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6867 (allocate_piece_closure): Set "per_objfile" member.
6868 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6869 (locexpr_describe_location, loclist_describe_location): Use new
6870 member.
6871 * dwarf2/read.c (read_call_site_scope)
6872 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6873 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6874 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6875 handle_data_member_location): Set per_objfile member.
6876 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6877 member.
6878 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6879
d3473f0c
TT
68802020-05-27 Tom Tromey <tom@tromey.com>
6881
6882 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6883 allocate_signatured_type>: Declare new methods.
6884 <m_num_psymtabs>: New member.
6885 (struct dwarf2_per_cu_data) <index>: New member.
6886 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6887 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6888 (create_cu_from_index_list): Use allocate_per_cu.
6889 (create_signatured_type_table_from_index)
6890 (create_signatured_type_table_from_debug_names)
6891 (create_debug_type_hash_table, add_type_unit)
6892 (read_comp_units_from_section): Use allocate_signatured_type.
6893
5717c425
TT
68942020-05-27 Tom Tromey <tom@tromey.com>
6895
6896 * psymtab.c (partial_map_expand_apply)
6897 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6898 (psym_lookup_global_symbol_language)
6899 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6900 (psym_print_stats, psym_expand_symtabs_for_function)
6901 (psym_map_symbol_filenames, psym_map_matching_symbols)
6902 (psym_expand_symtabs_matching)
6903 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6904 (maintenance_check_psymtabs): Update.
6905 * psympriv.h (struct partial_symtab) <readin_p,
6906 get_compunit_symtab>: Add objfile parameter.
6907 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6908 Likewise.
6909 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6910 get_compunit_symtab>: Likewise.
6911 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6912
45940949
TT
69132020-05-27 Tom Tromey <tom@tromey.com>
6914
6915 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6916 member.
6917 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6918 (create_cu_from_index_list)
6919 (create_signatured_type_table_from_index)
6920 (create_signatured_type_table_from_debug_names)
6921 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6922 (dwarf2_create_include_psymtab)
6923 (create_debug_type_hash_table, add_type_unit)
6924 (create_type_unit_group, read_comp_units_from_section)
6925 (dwarf2_compute_name, create_cus_hash_table)
6926 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6927 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6928 obstack.
6929 (dw2_get_real_path): Likewise. Change argument to
6930 dwarf2_per_objfile.
6931
f8c6d152
LM
69322020-05-27 Luis Machado <luis.machado@linaro.org>
6933
6934 PR tdep/26000
6935 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6936 for ldrd (immediate).
6937
e98d2e6d
PW
69382020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6939
6940 * command.h: Add comment giving the name of class_tui.
6941 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6942 create the fake command for the help for class_tui.
6943
53a47a3e
TT
69442020-05-26 Tom Tromey <tromey@adacore.com>
6945
6946 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6947 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6948 (val_atr): New function.
6949 (value_val_atr): Use it.
6950 * ada-valprint.c (print_optional_low_bound): Change low bound
6951 handling for enums.
6952 (val_print_packed_array_elements): Don't call discrete_position.
6953 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6954 discrete_position for enum types.
6955 * language.c (default_print_array_index): Change type.
6956 * language.h (struct language_defn) <la_print_array_index>: Add
6957 index_type parameter, change type of index_value.
6958 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6959 (default_print_array_index): Update.
6960 * valprint.c (maybe_print_array_index): Don't call
6961 value_from_longest. Update.
6962 (value_print_array_elements): Don't call discrete_position.
6963
0bc2354b
TT
69642020-05-26 Tom Tromey <tromey@adacore.com>
6965
6966 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6967 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6968
1218a4bf
CDA
69692020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6970
6971 PR gdb/13519
6972 * avr-tdep.c (avr_integer_to_address): Return data or code
6973 address accordingly to the second 'type' argument of the
6974 function.
6975
92651b1d
MW
69762020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6977
6978 * infcmd.c, inferior.h: (construct_inferior_arguments):
6979 Moved function from here to gdbsupport/common-inferior.{h,cc}
6980
0a4f5f8c
TT
69812020-05-23 Tom Tromey <tom@tromey.com>
6982
6983 Revert commit eca1f90c:
6984 * NEWS: Remove entry for completion styling.
6985 * completer.c (_rl_completion_prefix_display_length): Move
6986 declaration later.
6987 (gdb_fnprint): Revert.
6988 (gdb_display_match_list_1): Likewise.
6989 * cli/cli-style.c (completion_prefix_style)
6990 (completion_difference_style, completion_suffix_style): Remove.
6991 (_initialize_cli_style): Revert.
6992 * cli/cli-style.h (completion_prefix_style)
6993 (completion_difference_style, completion_suffix_style): Don't
6994 declare.
6995
e08bd6c5
PA
69962020-05-24 Pedro Alves <palves@redhat.com>
6997
6998 * symtab.c (completion_list_add_name): Return boolean indication
6999 of whether the symbol matched.
7000 (completion_list_add_symbol): Don't try to remove C++ aliases if
7001 the symbol didn't match in the first place.
7002 * symtab.h (completion_list_add_name): Return bool.
7003
ceacbf6e
SM
70042020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7005
7006 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7007 type::field.
7008
26f16254
JB
70092020-05-23 Joel Brobecker <brobecker@adacore.com>
7010
7011 GDB 9.2 released.
7012
eca1f90c
TT
70132020-05-23 Tom Tromey <tom@tromey.com>
7014
7015 * NEWS: Add entry for completion styling.
7016 * completer.c (_rl_completion_prefix_display_length): Move
7017 declaration earlier.
7018 (gdb_fnprint): Use completion_style.
7019 (gdb_display_match_list_1): Likewise.
7020 * cli/cli-style.c (completion_prefix_style)
7021 (completion_difference_style, completion_suffix_style): New
7022 globals.
7023 (_initialize_cli_style): Register new globals.
7024 * cli/cli-style.h (completion_prefix_style)
7025 (completion_difference_style, completion_suffix_style): Declare.
7026
51e2cfa2
PA
70272020-05-23 Pedro Alves <palves@redhat.com>
7028
7029 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7030 (parse_escape): Use ISDIGIT instead of isdigit.
7031 (puts_debug): Use gdb_isprint instead of isprint.
7032 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7033 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7034 ISSPACE instead of isspace.
7035 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7036 instead of isspace.
7037 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7038 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7039 instead of isxdigit and ISDIGIT instead of isdigit.
7040
80fc5e77
SM
70412020-05-22 Simon Marchi <simon.marchi@efficios.com>
7042
7043 * gdbtypes.h (struct type) <field>: New method.
7044 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7045 or type::field.
7046
3cabb6b0
SM
70472020-05-22 Simon Marchi <simon.marchi@efficios.com>
7048
7049 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7050 (TYPE_FIELDS): Use type::fields. Change all call sites that
7051 modify the propery to use type::set_fields instead.
7052
1f704f76
SM
70532020-05-22 Simon Marchi <simon.marchi@efficios.com>
7054
7055 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7056 type::num_fields instead.
7057
5e33d5f4
SM
70582020-05-22 Simon Marchi <simon.marchi@efficios.com>
7059
7060 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7061 methods.
7062 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7063 that modify the number of fields to use type::set_num_fields
7064 instead.
7065
9392ebb3
TT
70662020-05-22 Tom Tromey <tromey@adacore.com>
7067
7068 * compile/compile-object-load.h (munmap_list_free): Don't
7069 declare.
7070
7c13f4e8
AB
70712020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7072
7073 * annotate.c (annotate_source_line): Update return type, add call
7074 to update current symtab and line.
7075 * annotate.h (annotate_source_line): Update return type, and
7076 extend header comment.
7077 * source.c (info_line_command): Check annotation_level before
7078 calling annotate_source_line.
7079 * stack.c (print_frame_info): If calling annotate_source_line
7080 returns true, then don't print any other source line information.
7081
aa370940
SM
70822020-05-21 Simon Marchi <simon.marchi@efficios.com>
7083
7084 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7085
84d53fa9
SM
70862020-05-21 Simon Marchi <simon.marchi@efficios.com>
7087
7088 * coffread.c (patch_type): Remove NULL check before xfree.
7089 * corefile.c (set_gnutarget): Likewise.
7090 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7091 * exec.c (build_section_table): Likewise.
7092 * remote.c (remote_target::pass_signals): Likewise.
7093 * utils.c (n_spaces): Likewise.
7094 * cli/cli-script.c (document_command): Likewise.
7095 * i386-windows-tdep.c (core_process_module_section): Likewise.
7096 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7097
9d428aae
SM
70982020-05-20 Simon Marchi <simon.marchi@efficios.com>
7099
7100 * symfile.c (reread_symbols): Clear objfile's section_offsets
7101 vector and section indices, re-compute them by calling
7102 sym_offsets.
7103
250106a7
TT
71042020-05-20 Tom Tromey <tromey@adacore.com>
7105
7106 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7107 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7108
9a0bacfb
TV
71092020-05-20 Tom de Vries <tdevries@suse.de>
7110
7111 PR symtab/25833
7112 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7113
7b958a48
AM
71142020-05-20 Alan Modra <amodra@gmail.com>
7115
7116 PR 25993
7117 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7118 bfd_set_filename.
7119 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7120 passed to bfd_set_filename.
7121 * symfile-mem.c (add_vsyscall_page): Likewise for string
7122 passed to symbol_file_add_from_memory.
7123 (symbol_file_add_from_memory): Make name param a const char* and
7124 don't strdup.
7125
c7e97679
AM
71262020-05-20 Alan Modra <amodra@gmail.com>
7127
7128 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7129 rather than accessing bfd->filename directly.
7130 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7131 and use bfd_section_name.
7132 * dwarf2/frame.c (decode_frame_entry): Likewise.
7133 * exec.c (exec_set_section_address): Likewise.
7134 * solib-aix.c (solib_aix_bfd_open): Likewise.
7135 * stap-probe.c (get_stap_base_address): Likewise.
7136 * symfile.c (reread_symbols): Likewise.
7137
563c591b
TT
71382020-05-19 Tom Tromey <tromey@adacore.com>
7139
7140 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7141
f408d82c
SM
71422020-05-19 Simon Marchi <simon.marchi@efficios.com>
7143
7144 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7145
98c59b52
PA
71462020-05-19 Pedro Alves <palves@redhat.com>
7147
7148 * NEWS (set exec-file-mismatch): Adjust entry.
7149 * exec.c: Include "build-id.h".
7150 (validate_exec_file): Try to match build IDs instead of filenames.
7151 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7152 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7153 and pass down 'warn_if_slow'.
7154 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7155 gdb_bfd_open_closure to pass it down.
7156 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7157
4111f652
PA
71582020-05-19 Pedro Alves <palves@redhat.com>
7159
7160 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7161 * target.c (target_fileio_open_1): Rename to target_fileio_open
7162 and make extern. Use bool.
7163 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7164 (target_fileio_read_alloc_1): Adjust.
7165 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7166 (target_fileio_open_warn_if_slow): Delete declaration.
7167
ad80db5b
PA
71682020-05-19 Pedro Alves <palves@redhat.com>
7169
7170 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7171 Adjust all callers.
7172
1d6ce4d3
YS
71732020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7174
7175 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7176 whether disp is negative.
7177
9005fbbb
SM
71782020-05-19 Simon Marchi <simon.marchi@efficios.com>
7179
7180 * symfile.h (struct symfile_segment_data)
7181 <~symfile_segment_data>: Remove.
7182 <segment_info>: Change to std::vector.
7183 * symfile.c (default_symfile_segments): Update.
7184 * elfread.c (elf_symfile_segments): Update.
7185
68b888ff
SM
71862020-05-19 Simon Marchi <simon.marchi@efficios.com>
7187
7188 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7189 <segments>: New.
7190 <segment_bases, segment_sizes>: Remove.
7191 * symfile.c (default_symfile_segments): Update.
7192 * elfread.c (elf_symfile_segments): Update.
7193 * remote.c (remote_target::get_offsets): Update.
7194 * solib-target.c (solib_target_relocate_section_addresses):
7195 Update.
7196
62982abd
SM
71972020-05-19 Simon Marchi <simon.marchi@efficios.com>
7198
7199 * symfile.h (struct symfile_segment_data): Initialize fields.
7200 <~symfile_segment_data>: Add.
7201 (symfile_segment_data_up): New.
7202 (struct sym_fns) <sym_segments>: Return a
7203 symfile_segment_data_up.
7204 (default_symfile_segments): Return a symfile_segment_data_up.
7205 (free_symfile_segment_data): Remove.
7206 (get_symfile_segment_data): Return a symfile_segment_data_up.
7207 * symfile.c (default_symfile_segments): Likewise.
7208 (get_symfile_segment_data): Likewise.
7209 (free_symfile_segment_data): Remove.
7210 (symfile_find_segment_sections): Update.
7211 * elfread.c (elf_symfile_segments): Return a
7212 symfile_segment_data_up.
7213 * remote.c (remote_target::get_offsets): Update.
7214 * solib-target.c (solib_target_relocate_section_addresses):
7215 Update.
7216 * symfile-debug.c (debug_sym_segments): Return a
7217 symfile_segment_data_up.
7218
7f204339
RO
72192020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7220
e52a0f1b
RO
7221 PR build/25981
7222 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7223 Hardcode register numbers.
7224
7f204339
RO
7225 PR build/25981
7226 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7227 procfs_find_LDT_entry): Remove.
7228 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7229 procfs_find_LDT_entry): Remove.
7230 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7231 Remove.
7232
7f32a4d5
PA
72332020-05-17 Pedro Alves <palves@redhat.com>
7234 Andrew Burgess <andrew.burgess@embecosm.com>
7235 Keno Fischer <keno@juliacomputing.com>
7236
7237 PR gdb/25741
7238 * breakpoint.c (build_target_condition_list): Update comments.
7239 (build_target_command_list): Update comments and skip matching
7240 locations.
7241 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7242 a separate function. Simplify "set breakpoint auto-hw off"
7243 handling.
7244 (insert_breakpoints): Update comment.
7245 (tracepoint_locations_match): New parameter. For breakpoints,
7246 compare location types too, if the caller wants to.
7247 (handle_automatic_hardware_breakpoints): New functions.
7248 (bp_location_is_less_than): Also sort by location type and
7249 hardware breakpoint length.
7250 (update_global_location_list): Handle "set breakpoint auto-hw on"
7251 here.
7252 (update_breakpoint_locations): Ask breakpoint_locations_match to
7253 ignore location types.
7254
7d93a1e0
SM
72552020-05-16 Simon Marchi <simon.marchi@efficios.com>
7256
7257 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7258 type::name instead.
7259
d0e39ea2
SM
72602020-05-16 Simon Marchi <simon.marchi@efficios.com>
7261
7262 * gdbtypes.h (struct type) <name, set_name>: New methods.
7263 (TYPE_CODE): Use type::name. Change all call sites used to set
7264 the name to use type::set_name instead.
7265
2dab0c7b
TT
72662020-05-16 Tom Tromey <tom@tromey.com>
7267
7268 * top.c (quit_force): Update.
7269 * infrun.c (handle_no_resumed): Update.
7270 * top.h (all_uis): New function.
7271 (ALL_UIS): Remove.
7272
59f7bd8d
SM
72732020-05-16 Simon Marchi <simon.marchi@efficios.com>
7274
7275 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7276
9bf058f0
PA
72772020-05-16 Pedro Alves <palves@redhat.com>
7278
7279 * ia64-linux-nat.c
7280 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7281 Declare method.
7282 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7283
8f86ae1a
SM
72842020-05-15 Simon Marchi <simon.marchi@efficios.com>
7285
7286 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7287 (sparc64_adi_info): Likewise.
7288
d6bc0792
TT
72892020-05-15 Tom Tromey <tom@tromey.com>
7290
7291 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7292 block_objfile.
7293 (lookup_objfile_from_block): Remove.
7294 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7295 (lookup_global_symbol): Use block_objfile.
7296 * symtab.h (lookup_objfile_from_block): Don't declare.
7297 * printcmd.c (clear_dangling_display_expressions): Use
7298 block_objfile.
7299 * parse.c (operator_check_standard): Use block_objfile.
7300
8c14c3a3
TT
73012020-05-15 Tom Tromey <tom@tromey.com>
7302
7303 * language.c (language_alloc_type_symbol): Set
7304 SYMBOL_SECTION.
7305 * symtab.c (initialize_objfile_symbol): Remove.
7306 (allocate_symbol): Remove.
7307 (allocate_template_symbol): Remove.
7308 * dwarf2/read.c (fixup_go_packaging): Use "new".
7309 (new_symbol): Use "new".
7310 (read_variable): Don't call initialize_objfile_symbol. Use
7311 "new".
7312 (read_func_scope): Use "new".
7313 * xcoffread.c (process_xcoff_symbol): Don't call
7314 initialize_objfile_symbol.
7315 (SYMBOL_DUP): Remove.
7316 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7317 "new".
7318 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7319 (allocate_template_symbol): Don't declare.
7320 (struct symbol): Add copy constructor. Change defaults.
7321 * jit.c (finalize_symtab): Use "new".
7322 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7323 Use "new".
7324 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7325 (common_block_end): Use "new".
7326 * mdebugread.c (parse_symbol): Use "new".
7327 (new_symbol): Likewise.
7328
5b4a1a8d
PW
73292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7330
7331 * NEWS: Mention changes to help and apropos.
7332
57b4f16e
PW
73332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7334
7335 * command.h (enum command_class): Improve comments, document
7336 that class_alias is for user-defined aliases, give the class
7337 name for each class, remove unused class_xdb.
7338 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7339 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7340 by a precise class.
7341 * infcmd.c (_initialize_infcmd): Likewise.
7342 * reverse.c (_initialize_reverse): Likewise.
7343 * stack.c (_initialize_stack): Likewise.
7344 * symfile.c (_initialize_symfile): Likewise.
7345 * tracepoint.c (_initialize_tracepoint): Likewise.
7346
7c05caf7
PW
73472020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7348
7349 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7350 when their aliased command is traversed.
7351 (help_cmd): Add fput_command_names_styled call to
7352 output command name and aliases when command has an alias.
7353
3b3aaacb
PW
73542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7355
7356 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7357 * cli/cli-decode.c (help_cmd_list): Declare as static,
7358 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7359 a command together with the command.
7360 (fput_command_name_styled, fput_command_names_styled): New functions.
7361 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7362 fput_command_name_styled.
7363 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7364 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7365
7aa1b46f
PW
73662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7367
7368 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7369 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7370 * command.h (cmd_show_list): Likewise.
7371 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7372 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7373
89bcba74
PW
73742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7375
7376 * unittests/command-def-selftests.c (traverse_command_structure):
7377 Verify all commands of a list have the same prefix command and
7378 that only the top cmdlist commands have a null prefix.
7379
3f4d92eb
PW
73802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7381
7382 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7383 as prefix, not one of its aliases.
7384 (set_cmd_prefix): Remove.
7385 (do_add_cmd): Centralize the setting of the prefix of a command, when
7386 command is defined after its full chain of prefix commands.
7387 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7388 (add_setshow_cmd_full): Likewise.
7389 (update_prefix_field_of_prefixed_commands): New function.
7390 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7391 update_prefix_field_of_prefixed_commands.
7392 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7393 addresses of remote_set_cmdlist and remote_show_cmdlist given
7394 as argument, not the address of an argument.
7395 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7396 * gdb/remote.c (_initialize_remote): Likewise.
7397
0605465f
PW
73982020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7399
7400 * cli/cli-cmds.c (alias_command): Check for an existing alias
7401 using lookup_cmd_composition, as valid_command_p is too strict
7402 and forbids aliases that are the prefix of an existing alias
7403 or command.
7404 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7405 command is properly recognised as a valid command.
7406
58e6ac70
PW
74072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7408
7409 * unittests/help-doc-selftests.c: Rename to
7410 unittests/command-def-selftests.c
7411 * unittests/command-def-selftests.c (help_doc_tests): Update some
7412 comments.
7413 (command_structure_tests, traverse_command_structure): New namespace
7414 and function.
7415 (command_structure_invariants_tests): New function.
7416 (_initialize_command_def_selftests) Renamed from
7417 _initialize_help_doc_selftests, register command_structure_invariants
7418 selftest.
7419
a7b9ceb8
PW
74202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7421
7422 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7423 an alias of 'show'.
7424
b2188a06
JB
74252020-05-15 Joel Brobecker <brobecker@adacore.com>
7426
7427 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7428 ada_is_fixed_point_type. Update all callers.
7429 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7430 all callers.
7431 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7432 Update all callers.
7433 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7434 print_fixed_point_type. Update all callers.
7435 * ada-valprint.c (ada_value_print_num): Replace call to
7436 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7437
a51951c2
KB
74382020-05-14 Kevin Buettner <kevinb@redhat.com>
7439
7440 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7441 processors.
7442 (cpu_supports_bts): Add CV_AMD case.
7443
29d6859f
LM
74442020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7445 Simon Marchi <simon.marchi@efficios.com>
7446
7447 * infrun.c (stop_all_threads): Collect multiple wait events at
7448 each pass.
7449
78134374
SM
74502020-05-14 Simon Marchi <simon.marchi@efficios.com>
7451
7452 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7453 type::code instead.
7454
67607e24
SM
74552020-05-14 Simon Marchi <simon.marchi@efficios.com>
7456
7457 * gdbtypes.h (struct type) <code, set_code>: New methods.
7458 (TYPE_CODE): Use type::code. Change all call sites used to set
7459 the code to use type::set_code instead.
7460
a05575d3
TBA
74612020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7462 Tom de Vries <tdevries@suse.de>
7463 Pedro Alves <palves@redhat.com>
7464
7465 PR threads/25478
7466 * infrun.c (stop_all_threads): Do NOT ignore
7467 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7468 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7469 received.
7470 (handle_no_resumed): Remove code handling a live inferior with no
7471 threads.
7472 * remote.c (has_single_non_exited_thread): New.
7473 (remote_target::update_thread_list): Do not delete a thread if is
7474 the last thread of the process.
7475 * thread.c (thread_select): Call delete_exited_threads instead of
7476 prune_threads.
7477
6ad82919
TBA
74782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7479
7480 * infrun.c (stop_all_threads): Enable/disable thread events of all
7481 targets. Move a debug message denoting the end of the function
7482 into the SCOPED_EXIT block.
7483
d890404b
TBA
74842020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7485
7486 * process-stratum-target.h: Include <set>.
7487 (all_non_exited_process_targets, switch_to_target_no_thread): New
7488 function declarations.
7489 * process-stratum-target.c (all_non_exited_process_targets)
7490 (switch_to_target_no_thread): New function implementations.
7491
293b3ebc
TBA
74922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7493
7494 * infrun.c (handle_inferior_event): Extract out a piece of code
7495 into...
7496 (mark_non_executing_threads): ...this new function.
7497
7ca9b62a
TBA
74982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7499
7500 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7501 use.
7502
fc75c28b
TBA
75032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7504
7505 * regcache.c (regcache_read_pc_protected): New function
7506 implementation that returns 0 if the PC cannot read via
7507 'regcache_read_pc'.
7508 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7509 instead of 'regcache_read_pc'.
7510 (keep_going_pass_signal): Ditto.
7511
a89febbd
TT
75122020-05-13 Tom Tromey <tromey@adacore.com>
7513
7514 * ada-lang.c (align_value): Remove.
7515 (ada_template_to_fixed_record_type_1): Use align_up.
7516
f7e23710
TBA
75172020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7518
7519 * async-event.c: Update the copyright year.
7520 * async-event.h: Update the copyright year.
7521
02ff80c2
SM
75222020-05-12 Simon Marchi <simon.marchi@efficios.com>
7523
7524 * objfiles.h (is_addr_in_objfile,
7525 shared_objfile_contains_address_p): Return bool.
7526 * objfile.c (is_addr_in_objfile,
7527 shared_objfile_contains_address_p): Return bool.
7528
4fd6c7e8
TT
75292020-05-11 Tom Tromey <tromey@adacore.com>
7530
7531 * cli/cli-cmds.c (info_command): Restore.
7532 (_initialize_cli_cmds): Use add_prefix_command for "info".
7533 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7534
5eb68a39
TT
75352020-05-11 Tom Tromey <tromey@adacore.com>
7536
7537 * ada-lang.c (ada_value_primitive_field): Now public.
7538 * ada-lang.h (ada_value_primitive_field): Declare.
7539 * ada-valprint.c (print_field_values): Use
7540 ada_value_primitive_field for wrapper fields.
7541
7666722f
TV
75422020-05-11 Tom de Vries <tdevries@suse.de>
7543
7544 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7545 MODULE_DOMAIN.
7546
3ee6bb11
TV
75472020-05-11 Tom de Vries <tdevries@suse.de>
7548
7549 PR symtab/25941
7550 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7551 with length 0, if not gdb-produced.
7552 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7553
43434996
TV
75542020-05-09 Tom de Vries <tdevries@suse.de>
7555
7556 PR gdb/25955
7557 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7558 calculation.
7559
2f78cffc
TT
75602020-05-09 Tom Tromey <tom@tromey.com>
7561
7562 * top.c (server_command): Now bool.
7563 * top.h (server_command): Now bool.
7564
4f7bc5ed
TT
75652020-05-08 Tom Tromey <tromey@adacore.com>
7566
7567 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7568 already being processed.
7569
8be4b118
TT
75702020-05-08 Tom Tromey <tom@tromey.com>
7571
7572 * printcmd.c (struct display) <next>: Remove.
7573 <display>: New constructor.
7574 <exp_string>: Now a std::string.
7575 <enabled_p>: Now a bool.
7576 (display_number): Move definition earlier.
7577 (displays): Rename from display_chain. Now a std::vector.
7578 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7579 (display_command): Update.
7580 (do_one_display, disable_display)
7581 (enable_disable_display_command, do_enable_disable_display):
7582 Update.
7583 (free_display): Remove.
7584 (clear_displays): Rewrite.
7585 (delete_display): Update.
7586 (map_display_numbers): Use function_view. Remove "data"
7587 parameter. Update.
7588 (do_delete_display): Remove.
7589 (undisplay_command): Update.
7590 (do_one_display, do_displays, disable_display)
7591 (info_display_command): Update.
7592 (do_enable_disable_display): Remove.
7593 (enable_disable_display_command)
7594 (clear_dangling_display_expressions): Update.
7595
94c93c35
TT
75962020-05-08 Tom Tromey <tom@tromey.com>
7597
7598 * symtab.c (set_symbol_cache_size)
7599 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7600 (maintenance_print_symbol_cache_statistics): Update.
7601 * symmisc.c (print_symbol_bcache_statistics)
7602 (print_objfile_statistics, maintenance_print_objfiles)
7603 (maintenance_info_symtabs, maintenance_check_symtabs)
7604 (maintenance_expand_symtabs, maintenance_info_line_tables):
7605 Update.
7606 * symfile-debug.c (set_debug_symfile): Update.
7607 * source.c (forget_cached_source_info): Update.
7608 * python/python.c (gdbpy_progspaces): Update.
7609 * psymtab.c (maintenance_info_psymtabs): Update.
7610 * probe.c (parse_probes): Update.
7611 * linespec.c (iterate_over_all_matching_symtabs)
7612 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7613 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7614 * exec.c (exec_target::close): Update.
7615 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7616 * breakpoint.c (print_one_breakpoint_location)
7617 (create_longjmp_master_breakpoint)
7618 (create_std_terminate_master_breakpoint): Update.
7619 * progspace.c (program_spaces): Now a std::vector.
7620 (maybe_new_address_space): Update.
7621 (add_program_space): Remove.
7622 (program_space::program_space): Update.
7623 (remove_program_space): Update.
7624 (number_of_program_spaces): Remove.
7625 (print_program_space, update_address_spaces): Update.
7626 * progspace.h (program_spaces): Change type.
7627 (ALL_PSPACES): Remove.
7628 (number_of_program_spaces): Don't declare.
7629 (struct program_space) <next>: Remove.
7630
a1fd1ac9
TT
76312020-05-08 Tom Tromey <tom@tromey.com>
7632
7633 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7634 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7635 (enable_break): Update.
7636 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7637 (frv_fdpic_find_canonical_descriptor): Update.
7638 (frv_fetch_objfile_link_map): Update.
7639 * progspace.c (program_space::free_all_objfiles): Update.
7640 (program_space::solibs): New method.
7641 * progspace.h (struct program_space) <solibs>: New method.
7642 * solist.h (master_so_list): Don't declare.
7643 (ALL_SO_LIBS): Remove.
7644 * solib.h (so_list_head): Remove.
7645 (update_solib_list): Update comment.
7646 * solib.c (master_so_list): Remove.
7647 (solib_used, update_solib_list, solib_add)
7648 (info_sharedlibrary_command, clear_solib)
7649 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7650
38eae084
TT
76512020-05-08 Tom Tromey <tom@tromey.com>
7652
7653 * extension.c (extension_languages): Now a std::array.
7654 (ALL_EXTENSION_LANGUAGES): Remove.
7655 (get_ext_lang_defn, get_ext_lang_of_file)
7656 (eval_ext_lang_from_control_command): Update.
7657 (finish_ext_lang_initialization)
7658 (auto_load_ext_lang_scripts_for_objfile)
7659 (ext_lang_type_printers::ext_lang_type_printers)
7660 (apply_ext_lang_type_printers)
7661 (ext_lang_type_printers::~ext_lang_type_printers)
7662 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7663 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7664 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7665 (get_matching_xmethod_workers, ext_lang_colorize)
7666 (ext_lang_before_prompt): Update.
7667 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7668
596dc4ad
TT
76692020-05-08 Tom Tromey <tom@tromey.com>
7670
7671 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7672 overload.
7673 <swap_string, m_string>: Remove.
7674 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7675 Update.
7676 * stabsread.c (define_symbol, read_type): Update.
7677 * linespec.c (find_linespec_symbols): Update.
7678 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7679 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7680 * dbxread.c (read_dbx_symtab): Update.
7681 * cp-support.h (cp_canonicalize_string_full)
7682 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7683 Return unique_xmalloc_ptr.
7684 * cp-support.c (inspect_type): Update.
7685 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7686 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7687 Likewise.
7688 * c-typeprint.c (print_name_maybe_canonical): Update.
7689 * break-catch-throw.c (check_status_exception_catchpoint):
7690 Update.
7691
bf4cb9be
TV
76922020-05-08 Tom de Vries <tdevries@suse.de>
7693
7694 * infrun.c (follow_fork): Copy current_line and current_symtab to
7695 child thread.
7696
a1b68f28
SM
76972020-05-07 Simon Marchi <simon.marchi@efficios.com>
7698
7699 * async-event.c (struct async_signal_handler, struct
7700 async_event_handler): Reformat, remove typedef.
7701
98d48915
SM
77022020-05-07 Simon Marchi <simon.marchi@efficios.com>
7703
7704 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7705 access thistype->main_type->dyn_prop_list directly.
7706
7aa91313
SM
77072020-05-07 Simon Marchi <simon.marchi@efficios.com>
7708
7709 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7710 (remove_dyn_prop): Remove. Update all users to use
7711 type::remove_dyn_prop.
7712 * gdbtypes.c (remove_dyn_prop): Rename to...
7713 (type::remove_dyn_prop): ... this.
7714
5c54719c
SM
77152020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7716
7717 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7718 (add_dyn_prop): Remove. Update all users to use
7719 type::add_dyn_prop.
7720 * gdbtypes.c (add_dyn_prop): Rename to...
7721 (type::add_dyn_prop): ... this.
7722
24e99c6c
SM
77232020-05-07 Simon Marchi <simon.marchi@efficios.com>
7724
7725 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7726 (get_dyn_prop): Remove. Update all users to use
7727 type::dyn_prop.
7728 * gdbtypes.c (get_dyn_prop): Rename to...
7729 (type::dyn_prop): ... this.
7730
0d4bf016
SM
77312020-05-06 Simon Marchi <simon.marchi@efficios.com>
7732
7733 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7734
ac4a4f1c
SM
77352020-05-06 Simon Marchi <simon.marchi@efficios.com>
7736
7737 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7738 instruction, skip it if it's there.
7739
a3bbacc1
SM
77402020-05-05 Simon Marchi <simon.marchi@efficios.com>
7741
7742 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7743
c3236f84
SM
77442020-05-04 Simon Marchi <simon.marchi@efficios.com>
7745
7746 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7747 * gdbtypes.c (recursive_dump_type): Remove use of
7748 TYPE_INCOMPLETE.
7749
3b6acaee
TT
77502020-05-03 Tom Tromey <tom@tromey.com>
7751
7752 * breakpoint.c (catch_command, tcatch_command): Remove.
7753 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7754 add_show_prefix_cmd.
7755 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7756 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7757 Remove.
7758 (add_internal_problem_command): Use add_basic_prefix_cmd,
7759 add_show_prefix_cmd.
7760 * mips-tdep.c (set_mipsfpu_command): Remove.
7761 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7762 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7763 (_initialize_index_cache): Use add_basic_prefix_cmd.
7764 * memattr.c (dummy_cmd): Remove.
7765 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7766 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7767 (_initialize_tui_win): Use add_basic_prefix_cmd,
7768 add_show_prefix_cmd.
7769 * cli/cli-logging.c (set_logging_command): Remove.
7770 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7771 add_show_prefix_cmd.
7772 (show_logging_command): Remove.
7773 * target.c (target_command): Remove.
7774 (add_target): Use add_basic_prefix_cmd.
7775
a51119cd
HD
77762020-05-02 Hannes Domani <ssbssa@yahoo.de>
7777
7778 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7779
652fc23a 77802020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7781
652fc23a
PW
7782 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7783 info_command.
7784
117539e6
KR
77852020-04-30 Kamil Rytarowski <n54@gmx.com>
7786
7787 * nbsd-nat.c (nbsd_enable_proc_events)
7788 (nbsd_nat_target::post_startup_inferior): Add.
7789 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7790 (nbsd_nat_target::update_thread_list): Rewrite.
7791 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7792 "PTRACE_LWP_CREATE".
7793 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7794
102e38eb 77952020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7796
102e38eb
PW
7797 * stack.c (_initialize_stack): Remove duplicated creation
7798 of "frame" command and "f" alias.
7799
ee9d1e5f
HD
78002020-04-30 Hannes Domani <ssbssa@yahoo.de>
7801
7802 PR gdb/18706
7803 * gdbtypes.c (check_typedef): Calculate size of array of
7804 stubbed type.
7805
627c7fb8
HD
78062020-04-30 Hannes Domani <ssbssa@yahoo.de>
7807
7808 PR gdb/15559
7809 * i386-tdep.c (i386_push_dummy_call): Call
7810 i386_thiscall_push_dummy_call.
7811 (i386_thiscall_push_dummy_call): New function.
7812 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7813 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7814 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7815
ffc2844e
SM
78162020-04-29 Simon Marchi <simon.marchi@efficios.com>
7817
7818 * gdbarch.sh (do_read): Add shellcheck disable directive for
7819 warning SC2162.
7820
1207375d
SM
78212020-04-29 Simon Marchi <simon.marchi@efficios.com>
7822
7823 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7824 "referenced but not assigned" warning.
7825
9fdb2916
SM
78262020-04-29 Simon Marchi <simon.marchi@efficios.com>
7827
7828 * gdbarch.sh: Remove code that sets fallbackdefault.
7829
759cea5e
SM
78302020-04-29 Simon Marchi <simon.marchi@efficios.com>
7831
7832 * gdbarch.sh: Use shell operators && and || instead of
7833 -a and -o.
7834
cb02ab24
SM
78352020-04-29 Simon Marchi <simon.marchi@efficios.com>
7836
7837 * gdbarch.sh: Use $(...) instead of `...`.
7838
a6fc5ffc
SM
78392020-04-29 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * gdbarch.sh: Use double quotes around variables.
7842
8d113d13
SM
78432020-04-29 Simon Marchi <simon.marchi@efficios.com>
7844
7845 * gdbarch.sh: Use %s with printf, instead of variables in the
7846 format string.
7847
ed6acedd
TT
78482020-04-29 Tom Tromey <tromey@adacore.com>
7849
7850 PR ada/25875:
7851 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7852 type fields here.
7853 (read_enumeration_type): Call
7854 update_enumeration_type_from_children later. Update comments.
7855 (process_enumeration_scope): Don't create type fields.
7856
b68b1b58
KR
78572020-04-29 Kamil Rytarowski <n54@gmx.com>
7858
7859 * nbsd-tdep.c: Include "xml-syscall.h".
7860 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7861
f94b2e03
KR
78622020-04-29 Kamil Rytarowski <n54@gmx.com>
7863
7864 * nbsd-nat.c: Include "sys/wait.h".
7865 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7866 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7867 (nbsd_nat_target::remove_exec_catchpoint)
7868 (nbsd_nat_target::set_syscall_catchpoint): Add.
7869 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7870 (nbsd_nat_target::insert_exec_catchpoint)
7871 (nbsd_nat_target::remove_exec_catchpoint)
7872 (nbsd_nat_target::set_syscall_catchpoint): Add.
7873 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7874 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7875 `nbsd_get_syscall_number'.
7876
fc49bc72
TT
78772020-04-29 Tom Tromey <tom@tromey.com>
7878
7879 * stack.c (print_block_frame_labels): Remove.
7880
d642b692
HD
78812020-04-29 Hannes Domani <ssbssa@yahoo.de>
7882
7883 PR gdb/17320
7884 * ada-valprint.c (val_print_packed_array_elements): Move array
7885 end bracket to new line.
7886 (ada_val_print_string): Remove extra spaces before first array
7887 element.
7888 * c-valprint.c (c_value_print_array): Likewise.
7889 * m2-valprint.c (m2_print_array_contents): Likewise.
7890 (m2_value_print_inner): Likewise.
7891 * p-valprint.c (pascal_value_print_inner): Likewise.
7892 * valprint.c (generic_val_print_array): Likewise.
7893 (value_print_array_elements): Move first array element and array
7894 end bracket to new line.
7895
ea90f227
TV
78962020-04-29 Tom de Vries <tdevries@suse.de>
7897
7898 PR symtab/25889
7899 * linespec.c (find_method): Fix ix calculation.
7900
4498ef4f
KR
79012020-04-28 Kamil Rytarowski <n54@gmx.com>
7902
7903 * syscalls/update-netbsd.sh: New file.
7904 * syscalls/netbsd.xml: Regenerate.
7905 * data-directory/Makefile.in: Register `netbsd.xml' in
7906 `SYSCALLS_FILES'.
7907
a55e30b5
SM
79082020-04-28 Simon Marchi <simon.marchi@efficios.com>
7909
7910 * syscalls/update-freebsd.sh: Add double quotes.
7911
2b2fbab8
TT
79122020-04-28 Tom Tromey <tom@tromey.com>
7913
7914 * NEWS: Update.
7915 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7916 (cmdpy_init): Allow class_tui.
7917
a65189c9
TV
79182020-04-28 Mark Williams <mark@myosotissp.com>
7919
7920 PR gdb/24480
7921 * dwarf2read.c: Add missing assingments to list_in_scope when
7922 start_symtab was already called.
7923
1b95cdb7
SM
79242020-04-28 Simon Marchi <simon.marchi@efficios.com>
7925
7926 PR gdb/25881
7927 * dwarf2/read.c (offset_map_type): Use
7928 gdb:hash_enum<sect_offset> as hash function.
7929
15cd93d0
TV
79302020-04-28 Tom de Vries <tdevries@suse.de>
7931
7932 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7933 with DW_AT_signature.
7934
1eb39914
SM
79352020-04-27 Simon Marchi <simon.marchi@efficios.com>
7936
7937 * configure.ac: Remove check for fs_base/gs_base in
7938 user_regs_struct.
7939 * configure: Re-generate.
7940 * config.in: Re-generate.
7941 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7942 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7943 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7944
991a3e2e
LM
79452020-04-27 Luis Machado <luis.machado@linaro.org>
7946
7947 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7948 problematic inline frame unwinding situation.
7949 * frame.c (frame_id_computed_p): New function.
7950 * frame.h (frame_id_computed_p): New prototype.
7951
361ba0e8
TT
79522020-04-26 Tom Tromey <tom@tromey.com>
7953
7954 * command.h (enum command_class) <class_pseudo>: Remove.
7955
bc3609fd
PW
79562020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7957
7958 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7959 and whitespace.
7960
b9771db7
KR
79612020-04-25 Kamil Rytarowski <n54@gmx.com>
7962
ec16513e
SM
7963 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7964 `PT_GET_PROCESS_STATE' block.
b9771db7 7965
7151c1af
TT
79662020-04-24 Tom Tromey <tom@tromey.com>
7967
7968 * symtab.h (symbol_get_demangled_name): Don't declare.
7969 * symtab.c (symbol_get_demangled_name): Remove.
7970 (general_symbol_info::natural_name)
7971 (general_symbol_info::demangled_name): Update.
7972
906bb4c5
TT
79732020-04-24 Tom Tromey <tom@tromey.com>
7974
7975 PR rust/25025:
7976 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7977
bcfe6157
TT
79782020-04-24 Tom Tromey <tom@tromey.com>
7979
7980 PR symtab/12707:
7981 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7982 exists.
7983 (new_symbol): Likewise.
7984 * compile/compile-object-load.c (get_out_value_type): Use
7985 symbol_matches_search_name.
7986
f049a313
TT
79872020-04-24 Tom Tromey <tom@tromey.com>
7988
7989 * dwarf2/read.c (add_partial_symbol): Do not call
7990 compute_and_set_names.
7991
76e288d1
TT
79922020-04-24 Tom Tromey <tom@tromey.com>
7993
7994 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7995 overload.
7996
2467f4f6
TT
79972020-04-24 Tom Tromey <tom@tromey.com>
7998
7999 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8000 (add_psymbol_to_list): New overload. Make old overload call new
8001 one.
8002 * psympriv.h (add_psymbol_to_list): New overload.
8003
e61108c9
TT
80042020-04-24 Tom Tromey <tom@tromey.com>
8005
8006 * dwarf2/read.c (partial_die_info::read) <case
8007 DW_AT_linkage_name>: Use value_as_string.
8008 (dwarf2_string_attr): Use value_as_string.
8009 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8010 method.
8011 * dwarf2/attribute.c (attribute::value_as_string): New method.
8012
8c87a452
TT
80132020-04-24 Tom Tromey <tom@tromey.com>
8014
8015 * symtab.c (general_symbol_info::natural_name)
8016 (general_symbol_info::demangled_name): Check for language_rust.
8017
787de330
TT
80182020-04-24 Tom Tromey <tom@tromey.com>
8019
8020 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8021 (dwarf2_physname): ... from here.
8022 (partial_die_info::read): Add Rust "{" hack.
8023
ff985671
TT
80242020-04-24 Tom Tromey <tom@tromey.com>
8025
8026 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8027 method.
8028 (symbol_set_demangled_name): Don't declare.
8029 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8030 symbol_set_demangled_name.
8031 (general_symbol_info::set_language)
8032 (general_symbol_info::compute_and_set_names): Update.
8033 * minsyms.c (minimal_symbol_reader::install): Update.
8034 * dwarf2/read.c (new_symbol): Update.
8035
1acda803
TT
80362020-04-24 Tom Tromey <tromey@adacore.com>
8037
8038 PR python/23662:
8039 * python/py-type.c (convert_field): Handle
8040 FIELD_LOC_KIND_DWARF_BLOCK.
8041 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8042 (typy_get_dynamic): Nw function.
8043 (type_object_getset): Add "dynamic".
8044 * NEWS: Add entry.
8045
d656f129
TT
80462020-04-24 Tom Tromey <tromey@adacore.com>
8047
8048 * ada-typeprint.c (print_choices, print_variant_part)
8049 (print_record_field_types_dynamic): New functions.
8050 (print_record_field_types): Use print_record_field_types_dynamic.
8051
7d79de9a
TT
80522020-04-24 Tom Tromey <tromey@adacore.com>
8053
8054 * dwarf2/read.c (handle_data_member_location): New overload.
8055 (dwarf2_add_field): Use it.
8056 (decode_locdesc): Add "computed" parameter. Update comment.
8057 * gdbtypes.c (is_dynamic_type_internal): Also look for
8058 FIELD_LOC_KIND_DWARF_BLOCK.
8059 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8060 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8061 virtual base classes.
8062 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8063 FIELD_LOC_KIND_DWARF_BLOCK.
8064
f8e89861
TT
80652020-04-24 Tom Tromey <tromey@adacore.com>
8066
8067 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8068 * gdbtypes.c (is_dynamic_type_internal): Check
8069 TYPE_HAS_DYNAMIC_LENGTH.
8070 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8071 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8072 New macros.
8073 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8074 constant.
8075
9c6a1327
TT
80762020-04-24 Tom Tromey <tromey@adacore.com>
8077
8078 * dwarf2/read.c (struct variant_field): Rewrite.
8079 (struct variant_part_builder): New.
8080 (struct nextfield): Remove "variant" field. Add "offset".
8081 (struct field_info): Add "current_variant_part" and
8082 "variant_parts".
8083 (alloc_discriminant_info): Remove.
8084 (alloc_rust_variant): New function.
8085 (quirk_rust_enum): Update.
8086 (dwarf2_add_field): Set "offset" member. Don't handle
8087 DW_TAG_variant_part.
8088 (offset_map_type): New typedef.
8089 (convert_variant_range, create_one_variant)
8090 (create_one_variant_part, create_variant_parts)
8091 (add_variant_property): New functions.
8092 (dwarf2_attach_fields_to_type): Call add_variant_property.
8093 (read_structure_type): Don't handle DW_TAG_variant_part.
8094 (handle_variant_part, handle_variant): New functions.
8095 (handle_struct_member_die): Use them.
8096 (process_structure_scope): Don't handle variant parts.
8097 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8098 (struct discriminant_info): Remove.
8099 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8100 (struct main_type) <flag_discriminated_union>: Remove.
8101 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8102 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8103 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8104 Update.
8105 * valops.c (value_union_variant): Remove.
8106 * value.h (value_union_variant): Don't declare.
8107
b249d2c2
TT
81082020-04-24 Tom Tromey <tromey@adacore.com>
8109
8110 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8111 (ada_value_primitive_packed_val): Update.
8112 * ada-valprint.c (ada_value_print_1): Update.
8113 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8114 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8115 just an address. Use evaluate_for_locexpr_baton.
8116 (dwarf2_evaluate_property): Update.
8117 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8118 array_view.
8119 * findvar.c (default_read_var_value): Update.
8120 * gdbtypes.c (compute_variant_fields_inner)
8121 (resolve_dynamic_type_internal): Update.
8122 (resolve_dynamic_type): Change type of valaddr parameter.
8123 * gdbtypes.h (resolve_dynamic_type): Update.
8124 * valarith.c (value_subscripted_rvalue): Update.
8125 * value.c (value_from_contents_and_address): Update.
8126
61122aa9
TT
81272020-04-24 Tom Tromey <tromey@adacore.com>
8128
8129 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8130 "push_initial_value" parameter.
8131 (dwarf2_evaluate_property): Likewise.
8132 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8133
ef83a141
TT
81342020-04-24 Tom Tromey <tromey@adacore.com>
8135
8136 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8137 (variant::matches, compute_variant_fields_recurse)
8138 (compute_variant_fields_inner, compute_variant_fields): New
8139 functions.
8140 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8141 Use resolved_type after type is made.
8142 (operator==): Add new cases.
8143 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8144 (struct discriminant_range, struct variant, struct variant_part):
8145 New.
8146 (union dynamic_prop_data) <variant_parts, original_type>: New
8147 members.
8148 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8149 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8150 constants.
8151 * value.c (unpack_bits_as_long): Now public.
8152 * value.h (unpack_bits_as_long): Declare.
8153
675127ec
TT
81542020-04-24 Tom Tromey <tromey@adacore.com>
8155
8156 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8157 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8158
9852ceef
HD
81592020-04-24 Hannes Domani <ssbssa@yahoo.de>
8160
8161 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8162
7632c6ce
KR
81632020-04-24 Kamil Rytarowski <n54@gmx.com>
8164
8165 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8166 (remove_fork_catchpoint, post_startup_inferior)
8167 (post_attach): Move...
8168 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8169 (remove_fork_catchpoint, post_startup_inferior)
8170 (post_attach): ...here.
8171 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8172 (remove_fork_catchpoint, post_startup_inferior)
8173 (post_attach): Move...
8174 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8175 (remove_fork_catchpoint, post_startup_inferior)
8176 (post_attach): ...here.
8177
7be2bb4f
TT
81782020-04-24 Tom Tromey <tromey@adacore.com>
8179
8180 * nat/windows-nat.h (struct windows_thread_info)
8181 <pc_adjusted>: New member.
8182 * windows-nat.c (windows_fetch_one_register): Check
8183 pc_adjusted.
8184 (windows_nat_target::get_windows_debug_event)
8185 (windows_nat_target::wait): Set pc_adjusted.
8186
f80cb3b4
TV
81872020-04-24 Tom de Vries <tdevries@suse.de>
8188
8189 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8190 Run gdb-add-index inside temp dir.
8191
29514b87
TT
81922020-04-23 Tom Tromey <tromey@adacore.com>
8193
8194 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8195 in loop.
8196
5939967b
LM
81972020-04-23 Luis Machado <luis.machado@linaro.org>
8198
8199 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8200 get_frame_register instead of gdbarch_unwind_pc.
8201
70bc38f5
TV
82022020-04-23 Tom de Vries <tdevries@suse.de>
8203
8204 * symtab.c (lookup_global_symbol): Prefer def over decl.
8205
de82891c
TV
82062020-04-23 Tom de Vries <tdevries@suse.de>
8207
8208 PR symtab/25807
8209 * block.c (best_symbol, better_symbol): Promote to external.
8210 * block.h (best_symbol, better_symbol): Declare.
8211 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8212 decl.
8213
ecc6c606
TT
82142020-04-23 Tom Tromey <tromey@adacore.com>
8215
8216 PR ada/25837:
8217 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8218 "const char *", not a "const std::string &".
8219 <name_and_matcher::operator==>: Update.
8220 * unittests/lookup_name_info-selftests.c: Change type of
8221 "result".
8222
740480b8
TT
82232020-04-23 Tom Tromey <tom@tromey.com>
8224
8225 * inferior.h (iterate_over_inferiors): Don't declare.
8226 * inferior.c (iterate_over_inferiors): Remove.
8227 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8228 Remove.
8229 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8230 use iterate_over_inferiors.
8231 (darwin_resume_inferior_it)
8232 (struct resume_inferior_threads_param)
8233 (darwin_resume_inferior_threads_it): Remove.
8234 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8235
ae3ab1f0
TV
82362020-04-23 Tom de Vries <tdevries@suse.de>
8237
8238 * blockframe.c (find_pc_partial_function): Use
8239 find_pc_sect_compunit_symtab rather than
8240 objfile->sf->qf->find_pc_sect_compunit_symtab.
8241
317d2668
TV
82422020-04-22 Tom de Vries <tdevries@suse.de>
8243
8244 PR symtab/25764
8245 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8246 in psymtabs.
8247
eea9e357
TV
82482020-04-22 Tom de Vries <tdevries@suse.de>
8249
8250 PR symtab/25801
8251 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8252 symtabs.
8253
3d5afab3
TV
82542020-04-22 Tom de Vries <tdevries@suse.de>
8255
8256 PR symtab/25700
8257 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8258 CU if already created.
8259
d43b7a2d
TBA
82602020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8261
8262 * infrun.c (displaced_step_fixup): Switch to the event_thread
8263 before calling displaced_step_restore, not after.
8264
d89edf9b
MM
82652020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8266
8267 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8268 its inferior is not recorded by us.
8269 (record_btrace_target_open): Replace call to
8270 all_non_exited_threads () with call to current_inferior
8271 ()->non_exited_threads ().
8272 (record_btrace_target::stop_recording): Likewise.
8273 (record_btrace_target::close): Likewise.
8274 (record_btrace_target::wait): Likewise.
8275 (record_btrace_target::record_stop_replaying): Likewise.
8276
5897fd49
MM
82772020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8278
8279 * btrace.c (btrace_enable): Throw an error on double enables and
8280 when enabling recording fails.
8281 (btrace_disable): Throw an error if the thread is not recorded.
8282
1a476b6d
MM
82832020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8284
8285 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8286 request if we do not have a thread_info.
8287
4778a5f8
TV
82882020-04-21 Tom de Vries <tdevries@suse.de>
8289
8290 PR gdb/25471
8291 * thread.c
8292 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8293 exception in get_frame_id.
8294
0fa7617d
TT
82952020-04-20 Tom Tromey <tromey@adacore.com>
8296
8297 * python/python.c (struct gdbpy_event): Mark move constructor as
8298 noexcept.
8299 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8300 constructor as noexcept.
8301 * completer.h (struct completion_result): Mark move constructor as
8302 noexcept.
8303 * completer.c (completion_result::completion_result): Use
8304 initialization style. Don't call reset_match_list.
8305
ad23bda0
MS
83062020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8307
8308 * MAINTAINERS (Write After Approval): Add myself.
8309
45e1f031
TT
83102020-04-18 Tom Tromey <tom@tromey.com>
8311
8312 * windows-tdep.c (init_w32_command_list)
8313 (w32_prefix_command_valid): Restore.
8314 (_initialize_windows_tdep): Call init_w32_command_list.
8315
08feed99
TT
83162020-04-18 Tom Tromey <tom@tromey.com>
8317
8318 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8319 * value.c (value_fn_field): Update.
8320 * valops.c (find_function_in_inferior)
8321 (value_allocate_space_in_inferior): Update.
8322 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8323 Update.
8324 * tui/tui-source.c (tui_source_window::set_contents): Update.
8325 * symtab.c (lookup_global_or_static_symbol)
8326 (find_function_start_sal_1, skip_prologue_sal)
8327 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8328 * symmisc.c (dump_msymbols, dump_symtab_1)
8329 (maintenance_print_one_line_table): Update.
8330 * symfile.c (init_entry_point_info, section_is_mapped)
8331 (list_overlays_command, simple_read_overlay_table)
8332 (simple_overlay_update_1): Update.
8333 * stap-probe.c (handle_stap_probe): Update.
8334 * stabsread.c (dbx_init_float_type, define_symbol)
8335 (read_one_struct_field, read_enum_type, read_range_type): Update.
8336 * source.c (info_line_command): Update.
8337 * python/python.c (gdbpy_source_objfile_script)
8338 (gdbpy_execute_objfile_script): Update.
8339 * python/py-type.c (save_objfile_types): Update.
8340 * python/py-objfile.c (py_free_objfile): Update.
8341 * python/py-inferior.c (python_new_objfile): Update.
8342 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8343 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8344 (maintenance_check_psymtabs): Update.
8345 * printcmd.c (info_address_command): Update.
8346 * objfiles.h (struct objfile) <arch>: New method, from
8347 get_objfile_arch.
8348 (get_objfile_arch): Don't declare.
8349 * objfiles.c (get_objfile_arch): Remove.
8350 (filter_overlapping_sections): Update.
8351 * minsyms.c (msymbol_is_function): Update.
8352 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8353 (output_nondebug_symbol): Update.
8354 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8355 (mdebug_expand_psymtab): Update.
8356 * machoread.c (macho_add_oso_symfile): Update.
8357 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8358 Update.
8359 * linux-fork.c (checkpoint_command): Update.
8360 * linespec.c (convert_linespec_to_sals): Update.
8361 * jit.c (finalize_symtab): Update.
8362 * infrun.c (insert_exception_resume_from_probe): Update.
8363 * ia64-tdep.c (ia64_find_unwind_table): Update.
8364 * hppa-tdep.c (internalize_unwinds): Update.
8365 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8366 Update.
8367 * gcore.c (call_target_sbrk): Update.
8368 * elfread.c (record_minimal_symbol, elf_symtab_read)
8369 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8370 (elf_gnu_ifunc_resolve_by_got): Update.
8371 * dwarf2/read.c (create_addrmap_from_index)
8372 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8373 (read_debug_names_from_section)
8374 (process_psymtab_comp_unit_reader, add_partial_symbol)
8375 (add_partial_subprogram, process_full_comp_unit)
8376 (read_file_scope, read_func_scope, read_lexical_block_scope)
8377 (read_call_site_scope, dwarf2_ranges_read)
8378 (dwarf2_record_block_ranges, dwarf2_add_field)
8379 (mark_common_block_symbol_computed, read_tag_pointer_type)
8380 (read_tag_string_type, dwarf2_init_float_type)
8381 (dwarf2_init_complex_target_type, read_base_type)
8382 (partial_die_info::read, partial_die_info::read)
8383 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8384 (dwarf2_fetch_die_loc_sect_off): Update.
8385 * dwarf2/loc.c (dwarf2_find_location_expression)
8386 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8387 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8388 (dwarf2_loc_desc_get_symbol_read_needs)
8389 (locexpr_describe_location_piece, locexpr_describe_location_1)
8390 (loclist_describe_location): Update.
8391 * dwarf2/index-write.c (write_debug_names): Update.
8392 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8393 * dtrace-probe.c (dtrace_process_dof): Update.
8394 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8395 (process_one_symbol): Update.
8396 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8397 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8398 (coff_read_enum_type): Update.
8399 * cli/cli-cmds.c (edit_command, list_command): Update.
8400 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8401 * breakpoint.c (create_overlay_event_breakpoint)
8402 (create_longjmp_master_breakpoint)
8403 (create_std_terminate_master_breakpoint)
8404 (create_exception_master_breakpoint, get_sal_arch): Update.
8405 * block.c (block_gdbarch): Update.
8406 * annotate.c (annotate_source_line): Update.
8407
0743fc83
TT
84082020-04-17 Tom Tromey <tromey@adacore.com>
8409
8410 * auto-load.c (show_auto_load_cmd): Remove.
8411 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8412 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8413 (maintenance_print_arc_command): Remove.
8414 * tui/tui-win.c (tui_command): Remove.
8415 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8416 * tui/tui-layout.c (tui_layout_command): Remove.
8417 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8418 * python/python.c (user_set_python, user_show_python): Remove.
8419 (_initialize_python): Use add_basic_prefix_cmd,
8420 add_show_prefix_cmd.
8421 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8422 (install_gdb_commands): Use add_basic_prefix_cmd,
8423 add_show_prefix_cmd.
8424 (info_guile_command): Remove.
8425 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8426 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8427 add_show_prefix_cmd.
8428 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8429 Remove do_set and do_show parameters.
8430 * cli/cli-style.c (set_style, show_style): Remove.
8431 (_initialize_cli_style): Use add_basic_prefix_cmd,
8432 add_show_prefix_cmd.
8433 (cli_style_option::add_setshow_commands): Remove do_set and
8434 do_show parameters.
8435 (cli_style_option::add_setshow_commands): Use
8436 add_basic_prefix_cmd, add_show_prefix_cmd.
8437 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8438 (set_style_name): Remove.
8439 * cli/cli-dump.c (dump_command, append_command): Remove.
8440 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8441 (tekhex_dump_command, binary_dump_command)
8442 (binary_append_command): Remove.
8443 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8444 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8445 (init_w32_command_list): Remove; move into ...
8446 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8447 * valprint.c (set_print, show_print, set_print_raw)
8448 (show_print_raw): Remove.
8449 (_initialize_valprint): Use add_basic_prefix_cmd,
8450 add_show_prefix_cmd.
8451 * typeprint.c (set_print_type, show_print_type): Remove.
8452 (_initialize_typeprint): Use add_basic_prefix_cmd,
8453 add_show_prefix_cmd.
8454 * record.c (set_record_command, show_record_command): Remove.
8455 (_initialize_record): Use add_basic_prefix_cmd,
8456 add_show_prefix_cmd.
8457 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8458 add_show_prefix_cmd.
8459 (info_command, show_command, set_debug, show_debug): Remove.
8460 * top.h (set_history, show_history): Don't declare.
8461 * top.c (set_history, show_history): Remove.
8462 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8463 (unset_tdesc_cmd): Remove.
8464 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8465 add_show_prefix_cmd.
8466 * symtab.c (info_module_command): Remove.
8467 (_initialize_symtab): Use add_basic_prefix_cmd.
8468 * symfile.c (overlay_command): Remove.
8469 (_initialize_symfile): Use add_basic_prefix_cmd.
8470 * sparc64-tdep.c (info_adi_command): Remove.
8471 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8472 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8473 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8474 add_show_prefix_cmd.
8475 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8476 (_initialize_serial): Use add_basic_prefix_cmd,
8477 add_show_prefix_cmd.
8478 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8479 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8480 add_show_prefix_cmd.
8481 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8482 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8483 add_show_prefix_cmd.
8484 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8485 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8486 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8487 add_show_prefix_cmd.
8488 * remote.c (remote_command, set_remote_cmd): Remove.
8489 (_initialize_remote): Use add_basic_prefix_cmd.
8490 * record-full.c (set_record_full_command)
8491 (show_record_full_command): Remove.
8492 (_initialize_record_full): Use add_basic_prefix_cmd,
8493 add_show_prefix_cmd.
8494 * record-btrace.c (cmd_set_record_btrace)
8495 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8496 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8497 (cmd_show_record_btrace_pt): Remove.
8498 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8499 add_show_prefix_cmd.
8500 * ravenscar-thread.c (set_ravenscar_command)
8501 (show_ravenscar_command): Remove.
8502 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8503 add_show_prefix_cmd.
8504 * mips-tdep.c (show_mips_command, set_mips_command)
8505 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8506 add_show_prefix_cmd.
8507 * maint.c (maintenance_command, maintenance_info_command)
8508 (maintenance_check_command, maintenance_print_command)
8509 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8510 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8511 add_show_prefix_cmd.
8512 (show_per_command_cmd): Remove.
8513 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8514 Remove.
8515 (maintenance_show_test_settings_cmd): Remove.
8516 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8517 add_show_prefix_cmd.
8518 * maint-test-options.c (maintenance_test_options_command):
8519 Remove.
8520 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8521 * macrocmd.c (macro_command): Remove
8522 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8523 * language.c (set_check, show_check): Remove.
8524 (_initialize_language): Use add_basic_prefix_cmd,
8525 add_show_prefix_cmd.
8526 * infcmd.c (unset_command): Remove.
8527 (_initialize_infcmd): Use add_basic_prefix_cmd.
8528 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8529 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8530 add_show_prefix_cmd.
8531 * go32-nat.c (go32_info_dos_command): Remove.
8532 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8533 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8534 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8535 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8536 (_initialize_frame): Use add_basic_prefix_cmd,
8537 add_show_prefix_cmd.
8538 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8539 (_initialize_dcache): Use add_basic_prefix_cmd,
8540 add_show_prefix_cmd.
8541 * cp-support.c (maint_cplus_command): Remove.
8542 (_initialize_cp_support): Use add_basic_prefix_cmd.
8543 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8544 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8545 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8546 add_basic_prefix_cmd, add_show_prefix_cmd.
8547 * breakpoint.c (save_command): Remove.
8548 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8549 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8550 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8551 add_show_prefix_cmd.
8552 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8553 (set_ada_command, show_ada_command): Remove.
8554 (_initialize_ada_language): Use add_basic_prefix_cmd,
8555 add_show_prefix_cmd.
8556 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8557
3557f442
KR
85582020-04-16 Kamil Rytarowski <n54@gmx.com>
8559
8560 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8561 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8562
16197208
SM
85632020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8564
8565 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8566 warning messages.
8567
00ac85d3
SM
85682020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8569
8570 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8571 import table is not at beginning of .idata section.
8572
381ce63f
PA
85732020-04-16 Pedro Alves <palves@redhat.com>
8574
8575 * inferior.c (delete_inferior): Use delete operator directly
8576 instead of delete_program_space.
8577 * progspace.c (add_program_space): New, factored out from
8578 program_space::program_space.
8579 (remove_program_space): New, factored out from
8580 delete_program_space.
8581 (program_space::program_space): Remove intro comment. Rewrite.
8582 (program_space::~program_space): Remove intro comment. Call
8583 remove_program_space.
8584 (delete_program_space): Delete.
8585 * progspace.h (program_space::program_space): Make explicit. Move
8586 intro comment here, adjusted.
8587 (program_space::~program_space): Move intro comment here,
8588 adjusted.
8589 (delete_program_space): Remove.
8590
a010605f
TT
85912020-04-16 Tom Tromey <tromey@adacore.com>
8592
8593 * windows-nat.c (windows_nat::handle_access_violation): New
8594 function.
8595 * nat/windows-nat.h (handle_access_violation): Declare.
8596 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8597 windows-nat.c. Call handle_access_violation.
8598
efba5c23
TV
85992020-04-16 Tom de Vries <tdevries@suse.de>
8600
8601 PR symtab/25791
8602 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8603 CUs without psymtab.
8604
97ed802d
KB
86052020-04-16 Kevin Buettner <kevinb@redhat.com>
8606
8607 * python/python.c (do_start_initialization): Don't call
8608 PyEval_InitThreads for Python 3.9 and beyond.
8609
c7d64809
KR
86102020-04-15 Kamil Rytarowski <n54@gmx.com>
8611
8612 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8613 thread functions.
8614 (obsd_nat_target::wait): Likewise.
8615
ce127a96
TT
86162020-04-15 Tom Tromey <tromey@adacore.com>
8617
8618 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8619 (DEBUG_EXCEPT): Use debug_printf.
8620
99f1bc6a
AB
86212020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8622
8623 * completer.c (class completion_tracker::completion_hash_entry)
8624 <hash_name>: New member function.
8625 (completion_tracker::discard_completions): New callback to hash a
8626 completion_hash_entry, pass this to htab_create_alloc.
8627
a0e9b532
JT
86282016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8629
8630 * windows-nat.c (windows_make_so): Warn rather than stopping with
8631 an error if realpath() fails.
8632
06ca5dd4
KR
86332020-04-14 Kamil Rytarowski <n54@gmx.com>
8634
8635 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8636 (nbsd_nat_target::info_proc): Add do_status.
8637
194d088f
TV
86382020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8639 Tom de Vries <tdevries@suse.de>
8640
8641 PR symtab/25718
8642 * psympriv.h (struct partial_symtab::read_symtab)
8643 (struct partial_symtab::expand_psymtab)
8644 (struct partial_symtab::read_dependencies): Update comments.
8645 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8646 read_symtab for includer.
8647 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8648 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8649 (struct dwarf2_include_psymtab::m_readin): Remove.
8650 (struct dwarf2_include_psymtab::includer): New member function.
8651 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8652
c1a66c06
TV
86532020-04-14 Tom de Vries <tdevries@suse.de>
8654
8655 PR symtab/25720
8656 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8657 with NULL symbol_matcher and lookup_name.
8658 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8659 and lookup_name.
8660 * dwarf2/read.c (dw2_expand_symtabs_matching)
8661 (dw2_debug_names_expand_symtabs_matching): Same.
8662 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8663 Make lookup_name a pointer. Update comment.
8664 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8665 lookup_name being a pointer.
8666 * symfile.c (expand_symtabs_matching): Same.
8667 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8668 * linespec.c (iterate_over_all_matching_symtabs): Same.
8669
400b5eca
TT
86702020-04-13 Tom Tromey <tom@tromey.com>
8671
8672 * run-on-main-thread.c: Update include.
8673 * unittests/main-thread-selftests.c: Update include.
8674 * tui/tui-win.c: Update include.
8675 * tui/tui-io.c: Update include.
8676 * tui/tui-interp.c: Update include.
8677 * tui/tui-hooks.c: Update include.
8678 * top.h: Update include.
8679 * top.c: Update include.
8680 * ser-base.c: Update include.
8681 * remote.c: Update include.
8682 * remote-notif.c: Update include.
8683 * remote-fileio.c: Update include.
8684 * record-full.c: Update include.
8685 * record-btrace.c: Update include.
8686 * python/python.c: Update include.
8687 * posix-hdep.c: Update include.
8688 * mingw-hdep.c: Update include.
8689 * mi/mi-main.c: Update include.
8690 * mi/mi-interp.c: Update include.
8691 * main.c: Update include.
8692 * linux-nat.c: Update include.
8693 * interps.c: Update include.
8694 * infrun.c: Update include.
8695 * inf-loop.c: Update include.
8696 * event-top.c: Update include.
8697 * event-loop.c: Move to ../gdbsupport/.
8698 * event-loop.h: Move to ../gdbsupport/.
8699 * async-event.h: Update include.
8700 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8701
93b54c8e
TT
87022020-04-13 Tom Tromey <tom@tromey.com>
8703
8704 * tui/tui-win.c: Include async-event.h.
8705 * remote.c: Include async-event.h.
8706 * remote-notif.c: Include async-event.h.
8707 * record-full.c: Include async-event.h.
8708 * record-btrace.c: Include async-event.h.
8709 * infrun.c: Include async-event.h.
8710 * event-top.c: Include async-event.h.
8711 * event-loop.h: Move some declarations to async-event.h.
8712 * event-loop.c: Don't include ser-event.h or top.h. Move some
8713 code to async-event.c.
8714 * async-event.h: New file.
8715 * async-event.c: New file.
8716 * Makefile.in (COMMON_SFILES): Add async-event.c.
8717 (HFILES_NO_SRCDIR): Add async-event.h.
8718
c1cd3163
TT
87192020-04-13 Tom Tromey <tom@tromey.com>
8720
8721 * utils.c (flush_streams): New function.
8722 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8723
29f2bf4f
TT
87242020-04-13 Tom Tromey <tom@tromey.com>
8725
8726 * event-loop.c (handle_file_event): Use warning, not
8727 printf_unfiltered.
8728
98029d02
TT
87292020-04-13 Tom Tromey <tom@tromey.com>
8730
8731 * event-loop.c: Include <chrono>.
8732
06cc9596
TT
87332020-04-13 Tom Tromey <tom@tromey.com>
8734
8735 * gdb_select.h: Move to ../gdbsupport/.
8736 * event-loop.c: Update include path.
8737 * top.c: Update include path.
8738 * ser-base.c: Update include path.
8739 * ui-file.c: Update include path.
8740 * ser-tcp.c: Update include path.
8741 * guile/scm-ports.c: Update include path.
8742 * posix-hdep.c: Update include path.
8743 * ser-unix.c: Update include path.
8744 * gdb_usleep.c: Update include path.
8745 * mingw-hdep.c: Update include path.
8746 * inflow.c: Update include path.
8747 * infrun.c: Update include path.
8748 * event-top.c: Update include path.
8749
8ae8e197
TT
87502020-04-13 Tom Tromey <tom@tromey.com>
8751
8752 * configure: Rebuild.
8753 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8754
58cf28e8
TT
87552020-04-13 Tom Tromey <tom@tromey.com>
8756
8757 * event-loop.h (start_event_loop): Don't declare.
8758 * event-loop.c (start_event_loop): Move...
8759 * main.c (start_event_loop): ...here. Now static.
8760
b7f999ae
SDJ
87612020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8762
8763 * MAINTAINERS: Update my email address.
8764
1085dfd4
KR
87652020-04-12 Kamil Rytarowski <n54@gmx.com>
8766
8767 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8768 IP_ALL.
8769
49d1d1f5
KR
87702020-04-12 Kamil Rytarowski <n54@gmx.com>
8771
8772 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8773 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8774
b4848d2a
KR
87752020-04-12 Kamil Rytarowski <n54@gmx.com>
8776
8777 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8778 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8779
51c133d5
KR
87802020-04-12 Kamil Rytarowski <n54@gmx.com>
8781
8782 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8783
54b8cbd0
KR
87842020-04-11 Kamil Rytarowski <n54@gmx.com>
8785
8786 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8787 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8788 (nbsd_nat_target::info_proc): New functions.
8789 * nbsd-nat.c (kinfo_get_vmmap): New function.
8790 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8791 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8792 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8793 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8794 functions.
8795 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8796 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8797 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8798 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8799 (KINFO_VME_FLAG_GROWS_DOWN): New.
8800
cf83625d
AS
88012020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8802
8803 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8804 bit shift.
8805
0c4311ab
TT
88062020-04-10 Tom Tromey <tromey@adacore.com>
8807
8808 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8809
3e65b3e9
TT
88102020-04-10 Tom Tromey <tromey@adacore.com>
8811
8812 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8813 separate debug files.
8814
13302e95
HD
88152020-04-10 Hannes Domani <ssbssa@yahoo.de>
8816
8817 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8818 Move to...
8819 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8820 ... here.
8821 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8822 Check for STATUS_WX86_BREAKPOINT.
8823 (windows_nat_target::wait): Same.
8824
bdfc1e8a
TV
88252020-04-10 Tom de Vries <tdevries@suse.de>
8826
8827 PR cli/25808
8828 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8829
f4460aec
SM
88302020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8831
8832 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8833 (Write After Approval): Remove Tom de Vries.
8834
a25198bb
BE
88352020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8836
8837 revert partially:
8838 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8839
aac66a4c
SM
8840 * buildsym.c (record_line): Fix undefined behavior and preserve
8841 lines at eof.
a25198bb 8842
206c98a6
KR
88432020-04-09 Kamil Rytarowski <n54@gmx.com>
8844
8845 * auxv.h (svr4_auxv_parse): New.
8846 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8847 and generic_auxv_parse.
8848 (svr4_auxv_parse): Add.
8849 * obsd-tdep.c: Include "auxv.h".
8850 (obsd_auxv_parse): Remove.
8851 (obsd_init_abi): Remove comment.
8852 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8853 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8854 * nbsd-tdep.c: Include "auxv.h".
8855 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8856
71fbdbaf
TT
88572020-04-08 Tom Tromey <tromey@adacore.com>
8858
8859 * nat/windows-nat.h (last_wait_event): Don't declare.
8860 (wait_for_debug_event): Update comment.
8861 * nat/windows-nat.c (last_wait_event): Now static.
8862
2c1d95e8
TT
88632020-04-08 Tom Tromey <tromey@adacore.com>
8864
8865 * windows-nat.c (wait_for_debug_event): Move to
8866 nat/windows-nat.c.
8867 * nat/windows-nat.h (wait_for_debug_event): Declare.
8868 * nat/windows-nat.c (wait_for_debug_event): Move from
8869 windows-nat.c. No longer static.
8870
d2977bc4
TT
88712020-04-08 Tom Tromey <tromey@adacore.com>
8872
8873 * windows-nat.c (get_windows_debug_event): Use
8874 fetch_pending_stop.
8875 * nat/windows-nat.h (fetch_pending_stop): Declare.
8876 * nat/windows-nat.c (fetch_pending_stop): New function.
8877
e758e19c
TT
88782020-04-08 Tom Tromey <tromey@adacore.com>
8879
8880 * windows-nat.c (windows_continue): Use matching_pending_stop and
8881 continue_last_debug_event.
8882 * nat/windows-nat.h (matching_pending_stop)
8883 (continue_last_debug_event): Declare.
8884 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8885 (matching_pending_stop, continue_last_debug_event): New
8886 functions.
8887
8d30e395
TT
88882020-04-08 Tom Tromey <tromey@adacore.com>
8889
8890 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8891 (handle_exception_result): Move to nat/windows-nat.h.
8892 (DEBUG_EXCEPTION_SIMPLE): Remove.
8893 (windows_nat::handle_ms_vc_exception): New function.
8894 (handle_exception): Move to nat/windows-nat.c.
8895 (get_windows_debug_event): Update.
8896 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8897 nat/windows-nat.c.
8898 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8899 (handle_exception_result): Move from windows-nat.c.
8900 (handle_exception): Declare.
8901 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8902 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8903 windows-nat.c.
8904
29de418d
TT
89052020-04-08 Tom Tromey <tromey@adacore.com>
8906
8907 * windows-nat.c (exception_count, event_count): Remove.
8908 (handle_exception, get_windows_debug_event)
8909 (do_initial_windows_stuff): Update.
8910
a816ba18
TT
89112020-04-08 Tom Tromey <tromey@adacore.com>
8912
8913 * windows-nat.c (windows_nat::handle_load_dll)
8914 (windows_nat::handle_unload_dll): Rename. No longer static.
8915 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8916 Declare.
8917
a00caa12
TT
89182020-04-08 Tom Tromey <tromey@adacore.com>
8919
8920 * complaints.h (stop_whining): Declare at top-level.
8921 (complaint): Don't declare stop_whining.
8922
d41b524f
TT
89232020-04-08 Tom Tromey <tromey@adacore.com>
8924
8925 * windows-nat.c (windows_nat::handle_output_debug_string):
8926 Rename. No longer static.
8927 * nat/windows-nat.h (handle_output_debug_string): Declare.
8928
3c76026d
TT
89292020-04-08 Tom Tromey <tromey@adacore.com>
8930
8931 * windows-nat.c (current_process_handle, current_process_id)
8932 (main_thread_id, last_sig, current_event, last_wait_event)
8933 (current_windows_thread, desired_stop_thread_id, pending_stops)
8934 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8935 (display_selectors, fake_create_process)
8936 (get_windows_debug_event): Update.
8937 * nat/windows-nat.h (current_process_handle, current_process_id)
8938 (main_thread_id, last_sig, current_event, last_wait_event)
8939 (current_windows_thread, desired_stop_thread_id, pending_stops)
8940 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8941 * nat/windows-nat.c (current_process_handle, current_process_id)
8942 (main_thread_id, last_sig, current_event, last_wait_event)
8943 (current_windows_thread, desired_stop_thread_id, pending_stops)
8944 (siginfo_er): New globals. Move from windows-nat.c.
8945
9d8679cc
TT
89462020-04-08 Tom Tromey <tromey@adacore.com>
8947
8948 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8949 (handle_load_dll): Update.
8950 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8951
28688adf
TT
89522020-04-08 Tom Tromey <tromey@adacore.com>
8953
8954 * windows-nat.c (enum thread_disposition_type): Move to
8955 nat/windows-nat.h.
8956 (windows_nat::thread_rec): Rename from thread_rec. No longer
8957 static.
8958 (windows_add_thread, windows_nat_target::fetch_registers)
8959 (windows_nat_target::store_registers, handle_exception)
8960 (windows_nat_target::resume, get_windows_debug_event)
8961 (windows_nat_target::get_tib_address)
8962 (windows_nat_target::thread_name)
8963 (windows_nat_target::thread_alive): Update.
8964 * nat/windows-nat.h (enum thread_disposition_type): Move from
8965 windows-nat.c.
8966 (thread_rec): Declare.
8967
4834dad0
TT
89682020-04-08 Tom Tromey <tromey@adacore.com>
8969
8970 * windows-nat.c: Add "using namespace".
8971 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8972 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8973
65bafd5b
TT
89742020-04-08 Tom Tromey <tromey@adacore.com>
8975
8976 * nat/windows-nat.h (struct windows_thread_info): Declare
8977 destructor.
8978 * nat/windows-nat.c (~windows_thread_info): New.
8979
0a4afda3
TT
89802020-04-08 Tom Tromey <tromey@adacore.com>
8981
8982 PR gdb/22992
8983 * windows-nat.c (current_event): Update comment.
8984 (last_wait_event, desired_stop_thread_id): New globals.
8985 (struct pending_stop): New.
8986 (pending_stops): New global.
8987 (windows_nat_target) <stopped_by_sw_breakpoint>
8988 <supports_stopped_by_sw_breakpoint>: New methods.
8989 (windows_fetch_one_register): Add assertions. Adjust PC.
8990 (windows_continue): Handle pending stops. Suspend other threads
8991 when stepping. Use last_wait_event
8992 (wait_for_debug_event): New function.
8993 (get_windows_debug_event): Use wait_for_debug_event. Handle
8994 pending stops. Queue spurious stops.
8995 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8996 (windows_nat_target::kill): Use wait_for_debug_event.
8997 * nat/windows-nat.h (struct windows_thread_info)
8998 <stopped_at_software_breakpoint>: New field.
8999 * nat/windows-nat.c (windows_thread_info::resume): Clear
9000 stopped_at_software_breakpoint.
9001
8e61ebec
TT
90022020-04-08 Tom Tromey <tromey@adacore.com>
9003
9004 * windows-nat.c (enum thread_disposition_type): New.
9005 (thread_rec): Replace "get_context" parameter with "disposition";
9006 change type.
9007 (windows_add_thread, windows_nat_target::fetch_registers)
9008 (windows_nat_target::store_registers, handle_exception)
9009 (windows_nat_target::resume, get_windows_debug_event)
9010 (windows_nat_target::get_tib_address)
9011 (windows_nat_target::thread_name)
9012 (windows_nat_target::thread_alive): Update.
9013
98a03287
TT
90142020-04-08 Tom Tromey <tromey@adacore.com>
9015
9016 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9017 (windows_continue): Use windows_continue::resume.
9018 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9019 resume>: Declare new methods.
9020 * nat/windows-nat.c: New file.
9021 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9022
7c7411bc
TT
90232020-04-08 Tom Tromey <tromey@adacore.com>
9024
9025 * windows-nat.c (windows_add_thread, windows_delete_thread)
9026 (windows_nat_target::fetch_registers)
9027 (windows_nat_target::store_registers, fake_create_process)
9028 (windows_nat_target::resume, windows_nat_target::resume)
9029 (get_windows_debug_event, windows_nat_target::wait)
9030 (windows_nat_target::pid_to_str)
9031 (windows_nat_target::get_tib_address)
9032 (windows_nat_target::get_ada_task_ptid)
9033 (windows_nat_target::thread_name)
9034 (windows_nat_target::thread_alive): Use lwp, not tid.
9035
2950fdf7
TT
90362020-04-08 Tom Tromey <tromey@adacore.com>
9037
9038 * windows-nat.c (handle_exception)
9039 (windows_nat_target::thread_name): Update.
9040 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9041 <name>: Now unique_xmalloc_ptr.
9042
62fe396b
TT
90432020-04-08 Tom Tromey <tromey@adacore.com>
9044
9045 * windows-nat.c (thread_rec)
9046 (windows_nat_target::fetch_registers): Update.
9047 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9048 Update comment.
9049 <debug_registers_changed, reload_context>: Now bool.
9050
e9534bd2
TT
90512020-04-08 Tom Tromey <tromey@adacore.com>
9052
9053 * windows-nat.c (windows_add_thread): Use new.
9054 (windows_init_thread_list, windows_delete_thread): Use delete.
9055 (get_windows_debug_event): Update.
9056 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9057 destructor, and initializers.
9058
ae1f8880
TT
90592020-04-08 Tom Tromey <tromey@adacore.com>
9060
9061 * windows-nat.c (struct windows_thread_info): Remove.
9062 * nat/windows-nat.h: New file.
9063
55a1e039
TT
90642020-04-08 Tom Tromey <tromey@adacore.com>
9065
9066 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9067 (thread_rec, windows_add_thread, windows_delete_thread)
9068 (windows_continue): Update.
9069
93366324
TT
90702020-04-08 Tom Tromey <tromey@adacore.com>
9071
9072 * windows-nat.c (struct windows_thread_info): Remove typedef.
9073 (thread_head): Remove.
9074 (thread_list): New global.
9075 (thread_rec, windows_add_thread, windows_init_thread_list)
9076 (windows_delete_thread, windows_continue): Update.
9077
0f2265e2
SM
90782020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9079
9080 * windows-tdep.h (windows_init_abi): Add comment.
9081 (cygwin_init_abi): New declaration.
9082 * windows-tdep.c: Split signal enumeration in two, one for
9083 Windows and one for Cygwin.
9084 (windows_gdb_signal_to_target): Only deal with signal of the
9085 Windows OS ABI.
9086 (cygwin_gdb_signal_to_target): New function.
9087 (windows_init_abi): Rename to windows_init_abi_common, don't set
9088 gdb_signal_to_target gdbarch method. Add new new function with
9089 this name.
9090 (cygwin_init_abi): New function.
9091 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9092 comment. Don't call windows_init_abi.
9093 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9094 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9095 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9096 i386_windows_init_abi_common, don't call windows_init_abi. Add
9097 a new function of this name.
9098 (i386_cygwin_init_abi): New function.
9099 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9100 OS ABI Cygwin.
9101
3810f182
SM
91022020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9103
9104 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9105 parameter.c.
9106 (dwarf2_read_gdb_index): Update.
9107
063f8e80
KR
91082020-04-07 Kamil Rytarowski <n54@gmx.com>
9109
9110 * nbsd-tdep.c: Include "objfiles.h".
9111 (nbsd_skip_solib_resolver): New.
9112 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9113
85a9510c 91142020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9115
9116 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9117 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9118 with DW_LLE_base_addressx are being emitted in DWARFv5.
9119 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9120 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9121 unsigned integer.
9122
9fc3eaae 91232020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9124
9125 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9126 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9127 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9128 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9129 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9130 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9131 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9132
9133
41144253 91342020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9135
9136 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9137 (read_loclist_index): New function definition.
9138 (lookup_loclist_base): New function definition.
9139 (read_loclist_header): New function definition.
9140 (dwarf2_cu): Add loclist_base and loclist_header field.
9141 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9142 (read_full_die_1): Read the value of DW_AT_loclists_base.
9143 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9144 (read_attribute_value): Handle DW_FORM_loclistx.
9145 (skip_one_die): Handle DW_FORM_loclistx.
9146 (loclist_header): New structure declaration.
9147 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9148
9f4e76a4
SM
91492020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9150
9151 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9152 constructor. Remove `addr` parameter from other constructor and
9153 add `per_cu` parameter.
9154 * dwarf2/read.c (create_partial_symtab): Update.
9155
25c11aca
TV
91562020-04-07 Tom de Vries <tdevries@suse.de>
9157
9158 PR symtab/25796
9159 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9160 (partial_die_info::fixup): Inherit has_const_value.
9161
5707e24b
TV
91622020-04-07 Tom de Vries <tdevries@suse.de>
9163
9164 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9165 symbols without address.
9166
05f00e22
KR
91672020-04-06 Kamil Rytarowski <n54@gmx.com>
9168
9169 * nbsd-nat.h (struct thread_info): Add forward declaration.
9170 (nbsd_nat_target::thread_alive): Add.
9171 (nbsd_nat_target::thread_name): Likewise.
9172 (nbsd_nat_target::update_thread_list): Likewise.
9173 (update_thread_list::post_attach): Likewise.
9174 (post_attach::pid_to_str): Likewise.
9175 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9176 (nbsd_thread_lister): Add.
9177 (nbsd_nat_target::thread_alive): Likewise.
9178 (nbsd_nat_target::thread_name): Likewise.
9179 (nbsd_add_threads): Likewise.
9180 (update_thread_list::post_attach): Likewise.
9181 (nbsd_nat_target::update_thread_list): Likewise.
9182 (post_attach::pid_to_str): Likewise.
9183
6ee448cc
TT
91842020-04-06 Tom Tromey <tromey@adacore.com>
9185
9186 * ada-valprint.c (print_variant_part): Extract the variant field.
9187 (print_field_values): Use the field as the outer value when
9188 recursing.
9189
dea34e8c
TT
91902020-04-06 Tom Tromey <tromey@adacore.com>
9191
9192 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9193 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9194 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9195 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9196 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9197
93689ce9
TT
91982020-04-06 Tom Tromey <tromey@adacore.com>
9199
9200 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9201 TYPE_CODE_ERROR.
9202
79743962
KR
92032020-04-06 Kamil Rytarowski <n54@gmx.com>
9204
9205 * nbsd-tdep.c: Include "gdbarch.h".
9206 Define enum with NetBSD signal numbers.
9207 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9208 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9209 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9210 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9211 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9212 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9213 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9214 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9215 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9216 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9217 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9218 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9219
9e7c9a03
HD
92202020-04-03 Hannes Domani <ssbssa@yahoo.de>
9221
9222 PR gdb/25325
9223 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9224
d9e49b61
TT
92252020-04-03 Tom Tromey <tromey@adacore.com>
9226
9227 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9228 Read constant block.
9229
e0fc5c3f
SM
92302020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9231
9232 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9233 (gdb_bfd_get_full_section_contents): New declaration.
9234 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9235 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9236 gdb_bfd_get_full_section_contents.
9237
e2ff18a0
SM
92382020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9239
9240 * exec.c (build_section_table): Replace internal_error with
9241 gdb_assert.
9242 (section_table_xfer_memory_partial): Likewise.
9243 * mdebugread.c (parse_partial_symbols): Likewise.
9244 * psymtab.c (lookup_partial_symbol): Likewise.
9245 * utils.c (wrap_here): Likewise.
9246
0830d301
TT
92472020-04-02 Tom Tromey <tromey@adacore.com>
9248
9249 * f-lang.c (build_fortran_types): Use arch_type to initialize
9250 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9251
e7da7f8f
TT
92522020-04-02 Tom Tromey <tromey@adacore.com>
9253
9254 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9255 of attributes.
9256
c90d28ac
AB
92572020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9258 Bernd Edlinger <bernd.edlinger@hotmail.de>
9259 Tom Tromey <tromey@adacore.com>
9260
9261 * buildsym.c (buildsym_compunit::record_line): Remove
9262 deduplication code.
9263
1aa98955
TV
92642020-04-02 Tom de Vries <tdevries@suse.de>
9265
9266 PR ada/24671
9267 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9268
d3214198
TV
92692020-04-02 Tom de Vries <tdevries@suse.de>
9270
9271 * dwarf2/read.c (dwarf2_gdb_index_functions,
9272 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9273 NULL.
9274 * psymtab.c (psym_lookup_global_symbol_language): New function.
9275 (psym_functions): Init psym_lookup_global_symbol_language with
9276 psym_lookup_global_symbol_language.
9277 * symfile-debug.c (debug_sym_quick_functions): Init
9278 lookup_global_symbol_language with NULL.
9279 * symfile.c (set_initial_language): Remove fixme comment.
9280 * symfile.h (struct quick_symbol_functions): Add
9281 lookup_global_symbol_language.
9282 * symtab.c (find_quick_global_symbol_language): New function.
9283 (find_main_name): Use find_quick_global_symbol_language.
9284
2836752f
SM
92852020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9286
9287 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9288
64dc2d4b
BE
92892020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9290
9291 * buildsym.c (record_line): Fix undefined behavior and preserve
9292 lines at eof.
9293
bbe3dc41
BE
92942020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9295
9296 * buildsym.c (record_line): Fix the resizing condition.
9297
6b4a335b
TT
92982020-04-01 Tom Tromey <tom@tromey.com>
9299
9300 * value.h (value_literal_complex): Add comment.
9301 * valops.c (value_literal_complex): Refer to value.h.
9302
3638a098
TT
93032020-04-01 Tom Tromey <tom@tromey.com>
9304
9305 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9306 (scalar_type): New rule, from typebase.
9307 (typebase): Use scalar_type. Recognize complex types.
9308 (field_name): Handle FLOAT_KEYWORD.
9309 (ident_tokens): Add _Complex and __complex__.
9310
c34e8714
TT
93112020-04-01 Tom Tromey <tom@tromey.com>
9312
9313 PR exp/25299:
9314 * valarith.c (promotion_type, complex_binop): New functions.
9315 (scalar_binop): Handle complex numbers. Use promotion_type.
9316 (value_pos, value_neg, value_complement): Handle complex numbers.
9317
fa649bb7
TT
93182020-04-01 Tom Tromey <tom@tromey.com>
9319
9320 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9321 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9322 (parse_number): Handle complex numbers.
9323
981c08ce
TT
93242020-04-01 Tom Tromey <tom@tromey.com>
9325
9326 * c-valprint.c (c_decorations): Change complex suffix to "i".
9327
4c99290d
TT
93282020-04-01 Tom Tromey <tom@tromey.com>
9329
9330 * valprint.c (generic_value_print_complex): Use accessors.
9331 * value.h (value_real_part, value_imaginary_part): Declare.
9332 * valops.c (value_real_part, value_imaginary_part): New
9333 functions.
9334 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9335
5b930b45
TT
93362020-04-01 Tom Tromey <tom@tromey.com>
9337
9338 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9339 (read_range_type): Update.
9340 * mdebugread.c (basic_type): Update.
9341 * go-lang.c (build_go_types): Use init_complex_type.
9342 * gdbtypes.h (struct main_type) <complex_type>: New member.
9343 (init_complex_type): Update.
9344 (arch_complex_type): Don't declare.
9345 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9346 Make name if none given. Use alloc_type_copy. Look for cached
9347 complex type.
9348 (arch_complex_type): Remove.
9349 (gdbtypes_post_init): Use init_complex_type.
9350 * f-lang.c (build_fortran_types): Use init_complex_type.
9351 * dwarf2/read.c (read_base_type): Update.
9352 * d-lang.c (build_d_types): Use init_complex_type.
9353 * ctfread.c (read_base_type): Update.
9354
53cccef1
TBA
93552020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9356
9357 * infrun.c (stop_all_threads): Update assertion, plus when
9358 stopping threads, take into account that we might be trying
9359 to stop an all-stop target.
9360 (stop_waiting): Call 'stop_all_threads' if there exists a
9361 non-stop target.
9362
a0714d30
TBA
93632020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9364
9365 * target.h (exists_non_stop_target): New function declaration.
9366 * target.c (exists_non_stop_target): New function.
9367
60e22c1e
HD
93682020-04-01 Hannes Domani <ssbssa@yahoo.de>
9369
9370 PR gdb/24789
9371 * eval.c (is_integral_or_integral_reference): New function.
9372 (evaluate_subexp_standard): Allow integer references in
9373 pointer arithmetic.
9374
e139a727
TBA
93752020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9376
9377 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9378 check for no ptid in the stop reply when the target is non-stop.
9379
e0802d59
TT
93802020-04-01 Tom Tromey <tromey@adacore.com>
9381
9382 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9383 "name" parameter to rvalue reference. Initialize m_name_holder.
9384 <lookup_name_info>: New overloads.
9385 <name>: Return gdb::string_view.
9386 <c_str>: New method.
9387 <make_ignore_params>: Update.
9388 <search_name_hash>: Update.
9389 <language_lookup_name>: Return const char *.
9390 <m_name>: Change type.
9391 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9392 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9393 (lookup_name_info::match_any): Update.
9394 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9395 Update.
9396 * minsyms.c (linkage_name_str): Update.
9397 * language.c (default_symbol_name_matcher): Update.
9398 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9399 Update.
9400 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9401 (ada_lookup_name_info::ada_lookup_name_info): Update.
9402 (literal_symbol_name_matcher): Update.
9403
8c072cb6
TT
94042020-04-01 Tom Tromey <tromey@adacore.com>
9405
9406 * psymtab.c (psymtab_search_name): Remove function.
9407 (psym_lookup_symbol): Create search name and lookup name here.
9408 (lookup_partial_symbol): Remove "name" parameter; add
9409 lookup_name.
9410 (psym_expand_symtabs_for_function): Update.
9411
6f29a534
TT
94122020-03-31 Joel Jones <joelkevinjones@gmail.com>
9413
9414 PR tui/25597:
9415 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9416
af62665e
TT
94172020-03-31 Tom Tromey <tromey@adacore.com>
9418
9419 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9420 memcpy.
9421
d1a89da5
NC
94222020-03-30 Nelson Chu <nelson.chu@sifive.com>
9423
9424 * features/riscv/32bit-csr.xml: Regenerated.
9425 * features/riscv/64bit-csr.xml: Regenerated.
9426
d8af9068
TT
94272020-03-30 Tom Tromey <tromey@adacore.com>
9428
9429 * ada-valprint.c (print_variant_part): Update.
9430 * ada-lang.h (ada_which_variant_applies): Update.
9431 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9432 outer_valaddr parameters; replace with "outer" value parameter.
9433 (to_fixed_variant_branch_type): Update.
9434
227c0bf4
PFC
94352020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9436
9437 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9438 <list>. Remove inclusion of observable.h.
9439 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9440 (struct arch_lwp_info): New struct.
9441 (class ppc_linux_dreg_interface): New class.
9442 (struct ppc_linux_process_info): New struct.
9443 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9444 <low_new_clone, low_forget_process, low_prepare_to_resume>
9445 <copy_thread_dreg_state, mark_thread_stale>
9446 <mark_debug_registers_changed, register_hw_breakpoint>
9447 <clear_hw_breakpoint, register_wp, clear_wp>
9448 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9449 <num_memory_accesses, get_trigger_type>
9450 <create_watchpoint_request, hwdebug_point_cmp>
9451 <init_arch_lwp_info, get_arch_lwp_info>
9452 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9453 methods.
9454 <struct ptid_hash>: New inner struct.
9455 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9456 members.
9457 (saved_dabr_value, hwdebug_info, max_slots_number)
9458 (struct hw_break_tuple, struct thread_points, ppc_threads)
9459 (have_ptrace_hwdebug_interface)
9460 (hwdebug_find_thread_points_by_tid)
9461 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9462 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9463 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9464 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9465 use m_dreg_interface.
9466 (hwdebug_point_cmp): Change to...
9467 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9468 reference arguments instead of pointers.
9469 (ppc_linux_nat_target::ranged_break_num_registers): Use
9470 m_dreg_interface.
9471 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9472 m_dreg_interface. Call register_hw_breakpoint.
9473 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9474 m_dreg_interface. Call clear_hw_breakpoint.
9475 (get_trigger_type): Change to...
9476 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9477 comment.
9478 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9479 use m_dreg_interface. Call register_hw_breakpoint.
9480 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9481 use m_dreg_interface. Call clear_hw_breakpoint.
9482 (can_use_watchpoint_cond_accel): Change to...
9483 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9484 method. Update comment, use m_dreg_interface and
9485 m_process_info.
9486 (calculate_dvc): Change to...
9487 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9488 m_dreg_interface.
9489 (num_memory_accesses): Change to...
9490 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9491 (check_condition): Change to...
9492 (ppc_linux_nat_target::check_condition): ...this method.
9493 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9494 comment, use m_dreg_interface.
9495 (create_watchpoint_request): Change to...
9496 (ppc_linux_nat_target::create_watchpoint_request): ...this
9497 method. Use m_dreg_interface.
9498 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9499 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9500 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9501 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9502 (ppc_linux_nat_target::low_forget_process)
9503 (ppc_linux_nat_target::low_new_fork)
9504 (ppc_linux_nat_target::low_new_clone)
9505 (ppc_linux_nat_target::low_delete_thread)
9506 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9507 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9508 only call mark_thread_stale.
9509 (ppc_linux_thread_exit): Remove.
9510 (ppc_linux_nat_target::stopped_data_address): Change to...
9511 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9512 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9513 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9514 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9515 comment. Call low_stopped_data_address.
9516 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9517 m_dreg_interface.
9518 (ppc_linux_nat_target::masked_watch_num_registers): Use
9519 m_dreg_interface.
9520 (ppc_linux_nat_target::copy_thread_dreg_state)
9521 (ppc_linux_nat_target::mark_thread_stale)
9522 (ppc_linux_nat_target::mark_debug_registers_changed)
9523 (ppc_linux_nat_target::register_hw_breakpoint)
9524 (ppc_linux_nat_target::clear_hw_breakpoint)
9525 (ppc_linux_nat_target::register_wp)
9526 (ppc_linux_nat_target::clear_wp)
9527 (ppc_linux_nat_target::init_arch_lwp_info)
9528 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9529 (_initialize_ppc_linux_nat): Remove observer callback.
9530
4db10d8f
PFC
95312020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9532
9533 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9534 (ppc_linux_nat_target::auxv_parse)
9535 (ppc_linux_nat_target::read_description)
9536 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9537 Move up.
9538
1310c1b0
PFC
95392020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9540
9541 * linux-nat.h (low_new_clone): New method.
9542 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9543
69b037c3
SM
95442020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9545
9546 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9547 (dbx_expand_psymtab): ... this.
9548 (start_psymtab): Update.
9549 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9550 (mdebug_expand_psymtab): ... this.
9551 (parse_partial_symbols): Update.
9552 (new_psymtab): Update.
9553 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9554 (xcoff_expand_psymtab): ... this.
9555 (xcoff_start_psymtab): Update.
9556
48993951
SM
95572020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9558
9559 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9560 <expand_dependencies>: ... this.
9561 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9562 (partial_symtab::expand_dependencies): ... this.
9563 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9564 Update.
9565 (dwarf2_psymtab::expand_psymtab): Update.
9566 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9567 * mdebugread.c (psymtab_to_symtab_1): Update.
9568 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9569
3ad83046
SM
95702020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9571
9572 * psympriv.h (discard_psymtab): Remove.
9573 * dbxread.c (dbx_end_psymtab): Update.
9574 * xcoffread.c (xcoff_end_psymtab): Update.
9575
4d1b9ab6
TT
95762020-03-28 Tom Tromey <tom@tromey.com>
9577
9578 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9579 comment.
9580
f1749218
TT
95812020-03-28 Tom Tromey <tom@tromey.com>
9582
9583 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9584
ebea7626
HD
95852020-03-27 Hannes Domani <ssbssa@yahoo.de>
9586
9587 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9588
a879b4d5
JB
95892020-03-26 John Baldwin <jhb@FreeBSD.org>
9590
9591 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9592
0826b30a
TT
95932020-03-26 Tom Tromey <tom@tromey.com>
9594
9595 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9596 (mark_common_block_symbol_computed, read_tag_string_type)
9597 (attr_to_dynamic_prop, read_subrange_type): Update.
9598 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9599 to be methods on struct attribute.
9600 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9601 (read_call_site_scope, partial_die_info::read)
9602 (partial_die_info::read, lookup_die_type, follow_die_ref):
9603 Update.
9604 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9605 from dwarf2_get_ref_die_offset.
9606 (attribute::constant_value): New method, from
9607 dwarf2_get_attr_constant_value.
9608 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9609 Declare method.
9610 <constant_value>: New method.
9611
2b2558bf
TT
96122020-03-26 Tom Tromey <tom@tromey.com>
9613
9614 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9615 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9616 (dwarf_type_encoding_name): Move to stringify.c.
9617 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9618 * dwarf2/stringify.c: New file.
9619 * dwarf2/stringify.h: New file.
9620
eeb64781
TT
96212020-03-26 Tom Tromey <tom@tromey.com>
9622
9623 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9624 Rewrite.
9625
a39fdb41
TT
96262020-03-26 Tom Tromey <tom@tromey.com>
9627
9628 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9629 methods.
9630 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9631 (lookup_ranges_base): Likewise.
9632 (read_cutu_die_from_dwo, read_full_die_1): Update.
9633
436c571c
TT
96342020-03-26 Tom Tromey <tom@tromey.com>
9635
9636 * dwarf2/read.c (read_import_statement, read_file_scope)
9637 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9638 (read_lexical_block_scope, read_call_site_scope)
9639 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9640 (handle_struct_member_die, process_structure_scope)
9641 (update_enumeration_type_from_children)
9642 (process_enumeration_scope, read_array_type, read_common_block)
9643 (read_namespace, read_module, read_subroutine_type): Update.
9644 (sibling_die): Remove.
9645
052c8bb8
TT
96462020-03-26 Tom Tromey <tom@tromey.com>
9647
9648 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9649 (build_type_psymtabs_reader, read_structure_type)
9650 (read_enumeration_type, read_full_die_1): Update.
9651 (dwarf2_attr_no_follow): Move to die.h.
9652 * dwarf2/die.h (struct die_info) <attr>: New method.
9653
2b24b6e4
TT
96542020-03-26 Tom Tromey <tom@tromey.com>
9655
9656 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9657 <base_address>: Now an optional.
9658 (dwarf2_find_base_address, dwarf2_rnglists_process)
9659 (dwarf2_ranges_process, fill_in_loclist_baton)
9660 (dwarf2_symbol_mark_computed): Update.
9661
c2d50fd0
TT
96622020-03-26 Tom Tromey <tom@tromey.com>
9663
9664 * dwarf2/read.c (struct die_info): Move to die.h.
9665 * dwarf2/die.h: New file.
9666
0df7ad3a
TT
96672020-03-26 Tom Tromey <tom@tromey.com>
9668
9669 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9670 * dwarf2/read.c
9671 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9672 Move to line-header.c.
9673 (read_checked_initial_length_and_offset, read_formatted_entries):
9674 Likewise.
9675 (dwarf_decode_line_header): Split into two.
9676 * dwarf2/line-header.c
9677 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9678 Move from read.c.
9679 (read_checked_initial_length_and_offset, read_formatted_entries):
9680 Likewise.
9681 (dwarf_decode_line_header): New function, split from read.c.
9682
86c0bb4c
TT
96832020-03-26 Tom Tromey <tom@tromey.com>
9684
9685 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9686 Declare method.
9687 * dwarf2/read.c (read_attribute_value): Update.
9688 (dwarf2_per_objfile::read_line_string): Rename from
9689 read_indirect_line_string.
9690 (read_formatted_entries): Update.
9691
2ef46c2f
TT
96922020-03-26 Tom Tromey <tom@tromey.com>
9693
9694 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9695 variable.
9696
4f9c1eda
TT
96972020-03-26 Tom Tromey <tom@tromey.com>
9698
9699 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9700 const.
9701 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9702 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9703 parameter const.
9704
5a0e026f
TT
97052020-03-26 Tom Tromey <tom@tromey.com>
9706
9707 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9708 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9709 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9710 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9711
8844c11b
TT
97122020-03-26 Tom Tromey <tom@tromey.com>
9713
9714 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9715 file_names_size, file_full_name, file_file_name>: Use const.
9716 <file_name_at, file_names>: Add const overload.
9717 * dwarf2/line-header.c (line_header::file_file_name)
9718 (line_header::file_full_name): Update.
9719
c90ec28a
TT
97202020-03-26 Tom Tromey <tom@tromey.com>
9721
9722 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9723 (macro_start_file, consume_improper_spaces)
9724 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9725 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9726 (dwarf_decode_macros): Move to macro.c.
9727 * dwarf2/macro.c: New file.
9728 * dwarf2/macro.h: New file.
9729 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9730
4f44ae6c
TT
97312020-03-26 Tom Tromey <tom@tromey.com>
9732
9733 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9734 method.
9735 * dwarf2/section.c: New method. From
9736 read_indirect_string_at_offset_from.
9737 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9738 (read_indirect_string_at_offset_from): Move to section.c.
9739 (read_indirect_string_at_offset): Rewrite.
9740 (read_indirect_line_string_at_offset): Remove.
9741 (read_indirect_string, read_indirect_line_string)
9742 (dwarf_decode_macro_bytes): Update.
9743
a0194fa8
TT
97442020-03-26 Tom Tromey <tom@tromey.com>
9745
9746 * dwarf2/section.h (struct dwarf2_section_info)
9747 <overload_complaint>: Declare.
9748 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9749 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9750 Rename from dwarf2_section_buffer_overflow_complaint.
9751 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9752 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9753
3d27bbdb
TT
97542020-03-26 Tom Tromey <tom@tromey.com>
9755
9756 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9757 Declare.
9758 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9759 Move from read.c.
9760 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9761 to section.c.
9762
9eac9650
TT
97632020-03-26 Tom Tromey <tom@tromey.com>
9764
9765 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9766
bf80d710
TT
97672020-03-26 Tom Tromey <tom@tromey.com>
9768
9769 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9770 "builder".
9771 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9772 parameter.
9773 (dwarf_decode_macros): Update.
9774
0314b390
TT
97752020-03-26 Tom Tromey <tom@tromey.com>
9776
9777 * dwarf2/read.c (read_attribute_value): Update.
9778 (read_indirect_string_from_dwz): Move to dwz.c; change into
9779 method.
9780 (dwarf_decode_macro_bytes): Update.
9781 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9782 * dwarf2/dwz.c: New file.
9783 * Makefile.in (COMMON_SFILES): Add dwz.c.
9784
9fda78b6
TT
97852020-03-26 Tom Tromey <tom@tromey.com>
9786
9787 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9788 * dwarf2/read.c: Add include.
9789 * dwarf2/index-write.c: Add include.
9790 * dwarf2/index-cache.c: Add include.
9791 * dwarf2/dwz.h: New file.
9792
33aa3c10
TT
97932020-03-25 Tom Tromey <tom@tromey.com>
9794
9795 * compile/compile-object-load.c (get_out_value_type): Mention
9796 correct symbol name in error message.
9797
d503b685
HD
97982020-03-25 Hannes Domani <ssbssa@yahoo.de>
9799
9800 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9801
7b1eff95
TV
98022020-03-25 Tom de Vries <tdevries@suse.de>
9803
9804 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9805 * symmisc.c (dump_symtab_1): Print user and includes fields.
9806 (maintenance_info_symtabs): Same.
9807
dd895392
AB
98082020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9809
9810 PR gdb/25534
9811 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9812 (riscv_regcache_cooked_write): New function.
9813 (riscv_push_dummy_call): Use new function.
9814 (riscv_return_value): Likewise.
9815
5ab2fbf1
SM
98162020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9817
9818 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9819 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9820 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9821 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9822 * infrun.c (follow_fork): Likewise.
9823 (follow_fork_inferior): Likewise.
9824 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9825 * linux-nat.h (class linux_nat_target): Likewise.
9826 * remote.c (class remote_target) <follow_fork>: Likewise.
9827 (remote_target::follow_fork): Likewise.
9828 * target-delegates.c: Re-generate.
9829 * target.c (default_follow_fork): Likewise.
9830 (target_follow_fork): Likewise.
9831 * target.h (struct target_ops) <follow_fork>: Likewise.
9832 (target_follow_fork): Likewise.
9833
a64fafb5
TV
98342020-03-24 Tom de Vries <tdevries@suse.de>
9835
9836 * psymtab.c (maintenance_info_psymtabs): Print user field.
9837
fe26d3a3
TT
98382020-03-20 Tom Tromey <tromey@adacore.com>
9839
9840 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9841 const.
9842 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9843 const.
9844
c884cc46
SM
98452020-03-20 Simon Marchi <simon.marchi@efficios.com>
9846
9847 * ptrace.m4: Don't check for ptrace declaration.
9848 * config.in: Re-generate.
9849 * configure: Re-generate.
9850 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9851 not defined.
9852
1ff700c2
KR
98532020-03-20 Kamil Rytarowski <n54@gmx.com>
9854
9855 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9856 `PTRACE_TYPE_RET'.
9857 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9858 * sparc-nat.c (gdb_ptrace): Likewise.
9859 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9860
f7d4f0b1
TT
98612020-03-20 Tom Tromey <tromey@adacore.com>
9862
9863 * c-exp.y (lex_one_token): Fix assert.
9864
f67210ff
TT
98652020-03-20 Tom Tromey <tromey@adacore.com>
9866
9867 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9868 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9869 strncpy call.
9870
1773be9e
TT
98712020-03-20 Tom Tromey <tromey@adacore.com>
9872
9873 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9874
70304be9
TT
98752020-03-20 Tom Tromey <tromey@adacore.com>
9876
9877 * ada-valprint.c (print_variant_part): Remove parameters; switch
9878 to value-based API.
9879 (print_field_values): Likewise.
9880 (ada_val_print_struct_union): Likewise.
9881 (ada_value_print_1): Update.
9882
9faa006d
KR
98832020-03-20 Kamil Rytarowski <n54@gmx.com>
9884
9885 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9886 nbsd_nat_target instead of inf_ptrace_target.
9887 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9888 nbsd_nat_target.
9889
4a90f062
KR
98902020-03-20 Kamil Rytarowski <n54@gmx.com>
9891
9892 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9893 it to the ptrace call.
9894 * (store_registers): Likewise.
9895
98962020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9897
9898 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9899 it to the ptrace call.
9900 * (store_registers): Likewise.
9901
2d07da27
LM
99022020-03-19 Luis Machado <luis.machado@linaro.org>
9903
9904 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9905 valid, fetch vg value from ptrace.
9906
f09db380
KR
99072020-03-19 Kamil Rytarowski <n54@gmx.com>
9908 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9909 * inf-ptrace.c: Likewise.
9910 * (gdb_ptrace): Add.
9911 * (inf_ptrace_target::resume): Update.
9912 * (inf_ptrace_target::xfer_partial): Likewise.
9913 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9914 * (inf_ptrace_peek_poke): Update.
9915
fcc7376e
KR
99162020-03-19 Kamil Rytarowski <n54@gmx.com>
9917
9918 * x86-bsd-nat.c (gdb_ptrace): New.
9919 * (x86bsd_dr_set): Add new argument `ptid'.
9920 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9921 x86bsd_dr_set_addr): Update.
9922
cada5fc9
AB
99232020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9924
9925 * remote.c (remote_target::process_stop_reply): Handle events for
9926 all threads differently.
9927
19a2740f
AB
99282020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9929
9930 * completer.c (completion_tracker::remove_completion): Define new
9931 function.
9932 * completer.h (completion_tracker::remove_completion): Declare new
9933 function.
9934 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9935 when adding a C++ function symbol.
9936
724fd9ba
AB
99372020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9938
9939 * completer.c (completion_tracker::completion_hash_entry): Define
9940 new class.
9941 (advance_to_filename_complete_word_point): Call
9942 recompute_lowest_common_denominator.
9943 (completion_tracker::completion_tracker): Call discard_completions
9944 to setup the hash table.
9945 (completion_tracker::discard_completions): Allow for being called
9946 from the constructor, pass new equal function, and element deleter
9947 when constructing the hash table. Initialise new class member
9948 variables.
9949 (completion_tracker::maybe_add_completion): Remove use of
9950 m_entries_vec, and store more information into m_entries_hash.
9951 (completion_tracker::recompute_lcd_visitor): New function, most
9952 content taken from...
9953 (completion_tracker::recompute_lowest_common_denominator):
9954 ...here, this now just visits each item in the hash calling the
9955 above visitor.
9956 (completion_tracker::build_completion_result): Remove use of
9957 m_entries_vec, call recompute_lowest_common_denominator.
9958 * completer.h (completion_tracker::have_completions): Remove use
9959 of m_entries_vec.
9960 (completion_tracker::completion_hash_entry): Declare new class.
9961 (completion_tracker::recompute_lowest_common_denominator): Change
9962 function signature.
9963 (completion_tracker::recompute_lcd_visitor): Declare new function.
9964 (completion_tracker::m_entries_vec): Delete.
9965 (completion_tracker::m_entries_hash): Initialize to NULL.
9966 (completion_tracker::m_lowest_common_denominator_valid): New
9967 member variable.
9968 (completion_tracker::m_lowest_common_denominator_max_length): New
9969 member variable.
9970
5a82b8a1
KR
99712020-03-17 Kamil Rytarowski <n54@gmx.com>
9972
9973 * regformats/regdef.h: Put reg in gdb namespace.
9974
fb516a69
KR
99752020-03-17 Kamil Rytarowski <n54@gmx.com>
9976
9977 * i386-bsd-nat.c (gdb_ptrace): New.
9978 * (i386bsd_fetch_inferior_registers,
9979 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9980 * (i386bsd_fetch_inferior_registers,
9981 i386bsd_store_inferior_registers) Use gdb_ptrace.
9982
1c0aa1fb
KR
99832020-03-17 Kamil Rytarowski <n54@gmx.com>
9984
9985 * amd64-bsd-nat.c (gdb_ptrace): New.
9986 * (amd64bsd_fetch_inferior_registers,
9987 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9988 * (amd64bsd_fetch_inferior_registers,
9989 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9990
5ccd2fb7
KR
99912020-03-17 Kamil Rytarowski <n54@gmx.com>
9992
9993 * user-regs.c (user_reg::read): Rename to...
9994 (user_reg::xread): ...this.
9995 * (append_user_reg): Rename argument `read' to `xread'.
9996 * (user_reg_add_builtin): Likewise.
9997 * (user_reg_add): Likewise.
9998 * (value_of_user_reg): Likewise.
9999
2108a63a
KR
100002020-03-17 Kamil Rytarowski <n54@gmx.com>
10001
10002 * sparc-nat.c (gdb_ptrace): New.
10003 * sparc-nat.c (sparc_fetch_inferior_registers)
10004 (sparc_store_inferior_registers) Remove obsolete comment.
10005 * sparc-nat.c (sparc_fetch_inferior_registers)
10006 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10007 * sparc-nat.c (sparc_fetch_inferior_registers)
10008 (sparc_store_inferior_registers) Use gdb_ptrace.
10009
a225c9a8
KR
100102020-03-17 Kamil Rytarowski <n54@gmx.com>
10011
10012 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10013 it to the ptrace call.
10014 * sh-nbsd-nat.c (store_registers): Likewise.
10015
98097623
KR
100162020-03-17 Kamil Rytarowski <n54@gmx.com>
10017
10018 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10019 nbsd_nat_target instead of inf_ptrace_target.
10020 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10021 nbsd_nat_target.
10022
9e38d619
KR
100232020-03-17 Kamil Rytarowski <n54@gmx.com>
10024
10025 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10026
a2ecbe9f
KR
100272020-03-17 Kamil Rytarowski <n54@gmx.com>
10028
10029 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10030 <sys/sysctl.h>.
10031 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10032
58990295
TV
100332020-03-17 Tom de Vries <tdevries@suse.de>
10034
10035 PR gdb/23710
10036 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10037 fields.
10038 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10039 fields.
10040 (process_imported_unit_die): Skip import of c++ CUs.
10041
771dd3a8
TT
100422020-03-16 Tom Tromey <tom@tromey.com>
10043
10044 * p-valprint.c (pascal_object_print_value): Initialize
10045 base_value.
10046
817a7585
AK
100472020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10048 Shahab Vahedi <shahab@synopsys.com>
10049
10050 * Makefile.in: Add arch/arc.o
10051 * configure.tgt: Likewise.
10052 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10053 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10054 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10055 * arc-tdep.h (arc_read_description): Add proto type.
10056 * arch/arc.c: New file.
10057 * arch/arc.h: Likewise.
10058 * features/Makefile: Replace old target descriptions with new.
10059 * features/arc-arcompact.c: Remove.
10060 * features/arc-arcompact.xml: Likewise.
10061 * features/arc-v2.c: Likewise
10062 * features/arc-v2.xml: Likewise
10063 * features/arc/aux-arcompact.xml: New file.
10064 * features/arc/aux-v2.xml: Likewise.
10065 * features/arc/core-arcompact.xml: Likewise.
10066 * features/arc/core-v2.xml: Likewise.
10067 * features/arc/aux-arcompact.c: Generate.
10068 * features/arc/aux-v2.c: Likewise.
10069 * features/arc/core-arcompact.c: Likewise.
10070 * features/arc/core-v2.c: Likewise.
10071 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10072
67430cd0
TT
100732020-03-16 Tom Tromey <tromey@adacore.com>
10074
10075 PR gdb/25663:
10076 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10077 putting value into bcache.
10078
30efb6c7
SM
100792020-03-16 Simon Marchi <simon.marchi@efficios.com>
10080
10081 PR gdb/21500
10082 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10083 to...
10084 (amd64_windows_init_abi_common): ... this. Don't set size of
10085 long type.
10086 (amd64_windows_init_abi): New function.
10087 (amd64_cygwin_init_abi): New function.
10088 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10089 the Cygwin OS ABI.
10090 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10091 comment.
10092
8db52437
SM
100932020-03-16 Simon Marchi <simon.marchi@efficios.com>
10094
10095 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10096 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10097 (pe_import_directory_entry): New struct type.
10098 (is_linked_with_cygwin_dll): New function.
10099 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10100 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10101 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10102
5982a56a
SM
101032020-03-16 Simon Marchi <simon.marchi@efficios.com>
10104
10105 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10106 i386_cygwin_core_osabi_sniffer.
10107
7a1998df
SM
101082020-03-16 Simon Marchi <simon.marchi@efficios.com>
10109
10110 * i386-cygwin-tdep.c: Rename to...
10111 * i386-windows-tdep.c: ... this.
10112 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10113 i386-windows-tdep.c.
10114 * configure.tgt: Likewise.
10115
053205cc
SM
101162020-03-16 Simon Marchi <simon.marchi@efficios.com>
10117
10118 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10119 * osabi.c (gdb_osabi_names): Add "Windows".
10120 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10121 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10122 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10123 i386_cygwin_osabi_sniffer.
10124 (_initialize_i386_cygwin_tdep): Register OS ABI
10125 GDB_OSABI_WINDOWS for i386.
10126 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10127 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10128 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10129 for x86-64.
10130 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10131 when the target matches '*-*-mingw*'.
10132
fe4b2ee6
SM
101332020-03-16 Simon Marchi <simon.marchi@efficios.com>
10134
10135 * defs.h (enum gdb_osabi): Move to...
10136 * osabi.h (enum gdb_osabi): ... here.
10137 * gdbarch.sh: Include osabi.h in gdbarch.h.
10138 * gdbarch.h: Re-generate.
10139
cb9b645d
SM
101402020-03-16 Simon Marchi <simon.marchi@efficios.com>
10141
10142 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10143 function.
10144 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10145
3293bbaf
TT
101462020-03-14 Tom Tromey <tom@tromey.com>
10147
10148 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10149 for C++.
10150 (c_type_print_modifier): Likewise. Add "language" parameter.
10151 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10152 (c_type_print_base_1): Update.
10153 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10154 constants.
10155 * type-stack.c (type_stack::insert): Handle tp_atomic and
10156 tp_restrict.
10157 (type_stack::follow_type_instance_flags): Likewise.
10158 (type_stack::follow_types): Likewise. Merge type-following code.
10159 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10160 (space_identifier, cv_with_space_id)
10161 (const_or_volatile_or_space_identifier_noopt)
10162 (const_or_volatile_or_space_identifier): Remove.
10163 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10164 rules.
10165 (ptr_operator, typebase): Update.
10166 (enum token_flag) <FLAG_C>: New constant.
10167 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10168 "_Atomic".
10169 (lex_one_token): Handle FLAG_C.
10170
154151a6
KR
101712020-03-14 Kamil Rytarowski <n54@gmx.com>
10172
10173 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10174 it to the ptrace call.
10175 * m68k-bsd-nat.c (store_registers): Likewise.
10176
bc107784
KR
101772020-03-14 Kamil Rytarowski <n54@gmx.com>
10178
10179 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10180 gdb_byte *.
10181 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10182 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10183 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10184
01a80117
KR
101852020-03-14 Kamil Rytarowski <n54@gmx.com>
10186
10187 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10188 nbsd_nat_target instead of inf_ptrace_target.
10189 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10190 nbsd_nat_target.
10191
f90280ca
KR
101922020-03-14 Kamil Rytarowski <n54@gmx.com>
10193
10194 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10195 register_t.
10196
6def66f1
KR
101972020-03-14 Kamil Rytarowski <n54@gmx.com>
10198
10199 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10200 it to the ptrace call.
10201 * alpha-bsd-nat.c (store_registers): Likewise.
10202
66eaca97
KR
102032020-03-14 Kamil Rytarowski <n54@gmx.com>
10204
10205 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10206 includes.
10207 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10208 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10209 fill_fpregset): Likewise.
10210
4fed520b
KR
102112020-03-14 Kamil Rytarowski <n54@gmx.com>
10212
10213 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10214 nbsd_nat_target instead of inf_ptrace_target.
10215 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10216 nbsd_nat_target.
10217
2190cf06
KR
102182020-03-14 Kamil Rytarowski <n54@gmx.com>
10219
10220 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10221 register_t.
10222
75c56d3d
KR
102232020-03-14 Kamil Rytarowski <n54@gmx.com>
10224
10225 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10226 it to the ptrace call.
10227 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10228 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10229 * arm-nbsd-nat.c (store_register): Likewise.
10230 * arm-nbsd-nat.c (store_regs): Likewise.
10231 * arm-nbsd-nat.c (store_fp_register): Likewise.
10232 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10233
6018d381
KR
102342020-03-14 Kamil Rytarowski <n54@gmx.com>
10235
10236 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10237 nbsd_nat_target instead of inf_ptrace_target.
10238 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10239 nbsd_nat_target.
10240
013f99f0
KR
102412020-03-14 Kamil Rytarowski <n54@gmx.com>
10242
10243 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10244 it to the ptrace call.
10245 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10246
12753073
KR
102472020-03-14 Kamil Rytarowski <n54@gmx.com>
10248
6227b330
KR
10249 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10250 it to the ptrace call.
10251 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10252
102532020-03-14 Kamil Rytarowski <n54@gmx.com>
10254
10255 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10256 gdb_byte *.
12753073
KR
10257 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10258
d5be5fa4
KR
102592020-03-14 Kamil Rytarowski <n54@gmx.com>
10260
10261 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10262 instead of inf_ptrace_target.
10263 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10264 nbsd_nat_target.
10265
8110f842
KR
102662020-03-14 Kamil Rytarowski <n54@gmx.com>
10267
10268 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10269 register_t.
10270
52feded7
KR
102712020-03-14 Kamil Rytarowski <n54@gmx.com>
10272
10273 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10274 register_t.
10275
25567eee
KR
102762020-03-14 Kamil Rytarowski <n54@gmx.com>
10277
10278 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10279 register_t.
10280
426a9c18
TT
102812020-03-13 Tom Tromey <tom@tromey.com>
10282
10283 * value.h (val_print): Don't declare.
10284 * valprint.h (val_print_array_elements)
10285 (val_print_scalar_formatted, generic_val_print): Don't declare.
10286 * valprint.c (generic_val_print_array): Take a struct value.
10287 (generic_val_print_ptr, generic_val_print_memberptr)
10288 (generic_val_print_bool, generic_val_print_int)
10289 (generic_val_print_char, generic_val_print_complex)
10290 (generic_val_print): Remove.
10291 (generic_value_print): Update.
10292 (do_val_print): Remove unused parameters. Don't call
10293 la_val_print.
10294 (val_print): Remove.
10295 (common_val_print): Update. Don't call value_check_printable.
10296 (val_print_scalar_formatted, val_print_array_elements): Remove.
10297 * rust-lang.c (rust_val_print): Remove.
10298 (rust_language_defn): Update.
10299 * p-valprint.c (pascal_val_print): Remove.
10300 (pascal_value_print_inner): Update.
10301 (pascal_object_print_val_fields, pascal_object_print_val):
10302 Remove.
10303 (pascal_object_print_static_field): Update.
10304 * p-lang.h (pascal_val_print): Don't declare.
10305 * p-lang.c (pascal_language_defn): Update.
10306 * opencl-lang.c (opencl_language_defn): Update.
10307 * objc-lang.c (objc_language_defn): Update.
10308 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10309 * m2-lang.h (m2_val_print): Don't declare.
10310 * m2-lang.c (m2_language_defn): Update.
10311 * language.h (struct language_defn) <la_val_print>: Remove.
10312 * language.c (unk_lang_value_print_inner): Rename. Change
10313 argument types.
10314 (unknown_language_defn, auto_language_defn): Update.
10315 * go-valprint.c (go_val_print): Remove.
10316 * go-lang.h (go_val_print): Don't declare.
10317 * go-lang.c (go_language_defn): Update.
10318 * f-valprint.c (f_val_print): Remove.
10319 * f-lang.h (f_value_print): Don't declare.
10320 * f-lang.c (f_language_defn): Update.
10321 * d-valprint.c (d_val_print): Remove.
10322 * d-lang.h (d_value_print): Don't declare.
10323 * d-lang.c (d_language_defn): Update.
10324 * cp-valprint.c (cp_print_value_fields)
10325 (cp_print_value_fields_rtti, cp_print_value): Remove.
10326 (cp_print_static_field): Update.
10327 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10328 (c_val_print_struct, c_val_print_union, c_val_print_int)
10329 (c_val_print_memberptr, c_val_print): Remove.
10330 * c-lang.h (c_val_print_array, cp_print_value_fields)
10331 (cp_print_value_fields_rtti): Don't declare.
10332 * c-lang.c (c_language_defn, cplus_language_defn)
10333 (asm_language_defn, minimal_language_defn): Update.
10334 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10335 (ada_val_print_enum): Take a struct value.
10336 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10337 (ada_val_print): Remove.
10338 (ada_value_print_1): Update.
10339 (printable_val_type): Remove.
10340 * ada-lang.h (ada_val_print): Don't declare.
10341 * ada-lang.c (ada_language_defn): Update.
10342
42331a1e
TT
103432020-03-13 Tom Tromey <tom@tromey.com>
10344
10345 * valprint.c (do_val_print): Update.
10346 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10347 a struct value.
10348 (value_to_value_object_no_release): Declare.
10349 * python/py-value.c (value_to_value_object_no_release): New
10350 function.
10351 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10352 struct value.
10353 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10354 function.
10355 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10356 a struct value.
10357 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10358 Declare.
10359 (gdbscm_apply_val_pretty_printer): Take a struct value.
10360 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10361 value.
10362 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10363 value.
10364 * extension-priv.h (struct extension_language_ops)
10365 <apply_val_pretty_printer>: Take a struct value.
10366 * cp-valprint.c (cp_print_value): Create a struct value.
10367 (cp_print_value): Update.
10368
3a916a97
TT
103692020-03-13 Tom Tromey <tom@tromey.com>
10370
10371 * ada-valprint.c (print_field_values): Call common_val_print.
10372
b59eac37
TT
103732020-03-13 Tom Tromey <tom@tromey.com>
10374
10375 * ada-valprint.c (val_print_packed_array_elements): Remove
10376 bitoffset and val parameters. Call common_val_print.
10377 (ada_val_print_string): Remove offset, address, and original_value
10378 parameters.
10379 (ada_val_print_array): Update.
10380 (ada_value_print_array): New function.
10381 (ada_value_print_1): Call it.
10382
03371129
TT
103832020-03-13 Tom Tromey <tom@tromey.com>
10384
10385 * ada-valprint.c (ada_value_print): Use common_val_print.
10386
2e088f8b
TT
103872020-03-13 Tom Tromey <tom@tromey.com>
10388
10389 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10390
39ef85a8
TT
103912020-03-13 Tom Tromey <tom@tromey.com>
10392
10393 * ada-valprint.c (ada_value_print_num): New function.
10394 (ada_value_print_1): Use it.
10395
b9fa6e07
TT
103962020-03-13 Tom Tromey <tom@tromey.com>
10397
10398 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10399
416595d6
TT
104002020-03-13 Tom Tromey <tom@tromey.com>
10401
10402 * ada-valprint.c (ada_value_print_ptr): New function.
10403 (ada_value_print_1): Use it.
10404
5b5e15ec
TT
104052020-03-13 Tom Tromey <tom@tromey.com>
10406
10407 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10408 call common_val_print.
10409 (ada_val_print_1): Update.
10410 (ada_value_print_1): New function.
10411 (ada_value_print_inner): Rewrite.
10412
fbf54e75
TT
104132020-03-13 Tom Tromey <tom@tromey.com>
10414
10415 * cp-valprint.c (cp_print_value_fields): Update.
10416 (cp_print_value): New function.
10417
64b653ca
TT
104182020-03-13 Tom Tromey <tom@tromey.com>
10419
10420 * m2-valprint.c (m2_value_print_inner): Use
10421 cp_print_value_fields.
10422 * cp-valprint.c (cp_print_value_fields): New function.
10423 * c-valprint.c (c_value_print_struct): New function.
10424 (c_value_print_inner): Use c_value_print_struct.
10425 * c-lang.h (cp_print_value_fields): Declare.
10426
6999f067
TT
104272020-03-13 Tom Tromey <tom@tromey.com>
10428
10429 * c-valprint.c (c_value_print_array): New function.
10430 (c_value_print_inner): Use it.
10431
ce80b8bd
TT
104322020-03-13 Tom Tromey <tom@tromey.com>
10433
10434 * c-valprint.c (c_value_print_memberptr): New function.
10435 (c_value_print_inner): Use it.
10436
2faac269
TT
104372020-03-13 Tom Tromey <tom@tromey.com>
10438
10439 * c-valprint.c (c_value_print_int): New function.
10440 (c_value_print_inner): Use it.
10441
da3e2c29
TT
104422020-03-13 Tom Tromey <tom@tromey.com>
10443
10444 * c-valprint.c (c_value_print_ptr): New function.
10445 (c_value_print_inner): Use it.
10446
50836231
TT
104472020-03-13 Tom Tromey <tom@tromey.com>
10448
10449 * c-valprint.c (c_value_print_inner): Rewrite.
10450
4f412b6e
TT
104512020-03-13 Tom Tromey <tom@tromey.com>
10452
10453 * valprint.c (generic_value_print_complex): New function.
10454 (generic_value_print): Use it.
10455
f5354008
TT
104562020-03-13 Tom Tromey <tom@tromey.com>
10457
10458 * valprint.c (generic_val_print_float): Don't call
10459 val_print_scalar_formatted.
10460 (generic_val_print, generic_value_print): Update.
10461
3eec3b05
TT
104622020-03-13 Tom Tromey <tom@tromey.com>
10463
10464 * valprint.c (generic_value_print_char): New function
10465 (generic_value_print): Use it.
10466
fdddfccb
TT
104672020-03-13 Tom Tromey <tom@tromey.com>
10468
10469 * valprint.c (generic_value_print_int): New function.
10470 (generic_value_print): Use it.
10471
6dde7521
TT
104722020-03-13 Tom Tromey <tom@tromey.com>
10473
10474 * valprint.c (generic_value_print_bool): New function.
10475 (generic_value_print): Use it.
10476
4112d2e6
TT
104772020-03-13 Tom Tromey <tom@tromey.com>
10478
10479 * valprint.c (generic_val_print_func): Simplify.
10480 (generic_val_print, generic_value_print): Update.
10481
65786af6
TT
104822020-03-13 Tom Tromey <tom@tromey.com>
10483
10484 * valprint.c (generic_val_print_flags): Remove.
10485 (generic_val_print, generic_value_print): Update.
10486 (val_print_type_code_flags): Add original_value parameter.
10487
40f3ce18
TT
104882020-03-13 Tom Tromey <tom@tromey.com>
10489
10490 * valprint.c (generic_val_print): Update.
10491 (generic_value_print): Update.
10492 * valprint.c (generic_val_print_enum): Don't call
10493 val_print_scalar_formatted.
10494
2a5b130b
TT
104952020-03-13 Tom Tromey <tom@tromey.com>
10496
10497 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10498 * valprint.c (generic_value_print_ptr): New function.
10499
abc66ce9
TT
105002020-03-13 Tom Tromey <tom@tromey.com>
10501
10502 * valprint.c (generic_value_print): Rewrite.
10503
07a32858
TT
105042020-03-13 Tom Tromey <tom@tromey.com>
10505
10506 * p-valprint.c (pascal_object_print_value_fields)
10507 (pascal_object_print_value): New functions.
10508
64d64d3a
TT
105092020-03-13 Tom Tromey <tom@tromey.com>
10510
10511 * p-valprint.c (pascal_value_print_inner): Rewrite.
10512
6a95a1f5
TT
105132020-03-13 Tom Tromey <tom@tromey.com>
10514
10515 * f-valprint.c (f_value_print_innner): Rewrite.
10516
59fcdac6
TT
105172020-03-13 Tom Tromey <tom@tromey.com>
10518
10519 * m2-valprint.c (m2_print_unbounded_array): New overload.
10520 (m2_print_unbounded_array): Update.
10521 (m2_print_array_contents): Take a struct value.
10522 (m2_value_print_inner): Rewrite.
10523
d133c3e1
TT
105242020-03-13 Tom Tromey <tom@tromey.com>
10525
10526 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10527 (d_value_print_inner): New function.
10528 * d-lang.h (d_value_print_inner): Declare.
10529 * d-lang.c (d_language_defn): Use d_value_print_inner.
10530
23b0f06b
TT
105312020-03-13 Tom Tromey <tom@tromey.com>
10532
10533 * go-valprint.c (go_value_print_inner): New function.
10534 * go-lang.h (go_value_print_inner): Declare.
10535 * go-lang.c (go_language_defn): Use go_value_print_inner.
10536
5f56f7cb
TT
105372020-03-13 Tom Tromey <tom@tromey.com>
10538
10539 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10540 API.
10541 (rust_val_print): Rewrite.
10542 (rust_value_print_inner): New function, from rust_val_print.
10543 (rust_language_defn): Use rust_value_print_inner.
10544
26792ee0
TT
105452020-03-13 Tom Tromey <tom@tromey.com>
10546
10547 * ada-valprint.c (ada_value_print_inner): New function.
10548 * ada-lang.h (ada_value_print_inner): Declare.
10549 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10550
24051bbe
TT
105512020-03-13 Tom Tromey <tom@tromey.com>
10552
10553 * f-valprint.c (f_value_print_innner): New function.
10554 * f-lang.h (f_value_print_innner): Declare.
10555 * f-lang.c (f_language_defn): Use f_value_print_innner.
10556
c0941be6
TT
105572020-03-13 Tom Tromey <tom@tromey.com>
10558
10559 * p-valprint.c (pascal_value_print_inner): New function.
10560 * p-lang.h (pascal_value_print_inner): Declare.
10561 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10562
62c4663d
TT
105632020-03-13 Tom Tromey <tom@tromey.com>
10564
10565 * m2-valprint.c (m2_value_print_inner): New function.
10566 * m2-lang.h (m2_value_print_inner): Declare.
10567 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10568
62182190
TT
105692020-03-13 Tom Tromey <tom@tromey.com>
10570
10571 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10572 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10573 * c-valprint.c (c_value_print_inner): New function.
10574 * c-lang.h (c_value_print_inner): Declare.
10575 * c-lang.c (c_language_defn, cplus_language_defn)
10576 (asm_language_defn, minimal_language_defn): Use
10577 c_value_print_inner.
10578
1e592a8a
TT
105792020-03-13 Tom Tromey <tom@tromey.com>
10580
10581 * p-valprint.c (pascal_object_print_value_fields): Now static.
10582 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10583
7fe471e9
TT
105842020-03-13 Tom Tromey <tom@tromey.com>
10585
10586 * c-valprint.c (c_val_print_array): Simplify.
10587
d121c6ce
TT
105882020-03-13 Tom Tromey <tom@tromey.com>
10589
10590 * valprint.c (value_print_array_elements): New function.
10591 * valprint.h (value_print_array_elements): Declare.
10592
4dba70ee
TT
105932020-03-13 Tom Tromey <tom@tromey.com>
10594
10595 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10596 * mips-tdep.c (mips_print_register): Use
10597 value_print_scalar_formatted.
10598
4f9ae810
TT
105992020-03-13 Tom Tromey <tom@tromey.com>
10600
10601 * valprint.h (value_print_scalar_formatted): Declare.
10602 * valprint.c (value_print_scalar_formatted): New function.
10603
156bfec9
TT
106042020-03-13 Tom Tromey <tom@tromey.com>
10605
10606 * valprint.h (generic_value_print): Declare.
10607 * valprint.c (generic_value_print): New function.
10608
2b4e573d
TT
106092020-03-13 Tom Tromey <tom@tromey.com>
10610
10611 * valprint.c (do_val_print): Call la_value_print_inner, if
10612 available.
10613 * rust-lang.c (rust_language_defn): Update.
10614 * p-lang.c (pascal_language_defn): Update.
10615 * opencl-lang.c (opencl_language_defn): Update.
10616 * objc-lang.c (objc_language_defn): Update.
10617 * m2-lang.c (m2_language_defn): Update.
10618 * language.h (struct language_defn) <la_value_print_inner>: New
10619 member.
10620 * language.c (unknown_language_defn, auto_language_defn): Update.
10621 * go-lang.c (go_language_defn): Update.
10622 * f-lang.c (f_language_defn): Update.
10623 * d-lang.c (d_language_defn): Update.
10624 * c-lang.c (c_language_defn, cplus_language_defn)
10625 (asm_language_defn, minimal_language_defn): Update.
10626 * ada-lang.c (ada_language_defn): Update.
10627
a1f6a07c
TT
106282020-03-13 Tom Tromey <tom@tromey.com>
10629
10630 * c-valprint.c (c_value_print): Use common_val_print.
10631
410cf315
TT
106322020-03-13 Tom Tromey <tom@tromey.com>
10633
10634 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10635
72a45c93
TT
106362020-03-13 Tom Tromey <tom@tromey.com>
10637
10638 * f-valprint.c (f77_print_array_1, f_val_print): Use
10639 common_val_print.
10640
040f66bd
TT
106412020-03-13 Tom Tromey <tom@tromey.com>
10642
10643 * riscv-tdep.c (riscv_print_one_register_info): Use
10644 common_val_print.
10645
a6e05a6c
TT
106462020-03-13 Tom Tromey <tom@tromey.com>
10647
10648 * mi/mi-main.c (output_register): Use common_val_print.
10649
3444c526
TT
106502020-03-13 Tom Tromey <tom@tromey.com>
10651
10652 * infcmd.c (default_print_one_register_info): Use
10653 common_val_print.
10654
c2a44efe
TT
106552020-03-13 Tom Tromey <tom@tromey.com>
10656
10657 * valprint.h (common_val_print_checked): Declare.
10658 * valprint.c (common_val_print_checked): New function.
10659 * stack.c (print_frame_arg): Use common_val_print_checked.
10660
b0c26e99
TT
106612020-03-13 Tom Tromey <tom@tromey.com>
10662
10663 * valprint.c (do_val_print): New function, from val_print.
10664 (val_print): Use do_val_print.
10665 (common_val_print): Use do_val_print.
10666
ce3acbe9
TT
106672020-03-13 Tom Tromey <tom@tromey.com>
10668
10669 * valprint.c (value_print): Use scoped_value_mark.
10670
96c7f873
TV
106712020-03-13 Tom de Vries <tdevries@suse.de>
10672
10673 PR symtab/25646
10674 * psymtab.c (partial_symtab::partial_symtab): Don't set
10675 globals_offset and statics_offset. Push element onto
10676 current_global_psymbols and current_static_psymbols stacks.
10677 (concat): New function.
10678 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10679 element from current_global_psymbols and current_static_psymbols
10680 stacks. Concat popped elements to global_psymbols and
10681 static_symbols.
10682 (add_psymbol_to_list): Use current_global_psymbols and
10683 current_static_psymbols stacks.
10684 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10685 current_static_psymbols fields.
10686
6ba0a321
CB
106872020-03-12 Christian Biesinger <cbiesinger@google.com>
10688
10689 * corelow.c (sniff_core_bfd): Remove.
10690 (class core_target) <m_core_vec>: Remove.
10691 (core_target::core_target): Update.
10692 (core_file_fns): Remove.
10693 (deprecated_add_core_fns): Remove.
10694 (default_core_sniffer): Remove.
10695 (sniff_core_bfd): Remove.
10696 (default_check_format): Remove.
10697 (gdb_check_format): Remove.
10698 (core_target_open): Update.
10699 (core_target::get_core_register_section): Update.
10700 (get_core_registers_cb): Update.
10701 (core_target::fetch_registers): Update.
10702 * gdbcore.h (struct core_fns): Remove.
10703 (deprecated_add_core_fns): Remove.
10704 (default_core_sniffer): Remove.
10705 (default_check_format): Remove.
10706
227031b2
TT
107072020-03-12 Tom Tromey <tom@tromey.com>
10708
10709 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10710 CORE_ADDR.
10711 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10712
53807e9f
TT
107132020-03-12 Tom Tromey <tom@tromey.com>
10714
10715 * remote.c (remote_target::download_tracepoint)
10716 (remote_target::enable_tracepoint)
10717 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10718 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10719 sprintf_vma.
10720
64f25102
TT
107212020-03-12 Tom Tromey <tom@tromey.com>
10722
10723 * symfile-mem.c: Update CORE_ADDR size assert.
10724
272cd5a3
SM
107252020-03-12 Simon Marchi <simon.marchi@efficios.com>
10726
10727 * selftest.m4: Move to gdbsupport/.
10728 * acinclude.m4: Update path to selftest.m4.
10729
74cd3f9d
SM
107302020-03-12 Simon Marchi <simon.marchi@efficios.com>
10731
10732 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10733 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10734 gdbarch-selfselftests.c and selftest-arch.c.
10735 (SUBDIR_UNITTESTS_OBS): Rename to...
10736 (SELFTESTS_OBS): ... this.
10737 (COMMON_SFILES): Remove disasm-selftests.c and
10738 gdbarch-selftests.c.
10739 * configure.ac: Don't add selftest-arch.{c,o} to
10740 CONFIG_{SRCS,OBS}.
10741 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10742 preprocessor conditions.
10743
db6878ac
SM
107442020-03-12 Simon Marchi <simon.marchi@efficios.com>
10745
10746 * configure.ac: Don't source bfd/development.sh.
10747 * selftest.m4: Modify comment.
10748 * configure: Re-generate.
10749
4d696a5c
SM
107502020-03-12 Simon Marchi <simon.marchi@efficios.com>
10751
10752 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10753 not "true" or "false".
10754 * configure: Re-generate.
10755
8dd8e1c7
CB
107562020-03-12 Christian Biesinger <cbiesinger@google.com>
10757
10758 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10759 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10760 renamed to arm_nbsd_supply_gregset.
10761 (fetch_register): Update to call arm_nbsd_supply_gregset.
10762 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10763 (arm_netbsd_nat_target::fetch_registers): Update.
10764 (fetch_elfcore_registers): Removed.
10765 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10766 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10767 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10768 not require NetBSD system headers.
10769 (arm_nbsd_regset): New struct.
10770 (arm_nbsd_iterate_over_regset_sections): New function.
10771 (arm_netbsd_init_abi_common): Updated to call
10772 set_gdbarch_iterate_over_regset_sections.
10773 * arm-nbsd-tdep.h: New file.
10774
dd69bf7a
KB
107752020-03-11 Kevin Buettner <kevinb@redhat.com>
10776
10777 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10778 recursion.
10779
a0761e34
SM
107802020-03-11 Simon Marchi <simon.marchi@efficios.com>
10781
10782 * configure: Re-generate.
10783
e7a82140
TT
107842020-03-11 Tom Tromey <tromey@adacore.com>
10785
10786 * ada-typeprint.c (print_choices): Fix comment.
10787
dcc050c8
AB
107882020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10789
10790 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10791 previous item in the list, when the list has no items.
10792
1c33af77
TV
107932020-03-11 Tom de Vries <tdevries@suse.de>
10794
10795 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10796 PROP_LOCLIST handling code.
10797
8c95582d
AB
107982020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10799
10800 * buildsym-legacy.c (record_line): Pass extra parameter to
10801 record_line.
10802 * buildsym.c (buildsym_compunit::record_line): Take an extra
10803 parameter, reduce duplication in the line table, and record the
10804 is_stmt flag in the line table.
10805 * buildsym.h (buildsym_compunit::record_line): Add extra
10806 parameter.
10807 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10808 non-statement lines.
10809 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10810 this to the symtab builder.
10811 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10812 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10813 through to dwarf_record_line_1.
10814 * infrun.c (process_event_stop_test): When stepping, don't stop at
10815 a non-statement instruction, and only refresh the step info when
10816 we land in the middle of a line's range. Also add an extra
10817 comment.
10818 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10819 field.
10820 * record-btrace.c (btrace_find_line_range): Only record lines
10821 marked as is-statement.
10822 * stack.c (frame_show_address): Show the frame address if we are
10823 in a non-statement sal.
10824 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10825 (maintenance_print_one_line_table): Print a header for the is_stmt
10826 column, and include is_stmt information in the output.
10827 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10828 preference to non-statements.
10829 (find_pcs_for_symtab_line): Prefer is-statement entries.
10830 (find_line_common): Likewise.
10831 * symtab.h (struct linetable_entry): Add is_stmt field.
10832 (struct symtab_and_line): Likewise.
10833 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10834 arranging the line table.
10835
e4003a34
TV
108362020-03-07 Tom de Vries <tdevries@suse.de>
10837
10838 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10839 DIE.
10840
e8932576
TT
108412020-03-07 Tom Tromey <tom@tromey.com>
10842
10843 * valops.c (value_literal_complex): Remove obsolete comment.
10844 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10845 comment.
10846
29734269
SM
108472020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10848
10849 * infrun.h: Forward-declare thread_info.
10850 (set_step_info): Add thread_info parameter, add doc.
10851 * infrun.c (set_step_info): Add thread_info parameter, move doc
10852 to header.
10853 * infrun.c (process_event_stop_test): Pass thread to
10854 set_step_info call.
10855 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10856 set_step_info.
10857 (prepare_one_step): Add thread_info parameter, pass it to
10858 set_step_frame and prepare_one_step (recursive) call.
10859 (step_1): Pass thread to prepare_one_step call.
10860 (step_command_fsm::should_stop): Pass thread to
10861 prepare_one_step.
10862 (until_next_fsm): Pass thread to set_step_frame call.
10863 (finish_command): Pass thread to set_step_info call.
10864
b7d64b29
HD
108652020-03-06 Hannes Domani <ssbssa@yahoo.de>
10866
10867 * windows-tdep.c (windows_solib_create_inferior_hook):
10868 Check if inferior is running.
10869
09f2921c
TV
108702020-03-06 Tom de Vries <tdevries@suse.de>
10871
10872 * NEWS: Fix "the the".
10873 * ctfread.c: Same.
10874
fd760e79
TV
108752020-03-06 Tom de Vries <tdevries@suse.de>
10876
10877 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10878
20ea4a60
AB
108792020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10880
10881 * .dir-locals.el: Add a comment referencing the other copies of
10882 this file.
10883
0afbabf0
JB
108842020-03-05 John Baldwin <jhb@FreeBSD.org>
10885
10886 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10887 psargs.
10888
842806cb
TBA
108892020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10890
10891 * .gitattributes: New file.
10892
be1e3d3e
TT
108932020-03-04 Tom Tromey <tom@tromey.com>
10894
10895 * symmisc.c (print_symbol_bcache_statistics)
10896 (print_objfile_statistics): Update.
10897 * symfile.c (allocate_symtab): Use intern.
10898 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10899 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10900 macro_cache>: Remove.
10901 <string_cache>: New member.
10902 (struct objfile) <intern>: New methods.
10903 * elfread.c (elf_symtab_read): Use intern.
10904 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10905 (dwarf2_compute_name, dwarf2_physname)
10906 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10907 names.
10908 (guess_partial_die_structure_name): Update.
10909 (partial_die_info::fixup): Intern name.
10910 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10911 name.
10912 (dwarf2_name): Intern name. Update.
10913 * buildsym.c (buildsym_compunit::get_macro_table): Use
10914 string_cache.
10915
4e7625fd
TT
109162020-03-04 Tom Tromey <tom@tromey.com>
10917
10918 * jit.c (bfd_open_from_target_memory): Make "target" const.
10919 * corefile.c (gnutarget): Now const.
10920 * gdbcore.h (gnutarget): Now const.
10921
46f9f931
HD
109222020-03-04 Hannes Domani <ssbssa@yahoo.de>
10923
10924 * NEWS: Mention support for WOW64 processes.
10925 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10926 (amd64_windows_segment_register_p): Remove static.
10927 (_initialize_amd64_windows_nat): Update.
10928 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10929 * i386-windows-nat.c (context_offset): Update.
10930 (i386_mappings): Rename and remove static.
10931 (i386_windows_segment_register_p): Remove static.
10932 (_initialize_i386_windows_nat): Update.
10933 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10934 (STATUS_WX86_SINGLE_STEP): New macro.
10935 (EnumProcessModulesEx): New macro.
10936 (Wow64SuspendThread): New macro.
10937 (Wow64GetThreadContext): New macro.
10938 (Wow64SetThreadContext): New macro.
10939 (Wow64GetThreadSelectorEntry): New macro.
10940 (windows_set_context_register_offsets): Add static.
10941 (windows_set_segment_register_p): Likewise.
10942 (windows_add_thread): Adapt for WOW64 processes.
10943 (windows_fetch_one_register): Likewise.
10944 (windows_nat_target::fetch_registers): Likewise.
10945 (windows_store_one_register): Likewise.
10946 (display_selector): Likewise.
10947 (display_selectors): Likewise.
10948 (handle_exception): Likewise.
10949 (windows_continue): Likewise.
10950 (windows_nat_target::resume): Likewise.
10951 (windows_add_all_dlls): Likewise.
10952 (do_initial_windows_stuff): Likewise.
10953 (windows_nat_target::attach): Likewise.
10954 (windows_get_exec_module_filename): Likewise.
10955 (windows_nat_target::create_inferior): Likewise.
10956 (windows_xfer_siginfo): Likewise.
10957 (_initialize_loadable): Initialize Wow64SuspendThread,
10958 Wow64GetThreadContext, Wow64SetThreadContext,
10959 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10960 * windows-nat.h (windows_set_context_register_offsets):
10961 Remove declaration.
10962 (windows_set_segment_register_p): Likewise.
10963 (i386_windows_segment_register_p): Add declaration.
10964 (amd64_windows_segment_register_p): Likewise.
10965
440cf44e
LM
109662020-03-04 Luis Machado <luis.machado@linaro.org>
10967
10968 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10969 in "info registers" for AArch64/ARM.
10970
10971 The change caused "info registers" to not print GPR's.
10972
10973 gdb/ChangeLog:
10974
10975 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10976
10977 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10978 when reg->group is empty and reggroup is not.
10979
1009d92f
TT
109802020-03-03 Tom Tromey <tromey@adacore.com>
10981
10982 * dwarf2/frame.c (struct dwarf2_frame_cache)
10983 <checked_tailcall_bottom, entry_cfa_sp_offset,
10984 entry_cfa_sp_offset_p>: Remove members.
10985 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10986 (dwarf2_frame_prev_register): Don't call
10987 dwarf2_tailcall_sniffer_first.
10988 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10989 * frame-unwind.c (add_unwinder): New fuction.
10990 (frame_unwind_init): Use it. Add tailcall unwinder.
10991
5e5d66b6
AB
109922020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10993 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10994
10995 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10996 value should be printed as true.
10997
584cf46d
HD
109982020-03-03 Hannes Domani <ssbssa@yahoo.de>
10999
11000 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11001 (windows_init_abi): Set and use windows_so_ops.
11002
7b973adc
SDJ
110032020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11004
11005 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11006 when verifying if dealing with a convenience variable.
11007
bb7b70ab
LM
110082020-03-03 Luis Machado <luis.machado@linaro.org>
11009
11010 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11011
9822cb57
SM
110122020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11013
11014 * infrun.c (gdbarch_supports_displaced_stepping): New.
11015 (use_displaced_stepping): Break up conditions in smaller pieces.
11016 Use gdbarch_supports_displaced_stepping.
11017 (displaced_step_prepare_throw): Use
11018 gdbarch_supports_displaced_stepping.
11019
63e163f2
AB
110202020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11021
11022 * NEWS: Mention new behaviour of the history filename.
11023 * top.c (write_history_p): Add comment.
11024 (show_write_history_p): Add header comment, give a different
11025 message when history writing is on, but the history filename is
11026 empty.
11027 (history_filename): Add comment.
11028 (history_filename_empty): New function.
11029 (show_history_filename): Add header comment, give a different
11030 message when the filename is empty.
11031 (init_history): Compare history_filename against nullptr, and only
11032 read history if the filename is not empty.
11033 (set_history_filename): Add header comment, and only make
11034 non-empty filenames absolute.
11035 (init_main): Make the filename argument to 'set history filename'
11036 optional.
11037
81b86b97
CB
110382020-03-02 Christian Biesinger <cbiesinger@google.com>
11039
11040 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11041 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11042 (fetch_fp_register): Update.
11043 (fetch_fp_regs): Update.
11044 (store_fp_register): Update.
11045 (store_fp_regs): Update.
11046 (arm_netbsd_nat_target::read_description): New function.
11047 (fetch_elfcore_registers): Update.
11048
24ed6739
AB
110492020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11050
11051 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11052 general_thread if the stop reply is missing a thread-id.
11053 (remote_target::process_stop_reply): Use the first non-exited
11054 thread if the target didn't pass a thread-id.
11055 * infrun.c (do_target_wait): Move call to
11056 switch_to_inferior_no_thread to ....
11057 (do_target_wait_1): ... here.
11058
a84bb2a0
JT
110592020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11060
11061 * debuginfod-support.c: Include defs.h first.
11062
658dadf0
TV
110632020-02-28 Tom de Vries <tdevries@suse.de>
11064
11065 * symfile.c (set_initial_language): Use default language for lookup.
11066
4ebe4877
SM
110672020-02-28 Simon Marchi <simon.marchi@efficios.com>
11068
11069 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11070 reader variable, pass `this` to read_cutu_die_from_dwo.
11071
e5da1139
AM
110722020-02-27 Aaron Merey <amerey@redhat.com>
11073
11074 * source.c (open_source_file): Check for nullptr when computing
11075 srcpath.
11076
317f7127
TT
110772020-02-27 Tom Tromey <tromey@adacore.com>
11078
11079 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11080 member.
11081 (dwarf2_add_field): Don't update nfields.
11082 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11083
3104d9ee
AB
110842020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11085
11086 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11087 abs.
11088
b83470bf
TT
110892020-02-26 Tom Tromey <tom@tromey.com>
11090
11091 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11092 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11093 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11094 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11095 per_cu_data.
11096
edfe0a0c
TT
110972020-02-26 Tom Tromey <tom@tromey.com>
11098
11099 * dwarf2/index-write.c (psym_index_map): Change type.
11100 (add_address_entry_worker, write_one_signatured_type)
11101 (recursively_count_psymbols, recursively_write_psymbols)
11102 (class debug_names, psyms_seen_size, write_gdbindex)
11103 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11104
0d79cdc4
AM
111052020-02-26 Aaron Merey <amerey@redhat.com>
11106
11107 * Makefile.in: Handle optional debuginfod support.
11108 * NEWS: Update.
11109 * README: Add --with-debuginfod summary.
11110 * config.in: Regenerate.
11111 * configure: Regenerate.
11112 * configure.ac: Handle optional debuginfod support.
11113 * debuginfod-support.c: debuginfod helper functions.
11114 * debuginfod-support.h: Ditto.
11115 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11116 summary.
11117 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11118 when a dwz file cannot be found.
11119 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11120 debuginfo file cannot be found.
11121 * source.c (open_source_file): Query debuginfod servers when a
11122 source file cannot be found.
11123 * top.c (print_gdb_configuration): Include
11124 --{with,without}-debuginfod in the output.
11125
b65ce565
JG
111262020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11127
11128 * thread.c (thr_try_catch_cmd): Print thread name.
11129
d4c9a4f8
SM
111302020-02-26 Simon Marchi <simon.marchi@efficios.com>
11131
11132 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11133 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11134 dwarf2_fetch_die_type_sect_off): Move to...
11135 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11136 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11137 dwarf2_fetch_die_type_sect_off): ... here.
11138 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11139 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11140 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11141
0dce4280
TV
111422020-02-26 Tom de Vries <tdevries@suse.de>
11143
11144 PR gdb/25603
11145 * symfile.c (set_initial_language): Exit-early if
11146 language_mode == language_mode_manual.
11147
450a1bfc
SM
111482020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11149
11150 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11151 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11152 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11153
9e80cfa1
AB
111542020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11155
11156 * gdbtypes.c (create_array_type_with_stride): Handle negative
11157 array strides.
11158 * valarith.c (value_subscripted_rvalue): Likewise.
11159
09624f1f
LM
111602020-02-25 Luis Machado <luis.machado@linaro.org>
11161
11162 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11163
8cb5117c
SM
111642020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11165
11166 * loc.h (dwarf2_get_die_type): Move to...
11167 * read.h (dwarf2_get_die_type): ... here.
11168 * read.c (dwarf2_get_die_type): Move doc to header.
11169
c325c44e
JB
111702020-02-25 Joel Brobecker <brobecker@adacore.com>
11171
11172 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11173 'gnulib/Makefile.in' to the list.
11174
4ac93832
TT
111752020-02-24 Tom Tromey <tom@tromey.com>
11176
11177 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11178 Remove.
11179 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11180 XOBNEWVEC.
11181
197400e8
TT
111822020-02-24 Tom Tromey <tom@tromey.com>
11183
11184 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11185 New method.
11186 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11187 (dw2_do_instantiate_symtab, dw2_get_file_names)
11188 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11189
76935768
TT
111902020-02-24 Tom Tromey <tom@tromey.com>
11191
11192 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11193 make_scoped_restore.
11194 (dwarf2_psymtab::read_symtab): Don't clear
11195 reading_partial_symbols.
11196
a88ef40d
TV
111972020-02-24 Tom de Vries <tdevries@suse.de>
11198
11199 PR gdb/25592
11200 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11201
c9af6521
TV
112022020-02-24 Tom de Vries <tdevries@suse.de>
11203
11204 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11205 commands layout next/prev/regs.
11206
5707a07a
TT
112072020-02-22 Tom Tromey <tom@tromey.com>
11208
11209 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11210 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11211
3b0fb49e
TT
112122020-02-22 Tom Tromey <tom@tromey.com>
11213
11214 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11215
283be8bf
TT
112162020-02-22 Tom Tromey <tom@tromey.com>
11217
11218 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11219 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11220 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11221 * tui/tui.c (_initialize_tui): Add usage text.
11222
ca793b96
TT
112232020-02-22 Tom Tromey <tom@tromey.com>
11224
11225 * tui/tui-win.c (tui_set_focus_command)
11226 (tui_set_win_height_command): Use error_no_arg.
11227 (_initialize_tui_win): Update help text.
11228 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11229
432b5c40
TT
112302020-02-22 Tom Tromey <tom@tromey.com>
11231
11232 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11233 * tui/tui-disasm.h (struct tui_disasm_window)
11234 <display_start_addr>: Declare.
11235 * tui/tui-source.h (struct tui_source_window)
11236 <display_start_addr>: Declare.
11237 * tui/tui-winsource.h (struct tui_source_window_base)
11238 <show_source_line, display_start_addr>: New methods.
11239 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11240 Rename and move to protected section.
11241 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11242 (tui_source_window_base::do_erase_source_content): Update.
11243 (tui_source_window_base::show_source_line): Now a method.
11244 (tui_source_window_base::show_source_content)
11245 (tui_source_window_base::tui_source_window_base)
11246 (tui_source_window_base::rerender)
11247 (tui_source_window_base::refill)
11248 (tui_source_window_base::do_scroll_horizontal)
11249 (tui_source_window_base::set_is_exec_point_at)
11250 (tui_source_window_base::update_breakpoint_info)
11251 (tui_source_window_base::update_exec_info): Update.
11252 * tui/tui-source.c (tui_source_window::set_contents)
11253 (tui_source_window::showing_source_p)
11254 (tui_source_window::do_scroll_vertical)
11255 (tui_source_window::location_matches_p)
11256 (tui_source_window::line_is_displayed): Update.
11257 (tui_source_window::display_start_addr): New method.
11258 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11259 (tui_disasm_window::do_scroll_vertical)
11260 (tui_disasm_window::location_matches_p): Update.
11261 (tui_disasm_window::display_start_addr): New method.
11262
01b1af32
TT
112632020-02-22 Tom Tromey <tom@tromey.com>
11264
11265 * NEWS: Add entry for gdb.register_window_type.
11266 * tui/tui-layout.h (window_factory): New typedef.
11267 (tui_register_window): Declare.
11268 * tui/tui-layout.c (saved_tui_windows): New global.
11269 (tui_apply_current_layout): Use it.
11270 (tui_register_window): New function.
11271 * python/python.c (do_start_initialization): Call
11272 gdbpy_initialize_tui.
11273 (python_GdbMethods): Add "register_window_type" function.
11274 * python/python-internal.h (gdbpy_register_tui_window)
11275 (gdbpy_initialize_tui): Declare.
11276 * python/py-tui.c: New file.
11277 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11278
fc96d20b
TT
112792020-02-22 Tom Tromey <tom@tromey.com>
11280
11281 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11282
935c78c0
TT
112832020-02-22 Tom Tromey <tom@tromey.com>
11284
11285 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11286 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11287 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11288 (tui_set_win_focus_to): Move from tui-win.c.
11289
0240c8f1
TT
112902020-02-22 Tom Tromey <tom@tromey.com>
11291
11292 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11293 functions.
11294 (known_window_types): New global.
11295 (tui_get_window_by_name): Reimplement.
11296 (initialize_known_windows): New function.
11297 (validate_window_name): Rewrite.
11298 (_initialize_tui_layout): Call initialize_known_windows.
11299
fdb01f0c
TT
113002020-02-22 Tom Tromey <tom@tromey.com>
11301
11302 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11303 Remove constants.
11304 * tui/tui-winsource.h (struct tui_source_window_base)
11305 <tui_source_window_base>: Remove parameter.
11306 * tui/tui-winsource.c
11307 (tui_source_window_base::tui_source_window_base): Remove
11308 parameter.
11309 (tui_source_window_base::refill): Update.
11310 * tui/tui-stack.h (struct tui_locator_window)
11311 <tui_locator_window>: Update.
11312 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11313 Default the constructor.
11314 * tui/tui-regs.h (struct tui_data_item_window)
11315 <tui_data_item_window>: Default the constructor.
11316 (struct tui_data_window) <tui_data_window>: Likewise.
11317 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11318 Default the constructor.
11319 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11320 Default the constructor.
11321 <type>: Remove.
11322 (struct tui_win_info) <tui_win_info>: Default the constructor.
11323 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11324 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11325 Default the constructor.
11326
865a5aec
TT
113272020-02-22 Tom Tromey <tom@tromey.com>
11328
11329 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11330 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11331 * tui/tui-win.c (tui_resize_all): Don't call
11332 tui_delete_invisible_windows.
11333 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11334 done.
11335 (tui_set_layout): Update.
11336 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11337 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11338 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11339
e098d18c
TT
113402020-02-22 Tom Tromey <tom@tromey.com>
11341
11342 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11343 correctly.
11344
eb9c8874
TT
113452020-02-22 Tom Tromey <tom@tromey.com>
11346
11347 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11348
7eed1a8e
TT
113492020-02-22 Tom Tromey <tom@tromey.com>
11350
11351 * tui/tui-winsource.h (struct tui_source_window_iterator)
11352 <inner_iterator>: New etytypedef.
11353 <tui_source_window_iterator>: Take "end" parameter.
11354 <tui_source_window_iterator>: Take iterator.
11355 <operator*, advance>: Update.
11356 <m_iter>: Change type.
11357 <m_end>: New field.
11358 (struct tui_source_windows) <begin, end>: Update.
11359 * tui/tui-layout.c (tui_windows): New global.
11360 (tui_apply_current_layout): Clear tui_windows.
11361 (tui_layout_window::apply): Update tui_windows.
11362 * tui/tui-data.h (tui_windows): Declare.
11363 (all_tui_windows): Now inline function.
11364 (class tui_window_iterator, struct all_tui_windows): Remove.
11365
7c043ba6
TT
113662020-02-22 Tom Tromey <tom@tromey.com>
11367
11368 PR tui/17850:
11369 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11370 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11371 "height" argument.
11372 (class tui_layout_window) <get_sizes>: Likewise.
11373 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11374 argument.
11375 <get_sizes>: Add "height" argument.
11376 <m_vertical>: New field.
11377 * tui/tui-layout.c (tui_layout_split::clone): Update.
11378 (tui_layout_split::get_sizes): Add "height" argument.
11379 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11380 (tui_new_layout_command): Parse "-horizontal".
11381 (_initialize_tui_layout): Update help string.
11382 (tui_layout_split::specification): Add "-horizontal" when needed.
11383 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11384 argument.
11385 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11386 New methods.
11387
6bc56648
TT
113882020-02-22 Tom Tromey <tom@tromey.com>
11389
11390 * tui/tui-layout.h (enum tui_adjust_result): New.
11391 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11392 (class tui_layout_window) <adjust_size>: Return
11393 tui_adjust_result. Rewrite.
11394 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11395 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11396
c22fef7e
TT
113972020-02-22 Tom Tromey <tom@tromey.com>
11398
11399 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11400 parameter and return types.
11401 (class tui_layout_base) <specification>: Add "depth".
11402 (class tui_layout_window) <specification>: Add "depth".
11403 (class tui_layout_split) <specification>: Add "depth".
11404 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11405 and return types.
11406 (tui_new_layout_command): Parse sub-layouts.
11407 (_initialize_tui_layout): Update help string.
11408 (tui_layout_window::specification): Add "depth".
11409 (add_layout_command): Update.
11410
ee325b61
TT
114112020-02-22 Tom Tromey <tom@tromey.com>
11412
11413 * NEWS: Add "tui new-layout" item.
11414 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11415 Add new-layout command to help text.
11416 (validate_window_name): New function.
11417 (tui_new_layout_command): New function.
11418 (_initialize_tui_layout): Register "new-layout".
11419 (tui_layout_window::specification): New method.
11420 (tui_layout_window::specification): New method.
11421 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11422 method.
11423 (class tui_layout_window) <specification>: New method.
11424 (class tui_layout_split) <specification>: New method.
11425
416eb92d
TT
114262020-02-22 Tom Tromey <tom@tromey.com>
11427
11428 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11429 * tui/tui-win.c (window_name_completer): Update comment.
11430 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11431 Declare method.
11432 (class tui_layout_window) <replace_window>: Likewise.
11433 (class tui_layout_split) <replace_window>: Likewise.
11434 (tui_set_layout): Don't declare.
11435 (tui_set_initial_layout): Declare function.
11436 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11437 (asm_regs_layout): New globals.
11438 (tui_current_layout, show_layout): Remove.
11439 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11440 (find_layout, tui_apply_layout): New function.
11441 (layout_completer): Remove.
11442 (tui_next_layout): Reimplement.
11443 (tui_next_layout_command): New function.
11444 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11445 (tui_regs_layout): Reimplement.
11446 (tui_regs_layout_command): New function.
11447 (extract_display_start_addr): Rewrite.
11448 (next_layout, prev_layout): Remove.
11449 (tui_layout_window::replace_window): New method.
11450 (tui_layout_split::replace_window): New method.
11451 (destroy_layout): New function.
11452 (layout_list): New global.
11453 (add_layout_command): New function.
11454 (initialize_layouts): Update.
11455 (tui_layout_command): New function.
11456 (_initialize_tui_layout): Install "layout" commands.
11457 * tui/tui-data.h (enum tui_layout_type): Remove.
11458 (tui_current_layout): Don't declare.
11459
0dbc2fc7
TT
114602020-02-22 Tom Tromey <tom@tromey.com>
11461
11462 * tui/tui-regs.c (tui_reg_layout): Remove.
11463 (tui_reg_command): Use tui_regs_layout.
11464 * tui/tui-layout.h (tui_reg_command): Declare.
11465 * tui/tui-layout.c (tui_reg_command): New function.
11466
5afe342e
TT
114672020-02-22 Tom Tromey <tom@tromey.com>
11468
11469 * tui/tui.c (tui_rl_delete_other_windows): Call
11470 tui_remove_some_windows.
11471 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11472 Declare method.
11473 (class tui_layout_window) <remove_windows>: New method.
11474 (class tui_layout_split) <remove_windows>: Declare.
11475 (tui_remove_some_windows): Declare.
11476 * tui/tui-layout.c (tui_remove_some_windows): New function.
11477 (tui_layout_split::remove_windows): New method.
11478
427326a8
TT
114792020-02-22 Tom Tromey <tom@tromey.com>
11480
11481 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11482 * tui/tui-layout.h (tui_next_layout): Declare.
11483 * tui/tui-layout.c (tui_next_layout): New function.
11484
3fe12b6d
TT
114852020-02-22 Tom Tromey <tom@tromey.com>
11486
11487 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11488 correct coordinates.
11489
59b8b5d2
TT
114902020-02-22 Tom Tromey <tom@tromey.com>
11491
11492 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11493 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11494 DATA_WIN case.
11495
2a3d458b
TT
114962020-02-22 Tom Tromey <tom@tromey.com>
11497
11498 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11499 TUI_DISASM_WIN, not tui_win_list.
11500
3f0cbb04
TT
115012020-02-22 Tom Tromey <tom@tromey.com>
11502
11503 * valprint.c (generic_val_print_enum_1)
11504 (val_print_type_code_flags): Style member names.
11505 * rust-lang.c (val_print_struct, rust_print_enum)
11506 (rust_print_struct_def, rust_internal_print_type): Style member
11507 names.
11508 * p-valprint.c (pascal_object_print_value_fields): Style member
11509 names. Only call fprintf_symbol_filtered for static members.
11510 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11511 * f-valprint.c (f_val_print): Style member names.
11512 * f-typeprint.c (f_type_print_base): Style member names.
11513 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11514 call fprintf_symbol_filtered for static members.
11515 (cp_print_class_member): Style member names.
11516 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11517 member names.
11518 * ada-valprint.c (ada_print_scalar): Style enum names.
11519 (ada_val_print_enum): Likewise.
11520 * ada-typeprint.c (print_enum_type): Style enum names.
11521
d4d947ae
TT
115222020-02-21 Tom Tromey <tom@tromey.com>
11523
11524 * psympriv.h (struct partial_symtab): Update comment.
11525
e94e944b
TT
115262020-02-21 Tom Tromey <tromey@adacore.com>
11527
11528 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11529 type is CORE_ADDR.
11530
1eb73179
TV
115312020-02-21 Tom de Vries <tdevries@suse.de>
11532
11533 PR gdb/25534
11534 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11535 if dependencies[i]->user != NULL.
11536
4f180d53
AT
115372020-02-21 Ali Tamur <tamur@google.com>
11538
11539 * dwarf2/read.c (dwarf2_name): Add null check.
11540
22b6cd70
TT
115412020-02-20 Tom Tromey <tom@tromey.com>
11542
11543 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11544 ">=", in binary search.
11545 (dwarf2_find_containing_comp_unit): New overload.
11546 (run_test): New self-test.
11547 (_initialize_dwarf2_read): Register new test.
11548
bd0cf5a6
NC
115492020-02-20 Nelson Chu <nelson.chu@sifive.com>
11550
11551 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11552 * riscv-tdep.h: Likewise.
11553 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11554 rv32-only CSR.
11555 * features/riscv/64bit-csr.xml: Regenerated.
11556
3f702acd
SDJ
115572020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11558 Tom Tromey <tom@tromey.com>
11559
11560 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11561 of 'fputc_unfiltered'.
11562 (putchar_unfiltered): Call 'fputc_unfiltered'.
11563 (fputc_unfiltered): Call 'fputs_unfiltered'.
11564
d13c7322
AB
115652020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11566
11567 * config.in: Regenerate.
11568 * configure: Regenerate.
11569 * configure.ac: Add --with-python-libdir option.
11570 * main.c: Use WITH_PYTHON_LIBDIR.
11571
869d8950
TT
115722020-02-19 Tom Tromey <tom@tromey.com>
11573
11574 * symtab.c (general_symbol_info::compute_and_set_names): Use
11575 obstack_strndup. Simplify call to symbol_set_demangled_name.
11576
298e9637
SM
115772020-02-19 Simon Marchi <simon.marchi@efficios.com>
11578
11579 * dwarf2/read.c (allocate_signatured_type_table,
11580 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11581 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11582 Remove objfile parameter, update all callers.
11583
08410482
DE
115842020-02-19 Doug Evans <dje@google.com>
11585
11586 PR rust/25535
11587 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11588 rust_enum_variant calculation.
11589
dfdeeca1
TT
115902020-02-19 Tom Tromey <tromey@adacore.com>
11591
11592 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11593
2ef5453b
TT
115942020-02-19 Tom Tromey <tromey@adacore.com>
11595
11596 * ada-lang.c (cache_symbol): Use obstack_strdup.
11597
9f1528a1
AB
115982020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11599
11600 * configure: Regenerate.
11601
d3c22fa8
TT
116022020-02-19 Tom Tromey <tromey@adacore.com>
11603
11604 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11605 NULL check.
11606
bf84f706
MR
116072020-02-19 Maciej W. Rozycki <macro@wdc.com>
11608
11609 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11610
d1c9b20f
AB
116112020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11612
11613 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11614 if GDBSERVER is not defined.
11615 (riscv_tdesc_cache): Likewise, also store const target_desc.
11616 (STATIC_IN_GDB): Define.
11617 (riscv_create_target_description): Update declaration with
11618 STATIC_IN_GDB.
11619 (riscv_lookup_target_description): New function, only define if
11620 GDBSERVER is not defined.
11621 * arch/riscv.h (riscv_create_target_description): Declare only
11622 when GDBSERVER is defined.
11623 (riscv_lookup_target_description): New declaration when GDBSERVER
11624 is not defined.
11625 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11626 (riscv_linux_read_features): ...this, and return
11627 riscv_gdbarch_features instead of target_desc.
11628 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11629 (riscv_linux_read_description): Rename to...
11630 (riscv_linux_read_features): ...this.
11631 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11632 Update to use riscv_gdbarch_features and
11633 riscv_lookup_target_description.
11634 * riscv-tdep.c (riscv_find_default_target_description): Use
11635 riscv_lookup_target_description instead of
11636 riscv_create_target_description.
11637
373d7ac0
SM
116382020-02-18 Simon Marchi <simon.marchi@efficios.com>
11639
11640 * valprint.c (generic_val_print_enum_1): When printing a flag
11641 enum with value 0 and there is no enumerator with value 0, print
11642 just "0" instead of "(unknown: 0x0)".
11643
b29a2df0
SM
116442020-02-18 Simon Marchi <simon.marchi@efficios.com>
11645
11646 * valprint.c (generic_val_print_enum_1): Print unknown part of
11647 flag enum in hex.
11648
6740f0cc
SM
116492020-02-18 Simon Marchi <simon.marchi@efficios.com>
11650
11651 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11652 flag enums to contain duplicate enumerators.
11653 * valprint.c (generic_val_print_enum_1): Update comment.
11654
edd45eb0
SM
116552020-02-18 Simon Marchi <simon.marchi@efficios.com>
11656
11657 * dwarf2/read.c: Include "count-one-bits.h".
11658 (update_enumeration_type_from_children): If an enumerator has
11659 multiple bits set, don't treat the enumeration as a "flag enum".
11660 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11661 of flag enums have 0 or 1 bit set.
11662
6d0cf446
BE
116632020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11664
11665 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11666 conversion.
11667 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11668 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11669 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11670 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11671 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11672
7001c1b7
SM
116732020-02-18 Simon Marchi <simon.marchi@efficios.com>
11674
11675 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11676
fdb61c6c
SM
116772020-02-14 Simon Marchi <simon.marchi@efficios.com>
11678
11679 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11680 displaced_step_closure_up.
11681 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11682 (struct displaced_step_closure_up):
11683 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11684 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11685 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11686 Likewise.
11687 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11688 * gdbarch.c, gdbarch.h: Re-generate.
11689 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11690 displaced_step_closure_up.
11691 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11692 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11693 * infrun.h (displaced_step_closure_up): New type alias.
11694 (struct displaced_step_inferior_state) <step_closure>: Change
11695 type to displaced_step_closure_up.
11696 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11697 displaced_step_closure_up.
11698 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11699
a4a38eb4
TT
117002020-02-14 Tom Tromey <tom@tromey.com>
11701
11702 * minidebug.c (gnu_debug_key): New global.
11703 (find_separate_debug_file_in_section): Use it.
11704
e8217e61
SM
117052020-02-14 Simon Marchi <simon.marchi@efficios.com>
11706
11707 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11708 std::unique_ptr.
11709 * gdbarch.c: Re-generate.
11710 * gdbarch.h: Re-generate.
11711 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11712 change.
11713 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11714 type to std::unique_ptr.
11715 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11716 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11717 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11718 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11719 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11720 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11721 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11722 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11723 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11724
d8d83535
SM
117252020-02-14 Simon Marchi <simon.marchi@efficios.com>
11726
11727 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11728 std::unique_ptr.
11729 (displaced_step_clear): Rename to...
11730 (displaced_step_reset): ... this. Just call displaced->reset ().
11731 (displaced_step_clear_cleanup): Rename to...
11732 (displaced_step_reset_cleanup): ... this.
11733 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11734 (displaced_step_fixup): Likewise.
11735 (resume_1): Likewise.
11736 (handle_inferior_event): Restore child's memory before calling
11737 displaced_step_fixup on the parent.
11738 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11739 to std::unique_ptr.
11740 <step_closure>: Change type to std::unique_ptr.
11741
5f661e03
SM
117422020-02-14 Simon Marchi <simon.marchi@efficios.com>
11743
11744 * arm-tdep.c: Include count-one-bits.h.
11745 (cleanup_block_store_pc): Use count_one_bits.
11746 (cleanup_block_load_pc): Use count_one_bits.
11747 (arm_copy_block_xfer): Use count_one_bits.
11748 (thumb2_copy_block_xfer): Use count_one_bits.
11749 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11750 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11751 (thumb_get_next_pcs_raw): Use count_one_bits.
11752 (arm_get_next_pcs_raw): Use count_one_bits_l.
11753 * arch/arm.c (bitcount): Remove.
11754 * arch/arm.h (bitcount): Remove.
11755
8084e579
TT
117562020-02-14 Tom Tromey <tromey@adacore.com>
11757
11758 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11759 Update.
11760 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11761 * dwarf2/loc.c (call_site_find_chain_1): Return
11762 unique_xmalloc_ptr.
11763 (call_site_find_chain): Likewise.
11764
258bf0ee
RB
117652020-02-14 Richard Biener <rguenther@suse.de>
11766
11767 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11768 on expression with division operators.
11769
f98a8458
AKS
117702020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11771
11772 * MAINTAINERS (Write After Approval): Adding myself.
11773
d1437c0e
TT
117742020-02-12 Tom Tromey <tom@tromey.com>
11775
11776 * event-loop.c (event_data, gdb_event, event_handler_func):
11777 Remove.
11778
3d4560f7
TT
117792020-02-12 Tom Tromey <tom@tromey.com>
11780
11781 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11782 (dwarf2_frame_objfile_data): Add comment.
11783 (find_comp_unit, set_comp_unit): New functions.
11784 (dwarf2_frame_find_fde): Use find_comp_unit.
11785 (dwarf2_build_frame_info): Use set_comp_unit.
11786
21982304
TT
117872020-02-12 Tom Tromey <tom@tromey.com>
11788
11789 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11790 (comp_unit): Don't initialize objfile.
11791 (execute_cfa_program): Add text_offset parameter.
11792 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11793 (dwarf2_frame_cache): Update.
11794 (dwarf2_build_frame_info): Don't set "objfile" member.
11795
4debb237
TT
117962020-02-12 Tom Tromey <tom@tromey.com>
11797
11798 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11799 (decode_frame_entry): Likewise.
11800 (dwarf2_build_frame_info): Update.
11801
0d404d44
TT
118022020-02-12 Tom Tromey <tom@tromey.com>
11803
11804 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11805 (decode_frame_entry_1): Use the comp_unit obstack.
11806
a7a3ae5c
TT
118072020-02-12 Tom Tromey <tom@tromey.com>
11808
11809 * dwarf2/frame.c (struct comp_unit): Add initializers and
11810 constructor.
11811 (dwarf2_frame_objfile_data): Store a comp_unit.
11812 (dwarf2_frame_find_fde): Update.
11813 (dwarf2_build_frame_info): Use "new".
11814
a9d65418
TT
118152020-02-12 Tom Tromey <tom@tromey.com>
11816
11817 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11818 (dwarf2_fde_table): Typedef for std::vector.
11819 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11820 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11821 (decode_frame_entry): Update.
11822 (dwarf2_build_frame_info): Use "new".
11823
7559c217
CB
118242020-02-12 Christian Biesinger <cbiesinger@google.com>
11825
11826 * arm-tdep.c (arm_gdbarch_init): Update.
11827 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11828 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11829 have_neon, is_m>: Change to bool.
11830
aeefc73c
CB
118312020-02-12 Christian Biesinger <cbiesinger@google.com>
11832
11833 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11834
d27b8e5f
TT
118352020-02-12 Tom Tromey <tom@tromey.com>
11836
11837 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11838
cd5900f3
HD
118392020-02-12 Hannes Domani <ssbssa@yahoo.de>
11840
11841 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11842 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11843
f056b22b
TT
118442020-02-11 Tom Tromey <tom@tromey.com>
11845
11846 * psymtab.h: Update comment.
11847
f92ff6b5
TT
118482020-02-11 Tom Tromey <tom@tromey.com>
11849
11850 * gdb_obstack.h (struct auto_obstack): Use
11851 DISABLE_COPY_AND_ASSIGN.
11852
3fd6912b
TT
118532020-02-11 Tom Tromey <tom@tromey.com>
11854
11855 * dwarf2/frame.h (struct objfile): Don't forward declare.
11856
69ed9b74
CB
118572020-02-11 Christian Biesinger <cbiesinger@google.com>
11858
11859 * cris-tdep.c (cris_supply_gregset): Change signature to match
11860 what struct regset expects.
11861 (cris_regset): New struct.
11862 (fetch_core_registers): Remove.
11863 (cris_iterate_over_regset_sections): New function.
11864 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11865 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11866
bda874f6
CB
118672020-02-11 Christian Biesinger <cbiesinger@google.com>
11868
11869 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11870 registers.
11871
754e1564
CB
118722020-02-11 Christian Biesinger <cbiesinger@google.com>
11873
11874 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11875
8ddd8e0e
SM
118762020-02-11 Simon Marchi <simon.marchi@efficios.com>
11877
11878 * configure: Re-generate.
11879
898e7f60
SM
118802020-02-11 Simon Marchi <simon.marchi@efficios.com>
11881
11882 * configure: Re-generate.
11883
58df732b
SM
118842020-02-11 Simon Marchi <simon.marchi@efficios.com>
11885
11886 * acinclude: Update warning.m4 path.
11887 * warning.m4: Move to gdbsupport.
11888
da5bd37e
TT
118892020-02-11 Tom Tromey <tromey@adacore.com>
11890
11891 * remote.c (remote_console_output): Update.
11892 * printcmd.c (printf_command): Update.
11893 * event-loop.c (gdb_wait_for_event): Update.
11894 * linux-nat.c (sigchld_handler): Update.
11895 * remote-sim.c (gdb_os_write_stdout): Update.
11896 (gdb_os_flush_stdout): Update.
11897 (gdb_os_flush_stderr): Update.
11898 (gdb_os_write_stderr): Update.
11899 * exceptions.c (print_exception): Update.
11900 * remote-fileio.c (remote_fileio_func_read): Update.
11901 (remote_fileio_func_write): Update.
11902 * tui/tui.c (tui_enable): Update.
11903 * tui/tui-interp.c (tui_interp::init): Update.
11904 * utils.c (init_page_info): Update.
11905 (putchar_unfiltered, fputc_unfiltered): Update.
11906 (gdb_flush): Update.
11907 (emit_style_escape): Update.
11908 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11909 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11910 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11911 (stderr_file::write): Update.
11912 (stderr_file::puts): Update.
11913 * ui-file.h (ui_file_isatty, ui_file_write)
11914 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11915 (ui_file_puts): Don't declare.
11916
85f0dd3c
TV
119172020-02-10 Tom de Vries <tdevries@suse.de>
11918
11919 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11920 sentinel to char *.
11921
2e927613
TV
119222020-02-09 Tom de Vries <tdevries@suse.de>
11923
11924 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11925 filename if it matches "<artificial>".
11926
6bafc845
HD
119272020-02-09 Hannes Domani <ssbssa@yahoo.de>
11928
11929 * windows-tdep.c (struct enum_value_name): New struct.
11930 (create_enum): New function.
11931 (windows_get_siginfo_type): Create and use enum types.
11932
7928d571
HD
119332020-02-09 Hannes Domani <ssbssa@yahoo.de>
11934
11935 * NEWS: Mention $_siginfo support for Windows.
11936 * windows-nat.c (handle_exception): Set siginfo_er.
11937 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11938 (windows_xfer_siginfo): New function.
11939 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11940 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11941 (init_windows_gdbarch_data): New function.
11942 (get_windows_gdbarch_data): New function.
11943 (windows_get_siginfo_type): New function.
11944 (windows_init_abi): Register windows_get_siginfo_type.
11945 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11946
6751ebae
TT
119472020-02-08 Tom Tromey <tom@tromey.com>
11948
11949 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11950 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11951 <keep>: Declare method.
11952 <m_keep>: Remove member.
11953 <~cutu_reader>: Remove.
11954 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11955 (cutu_reader::cutu_reader): Update.
11956 (cutu_reader::keep): Rename from ~cutu_reader.
11957 (process_psymtab_comp_unit, build_type_psymtabs_1)
11958 (process_skeletonless_type_unit, load_partial_comp_unit)
11959 (load_full_comp_unit, dwarf2_read_addr_index)
11960 (read_signatured_type): Update.
11961
135f5437
TT
119622020-02-08 Tom Tromey <tom@tromey.com>
11963
11964 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11965 "want_partial_unit" parameter.
11966 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11967 Inline check for DW_TAG_partial_unit.
11968 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11969
9f66ff1c
TT
119702020-02-08 Tom Tromey <tom@tromey.com>
11971
11972 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11973 read.c.
11974 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11975 read.c.
11976
c8a7a66f
TT
119772020-02-08 Tom Tromey <tom@tromey.com>
11978
11979 * dwarf2/read.c (read_address): Move to comp-unit.c.
11980 (dwarf2_rnglists_process, dwarf2_ranges_process)
11981 (read_attribute_value, dwarf_decode_lines_1)
11982 (var_decode_location, decode_locdesc): Update.
11983 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11984 read.c. Remove "cu" parameter.
11985 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11986 method.
11987
8266302d
TT
119882020-02-08 Tom Tromey <tom@tromey.com>
11989
11990 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11991 (read_indirect_line_string): Update.
11992 * dwarf2/comp-unit.c (read_offset): Remove.
11993 (read_comp_unit_head): Update.
11994 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11995 method.
11996 (read_offset): Don't declare.
11997
4057dfde
TT
119982020-02-08 Tom Tromey <tom@tromey.com>
11999
12000 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12001 * dwarf2/read.c (struct comp_unit_head): Move to
12002 dwarf2/comp-unit.h.
12003 (enum class rcuh_kind): Move to comp-unit.h.
12004 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12005 (read_comp_unit_head, error_check_comp_unit_head)
12006 (read_and_check_comp_unit_head): Move to comp-unit.c.
12007 (read_offset, dwarf_unit_type_name): Likewise.
12008 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12009 (cutu_reader::cutu_reader, read_call_site_scope)
12010 (find_partial_die, follow_die_offset): Update.
12011 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12012
24aa364d
TT
120132020-02-08 Tom Tromey <tom@tromey.com>
12014
12015 * dwarf2/read.c (read_offset_1): Move to leb.c.
12016 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12017 (dwarf_decode_macro_bytes): Update.
12018 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12019 * dwarf2/leb.h (read_offset): Declare.
12020
2c7d5afc
TT
120212020-02-08 Tom Tromey <tom@tromey.com>
12022
12023 * dwarf2/read.c (dwarf2_section_size): Remove.
12024 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12025 Update.
12026 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12027
4075cb26
TT
120282020-02-08 Tom Tromey <tom@tromey.com>
12029
12030 * dwarf2/read.c (read_initial_length): Move to leb.c.
12031 * dwarf2/leb.h (read_initial_length): Declare.
12032 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12033 handle_nonstd parameter.
12034 * dwarf2/frame.c (read_initial_length): Remove.
12035 (decode_frame_entry_1): Update.
12036
09ba997f
TT
120372020-02-08 Tom Tromey <tom@tromey.com>
12038
12039 * dwarf2/loc.c (dwarf2_find_location_expression)
12040 (dwarf_evaluate_loc_desc::get_tls_address)
12041 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12042 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12043 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12044 (dwarf2_compile_property_to_c)
12045 (dwarf2_loc_desc_get_symbol_read_needs)
12046 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12047 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12048 (loclist_describe_location, loclist_tracepoint_var_ref)
12049 (loclist_generate_c_location): Update.
12050 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12051 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12052 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12053 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12054 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12055 (dwarf2_per_cu_data::addr_size)
12056 (dwarf2_per_cu_data::ref_addr_size)
12057 (dwarf2_per_cu_data::text_offset)
12058 (dwarf2_per_cu_data::addr_type): Now methods.
12059 (per_cu_header_read_in): Make per_cu "const".
12060 (dwarf2_version): Remove.
12061 (dwarf2_per_cu_data::int_type): Now a method.
12062 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12063 (set_die_type, read_array_type, read_subrange_index_type)
12064 (read_tag_string_type, read_subrange_type): Update.
12065 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12066 offset_size, ref_addr_size, text_offset, addr_type, version,
12067 objfile, int_type, addr_sized_int_type>: Declare methods.
12068
96c738c0
TT
120692020-02-08 Tom Tromey <tom@tromey.com>
12070
12071 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12072 Move earlier.
12073
8fdd972c
TT
120742020-02-08 Tom Tromey <tom@tromey.com>
12075
12076 * dwarf2/read.h (dwarf_line_debug): Declare.
12077 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12078 * dwarf2/read.c: Move line_header code to new files.
12079 (dwarf_line_debug): No longer static.
12080 * dwarf2/line-header.c: New file.
12081 * dwarf2/line-header.h: New file.
12082
03075812
TT
120832020-02-08 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2/read.c (struct line_header) <file_full_name,
12086 file_file_name>: Return unique_xmalloc_ptr.
12087 (line_header::file_file_name): Update.
12088 (line_header::file_full_name): Update.
12089 (dw2_get_file_names_reader): Update.
12090 (macro_start_file): Update.
12091
bb822404
TT
120922020-02-08 Tom Tromey <tom@tromey.com>
12093
12094 * dwarf2/read.c (struct line_header) <file_full_name,
12095 file_file_name>: Declare methods.
12096 (dw2_get_file_names_reader): Update.
12097 (file_file_name): Now a method.
12098 (file_full_name): Likewise.
12099 (macro_start_file): Update.
12100
009b64fc
TT
121012020-02-08 Tom Tromey <tom@tromey.com>
12102
12103 * dwarf2/read.c (dwarf_always_disassemble)
12104 (show_dwarf_always_disassemble): Move to loc.c.
12105 (_initialize_dwarf2_read): Move "always-disassemble" registration
12106 to loc.c.
12107 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12108 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12109 static.
12110 (show_dwarf_always_disassemble): Move from read.c.
12111 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12112
5895093f
TT
121132020-02-08 Tom Tromey <tom@tromey.com>
12114
12115 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12116 (create_quick_file_names_table): Return htab_up.
12117 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12118 Update.
12119 * dwarf2/read.h (struct dwarf2_per_objfile)
12120 <quick_file_names_table>: Now htab_up.
12121
b3b32279
TT
121222020-02-08 Tom Tromey <tom@tromey.com>
12123
12124 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12125
1d33d811
TT
121262020-02-08 Tom Tromey <tom@tromey.com>
12127
12128 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12129 Rewrite.
12130 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12131 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12132 (abbrev_table::abbrev_table): No longer inline.
12133 (ABBREV_HASH_SIZE): Remove.
12134 (abbrev_table::m_abbrevs): Now an htab_up.
12135
86de1d91
TT
121362020-02-08 Tom Tromey <tom@tromey.com>
12137
12138 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12139 (cutu_reader): Update.
12140 (build_type_psymtabs_1): Update.
12141 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12142 (abbrev_table::alloc_abbrev): Update.
12143 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12144 (abbrev_table::read): New static method, renamed from
12145 abbrev_table_read_table.
12146 (abbrev_table::alloc_abbrev)
12147 (abbrev_table::add_abbrev): Now private.
12148 (abbrev_table::abbrev_table): Now private.
12149 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12150
0335378b
TT
121512020-02-08 Tom Tromey <tom@tromey.com>
12152
12153 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12154 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12155 htab_up.
12156
48b490f2
TT
121572020-02-08 Tom Tromey <tom@tromey.com>
12158
12159 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12160 htab_up.
12161 (lookup_dwo_unit_in_dwp): Update.
12162 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12163 on obstack.
12164
bc68fb19
TT
121652020-02-08 Tom Tromey <tom@tromey.com>
12166
12167 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12168 obstack.
12169
d15acc42
TT
121702020-02-08 Tom Tromey <tom@tromey.com>
12171
12172 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12173 line_header_hash.
12174 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12175 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12176 Change type to htab_up.
12177
eaa5fa8b
TT
121782020-02-08 Tom Tromey <tom@tromey.com>
12179
12180 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12181 htab_up. Don't allocate on obstack.
12182 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12183 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12184 Change type to htab_up.
12185
b0b6a987
TT
121862020-02-08 Tom Tromey <tom@tromey.com>
12187
12188 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12189 Change type to htab_up.
12190 * dwarf2/read.c (create_signatured_type_table_from_index)
12191 (create_signatured_type_table_from_debug_names)
12192 (create_all_type_units, add_type_unit)
12193 (lookup_dwo_signatured_type, lookup_signatured_type)
12194 (process_skeletonless_type_unit): Update.
12195 (create_debug_type_hash_table, create_debug_types_hash_table):
12196 Change type of types_htab.
12197 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12198 htab_up. Don't allocate on obstack.
12199 (create_cus_hash_table): Change type of cus_htab parameter.
12200 (struct dwo_file) <cus, tus>: Now htab_up.
12201 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12202 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12203 (queue_and_load_all_dwo_tus): Update.
12204 * dwarf2/index-write.c (write_gdbindex): Update.
12205 (write_debug_names): Update.
12206
39856def
TT
122072020-02-08 Tom Tromey <tom@tromey.com>
12208
12209 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12210 dwarf2/read.c. Remove "next" member. Add constructor ntad
12211 destructor.
12212 (struct dwarf2_per_objfile) <queue>: New member.
12213 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12214 dwarf2/read.h.
12215 (dwarf2_queue, dwarf2_queue_tail): Remove.
12216 (class dwarf2_queue_guard): Add parameter to constructor. Use
12217 DISABLE_COPY_AND_ASSIGN.
12218 <m_per_objfile>: New member.
12219 <~dwarf2_queue_guard>: Rewrite.
12220 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12221 Update.
12222 (~dwarf2_queue_item): New.
12223
3e225074
TT
122242020-02-08 Tom Tromey <tom@tromey.com>
12225
12226 * dwarf2/read.c (struct die_info) <has_children>: New member.
12227 (dw2_get_file_names_reader): Remove has_children.
12228 (dw2_get_file_names): Update.
12229 (read_cutu_die_from_dwo): Remove has_children.
12230 (cutu_reader::init_tu_and_read_dwo_dies)
12231 (cutu_reader::cutu_reader): Update.
12232 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12233 Remove has_children.
12234 (build_type_psymtabs_1, process_skeletonless_type_unit)
12235 (load_partial_comp_unit, load_full_comp_unit): Update.
12236 (create_dwo_cu_reader): Remove has_children.
12237 (create_cus_hash_table, read_die_and_children): Update.
12238 (read_full_die_1,read_full_die): Remove has_children.
12239 (read_signatured_type): Update.
12240 (class cutu_reader) <has_children>: Remove.
12241
82ca8957
TT
122422020-02-08 Tom Tromey <tom@tromey.com>
12243
12244 * dwarf2/expr.c: Rename from dwarf2expr.c.
12245 * dwarf2/expr.h: Rename from dwarf2expr.h.
12246 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12247 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12248 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12249 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12250 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12251 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12252 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12253 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12254 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12255 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12256 * dwarf2/loc.c: Rename from dwarf2loc.c.
12257 * dwarf2/loc.h: Rename from dwarf2loc.h.
12258 * dwarf2/read.c: Rename from dwarf2read.c.
12259 * dwarf2/read.h: Rename from dwarf2read.h.
12260 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12261 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12262 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12263 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12264 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12265 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12266 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12267 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12268 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12269 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12270 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12271 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12272 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12273 Update.
12274 * Makefile.in (COMMON_SFILES): Update.
12275 (HFILES_NO_SRCDIR): Update.
12276
9e35d499
TT
122772020-02-08 Tom Tromey <tom@tromey.com>
12278
12279 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12280 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12281
1eba2311
TT
122822020-02-08 Tom Tromey <tom@tromey.com>
12283
12284 * dwarf2read.h (struct die_info): Don't declare.
12285
e41c2da2
TT
122862020-02-08 Tom Tromey <tom@tromey.com>
12287
12288 * dwarf2read.h (die_info_ptr): Remove typedef.
12289
4fc6c0d5
TT
122902020-02-08 Tom Tromey <tom@tromey.com>
12291
12292 * dwarf2read.c (read_call_site_scope)
12293 (handle_data_member_location, dwarf2_add_member_fn)
12294 (mark_common_block_symbol_computed, read_common_block)
12295 (attr_to_dynamic_prop, partial_die_info::read)
12296 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12297 (dwarf2_symbol_mark_computed, set_die_type): Update.
12298 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12299 method.
12300 (attr_form_is_block): Don't declare.
12301 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12302
cd6c91b4
TT
123032020-02-08 Tom Tromey <tom@tromey.com>
12304
12305 * dwarf2read.c (dwarf2_find_base_address, )
12306 (read_call_site_scope, rust_containing_type)
12307 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12308 (handle_data_member_location, dwarf2_add_member_fn)
12309 (get_alignment, read_structure_type, process_structure_scope)
12310 (mark_common_block_symbol_computed, read_common_block)
12311 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12312 (partial_die_info::read, read_attribute_value, new_symbol)
12313 (lookup_die_type, dwarf2_get_ref_die_offset)
12314 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12315 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12316 (dwarf2_symbol_mark_computed): Update.
12317 * dwarf2/attribute.h (struct attribute) <value_as_address,
12318 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12319 methods.
12320 (value_as_address, attr_form_is_section_offset)
12321 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12322 * dwarf2/attribute.c (attribute::value_as_address)
12323 (attribute::form_is_section_offset, attribute::form_is_constant)
12324 (attribute::form_is_ref): Now methods.
12325
162dce55
TT
123262020-02-08 Tom Tromey <tom@tromey.com>
12327
12328 * dwarf2read.c (struct attribute, DW_STRING)
12329 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12330 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12331 (attr_form_is_block, attr_form_is_section_offset)
12332 (attr_form_is_constant, attr_form_is_ref): Move.
12333 * dwarf2/attribute.h: New file.
12334 * dwarf2/attribute.c: New file, from dwarf2read.c.
12335 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12336
3054dd54
TT
123372020-02-08 Tom Tromey <tom@tromey.com>
12338
12339 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12340 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12341 Move.
12342 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12343 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12344 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12345 abbrev.c.
12346 * dwarf2/abbrev.h: New file.
12347 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12348 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12349
96b79293
TT
123502020-02-08 Tom Tromey <tom@tromey.com>
12351
12352 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12353 (dwarf2_section_size, dwarf2_get_section_info)
12354 (create_signatured_type_table_from_debug_names)
12355 (create_addrmap_from_aranges, read_debug_names_from_section)
12356 (get_gdb_index_contents_from_section, read_comp_unit_head)
12357 (error_check_comp_unit_head, read_abbrev_offset)
12358 (create_debug_type_hash_table, init_cu_die_reader)
12359 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12360 (read_comp_units_from_section, create_cus_hash_table)
12361 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12362 (create_dwp_v2_section, dwarf2_rnglists_process)
12363 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12364 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12365 (read_indirect_string_from_dwz, read_addr_index_1)
12366 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12367 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12368 (fill_in_loclist_baton): Update.
12369 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12370 get_containing_section, get_bfd_owner, get_bfd_section,
12371 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12372 (dwarf2_read_section, get_section_name, get_section_file_name)
12373 (get_containing_section, get_section_bfd_owner)
12374 (get_section_bfd_section, get_section_name, get_section_file_name)
12375 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12376 declare.
12377 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12378 (dwarf2_section_info::get_bfd_owner)
12379 (dwarf2_section_info::get_bfd_section)
12380 (dwarf2_section_info::get_name)
12381 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12382 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12383 (dwarf2_section_info::read): Now methods.
12384 * dwarf-index-write.c (class debug_names): Update.
12385
2c86cff9
TT
123862020-02-08 Tom Tromey <tom@tromey.com>
12387
12388 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12389 Move to dwarf2/section.h.
12390 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12391 (get_section_bfd_section, get_section_name)
12392 (get_section_file_name, get_section_id, get_section_flags)
12393 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12394 dwarf2/section.c.
12395 * dwarf2/section.h: New file.
12396 * dwarf2/section.c: New file, from dwarf2read.c.
12397 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12398
f4382c45
TT
123992020-02-08 Tom Tromey <tom@tromey.com>
12400
12401 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12402 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12403 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12404 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12405 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12406 * dwarf2/leb.h: New file, from dwarf2read.c.
12407 * dwarf2/leb.c: New file, from dwarf2read.c.
12408 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12409 Remove.
12410 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12411 (COMMON_SFILES): Add dwarf2/leb.c.
12412
01840b7a
JB
124132020-02-08 Joel Brobecker <brobecker@adacore.com>
12414
12415 GDB 9.1 released.
12416
dfcb27e4
IB
124172020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12418
12419 PR gdb/25190:
aac66a4c
SM
12420 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12421 * gdb/remote.c (remote_console_output): Update.
12422 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12423 (ui_file_puts): ...this.
12424 * gdb/ui-file.h (ui_file_puts): Add declaration.
12425 * gdb/utils.c (emit_style_escape): Update.
12426 (flush_wrap_buffer): Update.
12427 (fputs_maybe_filtered): Update.
12428 (fputs_unfiltered): Add function.
dfcb27e4 12429
faa17681
IB
124302020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12431
aac66a4c
SM
12432 * gdb/event-loop.c (gdb_wait_for_event): Update.
12433 * gdb/printcmd.c (printf_command): Update.
12434 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12435 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12436 (gdb_os_flush_stderr): Update.
12437 * gdb/remote.c (remote_console_output): Update.
12438 * gdb/ui-file.c (gdb_flush): Rename to...
12439 (ui_file_flush): ...this.
12440 (stderr_file::write): Update.
12441 (stderr_file::puts): Update.
12442 * gdb/ui-file.h (gdb_flush): Rename to...
12443 (ui_file_flush): ...this.
12444 * gdb/utils.c (gdb_flush): Add function.
12445 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12446
5abbbe1d
TT
124472020-02-07 Tom Tromey <tromey@adacore.com>
12448
12449 PR breakpoints/24915:
12450 * source.c (find_and_open_source): Do not check basenames_may_differ.
12451
919adfe8
TT
124522020-02-07 Tom Tromey <tom@tromey.com>
12453
12454 * README: Update gdbserver documentation.
12455 * gdbserver: Move to top level.
12456 * configure.tgt (build_gdbserver): Remove.
12457 * configure.ac: Remove --enable-gdbserver.
12458 * configure: Rebuild.
12459 * Makefile.in (distclean): Don't mention gdbserver.
12460
1d5d29e7
SV
124612020-02-06 Shahab Vahedi <shahab@synopsys.com>
12462
12463 * source-cache.c (source_cache::ensure): Surround
12464 get_plain_source_lines with a try/catch.
12465 (source_cache::get_line_charpos): Get rid of try/catch
12466 and only check for the return value of "ensure".
12467 * tui/tui-source.c (tui_source_window::set_contents):
12468 Simplify "nlines" calculation.
12469
6eb1129c
SV
124702020-02-06 Shahab Vahedi <shahab@synopsys.com>
12471
12472 * MAINTAINERS (Write After Approval): Add myself.
12473
c6a42d11
CB
124742020-02-05 Christian Biesinger <cbiesinger@google.com>
12475
12476 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12477 function call.
12478
c8ecdda6
CB
124792020-02-05 Christian Biesinger <cbiesinger@google.com>
12480
12481 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12482
f6480e70
MR
124832020-02-05 Maciej W. Rozycki <macro@wdc.com>
12484
12485 * nat/riscv-linux-tdesc.h: New file.
12486 * nat/riscv-linux-tdesc.c: New file, taking code from...
12487 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12488 ... here.
12489 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12490 NATDEPFILES.
12491
dcc9fbc6
AB
124922020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12493
12494 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12495 we don't set the fake simulator ptid to the null_ptid.
12496
719546c4
SM
124972020-02-03 Simon Marchi <simon.marchi@efficios.com>
12498
12499 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12500 * gdbthread.h (class thread_info) <resumed>: Likewise.
12501 * infrun.c (resume_1): Likewise.
12502 (proceed): Likewise.
12503 (infrun_thread_stop_requested): Likewise.
12504 (stop_all_threads): Likewise.
12505 (handle_inferior_event): Likewise.
12506 (restart_threads): Likewise.
12507 (finish_step_over): Likewise.
12508 (keep_going_stepped_thread): Likewise.
12509 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12510 (linux_handle_extended_wait): Likewise.
12511 * record-btrace.c (get_thread_current_frame_id): Likewise.
12512 * record-full.c (record_full_wait_1): Likewise.
12513 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12514 * target.c (target_resume): Likewise.
12515 * thread.c (set_running_thread): Likewise.
12516
e409c542
AKS
125172020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12518
12519 * f-valprint.c (f77_print_array_1): Changed datatype of index
12520 variable to LONGEST from int to enable it to contain bound
12521 values correctly.
12522
ee98c0da
MR
125232020-02-03 Maciej W. Rozycki <macro@wdc.com>
12524
12525 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12526 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12527 offsets according to FLEN determined.
12528 (riscv_linux_nat_target::read_description): Determine FLEN
12529 dynamically.
12530 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12531 according to FLEN determined.
12532 (riscv_linux_nat_target::store_registers): Likewise.
12533
aa66aac4
SV
125342020-02-01 Shahab Vahedi <shahab@synopsys.com>
12535
12536 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12537 when reg->group is empty and reggroup is not.
12538
fd9faca8
TT
125392020-01-31 Tom Tromey <tromey@adacore.com>
12540
12541 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12542 Call beneath target's mourn_inferior after unpushing.
12543
42330a68
AB
125442020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12545
12546 PR tui/9765
12547 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12548 have enough lines to fill the screen, still return the lowest
12549 address we found.
12550
7a27a45b
AB
125512020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12552
12553 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12554 '-', '<', and '>' commands.
12555
c47f70e2
PA
125562020-01-29 Pedro Alves <palves@redhat.com>
12557 Sergio Durigan Junior <sergiodj@redhat.com>
12558
12559 * infcmd.c (construct_inferior_arguments): Assert that
12560 'argc' is greater than 0.
12561
5133a315
LM
125622020-01-29 Luis Machado <luis.machado@linaro.org>
12563
12564 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12565 (BRK_INSN_MASK): Define to 0xd4200000.
12566 (aarch64_program_breakpoint_here_p): New function.
12567 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12568 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12569 breakpoint.c.
12570 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12571 breakpoint.h
12572 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12573 call gdbarch_program_breakpoint_here_p.
12574 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12575 default_program_breakpoint_here_p, changed return type to bool and
12576 simplified.
12577 * breakpoint.h (program_breakpoint_here): Moved prototype to
12578 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12579 return type to bool.
12580 * gdbarch.c: Regenerate.
12581 * gdbarch.h: Regenerate.
12582 * gdbarch.sh (program_breakpoint_here_p): New method.
12583 * infrun.c (handle_signal_stop): Call
12584 gdbarch_program_breakpoint_here_p.
12585
168f8c6b
TT
125862020-01-26 Tom Tromey <tom@tromey.com>
12587
12588 * ctfread.c (struct ctf_fp_info): Reindent.
12589 (_initialize_ctfread): Remove.
12590
128a391f
TT
125912020-01-26 Tom Tromey <tom@tromey.com>
12592
12593 * psymtab.c (partial_map_expand_apply)
12594 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12595 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12596 (psym_print_stats, psym_expand_symtabs_for_function)
12597 (psym_map_symbol_filenames, psym_map_matching_symbols)
12598 (psym_expand_symtabs_matching)
12599 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12600 (maintenance_check_psymtabs): Use new methods.
12601 * psympriv.h (struct partial_symtab) <readin_p,
12602 get_compunit_symtab>: New methods.
12603 <readin, compunit_symtab>: Remove members.
12604 (struct standard_psymtab): New.
12605 (struct legacy_psymtab): Derive from standard_psymtab.
12606 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12607 standard_psymtab.
12608 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12609
0494dbec
TT
126102020-01-26 Tom Tromey <tom@tromey.com>
12611
12612 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12613 read_dependencies. Add assert.
12614 * psymtab.c (partial_symtab::read_dependencies): New method.
12615 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12616 method.
12617 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12618 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12619 read_dependencies.
12620 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12621 Add assert.
12622
8566b89b
TT
126232020-01-26 Tom Tromey <tom@tromey.com>
12624
12625 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12626 Call expand_psymtab.
12627 (xcoff_read_symtab): Call expand_psymtab.
12628 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12629 legacy_expand_psymtab.
12630 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12631 method.
12632 (struct legacy_psymtab) <expand_psymtab>: Implement.
12633 <legacy_expand_psymtab>: New member.
12634 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12635 (parse_partial_symbols): Set legacy_expand_psymtab.
12636 (psymtab_to_symtab_1): Change argument order. Call
12637 expand_psymtab.
12638 (new_psymtab): Set legacy_expand_psymtab.
12639 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12640 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12641 expand_psymtab.
12642 (dwarf2_psymtab::expand_psymtab): Rename from
12643 psymtab_to_symtab_1. Call expand_psymtab.
12644 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12645 (dbx_end_psymtab): Likewise.
12646 (dbx_psymtab_to_symtab_1): Change argument order. Call
12647 expand_psymtab.
12648 (dbx_read_symtab): Call expand_psymtab.
12649 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12650 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12651 (ctf_psymtab::read_symtab): Call expand_psymtab.
12652
077cbab2
TT
126532020-01-26 Tom Tromey <tom@tromey.com>
12654
12655 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12656 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12657 messages.
12658 * mdebugread.c (mdebug_read_symtab): Remove prints.
12659 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12660 assert.
12661 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12662
891813be
TT
126632020-01-26 Tom Tromey <tom@tromey.com>
12664
12665 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12666 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12667 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12668 legacy_symtab.
12669 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12670 * psymtab.c (psymtab_to_symtab): Call method.
12671 (dump_psymtab): Update.
12672 * psympriv.h (struct partial_symtab): Add virtual destructor.
12673 <read_symtab>: New method.
12674 (struct legacy_symtab): New.
12675 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12676 (struct pst_map) <pst>: Now a legacy_psymtab.
12677 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12678 (new_psymtab): Use legacy_psymtab.
12679 * dwarf2read.h (struct dwarf2_psymtab): New.
12680 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12681 * dwarf2read.c (dwarf2_create_include_psymtab)
12682 (dwarf2_build_include_psymtabs, create_type_unit_group)
12683 (create_partial_symtab, process_psymtab_comp_unit_reader)
12684 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12685 (set_partial_user): Use dwarf2_psymtab.
12686 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12687 (psymtab_to_symtab_1, process_full_comp_unit)
12688 (process_full_type_unit, dwarf2_ranges_read)
12689 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12690 (dwarf_decode_lines): Use dwarf2_psymtab.
12691 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12692 (add_address_entry_worker, write_one_signatured_type)
12693 (recursively_count_psymbols, recursively_write_psymbols)
12694 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12695 (write_debug_names): Likewise.
12696 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12697 <pst>: Now a legacy_psymtab.
12698 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12699 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12700 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12701 * ctfread.c (struct ctf_psymtab): New.
12702 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12703 ctf_psymtab.
12704 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12705 (create_partial_symtab): Return a ctf_psymtab.
12706 (scan_partial_symbols): Update.
12707
c3693a1d
TT
127082020-01-26 Tom Tromey <tom@tromey.com>
12709
12710 * xcoffread.c (xcoff_start_psymtab): Use new.
12711 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12712 renamed from start_psymtab_common.
12713 * psympriv.h (struct partial_symtab): Add new constructor.
12714 (start_psymtab_common): Don't declare.
12715 * mdebugread.c (parse_partial_symbols): Use new.
12716 * dwarf2read.c (create_partial_symtab): Use new.
12717 * dbxread.c (start_psymtab): Use new.
12718 * ctfread.c (create_partial_symtab): Use new.
12719
32caafd0
TT
127202020-01-26 Tom Tromey <tom@tromey.com>
12721
12722 * xcoffread.c (xcoff_end_psymtab): Use new.
12723 * psymtab.c (start_psymtab_common): Use new.
12724 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12725 Update.
12726 * psympriv.h (struct partial_symtab): Add parameters to
12727 constructor. Don't inline.
12728 (allocate_psymtab): Don't declare.
12729 * mdebugread.c (new_psymtab): Use new.
12730 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12731 * dbxread.c (dbx_end_psymtab): Use new.
12732
abaa2f23
TT
127332020-01-26 Tom Tromey <tom@tromey.com>
12734
12735 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12736 allocate_psymtab. Update documentation.
12737 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12738 allocate_psymtab. Do not use new.
12739 (allocate_psymtab): Use new. Update.
12740
6d94535f
TT
127412020-01-26 Tom Tromey <tom@tromey.com>
12742
12743 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12744 * psymtab.c (psym_print_stats): Update.
12745 * psympriv.h (struct partial_symtab) <readin,
12746 psymtabs_addrmap_supported, anonymous>: Now bool.
12747 * mdebugread.c (psymtab_to_symtab_1): Update.
12748 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12749 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12750 (process_full_comp_unit, process_full_type_unit): Update.
12751 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12752 * ctfread.c (psymtab_to_symtab): Update.
12753
6f17252b
TT
127542020-01-26 Tom Tromey <tom@tromey.com>
12755
12756 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12757 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12758 * psymtab.c (psymtab_storage): Delete psymtabs.
12759 (psymtab_storage::allocate_psymtab): Use new.
12760 (psymtab_storage::discard_psymtab): Use delete.
12761 * psympriv.h (struct partial_symtab): Add constructor and
12762 initializers.
12763
f6f1cebc
TT
127642020-01-26 Tom Tromey <tom@tromey.com>
12765
12766 * machoread.c: Do not include psympriv.h.
12767
e47e48f6
PW
127682020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12769
12770 * NEWS: Mention the new option and the set/show commands.
12771
a2fedca9
PW
127722020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12773
12774 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12775 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12776 (validate_exec_file): New variables, enums, functions.
12777 (exec_file_locate_attach, print_section_info): Style the filenames.
12778 (_initialize_exec): Install show_exec_file_mismatch_command and
12779 set_exec_file_mismatch_command.
12780 * gdbcore.h (validate_exec_file): Declare.
12781 * infcmd.c (attach_command): Call validate_exec_file.
12782 * remote.c ( remote_target::remote_add_inferior): Likewise.
12783
7ffa82e1
AB
127842020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12785
12786 * frame.c (find_frame_sal): Move call to get_next_frame into more
12787 inner scope.
12788 * inline-frame.c (inilne_state) <inline_state>: Update argument
12789 types.
12790 (inilne_state) <skipped_symbol>: Rename to...
12791 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12792 (skip_inline_frames): Build vector of skipped symbols and use this
12793 to reate the inline_state.
12794 (inline_skipped_symbol): Add a comment and some assertions, fetch
12795 skipped symbol from the list.
12796
3d92a3e3
AB
127972020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12798
12799 * buildsym.c (lte_is_less_than): Delete.
12800 (buildsym_compunit::end_symtab_with_blockvector): Create local
12801 lambda function to sort line table entries, and use
12802 std::stable_sort instead of std::sort.
12803 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12804 markers when looking for a previous line.
12805
94a72be7
AB
128062020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12807
12808 * dwarf2read.c (lnp_state_machine::record_line): Include
12809 end_sequence parameter in debug print out. Record the line if we
12810 are at an end_sequence marker even if it's not the start of a
12811 statement.
12812 * symmisc.c (maintenance_print_one_line_table): Print end of
12813 sequence markers with 'END' not '0'.
12814
53af73bf
PA
128152020-01-24 Pedro Alves <palves@redhat.com>
12816
12817 PR gdb/25410
12818 * thread.c (scoped_restore_current_thread::restore): Use
12819 switch_to_inferior_no_thread.
12820 * exec.c: Include "progspace-and-thread.h".
12821 (add_target_sections, remove_target_sections):
12822 scoped_restore_current_pspace_and_thread instead of
12823 scoped_restore_current_thread.
12824 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12825 and aspace to the inferior before calling clone_program_space.
12826 Remove stale comment.
12827
3050c6f4
CB
128282020-01-24 Christian Biesinger <cbiesinger@google.com>
12829
12830 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12831 (arm_netbsd_nat_target::fetch_registers): ...this.
12832 (arm_nbsd_nat_target::store_registers): Rename to...
12833 (arm_netbsd_nat_target::store_registers): ...this.
12834
73685c7e
CB
128352020-01-24 Christian Biesinger <cbiesinger@google.com>
12836
12837 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12838 register_t.
12839
89203d40
CB
128402020-01-24 Christian Biesinger <cbiesinger@google.com>
12841
12842 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12843 Update comment.
12844 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12845 Likewise.
12846 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12847 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12848 the correct replacement (iterate_over_regset_sections).
12849 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12850 Update comment.
12851
1ba1ac88
AB
128522020-01-24 Graham Markall <graham.markall@embecosm.com>
12853
12854 PR gdb/23718
12855 * gdb/python/python.c (execute_gdb_command): Call
12856 async_enable_stdin in catch block.
12857
f3364a6d
AB
128582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12859
12860 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12861 SWITCH_THRU_ALL_UIS.
12862
733d0a67
AB
128632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12864
12865 PR tui/9765
12866 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12867 comment, add extra parameter, and update to store previous symbol
12868 when appropriate.
12869 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12870 add extra parameter.
12871 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12872 remove unneeded parameter, add try/catch around gdb_print_insn,
12873 rewrite to add items to asm_lines vector.
12874 (tui_find_backward_disassembly_start_address): New function.
12875 (tui_find_disassembly_address): Updated throughout.
12876 (tui_disasm_window::set_contents): Update for changes to
12877 tui_disassemble.
12878 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12879 number of lines to scroll.
12880
b3b3bada
SM
128812020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12882
12883 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12884 (SECT_OFF_DATA): Likewise.
12885 (SECT_OFF_RODATA): Likewise.
12886 (SECT_OFF_TEXT): Likewise.
12887 (SECT_OFF_BSS): Likewise.
12888 (struct objfile) <text_section_offset, data_section_offset>: New
12889 methods.
12890 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12891 objfile::text_section_offset.
12892 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12893 * coffread.c (coff_symtab_read): Likewise.
12894 (enter_linenos): Likewise.
12895 (process_coff_symbol): Likewise.
12896 * ctfread.c (get_objfile_text_range): Likewise.
12897 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12898 Use objfile::data_section_offset.
12899 * dwarf2-frame.c (execute_cfa_program): Use
12900 objfile::text_section_offset.
12901 (dwarf2_frame_find_fde): Likewise.
12902 * dwarf2read.c (create_addrmap_from_index): Likewise.
12903 (create_addrmap_from_aranges): Likewise.
12904 (dw2_find_pc_sect_compunit_symtab): Likewise.
12905 (process_psymtab_comp_unit_reader): Likewise.
12906 (add_partial_symbol): Likewise.
12907 (add_partial_subprogram): Likewise.
12908 (process_full_comp_unit): Likewise.
12909 (read_file_scope): Likewise.
12910 (read_func_scope): Likewise.
12911 (read_lexical_block_scope): Likewise.
12912 (read_call_site_scope): Likewise.
12913 (dwarf2_rnglists_process): Likewise.
12914 (dwarf2_ranges_process): Likewise.
12915 (dwarf2_ranges_read): Likewise.
12916 (dwarf_decode_lines_1): Likewise.
12917 (new_symbol): Likewise.
12918 (dwarf2_fetch_die_loc_sect_off): Likewise.
12919 (dwarf2_per_cu_text_offset): Likewise.
12920 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12921 * hppa-tdep.c (read_unwind_info): Likewise.
12922 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12923 * psympriv.h (struct partial_symtab): Likewise.
12924 * psymtab.c (find_pc_sect_psymtab): Likewise.
12925 * solib-svr4.c (enable_break): Likewise.
12926 * stap-probe.c (relocate_address): Use
12927 objfile::data_section_offset.
12928 * xcoffread.c (enter_line_range): Use
12929 objfile::text_section_offset.
12930 (read_xcoff_symtab): Likewise.
12931
ab53f382
SM
129322020-01-23 Simon Marchi <simon.marchi@efficios.com>
12933
12934 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12935 declaration to narrower scopes.
12936
e7eee665
SM
129372020-01-23 Simon Marchi <simon.marchi@efficios.com>
12938
12939 * darwin-nat.h (struct darwin_exception_msg, enum
12940 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12941 Move up.
12942 (class darwin_nat_target) <wait_1, check_new_threads,
12943 decode_exception_message, decode_message, stop_inferior,
12944 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12945 * darwin-nat.c (darwin_check_new_threads): Rename to...
12946 (darwin_nat_target::check_new_threads): ... this.
12947 (darwin_suspend_inferior_it): Remove.
12948 (darwin_decode_exception_message): Rename to...
12949 (darwin_nat_target::decode_exception_message): ... this.
12950 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12951 (darwin_decode_message): Rename to...
12952 (darwin_nat_target::decode_message): ... this.
12953 (cancel_breakpoint): Rename to...
12954 (darwin_nat_target::cancel_breakpoint): ... this.
12955 (darwin_wait): Rename to...
12956 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12957 instead of iterate_over_inferiors.
12958 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12959 (darwin_stop_inferior): Rename to...
12960 (darwin_nat_target::stop_inferior): ... this.
12961 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12962 (darwin_init_thread_list): Rename to...
12963 (darwin_nat_target::init_thread_list): ... this.
12964 (darwin_ptrace_him): Rename to...
12965 (darwin_nat_target::ptrace_him): ... this.
12966 (darwin_nat_target::create_inferior): Pass lambda function to
12967 fork_inferior.
12968 (darwin_nat_target::detach): Call stop_inferior instead of
12969 darwin_stop_inferior.
12970 * fork-inferior.h (fork_inferior): Change init_trace_fun
12971 parameter to gdb::function_view.
12972 * fork-inferior.c (fork_inferior): Likewise.
12973
c162ed3e
HD
129742020-01-23 Hannes Domani <ssbssa@yahoo.de>
12975
12976 * i386-cygwin-tdep.c (core_process_module_section): Update.
12977 * windows-nat.c (struct lm_info_windows): Add text_offset.
12978 (windows_xfer_shared_libraries): Update.
12979 * windows-tdep.c (windows_xfer_shared_library):
12980 Add text_offset_cached argument.
12981 * windows-tdep.h (windows_xfer_shared_library): Update.
12982
a1237872
SM
129832020-01-21 Simon Marchi <simon.marchi@efficios.com>
12984
12985 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12986
b3ee6dd9
SM
129872020-01-21 Simon Marchi <simon.marchi@efficios.com>
12988
12989 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12990 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12991 replace with range-based for.
12992 (gdbsim_interrupt_inferior): Remove.
12993 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12994 with a range-based for. Inline code from
12995 gdbsim_interrupt_inferior.
12996
f9fac3c8
SM
129972020-01-21 Simon Marchi <simon.marchi@efficios.com>
12998
12999 * infrun.c (proceed): Fix indentation.
13000
f6474de9
TT
130012020-01-21 Tom Tromey <tromey@adacore.com>
13002
13003 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13004 * python/python.c (python_extension_ops): Update.
13005 (gdbpy_colorize): New function.
13006 * python/lib/gdb/__init__.py (colorize): New function.
13007 * extension.h (ext_lang_colorize): Declare.
13008 * extension.c (ext_lang_colorize): New function.
13009 * extension-priv.h (struct extension_language_ops) <colorize>: New
13010 member.
13011 * cli/cli-style.c (_initialize_cli_style): Update help text.
13012
f0c702d4
LM
130132020-01-21 Luis Machado <luis.machado@linaro.org>
13014
13015 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13016 <cond>: Change type to bool.
13017 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13018 (aarch64_displaced_step_cb): Likewise.
13019 (aarch64_displaced_step_tb): Likewise.
13020
1ab139e5
LM
130212020-01-21 Luis Machado <luis.machado@linaro.org>
13022
13023 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13024 output.
13025
0c271889
LM
130262020-01-21 Luis Machado <luis.machado@linaro.org>
13027
13028 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13029 <pc_adjust>: Adjust the documentation.
13030 (aarch64_displaced_step_fixup): Check if PC really moved before
13031 adjusting it.
13032
4d89c1c7
TT
130332020-01-19 Tom Tromey <tom@tromey.com>
13034
13035 * disasm.c (~gdb_disassembler): New destructor.
13036 (gdb_buffered_insn_length): Call disassemble_free_target.
13037 * disasm.h (class gdb_disassembler): Declare destructor. Use
13038 DISABLE_COPY_AND_ASSIGN.
13039
c0ab21c2
TT
130402020-01-19 Tom Tromey <tom@tromey.com>
13041
13042 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13043 (die_reader_func_ftype): Remove.
13044 (cutu_reader): New class.
13045 (dw2_get_file_names_reader): Remove "data" parameter.
13046 (dw2_get_file_names): Use cutu_reader.
13047 (create_debug_type_hash_table): Update.
13048 (read_cutu_die_from_dwo): Update comment.
13049 (lookup_dwo_unit): Add dwo_name parameter.
13050 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13051 die_reader_func_ftype and data parameters.
13052 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13053 Remove die_reader_func_ftype and data parameters.
13054 (~cutu_reader): New; from init_cutu_and_read_dies.
13055 (cutu_reader::cutu_reader): Rename from
13056 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13057 and data parameters.
13058 (init_cutu_and_read_dies_simple): Remove.
13059 (struct process_psymtab_comp_unit_data): Remove.
13060 (process_psymtab_comp_unit_reader): Remove data parameter; add
13061 want_partial_unit and pretend_language parameters.
13062 (process_psymtab_comp_unit): Use cutu_reader.
13063 (build_type_psymtabs_reader): Remove data parameter.
13064 (build_type_psymtabs_1): Use cutu_reader.
13065 (process_skeletonless_type_unit): Likewise.
13066 (load_partial_comp_unit_reader): Remove.
13067 (load_partial_comp_unit): Use cutu_reader.
13068 (load_full_comp_unit_reader): Remove.
13069 (load_full_comp_unit): Use cutu_reader.
13070 (struct create_dwo_cu_data): Remove.
13071 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13072 dwo_unit parameters.
13073 (create_cus_hash_table): Use cutu_reader.
13074 (struct dwarf2_read_addr_index_data): Remove.
13075 (dwarf2_read_addr_index_reader): Remove.
13076 (dwarf2_read_addr_index): Use cutu_reader.
13077 (read_signatured_type_reader): Remove.
13078 (read_signatured_type): Use cutu_reader.
13079
45bbae5c
TT
130802020-01-19 Tom Tromey <tom@tromey.com>
13081
13082 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13083 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13084 (tui_wrefresh): Declare.
13085 * tui/tui-wingeneral.c (suppress_output): New global.
13086 (tui_suppress_output, ~tui_suppress_output): New constructor and
13087 destructor.
13088 (tui_wrefresh): New function.
13089 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13090 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13091 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13092 method.
13093 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13094 tui_wrefresh.
13095 (tui_data_window::no_refresh): New method.
13096 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13097 (tui_reg_command): Use tui_suppress_output
13098 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13099 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13100 method.
13101 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13102
4f13c1c0
TT
131032020-01-19 Tom Tromey <tom@tromey.com>
13104
13105 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13106 Handle case where symtab is null.
13107
fa47e446
SM
131082020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13109
13110 * linux-fork.c (one_fork_p): Simplify.
13111
26f42329
SM
131122020-01-17 Simon Marchi <simon.marchi@efficios.com>
13113
13114 * top.c (struct qt_args): Remove.
13115 (kill_or_detach): Change return type to void, replace `void *`
13116 parameter with a proper one.
13117 (print_inferior_quit_action): Likewise.
13118 (quit_confirm): Use range-based for loop to iterate over inferiors.
13119 (quit_force): Likewise.
13120
a9ac81b1
SM
131212020-01-17 Simon Marchi <simon.marchi@efficios.com>
13122
13123 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13124 `void *` parameter with proper parameters.
13125 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13126 (print_one_inferior): Change return type to void, replace `void *`
13127 parameter with proper parameters.
13128 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13129 inferiors.
13130 (get_other_inferior): Remove.
13131 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13132 inferiors.
13133
788eca49
SM
131342020-01-17 Simon Marchi <simon.marchi@efficios.com>
13135
13136 * mi/mi-interp.c (report_initial_inferior): Remove.
13137 (mi_interp::init): Use range-based for to iterate over inferiors.
13138
d9bc85b6
SM
131392020-01-17 Simon Marchi <simon.marchi@efficios.com>
13140
13141 * python/py-inferior.c (build_inferior_list): Remove.
13142 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13143
40c94099
CB
131442020-01-16 Christian Biesinger <cbiesinger@google.com>
13145
13146 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13147 (btrace_stitch_trace): Likewise.
13148 * charset.c (intermediate_encoding): Likewise (vaild).
13149 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13150 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13151 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13152
e0cdfe3c
HD
131532020-01-16 Hannes Domani <ssbssa@yahoo.de>
13154
13155 * windows-tdep.c (windows_get_tlb_type):
13156 Add rtl_user_process_parameters type.
13157
790f1718 131582020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13159 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13160
13161 PR build/24805
13162 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13163 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13164 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13165 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13166 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13167 (ps_plog): Redeclare exported functions with default visibility.
13168
3112ed97
NA
131692020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13170
13171 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13172 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13173
8dc3273e
SM
131742020-01-15 Simon Marchi <simon.marchi@efficios.com>
13175
13176 * infcmd.c (post_create_inferior): Use get_thread_regcache
13177 instead of get_current_regcache.
13178
ff47f4f0
TT
131792020-01-14 Tom Tromey <tom@tromey.com>
13180
13181 PR symtab/12535:
13182 * python/python.c (gdbpy_decode_line): Treat empty string the same
13183 as no argument.
13184
975f45b7
TT
131852020-01-14 Tom Tromey <tom@tromey.com>
13186
13187 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13188
25e57356
TT
131892020-01-14 Tom Tromey <tom@tromey.com>
13190
13191 * nat/linux-btrace.c: Don't include <config.h>.
13192 * nat/linux-ptrace.c: Don't include <config.h>.
13193 * nat/x86-linux-dregs.c: Don't include <config.h>.
13194
05ea2a05
TT
131952020-01-14 Tom Tromey <tom@tromey.com>
13196
13197 * configure: Rebuild.
13198 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13199
01027315
TT
132002020-01-14 Tom Tromey <tom@tromey.com>
13201
13202 * nat/x86-linux-dregs.c: Include configh.h.
13203 * nat/linux-ptrace.c: Include configh.h.
13204 * nat/linux-btrace.c: Include configh.h.
13205 * defs.h: Include config.h, bfd.h.
13206 * configure.ac: Don't source common.host.
13207 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13208 * configure: Rebuild.
13209 * acinclude.m4: Update path.
13210 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13211 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13212 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13213 (CLIBS): Add LIBSUPPORT.
13214 (CDEPS): Likewise.
13215 (COMMON_SFILES): Remove gdbsupport files.
13216 (HFILES_NO_SRCDIR): Likewise.
13217 (stamp-version): Update path to create-version.sh.
13218 (ALLDEPFILES): Remove gdbsupport files.
13219
b2ceabe8
TT
132202020-01-14 Tom Tromey <tom@tromey.com>
13221
13222 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13223 USE_WIN32API when needed.
13224 * configure.ac (USE_WIN32API): Don't define.
13225 (WIN32LIBS): Use WIN32APILIBS.
13226 * configure: Rebuild.
13227
25c51f71
TT
132282020-01-14 Tom Tromey <tom@tromey.com>
13229
13230 * configure: Rebuild.
13231 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13232
717c684d
BE
132332020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13234
13235 * skip.c (skip_function_command): Make skip w/o arguments use the
13236 name of the inlined function if pc is inside any inlined function.
13237
7da6a5b9
LM
132382020-01-14 Luis Machado <luis.machado@linaro.org>
13239
13240 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13241 * infrun.c (resume_1): Likewise.
13242 (handle_inferior_event): Remove stale comment.
13243 * linux-nat.c (linux_nat_target::resume): Update comments.
13244 (save_stop_reason): Likewise.
13245 (linux_nat_filter_event): Likewise.
13246 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13247
44e4c775
AB
132482020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13249
13250 * elfread.c (record_minimal_symbol): Set section index to 0 for
13251 non-allocatable sections.
13252
18a8505e
AT
13253
132542020-01-13 Ali Tamur <tamur@google.com>
13255
13256 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13257 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13258 to gdb::optional. Update comments.
13259 (dwo_file): Update comments.
13260 (read_attribute): Update API to take an additional out parameter,
13261 need_reprocess. This is used to mark attributes that need other
13262 attributes (e.g. str_offsets_base) for correct computation which may not
13263 have been read yet.
13264 (read_attribute_reprocess): New function declaration.
13265 (read_addr_index): Likewise.
13266 (read_dwo_str_index): Likewise.
13267 (read_stub_str_index): Likewise.
13268 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13269 (lookup_addr_base): New function definition.
13270 (lookup_ranges_base): Likewise.
13271 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13272 lookup_ranges_base.
13273 (init_cutu_and_read_dies): Update comments.
13274 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13275 unit. This is used to inherit parent's str_offsets_base and addr_base.
13276 Update comments.
13277 (init_cutu_and_read_dies_simple): Reflect API changes.
13278 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13279 (create_cus_hash_table): Change API to take parent compile unit.
13280 Reflect API changes.
13281 (open_and_init_dwo_file): Reflect API changes.
13282 (dwarf2_get_pc_bounds): Update comments.
13283 (dwarf2_record_block_ranges): Likewise.
13284 (read_full_die_1): Change implementation to reprocess attributes that
13285 need str_offsets_base and addr_base.
13286 (partial_die_info::read): Likewise.
13287 (read_attribute_reprocess): New function definition.
13288 (read_attribute_value): Change API to take an additional out parameter,
13289 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13290 when a non-dwo compile unit has index based attributes.
13291 (read_attribute): Reflect API changes.
13292 (read_addr_index_1): Reflect API changes. Update comments.
13293 (dwarf2_read_addr_index_data): Reflect API changes.
13294 (dwarf2_read_addr_index): Likewise.
13295 (read_str_index): Change API and implementation. This becomes a helper
13296 to be used by the new string index related methods. Update error
13297 message and comments.
13298 (read_dwo_str_index): New function definition.
13299 (read_stub_str_index): Likewise.
13300 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13301 * symfile.h (dwarf2_debug_sections): Likewise.
13302 * xcoffread.c (dwarf2_debug_sections): Likewise.
13303
0cac9354
SM
133042020-01-13 Simon Marchi <simon.marchi@efficios.com>
13305
13306 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13307 core_reg_sect type to gdb_byte *.
13308 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13309 * cris-tdep.c (fetch_core_registers): Likewise.
13310 * corelow.c (core_target::get_core_register_section): Change
13311 type of `contents` to gdb::byte_vector.
13312
9a6d629c
AB
133132020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13314
13315 * tui/tui-wingeneral.c (box_win): Position the title in the center
13316 of the border.
13317
d8b2f9e3
SM
133182020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13319
13320 * corelow.c (core_target::get_core_register_section): Use
13321 std::vector instead of alloca.
13322
bb564c58
SM
133232020-01-13 Simon Marchi <simon.marchi@efficios.com>
13324
13325 * warning.m4: Add -Wmissing-declarations to build_warnings.
13326 * configure: Re-generate.
13327
6b366111
SM
133282020-01-13 Simon Marchi <simon.marchi@efficios.com>
13329
13330 * python/python.c (init__gdb_module): Add declaration.
13331
6c265988
SM
133322020-01-13 Simon Marchi <simon.marchi@efficios.com>
13333
13334 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13335 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13336 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13337 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13338 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13339 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13340 * ada-exp.y (_initialize_ada_exp): Add declaration.
13341 * ada-lang.c (_initialize_ada_language): Add declaration.
13342 * ada-tasks.c (_initialize_tasks): Add declaration.
13343 * agent.c (_initialize_agent): Add declaration.
13344 * aix-thread.c (_initialize_aix_thread): Add declaration.
13345 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13346 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13347 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13348 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13349 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13350 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13351 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13352 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13353 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13354 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13355 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13356 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13357 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13358 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13359 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13360 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13361 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13362 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13363 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13364 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13365 * annotate.c (_initialize_annotate): Add declaration.
13366 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13367 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13368 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13369 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13370 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13371 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13372 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13373 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13374 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13375 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13376 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13377 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13378 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13379 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13380 * auto-load.c (_initialize_auto_load): Add declaration.
13381 * auxv.c (_initialize_auxv): Add declaration.
13382 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13383 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13384 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13385 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13386 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13387 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13388 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13389 * breakpoint.c (_initialize_breakpoint): Add declaration.
13390 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13391 * btrace.c (_initialize_btrace): Add declaration.
13392 * charset.c (_initialize_charset): Add declaration.
13393 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13394 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13395 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13396 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13397 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13398 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13399 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13400 * coffread.c (_initialize_coffread): Add declaration.
13401 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13402 * compile/compile.c (_initialize_compile): Add declaration.
13403 * complaints.c (_initialize_complaints): Add declaration.
13404 * completer.c (_initialize_completer): Add declaration.
13405 * copying.c (_initialize_copying): Add declaration.
13406 * corefile.c (_initialize_core): Add declaration.
13407 * corelow.c (_initialize_corelow): Add declaration.
13408 * cp-abi.c (_initialize_cp_abi): Add declaration.
13409 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13410 * cp-support.c (_initialize_cp_support): Add declaration.
13411 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13412 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13413 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13414 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13415 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13416 * ctfread.c (_initialize_ctfread): Add declaration.
13417 * d-lang.c (_initialize_d_language): Add declaration.
13418 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13419 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13420 * dbxread.c (_initialize_dbxread): Add declaration.
13421 * dcache.c (_initialize_dcache): Add declaration.
13422 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13423 * disasm.c (_initialize_disasm): Add declaration.
13424 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13425 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13426 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13427 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13428 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13429 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13430 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13431 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13432 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13433 * elfread.c (_initialize_elfread): Add declaration.
13434 * exec.c (_initialize_exec): Add declaration.
13435 * extension.c (_initialize_extension): Add declaration.
13436 * f-lang.c (_initialize_f_language): Add declaration.
13437 * f-valprint.c (_initialize_f_valprint): Add declaration.
13438 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13439 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13440 * filesystem.c (_initialize_filesystem): Add declaration.
13441 * findcmd.c (_initialize_mem_search): Add declaration.
13442 * findvar.c (_initialize_findvar): Add declaration.
13443 * fork-child.c (_initialize_fork_child): Add declaration.
13444 * frame-base.c (_initialize_frame_base): Add declaration.
13445 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13446 * frame.c (_initialize_frame): Add declaration.
13447 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13448 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13449 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13450 * gcore.c (_initialize_gcore): Add declaration.
13451 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13452 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13453 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13454 * gdbarch.c (_initialize_gdbarch): Add declaration.
13455 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13456 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13457 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13458 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13459 * go-lang.c (_initialize_go_language): Add declaration.
13460 * go32-nat.c (_initialize_go32_nat): Add declaration.
13461 * guile/guile.c (_initialize_guile): Add declaration.
13462 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13463 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13464 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13465 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13466 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13467 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13468 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13469 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13470 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13471 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13472 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13473 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13474 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13475 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13476 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13477 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13478 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13479 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13480 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13481 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13482 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13483 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13484 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13485 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13486 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13487 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13488 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13489 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13490 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13491 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13492 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13493 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13494 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13495 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13496 * infcall.c (_initialize_infcall): Add declaration.
13497 * infcmd.c (_initialize_infcmd): Add declaration.
13498 * inflow.c (_initialize_inflow): Add declaration.
13499 * infrun.c (_initialize_infrun): Add declaration.
13500 * interps.c (_initialize_interpreter): Add declaration.
13501 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13502 * jit.c (_initialize_jit): Add declaration.
13503 * language.c (_initialize_language): Add declaration.
13504 * linux-fork.c (_initialize_linux_fork): Add declaration.
13505 * linux-nat.c (_initialize_linux_nat): Add declaration.
13506 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13507 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13508 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13509 * m2-lang.c (_initialize_m2_language): Add declaration.
13510 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13511 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13512 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13513 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13514 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13515 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13516 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13517 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13518 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13519 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13520 * machoread.c (_initialize_machoread): Add declaration.
13521 * macrocmd.c (_initialize_macrocmd): Add declaration.
13522 * macroscope.c (_initialize_macroscope): Add declaration.
13523 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13524 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13525 * maint.c (_initialize_maint_cmds): Add declaration.
13526 * mdebugread.c (_initialize_mdebugread): Add declaration.
13527 * memattr.c (_initialize_mem): Add declaration.
13528 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13529 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13530 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13531 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13532 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13533 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13534 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13535 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13536 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13537 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13538 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13539 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13540 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13541 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13542 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13543 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13544 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13545 * mipsread.c (_initialize_mipsread): Add declaration.
13546 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13547 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13548 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13549 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13550 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13551 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13552 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13553 * nto-procfs.c (_initialize_procfs): Add declaration.
13554 * objc-lang.c (_initialize_objc_language): Add declaration.
13555 * observable.c (_initialize_observer): Add declaration.
13556 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13557 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13558 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13559 * osabi.c (_initialize_gdb_osabi): Add declaration.
13560 * osdata.c (_initialize_osdata): Add declaration.
13561 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13562 * parse.c (_initialize_parse): Add declaration.
13563 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13564 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13565 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13566 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13567 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13568 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13569 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13570 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13571 * printcmd.c (_initialize_printcmd): Add declaration.
13572 * probe.c (_initialize_probe): Add declaration.
13573 * proc-api.c (_initialize_proc_api): Add declaration.
13574 * proc-events.c (_initialize_proc_events): Add declaration.
13575 * proc-service.c (_initialize_proc_service): Add declaration.
13576 * procfs.c (_initialize_procfs): Add declaration.
13577 * producer.c (_initialize_producer): Add declaration.
13578 * psymtab.c (_initialize_psymtab): Add declaration.
13579 * python/python.c (_initialize_python): Add declaration.
13580 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13581 * record-btrace.c (_initialize_record_btrace): Add declaration.
13582 * record-full.c (_initialize_record_full): Add declaration.
13583 * record.c (_initialize_record): Add declaration.
13584 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13585 * regcache.c (_initialize_regcache): Add declaration.
13586 * reggroups.c (_initialize_reggroup): Add declaration.
13587 * remote-notif.c (_initialize_notif): Add declaration.
13588 * remote-sim.c (_initialize_remote_sim): Add declaration.
13589 * remote.c (_initialize_remote): Add declaration.
13590 * reverse.c (_initialize_reverse): Add declaration.
13591 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13592 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13593 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13594 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13595 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13596 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13597 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13598 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13599 Add declaration.
13600 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13601 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13602 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13603 * rust-exp.y (_initialize_rust_exp): Add declaration.
13604 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13605 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13606 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13607 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13608 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13609 * score-tdep.c (_initialize_score_tdep): Add declaration.
13610 * ser-go32.c (_initialize_ser_dos): Add declaration.
13611 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13612 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13613 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13614 * ser-uds.c (_initialize_ser_socket): Add declaration.
13615 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13616 * serial.c (_initialize_serial): Add declaration.
13617 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13618 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13619 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13620 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13621 * skip.c (_initialize_step_skip): Add declaration.
13622 * sol-thread.c (_initialize_sol_thread): Add declaration.
13623 * solib-aix.c (_initialize_solib_aix): Add declaration.
13624 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13625 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13626 * solib-frv.c (_initialize_frv_solib): Add declaration.
13627 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13628 * solib-target.c (_initialize_solib_target): Add declaration.
13629 * solib.c (_initialize_solib): Add declaration.
13630 * source-cache.c (_initialize_source_cache): Add declaration.
13631 * source.c (_initialize_source): Add declaration.
13632 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13633 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13634 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13635 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13636 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13637 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13638 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13639 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13640 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13641 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13642 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13643 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13644 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13645 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13646 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13647 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13648 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13649 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13650 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13651 * stabsread.c (_initialize_stabsread): Add declaration.
13652 * stack.c (_initialize_stack): Add declaration.
13653 * stap-probe.c (_initialize_stap_probe): Add declaration.
13654 * std-regs.c (_initialize_frame_reg): Add declaration.
13655 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13656 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13657 * symfile.c (_initialize_symfile): Add declaration.
13658 * symmisc.c (_initialize_symmisc): Add declaration.
13659 * symtab.c (_initialize_symtab): Add declaration.
13660 * target.c (_initialize_target): Add declaration.
13661 * target-connection.c (_initialize_target_connection): Add
13662 declaration.
13663 * target-dcache.c (_initialize_target_dcache): Add declaration.
13664 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13665 * thread.c (_initialize_thread): Add declaration.
13666 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13667 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13668 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13669 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13670 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13671 * tracectf.c (_initialize_ctf): Add declaration.
13672 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13673 * tracefile.c (_initialize_tracefile): Add declaration.
13674 * tracepoint.c (_initialize_tracepoint): Add declaration.
13675 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13676 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13677 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13678 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13679 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13680 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13681 * tui/tui.c (_initialize_tui): Add declaration.
13682 * typeprint.c (_initialize_typeprint): Add declaration.
13683 * ui-style.c (_initialize_ui_style): Add declaration.
13684 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13685 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13686 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13687 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13688 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13689 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13690 * unittests/filtered_iterator-selftests.c
13691 (_initialize_filtered_iterator_selftests): Add declaration.
13692 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13693 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13694 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13695 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13696 * unittests/main-thread-selftests.c
13697 (_initialize_main_thread_selftests): Add declaration.
13698 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13699 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13700 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13701 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13702 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13703 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13704 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13705 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13706 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13707 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13708 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13709 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13710 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13711 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13712 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13713 declaration.
13714 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13715 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13716 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13717 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13718 * user-regs.c (_initialize_user_regs): Add declaration.
13719 * utils.c (_initialize_utils): Add declaration.
13720 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13721 * valops.c (_initialize_valops): Add declaration.
13722 * valprint.c (_initialize_valprint): Add declaration.
13723 * value.c (_initialize_values): Add declaration.
13724 * varobj.c (_initialize_varobj): Add declaration.
13725 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13726 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13727 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13728 * windows-nat.c (_initialize_windows_nat): Add declaration.
13729 (_initialize_check_for_gdb_ini): Add declaration.
13730 (_initialize_loadable): Add declaration.
13731 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13732 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13733 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13734 * xcoffread.c (_initialize_xcoffread): Add declaration.
13735 * xml-support.c (_initialize_xml_support): Add declaration.
13736 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13737 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13738 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13739 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13740
e2de1eec
SM
137412020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13742
13743 * regformats/regdat.sh: Generate declaration for init function.
13744
e0037b4c
SM
137452020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13746
13747 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13748 up.
13749 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13750 close_one_inferior>: New methods.
13751 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13752 pass down target to find_inferior_pid.
13753 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13754 Pass down target to find_inferior_ptid.
13755 (gdbsim_target::create_inferior): Pass down target to
13756 add_thread_silent.
13757 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13758 target down to find_inferior_ptid and switch_to_thread.
13759 (gdbsim_target::close): Update to call close_one_inferior.
13760 (struct resume_data): Remove.
13761 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13762 directly, rather than through a void pointer.
13763 (gdbsim_target::resume): Update to call resume_one_inferior.
13764
58920b5b
SM
137652020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13766
13767 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13768
4ec89149
PA
137692020-01-12 Pedro Alves <palves@redhat.com>
13770
13771 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13772 directly for the current inferior instead of
13773 discard_all_inferiors.
13774 (discard_all_inferiors): Delete.
13775
7c392d1d
TT
137762020-01-11 Tom Tromey <tom@tromey.com>
13777
13778 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13779 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13780 deprecated_safe_get_selected_frame.
13781
d9ebdab7
TBA
137822020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13783
13784 * inferior.c (print_inferior): Switch inferior before printing it.
13785
f3c469b9
PA
137862020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13787 Pedro Alves <palves@redhat.com>
13788
13789 * progspace-and-thread.c (switch_to_program_space_and_thread):
13790 Assert there's an inferior for PSPACE. Use
13791 switch_to_inferior_no_thread to switch the inferior too.
13792 * progspace.c (program_space::~program_space): Call
13793 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13794 (program_space::free_all_objfiles): Don't call clear_symtab_users
13795 here.
13796 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13797
65c574f6
PA
137982020-01-10 Pedro Alves <palves@redhat.com>
13799
13800 * NEWS: Mention multi-target debugging, "info connections", and
13801 "add-inferior -no-connection".
13802
2f4fcf00
PA
138032020-01-10 Pedro Alves <palves@redhat.com>
13804
13805 * infrun.c: Include "target-connection.h".
13806 (check_multi_target_resumption): New.
13807 (proceed): Call it.
13808 * target-connection.c (make_target_connection_string): Make
13809 extern.
13810 * target-connection.h (make_target_connection_string): Declare.
13811
121b3efd
PA
138122020-01-10 Pedro Alves <palves@redhat.com>
13813
13814 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13815 * inferior.c (uiout_field_connection): New function.
13816 (print_inferior): Add new "connection-id" column.
13817 (add_inferior_command): Show connection number/string of added
13818 inferior.
13819 * process-stratum-target.h
13820 (process_stratum_target::connection_string): New virtual method.
13821 (process_stratum_target::connection_number): New field.
13822 * remote.c (remote_target::connection_string): New override.
13823 * target-connection.c: New file.
13824 * target-connection.h: New file.
13825 * target.c (decref_target): Remove process_stratum targets from
13826 the connection list.
13827 (target_stack::push): Add process_stratum targets to the
13828 connection list.
13829
4f837581
PA
138302020-01-10 Pedro Alves <palves@redhat.com>
13831
13832 Revert:
13833 2016-04-12 Pedro Alves <palves@redhat.com>
13834 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13835 Remove references to name.
13836 * serial.h (struct serial) <name>: Delete.
13837
f4ec508e
PA
138382020-01-10 Pedro Alves <palves@redhat.com>
13839
13840 * gdbarch-selftests.c (register_to_value_test): Remove "target
13841 already pushed" check.
13842
5b6d1e4f
PA
138432020-01-10 Pedro Alves <palves@redhat.com>
13844 John Baldwin <jhb@FreeBSD.org>
13845
13846 * aarch64-linux-nat.c
13847 (aarch64_linux_nat_target::thread_architecture): Adjust.
13848 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13849 (task_command_1): Likewise.
13850 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13851 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13852 (aix_thread_target::store_registers)
13853 (aix_thread_target::thread_alive): Adjust.
13854 * amd64-fbsd-tdep.c: Include "inferior.h".
13855 (amd64fbsd_get_thread_local_address): Pass down target.
13856 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13857 thread's gdbarch instead of target_gdbarch.
13858 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13859 get_last_target_status.
13860 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13861 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13862 inferiors.
13863 (update_inserted_breakpoint_locations): Skip if inferiors with no
13864 execution.
13865 (update_global_location_list): When handling moribund locations,
13866 find representative inferior for location's pspace, and use thread
13867 count of its process_stratum target.
13868 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13869 * bsd-uthread.c (bsd_uthread_target::wait): Use
13870 as_process_stratum_target and adjust thread_change_ptid and
13871 add_thread calls.
13872 (bsd_uthread_target::update_thread_list): Use
13873 as_process_stratum_target and adjust find_thread_ptid,
13874 thread_change_ptid and add_thread calls.
13875 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13876 find_thread_ptid call.
13877 * corelow.c (add_to_thread_list): Adjust add_thread call.
13878 (core_target_open): Adjust add_thread_silent and thread_count
13879 calls.
13880 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13881 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13882 * event-top.c (async_disconnect): Pop targets from all inferiors.
13883 * exec.c (add_target_sections): Push exec target on all inferiors
13884 sharing the program space.
13885 (remove_target_sections): Remove the exec target from all
13886 inferiors sharing the program space.
13887 (exec_on_vfork): New.
13888 * exec.h (exec_on_vfork): Declare.
13889 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13890 Pass it down.
13891 (fbsd_nat_target::update_thread_list): Adjust.
13892 (fbsd_nat_target::resume): Adjust.
13893 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13894 down.
13895 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13896 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13897 get_thread_arch_regcache call.
13898 * fork-child.c (gdb_startup_inferior): Pass target down to
13899 startup_inferior and set_executing.
13900 * gdbthread.h (struct process_stratum_target): Forward declare.
13901 (add_thread, add_thread_silent, add_thread_with_info)
13902 (in_thread_list): Add process_stratum_target parameter.
13903 (find_thread_ptid(inferior*, ptid_t)): New overload.
13904 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13905 parameter.
13906 (all_threads()): Delete overload.
13907 (all_threads, all_non_exited_threads): Add process_stratum_target
13908 parameter.
13909 (all_threads_safe): Use brace initialization.
13910 (thread_count): Add process_stratum_target parameter.
13911 (set_resumed, set_running, set_stop_requested, set_executing)
13912 (threads_are_executing, finish_thread_state): Add
13913 process_stratum_target parameter.
13914 (switch_to_thread): Use is_current_thread.
13915 * i386-fbsd-tdep.c: Include "inferior.h".
13916 (i386fbsd_get_thread_local_address): Pass down target.
13917 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13918 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13919 have_inferiors check.
13920 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13921 (inf_ptrace_target::attach): Adjust.
13922 * infcall.c (run_inferior_call): Adjust.
13923 * infcmd.c (run_command_1): Pass target to
13924 scoped_finish_thread_state.
13925 (proceed_thread_callback): Skip inferiors with no execution.
13926 (continue_command): Rename 'all_threads' local to avoid hiding
13927 'all_threads' function. Adjust get_last_target_status call.
13928 (prepare_one_step): Adjust set_running call.
13929 (signal_command): Use user_visible_resume_target. Compare thread
13930 pointers instead of inferior_ptid.
13931 (info_program_command): Adjust to pass down target.
13932 (attach_command): Mark target's 'thread_executing' flag.
13933 (stop_current_target_threads_ns): New, factored out from ...
13934 (interrupt_target_1): ... this. Switch inferior before making
13935 target calls.
13936 * inferior-iter.h
13937 (struct all_inferiors_iterator, struct all_inferiors_range)
13938 (struct all_inferiors_safe_range)
13939 (struct all_non_exited_inferiors_range): Filter on
13940 process_stratum_target too. Remove explicit.
13941 * inferior.c (inferior::inferior): Push dummy target on target
13942 stack.
13943 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13944 Add process_stratum_target parameter, and pass it down.
13945 (have_live_inferiors): Adjust.
13946 (switch_to_inferior_and_push_target): New.
13947 (add_inferior_command, clone_inferior_command): Handle
13948 "-no-connection" parameter. Use
13949 switch_to_inferior_and_push_target.
13950 (_initialize_inferior): Mention "-no-connection" option in
13951 the help of "add-inferior" and "clone-inferior" commands.
13952 * inferior.h: Include "process-stratum-target.h".
13953 (interrupt_target_1): Use bool.
13954 (struct inferior) <push_target, unpush_target, target_is_pushed,
13955 find_target_beneath, top_target, process_target, target_at,
13956 m_stack>: New.
13957 (discard_all_inferiors): Delete.
13958 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13959 (all_inferiors, all_non_exited_inferiors): Add
13960 process_stratum_target parameter.
13961 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13962 (target_last_proc_target): New global.
13963 (follow_fork_inferior): Push target on new inferior. Pass target
13964 to add_thread_silent. Call exec_on_vfork. Handle target's
13965 reference count.
13966 (follow_fork): Adjust get_last_target_status call. Also consider
13967 target.
13968 (follow_exec): Push target on new inferior.
13969 (struct execution_control_state) <target>: New field.
13970 (user_visible_resume_target): New.
13971 (do_target_resume): Call target_async.
13972 (resume_1): Set target's threads_executing flag. Consider resume
13973 target.
13974 (commit_resume_all_targets): New.
13975 (proceed): Also consider resume target. Skip threads of inferiors
13976 with no execution. Commit resumtion in all targets.
13977 (start_remote): Pass current inferior to wait_for_inferior.
13978 (infrun_thread_stop_requested): Consider target as well. Pass
13979 thread_info pointer to clear_inline_frame_state instead of ptid.
13980 (infrun_thread_thread_exit): Consider target as well.
13981 (random_pending_event_thread): New inferior parameter. Use it.
13982 (do_target_wait): Rename to ...
13983 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13984 down.
13985 (threads_are_resumed_pending_p, do_target_wait): New.
13986 (prepare_for_detach): Adjust calls.
13987 (wait_for_inferior): New inferior parameter. Handle it. Use
13988 do_target_wait_1 instead of do_target_wait.
13989 (fetch_inferior_event): Adjust. Switch to representative
13990 inferior. Pass target down.
13991 (set_last_target_status): Add process_stratum_target parameter.
13992 Save target in global.
13993 (get_last_target_status): Add process_stratum_target parameter and
13994 handle it.
13995 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13996 (context_switch): Check inferior_ptid == null_ptid before calling
13997 inferior_thread().
13998 (get_inferior_stop_soon): Pass down target.
13999 (wait_one): Rename to ...
14000 (poll_one_curr_target): ... this.
14001 (struct wait_one_event): New.
14002 (wait_one): New.
14003 (stop_all_threads): Adjust.
14004 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14005 event's target.
14006 (switch_back_to_stepped_thread): Also consider target.
14007 (print_stop_event): Update.
14008 (normal_stop): Update. Also consider the resume target.
14009 * infrun.h (wait_for_inferior): Remove declaration.
14010 (user_visible_resume_target): New declaration.
14011 (get_last_target_status, set_last_target_status): New
14012 process_stratum_target parameter.
14013 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14014 process_stratum_target parameter, and use it.
14015 (clear_inline_frame_state (thread_info*)): New.
14016 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14017 process_stratum_target parameter.
14018 (clear_inline_frame_state (thread_info*)): Declare.
14019 * linux-fork.c (delete_checkpoint_command): Pass target down to
14020 find_thread_ptid.
14021 (checkpoint_command): Adjust.
14022 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14023 instead of just tweaking inferior_ptid.
14024 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14025 (exit_lwp): Pass target down to find_thread_ptid.
14026 (attach_proc_task_lwp_callback): Pass target down to
14027 add_thread/set_running/set_executing.
14028 (linux_nat_target::attach): Pass target down to
14029 thread_change_ptid.
14030 (get_detach_signal): Pass target down to find_thread_ptid.
14031 Consider last target status's target.
14032 (linux_resume_one_lwp_throw, resume_lwp)
14033 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14034 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14035 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14036 (linux_nat_target::async_wait_fd): New.
14037 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14038 target down.
14039 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14040 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14041 * linux-thread-db.c (struct thread_db_info::process_target): New
14042 field.
14043 (add_thread_db_info): Save target.
14044 (get_thread_db_info): New process_stratum_target parameter. Also
14045 match target.
14046 (delete_thread_db_info): New process_stratum_target parameter.
14047 Also match target.
14048 (thread_from_lwp): Adjust to pass down target.
14049 (thread_db_notice_clone): Pass down target.
14050 (check_thread_db_callback): Pass down target.
14051 (try_thread_db_load_1): Always push the thread_db target.
14052 (try_thread_db_load, record_thread): Pass target down.
14053 (thread_db_target::detach): Pass target down. Always unpush the
14054 thread_db target.
14055 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14056 target down. Always unpush the thread_db target.
14057 (find_new_threads_callback, thread_db_find_new_threads_2)
14058 (thread_db_target::update_thread_list): Pass target down.
14059 (thread_db_target::pid_to_str): Pass current inferior down.
14060 (thread_db_target::get_thread_local_address): Pass target down.
14061 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14062 target down.
14063 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14064 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14065 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14066 (procfs_init_inferior): Rename to ...
14067 (procfs_target::procfs_init_inferior): ... this and adjust.
14068 (procfs_target::create_inferior, procfs_notice_thread)
14069 (procfs_do_thread_registers): Adjust.
14070 * ppc-fbsd-tdep.c: Include "inferior.h".
14071 (ppcfbsd_get_thread_local_address): Pass down target.
14072 * proc-service.c (ps_xfer_memory): Switch current inferior and
14073 program space as well.
14074 (get_ps_regcache): Pass target down.
14075 * process-stratum-target.c
14076 (process_stratum_target::thread_address_space)
14077 (process_stratum_target::thread_architecture): Pass target down.
14078 * process-stratum-target.h
14079 (process_stratum_target::threads_executing): New field.
14080 (as_process_stratum_target): New.
14081 * ravenscar-thread.c
14082 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14083 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14084 down.
14085 * record-btrace.c (record_btrace_target::info_record): Adjust.
14086 (record_btrace_target::record_method)
14087 (record_btrace_target::record_is_replaying)
14088 (record_btrace_target::fetch_registers)
14089 (get_thread_current_frame_id, record_btrace_target::resume)
14090 (record_btrace_target::wait, record_btrace_target::stop): Pass
14091 target down.
14092 * record-full.c (record_full_wait_1): Switch to event thread.
14093 Pass target down.
14094 * regcache.c (regcache::regcache)
14095 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14096 process_stratum_target parameter and handle it.
14097 (current_thread_target): New global.
14098 (get_thread_regcache): Add process_stratum_target parameter and
14099 handle it. Switch inferior before calling target method.
14100 (get_thread_regcache): Pass target down.
14101 (get_thread_regcache_for_ptid): Pass target down.
14102 (registers_changed_ptid): Add process_stratum_target parameter and
14103 handle it.
14104 (registers_changed_thread, registers_changed): Pass target down.
14105 (test_get_thread_arch_aspace_regcache): New.
14106 (current_regcache_test): Define a couple local test_target_ops
14107 instances and use them for testing.
14108 (readwrite_regcache): Pass process_stratum_target parameter.
14109 (cooked_read_test, cooked_write_test): Pass mock_target down.
14110 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14111 (get_thread_arch_aspace_regcache): Add process_stratum_target
14112 parameter.
14113 (regcache::target): New method.
14114 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14115 (regcache::registers_changed_ptid): Add process_stratum_target
14116 parameter.
14117 (regcache::m_target): New field.
14118 (registers_changed_ptid): Add process_stratum_target parameter.
14119 * remote.c (remote_state::supports_vCont_probed): New field.
14120 (remote_target::async_wait_fd): New method.
14121 (remote_unpush_and_throw): Add remote_target parameter.
14122 (get_current_remote_target): Adjust.
14123 (remote_target::remote_add_inferior): Push target.
14124 (remote_target::remote_add_thread)
14125 (remote_target::remote_notice_new_inferior)
14126 (get_remote_thread_info): Pass target down.
14127 (remote_target::update_thread_list): Skip threads of inferiors
14128 bound to other targets. (remote_target::close): Don't discard
14129 inferiors. (remote_target::add_current_inferior_and_thread)
14130 (remote_target::process_initial_stop_replies)
14131 (remote_target::start_remote)
14132 (remote_target::remote_serial_quit_handler): Pass down target.
14133 (remote_target::remote_unpush_target): New remote_target
14134 parameter. Unpush the target from all inferiors.
14135 (remote_target::remote_unpush_and_throw): New remote_target
14136 parameter. Pass it down.
14137 (remote_target::open_1): Check whether the current inferior has
14138 execution instead of checking whether any inferior is live. Pass
14139 target down.
14140 (remote_target::remote_detach_1): Pass down target. Use
14141 remote_unpush_target.
14142 (extended_remote_target::attach): Pass down target.
14143 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14144 (remote_target::append_resumption): Pass down target.
14145 (remote_target::append_pending_thread_resumptions)
14146 (remote_target::remote_resume_with_hc, remote_target::resume)
14147 (remote_target::commit_resume): Pass down target.
14148 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14149 (remote_target::interrupt_query)
14150 (remote_target::remove_new_fork_children)
14151 (remote_target::check_pending_events_prevent_wildcard_vcont)
14152 (remote_target::remote_parse_stop_reply)
14153 (remote_target::process_stop_reply): Pass down target.
14154 (first_remote_resumed_thread): New remote_target parameter. Pass
14155 it down.
14156 (remote_target::wait_as): Pass down target.
14157 (unpush_and_perror): New remote_target parameter. Pass it down.
14158 (remote_target::readchar, remote_target::remote_serial_write)
14159 (remote_target::getpkt_or_notif_sane_1)
14160 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14161 down target.
14162 (remote_target::mourn_inferior): Pass down target. Use
14163 remote_unpush_target.
14164 (remote_target::core_of_thread)
14165 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14166 (remote_target::pid_to_exec_file)
14167 (remote_target::thread_handle_to_thread_info): Pass down target.
14168 (remote_target::async_wait_fd): New.
14169 * riscv-fbsd-tdep.c: Include "inferior.h".
14170 (riscv_fbsd_get_thread_local_address): Pass down target.
14171 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14172 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14173 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14174 Adjust.
14175 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14176 * solib-svr4.c (enable_break): Pass down target.
14177 * spu-multiarch.c (parse_spufs_run): Pass down target.
14178 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14179 * target-delegates.c: Regenerate.
14180 * target.c (g_target_stack): Delete.
14181 (current_top_target): Return the current inferior's top target.
14182 (target_has_execution_1): Refer to the passed-in inferior's top
14183 target.
14184 (target_supports_terminal_ours): Check whether the initial
14185 inferior was already created.
14186 (decref_target): New.
14187 (target_stack::push): Incref/decref the target.
14188 (push_target, push_target, unpush_target): Adjust.
14189 (target_stack::unpush): Defref target.
14190 (target_is_pushed): Return bool. Adjust to refer to the current
14191 inferior's target stack.
14192 (dispose_inferior): Delete, and inline parts ...
14193 (target_preopen): ... here. Only dispose of the current inferior.
14194 (target_detach): Hold strong target reference while detaching.
14195 Pass target down.
14196 (target_thread_name): Add assertion.
14197 (target_resume): Pass down target.
14198 (target_ops::beneath, find_target_at): Adjust to refer to the
14199 current inferior's target stack.
14200 (get_dummy_target): New.
14201 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14202 has a thread running.
14203 (initialize_targets): Rename to ...
14204 (_initialize_target): ... this.
14205 * target.h: Include "gdbsupport/refcounted-object.h".
14206 (struct target_ops): Inherit refcounted_object.
14207 (target_ops::shortname, target_ops::longname): Make const.
14208 (target_ops::async_wait_fd): New method.
14209 (decref_target): Declare.
14210 (struct target_ops_ref_policy): New.
14211 (target_ops_ref): New typedef.
14212 (get_dummy_target): Declare function.
14213 (target_is_pushed): Return bool.
14214 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14215 (all_matching_threads_iterator::all_matching_threads_iterator):
14216 Handle filter target.
14217 * thread-iter.h (struct all_matching_threads_iterator, struct
14218 all_matching_threads_range, class all_non_exited_threads_range):
14219 Filter by target too. Remove explicit.
14220 * thread.c (threads_executing): Delete.
14221 (inferior_thread): Pass down current inferior.
14222 (clear_thread_inferior_resources): Pass down thread pointer
14223 instead of ptid_t.
14224 (add_thread_silent, add_thread_with_info, add_thread): Add
14225 process_stratum_target parameter. Use it for thread and inferior
14226 searches.
14227 (is_current_thread): New.
14228 (thread_info::deletable): Use it.
14229 (find_thread_ptid, thread_count, in_thread_list)
14230 (thread_change_ptid, set_resumed, set_running): New
14231 process_stratum_target parameter. Pass it down.
14232 (set_executing): New process_stratum_target parameter. Pass it
14233 down. Adjust reference to 'threads_executing'.
14234 (threads_are_executing): New process_stratum_target parameter.
14235 Adjust reference to 'threads_executing'.
14236 (set_stop_requested, finish_thread_state): New
14237 process_stratum_target parameter. Pass it down.
14238 (switch_to_thread): Also match inferior.
14239 (switch_to_thread): New process_stratum_target parameter. Pass it
14240 down.
14241 (update_threads_executing): Reimplement.
14242 * top.c (quit_force): Pop targets from all inferior.
14243 (gdb_init): Don't call initialize_targets.
14244 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14245 Declare.
14246 (windows_add_thread, windows_delete_thread): Adjust.
14247 (get_windows_debug_event): Rename to ...
14248 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14249 * tracefile-tfile.c (tfile_target_open): Pass down target.
14250 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14251 Forward declare.
14252 (switch_to_thread): Add process_stratum_target parameter.
14253 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14254 parameter. Use it.
14255 (mi_on_resume): Pass target down.
14256 * nat/fork-inferior.c (startup_inferior): Add
14257 process_stratum_target parameter. Pass it down.
14258 * nat/fork-inferior.h (startup_inferior): Add
14259 process_stratum_target parameter.
14260 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14261
75c6c844
PA
142622020-01-10 Pedro Alves <palves@redhat.com>
14263
14264 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14265 directly. Instead find the first thread in the thread list and
14266 use switch_to_thread.
14267
78f2c40a
PA
142682020-01-10 Pedro Alves <palves@redhat.com>
14269
14270 * remote.c (remote_target::remote_add_inferior): Don't bind a
14271 process to the current inferior if the current inferior is already
14272 bound to a process.
14273
e7af6c70
TBA
142742020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14275 Pedro Alves <palves@redhat.com>
14276
14277 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14278 If no process is specified, return null_ptid instead of
14279 inferior_ptid.
14280 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14281 TARGET_WAITKIND_SIGNALLED with no pid.
14282
31ba933e
PA
142832020-01-10 Pedro Alves <palves@redhat.com>
14284
14285 * remote.c (first_remote_resumed_thread): New.
14286 (remote_target::wait_as): Use it as default event_ptid instead of
14287 inferior_ptid.
14288
735fc2ca
PA
142892020-01-10 Pedro Alves <palves@redhat.com>
14290
14291 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14292
c17e02e1
PA
142932020-01-10 Pedro Alves <palves@redhat.com>
14294
14295 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14296 not -1.
14297
ab1ddbcf
PA
142982020-01-10 Pedro Alves <palves@redhat.com>
14299
14300 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14301 ptid to get_last_target_status.
14302 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14303 ptid to get_last_target_status.
14304 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14305 get_last_target_status.
14306 (info_program_command): Don't pass a target_waitstatus to
14307 get_last_target_status.
14308 * infrun.c (init_wait_for_inferior): Use
14309 nullify_last_target_wait_ptid.
14310 (get_last_target_status): Handle nullptr arguments.
14311 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14312 (print_stop_event): Don't pass a ptid to get_last_target_status.
14313 (normal_stop): Don't pass a ptid to get_last_target_status.
14314 * infrun.h (get_last_target_status, set_last_target_status): Move
14315 comments here and update.
14316 (nullify_last_target_wait_ptid): Declare.
14317 * linux-fork.c (fork_load_infrun_state): Remove local extern
14318 declaration of nullify_last_target_wait_ptid.
14319 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14320 to get_last_target_status.
14321
f3f8ece4
PA
143222020-01-10 Pedro Alves <palves@redhat.com>
14323
14324 * gdbthread.h (scoped_restore_current_thread)
14325 <dont_restore, restore, m_dont_restore>: Declare.
14326 * thread.c (thread_alive): Add assertion. Return bool.
14327 (switch_to_thread_if_alive): New.
14328 (prune_threads): Switch inferior/thread.
14329 (print_thread_info_1): Switch thread before calling target methods.
14330 (scoped_restore_current_thread::restore): New, factored out from
14331 ...
14332 (scoped_restore_current_thread::~scoped_restore_current_thread):
14333 ... this.
14334 (scoped_restore_current_thread::scoped_restore_current_thread):
14335 Add assertion.
14336 (thread_apply_all_command, thread_select): Use
14337 switch_to_thread_if_alive.
14338 * infrun.c (proceed, restart_threads, handle_signal_stop)
14339 (switch_back_to_stepped_thread): Switch current thread before
14340 calling target methods.
14341
db2d40f7
PA
143422020-01-10 Pedro Alves <palves@redhat.com>
14343
14344 * inferior.c (switch_to_inferior_no_thread): New function,
14345 factored out from ...
14346 (inferior_command): ... here.
14347 * inferior.h (switch_to_inferior_no_thread): Declare.
14348 * mi/mi-main.c (run_one_inferior): Use
14349 switch_to_inferior_no_thread.
14350
bd420a2d
PA
143512020-01-10 Pedro Alves <palves@redhat.com>
14352
14353 * infcmd.c (kill_command): Remove dead code.
14354
ddf5db90
PA
143552020-01-10 Pedro Alves <palves@redhat.com>
14356
14357 * remote.c (remote_target::mourn_inferior): No longer check
14358 whether the target is running.
14359
5018ce90
PA
143602020-01-10 Pedro Alves <palves@redhat.com>
14361
14362 * corelow.c (core_target::has_execution): Change parameter type to
14363 inferior pointer.
14364 * inferior.c (number_of_live_inferiors): Use
14365 inferior::has_execution instead of target_has_execution_1.
14366 * inferior.h (inferior::has_execution): New.
14367 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14368 inferior::has_execution instead of target_has_execution_1.
14369 * process-stratum-target.c
14370 (process_stratum_target::has_execution): Change parameter type to
14371 inferior pointer. Check the inferior's PID instead of
14372 inferior_ptid.
14373 * process-stratum-target.h
14374 (process_stratum_target::has_execution): Change parameter type to
14375 inferior pointer.
14376 * record-full.c (record_full_core_target::has_execution): Change
14377 parameter type to inferior pointer.
14378 * target.c (target_has_execution_1): Change parameter type to
14379 inferior pointer.
14380 (target_has_execution_current): Adjust.
14381 * target.h (target_ops::has_execution): Change parameter type to
14382 inferior pointer.
14383 (target_has_execution_1): Change parameter type to inferior
14384 pointer. Change return type to bool.
14385 * tracefile.h (tracefile_target::has_execution): Change parameter
14386 type to inferior pointer.
14387
74375d18
PA
143882020-01-10 Pedro Alves <palves@redhat.com>
14389
14390 * exceptions.c (print_flush): Remove current_top_target() check.
14391
acdf84a6
PA
143922020-01-10 Pedro Alves <palves@redhat.com>
14393
14394 * remote.c (show_remote_exec_file): Show the current inferior's
14395 exec-file instead of the command variable's value.
14396
ec506636
PA
143972020-01-10 Pedro Alves <palves@redhat.com>
14398
14399 * record-full.c (record_full_resume_ptid): New global.
14400 (record_full_target::resume): Set it.
14401 (record_full_wait_1): Use record_full_resume_ptid instead of
14402 inferior_ptid.
14403
873657b9
PA
144042020-01-10 Pedro Alves <palves@redhat.com>
14405
14406 * gdbthread.h (scoped_restore_current_thread)
14407 <dont_restore, restore, m_dont_restore>: Declare.
14408 * thread.c (thread_alive): Add assertion. Return bool.
14409 (switch_to_thread_if_alive): New.
14410 (prune_threads): Switch inferior/thread.
14411 (print_thread_info_1): Switch thread before calling target methods.
14412 (scoped_restore_current_thread::restore): New, factored out from
14413 ...
14414 (scoped_restore_current_thread::~scoped_restore_current_thread):
14415 ... this.
14416 (scoped_restore_current_thread::scoped_restore_current_thread):
14417 Add assertion.
14418 (thread_apply_all_command, thread_select): Use
14419 switch_to_thread_if_alive.
14420
7f0ae84c
GB
144212020-01-10 George Barrett <bob@bob131.so>
14422
14423 * stap-probe.c (stap_modify_semaphore): Don't check for null
14424 semaphores.
14425 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14426 for null semaphores.
14427
f5a7c406
AB
144282020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14429
14430 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14431 all source windows, and maintain horizontal scroll status while
14432 doing so.
14433
9ae6bf64
TT
144342020-01-09 Tom Tromey <tom@tromey.com>
14435
14436 PR tui/18932:
14437 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14438 update_source_window, not print_source_lines.
14439
b2efe70c
AB
144402020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14441
14442 * tui/tui.c (tui_enable): Register tui hooks after calling
14443 tui_display_main.
14444
5f23a082
CB
144452020-01-09 Christian Biesinger <cbiesinger@google.com>
14446
14447 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14448
3061113b
SM
144492020-01-08 Simon Marchi <simon.marchi@efficios.com>
14450
14451 * thread.c (print_thread_info_1): Fix indentation.
14452
57d75002
CB
144532020-01-09 Christian Biesinger <cbiesinger@google.com>
14454
14455 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14456 unique_xmalloc_ptr outside the if to always free the demangled name.
14457
6a053cb1
TT
144582020-01-08 Tom Tromey <tromey@adacore.com>
14459
14460 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14461 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14462 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14463 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14464 Remove.
14465 (section_offsets): New typedef.
14466 * symtab.c (fixup_section, get_msymbol_address): Update.
14467 * symmisc.c (dump_msymbols): Update.
14468 * symfile.h (relative_addr_info_to_section_offsets)
14469 (symfile_map_offsets_to_segments): Update.
14470 * symfile.c (build_section_addr_info_from_objfile)
14471 (init_objfile_sect_indices): Update.
14472 (struct place_section_arg): Change type of "offsets".
14473 (place_section): Update.
14474 (relative_addr_info_to_section_offsets): Change type of
14475 "section_offsets". Remove "num_sections" parameter.
14476 (default_symfile_offsets, syms_from_objfile_1)
14477 (set_objfile_default_section_offset): Update.
14478 (reread_symbols): No need to preserve section offsets by hand.
14479 (symfile_map_offsets_to_segments): Change type of "offsets".
14480 * stap-probe.c (relocate_address): Update.
14481 * stabsread.h (process_one_symbol): Update.
14482 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14483 (solib_target_relocate_section_addresses): Update.
14484 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14485 Update.
14486 * solib-frv.c (frv_relocate_main_executable): Update.
14487 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14488 * solib-aix.c (solib_aix_get_section_offsets): Change return
14489 type.
14490 (solib_aix_solib_create_inferior_hook): Update.
14491 * remote.c (remote_target::get_offsets): Update.
14492 * psymtab.c (find_pc_sect_psymtab): Update.
14493 * psympriv.h (struct partial_symbol) <address, text_low,
14494 text_high>: Update.
14495 * objfiles.h (obj_section_offset): Update.
14496 (struct objfile) <section_offsets>: Change type.
14497 <num_sections>: Remove.
14498 (objfile_relocate): Update.
14499 * objfiles.c (entry_point_address_query): Update
14500 (relocate_one_symbol): Change type of "section_offsets".
14501 (objfile_relocate1, objfile_relocate1): Change type of
14502 "new_offsets".
14503 (objfile_rebase1): Update.
14504 * mipsread.c (mipscoff_symfile_read): Update.
14505 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14506 parameter.
14507 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14508 (parse_external, psymtab_to_symtab_1): Update.
14509 * machoread.c (macho_symfile_offsets): Update.
14510 * ia64-tdep.c (ia64_find_unwind_table): Update.
14511 * hppa-tdep.c (read_unwind_info): Update.
14512 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14513 * dwarf2read.c (create_addrmap_from_index)
14514 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14515 (process_psymtab_comp_unit_reader, add_partial_symbol)
14516 (add_partial_subprogram, process_full_comp_unit)
14517 (read_file_scope, read_func_scope, read_lexical_block_scope)
14518 (read_call_site_scope, dwarf2_rnglists_process)
14519 (dwarf2_ranges_process, dwarf2_ranges_read)
14520 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14521 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14522 Update.
14523 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14524 Update.
14525 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14526 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14527 (process_one_symbol): Change type of "section_offsets".
14528 * ctfread.c (get_objfile_text_range): Update.
14529 * coffread.c (coff_symtab_read, enter_linenos)
14530 (process_coff_symbol): Update.
14531 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14532 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14533
456e800a
TT
145342020-01-08 Tom Tromey <tromey@adacore.com>
14535
14536 * dwarf2read.c (parse_macro_definition): Use std::string.
14537 (parse_macro_definition): Likewise.
14538
6dfa2fc2
TT
145392020-01-08 Tom Tromey <tromey@adacore.com>
14540
14541 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14542 (ATTR_ALLOC_CHUNK): Remove.
14543
421d1616
TT
145442020-01-08 Tom Tromey <tromey@adacore.com>
14545
14546 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14547
43816ebc
TT
145482020-01-08 Tom Tromey <tromey@adacore.com>
14549
14550 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14551 (dwarf2_compute_name, open_dwo_file): Likewise.
14552 (process_enumeration_scope): Use std::vector.
14553 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14554 (partial_die_info::fixup, dwarf2_start_subfile)
14555 (guess_full_die_structure_name, dwarf2_name): Likewise.
14556 (determine_prefix): Update.
14557 (guess_full_die_structure_name): Make return type const.
14558 (partial_die_full_name): Return unique_xmalloc_ptr.
14559 (DW_FIELD_ALLOC_CHUNK): Remove.
14560
4212d509
TT
145612020-01-07 Tom Tromey <tromey@adacore.com>
14562
14563 PR build/24937:
14564 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14565
06a6207a
JT
145662020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14567
14568 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14569
153d79c4
AB
145702020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14571
14572 * stack.c (print_frame_info): Move disassemble_next_line code
14573 inside source_print block.
14574
66182876
EZ
145752020-01-06 Eli Zaretskii <eliz@gnu.org>
14576
14577 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14578 gdb/signals.h, as we are now using native signal symbols.
14579
cbfa8581
SV
145802020-01-06 Shahab Vahedi <shahab@synopsys.com>
14581
14582 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14583 overflow by an early check of content vs threshold.
aac66a4c 14584 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14585 Likewise.
14586
3f602821
EZ
145872020-01-06 Eli Zaretskii <eliz@gnu.org>
14588
14589 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14590
a08c904d
JT
145912020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14592
14593 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14594 export table if no section contains it's RVA.
14595
89a65580
EZ
145962020-01-06 Eli Zaretskii <eliz@gnu.org>
14597
14598 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14599
8b7fcda2
HD
146002020-01-06 Hannes Domani <ssbssa@yahoo.de>
14601
14602 * source.c (print_source_lines_base): Set last_line_listed.
14603
a61b4f69
SV
146042020-01-06 Shahab Vahedi <shahab@synopsys.com>
14605
14606 * tui/tui-disasm.c: Remove trailing spaces.
14607
559e7e50
EZ
146082020-01-06 Eli Zaretskii <eliz@gnu.org>
14609 Pedro Alves <palves@redhat.com>
14610
14611 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14612 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14613 (windows_gdb_signal_to_target): New function, uses the above
14614 enumeration to convert GDB internal signal codes to equivalent
14615 Windows codes.
14616 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14617 * windows-nat.c: Include "gdb_wait.h".
14618 (get_windows_debug_event): Extract the fatal exception from the
14619 exit status and convert to the equivalent Posix signal number.
14620 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14621 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14622 * gdbsupport/gdb_wait.c: New file, implements
14623 windows_status_to_termsig.
14624 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14625 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14626
f2302a34
AB
146272020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14628
14629 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14630 show_layout.
14631
6a5206eb
LM
146322020-01-05 Luis Machado <luis.machado@linaro.org>
14633
14634 * aarch64-linux-nat.c
14635 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14636 and bfd_mach_aarch64.
14637
6ec1d75e
PW
146382020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14639
14640 * ui-file.c (stdio_file::can_emit_style_escape)
14641 (tee_file::can_emit_style_escape): Ensure style is used also on
14642 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14643 to gdb_stdout.
14644 * main.c (set_gdb_data_directory): Use file style to output the
14645 warning that the given pathname is not a directory.
14646 * top.c (show_history_filename, gdb_safe_append_history)
14647 (show_gdb_datadir): Use file style.
14648
44f81a76
HD
146492020-01-03 Hannes Domani <ssbssa@yahoo.de>
14650
14651 * solib-target.c (struct lm_info_target):
14652 Change offsets to be a unique_xmalloc_ptr.
14653 (solib_target_relocate_section_addresses): Update.
14654
25057eb0
HD
146552020-01-03 Hannes Domani <ssbssa@yahoo.de>
14656
14657 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14658
6e2118f5
BE
146592020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14660
14661 * MAINTAINERS (Write After Approval): Add myself.
14662
8133c7dc
LM
146632020-01-02 Luis Machado <luis.machado@linaro.org>
14664
14665 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14666 Cell BE architecture.
14667 * target.h (struct target_ops) <thread_architecture>: Likewise.
14668
48189bec
HD
146692020-01-01 Hannes Domani <ssbssa@yahoo.de>
14670
14671 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14672
ead1063b
HD
146732020-01-01 Hannes Domani <ssbssa@yahoo.de>
14674
14675 * MAINTAINERS (Write After Approval): Add myself.
14676
e5d78223
JB
146772020-01-01 Joel Brobecker <brobecker@adacore.com>
14678
14679 * gdbarch.sh: Update copyright year range of generated files.
14680
b811d2c2
JB
146812020-01-01 Joel Brobecker <brobecker@adacore.com>
14682
14683 Update copyright year range in all GDB files.
14684
5f4def5c
JB
146852020-01-01 Joel Brobecker <brobecker@adacore.com>
14686
14687 * copyright.py: Convert to Python 3.
14688
51fd4002
JB
146892020-01-01 Joel Brobecker <brobecker@adacore.com>
14690
14691 * copyright.py: Adapt after move of gnulib directory from gdb
14692 directory to toplevel directory.
14693
5fb651f2
JB
146942020-01-01 Joel Brobecker <brobecker@adacore.com>
14695
14696 * copyright.py (main): Exit if run from the wrong directory.
14697
5dd8bf88
JB
146982020-01-01 Joel Brobecker <brobecker@adacore.com>
14699
14700 * top.c (print_gdb_version): Change copyright year to 2020.
14701
9f71dacb 147022020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14703
9f71dacb 14704 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14705
9f71dacb 14706For older changes see ChangeLog-2019.
c906108c
SS
14707\f
14708Local Variables:
14709mode: change-log
14710left-margin: 8
14711fill-column: 74
14712version-control: never
57da7796 14713coding: utf-8
c906108c 14714End: