]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: move debug_prefixed_vprintf here
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ba988419
SM
12020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
4 * debug.h: Remove.
5 * infrun.c: Include gdbsupport/common-debug.h.
6 * linux-nat.c: Likewise.
7
db20ebdf
SM
82020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
9
10 * async-event.h (create_async_signal_handler): Add name
11 parameter.
12 (create_async_event_handler): Likewise.
13 * async-event.c (struct async_signal_handler) <name>: New field.
14 (struct async_event_handler) <name>: New field.
15 (create_async_signal_handler): Assign name.
16 (create_async_event_handler): Assign name.
17 * event-top.c (async_init_signals): Pass name when creating
18 handler.
19 * infrun.c (_initialize_infrun): Likewise.
20 * record-btrace.c (record_btrace_push_target): Likewise.
21 * record-full.c (record_full_open): Likewise.
22 * remote-notif.c (remote_notif_state_allocate): Likewise.
23 * remote.c (remote_target::open_1): Likewise.
24 * tui/tui-win.c (tui_initialize_win): Likewise.
25
2554f6f5
SM
262020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * async-event.c (initialize_async_signal_handlers): Pass name to
29 add_file_handler
30 * event-top.c (ui_register_input_event_handler): Likewise.
31 * linux-nat.c (linux_nat_target::async): Likewise.
32 * run-on-main-thread.c (_initialize_run_on_main_thread):
33 Likewise
34 * ser-base.c (reschedule): Likewise.
35 (ser_base_async): Likewise.
36 * tui/tui-io.c: Likewise.
37 * top.h (struct ui) <num>: New field.
38 * top.c (highest_ui_num): New variable.
39 (ui::ui): Initialize num.
40
a7aba266
SM
412020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
42
43 * observable.h <inferior_created>: Remove parameters. Update all
44 listeners.
45 * inferior.h (post_create_inferior): Remove target parameter.
46 Update all callers.
47
048fde1e 482020-10-02 Nitika Achra <Nitika.Achra@amd.com>
49
50 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
51 and DW_MACRO_undef_strx.
52 (dwarf_decode_macros): Likewise
53 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
54 which is the value of DW_AT_str_offsets_base.
55 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
56 str_offsets_base.
57
064280be
KR
582020-10-01 Kamil Rytarowski <n54@gmx.com>
59
60 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
61
6ff33035
KR
622020-10-01 Kamil Rytarowski <n54@gmx.com>
63
64 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
65 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
66
1eb6eb79
KR
672020-10-01 Kamil Rytarowski <n54@gmx.com>
68
69 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
70
95eb9e54
TV
712020-09-30 Tom de Vries <tdevries@suse.de>
72
73 PR symtab/26683
74 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
75
cae21f8e
TT
762020-09-30 Tom Tromey <tromey@adacore.com>
77
78 * dwarf2/read.c (handle_variant): Use constant_value.
79
529908cb
TT
802020-09-29 Tom Tromey <tom@tromey.com>
81
82 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
83 (read_file_scope, dwarf2_get_pc_bounds)
84 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
85 (read_structure_type, handle_struct_member_die)
86 (read_enumeration_type, read_array_type, read_set_type)
87 (read_tag_pointer_type, read_tag_reference_type)
88 (read_subroutine_type, read_base_type, read_subrange_type)
89 (read_full_die_1, partial_die_info::read)
90 (partial_die_info::read, by, new_symbol)
91 (dwarf2_const_value_data, dwarf2_const_value_attr)
92 (dump_die_shallow, dwarf2_fetch_constant_bytes)
93 (prepare_one_comp_unit): Update.
94 * dwarf2/attribute.h (DW_UNSND): Remove.
95
c45bc3f8
TT
962020-09-29 Tom Tromey <tom@tromey.com>
97
98 * dwarf2/read.c (read_func_scope, prototyped_function_p)
99 (read_subroutine_type, partial_die_info::read)
100 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
101 (dwarf2_add_member_fn): Update.
102 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
103 * dwarf2/attribute.c (attribute::as_boolean): New method.
104
23dca5c3
TT
1052020-09-29 Tom Tromey <tom@tromey.com>
106
107 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
108 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
109 method.
110 * dwarf2/attribute.c (attribute::as_virtuality): New method.
111
52c14d11
TT
1122020-09-29 Tom Tromey <tom@tromey.com>
113
114 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
115 the attribute's form.
116
e8e5c158
TT
1172020-09-29 Tom Tromey <tom@tromey.com>
118
119 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
120 (dwarf2_add_member_fn): Update.
121 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
122 * dwarf2/attribute.c (attribute::defaulted): New method, from
123 is_valid_DW_AT_defaulted.
124
d4df075e
TT
1252020-09-29 Tom Tromey <tom@tromey.com>
126
127 * dwarf2/read.c (dw2_get_file_names_reader)
128 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
129 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
130 (dwarf2_symbol_mark_computed): Use as_unsigned.
131 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
132 method.
133 <form_is_section_offset>: Update comment.
134
bf23a268
TT
1352020-09-29 Tom Tromey <tom@tromey.com>
136
137 * dwarf2/read.c (dwarf2_access_attribute): Rename from
138 dwarf2_default_access_attribute. Look up attribute.
139 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
140 Update.
141
7a5f294d
TT
1422020-09-29 Tom Tromey <tom@tromey.com>
143
144 * dwarf2/read.c (skip_one_die): Update.
145 (read_full_die_1): Change how reprocessing is done.
146 (partial_die_info::read): Update.
147 (read_attribute_value): Remove need_reprocess parameter.
148 (read_attribute): Likewise.
149 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
150 New method.
151
36d378cf
TT
1522020-09-29 Tom Tromey <tom@tromey.com>
153
154 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
155 (dwarf2_const_value_attr, dump_die_shallow)
156 (dwarf2_fetch_constant_bytes): Update.
157 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
158 comment.
159 <set_address>: New method.
160 (DW_ADDR): Remove.
161 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
162 (attribute::as_string, attribute::as_address): Add assert.
163
fe56917a
TT
1642020-09-29 Tom Tromey <tom@tromey.com>
165
166 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
167 (read_attribute_reprocess, read_attribute_value): Update.
168 (read_attribute): Clear requires_reprocessing.
169 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
170 form_requires_reprocessing>: New methods.
171 <string_init>: Clear requires_reprocessing.
172 <set_unsigned_reprocess>: New method.
173 <name>: Shrink by one bit.
174 <requires_reprocessing>: New member.
175 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
176 method.
177
414ad644
TT
1782020-09-29 Tom Tromey <tom@tromey.com>
179
180 * dwarf2/read.c (read_attribute_value): Update.
181 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
182 set_unsigned>: New methods.
183 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
184
1bc397c5
TT
1852020-09-29 Tom Tromey <tom@tromey.com>
186
187 * dwarf2/read.c (get_alignment, read_array_order)
188 (read_attribute_value, dwarf2_const_value_attr)
189 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
190 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
191 New methods.
192 (DW_SND): Remove.
193
630ed6b9
TT
1942020-09-29 Tom Tromey <tom@tromey.com>
195
196 * dwarf2/read.c (read_attribute_value, lookup_die_type)
197 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
198 Update.
199 * dwarf2/attribute.h (struct attribute) <as_signature,
200 set_signature>: New methods.
201 (DW_SIGNATURE): Remove.
202
9d2246fc
TT
2032020-09-29 Tom Tromey <tom@tromey.com>
204
205 * dwarf2/read.c (read_call_site_scope)
206 (handle_data_member_location, dwarf2_add_member_fn)
207 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
208 (partial_die_info::read, read_attribute_value)
209 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
210 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
211 (dwarf2_symbol_mark_computed): Update.
212 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
213 methods.
214 (DW_BLOCK): Remove.
215 * dwarf2/attribute.c (attribute::form_is_block): Add
216 DW_FORM_data16.
217
c6481205
TT
2182020-09-29 Tom Tromey <tom@tromey.com>
219
220 * dwarf2/read.c (read_cutu_die_from_dwo)
221 (read_attribute_reprocess, read_attribute_value, read_attribute)
222 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
223 (dwarf2_fetch_constant_bytes): Update.
224 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
225 <set_string_noncanonical, set_string_canonical>: New methods.
226 <string_is_canonical>: Update comment.
227 <canonical_string_p>: Add assert.
228 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
229 * dwarf2/attribute.c (attribute::form_is_string): New method.
230 (attribute::string): Use it.
231
3b64bf15
TT
2322020-09-29 Tom Tromey <tom@tromey.com>
233
234 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
235 (dump_die_shallow): Use canonical_string_p.
236 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
237 method.
238
2c830f54
TT
2392020-09-29 Tom Tromey <tom@tromey.com>
240
241 * dwarf2/read.c (partial_die_info::read)
242 (dwarf2_const_value_attr, anonymous_struct_prefix, )
243 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
244 attribute::as_string.
245
6c412691
TT
2462020-09-29 Tom Tromey <tom@tromey.com>
247
248 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
249 DW_ADDR.
250 (attribute::string): Don't use DW_STRING.
251 (attribute::get_ref_die_offset): Don't use DW_UNSND.
252 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
253
95f982e5
TT
2542020-09-29 Tom Tromey <tom@tromey.com>
255
256 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
257 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
258 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
259 * dwarf2/attribute.h (struct attribute): Rename methods.
260 * dwarf2/attribute.c (attribute::as_address): Rename from
261 value_as_address.
262 (attribute::as_string): Rename from value_as_string.
263
f800b00e
TT
2642020-09-29 Tom Tromey <tom@tromey.com>
265
266 * dwarf2/read.c (partial_die_info::read) <case
267 DW_AT_linkage_name>: Use value_as_string.
268 (dwarf2_string_attr): Use value_as_string.
269 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
270 method.
271 * dwarf2/attribute.c (attribute::value_as_string): New method.
272
de38d64a
PA
2732020-09-29 Pedro Alves <pedro@palves.net>
274
275 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
276 defined before using '#pragma GCC diagnostic' instead of checking
277 __clang__.
278
9aed480c
TT
2792020-09-28 Tom Tromey <tom@tromey.com>
280
281 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
282 (handle_signal_stop): Update.
283 * procfs.c (procfs_target::insert_watchpoint): Update.
284 * target.h (target_have_steppable_watchpoint): Now a function.
285
8a3ecb79
TT
2862020-09-28 Tom Tromey <tom@tromey.com>
287
288 * infrun.c (set_schedlock_func): Update.
289 * target.h (target_can_lock_scheduler): Now a function.
290
55f6301a
TT
2912020-09-28 Tom Tromey <tom@tromey.com>
292
293 * inferior.h (class inferior) <has_execution>: Update.
294 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
295 * valops.c (find_function_in_inferior)
296 (value_allocate_space_in_inferior): Update.
297 * top.c (kill_or_detach): Update.
298 * target.c (target_preopen, set_target_permissions): Update.
299 (target_has_execution_current): Remove.
300 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
301 Update.
302 * solib.c (update_solib_list, reload_shared_libraries): Update.
303 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
304 * solib-dsbt.c (enable_break): Update.
305 * score-tdep.c (score7_fetch_inst): Update.
306 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
307 Update.
308 * remote.c (remote_target::start_remote)
309 (remote_target::remote_check_symbols, remote_target::open_1)
310 (remote_target::remote_detach_1, remote_target::verify_memory)
311 (remote_target::xfer_partial, remote_target::read_description)
312 (remote_target::get_min_fast_tracepoint_insn_len): Update.
313 * record-full.c (record_full_open_1): Update.
314 * record-btrace.c (record_btrace_target_open): Update.
315 * objc-lang.c (lookup_objc_class, lookup_child_selector)
316 (value_nsstring): Update.
317 * linux-thread-db.c (add_thread_db_info)
318 (thread_db_find_new_threads_silently, check_thread_db_callback)
319 (try_thread_db_load_1, record_thread): Update.
320 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
321 Update.
322 * linux-fork.c (checkpoint_command): Update.
323 * infrun.c (set_non_stop, set_observer_mode)
324 (check_multi_target_resumption, for_each_just_stopped_thread)
325 (maybe_remove_breakpoints, normal_stop)
326 (class infcall_suspend_state): Update.
327 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
328 (info_program_command, attach_command): Update.
329 * infcall.c (call_function_by_hand_dummy): Update.
330 * inf-loop.c (inferior_event_handler): Update.
331 * gcore.c (gcore_command, derive_heap_segment): Update.
332 * exec.c (exec_file_command): Update.
333 * eval.c (evaluate_subexp): Update.
334 * compile/compile.c (compile_to_object): Update.
335 * cli/cli-dump.c (restore_command): Update.
336 * breakpoint.c (update_watchpoint)
337 (update_inserted_breakpoint_locations)
338 (insert_breakpoint_locations, get_bpstat_thread): Update.
339 * target.h (target_has_execution): Remove macro.
340 (target_has_execution_current): Don't declare.
341 (target_has_execution): Rename from target_has_execution_1. Add
342 argument default.
343
05374cfd
TT
3442020-09-28 Tom Tromey <tom@tromey.com>
345
346 * mi/mi-main.c (exec_reverse_continue)
347 (mi_cmd_list_target_features): Update.
348 * infrun.c (set_exec_direction_func): Update.
349 * target.c (default_execution_direction): Update.
350 * reverse.c (exec_reverse_once): Update.
351 * target.h (target_can_execute_reverse): Now a function.
352
9dccd06e
TT
3532020-09-28 Tom Tromey <tom@tromey.com>
354
355 * tui/tui-regs.c (tui_get_register)
356 (tui_data_window::show_registers): Update.
357 * thread.c (scoped_restore_current_thread::restore)
358 (scoped_restore_current_thread::scoped_restore_current_thread):
359 Update.
360 * regcache-dump.c (regcache_print): Update.
361 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
362 Update.
363 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
364 * mep-tdep.c (current_me_module, current_options): Update.
365 * linux-thread-db.c (thread_db_load): Update.
366 * infcmd.c (registers_info, info_vector_command)
367 (info_float_command): Update.
368 * ia64-tdep.c (ia64_frame_prev_register)
369 (ia64_sigtramp_frame_prev_register): Update.
370 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
371 * gcore.c (derive_stack_segment): Update.
372 * frame.c (get_current_frame, has_stack_frames): Update.
373 * findvar.c (language_defn::read_var_value): Update.
374 * arm-tdep.c (arm_pc_is_thumb): Update.
375 * target.c (target_has_registers): Rename from
376 target_has_registers_1.
377 * target.h (target_has_registers): Remove macro.
378 (target_has_registers): Rename from target_has_registers_1.
379
841de120
TT
3802020-09-28 Tom Tromey <tom@tromey.com>
381
382 * windows-tdep.c (tlb_make_value): Update.
383 * tui/tui-regs.c (tui_data_window::show_registers): Update.
384 * thread.c (scoped_restore_current_thread::restore)
385 (scoped_restore_current_thread::scoped_restore_current_thread)
386 (thread_command): Update.
387 * stack.c (backtrace_command_1, frame_apply_level_command)
388 (frame_apply_all_command, frame_apply_command): Update.
389 * infrun.c (siginfo_make_value, restore_infcall_control_state):
390 Update.
391 * gcore.c (derive_stack_segment): Update.
392 * frame.c (get_current_frame, has_stack_frames): Update.
393 * auxv.c (info_auxv_command): Update.
394 * ada-tasks.c (ada_build_task_list): Update.
395 * target.c (target_has_stack): Rename from target_has_stack_1.
396 * target.h (target_has_stack): Remove macro.
397 (target_has_stack): Rename from target_has_stack_1.
398
a739972c
TT
3992020-09-28 Tom Tromey <tom@tromey.com>
400
401 * target.c (target_has_memory): Rename from target_has_memory_1.
402 * tui/tui-regs.c (tui_data_window::show_registers): Update.
403 * thread.c (scoped_restore_current_thread::restore)
404 (scoped_restore_current_thread::scoped_restore_current_thread):
405 Update.
406 * frame.c (get_current_frame, has_stack_frames): Update.
407 * target.h (target_has_memory): Remove macro.
408 (target_has_memory): Rename from target_has_memory_1.
409
5b8a4776
TT
4102020-09-28 Tom Tromey <tom@tromey.com>
411
412 * target.c (target_has_all_memory_1): Remove.
413 * target.h (target_has_all_memory): Remove define.
414 (target_has_all_memory_1): Don't declare.
415
bd356ec6
SM
4162020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
417
418 * ser-base.c: Adjust comments formatting.
419
2c72d5e5
TT
4202020-09-27 Tom Tromey <tom@tromey.com>
421
422 PR tui/25342:
423 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
424
35a98237
TT
4252020-09-27 Tom Tromey <tom@tromey.com>
426
427 PR tui/25342:
428 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
429
9e820dec
TT
4302020-09-27 Tom Tromey <tom@tromey.com>
431
432 * unittests/tui-selftests.c: Update.
433 * tui/tui-winsource.h (struct tui_source_window_base)
434 <extra_margin, show_line_number, refresh_pad>: New methods.
435 <m_max_length, m_pad>: New members.
436 (tui_copy_source_line): Update.
437 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
438 first_col, line_width, ndigits parameters. Add length.
439 (tui_source_window_base::show_source_line): Write to pad. Line
440 number now 0-based.
441 (tui_source_window_base::refresh_pad): New method.
442 (tui_source_window_base::show_source_content): Write to pad. Call
443 refresh_pad.
444 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
445 not refill.
446 (tui_source_window_base::update_exec_info): Call
447 show_line_number.
448 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
449 method.
450 <m_digits>: New member.
451 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
452 and m_max_length.
453 (tui_source_window::show_line_number): New method.
454 * tui/tui-io.h (tui_puts): Fix comment.
455 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
456 m_max_length.
457
c15c15c8
TT
4582020-09-27 Tom Tromey <tom@tromey.com>
459
460 * tui/tui-winsource.c
461 (tui_source_window_base::set_is_exec_point_at): Don't call
462 show_source_line.
463
149830c1
TT
4642020-09-27 Tom Tromey <tom@tromey.com>
465
466 * python/py-tui.c (class tui_py_window) <refresh_window>: New
467 method.
468 <erase>: Update.
469 <cursor_x, cursor_y>: Remove.
470 <m_inner_window>: New member.
471 (tui_py_window::rerender): Create inner window.
472 (tui_py_window::output): Write to inner window.
473
8f9929bb
GR
4742020-09-26 Gareth Rees <grees@undo.io> (tiny change)
475
476 PR python/26586
477 * cli/cli-script.c (execute_control_commands): don't set
478 instream to nullptr here as this breaks the from_tty argument
479 to gdb.execute in Python.
480 (execute_user_command): set instream to nullptr here instead.
481
956bdb59
SM
4822020-09-25 Simon Marchi <simon.marchi@efficios.com>
483
484 * infrun.h (infrun_debug_printf): Fix formatting.
485 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
486
3b93626b
SJ
4872020-09-25 Saagar Jha <saagar@saagarjha.com>
488
489 * compile/compile-object-load.h (struct munmap_list): Add
490 explicitly-defined move constructor.
491
b551a89f
TT
4922020-09-24 Tom Tromey <tromey@adacore.com>
493
494 PR tui/26638:
495 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
496 method.
497 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
498 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
499 (tui_prev_win): Rewrite.
500
99bb393f
HD
5012020-09-23 Hannes Domani <ssbssa@yahoo.de>
502
503 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
504 in WOW64 processes as SIGINT.
505 * nat/windows-nat.h: Make wow64_process a shared variable.
506 * windows-nat.c: Remove static wow64_process variable.
507
20a5fcbd
TT
5082020-09-23 Tom Tromey <tom@tromey.com>
509
510 PR symtab/25470:
511 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
512 offset and bit size.
513 * printcmd.c (print_scalar_formatted): Handle zero-length
514 integer.
515 (print_scalar_formatted): Use bit_size_differs_p.
516 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
517 constant.
518 (union type_specific): <int_stuff>: New member.
519 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
520 methods.
521 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
522 TYPE_SPECIFIC_FIELD.
523 (recursive_dump_type, copy_type_recursive): Update.
524 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
525 DW_AT_data_bit_offset.
526
bac51ab7
TT
5272020-09-23 Tom Tromey <tom@tromey.com>
528
529 * utils.h (class gdb_argv): Add move operators.
530 <append>: New methods.
531 * compile/compile.c (build_argc_argv): Remove.
532 (compile_args_argc): Remove.
533 (compile_args_argv): Change type.
534 (set_compile_args): Simplify.
535 (append_args): Remove.
536 (filter_args): Remove argcp parameter.
537 (get_args): Return gdb_argv. Simplify.
538 (compile_to_object): Update.
539
92677124
TT
5402020-09-23 Tom Tromey <tom@tromey.com>
541
542 * compile/compile-object-run.c (do_module_cleanup)
543 <~do_module_cleanup> :Remove.
544 (do_module_cleanup): Update.
545 * compile/compile-object-load.h (struct munmap_list): Add move
546 assignment operator.
547 <source_file>: Now a std::string.
548 <munmap_list>: Rename. No longer a pointer.
549 * compile/compile-object-load.c (struct setup_sections_data): Add
550 constructor.
551 <setup_one_section>: Declare.
552 <munmap_list>: Move earlier.
553 <m_bfd>: New member.
554 <m_last_size, m_last_section_first, m_last_prot,
555 m_last_max_alignment>: Rename, add initializers where needed.
556 (setup_sections_data::setup_one_section): Rename from
557 setup_sections. Update.
558 (compile_object_load): Update. Don't use bfd_map_over_sections.
559
e616f60a
TT
5602020-09-23 Tom Tromey <tom@tromey.com>
561
562 * compile/compile-object-run.c (struct do_module_cleanup): Add
563 parameters to constructor. Update destructor.
564 <source_file, scope, scope_data, out_value_type, out_value_addr,
565 munmap_list_head, objfile_name_string>: Remove.
566 <module>: New member.
567 (do_module_cleanup): Update.
568 (compile_object_run): Update.
569
e947a848
TT
5702020-09-23 Tom Tromey <tom@tromey.com>
571
572 * compile/compile.c (eval_compile_command): Update.
573 * compile/compile-object-run.h (compile_object_run): Take a
574 compile_module_up.
575 * compile/compile-object-run.c (compile_object_run): Take a
576 compile_module_up.
577 * compile/compile-object-load.h (struct compile_module): Add
578 constructor, destructor.
579 (compile_module_up): New typedef.
580 (compile_object_load): Return compile_object_up.
581 * compile/compile-object-load.c (compile_object_load): Return
582 compile_module_up.
583
0dbf6ee6
TT
5842020-09-23 Tom Tromey <tom@tromey.com>
585
586 * compile/compile-object-run.c (struct do_module_cleanup): Add
587 constructor, destructor.
588 <objfile_name_string>: Don't use struct hack.
589 (do_module_cleanup): Use delete.
590 (compile_object_run): Use new.
591
ebe824f5
TT
5922020-09-23 Tom Tromey <tom@tromey.com>
593
594 * compile/compile-cplus-types.c
595 (compile_cplus_convert_struct_or_union): Use std::vector.
596 (compile_cplus_convert_func): Likewise.
597 * compile/compile-c-types.c (convert_func): Use std::vector.
598
5dd918d9
TT
5992020-09-21 Tom Tromey <tromey@adacore.com>
600
601 * sparc-tdep.c (sparc32_skip_prologue): Use
602 skip_prologue_using_sal.
603
5486c517
TT
6042020-09-19 Tom Tromey <tom@tromey.com>
605
606 * symfile.c (add_section_size_callback): Remove.
607 (load_one_section): Rename from load_section_callback. Change
608 parameters.
609 (generic_load): Use foreach.
610
8a6bb1d1
TT
6112020-09-19 Tom Tromey <tom@tromey.com>
612
613 * exec.c (add_to_section_table): Remove.
614 (build_section_table): Use foreach.
615
08f93a1a
TT
6162020-09-19 Tom Tromey <tom@tromey.com>
617
618 * elfread.c (elf_locate_sections): Change parameters.
619 (elf_symfile_read): Use foreach.
620
03cd72b8
TT
6212020-09-19 Tom Tromey <tom@tromey.com>
622
623 * cli/cli-dump.c (struct callback_data): Remove.
624 (restore_one_section): Rename from restore_section_callback.
625 Change parameters.
626 (restore_binary_file): Change parameters.
627 (restore_command): Use foreach.
628
f4f2b85f
TT
6292020-09-19 Tom Tromey <tom@tromey.com>
630
631 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
632 (gcore_copy_callback): Likewise.
633 (gcore_memory_sections): Use foreach.
634
b35c1d1c
TT
6352020-09-19 Tom Tromey <tom@tromey.com>
636
637 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
638 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
639 parameters.
640 (generic_elf_osabi_sniffer): Use foreach.
641 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
642 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
643
5bb6e9dd
TT
6442020-09-19 Tom Tromey <tom@tromey.com>
645
646 * dwarf2/read.c (locate_dwz_sections): Change parameters.
647 (dwarf2_get_dwz_file): Use foreach.
648 (dwarf2_locate_dwo_sections): Change parameters.
649 (open_and_init_dwo_file): Use foreach.
650 (dwarf2_locate_common_dwp_sections): Change parameters.
651 (open_and_init_dwp_file): Use foreach.
652
ad7277da
TT
6532020-09-19 Tom Tromey <tom@tromey.com>
654
655 * symfile.h: (find_lowest_section): Don't declare.
656 * symfile.c (find_lowest_section): Now static. Change
657 parameters.
658 (struct place_section_arg): Remove.
659 (place_section): Change parameters.
660 (addr_info_make_relative): Use foreach.
661 (symfile_dummy_outputs): Remove.
662 (default_symfile_relocate): Use foreach.
663
cb814f2e
TT
6642020-09-19 Tom Tromey <tom@tromey.com>
665
666 * objfiles.c (add_to_objfile_sections): Rename from
667 add_to_objfile_sections_full.
668 (add_to_objfile_sections): Remove.
669 (build_objfile_section_table): Use foreach.
670
3cabfd26
TT
6712020-09-19 Tom Tromey <tom@tromey.com>
672
673 * stap-probe.c (get_stap_base_address_1): Remove.
674 (get_stap_base_address): Use foreach.
675
1ce51eb5
TT
6762020-09-19 Tom Tromey <tom@tromey.com>
677
678 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
679 parameters.
680 (gdb_bfd_close_or_warn): Use foreach.
681
a190fabb
TT
6822020-09-19 Tom Tromey <tom@tromey.com>
683
684 * corelow.c (add_to_thread_list): Change parameters.
685 (core_target_open): Use foreach.
686
cafb0d81
TT
6872020-09-19 Tom Tromey <tom@tromey.com>
688
689 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
690 existing function.
691
c8d5abea
AB
6922020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
693
694 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
695 for arrays.
696
6d816919
AB
6972020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
698
699 * eval.c: Remove 'f-lang.h' include.
700 (value_f90_subarray): Moved to f-lang.c.
701 (eval_call): Renamed to...
702 (evaluate_subexp_do_call): ...this, is no longer static, header
703 comment moved into header file.
704 (evaluate_funcall): Update call to eval_call.
705 (skip_undetermined_arglist): Moved to f-lang.c.
706 (fortran_value_subarray): Likewise.
707 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
708 moved to evaluate_subexp_f.
709 (calc_f77_array_dims): Moved to f-lang.c
710 * expprint.c (print_subexp_funcall): New function.
711 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
712 moved to print_subexp_f, OP_FUNCALL uses new function.
713 (dump_subexp_body_funcall): New function.
714 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
715 moved to dump_subexp_f, OP_FUNCALL uses new function.
716 * expression.h (evaluate_subexp_do_call): Declare.
717 * f-lang.c (value_f90_subarray): Moved from eval.c.
718 (skip_undetermined_arglist): Likewise.
719 (calc_f77_array_dims): Likewise.
720 (fortran_value_subarray): Likewise.
721 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
722 (operator_length_f): Likewise.
723 (print_subexp_f): Likewise.
724 (dump_subexp_body_f): Likewise.
725 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
726 declaration of this operation to here.
727 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
728 support moved to operator_length_f.
729 * parser-defs.h (dump_subexp_body_funcall): Declare.
730 (print_subexp_funcall): Declare.
731 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
732 fortran-operator.def.
733
8c37706a
AB
7342020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
735
736 * eval.c (fortran_value_subarray): New function, content is taken
737 from...
738 (evaluate_subexp_standard): ...here, in two places. Now arrays
739 and strings both call the new function.
740 (calc_f77_array_dims): Add header comment, handle strings.
741
14f9473c
VC
7422020-09-18 Victor Collod <vcollod@nvidia.com>
743
744 PR gdb/26635
745 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
746 (i386_analyze_prologue): Call i386_skip_endbr.
747
b60cea74
TT
7482020-09-18 Tom Tromey <tromey@adacore.com>
749
750 * windows-nat.c (struct windows_nat_target) <wait>: Update.
751 (windows_nat_target::wait): Update.
752 * target/wait.h (enum target_wait_flag): New. Use
753 DEF_ENUM_FLAGS_TYPE.
754 * target/target.h (target_wait): Change type of options.
755 * target.h (target_options_to_string, default_target_wait):
756 Update.
757 (struct target_ops) <wait>: Change type of options.
758 * target.c (target_wait, default_target_wait, do_option): Change
759 type of "options".
760 (target_options_to_string): Likewise.
761 * target-delegates.c: Rebuild.
762 * target-debug.h (target_debug_print_target_wait_flags): Rename
763 from target_debug_print_options.
764 * sol-thread.c (class sol_thread_target) <wait>: Update.
765 (sol_thread_target::wait): Update.
766 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
767 (rs6000_nat_target::wait): Update.
768 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
769 Update.
770 (remote_target::wait_ns, remote_target::wait_as): Change type of
771 "options".
772 (remote_target::wait): Update.
773 * remote-sim.c (struct gdbsim_target) <wait>: Update.
774 (gdbsim_target::wait): Update.
775 * record-full.c (class record_full_base_target) <wait>: Update.
776 (record_full_wait_1): Change type of "options".
777 (record_full_base_target::wait): Update.
778 * record-btrace.c (class record_btrace_target) <wait>: Update.
779 (record_btrace_target::wait): Update.
780 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
781 Update.
782 (ravenscar_thread_target::wait): Update.
783 * procfs.c (class procfs_target) <wait>: Update.
784 (procfs_target::wait): Update.
785 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
786 * obsd-nat.c (obsd_nat_target::wait): Update.
787 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
788 (nto_procfs_target::wait): Update.
789 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
790 * nbsd-nat.c (nbsd_wait): Change type of "options".
791 (nbsd_nat_target::wait): Update.
792 * linux-thread-db.c (class thread_db_target) <wait>: Update.
793 (thread_db_target::wait): Update.
794 * linux-nat.h (class linux_nat_target) <wait>: Update.
795 * linux-nat.c (linux_nat_target::wait): Update.
796 (linux_nat_wait_1): Update.
797 * infrun.c (do_target_wait_1, do_target_wait): Change type of
798 "options".
799 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
800 * inf-ptrace.c (inf_ptrace_target::wait): Update.
801 * go32-nat.c (struct go32_nat_target) <wait>: Update.
802 (go32_nat_target::wait): Update.
803 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
804 * gnu-nat.c (gnu_nat_target::wait): Update.
805 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
806 * fbsd-nat.c (fbsd_nat_target::wait): Update.
807 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
808 * darwin-nat.c (darwin_nat_target::wait): Update.
809 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
810 (bsd_uthread_target::wait): Update.
811 * aix-thread.c (class aix_thread_target) <wait>: Update.
812 (aix_thread_target::wait): Update.
813
0295dde6
AB
8142020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
815
816 * compile/compile-object-run.c (create_copied_type_recursive): New
817 function.
818 (compile_object_run): Use new function.
819
d3483b43
JT
8202020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
821
822 * NEWS: Mention x86_64 Cygwin core file support.
823
e7d612ad
JT
8242020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
825
826 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
827 (core_process_module_section): Handle NOTE_INFO_MODULE64.
828
aff9d387
JT
8292020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
830
62a5151b
JT
831 * windows-tdep.h: Add prototypes.
832 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
833 (i386_windows_core_pid_to_str): Move and rename ...
834 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
835 (windows_core_pid_to_str): ... and here.
836 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
837
8382020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
839 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
840 (amd64_windows_init_abi_common): ... and register.
841
7d155da3
JT
8422020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
843
844 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
845 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
846
e8ef12b9
PA
8472020-09-18 Pedro Alves <pedro@palves.net>
848
849 PR gdb/26631
850 * thread.c (thread_find_command): Switch inferior before calling
851 target methods.
852
c1e1314d
TT
8532020-09-17 Tom Tromey <tromey@adacore.com>
854
855 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
856 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
857 (tdesc_arch_data_up): New typedef.
858 (tdesc_use_registers, tdesc_data_alloc): Update.
859 (tdesc_data_cleanup): Don't declare.
860 * target-descriptions.c (tdesc_data_alloc): Return a
861 tdesc_arch_data_up.
862 (tdesc_arch_data_deleter::operator()): Rename from
863 tdesc_data_cleanup. Change argument type.
864 (tdesc_use_registers): Change early_data to an rvalue reference.
865 (tdesc_use_registers): Don't use delete.
866 * sparc-tdep.c (sparc32_gdbarch_init): Update.
867 * s390-tdep.c (s390_gdbarch_init): Update.
868 * rx-tdep.c (rx_gdbarch_init): Update.
869 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
870 * riscv-tdep.c (riscv_gdbarch_init): Update.
871 * or1k-tdep.c (or1k_gdbarch_init): Update.
872 * nios2-tdep.c (nios2_gdbarch_init): Update.
873 * nds32-tdep.c (nds32_gdbarch_init): Update.
874 * mips-tdep.c (mips_gdbarch_init): Update.
875 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
876 * m68k-tdep.c (m68k_gdbarch_init): Update.
877 * i386-tdep.c (i386_gdbarch_init): Update.
878 * arm-tdep.c (arm_gdbarch_init): Update.
879 * arc-tdep.c (arc_tdesc_init): Update.
880 (arc_gdbarch_init): Update.
881 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
882
0363df3d
HD
8832020-09-17 Hannes Domani <ssbssa@yahoo.de>
884
885 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
886 for WOW64 processes.
887
280a9412
TT
8882020-09-17 Tom Tromey <tom@tromey.com>
889
890 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
891
6108fd18
TT
8922020-09-17 Tom Tromey <tom@tromey.com>
893
894 * value.c (preserve_values): Update.
895 * python/py-type.c (save_objfile_types): Update.
896 * guile/scm-type.c (save_objfile_types): Update.
897 * gdbtypes.h (create_copied_types_hash): Return htab_up.
898 * gdbtypes.c (create_copied_types_hash): Return htab_up.
899 * compile/compile-object-run.c (compile_object_run): Update.
900
fa9b1164
TT
9012020-09-17 Tom Tromey <tom@tromey.com>
902
903 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
904 Remove.
905 <m_table>: Now htab_up.
906 * typeprint.c (typedef_hash_table::recursively_update)
907 (typedef_hash_table::add_template_parameters)
908 (typedef_hash_table::typedef_hash_table): Update.
909 (typedef_hash_table::~typedef_hash_table): Remove.
910 (typedef_hash_table::typedef_hash_table)
911 (typedef_hash_table::find_global_typedef)
912 (typedef_hash_table::find_typedef): Update.
913
eb53f105
TT
9142020-09-17 Tom Tromey <tom@tromey.com>
915
916 * target-descriptions.c (tdesc_use_registers): Use htab_up.
917
7a8a5d47
TT
9182020-09-17 Tom Tromey <tom@tromey.com>
919
920 * linespec.c (class decode_compound_collector)
921 <~decode_compound_collector>: Remove.
922 <m_unique_syms>: Now htab_up.
923 (decode_compound_collector::operator ()): Update.
924 (class symtab_collector) <~symtab_collector>: Remove.
925 <m_symtab_table>: Now htab_up.
926 (symtab_collector::operator ()): Update.
927
99032cfc
TT
9282020-09-17 Tom Tromey <tom@tromey.com>
929
930 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
931 (filename_seen_cache::clear): Update.
932 (~filename_seen_cache): Remove.
933 (filename_seen_cache::seen): Update.
934 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
935 htab_up.
936 <~filename_seen_cache>: Remove.
937 <traverse>: Update.
938
32580f6d
TT
9392020-09-17 Tom Tromey <tom@tromey.com>
940
941 * completer.c (completion_tracker::discard_completions)
942 (completion_tracker::~completion_tracker)
943 (completion_tracker::maybe_add_completion)
944 (completion_tracker::remove_completion)
945 (completion_tracker::recompute_lowest_common_denominator)
946 (completion_tracker::build_completion_result): Update.
947 * completer.h (class completion_tracker) <have_completions>:
948 Update.
949 <m_entries_hash>: Now htab_up.
950
c1fb9836
TT
9512020-09-17 Tom Tromey <tom@tromey.com>
952
953 * breakpoint.c (ambiguous_names_p): Use htab_up.
954
88f07206
TT
9552020-09-17 Tom Tromey <tom@tromey.com>
956
957 * auto-load.c (struct auto_load_pspace_info)
958 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
959 <loaded_script_files, loaded_script_texts>: Change type to
960 htab_up.
961 (~auto_load_pspace_info) Remove.
962 (init_loaded_scripts_info, maybe_add_script_file)
963 (maybe_add_script_text, auto_load_info_scripts): Update.
964
9519b2ee
TT
9652020-09-17 Tom Tromey <tromey@adacore.com>
966
967 * c-exp.y (name_obstack): Now static.
968
d2cd4113
CC
9692020-09-17 Chungyi Chi <demonic@csie.io>
970
971 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
972
b650a282
SM
9732020-09-16 Simon Marchi <simon.marchi@efficios.com>
974
975 * breakpoint.h (init_catchpoint): Change int parameter to bool.
976 (add_solib_catchpoint): Likewise.
977 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
978 to bool.
979 (add_solib_catchpoint): Change int parameter/variable to bool.
980 (catch_load_or_unload): Likewise.
981 (init_catchpoint): Likewise.
982 (create_fork_vfork_event_catchpoint): Likewise.
983 (catch_fork_command_1): Likewise.
984 (catch_exec_command_1): Likewise.
985
4d0bcfcf
SM
9862020-09-16 Simon Marchi <simon.marchi@efficios.com>
987
988 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
989 Change instance_flags to m_instance_flags.
990
fe830662
TT
9912020-09-16 Tom Tromey <tromey@adacore.com>
992
993 PR gdb/26598:
994 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
995
fe5ddfc3
JB
9962020-09-16 John Baldwin <jhb@FreeBSD.org>
997
998 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
999 PL_FLAG_EXEC.
1000 (fbsd_nat_target::insert_exec_catchpoint)
1001 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1002 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1003 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1004
e911c666
JB
10052020-09-16 John Baldwin <jhb@FreeBSD.org>
1006
1007 * configure.ac: Remove check for kinfo_getvmmap().
1008 * configure, config.in: Regenerate.
1009 * fbsd-nat.c (fbsd_read_mapping): Remove
1010 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1011 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1012 kinfo_get_vmmap() are always present.
1013
1f17d372
JB
10142020-09-16 John Baldwin <jhb@FreeBSD.org>
1015
1016 * fbsd-nat.c: Always include support for
1017 TARGET_OBJECT_SIGNAL_INFO.
1018
bcb1da7f
JB
10192020-09-16 John Baldwin <jhb@FreeBSD.org>
1020
1021 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1022 sysctl and remove procfs fallback.
1023
5515f729
JB
10242020-09-16 John Baldwin <jhb@FreeBSD.org>
1025
1026 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1027 * fbsd-nat.h: Likewise.
1028
da1df1db
TBA
10292020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1030
1031 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1032 argument.
1033
0e25e767
AB
10342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1035
1036 * ada-lang.c (ada_language_data): Delete.
1037 (ada_language): Remove references to ada_language_data.
1038 * c-lang.c (c_language_data): Delete.
1039 (c_language): Remove references to c_language_data.
1040 (cplus_language_data): Delete.
1041 (cplus_language): Remove references to cplus_language_data.
1042 (asm_language_data): Delete.
1043 (asm_language): Remove references to asm_language_data.
1044 (minimal_language_data): Delete.
1045 (minimal_language): Remove references to minimal_language_data.
1046 * d-lang.c (d_language_data): Delete.
1047 (d_language): Remove references to d_language_data.
1048 * f-lang.c (f_language_data): Delete.
1049 (f_language): Remove references to f_language_data.
1050 * go-lang.c (go_language_data): Delete.
1051 (go_language): Remove references to go_language_data.
1052 * language.c (unknown_language_data): Delete.
1053 (unknown_language): Remove references to unknown_language_data.
1054 (auto_language_data): Delete.
1055 (auto_language): Remove references to auto_language_data.
1056 * language.h (language_data): Delete struct.
1057 (language_defn): No longer inherit from language_data.
1058 * m2-lang.c (m2_language_data): Delete.
1059 (m2_language): Remove references to m2_language_data.
1060 * objc-lang.c (objc_language_data): Delete.
1061 (objc_language): Remove references to objc_language_data.
1062 * opencl-lang.c (opencl_language_data): Delete.
1063 (opencl_language): Remove references to opencl_language_data.
1064 * p-lang.c (pascal_language_data): Delete.
1065 (pascal_language): Remove references to pascal_language_data.
1066 * rust-lang.c (rust_language_data): Delete.
1067 (rust_language): Remove references to rust_language_data.
1068
b7c6e27d
AB
10692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1070
1071 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1072 initializer.
1073 (ada_language::opcode_print_table): New member function.
1074 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1075 (c_language::opcode_print_table): New member function.
1076 (cplus_language_data): Remove la_op_print_tab initializer.
1077 (cplus_language::opcode_print_table): New member function.
1078 (asm_language_data): Remove la_op_print_tab initializer.
1079 (asm_language::opcode_print_table): New member function.
1080 (minimal_language_data): Remove la_op_print_tab initializer.
1081 (minimal_language::opcode_print_table): New member function.
1082 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1083 (d_language::opcode_print_table): New member function.
1084 * expprint.c (print_subexp_standard): Update call to
1085 opcode_print_table.
1086 (op_string): Likewise.
1087 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1088 (f_language::opcode_print_table): New member function.
1089 * go-lang.c (go_language_data): Remove la_op_print_tab
1090 initializer.
1091 (go_language::opcode_print_table): New member function.
1092 * language.c (unknown_language_data): Remove la_op_print_tab
1093 initializer.
1094 (unknown_language::opcode_print_table): New member function.
1095 (auto_language_data): Remove la_op_print_tab initializer.
1096 (auto_language::opcode_print_table): New member function.
1097 * language.h (language_data): Remove la_op_print_tab field.
1098 (language_defn::opcode_print_table): Declare new member function.
1099 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1100 initializer.
1101 (m2_language::opcode_print_table): New member function.
1102 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1103 initializer.
1104 (objc_language::opcode_print_table): New member function.
1105 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1106 initializer.
1107 (opencl_language::opcode_print_table): New member function.
1108 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1109 initializer.
1110 (pascal_language::opcode_print_table): New member function.
1111 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1112 initializer.
1113 (rust_language::opcode_print_table): New member function.
1114
5aba6ebe
AB
11152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1116
1117 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1118 (ada_language::expression_ops): New member function.
1119 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1120 (c_language::expression_ops): New member function.
1121 (cplus_language_data): Remove la_exp_desc initializer.
1122 (cplus_language::expression_ops): New member function.
1123 (asm_language_data): Remove la_exp_desc initializer.
1124 (asm_language::expression_ops): New member function.
1125 (minimal_language_data): Remove la_exp_desc initializer.
1126 (minimal_language::expression_ops): New member function.
1127 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1128 (d_language::expression_ops): New member function.
1129 * eval.c (evaluate_subexp): Update call to expression_ops.
1130 * expprint.c (print_subexp): Likewise.
1131 (op_name): Likewise.
1132 (dump_subexp_body): Likewise.
1133 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1134 (f_language::expression_ops): New member function.
1135 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1136 (go_language::expression_ops): New member function.
1137 * language.c (language_defn::expression_ops): New function.
1138 (unknown_language_data): Remove la_exp_desc initializer.
1139 (auto_language_data): Likewise.
1140 * language.h (language_data): Remove la_exp_desc field.
1141 (language_defn::expression_ops): Declare new member function.
1142 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1143 (m2_language::expression_ops): New member function.
1144 * objc-lang.c (objc_language_data): Remove la_exp_desc
1145 initializer.
1146 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1147 initializer.
1148 (opencl_language::expression_ops): New member function.
1149 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1150 * parse.c (operator_length): Update call to expression_ops.
1151 (exp_iterate): Likewise.
1152 * rust-lang.c (rust_language_data): Remove la_exp_desc
1153 initializer.
1154 (ruse_language::expression_ops): New member function.
1155
b63a3f3f
AB
11562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1157
1158 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1159 initializer.
1160 (ada_language::varobj_ops): New member function.
1161 * c-lang.c (c_language_data): Remove la_varobj_ops
1162 initializer.
1163 (cplus_language_data): Likewise.
1164 (cplus_language::varobj_ops): New member function.
1165 (asm_language_data): Remove la_varobj_ops initializer.
1166 (minimal_language_data): Likewise.
1167 * d-lang.c (d_language_data): Likewise.
1168 * f-lang.c (f_language_data): Likewise.
1169 * go-lang.c (go_language_data): Likewise.
1170 * language.c (language_defn::varobj_ops): New function.
1171 (unknown_language_data): Remove la_varobj_ops
1172 initializer.
1173 (auto_language_data): Likewise.
1174 * language.h (language_data): Remove la_varobj_ops field.
1175 (language_defn::varobj_ops): Declare new member function.
1176 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1177 * objc-lang.c (objc_language_data): Likewise.
1178 * opencl-lang.c (opencl_language_data): Likewise.
1179 * p-lang.c (pascal_language_data): Likewise.
1180 * rust-lang.c (rust_language_data): Likewise.
1181 * varobj.c (varobj_create): Update call to varobj_ops.
1182 * varobj.h (default_varobj_ops): Delete define.
1183
1ac14a04
AB
11842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1185
1186 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1187 initializer.
1188 * c-lang.c (c_language_data): Likewise.
1189 (c_language::macro_expansion): New member function.
1190 (cplus_language_data): Likewise.
1191 (cplus_language::macro_expansion): New member function.
1192 (asm_language_data): Likewise.
1193 (asm_language::macro_expansion): New member function.
1194 (minimal_language_data): Likewise.
1195 (minimal_language::macro_expansion): New member function.
1196 * d-lang.c (d_language_data): Remove la_macro_expansion
1197 initializer.
1198 * f-lang.c (f_language_data): Likewise.
1199 * go-lang.c (go_language_data): Likewise.
1200 * language.c (unknown_language_data): Likewise.
1201 (auto_language_data): Likewise.
1202 * language.h (language_data): Remove la_macro_expansion field.
1203 (language_defn::macro_expansion): New member function.
1204 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1205 initializer.
1206 * objc-lang.c (objc_language_data): Likewise.
1207 (objc_language::macro_expansion): New member function.
1208 * opencl-lang.c (opencl_language_data): Likewise.
1209 (opencl_language::macro_expansion): New member function.
1210 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1211 initializer.
1212 * rust-lang.c (rust_language_data): Likewise.
1213 * symtab.c (default_collect_symbol_completion_matches_break_on):
1214 Update call to macro_expansion.
1215
3a3440fb
AB
12162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1217
1218 * ada-lang.c (ada_language_data): Remove la_array_ordering
1219 initializer.
1220 * c-lang.c (c_language_data): Likewise.
1221 (cplus_language_data): Likewise.
1222 (asm_language_data): Likewise.
1223 (minimal_language_data): Likewise.
1224 * d-lang.c (d_language_data): Likewise.
1225 * dwarf2/read.c (read_array_order): Update for call to
1226 array_ordering.
1227 * f-lang.c (f_language_data): Remove la_array_ordering
1228 initializer.
1229 (f_language::array_ordering): New member function.
1230 * go-lang.c (go_language_data): Remove la_array_ordering
1231 initializer.
1232 * language.c (unknown_language_data): Likewise.
1233 (auto_language_data): Likewise.
1234 * language.h (language_data): Delete la_array_ordering field.
1235 (language_defn::array_ordering): New member function.
1236 * m2-lang.c (m2_language_data): Remove la_array_ordering
1237 initializer.
1238 * objc-lang.c (objc_language_data): Likewise.
1239 * opencl-lang.c (opencl_language_data): Likewise.
1240 * p-lang.c (pascal_language_data): Likewise.
1241 * rust-lang.c (rust_language_data): Likewise.
1242
0d201fa4
AB
12432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1246 initializer.
1247 * c-lang.c (c_language_data): Likewise.
1248 (cplus_language_data): Likewise.
1249 (asm_language_data): Likewise.
1250 (minimal_language_data): Likewise.
1251 * d-lang.c (d_language_data): Likewise.
1252 * f-lang.c (f_language_data): Likewise.
1253 (f_language::case_sensitivity): New member function.
1254 * go-lang.c (go_language_data): Remove la_case_sensitivity
1255 initializer.
1256 * language.c (enum case_mode): Moved here from language.h.
1257 (case_mode): Make static.
1258 (show_case_command): Update for case_sensitivity being a method.
1259 (set_case_command): Likewise.
1260 (set_range_case): Likewise.
1261 (unknown_language_data): Remove la_case_sensitivity initializer.
1262 (auto_language_data): Likewise.
1263 * language.h (case_mode): Delete, move enum declaration to
1264 language.c.
1265 (language_data): Delete la_case_sensitivity field.
1266 (language_defn::case_sensitivity): New member function.
1267 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1268 initializer.
1269 * objc-lang.c (objc_language_data): Likewise.
1270 * opencl-lang.c (opencl_language_data): Likewise.
1271 * p-lang.c (pascal_language_data): Likewise.
1272 * rust-lang.c (rust_language_data): Likewise.
1273
efdf6a73
AB
12742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1275
1276 * ada-lang.c (ada_language_data): Remove la_range_check
1277 initializer.
1278 * c-lang.c (c_language_data): Likewise.
1279 (cplus_language_data): Likewise.
1280 (asm_language_data): Likewise.
1281 (minimal_language_data): Likewise.
1282 * d-lang.c (d_language_data): Likewise.
1283 * f-lang.c (f_language_data): Likewise.
1284 (f_language::range_checking_on_by_default): New member function.
1285 * go-lang.c (go_language_data): Remove la_range_check initializer.
1286 * language.c (enum range_mode): Moved here from language.h.
1287 (range_mode): Made static.
1288 (show_range_command): Update to use
1289 range_checking_on_by_default.
1290 (set_range_command): Likewise.
1291 (set_range_case): Likewise.
1292 (unknown_language_data): Remove la_range_check initializer.
1293 (auto_language_data): Likewise.
1294 * language.h (range_mode): Delete. Enum definition moved to
1295 language.c.
1296 (language_data): Remove la_range_check field.
1297 (language_defn::range_checking_on_by_default): New member
1298 function.
1299 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1300 (m2_language::range_checking_on_by_default): New member function.
1301 * objc-lang.c (objc_language_data): Remove la_range_check
1302 initializer.
1303 * opencl-lang.c (opencl_language_data): Likewise.
1304 * p-lang.c (pascal_language_data): Likewise.
1305 (pascal_language::range_checking_on_by_default): New member
1306 function.
1307 * rust-lang.c (rust_language_data): Remove la_range_check
1308 initializer.
1309 (rust_language::range_checking_on_by_default): New member
1310 function.
1311
bf92aec5
AB
13122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1313
1314 * dwarf2/read.c (dwarf2_physname): Remove special case for
1315 language_go.
1316 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1317 member function.
1318
d3355e4d
AB
13192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * ada-lang.c (ada_language_data): Remove
1322 la_store_sym_names_in_linkage_form_p initializer.
1323 (ada_language::store_sym_names_in_linkage_form_p): New member
1324 function.
1325 * c-lang.c (c_language_data): Remove
1326 la_store_sym_names_in_linkage_form_p initializer.
1327 (c_language::store_sym_names_in_linkage_form_p): New member
1328 function.
1329 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1330 initializer.
1331 (asm_language_data): Likewise.
1332 (asm_language::store_sym_names_in_linkage_form_p): New member
1333 function.
1334 (minimal_language_data): Remove
1335 la_store_sym_names_in_linkage_form_p initializer.
1336 (minimal_language::store_sym_names_in_linkage_form_p): New member
1337 function.
1338 * d-lang.c (d_language_data): Remove
1339 la_store_sym_names_in_linkage_form_p initializer.
1340 * dwarf2/read.c (dwarf2_physname): Update call to
1341 store_sym_names_in_linkage_form_p.
1342 * f-lang.c (f_language_data): Remove
1343 la_store_sym_names_in_linkage_form_p initializer.
1344 * go-lang.c (go_language_data): Remove
1345 la_store_sym_names_in_linkage_form_p initializer.
1346 * language.c (unknown_language_data): Remove
1347 la_store_sym_names_in_linkage_form_p initializer.
1348 (unknown_language::store_sym_names_in_linkage_form_p): New member
1349 function.
1350 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1351 initializer.
1352 (auto_language::store_sym_names_in_linkage_form_p): New member
1353 function.
1354 * language.h (language_data): Remove
1355 la_store_sym_names_in_linkage_form_p member variable.
1356 (language_defn::store_sym_names_in_linkage_form_p): New member
1357 function.
1358 * m2-lang.c (m2_language_data): Remove
1359 la_store_sym_names_in_linkage_form_p initializer.
1360 * objc-lang.c (objc_language_data): Likewise.
1361 * opencl-lang.c (opencl_language_data): Likewise.
1362 * p-lang.c (pascal_language_data): Likewise.
1363 * rust-lang.c (rust_language_data): Likewise.
1364
22c12a6c
AB
13652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1366
1367 * ada-lang.c (ada_language_data): Remove string_lower_bound
1368 initializer.
1369 * c-lang.c (c_language_data): Likewise.
1370 (cplus_language_data): Likewise.
1371 (asm_language_data): Likewise.
1372 (minimal_language_data): Likewise.
1373 * d-lang.c (d_language_data): Likewise.
1374 * f-lang.c (f_language_data): Likewise.
1375 * go-lang.c (go_language_data): Likewise.
1376 * language.c (unknown_language_data): Likewise.
1377 (auto_language_data): Likewise.
1378 * language.h (language_data): Remove string_lower_bound field.
1379 (language_defn::string_lower_bound): New member function.
1380 * m2-lang.c (m2_language_data): Remove string_lower_bound
1381 initializer.
1382 (m2_language::string_lower_bound): New member function.
1383 * objc-lang.c (objc_language_data): Remove string_lower_bound
1384 initializer.
1385 * opencl-lang.c (opencl_language_data): Likewise.
1386 * p-lang.c (pascal_language_data): Likewise.
1387 * rust-lang.c (rust_language_data): Likewise.
1388 * valops.c (value_cstring): Update call to string_lower_bound.
1389 (value_string): Likewise.
1390 * value.c (allocate_repeated_value): Likewise.
1391
1c236ddd
AB
13922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * valops.c (value_repeat): Fix incorrect argument name in comment.
1395
67bd3fd5
AB
13962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1397
1398 * ada-lang.c (ada_language_data): Remove c_style_arrays
1399 initializer.
1400 (ada_language::c_style_arrays_p): New member fuction.
1401 * c-lang.c (c_language_data): Remove c_style_arrays
1402 initializer.
1403 (cplus_language_data): Likewise.
1404 (asm_language_data): Likewise.
1405 (minimal_language_data): Likewise.
1406 * d-lang.c (d_language_data): Likewise.
1407 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1408 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1409 (f_language::c_style_arrays_p): New member function.
1410 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1411 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1412 * language.c (unknown_language_data): Remove c_style_arrays
1413 initializer.
1414 (auto_language_data): Likewise.
1415 * language.h (language_data): Remove c_style_arrays field.
1416 (language_defn::c_style_arrays_p): New member function.
1417 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1418 (m2_language::c_style_arrays_p): New member function.
1419 * objc-lang.c (objc_language_data): Remove c_style_arrays
1420 initializer.
1421 * opencl-lang.c (opencl_language_data): Likewise.
1422 * p-lang.c (pascal_language_data): Likewise.
1423 * rust-lang.c (rust_language_data): Likewise.
1424 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1425 and update local variable to a bool.
1426 * valops.c (value_cast): Update call to c_style_arrays_p.
1427 (value_array): Likewise.
1428 * value.c (coerce_array): Likewise.
1429
85967615
AB
14302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1431
1432 * ada-lang.c (ada_language_data): Remove la_language initializer.
1433 * c-lang.c (c_language_data): Likewise.
1434 (cplus_language_data): Likewise.
1435 (asm_language_data): Likewise.
1436 (minimal_language_data): Likewise.
1437 * d-lang.c (d_language_data): Likewise.
1438 * f-lang.c (f_language_data): Likewise.
1439 * go-lang.c (go_language_data): Likewise.
1440 * language.c (unknown_language_data): Likewise.
1441 (auto_language_data): Likewise.
1442 * language.h (language_data): Remove la_language field.
1443 (language_defn::language_defn): Initialise la_language field.
1444 (language_defn::la_language): New member variable.
1445 * m2-lang.c (m2_language_data): Remove la_language field.
1446 * objc-lang.c (objc_language_data): Likewise.
1447 * opencl-lang.c (opencl_language_data): Likewise.
1448 * p-lang.c (pascal_language_data): Likewise.
1449 * rust-lang.c (rust_language_data): Likewise.
1450
e171d6f1
AB
14512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * ada-lang.c (ada_extensions): Delete, moved into
1454 ada_language::filename_extensions.
1455 (ada_language_data): Remove la_filename_extensions initializer.
1456 (ada_language::filename_extensions): New member function.
1457 * c-lang.c (c_extensions): Delete, moved into
1458 c_language::filename_extensions.
1459 (c_language_data): Remove la_filename_extensions initializer.
1460 (c_language::filename_extensions): New member function.
1461 (cplus_extensions): Delete, moved into
1462 cplus_language::filename_extensions.
1463 (cplus_language_data): Remove la_filename_extensions initializer.
1464 (cplus_language::filename_extensions): New member function.
1465 (asm_extensions): Delete, moved into
1466 asm_language::filename_extensions.
1467 (asm_language_data): Remove la_filename_extensions initializer.
1468 (asm_language::filename_extensions): New member function.
1469 (minimal_language_data): Remove la_filename_extensions
1470 initializer.
1471 * d-lang.c (d_extensions): Delete, moved into
1472 d_language::filename_extensions.
1473 (d_language_data): Remove la_filename_extensions initializer.
1474 (d_language::filename_extensions): New member function.
1475 * f-lang.c (f_extensions): Delete, moved into
1476 f_language::filename_extensions.
1477 (f_language_data): Remove la_filename_extensions initializer.
1478 (f_language::filename_extensions): New member function.
1479 * go-lang.c (go_language_data): Remove la_filename_extensions
1480 initializer.
1481 * language.c (add_set_language_command): Update now that
1482 filename_extensions returns a vector.
1483 (unknown_language_data): Remove la_filename_extensions
1484 initializer.
1485 (auto_language_data): Likewise.
1486 * language.h (language_data): Remove la_filename_extensions field.
1487 (language_defn::filename_extensions): New member function.
1488 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1489 initializer.
1490 * objc-lang.c (objc_extensions): Delete, moved into
1491 objc_language::filename_extensions.
1492 (objc_language_data): Remove la_filename_extensions initializer.
1493 (objc_language::filename_extensions): New member function.
1494 * opencl-lang.c (opencl_language_data): Remove
1495 la_filename_extensions initializer.
1496 * p-lang.c (pascal_extensions): Delete, moved into
1497 pascal_language::filename_extensions.
1498 (pascal_language_data): Remove la_filename_extensions initializer.
1499 (pascal_language::filename_extensions): New member function.
1500 * rust-lang.c (rust_extensions): Delete, moved into
1501 rust_language::filename_extensions.
1502 (rust_language_data): Remove la_filename_extensions initializer.
1503 (rust_language::filename_extensions): New member function.
1504 * symfile.c (add_filename_language): Add new assert.
1505
6f7664a9
AB
15062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1507
1508 * ada-lang.c (ada_language_data): Remove la_name and
1509 la_natural_name initializers.
1510 (ada_language::name): New member function.
1511 (ada_language::natural_name): New member function.
1512 * c-lang.c (c_language_data): Remove la_name and
1513 la_natural_name initializers.
1514 (c_language::name): New member function.
1515 (c_language::natural_name): New member function.
1516 (cplus_language_data): Remove la_name and
1517 la_natural_name initializers.
1518 (cplus_language::name): New member function.
1519 (cplus_language::natural_name): New member function.
1520 (asm_language_data): Remove la_name and
1521 la_natural_name initializers.
1522 (asm_language::name): New member function.
1523 (asm_language::natural_name): New member function.
1524 (minimal_language_data): Remove la_name and
1525 la_natural_name initializers.
1526 (minimal_language::name): New member function.
1527 (minimal_language::natural_name): New member function.
1528 * compile/compile.c (compile_to_object): Update call to
1529 lanugage_defn::name.
1530 * d-lang.c (d_language_data): Remove la_name and
1531 la_natural_name initializers.
1532 (d_language::name): New member function.
1533 (d_language::natural_name): New member function.
1534 * expprint.c (print_subexp_standard): Update call to
1535 language_defn::name.
1536 (dump_raw_expression): Likewise
1537 (dump_prefix_expression): Likewise.
1538 * f-lang.c (f_language_data): Remove la_name and
1539 la_natural_name initializers.
1540 (f_language::name): New member function.
1541 (f_language::natural_name): New member function.
1542 * go-lang.c (go_language_data): Remove la_name and
1543 la_natural_name initializers.
1544 (go_language::name): New member function.
1545 (go_language::natural_name): New member function.
1546 * language.c (show_language_command): Update call to
1547 language_defn::name.
1548 (set_language_command): Likewise.
1549 (language_enum): Likewise.
1550 (language_str): Likewise.
1551 (add_set_language_command): Likewise, use
1552 language_defn::natural_name in the doc string.
1553 (unknown_language_data): Remove la_name and
1554 la_natural_name initializers.
1555 (unknown_language::name): New member function.
1556 (unknown_language::natural_name): New member function.
1557 (auto_language_data): Remove la_name and
1558 la_natural_name initializers.
1559 (auto_language::name): New member function.
1560 (auto_language::natural_name): New member function.
1561 (language_lookup_primitive_type_as_symbol): Update call to
1562 language_defn::name.
1563 * language.h (language_data): Remove la_name and la_natural_name
1564 member variables.
1565 (language_defn::name): New member function.
1566 (language_defn::natural_name): New member function.
1567 * m2-lang.c (m2_language_data): Remove la_name and
1568 la_natural_name initializers.
1569 (m2_language::name): New member function.
1570 (m2_language::natural_name): New member function.
1571 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1572 language_defn::natural_name.
1573 * objc-lang.c (objc_language_data): Remove la_name and
1574 la_natural_name initializers.
1575 (objc_language::name): New member function.
1576 (objc_language::natural_name): New member function.
1577 * opencl-lang.c (opencl_language_data): Remove la_name and
1578 la_natural_name initializers.
1579 (opencl_language::name): New member function.
1580 (opencl_language::natural_name): New member function.
1581 * p-lang.c (pascal_language_data): Remove la_name and
1582 la_natural_name initializers.
1583 (pascal_language::name): New member function.
1584 (pascal_language::natural_name): New member function.
1585 * rust-lang.c (rust_language_data): Remove la_name and
1586 la_natural_name initializers.
1587 (rust_language::name): New member function.
1588 (rust_language::natural_name): New member function.
1589 * symtab.c (lookup_language_this): Update call to
1590 language_defn::name.
1591
5bae7c4e
AB
15922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * ada-lang.c (ada_language_data): Remove la_name_of_this
1595 initializer.
1596 * ax-gdb.c (gen_expr): Update call to name_of_this.
1597 * c-exp.y (classify_name): Likewise.
1598 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1599 (cplus_language_data): Likewise.
1600 (cplus_language::name_of_this): New member function.
1601 (asm_language_data): Remove la_name_of_this initializer.
1602 (minimal_language_data): Likewise.
1603 * d-lang.c (d_language_data): Likewise.
1604 (d_language::name_of_this): New member function.
1605 * expprint.c (print_subexp_standard): Update call to name_of_this.
1606 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1607 * go-lang.c (go_language_data): Likewise.
1608 * language.c (unknown_language_data): Likewise.
1609 (unknown_language::name_of_this): New member function.
1610 (auto_language_data): Remove la_name_of_this initializer.
1611 (auto_language::name_of_this): New member function.
1612 * language.h (language_data): Delete la_name_of_this member
1613 variable.
1614 (language_defn::name_of_this): New member function.
1615 * m2-lang.c (m2_language_data): Remove la_name_of_this
1616 initializer.
1617 * objc-lang.c (objc_language_data): Likewise.
1618 (objc_language::name_of_this): New member function.
1619 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1620 initializer.
1621 * p-lang.c (pascal_language_data): Likewise.
1622 (pascal_language::name_of_this): New member function.
1623 * rust-lang.c (rust_language_data): Remove la_name_of_this
1624 initializer.
1625 * symtab.c (lookup_language_this): Update call to name_of_this.
1626 (lookup_symbol_aux): Likewise.
1627 * valops.c (value_of_this): Likewise.
1628
22e3f3ed
AB
16292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1630
1631 * ada-lang.c (ada_language_data): Remove
1632 la_struct_too_deep_ellipsis initializer.
1633 (ada_language::struct_too_deep_ellipsis): New member function.
1634 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1635 initializer.
1636 (cplus_language_data): Likewise.
1637 (asm_language_data): Likewise.
1638 (minimal_language_data): Likewise.
1639 * cp-valprint.c (cp_print_value): Update call to
1640 struct_too_deep_ellipsis.
1641 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1642 initializer.
1643 * f-lang.c (f_language_data): Likewise.
1644 (f_language::struct_too_deep_ellipsis): New member function.
1645 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1646 initializer.
1647 * language.c (unknown_language_data): Likewise.
1648 (auto_language_data): Likewise.
1649 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1650 member variable.
1651 (language_defn::struct_too_deep_ellipsis): New member function.
1652 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1653 initializer.Q
1654 * objc-lang.c (objc_language_data): Likewise.
1655 * opencl-lang.c (opencl_language_data): Likewise.
1656 * p-lang.c (pascal_language_data): Likewise.
1657 * rust-lang.c (rust_language_data): Likewise.
1658 * valprint.c (val_print_check_max_depth): Update call to
1659 struct_too_deep_ellipsis.
1660
ed29e1c7
FW
16612020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1662
1663 * MAINTAINERS (Write After Approval): Add myself.
1664
12d8f940
TT
16652020-09-15 Tom Tromey <tom@tromey.com>
1666
1667 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1668 Remove.
1669
6b5a7bc7
TT
16702020-09-15 Tom Tromey <tom@tromey.com>
1671
1672 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1673 and TYPE_CODE_METHODPTR cases.
1674 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1675 (c_value_print_inner): Update.
1676 * valprint.c (generic_value_print_memberptr): New function, from
1677 c_value_print_memberptr.
1678 (generic_value_print): Use it. Call cplus_print_method_ptr.
1679
47f0e2ff
TT
16802020-09-15 Tom Tromey <tromey@adacore.com>
1681
1682 * python/python-internal.h (PyInt_FromLong): Remove define.
1683 * python/py-value.c (convert_value_from_python): Use
1684 gdb_py_object_from_longest.
1685 * python/py-type.c (typy_get_code): Use
1686 gdb_py_object_from_longest.
1687 * python/py-symtab.c (salpy_get_line): Use
1688 gdb_py_object_from_longest.
1689 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1690 gdb_py_object_from_longest.
1691 * python/py-record.c (recpy_gap_reason_code): Use
1692 gdb_py_object_from_longest.
1693 * python/py-record-btrace.c (recpy_bt_insn_size)
1694 (recpy_bt_func_level, btpy_list_count): Use
1695 gdb_py_object_from_longest.
1696 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1697 gdb_py_object_from_longest. Fix error handling.
1698 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1699 gdb_py_object_from_longest.
1700 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1701 gdb_py_object_from_longest.
1702 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1703 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1704 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1705
512116ce
TT
17062020-09-15 Tom Tromey <tromey@adacore.com>
1707
1708 * python/python.c (gdbpy_parameter_value): Use
1709 gdb_py_object_from_ulongest.
1710
4ab1029c
TT
17112020-09-15 Tom Tromey <tromey@adacore.com>
1712
1713 * python/py-infevents.c (create_register_changed_event_object):
1714 Use gdb_py_object_from_longest.
1715 * python/py-exitedevent.c (create_exited_event_object): Use
1716 gdb_py_object_from_longest.
1717
062534d4
TT
17182020-09-15 Tom Tromey <tromey@adacore.com>
1719
1720 * python/python.c (gdbpy_parameter_value): Use
1721 gdb_py_object_from_longest.
1722 * python/py-type.c (convert_field, typy_range): Use
1723 gdb_py_object_from_longest.
1724 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1725 gdb_py_object_from_longest.
1726 * python/py-lazy-string.c (stpy_get_length): Use
1727 gdb_py_object_from_longest.
1728 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1729 gdb_py_object_from_longest.
1730 * python/py-infevents.c (create_memory_changed_event_object): Use
1731 gdb_py_object_from_longest.
1732 * python/py-inferior.c (infpy_get_num): Use
1733 gdb_py_object_from_longest.
1734 (infpy_get_pid): Likewise.
1735
d1cab987
TT
17362020-09-15 Tom Tromey <tromey@adacore.com>
1737
1738 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1739 defines.
1740 * python/py-value.c (valpy_long): Use
1741 gdb_py_object_from_ulongest.
1742 * python/py-symtab.c (salpy_get_pc): Use
1743 gdb_py_object_from_ulongest.
1744 (salpy_get_last): Likewise.
1745 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1746 gdb_py_object_from_ulongest.
1747 * python/py-lazy-string.c (stpy_get_address): Use
1748 gdb_py_object_from_ulongest.
1749 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1750 * python/py-arch.c (archpy_disassemble): Use
1751 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1752 error handling.
1753
4bde49dc
TT
17542020-09-15 Tom Tromey <tromey@adacore.com>
1755
1756 * python/python-internal.h (gdb_py_long_from_longest): Remove
1757 defines.
1758 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1759 * python/py-type.c (convert_field, typy_get_sizeof): Use
1760 gdb_py_object_from_longest.
1761 * python/py-record-btrace.c (btpy_list_index): Use
1762 gdb_py_object_from_longest.
1763
37431074
TT
17642020-09-15 Tom Tromey <tromey@adacore.com>
1765
1766 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1767 * python/py-record.c (recpy_element_number): Use
1768 gdb_py_object_from_longest.
1769 (recpy_gap_number): Likewise.
1770
cbe25684
TT
17712020-09-15 Tom Tromey <tromey@adacore.com>
1772
1773 * top.c (ui::ui): Update.
1774 (highest_ui_num): Remove.
1775 * top.h (struct ui) <num>: Remove.
1776
db92ac45
TT
17772020-09-15 Tom Tromey <tromey@adacore.com>
1778
1779 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1780 * ui-style.c (ansi_regex_text): Now array.
1781 * rust-exp.y (number_regex_text): Now array.
1782 * linespec.c (linespec_quote_characters): Now array.
1783 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1784 Now arrays.
1785
d2b31b67
SM
17862020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1787
1788 * debuginfod-support.c (debuginfod_client_deleter): New.
1789 (debuginfod_client_up): New.
1790 (debuginfod_init): Return debuginfod_client_up.
1791 (debuginfod_source_query): Adjust.
1792 (debuginfod_debuginfo_query): Adjust.
1793
3246bd8e
SM
17942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1795
1796 * debuginfod-support.c (debuginfod_source_query): Use
1797 make_unique_xstrdup.
1798
10242f36
SM
17992020-09-14 Simon Marchi <simon.marchi@efficios.com>
1800
1801 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1802 with `type::instance_flags`.
1803
e1044e6a
MM
18042020-09-14 Michael Mullin <masmullin@gmail.com>
1805
1806 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1807 Remove baton parameter.
1808
04902b09
PA
18092020-09-14 Pedro Alves <pedro@palves.net>
1810
1811 * Makefile.in (SELFTESTS_SRCS): Add
1812 unittests/enum-flags-selftests.c.
1813 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1814 btrace_function_flags instead of enum btrace_function_flag.
1815 * compile/compile-c-types.c (convert_qualified): Use
1816 enum_flags::raw.
1817 * compile/compile-cplus-symbols.c (convert_one_symbol)
1818 (convert_symbol_bmsym):
1819 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1820 (compile_cplus_convert_struct_or_union_methods)
1821 (compile_cplus_instance::convert_qualified_base):
1822 * go-exp.y (parse_string_or_char): Add cast to int.
1823 * unittests/enum-flags-selftests.c: New file.
1824 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1825 type to btrace_thread_flags from btrace_thread_flag.
1826 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1827 local's type to btrace_thread_flags from btrace_thread_flag. Add
1828 cast in DEBUG call.
1829
69896a2c
PA
18302020-09-14 Pedro Alves <pedro@palves.net>
1831
1832 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1833 * gdbtypes.c (address_space_name_to_int): Rename to ...
1834 (address_space_name_to_type_instance_flags): ... this.
1835 (address_space_int_to_name): Rename to ...
1836 (address_space_type_instance_flags_to_name): ... this.
1837 * gdbtypes.h (address_space_name_to_int): Rename to ...
1838 (address_space_name_to_type_instance_flags): ... this.
1839 (address_space_int_to_name): Rename to ...
1840 (address_space_type_instance_flags_to_name): ... this.
1841 * type-stack.c (type_stack::insert): Adjust to rename.
1842 * type-stack.h (type_stack::insert): Likewise.
1843
314ad88d
PA
18442020-09-14 Pedro Alves <pedro@palves.net>
1845 Andrew Burgess <andrew.burgess@embecosm.com>
1846
1847 * avr-tdep.c (avr_address_class_type_flags): Return
1848 type_instance_flags.
1849 (avr_address_class_type_flags_to_name): Take a
1850 type_instance_flags.
1851 (avr_address_class_name_to_type_flags): Return bool and take a
1852 type_instance_flags.
1853 * d-lang.c (build_d_types): Use type::set_instance_flags.
1854 * ft32-tdep.c (ft32_address_class_type_flags): Return
1855 type_instance_flags.
1856 (ft32_address_class_type_flags_to_name): Take a
1857 type_instance_flags.
1858 (ft32_address_class_name_to_type_flags): Return bool and take a
1859 type_instance_flags.
1860 (ft32_gdbarch_init): Use type::set_instance_flags.
1861 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1862 * gdbarch.h, gdbarch.c: Regenerate.
1863 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1864 (address_class_name_to_type_flags): Use type_instance_flags and
1865 bool.
1866 * gdbtypes.c (address_space_name_to_int)
1867 (address_space_int_to_name, make_qualified_type): Use
1868 type_instance_flags.
1869 (make_qualified_type): Use type_instance_flags and
1870 type::set_instance_flags.
1871 (make_type_with_address_space, make_cv_type, make_vector_type)
1872 (check_typedef): Use type_instance_flags.
1873 (recursive_dump_type): Cast type_instance_flags to unsigned for
1874 printing.
1875 (copy_type_recursive): Use type::set_instance_flags.
1876 (gdbtypes_post_init): Use type::set_instance_flags.
1877 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1878 <m_instance_flags>: ... this.
1879 <instance_flags, set_instance_flags>: New methods.
1880 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1881 (SET_TYPE_INSTANCE_FLAGS): New.
1882 (address_space_name_to_int, address_space_int_to_name)
1883 (make_type_with_address_space): Pass flags using
1884 type_instance_flags instead of int.
1885 * stabsread.c (cleanup_undefined_types_noname): Use
1886 type::set_instance_flags.
1887 * s390-tdep.c (s390_address_class_type_flags): Return
1888 type_instance_flags.
1889 (s390_address_class_type_flags_to_name): Take a
1890 type_instance_flags.
1891 (s390_address_class_name_to_type_flags): Return bool and take a
1892 type_instance_flags.
1893 * type-stack.c (type_stack::follow_types): Use
1894 type_instance_flags.
1895 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1896
27087b7f
TT
18972020-09-14 Tom Tromey <tromey@adacore.com>
1898
1899 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1900 * x86-tdep.c (x86_is_thunk_register_name)
1901 (x86_in_indirect_branch_thunk): Update.
1902 * sparc64-tdep.c (sparc64_fpu_register_names)
1903 (sparc64_cp0_register_names, sparc64_register_names)
1904 (sparc64_pseudo_register_names): Now const.
1905 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1906 cp0_registers_num>: Now const.
1907 * sparc-tdep.c (sparc_core_register_names)
1908 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1909 (sparc32_pseudo_register_names): Now const.
1910 (validate_tdesc_registers): Update.
1911 * rust-lang.c (rust_extensions): Now const.
1912 * p-lang.c (p_extensions): Now const.
1913 * objc-lang.c (objc_extensions): Now const.
1914 * nto-tdep.c (nto_thread_state_str): Now const.
1915 * moxie-tdep.c (moxie_register_names): Now const.
1916 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1917 Now const.
1918 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1919 (mips_linux_reg_names): Now const.
1920 (mips_gdbarch_init): Update.
1921 * microblaze-tdep.c (microblaze_register_names): Now const.
1922 * m68k-tdep.c (m68k_register_names): Now const.
1923 * m32r-tdep.c (m32r_register_names): Now const.
1924 * ia64-tdep.c (ia64_register_names): Now const.
1925 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1926 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1927 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1928 ymm_avx512_register_names, pkeys_register_names>: Now const.
1929 * i386-tdep.c (i386_register_names, i386_zmm_names)
1930 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1931 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1932 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1933 * f-lang.c (f_extensions): Now const.
1934 * d-lang.c (d_extensions): Now const.
1935 * csky-tdep.c (csky_register_names): Now const.
1936 * charset.c (default_charset_names, charset_enum): Now const.
1937 (_initialize_charset): Update.
1938 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1939 const.
1940 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1941 (bsd_uthread_solib_loaded): Update.
1942 (bsd_uthread_state): Now const.
1943 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1944 (amd64_ymm_avx512_names, amd64_ymmh_names)
1945 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1946 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1947 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1948 (amd64_dword_names): Now const.
1949 * agent.c (can_use_agent_enum): Now const.
1950 * ada-tasks.c (task_states, long_task_states): Now const.
1951 * ada-lang.c (known_runtime_file_name_patterns)
1952 (known_auxiliary_function_name_patterns, attribute_names)
1953 (standard_exc, ada_extensions): Now const.
1954
89806626
SM
19552020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1956
1957 * bcache.h (struct bcache) <bcache>: Remove constructor.
1958 <m_hash_function, m_compare_function>: Remove.
1959 <~bcache>: Make virtual.
1960 <compare>: Remove static method, introduce virtual method.
1961 <default_hash>: Remove.
1962 <hash>: New virtual method.
1963 * bcache.c (bcache::expand_hash_table): Update.
1964 (bcache::insert): Update.
1965 (bcache::hash): New.
1966 (bcache::compare): Update comment and parameter names.
1967 * gdbtypes.c (types_deeply_equal): Update.
1968 * psymtab.h (struct psymbol_bcache): New struct.
1969 (class psymtab_storage) <psymtab_storage>: Make default.
1970 <psymbol_cache>: Change type to psymbol_bcache.
1971 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1972 (psymbol_hash): Change to...
1973 (psymbol_bcache::hash): ... this.
1974 (psymbol_compare): Change to...
1975 (psymbol_bcache::compare): ... this.
1976
677c92fe
SM
19772020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1978
1979 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1980 checking for initial lwp.
1981
3eba3a01
TT
19822020-09-14 Tom Tromey <tromey@adacore.com>
1983
1984 * m68k-tdep.c (m68k_extract_return_value): Use
1985 pointer_result_regnum.
1986 (m68k_store_return_value): Likewise.
1987 (m68k_reg_struct_return_p): Handle vectors and arrays.
1988 (m68k_return_value): Handle arrays.
1989 (m68k_svr4_return_value): Fix single-element aggregate handling.
1990 Handle long double. Adjust for embedded ABI.
1991 (m68k_svr4_init_abi): Set pointer_result_regnum.
1992 (m68k_embedded_init_abi): New function.
1993 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1994 (m68k_osabi_sniffer): New function.
1995 (_initialize_m68k_tdep): Register osabi sniffer.
1996 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1997 member.
1998
33f4dd48
SM
19992020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2000
2001 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2002 with gdb::unique_xmalloc_ptr<char>.
2003
8400a90d
SM
20042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2005
2006 * xml-support.h (xml_fetch_another): Change type to be a
2007 function_view.
2008 (xml_process_xincludes): Remove baton parameter.
2009 (xml_fetch_content_from_file): Change baton parameter to
2010 dirname.
2011 * xml-support.c (struct xinclude_parsing_data)
2012 <xinclude_parsing_data>: Remove baton parameter.
2013 <fetcher_baton>: Remove.
2014 (xinclude_start_include): Adjust.
2015 (xml_process_xincludes): Adjust.
2016 (xml_fetch_content_from_file): Replace baton parameter with
2017 dirname.
2018 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2019 (xml_init_syscalls_info): Use a lambda.
2020 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2021 (file_read_description_xml): Use a lambda.
2022 (fetch_available_features_from_target): Change baton parameter
2023 to target_ops.
2024 (target_read_description_xml): Use a lambda.
2025 (target_fetch_description_xml): Use a lambda.
2026 (string_read_description_xml): Update.
2027
04f5bab2
SM
20282020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2029
2030 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2031 uses with type::endianity_is_not_default.
2032
db558e34
SM
20332020-09-14 Simon Marchi <simon.marchi@efficios.com>
2034
2035 * gdbtypes.h (struct type) <endianity_is_not_default,
2036 set_endianity_is_not_default>: New methods.
2037 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2038 type::endianity_is_not_default, change all write call sites to
2039 use type::set_endianity_is_not_default.
2040
22c4c60c
SM
20412020-09-14 Simon Marchi <simon.marchi@efficios.com>
2042
2043 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2044 uses with type::is_fixed_instance.
2045
9cdd0d12
SM
20462020-09-14 Simon Marchi <simon.marchi@efficios.com>
2047
2048 * gdbtypes.h (struct type) <is_fixed_instance,
2049 set_is_fixed_instance>: New methods.
2050 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2051 write call sites to use type::set_is_fixed_instance.
2052
0becda7a
SM
20532020-09-14 Simon Marchi <simon.marchi@efficios.com>
2054
2055 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2056 uses with type::is_gnu_ifunc.
2057
03cc7249
SM
20582020-09-14 Simon Marchi <simon.marchi@efficios.com>
2059
2060 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2061 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2062 use type::set_is_gnu_ifunc.
2063
3f46044c
SM
20642020-09-14 Simon Marchi <simon.marchi@efficios.com>
2065
2066 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2067 uses with type::stub_is_supported.
2068
9baccff6
SM
20692020-09-14 Simon Marchi <simon.marchi@efficios.com>
2070
2071 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2072 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2073 use type::set_stub_is_supported.
2074
bd63c870
SM
20752020-09-14 Simon Marchi <simon.marchi@efficios.com>
2076
2077 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2078 uses with type::is_vector.
2079
2062087b
SM
20802020-09-14 Simon Marchi <simon.marchi@efficios.com>
2081
2082 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2083 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2084 use type::set_is_vector.
2085
a409645d
SM
20862020-09-14 Simon Marchi <simon.marchi@efficios.com>
2087
2088 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2089 uses with type::has_varargs.
2090
1d6286ed
SM
20912020-09-14 Simon Marchi <simon.marchi@efficios.com>
2092
2093 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2094 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2095 use type::set_has_varargs.
2096
7f9f399b
SM
20972020-09-14 Simon Marchi <simon.marchi@efficios.com>
2098
2099 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2100 uses with type::is_prototyped.
2101
27e69b7a
SM
21022020-09-14 Simon Marchi <simon.marchi@efficios.com>
2103
2104 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2105 New methods.
2106 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2107 call sites to use type::set_is_prototyped.
2108
d2183968
SM
21092020-09-14 Simon Marchi <simon.marchi@efficios.com>
2110
2111 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2112 uses with type::target_is_stub.
2113
8f53807e
SM
21142020-09-14 Simon Marchi <simon.marchi@efficios.com>
2115
2116 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2117 New methods.
2118 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2119 sites to use type::set_target_is_stub.
2120
e46d3488
SM
21212020-09-14 Simon Marchi <simon.marchi@efficios.com>
2122
2123 * gdbtypes.h (TYPE_STUB): Remove, replace all
2124 uses with type::is_stub.
2125
b4b73759
SM
21262020-09-14 Simon Marchi <simon.marchi@efficios.com>
2127
2128 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2129 (TYPE_STUB): Use type::is_stub, change all write call sites to
2130 use type::set_is_stub.
2131
20ce4123
SM
21322020-09-14 Simon Marchi <simon.marchi@efficios.com>
2133
2134 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2135 type::has_no_signedness.
2136
15152a54
SM
21372020-09-14 Simon Marchi <simon.marchi@efficios.com>
2138
2139 * gdbtypes.h (struct type) <has_no_signedness,
2140 set_has_no_signedness>: New methods.
2141 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2142 call sites to use type::set_has_no_signedness.
2143
c6d940a9
SM
21442020-09-14 Simon Marchi <simon.marchi@efficios.com>
2145
2146 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2147 type::is_unsigned.
2148
653223d3
SM
21492020-09-14 Simon Marchi <simon.marchi@efficios.com>
2150
2151 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2152 methods.
2153 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2154 sites to use type::set_is_unsigned.
2155
55ea94da 21562020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2157 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2158
e851246a
SM
2159 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2160 pointer and stack frame offset when unwinding.
55ea94da 2161
6791b117
PA
21622020-09-13 Pedro Alves <pedro@palves.net>
2163
2164 * NEWS: Document "-break-insert --qualified".
2165 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2166
77f2120b
PA
21672020-09-13 Pedro Alves <pedro@palves.net>
2168
2169 * linespec.c (classify_mtype, compare_msyms): Delete.
2170 (search_minsyms_for_name): Remove classification logic. Instead
2171 filter out trampoline symbols if we also found an external
2172 function of the same name.
2173
ed6a896c
JB
21742020-09-13 Joel Brobecker <brobecker@adacore.com>
2175
2176 * NEWS: Create a new section for the next release branch.
2177 Rename the section of the current branch, now that it has
2178 been cut.
2179
32aea73e
JB
21802020-09-13 Joel Brobecker <brobecker@adacore.com>
2181
2182 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2183 * version.in: Bump version to 11.0.50.DATE-git.
2184
8087c3fa
JB
21852020-09-12 Joel Brobecker <brobecker@adacore.com>
2186
2187 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2188
2a67f09d
FW
21892020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2190 Felix Willgerodt <Felix.Willgerodt@intel.com>
2191
2192 * gdbarch.sh: Added bfloat16 type.
2193 * gdbarch.c: Regenerated.
2194 * gdbarch.h: Regenerated.
2195 * gdbtypes.c (floatformats_bfloat16): New struct.
2196 (gdbtypes_post_init): Add builtin_bfloat16.
2197 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2198 (floatformats_bfloat16): New struct.
2199 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2200 (i386_ymm_type): Add field "v16_bfloat16"
2201 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2202 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2203 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2204 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2205 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2206 * features/i386/64bit-avx512.c: Regenerated.
2207 * features/i386/64bit-sse.xml: Add bfloat16 type.
2208 * features/i386/64bit-sse.c: Regenerated.
2209
1347d111
FW
22102020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2211
2212 * i386-tdep.c (i386_zmm_type): Fix field names.
2213 (i386_ymm_type): Fix field names.
2214
7a4e8e7d
TBA
22152020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2216
2217 * breakpoint.c: Fix typo in the help message of the
2218 "set breakpoint condition-evaluation" command.
2219
cf4ac4be
KR
22202020-09-10 Kamil Rytarowski <n54@gmx.com>
2221
2222 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2223 * (nbsd_nat_target::pid_to_exec_file)
2224 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2225 (nbsd_nat_target::post_startup_inferior)
2226 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2227 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2228 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2229 * (nbsd_thread_lister): Remove.
2230
f404573e
KR
22312020-09-10 Kamil Rytarowski <n54@gmx.com>
2232
2233 * fork-inferior.c (startup_inferior): Avoid double free.
2234
1ccb2c17
KR
22352020-09-10 Kamil Rytarowski <n54@gmx.com>
2236
2237 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2238 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2239
feedfcc7
KR
22402020-09-10 Kamil Rytarowski <n54@gmx.com>
2241
2242 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2243 * netbsd-nat.c: Include <sys/ptrace.h>.
2244 * (netbsd_nat::enable_proc_events): Add.
2245
c489f8c6
KR
22462020-09-10 Kamil Rytarowski <n54@gmx.com>
2247
2248 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2249 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2250 (netbsd_nat::for_each_thread): Add.
2251 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2252 "gdbsupport/common-debug.h".
2253 * (netbsd_nat::netbsd_thread_lister)
2254 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2255 (netbsd_nat::for_each_thread): Add.
2256
330662f6
KR
22572020-09-10 Kamil Rytarowski <n54@gmx.com>
2258
2259 * netbsd-nat.h: Include <unistd.h>.
2260 * (netbsd_nat::pid_to_exec_file): Add.
2261 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2262 * (netbsd_nat::pid_to_exec_file) Add.
2263
70b67307
KR
22642020-09-10 Kamil Rytarowski <n54@gmx.com>
2265
2266 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2267
99cf6da6
KR
22682020-09-10 Kamil Rytarowski <n54@gmx.com>
2269
2270 * netbsd-nat.h: New file.
2271 * netbsd-nat.c: Likewise.
2272
1b788fb6
TT
22732020-09-09 Tom Tromey <tromey@adacore.com>
2274
2275 * ada-lang.c (remove_extra_symbols): Do not increment when
2276 removing an element
2277
03b0a45f
TT
22782020-09-08 Tom Tromey <tromey@adacore.com>
2279
2280 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2281
3cae4447
TT
22822020-09-08 Tom Tromey <tromey@adacore.com>
2283
2284 PR win32/25302:
2285 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2286 (gdb_bfd_init_data): New function.
2287 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2288
7f08fd51
TBA
22892020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2290
2291 * infrun.c (fetch_inferior_event): Use
2292 `switch_to_target_no_thread` to switch the target.
2293
3e6ff933
TT
22942020-09-06 Tom Tromey <tom@tromey.com>
2295
2296 * symfile.h (dwarf2_free_objfile): Don't declare.
2297
e56798df
AKS
22982020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2299
2300 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2301 to match 16 byte real/complex type generated by Flang compiler.
2302
8f5c6526
TV
23032020-09-03 Tom de Vries <tdevries@suse.de>
2304
2305 PR breakpoint/26546
2306 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2307 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2308
c5065df0
SM
23092020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2310
2311 * maint.c (index_digits): New function.
2312 (struct maint_print_section_data): Remove.
2313 (print_bfd_section_info): Remove print_data parameter, add arg
2314 and index_digits.
2315 (print_objfile_section_info): Likewise.
2316 (print_bfd_section_info_maybe_relocated): Likewise (plus
2317 objfile).
2318 (maintenance_info_sections): Adjust calls.
2319
02c6f3f1
TT
23202020-09-02 Tom Tromey <tromey@adacore.com>
2321
2322 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2323 for null pointers.
2324 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2325
ef5e5b0b
SM
23262020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2327
2328 * bcache.h (struct bcache) <insert>: Change type of `added` to
2329 pointer to bool.
2330 * bcache.c (bcache::insert): Likewise.
2331 * gdbtypes.c (check_types_worklist): Adjust.
2332 * psymtab.c (add_psymbol_to_bcache): Adjust.
2333
973695d6
KB
23342020-08-31 Kevin Buettner <kevinb@redhat.com>
2335
2336 * corelow.c (unordered_set): Include.
2337 (class core_target): Add field 'm_core_unavailable_mappings'.
2338 (core_target::build_file_mappings): Print only one warning
2339 per inaccessible file. Add unavailable/broken mappings
2340 to m_core_unavailable_mappings.
2341 (core_target::xfer_partial): Call...
2342 (core_target::xfer_memory_via_mappings): New method.
2343
264fc0e2
SM
23442020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2345
2346 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2347 type to bool.
2348
2de01bdb
SM
23492020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2350
2351 * dwarf2/read.c (struct field_info): Fix indentation.
2352
f3bd50f1
SM
23532020-08-31 Simon Marchi <simon.marchi@efficios.com>
2354
2355 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2356 ordering in comment.
2357 * frame.c (frame_id_eq): Fix indentation.
2358
22b9b4b0
SL
23592020-08-31 Scott Linder <scott@scottlinder.com>
2360 Simon Marchi <simon.marchi@efficios.com>
2361
2362 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2363 inline frame ids in outer frame.
2364
84154d16
SM
23652020-08-31 Simon Marchi <simon.marchi@efficios.com>
2366
2367 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2368 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2369 (outer_frame_id): Use FID_STACK_OUTER instead of
2370 FID_STACK_INVALID.
2371 (frame_id_p): Don't check for outer_frame_id.
2372
8efaf6b3
SM
23732020-08-31 Simon Marchi <simon.marchi@efficios.com>
2374
2375 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2376 regnum/frame in value. Call allocate_value_lazy.
2377 * frame.c (frame_unwind_register_value): Use
2378 val_print_not_saved.
2379
fe1fe7ea
SM
23802020-08-31 Simon Marchi <simon.marchi@efficios.com>
2381
2382 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2383
f7c7700d
PA
23842020-08-29 Pedro Alves <pedro@palves.net>
2385
2386 * progspace.c (print_program_space): Use all_inferiors. Switch to
2387 the inferior before calling target_pid_to_str.
2388
e0814aae
TT
23892020-08-28 Tom Tromey <tom@tromey.com>
2390
2391 * xcoffread.c (xcoff_end_psymtab): Update comment.
2392 * dbxread.c (dbx_end_psymtab): Update comment.
2393
626d2320
TV
23942020-08-28 Tom de Vries <tdevries@suse.de>
2395
2396 PR breakpoint/26544
2397 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2398 event_location.
2399 (create_breakpoint): Same.
2400 (base_breakpoint_decode_location): Same.
2401 (bkpt_create_sals_from_location): Same.
2402 (bkpt_decode_location): Same.
2403 (bkpt_probe_create_sals_from_location): Same.
2404 (bkpt_probe_decode_location): Same.
2405 (tracepoint_create_sals_from_location): Same.
2406 (tracepoint_decode_location): Same.
2407 (tracepoint_probe_decode_location): Same.
2408 (strace_marker_create_sals_from_location): Same.
2409 (strace_marker_decode_location): Same.
2410 (create_sals_from_location_default): Same.
2411 (decode_location_default): Same.
2412 * breakpoint.h (struct breakpoint_ops): Same.
2413 (create_breakpoint): Same.
2414 * linespec.h (decode_line_full): Same.
2415 * linespec.c (decode_line_full): Same. Throw error if
2416 result.size () == 0.
2417
df631783
PA
24182020-08-27 Pedro Alves <pedro@palves.net>
2419
2420 PR gdb/26524
2421 * breakpoint.c (until_break_fsm) <location_breakpoint,
2422 caller_breakpoint>: Delete fields.
2423 <breakpoints>: New field.
2424 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2425 two individual breakpoints.
2426 (until_break_fsm::should_stop): Loop over breakpoints in the
2427 breakpoint vector.
2428 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2429 vector.
2430 (until_break_command): Handle location expanding into multiple
2431 sals.
2432
b2b38aa4
PA
24332020-08-27 Pedro Alves <pedro@palves.net>
2434
2435 PR gdb/26523
2436 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2437 bp_until breakpoints user-specified locations. Update intro
2438 comment.
2439
b886559f
SM
24402020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2441
2442 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2443 gdb_bfd_sections): New.
2444 * maint.c (print_bfd_section_info): Change param type to
2445 maint_print_section_data.
2446 (print_objfile_section_info): Likewise.
2447 (print_bfd_section_info_maybe_relocated): Likewise.
2448 (maintenance_info_sections): Use gdb_bfd_sections.
2449
4c6e63bf
SV
24502020-08-25 Shahab Vahedi <shahab@synopsys.com>
2451
2452 * MAINTAINERS: Add ARC target and maintainer.
2453
8d7f0635
AK
24542020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2455
2456 * configure.tgt: ARC support for GNU/Linux.
2457 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2458 * arc-linux-tdep.c: New file.
2459 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2460 * arc-tdep.c (arc_write_pc): Use it.
2461
fdd8731b
SV
24622020-08-25 Shahab Vahedi <shahab@synopsys.com>
2463
2464 * arc-tdep.c (arc_check_for_hardware_loop): New.
2465 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2466
22459524
SV
24672020-08-25 Shahab Vahedi <shahab@synopsys.com>
2468
2469 * arc-tdep.h: Include "gdbarch.h".
2470
995d3a19
SV
24712020-08-25 Shahab Vahedi <shahab@synopsys.com>
2472
2473 * arch/arc.h
2474 (arc_gdbarch_features): New class to stir the selection of target XML.
2475 (arc_create_target_description): Use FEATURES to choose XML target.
2476 (arc_lookup_target_description): Use arc_create_target_description
2477 to create _new_ target descriptions or return the already created
2478 ones if the FEATURES is the same.
2479 * arch/arc.c: Implementation of prototypes described above.
2480 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2481 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2482 * arc-tdep.c (*_feature_name): Make feature names consistent.
2483 (arc_register_feature): A new struct to hold information about
2484 registers of a particular target/feature.
2485 (arc_check_tdesc_feature): Check if XML provides registers in
2486 compliance with ARC_REGISTER_FEATURE structs.
2487 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2488 (determine_*_reg_feature_set): Which feature name to look for.
2489 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2490 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2491 to expected ISA enums to be used in arc_gdbarch_features structs.
2492 * features/Makefile (FEATURE_XMLFILES): Add new files.
2493 * gdb/features/arc/v1-aux.c: New file.
2494 * gdb/features/arc/v1-aux.xml: Likewise.
2495 * gdb/features/arc/v1-core.c: Likewise.
2496 * gdb/features/arc/v1-core.xml: Likewise.
2497 * gdb/features/arc/v2-aux.c: Likewise.
2498 * gdb/features/arc/v2-aux.xml: Likewise.
2499 * gdb/features/arc/v2-core.c: Likewise.
2500 * gdb/features/arc/v2-core.xml: Likewise.
2501 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2502
3945d2d7
GM
25032020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2504 Andrew Burgess <andrew.burgess@embecosm.com>
2505
2506 PR m2/26372
fc5d6901 2507 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2508 an assert. Remove single element array indexing pattern as the
2509 MULTI_SUBSCRIPT support will handle this case too.
2510
2677f2d3
SM
25112020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2512
2513 * value.h (valprint_check_validity): Move declaration from
2514 here...
2515 * valprint.h (valprint_check_validity): ... to here.
2516
c426fddb
SM
25172020-08-24 Simon Marchi <simon.marchi@efficios.com>
2518
2519 * debug.h: New file.
2520 * debug.c (debug_prefixed_vprintf): New function.
2521 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2522 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2523
1eb8556f
SM
25242020-08-24 Simon Marchi <simon.marchi@efficios.com>
2525
2526 * infrun.h (infrun_debug_printf_1): New function declaration.
2527 (infrun_debug_printf): New macro.
2528 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2529 throughout.
2530 (infrun_debug_printf): New function.
2531 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2532 (handle_jit_event): Likewise.
2533
b8fff44e
MW
25342020-08-21 Mark Wielaard <mark@klomp.org>
2535
2536 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2537
d19c3068
SM
25382020-08-22 Simon Marchi <simon.marchi@efficios.com>
2539
2540 * frame.c (enum class frame_id_status): New.
2541 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2542 (fprintf_frame): Update.
2543 (compute_frame_id): Set frame id status to "computing" on entry.
2544 Set it back to "not_computed" on failure and to "computed" on
2545 success.
2546 (get_frame_id): Assert the frame id is not being computed.
2547 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2548 (create_new_frame): Likewise.
2549 (frame_cleanup_after_sniffer): Update assert.
2550
b70e516e
SM
25512020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2552
2553 * regcache.c (pid_ptid_regcache_map): New type.
2554 (target_ptid_regcache_map): Remove.
2555 (target_pid_ptid_regcache_map): New type.
2556 (regcaches): Change type to target_pid_ptid_regcache_map.
2557 (get_thread_arch_aspace_regcache): Update.
2558 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2559 case.
2560 (regcaches_size): Update.
2561 (regcache_count): Update.
2562 (registers_changed_ptid_target_pid_test): New.
2563 (_initialize_regcache): Register new test.
2564
cdd9148a
SM
25652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2566
2567 * regcache.c (regcache_count): New.
2568 (struct regcache_test_data): New.
2569 (regcache_test_data_up): New.
2570 (populate_regcaches_for_test): New.
2571 (regcaches_test): Remove.
2572 (get_thread_arch_aspace_regcache_test): New.
2573 (registers_changed_ptid_all_test): New.
2574 (registers_changed_ptid_target_test): New.
2575 (registers_changed_ptid_target_ptid_test): New.
2576 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2577 (_initialize_regcache): Register new tests.
2578
dd125343
SM
25792020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2580
2581 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2582 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2583 gdbarch and aspace parameter. Use current inferior's aspace.
2584 Validate regcache's arch value.
2585 (regcaches_test): Update.
2586
3ee93972
SM
25872020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2588
2589 * regcache.c (regcaches_test): Call registers_changed.
2590
33bf4c5c
TBA
25912020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2592
2593 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2594
c2fd7fae
AKS
25952020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2596
2597 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2598 to find the end of prologue for flang compiled binaries.
2599 * arm-tdep.c (arm_skip_prologue): Likewise.
2600 * i386-tdep.c (i386_skip_prologue): Likewise.
2601 * producer.c (producer_is_llvm): New function.
2602 (producer_parsing_tests): Added new tests for clang/flang.
2603 * producer.h (producer_is_llvm): New declaration.
2604
9327494e
SM
26052020-08-18 Simon Marchi <simon.marchi@efficios.com>
2606
2607 * linux-nat.c (linux_nat_debug_printf): New function.
2608 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2609
d138725a
AM
26102020-08-18 Aaron Merey <amerey@redhat.com>
2611
2612 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2613 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2614 (CLIBS): Add DEBUGINFOD_LIBS.
2615
f9b11e6b
ST
26162020-08-17 Sergei Trofimovich <siarheit@google.com>
2617
2618 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2619 'gdbarch_num_regs'.
2620
3ae7ab99
TT
26212020-08-17 Tom Tromey <tromey@adacore.com>
2622
2623 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2624 ada_get_decoded_value returns NULL.
2625
b017825f
TT
26262020-08-17 Tom Tromey <tromey@adacore.com>
2627
2628 * python/py-inferior.c (infpy_search_memory): Use
2629 gdb_py_object_from_ulongest.
2630 * python/py-infevents.c (create_inferior_call_event_object)
2631 (create_memory_changed_event_object): Use
2632 gdb_py_object_from_ulongest.
2633 * python/py-linetable.c (ltpy_entry_get_pc): Use
2634 gdb_py_object_from_ulongest.
2635
7635cf79
SM
26362020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2637
2638 * loc.c (class symbol_needs_eval_context): Fix indentation.
2639
f54be24b
SM
26402020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2641
2642 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2643 bool.
2644
53d5a2a5
TV
26452020-08-17 Tom de Vries <tdevries@suse.de>
2646
2647 PR gdb/26393
2648 * gdbtypes.c (dump_dynamic_prop): New function.
2649 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2650
547ce8f0
TV
26512020-08-15 Tom de Vries <tdevries@suse.de>
2652
2653 PR backtrace/26390
2654 * stack.c (print_frame_args): Temporarily set the selected
2655 frame to FRAME while printing the frame's arguments.
2656
6ea815e7
PFC
26572020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2658
2659 PR breakpoints/26385
2660 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2661 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2662
6e562fa3
PFC
26632020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2664
2665 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2666 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2667 and >= to check return value instead of == -1 and != -1.
2668
d369b608
SM
26692020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2670
2671 * utils.h (class gdb_argv) <as_array_view>: New method.
2672 * utils.c (gdb_argv_as_array_view_test): New.
2673 (_initialize_utils): Register selftest.
2674 * maint.c (maintenance_selftest): Use the new method.
2675
b31488a3
KR
26762020-08-13 Kamil Rytarowski <n54@gmx.com>
2677
2678 * target.h (supports_dumpcore, dumpcore): New
2679 function declarations.
2680 * target.c (supports_dumpcore, dumpcore): New
2681 functions.
2682 * target-delegates.c: Rebuild.
2683 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2684 and target_dumpcore ().
2685
002a3166
AM
26862020-08-13 Aaron Merey <amerey@redhat.com>
2687
2688 * debuginfod-support.c: Replace global variables with user_data.
2689
ece5bc8a
SM
26902020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2691
2692 * maint.c (maintenance_selftest): Split args and pass array_view
2693 to run_tests.
2694
6d8a0a5e
LM
26952020-08-12 Luis Machado <luis.machado@linaro.org>
2696
2697 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2698 type's length.
2699 Use %s and pulongest to print the length.
2700
7cf663a9
PA
27012020-08-12 Pedro Alves <palves@redhat.com>
2702
2703 * NEWS: Move "Multi-target debugging support" item to the
2704 "Changes since GDB 9" section.
2705
27c7b875
PA
27062020-08-12 Pedro Alves <palves@redhat.com>
2707
2708 PR gdb/26336
2709 * progspace.c (program_space::remove_objfile): Invalidate the
2710 frame cache.
2711
1796a2a1
TV
27122020-08-11 Tom de Vries <tdevries@suse.de>
2713
2714 * MAINTAINERS: Mark ms1 as deleted.
2715
f8e3fe0d
LM
27162020-08-10 Luis Machado <luis.machado@linaro.org>
2717
2718 PR gdb/26310
2719
2720 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2721 act accordingly.
2722 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2723 movz/str/stur/stp skipping behavior.
2724
cc308722
LM
27252020-08-10 Luis Machado <luis.machado@linaro.org>
2726
2727 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2728 struct user_sve_header instead of struct sve_context.
2729
041d9819
SM
27302020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2731
2732 * read.h (dwarf2_fetch_die_loc_sect_off,
2733 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2734 `void *` parameter with function_view.
2735 * read.c (dwarf2_fetch_die_loc_sect_off,
2736 dwarf2_fetch_die_loc_cu_off): Likewise.
2737 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2738 (per_cu_dwarf_call): Adjust.
2739 (get_frame_address_in_block_wrapper): Remove.
2740 (indirect_synthetic_pointer): Adjust.
2741 (get_ax_pc): Remove.
2742 (dwarf2_compile_expr_to_ax): Adjust.
2743
38f8aa06
TV
27442020-08-08 Tom de Vries <tdevries@suse.de>
2745
2746 PR build/26344
2747 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2748 constructor.
2749 * regcache.c (get_thread_arch_aspace_regcache): Same.
2750
a52b3ae2
TT
27512020-08-07 Tom Tromey <tromey@adacore.com>
2752
2753 * ravenscar-thread.c
2754 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2755 New method.
2756 (ravenscar_thread_target::wait): Check
2757 runtime_initialized.
2758 (ravenscar_thread_target::prepare_to_store)
2759 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2760 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2761 (ravenscar_thread_target::stopped_by_watchpoint)
2762 (ravenscar_thread_target::stopped_data_address)
2763 (ravenscar_thread_target::core_of_thread): Use
2764 scoped_restore_current_thread and
2765 set_base_thread_from_ravenscar_task.
2766
0e29517d
TT
27672020-08-07 Tom Tromey <tromey@adacore.com>
2768
2769 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2770
592f9bd7
TT
27712020-08-07 Tom Tromey <tromey@adacore.com>
2772
2773 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2774 update_inferior_ptid before update_thread_list.
2775 (temporarily_change_regcache_ptid): New class.
2776 (ravenscar_thread_target::fetch_registers)
2777 (ravenscar_thread_target::store_registers)
2778 (ravenscar_thread_target::prepare_to_store): Use base thread when
2779 forwarding operation.
2780
39e2018a
TT
27812020-08-07 Tom Tromey <tromey@adacore.com>
2782
2783 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2784 "is_pid" case.
2785
2080266b
TT
27862020-08-07 Tom Tromey <tromey@adacore.com>
2787
2788 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2789 New methods.
2790 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2791 first.
2792 (ravenscar_thread_target::add_thread): Rename from
2793 ravenscar_add_thread.
2794 (ravenscar_thread_target::update_thread_list): Use a lambda.
2795 (ravenscar_thread_target::xfer_partial): New method.
2796
78c02f21
TT
27972020-08-07 Tom Tromey <tromey@adacore.com>
2798
2799 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2800 gdb::function_view.
2801 (iterate_over_live_ada_tasks): Change type of argument.
2802 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2803 of argument.
2804
d5d833af
TT
28052020-08-07 Tom Tromey <tromey@adacore.com>
2806
2807 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2808 Remove.
2809 (ravenscar_thread_target::extra_thread_info): Remove.
2810 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2811 defer to target beneath for non-Ravenscar threads.
2812
a8ac85bb
TT
28132020-08-07 Tom Tromey <tromey@adacore.com>
2814
2815 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2816 get_base_thread_from_ravenscar_task>: Now methods.
2817 <m_cpu_map>: New member.
2818 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2819 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2820 (ravenscar_thread_target::task_is_currently_active): Update.
2821 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2822 Now a method.
2823 (ravenscar_thread_target::add_active_thread): Put initial thread
2824 into the m_cpu_map.
2825
550ab58d
TT
28262020-08-07 Tom Tromey <tromey@adacore.com>
2827
2828 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2829 event_ptid.
2830
e9546579
TT
28312020-08-07 Tom Tromey <tromey@adacore.com>
2832
2833 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2834 runtime_initialized.
2835
3d4470e5
TT
28362020-08-07 Tom Tromey <tromey@adacore.com>
2837
2838 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2839 add_active_thread.
2840 (ravenscar_thread_target::add_active_thread): Now public.
2841 (ravenscar_inferior_created): Call add_active_thread after pushing
2842 the target.
2843
888bdb2b
SM
28442020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2845
2846 * regcache.c (ptid_regcache_map): New type.
2847 (target_ptid_regcache_map): New type.
2848 (regcaches): Change type to target_ptid_regcache_map.
2849 (get_thread_arch_aspace_regcache): Update to regcaches' new
2850 type.
2851 (regcache_thread_ptid_changed): Likewise.
2852 (registers_changed_ptid): Likewise.
2853 (regcaches_size): Likewise.
2854 (regcaches_test): Update.
2855 (regcache_thread_ptid_changed): Update.
2856 * regcache.h (regcache_up): New type.
2857 * gdbsupport/ptid.h (hash_ptid): New struct.
2858
b161a60d
SM
28592020-08-07 Simon Marchi <simon.marchi@efficios.com>
2860
2861 * observable.h (thread_ptid_changed): Add parameter
2862 `process_stratum_target *`.
2863 * infrun.c (infrun_thread_ptid_changed): Add parameter
2864 `process_stratum_target *` and use it.
2865 (selftests): New namespace.
2866 (infrun_thread_ptid_changed): New function.
2867 (_initialize_infrun): Register selftest.
2868 * regcache.c (regcache_thread_ptid_changed): Add parameter
2869 `process_stratum_target *` and use it.
2870 (regcache_thread_ptid_changed): New function.
2871 (_initialize_regcache): Register selftest.
2872 * thread.c (thread_change_ptid): Pass target to
2873 thread_ptid_changed observable.
2874
d2854d8d
CT
28752020-08-06 Caroline Tice <cmtice@google.com>
2876
fe4c3d43
SM
2877 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2878 (struct dwp_sections): Update field comments. Add loclists and
2879 rnglists fields.
2880 (struct virtual_v2_dwo_sections): Rename struct to
2881 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2882 size & offset fields for loclists and rnglists.
2883 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2884 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2885 skipping dummy type units.
2886 (create_dwp_hash_table): Update the large comment above the function to
2887 discuss Version 5 DWP files as well, with references. Update all the
2888 version checks in the function to check for version 5 as well. Add new
2889 section at the end to create dwp hash table for version 5.
2890 (create_dwp_v2_section): Rename function to
2891 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2892 Add V5 to error message text.
2893 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2894 into calls to create_dwp_v2_or_v5_section.
2895 (create_dwo_unit_in_dwp_v5): New function.
2896 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2897 check for version2; add else clause to handle version 5.
2898 (open_and_init_dwo_file): Add code to check dwarf version & only call
2899 create_debug_types_hash_table (with sections.types) if version is not 5;
2900 else call create_debug_type_hash_table, with sections.info.
2901 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2902 version 5.
2903 (dwarf2_locate_v5_dwp_sections): New function.
2904 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2905 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2906
159ed7d9
SM
29072020-08-06 Simon Marchi <simon.marchi@efficios.com>
2908
2909 * regcache.h (class regcache): Remove friend
2910 registers_changed_ptid.
2911 <regcache_thread_ptid_changed>: Remove.
2912 <regcaches>: Remove.
2913 * regcache.c (regcache::regcaches): Rename to...
2914 (regcaches): ... this. Make static.
2915 (get_thread_arch_aspace_regcache): Update.
2916 (regcache::regcache_thread_ptid_changed): Rename to...
2917 (regcache_thread_ptid_changed): ... this. Update.
2918 (class regcache_access): Remove.
2919 (regcaches_test): Update.
2920 (_initialize_regcache): Update.
2921 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2922 <forward_list>.
2923
174981ae
SM
29242020-08-06 Simon Marchi <simon.marchi@efficios.com>
2925
2926 * regcache.h (class regcache) <current_regcache>: Rename to...
2927 <regcaches>: ... this. Move doc here.
2928 * regcache.c (regcache::current_regcache) Rename to...
2929 (regcache::regcaches): ... this. Move doc to header.
2930 (get_thread_arch_aspace_regcache): Update.
2931 (regcache::regcache_thread_ptid_changed): Update.
2932 (registers_changed_ptid): Update.
2933 (class regcache_access) <current_regcache_size>: Rename to...
2934 <regcaches_size>: ... this.
2935 (current_regcache_test): Rename to...
2936 (regcaches_test): ... this.
2937 (_initialize_regcache): Update.
2938
ed908db6
VC
29392020-08-06 Victor Collod <vcollod@nvidia.com>
2940
2941 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2942
b5582ab7
KB
29432020-08-05 Kevin Buettner <kevinb@redhat.com>
2944
2945 * corelow.c (core_target::build_file_mappings): Don't output
2946 null pathname in warning.
2947
ea946b86
SM
29482020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2949
2950 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2951 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2952 gdb.dwarf2/dw2-single-line-discriminators.exp,
2953 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2954
57d02173
TT
29552020-08-05 Tom Tromey <tromey@adacore.com>
2956
2957 PR rust/26197:
2958 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2959 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2960 Fix off-by-one and type size errors in ordinary case.
2961
5555c86d
TV
29622020-08-05 Tom de Vries <tdevries@suse.de>
2963
2964 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2965 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2966
97916bfe
SM
29672020-08-04 Simon Marchi <simon.marchi@efficios.com>
2968
2969 * frame.h (frame_id_p): Return bool.
2970 (frame_id_artificial_p): Return bool.
2971 (frame_id_eq): Return bool.
2972 (has_stack_frames): Return bool.
2973 (get_selected_frame): Fix typo in comment.
2974 (get_frame_pc_if_available): Return bool.
2975 (get_frame_address_in_block_if_available): Return bool.
2976 (get_frame_func_if_available): Return bool.
2977 (read_frame_register_unsigned): Return bool.
2978 (get_frame_register_bytes): Return bool.
2979 (safe_frame_unwind_memory): Return bool.
2980 (deprecated_frame_register_read): Return bool.
2981 (frame_unwinder_is): Return bool.
2982 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2983 bool.
2984 <this_id::p>: Likewise.
2985 <prev_p>: Likewise.
2986 (frame_stash_add): Return bool.
2987 (get_frame_id): Use bool.
2988 (frame_id_build_special) Use bool.
2989 (frame_id_build_unavailable_stack): Use bool.
2990 (frame_id_build): Use bool.
2991 (frame_id_p): Return bool, use true/false instead of 1/0.
2992 (frame_id_artificial_p): Likewise.
2993 (frame_id_eq): Likewise.
2994 (frame_id_inner): Likewise.
2995 (get_frame_func_if_available): Likewise.
2996 (read_frame_register_unsigned): Likewise.
2997 (deprecated_frame_register_read): Likewise.
2998 (get_frame_register_bytes): Likewise.
2999 (has_stack_frames): Likewise.
3000 (inside_main_func): Likewise.
3001 (inside_entry_func): Likewise.
3002 (get_frame_pc_if_available): Likewise.
3003 (get_frame_address_in_block_if_available): Likewise.
3004 (frame_unwinder_is): Likewise.
3005 (safe_frame_unwind_memory): Likewise.
3006 (frame_unwind_arch): Likewise.
3007
fedfee88
SM
30082020-08-04 Simon Marchi <simon.marchi@efficios.com>
3009
3010 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3011 type to cached_copy_status.
3012 (fprintf_frame): Adjust.
3013 (get_frame_func_if_available): Adjust.
3014 (frame_cleanup_after_sniffer): Adjust.
3015
6cfa9b59
MW
30162020-08-04 Mark Wielaard <mark@klomp.org>
3017
3018 * MAINTAINERS (Write After Approval): Update email address.
3019
66d6346b
SM
30202020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3021
3022 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3023 dynamic_prop::const_val.
3024
8a6d5e35
SM
30252020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3026
3027 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3028 dynamic_prop::kind.
3029
51d6067d
SM
30302020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3031
3032 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3033
b26e2ae7
JM
30342020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3035
3036 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3037
39791af2
JM
30382020-08-04 Weimin Pan <weimin.pan@oracle.com>
3039 Jose E. Marchesi <jose.marchesi@oracle.com>
3040
3041 * configure.tgt: Add entry for bpf-*-*.
3042 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3043 (ALLDEPFILES): Add bpf-tdep.c.
3044 * bpf-tdep.c: New file.
3045 * MAINTAINERS: Add bpf target and maintainer.
3046 * NEWS: Mention the support for the new target.
3047
521894aa
TV
30482020-08-04 Tom de Vries <tdevries@suse.de>
3049
3050 PR symtab/23270
3051 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3052 Error.
3053
5d6356e9
JB
30542020-08-03 John Baldwin <jhb@FreeBSD.org>
3055
3056 * syscalls/freebsd.xml: Regenerate.
3057
0cf82b81
JB
30582020-08-03 John Baldwin <jhb@FreeBSD.org>
3059
3060 * syscalls/update-freebsd.sh: Fix usage and year range.
3061
8f34b746
TV
30622020-08-03 Tom de Vries <tdevries@suse.de>
3063
3064 PR symtab/26333
3065 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3066 DW_LNE_lo_user/DW_LNE_hi_user range.
3067
5e500d33
SM
30682020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3069
3070 PR ada/26318
3071 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3072 kind.
3073
78319c15
TBA
30742020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3075
3076 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3077
4c55e970
TBA
30782020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3079
3080 * breakpoint.c (set_breakpoint_condition): Update the condition
3081 expressions after checking that the input condition string parses
3082 successfully and does not contain junk at the end.
3083
1e620590
TBA
30842020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3085
3086 * breakpoint.c (set_breakpoint_condition): Update the
3087 condition string after parsing the new condition successfully.
3088
c8693053
RO
30892020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3090
3091 * proc-api.c (_STRUCTURED_PROC): Don't define.
3092 * proc-events.c: Likewise.
3093 * proc-flags.c: Likewise.
3094 * proc-why.c: Likewise.
3095 * procfs.c: Likewise.
3096
3097 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3098 * configure, config.in: Regenerate.
3099
5a99adb8
TV
31002020-07-30 Tom de Vries <tdevries@suse.de>
3101
3102 PR build/26320
3103 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3104 m_red/m_green/m_blue in a union.
3105
8ba83e91
TV
31062020-07-29 Tom de Vries <tdevries@suse.de>
3107
3108 PR tdep/26280
3109 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3110
f75a0693
AB
31112020-07-28 Tom Tromey <tromey@adacore.com>
3112
3113 PR symtab/26270:
3114 * symtab.h (find_pc_partial_function_sym): Declare.
3115 * cli/cli-cmds.c (disassemble_command): Use
3116 find_pc_partial_function_sym. Check asm_demangle.
3117 * blockframe.c (cache_pc_function_sym): New global.
3118 (cache_pc_function_name): Remove.
3119 (clear_pc_function_cache): Update.
3120 (find_pc_partial_function_sym): New function, from
3121 find_pc_partial_function.
3122 (find_pc_partial_function): Rewrite using
3123 find_pc_partial_function_sym.
3124
16f3242c
TT
31252020-07-28 Tom Tromey <tromey@adacore.com>
3126
3127 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3128 help. Add usage.
3129
4888741a
TT
31302020-07-28 Tom Tromey <tromey@adacore.com>
3131
3132 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3133 <DW_OP_GNU_variable_value>: Cast to address type.
3134
4d46f402
KR
31352020-07-28 Kamil Rytarowski <n54@gmx.com>
3136
3137 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3138 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3139 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3140 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3141 (nbsd_get_siginfo_type): New.
3142 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3143 (_initialize_nbsd_tdep): New.
3144
d70f978b
L
31452020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3146
3147 PR binutils/26301
3148 * configure: Regenerated.
3149
377170fa
L
31502020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3151
3152 PR binutils/26301
3153 * configure: Regenerated.
3154
43d5901d
AB
31552020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3156
3157 * python/py-frame.c: Remove 'user-regs.h' include.
3158 (frapy_read_register): Rewrite to make use of
3159 gdbpy_parse_register_id.
3160 * python/py-registers.c (gdbpy_parse_register_id): New function,
3161 moved here from python/py-unwind.c. Updated the return type, and
3162 also accepts register descriptor objects.
3163 * python/py-unwind.c: Remove 'user-regs.h' include.
3164 (pyuw_parse_register_id): Moved to python/py-registers.c.
3165 (unwind_infopy_add_saved_register): Update to use
3166 gdbpy_parse_register_id.
3167 (pending_framepy_read_register): Likewise.
3168 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3169
14fa8fb3
AB
31702020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3171
3172 * python/py-registers.c: Add 'user-regs.h' include.
3173 (register_descriptor_iter_find): New function.
3174 (register_descriptor_iterator_object_methods): New static global
3175 methods array.
3176 (register_descriptor_iterator_object_type): Add pointer to methods
3177 array.
3178
ddce1758
JB
31792020-07-27 John Baldwin <jhb@FreeBSD.org>
3180
3181 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3182 for all architectures on FreeBSD 11.3 and later.
3183
a4089f52
TT
31842020-07-27 Tom Tromey <tromey@adacore.com>
3185
3186 * gcore.h (load_corefile): Don't declare.
3187
95420d30
TV
31882020-07-27 Tom de Vries <tdevries@suse.de>
3189
3190 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3191 * config.in: Regenerate.
3192 * configure: Regenerate.
3193
05a6b8c2
EZ
31942020-07-26 Eli Zaretskii <eliz@gnu.org>
3195
3196 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3197 ws2tcpip.h. When checking whether socklen_t type is defined, use
3198 ws2tcpip.h if it is available and sys/socket.h isn't.
3199 * configure: Regenerate.
3200 * config.in: Regenerate.
3201
e79eb02f
AB
32022020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3203
3204 PR fortran/23051
3205 PR fortran/26139
3206 * valops.c (value_ind): Pass address to
3207 readjust_indirect_value_type.
3208 * value.c (readjust_indirect_value_type): Make parameter
3209 non-const, and add extra address parameter. Resolve original type
3210 before using it.
3211 * value.h (readjust_indirect_value_type): Update function
3212 signature and comment.
3213
876518dd
TV
32142020-07-25 Tom de Vries <tdevries@suse.de>
3215
3216 PR symtab/26243
3217 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3218 entries.
3219
f6720b1c
AM
32202020-07-24 Aaron Merey <amerey@redhat.com>
3221
3222 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3223 * configure: Rebuild.
3224
513487e1
KB
32252020-07-23 Kevin Buettner <kevinb@redhat.com>
3226
3227 PR corefiles/26294
3228 * corelow.c (_initialize_corelow): Add period to help text
3229 for "maintenance print core-file-backed-mappings".
3230
e7bc9db8
PA
32312020-07-23 Pedro Alves <pedro@palves.net>
3232
3233 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3234 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3235 meanwhile.
3236 * frame.c (frame_cache_generation, get_frame_cache_generation):
3237 New.
3238 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3239 (get_prev_frame_if_no_cycle): On exception, don't touch
3240 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3241 * frame.h (get_frame_cache_generation): Declare.
3242
90fcc466
TV
32432020-07-23 Tom de Vries <tdevries@suse.de>
3244
3245 PR tui/26282
3246 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3247 New default constructor.
3248
78344df7
AB
32492020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3250
3251 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3252 exclude non-statement entries.
3253
b089853a
KB
32542020-07-22 Kevin Buettner <kevinb@redhat.com>
3255
3256 * NEWS (New commands): Mention new command
3257 "maintenance print core-file-backed-mappings".
3258
09c2f5d4
KB
32592020-07-22 Kevin Buettner <kevinb@redhat.com>
3260
3261 * corelow.c (gdbcmd.h): Include.
3262 (core_target::info_proc_mappings): New method.
3263 (get_current_core_target): New function.
3264 (maintenance_print_core_file_backed_mappings): New function.
3265 (_initialize_corelow): Add core-file-backed-mappings to
3266 "maint print" commands.
3267
9c5ec5c2 32682020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3269
9c5ec5c2
KB
3270 * linux-tdep.c (dump_note_entry_p): New function.
3271 (linux_dump_mapping_p_ftype): New typedef.
3272 (linux_find_memory_regions_full): Add new parameter,
3273 should_dump_mapping_p.
3274 (linux_find_memory_regions): Adjust call to
3275 linux_find_memory_regions_full.
3276 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3277 call to linux_find_memory_regions_full.
3278
db082f59
KB
32792020-07-22 Kevin Buettner <kevinb@redhat.com>
3280
3281 * corelow.c (solist.h, unordered_map): Include.
3282 (class core_target): Add field m_core_file_mappings and
3283 method build_file_mappings.
3284 (core_target::core_target): Call build_file_mappings.
3285 (core_target::~core_target): Free memory associated with
3286 m_core_file_mappings.
3287 (core_target::build_file_mappings): New method.
3288 (core_target::xfer_partial): Use m_core_file_mappings
3289 for memory transfers.
3290 * linux-tdep.c (linux_read_core_file_mappings): New
3291 function.
3292 (linux_core_info_proc_mappings): Rewrite to use
3293 linux_read_core_file_mappings.
3294 (linux_init_abi): Register linux_read_core_file_mappings.
3295
7e183d27
KB
32962020-07-22 Kevin Buettner <kevinb@redhat.com>
3297
3298 * arch-utils.c (default_read_core_file_mappings): New function.
3299 * arch-utils.c (default_read_core_file_mappings): Declare.
3300 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3301 * gdbarch.h, gdbarch.c: Regenerate.
3302
2735d421
KB
33032020-07-22 Kevin Buettner <kevinb@redhat.com>
3304
3305 PR corefiles/25631
3306 * corelow.c (core_target:xfer_partial): Revise
3307 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3308 case after first checking the stratum beneath the core
3309 target.
3310 (has_all_memory): Return true.
3311 * target.c (raw_memory_xfer_partial): Revise comment
3312 regarding use of has_all_memory.
3313
e56cb451
KB
33142020-07-22 Kevin Buettner <kevinb@redhat.com>
3315
3316 * exec.h (section_table_xfer_memory): Revise declaration,
3317 replacing section name parameter with an optional callback
3318 predicate.
3319 * exec.c (section_table_xfer_memory): Likewise.
3320 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3321 of section_table_xfer_memory.
3322
32fa152e
TT
33232020-07-22 Tom Tromey <tromey@adacore.com>
3324
3325 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3326 lookup_symbol_search_name.
3327
a67a1c41
AB
33282020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3329
3330 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3331 redundant local variable.
3332 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3333 reference, not pointer, update code accordingly.
3334
a7b4ff4f
SM
33352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3336 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3337
3338 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3339 * jit.c (jit_breakpoint_re_set_internal): Use the
3340 `skip_jit_symbol_lookup` field.
3341
2340e834
SM
33422020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3343 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3344
3345 * jit.c (jit_read_descriptor): Define the descriptor address once,
3346 use twice.
3347 (jit_breakpoint_deleted): Move the declaration of the loop variable
3348 `iter` into the loop header.
3349 (jit_breakpoint_re_set_internal): Move the declaration of the local
3350 variable `objf_data` to the first point of definition.
3351 (jit_event_handler): Move the declaration of local variables
3352 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3353 Rename `objf` to `jited`.
3354
c1072906
SM
33552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3356
3357 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3358 Remove.
3359 * jit.c (get_jiter_objfile_data): Update.
3360
c8474dc3
TBA
33612020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3362 Simon Marchi <simon.marchi@polymtl.ca>
3363
3364 * jit.c (struct jit_program_space_data): Remove.
3365 (jit_program_space_key): Remove.
3366 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3367 stuff.
3368 (get_jit_program_space_data): Remove.
3369 (jit_breakpoint_deleted): Iterate on all of the program space's
3370 objfiles.
3371 (jit_inferior_init): Likewise.
3372 (jit_breakpoint_re_set_internal): Likewise. Also change return
3373 type to void.
3374 (jit_breakpoint_re_set): Pass current_program_space to
3375 jit_breakpoint_re_set_internal.
3376
77208eb7
SM
33772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3378
3379 * jit.h (struct jiter_objfile_data) <cached_code_address,
3380 jit_breakpoint>: Move to here from ...
3381 * jit.c (jit_program_space_data): ... here.
3382 (jiter_objfile_data::~jiter_objfile_data): Update.
3383 (jit_breakpoint_deleted): Update.
3384 (jit_breakpoint_re_set_internal): Update.
3385
8c1c720f
SM
33862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3387
3388 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3389 checks.
3390 (jit_read_descriptor): Remove NULL check.
3391 (jit_event_handler): Add an assertion.
3392
0e74a041
SM
33932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3394
3395 * jit.h (struct jit_objfile_data): Split into...
3396 (struct jiter_objfile_data): ... this ...
3397 (struct jited_objfile_data): ... and this.
3398 * objfiles.h (struct objfile) <jit_data>: Remove.
3399 <jiter_data, jited_data>: New fields.
3400 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3401 (jiter_objfile_data::~jiter_objfile_data): ... this.
3402 (get_jit_objfile_data): Rename to ...
3403 (get_jiter_objfile_data): ... this.
3404 (add_objfile_entry): Update.
3405 (jit_read_descriptor): Use get_jiter_objfile_data.
3406 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3407 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3408 (jit_inferior_exit_hook): Use objfile's jited_data field.
3409
238b5c9f
SM
34102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3411
3412 * jit.h: Forward-declare `struct minimal_symbol`.
3413 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3414 constructor, destructor, and an objfile* field.
3415 * jit.c (jit_objfile_data): Remove.
3416 (struct jit_objfile_data): Migrate from here to jit.h.
3417 (jit_objfile_data::~jit_objfile_data): New destructor
3418 implementation with code moved from free_objfile_data.
3419 (free_objfile_data): Delete.
3420 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3421 (jit_find_objf_with_entry_addr): Ditto.
3422 (jit_inferior_exit_hook): Ditto.
3423 (_initialize_jit): Remove the call to
3424 register_objfile_data_with_cleanup.
3425 * objfiles.h (struct objfile) <jit_data>: New field.
3426
fe053b9e
TBA
34272020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3428
3429 * jit.h: Forward-declare `struct objfile`.
3430 (jit_event_handler): Add a second parameter, the JITer objfile.
3431 * jit.c (jit_read_descriptor): Change the signature to take the
3432 JITer objfile as an argument instead of the jit_program_space_data.
3433 (jit_inferior_init): Update the call to jit_read_descriptor.
3434 (jit_event_handler): Use the new JITer objfile argument when calling
3435 jit_read_descriptor.
3436 * breakpoint.c (handle_jit_event): Update the call to
3437 jit_event_handler to pass the JITer objfile.
3438
4cec0c66
JB
34392020-07-21 John Baldwin <jhb@FreeBSD.org>
3440
3441 * gdbarch.c: Regenerate.
3442 * gdbarch.h: Regenerate.
3443 * gdbarch.sh (handle_segmentation_fault): Remove method.
3444 * infrun.c (handle_segmentation_fault): Remove.
3445 (print_signal_received_reason): Remove call to
3446 handle_segmentation_fault.
3447
0e42f66a
JB
34482020-07-21 John Baldwin <jhb@FreeBSD.org>
3449
3450 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3451 Rename to sparc64_linux_report_signal_info and add siggnal
3452 argument.
3453 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3454 instead of sparc64_linux_handle_segmentation_fault.
3455
77bdfeb2
JB
34562020-07-21 John Baldwin <jhb@FreeBSD.org>
3457
3458 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3459 i386_linux_report_signal_info instead of
3460 i386_linux_handle_segmentation_fault.
3461 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3462 to i386_linux_report_signal_info and add siggnal argument.
3463 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3464 of i386_linux_handle_segmentation_fault.
3465 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3466 to i386_linux_report_signal_info and add siggnal argument.
3467
ad97bfc5
JB
34682020-07-21 John Baldwin <jhb@FreeBSD.org>
3469
3470 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3471 hook if present.
3472
272bb05c
JB
34732020-07-21 John Baldwin <jhb@FreeBSD.org>
3474
3475 * gdbarch.c: Regenerate.
3476 * gdbarch.h: Regenerate.
3477 * gdbarch.sh (report_signal_info): New method.
3478 * infrun.c (print_signal_received_reason): Invoke gdbarch
3479 report_signal_info hook if present.
3480
baf8791e
AB
34812020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3482
3483 * python/py-registers.c : Add 'unordered_map' include.
3484 (gdbpy_new_reggroup): Renamed to...
3485 (gdbpy_get_reggroup): ...this. Update to only create register
3486 group descriptors when needed.
3487 (gdbpy_reggroup_iter_next): Update.
3488
f7306dac
AB
34892020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3490
3491 * python/py-registers.c (gdbpy_register_object_data): New static
3492 global.
3493 (gdbpy_register_object_data_init): New function.
3494 (gdbpy_new_register_descriptor): Renamed to...
3495 (gdbpy_get_register_descriptor): ...this, and update to reuse
3496 existing register descriptors where possible.
3497 (gdbpy_register_descriptor_iter_next): Update.
3498 (gdbpy_initialize_registers): Register new gdbarch data.
3499
05c309a8
SM
35002020-07-21 Simon Marchi <simon.marchi@efficios.com>
3501
3502 * linux-nat.c (stopped_pids): Make static.
3503
d1fd641e
SM
35042020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3505
3506 PR ada/26235
3507 * gdbtypes.c (ada_discrete_type_low_bound,
3508 ada_discrete_type_high_bound): Handle undefined bounds.
3509
1de14d77
KR
35102020-07-21 Kamil Rytarowski <n54@gmx.com>
3511
3512 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3513 declaration.
3514 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3515 function.
3516
ed810cc7
JB
35172020-07-20 John Baldwin <jhb@FreeBSD.org>
3518
3519 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3520 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3521 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3522 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3523 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3524 method.
3525
ae5369e7
LC
35262020-07-20 Ludovic Courtès <ludo@gnu.org>
3527
3528 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3529 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3530 which are deprecated in Guile 3.0.
3531 * configure.ac (try_guile_versions): Add "guile-3.0".
3532 * configure (try_guile_versions): Regenerate.
3533 * NEWS: Update entry.
3534
68cf161c
LC
35352020-07-20 Ludovic Courtès <ludo@gnu.org>
3536 Doug Evans <dje@google.com>
3537
3538 PR gdb/21104
3539 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3540 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3541 USING_GUILE_BEFORE_2_2.
3542 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3543 Change type to 'scm_t_port_type *'.
3544 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3545 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3546 parameter and honor it. Update callers.
3547 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3548 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3549 functions.
3550 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3551 USING_GUILE_BEFORE_2_2.
3552 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3553 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3554 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3555 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3556 and 'SCM_PORT_TYPE'.
3557 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3558 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3559 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3560 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3561 [!USING_GUILE_BEFORE_2_2]: New functions.
3562 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3563 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3564 'gdbscm_memory_port_read'.
3565 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3566 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3567 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3568 function.
3569 (ioscm_init_memory_port): Remove.
3570 (ioscm_init_memory_port_stream): New function
3571 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3572 function.
3573 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3574 Return scm_from_uint (0).
3575 (gdbscm_set_memory_port_read_buffer_size_x)
3576 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3577 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3578 Return scm_from_uint (0).
3579 (gdbscm_set_memory_port_write_buffer_size_x)
3580 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3581 * configure.ac (try_guile_versions): Add "guile-2.2".
3582 * configure: Regenerate.
3583 * NEWS: Add entry.
3584
aee91db3
TT
35852020-07-18 Tom Tromey <tom@tromey.com>
3586
3587 * linux-nat.c (linux_multi_process): Remove.
3588 (linux_nat_target::supports_multi_process): Return true.
3589
0e267416
AB
35902020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3591
3592 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3593 (riscv_lookup_target_description): Return pointer out of
3594 unique_ptr.
3595 * target-descriptions.c (allocate_target_description): Add
3596 comment.
3597 (target_desc_deleter::operator()): Likewise.
3598 * target-descriptions.h (struct target_desc_deleter): Moved to
3599 gdbsupport/tdesc.h.
3600 (target_desc_up): Likewise.
3601
f80c8ec4
TT
36022020-07-17 Tom Tromey <tromey@adacore.com>
3603
3604 * linux-nat.c (linux_nat_target::supports_non_stop)
3605 (linux_nat_target::always_non_stop_p): Use "true".
3606 (linux_nat_target::supports_disable_randomization): Use "true" and
3607 "false".
3608
d0ce17d8
CT
36092020-07-16 Caroline Tice <cmtice@google.com>
3610
3611 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3612 (RNGLIST_HEADER_SIZE64): New constant definition.
3613 (struct dwop_section_names): Add rnglists_dwo.
3614 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3615 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3616 (struct dwo_sections): Add rnglists field.
3617 (read_attribut_reprocess): Add tag parameter.
3618 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3619 (cu_debug_rnglists_section): New function (decl & definition).
3620 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3621 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3622 die whose range is being checked; get rnglist section from
3623 cu_debug_rnglists_section, to get from either objfile or dwo file as
3624 appropriate. Add cases for DW_RLE_base_addressx,
3625 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3626 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3627 test inside if-condition and updating complaint message.
3628 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3629 dwarf2_rnglists_process.
3630 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3631 dwarf2_ranges_process.
3632 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3633 need_ranges_base and update comment appropriately. Also pass die tag
3634 to dwarf2_ranges_read.
3635 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3636 need_ranges_base and update comment appropriately. Also pass die tag
3637 to dwarf2_ranges_process.
3638 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3639 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3640 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3641 need_ranges_base and update comment appropriately. Also pass die tag
3642 to read_attribute_reprocess and dwarf2_ranges_read.
3643 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3644 and update function comment appropriately.
3645 (read_loclist_index): Call read_loclists_rnglists_header instead of
3646 read_loclist_header.
3647 (read_rnglist_index): New function.
3648 (read_attribute_reprocess): Add tag parameter. Add code for
3649 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3650 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3651
3dcc261c
AB
36522020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3653
3654 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3655 being resolved.
3656
ccb9eba6
AB
36572020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3658
3659 * arch-utils.c (show_architecture): Update formatting of messages.
3660
cf88be68
SM
36612020-07-12 Simon Marchi <simon.marchi@efficios.com>
3662
3663 * gdbtypes.h (struct type) <bounds>: Handle array and string
3664 types.
3665 * ada-lang.c (assign_aggregate): Use type::bounds on
3666 array/string type.
3667 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3668 * c-varobj.c (c_number_of_children): Likewise.
3669 (c_describe_child): Likewise.
3670 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3671 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3672 (f_type_print_base): Likewise.
3673 * f-valprint.c (f77_array_offset_tbl): Likewise.
3674 (f77_get_upperbound): Likewise.
3675 (f77_print_array_1): Likewise.
3676 * guile/scm-type.c (gdbscm_type_range): Likewise.
3677 * m2-typeprint.c (m2_array): Likewise.
3678 (m2_is_long_set_of_type): Likewise.
3679 * m2-valprint.c (get_long_set_bounds): Likewise.
3680 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3681 * python/py-type.c (typy_range): Likewise.
3682 * rust-lang.c (rust_internal_print_type): Likewise.
3683 * type-stack.c (type_stack::follow_types): Likewise.
3684 * valarith.c (value_subscripted_rvalue): Likewise.
3685 * valops.c (value_cast): Likewise.
3686
509971ae
SM
36872020-07-12 Simon Marchi <simon.marchi@efficios.com>
3688
3689 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3690 callers to use the equivalent accessor methods.
3691
107406b7
SM
36922020-07-12 Simon Marchi <simon.marchi@efficios.com>
3693
3694 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3695 (struct type) <bit_stride>: New method.
3696 (TYPE_BIT_STRIDE): Remove.
3697 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3698
bb789949
SM
36992020-07-12 Simon Marchi <simon.marchi@efficios.com>
3700
3701 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3702 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3703 callers to use the equivalent accessor methods instead.
3704
39498edb
SM
37052020-07-12 Simon Marchi <simon.marchi@efficios.com>
3706
3707 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3708 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3709 callers to use the equivalent accessor methods instead.
3710
3b606f38
SM
37112020-07-12 Simon Marchi <simon.marchi@efficios.com>
3712
3713 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3714 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3715 to use dynamic_prop::kind.
3716
064d9cb9
SM
37172020-07-12 Simon Marchi <simon.marchi@efficios.com>
3718
3719 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3720 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3721 to get the bound property's kind and check against
3722 PROP_UNDEFINED.
3723
5537ddd0
SM
37242020-07-12 Simon Marchi <simon.marchi@efficios.com>
3725
3726 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3727 all callers to use type::range_bounds followed by
3728 dynamic_prop::{low,high}.
3729
8c2e4e06
SM
37302020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3731
3732 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3733 const_val, set_const_val, baton, set_locexpr, set_loclist,
3734 set_addr_offset, variant_parts, set_variant_parts,
3735 original_type, set_original_type>: New methods.
3736 <kind>: Rename to...
3737 <m_kind>: ... this. Update all users to use the new methods
3738 instead.
3739 <data>: Rename to...
3740 <m_data>: ... this. Update all users to use the new methods
3741 instead.
3742
7c6f2712
SM
37432020-07-12 Simon Marchi <simon.marchi@efficios.com>
3744
3745 * gdbtypes.c (get_discrete_bounds): Return failure if
3746 the range type's bounds are not both defined and constant
3747 values.
3748 (get_array_bounds): Update comment. Remove undefined bound check.
3749
599088e3
SM
37502020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3751
3752 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3753 the type::bounds method directly.
3754
c4dfcb36
SM
37552020-07-12 Simon Marchi <simon.marchi@efficios.com>
3756
3757 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3758 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3759 are used to set the range type's bounds to use set_bounds.
3760
0a278aa7
PW
37612020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3762
3763 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3764
cce20f10
PA
37652020-07-10 Pedro Alves <pedro@palves.net>
3766
3767 * gdbthread.h (inferior_ref): Define.
3768 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3769 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3770 * thread.c
3771 (scoped_restore_current_thread::restore):
3772 Adjust to gdb::ref_ptr.
3773 (scoped_restore_current_thread::~scoped_restore_current_thread):
3774 Remove manual decref handling.
3775 (scoped_restore_current_thread::scoped_restore_current_thread):
3776 Adjust to use
3777 inferior_ref::new_reference/thread_info_ref::new_reference.
3778 Incref the thread before calling get_frame_id instead of after.
3779 Let TARGET_CLOSE_ERROR propagate.
3780
6d7aa592
PA
37812020-07-10 Pedro Alves <pedro@palves.net>
3782
3783 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3784 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3785 NOT_AVAILABLE_ERROR.
3786 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3787 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3788
b3e3a4c1
SM
37892020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3790 Pedro Alves <pedro@palves.net>
3791
3792 PR gdb/26199
3793 * infrun.c (threads_are_resumed_pending_p): Delete.
3794 (do_target_wait): Remove threads_are_executing and
3795 threads_are_resumed_pending_p checks from the inferior_matches
3796 lambda. Update comments.
3797
d6cc5d98
PA
37982020-07-10 Pedro Alves <pedro@palves.net>
3799
3800 PR gdb/26199
3801 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3802 executing threads.
3803
7d3badc6
PA
38042020-07-10 Pedro Alves <pedro@palves.net>
3805
3806 PR gdb/26199
3807 * infrun.c (handle_no_resumed): Handle multiple targets.
3808
42bd97a6
PA
38092020-07-10 Pedro Alves <pedro@palves.net>
3810
3811 PR gdb/26199
3812 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3813 target_is_async_p.
3814
43667cc6
PA
38152020-07-10 Pedro Alves <pedro@palves.net>
3816
3817 PR gdb/26199
3818 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3819 threads, not all threads.
3820
96118d11
PA
38212020-07-10 Pedro Alves <pedro@palves.net>
3822
3823 PR gdb/26199
3824 * remote.c (remote_target::open_1): Pass remote target pointer as
3825 data to create_async_event_handler.
3826 (remote_async_inferior_event_handler): Mark async event handler
3827 before returning if the remote target still has either pending
3828 events or unacknowledged notifications.
3829
54904d81
JB
38302020-07-10 John Baldwin <jhb@FreeBSD.org>
3831
3832 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3833 declaration.
3834 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3835 function.
3836
f37e5866
JB
38372020-07-09 John Baldwin <jhb@FreeBSD.org>
3838
3839 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3840 inferior_ptid.
3841
fc238d4a
JB
38422020-07-09 John Baldwin <jhb@FreeBSD.org>
3843
3844 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3845 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3846 AT_FREEBSD_PS_STRINGS.
3847
6e2469ff
HD
38482020-07-08 Hannes Domani <ssbssa@yahoo.de>
3849
3850 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3851 of debugfile path on Windows.
3852
d1076c41
JB
38532020-07-08 John Baldwin <jhb@FreeBSD.org>
3854
3855 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3856 argument to 'data'.
3857
15f3b077
TT
38582020-07-08 Tom Tromey <tromey@adacore.com>
3859
3860 * ada-lang.c (ada_exception_message_1): Use read_memory.
3861
9fc501fd
AB
38622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3863
3864 PR python/22748
3865 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3866 special handling for inline frames.
3867 * findvar.c (value_of_register_lazy): Skip inline frames when
3868 creating lazy register values.
3869 * frame.c (frame_id_computed_p): Delete definition.
3870 * frame.h (frame_id_computed_p): Delete declaration.
3871
64cb3757
AB
38722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3873
3874 * NEWS: Mention additions to Python API.
3875 * python/py-arch.c (archpy_register_groups): New function.
3876 (arch_object_methods): Add 'register_groups' method.
3877 * python/py-registers.c (reggroup_iterator_object): New struct.
3878 (reggroup_object): New struct.
3879 (gdbpy_new_reggroup): New function.
3880 (gdbpy_reggroup_to_string): New function.
3881 (gdbpy_reggroup_name): New function.
3882 (gdbpy_reggroup_iter): New function.
3883 (gdbpy_reggroup_iter_next): New function.
3884 (gdbpy_new_reggroup_iterator): New function
3885 (gdbpy_initialize_registers): Register new types.
3886 (reggroup_iterator_object_type): Define new Python type.
3887 (gdbpy_reggroup_getset): New static global.
3888 (reggroup_object_type): Define new Python type.
3889 * python/python-internal.h
3890
0f767f94
AB
38912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3892
3893 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3894 * python/py-arch.c (archpy_registers): New function.
3895 (arch_object_methods): Add 'registers' method.
3896 * python/py-registers.c: New file.
3897 * python/python-internal.h
3898 (gdbpy_new_register_descriptor_iterator): Declare.
3899 (gdbpy_initialize_registers): Declare.
3900 * python/python.c (do_start_initialization): Call
3901 gdbpy_initialize_registers.
3902 * NEWS: Mention additions to the Python API.
3903
87dbc774
AB
39042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3905
3906 * NEWS: Mention new Python API method.
3907 * python/py-unwind.c (pending_framepy_architecture): New function.
3908 (pending_frame_object_methods): Add architecture method.
3909
3bc98c0c
AB
39102020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3911
3912 * gdbarch.c: Regenerate.
3913 * gdbarch.h: Regenerate.
3914 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3915 (gdbarch_data): Use internal_error for the case where
3916 deprecated_set_gdbarch_data was originally needed.
3917 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3918 and use passed in obstack.
3919 (libunwind_frame_set_descr): Should no longer get back NULL from
3920 gdbarch_data.
3921 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3922 type.
3923 * user-regs.c (user_regs_init): Update parameters, and use passed
3924 in obstack.
3925 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3926 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3927
d8cc8af6
TV
39282020-07-06 Tom de Vries <tdevries@suse.de>
3929
3930 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3931 End-Of-Sequence in lte_is_less_than.
3932 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3933 "gdb: Don't reorder line table entries too much when sorting".
3934
947f7597
TV
39352020-07-06 Tom de Vries <tdevries@suse.de>
3936
3937 PR tui/26205
3938 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3939
1e7c1b22
TV
39402020-07-05 Tom de Vries <tdevries@suse.de>
3941
3942 PR build/26187
3943 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3944 std::uncaught_exceptions instead of deprecated
3945 std::uncaught_exception.
3946
a36158ec
SM
39472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3948
3949 * macroexp.h (macro_stringify): Return
3950 gdb::unique_xmalloc_ptr<char>.
3951 * macroexp.c (macro_stringify): Likewise.
3952 * macrotab.c (fixup_definition): Update.
3953
14d960c8
SM
39542020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3955
3956 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3957 (lex_one_token): Update.
3958 * macroexp.c (struct macro_buffer) <release>: Return
3959 gdb::unique_xmalloc_ptr<char>.
3960 (macro_stringify): Update.
3961 (macro_expand): Update.
3962 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3963 * macroexp.h (macro_expand_next): Likewise.
3964
211d5b1c
SM
39652020-07-02 Simon Marchi <simon.marchi@efficios.com>
3966
3967 * macroexp.h (macro_lookup_ftype): Remove.
3968 (macro_expand, macro_expand_once, macro_expand_next): Remove
3969 lookup function parameters, add scope parameter.
3970 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3971 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3972 * macroscope.h (standard_macro_lookup): Change parameter type
3973 to macro_scope.
3974 * macroscope.c (standard_macro_lookup): Likewise.
3975 * c-exp.y (lex_one_token): Update.
3976 * macrocmd.c (macro_expand_command): Likewise.
3977 (macro_expand_once_command): Likewise.
3978
b1a35af2
SM
39792020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3980
3981 * inf-loop.c (inferior_event_handler): Remove client_data param.
3982 * inf-loop.h (inferior_event_handler): Likewise.
3983 * infcmd.c (step_1): Adjust.
3984 * infrun.c (proceed): Adjust.
3985 (fetch_inferior_event): Remove client_data param.
3986 (infrun_async_inferior_event_handler): Adjust.
3987 * infrun.h (fetch_inferior_event): Remove `void *` param.
3988 * linux-nat.c (handle_target_event): Adjust.
3989 * record-btrace.c (record_btrace_handle_async_inferior_event):
3990 Adjust.
3991 * record-full.c (record_full_async_inferior_event_handler):
3992 Adjust.
3993 * remote.c (remote_async_inferior_event_handler): Adjust.
3994
1cdf9e33
TT
39952020-07-01 Tom Tromey <tom@tromey.com>
3996
3997 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3998 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3999
32c1e210
TT
40002020-07-01 Tom Tromey <tom@tromey.com>
4001
4002 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4003 tui_gen_win_info.
4004 (tui_win_info::make_window): Merge with
4005 tui_gen_win_info::make_window.
4006 (tui_win_info::make_visible): Move from tui_gen_win_info.
4007 * tui/tui-win.c (tui_win_info::max_width): Move from
4008 tui_gen_win_info.
4009 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4010 type.
4011 <window_factory>: Likewise.
4012 * tui/tui-layout.c (tui_win_info::resize): Move from
4013 tui_gen_win_info.
4014 (make_standard_window): Change return type.
4015 (get_locator_window, tui_get_window_by_name): Likewise.
4016 (tui_layout_window::apply): Remove a cast.
4017 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4018 (struct tui_win_info): Merge with tui_gen_win_info.
4019 (struct tui_gen_win_info): Remove.
4020
a30cb6da
TT
40212020-07-01 Tom Tromey <tom@tromey.com>
4022
4023 * tui/tui-stack.h (struct tui_locator_window): Derive from
4024 tui_win_info.
4025 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4026 <can_box>: New method.
4027
1eb2161f
TT
40282020-07-01 Tom Tromey <tom@tromey.com>
4029
4030 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4031
7134f2eb
TT
40322020-07-01 Tom Tromey <tom@tromey.com>
4033
4034 * tui/tui-regs.c (tui_data_window::display_registers_from)
4035 (tui_data_window::display_registers_from)
4036 (tui_data_window::first_data_item_displayed)
4037 (tui_data_window::delete_data_content_windows): Update.
4038 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4039 Remove.
4040 (tui_data_window::check_register_values): Update.
4041 (tui_data_item_window::rerender): Add parameters. Update.
4042 (tui_data_item_window::refresh_window): Remove.
4043 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4044 virtual.
4045 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4046 tui_gen_win_info.
4047 <refresh_window, max_height, min_height>: Remove.
4048 <rerender>: Add parameters.
4049 <x, y, visible>: New members.
4050 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4051 <m_item_width>: New member.
4052
22b7b041
TT
40532020-07-01 Tom Tromey <tom@tromey.com>
4054
4055 * tui/tui-regs.c (tui_data_window::show_register_group)
4056 (tui_data_window::check_register_values): Update.
4057 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4058 from item_no.
4059
c9753adb
TT
40602020-07-01 Tom Tromey <tom@tromey.com>
4061
4062 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4063 useless "if".
4064
9ab26b4a
TT
40652020-07-01 Tom Tromey <tom@tromey.com>
4066
4067 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4068 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4069
e555083f
TT
40702020-07-01 Tom Tromey <tom@tromey.com>
4071
4072 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4073 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4074 (struct tui_line_or_address): Move from tui-data.h.
4075 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4076 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4077 (tui_cmd_window, tui_source_window_base, tui_source_window)
4078 (tui_disasm_window): Don't declare.
4079 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4080 to tui-winsource.h.
4081 (SINGLE_KEY): Move to tui-stack.c.
4082
7a02bab7
TT
40832020-07-01 Tom Tromey <tom@tromey.com>
4084
4085 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4086 std::string.
4087 * tui/tui-regs.c (class tab_expansion_file): New.
4088 (tab_expansion_file::write): New method.
4089 (tui_register_format): Change return type. Use
4090 tab_expansion_file.
4091 (tui_get_register, tui_data_window::display_registers_from)
4092 (tui_data_item_window::rerender): Update.
4093 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4094 * tui/tui-io.c (tui_expand_tabs): Remove.
4095
ea68593b
TT
40962020-07-01 Tom Tromey <tom@tromey.com>
4097
4098 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4099
a8caed5d
FS
41002020-07-01 Fangrui Song <maskray@google.com>
4101
4102 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4103
9cdf9820
AKS
41042020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4105
4106 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4107 forms for DW_AT_associated and DW_AT_allocated attributes,
4108 which is already checked in function attr_to_dynamic_prop.
4109
a1520ad8
TT
41102020-06-30 Tom Tromey <tromey@adacore.com>
4111
4112 * dwarf2/read.c (quirk_rust_enum): Correctly call
4113 alloc_rust_variant for default-less enum.
4114
5ac58899
TT
41152020-06-30 Tom Tromey <tromey@adacore.com>
4116
4117 PR build/26183:
4118 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4119 gdb::to_string.
4120
19b187a9
SM
41212020-06-29 Simon Marchi <simon.marchi@efficios.com>
4122
4123 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4124 * gdbarch.h: Re-generate.
4125
cd4c4c07
TT
41262020-06-28 Tom Tromey <tom@tromey.com>
4127
4128 * command.h (cmd_types): Remove.
4129 (cmd_type): Don't declare.
4130 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4131 typedef.
4132 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4133 * cli/cli-decode.c (cmd_type): Remove.
4134
05779d57
PA
41352020-06-27 Pedro Alves <palves@redhat.com>
4136
4137 * fork-child.c (prefork_hook): Adjust.
4138 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4139 Delete.
4140 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4141 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4142 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4143 Remove declarations.
4144 (struct inferior) <set_tty, tty>: New methods.
4145 (struct inferior) <terminal>: Rename to ...
4146 (struct inferior) <m_terminal>: ... this and make private.
4147 * main.c (captured_main_1): Adjust.
4148 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4149 (mi_cmd_inferior_tty_show): Adjust.
4150 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4151 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4152
1776e3e5
NA
41532020-06-26 Nick Alcock <nick.alcock@oracle.com>
4154
4155 * configure.ac: Add --enable-libctf: handle --disable-static
4156 properly.
4157 * acinclude.m4: sinclude ../config/enable.m4.
4158 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4159 (LIBCTF): Substitute in.
4160 (CTF_DEPS): New, likewise.
4161 (CLIBS): libctf needs symbols from libbfd: move earlier.
4162 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4163 flags.
4164 * ctfread.c: Surround in ENABLE_LIBCTF.
4165 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4166 * configure: Regenerate.
4167 * config.in: Likewise.
4168
58373b80
SM
41692020-06-25 Simon Marchi <simon.marchi@efficios.com>
4170
4171 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4172
277474ee
SM
41732020-06-25 Simon Marchi <simon.marchi@efficios.com>
4174
4175 * inferior.h (struct inferior) <terminal>: Change type to
4176 gdb::unique_xmalloc_ptr<char>.
4177 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4178 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4179 field, adjust to unique pointer.
4180 (get_inferior_io_terminal): Adjust to unique pointer.
4181
6d74da72
AB
41822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4183
4184 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4185 registers, not just the known core set of registers.
4186
2e52d038
AB
41872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4188
4189 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4190 fflags, frm, and fcsr registers.
4191 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4192 restore groups.
4193 (riscv_tdesc_unknown_reg): New function.
4194 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4195 tdesc_use_registers.
4196 * riscv-tdep.h (struct gdbarch_tdep): Add
4197 unknown_csrs_first_regnum, unknown_csrs_count,
4198 duplicate_fflags_regnum, duplicate_frm_regnum, and
4199 duplicate_fcsr_regnum fields.
4200
be64fd07
AB
42012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4202
4203 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4204 callback, use the callback (when not null) to help number unknown
4205 registers.
4206 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4207 (tdesc_use_registers): Add extra parameter to declaration.
4208
3b9fce96
AB
42092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4210
4211 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4212 in the file.
4213 (class riscv_pending_register_alias): Likewise.
4214 (riscv_register_feature::register_info): Change 'required_p' field
4215 to 'required', and change its type. Add 'check' member function.
4216 (riscv_register_feature::register_info::check): Define new member
4217 function.
4218 (riscv_xreg_feature): Change initialisation of 'required' field.
4219 (riscv_freg_feature): Likewise.
4220 (riscv_virtual_feature): Likewise.
4221 (riscv_csr_feature): Likewise.
4222 (riscv_check_tdesc_feature): Take extra parameter, the csr
4223 tdesc_feature, rewrite the function to use the new
4224 riscv_register_feature::register_info::check function.
4225 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4226
865bad26
AB
42272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4228
4229 * features/Makefile: Remove all references to the deleted files
4230 below.
4231 * features/riscv/32bit-csr.c: Deleted.
4232 * features/riscv/32bit-csr.xml: Deleted.
4233 * features/riscv/64bit-csr.c: Deleted.
4234 * features/riscv/64bit-csr.xml: Deleted.
4235 * features/riscv/rebuild-csr-xml.sh: Deleted.
4236
ed69cbc8
AB
42372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4238
4239 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4240 whitespace error for declaration of names member variable.
4241 (struct riscv_register_feature): Add new prefer_first_name member
4242 variable, and fix whitespace error in declaration of registers.
4243 (riscv_xreg_feature): Initialize prefer_first_name field.
4244 (riscv_freg_feature): Likewise.
4245 (riscv_virtual_feature): Likewise.
4246 (riscv_csr_feature): Likewise.
4247 (riscv_register_name): Expand on comments. Remove register name
4248 modifications for CSR and virtual registers.
4249
4445e8f5
AB
42502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4251
4252 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4253 errors.
4254
767a879e
AB
42552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4256
4257 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4258 riscv-opc.h.
4259 (class riscv_pending_register_alias): New class.
4260 (riscv_check_tdesc_feature): Take vector of pending aliases and
4261 populate it as appropriate.
4262 (riscv_setup_register_aliases): Delete.
4263 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4264 to riscv_check_tdesc_feature in all cases. Use the vector to
4265 create the register aliases.
4266
bb6e55f3
RO
42672020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4268
4269 * sol2-tdep.c (sol2_static_transform_name): Remove.
4270 (sol2_init_abi): Don't register it.
4271 * gdbarch.sh (static_transform_name): Remove.
4272 * gdbarch.c, gdbarch.h: Regenerate.
4273
4274 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4275 gdbarch_static_transform_name.
4276 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4277 * stabsread.c (define_symbol) <'X'>: Remove.
4278 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4279 handling.
4280 <'V'>: Likewise.
4281 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4282 <'S'>: Remove call to gdbarch_static_transform_name.
4283
c6d36836
RO
42842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4285
4286 * procfs.c (procfs_pre_trace): New function.
4287 (procfs_target::create_inferior): Pass it to fork_inferior.
4288
a7e6196b
RO
42892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4290
4291 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4292 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4293 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4294 sol2-tdep.o, sparc-sol2-tdep.o.
4295 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4296 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4297 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4298 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4299
d412e696
RO
43002020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4301
4302 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4303 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4304 Call sol2_init_abi.
4305 Remove calls to set_gdbarch_skip_solib_resolver,
4306 set_gdbarch_core_pid_to_str.
4307 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4308 (i386_sol2_static_transform_name): Remove.
4309 (i386_sol2_init_abi): Call sol2_init_abi.
4310 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4311 set_gdbarch_static_transform_name,
4312 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4313 Use sol2_sigtramp_p.
4314 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4315 (sol2_sigtramp_p): New function.
4316 (sol2_static_transform_name): New function.
4317 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4318 (sol2_init_abi): New function.
4319 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4320 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4321 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4322 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4323 (sparc_sol2_static_transform_name): Remove.
4324 (sparc32_sol2_init_abi): Call sol2_init_abi.
4325 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4326 set_gdbarch_static_transform_name,
4327 set_gdbarch_skip_solib_resolver,
4328 set_gdbarch_core_pid_to_str.
4329 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4330 (sparc_sol2_static_transform_name): Remove
4331 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4332 call sol2_sigtramp_p.
4333 (sparc64_sol2_init_abi): Call sol2_init_abi.
4334 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4335 set_gdbarch_static_transform_name,
4336 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4337
a8654e7d
PW
43382020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4339
4340 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4341 * exec.c (validate_exec_file): If from_tty, set both
4342 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4343 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4344 and from_tty, unconditionally ask a confirmation.
4345
caa7fd04
AB
43462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4347
4348 * target-descriptions.c (tdesc_architecture_name): Protect against
4349 NULL pointer dereference.
4350 (maint_print_xml_tdesc_cmd): New function.
4351 (_initialize_target_descriptions): Register new 'maint print
4352 xml-tdesc' command and give it the filename completer.
4353 * NEWS: Mention new 'maint print xml-tdesc' command.
4354
fbf42f4e
AB
43552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4356
4357 * target-descriptions.c (class tdesc_compatible_info): New class.
4358 (struct target_desc): Change type of compatible vector.
4359 (tdesc_compatible_p): Update for change in type of
4360 target_desc::compatible.
4361 (tdesc_compatible_info_list): New function.
4362 (tdesc_compatible_info_arch_name): New function.
4363 (tdesc_add_compatible): Update for change in type of
4364 target_desc::compatible.
4365 (print_c_tdesc::visit_pre): Likewise.
4366
20821f4e
AB
43672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4368
4369 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4370 whitespace to underscore.
4371 (maint_print_c_tdesc_cmd): Use fake filename for target
4372 descriptions that came from the target.
4373 (_initialize_target_descriptions): Add filename command completion
4374 for 'maint print c-tdesc'.
4375
1fb5ee62
SM
43762020-06-23 Simon Marchi <simon.marchi@efficios.com>
4377
4378 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4379 lines.
4380
fc3ecb3e
SM
43812020-06-23 Simon Marchi <simon.marchi@efficios.com>
4382
4383 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4384 lines.
4385 (dwarf2_find_location_expression): Likewise.
4386 (call_site_parameter_matches): Likewise.
4387 (dwarf2_compile_expr_to_ax): Likewise.
4388 (disassemble_dwarf_expression): Likewise.
4389 (loclist_describe_location): Likewise.
4390
236ef034
PA
43912020-06-23 Pedro Alves <palves@redhat.com>
4392
4393 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4394 progspace-and-thread.h. Include scoped-mock-context.h instead.
4395 (register_to_value_test): Use scoped_mock_context.
4396 * regcache.c: Include "scoped-mock-context.h".
4397 (cooked_read_test): Don't error out if a target is already pushed.
4398 Use scoped_mock_context. Adjust.
4399 * scoped-mock-context.h: New file.
4400
39e7ecca
AB
44012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4402
4403 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4404 initializer.
4405 (ada_language::is_string_type_p): New member function.
4406 * c-lang.c (c_language_data): Delete la_is_string_type_p
4407 initializer.
4408 (cplus_language_data): Likewise.
4409 (asm_language_data): Likewise.
4410 (minimal_language_data): Likewise.
4411 * d-lang.c (d_language_data): Likewise.
4412 * f-lang.c (f_is_string_type_p): Delete function, implementation
4413 moved to f_language::is_string_type_p.
4414 (f_language_data): Delete la_is_string_type_p initializer.
4415 (f_language::is_string_type_p): New member function,
4416 implementation from f_is_string_type_p.
4417 * go-lang.c (go_is_string_type_p): Delete function, implementation
4418 moved to go_language::is_string_type_p.
4419 (go_language_data): Delete la_is_string_type_p initializer.
4420 (go_language::is_string_type_p): New member function,
4421 implementation from go_is_string_type_p.
4422 * language.c (language_defn::is_string_type_p): Define new member
4423 function.
4424 (default_is_string_type_p): Make static, add comment copied from
4425 header file.
4426 (unknown_language_data): Delete la_is_string_type_p initializer.
4427 (unknown_language::is_string_type_p): New member function.
4428 (auto_language_data): Delete la_is_string_type_p initializer.
4429 (auto_language::is_string_type_p): New member function.
4430 * language.h (language_data): Delete la_is_string_type_p field.
4431 (language_defn::is_string_type_p): Declare new function.
4432 (default_is_string_type_p): Delete desclaration, move comment to
4433 definition.
4434 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4435 moved to m2_language::is_string_type_p.
4436 (m2_language_data): Delete la_is_string_type_p initializer.
4437 (m2_language::is_string_type_p): New member function,
4438 implementation from m2_is_string_type_p.
4439 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4440 initializer.
4441 * opencl-lang.c (opencl_language_data): Likewise.
4442 * p-lang.c (pascal_is_string_type_p): Delete function,
4443 implementation moved to pascal_language::is_string_type_p.
4444 (pascal_language_data): Delete la_is_string_type_p initializer.
4445 (pascal_language::is_string_type_p): New member function,
4446 implementation from pascal_is_string_type_p.
4447 * rust-lang.c (rust_is_string_type_p): Delete function,
4448 implementation moved to rust_language::is_string_type_p.
4449 (rust_language_data): Delete la_is_string_type_p initializer.
4450 (rust_language::is_string_type_p): New member function,
4451 implementation from rust_is_string_type_p.
4452 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4453 is_string_type_p.
4454
4ffc13fb
AB
44552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4456
4457 * ada-lang.c (ada_language_data): Delete la_print_typedef
4458 initializer.
4459 (ada_language::print_typedef): New member function.
4460 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4461 (cplus_language_data): Likewise.
4462 (asm_language_data): Likewise.
4463 (minimal_language_data): Likewise.
4464 * d-lang.c (d_language_data): Likewise.
4465 * f-lang.c (f_language_data): Likewise.
4466 (f_language::print_typedef): New member function.
4467 * go-lang.c (go_language_data): Delete la_print_typedef
4468 initializer.
4469 * language.c (language_defn::print_typedef): Define member
4470 function.
4471 (unknown_language_data): Delete la_print_typedef initializer.
4472 (unknown_language::print_typedef): New member function.
4473 (auto_language_data): Delete la_print_typedef initializer.
4474 (auto_language::print_typedef): New member function.
4475 * language.h (language_data): Delete la_print_typedef field.
4476 (language_defn::print_typedef): Declare new member function.
4477 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4478 (default_print_typedef): Delete declaration.
4479 * m2-lang.c (m2_language_data): Delete la_print_typedef
4480 initializer.
4481 (m2_language::print_typedef): New member function.
4482 * objc-lang.c (objc_language_data): Delete la_print_typedef
4483 initializer.
4484 * opencl-lang.c (opencl_language_data): Likewise.
4485 * p-lang.c (pascal_language_data): Likewise.
4486 (pascal_language::print_typedef): New member function.
4487 * rust-lang.c (rust_print_typedef): Delete function,
4488 implementation moved to rust_language::print_typedef.
4489 (rust_language): Delete la_print_typedef initializer.
4490 (rust_language::print_typedef): New member function,
4491 implementation from rust_print_typedef.
4492 * typeprint.c (default_print_typedef): Delete.
4493
d711ee67
AB
44942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4495
4496 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4497 (ada_language::printstr): New member function.
4498 * c-lang.c (c_language_data): Delete la_printstr initializer.
4499 (cplus_language_data): Likewise.
4500 (asm_language_data): Likewise.
4501 (minimal_language_data): Likewise.
4502 * d-lang.c (d_language_data): Likewise.
4503 * f-lang.c (f_printstr): Rename to f_language::printstr.
4504 (f_language_data): Delete la_printstr initializer.
4505 (f_language::printstr): New member function, implementation from
4506 f_printstr.
4507 * go-lang.c (go_language_data): Delete la_printstr initializer.
4508 * language.c (language_defn::printstr): Define new member
4509 function.
4510 (unk_lang_printstr): Delete.
4511 (unknown_language_data): Delete la_printstr initializer.
4512 (unknown_language::printstr): New member function.
4513 (auto_language_data): Delete la_printstr initializer.
4514 (auto_language::printstr): New member function.
4515 * language.h (language_data): Delete la_printstr field.
4516 (language_defn::printstr): Declare new member function.
4517 (LA_PRINT_STRING): Update call to printstr.
4518 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4519 (m2_language_data): Delete la_printstr initializer.
4520 (m2_language::printstr): New member function, implementation from
4521 m2_printstr.
4522 * objc-lang.c (objc_language_data): Delete la_printstr
4523 initializer.
4524 * opencl-lang.c (opencl_language_data): Likewise.
4525 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4526 (pascal_language_data): Delete la_printstr initializer.
4527 (pascal_language::printstr): New member function, implementation
4528 from pascal_printstr.
4529 * p-lang.h (pascal_printstr): Delete declaration.
4530 * rust-lang.c (rust_printstr): Update header comment.
4531 (rust_language_data): Delete la_printstr initializer.
4532 (rust_language::printstr): New member function.
4533
52b50f2c
AB
45342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4535
4536 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4537 (ada_language::printchar): New member function.
4538 * c-lang.c (c_language_data): Delete la_printchar initializer.
4539 (cplus_language_data): Likewise.
4540 (asm_language_data): Likewise.
4541 (minimal_language_data): Likewise.
4542 * d-lang.c (d_language_data): Likewise.
4543 * f-lang.c (f_printchar): Rename to f_language::printchar.
4544 (f_language_data): Delete la_printchar initializer.
4545 (f_language::printchar): New member function, implementation from
4546 f_printchar.
4547 * go-lang.c (go_language_data): Delete la_printchar initializer.
4548 * language.c (unk_lang_printchar): Delete.
4549 (language_defn::printchar): Define new member function.
4550 (unknown_language_data): Delete la_printchar initializer.
4551 (unknown_language::printchar): New member function.
4552 (auto_language_data): Delete la_printchar initializer.
4553 (auto_language::printchar): New member function.
4554 * language.h (language_data): Delete la_printchar field.
4555 (language_defn::printchar): Declare new member function.
4556 (LA_PRINT_CHAR): Update call to printchar.
4557 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4558 (m2_language::printchar): New member function.
4559 * objc-lang.c (objc_language_data): Delete la_printchar
4560 initializer.
4561 * opencl-lang.c (opencl_language_data): Likewise.
4562 * p-lang.c (pascal_language_data): Delete la_printchar
4563 initializer.
4564 (pascal_language::printchar): New member function.
4565 * rust-lang.c (rust_printchar): Rename to
4566 rust_language::printchar.
4567 (rust_language_data): Delete la_printchar initializer.
4568 (rust_language::printchar): New member function, implementation
4569 from rust_printchar.
4570
ec8cec5b
AB
45712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4572
4573 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4574 (ada_language_data): Delete la_emitchar initializer.
4575 (ada_language::emitchar): New member function, implementation from
4576 emit_char.
4577 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4578 (cplus_language_data): Likewise.
4579 (asm_language_data): Likewise.
4580 (minimal_language_data): Likewise.
4581 * d-lang.c (d_language_data): Likewise.
4582 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4583 (f_language_data): Delete la_emitchar initializer.
4584 (f_language::emitchar): New member function, implementation from
4585 f_emit_char.
4586 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4587 * language.c (unk_lang_emit_char): Delete.
4588 (language_defn::emitchar): New member function definition.
4589 (unknown_language_data): Delete la_emitchar initializer.
4590 (unknown_language::emitchar): New member function.
4591 (auto_language_data): Delete la_emitchar initializer.
4592 (auto_language::emitchar): New member function.
4593 * language.h (language_data): Delete la_emitchar field.
4594 (language_defn::emitchar): New member field declaration.
4595 (LA_EMIT_CHAR): Update call to emitchar.
4596 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4597 (m2_language_data): Delete la_emitchar initializer.
4598 (m2_language::emitchar): New member function, implementation from
4599 m2_emit_char.
4600 * objc-lang.c (objc_language_data): Delete la_emitchar
4601 initializer.
4602 * opencl-lang.c (opencl_language_data): Likewise.
4603 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4604 (pascal_language_data): Delete la_emitchar initializer.
4605 (pascal_language::emitchar): New member function, implementation
4606 from pascal_emit_char.
4607 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4608 (rust_language_data): Delete la_emitchar initializer.
4609 (rust_language::emitchar): New member function, implementation
4610 from rust_emitchar.
4611
1bf9c363
AB
46122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4613
4614 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4615 (ada_language_data): Delete la_post_parser initializer.
4616 (ada_language::post_parser): New member function.
4617 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4618 (cplus_language_data): Likewise.
4619 (asm_language_data): Likewise.
4620 (minimal_language_data): Likewise.
4621 * d-lang.c (d_language_data): Likewise.
4622 * f-lang.c (f_language_data): Likewise.
4623 * go-lang.c (go_language_data): Likewise.
4624 * language.c (unknown_language_data): Likewise.
4625 (auto_language_data): Likewise.
4626 * language.h (language_data): Delete la_post_parser field.
4627 (language_defn::post_parser): New member function.
4628 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4629 * objc-lang.c (objc_language_data): Likewise.
4630 * opencl-lang.c (opencl_language_data): Likewise.
4631 * p-lang.c (pascal_language_data): Likewise.
4632 * parse.c (parse_exp_in_context): Update call to post_parser.
4633 (null_post_parser): Delete definition.
4634 * parser-defs.h (null_post_parser): Delete declaration.
4635 * rust-lang.c (rust_language_data): Delete la_post_parser
4636 initializer.
4637
87afa652
AB
46382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4639
4640 * ada-lang.c (parse): Rename to ada_language::parser.
4641 (ada_language_data): Delete la_parser initializer.
4642 (ada_language::parser): New member function, implementation from
4643 parse.
4644 * c-lang.c (c_language_data): Delete la_parser initializer.
4645 (cplus_language_data): Likewise.
4646 (asm_language_data): Likewise.
4647 (minimal_language_data): Likewise.
4648 * d-lang.c (d_language_data): Likewise.
4649 (d_language::parser): New member function.
4650 * f-lang.c (f_language_data): Delete la_parser initializer.
4651 (f_language::parser): New member function.
4652 * go-lang.c (go_language_data): Delete la_parser initializer.
4653 (go_language::parser): New member function.
4654 * language.c (unk_lang_parser): Delete.
4655 (language_defn::parser): Define new member function.
4656 (unknown_language_data): Delete la_parser initializer.
4657 (unknown_language::parser): New member function.
4658 (auto_language_data): Delete la_parser initializer.
4659 (auto_language::parser): New member function.
4660 * language.h (language_data): Delete la_parser field.
4661 (language_defn::parser): Declare new member function.
4662 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4663 (m2_language::parser): New member function.
4664 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4665 * opencl-lang.c (opencl_language_data): Likewise.
4666 * p-lang.c (pascal_language_data): Likewise.
4667 (pascal_language::parser): New member function.
4668 * parse.c (parse_exp_in_context): Update call to parser.
4669 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4670 (rust_language::parser): New member function.
4671
37825800
AB
46722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4673
4674 * top.c (print_gdb_configuration): Print --with-python-libdir
4675 configuration value.
4676
5b860c93
PW
46772020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4678
4679 * NEWS: Mention change to the alias command.
4680
cf00cd6f
PW
46812020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4682
4683 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4684 (alias_command_completer)
4685 (make_alias_options_def_group): New functions.
4686 (alias_opts, alias_option_defs): New struct and array.
4687 (alias_usage_error): Update usage.
4688 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4689 Use option framework.
4690 (_initialize_cli_cmds): Update alias command help.
4691 Update aliases command help.
4692 (show_user):
4693 Add NULL for new default_args lookup_cmd argument.
4694 (valid_command_p): Rename to validate_aliased_command.
4695 Add NULL for new default_args lookup_cmd argument. Verify that the
4696 aliased_command has no default args.
4697 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4698 (lookup_cmd_1, lookup_cmd): New argument default_args.
4699 (add_alias_cmd):
4700 Add NULL for new default_args lookup_cmd argument.
4701 (print_help_for_command): Show default args under the layout
4702 alias some_alias = some_aliased_cmd some_alias_default_arg.
4703 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4704 xfree default_args in destructor.
4705 * cli/cli-script.c (process_next_line, do_define_command):
4706 Add NULL for new default_args lookup_cmd argument.
4707 * command.h: Declare new default_args argument in lookup_cmd
4708 and lookup_cmd_1.
4709 * completer.c (complete_line_internal_1):
4710 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4711 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4712 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4713 Likewise.
4714 * infcmd.c (_initialize_infcmd): Likewise.
4715 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4716 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4717 * python/py-param.c (add_setshow_generic): Likewise.
4718 * remote.c (_initialize_remote): Likewise.
4719 * top.c (execute_command): Prepend default_args if command has some.
4720 (set_verbose):
4721 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4722 * tracepoint.c (validate_actionline, encode_actions_1):
4723 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4724
bd920864
TBA
47252020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4726
4727 * jit.c (jit_read_descriptor): Use bool as the return type.
4728 (jit_breakpoint_re_set_internal): Use bool as the return type.
4729 Invert the return value logic; return true if the jit breakpoint
4730 has been successfully initialized.
4731 (jit_inferior_init): Update the call to
4732 jit_breakpoint_re_set_internal.
4733
f8098322
PA
47342020-06-22 Pedro Alves <palves@redhat.com>
4735
4736 PR gdb/25939
4737 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4738 Use the current inferior instead. Don't return
4739 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4740 wait again.
4741 * sol-thread.c (sol_thread_target::wait): Don't reference
4742 inferior_ptid.
4743 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4744 (sol_update_thread_list_callback): Use the current inferior's pid
4745 instead of inferior_ptid.
4746
196535a6
RO
47472020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4748
4749 * procfs.c: Cleanup many comments.
4750
4751 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4752 (AFTER_WATCHFLAG): Replace by value.
4753
4754 (MAIN_PROC_NAME_FORMAT): Inline ...
4755 (create_procinfo): ... here.
4756
4757 (procfs_debug_inferior): Remove SYS_exec handling.
4758 (syscall_is_exec): Likewise.
4759 (procfs_set_exec_trap): Likewise.
4760
4761 (syscall_is_lwp_exit): Inline in callers.
4762 (syscall_is_exit): Likewise.
4763 (syscall_is_exec): Likewise.
4764 (syscall_is_lwp_create): Likewise.
4765
4766 (invalidate_cache): Remove #if 0 code.
4767
4768 (make_signal_thread_runnable): Remove.
4769 (procfs_target::resume): Remove #if 0 code.
4770
cf6f3e86
RO
47712020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4772
4773 PR gdb/25939
4774 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4775 call ...
4776 (procfs_target::create_inferior): ... here.
4777
48e9cc84
PW
47782020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4779
4780 * exec.c (validate_exec_file): Ensure the build-id is up to
4781 date by calling reopen_exec_file (that checks file timestamp
4782 to decide to re-read the file).
4783
3922b302
PA
47842020-06-18 Pedro Alves <palves@redhat.com>
4785
4786 PR gdb/25412
4787 * gdbthread.h (delete_thread, delete_thread_silent)
4788 (find_thread_ptid): Update comments.
4789 * thread.c (current_thread_): New global.
4790 (is_current_thread): Move higher, and reimplement.
4791 (inferior_thread): Reimplement.
4792 (set_thread_exited): Use bool. Add assertions.
4793 (add_thread_silent): Simplify thread-reuse handling by always
4794 calling delete_thread.
4795 (delete_thread): Remove intro comment.
4796 (find_thread_ptid): Skip exited threads.
4797 (switch_to_thread_no_regs): Write to current_thread_.
4798 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4799 INFERIOR_PTID. Clear current_thread_.
4800
6dbdab44
PA
48012020-06-18 Pedro Alves <palves@redhat.com>
4802
4803 * aix-thread.c (pd_update): Use switch_to_thread.
4804
2da4b788
PA
48052020-06-18 Pedro Alves <palves@redhat.com>
4806
4807 * ravenscar-thread.c (ravenscar_thread_target): Update.
4808 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4809 (ravenscar_thread_target::add_active_thread): ... this. Don't
4810 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4811 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4812
50838d1b
PA
48132020-06-18 Pedro Alves <palves@redhat.com>
4814
4815 * nat/windows-nat.c (current_windows_thread): Remove.
4816 * nat/windows-nat.h (current_windows_thread): Remove.
4817 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4818 Adjust.
4819 (display_selectors): Adjust to fetch the current
4820 windows_thread_info based on inferior_ptid.
4821 (fake_create_process): No longer write to current_windows_thread.
4822 (windows_nat_target::get_windows_debug_event):
4823 Don't set inferior_ptid or current_windows_thread.
4824 (windows_nat_target::wait): Adjust to not rely on
4825 current_windows_thread.
4826 (do_initial_windows_stuff): Now a method of windows_nat_target.
4827 Switch to the last_ptid thread.
4828 (windows_nat_target::attach): Adjust.
4829 (windows_nat_target::detach): Use switch_to_no_thread instead of
4830 writing to inferior_ptid directly.
4831 (windows_nat_target::create_inferior): Adjust.
4832
31ce04e9
PA
48332020-06-18 Pedro Alves <palves@redhat.com>
4834
4835 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4836
1ee1a363
PA
48372020-06-18 Pedro Alves <palves@redhat.com>
4838
4839 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4840 after creating it, instead of writing to inferior_ptid. Don't
4841 write to inferior_ptid.
4842
6d350754
PA
48432020-06-18 Pedro Alves <palves@redhat.com>
4844
4845 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4846
5d971d48
PA
48472020-06-18 Pedro Alves <palves@redhat.com>
4848
4849 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4850 it, instead of writing to inferior_ptid.
4851
86e57d1b
PA
48522020-06-18 Pedro Alves <palves@redhat.com>
4853
4854 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4855 to inferior_ptid.
4856
f2e1c129
PA
48572020-06-18 Pedro Alves <palves@redhat.com>
4858
4859 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4860 instead of writing to inferior_ptid directly.
4861
60db1b85
PA
48622020-06-18 Pedro Alves <palves@redhat.com>
4863
4864 * corelow.c (core_target::close): Use switch_to_no_thread instead
4865 of writing to inferior_ptid directly.
4866 (add_to_thread_list, core_target_open): Use switch_to_thread
4867 instead of writing to inferior_ptid directly.
4868
fe7d6a8d
PA
48692020-06-18 Pedro Alves <palves@redhat.com>
4870
4871 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4872 inferior_ptid.
4873 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4874 inferior_ptid.
4875 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4876 inferior_ptid directly.
4877 (darwin_nat_target::init_thread_list): Switch to thread, instead
4878 of writing to inferior_ptid.
4879 (darwin_nat_target::attach): Don't write to inferior_ptid.
4880 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4881
975f8708
PA
48822020-06-18 Pedro Alves <palves@redhat.com>
4883
4884 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4885 thread.
4886 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4887 Instead use switch_to_thread.
4888 (gnu_nat_target::detach): Use switch_to_no_thread
4889 instead of writing to inferior_ptid directly. Used passed-in
4890 inferior instead of looking up the inferior by pid.
4891
1a204730
PA
48922020-06-18 Pedro Alves <palves@redhat.com>
4893
4894 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4895 inferior_ptid.
4896
ebe84f23
PA
48972020-06-18 Pedro Alves <palves@redhat.com>
4898
4899 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4900 inferior_ptid.
4901 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4902 thread.
4903 (nto_procfs_target::detach): Avoid referencing
4904 inferior_ptid. Use switch_to_no_thread instead of writing to
4905 inferior_ptid directly.
4906 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4907 instead of writing to inferior_ptid directly.
4908 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4909 to thread.
4910
191f02e5
PA
49112020-06-18 Pedro Alves <palves@redhat.com>
4912
4913 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4914 after creating it, instead of writing to inferior_ptid.
4915 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4916 to inferior_ptid directly.
4917 (gdbsim_target::wait): Don't write to inferior_ptid.
4918
0ac55310
PA
49192020-06-18 Pedro Alves <palves@redhat.com>
4920
4921 * remote.c (remote_target::remote_notice_new_inferior): Use
4922 switch_to_thread instead of writing to inferior_ptid directly.
4923 (remote_target::add_current_inferior_and_thread): Use
4924 switch_to_no_thread instead of writing to inferior_ptid directly.
4925 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4926 and switch_to_thread instead of using set_current_inferior or
4927 writing to inferior_ptid directly.
4928
5233f39b
PA
49292020-06-18 Pedro Alves <palves@redhat.com>
4930
4931 * tracectf.c (ctf_target_open): Switch to added thread instead of
4932 writing to inferior_ptid directly.
4933 (ctf_target::close): Use switch_to_no_thread instead of writing to
4934 inferior_ptid directly.
4935
087e161b
PA
49362020-06-18 Pedro Alves <palves@redhat.com>
4937
4938 * tracefile-tfile.c (tfile_target_open): Don't write to
4939 inferior_ptid directly, instead switch to added thread.
4940 (tfile_target::close): Use switch_to_no_thread instead of writing
4941 to inferior_ptid directly.
4942
7fb43e53
PA
49432020-06-18 Pedro Alves <palves@redhat.com>
4944
4945 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4946 (procfs_target::detach): Use switch_to_no_thread
4947 instead of writing to inferior_ptid directly.
4948 (do_attach): Change return type to void. Switch to the added
4949 thread.
4950 (procfs_target::create_inferior): Switch to the added thread.
4951 (procfs_do_thread_registers): Don't write to inferior_ptid.
4952
18493a00
PA
49532020-06-18 Pedro Alves <palves@redhat.com>
4954
4955 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4956 of writing to inferior_ptid.
4957 (scoped_restore_exited_inferior): Delete.
4958 (handle_vfork_child_exec_or_exit): Simplify using
4959 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4960 instead of writing to inferior_ptid.
4961 (THREAD_STOPPED_BY): Delete.
4962 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4963 (thread_stopped_by_hw_breakpoint): Delete.
4964 (save_waitstatus): Use
4965 scoped_restore_current_thread+switch_to_thread, and call
4966 target_stopped_by_watchpoint instead of
4967 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4968 instead of thread_stopped_by_sw_breakpoint, and
4969 target_stopped_by_hw_breakpoint instead of
4970 thread_stopped_by_hw_breakpoint.
4971 (handle_inferior_event)
4972 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4973 inferior_ptid directly, nor
4974 set_current_inferior/set_current_program_space. Use
4975 switch_to_thread / switch_to_inferior_no_thread instead.
4976
a0776b13
PA
49772020-06-18 Pedro Alves <palves@redhat.com>
4978
4979 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4980 instead of writing to inferior_ptid.
4981
6155c136
PA
49822020-06-18 Pedro Alves <palves@redhat.com>
4983
4984 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4985 added thread.
4986 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4987 to the added thread.
4988 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4989 instead of writing to inferior_ptid.
4990
c5316fc6
PA
49912020-06-18 Pedro Alves <palves@redhat.com>
4992
4993 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4994 (register_to_value_test): Mock a program_space too. Heap-allocate
4995 the address space. Don't write to inferior_ptid. Use
4996 switch_to_thread instead.
4997
8df01799
PA
49982020-06-18 Pedro Alves <palves@redhat.com>
4999
5000 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5001 Delete.
5002 (find_signalled_thread()): New, factored out from
5003 linux_make_corefile_notes and adjusted to handle exited threads.
5004 (linux_make_corefile_notes): Adjust to use the new
5005 find_signalled_thread.
5006
41792d68
PA
50072020-06-18 Pedro Alves <palves@redhat.com>
5008
5009 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5010 of saving/restoring inferior_ptid.
5011
612f258a
TT
50122020-06-17 Tom Tromey <tom@tromey.com>
5013
5014 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5015 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5016 declare.
5017 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5018
efb763a5
SM
50192020-06-15 Simon Marchi <simon.marchi@efficios.com>
5020
5021 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5022 of partial symtabs.
5023
2951f6c0
SM
50242020-06-17 Simon Marchi <simon.marchi@efficios.com>
5025
5026 * regformats/reg-arm.dat: Remove.
5027 * regformats/reg-bfin.dat: Remove.
5028 * regformats/reg-cris.dat: Remove.
5029 * regformats/reg-crisv32.dat: Remove.
5030 * regformats/reg-m32r.dat: Remove.
5031 * regformats/reg-tilegx.dat: Remove.
5032 * regformats/reg-tilegx32.dat: Remove.
5033
7d458ea5
SM
50342020-06-17 Simon Marchi <simon.marchi@efficios.com>
5035
5036 * features/Makefile (WHICH): Remove arm files.
5037 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5038 * regformats/arm/arm-with-neon.dat: Remove.
5039 * regformats/arm/arm-with-vfpv2.dat: Remove.
5040 * regformats/arm/arm-with-vfpv3.dat: Remove.
5041
3af96c0d
SM
50422020-06-17 Simon Marchi <simon.marchi@efficios.com>
5043
5044 * features/Makefile (XMLTOC): Remove rx.xml.
5045
b25e22fd
PA
50462020-06-17 Pedro Alves <palves@redhat.com>
5047
5048 * gdbthread.h (thread_control_state) <trap_expected> Update
5049 comments.
5050
a78a19b1
AB
50512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5052
5053 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5054 ada_language::lookup_symbol_nonlocal.
5055 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5056 (ada_language::lookup_symbol_nonlocal): New member function,
5057 implementation from ada_lookup_symbol_nonlocal.
5058 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5059 initializer.
5060 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5061 initializer.
5062 (cplus_language::lookup_symbol_nonlocal): New member function.
5063 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5064 (minimal_language_data) Likewise.
5065 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5066 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5067 initializer.
5068 (d_language::lookup_symbol_nonlocal): New member function.
5069 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5070 initializer.
5071 (f_language::lookup_symbol_nonlocal): New member function.
5072 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5073 initializer.
5074 * language.c (unknown_language_data): Likewise.
5075 (auto_language_data): Likewise.
5076 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5077 field.
5078 (language_defn::lookup_symbol_nonlocal): New member function.
5079 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5080 initializer.
5081 * objc-lang.c (objc_language_data): Likewise.
5082 * opencl-lang.c (opencl_language_data): Likewise.
5083 * p-lang.c (pascal_language_data): Likewise.
5084 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5085 rust_language::lookup_symbol_nonlocal.
5086 (rust_language_data): Delete la_lookup_symbol_nonlocal
5087 initializer.
5088 (rust_language::lookup_symbol_nonlocal): New member function,
5089 implementation from rust_lookup_symbol_nonlocal.
5090 * symtab.c (lookup_symbol_aux): Update call to
5091 lookup_symbol_nonlocal.
5092 (basic_lookup_symbol_nonlocal): Rename to...
5093 (language_defn::lookup_symbol_nonlocal): ...this, and update
5094 header comment. Remove language_defn parameter, and replace with
5095 uses of `this'.
5096 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5097
ebe2334e
AB
50982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5099
5100 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5101 initializer.
5102 (ada_language::value_print_inner): New member function.
5103 * c-lang.c (c_language_data): Delete la_value_print_inner
5104 initializer.
5105 (cplus_language_data): Likewise.
5106 (asm_language_data): Likewise.
5107 (minimal_language_data): Likewise.
5108 * d-lang.c (d_language_data): Likewise.
5109 (d_language::value_print_inner): New member function.
5110 * f-lang.c (f_language_data): Delete la_value_print_inner
5111 initializer.
5112 (f_language::value_print_inner): New member function.
5113 * f-lang.h (f_value_print_innner): Rename to...
5114 (f_value_print_inner): ...this (note spelling of 'inner').
5115 * f-valprint.c (f_value_print_innner): Rename to...
5116 (f_value_print_inner): ...this (note spelling of 'inner').
5117 * go-lang.c (go_language_data): Delete la_value_print_inner
5118 initializer.
5119 (go_language::value_print_inner): New member function.
5120 * language.c (language_defn::value_print_inner): Define new member
5121 function.
5122 (unk_lang_value_print_inner): Delete.
5123 (unknown_language_data): Delete la_value_print_inner initializer.
5124 (unknown_language::value_print_inner): New member function.
5125 (auto_language_data): Delete la_value_print_inner initializer.
5126 (auto_language::value_print_inner): New member function.
5127 * language.h (language_data): Delete la_value_print_inner field.
5128 (language_defn::value_print_inner): Delcare new member function.
5129 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5130 initializer.
5131 (m2_language::value_print_inner): New member function.
5132 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5133 initializer.
5134 * opencl-lang.c (opencl_language_data): Likewise.
5135 * p-lang.c (pascal_language_data): Likewise.
5136 (pascal_language::value_print_inner): New member function.
5137 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5138 initializer.
5139 (rust_language::value_print_inner): New member function.
5140 * valprint.c (do_val_print): Update call to value_print_inner.
5141
a1d1fa3e
AB
51422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5143
5144 * ada-lang.c (ada_language_data): Delete la_value_print
5145 initializer.
5146 (ada_language::value_print): New member function.
5147 * c-lang.c (c_language_data): Delete la_value_print initializer.
5148 (cplus_language_data): Likewise.
5149 (asm_language_data): Likewise.
5150 (minimal_language_data): Likewise.
5151 * d-lang.c (d_language_data): Likewise.
5152 * f-lang.c (f_language_data): Likewise.
5153 * go-lang.c (go_language_data): Likewise.
5154 * language.c (unk_lang_value_print): Delete.
5155 (language_defn::value_print): Define new member function.
5156 (unknown_language_data): Delete la_value_print initializer.
5157 (unknown_language::value_print): New member function.
5158 (auto_language_data): Delete la_value_print initializer.
5159 (auto_language::value_print): New member function.
5160 * language.h (language_data): Delete la_value_print field.
5161 (language_defn::value_print): Declare new member function.
5162 (LA_VALUE_PRINT): Update call to value_print.
5163 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5164 * objc-lang.c (objc_language_data): Likewise.
5165 * opencl-lang.c (opencl_language_data): Likewise.
5166 * p-lang.c (pascal_language_data): Likewise.
5167 (pascal_language::value_print): New member function.
5168 * rust-lang.c (rust_language_data): Delete la_value_print
5169 initializer.
5170
f16a9f57
AB
51712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5172
5173 * ada-lang.c (ada_watch_location_expression): Rename to
5174 ada_language::watch_location_expression.
5175 (ada_language_data): Delete la_watch_location_expression
5176 initializer.
5177 (ada_language::watch_location_expression): New member function,
5178 implementation from ada_watch_location_expression.
5179 * breakpoint.c (watch_command_1): Update call to
5180 watch_location_expression.
5181 * c-lang.c (c_watch_location_expression): Rename to
5182 language_defn::watch_location_expression.
5183 (c_language_data): Delete la_watch_location_expression
5184 initializer.
5185 (cplus_language_data): Likewise.
5186 (asm_language_data): Likewise.
5187 (minimal_language_data): Likewise.
5188 * c-lang.h (c_watch_location_expression): Delete declaration.
5189 * d-lang.c (d_language_data): Delete la_watch_location_expression
5190 initializer.
5191 * f-lang.c (f_language_data): Likewise.
5192 * go-lang.c (go_language_data): Likewise.
5193 * language.c (language_defn::watch_location_expression): Member
5194 function implementation from c_watch_location_expression.
5195 (unknown_language_data): Delete la_watch_location_expression
5196 initializer.
5197 (auto_language_data): Likewise.
5198 * language.h (language_data): Delete la_watch_location_expression
5199 field.
5200 (language_defn::watch_location_expression): Declare new member
5201 function.
5202 * m2-lang.c (m2_language_data): Delete
5203 la_watch_location_expression initializer.
5204 * objc-lang.c (objc_language_data): Likewise.
5205 * opencl-lang.c (opencl_language_data): Likewise.
5206 * p-lang.c (pascal_language_data): Likewise.
5207 * rust-lang.c (rust_watch_location_expression): Rename to
5208 rust_language::watch_location_expression.
5209 (rust_language_data): Delete la_watch_location_expression
5210 initializer.
5211 (rust_language::watch_location_expression): New member function,
5212 implementation from rust_watch_location_expression.
5213
7e56227d
AB
52142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5215
5216 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5217 ada_language::collect_symbol_completion_matches.
5218 (ada_language_data): Delete la_collect_symbol_completion_matches
5219 initializer.
5220 (ada_language::collect_symbol_completion_matches): New member
5221 function, implementation from
5222 ada_collect_symbol_completion_matches.
5223 * c-lang.c (c_language_data): Delete
5224 la_collect_symbol_completion_matches initializer.
5225 (cplus_language_data): Likewise.
5226 (asm_language_data): Likewise.
5227 (minimal_language_data): Likewise.
5228 * d-lang.c (d_language_data): Likewise.
5229 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5230 f_language::collect_symbol_completion_matches.
5231 (f_language_data): Delete la_collect_symbol_completion_matches
5232 initializer.
5233 (f_language::collect_symbol_completion_matches) New member
5234 function, implementation from f_collect_symbol_completion_matches.
5235 * go-lang.c (go_language_data): Delete
5236 la_collect_symbol_completion_matches initializer.
5237 * language.c (unknown_language_data): Likewise.
5238 (auto_language_data): Likewise.
5239 * language.h (language_data): Delete
5240 la_collect_symbol_completion_matches field.
5241 (language_defn::collect_symbol_completion_matches): New member
5242 function.
5243 * m2-lang.c (m2_language_data): Delete
5244 la_collect_symbol_completion_matches initializer.
5245 * objc-lang.c (objc_language_data): Likewise.
5246 * opencl-lang.c (opencl_language_data): Likewise.
5247 * p-lang.c (pascal_language_data): Likewise.
5248 * rust-lang.c (rust_language_data): Likewise.
5249 * symtab.c (default_collect_symbol_completion_matches): Delete.
5250 (collect_symbol_completion_matches): Update call to
5251 collect_symbol_completion_matches.
5252 (collect_symbol_completion_matches_type): Likewise.
5253 * symtab.h (default_collect_symbol_completion_matches): Delete
5254 declaration.
5255
53fc67f8
AB
52562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5257
5258 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5259 (ada_language_data): Delete la_word_break_characters initializer.
5260 (ada_language::word_break_characters): New member function.
5261 * c-lang.c (c_language_data): Delete la_word_break_characters
5262 initializer.
5263 (cplus_language_data): Likewise.
5264 (asm_language_data): Likewise.
5265 (minimal_language_data): Likewise.
5266 * completer.c: Update global comment.
5267 (advance_to_expression_complete_word_point): Update call to
5268 word_break_characters.
5269 (complete_files_symbols): Likewise.
5270 (complete_line_internal_1): Likewise.
5271 (default_completer_handle_brkchars): Likewise.
5272 (skip_quoted_chars): Likewise.
5273 * d-lang.c (d_language_data): Delete la_word_break_characters
5274 initializer.
5275 * f-lang.c (f_word_break_characters): Delete.
5276 (f_language_data): Delete la_word_break_characters initializer.
5277 (f_language::word_break_characters): New member function.
5278 * go-lang.c (go_language_data): Delete la_word_break_characters
5279 initializer.
5280 * language.c (unknown_language_data): Likewise.
5281 (auto_language_data): Likewise.
5282 * language.h (default_word_break_characters): Move declaration to
5283 earlier in the file.
5284 (language_data): Delete la_word_break_characters field.
5285 (language_defn::word_break_characters): New member function.
5286 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5287 initializer.
5288 * objc-lang.c (objc_language_data): Likewise.
5289 * opencl-lang.c (opencl_language_data): Likewise.
5290 * p-lang.c (pascal_language_data): Likewise.
5291 * rust-lang.c (rust_language_data): Likewise.
5292
c9debfb9
AB
52932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5294
5295 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5296 (ada_language_data): Delete la_get_symbol_name_matcher
5297 initializer.
5298 (language_defn::get_symbol_name_matcher_inner): New member
5299 function.
5300 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5301 initializer.
5302 (cplus_language_data): Likewise.
5303 (cplus_language::get_symbol_name_matcher_inner): New member
5304 function.
5305 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5306 (minimal_language_data): Likewise.
5307 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5308 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5309 initializer.
5310 * dictionary.c (iter_match_first_hashed): Update call to
5311 get_symbol_name_matcher.
5312 (iter_match_next_hashed): Likewise.
5313 (iter_match_next_linear): Likewise.
5314 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5315 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5316 initializer.
5317 (f_language::get_symbol_name_matcher_inner): New member function.
5318 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5319 initializer.
5320 * language.c (default_symbol_name_matcher): Update header comment,
5321 make static.
5322 (language_defn::get_symbol_name_matcher): New definition.
5323 (language_defn::get_symbol_name_matcher_inner): Likewise.
5324 (get_symbol_name_matcher): Delete.
5325 (unknown_language_data): Delete la_get_symbol_name_matcher
5326 initializer.
5327 (auto_language_data): Likewise.
5328 * language.h (language_data): Delete la_get_symbol_name_matcher
5329 field.
5330 (language_defn::get_symbol_name_matcher): New member function.
5331 (language_defn::get_symbol_name_matcher_inner): Likewise.
5332 (default_symbol_name_matcher): Delete declaration.
5333 * linespec.c (find_methods): Update call to
5334 get_symbol_name_matcher.
5335 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5336 initializer.
5337 * minsyms.c (lookup_minimal_symbol): Update call to
5338 get_symbol_name_matcher.
5339 (iterate_over_minimal_symbols): Likewise.
5340 * objc-lang.c (objc_language_data): Delete
5341 la_get_symbol_name_matcher initializer.
5342 * opencl-lang.c (opencl_language_data): Likewise.
5343 * p-lang.c (pascal_language_data): Likewise.
5344 * psymtab.c (psymbol_name_matches): Update call to
5345 get_symbol_name_matcher.
5346 * rust-lang.c (rust_language_data): Delete
5347 la_get_symbol_name_matcher initializer.
5348 * symtab.c (symbol_matches_search_name): Update call to
5349 get_symbol_name_matcher.
5350 (compare_symbol_name): Likewise.
5351
9a49ad8c
AB
53522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5353
5354 * ada-lang.c (ada_language_data): Delete la_compute_program
5355 initializer.
5356 * c-lang.c (c_language_data): Likewise.
5357 (c_language::compute_program): New member function.
5358 (cplus_language_data): Delete la_compute_program initializer.
5359 (cplus_language::compute_program): New member function.
5360 (asm_language_data): Delete la_compute_program initializer.
5361 (minimal_language_data): Likewise.
5362 * c-lang.h (c_compute_program): Update comment.
5363 (cplus_compute_program): Likewise.
5364 * compile/compile-c-support.c (c_compute_program): Likewise.
5365 (cplus_compute_program): Likewise.
5366 * compile/compile.c (compile_to_object): Update call to
5367 la_compute_program.
5368 * d-lang.c (d_language_data): Delete la_compute_program
5369 initializer.
5370 * f-lang.c (f_language_data): Likewise.
5371 * go-lang.c (go_language_data): Likewise.
5372 * language.c (unknown_language_data): Likewise.
5373 (auto_language_data): Likewise.
5374 * language.h (language_data): Delete la_compute_program field.
5375 (language_defn::compute_program): New member function.
5376 * m2-lang.c (m2_language_data): Delete la_compute_program
5377 initializer.
5378 * objc-lang.c (objc_language_data): Likewise.
5379 * opencl-lang.c (opencl_language_data): Likewise.
5380 * p-lang.c (pascal_language_data): Likewise.
5381 * rust-lang.c (rust_language_data): Likewise.
5382
eff93b4d
AB
53832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5384
5385 * ada-lang.c (ada_language_data) Delete
5386 la_class_name_from_physname initializer.
5387 * c-lang.c (c_language_data): Likewise.
5388 (cplus_language_data): Likewise.
5389 (cplus_language::class_name_from_physname): New member function.
5390 (asm_language_data): Delete la_class_name_from_physname
5391 initializer.
5392 (minimal_language_data): Likewise.
5393 * d-lang.c (d_language_data): Likewise.
5394 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5395 method on language_defn class.
5396 (guess_full_die_structure_name): Likewise.
5397 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5398 initializer.
5399 * go-lang.c (go_language_data): Likewise.
5400 * language.c (language_class_name_from_physname): Delete.
5401 (unk_lang_class_name): Delete.
5402 (unknown_language_data): Delete la_class_name_from_physname
5403 initializer.
5404 (auto_language_data): Likewise.
5405 * language.h (language_data): Delete la_class_name_from_physname
5406 field.
5407 (language_defn::class_name_from_physname): New function.
5408 (language_class_name_from_physname): Delete declaration.
5409 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5410 initializer.
5411 * objc-lang.c (objc_language_data): Likewise.
5412 * opencl-lang.c (opencl_language_data): Likewise.
5413 * p-lang.c (pascal_language_data): Likewise.
5414 * rust-lang.c (rust_language_data): Likewise.
5415
de543742
TT
54162020-06-16 Tom Tromey <tom@tromey.com>
5417
5418 * tui/tui-data.h (STATUS_NAME): New macro.
5419 * tui/tui-layout.c (tui_remove_some_windows)
5420 (initialize_known_windows, tui_register_window)
5421 (tui_layout_split::remove_windows, initialize_layouts)
5422 (tui_new_layout_command): Don't use hard-coded window names.
5423
a350efd4
TT
54242020-06-16 Tom Tromey <tom@tromey.com>
5425
5426 PR tui/25348:
5427 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5428 tui_initialize_readline. Only run once. Call rl_initialize.
5429 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5430 tui_initialize_readline.
5431 * tui/tui-io.c (tui_setup_io): Call
5432 tui_ensure_readline_initialized.
5433 * tui/tui-interp.c (tui_interp::init): Update.
5434
39ec0490
TT
54352020-06-16 Tom Tromey <tom@tromey.com>
5436
5437 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5438 Also preserve the status window.
5439
d2d1ea20
TT
54402020-06-16 Tom Tromey <tom@tromey.com>
5441
5442 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5443 where m_window==nullptr.
5444
66920317
TT
54452020-06-15 Tom Tromey <tromey@adacore.com>
5446
5447 * windows-nat.c (windows_nat::handle_output_debug_string):
5448 Update.
5449 (windows_nat::handle_ms_vc_exception): Update.
5450 * target.h (target_read_string): Change API.
5451 * target.c (target_read_string): Change API.
5452 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5453 Update.
5454 * solib-frv.c (frv_current_sos): Update.
5455 * solib-dsbt.c (dsbt_current_sos): Update.
5456 * solib-darwin.c (darwin_current_sos): Update.
5457 * linux-thread-db.c (inferior_has_bug): Update.
5458 * expprint.c (print_subexp_standard): Update.
5459 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5460 (ada_exception_message_1): Update.
5461
a5d871dd
TT
54622020-06-15 Tom Tromey <tromey@adacore.com>
5463
5464 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5465
670e35fa
TT
54662020-06-15 Tom Tromey <tromey@adacore.com>
5467
5468 * valprint.c (read_string): Update comment.
5469 * target.c (MIN): Remove.
5470 (target_read_string): Rewrite.
5471
f5272a3b
TT
54722020-06-15 Tom Tromey <tromey@adacore.com>
5473
5474 * corefile.c (read_memory_string): Remove.
5475 * ada-valprint.c (ada_value_print_ptr): Update.
5476 * ada-lang.h (ada_tag_name): Change return type.
5477 * ada-lang.c (type_from_tag): Update.
5478 (ada_tag_name_from_tsd): Change return type. Use
5479 target_read_string.
5480 (ada_tag_name): Likewise.
5481 * gdbcore.h (read_memory_string): Don't declare.
5482
2c074f49
HD
54832020-06-14 Hannes Domani <ssbssa@yahoo.de>
5484
5485 * symtab.c (rbreak_command): Ignore Windows drive colon.
5486
6a17d503
SM
54872020-06-12 Simon Marchi <simon.marchi@efficios.com>
5488
5489 * NEWS: Mention removed GDBserver host support.
5490
453c733f
NC
54912020-06-12 Nelson Chu <nelson.chu@sifive.com>
5492
5493 * features/riscv/rebuild-csr-xml.sh: Updated.
5494
2b4e6a3f
TT
54952020-06-11 Tom Tromey <tom@tromey.com>
5496
5497 PR gdb/18318:
5498 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5499
4412332f
JG
55002020-06-09 Jonny Grant <jg@jguk.org>
55012020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5502
5503 * main.c (captured_main_1): Don't print new line after help.
5504 (print_gdb_help): add mailing list and IRC channel information
5505 to --help. Add new lines between items in the footer. Remove
5506 quotes around bug url.
5507
2f33032a
KS
55082020-06-11 Keith Seitz <keiths@redhat.com>
5509
5510 PR gdb/21356
5511 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5512 Resolve typedefs for type length calculations.
5513
7ab96794
TV
55142020-06-10 Tom de Vries <tdevries@suse.de>
5515
5516 PR ada/24713
5517 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5518 (write_psymbols): Enable .gdb_index for ada.
5519 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5520 ada.
5521
e5f3ece2
TV
55222020-06-10 Tom de Vries <tdevries@suse.de>
5523
5524 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5525 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5526 namei" instead of "const char *name" argument.
5527 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5528 dw2_symtab_iter_init.
5529
940da03e
SM
55302020-06-08 Simon Marchi <simon.marchi@efficios.com>
5531
5532 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5533 to use type::field and field::type instead.
5534
b6cdac4b
SM
55352020-06-08 Simon Marchi <simon.marchi@efficios.com>
5536
5537 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5538 to use field::type instead.
5539
5d14b6e5
SM
55402020-06-08 Simon Marchi <simon.marchi@efficios.com>
5541
5542 * gdbtypes.h (struct field) <type, set_type>: New methods.
5543 Rename `type` field to...
5544 <m_type>: ... this. Change references throughout to use type or
5545 set_type methods.
5546 (FIELD_TYPE): Use field::type. Change call sites that modify
5547 the field's type to use field::set_type instead.
5548
3d967001
SM
55492020-06-08 Simon Marchi <simon.marchi@efficios.com>
5550
5551 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5552 to use type::index_type instead.
5553
262abc0d
SM
55542020-06-08 Simon Marchi <simon.marchi@efficios.com>
5555
5556 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5557 methods.
5558 (TYPE_INDEX_TYPE): Use type::index_type.
5559 * gdbtypes.c (create_array_type_with_stride): Likewise.
5560
82836c92
TT
55612020-06-07 Tom Tromey <tom@tromey.com>
5562
5563 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5564 parameter.
5565 (generic_value_print): Update.
5566
940dace9
AB
55672020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5568
5569 Revert commit 982a38f60b0.
5570 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5571
982a38f6
AB
55722020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5575 avoid use after free.
5576
82f06518
TV
55772020-06-05 Tom de Vries <tdevries@suse.de>
5578
5579 * NEWS: Fix typos.
5580
f8c41851
SM
55812020-06-04 Simon Marchi <simon.marchi@efficios.com>
5582
5583 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5584 the per_bfd object.
5585 (dwarf2_read_debug_names): Likewise.
5586 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5587 object when re-using a per_bfd object with an index.
5588
f9b5d5ea
TV
55892020-06-03 Tom de Vries <tdevries@suse.de>
5590
5591 PR symtab/26046
5592 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5593 children for C++.
5594 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5595 DW_TAG_subprogram.
5596
f6eee2d0
AB
55972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5598
5599 * ada-lang.c (ada_language_data): Delete skip_trampoline
5600 initializer.
5601 * c-lang.c (c_language_data): Likewise.
5602 (cplus_language_data): Likewise.
5603 (cplus_language::skip_trampoline): New member function.
5604 (asm_language_data): Delete skip_trampoline initializer.
5605 (minimal_language_data): Likewise.
5606 * d-lang.c (d_language_data): Likewise.
5607 * f-lang.c (f_language_data): Likewise.
5608 * go-lang.c (go_language_data): Likewise.
5609 * language.c (unk_lang_trampoline): Delete function.
5610 (skip_language_trampoline): Update.
5611 (unknown_language_data): Delete skip_trampoline initializer.
5612 (auto_language_data): Likewise.
5613 * language.h (language_data): Delete skip_trampoline field.
5614 (language_defn::skip_trampoline): New function.
5615 * m2-lang.c (m2_language_data): Delete skip_trampoline
5616 initializer.
5617 * objc-lang.c (objc_skip_trampoline): Delete function, move
5618 implementation to objc_language::skip_trampoline.
5619 (objc_language_data): Delete skip_trampoline initializer.
5620 (objc_language::skip_trampoline): New member function with
5621 implementation from objc_skip_trampoline.
5622 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5623 initializer.
5624 * p-lang.c (pascal_language_data): Likewise.
5625 * rust-lang.c (rust_language_data): Likewise.
5626
0a50df5d
AB
56272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5628
5629 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5630 (ada_language::demangle): New member function.
5631 * c-lang.c (c_language_data): Delete la_demangle initializer.
5632 (cplus_language_data): Delete la_demangle initializer.
5633 (cplus_language::demangle): New member function.
5634 (asm_language_data): Delete la_demangle initializer.
5635 (minimal_language_data): Delete la_demangle initializer.
5636 * d-lang.c (d_language_data): Delete la_demangle initializer.
5637 (d_language::demangle): New member function.
5638 * f-lang.c (f_language_data): Delete la_demangle initializer.
5639 (f_language::demangle): New member function.
5640 * go-lang.c (go_language_data): Delete la_demangle initializer.
5641 (go_language::demangle): New member function.
5642 * language.c (language_demangle): Update.
5643 (unk_lang_demangle): Delete.
5644 (unknown_language_data): Delete la_demangle initializer.
5645 (unknown_language::demangle): New member function.
5646 (auto_language_data): Delete la_demangle initializer.
5647 (auto_language::demangle): New member function.
5648 * language.h (language_data): Delete la_demangle field.
5649 (language_defn::demangle): New function.
5650 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5651 * objc-lang.c (objc_language_data): Delete la_demangle
5652 initializer.
5653 (objc_language::demangle): New member function.
5654 * opencl-lang.c (opencl_language_data): Delete la_demangle
5655 initializer.
5656 * p-lang.c (pascal_language_data): Likewise.
5657 * rust-lang.c (rust_language_data): Likewise.
5658 (rust_language::demangle): New member function.
5659
fbfb0a46
AB
56602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5661
5662 * ada-lang.c (ada_language_data): Delete la_print_type
5663 initializer.
5664 (ada_language::print_type): New member function.
5665 * c-lang.c (c_language_data): Delete la_print_type initializer.
5666 (c_language::print_type): New member function.
5667 (cplus_language_data): Delete la_print_type initializer.
5668 (cplus_language::print_type): New member function.
5669 (asm_language_data): Delete la_print_type initializer.
5670 (asm_language::print_type): New member function.
5671 (minimal_language_data): Delete la_print_type initializer.
5672 (minimal_language::print_type): New member function.
5673 * d-lang.c (d_language_data): Delete la_print_type initializer.
5674 (d_language::print_type): New member function.
5675 * f-lang.c (f_language_data): Delete la_print_type initializer.
5676 (f_language::print_type): New member function.
5677 * go-lang.c (go_language_data): Delete la_print_type initializer.
5678 (go_language::print_type): New member function.
5679 * language.c (unk_lang_print_type): Delete.
5680 (unknown_language_data): Delete la_print_type initializer.
5681 (unknown_language::print_type): New member function.
5682 (auto_language_data): Delete la_print_type initializer.
5683 (auto_language::print_type): New member function.
5684 * language.h (language_data): Delete la_print_type field.
5685 (language_defn::print_type): New function.
5686 (LA_PRINT_TYPE): Update.
5687 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5688 (m2_language::print_type): New member function.
5689 * objc-lang.c (objc_language_data): Delete la_print_type
5690 initializer.
5691 (objc_language::print_type): New member function.
5692 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5693 to opencl_language::print_type.
5694 (opencl_language_data): Delete la_print_type initializer.
5695 (opencl_language::print_type): New member function, implementation
5696 from opencl_print_type.
5697 * p-lang.c (pascal_language_data): Delete la_print_type
5698 initializer.
5699 (pascal_language::print_type): New member function.
5700 * rust-lang.c (rust_print_type): Delete, implementation moved to
5701 rust_language::print_type.
5702 (rust_language_data): Delete la_print_type initializer.
5703 (rust_language::print_type): New member function, implementation
5704 from rust_print_type.
5705
6f827019
AB
57062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5707
5708 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5709 implementation moves to...
5710 (ada_language::sniff_from_mangled_name): ...here. Update return
5711 type.
5712 (ada_language_data): Delete la_sniff_from_mangled_name
5713 initializer.
5714 * c-lang.c (c_language_data): Likewise.
5715 (cplus_language_data): Likewise.
5716 (cplus_language::sniff_from_mangled_name): New member function,
5717 implementation taken from gdb_sniff_from_mangled_name.
5718 (asm_language_data): Delete la_sniff_from_mangled_name
5719 initializer.
5720 (minimal_language_data): Likewise.
5721 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5722 implementation moves to cplus_language::sniff_from_mangled_name.
5723 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5724 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5725 moves to...
5726 (d_language::sniff_from_mangled_name): ...here.
5727 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5728 * f-lang.c (f_language_data): Likewise.
5729 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5730 moves to...
5731 (go_language::sniff_from_mangled_name): ...here.
5732 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5733 * language.c (language_sniff_from_mangled_name): Delete.
5734 (unknown_language_data): Delete la_sniff_from_mangled_name
5735 initializer.
5736 (auto_language_data): Likewise.
5737 * language.h (language_data): Delete la_sniff_from_mangled_name
5738 field.
5739 (language_defn::sniff_from_mangled_name): New function.
5740 (language_sniff_from_mangled_name): Delete declaration.
5741 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5742 field.
5743 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5744 implementation moves to...
5745 (objc_language::sniff_from_mangled_name): ...here.
5746 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5747 * opencl-lang.c (opencl_language_data): Likewise.
5748 * p-lang.c (pascal_language_data): Likewise.
5749 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5750 implementation moves to...
5751 (rust_language::sniff_from_mangled_name): ...here.
5752 (rust_language_data): Delete la_sniff_from_mangled_name
5753 initializer.
5754 * symtab.c (symbol_find_demangled_name): Call
5755 sniff_from_mangled_name member function.
5756
fb8006fd
AB
57572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5758
5759 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5760 initializer.
5761 * c-lang.c (c_language_data): Likewise.
5762 (cplus_language_data): Likewise.
5763 (cplus_language::search_name_hash): New member function.
5764 (asm_language_data): Delete la_search_name_hash initializer.
5765 (minimal_language_data): Likewise.
5766 * d-lang.c (d_language_data): Likewise.
5767 * dictionary.c (default_search_name_hash): Rename to...
5768 (language_defn::search_name_hash): ...this.
5769 * f-lang.c (f_language_data): Likewise.
5770 (f_language::search_name_hash): New member function.
5771 * go-lang.c (go_language_data): Delete la_search_name_hash
5772 initializer.
5773 * language.c (unknown_language_data): Likewise.
5774 (auto_language_data): Likewise.
5775 * language.h (struct language_data): Delete la_search_name_hash
5776 field.
5777 (language_defn::search_name_hash): Declare new member function.
5778 (default_search_name_hash): Delete declaration.
5779 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5780 initializer.
5781 * objc-lang.c (objc_language_data): Likewise.
5782 * opencl-lang.c (opencl_language_data): Likewise.
5783 * p-lang.c (pascal_language_data): Likewise.
5784 * rust-lang.c (rust_language_data): Likewise.
5785 * symtab.c (search_name_hash): Update call.
5786
8e25bafe
AB
57872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5788
5789 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5790 initializer.
5791 * c-lang.c (class compile_instance): Declare.
5792 (c_language_data): Delete la_get_compile_instance initializer.
5793 (c_language::get_compile_instance): New member function.
5794 (cplus_language_data): Delete la_get_compile_instance initializer.
5795 (cplus_language::get_compile_instance): New member function.
5796 (asm_language_data): Delete la_get_compile_instance initializer.
5797 (minimal_language_data): Likewise.
5798 * c-lang.h (c_get_compile_context): Update comment.
5799 (cplus_get_compile_context): Update comment.
5800 * compile/compile.c (compile_to_object): Update calls, don't rely
5801 on function pointer being NULL.
5802 * d-lang.c (d_language_data): Delete la_get_compile_instance
5803 initializer.
5804 * f-lang.c (f_language_data): Likewise.
5805 * go-lang.c (go_language_data): Likewise.
5806 * language.c (unknown_language_data): Likewise.
5807 (auto_language_data): Likewise.
5808 * language.h (language_data): Delete la_get_compile_instance field.
5809 (language_defn::get_compile_instance): New member function.
5810 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5811 initializer.
5812 * objc-lang.c (objc_language_data): Likewise.
5813 * opencl-lang.c (opencl_language_data): Likewise.
5814 * p-lang.c (pascal_language_data): Likewise.
5815 * rust-lang.c (rust_language_data): Likewise.
5816
4009ee92
AB
58172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5818
5819 * ada-lang.c (ada_add_all_symbols): Update comment.
5820 (ada_iterate_over_symbols): Delete, move implementation to...
5821 (ada_language::iterate_over_symbols): ...here, a new member
5822 function, rewrite to use range based for loop.
5823 (ada_language_data): Delete la_iterate_over_symbols initializer.
5824 * c-lang.c (c_language_data): Likewise.
5825 (cplus_language_data): Likewise.
5826 (asm_language_data): Likewise.
5827 (minimal_language_data): Likewise.
5828 * d-lang.c (d_language_data): Likewise.
5829 * f-lang.c (f_language_data): Likewise.
5830 * go-lang.c (go_language_data): Likewise.
5831 * language.c (unknown_language_data): Likewise.
5832 (auto_language_data): Likewise.
5833 * language.h (language_data): Delete la_iterate_over_symbols field.
5834 (language_defn::iterate_over_symbols): New member function.
5835 (LA_ITERATE_OVER_SYMBOLS): Update.
5836 * linespec.c (iterate_over_all_matching_symtabs): Update.
5837 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5838 initializer.
5839 * objc-lang.c (objc_language_data): Likewise.
5840 * opencl-lang.c (opencl_language_data): Likewise.
5841 * p-lang.c (pascal_language_data): Likewise.
5842 * rust-lang.c (rust_language_data): Likewise.
5843
54f4ca46
AB
58442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5845
5846 * ada-lang.c (ada_language_data): Delete
5847 la_lookup_transparent_type initializer.
5848 * c-lang.c (c_language_data): Likewise.
5849 (cplus_language_data): Likewise.
5850 (cplus_language::lookup_transparent_type): New member function.
5851 (asm_language_data): Delete la_lookup_transparent_type
5852 initializer.
5853 (minimal_language_data): Likewise.
5854 * d-lang.c (d_language_data): Likewise.
5855 * f-lang.c (f_language_data): Likewise.
5856 * go-lang.c (go_language_data): Likewise.
5857 * language.c (unknown_language_data): Likewise.
5858 (auto_language_data): Likewise.
5859 * language.h (struct language_data): Delete
5860 la_lookup_transparent_type field.
5861 (language_defn::lookup_transparent_type): New member function.
5862 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5863 initializer.
5864 * objc-lang.c (objc_language_data): Likewise.
5865 * opencl-lang.c (opencl_language_data): Likewise.
5866 * p-lang.c (pascal_language_data): Likewise.
5867 * rust-lang.c (rust_language_data): Likewise.
5868 * symtab.c (symbol_matches_domain): Update call.
5869
1fb314aa
AB
58702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5871
5872 * ada-lang.c (ada_language_arch_info): Delete function, move
5873 implementation to...
5874 (ada_language::language_arch_info): ...here, a new member
5875 function.
5876 (ada_language_data): Delete la_language_arch_info.
5877 * c-lang.c (c_language_data): Likewise.
5878 (c_language::language_arch_info): New member function.
5879 (cplus_language_arch_info): Delete function, move
5880 implementation to...
5881 (cplus_language::language_arch_info): ...here, a new member
5882 function.
5883 (cplus_language_data): Delete la_language_arch_info.
5884 (asm_language_data): Likewise.
5885 (asm_language::language_arch_info): New member function.
5886 (minimal_language_data): Delete la_language_arch_info.
5887 (minimal_language::language_arch_info): New member function.
5888 * d-lang.c (d_language_arch_info): Delete function, move
5889 implementation to...
5890 (d_language::language_arch_info): ...here, a new member
5891 function.
5892 (d_language_data): Delete la_language_arch_info.
5893 * f-lang.c (f_language_arch_info): Delete function, move
5894 implementation to...
5895 (f_language::language_arch_info): ...here, a new member
5896 function.
5897 (f_language_data): Delete la_language_arch_info.
5898 * go-lang.c (go_language_arch_info): Delete function, move
5899 implementation to...
5900 (go_language::language_arch_info): ...here, a new member
5901 function.
5902 (go_language_data): Delete la_language_arch_info.
5903 * language.c (unknown_language_data): Likewise.
5904 (unknown_language::language_arch_info): New member function.
5905 (auto_language_data): Delete la_language_arch_info.
5906 (auto_language::language_arch_info): New member function.
5907 (language_gdbarch_post_init): Update call to
5908 la_language_arch_info.
5909 * language.h (language_data): Delete la_language_arch_info
5910 function pointer.
5911 (language_defn::language_arch_info): New function.
5912 * m2-lang.c (m2_language_arch_info): Delete function, move
5913 implementation to...
5914 (m2_language::language_arch_info): ...here, a new member
5915 function.
5916 (m2_language_data): Delete la_language_arch_info.
5917 * objc-lang.c (objc_language_arch_info): Delete function, move
5918 implementation to...
5919 (objc_language::language_arch_info): ...here, a new member
5920 function.
5921 (objc_language_data): Delete la_language_arch_info.
5922 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5923 implementation to...
5924 (opencl_language::language_arch_info): ...here, a new member
5925 function.
5926 (opencl_language_data): Delete la_language_arch_info.
5927 * p-lang.c (pascal_language_arch_info): Delete function, move
5928 implementation to...
5929 (pascal_language::language_arch_info): ...here, a new member
5930 function.
5931 (pascal_language_data): Delete la_language_arch_info.
5932 * rust-lang.c (rust_language_arch_info): Delete function, move
5933 implementation to...
5934 (rust_language::language_arch_info): ...here, a new member
5935 function.
5936 (rust_language_data): Delete la_language_arch_info.
5937
48448202
AB
59382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5939
5940 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5941 initializer.
5942 * c-lang.c (c_language_data): Likewise.
5943 (cplus_language_data): Likewise.
5944 (cplus_language::pass_by_reference_info): New method.
5945 (asm_language_data): Delete la_pass_by_reference initializer.
5946 (minimal_language_data): Likewise.
5947 * cp-abi.c (cp_pass_by_reference): Remove use of
5948 default_pass_by_reference.
5949 * d-lang.c (d_language_data): Likewise.
5950 * f-lang.c (f_language_data): Likewise.
5951 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5952 default_pass_by_reference.
5953 * go-lang.c (go_language_data): Likewise.
5954 * language.c (language_pass_by_reference): Update.
5955 (default_pass_by_reference): Delete.
5956 (unknown_language_data): Delete la_pass_by_reference
5957 initializer.
5958 (auto_language_data): Likewise.
5959 * language.h (struct language_data): Delete la_pass_by_reference
5960 field.
5961 (language_defn::pass_by_reference_info): New member function.
5962 (default_pass_by_reference): Delete declaration.
5963 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5964 initializer.
5965 * objc-lang.c (objc_language_data): Likewise.
5966 * opencl-lang.c (opencl_language_data): Likewise.
5967 * p-lang.c (pascal_language_data): Likewise.
5968 * rust-lang.c (rust_language_data): Likewise.
5969
15e5fd35
AB
59702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5971
5972 * ada-lang.c (ada_read_var_value): Delete function, move
5973 implementation to...
5974 (ada_language::read_var_value): ...here.
5975 (ada_language_data): Delete la_read_var_value initializer.
5976 * c-lang.c (c_language_data): Likewise.
5977 (cplus_language_data): Likewise.
5978 (minimal_language_data): Likewise.
5979 * d-lang.c (d_language_data): Likewise.
5980 * f-lang.c (f_language_data): Likewise.
5981 * findvar.c (default_read_var_value): Rename to...
5982 (language_defn::read_var_value): ...this.
5983 * findvar.c (read_var_value): Update header comment, and change to
5984 call member function instead of function pointer.
5985 * go-lang.c (go_language_data): Likewise.
5986 * language.c (unknown_language_data): Delete la_read_var_value
5987 initializer.
5988 (auto_language_data): Likewise.
5989 * language.h (struct language_data): Delete la_read_var_value
5990 field.
5991 (language_defn::read_var_value): New member function.
5992 (default_read_var_value): Delete declaration.
5993 * m2-lang.c (m2_language_data): Delete la_read_var_value
5994 initializer.
5995 * objc-lang.c (objc_language_data): Likewise.
5996 * opencl-lang.c (opencl_language_data): Likewise.
5997 * p-lang.c (pascal_language_data): Likewise.
5998 * rust-lang.c (rust_language_data): Likewise.
5999 * value.h (default_read_var_value): Delete declaration.
6000
5bd40f2a
AB
60012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6002
6003 * ada-lang.c (ada_print_array_index): Delete function, move
6004 implementation to...
6005 (ada_language::print_array_index): ...here.
6006 (ada_language_data): Delete la_print_array_index initializer.
6007 * c-lang.c (c_language_data): Likewise.
6008 (cplus_language_data): Likewise.
6009 (minimal_language_data): Likewise.
6010 * d-lang.c (d_language_data): Likewise.
6011 * f-lang.c (f_language_data): Likewise.
6012 * go-lang.c (go_language_data): Likewise.
6013 * language.c (default_print_array_index): Delete function, move
6014 implementation to...
6015 (language_defn::print_array_index): ...here.
6016 (unknown_language_data): Delete la_print_array_index initializer.
6017 (auto_language_data): Likewise.
6018 * language.h (struct language_data): Delete la_print_array_index
6019 field.
6020 (language_defn::print_array_index): New member function.
6021 (LA_PRINT_ARRAY_INDEX): Update.
6022 (default_print_array_index): Delete declaration.
6023 * m2-lang.c (m2_language_data): Delete la_print_array_index
6024 initializer.
6025 * objc-lang.c (objc_language_data): Likewise.
6026 * opencl-lang.c (opencl_language_data): Likewise.
6027 * p-lang.c (pascal_language_data): Likewise.
6028 * rust-lang.c (rust_language_data): Likewise.
6029
0874fd07
AB
60302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6031
6032 * gdb/ada-lang.c (ada_language_defn): Convert to...
6033 (ada_language_data): ...this.
6034 (class ada_language): New class.
6035 (ada_language_defn): New static global.
6036 * gdb/c-lang.c (c_language_defn): Convert to...
6037 (c_language_data): ...this.
6038 (class c_language): New class.
6039 (c_language_defn): New static global.
6040 (cplus_language_defn): Convert to...
6041 (cplus_language_data): ...this.
6042 (class cplus_language): New class.
6043 (cplus_language_defn): New static global.
6044 (asm_language_defn): Convert to...
6045 (asm_language_data): ...this.
6046 (class asm_language): New class.
6047 (asm_language_defn): New static global.
6048 (minimal_language_defn): Convert to...
6049 (minimal_language_data): ...this.
6050 (class minimal_language): New class.
6051 (minimal_language_defn): New static global.
6052 * gdb/d-lang.c (d_language_defn): Convert to...
6053 (d_language_data): ...this.
6054 (class d_language): New class.
6055 (d_language_defn): New static global.
6056 * gdb/f-lang.c (f_language_defn): Convert to...
6057 (f_language_data): ...this.
6058 (class f_language): New class.
6059 (f_language_defn): New static global.
6060 * gdb/go-lang.c (go_language_defn): Convert to...
6061 (go_language_data): ...this.
6062 (class go_language): New class.
6063 (go_language_defn): New static global.
6064 * gdb/language.c (unknown_language_defn): Remove declaration.
6065 (current_language): Initialize to nullptr, real initialization is
6066 moved to _initialize_language.
6067 (languages): Delete global.
6068 (language_defn::languages): Define.
6069 (set_language_command): Use language_defn::languages.
6070 (set_language): Likewise.
6071 (range_error): Likewise.
6072 (language_enum): Likewise.
6073 (language_def): Likewise.
6074 (add_set_language_command): Use language_def::languages for the
6075 language list, and language_def to lookup language pointers.
6076 (skip_language_trampoline): Use language_defn::languages.
6077 (unknown_language_defn): Convert to...
6078 (unknown_language_data): ...this.
6079 (class unknown_language): New class.
6080 (unknown_language_defn): New static global.
6081 (auto_language_defn): Convert to...
6082 (auto_language_data): ...this.
6083 (class auto_language): New class.
6084 (auto_language_defn): New static global.
6085 (language_gdbarch_post_init): Use language_defn::languages.
6086 (_initialize_language): Initialize current_language.
6087 * gdb/language.h (struct language_defn): Rename to...
6088 (struct language_data): ...this.
6089 (struct language_defn): New.
6090 (auto_language_defn): Delete.
6091 (unknown_language_defn): Delete.
6092 (minimal_language_defn): Delete.
6093 (ada_language_defn): Delete.
6094 (asm_language_defn): Delete.
6095 (c_language_defn): Delete.
6096 (cplus_language_defn): Delete.
6097 (d_language_defn): Delete.
6098 (f_language_defn): Delete.
6099 (go_language_defn): Delete.
6100 (m2_language_defn): Delete.
6101 (objc_language_defn): Delete.
6102 (opencl_language_defn): Delete.
6103 (pascal_language_defn): Delete.
6104 (rust_language_defn): Delete.
6105 * gdb/m2-lang.c (m2_language_defn): Convert to...
6106 (m2_language_data): ...this.
6107 (class m2_language): New class.
6108 (m2_language_defn): New static global.
6109 * gdb/objc-lang.c (objc_language_defn): Convert to...
6110 (objc_language_data): ...this.
6111 (class objc_language): New class.
6112 (objc_language_defn): New static global.
6113 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6114 (opencl_language_data): ...this.
6115 (class opencl_language): New class.
6116 (opencl_language_defn): New static global.
6117 * gdb/p-lang.c (pascal_language_defn): Convert to...
6118 (pascal_language_data): ...this.
6119 (class pascal_language): New class.
6120 (pascal_language_defn): New static global.
6121 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6122 language pointer, update comment format.
6123 * gdb/rust-lang.c (rust_language_defn): Convert to...
6124 (rust_language_data): ...this.
6125 (class rust_language): New class.
6126 (rust_language_defn): New static global.
6127
1313c56e
AB
61282020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6129
6130 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6131 member variable.
6132 <m_stmt_at_address>: New member variable.
6133 (lnp_state_machine::record_line): Don't record some lines, update
6134 tracking of is_stmt at the same address.
6135 (lnp_state_machine::lnp_state_machine): Initialise new member
6136 variables.
6137
b7ed9f3d
ST
61382020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6139
6140 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6141 "-include gnu-nat-mig.h".
6142 * gnu-nat-mig.h: New file.
6143 * gnu-nat.c: Include "gnu-nat-mig.h".
6144 (exc_server, msg_reply_server, notify_server,
6145 process_reply_server): Remove declarations.
6146
14a8ad62
ST
61472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6148
6149 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6150 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6151 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6152 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6153 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6154 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6155 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6156 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6157 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6158 to gnu_nat_target class.
6159 * gnu-nat.c: Likewise.
6160 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6161 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6162 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6163 object.
6164 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6165 instead of `gnu_target'.
6166
0af5e106
ST
61672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6168
6169 * i386-gnu-tdep.c: Include "gdbcore.h"
6170 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6171 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6172 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6173 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6174 i386_gnu_sigcontext_addr): New functions
6175 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6176 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6177 tdep.
6178
078f2fc9
ST
61792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6180
6181 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6182 before fork_inferior call. Avoid calling it if target_is_pushed returns
6183 true.
6184
53dff92c
ST
61852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6186
6187 * gnu-nat.h (gnu_target): New variable declaration.
6188 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6189 gnu_target.
6190 * gnu-nat.c (gnu_target): New variable.
6191 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6192 add_thread_silent, and add_thread calls.
6193 (gnu_nat_target::create_inferior): Pass gnu_target to
6194 add_thread_silent, thread_change_ptid call.
6195 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6196 call.
6197
5a8b8627
ST
61982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6199
6200 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6201 (gnu_nat_target::find_memory_regions): Remove unused
6202 `old_address' variable.
6203
366f550a
ST
62042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6205
6206 * gnu-nat.c: Include "gdbarch.h".
6207
f14871bf
ST
62082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6209
6210 * reply_mig_hack.awk (Error return): Cast function through
6211 void *, to bypass compiler function call check.
6212
c6887cfb
ST
62132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6214
6215 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6216 $(srcdir)/reply_mig_hack.awk.
6217
6930bffe
ST
62182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6219
6220 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6221
112c22ed
JG
62222020-05-30 Jonny Grant <jg@jguk.org>
6223
6224 * configure.ac (ACX_BUGURL): change bug URL to https.
6225
f68f85b5
PA
62262020-05-30 Pedro Alves <palves@redhat.com>
6227
6228 * cp-support.c (replace_typedefs_template): New.
6229 (replace_typedefs_qualified_name): Handle
6230 DEMANGLE_COMPONENT_TEMPLATE.
6231
976ca316
SM
62322020-05-29 Simon Marchi <simon.marchi@efficios.com>
6233
6234 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6235 dwarf2/index-cache.h, dwarf2/index-write.c,
6236 dwarf2/index-write.h, dwarf2/line-header.c,
6237 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6238 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6239 variables and fields from `dwarf2_per_objfile` to just
6240 `per_objfile` throughout.
6241
989ade05
SM
62422020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6243
6244 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6245 <push_dwarf_reg_entry_value>: Add comment.
6246
c47bae85
KB
62472020-05-28 Kevin Buettner <kevinb@redhat.com>
6248 Keith Seitz <keiths@redhat.com>
6249
6250 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6251 instead of PyEval_ReleaseLock.
6252 (class gdbpy_gil): Move to earlier in file.
6253 (finalize_python): Set gdb_python_initialized.
6254 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6255 when not initialized.
6256
44486dcf
SM
62572020-05-28 Simon Marchi <simon.marchi@efficios.com>
6258
6259 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6260 <push_dwarf_reg_entry_value>: Remove assert. Override
6261 per_objfile with caller_per_objfile.
6262
f030440d
TV
62632020-05-28 Tom de Vries <tdevries@suse.de>
6264
6265 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6266 PR gold/15646 workaround to symbol kind "type".
6267
f0fbb768
TT
62682020-05-27 Tom Tromey <tromey@adacore.com>
6269
6270 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6271
af0b2a3e
TT
62722020-05-27 Tom Tromey <tromey@adacore.com>
6273
6274 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6275 Use htab_find_with_hash.
6276 <add_abbrev>: Remove "abbrev_number" parameter.
6277 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6278 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6279 (hash_abbrev): Add comment.
6280 (abbrev_table::lookup_abbrev): Move to header file.
6281 (abbrev_table::read): Update.
6282
7d00ffec
TT
62832020-05-27 Tom Tromey <tromey@adacore.com>
6284
6285 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6286 method.
6287 <canonical_name>: New member.
6288 <raw_name>: Rename from "name".
6289 (partial_die_info): Initialize canonical_name.
6290 (scan_partial_symbols): Check raw_name.
6291 (partial_die_parent_scope, partial_die_full_name)
6292 (add_partial_symbol, add_partial_subprogram)
6293 (add_partial_enumeration, load_partial_dies): Use "name" method.
6294 (partial_die_info::name): New method.
6295 (partial_die_info::read, guess_partial_die_structure_name)
6296 (partial_die_info::fixup): Update.
6297
697bba18
TT
62982020-05-27 Tom Tromey <tromey@adacore.com>
6299
6300 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6301 <get_ref_die_offset>: Inline.
6302 <get_ref_die_offset_complaint>: New method.
6303 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6304 (attribute::get_ref_die_offset_complaint): Rename from
6305 get_ref_die_offset. Just issue complaint.
6306
c17ace43
HD
63072020-05-27 Hannes Domani <ssbssa@yahoo.de>
6308
6309 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6310
96445f0b
HD
63112020-05-27 Hannes Domani <ssbssa@yahoo.de>
6312
6313 * exec.c (exec_file_attach): Use errno value of first openp failure.
6314
ac637ec3
HD
63152020-05-27 Hannes Domani <ssbssa@yahoo.de>
6316
6317 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6318 Don't close thread handle.
6319
17ee85fc
TT
63202020-05-27 Tom Tromey <tom@tromey.com>
6321 Simon Marchi <simon.marchi@efficios.com>
6322
6323 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6324 shared_ptr.
6325 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6326 member.
6327 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6328 dwarf2_per_bfd_objfile_data_key>: New globals.
6329 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6330 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6331 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6332 shared.
6333 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6334 short-circuit when sharing.
6335 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6336 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6337
39b16f87
SM
63382020-05-27 Simon Marchi <simon.marchi@efficios.com>
6339
6340 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6341 to...
6342 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6343 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6344
fcf23d5b
SM
63452020-05-27 Simon Marchi <simon.marchi@efficios.com>
6346
6347 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6348 build_name_components, find_name_components_bounds>:
6349 Add per_objfile parameter.
6350 (struct mapped_index) <symbol_name_at>: Likewise.
6351 (struct mapped_debug_names): Remove constructor.
6352 <dwarf2_per_objfile>: Remove field.
6353 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6354 (mapped_index_base::find_name_components_bounds,
6355 mapped_index_base::build_name_components,
6356 dw2_expand_symtabs_matching_symbol): Likewise.
6357 (class mock_mapped_index) <symbol_name_at>: Likewise.
6358 (check_match): Likewise.
6359 (check_find_bounds_finds): Likewise.
6360 (test_mapped_index_find_name_component_bounds): Update.
6361 (CHECK_MATCH): Update.
6362 (dw2_expand_symtabs_matching): Update.
6363 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6364 per_objfile parameter.
6365 <find_vec_in_debug_names>: Likewise.
6366 <m_per_objfile>: New field.
6367 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6368 parameter.
6369 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6370 (dw2_debug_names_iterator::next): Update.
6371 (dw2_debug_names_lookup_symbol): Update.
6372 (dw2_debug_names_expand_symtabs_for_function): Update.
6373 (dw2_debug_names_map_matching_symbols): Update.
6374 (dw2_debug_names_expand_symtabs_matching): Update.
6375 (dwarf2_read_debug_names): Update.
6376
7188ed02
SM
63772020-05-27 Simon Marchi <simon.marchi@efficios.com>
6378
6379 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6380 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6381 move to dwarf2_per_objfile.
6382 <read_in_chain>: Remove.
6383 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6384 remove_all_cus, age_comp_units>: New methods.
6385 <m_dwarf2_cus>: New member.
6386 (struct dwarf2_per_cu_data) <cu>: Remove.
6387 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6388 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6389 moved to methods of dwarf2_per_objfile.
6390 (dwarf2_clear_marks): Remove.
6391 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6392 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6393 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6394 (dwarf2_per_objfile::remove_all_cus): New.
6395 (class free_cached_comp_units) <~free_cached_comp_units>:
6396 Update.
6397 (load_cu): Update.
6398 (dw2_do_instantiate_symtab): Adjust.
6399 (fill_in_sig_entry_from_dwo_entry): Adjust.
6400 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6401 (cutu_reader::cutu_reader): Likewise.
6402 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6403 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6404 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6405 and dwarf2_per_objfile::age_comp_units.
6406 (load_partial_comp_unit): Update.
6407 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6408 (process_queue): Likewise.
6409 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6410 backlink.
6411 (dwarf2_read_addr_index): Likewise.
6412 (follow_die_offset): Likewise.
6413 (dwarf2_fetch_die_loc_sect_off): Likewise.
6414 (dwarf2_fetch_constant_bytes): Likewise.
6415 (dwarf2_fetch_die_type_sect_off): Likewise.
6416 (follow_die_sig_1): Likewise.
6417 (load_full_type_unit): Likewise.
6418 (read_signatured_type): Likewise.
6419 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6420 (dwarf2_cu::~dwarf2_cu): Remove.
6421 (dwarf2_per_objfile::get_cu): New.
6422 (dwarf2_per_objfile::set_cu): New.
6423 (age_cached_comp_units): Rename to...
6424 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6425 to std::unordered_map.
6426 (free_one_cached_comp_unit): Rename to...
6427 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6428 to std::unordered_map.
6429 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6430 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6431 a dwarf2_per_objfile in data.
6432 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6433 (dwarf2_clear_marks): Remove.
6434
2e671100
SM
64352020-05-27 Simon Marchi <simon.marchi@efficios.com>
6436
6437 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6438 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6439 (init_tu_and_read_dwo_dies): Likewise.
6440 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6441 (cutu_reader::cutu_reader): Likewise.
6442 (load_partial_comp_unit): Likewise.
6443 (process_psymtab_comp_unit): Update.
6444 (build_type_psymtabs_1): Update.
6445 (process_skeletonless_type_unit): Update.
6446 (load_full_comp_unit): Update.
6447 (find_partial_die): Update.
6448 (dwarf2_read_addr_index): Update.
6449 (read_signatured_type): Update.
6450
2e6a9f79
SM
64512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6452
6453 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6454 m_header_read_in>: New fields.
6455 <get_header>: New method.
6456 * dwarf2/read.c (per_cu_header_read_in): Remove.
6457 (dwarf2_per_cu_data::get_header): New.
6458 (dwarf2_per_cu_data::addr_size): Update.
6459 (dwarf2_per_cu_data::offset_size): Update.
6460 (dwarf2_per_cu_data::ref_addr_size): Update.
6461
1b555f17
SM
64622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6463
6464 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6465 (dw2_do_instantiate_symtab): Update.
6466 (queue_and_load_all_dwo_tus): Change parameter from
6467 dwarf2_per_cu_data to dwarf2_cu.
6468 (dwarf2_fetch_die_loc_sect_off): Update.
6469 (dwarf2_fetch_constant_bytes): Update.
6470 (dwarf2_fetch_die_type_sect_off): Update.
6471
8fc0b21d
SM
64722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6473
6474 * dwarf2/read.c (process_full_comp_unit,
6475 process_full_type_unit): Remove per_cu, per_objfile paramters.
6476 Add dwarf2_cu parameter.
6477 (process_queue): Update.
6478
168c9250
SM
64792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6480
6481 * dwarf2/read.c (create_cu_from_index_list): Replace
6482 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6483 (create_cus_from_index_list): Likewise.
6484 (create_cus_from_index): Likewise.
6485 (create_signatured_type_table_from_index): Likewise.
6486 (create_cus_from_debug_names_list): Likewise.
6487 (create_cus_from_debug_names): Likewise.
6488 (dwarf2_read_gdb_index): Update.
6489 (dwarf2_read_debug_names): Update.
6490
e286671b
TT
64912020-05-27 Tom Tromey <tom@tromey.com>
6492 Simon Marchi <simon.marchi@efficios.com>
6493
6494 * dwarf2/read.h (struct dwarf2_per_objfile)
6495 <get_type_for_signatured_type, set_type_for_signatured_type>:
6496 New methods.
6497 <m_type_map>: New member.
6498 (struct signatured_type) <type>: Remove.
6499 * dwarf2/read.c
6500 (dwarf2_per_objfile::get_type_for_signatured_type,
6501 dwarf2_per_objfile::set_type_for_signatured_type): New.
6502 (get_signatured_type): Use new methods.
6503
8adb8487
TT
65042020-05-27 Tom Tromey <tom@tromey.com>
6505 Simon Marchi <simon.marchi@efficios.com>
6506
6507 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6508 (struct dwarf2_per_objfile) <type_units>: New member.
6509 <get_type_unit_group_unshareable>: New method.
6510 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6511 num_symtabs, symtabs>: Remove; move to
6512 type_unit_group_unshareable.
6513 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6514 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6515 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6516
127bbf4b
SM
65172020-05-27 Simon Marchi <simon.marchi@efficios.com>
6518
6519 * dwarf2/read.h (struct dwarf2_per_cu_data):
6520 <dwarf2_per_objfile>: Remove.
6521 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6522 dwarf2_per_objfile.
6523 (create_signatured_type_table_from_index): Likewise.
6524 (create_signatured_type_table_from_debug_names): Likewise.
6525 (create_debug_type_hash_table): Likewise.
6526 (fill_in_sig_entry_from_dwo_entry): Likewise.
6527 (create_type_unit_group): Likewise.
6528 (read_comp_units_from_section): Likewise.
6529 (create_cus_hash_table): Likewise.
6530
f6e649dd
SM
65312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6532
6533 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6534 dwarf2_per_cu_data::dwarf2_per_objfile.
6535 (compute_compunit_symtab_includes): Likewise.
6536 (dwarf2_cu::start_symtab): Likewise.
6537
aa66c379
SM
65382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6539
6540 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6541 parameter.
6542 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6543 (read_namespace_alias): Update.
6544 (lookup_die_type): Update.
6545 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6546 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6547 Update.
6548 (disassemble_dwarf_expression): Update.
6549
120ce1b5
SM
65502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6551
6552 * dwarf2/read.h (struct dwarf2_queue_item): Add
6553 dwarf2_per_objfile parameter, assign new parameter.
6554 <per_objfile>: New field.
6555 * dwarf2/read.c (free_one_cached_comp_unit): Add
6556 dwarf2_per_objfile parameter.
6557 (queue_comp_unit): Likewise.
6558 (dw2_do_instantiate_symtab): Update.
6559 (process_psymtab_comp_unit): Update.
6560 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6561 (process_imported_unit_die): Update.
6562 (queue_and_load_dwo_tu): Update.
6563 (follow_die_offset): Update.
6564 (follow_die_sig_1): Update.
6565
9f47c707
SM
65662020-05-27 Simon Marchi <simon.marchi@efficios.com>
6567
6568 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6569 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6570 (read_call_site_scope): Assign per_objfile.
6571 (dwarf2_per_cu_data::objfile): Remove.
6572 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6573 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6574 dwarf2_per_objfile parameter.
6575 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6576 dwarf2_per_objfile parameter.
6577 (dwarf_expr_reg_to_entry_parameter): Add output
6578 dwarf2_per_objfile parameter.
6579 (locexpr_get_frame_base): Update.
6580 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6581 <push_dwarf_reg_entry_value>: Update.
6582 <call_site_to_target_addr>: Update.
6583 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6584 parameter.
6585 (value_of_dwarf_reg_entry): Update.
6586 (rw_pieced_value): Update.
6587 (indirect_synthetic_pointer): Update.
6588 (dwarf2_evaluate_property): Update.
6589 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6590 parameter.
6591 (locexpr_read_variable): Update.
6592 (locexpr_get_symbol_read_needs): Update.
6593 (loclist_read_variable): Update.
6594
14095eb3
SM
65952020-05-27 Simon Marchi <simon.marchi@efficios.com>
6596
6597 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6598 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6599 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6600 parameter.
6601 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6602 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6603 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6604 parameter.
6605 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6606 sect_variable_value): Add dwarf2_per_objfile parameter.
6607 (class dwarf_evaluate_loc_desc) <dwarf_call,
6608 dwarf_variable_value>: Update.
6609 (fetch_const_value_from_synthetic_pointer): Add
6610 dwarf2_per_objfile parameter.
6611 (fetch_const_value_from_synthetic_pointer): Update.
6612 (coerced_pieced_ref): Update.
6613 (class symbol_needs_eval_context) <dwarf_call,
6614 dwarf_variable_value>: Update.
6615 (dwarf2_compile_expr_to_ax): Update.
6616
3c3cd3d4
SM
66172020-05-27 Simon Marchi <simon.marchi@efficios.com>
6618
6619 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6620 parameter.
6621 (dwarf2_evaluate_loc_desc_full): Update.
6622
82ca3f51
SM
66232020-05-27 Simon Marchi <simon.marchi@efficios.com>
6624
6625 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6626 parameter.
6627 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6628 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6629 dwarf2_per_objfile parameter.
6630 (decode_debug_loc_dwo_addresses): Likewise.
6631 (dwarf2_find_location_expression): Update.
6632 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6633 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6634 parameter.
6635 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6636 parameter.
6637 (locexpr_describe_location_1): Likewise.
6638 (locexpr_describe_location): Update.
6639
4b167ea1
SM
66402020-05-27 Simon Marchi <simon.marchi@efficios.com>
6641
6642 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6643 Remove.
6644 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6645 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6646 (dwarf2_compile_property_to_c): Update.
6647 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6648 use text offset from objfile.
6649 (locexpr_tracepoint_var_ref): Update.
6650 (locexpr_generate_c_location): Update.
6651 (loclist_describe_location): Update.
6652 (loclist_tracepoint_var_ref): Update.
6653 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6654 dwarf2_per_objfile parameter.
6655 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6656 use text offset from objfile.
6657 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6658
89b07335
SM
66592020-05-27 Simon Marchi <simon.marchi@efficios.com>
6660
6661 * dwarf2/expr.h (struct dwarf_expr_context)
6662 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6663 <offset>: Remove.
6664 <per_objfile>: New member.
6665 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6666 dwarf2_per_objfile parameter. Don't set offset, set
6667 per_objfile.
6668 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6669 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6670 a dwarf2_per_objfile object instead of an offset.
6671 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6672 constructor.
6673 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6674 to dwarf2_expr_executor constructor. Don't set offset.
6675 (dwarf2_fetch_cfa_info): Update.
6676 (struct dwarf2_frame_cache) <text_offset>: Remove.
6677 <per_objfile>: New field.
6678 (dwarf2_frame_cache): Update.
6679 (dwarf2_frame_prev_register): Update.
6680 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6681 <dwarf_evaluate_loc_desc>: Add constructor.
6682 (dwarf2_evaluate_loc_desc_full): Update.
6683 (dwarf2_locexpr_baton_eval): Update.
6684 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6685 Add constructor.
6686 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6687
293e7e51
SM
66882020-05-27 Simon Marchi <simon.marchi@efficios.com>
6689
6690 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6691 addr_sized_int_type>: Move to dwarf2_cu.
6692 <int_type>: Move to dwarf2_per_objfile.
6693 (struct dwarf2_per_objfile) <int_type>: Move here.
6694 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6695 addr_sized_int_type>: Move here.
6696 (read_func_scope): Update.
6697 (read_array_type): Update.
6698 (read_tag_string_type): Update.
6699 (attr_to_dynamic_prop): Update.
6700 (dwarf2_per_cu_data::int_type): Rename to...
6701 (dwarf2_per_objfile::int_type): ... this.
6702 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6703 (dwarf2_cu::addr_sized_int_type): ... this.
6704 (read_subrange_type): Update.
6705 (dwarf2_per_cu_data::addr_type): Rename to...
6706 (dwarf2_cu::addr_type): ... this.
6707 (set_die_type): Update.
6708
64874a40
SM
67092020-05-27 Simon Marchi <simon.marchi@efficios.com>
6710
6711 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6712 data through per_cu->cu.
6713
4ab09049
SM
67142020-05-27 Simon Marchi <simon.marchi@efficios.com>
6715
6716 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6717 dwarf2_per_cu_data parameter fo dwarf2_cu.
6718 (lookup_dwo_type_unit): Likewise.
6719 (read_cutu_die_from_dwo): Likewise.
6720 (lookup_dwo_unit): Likewise.
6721 (open_and_init_dwo_file): Likewise.
6722 (lookup_dwo_cutu): Likewise.
6723 (lookup_dwo_comp_unit): Likewise.
6724 (lookup_dwo_type_unit): Likewise.
6725 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6726 (cutu_reader::cutu_reader): Update.
6727
47b14e86
SM
67282020-05-27 Simon Marchi <simon.marchi@efficios.com>
6729
6730 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6731 parameter.
6732 (process_full_type_unit): Likewise.
6733 (process_queue): Update.
6734
43182c09
SM
67352020-05-27 Simon Marchi <simon.marchi@efficios.com>
6736
6737 * dwarf2/read.c (recursively_compute_inclusions): Add
6738 dwarf2_per_objfile parameter.
6739 (compute_compunit_symtab_includes): Likewise.
6740 (process_cu_includes): Update.
6741
7aa104c4
SM
67422020-05-27 Simon Marchi <simon.marchi@efficios.com>
6743
6744 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6745 parameter.
6746 (create_type_unit_group): Update.
6747 (process_psymtab_comp_unit_reader): Update.
6748 (build_type_psymtabs_reader): Update.
6749
e3beb21d
SM
67502020-05-27 Simon Marchi <simon.marchi@efficios.com>
6751
6752 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6753 object through m_this_cu->cu.
6754
d460f660
SM
67552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6756
6757 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6758 the info parameter.
6759 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6760
ab432490
SM
67612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6762
6763 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6764 per_objfile parameter.
6765 (load_full_type_unit): Add per_objfile parameter.
6766 (read_signatured_type): Likewise.
6767 (load_full_comp_unit): Likewise.
6768 (load_cu): Likewise.
6769 (dw2_do_instantiate_symtab): Likewise.
6770 (dw2_get_file_names): Likewise.
6771 (dw2_map_symtabs_matching_filename): Update.
6772 (dw_expand_symtabs_matching_file_matcher): Update.
6773 (dw2_map_symbol_filenames): Update.
6774 (process_psymtab_comp_unit): Add per_objfile parameter.
6775 (build_type_psymtabs_1): Update.
6776 (process_skeletonless_type_unit): Update.
6777 (dwarf2_build_psymtabs_hard): Update.
6778 (load_partial_comp_unit): Add per_objfile parameter.
6779 (scan_partial_symbols): Update.
6780 (load_full_comp_unit): Add per_objfile parameter.
6781 (process_imported_unit_die): Update.
6782 (create_cus_hash_table): Update.
6783 (find_partial_die): Update.
6784 (dwarf2_read_addr_index): Update.
6785 (follow_die_offset): Update.
6786 (dwarf2_fetch_die_loc_sect_off): Update.
6787 (dwarf2_fetch_constant_bytes): Update.
6788 (dwarf2_fetch_die_type_sect_off): Update.
6789 (follow_die_sig_1): Update.
6790 (load_full_type_unit): Add per_objfile parameter.
6791 (read_signatured_type): Likewise.
6792
313bad1b
SM
67932020-05-27 Simon Marchi <simon.marchi@efficios.com>
6794
6795 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6796 of objfile_name.
6797
c3699833
SM
67982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6799
6800 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6801 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6802 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6803 field.
6804 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6805 (create_cus_from_index): Update.
6806 (dwarf2_read_gdb_index): Update.
6807 (create_cus_from_debug_names): Update.
6808 (dwarf2_read_debug_names): Update.
6809 (get_abbrev_section_for_cu): Update.
6810 (create_all_comp_units): Update.
6811 (read_attribute_value): Update.
6812 (get_debug_line_section): Update.
6813 * dwarf2/index-cache.c (index_cache::store): Update.
6814 * dwarf2/index-write.c (save_gdb_index_command): Update.
6815 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6816
1859c670
SM
68172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6818
6819 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6820 member.
6821 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6822 dwarf2_per_cu_data::per_bfd.
6823 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6824 (create_type_unit_group): Likewise.
6825 (queue_comp_unit): Remove reference to
6826 per_cu->dwarf2_per_objfile.
6827 (maybe_queue_comp_unit): Likewise.
6828 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6829 (create_cus_hash_table): Assign new field.
6830
5e22e966
SM
68312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6832
6833 * dwarf2/read.c: Replace
6834 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6835 dwarf2_cu->per_objfile throughout.
6836
97a1449a
SM
68372020-05-27 Simon Marchi <simon.marchi@efficios.com>
6838
6839 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6840 parameter, don't use per_cu->dwarf2_per_objfile.
6841 (dw2_instantiate_symtab): Likewise.
6842 (dw2_find_last_source_symtab): Update.
6843 (dw2_map_expand_apply): Update.
6844 (dw2_lookup_symbol): Update.
6845 (dw2_expand_symtabs_for_function): Update.
6846 (dw2_expand_all_symtabs): Update.
6847 (dw2_expand_symtabs_with_fullname): Update.
6848 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6849 don't use per_cu->dwarf2_per_objfile.
6850 (dw2_expand_marked_cus): Update.
6851 (dw2_find_pc_sect_compunit_symtab): Update.
6852 (dw2_debug_names_lookup_symbol): Update.
6853 (dw2_debug_names_expand_symtabs_for_function): Update.
6854 (dw2_debug_names_map_matching_symbols): Update.
6855 (dwarf2_psymtab::expand_psymtab): Update.
6856
9e021579
SM
68572020-05-27 Simon Marchi <simon.marchi@efficios.com>
6858
6859 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6860 <per_objfile>: New member.
6861 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6862 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6863 call to dwarf2_cu.
6864 (cutu_reader::cutu_reader): Update.
6865 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6866
ae090bdb
SM
68672020-05-27 Simon Marchi <simon.marchi@efficios.com>
6868
6869 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6870 struct dwarf2_per_objfile.
6871 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6872 dwarf2_per_bfd.
6873 * dwarf2/read.c (set_die_type): Update.
6874 (get_die_type_at_offset): Update.
6875
af758d11
SM
68762020-05-27 Tom Tromey <tom@tromey.com>
6877 Simon Marchi <simon.marchi@efficios.com>
6878
6879 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6880 method.
6881 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6882 get_symtab, set_symtab>: New methods.
6883 <m_symtabs>: New field.
6884 (struct dwarf2_psymtab): Derive from partial_symtab.
6885 <readin_p, get_compunit_symtab>: Declare methods.
6886 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6887 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6888 New methods.
6889 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6890 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6891 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6892 (dw2_symtab_iter_next, dw2_print_stats)
6893 (dw2_expand_symtabs_with_fullname)
6894 (dw2_expand_symtabs_matching_one)
6895 (dw_expand_symtabs_matching_file_matcher)
6896 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6897 (dw2_debug_names_iterator::next)
6898 (dw2_debug_names_map_matching_symbols)
6899 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6900 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6901 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6902 New methods.
6903 (get_compunit_symtab, process_full_comp_unit)
6904 (process_full_type_unit): Update.
6905 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6906
5989a64e
SM
69072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6908
6909 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6910 then introduce a new dwarf2_per_objfile type.
6911 <read_line_string>: Move to the new dwarf2_per_objfile type.
6912 <objfile>: Likewise.
6913 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6914 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6915 dwarf2_per_objfile->per_bfd.
6916 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6917 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6918 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6919 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6920 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6921 (dwarf2_per_objfile::locate_sections): Rename to...
6922 (dwarf2_per_bfd::locate_sections): ... this.
6923 (dwarf2_per_objfile::get_cutu): Rename to...
6924 (dwarf2_per_bfd::get_cutu): ... this.
6925 (dwarf2_per_objfile::get_cu): Rename to...
6926 (dwarf2_per_bfd::get_cu): ... this.
6927 (dwarf2_per_objfile::get_tu): Rename to...
6928 (dwarf2_per_bfd::get_tu): ... this.
6929 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6930 (dwarf2_per_bfd::allocate_per_cu): ... this.
6931 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6932 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6933 (get_gdb_index_contents_ftype): Change parameter from
6934 dwarf2_per_objfile to dwarf2_per_bfd.
6935 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6936 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6937
a50264ba
TT
69382020-05-27 Tom Tromey <tom@tromey.com>
6939 Simon Marchi <simon.marchi@efficios.com>
6940
6941 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6942 (allocate_piece_closure): Set "per_objfile" member.
6943 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6944 (locexpr_describe_location, loclist_describe_location): Use new
6945 member.
6946 * dwarf2/read.c (read_call_site_scope)
6947 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6948 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6949 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6950 handle_data_member_location): Set per_objfile member.
6951 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6952 member.
6953 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6954
d3473f0c
TT
69552020-05-27 Tom Tromey <tom@tromey.com>
6956
6957 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6958 allocate_signatured_type>: Declare new methods.
6959 <m_num_psymtabs>: New member.
6960 (struct dwarf2_per_cu_data) <index>: New member.
6961 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6962 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6963 (create_cu_from_index_list): Use allocate_per_cu.
6964 (create_signatured_type_table_from_index)
6965 (create_signatured_type_table_from_debug_names)
6966 (create_debug_type_hash_table, add_type_unit)
6967 (read_comp_units_from_section): Use allocate_signatured_type.
6968
5717c425
TT
69692020-05-27 Tom Tromey <tom@tromey.com>
6970
6971 * psymtab.c (partial_map_expand_apply)
6972 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6973 (psym_lookup_global_symbol_language)
6974 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6975 (psym_print_stats, psym_expand_symtabs_for_function)
6976 (psym_map_symbol_filenames, psym_map_matching_symbols)
6977 (psym_expand_symtabs_matching)
6978 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6979 (maintenance_check_psymtabs): Update.
6980 * psympriv.h (struct partial_symtab) <readin_p,
6981 get_compunit_symtab>: Add objfile parameter.
6982 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6983 Likewise.
6984 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6985 get_compunit_symtab>: Likewise.
6986 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6987
45940949
TT
69882020-05-27 Tom Tromey <tom@tromey.com>
6989
6990 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6991 member.
6992 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6993 (create_cu_from_index_list)
6994 (create_signatured_type_table_from_index)
6995 (create_signatured_type_table_from_debug_names)
6996 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6997 (dwarf2_create_include_psymtab)
6998 (create_debug_type_hash_table, add_type_unit)
6999 (create_type_unit_group, read_comp_units_from_section)
7000 (dwarf2_compute_name, create_cus_hash_table)
7001 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7002 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7003 obstack.
7004 (dw2_get_real_path): Likewise. Change argument to
7005 dwarf2_per_objfile.
7006
f8c6d152
LM
70072020-05-27 Luis Machado <luis.machado@linaro.org>
7008
7009 PR tdep/26000
7010 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7011 for ldrd (immediate).
7012
e98d2e6d
PW
70132020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7014
7015 * command.h: Add comment giving the name of class_tui.
7016 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7017 create the fake command for the help for class_tui.
7018
53a47a3e
TT
70192020-05-26 Tom Tromey <tromey@adacore.com>
7020
7021 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7022 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7023 (val_atr): New function.
7024 (value_val_atr): Use it.
7025 * ada-valprint.c (print_optional_low_bound): Change low bound
7026 handling for enums.
7027 (val_print_packed_array_elements): Don't call discrete_position.
7028 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7029 discrete_position for enum types.
7030 * language.c (default_print_array_index): Change type.
7031 * language.h (struct language_defn) <la_print_array_index>: Add
7032 index_type parameter, change type of index_value.
7033 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7034 (default_print_array_index): Update.
7035 * valprint.c (maybe_print_array_index): Don't call
7036 value_from_longest. Update.
7037 (value_print_array_elements): Don't call discrete_position.
7038
0bc2354b
TT
70392020-05-26 Tom Tromey <tromey@adacore.com>
7040
7041 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7042 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7043
1218a4bf
CDA
70442020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7045
7046 PR gdb/13519
7047 * avr-tdep.c (avr_integer_to_address): Return data or code
7048 address accordingly to the second 'type' argument of the
7049 function.
7050
92651b1d
MW
70512020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7052
7053 * infcmd.c, inferior.h: (construct_inferior_arguments):
7054 Moved function from here to gdbsupport/common-inferior.{h,cc}
7055
0a4f5f8c
TT
70562020-05-23 Tom Tromey <tom@tromey.com>
7057
7058 Revert commit eca1f90c:
7059 * NEWS: Remove entry for completion styling.
7060 * completer.c (_rl_completion_prefix_display_length): Move
7061 declaration later.
7062 (gdb_fnprint): Revert.
7063 (gdb_display_match_list_1): Likewise.
7064 * cli/cli-style.c (completion_prefix_style)
7065 (completion_difference_style, completion_suffix_style): Remove.
7066 (_initialize_cli_style): Revert.
7067 * cli/cli-style.h (completion_prefix_style)
7068 (completion_difference_style, completion_suffix_style): Don't
7069 declare.
7070
e08bd6c5
PA
70712020-05-24 Pedro Alves <palves@redhat.com>
7072
7073 * symtab.c (completion_list_add_name): Return boolean indication
7074 of whether the symbol matched.
7075 (completion_list_add_symbol): Don't try to remove C++ aliases if
7076 the symbol didn't match in the first place.
7077 * symtab.h (completion_list_add_name): Return bool.
7078
ceacbf6e
SM
70792020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7080
7081 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7082 type::field.
7083
26f16254
JB
70842020-05-23 Joel Brobecker <brobecker@adacore.com>
7085
7086 GDB 9.2 released.
7087
eca1f90c
TT
70882020-05-23 Tom Tromey <tom@tromey.com>
7089
7090 * NEWS: Add entry for completion styling.
7091 * completer.c (_rl_completion_prefix_display_length): Move
7092 declaration earlier.
7093 (gdb_fnprint): Use completion_style.
7094 (gdb_display_match_list_1): Likewise.
7095 * cli/cli-style.c (completion_prefix_style)
7096 (completion_difference_style, completion_suffix_style): New
7097 globals.
7098 (_initialize_cli_style): Register new globals.
7099 * cli/cli-style.h (completion_prefix_style)
7100 (completion_difference_style, completion_suffix_style): Declare.
7101
51e2cfa2
PA
71022020-05-23 Pedro Alves <palves@redhat.com>
7103
7104 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7105 (parse_escape): Use ISDIGIT instead of isdigit.
7106 (puts_debug): Use gdb_isprint instead of isprint.
7107 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7108 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7109 ISSPACE instead of isspace.
7110 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7111 instead of isspace.
7112 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7113 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7114 instead of isxdigit and ISDIGIT instead of isdigit.
7115
80fc5e77
SM
71162020-05-22 Simon Marchi <simon.marchi@efficios.com>
7117
7118 * gdbtypes.h (struct type) <field>: New method.
7119 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7120 or type::field.
7121
3cabb6b0
SM
71222020-05-22 Simon Marchi <simon.marchi@efficios.com>
7123
7124 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7125 (TYPE_FIELDS): Use type::fields. Change all call sites that
7126 modify the propery to use type::set_fields instead.
7127
1f704f76
SM
71282020-05-22 Simon Marchi <simon.marchi@efficios.com>
7129
7130 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7131 type::num_fields instead.
7132
5e33d5f4
SM
71332020-05-22 Simon Marchi <simon.marchi@efficios.com>
7134
7135 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7136 methods.
7137 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7138 that modify the number of fields to use type::set_num_fields
7139 instead.
7140
9392ebb3
TT
71412020-05-22 Tom Tromey <tromey@adacore.com>
7142
7143 * compile/compile-object-load.h (munmap_list_free): Don't
7144 declare.
7145
7c13f4e8
AB
71462020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7147
7148 * annotate.c (annotate_source_line): Update return type, add call
7149 to update current symtab and line.
7150 * annotate.h (annotate_source_line): Update return type, and
7151 extend header comment.
7152 * source.c (info_line_command): Check annotation_level before
7153 calling annotate_source_line.
7154 * stack.c (print_frame_info): If calling annotate_source_line
7155 returns true, then don't print any other source line information.
7156
aa370940
SM
71572020-05-21 Simon Marchi <simon.marchi@efficios.com>
7158
7159 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7160
84d53fa9
SM
71612020-05-21 Simon Marchi <simon.marchi@efficios.com>
7162
7163 * coffread.c (patch_type): Remove NULL check before xfree.
7164 * corefile.c (set_gnutarget): Likewise.
7165 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7166 * exec.c (build_section_table): Likewise.
7167 * remote.c (remote_target::pass_signals): Likewise.
7168 * utils.c (n_spaces): Likewise.
7169 * cli/cli-script.c (document_command): Likewise.
7170 * i386-windows-tdep.c (core_process_module_section): Likewise.
7171 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7172
9d428aae
SM
71732020-05-20 Simon Marchi <simon.marchi@efficios.com>
7174
7175 * symfile.c (reread_symbols): Clear objfile's section_offsets
7176 vector and section indices, re-compute them by calling
7177 sym_offsets.
7178
250106a7
TT
71792020-05-20 Tom Tromey <tromey@adacore.com>
7180
7181 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7182 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7183
9a0bacfb
TV
71842020-05-20 Tom de Vries <tdevries@suse.de>
7185
7186 PR symtab/25833
7187 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7188
7b958a48
AM
71892020-05-20 Alan Modra <amodra@gmail.com>
7190
7191 PR 25993
7192 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7193 bfd_set_filename.
7194 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7195 passed to bfd_set_filename.
7196 * symfile-mem.c (add_vsyscall_page): Likewise for string
7197 passed to symbol_file_add_from_memory.
7198 (symbol_file_add_from_memory): Make name param a const char* and
7199 don't strdup.
7200
c7e97679
AM
72012020-05-20 Alan Modra <amodra@gmail.com>
7202
7203 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7204 rather than accessing bfd->filename directly.
7205 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7206 and use bfd_section_name.
7207 * dwarf2/frame.c (decode_frame_entry): Likewise.
7208 * exec.c (exec_set_section_address): Likewise.
7209 * solib-aix.c (solib_aix_bfd_open): Likewise.
7210 * stap-probe.c (get_stap_base_address): Likewise.
7211 * symfile.c (reread_symbols): Likewise.
7212
563c591b
TT
72132020-05-19 Tom Tromey <tromey@adacore.com>
7214
7215 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7216
f408d82c
SM
72172020-05-19 Simon Marchi <simon.marchi@efficios.com>
7218
7219 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7220
98c59b52
PA
72212020-05-19 Pedro Alves <palves@redhat.com>
7222
7223 * NEWS (set exec-file-mismatch): Adjust entry.
7224 * exec.c: Include "build-id.h".
7225 (validate_exec_file): Try to match build IDs instead of filenames.
7226 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7227 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7228 and pass down 'warn_if_slow'.
7229 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7230 gdb_bfd_open_closure to pass it down.
7231 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7232
4111f652
PA
72332020-05-19 Pedro Alves <palves@redhat.com>
7234
7235 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7236 * target.c (target_fileio_open_1): Rename to target_fileio_open
7237 and make extern. Use bool.
7238 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7239 (target_fileio_read_alloc_1): Adjust.
7240 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7241 (target_fileio_open_warn_if_slow): Delete declaration.
7242
ad80db5b
PA
72432020-05-19 Pedro Alves <palves@redhat.com>
7244
7245 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7246 Adjust all callers.
7247
1d6ce4d3
YS
72482020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7249
7250 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7251 whether disp is negative.
7252
9005fbbb
SM
72532020-05-19 Simon Marchi <simon.marchi@efficios.com>
7254
7255 * symfile.h (struct symfile_segment_data)
7256 <~symfile_segment_data>: Remove.
7257 <segment_info>: Change to std::vector.
7258 * symfile.c (default_symfile_segments): Update.
7259 * elfread.c (elf_symfile_segments): Update.
7260
68b888ff
SM
72612020-05-19 Simon Marchi <simon.marchi@efficios.com>
7262
7263 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7264 <segments>: New.
7265 <segment_bases, segment_sizes>: Remove.
7266 * symfile.c (default_symfile_segments): Update.
7267 * elfread.c (elf_symfile_segments): Update.
7268 * remote.c (remote_target::get_offsets): Update.
7269 * solib-target.c (solib_target_relocate_section_addresses):
7270 Update.
7271
62982abd
SM
72722020-05-19 Simon Marchi <simon.marchi@efficios.com>
7273
7274 * symfile.h (struct symfile_segment_data): Initialize fields.
7275 <~symfile_segment_data>: Add.
7276 (symfile_segment_data_up): New.
7277 (struct sym_fns) <sym_segments>: Return a
7278 symfile_segment_data_up.
7279 (default_symfile_segments): Return a symfile_segment_data_up.
7280 (free_symfile_segment_data): Remove.
7281 (get_symfile_segment_data): Return a symfile_segment_data_up.
7282 * symfile.c (default_symfile_segments): Likewise.
7283 (get_symfile_segment_data): Likewise.
7284 (free_symfile_segment_data): Remove.
7285 (symfile_find_segment_sections): Update.
7286 * elfread.c (elf_symfile_segments): Return a
7287 symfile_segment_data_up.
7288 * remote.c (remote_target::get_offsets): Update.
7289 * solib-target.c (solib_target_relocate_section_addresses):
7290 Update.
7291 * symfile-debug.c (debug_sym_segments): Return a
7292 symfile_segment_data_up.
7293
7f204339
RO
72942020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7295
e52a0f1b
RO
7296 PR build/25981
7297 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7298 Hardcode register numbers.
7299
7f204339
RO
7300 PR build/25981
7301 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7302 procfs_find_LDT_entry): Remove.
7303 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7304 procfs_find_LDT_entry): Remove.
7305 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7306 Remove.
7307
7f32a4d5
PA
73082020-05-17 Pedro Alves <palves@redhat.com>
7309 Andrew Burgess <andrew.burgess@embecosm.com>
7310 Keno Fischer <keno@juliacomputing.com>
7311
7312 PR gdb/25741
7313 * breakpoint.c (build_target_condition_list): Update comments.
7314 (build_target_command_list): Update comments and skip matching
7315 locations.
7316 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7317 a separate function. Simplify "set breakpoint auto-hw off"
7318 handling.
7319 (insert_breakpoints): Update comment.
7320 (tracepoint_locations_match): New parameter. For breakpoints,
7321 compare location types too, if the caller wants to.
7322 (handle_automatic_hardware_breakpoints): New functions.
7323 (bp_location_is_less_than): Also sort by location type and
7324 hardware breakpoint length.
7325 (update_global_location_list): Handle "set breakpoint auto-hw on"
7326 here.
7327 (update_breakpoint_locations): Ask breakpoint_locations_match to
7328 ignore location types.
7329
7d93a1e0
SM
73302020-05-16 Simon Marchi <simon.marchi@efficios.com>
7331
7332 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7333 type::name instead.
7334
d0e39ea2
SM
73352020-05-16 Simon Marchi <simon.marchi@efficios.com>
7336
7337 * gdbtypes.h (struct type) <name, set_name>: New methods.
7338 (TYPE_CODE): Use type::name. Change all call sites used to set
7339 the name to use type::set_name instead.
7340
2dab0c7b
TT
73412020-05-16 Tom Tromey <tom@tromey.com>
7342
7343 * top.c (quit_force): Update.
7344 * infrun.c (handle_no_resumed): Update.
7345 * top.h (all_uis): New function.
7346 (ALL_UIS): Remove.
7347
59f7bd8d
SM
73482020-05-16 Simon Marchi <simon.marchi@efficios.com>
7349
7350 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7351
9bf058f0
PA
73522020-05-16 Pedro Alves <palves@redhat.com>
7353
7354 * ia64-linux-nat.c
7355 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7356 Declare method.
7357 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7358
8f86ae1a
SM
73592020-05-15 Simon Marchi <simon.marchi@efficios.com>
7360
7361 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7362 (sparc64_adi_info): Likewise.
7363
d6bc0792
TT
73642020-05-15 Tom Tromey <tom@tromey.com>
7365
7366 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7367 block_objfile.
7368 (lookup_objfile_from_block): Remove.
7369 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7370 (lookup_global_symbol): Use block_objfile.
7371 * symtab.h (lookup_objfile_from_block): Don't declare.
7372 * printcmd.c (clear_dangling_display_expressions): Use
7373 block_objfile.
7374 * parse.c (operator_check_standard): Use block_objfile.
7375
8c14c3a3
TT
73762020-05-15 Tom Tromey <tom@tromey.com>
7377
7378 * language.c (language_alloc_type_symbol): Set
7379 SYMBOL_SECTION.
7380 * symtab.c (initialize_objfile_symbol): Remove.
7381 (allocate_symbol): Remove.
7382 (allocate_template_symbol): Remove.
7383 * dwarf2/read.c (fixup_go_packaging): Use "new".
7384 (new_symbol): Use "new".
7385 (read_variable): Don't call initialize_objfile_symbol. Use
7386 "new".
7387 (read_func_scope): Use "new".
7388 * xcoffread.c (process_xcoff_symbol): Don't call
7389 initialize_objfile_symbol.
7390 (SYMBOL_DUP): Remove.
7391 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7392 "new".
7393 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7394 (allocate_template_symbol): Don't declare.
7395 (struct symbol): Add copy constructor. Change defaults.
7396 * jit.c (finalize_symtab): Use "new".
7397 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7398 Use "new".
7399 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7400 (common_block_end): Use "new".
7401 * mdebugread.c (parse_symbol): Use "new".
7402 (new_symbol): Likewise.
7403
5b4a1a8d
PW
74042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7405
7406 * NEWS: Mention changes to help and apropos.
7407
57b4f16e
PW
74082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7409
7410 * command.h (enum command_class): Improve comments, document
7411 that class_alias is for user-defined aliases, give the class
7412 name for each class, remove unused class_xdb.
7413 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7414 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7415 by a precise class.
7416 * infcmd.c (_initialize_infcmd): Likewise.
7417 * reverse.c (_initialize_reverse): Likewise.
7418 * stack.c (_initialize_stack): Likewise.
7419 * symfile.c (_initialize_symfile): Likewise.
7420 * tracepoint.c (_initialize_tracepoint): Likewise.
7421
7c05caf7
PW
74222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7423
7424 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7425 when their aliased command is traversed.
7426 (help_cmd): Add fput_command_names_styled call to
7427 output command name and aliases when command has an alias.
7428
3b3aaacb
PW
74292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7430
7431 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7432 * cli/cli-decode.c (help_cmd_list): Declare as static,
7433 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7434 a command together with the command.
7435 (fput_command_name_styled, fput_command_names_styled): New functions.
7436 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7437 fput_command_name_styled.
7438 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7439 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7440
7aa1b46f
PW
74412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7442
7443 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7444 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7445 * command.h (cmd_show_list): Likewise.
7446 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7447 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7448
89bcba74
PW
74492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7450
7451 * unittests/command-def-selftests.c (traverse_command_structure):
7452 Verify all commands of a list have the same prefix command and
7453 that only the top cmdlist commands have a null prefix.
7454
3f4d92eb
PW
74552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7456
7457 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7458 as prefix, not one of its aliases.
7459 (set_cmd_prefix): Remove.
7460 (do_add_cmd): Centralize the setting of the prefix of a command, when
7461 command is defined after its full chain of prefix commands.
7462 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7463 (add_setshow_cmd_full): Likewise.
7464 (update_prefix_field_of_prefixed_commands): New function.
7465 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7466 update_prefix_field_of_prefixed_commands.
7467 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7468 addresses of remote_set_cmdlist and remote_show_cmdlist given
7469 as argument, not the address of an argument.
7470 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7471 * gdb/remote.c (_initialize_remote): Likewise.
7472
0605465f
PW
74732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7474
7475 * cli/cli-cmds.c (alias_command): Check for an existing alias
7476 using lookup_cmd_composition, as valid_command_p is too strict
7477 and forbids aliases that are the prefix of an existing alias
7478 or command.
7479 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7480 command is properly recognised as a valid command.
7481
58e6ac70
PW
74822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7483
7484 * unittests/help-doc-selftests.c: Rename to
7485 unittests/command-def-selftests.c
7486 * unittests/command-def-selftests.c (help_doc_tests): Update some
7487 comments.
7488 (command_structure_tests, traverse_command_structure): New namespace
7489 and function.
7490 (command_structure_invariants_tests): New function.
7491 (_initialize_command_def_selftests) Renamed from
7492 _initialize_help_doc_selftests, register command_structure_invariants
7493 selftest.
7494
a7b9ceb8
PW
74952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7496
7497 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7498 an alias of 'show'.
7499
b2188a06
JB
75002020-05-15 Joel Brobecker <brobecker@adacore.com>
7501
7502 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7503 ada_is_fixed_point_type. Update all callers.
7504 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7505 all callers.
7506 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7507 Update all callers.
7508 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7509 print_fixed_point_type. Update all callers.
7510 * ada-valprint.c (ada_value_print_num): Replace call to
7511 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7512
a51951c2
KB
75132020-05-14 Kevin Buettner <kevinb@redhat.com>
7514
7515 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7516 processors.
7517 (cpu_supports_bts): Add CV_AMD case.
7518
29d6859f
LM
75192020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7520 Simon Marchi <simon.marchi@efficios.com>
7521
7522 * infrun.c (stop_all_threads): Collect multiple wait events at
7523 each pass.
7524
78134374
SM
75252020-05-14 Simon Marchi <simon.marchi@efficios.com>
7526
7527 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7528 type::code instead.
7529
67607e24
SM
75302020-05-14 Simon Marchi <simon.marchi@efficios.com>
7531
7532 * gdbtypes.h (struct type) <code, set_code>: New methods.
7533 (TYPE_CODE): Use type::code. Change all call sites used to set
7534 the code to use type::set_code instead.
7535
a05575d3
TBA
75362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7537 Tom de Vries <tdevries@suse.de>
7538 Pedro Alves <palves@redhat.com>
7539
7540 PR threads/25478
7541 * infrun.c (stop_all_threads): Do NOT ignore
7542 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7543 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7544 received.
7545 (handle_no_resumed): Remove code handling a live inferior with no
7546 threads.
7547 * remote.c (has_single_non_exited_thread): New.
7548 (remote_target::update_thread_list): Do not delete a thread if is
7549 the last thread of the process.
7550 * thread.c (thread_select): Call delete_exited_threads instead of
7551 prune_threads.
7552
6ad82919
TBA
75532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7554
7555 * infrun.c (stop_all_threads): Enable/disable thread events of all
7556 targets. Move a debug message denoting the end of the function
7557 into the SCOPED_EXIT block.
7558
d890404b
TBA
75592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7560
7561 * process-stratum-target.h: Include <set>.
7562 (all_non_exited_process_targets, switch_to_target_no_thread): New
7563 function declarations.
7564 * process-stratum-target.c (all_non_exited_process_targets)
7565 (switch_to_target_no_thread): New function implementations.
7566
293b3ebc
TBA
75672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7568
7569 * infrun.c (handle_inferior_event): Extract out a piece of code
7570 into...
7571 (mark_non_executing_threads): ...this new function.
7572
7ca9b62a
TBA
75732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7574
7575 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7576 use.
7577
fc75c28b
TBA
75782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7579
7580 * regcache.c (regcache_read_pc_protected): New function
7581 implementation that returns 0 if the PC cannot read via
7582 'regcache_read_pc'.
7583 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7584 instead of 'regcache_read_pc'.
7585 (keep_going_pass_signal): Ditto.
7586
a89febbd
TT
75872020-05-13 Tom Tromey <tromey@adacore.com>
7588
7589 * ada-lang.c (align_value): Remove.
7590 (ada_template_to_fixed_record_type_1): Use align_up.
7591
f7e23710
TBA
75922020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7593
7594 * async-event.c: Update the copyright year.
7595 * async-event.h: Update the copyright year.
7596
02ff80c2
SM
75972020-05-12 Simon Marchi <simon.marchi@efficios.com>
7598
7599 * objfiles.h (is_addr_in_objfile,
7600 shared_objfile_contains_address_p): Return bool.
7601 * objfile.c (is_addr_in_objfile,
7602 shared_objfile_contains_address_p): Return bool.
7603
4fd6c7e8
TT
76042020-05-11 Tom Tromey <tromey@adacore.com>
7605
7606 * cli/cli-cmds.c (info_command): Restore.
7607 (_initialize_cli_cmds): Use add_prefix_command for "info".
7608 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7609
5eb68a39
TT
76102020-05-11 Tom Tromey <tromey@adacore.com>
7611
7612 * ada-lang.c (ada_value_primitive_field): Now public.
7613 * ada-lang.h (ada_value_primitive_field): Declare.
7614 * ada-valprint.c (print_field_values): Use
7615 ada_value_primitive_field for wrapper fields.
7616
7666722f
TV
76172020-05-11 Tom de Vries <tdevries@suse.de>
7618
7619 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7620 MODULE_DOMAIN.
7621
3ee6bb11
TV
76222020-05-11 Tom de Vries <tdevries@suse.de>
7623
7624 PR symtab/25941
7625 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7626 with length 0, if not gdb-produced.
7627 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7628
43434996
TV
76292020-05-09 Tom de Vries <tdevries@suse.de>
7630
7631 PR gdb/25955
7632 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7633 calculation.
7634
2f78cffc
TT
76352020-05-09 Tom Tromey <tom@tromey.com>
7636
7637 * top.c (server_command): Now bool.
7638 * top.h (server_command): Now bool.
7639
4f7bc5ed
TT
76402020-05-08 Tom Tromey <tromey@adacore.com>
7641
7642 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7643 already being processed.
7644
8be4b118
TT
76452020-05-08 Tom Tromey <tom@tromey.com>
7646
7647 * printcmd.c (struct display) <next>: Remove.
7648 <display>: New constructor.
7649 <exp_string>: Now a std::string.
7650 <enabled_p>: Now a bool.
7651 (display_number): Move definition earlier.
7652 (displays): Rename from display_chain. Now a std::vector.
7653 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7654 (display_command): Update.
7655 (do_one_display, disable_display)
7656 (enable_disable_display_command, do_enable_disable_display):
7657 Update.
7658 (free_display): Remove.
7659 (clear_displays): Rewrite.
7660 (delete_display): Update.
7661 (map_display_numbers): Use function_view. Remove "data"
7662 parameter. Update.
7663 (do_delete_display): Remove.
7664 (undisplay_command): Update.
7665 (do_one_display, do_displays, disable_display)
7666 (info_display_command): Update.
7667 (do_enable_disable_display): Remove.
7668 (enable_disable_display_command)
7669 (clear_dangling_display_expressions): Update.
7670
94c93c35
TT
76712020-05-08 Tom Tromey <tom@tromey.com>
7672
7673 * symtab.c (set_symbol_cache_size)
7674 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7675 (maintenance_print_symbol_cache_statistics): Update.
7676 * symmisc.c (print_symbol_bcache_statistics)
7677 (print_objfile_statistics, maintenance_print_objfiles)
7678 (maintenance_info_symtabs, maintenance_check_symtabs)
7679 (maintenance_expand_symtabs, maintenance_info_line_tables):
7680 Update.
7681 * symfile-debug.c (set_debug_symfile): Update.
7682 * source.c (forget_cached_source_info): Update.
7683 * python/python.c (gdbpy_progspaces): Update.
7684 * psymtab.c (maintenance_info_psymtabs): Update.
7685 * probe.c (parse_probes): Update.
7686 * linespec.c (iterate_over_all_matching_symtabs)
7687 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7688 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7689 * exec.c (exec_target::close): Update.
7690 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7691 * breakpoint.c (print_one_breakpoint_location)
7692 (create_longjmp_master_breakpoint)
7693 (create_std_terminate_master_breakpoint): Update.
7694 * progspace.c (program_spaces): Now a std::vector.
7695 (maybe_new_address_space): Update.
7696 (add_program_space): Remove.
7697 (program_space::program_space): Update.
7698 (remove_program_space): Update.
7699 (number_of_program_spaces): Remove.
7700 (print_program_space, update_address_spaces): Update.
7701 * progspace.h (program_spaces): Change type.
7702 (ALL_PSPACES): Remove.
7703 (number_of_program_spaces): Don't declare.
7704 (struct program_space) <next>: Remove.
7705
a1fd1ac9
TT
77062020-05-08 Tom Tromey <tom@tromey.com>
7707
7708 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7709 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7710 (enable_break): Update.
7711 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7712 (frv_fdpic_find_canonical_descriptor): Update.
7713 (frv_fetch_objfile_link_map): Update.
7714 * progspace.c (program_space::free_all_objfiles): Update.
7715 (program_space::solibs): New method.
7716 * progspace.h (struct program_space) <solibs>: New method.
7717 * solist.h (master_so_list): Don't declare.
7718 (ALL_SO_LIBS): Remove.
7719 * solib.h (so_list_head): Remove.
7720 (update_solib_list): Update comment.
7721 * solib.c (master_so_list): Remove.
7722 (solib_used, update_solib_list, solib_add)
7723 (info_sharedlibrary_command, clear_solib)
7724 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7725
38eae084
TT
77262020-05-08 Tom Tromey <tom@tromey.com>
7727
7728 * extension.c (extension_languages): Now a std::array.
7729 (ALL_EXTENSION_LANGUAGES): Remove.
7730 (get_ext_lang_defn, get_ext_lang_of_file)
7731 (eval_ext_lang_from_control_command): Update.
7732 (finish_ext_lang_initialization)
7733 (auto_load_ext_lang_scripts_for_objfile)
7734 (ext_lang_type_printers::ext_lang_type_printers)
7735 (apply_ext_lang_type_printers)
7736 (ext_lang_type_printers::~ext_lang_type_printers)
7737 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7738 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7739 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7740 (get_matching_xmethod_workers, ext_lang_colorize)
7741 (ext_lang_before_prompt): Update.
7742 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7743
596dc4ad
TT
77442020-05-08 Tom Tromey <tom@tromey.com>
7745
7746 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7747 overload.
7748 <swap_string, m_string>: Remove.
7749 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7750 Update.
7751 * stabsread.c (define_symbol, read_type): Update.
7752 * linespec.c (find_linespec_symbols): Update.
7753 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7754 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7755 * dbxread.c (read_dbx_symtab): Update.
7756 * cp-support.h (cp_canonicalize_string_full)
7757 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7758 Return unique_xmalloc_ptr.
7759 * cp-support.c (inspect_type): Update.
7760 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7761 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7762 Likewise.
7763 * c-typeprint.c (print_name_maybe_canonical): Update.
7764 * break-catch-throw.c (check_status_exception_catchpoint):
7765 Update.
7766
bf4cb9be
TV
77672020-05-08 Tom de Vries <tdevries@suse.de>
7768
7769 * infrun.c (follow_fork): Copy current_line and current_symtab to
7770 child thread.
7771
a1b68f28
SM
77722020-05-07 Simon Marchi <simon.marchi@efficios.com>
7773
7774 * async-event.c (struct async_signal_handler, struct
7775 async_event_handler): Reformat, remove typedef.
7776
98d48915
SM
77772020-05-07 Simon Marchi <simon.marchi@efficios.com>
7778
7779 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7780 access thistype->main_type->dyn_prop_list directly.
7781
7aa91313
SM
77822020-05-07 Simon Marchi <simon.marchi@efficios.com>
7783
7784 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7785 (remove_dyn_prop): Remove. Update all users to use
7786 type::remove_dyn_prop.
7787 * gdbtypes.c (remove_dyn_prop): Rename to...
7788 (type::remove_dyn_prop): ... this.
7789
5c54719c
SM
77902020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7791
7792 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7793 (add_dyn_prop): Remove. Update all users to use
7794 type::add_dyn_prop.
7795 * gdbtypes.c (add_dyn_prop): Rename to...
7796 (type::add_dyn_prop): ... this.
7797
24e99c6c
SM
77982020-05-07 Simon Marchi <simon.marchi@efficios.com>
7799
7800 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7801 (get_dyn_prop): Remove. Update all users to use
7802 type::dyn_prop.
7803 * gdbtypes.c (get_dyn_prop): Rename to...
7804 (type::dyn_prop): ... this.
7805
0d4bf016
SM
78062020-05-06 Simon Marchi <simon.marchi@efficios.com>
7807
7808 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7809
ac4a4f1c
SM
78102020-05-06 Simon Marchi <simon.marchi@efficios.com>
7811
7812 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7813 instruction, skip it if it's there.
7814
a3bbacc1
SM
78152020-05-05 Simon Marchi <simon.marchi@efficios.com>
7816
7817 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7818
c3236f84
SM
78192020-05-04 Simon Marchi <simon.marchi@efficios.com>
7820
7821 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7822 * gdbtypes.c (recursive_dump_type): Remove use of
7823 TYPE_INCOMPLETE.
7824
3b6acaee
TT
78252020-05-03 Tom Tromey <tom@tromey.com>
7826
7827 * breakpoint.c (catch_command, tcatch_command): Remove.
7828 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7829 add_show_prefix_cmd.
7830 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7831 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7832 Remove.
7833 (add_internal_problem_command): Use add_basic_prefix_cmd,
7834 add_show_prefix_cmd.
7835 * mips-tdep.c (set_mipsfpu_command): Remove.
7836 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7837 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7838 (_initialize_index_cache): Use add_basic_prefix_cmd.
7839 * memattr.c (dummy_cmd): Remove.
7840 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7841 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7842 (_initialize_tui_win): Use add_basic_prefix_cmd,
7843 add_show_prefix_cmd.
7844 * cli/cli-logging.c (set_logging_command): Remove.
7845 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7846 add_show_prefix_cmd.
7847 (show_logging_command): Remove.
7848 * target.c (target_command): Remove.
7849 (add_target): Use add_basic_prefix_cmd.
7850
a51119cd
HD
78512020-05-02 Hannes Domani <ssbssa@yahoo.de>
7852
7853 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7854
652fc23a 78552020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7856
652fc23a
PW
7857 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7858 info_command.
7859
117539e6
KR
78602020-04-30 Kamil Rytarowski <n54@gmx.com>
7861
7862 * nbsd-nat.c (nbsd_enable_proc_events)
7863 (nbsd_nat_target::post_startup_inferior): Add.
7864 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7865 (nbsd_nat_target::update_thread_list): Rewrite.
7866 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7867 "PTRACE_LWP_CREATE".
7868 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7869
102e38eb 78702020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7871
102e38eb
PW
7872 * stack.c (_initialize_stack): Remove duplicated creation
7873 of "frame" command and "f" alias.
7874
ee9d1e5f
HD
78752020-04-30 Hannes Domani <ssbssa@yahoo.de>
7876
7877 PR gdb/18706
7878 * gdbtypes.c (check_typedef): Calculate size of array of
7879 stubbed type.
7880
627c7fb8
HD
78812020-04-30 Hannes Domani <ssbssa@yahoo.de>
7882
7883 PR gdb/15559
7884 * i386-tdep.c (i386_push_dummy_call): Call
7885 i386_thiscall_push_dummy_call.
7886 (i386_thiscall_push_dummy_call): New function.
7887 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7888 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7889 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7890
ffc2844e
SM
78912020-04-29 Simon Marchi <simon.marchi@efficios.com>
7892
7893 * gdbarch.sh (do_read): Add shellcheck disable directive for
7894 warning SC2162.
7895
1207375d
SM
78962020-04-29 Simon Marchi <simon.marchi@efficios.com>
7897
7898 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7899 "referenced but not assigned" warning.
7900
9fdb2916
SM
79012020-04-29 Simon Marchi <simon.marchi@efficios.com>
7902
7903 * gdbarch.sh: Remove code that sets fallbackdefault.
7904
759cea5e
SM
79052020-04-29 Simon Marchi <simon.marchi@efficios.com>
7906
7907 * gdbarch.sh: Use shell operators && and || instead of
7908 -a and -o.
7909
cb02ab24
SM
79102020-04-29 Simon Marchi <simon.marchi@efficios.com>
7911
7912 * gdbarch.sh: Use $(...) instead of `...`.
7913
a6fc5ffc
SM
79142020-04-29 Simon Marchi <simon.marchi@efficios.com>
7915
7916 * gdbarch.sh: Use double quotes around variables.
7917
8d113d13
SM
79182020-04-29 Simon Marchi <simon.marchi@efficios.com>
7919
7920 * gdbarch.sh: Use %s with printf, instead of variables in the
7921 format string.
7922
ed6acedd
TT
79232020-04-29 Tom Tromey <tromey@adacore.com>
7924
7925 PR ada/25875:
7926 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7927 type fields here.
7928 (read_enumeration_type): Call
7929 update_enumeration_type_from_children later. Update comments.
7930 (process_enumeration_scope): Don't create type fields.
7931
b68b1b58
KR
79322020-04-29 Kamil Rytarowski <n54@gmx.com>
7933
7934 * nbsd-tdep.c: Include "xml-syscall.h".
7935 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7936
f94b2e03
KR
79372020-04-29 Kamil Rytarowski <n54@gmx.com>
7938
7939 * nbsd-nat.c: Include "sys/wait.h".
7940 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7941 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7942 (nbsd_nat_target::remove_exec_catchpoint)
7943 (nbsd_nat_target::set_syscall_catchpoint): Add.
7944 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7945 (nbsd_nat_target::insert_exec_catchpoint)
7946 (nbsd_nat_target::remove_exec_catchpoint)
7947 (nbsd_nat_target::set_syscall_catchpoint): Add.
7948 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7949 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7950 `nbsd_get_syscall_number'.
7951
fc49bc72
TT
79522020-04-29 Tom Tromey <tom@tromey.com>
7953
7954 * stack.c (print_block_frame_labels): Remove.
7955
d642b692
HD
79562020-04-29 Hannes Domani <ssbssa@yahoo.de>
7957
7958 PR gdb/17320
7959 * ada-valprint.c (val_print_packed_array_elements): Move array
7960 end bracket to new line.
7961 (ada_val_print_string): Remove extra spaces before first array
7962 element.
7963 * c-valprint.c (c_value_print_array): Likewise.
7964 * m2-valprint.c (m2_print_array_contents): Likewise.
7965 (m2_value_print_inner): Likewise.
7966 * p-valprint.c (pascal_value_print_inner): Likewise.
7967 * valprint.c (generic_val_print_array): Likewise.
7968 (value_print_array_elements): Move first array element and array
7969 end bracket to new line.
7970
ea90f227
TV
79712020-04-29 Tom de Vries <tdevries@suse.de>
7972
7973 PR symtab/25889
7974 * linespec.c (find_method): Fix ix calculation.
7975
4498ef4f
KR
79762020-04-28 Kamil Rytarowski <n54@gmx.com>
7977
7978 * syscalls/update-netbsd.sh: New file.
7979 * syscalls/netbsd.xml: Regenerate.
7980 * data-directory/Makefile.in: Register `netbsd.xml' in
7981 `SYSCALLS_FILES'.
7982
a55e30b5
SM
79832020-04-28 Simon Marchi <simon.marchi@efficios.com>
7984
7985 * syscalls/update-freebsd.sh: Add double quotes.
7986
2b2fbab8
TT
79872020-04-28 Tom Tromey <tom@tromey.com>
7988
7989 * NEWS: Update.
7990 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7991 (cmdpy_init): Allow class_tui.
7992
a65189c9
TV
79932020-04-28 Mark Williams <mark@myosotissp.com>
7994
7995 PR gdb/24480
7996 * dwarf2read.c: Add missing assingments to list_in_scope when
7997 start_symtab was already called.
7998
1b95cdb7
SM
79992020-04-28 Simon Marchi <simon.marchi@efficios.com>
8000
8001 PR gdb/25881
8002 * dwarf2/read.c (offset_map_type): Use
8003 gdb:hash_enum<sect_offset> as hash function.
8004
15cd93d0
TV
80052020-04-28 Tom de Vries <tdevries@suse.de>
8006
8007 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8008 with DW_AT_signature.
8009
1eb39914
SM
80102020-04-27 Simon Marchi <simon.marchi@efficios.com>
8011
8012 * configure.ac: Remove check for fs_base/gs_base in
8013 user_regs_struct.
8014 * configure: Re-generate.
8015 * config.in: Re-generate.
8016 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8017 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8018 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8019
991a3e2e
LM
80202020-04-27 Luis Machado <luis.machado@linaro.org>
8021
8022 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8023 problematic inline frame unwinding situation.
8024 * frame.c (frame_id_computed_p): New function.
8025 * frame.h (frame_id_computed_p): New prototype.
8026
361ba0e8
TT
80272020-04-26 Tom Tromey <tom@tromey.com>
8028
8029 * command.h (enum command_class) <class_pseudo>: Remove.
8030
bc3609fd
PW
80312020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8032
8033 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8034 and whitespace.
8035
b9771db7
KR
80362020-04-25 Kamil Rytarowski <n54@gmx.com>
8037
ec16513e
SM
8038 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8039 `PT_GET_PROCESS_STATE' block.
b9771db7 8040
7151c1af
TT
80412020-04-24 Tom Tromey <tom@tromey.com>
8042
8043 * symtab.h (symbol_get_demangled_name): Don't declare.
8044 * symtab.c (symbol_get_demangled_name): Remove.
8045 (general_symbol_info::natural_name)
8046 (general_symbol_info::demangled_name): Update.
8047
906bb4c5
TT
80482020-04-24 Tom Tromey <tom@tromey.com>
8049
8050 PR rust/25025:
8051 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8052
bcfe6157
TT
80532020-04-24 Tom Tromey <tom@tromey.com>
8054
8055 PR symtab/12707:
8056 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8057 exists.
8058 (new_symbol): Likewise.
8059 * compile/compile-object-load.c (get_out_value_type): Use
8060 symbol_matches_search_name.
8061
f049a313
TT
80622020-04-24 Tom Tromey <tom@tromey.com>
8063
8064 * dwarf2/read.c (add_partial_symbol): Do not call
8065 compute_and_set_names.
8066
76e288d1
TT
80672020-04-24 Tom Tromey <tom@tromey.com>
8068
8069 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8070 overload.
8071
2467f4f6
TT
80722020-04-24 Tom Tromey <tom@tromey.com>
8073
8074 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8075 (add_psymbol_to_list): New overload. Make old overload call new
8076 one.
8077 * psympriv.h (add_psymbol_to_list): New overload.
8078
e61108c9
TT
80792020-04-24 Tom Tromey <tom@tromey.com>
8080
8081 * dwarf2/read.c (partial_die_info::read) <case
8082 DW_AT_linkage_name>: Use value_as_string.
8083 (dwarf2_string_attr): Use value_as_string.
8084 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8085 method.
8086 * dwarf2/attribute.c (attribute::value_as_string): New method.
8087
8c87a452
TT
80882020-04-24 Tom Tromey <tom@tromey.com>
8089
8090 * symtab.c (general_symbol_info::natural_name)
8091 (general_symbol_info::demangled_name): Check for language_rust.
8092
787de330
TT
80932020-04-24 Tom Tromey <tom@tromey.com>
8094
8095 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8096 (dwarf2_physname): ... from here.
8097 (partial_die_info::read): Add Rust "{" hack.
8098
ff985671
TT
80992020-04-24 Tom Tromey <tom@tromey.com>
8100
8101 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8102 method.
8103 (symbol_set_demangled_name): Don't declare.
8104 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8105 symbol_set_demangled_name.
8106 (general_symbol_info::set_language)
8107 (general_symbol_info::compute_and_set_names): Update.
8108 * minsyms.c (minimal_symbol_reader::install): Update.
8109 * dwarf2/read.c (new_symbol): Update.
8110
1acda803
TT
81112020-04-24 Tom Tromey <tromey@adacore.com>
8112
8113 PR python/23662:
8114 * python/py-type.c (convert_field): Handle
8115 FIELD_LOC_KIND_DWARF_BLOCK.
8116 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8117 (typy_get_dynamic): Nw function.
8118 (type_object_getset): Add "dynamic".
8119 * NEWS: Add entry.
8120
d656f129
TT
81212020-04-24 Tom Tromey <tromey@adacore.com>
8122
8123 * ada-typeprint.c (print_choices, print_variant_part)
8124 (print_record_field_types_dynamic): New functions.
8125 (print_record_field_types): Use print_record_field_types_dynamic.
8126
7d79de9a
TT
81272020-04-24 Tom Tromey <tromey@adacore.com>
8128
8129 * dwarf2/read.c (handle_data_member_location): New overload.
8130 (dwarf2_add_field): Use it.
8131 (decode_locdesc): Add "computed" parameter. Update comment.
8132 * gdbtypes.c (is_dynamic_type_internal): Also look for
8133 FIELD_LOC_KIND_DWARF_BLOCK.
8134 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8135 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8136 virtual base classes.
8137 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8138 FIELD_LOC_KIND_DWARF_BLOCK.
8139
f8e89861
TT
81402020-04-24 Tom Tromey <tromey@adacore.com>
8141
8142 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8143 * gdbtypes.c (is_dynamic_type_internal): Check
8144 TYPE_HAS_DYNAMIC_LENGTH.
8145 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8146 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8147 New macros.
8148 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8149 constant.
8150
9c6a1327
TT
81512020-04-24 Tom Tromey <tromey@adacore.com>
8152
8153 * dwarf2/read.c (struct variant_field): Rewrite.
8154 (struct variant_part_builder): New.
8155 (struct nextfield): Remove "variant" field. Add "offset".
8156 (struct field_info): Add "current_variant_part" and
8157 "variant_parts".
8158 (alloc_discriminant_info): Remove.
8159 (alloc_rust_variant): New function.
8160 (quirk_rust_enum): Update.
8161 (dwarf2_add_field): Set "offset" member. Don't handle
8162 DW_TAG_variant_part.
8163 (offset_map_type): New typedef.
8164 (convert_variant_range, create_one_variant)
8165 (create_one_variant_part, create_variant_parts)
8166 (add_variant_property): New functions.
8167 (dwarf2_attach_fields_to_type): Call add_variant_property.
8168 (read_structure_type): Don't handle DW_TAG_variant_part.
8169 (handle_variant_part, handle_variant): New functions.
8170 (handle_struct_member_die): Use them.
8171 (process_structure_scope): Don't handle variant parts.
8172 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8173 (struct discriminant_info): Remove.
8174 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8175 (struct main_type) <flag_discriminated_union>: Remove.
8176 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8177 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8178 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8179 Update.
8180 * valops.c (value_union_variant): Remove.
8181 * value.h (value_union_variant): Don't declare.
8182
b249d2c2
TT
81832020-04-24 Tom Tromey <tromey@adacore.com>
8184
8185 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8186 (ada_value_primitive_packed_val): Update.
8187 * ada-valprint.c (ada_value_print_1): Update.
8188 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8189 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8190 just an address. Use evaluate_for_locexpr_baton.
8191 (dwarf2_evaluate_property): Update.
8192 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8193 array_view.
8194 * findvar.c (default_read_var_value): Update.
8195 * gdbtypes.c (compute_variant_fields_inner)
8196 (resolve_dynamic_type_internal): Update.
8197 (resolve_dynamic_type): Change type of valaddr parameter.
8198 * gdbtypes.h (resolve_dynamic_type): Update.
8199 * valarith.c (value_subscripted_rvalue): Update.
8200 * value.c (value_from_contents_and_address): Update.
8201
61122aa9
TT
82022020-04-24 Tom Tromey <tromey@adacore.com>
8203
8204 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8205 "push_initial_value" parameter.
8206 (dwarf2_evaluate_property): Likewise.
8207 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8208
ef83a141
TT
82092020-04-24 Tom Tromey <tromey@adacore.com>
8210
8211 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8212 (variant::matches, compute_variant_fields_recurse)
8213 (compute_variant_fields_inner, compute_variant_fields): New
8214 functions.
8215 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8216 Use resolved_type after type is made.
8217 (operator==): Add new cases.
8218 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8219 (struct discriminant_range, struct variant, struct variant_part):
8220 New.
8221 (union dynamic_prop_data) <variant_parts, original_type>: New
8222 members.
8223 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8224 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8225 constants.
8226 * value.c (unpack_bits_as_long): Now public.
8227 * value.h (unpack_bits_as_long): Declare.
8228
675127ec
TT
82292020-04-24 Tom Tromey <tromey@adacore.com>
8230
8231 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8232 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8233
9852ceef
HD
82342020-04-24 Hannes Domani <ssbssa@yahoo.de>
8235
8236 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8237
7632c6ce
KR
82382020-04-24 Kamil Rytarowski <n54@gmx.com>
8239
8240 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8241 (remove_fork_catchpoint, post_startup_inferior)
8242 (post_attach): Move...
8243 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8244 (remove_fork_catchpoint, post_startup_inferior)
8245 (post_attach): ...here.
8246 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8247 (remove_fork_catchpoint, post_startup_inferior)
8248 (post_attach): Move...
8249 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8250 (remove_fork_catchpoint, post_startup_inferior)
8251 (post_attach): ...here.
8252
7be2bb4f
TT
82532020-04-24 Tom Tromey <tromey@adacore.com>
8254
8255 * nat/windows-nat.h (struct windows_thread_info)
8256 <pc_adjusted>: New member.
8257 * windows-nat.c (windows_fetch_one_register): Check
8258 pc_adjusted.
8259 (windows_nat_target::get_windows_debug_event)
8260 (windows_nat_target::wait): Set pc_adjusted.
8261
f80cb3b4
TV
82622020-04-24 Tom de Vries <tdevries@suse.de>
8263
8264 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8265 Run gdb-add-index inside temp dir.
8266
29514b87
TT
82672020-04-23 Tom Tromey <tromey@adacore.com>
8268
8269 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8270 in loop.
8271
5939967b
LM
82722020-04-23 Luis Machado <luis.machado@linaro.org>
8273
8274 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8275 get_frame_register instead of gdbarch_unwind_pc.
8276
70bc38f5
TV
82772020-04-23 Tom de Vries <tdevries@suse.de>
8278
8279 * symtab.c (lookup_global_symbol): Prefer def over decl.
8280
de82891c
TV
82812020-04-23 Tom de Vries <tdevries@suse.de>
8282
8283 PR symtab/25807
8284 * block.c (best_symbol, better_symbol): Promote to external.
8285 * block.h (best_symbol, better_symbol): Declare.
8286 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8287 decl.
8288
ecc6c606
TT
82892020-04-23 Tom Tromey <tromey@adacore.com>
8290
8291 PR ada/25837:
8292 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8293 "const char *", not a "const std::string &".
8294 <name_and_matcher::operator==>: Update.
8295 * unittests/lookup_name_info-selftests.c: Change type of
8296 "result".
8297
740480b8
TT
82982020-04-23 Tom Tromey <tom@tromey.com>
8299
8300 * inferior.h (iterate_over_inferiors): Don't declare.
8301 * inferior.c (iterate_over_inferiors): Remove.
8302 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8303 Remove.
8304 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8305 use iterate_over_inferiors.
8306 (darwin_resume_inferior_it)
8307 (struct resume_inferior_threads_param)
8308 (darwin_resume_inferior_threads_it): Remove.
8309 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8310
ae3ab1f0
TV
83112020-04-23 Tom de Vries <tdevries@suse.de>
8312
8313 * blockframe.c (find_pc_partial_function): Use
8314 find_pc_sect_compunit_symtab rather than
8315 objfile->sf->qf->find_pc_sect_compunit_symtab.
8316
317d2668
TV
83172020-04-22 Tom de Vries <tdevries@suse.de>
8318
8319 PR symtab/25764
8320 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8321 in psymtabs.
8322
eea9e357
TV
83232020-04-22 Tom de Vries <tdevries@suse.de>
8324
8325 PR symtab/25801
8326 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8327 symtabs.
8328
3d5afab3
TV
83292020-04-22 Tom de Vries <tdevries@suse.de>
8330
8331 PR symtab/25700
8332 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8333 CU if already created.
8334
d43b7a2d
TBA
83352020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8336
8337 * infrun.c (displaced_step_fixup): Switch to the event_thread
8338 before calling displaced_step_restore, not after.
8339
d89edf9b
MM
83402020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8341
8342 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8343 its inferior is not recorded by us.
8344 (record_btrace_target_open): Replace call to
8345 all_non_exited_threads () with call to current_inferior
8346 ()->non_exited_threads ().
8347 (record_btrace_target::stop_recording): Likewise.
8348 (record_btrace_target::close): Likewise.
8349 (record_btrace_target::wait): Likewise.
8350 (record_btrace_target::record_stop_replaying): Likewise.
8351
5897fd49
MM
83522020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8353
8354 * btrace.c (btrace_enable): Throw an error on double enables and
8355 when enabling recording fails.
8356 (btrace_disable): Throw an error if the thread is not recorded.
8357
1a476b6d
MM
83582020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8359
8360 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8361 request if we do not have a thread_info.
8362
4778a5f8
TV
83632020-04-21 Tom de Vries <tdevries@suse.de>
8364
8365 PR gdb/25471
8366 * thread.c
8367 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8368 exception in get_frame_id.
8369
0fa7617d
TT
83702020-04-20 Tom Tromey <tromey@adacore.com>
8371
8372 * python/python.c (struct gdbpy_event): Mark move constructor as
8373 noexcept.
8374 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8375 constructor as noexcept.
8376 * completer.h (struct completion_result): Mark move constructor as
8377 noexcept.
8378 * completer.c (completion_result::completion_result): Use
8379 initialization style. Don't call reset_match_list.
8380
ad23bda0
MS
83812020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8382
8383 * MAINTAINERS (Write After Approval): Add myself.
8384
45e1f031
TT
83852020-04-18 Tom Tromey <tom@tromey.com>
8386
8387 * windows-tdep.c (init_w32_command_list)
8388 (w32_prefix_command_valid): Restore.
8389 (_initialize_windows_tdep): Call init_w32_command_list.
8390
08feed99
TT
83912020-04-18 Tom Tromey <tom@tromey.com>
8392
8393 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8394 * value.c (value_fn_field): Update.
8395 * valops.c (find_function_in_inferior)
8396 (value_allocate_space_in_inferior): Update.
8397 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8398 Update.
8399 * tui/tui-source.c (tui_source_window::set_contents): Update.
8400 * symtab.c (lookup_global_or_static_symbol)
8401 (find_function_start_sal_1, skip_prologue_sal)
8402 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8403 * symmisc.c (dump_msymbols, dump_symtab_1)
8404 (maintenance_print_one_line_table): Update.
8405 * symfile.c (init_entry_point_info, section_is_mapped)
8406 (list_overlays_command, simple_read_overlay_table)
8407 (simple_overlay_update_1): Update.
8408 * stap-probe.c (handle_stap_probe): Update.
8409 * stabsread.c (dbx_init_float_type, define_symbol)
8410 (read_one_struct_field, read_enum_type, read_range_type): Update.
8411 * source.c (info_line_command): Update.
8412 * python/python.c (gdbpy_source_objfile_script)
8413 (gdbpy_execute_objfile_script): Update.
8414 * python/py-type.c (save_objfile_types): Update.
8415 * python/py-objfile.c (py_free_objfile): Update.
8416 * python/py-inferior.c (python_new_objfile): Update.
8417 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8418 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8419 (maintenance_check_psymtabs): Update.
8420 * printcmd.c (info_address_command): Update.
8421 * objfiles.h (struct objfile) <arch>: New method, from
8422 get_objfile_arch.
8423 (get_objfile_arch): Don't declare.
8424 * objfiles.c (get_objfile_arch): Remove.
8425 (filter_overlapping_sections): Update.
8426 * minsyms.c (msymbol_is_function): Update.
8427 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8428 (output_nondebug_symbol): Update.
8429 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8430 (mdebug_expand_psymtab): Update.
8431 * machoread.c (macho_add_oso_symfile): Update.
8432 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8433 Update.
8434 * linux-fork.c (checkpoint_command): Update.
8435 * linespec.c (convert_linespec_to_sals): Update.
8436 * jit.c (finalize_symtab): Update.
8437 * infrun.c (insert_exception_resume_from_probe): Update.
8438 * ia64-tdep.c (ia64_find_unwind_table): Update.
8439 * hppa-tdep.c (internalize_unwinds): Update.
8440 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8441 Update.
8442 * gcore.c (call_target_sbrk): Update.
8443 * elfread.c (record_minimal_symbol, elf_symtab_read)
8444 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8445 (elf_gnu_ifunc_resolve_by_got): Update.
8446 * dwarf2/read.c (create_addrmap_from_index)
8447 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8448 (read_debug_names_from_section)
8449 (process_psymtab_comp_unit_reader, add_partial_symbol)
8450 (add_partial_subprogram, process_full_comp_unit)
8451 (read_file_scope, read_func_scope, read_lexical_block_scope)
8452 (read_call_site_scope, dwarf2_ranges_read)
8453 (dwarf2_record_block_ranges, dwarf2_add_field)
8454 (mark_common_block_symbol_computed, read_tag_pointer_type)
8455 (read_tag_string_type, dwarf2_init_float_type)
8456 (dwarf2_init_complex_target_type, read_base_type)
8457 (partial_die_info::read, partial_die_info::read)
8458 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8459 (dwarf2_fetch_die_loc_sect_off): Update.
8460 * dwarf2/loc.c (dwarf2_find_location_expression)
8461 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8462 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8463 (dwarf2_loc_desc_get_symbol_read_needs)
8464 (locexpr_describe_location_piece, locexpr_describe_location_1)
8465 (loclist_describe_location): Update.
8466 * dwarf2/index-write.c (write_debug_names): Update.
8467 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8468 * dtrace-probe.c (dtrace_process_dof): Update.
8469 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8470 (process_one_symbol): Update.
8471 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8472 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8473 (coff_read_enum_type): Update.
8474 * cli/cli-cmds.c (edit_command, list_command): Update.
8475 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8476 * breakpoint.c (create_overlay_event_breakpoint)
8477 (create_longjmp_master_breakpoint)
8478 (create_std_terminate_master_breakpoint)
8479 (create_exception_master_breakpoint, get_sal_arch): Update.
8480 * block.c (block_gdbarch): Update.
8481 * annotate.c (annotate_source_line): Update.
8482
0743fc83
TT
84832020-04-17 Tom Tromey <tromey@adacore.com>
8484
8485 * auto-load.c (show_auto_load_cmd): Remove.
8486 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8487 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8488 (maintenance_print_arc_command): Remove.
8489 * tui/tui-win.c (tui_command): Remove.
8490 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8491 * tui/tui-layout.c (tui_layout_command): Remove.
8492 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8493 * python/python.c (user_set_python, user_show_python): Remove.
8494 (_initialize_python): Use add_basic_prefix_cmd,
8495 add_show_prefix_cmd.
8496 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8497 (install_gdb_commands): Use add_basic_prefix_cmd,
8498 add_show_prefix_cmd.
8499 (info_guile_command): Remove.
8500 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8501 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8502 add_show_prefix_cmd.
8503 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8504 Remove do_set and do_show parameters.
8505 * cli/cli-style.c (set_style, show_style): Remove.
8506 (_initialize_cli_style): Use add_basic_prefix_cmd,
8507 add_show_prefix_cmd.
8508 (cli_style_option::add_setshow_commands): Remove do_set and
8509 do_show parameters.
8510 (cli_style_option::add_setshow_commands): Use
8511 add_basic_prefix_cmd, add_show_prefix_cmd.
8512 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8513 (set_style_name): Remove.
8514 * cli/cli-dump.c (dump_command, append_command): Remove.
8515 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8516 (tekhex_dump_command, binary_dump_command)
8517 (binary_append_command): Remove.
8518 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8519 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8520 (init_w32_command_list): Remove; move into ...
8521 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8522 * valprint.c (set_print, show_print, set_print_raw)
8523 (show_print_raw): Remove.
8524 (_initialize_valprint): Use add_basic_prefix_cmd,
8525 add_show_prefix_cmd.
8526 * typeprint.c (set_print_type, show_print_type): Remove.
8527 (_initialize_typeprint): Use add_basic_prefix_cmd,
8528 add_show_prefix_cmd.
8529 * record.c (set_record_command, show_record_command): Remove.
8530 (_initialize_record): Use add_basic_prefix_cmd,
8531 add_show_prefix_cmd.
8532 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8533 add_show_prefix_cmd.
8534 (info_command, show_command, set_debug, show_debug): Remove.
8535 * top.h (set_history, show_history): Don't declare.
8536 * top.c (set_history, show_history): Remove.
8537 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8538 (unset_tdesc_cmd): Remove.
8539 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8540 add_show_prefix_cmd.
8541 * symtab.c (info_module_command): Remove.
8542 (_initialize_symtab): Use add_basic_prefix_cmd.
8543 * symfile.c (overlay_command): Remove.
8544 (_initialize_symfile): Use add_basic_prefix_cmd.
8545 * sparc64-tdep.c (info_adi_command): Remove.
8546 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8547 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8548 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8549 add_show_prefix_cmd.
8550 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8551 (_initialize_serial): Use add_basic_prefix_cmd,
8552 add_show_prefix_cmd.
8553 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8554 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8555 add_show_prefix_cmd.
8556 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8557 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8558 add_show_prefix_cmd.
8559 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8560 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8561 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8562 add_show_prefix_cmd.
8563 * remote.c (remote_command, set_remote_cmd): Remove.
8564 (_initialize_remote): Use add_basic_prefix_cmd.
8565 * record-full.c (set_record_full_command)
8566 (show_record_full_command): Remove.
8567 (_initialize_record_full): Use add_basic_prefix_cmd,
8568 add_show_prefix_cmd.
8569 * record-btrace.c (cmd_set_record_btrace)
8570 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8571 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8572 (cmd_show_record_btrace_pt): Remove.
8573 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8574 add_show_prefix_cmd.
8575 * ravenscar-thread.c (set_ravenscar_command)
8576 (show_ravenscar_command): Remove.
8577 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8578 add_show_prefix_cmd.
8579 * mips-tdep.c (show_mips_command, set_mips_command)
8580 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8581 add_show_prefix_cmd.
8582 * maint.c (maintenance_command, maintenance_info_command)
8583 (maintenance_check_command, maintenance_print_command)
8584 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8585 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8586 add_show_prefix_cmd.
8587 (show_per_command_cmd): Remove.
8588 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8589 Remove.
8590 (maintenance_show_test_settings_cmd): Remove.
8591 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8592 add_show_prefix_cmd.
8593 * maint-test-options.c (maintenance_test_options_command):
8594 Remove.
8595 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8596 * macrocmd.c (macro_command): Remove
8597 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8598 * language.c (set_check, show_check): Remove.
8599 (_initialize_language): Use add_basic_prefix_cmd,
8600 add_show_prefix_cmd.
8601 * infcmd.c (unset_command): Remove.
8602 (_initialize_infcmd): Use add_basic_prefix_cmd.
8603 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8604 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8605 add_show_prefix_cmd.
8606 * go32-nat.c (go32_info_dos_command): Remove.
8607 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8608 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8609 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8610 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8611 (_initialize_frame): Use add_basic_prefix_cmd,
8612 add_show_prefix_cmd.
8613 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8614 (_initialize_dcache): Use add_basic_prefix_cmd,
8615 add_show_prefix_cmd.
8616 * cp-support.c (maint_cplus_command): Remove.
8617 (_initialize_cp_support): Use add_basic_prefix_cmd.
8618 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8619 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8620 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8621 add_basic_prefix_cmd, add_show_prefix_cmd.
8622 * breakpoint.c (save_command): Remove.
8623 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8624 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8625 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8626 add_show_prefix_cmd.
8627 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8628 (set_ada_command, show_ada_command): Remove.
8629 (_initialize_ada_language): Use add_basic_prefix_cmd,
8630 add_show_prefix_cmd.
8631 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8632
3557f442
KR
86332020-04-16 Kamil Rytarowski <n54@gmx.com>
8634
8635 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8636 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8637
16197208
SM
86382020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8639
8640 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8641 warning messages.
8642
00ac85d3
SM
86432020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8644
8645 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8646 import table is not at beginning of .idata section.
8647
381ce63f
PA
86482020-04-16 Pedro Alves <palves@redhat.com>
8649
8650 * inferior.c (delete_inferior): Use delete operator directly
8651 instead of delete_program_space.
8652 * progspace.c (add_program_space): New, factored out from
8653 program_space::program_space.
8654 (remove_program_space): New, factored out from
8655 delete_program_space.
8656 (program_space::program_space): Remove intro comment. Rewrite.
8657 (program_space::~program_space): Remove intro comment. Call
8658 remove_program_space.
8659 (delete_program_space): Delete.
8660 * progspace.h (program_space::program_space): Make explicit. Move
8661 intro comment here, adjusted.
8662 (program_space::~program_space): Move intro comment here,
8663 adjusted.
8664 (delete_program_space): Remove.
8665
a010605f
TT
86662020-04-16 Tom Tromey <tromey@adacore.com>
8667
8668 * windows-nat.c (windows_nat::handle_access_violation): New
8669 function.
8670 * nat/windows-nat.h (handle_access_violation): Declare.
8671 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8672 windows-nat.c. Call handle_access_violation.
8673
efba5c23
TV
86742020-04-16 Tom de Vries <tdevries@suse.de>
8675
8676 PR symtab/25791
8677 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8678 CUs without psymtab.
8679
97ed802d
KB
86802020-04-16 Kevin Buettner <kevinb@redhat.com>
8681
8682 * python/python.c (do_start_initialization): Don't call
8683 PyEval_InitThreads for Python 3.9 and beyond.
8684
c7d64809
KR
86852020-04-15 Kamil Rytarowski <n54@gmx.com>
8686
8687 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8688 thread functions.
8689 (obsd_nat_target::wait): Likewise.
8690
ce127a96
TT
86912020-04-15 Tom Tromey <tromey@adacore.com>
8692
8693 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8694 (DEBUG_EXCEPT): Use debug_printf.
8695
99f1bc6a
AB
86962020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8697
8698 * completer.c (class completion_tracker::completion_hash_entry)
8699 <hash_name>: New member function.
8700 (completion_tracker::discard_completions): New callback to hash a
8701 completion_hash_entry, pass this to htab_create_alloc.
8702
a0e9b532
JT
87032016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8704
8705 * windows-nat.c (windows_make_so): Warn rather than stopping with
8706 an error if realpath() fails.
8707
06ca5dd4
KR
87082020-04-14 Kamil Rytarowski <n54@gmx.com>
8709
8710 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8711 (nbsd_nat_target::info_proc): Add do_status.
8712
194d088f
TV
87132020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8714 Tom de Vries <tdevries@suse.de>
8715
8716 PR symtab/25718
8717 * psympriv.h (struct partial_symtab::read_symtab)
8718 (struct partial_symtab::expand_psymtab)
8719 (struct partial_symtab::read_dependencies): Update comments.
8720 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8721 read_symtab for includer.
8722 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8723 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8724 (struct dwarf2_include_psymtab::m_readin): Remove.
8725 (struct dwarf2_include_psymtab::includer): New member function.
8726 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8727
c1a66c06
TV
87282020-04-14 Tom de Vries <tdevries@suse.de>
8729
8730 PR symtab/25720
8731 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8732 with NULL symbol_matcher and lookup_name.
8733 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8734 and lookup_name.
8735 * dwarf2/read.c (dw2_expand_symtabs_matching)
8736 (dw2_debug_names_expand_symtabs_matching): Same.
8737 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8738 Make lookup_name a pointer. Update comment.
8739 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8740 lookup_name being a pointer.
8741 * symfile.c (expand_symtabs_matching): Same.
8742 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8743 * linespec.c (iterate_over_all_matching_symtabs): Same.
8744
400b5eca
TT
87452020-04-13 Tom Tromey <tom@tromey.com>
8746
8747 * run-on-main-thread.c: Update include.
8748 * unittests/main-thread-selftests.c: Update include.
8749 * tui/tui-win.c: Update include.
8750 * tui/tui-io.c: Update include.
8751 * tui/tui-interp.c: Update include.
8752 * tui/tui-hooks.c: Update include.
8753 * top.h: Update include.
8754 * top.c: Update include.
8755 * ser-base.c: Update include.
8756 * remote.c: Update include.
8757 * remote-notif.c: Update include.
8758 * remote-fileio.c: Update include.
8759 * record-full.c: Update include.
8760 * record-btrace.c: Update include.
8761 * python/python.c: Update include.
8762 * posix-hdep.c: Update include.
8763 * mingw-hdep.c: Update include.
8764 * mi/mi-main.c: Update include.
8765 * mi/mi-interp.c: Update include.
8766 * main.c: Update include.
8767 * linux-nat.c: Update include.
8768 * interps.c: Update include.
8769 * infrun.c: Update include.
8770 * inf-loop.c: Update include.
8771 * event-top.c: Update include.
8772 * event-loop.c: Move to ../gdbsupport/.
8773 * event-loop.h: Move to ../gdbsupport/.
8774 * async-event.h: Update include.
8775 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8776
93b54c8e
TT
87772020-04-13 Tom Tromey <tom@tromey.com>
8778
8779 * tui/tui-win.c: Include async-event.h.
8780 * remote.c: Include async-event.h.
8781 * remote-notif.c: Include async-event.h.
8782 * record-full.c: Include async-event.h.
8783 * record-btrace.c: Include async-event.h.
8784 * infrun.c: Include async-event.h.
8785 * event-top.c: Include async-event.h.
8786 * event-loop.h: Move some declarations to async-event.h.
8787 * event-loop.c: Don't include ser-event.h or top.h. Move some
8788 code to async-event.c.
8789 * async-event.h: New file.
8790 * async-event.c: New file.
8791 * Makefile.in (COMMON_SFILES): Add async-event.c.
8792 (HFILES_NO_SRCDIR): Add async-event.h.
8793
c1cd3163
TT
87942020-04-13 Tom Tromey <tom@tromey.com>
8795
8796 * utils.c (flush_streams): New function.
8797 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8798
29f2bf4f
TT
87992020-04-13 Tom Tromey <tom@tromey.com>
8800
8801 * event-loop.c (handle_file_event): Use warning, not
8802 printf_unfiltered.
8803
98029d02
TT
88042020-04-13 Tom Tromey <tom@tromey.com>
8805
8806 * event-loop.c: Include <chrono>.
8807
06cc9596
TT
88082020-04-13 Tom Tromey <tom@tromey.com>
8809
8810 * gdb_select.h: Move to ../gdbsupport/.
8811 * event-loop.c: Update include path.
8812 * top.c: Update include path.
8813 * ser-base.c: Update include path.
8814 * ui-file.c: Update include path.
8815 * ser-tcp.c: Update include path.
8816 * guile/scm-ports.c: Update include path.
8817 * posix-hdep.c: Update include path.
8818 * ser-unix.c: Update include path.
8819 * gdb_usleep.c: Update include path.
8820 * mingw-hdep.c: Update include path.
8821 * inflow.c: Update include path.
8822 * infrun.c: Update include path.
8823 * event-top.c: Update include path.
8824
8ae8e197
TT
88252020-04-13 Tom Tromey <tom@tromey.com>
8826
8827 * configure: Rebuild.
8828 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8829
58cf28e8
TT
88302020-04-13 Tom Tromey <tom@tromey.com>
8831
8832 * event-loop.h (start_event_loop): Don't declare.
8833 * event-loop.c (start_event_loop): Move...
8834 * main.c (start_event_loop): ...here. Now static.
8835
b7f999ae
SDJ
88362020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8837
8838 * MAINTAINERS: Update my email address.
8839
1085dfd4
KR
88402020-04-12 Kamil Rytarowski <n54@gmx.com>
8841
8842 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8843 IP_ALL.
8844
49d1d1f5
KR
88452020-04-12 Kamil Rytarowski <n54@gmx.com>
8846
8847 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8848 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8849
b4848d2a
KR
88502020-04-12 Kamil Rytarowski <n54@gmx.com>
8851
8852 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8853 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8854
51c133d5
KR
88552020-04-12 Kamil Rytarowski <n54@gmx.com>
8856
8857 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8858
54b8cbd0
KR
88592020-04-11 Kamil Rytarowski <n54@gmx.com>
8860
8861 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8862 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8863 (nbsd_nat_target::info_proc): New functions.
8864 * nbsd-nat.c (kinfo_get_vmmap): New function.
8865 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8866 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8867 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8868 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8869 functions.
8870 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8871 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8872 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8873 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8874 (KINFO_VME_FLAG_GROWS_DOWN): New.
8875
cf83625d
AS
88762020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8877
8878 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8879 bit shift.
8880
0c4311ab
TT
88812020-04-10 Tom Tromey <tromey@adacore.com>
8882
8883 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8884
3e65b3e9
TT
88852020-04-10 Tom Tromey <tromey@adacore.com>
8886
8887 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8888 separate debug files.
8889
13302e95
HD
88902020-04-10 Hannes Domani <ssbssa@yahoo.de>
8891
8892 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8893 Move to...
8894 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8895 ... here.
8896 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8897 Check for STATUS_WX86_BREAKPOINT.
8898 (windows_nat_target::wait): Same.
8899
bdfc1e8a
TV
89002020-04-10 Tom de Vries <tdevries@suse.de>
8901
8902 PR cli/25808
8903 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8904
f4460aec
SM
89052020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8906
8907 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8908 (Write After Approval): Remove Tom de Vries.
8909
a25198bb
BE
89102020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8911
8912 revert partially:
8913 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8914
aac66a4c
SM
8915 * buildsym.c (record_line): Fix undefined behavior and preserve
8916 lines at eof.
a25198bb 8917
206c98a6
KR
89182020-04-09 Kamil Rytarowski <n54@gmx.com>
8919
8920 * auxv.h (svr4_auxv_parse): New.
8921 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8922 and generic_auxv_parse.
8923 (svr4_auxv_parse): Add.
8924 * obsd-tdep.c: Include "auxv.h".
8925 (obsd_auxv_parse): Remove.
8926 (obsd_init_abi): Remove comment.
8927 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8928 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8929 * nbsd-tdep.c: Include "auxv.h".
8930 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8931
71fbdbaf
TT
89322020-04-08 Tom Tromey <tromey@adacore.com>
8933
8934 * nat/windows-nat.h (last_wait_event): Don't declare.
8935 (wait_for_debug_event): Update comment.
8936 * nat/windows-nat.c (last_wait_event): Now static.
8937
2c1d95e8
TT
89382020-04-08 Tom Tromey <tromey@adacore.com>
8939
8940 * windows-nat.c (wait_for_debug_event): Move to
8941 nat/windows-nat.c.
8942 * nat/windows-nat.h (wait_for_debug_event): Declare.
8943 * nat/windows-nat.c (wait_for_debug_event): Move from
8944 windows-nat.c. No longer static.
8945
d2977bc4
TT
89462020-04-08 Tom Tromey <tromey@adacore.com>
8947
8948 * windows-nat.c (get_windows_debug_event): Use
8949 fetch_pending_stop.
8950 * nat/windows-nat.h (fetch_pending_stop): Declare.
8951 * nat/windows-nat.c (fetch_pending_stop): New function.
8952
e758e19c
TT
89532020-04-08 Tom Tromey <tromey@adacore.com>
8954
8955 * windows-nat.c (windows_continue): Use matching_pending_stop and
8956 continue_last_debug_event.
8957 * nat/windows-nat.h (matching_pending_stop)
8958 (continue_last_debug_event): Declare.
8959 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8960 (matching_pending_stop, continue_last_debug_event): New
8961 functions.
8962
8d30e395
TT
89632020-04-08 Tom Tromey <tromey@adacore.com>
8964
8965 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8966 (handle_exception_result): Move to nat/windows-nat.h.
8967 (DEBUG_EXCEPTION_SIMPLE): Remove.
8968 (windows_nat::handle_ms_vc_exception): New function.
8969 (handle_exception): Move to nat/windows-nat.c.
8970 (get_windows_debug_event): Update.
8971 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8972 nat/windows-nat.c.
8973 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8974 (handle_exception_result): Move from windows-nat.c.
8975 (handle_exception): Declare.
8976 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8977 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8978 windows-nat.c.
8979
29de418d
TT
89802020-04-08 Tom Tromey <tromey@adacore.com>
8981
8982 * windows-nat.c (exception_count, event_count): Remove.
8983 (handle_exception, get_windows_debug_event)
8984 (do_initial_windows_stuff): Update.
8985
a816ba18
TT
89862020-04-08 Tom Tromey <tromey@adacore.com>
8987
8988 * windows-nat.c (windows_nat::handle_load_dll)
8989 (windows_nat::handle_unload_dll): Rename. No longer static.
8990 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8991 Declare.
8992
a00caa12
TT
89932020-04-08 Tom Tromey <tromey@adacore.com>
8994
8995 * complaints.h (stop_whining): Declare at top-level.
8996 (complaint): Don't declare stop_whining.
8997
d41b524f
TT
89982020-04-08 Tom Tromey <tromey@adacore.com>
8999
9000 * windows-nat.c (windows_nat::handle_output_debug_string):
9001 Rename. No longer static.
9002 * nat/windows-nat.h (handle_output_debug_string): Declare.
9003
3c76026d
TT
90042020-04-08 Tom Tromey <tromey@adacore.com>
9005
9006 * windows-nat.c (current_process_handle, current_process_id)
9007 (main_thread_id, last_sig, current_event, last_wait_event)
9008 (current_windows_thread, desired_stop_thread_id, pending_stops)
9009 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9010 (display_selectors, fake_create_process)
9011 (get_windows_debug_event): Update.
9012 * nat/windows-nat.h (current_process_handle, current_process_id)
9013 (main_thread_id, last_sig, current_event, last_wait_event)
9014 (current_windows_thread, desired_stop_thread_id, pending_stops)
9015 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9016 * nat/windows-nat.c (current_process_handle, current_process_id)
9017 (main_thread_id, last_sig, current_event, last_wait_event)
9018 (current_windows_thread, desired_stop_thread_id, pending_stops)
9019 (siginfo_er): New globals. Move from windows-nat.c.
9020
9d8679cc
TT
90212020-04-08 Tom Tromey <tromey@adacore.com>
9022
9023 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9024 (handle_load_dll): Update.
9025 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9026
28688adf
TT
90272020-04-08 Tom Tromey <tromey@adacore.com>
9028
9029 * windows-nat.c (enum thread_disposition_type): Move to
9030 nat/windows-nat.h.
9031 (windows_nat::thread_rec): Rename from thread_rec. No longer
9032 static.
9033 (windows_add_thread, windows_nat_target::fetch_registers)
9034 (windows_nat_target::store_registers, handle_exception)
9035 (windows_nat_target::resume, get_windows_debug_event)
9036 (windows_nat_target::get_tib_address)
9037 (windows_nat_target::thread_name)
9038 (windows_nat_target::thread_alive): Update.
9039 * nat/windows-nat.h (enum thread_disposition_type): Move from
9040 windows-nat.c.
9041 (thread_rec): Declare.
9042
4834dad0
TT
90432020-04-08 Tom Tromey <tromey@adacore.com>
9044
9045 * windows-nat.c: Add "using namespace".
9046 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9047 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9048
65bafd5b
TT
90492020-04-08 Tom Tromey <tromey@adacore.com>
9050
9051 * nat/windows-nat.h (struct windows_thread_info): Declare
9052 destructor.
9053 * nat/windows-nat.c (~windows_thread_info): New.
9054
0a4afda3
TT
90552020-04-08 Tom Tromey <tromey@adacore.com>
9056
9057 PR gdb/22992
9058 * windows-nat.c (current_event): Update comment.
9059 (last_wait_event, desired_stop_thread_id): New globals.
9060 (struct pending_stop): New.
9061 (pending_stops): New global.
9062 (windows_nat_target) <stopped_by_sw_breakpoint>
9063 <supports_stopped_by_sw_breakpoint>: New methods.
9064 (windows_fetch_one_register): Add assertions. Adjust PC.
9065 (windows_continue): Handle pending stops. Suspend other threads
9066 when stepping. Use last_wait_event
9067 (wait_for_debug_event): New function.
9068 (get_windows_debug_event): Use wait_for_debug_event. Handle
9069 pending stops. Queue spurious stops.
9070 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9071 (windows_nat_target::kill): Use wait_for_debug_event.
9072 * nat/windows-nat.h (struct windows_thread_info)
9073 <stopped_at_software_breakpoint>: New field.
9074 * nat/windows-nat.c (windows_thread_info::resume): Clear
9075 stopped_at_software_breakpoint.
9076
8e61ebec
TT
90772020-04-08 Tom Tromey <tromey@adacore.com>
9078
9079 * windows-nat.c (enum thread_disposition_type): New.
9080 (thread_rec): Replace "get_context" parameter with "disposition";
9081 change type.
9082 (windows_add_thread, windows_nat_target::fetch_registers)
9083 (windows_nat_target::store_registers, handle_exception)
9084 (windows_nat_target::resume, get_windows_debug_event)
9085 (windows_nat_target::get_tib_address)
9086 (windows_nat_target::thread_name)
9087 (windows_nat_target::thread_alive): Update.
9088
98a03287
TT
90892020-04-08 Tom Tromey <tromey@adacore.com>
9090
9091 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9092 (windows_continue): Use windows_continue::resume.
9093 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9094 resume>: Declare new methods.
9095 * nat/windows-nat.c: New file.
9096 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9097
7c7411bc
TT
90982020-04-08 Tom Tromey <tromey@adacore.com>
9099
9100 * windows-nat.c (windows_add_thread, windows_delete_thread)
9101 (windows_nat_target::fetch_registers)
9102 (windows_nat_target::store_registers, fake_create_process)
9103 (windows_nat_target::resume, windows_nat_target::resume)
9104 (get_windows_debug_event, windows_nat_target::wait)
9105 (windows_nat_target::pid_to_str)
9106 (windows_nat_target::get_tib_address)
9107 (windows_nat_target::get_ada_task_ptid)
9108 (windows_nat_target::thread_name)
9109 (windows_nat_target::thread_alive): Use lwp, not tid.
9110
2950fdf7
TT
91112020-04-08 Tom Tromey <tromey@adacore.com>
9112
9113 * windows-nat.c (handle_exception)
9114 (windows_nat_target::thread_name): Update.
9115 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9116 <name>: Now unique_xmalloc_ptr.
9117
62fe396b
TT
91182020-04-08 Tom Tromey <tromey@adacore.com>
9119
9120 * windows-nat.c (thread_rec)
9121 (windows_nat_target::fetch_registers): Update.
9122 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9123 Update comment.
9124 <debug_registers_changed, reload_context>: Now bool.
9125
e9534bd2
TT
91262020-04-08 Tom Tromey <tromey@adacore.com>
9127
9128 * windows-nat.c (windows_add_thread): Use new.
9129 (windows_init_thread_list, windows_delete_thread): Use delete.
9130 (get_windows_debug_event): Update.
9131 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9132 destructor, and initializers.
9133
ae1f8880
TT
91342020-04-08 Tom Tromey <tromey@adacore.com>
9135
9136 * windows-nat.c (struct windows_thread_info): Remove.
9137 * nat/windows-nat.h: New file.
9138
55a1e039
TT
91392020-04-08 Tom Tromey <tromey@adacore.com>
9140
9141 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9142 (thread_rec, windows_add_thread, windows_delete_thread)
9143 (windows_continue): Update.
9144
93366324
TT
91452020-04-08 Tom Tromey <tromey@adacore.com>
9146
9147 * windows-nat.c (struct windows_thread_info): Remove typedef.
9148 (thread_head): Remove.
9149 (thread_list): New global.
9150 (thread_rec, windows_add_thread, windows_init_thread_list)
9151 (windows_delete_thread, windows_continue): Update.
9152
0f2265e2
SM
91532020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9154
9155 * windows-tdep.h (windows_init_abi): Add comment.
9156 (cygwin_init_abi): New declaration.
9157 * windows-tdep.c: Split signal enumeration in two, one for
9158 Windows and one for Cygwin.
9159 (windows_gdb_signal_to_target): Only deal with signal of the
9160 Windows OS ABI.
9161 (cygwin_gdb_signal_to_target): New function.
9162 (windows_init_abi): Rename to windows_init_abi_common, don't set
9163 gdb_signal_to_target gdbarch method. Add new new function with
9164 this name.
9165 (cygwin_init_abi): New function.
9166 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9167 comment. Don't call windows_init_abi.
9168 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9169 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9170 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9171 i386_windows_init_abi_common, don't call windows_init_abi. Add
9172 a new function of this name.
9173 (i386_cygwin_init_abi): New function.
9174 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9175 OS ABI Cygwin.
9176
3810f182
SM
91772020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9178
9179 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9180 parameter.c.
9181 (dwarf2_read_gdb_index): Update.
9182
063f8e80
KR
91832020-04-07 Kamil Rytarowski <n54@gmx.com>
9184
9185 * nbsd-tdep.c: Include "objfiles.h".
9186 (nbsd_skip_solib_resolver): New.
9187 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9188
85a9510c 91892020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9190
9191 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9192 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9193 with DW_LLE_base_addressx are being emitted in DWARFv5.
9194 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9195 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9196 unsigned integer.
9197
9fc3eaae 91982020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9199
9200 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9201 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9202 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9203 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9204 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9205 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9206 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9207
9208
41144253 92092020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9210
9211 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9212 (read_loclist_index): New function definition.
9213 (lookup_loclist_base): New function definition.
9214 (read_loclist_header): New function definition.
9215 (dwarf2_cu): Add loclist_base and loclist_header field.
9216 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9217 (read_full_die_1): Read the value of DW_AT_loclists_base.
9218 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9219 (read_attribute_value): Handle DW_FORM_loclistx.
9220 (skip_one_die): Handle DW_FORM_loclistx.
9221 (loclist_header): New structure declaration.
9222 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9223
9f4e76a4
SM
92242020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9225
9226 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9227 constructor. Remove `addr` parameter from other constructor and
9228 add `per_cu` parameter.
9229 * dwarf2/read.c (create_partial_symtab): Update.
9230
25c11aca
TV
92312020-04-07 Tom de Vries <tdevries@suse.de>
9232
9233 PR symtab/25796
9234 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9235 (partial_die_info::fixup): Inherit has_const_value.
9236
5707e24b
TV
92372020-04-07 Tom de Vries <tdevries@suse.de>
9238
9239 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9240 symbols without address.
9241
05f00e22
KR
92422020-04-06 Kamil Rytarowski <n54@gmx.com>
9243
9244 * nbsd-nat.h (struct thread_info): Add forward declaration.
9245 (nbsd_nat_target::thread_alive): Add.
9246 (nbsd_nat_target::thread_name): Likewise.
9247 (nbsd_nat_target::update_thread_list): Likewise.
9248 (update_thread_list::post_attach): Likewise.
9249 (post_attach::pid_to_str): Likewise.
9250 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9251 (nbsd_thread_lister): Add.
9252 (nbsd_nat_target::thread_alive): Likewise.
9253 (nbsd_nat_target::thread_name): Likewise.
9254 (nbsd_add_threads): Likewise.
9255 (update_thread_list::post_attach): Likewise.
9256 (nbsd_nat_target::update_thread_list): Likewise.
9257 (post_attach::pid_to_str): Likewise.
9258
6ee448cc
TT
92592020-04-06 Tom Tromey <tromey@adacore.com>
9260
9261 * ada-valprint.c (print_variant_part): Extract the variant field.
9262 (print_field_values): Use the field as the outer value when
9263 recursing.
9264
dea34e8c
TT
92652020-04-06 Tom Tromey <tromey@adacore.com>
9266
9267 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9268 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9269 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9270 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9271 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9272
93689ce9
TT
92732020-04-06 Tom Tromey <tromey@adacore.com>
9274
9275 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9276 TYPE_CODE_ERROR.
9277
79743962
KR
92782020-04-06 Kamil Rytarowski <n54@gmx.com>
9279
9280 * nbsd-tdep.c: Include "gdbarch.h".
9281 Define enum with NetBSD signal numbers.
9282 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9283 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9284 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9285 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9286 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9287 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9288 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9289 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9290 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9291 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9292 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9293 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9294
9e7c9a03
HD
92952020-04-03 Hannes Domani <ssbssa@yahoo.de>
9296
9297 PR gdb/25325
9298 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9299
d9e49b61
TT
93002020-04-03 Tom Tromey <tromey@adacore.com>
9301
9302 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9303 Read constant block.
9304
e0fc5c3f
SM
93052020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9306
9307 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9308 (gdb_bfd_get_full_section_contents): New declaration.
9309 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9310 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9311 gdb_bfd_get_full_section_contents.
9312
e2ff18a0
SM
93132020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9314
9315 * exec.c (build_section_table): Replace internal_error with
9316 gdb_assert.
9317 (section_table_xfer_memory_partial): Likewise.
9318 * mdebugread.c (parse_partial_symbols): Likewise.
9319 * psymtab.c (lookup_partial_symbol): Likewise.
9320 * utils.c (wrap_here): Likewise.
9321
0830d301
TT
93222020-04-02 Tom Tromey <tromey@adacore.com>
9323
9324 * f-lang.c (build_fortran_types): Use arch_type to initialize
9325 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9326
e7da7f8f
TT
93272020-04-02 Tom Tromey <tromey@adacore.com>
9328
9329 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9330 of attributes.
9331
c90d28ac
AB
93322020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9333 Bernd Edlinger <bernd.edlinger@hotmail.de>
9334 Tom Tromey <tromey@adacore.com>
9335
9336 * buildsym.c (buildsym_compunit::record_line): Remove
9337 deduplication code.
9338
1aa98955
TV
93392020-04-02 Tom de Vries <tdevries@suse.de>
9340
9341 PR ada/24671
9342 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9343
d3214198
TV
93442020-04-02 Tom de Vries <tdevries@suse.de>
9345
9346 * dwarf2/read.c (dwarf2_gdb_index_functions,
9347 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9348 NULL.
9349 * psymtab.c (psym_lookup_global_symbol_language): New function.
9350 (psym_functions): Init psym_lookup_global_symbol_language with
9351 psym_lookup_global_symbol_language.
9352 * symfile-debug.c (debug_sym_quick_functions): Init
9353 lookup_global_symbol_language with NULL.
9354 * symfile.c (set_initial_language): Remove fixme comment.
9355 * symfile.h (struct quick_symbol_functions): Add
9356 lookup_global_symbol_language.
9357 * symtab.c (find_quick_global_symbol_language): New function.
9358 (find_main_name): Use find_quick_global_symbol_language.
9359
2836752f
SM
93602020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9361
9362 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9363
64dc2d4b
BE
93642020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9365
9366 * buildsym.c (record_line): Fix undefined behavior and preserve
9367 lines at eof.
9368
bbe3dc41
BE
93692020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9370
9371 * buildsym.c (record_line): Fix the resizing condition.
9372
6b4a335b
TT
93732020-04-01 Tom Tromey <tom@tromey.com>
9374
9375 * value.h (value_literal_complex): Add comment.
9376 * valops.c (value_literal_complex): Refer to value.h.
9377
3638a098
TT
93782020-04-01 Tom Tromey <tom@tromey.com>
9379
9380 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9381 (scalar_type): New rule, from typebase.
9382 (typebase): Use scalar_type. Recognize complex types.
9383 (field_name): Handle FLOAT_KEYWORD.
9384 (ident_tokens): Add _Complex and __complex__.
9385
c34e8714
TT
93862020-04-01 Tom Tromey <tom@tromey.com>
9387
9388 PR exp/25299:
9389 * valarith.c (promotion_type, complex_binop): New functions.
9390 (scalar_binop): Handle complex numbers. Use promotion_type.
9391 (value_pos, value_neg, value_complement): Handle complex numbers.
9392
fa649bb7
TT
93932020-04-01 Tom Tromey <tom@tromey.com>
9394
9395 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9396 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9397 (parse_number): Handle complex numbers.
9398
981c08ce
TT
93992020-04-01 Tom Tromey <tom@tromey.com>
9400
9401 * c-valprint.c (c_decorations): Change complex suffix to "i".
9402
4c99290d
TT
94032020-04-01 Tom Tromey <tom@tromey.com>
9404
9405 * valprint.c (generic_value_print_complex): Use accessors.
9406 * value.h (value_real_part, value_imaginary_part): Declare.
9407 * valops.c (value_real_part, value_imaginary_part): New
9408 functions.
9409 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9410
5b930b45
TT
94112020-04-01 Tom Tromey <tom@tromey.com>
9412
9413 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9414 (read_range_type): Update.
9415 * mdebugread.c (basic_type): Update.
9416 * go-lang.c (build_go_types): Use init_complex_type.
9417 * gdbtypes.h (struct main_type) <complex_type>: New member.
9418 (init_complex_type): Update.
9419 (arch_complex_type): Don't declare.
9420 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9421 Make name if none given. Use alloc_type_copy. Look for cached
9422 complex type.
9423 (arch_complex_type): Remove.
9424 (gdbtypes_post_init): Use init_complex_type.
9425 * f-lang.c (build_fortran_types): Use init_complex_type.
9426 * dwarf2/read.c (read_base_type): Update.
9427 * d-lang.c (build_d_types): Use init_complex_type.
9428 * ctfread.c (read_base_type): Update.
9429
53cccef1
TBA
94302020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9431
9432 * infrun.c (stop_all_threads): Update assertion, plus when
9433 stopping threads, take into account that we might be trying
9434 to stop an all-stop target.
9435 (stop_waiting): Call 'stop_all_threads' if there exists a
9436 non-stop target.
9437
a0714d30
TBA
94382020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9439
9440 * target.h (exists_non_stop_target): New function declaration.
9441 * target.c (exists_non_stop_target): New function.
9442
60e22c1e
HD
94432020-04-01 Hannes Domani <ssbssa@yahoo.de>
9444
9445 PR gdb/24789
9446 * eval.c (is_integral_or_integral_reference): New function.
9447 (evaluate_subexp_standard): Allow integer references in
9448 pointer arithmetic.
9449
e139a727
TBA
94502020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9451
9452 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9453 check for no ptid in the stop reply when the target is non-stop.
9454
e0802d59
TT
94552020-04-01 Tom Tromey <tromey@adacore.com>
9456
9457 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9458 "name" parameter to rvalue reference. Initialize m_name_holder.
9459 <lookup_name_info>: New overloads.
9460 <name>: Return gdb::string_view.
9461 <c_str>: New method.
9462 <make_ignore_params>: Update.
9463 <search_name_hash>: Update.
9464 <language_lookup_name>: Return const char *.
9465 <m_name>: Change type.
9466 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9467 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9468 (lookup_name_info::match_any): Update.
9469 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9470 Update.
9471 * minsyms.c (linkage_name_str): Update.
9472 * language.c (default_symbol_name_matcher): Update.
9473 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9474 Update.
9475 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9476 (ada_lookup_name_info::ada_lookup_name_info): Update.
9477 (literal_symbol_name_matcher): Update.
9478
8c072cb6
TT
94792020-04-01 Tom Tromey <tromey@adacore.com>
9480
9481 * psymtab.c (psymtab_search_name): Remove function.
9482 (psym_lookup_symbol): Create search name and lookup name here.
9483 (lookup_partial_symbol): Remove "name" parameter; add
9484 lookup_name.
9485 (psym_expand_symtabs_for_function): Update.
9486
6f29a534
TT
94872020-03-31 Joel Jones <joelkevinjones@gmail.com>
9488
9489 PR tui/25597:
9490 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9491
af62665e
TT
94922020-03-31 Tom Tromey <tromey@adacore.com>
9493
9494 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9495 memcpy.
9496
d1a89da5
NC
94972020-03-30 Nelson Chu <nelson.chu@sifive.com>
9498
9499 * features/riscv/32bit-csr.xml: Regenerated.
9500 * features/riscv/64bit-csr.xml: Regenerated.
9501
d8af9068
TT
95022020-03-30 Tom Tromey <tromey@adacore.com>
9503
9504 * ada-valprint.c (print_variant_part): Update.
9505 * ada-lang.h (ada_which_variant_applies): Update.
9506 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9507 outer_valaddr parameters; replace with "outer" value parameter.
9508 (to_fixed_variant_branch_type): Update.
9509
227c0bf4
PFC
95102020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9511
9512 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9513 <list>. Remove inclusion of observable.h.
9514 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9515 (struct arch_lwp_info): New struct.
9516 (class ppc_linux_dreg_interface): New class.
9517 (struct ppc_linux_process_info): New struct.
9518 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9519 <low_new_clone, low_forget_process, low_prepare_to_resume>
9520 <copy_thread_dreg_state, mark_thread_stale>
9521 <mark_debug_registers_changed, register_hw_breakpoint>
9522 <clear_hw_breakpoint, register_wp, clear_wp>
9523 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9524 <num_memory_accesses, get_trigger_type>
9525 <create_watchpoint_request, hwdebug_point_cmp>
9526 <init_arch_lwp_info, get_arch_lwp_info>
9527 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9528 methods.
9529 <struct ptid_hash>: New inner struct.
9530 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9531 members.
9532 (saved_dabr_value, hwdebug_info, max_slots_number)
9533 (struct hw_break_tuple, struct thread_points, ppc_threads)
9534 (have_ptrace_hwdebug_interface)
9535 (hwdebug_find_thread_points_by_tid)
9536 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9537 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9538 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9539 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9540 use m_dreg_interface.
9541 (hwdebug_point_cmp): Change to...
9542 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9543 reference arguments instead of pointers.
9544 (ppc_linux_nat_target::ranged_break_num_registers): Use
9545 m_dreg_interface.
9546 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9547 m_dreg_interface. Call register_hw_breakpoint.
9548 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9549 m_dreg_interface. Call clear_hw_breakpoint.
9550 (get_trigger_type): Change to...
9551 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9552 comment.
9553 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9554 use m_dreg_interface. Call register_hw_breakpoint.
9555 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9556 use m_dreg_interface. Call clear_hw_breakpoint.
9557 (can_use_watchpoint_cond_accel): Change to...
9558 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9559 method. Update comment, use m_dreg_interface and
9560 m_process_info.
9561 (calculate_dvc): Change to...
9562 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9563 m_dreg_interface.
9564 (num_memory_accesses): Change to...
9565 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9566 (check_condition): Change to...
9567 (ppc_linux_nat_target::check_condition): ...this method.
9568 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9569 comment, use m_dreg_interface.
9570 (create_watchpoint_request): Change to...
9571 (ppc_linux_nat_target::create_watchpoint_request): ...this
9572 method. Use m_dreg_interface.
9573 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9574 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9575 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9576 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9577 (ppc_linux_nat_target::low_forget_process)
9578 (ppc_linux_nat_target::low_new_fork)
9579 (ppc_linux_nat_target::low_new_clone)
9580 (ppc_linux_nat_target::low_delete_thread)
9581 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9582 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9583 only call mark_thread_stale.
9584 (ppc_linux_thread_exit): Remove.
9585 (ppc_linux_nat_target::stopped_data_address): Change to...
9586 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9587 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9588 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9589 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9590 comment. Call low_stopped_data_address.
9591 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9592 m_dreg_interface.
9593 (ppc_linux_nat_target::masked_watch_num_registers): Use
9594 m_dreg_interface.
9595 (ppc_linux_nat_target::copy_thread_dreg_state)
9596 (ppc_linux_nat_target::mark_thread_stale)
9597 (ppc_linux_nat_target::mark_debug_registers_changed)
9598 (ppc_linux_nat_target::register_hw_breakpoint)
9599 (ppc_linux_nat_target::clear_hw_breakpoint)
9600 (ppc_linux_nat_target::register_wp)
9601 (ppc_linux_nat_target::clear_wp)
9602 (ppc_linux_nat_target::init_arch_lwp_info)
9603 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9604 (_initialize_ppc_linux_nat): Remove observer callback.
9605
4db10d8f
PFC
96062020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9607
9608 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9609 (ppc_linux_nat_target::auxv_parse)
9610 (ppc_linux_nat_target::read_description)
9611 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9612 Move up.
9613
1310c1b0
PFC
96142020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9615
9616 * linux-nat.h (low_new_clone): New method.
9617 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9618
69b037c3
SM
96192020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9620
9621 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9622 (dbx_expand_psymtab): ... this.
9623 (start_psymtab): Update.
9624 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9625 (mdebug_expand_psymtab): ... this.
9626 (parse_partial_symbols): Update.
9627 (new_psymtab): Update.
9628 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9629 (xcoff_expand_psymtab): ... this.
9630 (xcoff_start_psymtab): Update.
9631
48993951
SM
96322020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9633
9634 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9635 <expand_dependencies>: ... this.
9636 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9637 (partial_symtab::expand_dependencies): ... this.
9638 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9639 Update.
9640 (dwarf2_psymtab::expand_psymtab): Update.
9641 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9642 * mdebugread.c (psymtab_to_symtab_1): Update.
9643 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9644
3ad83046
SM
96452020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9646
9647 * psympriv.h (discard_psymtab): Remove.
9648 * dbxread.c (dbx_end_psymtab): Update.
9649 * xcoffread.c (xcoff_end_psymtab): Update.
9650
4d1b9ab6
TT
96512020-03-28 Tom Tromey <tom@tromey.com>
9652
9653 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9654 comment.
9655
f1749218
TT
96562020-03-28 Tom Tromey <tom@tromey.com>
9657
9658 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9659
ebea7626
HD
96602020-03-27 Hannes Domani <ssbssa@yahoo.de>
9661
9662 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9663
a879b4d5
JB
96642020-03-26 John Baldwin <jhb@FreeBSD.org>
9665
9666 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9667
0826b30a
TT
96682020-03-26 Tom Tromey <tom@tromey.com>
9669
9670 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9671 (mark_common_block_symbol_computed, read_tag_string_type)
9672 (attr_to_dynamic_prop, read_subrange_type): Update.
9673 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9674 to be methods on struct attribute.
9675 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9676 (read_call_site_scope, partial_die_info::read)
9677 (partial_die_info::read, lookup_die_type, follow_die_ref):
9678 Update.
9679 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9680 from dwarf2_get_ref_die_offset.
9681 (attribute::constant_value): New method, from
9682 dwarf2_get_attr_constant_value.
9683 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9684 Declare method.
9685 <constant_value>: New method.
9686
2b2558bf
TT
96872020-03-26 Tom Tromey <tom@tromey.com>
9688
9689 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9690 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9691 (dwarf_type_encoding_name): Move to stringify.c.
9692 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9693 * dwarf2/stringify.c: New file.
9694 * dwarf2/stringify.h: New file.
9695
eeb64781
TT
96962020-03-26 Tom Tromey <tom@tromey.com>
9697
9698 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9699 Rewrite.
9700
a39fdb41
TT
97012020-03-26 Tom Tromey <tom@tromey.com>
9702
9703 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9704 methods.
9705 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9706 (lookup_ranges_base): Likewise.
9707 (read_cutu_die_from_dwo, read_full_die_1): Update.
9708
436c571c
TT
97092020-03-26 Tom Tromey <tom@tromey.com>
9710
9711 * dwarf2/read.c (read_import_statement, read_file_scope)
9712 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9713 (read_lexical_block_scope, read_call_site_scope)
9714 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9715 (handle_struct_member_die, process_structure_scope)
9716 (update_enumeration_type_from_children)
9717 (process_enumeration_scope, read_array_type, read_common_block)
9718 (read_namespace, read_module, read_subroutine_type): Update.
9719 (sibling_die): Remove.
9720
052c8bb8
TT
97212020-03-26 Tom Tromey <tom@tromey.com>
9722
9723 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9724 (build_type_psymtabs_reader, read_structure_type)
9725 (read_enumeration_type, read_full_die_1): Update.
9726 (dwarf2_attr_no_follow): Move to die.h.
9727 * dwarf2/die.h (struct die_info) <attr>: New method.
9728
2b24b6e4
TT
97292020-03-26 Tom Tromey <tom@tromey.com>
9730
9731 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9732 <base_address>: Now an optional.
9733 (dwarf2_find_base_address, dwarf2_rnglists_process)
9734 (dwarf2_ranges_process, fill_in_loclist_baton)
9735 (dwarf2_symbol_mark_computed): Update.
9736
c2d50fd0
TT
97372020-03-26 Tom Tromey <tom@tromey.com>
9738
9739 * dwarf2/read.c (struct die_info): Move to die.h.
9740 * dwarf2/die.h: New file.
9741
0df7ad3a
TT
97422020-03-26 Tom Tromey <tom@tromey.com>
9743
9744 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9745 * dwarf2/read.c
9746 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9747 Move to line-header.c.
9748 (read_checked_initial_length_and_offset, read_formatted_entries):
9749 Likewise.
9750 (dwarf_decode_line_header): Split into two.
9751 * dwarf2/line-header.c
9752 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9753 Move from read.c.
9754 (read_checked_initial_length_and_offset, read_formatted_entries):
9755 Likewise.
9756 (dwarf_decode_line_header): New function, split from read.c.
9757
86c0bb4c
TT
97582020-03-26 Tom Tromey <tom@tromey.com>
9759
9760 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9761 Declare method.
9762 * dwarf2/read.c (read_attribute_value): Update.
9763 (dwarf2_per_objfile::read_line_string): Rename from
9764 read_indirect_line_string.
9765 (read_formatted_entries): Update.
9766
2ef46c2f
TT
97672020-03-26 Tom Tromey <tom@tromey.com>
9768
9769 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9770 variable.
9771
4f9c1eda
TT
97722020-03-26 Tom Tromey <tom@tromey.com>
9773
9774 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9775 const.
9776 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9777 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9778 parameter const.
9779
5a0e026f
TT
97802020-03-26 Tom Tromey <tom@tromey.com>
9781
9782 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9783 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9784 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9785 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9786
8844c11b
TT
97872020-03-26 Tom Tromey <tom@tromey.com>
9788
9789 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9790 file_names_size, file_full_name, file_file_name>: Use const.
9791 <file_name_at, file_names>: Add const overload.
9792 * dwarf2/line-header.c (line_header::file_file_name)
9793 (line_header::file_full_name): Update.
9794
c90ec28a
TT
97952020-03-26 Tom Tromey <tom@tromey.com>
9796
9797 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9798 (macro_start_file, consume_improper_spaces)
9799 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9800 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9801 (dwarf_decode_macros): Move to macro.c.
9802 * dwarf2/macro.c: New file.
9803 * dwarf2/macro.h: New file.
9804 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9805
4f44ae6c
TT
98062020-03-26 Tom Tromey <tom@tromey.com>
9807
9808 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9809 method.
9810 * dwarf2/section.c: New method. From
9811 read_indirect_string_at_offset_from.
9812 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9813 (read_indirect_string_at_offset_from): Move to section.c.
9814 (read_indirect_string_at_offset): Rewrite.
9815 (read_indirect_line_string_at_offset): Remove.
9816 (read_indirect_string, read_indirect_line_string)
9817 (dwarf_decode_macro_bytes): Update.
9818
a0194fa8
TT
98192020-03-26 Tom Tromey <tom@tromey.com>
9820
9821 * dwarf2/section.h (struct dwarf2_section_info)
9822 <overload_complaint>: Declare.
9823 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9824 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9825 Rename from dwarf2_section_buffer_overflow_complaint.
9826 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9827 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9828
3d27bbdb
TT
98292020-03-26 Tom Tromey <tom@tromey.com>
9830
9831 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9832 Declare.
9833 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9834 Move from read.c.
9835 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9836 to section.c.
9837
9eac9650
TT
98382020-03-26 Tom Tromey <tom@tromey.com>
9839
9840 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9841
bf80d710
TT
98422020-03-26 Tom Tromey <tom@tromey.com>
9843
9844 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9845 "builder".
9846 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9847 parameter.
9848 (dwarf_decode_macros): Update.
9849
0314b390
TT
98502020-03-26 Tom Tromey <tom@tromey.com>
9851
9852 * dwarf2/read.c (read_attribute_value): Update.
9853 (read_indirect_string_from_dwz): Move to dwz.c; change into
9854 method.
9855 (dwarf_decode_macro_bytes): Update.
9856 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9857 * dwarf2/dwz.c: New file.
9858 * Makefile.in (COMMON_SFILES): Add dwz.c.
9859
9fda78b6
TT
98602020-03-26 Tom Tromey <tom@tromey.com>
9861
9862 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9863 * dwarf2/read.c: Add include.
9864 * dwarf2/index-write.c: Add include.
9865 * dwarf2/index-cache.c: Add include.
9866 * dwarf2/dwz.h: New file.
9867
33aa3c10
TT
98682020-03-25 Tom Tromey <tom@tromey.com>
9869
9870 * compile/compile-object-load.c (get_out_value_type): Mention
9871 correct symbol name in error message.
9872
d503b685
HD
98732020-03-25 Hannes Domani <ssbssa@yahoo.de>
9874
9875 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9876
7b1eff95
TV
98772020-03-25 Tom de Vries <tdevries@suse.de>
9878
9879 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9880 * symmisc.c (dump_symtab_1): Print user and includes fields.
9881 (maintenance_info_symtabs): Same.
9882
dd895392
AB
98832020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9884
9885 PR gdb/25534
9886 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9887 (riscv_regcache_cooked_write): New function.
9888 (riscv_push_dummy_call): Use new function.
9889 (riscv_return_value): Likewise.
9890
5ab2fbf1
SM
98912020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9892
9893 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9894 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9895 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9896 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9897 * infrun.c (follow_fork): Likewise.
9898 (follow_fork_inferior): Likewise.
9899 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9900 * linux-nat.h (class linux_nat_target): Likewise.
9901 * remote.c (class remote_target) <follow_fork>: Likewise.
9902 (remote_target::follow_fork): Likewise.
9903 * target-delegates.c: Re-generate.
9904 * target.c (default_follow_fork): Likewise.
9905 (target_follow_fork): Likewise.
9906 * target.h (struct target_ops) <follow_fork>: Likewise.
9907 (target_follow_fork): Likewise.
9908
a64fafb5
TV
99092020-03-24 Tom de Vries <tdevries@suse.de>
9910
9911 * psymtab.c (maintenance_info_psymtabs): Print user field.
9912
fe26d3a3
TT
99132020-03-20 Tom Tromey <tromey@adacore.com>
9914
9915 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9916 const.
9917 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9918 const.
9919
c884cc46
SM
99202020-03-20 Simon Marchi <simon.marchi@efficios.com>
9921
9922 * ptrace.m4: Don't check for ptrace declaration.
9923 * config.in: Re-generate.
9924 * configure: Re-generate.
9925 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9926 not defined.
9927
1ff700c2
KR
99282020-03-20 Kamil Rytarowski <n54@gmx.com>
9929
9930 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9931 `PTRACE_TYPE_RET'.
9932 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9933 * sparc-nat.c (gdb_ptrace): Likewise.
9934 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9935
f7d4f0b1
TT
99362020-03-20 Tom Tromey <tromey@adacore.com>
9937
9938 * c-exp.y (lex_one_token): Fix assert.
9939
f67210ff
TT
99402020-03-20 Tom Tromey <tromey@adacore.com>
9941
9942 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9943 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9944 strncpy call.
9945
1773be9e
TT
99462020-03-20 Tom Tromey <tromey@adacore.com>
9947
9948 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9949
70304be9
TT
99502020-03-20 Tom Tromey <tromey@adacore.com>
9951
9952 * ada-valprint.c (print_variant_part): Remove parameters; switch
9953 to value-based API.
9954 (print_field_values): Likewise.
9955 (ada_val_print_struct_union): Likewise.
9956 (ada_value_print_1): Update.
9957
9faa006d
KR
99582020-03-20 Kamil Rytarowski <n54@gmx.com>
9959
9960 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9961 nbsd_nat_target instead of inf_ptrace_target.
9962 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9963 nbsd_nat_target.
9964
4a90f062
KR
99652020-03-20 Kamil Rytarowski <n54@gmx.com>
9966
9967 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9968 it to the ptrace call.
9969 * (store_registers): Likewise.
9970
99712020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9972
9973 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9974 it to the ptrace call.
9975 * (store_registers): Likewise.
9976
2d07da27
LM
99772020-03-19 Luis Machado <luis.machado@linaro.org>
9978
9979 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9980 valid, fetch vg value from ptrace.
9981
f09db380
KR
99822020-03-19 Kamil Rytarowski <n54@gmx.com>
9983 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9984 * inf-ptrace.c: Likewise.
9985 * (gdb_ptrace): Add.
9986 * (inf_ptrace_target::resume): Update.
9987 * (inf_ptrace_target::xfer_partial): Likewise.
9988 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9989 * (inf_ptrace_peek_poke): Update.
9990
fcc7376e
KR
99912020-03-19 Kamil Rytarowski <n54@gmx.com>
9992
9993 * x86-bsd-nat.c (gdb_ptrace): New.
9994 * (x86bsd_dr_set): Add new argument `ptid'.
9995 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9996 x86bsd_dr_set_addr): Update.
9997
cada5fc9
AB
99982020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9999
10000 * remote.c (remote_target::process_stop_reply): Handle events for
10001 all threads differently.
10002
19a2740f
AB
100032020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10004
10005 * completer.c (completion_tracker::remove_completion): Define new
10006 function.
10007 * completer.h (completion_tracker::remove_completion): Declare new
10008 function.
10009 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10010 when adding a C++ function symbol.
10011
724fd9ba
AB
100122020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10013
10014 * completer.c (completion_tracker::completion_hash_entry): Define
10015 new class.
10016 (advance_to_filename_complete_word_point): Call
10017 recompute_lowest_common_denominator.
10018 (completion_tracker::completion_tracker): Call discard_completions
10019 to setup the hash table.
10020 (completion_tracker::discard_completions): Allow for being called
10021 from the constructor, pass new equal function, and element deleter
10022 when constructing the hash table. Initialise new class member
10023 variables.
10024 (completion_tracker::maybe_add_completion): Remove use of
10025 m_entries_vec, and store more information into m_entries_hash.
10026 (completion_tracker::recompute_lcd_visitor): New function, most
10027 content taken from...
10028 (completion_tracker::recompute_lowest_common_denominator):
10029 ...here, this now just visits each item in the hash calling the
10030 above visitor.
10031 (completion_tracker::build_completion_result): Remove use of
10032 m_entries_vec, call recompute_lowest_common_denominator.
10033 * completer.h (completion_tracker::have_completions): Remove use
10034 of m_entries_vec.
10035 (completion_tracker::completion_hash_entry): Declare new class.
10036 (completion_tracker::recompute_lowest_common_denominator): Change
10037 function signature.
10038 (completion_tracker::recompute_lcd_visitor): Declare new function.
10039 (completion_tracker::m_entries_vec): Delete.
10040 (completion_tracker::m_entries_hash): Initialize to NULL.
10041 (completion_tracker::m_lowest_common_denominator_valid): New
10042 member variable.
10043 (completion_tracker::m_lowest_common_denominator_max_length): New
10044 member variable.
10045
5a82b8a1
KR
100462020-03-17 Kamil Rytarowski <n54@gmx.com>
10047
10048 * regformats/regdef.h: Put reg in gdb namespace.
10049
fb516a69
KR
100502020-03-17 Kamil Rytarowski <n54@gmx.com>
10051
10052 * i386-bsd-nat.c (gdb_ptrace): New.
10053 * (i386bsd_fetch_inferior_registers,
10054 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10055 * (i386bsd_fetch_inferior_registers,
10056 i386bsd_store_inferior_registers) Use gdb_ptrace.
10057
1c0aa1fb
KR
100582020-03-17 Kamil Rytarowski <n54@gmx.com>
10059
10060 * amd64-bsd-nat.c (gdb_ptrace): New.
10061 * (amd64bsd_fetch_inferior_registers,
10062 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10063 * (amd64bsd_fetch_inferior_registers,
10064 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10065
5ccd2fb7
KR
100662020-03-17 Kamil Rytarowski <n54@gmx.com>
10067
10068 * user-regs.c (user_reg::read): Rename to...
10069 (user_reg::xread): ...this.
10070 * (append_user_reg): Rename argument `read' to `xread'.
10071 * (user_reg_add_builtin): Likewise.
10072 * (user_reg_add): Likewise.
10073 * (value_of_user_reg): Likewise.
10074
2108a63a
KR
100752020-03-17 Kamil Rytarowski <n54@gmx.com>
10076
10077 * sparc-nat.c (gdb_ptrace): New.
10078 * sparc-nat.c (sparc_fetch_inferior_registers)
10079 (sparc_store_inferior_registers) Remove obsolete comment.
10080 * sparc-nat.c (sparc_fetch_inferior_registers)
10081 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10082 * sparc-nat.c (sparc_fetch_inferior_registers)
10083 (sparc_store_inferior_registers) Use gdb_ptrace.
10084
a225c9a8
KR
100852020-03-17 Kamil Rytarowski <n54@gmx.com>
10086
10087 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10088 it to the ptrace call.
10089 * sh-nbsd-nat.c (store_registers): Likewise.
10090
98097623
KR
100912020-03-17 Kamil Rytarowski <n54@gmx.com>
10092
10093 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10094 nbsd_nat_target instead of inf_ptrace_target.
10095 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10096 nbsd_nat_target.
10097
9e38d619
KR
100982020-03-17 Kamil Rytarowski <n54@gmx.com>
10099
10100 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10101
a2ecbe9f
KR
101022020-03-17 Kamil Rytarowski <n54@gmx.com>
10103
10104 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10105 <sys/sysctl.h>.
10106 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10107
58990295
TV
101082020-03-17 Tom de Vries <tdevries@suse.de>
10109
10110 PR gdb/23710
10111 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10112 fields.
10113 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10114 fields.
10115 (process_imported_unit_die): Skip import of c++ CUs.
10116
771dd3a8
TT
101172020-03-16 Tom Tromey <tom@tromey.com>
10118
10119 * p-valprint.c (pascal_object_print_value): Initialize
10120 base_value.
10121
817a7585
AK
101222020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10123 Shahab Vahedi <shahab@synopsys.com>
10124
10125 * Makefile.in: Add arch/arc.o
10126 * configure.tgt: Likewise.
10127 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10128 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10129 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10130 * arc-tdep.h (arc_read_description): Add proto type.
10131 * arch/arc.c: New file.
10132 * arch/arc.h: Likewise.
10133 * features/Makefile: Replace old target descriptions with new.
10134 * features/arc-arcompact.c: Remove.
10135 * features/arc-arcompact.xml: Likewise.
10136 * features/arc-v2.c: Likewise
10137 * features/arc-v2.xml: Likewise
10138 * features/arc/aux-arcompact.xml: New file.
10139 * features/arc/aux-v2.xml: Likewise.
10140 * features/arc/core-arcompact.xml: Likewise.
10141 * features/arc/core-v2.xml: Likewise.
10142 * features/arc/aux-arcompact.c: Generate.
10143 * features/arc/aux-v2.c: Likewise.
10144 * features/arc/core-arcompact.c: Likewise.
10145 * features/arc/core-v2.c: Likewise.
10146 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10147
67430cd0
TT
101482020-03-16 Tom Tromey <tromey@adacore.com>
10149
10150 PR gdb/25663:
10151 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10152 putting value into bcache.
10153
30efb6c7
SM
101542020-03-16 Simon Marchi <simon.marchi@efficios.com>
10155
10156 PR gdb/21500
10157 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10158 to...
10159 (amd64_windows_init_abi_common): ... this. Don't set size of
10160 long type.
10161 (amd64_windows_init_abi): New function.
10162 (amd64_cygwin_init_abi): New function.
10163 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10164 the Cygwin OS ABI.
10165 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10166 comment.
10167
8db52437
SM
101682020-03-16 Simon Marchi <simon.marchi@efficios.com>
10169
10170 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10171 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10172 (pe_import_directory_entry): New struct type.
10173 (is_linked_with_cygwin_dll): New function.
10174 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10175 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10176 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10177
5982a56a
SM
101782020-03-16 Simon Marchi <simon.marchi@efficios.com>
10179
10180 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10181 i386_cygwin_core_osabi_sniffer.
10182
7a1998df
SM
101832020-03-16 Simon Marchi <simon.marchi@efficios.com>
10184
10185 * i386-cygwin-tdep.c: Rename to...
10186 * i386-windows-tdep.c: ... this.
10187 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10188 i386-windows-tdep.c.
10189 * configure.tgt: Likewise.
10190
053205cc
SM
101912020-03-16 Simon Marchi <simon.marchi@efficios.com>
10192
10193 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10194 * osabi.c (gdb_osabi_names): Add "Windows".
10195 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10196 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10197 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10198 i386_cygwin_osabi_sniffer.
10199 (_initialize_i386_cygwin_tdep): Register OS ABI
10200 GDB_OSABI_WINDOWS for i386.
10201 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10202 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10203 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10204 for x86-64.
10205 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10206 when the target matches '*-*-mingw*'.
10207
fe4b2ee6
SM
102082020-03-16 Simon Marchi <simon.marchi@efficios.com>
10209
10210 * defs.h (enum gdb_osabi): Move to...
10211 * osabi.h (enum gdb_osabi): ... here.
10212 * gdbarch.sh: Include osabi.h in gdbarch.h.
10213 * gdbarch.h: Re-generate.
10214
cb9b645d
SM
102152020-03-16 Simon Marchi <simon.marchi@efficios.com>
10216
10217 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10218 function.
10219 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10220
3293bbaf
TT
102212020-03-14 Tom Tromey <tom@tromey.com>
10222
10223 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10224 for C++.
10225 (c_type_print_modifier): Likewise. Add "language" parameter.
10226 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10227 (c_type_print_base_1): Update.
10228 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10229 constants.
10230 * type-stack.c (type_stack::insert): Handle tp_atomic and
10231 tp_restrict.
10232 (type_stack::follow_type_instance_flags): Likewise.
10233 (type_stack::follow_types): Likewise. Merge type-following code.
10234 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10235 (space_identifier, cv_with_space_id)
10236 (const_or_volatile_or_space_identifier_noopt)
10237 (const_or_volatile_or_space_identifier): Remove.
10238 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10239 rules.
10240 (ptr_operator, typebase): Update.
10241 (enum token_flag) <FLAG_C>: New constant.
10242 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10243 "_Atomic".
10244 (lex_one_token): Handle FLAG_C.
10245
154151a6
KR
102462020-03-14 Kamil Rytarowski <n54@gmx.com>
10247
10248 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10249 it to the ptrace call.
10250 * m68k-bsd-nat.c (store_registers): Likewise.
10251
bc107784
KR
102522020-03-14 Kamil Rytarowski <n54@gmx.com>
10253
10254 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10255 gdb_byte *.
10256 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10257 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10258 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10259
01a80117
KR
102602020-03-14 Kamil Rytarowski <n54@gmx.com>
10261
10262 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10263 nbsd_nat_target instead of inf_ptrace_target.
10264 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10265 nbsd_nat_target.
10266
f90280ca
KR
102672020-03-14 Kamil Rytarowski <n54@gmx.com>
10268
10269 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10270 register_t.
10271
6def66f1
KR
102722020-03-14 Kamil Rytarowski <n54@gmx.com>
10273
10274 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10275 it to the ptrace call.
10276 * alpha-bsd-nat.c (store_registers): Likewise.
10277
66eaca97
KR
102782020-03-14 Kamil Rytarowski <n54@gmx.com>
10279
10280 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10281 includes.
10282 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10283 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10284 fill_fpregset): Likewise.
10285
4fed520b
KR
102862020-03-14 Kamil Rytarowski <n54@gmx.com>
10287
10288 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10289 nbsd_nat_target instead of inf_ptrace_target.
10290 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10291 nbsd_nat_target.
10292
2190cf06
KR
102932020-03-14 Kamil Rytarowski <n54@gmx.com>
10294
10295 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10296 register_t.
10297
75c56d3d
KR
102982020-03-14 Kamil Rytarowski <n54@gmx.com>
10299
10300 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10301 it to the ptrace call.
10302 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10303 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10304 * arm-nbsd-nat.c (store_register): Likewise.
10305 * arm-nbsd-nat.c (store_regs): Likewise.
10306 * arm-nbsd-nat.c (store_fp_register): Likewise.
10307 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10308
6018d381
KR
103092020-03-14 Kamil Rytarowski <n54@gmx.com>
10310
10311 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10312 nbsd_nat_target instead of inf_ptrace_target.
10313 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10314 nbsd_nat_target.
10315
013f99f0
KR
103162020-03-14 Kamil Rytarowski <n54@gmx.com>
10317
10318 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10319 it to the ptrace call.
10320 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10321
12753073
KR
103222020-03-14 Kamil Rytarowski <n54@gmx.com>
10323
6227b330
KR
10324 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10325 it to the ptrace call.
10326 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10327
103282020-03-14 Kamil Rytarowski <n54@gmx.com>
10329
10330 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10331 gdb_byte *.
12753073
KR
10332 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10333
d5be5fa4
KR
103342020-03-14 Kamil Rytarowski <n54@gmx.com>
10335
10336 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10337 instead of inf_ptrace_target.
10338 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10339 nbsd_nat_target.
10340
8110f842
KR
103412020-03-14 Kamil Rytarowski <n54@gmx.com>
10342
10343 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10344 register_t.
10345
52feded7
KR
103462020-03-14 Kamil Rytarowski <n54@gmx.com>
10347
10348 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10349 register_t.
10350
25567eee
KR
103512020-03-14 Kamil Rytarowski <n54@gmx.com>
10352
10353 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10354 register_t.
10355
426a9c18
TT
103562020-03-13 Tom Tromey <tom@tromey.com>
10357
10358 * value.h (val_print): Don't declare.
10359 * valprint.h (val_print_array_elements)
10360 (val_print_scalar_formatted, generic_val_print): Don't declare.
10361 * valprint.c (generic_val_print_array): Take a struct value.
10362 (generic_val_print_ptr, generic_val_print_memberptr)
10363 (generic_val_print_bool, generic_val_print_int)
10364 (generic_val_print_char, generic_val_print_complex)
10365 (generic_val_print): Remove.
10366 (generic_value_print): Update.
10367 (do_val_print): Remove unused parameters. Don't call
10368 la_val_print.
10369 (val_print): Remove.
10370 (common_val_print): Update. Don't call value_check_printable.
10371 (val_print_scalar_formatted, val_print_array_elements): Remove.
10372 * rust-lang.c (rust_val_print): Remove.
10373 (rust_language_defn): Update.
10374 * p-valprint.c (pascal_val_print): Remove.
10375 (pascal_value_print_inner): Update.
10376 (pascal_object_print_val_fields, pascal_object_print_val):
10377 Remove.
10378 (pascal_object_print_static_field): Update.
10379 * p-lang.h (pascal_val_print): Don't declare.
10380 * p-lang.c (pascal_language_defn): Update.
10381 * opencl-lang.c (opencl_language_defn): Update.
10382 * objc-lang.c (objc_language_defn): Update.
10383 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10384 * m2-lang.h (m2_val_print): Don't declare.
10385 * m2-lang.c (m2_language_defn): Update.
10386 * language.h (struct language_defn) <la_val_print>: Remove.
10387 * language.c (unk_lang_value_print_inner): Rename. Change
10388 argument types.
10389 (unknown_language_defn, auto_language_defn): Update.
10390 * go-valprint.c (go_val_print): Remove.
10391 * go-lang.h (go_val_print): Don't declare.
10392 * go-lang.c (go_language_defn): Update.
10393 * f-valprint.c (f_val_print): Remove.
10394 * f-lang.h (f_value_print): Don't declare.
10395 * f-lang.c (f_language_defn): Update.
10396 * d-valprint.c (d_val_print): Remove.
10397 * d-lang.h (d_value_print): Don't declare.
10398 * d-lang.c (d_language_defn): Update.
10399 * cp-valprint.c (cp_print_value_fields)
10400 (cp_print_value_fields_rtti, cp_print_value): Remove.
10401 (cp_print_static_field): Update.
10402 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10403 (c_val_print_struct, c_val_print_union, c_val_print_int)
10404 (c_val_print_memberptr, c_val_print): Remove.
10405 * c-lang.h (c_val_print_array, cp_print_value_fields)
10406 (cp_print_value_fields_rtti): Don't declare.
10407 * c-lang.c (c_language_defn, cplus_language_defn)
10408 (asm_language_defn, minimal_language_defn): Update.
10409 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10410 (ada_val_print_enum): Take a struct value.
10411 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10412 (ada_val_print): Remove.
10413 (ada_value_print_1): Update.
10414 (printable_val_type): Remove.
10415 * ada-lang.h (ada_val_print): Don't declare.
10416 * ada-lang.c (ada_language_defn): Update.
10417
42331a1e
TT
104182020-03-13 Tom Tromey <tom@tromey.com>
10419
10420 * valprint.c (do_val_print): Update.
10421 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10422 a struct value.
10423 (value_to_value_object_no_release): Declare.
10424 * python/py-value.c (value_to_value_object_no_release): New
10425 function.
10426 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10427 struct value.
10428 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10429 function.
10430 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10431 a struct value.
10432 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10433 Declare.
10434 (gdbscm_apply_val_pretty_printer): Take a struct value.
10435 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10436 value.
10437 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10438 value.
10439 * extension-priv.h (struct extension_language_ops)
10440 <apply_val_pretty_printer>: Take a struct value.
10441 * cp-valprint.c (cp_print_value): Create a struct value.
10442 (cp_print_value): Update.
10443
3a916a97
TT
104442020-03-13 Tom Tromey <tom@tromey.com>
10445
10446 * ada-valprint.c (print_field_values): Call common_val_print.
10447
b59eac37
TT
104482020-03-13 Tom Tromey <tom@tromey.com>
10449
10450 * ada-valprint.c (val_print_packed_array_elements): Remove
10451 bitoffset and val parameters. Call common_val_print.
10452 (ada_val_print_string): Remove offset, address, and original_value
10453 parameters.
10454 (ada_val_print_array): Update.
10455 (ada_value_print_array): New function.
10456 (ada_value_print_1): Call it.
10457
03371129
TT
104582020-03-13 Tom Tromey <tom@tromey.com>
10459
10460 * ada-valprint.c (ada_value_print): Use common_val_print.
10461
2e088f8b
TT
104622020-03-13 Tom Tromey <tom@tromey.com>
10463
10464 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10465
39ef85a8
TT
104662020-03-13 Tom Tromey <tom@tromey.com>
10467
10468 * ada-valprint.c (ada_value_print_num): New function.
10469 (ada_value_print_1): Use it.
10470
b9fa6e07
TT
104712020-03-13 Tom Tromey <tom@tromey.com>
10472
10473 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10474
416595d6
TT
104752020-03-13 Tom Tromey <tom@tromey.com>
10476
10477 * ada-valprint.c (ada_value_print_ptr): New function.
10478 (ada_value_print_1): Use it.
10479
5b5e15ec
TT
104802020-03-13 Tom Tromey <tom@tromey.com>
10481
10482 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10483 call common_val_print.
10484 (ada_val_print_1): Update.
10485 (ada_value_print_1): New function.
10486 (ada_value_print_inner): Rewrite.
10487
fbf54e75
TT
104882020-03-13 Tom Tromey <tom@tromey.com>
10489
10490 * cp-valprint.c (cp_print_value_fields): Update.
10491 (cp_print_value): New function.
10492
64b653ca
TT
104932020-03-13 Tom Tromey <tom@tromey.com>
10494
10495 * m2-valprint.c (m2_value_print_inner): Use
10496 cp_print_value_fields.
10497 * cp-valprint.c (cp_print_value_fields): New function.
10498 * c-valprint.c (c_value_print_struct): New function.
10499 (c_value_print_inner): Use c_value_print_struct.
10500 * c-lang.h (cp_print_value_fields): Declare.
10501
6999f067
TT
105022020-03-13 Tom Tromey <tom@tromey.com>
10503
10504 * c-valprint.c (c_value_print_array): New function.
10505 (c_value_print_inner): Use it.
10506
ce80b8bd
TT
105072020-03-13 Tom Tromey <tom@tromey.com>
10508
10509 * c-valprint.c (c_value_print_memberptr): New function.
10510 (c_value_print_inner): Use it.
10511
2faac269
TT
105122020-03-13 Tom Tromey <tom@tromey.com>
10513
10514 * c-valprint.c (c_value_print_int): New function.
10515 (c_value_print_inner): Use it.
10516
da3e2c29
TT
105172020-03-13 Tom Tromey <tom@tromey.com>
10518
10519 * c-valprint.c (c_value_print_ptr): New function.
10520 (c_value_print_inner): Use it.
10521
50836231
TT
105222020-03-13 Tom Tromey <tom@tromey.com>
10523
10524 * c-valprint.c (c_value_print_inner): Rewrite.
10525
4f412b6e
TT
105262020-03-13 Tom Tromey <tom@tromey.com>
10527
10528 * valprint.c (generic_value_print_complex): New function.
10529 (generic_value_print): Use it.
10530
f5354008
TT
105312020-03-13 Tom Tromey <tom@tromey.com>
10532
10533 * valprint.c (generic_val_print_float): Don't call
10534 val_print_scalar_formatted.
10535 (generic_val_print, generic_value_print): Update.
10536
3eec3b05
TT
105372020-03-13 Tom Tromey <tom@tromey.com>
10538
10539 * valprint.c (generic_value_print_char): New function
10540 (generic_value_print): Use it.
10541
fdddfccb
TT
105422020-03-13 Tom Tromey <tom@tromey.com>
10543
10544 * valprint.c (generic_value_print_int): New function.
10545 (generic_value_print): Use it.
10546
6dde7521
TT
105472020-03-13 Tom Tromey <tom@tromey.com>
10548
10549 * valprint.c (generic_value_print_bool): New function.
10550 (generic_value_print): Use it.
10551
4112d2e6
TT
105522020-03-13 Tom Tromey <tom@tromey.com>
10553
10554 * valprint.c (generic_val_print_func): Simplify.
10555 (generic_val_print, generic_value_print): Update.
10556
65786af6
TT
105572020-03-13 Tom Tromey <tom@tromey.com>
10558
10559 * valprint.c (generic_val_print_flags): Remove.
10560 (generic_val_print, generic_value_print): Update.
10561 (val_print_type_code_flags): Add original_value parameter.
10562
40f3ce18
TT
105632020-03-13 Tom Tromey <tom@tromey.com>
10564
10565 * valprint.c (generic_val_print): Update.
10566 (generic_value_print): Update.
10567 * valprint.c (generic_val_print_enum): Don't call
10568 val_print_scalar_formatted.
10569
2a5b130b
TT
105702020-03-13 Tom Tromey <tom@tromey.com>
10571
10572 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10573 * valprint.c (generic_value_print_ptr): New function.
10574
abc66ce9
TT
105752020-03-13 Tom Tromey <tom@tromey.com>
10576
10577 * valprint.c (generic_value_print): Rewrite.
10578
07a32858
TT
105792020-03-13 Tom Tromey <tom@tromey.com>
10580
10581 * p-valprint.c (pascal_object_print_value_fields)
10582 (pascal_object_print_value): New functions.
10583
64d64d3a
TT
105842020-03-13 Tom Tromey <tom@tromey.com>
10585
10586 * p-valprint.c (pascal_value_print_inner): Rewrite.
10587
6a95a1f5
TT
105882020-03-13 Tom Tromey <tom@tromey.com>
10589
10590 * f-valprint.c (f_value_print_innner): Rewrite.
10591
59fcdac6
TT
105922020-03-13 Tom Tromey <tom@tromey.com>
10593
10594 * m2-valprint.c (m2_print_unbounded_array): New overload.
10595 (m2_print_unbounded_array): Update.
10596 (m2_print_array_contents): Take a struct value.
10597 (m2_value_print_inner): Rewrite.
10598
d133c3e1
TT
105992020-03-13 Tom Tromey <tom@tromey.com>
10600
10601 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10602 (d_value_print_inner): New function.
10603 * d-lang.h (d_value_print_inner): Declare.
10604 * d-lang.c (d_language_defn): Use d_value_print_inner.
10605
23b0f06b
TT
106062020-03-13 Tom Tromey <tom@tromey.com>
10607
10608 * go-valprint.c (go_value_print_inner): New function.
10609 * go-lang.h (go_value_print_inner): Declare.
10610 * go-lang.c (go_language_defn): Use go_value_print_inner.
10611
5f56f7cb
TT
106122020-03-13 Tom Tromey <tom@tromey.com>
10613
10614 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10615 API.
10616 (rust_val_print): Rewrite.
10617 (rust_value_print_inner): New function, from rust_val_print.
10618 (rust_language_defn): Use rust_value_print_inner.
10619
26792ee0
TT
106202020-03-13 Tom Tromey <tom@tromey.com>
10621
10622 * ada-valprint.c (ada_value_print_inner): New function.
10623 * ada-lang.h (ada_value_print_inner): Declare.
10624 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10625
24051bbe
TT
106262020-03-13 Tom Tromey <tom@tromey.com>
10627
10628 * f-valprint.c (f_value_print_innner): New function.
10629 * f-lang.h (f_value_print_innner): Declare.
10630 * f-lang.c (f_language_defn): Use f_value_print_innner.
10631
c0941be6
TT
106322020-03-13 Tom Tromey <tom@tromey.com>
10633
10634 * p-valprint.c (pascal_value_print_inner): New function.
10635 * p-lang.h (pascal_value_print_inner): Declare.
10636 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10637
62c4663d
TT
106382020-03-13 Tom Tromey <tom@tromey.com>
10639
10640 * m2-valprint.c (m2_value_print_inner): New function.
10641 * m2-lang.h (m2_value_print_inner): Declare.
10642 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10643
62182190
TT
106442020-03-13 Tom Tromey <tom@tromey.com>
10645
10646 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10647 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10648 * c-valprint.c (c_value_print_inner): New function.
10649 * c-lang.h (c_value_print_inner): Declare.
10650 * c-lang.c (c_language_defn, cplus_language_defn)
10651 (asm_language_defn, minimal_language_defn): Use
10652 c_value_print_inner.
10653
1e592a8a
TT
106542020-03-13 Tom Tromey <tom@tromey.com>
10655
10656 * p-valprint.c (pascal_object_print_value_fields): Now static.
10657 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10658
7fe471e9
TT
106592020-03-13 Tom Tromey <tom@tromey.com>
10660
10661 * c-valprint.c (c_val_print_array): Simplify.
10662
d121c6ce
TT
106632020-03-13 Tom Tromey <tom@tromey.com>
10664
10665 * valprint.c (value_print_array_elements): New function.
10666 * valprint.h (value_print_array_elements): Declare.
10667
4dba70ee
TT
106682020-03-13 Tom Tromey <tom@tromey.com>
10669
10670 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10671 * mips-tdep.c (mips_print_register): Use
10672 value_print_scalar_formatted.
10673
4f9ae810
TT
106742020-03-13 Tom Tromey <tom@tromey.com>
10675
10676 * valprint.h (value_print_scalar_formatted): Declare.
10677 * valprint.c (value_print_scalar_formatted): New function.
10678
156bfec9
TT
106792020-03-13 Tom Tromey <tom@tromey.com>
10680
10681 * valprint.h (generic_value_print): Declare.
10682 * valprint.c (generic_value_print): New function.
10683
2b4e573d
TT
106842020-03-13 Tom Tromey <tom@tromey.com>
10685
10686 * valprint.c (do_val_print): Call la_value_print_inner, if
10687 available.
10688 * rust-lang.c (rust_language_defn): Update.
10689 * p-lang.c (pascal_language_defn): Update.
10690 * opencl-lang.c (opencl_language_defn): Update.
10691 * objc-lang.c (objc_language_defn): Update.
10692 * m2-lang.c (m2_language_defn): Update.
10693 * language.h (struct language_defn) <la_value_print_inner>: New
10694 member.
10695 * language.c (unknown_language_defn, auto_language_defn): Update.
10696 * go-lang.c (go_language_defn): Update.
10697 * f-lang.c (f_language_defn): Update.
10698 * d-lang.c (d_language_defn): Update.
10699 * c-lang.c (c_language_defn, cplus_language_defn)
10700 (asm_language_defn, minimal_language_defn): Update.
10701 * ada-lang.c (ada_language_defn): Update.
10702
a1f6a07c
TT
107032020-03-13 Tom Tromey <tom@tromey.com>
10704
10705 * c-valprint.c (c_value_print): Use common_val_print.
10706
410cf315
TT
107072020-03-13 Tom Tromey <tom@tromey.com>
10708
10709 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10710
72a45c93
TT
107112020-03-13 Tom Tromey <tom@tromey.com>
10712
10713 * f-valprint.c (f77_print_array_1, f_val_print): Use
10714 common_val_print.
10715
040f66bd
TT
107162020-03-13 Tom Tromey <tom@tromey.com>
10717
10718 * riscv-tdep.c (riscv_print_one_register_info): Use
10719 common_val_print.
10720
a6e05a6c
TT
107212020-03-13 Tom Tromey <tom@tromey.com>
10722
10723 * mi/mi-main.c (output_register): Use common_val_print.
10724
3444c526
TT
107252020-03-13 Tom Tromey <tom@tromey.com>
10726
10727 * infcmd.c (default_print_one_register_info): Use
10728 common_val_print.
10729
c2a44efe
TT
107302020-03-13 Tom Tromey <tom@tromey.com>
10731
10732 * valprint.h (common_val_print_checked): Declare.
10733 * valprint.c (common_val_print_checked): New function.
10734 * stack.c (print_frame_arg): Use common_val_print_checked.
10735
b0c26e99
TT
107362020-03-13 Tom Tromey <tom@tromey.com>
10737
10738 * valprint.c (do_val_print): New function, from val_print.
10739 (val_print): Use do_val_print.
10740 (common_val_print): Use do_val_print.
10741
ce3acbe9
TT
107422020-03-13 Tom Tromey <tom@tromey.com>
10743
10744 * valprint.c (value_print): Use scoped_value_mark.
10745
96c7f873
TV
107462020-03-13 Tom de Vries <tdevries@suse.de>
10747
10748 PR symtab/25646
10749 * psymtab.c (partial_symtab::partial_symtab): Don't set
10750 globals_offset and statics_offset. Push element onto
10751 current_global_psymbols and current_static_psymbols stacks.
10752 (concat): New function.
10753 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10754 element from current_global_psymbols and current_static_psymbols
10755 stacks. Concat popped elements to global_psymbols and
10756 static_symbols.
10757 (add_psymbol_to_list): Use current_global_psymbols and
10758 current_static_psymbols stacks.
10759 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10760 current_static_psymbols fields.
10761
6ba0a321
CB
107622020-03-12 Christian Biesinger <cbiesinger@google.com>
10763
10764 * corelow.c (sniff_core_bfd): Remove.
10765 (class core_target) <m_core_vec>: Remove.
10766 (core_target::core_target): Update.
10767 (core_file_fns): Remove.
10768 (deprecated_add_core_fns): Remove.
10769 (default_core_sniffer): Remove.
10770 (sniff_core_bfd): Remove.
10771 (default_check_format): Remove.
10772 (gdb_check_format): Remove.
10773 (core_target_open): Update.
10774 (core_target::get_core_register_section): Update.
10775 (get_core_registers_cb): Update.
10776 (core_target::fetch_registers): Update.
10777 * gdbcore.h (struct core_fns): Remove.
10778 (deprecated_add_core_fns): Remove.
10779 (default_core_sniffer): Remove.
10780 (default_check_format): Remove.
10781
227031b2
TT
107822020-03-12 Tom Tromey <tom@tromey.com>
10783
10784 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10785 CORE_ADDR.
10786 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10787
53807e9f
TT
107882020-03-12 Tom Tromey <tom@tromey.com>
10789
10790 * remote.c (remote_target::download_tracepoint)
10791 (remote_target::enable_tracepoint)
10792 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10793 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10794 sprintf_vma.
10795
64f25102
TT
107962020-03-12 Tom Tromey <tom@tromey.com>
10797
10798 * symfile-mem.c: Update CORE_ADDR size assert.
10799
272cd5a3
SM
108002020-03-12 Simon Marchi <simon.marchi@efficios.com>
10801
10802 * selftest.m4: Move to gdbsupport/.
10803 * acinclude.m4: Update path to selftest.m4.
10804
74cd3f9d
SM
108052020-03-12 Simon Marchi <simon.marchi@efficios.com>
10806
10807 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10808 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10809 gdbarch-selfselftests.c and selftest-arch.c.
10810 (SUBDIR_UNITTESTS_OBS): Rename to...
10811 (SELFTESTS_OBS): ... this.
10812 (COMMON_SFILES): Remove disasm-selftests.c and
10813 gdbarch-selftests.c.
10814 * configure.ac: Don't add selftest-arch.{c,o} to
10815 CONFIG_{SRCS,OBS}.
10816 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10817 preprocessor conditions.
10818
db6878ac
SM
108192020-03-12 Simon Marchi <simon.marchi@efficios.com>
10820
10821 * configure.ac: Don't source bfd/development.sh.
10822 * selftest.m4: Modify comment.
10823 * configure: Re-generate.
10824
4d696a5c
SM
108252020-03-12 Simon Marchi <simon.marchi@efficios.com>
10826
10827 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10828 not "true" or "false".
10829 * configure: Re-generate.
10830
8dd8e1c7
CB
108312020-03-12 Christian Biesinger <cbiesinger@google.com>
10832
10833 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10834 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10835 renamed to arm_nbsd_supply_gregset.
10836 (fetch_register): Update to call arm_nbsd_supply_gregset.
10837 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10838 (arm_netbsd_nat_target::fetch_registers): Update.
10839 (fetch_elfcore_registers): Removed.
10840 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10841 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10842 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10843 not require NetBSD system headers.
10844 (arm_nbsd_regset): New struct.
10845 (arm_nbsd_iterate_over_regset_sections): New function.
10846 (arm_netbsd_init_abi_common): Updated to call
10847 set_gdbarch_iterate_over_regset_sections.
10848 * arm-nbsd-tdep.h: New file.
10849
dd69bf7a
KB
108502020-03-11 Kevin Buettner <kevinb@redhat.com>
10851
10852 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10853 recursion.
10854
a0761e34
SM
108552020-03-11 Simon Marchi <simon.marchi@efficios.com>
10856
10857 * configure: Re-generate.
10858
e7a82140
TT
108592020-03-11 Tom Tromey <tromey@adacore.com>
10860
10861 * ada-typeprint.c (print_choices): Fix comment.
10862
dcc050c8
AB
108632020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10864
10865 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10866 previous item in the list, when the list has no items.
10867
1c33af77
TV
108682020-03-11 Tom de Vries <tdevries@suse.de>
10869
10870 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10871 PROP_LOCLIST handling code.
10872
8c95582d
AB
108732020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10874
10875 * buildsym-legacy.c (record_line): Pass extra parameter to
10876 record_line.
10877 * buildsym.c (buildsym_compunit::record_line): Take an extra
10878 parameter, reduce duplication in the line table, and record the
10879 is_stmt flag in the line table.
10880 * buildsym.h (buildsym_compunit::record_line): Add extra
10881 parameter.
10882 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10883 non-statement lines.
10884 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10885 this to the symtab builder.
10886 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10887 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10888 through to dwarf_record_line_1.
10889 * infrun.c (process_event_stop_test): When stepping, don't stop at
10890 a non-statement instruction, and only refresh the step info when
10891 we land in the middle of a line's range. Also add an extra
10892 comment.
10893 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10894 field.
10895 * record-btrace.c (btrace_find_line_range): Only record lines
10896 marked as is-statement.
10897 * stack.c (frame_show_address): Show the frame address if we are
10898 in a non-statement sal.
10899 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10900 (maintenance_print_one_line_table): Print a header for the is_stmt
10901 column, and include is_stmt information in the output.
10902 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10903 preference to non-statements.
10904 (find_pcs_for_symtab_line): Prefer is-statement entries.
10905 (find_line_common): Likewise.
10906 * symtab.h (struct linetable_entry): Add is_stmt field.
10907 (struct symtab_and_line): Likewise.
10908 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10909 arranging the line table.
10910
e4003a34
TV
109112020-03-07 Tom de Vries <tdevries@suse.de>
10912
10913 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10914 DIE.
10915
e8932576
TT
109162020-03-07 Tom Tromey <tom@tromey.com>
10917
10918 * valops.c (value_literal_complex): Remove obsolete comment.
10919 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10920 comment.
10921
29734269
SM
109222020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10923
10924 * infrun.h: Forward-declare thread_info.
10925 (set_step_info): Add thread_info parameter, add doc.
10926 * infrun.c (set_step_info): Add thread_info parameter, move doc
10927 to header.
10928 * infrun.c (process_event_stop_test): Pass thread to
10929 set_step_info call.
10930 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10931 set_step_info.
10932 (prepare_one_step): Add thread_info parameter, pass it to
10933 set_step_frame and prepare_one_step (recursive) call.
10934 (step_1): Pass thread to prepare_one_step call.
10935 (step_command_fsm::should_stop): Pass thread to
10936 prepare_one_step.
10937 (until_next_fsm): Pass thread to set_step_frame call.
10938 (finish_command): Pass thread to set_step_info call.
10939
b7d64b29
HD
109402020-03-06 Hannes Domani <ssbssa@yahoo.de>
10941
10942 * windows-tdep.c (windows_solib_create_inferior_hook):
10943 Check if inferior is running.
10944
09f2921c
TV
109452020-03-06 Tom de Vries <tdevries@suse.de>
10946
10947 * NEWS: Fix "the the".
10948 * ctfread.c: Same.
10949
fd760e79
TV
109502020-03-06 Tom de Vries <tdevries@suse.de>
10951
10952 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10953
20ea4a60
AB
109542020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10955
10956 * .dir-locals.el: Add a comment referencing the other copies of
10957 this file.
10958
0afbabf0
JB
109592020-03-05 John Baldwin <jhb@FreeBSD.org>
10960
10961 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10962 psargs.
10963
842806cb
TBA
109642020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10965
10966 * .gitattributes: New file.
10967
be1e3d3e
TT
109682020-03-04 Tom Tromey <tom@tromey.com>
10969
10970 * symmisc.c (print_symbol_bcache_statistics)
10971 (print_objfile_statistics): Update.
10972 * symfile.c (allocate_symtab): Use intern.
10973 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10974 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10975 macro_cache>: Remove.
10976 <string_cache>: New member.
10977 (struct objfile) <intern>: New methods.
10978 * elfread.c (elf_symtab_read): Use intern.
10979 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10980 (dwarf2_compute_name, dwarf2_physname)
10981 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10982 names.
10983 (guess_partial_die_structure_name): Update.
10984 (partial_die_info::fixup): Intern name.
10985 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10986 name.
10987 (dwarf2_name): Intern name. Update.
10988 * buildsym.c (buildsym_compunit::get_macro_table): Use
10989 string_cache.
10990
4e7625fd
TT
109912020-03-04 Tom Tromey <tom@tromey.com>
10992
10993 * jit.c (bfd_open_from_target_memory): Make "target" const.
10994 * corefile.c (gnutarget): Now const.
10995 * gdbcore.h (gnutarget): Now const.
10996
46f9f931
HD
109972020-03-04 Hannes Domani <ssbssa@yahoo.de>
10998
10999 * NEWS: Mention support for WOW64 processes.
11000 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11001 (amd64_windows_segment_register_p): Remove static.
11002 (_initialize_amd64_windows_nat): Update.
11003 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11004 * i386-windows-nat.c (context_offset): Update.
11005 (i386_mappings): Rename and remove static.
11006 (i386_windows_segment_register_p): Remove static.
11007 (_initialize_i386_windows_nat): Update.
11008 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11009 (STATUS_WX86_SINGLE_STEP): New macro.
11010 (EnumProcessModulesEx): New macro.
11011 (Wow64SuspendThread): New macro.
11012 (Wow64GetThreadContext): New macro.
11013 (Wow64SetThreadContext): New macro.
11014 (Wow64GetThreadSelectorEntry): New macro.
11015 (windows_set_context_register_offsets): Add static.
11016 (windows_set_segment_register_p): Likewise.
11017 (windows_add_thread): Adapt for WOW64 processes.
11018 (windows_fetch_one_register): Likewise.
11019 (windows_nat_target::fetch_registers): Likewise.
11020 (windows_store_one_register): Likewise.
11021 (display_selector): Likewise.
11022 (display_selectors): Likewise.
11023 (handle_exception): Likewise.
11024 (windows_continue): Likewise.
11025 (windows_nat_target::resume): Likewise.
11026 (windows_add_all_dlls): Likewise.
11027 (do_initial_windows_stuff): Likewise.
11028 (windows_nat_target::attach): Likewise.
11029 (windows_get_exec_module_filename): Likewise.
11030 (windows_nat_target::create_inferior): Likewise.
11031 (windows_xfer_siginfo): Likewise.
11032 (_initialize_loadable): Initialize Wow64SuspendThread,
11033 Wow64GetThreadContext, Wow64SetThreadContext,
11034 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11035 * windows-nat.h (windows_set_context_register_offsets):
11036 Remove declaration.
11037 (windows_set_segment_register_p): Likewise.
11038 (i386_windows_segment_register_p): Add declaration.
11039 (amd64_windows_segment_register_p): Likewise.
11040
440cf44e
LM
110412020-03-04 Luis Machado <luis.machado@linaro.org>
11042
11043 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11044 in "info registers" for AArch64/ARM.
11045
11046 The change caused "info registers" to not print GPR's.
11047
11048 gdb/ChangeLog:
11049
11050 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11051
11052 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11053 when reg->group is empty and reggroup is not.
11054
1009d92f
TT
110552020-03-03 Tom Tromey <tromey@adacore.com>
11056
11057 * dwarf2/frame.c (struct dwarf2_frame_cache)
11058 <checked_tailcall_bottom, entry_cfa_sp_offset,
11059 entry_cfa_sp_offset_p>: Remove members.
11060 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11061 (dwarf2_frame_prev_register): Don't call
11062 dwarf2_tailcall_sniffer_first.
11063 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11064 * frame-unwind.c (add_unwinder): New fuction.
11065 (frame_unwind_init): Use it. Add tailcall unwinder.
11066
5e5d66b6
AB
110672020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11068 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11069
11070 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11071 value should be printed as true.
11072
584cf46d
HD
110732020-03-03 Hannes Domani <ssbssa@yahoo.de>
11074
11075 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11076 (windows_init_abi): Set and use windows_so_ops.
11077
7b973adc
SDJ
110782020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11079
11080 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11081 when verifying if dealing with a convenience variable.
11082
bb7b70ab
LM
110832020-03-03 Luis Machado <luis.machado@linaro.org>
11084
11085 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11086
9822cb57
SM
110872020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11088
11089 * infrun.c (gdbarch_supports_displaced_stepping): New.
11090 (use_displaced_stepping): Break up conditions in smaller pieces.
11091 Use gdbarch_supports_displaced_stepping.
11092 (displaced_step_prepare_throw): Use
11093 gdbarch_supports_displaced_stepping.
11094
63e163f2
AB
110952020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11096
11097 * NEWS: Mention new behaviour of the history filename.
11098 * top.c (write_history_p): Add comment.
11099 (show_write_history_p): Add header comment, give a different
11100 message when history writing is on, but the history filename is
11101 empty.
11102 (history_filename): Add comment.
11103 (history_filename_empty): New function.
11104 (show_history_filename): Add header comment, give a different
11105 message when the filename is empty.
11106 (init_history): Compare history_filename against nullptr, and only
11107 read history if the filename is not empty.
11108 (set_history_filename): Add header comment, and only make
11109 non-empty filenames absolute.
11110 (init_main): Make the filename argument to 'set history filename'
11111 optional.
11112
81b86b97
CB
111132020-03-02 Christian Biesinger <cbiesinger@google.com>
11114
11115 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11116 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11117 (fetch_fp_register): Update.
11118 (fetch_fp_regs): Update.
11119 (store_fp_register): Update.
11120 (store_fp_regs): Update.
11121 (arm_netbsd_nat_target::read_description): New function.
11122 (fetch_elfcore_registers): Update.
11123
24ed6739
AB
111242020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11125
11126 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11127 general_thread if the stop reply is missing a thread-id.
11128 (remote_target::process_stop_reply): Use the first non-exited
11129 thread if the target didn't pass a thread-id.
11130 * infrun.c (do_target_wait): Move call to
11131 switch_to_inferior_no_thread to ....
11132 (do_target_wait_1): ... here.
11133
a84bb2a0
JT
111342020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11135
11136 * debuginfod-support.c: Include defs.h first.
11137
658dadf0
TV
111382020-02-28 Tom de Vries <tdevries@suse.de>
11139
11140 * symfile.c (set_initial_language): Use default language for lookup.
11141
4ebe4877
SM
111422020-02-28 Simon Marchi <simon.marchi@efficios.com>
11143
11144 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11145 reader variable, pass `this` to read_cutu_die_from_dwo.
11146
e5da1139
AM
111472020-02-27 Aaron Merey <amerey@redhat.com>
11148
11149 * source.c (open_source_file): Check for nullptr when computing
11150 srcpath.
11151
317f7127
TT
111522020-02-27 Tom Tromey <tromey@adacore.com>
11153
11154 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11155 member.
11156 (dwarf2_add_field): Don't update nfields.
11157 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11158
3104d9ee
AB
111592020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11160
11161 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11162 abs.
11163
b83470bf
TT
111642020-02-26 Tom Tromey <tom@tromey.com>
11165
11166 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11167 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11168 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11169 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11170 per_cu_data.
11171
edfe0a0c
TT
111722020-02-26 Tom Tromey <tom@tromey.com>
11173
11174 * dwarf2/index-write.c (psym_index_map): Change type.
11175 (add_address_entry_worker, write_one_signatured_type)
11176 (recursively_count_psymbols, recursively_write_psymbols)
11177 (class debug_names, psyms_seen_size, write_gdbindex)
11178 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11179
0d79cdc4
AM
111802020-02-26 Aaron Merey <amerey@redhat.com>
11181
11182 * Makefile.in: Handle optional debuginfod support.
11183 * NEWS: Update.
11184 * README: Add --with-debuginfod summary.
11185 * config.in: Regenerate.
11186 * configure: Regenerate.
11187 * configure.ac: Handle optional debuginfod support.
11188 * debuginfod-support.c: debuginfod helper functions.
11189 * debuginfod-support.h: Ditto.
11190 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11191 summary.
11192 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11193 when a dwz file cannot be found.
11194 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11195 debuginfo file cannot be found.
11196 * source.c (open_source_file): Query debuginfod servers when a
11197 source file cannot be found.
11198 * top.c (print_gdb_configuration): Include
11199 --{with,without}-debuginfod in the output.
11200
b65ce565
JG
112012020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11202
11203 * thread.c (thr_try_catch_cmd): Print thread name.
11204
d4c9a4f8
SM
112052020-02-26 Simon Marchi <simon.marchi@efficios.com>
11206
11207 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11208 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11209 dwarf2_fetch_die_type_sect_off): Move to...
11210 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11211 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11212 dwarf2_fetch_die_type_sect_off): ... here.
11213 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11214 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11215 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11216
0dce4280
TV
112172020-02-26 Tom de Vries <tdevries@suse.de>
11218
11219 PR gdb/25603
11220 * symfile.c (set_initial_language): Exit-early if
11221 language_mode == language_mode_manual.
11222
450a1bfc
SM
112232020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11224
11225 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11226 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11227 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11228
9e80cfa1
AB
112292020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11230
11231 * gdbtypes.c (create_array_type_with_stride): Handle negative
11232 array strides.
11233 * valarith.c (value_subscripted_rvalue): Likewise.
11234
09624f1f
LM
112352020-02-25 Luis Machado <luis.machado@linaro.org>
11236
11237 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11238
8cb5117c
SM
112392020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11240
11241 * loc.h (dwarf2_get_die_type): Move to...
11242 * read.h (dwarf2_get_die_type): ... here.
11243 * read.c (dwarf2_get_die_type): Move doc to header.
11244
c325c44e
JB
112452020-02-25 Joel Brobecker <brobecker@adacore.com>
11246
11247 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11248 'gnulib/Makefile.in' to the list.
11249
4ac93832
TT
112502020-02-24 Tom Tromey <tom@tromey.com>
11251
11252 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11253 Remove.
11254 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11255 XOBNEWVEC.
11256
197400e8
TT
112572020-02-24 Tom Tromey <tom@tromey.com>
11258
11259 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11260 New method.
11261 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11262 (dw2_do_instantiate_symtab, dw2_get_file_names)
11263 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11264
76935768
TT
112652020-02-24 Tom Tromey <tom@tromey.com>
11266
11267 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11268 make_scoped_restore.
11269 (dwarf2_psymtab::read_symtab): Don't clear
11270 reading_partial_symbols.
11271
a88ef40d
TV
112722020-02-24 Tom de Vries <tdevries@suse.de>
11273
11274 PR gdb/25592
11275 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11276
c9af6521
TV
112772020-02-24 Tom de Vries <tdevries@suse.de>
11278
11279 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11280 commands layout next/prev/regs.
11281
5707a07a
TT
112822020-02-22 Tom Tromey <tom@tromey.com>
11283
11284 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11285 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11286
3b0fb49e
TT
112872020-02-22 Tom Tromey <tom@tromey.com>
11288
11289 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11290
283be8bf
TT
112912020-02-22 Tom Tromey <tom@tromey.com>
11292
11293 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11294 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11295 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11296 * tui/tui.c (_initialize_tui): Add usage text.
11297
ca793b96
TT
112982020-02-22 Tom Tromey <tom@tromey.com>
11299
11300 * tui/tui-win.c (tui_set_focus_command)
11301 (tui_set_win_height_command): Use error_no_arg.
11302 (_initialize_tui_win): Update help text.
11303 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11304
432b5c40
TT
113052020-02-22 Tom Tromey <tom@tromey.com>
11306
11307 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11308 * tui/tui-disasm.h (struct tui_disasm_window)
11309 <display_start_addr>: Declare.
11310 * tui/tui-source.h (struct tui_source_window)
11311 <display_start_addr>: Declare.
11312 * tui/tui-winsource.h (struct tui_source_window_base)
11313 <show_source_line, display_start_addr>: New methods.
11314 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11315 Rename and move to protected section.
11316 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11317 (tui_source_window_base::do_erase_source_content): Update.
11318 (tui_source_window_base::show_source_line): Now a method.
11319 (tui_source_window_base::show_source_content)
11320 (tui_source_window_base::tui_source_window_base)
11321 (tui_source_window_base::rerender)
11322 (tui_source_window_base::refill)
11323 (tui_source_window_base::do_scroll_horizontal)
11324 (tui_source_window_base::set_is_exec_point_at)
11325 (tui_source_window_base::update_breakpoint_info)
11326 (tui_source_window_base::update_exec_info): Update.
11327 * tui/tui-source.c (tui_source_window::set_contents)
11328 (tui_source_window::showing_source_p)
11329 (tui_source_window::do_scroll_vertical)
11330 (tui_source_window::location_matches_p)
11331 (tui_source_window::line_is_displayed): Update.
11332 (tui_source_window::display_start_addr): New method.
11333 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11334 (tui_disasm_window::do_scroll_vertical)
11335 (tui_disasm_window::location_matches_p): Update.
11336 (tui_disasm_window::display_start_addr): New method.
11337
01b1af32
TT
113382020-02-22 Tom Tromey <tom@tromey.com>
11339
11340 * NEWS: Add entry for gdb.register_window_type.
11341 * tui/tui-layout.h (window_factory): New typedef.
11342 (tui_register_window): Declare.
11343 * tui/tui-layout.c (saved_tui_windows): New global.
11344 (tui_apply_current_layout): Use it.
11345 (tui_register_window): New function.
11346 * python/python.c (do_start_initialization): Call
11347 gdbpy_initialize_tui.
11348 (python_GdbMethods): Add "register_window_type" function.
11349 * python/python-internal.h (gdbpy_register_tui_window)
11350 (gdbpy_initialize_tui): Declare.
11351 * python/py-tui.c: New file.
11352 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11353
fc96d20b
TT
113542020-02-22 Tom Tromey <tom@tromey.com>
11355
11356 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11357
935c78c0
TT
113582020-02-22 Tom Tromey <tom@tromey.com>
11359
11360 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11361 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11362 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11363 (tui_set_win_focus_to): Move from tui-win.c.
11364
0240c8f1
TT
113652020-02-22 Tom Tromey <tom@tromey.com>
11366
11367 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11368 functions.
11369 (known_window_types): New global.
11370 (tui_get_window_by_name): Reimplement.
11371 (initialize_known_windows): New function.
11372 (validate_window_name): Rewrite.
11373 (_initialize_tui_layout): Call initialize_known_windows.
11374
fdb01f0c
TT
113752020-02-22 Tom Tromey <tom@tromey.com>
11376
11377 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11378 Remove constants.
11379 * tui/tui-winsource.h (struct tui_source_window_base)
11380 <tui_source_window_base>: Remove parameter.
11381 * tui/tui-winsource.c
11382 (tui_source_window_base::tui_source_window_base): Remove
11383 parameter.
11384 (tui_source_window_base::refill): Update.
11385 * tui/tui-stack.h (struct tui_locator_window)
11386 <tui_locator_window>: Update.
11387 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11388 Default the constructor.
11389 * tui/tui-regs.h (struct tui_data_item_window)
11390 <tui_data_item_window>: Default the constructor.
11391 (struct tui_data_window) <tui_data_window>: Likewise.
11392 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11393 Default the constructor.
11394 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11395 Default the constructor.
11396 <type>: Remove.
11397 (struct tui_win_info) <tui_win_info>: Default the constructor.
11398 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11399 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11400 Default the constructor.
11401
865a5aec
TT
114022020-02-22 Tom Tromey <tom@tromey.com>
11403
11404 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11405 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11406 * tui/tui-win.c (tui_resize_all): Don't call
11407 tui_delete_invisible_windows.
11408 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11409 done.
11410 (tui_set_layout): Update.
11411 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11412 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11413 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11414
e098d18c
TT
114152020-02-22 Tom Tromey <tom@tromey.com>
11416
11417 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11418 correctly.
11419
eb9c8874
TT
114202020-02-22 Tom Tromey <tom@tromey.com>
11421
11422 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11423
7eed1a8e
TT
114242020-02-22 Tom Tromey <tom@tromey.com>
11425
11426 * tui/tui-winsource.h (struct tui_source_window_iterator)
11427 <inner_iterator>: New etytypedef.
11428 <tui_source_window_iterator>: Take "end" parameter.
11429 <tui_source_window_iterator>: Take iterator.
11430 <operator*, advance>: Update.
11431 <m_iter>: Change type.
11432 <m_end>: New field.
11433 (struct tui_source_windows) <begin, end>: Update.
11434 * tui/tui-layout.c (tui_windows): New global.
11435 (tui_apply_current_layout): Clear tui_windows.
11436 (tui_layout_window::apply): Update tui_windows.
11437 * tui/tui-data.h (tui_windows): Declare.
11438 (all_tui_windows): Now inline function.
11439 (class tui_window_iterator, struct all_tui_windows): Remove.
11440
7c043ba6
TT
114412020-02-22 Tom Tromey <tom@tromey.com>
11442
11443 PR tui/17850:
11444 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11445 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11446 "height" argument.
11447 (class tui_layout_window) <get_sizes>: Likewise.
11448 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11449 argument.
11450 <get_sizes>: Add "height" argument.
11451 <m_vertical>: New field.
11452 * tui/tui-layout.c (tui_layout_split::clone): Update.
11453 (tui_layout_split::get_sizes): Add "height" argument.
11454 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11455 (tui_new_layout_command): Parse "-horizontal".
11456 (_initialize_tui_layout): Update help string.
11457 (tui_layout_split::specification): Add "-horizontal" when needed.
11458 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11459 argument.
11460 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11461 New methods.
11462
6bc56648
TT
114632020-02-22 Tom Tromey <tom@tromey.com>
11464
11465 * tui/tui-layout.h (enum tui_adjust_result): New.
11466 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11467 (class tui_layout_window) <adjust_size>: Return
11468 tui_adjust_result. Rewrite.
11469 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11470 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11471
c22fef7e
TT
114722020-02-22 Tom Tromey <tom@tromey.com>
11473
11474 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11475 parameter and return types.
11476 (class tui_layout_base) <specification>: Add "depth".
11477 (class tui_layout_window) <specification>: Add "depth".
11478 (class tui_layout_split) <specification>: Add "depth".
11479 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11480 and return types.
11481 (tui_new_layout_command): Parse sub-layouts.
11482 (_initialize_tui_layout): Update help string.
11483 (tui_layout_window::specification): Add "depth".
11484 (add_layout_command): Update.
11485
ee325b61
TT
114862020-02-22 Tom Tromey <tom@tromey.com>
11487
11488 * NEWS: Add "tui new-layout" item.
11489 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11490 Add new-layout command to help text.
11491 (validate_window_name): New function.
11492 (tui_new_layout_command): New function.
11493 (_initialize_tui_layout): Register "new-layout".
11494 (tui_layout_window::specification): New method.
11495 (tui_layout_window::specification): New method.
11496 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11497 method.
11498 (class tui_layout_window) <specification>: New method.
11499 (class tui_layout_split) <specification>: New method.
11500
416eb92d
TT
115012020-02-22 Tom Tromey <tom@tromey.com>
11502
11503 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11504 * tui/tui-win.c (window_name_completer): Update comment.
11505 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11506 Declare method.
11507 (class tui_layout_window) <replace_window>: Likewise.
11508 (class tui_layout_split) <replace_window>: Likewise.
11509 (tui_set_layout): Don't declare.
11510 (tui_set_initial_layout): Declare function.
11511 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11512 (asm_regs_layout): New globals.
11513 (tui_current_layout, show_layout): Remove.
11514 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11515 (find_layout, tui_apply_layout): New function.
11516 (layout_completer): Remove.
11517 (tui_next_layout): Reimplement.
11518 (tui_next_layout_command): New function.
11519 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11520 (tui_regs_layout): Reimplement.
11521 (tui_regs_layout_command): New function.
11522 (extract_display_start_addr): Rewrite.
11523 (next_layout, prev_layout): Remove.
11524 (tui_layout_window::replace_window): New method.
11525 (tui_layout_split::replace_window): New method.
11526 (destroy_layout): New function.
11527 (layout_list): New global.
11528 (add_layout_command): New function.
11529 (initialize_layouts): Update.
11530 (tui_layout_command): New function.
11531 (_initialize_tui_layout): Install "layout" commands.
11532 * tui/tui-data.h (enum tui_layout_type): Remove.
11533 (tui_current_layout): Don't declare.
11534
0dbc2fc7
TT
115352020-02-22 Tom Tromey <tom@tromey.com>
11536
11537 * tui/tui-regs.c (tui_reg_layout): Remove.
11538 (tui_reg_command): Use tui_regs_layout.
11539 * tui/tui-layout.h (tui_reg_command): Declare.
11540 * tui/tui-layout.c (tui_reg_command): New function.
11541
5afe342e
TT
115422020-02-22 Tom Tromey <tom@tromey.com>
11543
11544 * tui/tui.c (tui_rl_delete_other_windows): Call
11545 tui_remove_some_windows.
11546 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11547 Declare method.
11548 (class tui_layout_window) <remove_windows>: New method.
11549 (class tui_layout_split) <remove_windows>: Declare.
11550 (tui_remove_some_windows): Declare.
11551 * tui/tui-layout.c (tui_remove_some_windows): New function.
11552 (tui_layout_split::remove_windows): New method.
11553
427326a8
TT
115542020-02-22 Tom Tromey <tom@tromey.com>
11555
11556 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11557 * tui/tui-layout.h (tui_next_layout): Declare.
11558 * tui/tui-layout.c (tui_next_layout): New function.
11559
3fe12b6d
TT
115602020-02-22 Tom Tromey <tom@tromey.com>
11561
11562 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11563 correct coordinates.
11564
59b8b5d2
TT
115652020-02-22 Tom Tromey <tom@tromey.com>
11566
11567 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11568 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11569 DATA_WIN case.
11570
2a3d458b
TT
115712020-02-22 Tom Tromey <tom@tromey.com>
11572
11573 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11574 TUI_DISASM_WIN, not tui_win_list.
11575
3f0cbb04
TT
115762020-02-22 Tom Tromey <tom@tromey.com>
11577
11578 * valprint.c (generic_val_print_enum_1)
11579 (val_print_type_code_flags): Style member names.
11580 * rust-lang.c (val_print_struct, rust_print_enum)
11581 (rust_print_struct_def, rust_internal_print_type): Style member
11582 names.
11583 * p-valprint.c (pascal_object_print_value_fields): Style member
11584 names. Only call fprintf_symbol_filtered for static members.
11585 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11586 * f-valprint.c (f_val_print): Style member names.
11587 * f-typeprint.c (f_type_print_base): Style member names.
11588 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11589 call fprintf_symbol_filtered for static members.
11590 (cp_print_class_member): Style member names.
11591 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11592 member names.
11593 * ada-valprint.c (ada_print_scalar): Style enum names.
11594 (ada_val_print_enum): Likewise.
11595 * ada-typeprint.c (print_enum_type): Style enum names.
11596
d4d947ae
TT
115972020-02-21 Tom Tromey <tom@tromey.com>
11598
11599 * psympriv.h (struct partial_symtab): Update comment.
11600
e94e944b
TT
116012020-02-21 Tom Tromey <tromey@adacore.com>
11602
11603 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11604 type is CORE_ADDR.
11605
1eb73179
TV
116062020-02-21 Tom de Vries <tdevries@suse.de>
11607
11608 PR gdb/25534
11609 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11610 if dependencies[i]->user != NULL.
11611
4f180d53
AT
116122020-02-21 Ali Tamur <tamur@google.com>
11613
11614 * dwarf2/read.c (dwarf2_name): Add null check.
11615
22b6cd70
TT
116162020-02-20 Tom Tromey <tom@tromey.com>
11617
11618 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11619 ">=", in binary search.
11620 (dwarf2_find_containing_comp_unit): New overload.
11621 (run_test): New self-test.
11622 (_initialize_dwarf2_read): Register new test.
11623
bd0cf5a6
NC
116242020-02-20 Nelson Chu <nelson.chu@sifive.com>
11625
11626 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11627 * riscv-tdep.h: Likewise.
11628 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11629 rv32-only CSR.
11630 * features/riscv/64bit-csr.xml: Regenerated.
11631
3f702acd
SDJ
116322020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11633 Tom Tromey <tom@tromey.com>
11634
11635 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11636 of 'fputc_unfiltered'.
11637 (putchar_unfiltered): Call 'fputc_unfiltered'.
11638 (fputc_unfiltered): Call 'fputs_unfiltered'.
11639
d13c7322
AB
116402020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11641
11642 * config.in: Regenerate.
11643 * configure: Regenerate.
11644 * configure.ac: Add --with-python-libdir option.
11645 * main.c: Use WITH_PYTHON_LIBDIR.
11646
869d8950
TT
116472020-02-19 Tom Tromey <tom@tromey.com>
11648
11649 * symtab.c (general_symbol_info::compute_and_set_names): Use
11650 obstack_strndup. Simplify call to symbol_set_demangled_name.
11651
298e9637
SM
116522020-02-19 Simon Marchi <simon.marchi@efficios.com>
11653
11654 * dwarf2/read.c (allocate_signatured_type_table,
11655 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11656 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11657 Remove objfile parameter, update all callers.
11658
08410482
DE
116592020-02-19 Doug Evans <dje@google.com>
11660
11661 PR rust/25535
11662 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11663 rust_enum_variant calculation.
11664
dfdeeca1
TT
116652020-02-19 Tom Tromey <tromey@adacore.com>
11666
11667 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11668
2ef5453b
TT
116692020-02-19 Tom Tromey <tromey@adacore.com>
11670
11671 * ada-lang.c (cache_symbol): Use obstack_strdup.
11672
9f1528a1
AB
116732020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11674
11675 * configure: Regenerate.
11676
d3c22fa8
TT
116772020-02-19 Tom Tromey <tromey@adacore.com>
11678
11679 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11680 NULL check.
11681
bf84f706
MR
116822020-02-19 Maciej W. Rozycki <macro@wdc.com>
11683
11684 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11685
d1c9b20f
AB
116862020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11687
11688 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11689 if GDBSERVER is not defined.
11690 (riscv_tdesc_cache): Likewise, also store const target_desc.
11691 (STATIC_IN_GDB): Define.
11692 (riscv_create_target_description): Update declaration with
11693 STATIC_IN_GDB.
11694 (riscv_lookup_target_description): New function, only define if
11695 GDBSERVER is not defined.
11696 * arch/riscv.h (riscv_create_target_description): Declare only
11697 when GDBSERVER is defined.
11698 (riscv_lookup_target_description): New declaration when GDBSERVER
11699 is not defined.
11700 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11701 (riscv_linux_read_features): ...this, and return
11702 riscv_gdbarch_features instead of target_desc.
11703 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11704 (riscv_linux_read_description): Rename to...
11705 (riscv_linux_read_features): ...this.
11706 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11707 Update to use riscv_gdbarch_features and
11708 riscv_lookup_target_description.
11709 * riscv-tdep.c (riscv_find_default_target_description): Use
11710 riscv_lookup_target_description instead of
11711 riscv_create_target_description.
11712
373d7ac0
SM
117132020-02-18 Simon Marchi <simon.marchi@efficios.com>
11714
11715 * valprint.c (generic_val_print_enum_1): When printing a flag
11716 enum with value 0 and there is no enumerator with value 0, print
11717 just "0" instead of "(unknown: 0x0)".
11718
b29a2df0
SM
117192020-02-18 Simon Marchi <simon.marchi@efficios.com>
11720
11721 * valprint.c (generic_val_print_enum_1): Print unknown part of
11722 flag enum in hex.
11723
6740f0cc
SM
117242020-02-18 Simon Marchi <simon.marchi@efficios.com>
11725
11726 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11727 flag enums to contain duplicate enumerators.
11728 * valprint.c (generic_val_print_enum_1): Update comment.
11729
edd45eb0
SM
117302020-02-18 Simon Marchi <simon.marchi@efficios.com>
11731
11732 * dwarf2/read.c: Include "count-one-bits.h".
11733 (update_enumeration_type_from_children): If an enumerator has
11734 multiple bits set, don't treat the enumeration as a "flag enum".
11735 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11736 of flag enums have 0 or 1 bit set.
11737
6d0cf446
BE
117382020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11739
11740 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11741 conversion.
11742 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11743 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11744 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11745 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11746 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11747
7001c1b7
SM
117482020-02-18 Simon Marchi <simon.marchi@efficios.com>
11749
11750 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11751
fdb61c6c
SM
117522020-02-14 Simon Marchi <simon.marchi@efficios.com>
11753
11754 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11755 displaced_step_closure_up.
11756 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11757 (struct displaced_step_closure_up):
11758 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11759 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11760 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11761 Likewise.
11762 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11763 * gdbarch.c, gdbarch.h: Re-generate.
11764 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11765 displaced_step_closure_up.
11766 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11767 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11768 * infrun.h (displaced_step_closure_up): New type alias.
11769 (struct displaced_step_inferior_state) <step_closure>: Change
11770 type to displaced_step_closure_up.
11771 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11772 displaced_step_closure_up.
11773 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11774
a4a38eb4
TT
117752020-02-14 Tom Tromey <tom@tromey.com>
11776
11777 * minidebug.c (gnu_debug_key): New global.
11778 (find_separate_debug_file_in_section): Use it.
11779
e8217e61
SM
117802020-02-14 Simon Marchi <simon.marchi@efficios.com>
11781
11782 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11783 std::unique_ptr.
11784 * gdbarch.c: Re-generate.
11785 * gdbarch.h: Re-generate.
11786 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11787 change.
11788 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11789 type to std::unique_ptr.
11790 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11791 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11792 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11793 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11794 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11795 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11796 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11797 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11798 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11799
d8d83535
SM
118002020-02-14 Simon Marchi <simon.marchi@efficios.com>
11801
11802 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11803 std::unique_ptr.
11804 (displaced_step_clear): Rename to...
11805 (displaced_step_reset): ... this. Just call displaced->reset ().
11806 (displaced_step_clear_cleanup): Rename to...
11807 (displaced_step_reset_cleanup): ... this.
11808 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11809 (displaced_step_fixup): Likewise.
11810 (resume_1): Likewise.
11811 (handle_inferior_event): Restore child's memory before calling
11812 displaced_step_fixup on the parent.
11813 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11814 to std::unique_ptr.
11815 <step_closure>: Change type to std::unique_ptr.
11816
5f661e03
SM
118172020-02-14 Simon Marchi <simon.marchi@efficios.com>
11818
11819 * arm-tdep.c: Include count-one-bits.h.
11820 (cleanup_block_store_pc): Use count_one_bits.
11821 (cleanup_block_load_pc): Use count_one_bits.
11822 (arm_copy_block_xfer): Use count_one_bits.
11823 (thumb2_copy_block_xfer): Use count_one_bits.
11824 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11825 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11826 (thumb_get_next_pcs_raw): Use count_one_bits.
11827 (arm_get_next_pcs_raw): Use count_one_bits_l.
11828 * arch/arm.c (bitcount): Remove.
11829 * arch/arm.h (bitcount): Remove.
11830
8084e579
TT
118312020-02-14 Tom Tromey <tromey@adacore.com>
11832
11833 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11834 Update.
11835 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11836 * dwarf2/loc.c (call_site_find_chain_1): Return
11837 unique_xmalloc_ptr.
11838 (call_site_find_chain): Likewise.
11839
258bf0ee
RB
118402020-02-14 Richard Biener <rguenther@suse.de>
11841
11842 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11843 on expression with division operators.
11844
f98a8458
AKS
118452020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11846
11847 * MAINTAINERS (Write After Approval): Adding myself.
11848
d1437c0e
TT
118492020-02-12 Tom Tromey <tom@tromey.com>
11850
11851 * event-loop.c (event_data, gdb_event, event_handler_func):
11852 Remove.
11853
3d4560f7
TT
118542020-02-12 Tom Tromey <tom@tromey.com>
11855
11856 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11857 (dwarf2_frame_objfile_data): Add comment.
11858 (find_comp_unit, set_comp_unit): New functions.
11859 (dwarf2_frame_find_fde): Use find_comp_unit.
11860 (dwarf2_build_frame_info): Use set_comp_unit.
11861
21982304
TT
118622020-02-12 Tom Tromey <tom@tromey.com>
11863
11864 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11865 (comp_unit): Don't initialize objfile.
11866 (execute_cfa_program): Add text_offset parameter.
11867 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11868 (dwarf2_frame_cache): Update.
11869 (dwarf2_build_frame_info): Don't set "objfile" member.
11870
4debb237
TT
118712020-02-12 Tom Tromey <tom@tromey.com>
11872
11873 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11874 (decode_frame_entry): Likewise.
11875 (dwarf2_build_frame_info): Update.
11876
0d404d44
TT
118772020-02-12 Tom Tromey <tom@tromey.com>
11878
11879 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11880 (decode_frame_entry_1): Use the comp_unit obstack.
11881
a7a3ae5c
TT
118822020-02-12 Tom Tromey <tom@tromey.com>
11883
11884 * dwarf2/frame.c (struct comp_unit): Add initializers and
11885 constructor.
11886 (dwarf2_frame_objfile_data): Store a comp_unit.
11887 (dwarf2_frame_find_fde): Update.
11888 (dwarf2_build_frame_info): Use "new".
11889
a9d65418
TT
118902020-02-12 Tom Tromey <tom@tromey.com>
11891
11892 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11893 (dwarf2_fde_table): Typedef for std::vector.
11894 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11895 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11896 (decode_frame_entry): Update.
11897 (dwarf2_build_frame_info): Use "new".
11898
7559c217
CB
118992020-02-12 Christian Biesinger <cbiesinger@google.com>
11900
11901 * arm-tdep.c (arm_gdbarch_init): Update.
11902 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11903 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11904 have_neon, is_m>: Change to bool.
11905
aeefc73c
CB
119062020-02-12 Christian Biesinger <cbiesinger@google.com>
11907
11908 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11909
d27b8e5f
TT
119102020-02-12 Tom Tromey <tom@tromey.com>
11911
11912 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11913
cd5900f3
HD
119142020-02-12 Hannes Domani <ssbssa@yahoo.de>
11915
11916 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11917 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11918
f056b22b
TT
119192020-02-11 Tom Tromey <tom@tromey.com>
11920
11921 * psymtab.h: Update comment.
11922
f92ff6b5
TT
119232020-02-11 Tom Tromey <tom@tromey.com>
11924
11925 * gdb_obstack.h (struct auto_obstack): Use
11926 DISABLE_COPY_AND_ASSIGN.
11927
3fd6912b
TT
119282020-02-11 Tom Tromey <tom@tromey.com>
11929
11930 * dwarf2/frame.h (struct objfile): Don't forward declare.
11931
69ed9b74
CB
119322020-02-11 Christian Biesinger <cbiesinger@google.com>
11933
11934 * cris-tdep.c (cris_supply_gregset): Change signature to match
11935 what struct regset expects.
11936 (cris_regset): New struct.
11937 (fetch_core_registers): Remove.
11938 (cris_iterate_over_regset_sections): New function.
11939 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11940 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11941
bda874f6
CB
119422020-02-11 Christian Biesinger <cbiesinger@google.com>
11943
11944 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11945 registers.
11946
754e1564
CB
119472020-02-11 Christian Biesinger <cbiesinger@google.com>
11948
11949 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11950
8ddd8e0e
SM
119512020-02-11 Simon Marchi <simon.marchi@efficios.com>
11952
11953 * configure: Re-generate.
11954
898e7f60
SM
119552020-02-11 Simon Marchi <simon.marchi@efficios.com>
11956
11957 * configure: Re-generate.
11958
58df732b
SM
119592020-02-11 Simon Marchi <simon.marchi@efficios.com>
11960
11961 * acinclude: Update warning.m4 path.
11962 * warning.m4: Move to gdbsupport.
11963
da5bd37e
TT
119642020-02-11 Tom Tromey <tromey@adacore.com>
11965
11966 * remote.c (remote_console_output): Update.
11967 * printcmd.c (printf_command): Update.
11968 * event-loop.c (gdb_wait_for_event): Update.
11969 * linux-nat.c (sigchld_handler): Update.
11970 * remote-sim.c (gdb_os_write_stdout): Update.
11971 (gdb_os_flush_stdout): Update.
11972 (gdb_os_flush_stderr): Update.
11973 (gdb_os_write_stderr): Update.
11974 * exceptions.c (print_exception): Update.
11975 * remote-fileio.c (remote_fileio_func_read): Update.
11976 (remote_fileio_func_write): Update.
11977 * tui/tui.c (tui_enable): Update.
11978 * tui/tui-interp.c (tui_interp::init): Update.
11979 * utils.c (init_page_info): Update.
11980 (putchar_unfiltered, fputc_unfiltered): Update.
11981 (gdb_flush): Update.
11982 (emit_style_escape): Update.
11983 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11984 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11985 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11986 (stderr_file::write): Update.
11987 (stderr_file::puts): Update.
11988 * ui-file.h (ui_file_isatty, ui_file_write)
11989 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11990 (ui_file_puts): Don't declare.
11991
85f0dd3c
TV
119922020-02-10 Tom de Vries <tdevries@suse.de>
11993
11994 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11995 sentinel to char *.
11996
2e927613
TV
119972020-02-09 Tom de Vries <tdevries@suse.de>
11998
11999 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12000 filename if it matches "<artificial>".
12001
6bafc845
HD
120022020-02-09 Hannes Domani <ssbssa@yahoo.de>
12003
12004 * windows-tdep.c (struct enum_value_name): New struct.
12005 (create_enum): New function.
12006 (windows_get_siginfo_type): Create and use enum types.
12007
7928d571
HD
120082020-02-09 Hannes Domani <ssbssa@yahoo.de>
12009
12010 * NEWS: Mention $_siginfo support for Windows.
12011 * windows-nat.c (handle_exception): Set siginfo_er.
12012 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12013 (windows_xfer_siginfo): New function.
12014 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12015 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12016 (init_windows_gdbarch_data): New function.
12017 (get_windows_gdbarch_data): New function.
12018 (windows_get_siginfo_type): New function.
12019 (windows_init_abi): Register windows_get_siginfo_type.
12020 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12021
6751ebae
TT
120222020-02-08 Tom Tromey <tom@tromey.com>
12023
12024 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12025 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12026 <keep>: Declare method.
12027 <m_keep>: Remove member.
12028 <~cutu_reader>: Remove.
12029 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12030 (cutu_reader::cutu_reader): Update.
12031 (cutu_reader::keep): Rename from ~cutu_reader.
12032 (process_psymtab_comp_unit, build_type_psymtabs_1)
12033 (process_skeletonless_type_unit, load_partial_comp_unit)
12034 (load_full_comp_unit, dwarf2_read_addr_index)
12035 (read_signatured_type): Update.
12036
135f5437
TT
120372020-02-08 Tom Tromey <tom@tromey.com>
12038
12039 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12040 "want_partial_unit" parameter.
12041 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12042 Inline check for DW_TAG_partial_unit.
12043 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12044
9f66ff1c
TT
120452020-02-08 Tom Tromey <tom@tromey.com>
12046
12047 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12048 read.c.
12049 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12050 read.c.
12051
c8a7a66f
TT
120522020-02-08 Tom Tromey <tom@tromey.com>
12053
12054 * dwarf2/read.c (read_address): Move to comp-unit.c.
12055 (dwarf2_rnglists_process, dwarf2_ranges_process)
12056 (read_attribute_value, dwarf_decode_lines_1)
12057 (var_decode_location, decode_locdesc): Update.
12058 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12059 read.c. Remove "cu" parameter.
12060 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12061 method.
12062
8266302d
TT
120632020-02-08 Tom Tromey <tom@tromey.com>
12064
12065 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12066 (read_indirect_line_string): Update.
12067 * dwarf2/comp-unit.c (read_offset): Remove.
12068 (read_comp_unit_head): Update.
12069 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12070 method.
12071 (read_offset): Don't declare.
12072
4057dfde
TT
120732020-02-08 Tom Tromey <tom@tromey.com>
12074
12075 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12076 * dwarf2/read.c (struct comp_unit_head): Move to
12077 dwarf2/comp-unit.h.
12078 (enum class rcuh_kind): Move to comp-unit.h.
12079 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12080 (read_comp_unit_head, error_check_comp_unit_head)
12081 (read_and_check_comp_unit_head): Move to comp-unit.c.
12082 (read_offset, dwarf_unit_type_name): Likewise.
12083 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12084 (cutu_reader::cutu_reader, read_call_site_scope)
12085 (find_partial_die, follow_die_offset): Update.
12086 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12087
24aa364d
TT
120882020-02-08 Tom Tromey <tom@tromey.com>
12089
12090 * dwarf2/read.c (read_offset_1): Move to leb.c.
12091 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12092 (dwarf_decode_macro_bytes): Update.
12093 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12094 * dwarf2/leb.h (read_offset): Declare.
12095
2c7d5afc
TT
120962020-02-08 Tom Tromey <tom@tromey.com>
12097
12098 * dwarf2/read.c (dwarf2_section_size): Remove.
12099 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12100 Update.
12101 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12102
4075cb26
TT
121032020-02-08 Tom Tromey <tom@tromey.com>
12104
12105 * dwarf2/read.c (read_initial_length): Move to leb.c.
12106 * dwarf2/leb.h (read_initial_length): Declare.
12107 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12108 handle_nonstd parameter.
12109 * dwarf2/frame.c (read_initial_length): Remove.
12110 (decode_frame_entry_1): Update.
12111
09ba997f
TT
121122020-02-08 Tom Tromey <tom@tromey.com>
12113
12114 * dwarf2/loc.c (dwarf2_find_location_expression)
12115 (dwarf_evaluate_loc_desc::get_tls_address)
12116 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12117 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12118 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12119 (dwarf2_compile_property_to_c)
12120 (dwarf2_loc_desc_get_symbol_read_needs)
12121 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12122 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12123 (loclist_describe_location, loclist_tracepoint_var_ref)
12124 (loclist_generate_c_location): Update.
12125 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12126 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12127 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12128 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12129 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12130 (dwarf2_per_cu_data::addr_size)
12131 (dwarf2_per_cu_data::ref_addr_size)
12132 (dwarf2_per_cu_data::text_offset)
12133 (dwarf2_per_cu_data::addr_type): Now methods.
12134 (per_cu_header_read_in): Make per_cu "const".
12135 (dwarf2_version): Remove.
12136 (dwarf2_per_cu_data::int_type): Now a method.
12137 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12138 (set_die_type, read_array_type, read_subrange_index_type)
12139 (read_tag_string_type, read_subrange_type): Update.
12140 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12141 offset_size, ref_addr_size, text_offset, addr_type, version,
12142 objfile, int_type, addr_sized_int_type>: Declare methods.
12143
96c738c0
TT
121442020-02-08 Tom Tromey <tom@tromey.com>
12145
12146 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12147 Move earlier.
12148
8fdd972c
TT
121492020-02-08 Tom Tromey <tom@tromey.com>
12150
12151 * dwarf2/read.h (dwarf_line_debug): Declare.
12152 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12153 * dwarf2/read.c: Move line_header code to new files.
12154 (dwarf_line_debug): No longer static.
12155 * dwarf2/line-header.c: New file.
12156 * dwarf2/line-header.h: New file.
12157
03075812
TT
121582020-02-08 Tom Tromey <tom@tromey.com>
12159
12160 * dwarf2/read.c (struct line_header) <file_full_name,
12161 file_file_name>: Return unique_xmalloc_ptr.
12162 (line_header::file_file_name): Update.
12163 (line_header::file_full_name): Update.
12164 (dw2_get_file_names_reader): Update.
12165 (macro_start_file): Update.
12166
bb822404
TT
121672020-02-08 Tom Tromey <tom@tromey.com>
12168
12169 * dwarf2/read.c (struct line_header) <file_full_name,
12170 file_file_name>: Declare methods.
12171 (dw2_get_file_names_reader): Update.
12172 (file_file_name): Now a method.
12173 (file_full_name): Likewise.
12174 (macro_start_file): Update.
12175
009b64fc
TT
121762020-02-08 Tom Tromey <tom@tromey.com>
12177
12178 * dwarf2/read.c (dwarf_always_disassemble)
12179 (show_dwarf_always_disassemble): Move to loc.c.
12180 (_initialize_dwarf2_read): Move "always-disassemble" registration
12181 to loc.c.
12182 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12183 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12184 static.
12185 (show_dwarf_always_disassemble): Move from read.c.
12186 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12187
5895093f
TT
121882020-02-08 Tom Tromey <tom@tromey.com>
12189
12190 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12191 (create_quick_file_names_table): Return htab_up.
12192 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12193 Update.
12194 * dwarf2/read.h (struct dwarf2_per_objfile)
12195 <quick_file_names_table>: Now htab_up.
12196
b3b32279
TT
121972020-02-08 Tom Tromey <tom@tromey.com>
12198
12199 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12200
1d33d811
TT
122012020-02-08 Tom Tromey <tom@tromey.com>
12202
12203 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12204 Rewrite.
12205 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12206 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12207 (abbrev_table::abbrev_table): No longer inline.
12208 (ABBREV_HASH_SIZE): Remove.
12209 (abbrev_table::m_abbrevs): Now an htab_up.
12210
86de1d91
TT
122112020-02-08 Tom Tromey <tom@tromey.com>
12212
12213 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12214 (cutu_reader): Update.
12215 (build_type_psymtabs_1): Update.
12216 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12217 (abbrev_table::alloc_abbrev): Update.
12218 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12219 (abbrev_table::read): New static method, renamed from
12220 abbrev_table_read_table.
12221 (abbrev_table::alloc_abbrev)
12222 (abbrev_table::add_abbrev): Now private.
12223 (abbrev_table::abbrev_table): Now private.
12224 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12225
0335378b
TT
122262020-02-08 Tom Tromey <tom@tromey.com>
12227
12228 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12229 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12230 htab_up.
12231
48b490f2
TT
122322020-02-08 Tom Tromey <tom@tromey.com>
12233
12234 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12235 htab_up.
12236 (lookup_dwo_unit_in_dwp): Update.
12237 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12238 on obstack.
12239
bc68fb19
TT
122402020-02-08 Tom Tromey <tom@tromey.com>
12241
12242 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12243 obstack.
12244
d15acc42
TT
122452020-02-08 Tom Tromey <tom@tromey.com>
12246
12247 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12248 line_header_hash.
12249 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12250 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12251 Change type to htab_up.
12252
eaa5fa8b
TT
122532020-02-08 Tom Tromey <tom@tromey.com>
12254
12255 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12256 htab_up. Don't allocate on obstack.
12257 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12258 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12259 Change type to htab_up.
12260
b0b6a987
TT
122612020-02-08 Tom Tromey <tom@tromey.com>
12262
12263 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12264 Change type to htab_up.
12265 * dwarf2/read.c (create_signatured_type_table_from_index)
12266 (create_signatured_type_table_from_debug_names)
12267 (create_all_type_units, add_type_unit)
12268 (lookup_dwo_signatured_type, lookup_signatured_type)
12269 (process_skeletonless_type_unit): Update.
12270 (create_debug_type_hash_table, create_debug_types_hash_table):
12271 Change type of types_htab.
12272 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12273 htab_up. Don't allocate on obstack.
12274 (create_cus_hash_table): Change type of cus_htab parameter.
12275 (struct dwo_file) <cus, tus>: Now htab_up.
12276 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12277 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12278 (queue_and_load_all_dwo_tus): Update.
12279 * dwarf2/index-write.c (write_gdbindex): Update.
12280 (write_debug_names): Update.
12281
39856def
TT
122822020-02-08 Tom Tromey <tom@tromey.com>
12283
12284 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12285 dwarf2/read.c. Remove "next" member. Add constructor ntad
12286 destructor.
12287 (struct dwarf2_per_objfile) <queue>: New member.
12288 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12289 dwarf2/read.h.
12290 (dwarf2_queue, dwarf2_queue_tail): Remove.
12291 (class dwarf2_queue_guard): Add parameter to constructor. Use
12292 DISABLE_COPY_AND_ASSIGN.
12293 <m_per_objfile>: New member.
12294 <~dwarf2_queue_guard>: Rewrite.
12295 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12296 Update.
12297 (~dwarf2_queue_item): New.
12298
3e225074
TT
122992020-02-08 Tom Tromey <tom@tromey.com>
12300
12301 * dwarf2/read.c (struct die_info) <has_children>: New member.
12302 (dw2_get_file_names_reader): Remove has_children.
12303 (dw2_get_file_names): Update.
12304 (read_cutu_die_from_dwo): Remove has_children.
12305 (cutu_reader::init_tu_and_read_dwo_dies)
12306 (cutu_reader::cutu_reader): Update.
12307 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12308 Remove has_children.
12309 (build_type_psymtabs_1, process_skeletonless_type_unit)
12310 (load_partial_comp_unit, load_full_comp_unit): Update.
12311 (create_dwo_cu_reader): Remove has_children.
12312 (create_cus_hash_table, read_die_and_children): Update.
12313 (read_full_die_1,read_full_die): Remove has_children.
12314 (read_signatured_type): Update.
12315 (class cutu_reader) <has_children>: Remove.
12316
82ca8957
TT
123172020-02-08 Tom Tromey <tom@tromey.com>
12318
12319 * dwarf2/expr.c: Rename from dwarf2expr.c.
12320 * dwarf2/expr.h: Rename from dwarf2expr.h.
12321 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12322 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12323 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12324 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12325 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12326 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12327 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12328 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12329 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12330 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12331 * dwarf2/loc.c: Rename from dwarf2loc.c.
12332 * dwarf2/loc.h: Rename from dwarf2loc.h.
12333 * dwarf2/read.c: Rename from dwarf2read.c.
12334 * dwarf2/read.h: Rename from dwarf2read.h.
12335 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12336 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12337 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12338 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12339 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12340 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12341 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12342 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12343 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12344 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12345 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12346 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12347 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12348 Update.
12349 * Makefile.in (COMMON_SFILES): Update.
12350 (HFILES_NO_SRCDIR): Update.
12351
9e35d499
TT
123522020-02-08 Tom Tromey <tom@tromey.com>
12353
12354 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12355 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12356
1eba2311
TT
123572020-02-08 Tom Tromey <tom@tromey.com>
12358
12359 * dwarf2read.h (struct die_info): Don't declare.
12360
e41c2da2
TT
123612020-02-08 Tom Tromey <tom@tromey.com>
12362
12363 * dwarf2read.h (die_info_ptr): Remove typedef.
12364
4fc6c0d5
TT
123652020-02-08 Tom Tromey <tom@tromey.com>
12366
12367 * dwarf2read.c (read_call_site_scope)
12368 (handle_data_member_location, dwarf2_add_member_fn)
12369 (mark_common_block_symbol_computed, read_common_block)
12370 (attr_to_dynamic_prop, partial_die_info::read)
12371 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12372 (dwarf2_symbol_mark_computed, set_die_type): Update.
12373 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12374 method.
12375 (attr_form_is_block): Don't declare.
12376 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12377
cd6c91b4
TT
123782020-02-08 Tom Tromey <tom@tromey.com>
12379
12380 * dwarf2read.c (dwarf2_find_base_address, )
12381 (read_call_site_scope, rust_containing_type)
12382 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12383 (handle_data_member_location, dwarf2_add_member_fn)
12384 (get_alignment, read_structure_type, process_structure_scope)
12385 (mark_common_block_symbol_computed, read_common_block)
12386 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12387 (partial_die_info::read, read_attribute_value, new_symbol)
12388 (lookup_die_type, dwarf2_get_ref_die_offset)
12389 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12390 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12391 (dwarf2_symbol_mark_computed): Update.
12392 * dwarf2/attribute.h (struct attribute) <value_as_address,
12393 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12394 methods.
12395 (value_as_address, attr_form_is_section_offset)
12396 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12397 * dwarf2/attribute.c (attribute::value_as_address)
12398 (attribute::form_is_section_offset, attribute::form_is_constant)
12399 (attribute::form_is_ref): Now methods.
12400
162dce55
TT
124012020-02-08 Tom Tromey <tom@tromey.com>
12402
12403 * dwarf2read.c (struct attribute, DW_STRING)
12404 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12405 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12406 (attr_form_is_block, attr_form_is_section_offset)
12407 (attr_form_is_constant, attr_form_is_ref): Move.
12408 * dwarf2/attribute.h: New file.
12409 * dwarf2/attribute.c: New file, from dwarf2read.c.
12410 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12411
3054dd54
TT
124122020-02-08 Tom Tromey <tom@tromey.com>
12413
12414 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12415 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12416 Move.
12417 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12418 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12419 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12420 abbrev.c.
12421 * dwarf2/abbrev.h: New file.
12422 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12423 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12424
96b79293
TT
124252020-02-08 Tom Tromey <tom@tromey.com>
12426
12427 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12428 (dwarf2_section_size, dwarf2_get_section_info)
12429 (create_signatured_type_table_from_debug_names)
12430 (create_addrmap_from_aranges, read_debug_names_from_section)
12431 (get_gdb_index_contents_from_section, read_comp_unit_head)
12432 (error_check_comp_unit_head, read_abbrev_offset)
12433 (create_debug_type_hash_table, init_cu_die_reader)
12434 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12435 (read_comp_units_from_section, create_cus_hash_table)
12436 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12437 (create_dwp_v2_section, dwarf2_rnglists_process)
12438 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12439 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12440 (read_indirect_string_from_dwz, read_addr_index_1)
12441 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12442 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12443 (fill_in_loclist_baton): Update.
12444 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12445 get_containing_section, get_bfd_owner, get_bfd_section,
12446 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12447 (dwarf2_read_section, get_section_name, get_section_file_name)
12448 (get_containing_section, get_section_bfd_owner)
12449 (get_section_bfd_section, get_section_name, get_section_file_name)
12450 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12451 declare.
12452 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12453 (dwarf2_section_info::get_bfd_owner)
12454 (dwarf2_section_info::get_bfd_section)
12455 (dwarf2_section_info::get_name)
12456 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12457 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12458 (dwarf2_section_info::read): Now methods.
12459 * dwarf-index-write.c (class debug_names): Update.
12460
2c86cff9
TT
124612020-02-08 Tom Tromey <tom@tromey.com>
12462
12463 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12464 Move to dwarf2/section.h.
12465 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12466 (get_section_bfd_section, get_section_name)
12467 (get_section_file_name, get_section_id, get_section_flags)
12468 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12469 dwarf2/section.c.
12470 * dwarf2/section.h: New file.
12471 * dwarf2/section.c: New file, from dwarf2read.c.
12472 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12473
f4382c45
TT
124742020-02-08 Tom Tromey <tom@tromey.com>
12475
12476 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12477 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12478 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12479 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12480 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12481 * dwarf2/leb.h: New file, from dwarf2read.c.
12482 * dwarf2/leb.c: New file, from dwarf2read.c.
12483 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12484 Remove.
12485 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12486 (COMMON_SFILES): Add dwarf2/leb.c.
12487
01840b7a
JB
124882020-02-08 Joel Brobecker <brobecker@adacore.com>
12489
12490 GDB 9.1 released.
12491
dfcb27e4
IB
124922020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12493
12494 PR gdb/25190:
aac66a4c
SM
12495 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12496 * gdb/remote.c (remote_console_output): Update.
12497 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12498 (ui_file_puts): ...this.
12499 * gdb/ui-file.h (ui_file_puts): Add declaration.
12500 * gdb/utils.c (emit_style_escape): Update.
12501 (flush_wrap_buffer): Update.
12502 (fputs_maybe_filtered): Update.
12503 (fputs_unfiltered): Add function.
dfcb27e4 12504
faa17681
IB
125052020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12506
aac66a4c
SM
12507 * gdb/event-loop.c (gdb_wait_for_event): Update.
12508 * gdb/printcmd.c (printf_command): Update.
12509 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12510 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12511 (gdb_os_flush_stderr): Update.
12512 * gdb/remote.c (remote_console_output): Update.
12513 * gdb/ui-file.c (gdb_flush): Rename to...
12514 (ui_file_flush): ...this.
12515 (stderr_file::write): Update.
12516 (stderr_file::puts): Update.
12517 * gdb/ui-file.h (gdb_flush): Rename to...
12518 (ui_file_flush): ...this.
12519 * gdb/utils.c (gdb_flush): Add function.
12520 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12521
5abbbe1d
TT
125222020-02-07 Tom Tromey <tromey@adacore.com>
12523
12524 PR breakpoints/24915:
12525 * source.c (find_and_open_source): Do not check basenames_may_differ.
12526
919adfe8
TT
125272020-02-07 Tom Tromey <tom@tromey.com>
12528
12529 * README: Update gdbserver documentation.
12530 * gdbserver: Move to top level.
12531 * configure.tgt (build_gdbserver): Remove.
12532 * configure.ac: Remove --enable-gdbserver.
12533 * configure: Rebuild.
12534 * Makefile.in (distclean): Don't mention gdbserver.
12535
1d5d29e7
SV
125362020-02-06 Shahab Vahedi <shahab@synopsys.com>
12537
12538 * source-cache.c (source_cache::ensure): Surround
12539 get_plain_source_lines with a try/catch.
12540 (source_cache::get_line_charpos): Get rid of try/catch
12541 and only check for the return value of "ensure".
12542 * tui/tui-source.c (tui_source_window::set_contents):
12543 Simplify "nlines" calculation.
12544
6eb1129c
SV
125452020-02-06 Shahab Vahedi <shahab@synopsys.com>
12546
12547 * MAINTAINERS (Write After Approval): Add myself.
12548
c6a42d11
CB
125492020-02-05 Christian Biesinger <cbiesinger@google.com>
12550
12551 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12552 function call.
12553
c8ecdda6
CB
125542020-02-05 Christian Biesinger <cbiesinger@google.com>
12555
12556 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12557
f6480e70
MR
125582020-02-05 Maciej W. Rozycki <macro@wdc.com>
12559
12560 * nat/riscv-linux-tdesc.h: New file.
12561 * nat/riscv-linux-tdesc.c: New file, taking code from...
12562 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12563 ... here.
12564 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12565 NATDEPFILES.
12566
dcc9fbc6
AB
125672020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12568
12569 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12570 we don't set the fake simulator ptid to the null_ptid.
12571
719546c4
SM
125722020-02-03 Simon Marchi <simon.marchi@efficios.com>
12573
12574 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12575 * gdbthread.h (class thread_info) <resumed>: Likewise.
12576 * infrun.c (resume_1): Likewise.
12577 (proceed): Likewise.
12578 (infrun_thread_stop_requested): Likewise.
12579 (stop_all_threads): Likewise.
12580 (handle_inferior_event): Likewise.
12581 (restart_threads): Likewise.
12582 (finish_step_over): Likewise.
12583 (keep_going_stepped_thread): Likewise.
12584 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12585 (linux_handle_extended_wait): Likewise.
12586 * record-btrace.c (get_thread_current_frame_id): Likewise.
12587 * record-full.c (record_full_wait_1): Likewise.
12588 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12589 * target.c (target_resume): Likewise.
12590 * thread.c (set_running_thread): Likewise.
12591
e409c542
AKS
125922020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12593
12594 * f-valprint.c (f77_print_array_1): Changed datatype of index
12595 variable to LONGEST from int to enable it to contain bound
12596 values correctly.
12597
ee98c0da
MR
125982020-02-03 Maciej W. Rozycki <macro@wdc.com>
12599
12600 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12601 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12602 offsets according to FLEN determined.
12603 (riscv_linux_nat_target::read_description): Determine FLEN
12604 dynamically.
12605 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12606 according to FLEN determined.
12607 (riscv_linux_nat_target::store_registers): Likewise.
12608
aa66aac4
SV
126092020-02-01 Shahab Vahedi <shahab@synopsys.com>
12610
12611 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12612 when reg->group is empty and reggroup is not.
12613
fd9faca8
TT
126142020-01-31 Tom Tromey <tromey@adacore.com>
12615
12616 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12617 Call beneath target's mourn_inferior after unpushing.
12618
42330a68
AB
126192020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12620
12621 PR tui/9765
12622 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12623 have enough lines to fill the screen, still return the lowest
12624 address we found.
12625
7a27a45b
AB
126262020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12627
12628 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12629 '-', '<', and '>' commands.
12630
c47f70e2
PA
126312020-01-29 Pedro Alves <palves@redhat.com>
12632 Sergio Durigan Junior <sergiodj@redhat.com>
12633
12634 * infcmd.c (construct_inferior_arguments): Assert that
12635 'argc' is greater than 0.
12636
5133a315
LM
126372020-01-29 Luis Machado <luis.machado@linaro.org>
12638
12639 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12640 (BRK_INSN_MASK): Define to 0xd4200000.
12641 (aarch64_program_breakpoint_here_p): New function.
12642 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12643 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12644 breakpoint.c.
12645 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12646 breakpoint.h
12647 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12648 call gdbarch_program_breakpoint_here_p.
12649 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12650 default_program_breakpoint_here_p, changed return type to bool and
12651 simplified.
12652 * breakpoint.h (program_breakpoint_here): Moved prototype to
12653 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12654 return type to bool.
12655 * gdbarch.c: Regenerate.
12656 * gdbarch.h: Regenerate.
12657 * gdbarch.sh (program_breakpoint_here_p): New method.
12658 * infrun.c (handle_signal_stop): Call
12659 gdbarch_program_breakpoint_here_p.
12660
168f8c6b
TT
126612020-01-26 Tom Tromey <tom@tromey.com>
12662
12663 * ctfread.c (struct ctf_fp_info): Reindent.
12664 (_initialize_ctfread): Remove.
12665
128a391f
TT
126662020-01-26 Tom Tromey <tom@tromey.com>
12667
12668 * psymtab.c (partial_map_expand_apply)
12669 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12670 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12671 (psym_print_stats, psym_expand_symtabs_for_function)
12672 (psym_map_symbol_filenames, psym_map_matching_symbols)
12673 (psym_expand_symtabs_matching)
12674 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12675 (maintenance_check_psymtabs): Use new methods.
12676 * psympriv.h (struct partial_symtab) <readin_p,
12677 get_compunit_symtab>: New methods.
12678 <readin, compunit_symtab>: Remove members.
12679 (struct standard_psymtab): New.
12680 (struct legacy_psymtab): Derive from standard_psymtab.
12681 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12682 standard_psymtab.
12683 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12684
0494dbec
TT
126852020-01-26 Tom Tromey <tom@tromey.com>
12686
12687 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12688 read_dependencies. Add assert.
12689 * psymtab.c (partial_symtab::read_dependencies): New method.
12690 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12691 method.
12692 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12693 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12694 read_dependencies.
12695 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12696 Add assert.
12697
8566b89b
TT
126982020-01-26 Tom Tromey <tom@tromey.com>
12699
12700 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12701 Call expand_psymtab.
12702 (xcoff_read_symtab): Call expand_psymtab.
12703 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12704 legacy_expand_psymtab.
12705 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12706 method.
12707 (struct legacy_psymtab) <expand_psymtab>: Implement.
12708 <legacy_expand_psymtab>: New member.
12709 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12710 (parse_partial_symbols): Set legacy_expand_psymtab.
12711 (psymtab_to_symtab_1): Change argument order. Call
12712 expand_psymtab.
12713 (new_psymtab): Set legacy_expand_psymtab.
12714 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12715 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12716 expand_psymtab.
12717 (dwarf2_psymtab::expand_psymtab): Rename from
12718 psymtab_to_symtab_1. Call expand_psymtab.
12719 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12720 (dbx_end_psymtab): Likewise.
12721 (dbx_psymtab_to_symtab_1): Change argument order. Call
12722 expand_psymtab.
12723 (dbx_read_symtab): Call expand_psymtab.
12724 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12725 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12726 (ctf_psymtab::read_symtab): Call expand_psymtab.
12727
077cbab2
TT
127282020-01-26 Tom Tromey <tom@tromey.com>
12729
12730 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12731 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12732 messages.
12733 * mdebugread.c (mdebug_read_symtab): Remove prints.
12734 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12735 assert.
12736 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12737
891813be
TT
127382020-01-26 Tom Tromey <tom@tromey.com>
12739
12740 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12741 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12742 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12743 legacy_symtab.
12744 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12745 * psymtab.c (psymtab_to_symtab): Call method.
12746 (dump_psymtab): Update.
12747 * psympriv.h (struct partial_symtab): Add virtual destructor.
12748 <read_symtab>: New method.
12749 (struct legacy_symtab): New.
12750 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12751 (struct pst_map) <pst>: Now a legacy_psymtab.
12752 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12753 (new_psymtab): Use legacy_psymtab.
12754 * dwarf2read.h (struct dwarf2_psymtab): New.
12755 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12756 * dwarf2read.c (dwarf2_create_include_psymtab)
12757 (dwarf2_build_include_psymtabs, create_type_unit_group)
12758 (create_partial_symtab, process_psymtab_comp_unit_reader)
12759 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12760 (set_partial_user): Use dwarf2_psymtab.
12761 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12762 (psymtab_to_symtab_1, process_full_comp_unit)
12763 (process_full_type_unit, dwarf2_ranges_read)
12764 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12765 (dwarf_decode_lines): Use dwarf2_psymtab.
12766 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12767 (add_address_entry_worker, write_one_signatured_type)
12768 (recursively_count_psymbols, recursively_write_psymbols)
12769 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12770 (write_debug_names): Likewise.
12771 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12772 <pst>: Now a legacy_psymtab.
12773 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12774 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12775 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12776 * ctfread.c (struct ctf_psymtab): New.
12777 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12778 ctf_psymtab.
12779 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12780 (create_partial_symtab): Return a ctf_psymtab.
12781 (scan_partial_symbols): Update.
12782
c3693a1d
TT
127832020-01-26 Tom Tromey <tom@tromey.com>
12784
12785 * xcoffread.c (xcoff_start_psymtab): Use new.
12786 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12787 renamed from start_psymtab_common.
12788 * psympriv.h (struct partial_symtab): Add new constructor.
12789 (start_psymtab_common): Don't declare.
12790 * mdebugread.c (parse_partial_symbols): Use new.
12791 * dwarf2read.c (create_partial_symtab): Use new.
12792 * dbxread.c (start_psymtab): Use new.
12793 * ctfread.c (create_partial_symtab): Use new.
12794
32caafd0
TT
127952020-01-26 Tom Tromey <tom@tromey.com>
12796
12797 * xcoffread.c (xcoff_end_psymtab): Use new.
12798 * psymtab.c (start_psymtab_common): Use new.
12799 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12800 Update.
12801 * psympriv.h (struct partial_symtab): Add parameters to
12802 constructor. Don't inline.
12803 (allocate_psymtab): Don't declare.
12804 * mdebugread.c (new_psymtab): Use new.
12805 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12806 * dbxread.c (dbx_end_psymtab): Use new.
12807
abaa2f23
TT
128082020-01-26 Tom Tromey <tom@tromey.com>
12809
12810 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12811 allocate_psymtab. Update documentation.
12812 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12813 allocate_psymtab. Do not use new.
12814 (allocate_psymtab): Use new. Update.
12815
6d94535f
TT
128162020-01-26 Tom Tromey <tom@tromey.com>
12817
12818 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12819 * psymtab.c (psym_print_stats): Update.
12820 * psympriv.h (struct partial_symtab) <readin,
12821 psymtabs_addrmap_supported, anonymous>: Now bool.
12822 * mdebugread.c (psymtab_to_symtab_1): Update.
12823 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12824 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12825 (process_full_comp_unit, process_full_type_unit): Update.
12826 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12827 * ctfread.c (psymtab_to_symtab): Update.
12828
6f17252b
TT
128292020-01-26 Tom Tromey <tom@tromey.com>
12830
12831 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12832 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12833 * psymtab.c (psymtab_storage): Delete psymtabs.
12834 (psymtab_storage::allocate_psymtab): Use new.
12835 (psymtab_storage::discard_psymtab): Use delete.
12836 * psympriv.h (struct partial_symtab): Add constructor and
12837 initializers.
12838
f6f1cebc
TT
128392020-01-26 Tom Tromey <tom@tromey.com>
12840
12841 * machoread.c: Do not include psympriv.h.
12842
e47e48f6
PW
128432020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12844
12845 * NEWS: Mention the new option and the set/show commands.
12846
a2fedca9
PW
128472020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12848
12849 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12850 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12851 (validate_exec_file): New variables, enums, functions.
12852 (exec_file_locate_attach, print_section_info): Style the filenames.
12853 (_initialize_exec): Install show_exec_file_mismatch_command and
12854 set_exec_file_mismatch_command.
12855 * gdbcore.h (validate_exec_file): Declare.
12856 * infcmd.c (attach_command): Call validate_exec_file.
12857 * remote.c ( remote_target::remote_add_inferior): Likewise.
12858
7ffa82e1
AB
128592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12860
12861 * frame.c (find_frame_sal): Move call to get_next_frame into more
12862 inner scope.
12863 * inline-frame.c (inilne_state) <inline_state>: Update argument
12864 types.
12865 (inilne_state) <skipped_symbol>: Rename to...
12866 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12867 (skip_inline_frames): Build vector of skipped symbols and use this
12868 to reate the inline_state.
12869 (inline_skipped_symbol): Add a comment and some assertions, fetch
12870 skipped symbol from the list.
12871
3d92a3e3
AB
128722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12873
12874 * buildsym.c (lte_is_less_than): Delete.
12875 (buildsym_compunit::end_symtab_with_blockvector): Create local
12876 lambda function to sort line table entries, and use
12877 std::stable_sort instead of std::sort.
12878 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12879 markers when looking for a previous line.
12880
94a72be7
AB
128812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12882
12883 * dwarf2read.c (lnp_state_machine::record_line): Include
12884 end_sequence parameter in debug print out. Record the line if we
12885 are at an end_sequence marker even if it's not the start of a
12886 statement.
12887 * symmisc.c (maintenance_print_one_line_table): Print end of
12888 sequence markers with 'END' not '0'.
12889
53af73bf
PA
128902020-01-24 Pedro Alves <palves@redhat.com>
12891
12892 PR gdb/25410
12893 * thread.c (scoped_restore_current_thread::restore): Use
12894 switch_to_inferior_no_thread.
12895 * exec.c: Include "progspace-and-thread.h".
12896 (add_target_sections, remove_target_sections):
12897 scoped_restore_current_pspace_and_thread instead of
12898 scoped_restore_current_thread.
12899 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12900 and aspace to the inferior before calling clone_program_space.
12901 Remove stale comment.
12902
3050c6f4
CB
129032020-01-24 Christian Biesinger <cbiesinger@google.com>
12904
12905 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12906 (arm_netbsd_nat_target::fetch_registers): ...this.
12907 (arm_nbsd_nat_target::store_registers): Rename to...
12908 (arm_netbsd_nat_target::store_registers): ...this.
12909
73685c7e
CB
129102020-01-24 Christian Biesinger <cbiesinger@google.com>
12911
12912 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12913 register_t.
12914
89203d40
CB
129152020-01-24 Christian Biesinger <cbiesinger@google.com>
12916
12917 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12918 Update comment.
12919 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12920 Likewise.
12921 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12922 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12923 the correct replacement (iterate_over_regset_sections).
12924 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12925 Update comment.
12926
1ba1ac88
AB
129272020-01-24 Graham Markall <graham.markall@embecosm.com>
12928
12929 PR gdb/23718
12930 * gdb/python/python.c (execute_gdb_command): Call
12931 async_enable_stdin in catch block.
12932
f3364a6d
AB
129332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12934
12935 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12936 SWITCH_THRU_ALL_UIS.
12937
733d0a67
AB
129382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12939
12940 PR tui/9765
12941 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12942 comment, add extra parameter, and update to store previous symbol
12943 when appropriate.
12944 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12945 add extra parameter.
12946 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12947 remove unneeded parameter, add try/catch around gdb_print_insn,
12948 rewrite to add items to asm_lines vector.
12949 (tui_find_backward_disassembly_start_address): New function.
12950 (tui_find_disassembly_address): Updated throughout.
12951 (tui_disasm_window::set_contents): Update for changes to
12952 tui_disassemble.
12953 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12954 number of lines to scroll.
12955
b3b3bada
SM
129562020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12957
12958 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12959 (SECT_OFF_DATA): Likewise.
12960 (SECT_OFF_RODATA): Likewise.
12961 (SECT_OFF_TEXT): Likewise.
12962 (SECT_OFF_BSS): Likewise.
12963 (struct objfile) <text_section_offset, data_section_offset>: New
12964 methods.
12965 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12966 objfile::text_section_offset.
12967 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12968 * coffread.c (coff_symtab_read): Likewise.
12969 (enter_linenos): Likewise.
12970 (process_coff_symbol): Likewise.
12971 * ctfread.c (get_objfile_text_range): Likewise.
12972 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12973 Use objfile::data_section_offset.
12974 * dwarf2-frame.c (execute_cfa_program): Use
12975 objfile::text_section_offset.
12976 (dwarf2_frame_find_fde): Likewise.
12977 * dwarf2read.c (create_addrmap_from_index): Likewise.
12978 (create_addrmap_from_aranges): Likewise.
12979 (dw2_find_pc_sect_compunit_symtab): Likewise.
12980 (process_psymtab_comp_unit_reader): Likewise.
12981 (add_partial_symbol): Likewise.
12982 (add_partial_subprogram): Likewise.
12983 (process_full_comp_unit): Likewise.
12984 (read_file_scope): Likewise.
12985 (read_func_scope): Likewise.
12986 (read_lexical_block_scope): Likewise.
12987 (read_call_site_scope): Likewise.
12988 (dwarf2_rnglists_process): Likewise.
12989 (dwarf2_ranges_process): Likewise.
12990 (dwarf2_ranges_read): Likewise.
12991 (dwarf_decode_lines_1): Likewise.
12992 (new_symbol): Likewise.
12993 (dwarf2_fetch_die_loc_sect_off): Likewise.
12994 (dwarf2_per_cu_text_offset): Likewise.
12995 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12996 * hppa-tdep.c (read_unwind_info): Likewise.
12997 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12998 * psympriv.h (struct partial_symtab): Likewise.
12999 * psymtab.c (find_pc_sect_psymtab): Likewise.
13000 * solib-svr4.c (enable_break): Likewise.
13001 * stap-probe.c (relocate_address): Use
13002 objfile::data_section_offset.
13003 * xcoffread.c (enter_line_range): Use
13004 objfile::text_section_offset.
13005 (read_xcoff_symtab): Likewise.
13006
ab53f382
SM
130072020-01-23 Simon Marchi <simon.marchi@efficios.com>
13008
13009 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13010 declaration to narrower scopes.
13011
e7eee665
SM
130122020-01-23 Simon Marchi <simon.marchi@efficios.com>
13013
13014 * darwin-nat.h (struct darwin_exception_msg, enum
13015 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13016 Move up.
13017 (class darwin_nat_target) <wait_1, check_new_threads,
13018 decode_exception_message, decode_message, stop_inferior,
13019 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13020 * darwin-nat.c (darwin_check_new_threads): Rename to...
13021 (darwin_nat_target::check_new_threads): ... this.
13022 (darwin_suspend_inferior_it): Remove.
13023 (darwin_decode_exception_message): Rename to...
13024 (darwin_nat_target::decode_exception_message): ... this.
13025 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13026 (darwin_decode_message): Rename to...
13027 (darwin_nat_target::decode_message): ... this.
13028 (cancel_breakpoint): Rename to...
13029 (darwin_nat_target::cancel_breakpoint): ... this.
13030 (darwin_wait): Rename to...
13031 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13032 instead of iterate_over_inferiors.
13033 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13034 (darwin_stop_inferior): Rename to...
13035 (darwin_nat_target::stop_inferior): ... this.
13036 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13037 (darwin_init_thread_list): Rename to...
13038 (darwin_nat_target::init_thread_list): ... this.
13039 (darwin_ptrace_him): Rename to...
13040 (darwin_nat_target::ptrace_him): ... this.
13041 (darwin_nat_target::create_inferior): Pass lambda function to
13042 fork_inferior.
13043 (darwin_nat_target::detach): Call stop_inferior instead of
13044 darwin_stop_inferior.
13045 * fork-inferior.h (fork_inferior): Change init_trace_fun
13046 parameter to gdb::function_view.
13047 * fork-inferior.c (fork_inferior): Likewise.
13048
c162ed3e
HD
130492020-01-23 Hannes Domani <ssbssa@yahoo.de>
13050
13051 * i386-cygwin-tdep.c (core_process_module_section): Update.
13052 * windows-nat.c (struct lm_info_windows): Add text_offset.
13053 (windows_xfer_shared_libraries): Update.
13054 * windows-tdep.c (windows_xfer_shared_library):
13055 Add text_offset_cached argument.
13056 * windows-tdep.h (windows_xfer_shared_library): Update.
13057
a1237872
SM
130582020-01-21 Simon Marchi <simon.marchi@efficios.com>
13059
13060 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13061
b3ee6dd9
SM
130622020-01-21 Simon Marchi <simon.marchi@efficios.com>
13063
13064 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13065 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13066 replace with range-based for.
13067 (gdbsim_interrupt_inferior): Remove.
13068 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13069 with a range-based for. Inline code from
13070 gdbsim_interrupt_inferior.
13071
f9fac3c8
SM
130722020-01-21 Simon Marchi <simon.marchi@efficios.com>
13073
13074 * infrun.c (proceed): Fix indentation.
13075
f6474de9
TT
130762020-01-21 Tom Tromey <tromey@adacore.com>
13077
13078 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13079 * python/python.c (python_extension_ops): Update.
13080 (gdbpy_colorize): New function.
13081 * python/lib/gdb/__init__.py (colorize): New function.
13082 * extension.h (ext_lang_colorize): Declare.
13083 * extension.c (ext_lang_colorize): New function.
13084 * extension-priv.h (struct extension_language_ops) <colorize>: New
13085 member.
13086 * cli/cli-style.c (_initialize_cli_style): Update help text.
13087
f0c702d4
LM
130882020-01-21 Luis Machado <luis.machado@linaro.org>
13089
13090 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13091 <cond>: Change type to bool.
13092 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13093 (aarch64_displaced_step_cb): Likewise.
13094 (aarch64_displaced_step_tb): Likewise.
13095
1ab139e5
LM
130962020-01-21 Luis Machado <luis.machado@linaro.org>
13097
13098 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13099 output.
13100
0c271889
LM
131012020-01-21 Luis Machado <luis.machado@linaro.org>
13102
13103 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13104 <pc_adjust>: Adjust the documentation.
13105 (aarch64_displaced_step_fixup): Check if PC really moved before
13106 adjusting it.
13107
4d89c1c7
TT
131082020-01-19 Tom Tromey <tom@tromey.com>
13109
13110 * disasm.c (~gdb_disassembler): New destructor.
13111 (gdb_buffered_insn_length): Call disassemble_free_target.
13112 * disasm.h (class gdb_disassembler): Declare destructor. Use
13113 DISABLE_COPY_AND_ASSIGN.
13114
c0ab21c2
TT
131152020-01-19 Tom Tromey <tom@tromey.com>
13116
13117 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13118 (die_reader_func_ftype): Remove.
13119 (cutu_reader): New class.
13120 (dw2_get_file_names_reader): Remove "data" parameter.
13121 (dw2_get_file_names): Use cutu_reader.
13122 (create_debug_type_hash_table): Update.
13123 (read_cutu_die_from_dwo): Update comment.
13124 (lookup_dwo_unit): Add dwo_name parameter.
13125 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13126 die_reader_func_ftype and data parameters.
13127 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13128 Remove die_reader_func_ftype and data parameters.
13129 (~cutu_reader): New; from init_cutu_and_read_dies.
13130 (cutu_reader::cutu_reader): Rename from
13131 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13132 and data parameters.
13133 (init_cutu_and_read_dies_simple): Remove.
13134 (struct process_psymtab_comp_unit_data): Remove.
13135 (process_psymtab_comp_unit_reader): Remove data parameter; add
13136 want_partial_unit and pretend_language parameters.
13137 (process_psymtab_comp_unit): Use cutu_reader.
13138 (build_type_psymtabs_reader): Remove data parameter.
13139 (build_type_psymtabs_1): Use cutu_reader.
13140 (process_skeletonless_type_unit): Likewise.
13141 (load_partial_comp_unit_reader): Remove.
13142 (load_partial_comp_unit): Use cutu_reader.
13143 (load_full_comp_unit_reader): Remove.
13144 (load_full_comp_unit): Use cutu_reader.
13145 (struct create_dwo_cu_data): Remove.
13146 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13147 dwo_unit parameters.
13148 (create_cus_hash_table): Use cutu_reader.
13149 (struct dwarf2_read_addr_index_data): Remove.
13150 (dwarf2_read_addr_index_reader): Remove.
13151 (dwarf2_read_addr_index): Use cutu_reader.
13152 (read_signatured_type_reader): Remove.
13153 (read_signatured_type): Use cutu_reader.
13154
45bbae5c
TT
131552020-01-19 Tom Tromey <tom@tromey.com>
13156
13157 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13158 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13159 (tui_wrefresh): Declare.
13160 * tui/tui-wingeneral.c (suppress_output): New global.
13161 (tui_suppress_output, ~tui_suppress_output): New constructor and
13162 destructor.
13163 (tui_wrefresh): New function.
13164 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13165 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13166 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13167 method.
13168 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13169 tui_wrefresh.
13170 (tui_data_window::no_refresh): New method.
13171 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13172 (tui_reg_command): Use tui_suppress_output
13173 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13174 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13175 method.
13176 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13177
4f13c1c0
TT
131782020-01-19 Tom Tromey <tom@tromey.com>
13179
13180 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13181 Handle case where symtab is null.
13182
fa47e446
SM
131832020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13184
13185 * linux-fork.c (one_fork_p): Simplify.
13186
26f42329
SM
131872020-01-17 Simon Marchi <simon.marchi@efficios.com>
13188
13189 * top.c (struct qt_args): Remove.
13190 (kill_or_detach): Change return type to void, replace `void *`
13191 parameter with a proper one.
13192 (print_inferior_quit_action): Likewise.
13193 (quit_confirm): Use range-based for loop to iterate over inferiors.
13194 (quit_force): Likewise.
13195
a9ac81b1
SM
131962020-01-17 Simon Marchi <simon.marchi@efficios.com>
13197
13198 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13199 `void *` parameter with proper parameters.
13200 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13201 (print_one_inferior): Change return type to void, replace `void *`
13202 parameter with proper parameters.
13203 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13204 inferiors.
13205 (get_other_inferior): Remove.
13206 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13207 inferiors.
13208
788eca49
SM
132092020-01-17 Simon Marchi <simon.marchi@efficios.com>
13210
13211 * mi/mi-interp.c (report_initial_inferior): Remove.
13212 (mi_interp::init): Use range-based for to iterate over inferiors.
13213
d9bc85b6
SM
132142020-01-17 Simon Marchi <simon.marchi@efficios.com>
13215
13216 * python/py-inferior.c (build_inferior_list): Remove.
13217 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13218
40c94099
CB
132192020-01-16 Christian Biesinger <cbiesinger@google.com>
13220
13221 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13222 (btrace_stitch_trace): Likewise.
13223 * charset.c (intermediate_encoding): Likewise (vaild).
13224 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13225 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13226 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13227
e0cdfe3c
HD
132282020-01-16 Hannes Domani <ssbssa@yahoo.de>
13229
13230 * windows-tdep.c (windows_get_tlb_type):
13231 Add rtl_user_process_parameters type.
13232
790f1718 132332020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13234 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13235
13236 PR build/24805
13237 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13238 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13239 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13240 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13241 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13242 (ps_plog): Redeclare exported functions with default visibility.
13243
3112ed97
NA
132442020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13245
13246 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13247 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13248
8dc3273e
SM
132492020-01-15 Simon Marchi <simon.marchi@efficios.com>
13250
13251 * infcmd.c (post_create_inferior): Use get_thread_regcache
13252 instead of get_current_regcache.
13253
ff47f4f0
TT
132542020-01-14 Tom Tromey <tom@tromey.com>
13255
13256 PR symtab/12535:
13257 * python/python.c (gdbpy_decode_line): Treat empty string the same
13258 as no argument.
13259
975f45b7
TT
132602020-01-14 Tom Tromey <tom@tromey.com>
13261
13262 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13263
25e57356
TT
132642020-01-14 Tom Tromey <tom@tromey.com>
13265
13266 * nat/linux-btrace.c: Don't include <config.h>.
13267 * nat/linux-ptrace.c: Don't include <config.h>.
13268 * nat/x86-linux-dregs.c: Don't include <config.h>.
13269
05ea2a05
TT
132702020-01-14 Tom Tromey <tom@tromey.com>
13271
13272 * configure: Rebuild.
13273 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13274
01027315
TT
132752020-01-14 Tom Tromey <tom@tromey.com>
13276
13277 * nat/x86-linux-dregs.c: Include configh.h.
13278 * nat/linux-ptrace.c: Include configh.h.
13279 * nat/linux-btrace.c: Include configh.h.
13280 * defs.h: Include config.h, bfd.h.
13281 * configure.ac: Don't source common.host.
13282 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13283 * configure: Rebuild.
13284 * acinclude.m4: Update path.
13285 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13286 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13287 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13288 (CLIBS): Add LIBSUPPORT.
13289 (CDEPS): Likewise.
13290 (COMMON_SFILES): Remove gdbsupport files.
13291 (HFILES_NO_SRCDIR): Likewise.
13292 (stamp-version): Update path to create-version.sh.
13293 (ALLDEPFILES): Remove gdbsupport files.
13294
b2ceabe8
TT
132952020-01-14 Tom Tromey <tom@tromey.com>
13296
13297 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13298 USE_WIN32API when needed.
13299 * configure.ac (USE_WIN32API): Don't define.
13300 (WIN32LIBS): Use WIN32APILIBS.
13301 * configure: Rebuild.
13302
25c51f71
TT
133032020-01-14 Tom Tromey <tom@tromey.com>
13304
13305 * configure: Rebuild.
13306 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13307
717c684d
BE
133082020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13309
13310 * skip.c (skip_function_command): Make skip w/o arguments use the
13311 name of the inlined function if pc is inside any inlined function.
13312
7da6a5b9
LM
133132020-01-14 Luis Machado <luis.machado@linaro.org>
13314
13315 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13316 * infrun.c (resume_1): Likewise.
13317 (handle_inferior_event): Remove stale comment.
13318 * linux-nat.c (linux_nat_target::resume): Update comments.
13319 (save_stop_reason): Likewise.
13320 (linux_nat_filter_event): Likewise.
13321 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13322
44e4c775
AB
133232020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13324
13325 * elfread.c (record_minimal_symbol): Set section index to 0 for
13326 non-allocatable sections.
13327
18a8505e
AT
13328
133292020-01-13 Ali Tamur <tamur@google.com>
13330
13331 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13332 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13333 to gdb::optional. Update comments.
13334 (dwo_file): Update comments.
13335 (read_attribute): Update API to take an additional out parameter,
13336 need_reprocess. This is used to mark attributes that need other
13337 attributes (e.g. str_offsets_base) for correct computation which may not
13338 have been read yet.
13339 (read_attribute_reprocess): New function declaration.
13340 (read_addr_index): Likewise.
13341 (read_dwo_str_index): Likewise.
13342 (read_stub_str_index): Likewise.
13343 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13344 (lookup_addr_base): New function definition.
13345 (lookup_ranges_base): Likewise.
13346 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13347 lookup_ranges_base.
13348 (init_cutu_and_read_dies): Update comments.
13349 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13350 unit. This is used to inherit parent's str_offsets_base and addr_base.
13351 Update comments.
13352 (init_cutu_and_read_dies_simple): Reflect API changes.
13353 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13354 (create_cus_hash_table): Change API to take parent compile unit.
13355 Reflect API changes.
13356 (open_and_init_dwo_file): Reflect API changes.
13357 (dwarf2_get_pc_bounds): Update comments.
13358 (dwarf2_record_block_ranges): Likewise.
13359 (read_full_die_1): Change implementation to reprocess attributes that
13360 need str_offsets_base and addr_base.
13361 (partial_die_info::read): Likewise.
13362 (read_attribute_reprocess): New function definition.
13363 (read_attribute_value): Change API to take an additional out parameter,
13364 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13365 when a non-dwo compile unit has index based attributes.
13366 (read_attribute): Reflect API changes.
13367 (read_addr_index_1): Reflect API changes. Update comments.
13368 (dwarf2_read_addr_index_data): Reflect API changes.
13369 (dwarf2_read_addr_index): Likewise.
13370 (read_str_index): Change API and implementation. This becomes a helper
13371 to be used by the new string index related methods. Update error
13372 message and comments.
13373 (read_dwo_str_index): New function definition.
13374 (read_stub_str_index): Likewise.
13375 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13376 * symfile.h (dwarf2_debug_sections): Likewise.
13377 * xcoffread.c (dwarf2_debug_sections): Likewise.
13378
0cac9354
SM
133792020-01-13 Simon Marchi <simon.marchi@efficios.com>
13380
13381 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13382 core_reg_sect type to gdb_byte *.
13383 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13384 * cris-tdep.c (fetch_core_registers): Likewise.
13385 * corelow.c (core_target::get_core_register_section): Change
13386 type of `contents` to gdb::byte_vector.
13387
9a6d629c
AB
133882020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13389
13390 * tui/tui-wingeneral.c (box_win): Position the title in the center
13391 of the border.
13392
d8b2f9e3
SM
133932020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13394
13395 * corelow.c (core_target::get_core_register_section): Use
13396 std::vector instead of alloca.
13397
bb564c58
SM
133982020-01-13 Simon Marchi <simon.marchi@efficios.com>
13399
13400 * warning.m4: Add -Wmissing-declarations to build_warnings.
13401 * configure: Re-generate.
13402
6b366111
SM
134032020-01-13 Simon Marchi <simon.marchi@efficios.com>
13404
13405 * python/python.c (init__gdb_module): Add declaration.
13406
6c265988
SM
134072020-01-13 Simon Marchi <simon.marchi@efficios.com>
13408
13409 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13410 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13411 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13412 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13413 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13414 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13415 * ada-exp.y (_initialize_ada_exp): Add declaration.
13416 * ada-lang.c (_initialize_ada_language): Add declaration.
13417 * ada-tasks.c (_initialize_tasks): Add declaration.
13418 * agent.c (_initialize_agent): Add declaration.
13419 * aix-thread.c (_initialize_aix_thread): Add declaration.
13420 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13421 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13422 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13423 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13424 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13425 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13426 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13427 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13428 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13429 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13430 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13431 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13432 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13433 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13434 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13435 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13436 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13437 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13438 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13439 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13440 * annotate.c (_initialize_annotate): Add declaration.
13441 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13442 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13443 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13444 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13445 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13446 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13447 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13448 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13449 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13450 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13451 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13452 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13453 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13454 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13455 * auto-load.c (_initialize_auto_load): Add declaration.
13456 * auxv.c (_initialize_auxv): Add declaration.
13457 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13458 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13459 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13460 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13461 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13462 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13463 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13464 * breakpoint.c (_initialize_breakpoint): Add declaration.
13465 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13466 * btrace.c (_initialize_btrace): Add declaration.
13467 * charset.c (_initialize_charset): Add declaration.
13468 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13469 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13470 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13471 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13472 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13473 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13474 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13475 * coffread.c (_initialize_coffread): Add declaration.
13476 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13477 * compile/compile.c (_initialize_compile): Add declaration.
13478 * complaints.c (_initialize_complaints): Add declaration.
13479 * completer.c (_initialize_completer): Add declaration.
13480 * copying.c (_initialize_copying): Add declaration.
13481 * corefile.c (_initialize_core): Add declaration.
13482 * corelow.c (_initialize_corelow): Add declaration.
13483 * cp-abi.c (_initialize_cp_abi): Add declaration.
13484 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13485 * cp-support.c (_initialize_cp_support): Add declaration.
13486 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13487 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13488 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13489 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13490 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13491 * ctfread.c (_initialize_ctfread): Add declaration.
13492 * d-lang.c (_initialize_d_language): Add declaration.
13493 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13494 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13495 * dbxread.c (_initialize_dbxread): Add declaration.
13496 * dcache.c (_initialize_dcache): Add declaration.
13497 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13498 * disasm.c (_initialize_disasm): Add declaration.
13499 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13500 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13501 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13502 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13503 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13504 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13505 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13506 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13507 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13508 * elfread.c (_initialize_elfread): Add declaration.
13509 * exec.c (_initialize_exec): Add declaration.
13510 * extension.c (_initialize_extension): Add declaration.
13511 * f-lang.c (_initialize_f_language): Add declaration.
13512 * f-valprint.c (_initialize_f_valprint): Add declaration.
13513 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13514 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13515 * filesystem.c (_initialize_filesystem): Add declaration.
13516 * findcmd.c (_initialize_mem_search): Add declaration.
13517 * findvar.c (_initialize_findvar): Add declaration.
13518 * fork-child.c (_initialize_fork_child): Add declaration.
13519 * frame-base.c (_initialize_frame_base): Add declaration.
13520 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13521 * frame.c (_initialize_frame): Add declaration.
13522 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13523 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13524 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13525 * gcore.c (_initialize_gcore): Add declaration.
13526 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13527 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13528 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13529 * gdbarch.c (_initialize_gdbarch): Add declaration.
13530 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13531 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13532 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13533 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13534 * go-lang.c (_initialize_go_language): Add declaration.
13535 * go32-nat.c (_initialize_go32_nat): Add declaration.
13536 * guile/guile.c (_initialize_guile): Add declaration.
13537 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13538 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13539 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13540 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13541 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13542 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13543 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13544 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13545 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13546 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13547 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13548 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13549 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13550 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13551 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13552 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13553 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13554 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13555 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13556 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13557 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13558 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13559 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13560 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13561 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13562 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13563 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13564 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13565 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13566 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13567 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13568 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13569 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13570 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13571 * infcall.c (_initialize_infcall): Add declaration.
13572 * infcmd.c (_initialize_infcmd): Add declaration.
13573 * inflow.c (_initialize_inflow): Add declaration.
13574 * infrun.c (_initialize_infrun): Add declaration.
13575 * interps.c (_initialize_interpreter): Add declaration.
13576 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13577 * jit.c (_initialize_jit): Add declaration.
13578 * language.c (_initialize_language): Add declaration.
13579 * linux-fork.c (_initialize_linux_fork): Add declaration.
13580 * linux-nat.c (_initialize_linux_nat): Add declaration.
13581 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13582 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13583 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13584 * m2-lang.c (_initialize_m2_language): Add declaration.
13585 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13586 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13587 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13588 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13589 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13590 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13591 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13592 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13593 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13594 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13595 * machoread.c (_initialize_machoread): Add declaration.
13596 * macrocmd.c (_initialize_macrocmd): Add declaration.
13597 * macroscope.c (_initialize_macroscope): Add declaration.
13598 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13599 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13600 * maint.c (_initialize_maint_cmds): Add declaration.
13601 * mdebugread.c (_initialize_mdebugread): Add declaration.
13602 * memattr.c (_initialize_mem): Add declaration.
13603 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13604 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13605 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13606 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13607 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13608 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13609 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13610 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13611 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13612 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13613 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13614 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13615 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13616 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13617 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13618 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13619 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13620 * mipsread.c (_initialize_mipsread): Add declaration.
13621 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13622 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13623 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13624 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13625 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13626 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13627 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13628 * nto-procfs.c (_initialize_procfs): Add declaration.
13629 * objc-lang.c (_initialize_objc_language): Add declaration.
13630 * observable.c (_initialize_observer): Add declaration.
13631 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13632 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13633 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13634 * osabi.c (_initialize_gdb_osabi): Add declaration.
13635 * osdata.c (_initialize_osdata): Add declaration.
13636 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13637 * parse.c (_initialize_parse): Add declaration.
13638 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13639 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13640 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13641 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13642 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13643 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13644 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13645 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13646 * printcmd.c (_initialize_printcmd): Add declaration.
13647 * probe.c (_initialize_probe): Add declaration.
13648 * proc-api.c (_initialize_proc_api): Add declaration.
13649 * proc-events.c (_initialize_proc_events): Add declaration.
13650 * proc-service.c (_initialize_proc_service): Add declaration.
13651 * procfs.c (_initialize_procfs): Add declaration.
13652 * producer.c (_initialize_producer): Add declaration.
13653 * psymtab.c (_initialize_psymtab): Add declaration.
13654 * python/python.c (_initialize_python): Add declaration.
13655 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13656 * record-btrace.c (_initialize_record_btrace): Add declaration.
13657 * record-full.c (_initialize_record_full): Add declaration.
13658 * record.c (_initialize_record): Add declaration.
13659 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13660 * regcache.c (_initialize_regcache): Add declaration.
13661 * reggroups.c (_initialize_reggroup): Add declaration.
13662 * remote-notif.c (_initialize_notif): Add declaration.
13663 * remote-sim.c (_initialize_remote_sim): Add declaration.
13664 * remote.c (_initialize_remote): Add declaration.
13665 * reverse.c (_initialize_reverse): Add declaration.
13666 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13667 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13668 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13669 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13670 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13671 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13672 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13673 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13674 Add declaration.
13675 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13676 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13677 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13678 * rust-exp.y (_initialize_rust_exp): Add declaration.
13679 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13680 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13681 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13682 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13683 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13684 * score-tdep.c (_initialize_score_tdep): Add declaration.
13685 * ser-go32.c (_initialize_ser_dos): Add declaration.
13686 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13687 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13688 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13689 * ser-uds.c (_initialize_ser_socket): Add declaration.
13690 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13691 * serial.c (_initialize_serial): Add declaration.
13692 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13693 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13694 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13695 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13696 * skip.c (_initialize_step_skip): Add declaration.
13697 * sol-thread.c (_initialize_sol_thread): Add declaration.
13698 * solib-aix.c (_initialize_solib_aix): Add declaration.
13699 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13700 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13701 * solib-frv.c (_initialize_frv_solib): Add declaration.
13702 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13703 * solib-target.c (_initialize_solib_target): Add declaration.
13704 * solib.c (_initialize_solib): Add declaration.
13705 * source-cache.c (_initialize_source_cache): Add declaration.
13706 * source.c (_initialize_source): Add declaration.
13707 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13708 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13709 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13710 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13711 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13712 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13713 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13714 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13715 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13716 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13717 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13718 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13719 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13720 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13721 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13722 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13723 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13724 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13725 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13726 * stabsread.c (_initialize_stabsread): Add declaration.
13727 * stack.c (_initialize_stack): Add declaration.
13728 * stap-probe.c (_initialize_stap_probe): Add declaration.
13729 * std-regs.c (_initialize_frame_reg): Add declaration.
13730 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13731 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13732 * symfile.c (_initialize_symfile): Add declaration.
13733 * symmisc.c (_initialize_symmisc): Add declaration.
13734 * symtab.c (_initialize_symtab): Add declaration.
13735 * target.c (_initialize_target): Add declaration.
13736 * target-connection.c (_initialize_target_connection): Add
13737 declaration.
13738 * target-dcache.c (_initialize_target_dcache): Add declaration.
13739 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13740 * thread.c (_initialize_thread): Add declaration.
13741 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13742 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13743 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13744 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13745 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13746 * tracectf.c (_initialize_ctf): Add declaration.
13747 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13748 * tracefile.c (_initialize_tracefile): Add declaration.
13749 * tracepoint.c (_initialize_tracepoint): Add declaration.
13750 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13751 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13752 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13753 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13754 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13755 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13756 * tui/tui.c (_initialize_tui): Add declaration.
13757 * typeprint.c (_initialize_typeprint): Add declaration.
13758 * ui-style.c (_initialize_ui_style): Add declaration.
13759 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13760 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13761 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13762 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13763 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13764 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13765 * unittests/filtered_iterator-selftests.c
13766 (_initialize_filtered_iterator_selftests): Add declaration.
13767 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13768 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13769 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13770 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13771 * unittests/main-thread-selftests.c
13772 (_initialize_main_thread_selftests): Add declaration.
13773 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13774 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13775 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13776 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13777 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13778 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13779 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13780 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13781 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13782 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13783 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13784 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13785 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13786 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13787 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13788 declaration.
13789 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13790 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13791 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13792 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13793 * user-regs.c (_initialize_user_regs): Add declaration.
13794 * utils.c (_initialize_utils): Add declaration.
13795 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13796 * valops.c (_initialize_valops): Add declaration.
13797 * valprint.c (_initialize_valprint): Add declaration.
13798 * value.c (_initialize_values): Add declaration.
13799 * varobj.c (_initialize_varobj): Add declaration.
13800 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13801 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13802 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13803 * windows-nat.c (_initialize_windows_nat): Add declaration.
13804 (_initialize_check_for_gdb_ini): Add declaration.
13805 (_initialize_loadable): Add declaration.
13806 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13807 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13808 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13809 * xcoffread.c (_initialize_xcoffread): Add declaration.
13810 * xml-support.c (_initialize_xml_support): Add declaration.
13811 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13812 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13813 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13814 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13815
e2de1eec
SM
138162020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13817
13818 * regformats/regdat.sh: Generate declaration for init function.
13819
e0037b4c
SM
138202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13821
13822 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13823 up.
13824 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13825 close_one_inferior>: New methods.
13826 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13827 pass down target to find_inferior_pid.
13828 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13829 Pass down target to find_inferior_ptid.
13830 (gdbsim_target::create_inferior): Pass down target to
13831 add_thread_silent.
13832 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13833 target down to find_inferior_ptid and switch_to_thread.
13834 (gdbsim_target::close): Update to call close_one_inferior.
13835 (struct resume_data): Remove.
13836 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13837 directly, rather than through a void pointer.
13838 (gdbsim_target::resume): Update to call resume_one_inferior.
13839
58920b5b
SM
138402020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13841
13842 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13843
4ec89149
PA
138442020-01-12 Pedro Alves <palves@redhat.com>
13845
13846 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13847 directly for the current inferior instead of
13848 discard_all_inferiors.
13849 (discard_all_inferiors): Delete.
13850
7c392d1d
TT
138512020-01-11 Tom Tromey <tom@tromey.com>
13852
13853 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13854 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13855 deprecated_safe_get_selected_frame.
13856
d9ebdab7
TBA
138572020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13858
13859 * inferior.c (print_inferior): Switch inferior before printing it.
13860
f3c469b9
PA
138612020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13862 Pedro Alves <palves@redhat.com>
13863
13864 * progspace-and-thread.c (switch_to_program_space_and_thread):
13865 Assert there's an inferior for PSPACE. Use
13866 switch_to_inferior_no_thread to switch the inferior too.
13867 * progspace.c (program_space::~program_space): Call
13868 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13869 (program_space::free_all_objfiles): Don't call clear_symtab_users
13870 here.
13871 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13872
65c574f6
PA
138732020-01-10 Pedro Alves <palves@redhat.com>
13874
13875 * NEWS: Mention multi-target debugging, "info connections", and
13876 "add-inferior -no-connection".
13877
2f4fcf00
PA
138782020-01-10 Pedro Alves <palves@redhat.com>
13879
13880 * infrun.c: Include "target-connection.h".
13881 (check_multi_target_resumption): New.
13882 (proceed): Call it.
13883 * target-connection.c (make_target_connection_string): Make
13884 extern.
13885 * target-connection.h (make_target_connection_string): Declare.
13886
121b3efd
PA
138872020-01-10 Pedro Alves <palves@redhat.com>
13888
13889 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13890 * inferior.c (uiout_field_connection): New function.
13891 (print_inferior): Add new "connection-id" column.
13892 (add_inferior_command): Show connection number/string of added
13893 inferior.
13894 * process-stratum-target.h
13895 (process_stratum_target::connection_string): New virtual method.
13896 (process_stratum_target::connection_number): New field.
13897 * remote.c (remote_target::connection_string): New override.
13898 * target-connection.c: New file.
13899 * target-connection.h: New file.
13900 * target.c (decref_target): Remove process_stratum targets from
13901 the connection list.
13902 (target_stack::push): Add process_stratum targets to the
13903 connection list.
13904
4f837581
PA
139052020-01-10 Pedro Alves <palves@redhat.com>
13906
13907 Revert:
13908 2016-04-12 Pedro Alves <palves@redhat.com>
13909 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13910 Remove references to name.
13911 * serial.h (struct serial) <name>: Delete.
13912
f4ec508e
PA
139132020-01-10 Pedro Alves <palves@redhat.com>
13914
13915 * gdbarch-selftests.c (register_to_value_test): Remove "target
13916 already pushed" check.
13917
5b6d1e4f
PA
139182020-01-10 Pedro Alves <palves@redhat.com>
13919 John Baldwin <jhb@FreeBSD.org>
13920
13921 * aarch64-linux-nat.c
13922 (aarch64_linux_nat_target::thread_architecture): Adjust.
13923 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13924 (task_command_1): Likewise.
13925 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13926 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13927 (aix_thread_target::store_registers)
13928 (aix_thread_target::thread_alive): Adjust.
13929 * amd64-fbsd-tdep.c: Include "inferior.h".
13930 (amd64fbsd_get_thread_local_address): Pass down target.
13931 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13932 thread's gdbarch instead of target_gdbarch.
13933 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13934 get_last_target_status.
13935 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13936 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13937 inferiors.
13938 (update_inserted_breakpoint_locations): Skip if inferiors with no
13939 execution.
13940 (update_global_location_list): When handling moribund locations,
13941 find representative inferior for location's pspace, and use thread
13942 count of its process_stratum target.
13943 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13944 * bsd-uthread.c (bsd_uthread_target::wait): Use
13945 as_process_stratum_target and adjust thread_change_ptid and
13946 add_thread calls.
13947 (bsd_uthread_target::update_thread_list): Use
13948 as_process_stratum_target and adjust find_thread_ptid,
13949 thread_change_ptid and add_thread calls.
13950 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13951 find_thread_ptid call.
13952 * corelow.c (add_to_thread_list): Adjust add_thread call.
13953 (core_target_open): Adjust add_thread_silent and thread_count
13954 calls.
13955 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13956 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13957 * event-top.c (async_disconnect): Pop targets from all inferiors.
13958 * exec.c (add_target_sections): Push exec target on all inferiors
13959 sharing the program space.
13960 (remove_target_sections): Remove the exec target from all
13961 inferiors sharing the program space.
13962 (exec_on_vfork): New.
13963 * exec.h (exec_on_vfork): Declare.
13964 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13965 Pass it down.
13966 (fbsd_nat_target::update_thread_list): Adjust.
13967 (fbsd_nat_target::resume): Adjust.
13968 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13969 down.
13970 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13971 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13972 get_thread_arch_regcache call.
13973 * fork-child.c (gdb_startup_inferior): Pass target down to
13974 startup_inferior and set_executing.
13975 * gdbthread.h (struct process_stratum_target): Forward declare.
13976 (add_thread, add_thread_silent, add_thread_with_info)
13977 (in_thread_list): Add process_stratum_target parameter.
13978 (find_thread_ptid(inferior*, ptid_t)): New overload.
13979 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13980 parameter.
13981 (all_threads()): Delete overload.
13982 (all_threads, all_non_exited_threads): Add process_stratum_target
13983 parameter.
13984 (all_threads_safe): Use brace initialization.
13985 (thread_count): Add process_stratum_target parameter.
13986 (set_resumed, set_running, set_stop_requested, set_executing)
13987 (threads_are_executing, finish_thread_state): Add
13988 process_stratum_target parameter.
13989 (switch_to_thread): Use is_current_thread.
13990 * i386-fbsd-tdep.c: Include "inferior.h".
13991 (i386fbsd_get_thread_local_address): Pass down target.
13992 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13993 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13994 have_inferiors check.
13995 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13996 (inf_ptrace_target::attach): Adjust.
13997 * infcall.c (run_inferior_call): Adjust.
13998 * infcmd.c (run_command_1): Pass target to
13999 scoped_finish_thread_state.
14000 (proceed_thread_callback): Skip inferiors with no execution.
14001 (continue_command): Rename 'all_threads' local to avoid hiding
14002 'all_threads' function. Adjust get_last_target_status call.
14003 (prepare_one_step): Adjust set_running call.
14004 (signal_command): Use user_visible_resume_target. Compare thread
14005 pointers instead of inferior_ptid.
14006 (info_program_command): Adjust to pass down target.
14007 (attach_command): Mark target's 'thread_executing' flag.
14008 (stop_current_target_threads_ns): New, factored out from ...
14009 (interrupt_target_1): ... this. Switch inferior before making
14010 target calls.
14011 * inferior-iter.h
14012 (struct all_inferiors_iterator, struct all_inferiors_range)
14013 (struct all_inferiors_safe_range)
14014 (struct all_non_exited_inferiors_range): Filter on
14015 process_stratum_target too. Remove explicit.
14016 * inferior.c (inferior::inferior): Push dummy target on target
14017 stack.
14018 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14019 Add process_stratum_target parameter, and pass it down.
14020 (have_live_inferiors): Adjust.
14021 (switch_to_inferior_and_push_target): New.
14022 (add_inferior_command, clone_inferior_command): Handle
14023 "-no-connection" parameter. Use
14024 switch_to_inferior_and_push_target.
14025 (_initialize_inferior): Mention "-no-connection" option in
14026 the help of "add-inferior" and "clone-inferior" commands.
14027 * inferior.h: Include "process-stratum-target.h".
14028 (interrupt_target_1): Use bool.
14029 (struct inferior) <push_target, unpush_target, target_is_pushed,
14030 find_target_beneath, top_target, process_target, target_at,
14031 m_stack>: New.
14032 (discard_all_inferiors): Delete.
14033 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14034 (all_inferiors, all_non_exited_inferiors): Add
14035 process_stratum_target parameter.
14036 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14037 (target_last_proc_target): New global.
14038 (follow_fork_inferior): Push target on new inferior. Pass target
14039 to add_thread_silent. Call exec_on_vfork. Handle target's
14040 reference count.
14041 (follow_fork): Adjust get_last_target_status call. Also consider
14042 target.
14043 (follow_exec): Push target on new inferior.
14044 (struct execution_control_state) <target>: New field.
14045 (user_visible_resume_target): New.
14046 (do_target_resume): Call target_async.
14047 (resume_1): Set target's threads_executing flag. Consider resume
14048 target.
14049 (commit_resume_all_targets): New.
14050 (proceed): Also consider resume target. Skip threads of inferiors
14051 with no execution. Commit resumtion in all targets.
14052 (start_remote): Pass current inferior to wait_for_inferior.
14053 (infrun_thread_stop_requested): Consider target as well. Pass
14054 thread_info pointer to clear_inline_frame_state instead of ptid.
14055 (infrun_thread_thread_exit): Consider target as well.
14056 (random_pending_event_thread): New inferior parameter. Use it.
14057 (do_target_wait): Rename to ...
14058 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14059 down.
14060 (threads_are_resumed_pending_p, do_target_wait): New.
14061 (prepare_for_detach): Adjust calls.
14062 (wait_for_inferior): New inferior parameter. Handle it. Use
14063 do_target_wait_1 instead of do_target_wait.
14064 (fetch_inferior_event): Adjust. Switch to representative
14065 inferior. Pass target down.
14066 (set_last_target_status): Add process_stratum_target parameter.
14067 Save target in global.
14068 (get_last_target_status): Add process_stratum_target parameter and
14069 handle it.
14070 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14071 (context_switch): Check inferior_ptid == null_ptid before calling
14072 inferior_thread().
14073 (get_inferior_stop_soon): Pass down target.
14074 (wait_one): Rename to ...
14075 (poll_one_curr_target): ... this.
14076 (struct wait_one_event): New.
14077 (wait_one): New.
14078 (stop_all_threads): Adjust.
14079 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14080 event's target.
14081 (switch_back_to_stepped_thread): Also consider target.
14082 (print_stop_event): Update.
14083 (normal_stop): Update. Also consider the resume target.
14084 * infrun.h (wait_for_inferior): Remove declaration.
14085 (user_visible_resume_target): New declaration.
14086 (get_last_target_status, set_last_target_status): New
14087 process_stratum_target parameter.
14088 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14089 process_stratum_target parameter, and use it.
14090 (clear_inline_frame_state (thread_info*)): New.
14091 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14092 process_stratum_target parameter.
14093 (clear_inline_frame_state (thread_info*)): Declare.
14094 * linux-fork.c (delete_checkpoint_command): Pass target down to
14095 find_thread_ptid.
14096 (checkpoint_command): Adjust.
14097 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14098 instead of just tweaking inferior_ptid.
14099 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14100 (exit_lwp): Pass target down to find_thread_ptid.
14101 (attach_proc_task_lwp_callback): Pass target down to
14102 add_thread/set_running/set_executing.
14103 (linux_nat_target::attach): Pass target down to
14104 thread_change_ptid.
14105 (get_detach_signal): Pass target down to find_thread_ptid.
14106 Consider last target status's target.
14107 (linux_resume_one_lwp_throw, resume_lwp)
14108 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14109 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14110 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14111 (linux_nat_target::async_wait_fd): New.
14112 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14113 target down.
14114 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14115 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14116 * linux-thread-db.c (struct thread_db_info::process_target): New
14117 field.
14118 (add_thread_db_info): Save target.
14119 (get_thread_db_info): New process_stratum_target parameter. Also
14120 match target.
14121 (delete_thread_db_info): New process_stratum_target parameter.
14122 Also match target.
14123 (thread_from_lwp): Adjust to pass down target.
14124 (thread_db_notice_clone): Pass down target.
14125 (check_thread_db_callback): Pass down target.
14126 (try_thread_db_load_1): Always push the thread_db target.
14127 (try_thread_db_load, record_thread): Pass target down.
14128 (thread_db_target::detach): Pass target down. Always unpush the
14129 thread_db target.
14130 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14131 target down. Always unpush the thread_db target.
14132 (find_new_threads_callback, thread_db_find_new_threads_2)
14133 (thread_db_target::update_thread_list): Pass target down.
14134 (thread_db_target::pid_to_str): Pass current inferior down.
14135 (thread_db_target::get_thread_local_address): Pass target down.
14136 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14137 target down.
14138 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14139 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14140 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14141 (procfs_init_inferior): Rename to ...
14142 (procfs_target::procfs_init_inferior): ... this and adjust.
14143 (procfs_target::create_inferior, procfs_notice_thread)
14144 (procfs_do_thread_registers): Adjust.
14145 * ppc-fbsd-tdep.c: Include "inferior.h".
14146 (ppcfbsd_get_thread_local_address): Pass down target.
14147 * proc-service.c (ps_xfer_memory): Switch current inferior and
14148 program space as well.
14149 (get_ps_regcache): Pass target down.
14150 * process-stratum-target.c
14151 (process_stratum_target::thread_address_space)
14152 (process_stratum_target::thread_architecture): Pass target down.
14153 * process-stratum-target.h
14154 (process_stratum_target::threads_executing): New field.
14155 (as_process_stratum_target): New.
14156 * ravenscar-thread.c
14157 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14158 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14159 down.
14160 * record-btrace.c (record_btrace_target::info_record): Adjust.
14161 (record_btrace_target::record_method)
14162 (record_btrace_target::record_is_replaying)
14163 (record_btrace_target::fetch_registers)
14164 (get_thread_current_frame_id, record_btrace_target::resume)
14165 (record_btrace_target::wait, record_btrace_target::stop): Pass
14166 target down.
14167 * record-full.c (record_full_wait_1): Switch to event thread.
14168 Pass target down.
14169 * regcache.c (regcache::regcache)
14170 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14171 process_stratum_target parameter and handle it.
14172 (current_thread_target): New global.
14173 (get_thread_regcache): Add process_stratum_target parameter and
14174 handle it. Switch inferior before calling target method.
14175 (get_thread_regcache): Pass target down.
14176 (get_thread_regcache_for_ptid): Pass target down.
14177 (registers_changed_ptid): Add process_stratum_target parameter and
14178 handle it.
14179 (registers_changed_thread, registers_changed): Pass target down.
14180 (test_get_thread_arch_aspace_regcache): New.
14181 (current_regcache_test): Define a couple local test_target_ops
14182 instances and use them for testing.
14183 (readwrite_regcache): Pass process_stratum_target parameter.
14184 (cooked_read_test, cooked_write_test): Pass mock_target down.
14185 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14186 (get_thread_arch_aspace_regcache): Add process_stratum_target
14187 parameter.
14188 (regcache::target): New method.
14189 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14190 (regcache::registers_changed_ptid): Add process_stratum_target
14191 parameter.
14192 (regcache::m_target): New field.
14193 (registers_changed_ptid): Add process_stratum_target parameter.
14194 * remote.c (remote_state::supports_vCont_probed): New field.
14195 (remote_target::async_wait_fd): New method.
14196 (remote_unpush_and_throw): Add remote_target parameter.
14197 (get_current_remote_target): Adjust.
14198 (remote_target::remote_add_inferior): Push target.
14199 (remote_target::remote_add_thread)
14200 (remote_target::remote_notice_new_inferior)
14201 (get_remote_thread_info): Pass target down.
14202 (remote_target::update_thread_list): Skip threads of inferiors
14203 bound to other targets. (remote_target::close): Don't discard
14204 inferiors. (remote_target::add_current_inferior_and_thread)
14205 (remote_target::process_initial_stop_replies)
14206 (remote_target::start_remote)
14207 (remote_target::remote_serial_quit_handler): Pass down target.
14208 (remote_target::remote_unpush_target): New remote_target
14209 parameter. Unpush the target from all inferiors.
14210 (remote_target::remote_unpush_and_throw): New remote_target
14211 parameter. Pass it down.
14212 (remote_target::open_1): Check whether the current inferior has
14213 execution instead of checking whether any inferior is live. Pass
14214 target down.
14215 (remote_target::remote_detach_1): Pass down target. Use
14216 remote_unpush_target.
14217 (extended_remote_target::attach): Pass down target.
14218 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14219 (remote_target::append_resumption): Pass down target.
14220 (remote_target::append_pending_thread_resumptions)
14221 (remote_target::remote_resume_with_hc, remote_target::resume)
14222 (remote_target::commit_resume): Pass down target.
14223 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14224 (remote_target::interrupt_query)
14225 (remote_target::remove_new_fork_children)
14226 (remote_target::check_pending_events_prevent_wildcard_vcont)
14227 (remote_target::remote_parse_stop_reply)
14228 (remote_target::process_stop_reply): Pass down target.
14229 (first_remote_resumed_thread): New remote_target parameter. Pass
14230 it down.
14231 (remote_target::wait_as): Pass down target.
14232 (unpush_and_perror): New remote_target parameter. Pass it down.
14233 (remote_target::readchar, remote_target::remote_serial_write)
14234 (remote_target::getpkt_or_notif_sane_1)
14235 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14236 down target.
14237 (remote_target::mourn_inferior): Pass down target. Use
14238 remote_unpush_target.
14239 (remote_target::core_of_thread)
14240 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14241 (remote_target::pid_to_exec_file)
14242 (remote_target::thread_handle_to_thread_info): Pass down target.
14243 (remote_target::async_wait_fd): New.
14244 * riscv-fbsd-tdep.c: Include "inferior.h".
14245 (riscv_fbsd_get_thread_local_address): Pass down target.
14246 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14247 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14248 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14249 Adjust.
14250 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14251 * solib-svr4.c (enable_break): Pass down target.
14252 * spu-multiarch.c (parse_spufs_run): Pass down target.
14253 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14254 * target-delegates.c: Regenerate.
14255 * target.c (g_target_stack): Delete.
14256 (current_top_target): Return the current inferior's top target.
14257 (target_has_execution_1): Refer to the passed-in inferior's top
14258 target.
14259 (target_supports_terminal_ours): Check whether the initial
14260 inferior was already created.
14261 (decref_target): New.
14262 (target_stack::push): Incref/decref the target.
14263 (push_target, push_target, unpush_target): Adjust.
14264 (target_stack::unpush): Defref target.
14265 (target_is_pushed): Return bool. Adjust to refer to the current
14266 inferior's target stack.
14267 (dispose_inferior): Delete, and inline parts ...
14268 (target_preopen): ... here. Only dispose of the current inferior.
14269 (target_detach): Hold strong target reference while detaching.
14270 Pass target down.
14271 (target_thread_name): Add assertion.
14272 (target_resume): Pass down target.
14273 (target_ops::beneath, find_target_at): Adjust to refer to the
14274 current inferior's target stack.
14275 (get_dummy_target): New.
14276 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14277 has a thread running.
14278 (initialize_targets): Rename to ...
14279 (_initialize_target): ... this.
14280 * target.h: Include "gdbsupport/refcounted-object.h".
14281 (struct target_ops): Inherit refcounted_object.
14282 (target_ops::shortname, target_ops::longname): Make const.
14283 (target_ops::async_wait_fd): New method.
14284 (decref_target): Declare.
14285 (struct target_ops_ref_policy): New.
14286 (target_ops_ref): New typedef.
14287 (get_dummy_target): Declare function.
14288 (target_is_pushed): Return bool.
14289 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14290 (all_matching_threads_iterator::all_matching_threads_iterator):
14291 Handle filter target.
14292 * thread-iter.h (struct all_matching_threads_iterator, struct
14293 all_matching_threads_range, class all_non_exited_threads_range):
14294 Filter by target too. Remove explicit.
14295 * thread.c (threads_executing): Delete.
14296 (inferior_thread): Pass down current inferior.
14297 (clear_thread_inferior_resources): Pass down thread pointer
14298 instead of ptid_t.
14299 (add_thread_silent, add_thread_with_info, add_thread): Add
14300 process_stratum_target parameter. Use it for thread and inferior
14301 searches.
14302 (is_current_thread): New.
14303 (thread_info::deletable): Use it.
14304 (find_thread_ptid, thread_count, in_thread_list)
14305 (thread_change_ptid, set_resumed, set_running): New
14306 process_stratum_target parameter. Pass it down.
14307 (set_executing): New process_stratum_target parameter. Pass it
14308 down. Adjust reference to 'threads_executing'.
14309 (threads_are_executing): New process_stratum_target parameter.
14310 Adjust reference to 'threads_executing'.
14311 (set_stop_requested, finish_thread_state): New
14312 process_stratum_target parameter. Pass it down.
14313 (switch_to_thread): Also match inferior.
14314 (switch_to_thread): New process_stratum_target parameter. Pass it
14315 down.
14316 (update_threads_executing): Reimplement.
14317 * top.c (quit_force): Pop targets from all inferior.
14318 (gdb_init): Don't call initialize_targets.
14319 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14320 Declare.
14321 (windows_add_thread, windows_delete_thread): Adjust.
14322 (get_windows_debug_event): Rename to ...
14323 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14324 * tracefile-tfile.c (tfile_target_open): Pass down target.
14325 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14326 Forward declare.
14327 (switch_to_thread): Add process_stratum_target parameter.
14328 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14329 parameter. Use it.
14330 (mi_on_resume): Pass target down.
14331 * nat/fork-inferior.c (startup_inferior): Add
14332 process_stratum_target parameter. Pass it down.
14333 * nat/fork-inferior.h (startup_inferior): Add
14334 process_stratum_target parameter.
14335 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14336
75c6c844
PA
143372020-01-10 Pedro Alves <palves@redhat.com>
14338
14339 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14340 directly. Instead find the first thread in the thread list and
14341 use switch_to_thread.
14342
78f2c40a
PA
143432020-01-10 Pedro Alves <palves@redhat.com>
14344
14345 * remote.c (remote_target::remote_add_inferior): Don't bind a
14346 process to the current inferior if the current inferior is already
14347 bound to a process.
14348
e7af6c70
TBA
143492020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14350 Pedro Alves <palves@redhat.com>
14351
14352 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14353 If no process is specified, return null_ptid instead of
14354 inferior_ptid.
14355 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14356 TARGET_WAITKIND_SIGNALLED with no pid.
14357
31ba933e
PA
143582020-01-10 Pedro Alves <palves@redhat.com>
14359
14360 * remote.c (first_remote_resumed_thread): New.
14361 (remote_target::wait_as): Use it as default event_ptid instead of
14362 inferior_ptid.
14363
735fc2ca
PA
143642020-01-10 Pedro Alves <palves@redhat.com>
14365
14366 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14367
c17e02e1
PA
143682020-01-10 Pedro Alves <palves@redhat.com>
14369
14370 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14371 not -1.
14372
ab1ddbcf
PA
143732020-01-10 Pedro Alves <palves@redhat.com>
14374
14375 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14376 ptid to get_last_target_status.
14377 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14378 ptid to get_last_target_status.
14379 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14380 get_last_target_status.
14381 (info_program_command): Don't pass a target_waitstatus to
14382 get_last_target_status.
14383 * infrun.c (init_wait_for_inferior): Use
14384 nullify_last_target_wait_ptid.
14385 (get_last_target_status): Handle nullptr arguments.
14386 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14387 (print_stop_event): Don't pass a ptid to get_last_target_status.
14388 (normal_stop): Don't pass a ptid to get_last_target_status.
14389 * infrun.h (get_last_target_status, set_last_target_status): Move
14390 comments here and update.
14391 (nullify_last_target_wait_ptid): Declare.
14392 * linux-fork.c (fork_load_infrun_state): Remove local extern
14393 declaration of nullify_last_target_wait_ptid.
14394 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14395 to get_last_target_status.
14396
f3f8ece4
PA
143972020-01-10 Pedro Alves <palves@redhat.com>
14398
14399 * gdbthread.h (scoped_restore_current_thread)
14400 <dont_restore, restore, m_dont_restore>: Declare.
14401 * thread.c (thread_alive): Add assertion. Return bool.
14402 (switch_to_thread_if_alive): New.
14403 (prune_threads): Switch inferior/thread.
14404 (print_thread_info_1): Switch thread before calling target methods.
14405 (scoped_restore_current_thread::restore): New, factored out from
14406 ...
14407 (scoped_restore_current_thread::~scoped_restore_current_thread):
14408 ... this.
14409 (scoped_restore_current_thread::scoped_restore_current_thread):
14410 Add assertion.
14411 (thread_apply_all_command, thread_select): Use
14412 switch_to_thread_if_alive.
14413 * infrun.c (proceed, restart_threads, handle_signal_stop)
14414 (switch_back_to_stepped_thread): Switch current thread before
14415 calling target methods.
14416
db2d40f7
PA
144172020-01-10 Pedro Alves <palves@redhat.com>
14418
14419 * inferior.c (switch_to_inferior_no_thread): New function,
14420 factored out from ...
14421 (inferior_command): ... here.
14422 * inferior.h (switch_to_inferior_no_thread): Declare.
14423 * mi/mi-main.c (run_one_inferior): Use
14424 switch_to_inferior_no_thread.
14425
bd420a2d
PA
144262020-01-10 Pedro Alves <palves@redhat.com>
14427
14428 * infcmd.c (kill_command): Remove dead code.
14429
ddf5db90
PA
144302020-01-10 Pedro Alves <palves@redhat.com>
14431
14432 * remote.c (remote_target::mourn_inferior): No longer check
14433 whether the target is running.
14434
5018ce90
PA
144352020-01-10 Pedro Alves <palves@redhat.com>
14436
14437 * corelow.c (core_target::has_execution): Change parameter type to
14438 inferior pointer.
14439 * inferior.c (number_of_live_inferiors): Use
14440 inferior::has_execution instead of target_has_execution_1.
14441 * inferior.h (inferior::has_execution): New.
14442 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14443 inferior::has_execution instead of target_has_execution_1.
14444 * process-stratum-target.c
14445 (process_stratum_target::has_execution): Change parameter type to
14446 inferior pointer. Check the inferior's PID instead of
14447 inferior_ptid.
14448 * process-stratum-target.h
14449 (process_stratum_target::has_execution): Change parameter type to
14450 inferior pointer.
14451 * record-full.c (record_full_core_target::has_execution): Change
14452 parameter type to inferior pointer.
14453 * target.c (target_has_execution_1): Change parameter type to
14454 inferior pointer.
14455 (target_has_execution_current): Adjust.
14456 * target.h (target_ops::has_execution): Change parameter type to
14457 inferior pointer.
14458 (target_has_execution_1): Change parameter type to inferior
14459 pointer. Change return type to bool.
14460 * tracefile.h (tracefile_target::has_execution): Change parameter
14461 type to inferior pointer.
14462
74375d18
PA
144632020-01-10 Pedro Alves <palves@redhat.com>
14464
14465 * exceptions.c (print_flush): Remove current_top_target() check.
14466
acdf84a6
PA
144672020-01-10 Pedro Alves <palves@redhat.com>
14468
14469 * remote.c (show_remote_exec_file): Show the current inferior's
14470 exec-file instead of the command variable's value.
14471
ec506636
PA
144722020-01-10 Pedro Alves <palves@redhat.com>
14473
14474 * record-full.c (record_full_resume_ptid): New global.
14475 (record_full_target::resume): Set it.
14476 (record_full_wait_1): Use record_full_resume_ptid instead of
14477 inferior_ptid.
14478
873657b9
PA
144792020-01-10 Pedro Alves <palves@redhat.com>
14480
14481 * gdbthread.h (scoped_restore_current_thread)
14482 <dont_restore, restore, m_dont_restore>: Declare.
14483 * thread.c (thread_alive): Add assertion. Return bool.
14484 (switch_to_thread_if_alive): New.
14485 (prune_threads): Switch inferior/thread.
14486 (print_thread_info_1): Switch thread before calling target methods.
14487 (scoped_restore_current_thread::restore): New, factored out from
14488 ...
14489 (scoped_restore_current_thread::~scoped_restore_current_thread):
14490 ... this.
14491 (scoped_restore_current_thread::scoped_restore_current_thread):
14492 Add assertion.
14493 (thread_apply_all_command, thread_select): Use
14494 switch_to_thread_if_alive.
14495
7f0ae84c
GB
144962020-01-10 George Barrett <bob@bob131.so>
14497
14498 * stap-probe.c (stap_modify_semaphore): Don't check for null
14499 semaphores.
14500 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14501 for null semaphores.
14502
f5a7c406
AB
145032020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14504
14505 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14506 all source windows, and maintain horizontal scroll status while
14507 doing so.
14508
9ae6bf64
TT
145092020-01-09 Tom Tromey <tom@tromey.com>
14510
14511 PR tui/18932:
14512 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14513 update_source_window, not print_source_lines.
14514
b2efe70c
AB
145152020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14516
14517 * tui/tui.c (tui_enable): Register tui hooks after calling
14518 tui_display_main.
14519
5f23a082
CB
145202020-01-09 Christian Biesinger <cbiesinger@google.com>
14521
14522 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14523
3061113b
SM
145242020-01-08 Simon Marchi <simon.marchi@efficios.com>
14525
14526 * thread.c (print_thread_info_1): Fix indentation.
14527
57d75002
CB
145282020-01-09 Christian Biesinger <cbiesinger@google.com>
14529
14530 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14531 unique_xmalloc_ptr outside the if to always free the demangled name.
14532
6a053cb1
TT
145332020-01-08 Tom Tromey <tromey@adacore.com>
14534
14535 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14536 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14537 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14538 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14539 Remove.
14540 (section_offsets): New typedef.
14541 * symtab.c (fixup_section, get_msymbol_address): Update.
14542 * symmisc.c (dump_msymbols): Update.
14543 * symfile.h (relative_addr_info_to_section_offsets)
14544 (symfile_map_offsets_to_segments): Update.
14545 * symfile.c (build_section_addr_info_from_objfile)
14546 (init_objfile_sect_indices): Update.
14547 (struct place_section_arg): Change type of "offsets".
14548 (place_section): Update.
14549 (relative_addr_info_to_section_offsets): Change type of
14550 "section_offsets". Remove "num_sections" parameter.
14551 (default_symfile_offsets, syms_from_objfile_1)
14552 (set_objfile_default_section_offset): Update.
14553 (reread_symbols): No need to preserve section offsets by hand.
14554 (symfile_map_offsets_to_segments): Change type of "offsets".
14555 * stap-probe.c (relocate_address): Update.
14556 * stabsread.h (process_one_symbol): Update.
14557 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14558 (solib_target_relocate_section_addresses): Update.
14559 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14560 Update.
14561 * solib-frv.c (frv_relocate_main_executable): Update.
14562 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14563 * solib-aix.c (solib_aix_get_section_offsets): Change return
14564 type.
14565 (solib_aix_solib_create_inferior_hook): Update.
14566 * remote.c (remote_target::get_offsets): Update.
14567 * psymtab.c (find_pc_sect_psymtab): Update.
14568 * psympriv.h (struct partial_symbol) <address, text_low,
14569 text_high>: Update.
14570 * objfiles.h (obj_section_offset): Update.
14571 (struct objfile) <section_offsets>: Change type.
14572 <num_sections>: Remove.
14573 (objfile_relocate): Update.
14574 * objfiles.c (entry_point_address_query): Update
14575 (relocate_one_symbol): Change type of "section_offsets".
14576 (objfile_relocate1, objfile_relocate1): Change type of
14577 "new_offsets".
14578 (objfile_rebase1): Update.
14579 * mipsread.c (mipscoff_symfile_read): Update.
14580 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14581 parameter.
14582 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14583 (parse_external, psymtab_to_symtab_1): Update.
14584 * machoread.c (macho_symfile_offsets): Update.
14585 * ia64-tdep.c (ia64_find_unwind_table): Update.
14586 * hppa-tdep.c (read_unwind_info): Update.
14587 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14588 * dwarf2read.c (create_addrmap_from_index)
14589 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14590 (process_psymtab_comp_unit_reader, add_partial_symbol)
14591 (add_partial_subprogram, process_full_comp_unit)
14592 (read_file_scope, read_func_scope, read_lexical_block_scope)
14593 (read_call_site_scope, dwarf2_rnglists_process)
14594 (dwarf2_ranges_process, dwarf2_ranges_read)
14595 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14596 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14597 Update.
14598 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14599 Update.
14600 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14601 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14602 (process_one_symbol): Change type of "section_offsets".
14603 * ctfread.c (get_objfile_text_range): Update.
14604 * coffread.c (coff_symtab_read, enter_linenos)
14605 (process_coff_symbol): Update.
14606 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14607 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14608
456e800a
TT
146092020-01-08 Tom Tromey <tromey@adacore.com>
14610
14611 * dwarf2read.c (parse_macro_definition): Use std::string.
14612 (parse_macro_definition): Likewise.
14613
6dfa2fc2
TT
146142020-01-08 Tom Tromey <tromey@adacore.com>
14615
14616 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14617 (ATTR_ALLOC_CHUNK): Remove.
14618
421d1616
TT
146192020-01-08 Tom Tromey <tromey@adacore.com>
14620
14621 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14622
43816ebc
TT
146232020-01-08 Tom Tromey <tromey@adacore.com>
14624
14625 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14626 (dwarf2_compute_name, open_dwo_file): Likewise.
14627 (process_enumeration_scope): Use std::vector.
14628 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14629 (partial_die_info::fixup, dwarf2_start_subfile)
14630 (guess_full_die_structure_name, dwarf2_name): Likewise.
14631 (determine_prefix): Update.
14632 (guess_full_die_structure_name): Make return type const.
14633 (partial_die_full_name): Return unique_xmalloc_ptr.
14634 (DW_FIELD_ALLOC_CHUNK): Remove.
14635
4212d509
TT
146362020-01-07 Tom Tromey <tromey@adacore.com>
14637
14638 PR build/24937:
14639 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14640
06a6207a
JT
146412020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14642
14643 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14644
153d79c4
AB
146452020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14646
14647 * stack.c (print_frame_info): Move disassemble_next_line code
14648 inside source_print block.
14649
66182876
EZ
146502020-01-06 Eli Zaretskii <eliz@gnu.org>
14651
14652 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14653 gdb/signals.h, as we are now using native signal symbols.
14654
cbfa8581
SV
146552020-01-06 Shahab Vahedi <shahab@synopsys.com>
14656
14657 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14658 overflow by an early check of content vs threshold.
aac66a4c 14659 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14660 Likewise.
14661
3f602821
EZ
146622020-01-06 Eli Zaretskii <eliz@gnu.org>
14663
14664 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14665
a08c904d
JT
146662020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14667
14668 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14669 export table if no section contains it's RVA.
14670
89a65580
EZ
146712020-01-06 Eli Zaretskii <eliz@gnu.org>
14672
14673 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14674
8b7fcda2
HD
146752020-01-06 Hannes Domani <ssbssa@yahoo.de>
14676
14677 * source.c (print_source_lines_base): Set last_line_listed.
14678
a61b4f69
SV
146792020-01-06 Shahab Vahedi <shahab@synopsys.com>
14680
14681 * tui/tui-disasm.c: Remove trailing spaces.
14682
559e7e50
EZ
146832020-01-06 Eli Zaretskii <eliz@gnu.org>
14684 Pedro Alves <palves@redhat.com>
14685
14686 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14687 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14688 (windows_gdb_signal_to_target): New function, uses the above
14689 enumeration to convert GDB internal signal codes to equivalent
14690 Windows codes.
14691 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14692 * windows-nat.c: Include "gdb_wait.h".
14693 (get_windows_debug_event): Extract the fatal exception from the
14694 exit status and convert to the equivalent Posix signal number.
14695 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14696 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14697 * gdbsupport/gdb_wait.c: New file, implements
14698 windows_status_to_termsig.
14699 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14700 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14701
f2302a34
AB
147022020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14703
14704 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14705 show_layout.
14706
6a5206eb
LM
147072020-01-05 Luis Machado <luis.machado@linaro.org>
14708
14709 * aarch64-linux-nat.c
14710 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14711 and bfd_mach_aarch64.
14712
6ec1d75e
PW
147132020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14714
14715 * ui-file.c (stdio_file::can_emit_style_escape)
14716 (tee_file::can_emit_style_escape): Ensure style is used also on
14717 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14718 to gdb_stdout.
14719 * main.c (set_gdb_data_directory): Use file style to output the
14720 warning that the given pathname is not a directory.
14721 * top.c (show_history_filename, gdb_safe_append_history)
14722 (show_gdb_datadir): Use file style.
14723
44f81a76
HD
147242020-01-03 Hannes Domani <ssbssa@yahoo.de>
14725
14726 * solib-target.c (struct lm_info_target):
14727 Change offsets to be a unique_xmalloc_ptr.
14728 (solib_target_relocate_section_addresses): Update.
14729
25057eb0
HD
147302020-01-03 Hannes Domani <ssbssa@yahoo.de>
14731
14732 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14733
6e2118f5
BE
147342020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14735
14736 * MAINTAINERS (Write After Approval): Add myself.
14737
8133c7dc
LM
147382020-01-02 Luis Machado <luis.machado@linaro.org>
14739
14740 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14741 Cell BE architecture.
14742 * target.h (struct target_ops) <thread_architecture>: Likewise.
14743
48189bec
HD
147442020-01-01 Hannes Domani <ssbssa@yahoo.de>
14745
14746 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14747
ead1063b
HD
147482020-01-01 Hannes Domani <ssbssa@yahoo.de>
14749
14750 * MAINTAINERS (Write After Approval): Add myself.
14751
e5d78223
JB
147522020-01-01 Joel Brobecker <brobecker@adacore.com>
14753
14754 * gdbarch.sh: Update copyright year range of generated files.
14755
b811d2c2
JB
147562020-01-01 Joel Brobecker <brobecker@adacore.com>
14757
14758 Update copyright year range in all GDB files.
14759
5f4def5c
JB
147602020-01-01 Joel Brobecker <brobecker@adacore.com>
14761
14762 * copyright.py: Convert to Python 3.
14763
51fd4002
JB
147642020-01-01 Joel Brobecker <brobecker@adacore.com>
14765
14766 * copyright.py: Adapt after move of gnulib directory from gdb
14767 directory to toplevel directory.
14768
5fb651f2
JB
147692020-01-01 Joel Brobecker <brobecker@adacore.com>
14770
14771 * copyright.py (main): Exit if run from the wrong directory.
14772
5dd8bf88
JB
147732020-01-01 Joel Brobecker <brobecker@adacore.com>
14774
14775 * top.c (print_gdb_version): Change copyright year to 2020.
14776
9f71dacb 147772020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14778
9f71dacb 14779 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14780
9f71dacb 14781For older changes see ChangeLog-2019.
c906108c
SS
14782\f
14783Local Variables:
14784mode: change-log
14785left-margin: 8
14786fill-column: 74
14787version-control: never
57da7796 14788coding: utf-8
c906108c 14789End: