Change die_info methods to check the attribute's form
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
52c14d11
TT
12020-09-29 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
4 the attribute's form.
5
e8e5c158
TT
62020-09-29 Tom Tromey <tom@tromey.com>
7
8 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
9 (dwarf2_add_member_fn): Update.
10 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
11 * dwarf2/attribute.c (attribute::defaulted): New method, from
12 is_valid_DW_AT_defaulted.
13
d4df075e
TT
142020-09-29 Tom Tromey <tom@tromey.com>
15
16 * dwarf2/read.c (dw2_get_file_names_reader)
17 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
18 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
19 (dwarf2_symbol_mark_computed): Use as_unsigned.
20 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
21 method.
22 <form_is_section_offset>: Update comment.
23
bf23a268
TT
242020-09-29 Tom Tromey <tom@tromey.com>
25
26 * dwarf2/read.c (dwarf2_access_attribute): Rename from
27 dwarf2_default_access_attribute. Look up attribute.
28 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
29 Update.
30
7a5f294d
TT
312020-09-29 Tom Tromey <tom@tromey.com>
32
33 * dwarf2/read.c (skip_one_die): Update.
34 (read_full_die_1): Change how reprocessing is done.
35 (partial_die_info::read): Update.
36 (read_attribute_value): Remove need_reprocess parameter.
37 (read_attribute): Likewise.
38 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
39 New method.
40
36d378cf
TT
412020-09-29 Tom Tromey <tom@tromey.com>
42
43 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
44 (dwarf2_const_value_attr, dump_die_shallow)
45 (dwarf2_fetch_constant_bytes): Update.
46 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
47 comment.
48 <set_address>: New method.
49 (DW_ADDR): Remove.
50 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
51 (attribute::as_string, attribute::as_address): Add assert.
52
fe56917a
TT
532020-09-29 Tom Tromey <tom@tromey.com>
54
55 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
56 (read_attribute_reprocess, read_attribute_value): Update.
57 (read_attribute): Clear requires_reprocessing.
58 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
59 form_requires_reprocessing>: New methods.
60 <string_init>: Clear requires_reprocessing.
61 <set_unsigned_reprocess>: New method.
62 <name>: Shrink by one bit.
63 <requires_reprocessing>: New member.
64 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
65 method.
66
414ad644
TT
672020-09-29 Tom Tromey <tom@tromey.com>
68
69 * dwarf2/read.c (read_attribute_value): Update.
70 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
71 set_unsigned>: New methods.
72 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
73
1bc397c5
TT
742020-09-29 Tom Tromey <tom@tromey.com>
75
76 * dwarf2/read.c (get_alignment, read_array_order)
77 (read_attribute_value, dwarf2_const_value_attr)
78 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
79 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
80 New methods.
81 (DW_SND): Remove.
82
630ed6b9
TT
832020-09-29 Tom Tromey <tom@tromey.com>
84
85 * dwarf2/read.c (read_attribute_value, lookup_die_type)
86 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
87 Update.
88 * dwarf2/attribute.h (struct attribute) <as_signature,
89 set_signature>: New methods.
90 (DW_SIGNATURE): Remove.
91
9d2246fc
TT
922020-09-29 Tom Tromey <tom@tromey.com>
93
94 * dwarf2/read.c (read_call_site_scope)
95 (handle_data_member_location, dwarf2_add_member_fn)
96 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
97 (partial_die_info::read, read_attribute_value)
98 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
99 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
100 (dwarf2_symbol_mark_computed): Update.
101 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
102 methods.
103 (DW_BLOCK): Remove.
104 * dwarf2/attribute.c (attribute::form_is_block): Add
105 DW_FORM_data16.
106
c6481205
TT
1072020-09-29 Tom Tromey <tom@tromey.com>
108
109 * dwarf2/read.c (read_cutu_die_from_dwo)
110 (read_attribute_reprocess, read_attribute_value, read_attribute)
111 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
112 (dwarf2_fetch_constant_bytes): Update.
113 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
114 <set_string_noncanonical, set_string_canonical>: New methods.
115 <string_is_canonical>: Update comment.
116 <canonical_string_p>: Add assert.
117 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
118 * dwarf2/attribute.c (attribute::form_is_string): New method.
119 (attribute::string): Use it.
120
3b64bf15
TT
1212020-09-29 Tom Tromey <tom@tromey.com>
122
123 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
124 (dump_die_shallow): Use canonical_string_p.
125 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
126 method.
127
2c830f54
TT
1282020-09-29 Tom Tromey <tom@tromey.com>
129
130 * dwarf2/read.c (partial_die_info::read)
131 (dwarf2_const_value_attr, anonymous_struct_prefix, )
132 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
133 attribute::as_string.
134
6c412691
TT
1352020-09-29 Tom Tromey <tom@tromey.com>
136
137 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
138 DW_ADDR.
139 (attribute::string): Don't use DW_STRING.
140 (attribute::get_ref_die_offset): Don't use DW_UNSND.
141 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
142
95f982e5
TT
1432020-09-29 Tom Tromey <tom@tromey.com>
144
145 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
146 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
147 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
148 * dwarf2/attribute.h (struct attribute): Rename methods.
149 * dwarf2/attribute.c (attribute::as_address): Rename from
150 value_as_address.
151 (attribute::as_string): Rename from value_as_string.
152
f800b00e
TT
1532020-09-29 Tom Tromey <tom@tromey.com>
154
155 * dwarf2/read.c (partial_die_info::read) <case
156 DW_AT_linkage_name>: Use value_as_string.
157 (dwarf2_string_attr): Use value_as_string.
158 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
159 method.
160 * dwarf2/attribute.c (attribute::value_as_string): New method.
161
de38d64a
PA
1622020-09-29 Pedro Alves <pedro@palves.net>
163
164 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
165 defined before using '#pragma GCC diagnostic' instead of checking
166 __clang__.
167
9aed480c
TT
1682020-09-28 Tom Tromey <tom@tromey.com>
169
170 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
171 (handle_signal_stop): Update.
172 * procfs.c (procfs_target::insert_watchpoint): Update.
173 * target.h (target_have_steppable_watchpoint): Now a function.
174
8a3ecb79
TT
1752020-09-28 Tom Tromey <tom@tromey.com>
176
177 * infrun.c (set_schedlock_func): Update.
178 * target.h (target_can_lock_scheduler): Now a function.
179
55f6301a
TT
1802020-09-28 Tom Tromey <tom@tromey.com>
181
182 * inferior.h (class inferior) <has_execution>: Update.
183 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
184 * valops.c (find_function_in_inferior)
185 (value_allocate_space_in_inferior): Update.
186 * top.c (kill_or_detach): Update.
187 * target.c (target_preopen, set_target_permissions): Update.
188 (target_has_execution_current): Remove.
189 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
190 Update.
191 * solib.c (update_solib_list, reload_shared_libraries): Update.
192 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
193 * solib-dsbt.c (enable_break): Update.
194 * score-tdep.c (score7_fetch_inst): Update.
195 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
196 Update.
197 * remote.c (remote_target::start_remote)
198 (remote_target::remote_check_symbols, remote_target::open_1)
199 (remote_target::remote_detach_1, remote_target::verify_memory)
200 (remote_target::xfer_partial, remote_target::read_description)
201 (remote_target::get_min_fast_tracepoint_insn_len): Update.
202 * record-full.c (record_full_open_1): Update.
203 * record-btrace.c (record_btrace_target_open): Update.
204 * objc-lang.c (lookup_objc_class, lookup_child_selector)
205 (value_nsstring): Update.
206 * linux-thread-db.c (add_thread_db_info)
207 (thread_db_find_new_threads_silently, check_thread_db_callback)
208 (try_thread_db_load_1, record_thread): Update.
209 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
210 Update.
211 * linux-fork.c (checkpoint_command): Update.
212 * infrun.c (set_non_stop, set_observer_mode)
213 (check_multi_target_resumption, for_each_just_stopped_thread)
214 (maybe_remove_breakpoints, normal_stop)
215 (class infcall_suspend_state): Update.
216 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
217 (info_program_command, attach_command): Update.
218 * infcall.c (call_function_by_hand_dummy): Update.
219 * inf-loop.c (inferior_event_handler): Update.
220 * gcore.c (gcore_command, derive_heap_segment): Update.
221 * exec.c (exec_file_command): Update.
222 * eval.c (evaluate_subexp): Update.
223 * compile/compile.c (compile_to_object): Update.
224 * cli/cli-dump.c (restore_command): Update.
225 * breakpoint.c (update_watchpoint)
226 (update_inserted_breakpoint_locations)
227 (insert_breakpoint_locations, get_bpstat_thread): Update.
228 * target.h (target_has_execution): Remove macro.
229 (target_has_execution_current): Don't declare.
230 (target_has_execution): Rename from target_has_execution_1. Add
231 argument default.
232
05374cfd
TT
2332020-09-28 Tom Tromey <tom@tromey.com>
234
235 * mi/mi-main.c (exec_reverse_continue)
236 (mi_cmd_list_target_features): Update.
237 * infrun.c (set_exec_direction_func): Update.
238 * target.c (default_execution_direction): Update.
239 * reverse.c (exec_reverse_once): Update.
240 * target.h (target_can_execute_reverse): Now a function.
241
9dccd06e
TT
2422020-09-28 Tom Tromey <tom@tromey.com>
243
244 * tui/tui-regs.c (tui_get_register)
245 (tui_data_window::show_registers): Update.
246 * thread.c (scoped_restore_current_thread::restore)
247 (scoped_restore_current_thread::scoped_restore_current_thread):
248 Update.
249 * regcache-dump.c (regcache_print): Update.
250 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
251 Update.
252 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
253 * mep-tdep.c (current_me_module, current_options): Update.
254 * linux-thread-db.c (thread_db_load): Update.
255 * infcmd.c (registers_info, info_vector_command)
256 (info_float_command): Update.
257 * ia64-tdep.c (ia64_frame_prev_register)
258 (ia64_sigtramp_frame_prev_register): Update.
259 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
260 * gcore.c (derive_stack_segment): Update.
261 * frame.c (get_current_frame, has_stack_frames): Update.
262 * findvar.c (language_defn::read_var_value): Update.
263 * arm-tdep.c (arm_pc_is_thumb): Update.
264 * target.c (target_has_registers): Rename from
265 target_has_registers_1.
266 * target.h (target_has_registers): Remove macro.
267 (target_has_registers): Rename from target_has_registers_1.
268
841de120
TT
2692020-09-28 Tom Tromey <tom@tromey.com>
270
271 * windows-tdep.c (tlb_make_value): Update.
272 * tui/tui-regs.c (tui_data_window::show_registers): Update.
273 * thread.c (scoped_restore_current_thread::restore)
274 (scoped_restore_current_thread::scoped_restore_current_thread)
275 (thread_command): Update.
276 * stack.c (backtrace_command_1, frame_apply_level_command)
277 (frame_apply_all_command, frame_apply_command): Update.
278 * infrun.c (siginfo_make_value, restore_infcall_control_state):
279 Update.
280 * gcore.c (derive_stack_segment): Update.
281 * frame.c (get_current_frame, has_stack_frames): Update.
282 * auxv.c (info_auxv_command): Update.
283 * ada-tasks.c (ada_build_task_list): Update.
284 * target.c (target_has_stack): Rename from target_has_stack_1.
285 * target.h (target_has_stack): Remove macro.
286 (target_has_stack): Rename from target_has_stack_1.
287
a739972c
TT
2882020-09-28 Tom Tromey <tom@tromey.com>
289
290 * target.c (target_has_memory): Rename from target_has_memory_1.
291 * tui/tui-regs.c (tui_data_window::show_registers): Update.
292 * thread.c (scoped_restore_current_thread::restore)
293 (scoped_restore_current_thread::scoped_restore_current_thread):
294 Update.
295 * frame.c (get_current_frame, has_stack_frames): Update.
296 * target.h (target_has_memory): Remove macro.
297 (target_has_memory): Rename from target_has_memory_1.
298
5b8a4776
TT
2992020-09-28 Tom Tromey <tom@tromey.com>
300
301 * target.c (target_has_all_memory_1): Remove.
302 * target.h (target_has_all_memory): Remove define.
303 (target_has_all_memory_1): Don't declare.
304
bd356ec6
SM
3052020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
306
307 * ser-base.c: Adjust comments formatting.
308
2c72d5e5
TT
3092020-09-27 Tom Tromey <tom@tromey.com>
310
311 PR tui/25342:
312 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
313
35a98237
TT
3142020-09-27 Tom Tromey <tom@tromey.com>
315
316 PR tui/25342:
317 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
318
9e820dec
TT
3192020-09-27 Tom Tromey <tom@tromey.com>
320
321 * unittests/tui-selftests.c: Update.
322 * tui/tui-winsource.h (struct tui_source_window_base)
323 <extra_margin, show_line_number, refresh_pad>: New methods.
324 <m_max_length, m_pad>: New members.
325 (tui_copy_source_line): Update.
326 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
327 first_col, line_width, ndigits parameters. Add length.
328 (tui_source_window_base::show_source_line): Write to pad. Line
329 number now 0-based.
330 (tui_source_window_base::refresh_pad): New method.
331 (tui_source_window_base::show_source_content): Write to pad. Call
332 refresh_pad.
333 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
334 not refill.
335 (tui_source_window_base::update_exec_info): Call
336 show_line_number.
337 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
338 method.
339 <m_digits>: New member.
340 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
341 and m_max_length.
342 (tui_source_window::show_line_number): New method.
343 * tui/tui-io.h (tui_puts): Fix comment.
344 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
345 m_max_length.
346
c15c15c8
TT
3472020-09-27 Tom Tromey <tom@tromey.com>
348
349 * tui/tui-winsource.c
350 (tui_source_window_base::set_is_exec_point_at): Don't call
351 show_source_line.
352
149830c1
TT
3532020-09-27 Tom Tromey <tom@tromey.com>
354
355 * python/py-tui.c (class tui_py_window) <refresh_window>: New
356 method.
357 <erase>: Update.
358 <cursor_x, cursor_y>: Remove.
359 <m_inner_window>: New member.
360 (tui_py_window::rerender): Create inner window.
361 (tui_py_window::output): Write to inner window.
362
8f9929bb
GR
3632020-09-26 Gareth Rees <grees@undo.io> (tiny change)
364
365 PR python/26586
366 * cli/cli-script.c (execute_control_commands): don't set
367 instream to nullptr here as this breaks the from_tty argument
368 to gdb.execute in Python.
369 (execute_user_command): set instream to nullptr here instead.
370
956bdb59
SM
3712020-09-25 Simon Marchi <simon.marchi@efficios.com>
372
373 * infrun.h (infrun_debug_printf): Fix formatting.
374 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
375
3b93626b
SJ
3762020-09-25 Saagar Jha <saagar@saagarjha.com>
377
378 * compile/compile-object-load.h (struct munmap_list): Add
379 explicitly-defined move constructor.
380
b551a89f
TT
3812020-09-24 Tom Tromey <tromey@adacore.com>
382
383 PR tui/26638:
384 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
385 method.
386 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
387 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
388 (tui_prev_win): Rewrite.
389
99bb393f
HD
3902020-09-23 Hannes Domani <ssbssa@yahoo.de>
391
392 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
393 in WOW64 processes as SIGINT.
394 * nat/windows-nat.h: Make wow64_process a shared variable.
395 * windows-nat.c: Remove static wow64_process variable.
396
20a5fcbd
TT
3972020-09-23 Tom Tromey <tom@tromey.com>
398
399 PR symtab/25470:
400 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
401 offset and bit size.
402 * printcmd.c (print_scalar_formatted): Handle zero-length
403 integer.
404 (print_scalar_formatted): Use bit_size_differs_p.
405 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
406 constant.
407 (union type_specific): <int_stuff>: New member.
408 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
409 methods.
410 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
411 TYPE_SPECIFIC_FIELD.
412 (recursive_dump_type, copy_type_recursive): Update.
413 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
414 DW_AT_data_bit_offset.
415
bac51ab7
TT
4162020-09-23 Tom Tromey <tom@tromey.com>
417
418 * utils.h (class gdb_argv): Add move operators.
419 <append>: New methods.
420 * compile/compile.c (build_argc_argv): Remove.
421 (compile_args_argc): Remove.
422 (compile_args_argv): Change type.
423 (set_compile_args): Simplify.
424 (append_args): Remove.
425 (filter_args): Remove argcp parameter.
426 (get_args): Return gdb_argv. Simplify.
427 (compile_to_object): Update.
428
92677124
TT
4292020-09-23 Tom Tromey <tom@tromey.com>
430
431 * compile/compile-object-run.c (do_module_cleanup)
432 <~do_module_cleanup> :Remove.
433 (do_module_cleanup): Update.
434 * compile/compile-object-load.h (struct munmap_list): Add move
435 assignment operator.
436 <source_file>: Now a std::string.
437 <munmap_list>: Rename. No longer a pointer.
438 * compile/compile-object-load.c (struct setup_sections_data): Add
439 constructor.
440 <setup_one_section>: Declare.
441 <munmap_list>: Move earlier.
442 <m_bfd>: New member.
443 <m_last_size, m_last_section_first, m_last_prot,
444 m_last_max_alignment>: Rename, add initializers where needed.
445 (setup_sections_data::setup_one_section): Rename from
446 setup_sections. Update.
447 (compile_object_load): Update. Don't use bfd_map_over_sections.
448
e616f60a
TT
4492020-09-23 Tom Tromey <tom@tromey.com>
450
451 * compile/compile-object-run.c (struct do_module_cleanup): Add
452 parameters to constructor. Update destructor.
453 <source_file, scope, scope_data, out_value_type, out_value_addr,
454 munmap_list_head, objfile_name_string>: Remove.
455 <module>: New member.
456 (do_module_cleanup): Update.
457 (compile_object_run): Update.
458
e947a848
TT
4592020-09-23 Tom Tromey <tom@tromey.com>
460
461 * compile/compile.c (eval_compile_command): Update.
462 * compile/compile-object-run.h (compile_object_run): Take a
463 compile_module_up.
464 * compile/compile-object-run.c (compile_object_run): Take a
465 compile_module_up.
466 * compile/compile-object-load.h (struct compile_module): Add
467 constructor, destructor.
468 (compile_module_up): New typedef.
469 (compile_object_load): Return compile_object_up.
470 * compile/compile-object-load.c (compile_object_load): Return
471 compile_module_up.
472
0dbf6ee6
TT
4732020-09-23 Tom Tromey <tom@tromey.com>
474
475 * compile/compile-object-run.c (struct do_module_cleanup): Add
476 constructor, destructor.
477 <objfile_name_string>: Don't use struct hack.
478 (do_module_cleanup): Use delete.
479 (compile_object_run): Use new.
480
ebe824f5
TT
4812020-09-23 Tom Tromey <tom@tromey.com>
482
483 * compile/compile-cplus-types.c
484 (compile_cplus_convert_struct_or_union): Use std::vector.
485 (compile_cplus_convert_func): Likewise.
486 * compile/compile-c-types.c (convert_func): Use std::vector.
487
5dd918d9
TT
4882020-09-21 Tom Tromey <tromey@adacore.com>
489
490 * sparc-tdep.c (sparc32_skip_prologue): Use
491 skip_prologue_using_sal.
492
5486c517
TT
4932020-09-19 Tom Tromey <tom@tromey.com>
494
495 * symfile.c (add_section_size_callback): Remove.
496 (load_one_section): Rename from load_section_callback. Change
497 parameters.
498 (generic_load): Use foreach.
499
8a6bb1d1
TT
5002020-09-19 Tom Tromey <tom@tromey.com>
501
502 * exec.c (add_to_section_table): Remove.
503 (build_section_table): Use foreach.
504
08f93a1a
TT
5052020-09-19 Tom Tromey <tom@tromey.com>
506
507 * elfread.c (elf_locate_sections): Change parameters.
508 (elf_symfile_read): Use foreach.
509
03cd72b8
TT
5102020-09-19 Tom Tromey <tom@tromey.com>
511
512 * cli/cli-dump.c (struct callback_data): Remove.
513 (restore_one_section): Rename from restore_section_callback.
514 Change parameters.
515 (restore_binary_file): Change parameters.
516 (restore_command): Use foreach.
517
f4f2b85f
TT
5182020-09-19 Tom Tromey <tom@tromey.com>
519
520 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
521 (gcore_copy_callback): Likewise.
522 (gcore_memory_sections): Use foreach.
523
b35c1d1c
TT
5242020-09-19 Tom Tromey <tom@tromey.com>
525
526 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
527 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
528 parameters.
529 (generic_elf_osabi_sniffer): Use foreach.
530 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
531 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
532
5bb6e9dd
TT
5332020-09-19 Tom Tromey <tom@tromey.com>
534
535 * dwarf2/read.c (locate_dwz_sections): Change parameters.
536 (dwarf2_get_dwz_file): Use foreach.
537 (dwarf2_locate_dwo_sections): Change parameters.
538 (open_and_init_dwo_file): Use foreach.
539 (dwarf2_locate_common_dwp_sections): Change parameters.
540 (open_and_init_dwp_file): Use foreach.
541
ad7277da
TT
5422020-09-19 Tom Tromey <tom@tromey.com>
543
544 * symfile.h: (find_lowest_section): Don't declare.
545 * symfile.c (find_lowest_section): Now static. Change
546 parameters.
547 (struct place_section_arg): Remove.
548 (place_section): Change parameters.
549 (addr_info_make_relative): Use foreach.
550 (symfile_dummy_outputs): Remove.
551 (default_symfile_relocate): Use foreach.
552
cb814f2e
TT
5532020-09-19 Tom Tromey <tom@tromey.com>
554
555 * objfiles.c (add_to_objfile_sections): Rename from
556 add_to_objfile_sections_full.
557 (add_to_objfile_sections): Remove.
558 (build_objfile_section_table): Use foreach.
559
3cabfd26
TT
5602020-09-19 Tom Tromey <tom@tromey.com>
561
562 * stap-probe.c (get_stap_base_address_1): Remove.
563 (get_stap_base_address): Use foreach.
564
1ce51eb5
TT
5652020-09-19 Tom Tromey <tom@tromey.com>
566
567 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
568 parameters.
569 (gdb_bfd_close_or_warn): Use foreach.
570
a190fabb
TT
5712020-09-19 Tom Tromey <tom@tromey.com>
572
573 * corelow.c (add_to_thread_list): Change parameters.
574 (core_target_open): Use foreach.
575
cafb0d81
TT
5762020-09-19 Tom Tromey <tom@tromey.com>
577
578 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
579 existing function.
580
c8d5abea
AB
5812020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
582
583 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
584 for arrays.
585
6d816919
AB
5862020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
587
588 * eval.c: Remove 'f-lang.h' include.
589 (value_f90_subarray): Moved to f-lang.c.
590 (eval_call): Renamed to...
591 (evaluate_subexp_do_call): ...this, is no longer static, header
592 comment moved into header file.
593 (evaluate_funcall): Update call to eval_call.
594 (skip_undetermined_arglist): Moved to f-lang.c.
595 (fortran_value_subarray): Likewise.
596 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
597 moved to evaluate_subexp_f.
598 (calc_f77_array_dims): Moved to f-lang.c
599 * expprint.c (print_subexp_funcall): New function.
600 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
601 moved to print_subexp_f, OP_FUNCALL uses new function.
602 (dump_subexp_body_funcall): New function.
603 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
604 moved to dump_subexp_f, OP_FUNCALL uses new function.
605 * expression.h (evaluate_subexp_do_call): Declare.
606 * f-lang.c (value_f90_subarray): Moved from eval.c.
607 (skip_undetermined_arglist): Likewise.
608 (calc_f77_array_dims): Likewise.
609 (fortran_value_subarray): Likewise.
610 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
611 (operator_length_f): Likewise.
612 (print_subexp_f): Likewise.
613 (dump_subexp_body_f): Likewise.
614 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
615 declaration of this operation to here.
616 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
617 support moved to operator_length_f.
618 * parser-defs.h (dump_subexp_body_funcall): Declare.
619 (print_subexp_funcall): Declare.
620 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
621 fortran-operator.def.
622
8c37706a
AB
6232020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * eval.c (fortran_value_subarray): New function, content is taken
626 from...
627 (evaluate_subexp_standard): ...here, in two places. Now arrays
628 and strings both call the new function.
629 (calc_f77_array_dims): Add header comment, handle strings.
630
14f9473c
VC
6312020-09-18 Victor Collod <vcollod@nvidia.com>
632
633 PR gdb/26635
634 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
635 (i386_analyze_prologue): Call i386_skip_endbr.
636
b60cea74
TT
6372020-09-18 Tom Tromey <tromey@adacore.com>
638
639 * windows-nat.c (struct windows_nat_target) <wait>: Update.
640 (windows_nat_target::wait): Update.
641 * target/wait.h (enum target_wait_flag): New. Use
642 DEF_ENUM_FLAGS_TYPE.
643 * target/target.h (target_wait): Change type of options.
644 * target.h (target_options_to_string, default_target_wait):
645 Update.
646 (struct target_ops) <wait>: Change type of options.
647 * target.c (target_wait, default_target_wait, do_option): Change
648 type of "options".
649 (target_options_to_string): Likewise.
650 * target-delegates.c: Rebuild.
651 * target-debug.h (target_debug_print_target_wait_flags): Rename
652 from target_debug_print_options.
653 * sol-thread.c (class sol_thread_target) <wait>: Update.
654 (sol_thread_target::wait): Update.
655 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
656 (rs6000_nat_target::wait): Update.
657 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
658 Update.
659 (remote_target::wait_ns, remote_target::wait_as): Change type of
660 "options".
661 (remote_target::wait): Update.
662 * remote-sim.c (struct gdbsim_target) <wait>: Update.
663 (gdbsim_target::wait): Update.
664 * record-full.c (class record_full_base_target) <wait>: Update.
665 (record_full_wait_1): Change type of "options".
666 (record_full_base_target::wait): Update.
667 * record-btrace.c (class record_btrace_target) <wait>: Update.
668 (record_btrace_target::wait): Update.
669 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
670 Update.
671 (ravenscar_thread_target::wait): Update.
672 * procfs.c (class procfs_target) <wait>: Update.
673 (procfs_target::wait): Update.
674 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
675 * obsd-nat.c (obsd_nat_target::wait): Update.
676 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
677 (nto_procfs_target::wait): Update.
678 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
679 * nbsd-nat.c (nbsd_wait): Change type of "options".
680 (nbsd_nat_target::wait): Update.
681 * linux-thread-db.c (class thread_db_target) <wait>: Update.
682 (thread_db_target::wait): Update.
683 * linux-nat.h (class linux_nat_target) <wait>: Update.
684 * linux-nat.c (linux_nat_target::wait): Update.
685 (linux_nat_wait_1): Update.
686 * infrun.c (do_target_wait_1, do_target_wait): Change type of
687 "options".
688 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
689 * inf-ptrace.c (inf_ptrace_target::wait): Update.
690 * go32-nat.c (struct go32_nat_target) <wait>: Update.
691 (go32_nat_target::wait): Update.
692 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
693 * gnu-nat.c (gnu_nat_target::wait): Update.
694 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
695 * fbsd-nat.c (fbsd_nat_target::wait): Update.
696 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
697 * darwin-nat.c (darwin_nat_target::wait): Update.
698 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
699 (bsd_uthread_target::wait): Update.
700 * aix-thread.c (class aix_thread_target) <wait>: Update.
701 (aix_thread_target::wait): Update.
702
0295dde6
AB
7032020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * compile/compile-object-run.c (create_copied_type_recursive): New
706 function.
707 (compile_object_run): Use new function.
708
d3483b43
JT
7092020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
710
711 * NEWS: Mention x86_64 Cygwin core file support.
712
e7d612ad
JT
7132020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
714
715 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
716 (core_process_module_section): Handle NOTE_INFO_MODULE64.
717
aff9d387
JT
7182020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
719
62a5151b
JT
720 * windows-tdep.h: Add prototypes.
721 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
722 (i386_windows_core_pid_to_str): Move and rename ...
723 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
724 (windows_core_pid_to_str): ... and here.
725 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
726
7272020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
728 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
729 (amd64_windows_init_abi_common): ... and register.
730
7d155da3
JT
7312020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
732
733 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
734 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
735
e8ef12b9
PA
7362020-09-18 Pedro Alves <pedro@palves.net>
737
738 PR gdb/26631
739 * thread.c (thread_find_command): Switch inferior before calling
740 target methods.
741
c1e1314d
TT
7422020-09-17 Tom Tromey <tromey@adacore.com>
743
744 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
745 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
746 (tdesc_arch_data_up): New typedef.
747 (tdesc_use_registers, tdesc_data_alloc): Update.
748 (tdesc_data_cleanup): Don't declare.
749 * target-descriptions.c (tdesc_data_alloc): Return a
750 tdesc_arch_data_up.
751 (tdesc_arch_data_deleter::operator()): Rename from
752 tdesc_data_cleanup. Change argument type.
753 (tdesc_use_registers): Change early_data to an rvalue reference.
754 (tdesc_use_registers): Don't use delete.
755 * sparc-tdep.c (sparc32_gdbarch_init): Update.
756 * s390-tdep.c (s390_gdbarch_init): Update.
757 * rx-tdep.c (rx_gdbarch_init): Update.
758 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
759 * riscv-tdep.c (riscv_gdbarch_init): Update.
760 * or1k-tdep.c (or1k_gdbarch_init): Update.
761 * nios2-tdep.c (nios2_gdbarch_init): Update.
762 * nds32-tdep.c (nds32_gdbarch_init): Update.
763 * mips-tdep.c (mips_gdbarch_init): Update.
764 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
765 * m68k-tdep.c (m68k_gdbarch_init): Update.
766 * i386-tdep.c (i386_gdbarch_init): Update.
767 * arm-tdep.c (arm_gdbarch_init): Update.
768 * arc-tdep.c (arc_tdesc_init): Update.
769 (arc_gdbarch_init): Update.
770 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
771
0363df3d
HD
7722020-09-17 Hannes Domani <ssbssa@yahoo.de>
773
774 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
775 for WOW64 processes.
776
280a9412
TT
7772020-09-17 Tom Tromey <tom@tromey.com>
778
779 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
780
6108fd18
TT
7812020-09-17 Tom Tromey <tom@tromey.com>
782
783 * value.c (preserve_values): Update.
784 * python/py-type.c (save_objfile_types): Update.
785 * guile/scm-type.c (save_objfile_types): Update.
786 * gdbtypes.h (create_copied_types_hash): Return htab_up.
787 * gdbtypes.c (create_copied_types_hash): Return htab_up.
788 * compile/compile-object-run.c (compile_object_run): Update.
789
fa9b1164
TT
7902020-09-17 Tom Tromey <tom@tromey.com>
791
792 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
793 Remove.
794 <m_table>: Now htab_up.
795 * typeprint.c (typedef_hash_table::recursively_update)
796 (typedef_hash_table::add_template_parameters)
797 (typedef_hash_table::typedef_hash_table): Update.
798 (typedef_hash_table::~typedef_hash_table): Remove.
799 (typedef_hash_table::typedef_hash_table)
800 (typedef_hash_table::find_global_typedef)
801 (typedef_hash_table::find_typedef): Update.
802
eb53f105
TT
8032020-09-17 Tom Tromey <tom@tromey.com>
804
805 * target-descriptions.c (tdesc_use_registers): Use htab_up.
806
7a8a5d47
TT
8072020-09-17 Tom Tromey <tom@tromey.com>
808
809 * linespec.c (class decode_compound_collector)
810 <~decode_compound_collector>: Remove.
811 <m_unique_syms>: Now htab_up.
812 (decode_compound_collector::operator ()): Update.
813 (class symtab_collector) <~symtab_collector>: Remove.
814 <m_symtab_table>: Now htab_up.
815 (symtab_collector::operator ()): Update.
816
99032cfc
TT
8172020-09-17 Tom Tromey <tom@tromey.com>
818
819 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
820 (filename_seen_cache::clear): Update.
821 (~filename_seen_cache): Remove.
822 (filename_seen_cache::seen): Update.
823 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
824 htab_up.
825 <~filename_seen_cache>: Remove.
826 <traverse>: Update.
827
32580f6d
TT
8282020-09-17 Tom Tromey <tom@tromey.com>
829
830 * completer.c (completion_tracker::discard_completions)
831 (completion_tracker::~completion_tracker)
832 (completion_tracker::maybe_add_completion)
833 (completion_tracker::remove_completion)
834 (completion_tracker::recompute_lowest_common_denominator)
835 (completion_tracker::build_completion_result): Update.
836 * completer.h (class completion_tracker) <have_completions>:
837 Update.
838 <m_entries_hash>: Now htab_up.
839
c1fb9836
TT
8402020-09-17 Tom Tromey <tom@tromey.com>
841
842 * breakpoint.c (ambiguous_names_p): Use htab_up.
843
88f07206
TT
8442020-09-17 Tom Tromey <tom@tromey.com>
845
846 * auto-load.c (struct auto_load_pspace_info)
847 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
848 <loaded_script_files, loaded_script_texts>: Change type to
849 htab_up.
850 (~auto_load_pspace_info) Remove.
851 (init_loaded_scripts_info, maybe_add_script_file)
852 (maybe_add_script_text, auto_load_info_scripts): Update.
853
9519b2ee
TT
8542020-09-17 Tom Tromey <tromey@adacore.com>
855
856 * c-exp.y (name_obstack): Now static.
857
d2cd4113
CC
8582020-09-17 Chungyi Chi <demonic@csie.io>
859
860 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
861
b650a282
SM
8622020-09-16 Simon Marchi <simon.marchi@efficios.com>
863
864 * breakpoint.h (init_catchpoint): Change int parameter to bool.
865 (add_solib_catchpoint): Likewise.
866 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
867 to bool.
868 (add_solib_catchpoint): Change int parameter/variable to bool.
869 (catch_load_or_unload): Likewise.
870 (init_catchpoint): Likewise.
871 (create_fork_vfork_event_catchpoint): Likewise.
872 (catch_fork_command_1): Likewise.
873 (catch_exec_command_1): Likewise.
874
4d0bcfcf
SM
8752020-09-16 Simon Marchi <simon.marchi@efficios.com>
876
877 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
878 Change instance_flags to m_instance_flags.
879
fe830662
TT
8802020-09-16 Tom Tromey <tromey@adacore.com>
881
882 PR gdb/26598:
883 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
884
fe5ddfc3
JB
8852020-09-16 John Baldwin <jhb@FreeBSD.org>
886
887 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
888 PL_FLAG_EXEC.
889 (fbsd_nat_target::insert_exec_catchpoint)
890 (fbsd_nat_target::remove_exec_catchpoint): Always define.
891 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
892 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
893
e911c666
JB
8942020-09-16 John Baldwin <jhb@FreeBSD.org>
895
896 * configure.ac: Remove check for kinfo_getvmmap().
897 * configure, config.in: Regenerate.
898 * fbsd-nat.c (fbsd_read_mapping): Remove
899 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
900 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
901 kinfo_get_vmmap() are always present.
902
1f17d372
JB
9032020-09-16 John Baldwin <jhb@FreeBSD.org>
904
905 * fbsd-nat.c: Always include support for
906 TARGET_OBJECT_SIGNAL_INFO.
907
bcb1da7f
JB
9082020-09-16 John Baldwin <jhb@FreeBSD.org>
909
910 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
911 sysctl and remove procfs fallback.
912
5515f729
JB
9132020-09-16 John Baldwin <jhb@FreeBSD.org>
914
915 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
916 * fbsd-nat.h: Likewise.
917
da1df1db
TBA
9182020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
919
920 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
921 argument.
922
0e25e767
AB
9232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
924
925 * ada-lang.c (ada_language_data): Delete.
926 (ada_language): Remove references to ada_language_data.
927 * c-lang.c (c_language_data): Delete.
928 (c_language): Remove references to c_language_data.
929 (cplus_language_data): Delete.
930 (cplus_language): Remove references to cplus_language_data.
931 (asm_language_data): Delete.
932 (asm_language): Remove references to asm_language_data.
933 (minimal_language_data): Delete.
934 (minimal_language): Remove references to minimal_language_data.
935 * d-lang.c (d_language_data): Delete.
936 (d_language): Remove references to d_language_data.
937 * f-lang.c (f_language_data): Delete.
938 (f_language): Remove references to f_language_data.
939 * go-lang.c (go_language_data): Delete.
940 (go_language): Remove references to go_language_data.
941 * language.c (unknown_language_data): Delete.
942 (unknown_language): Remove references to unknown_language_data.
943 (auto_language_data): Delete.
944 (auto_language): Remove references to auto_language_data.
945 * language.h (language_data): Delete struct.
946 (language_defn): No longer inherit from language_data.
947 * m2-lang.c (m2_language_data): Delete.
948 (m2_language): Remove references to m2_language_data.
949 * objc-lang.c (objc_language_data): Delete.
950 (objc_language): Remove references to objc_language_data.
951 * opencl-lang.c (opencl_language_data): Delete.
952 (opencl_language): Remove references to opencl_language_data.
953 * p-lang.c (pascal_language_data): Delete.
954 (pascal_language): Remove references to pascal_language_data.
955 * rust-lang.c (rust_language_data): Delete.
956 (rust_language): Remove references to rust_language_data.
957
b7c6e27d
AB
9582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
959
960 * ada-lang.c (ada_language_data): Remove la_op_print_tab
961 initializer.
962 (ada_language::opcode_print_table): New member function.
963 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
964 (c_language::opcode_print_table): New member function.
965 (cplus_language_data): Remove la_op_print_tab initializer.
966 (cplus_language::opcode_print_table): New member function.
967 (asm_language_data): Remove la_op_print_tab initializer.
968 (asm_language::opcode_print_table): New member function.
969 (minimal_language_data): Remove la_op_print_tab initializer.
970 (minimal_language::opcode_print_table): New member function.
971 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
972 (d_language::opcode_print_table): New member function.
973 * expprint.c (print_subexp_standard): Update call to
974 opcode_print_table.
975 (op_string): Likewise.
976 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
977 (f_language::opcode_print_table): New member function.
978 * go-lang.c (go_language_data): Remove la_op_print_tab
979 initializer.
980 (go_language::opcode_print_table): New member function.
981 * language.c (unknown_language_data): Remove la_op_print_tab
982 initializer.
983 (unknown_language::opcode_print_table): New member function.
984 (auto_language_data): Remove la_op_print_tab initializer.
985 (auto_language::opcode_print_table): New member function.
986 * language.h (language_data): Remove la_op_print_tab field.
987 (language_defn::opcode_print_table): Declare new member function.
988 * m2-lang.c (m2_language_data): Remove la_op_print_tab
989 initializer.
990 (m2_language::opcode_print_table): New member function.
991 * objc-lang.c (objc_language_data): Remove la_op_print_tab
992 initializer.
993 (objc_language::opcode_print_table): New member function.
994 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
995 initializer.
996 (opencl_language::opcode_print_table): New member function.
997 * p-lang.c (pascal_language_data): Remove la_op_print_tab
998 initializer.
999 (pascal_language::opcode_print_table): New member function.
1000 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1001 initializer.
1002 (rust_language::opcode_print_table): New member function.
1003
5aba6ebe
AB
10042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1007 (ada_language::expression_ops): New member function.
1008 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1009 (c_language::expression_ops): New member function.
1010 (cplus_language_data): Remove la_exp_desc initializer.
1011 (cplus_language::expression_ops): New member function.
1012 (asm_language_data): Remove la_exp_desc initializer.
1013 (asm_language::expression_ops): New member function.
1014 (minimal_language_data): Remove la_exp_desc initializer.
1015 (minimal_language::expression_ops): New member function.
1016 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1017 (d_language::expression_ops): New member function.
1018 * eval.c (evaluate_subexp): Update call to expression_ops.
1019 * expprint.c (print_subexp): Likewise.
1020 (op_name): Likewise.
1021 (dump_subexp_body): Likewise.
1022 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1023 (f_language::expression_ops): New member function.
1024 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1025 (go_language::expression_ops): New member function.
1026 * language.c (language_defn::expression_ops): New function.
1027 (unknown_language_data): Remove la_exp_desc initializer.
1028 (auto_language_data): Likewise.
1029 * language.h (language_data): Remove la_exp_desc field.
1030 (language_defn::expression_ops): Declare new member function.
1031 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1032 (m2_language::expression_ops): New member function.
1033 * objc-lang.c (objc_language_data): Remove la_exp_desc
1034 initializer.
1035 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1036 initializer.
1037 (opencl_language::expression_ops): New member function.
1038 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1039 * parse.c (operator_length): Update call to expression_ops.
1040 (exp_iterate): Likewise.
1041 * rust-lang.c (rust_language_data): Remove la_exp_desc
1042 initializer.
1043 (ruse_language::expression_ops): New member function.
1044
b63a3f3f
AB
10452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1046
1047 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1048 initializer.
1049 (ada_language::varobj_ops): New member function.
1050 * c-lang.c (c_language_data): Remove la_varobj_ops
1051 initializer.
1052 (cplus_language_data): Likewise.
1053 (cplus_language::varobj_ops): New member function.
1054 (asm_language_data): Remove la_varobj_ops initializer.
1055 (minimal_language_data): Likewise.
1056 * d-lang.c (d_language_data): Likewise.
1057 * f-lang.c (f_language_data): Likewise.
1058 * go-lang.c (go_language_data): Likewise.
1059 * language.c (language_defn::varobj_ops): New function.
1060 (unknown_language_data): Remove la_varobj_ops
1061 initializer.
1062 (auto_language_data): Likewise.
1063 * language.h (language_data): Remove la_varobj_ops field.
1064 (language_defn::varobj_ops): Declare new member function.
1065 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1066 * objc-lang.c (objc_language_data): Likewise.
1067 * opencl-lang.c (opencl_language_data): Likewise.
1068 * p-lang.c (pascal_language_data): Likewise.
1069 * rust-lang.c (rust_language_data): Likewise.
1070 * varobj.c (varobj_create): Update call to varobj_ops.
1071 * varobj.h (default_varobj_ops): Delete define.
1072
1ac14a04
AB
10732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1074
1075 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1076 initializer.
1077 * c-lang.c (c_language_data): Likewise.
1078 (c_language::macro_expansion): New member function.
1079 (cplus_language_data): Likewise.
1080 (cplus_language::macro_expansion): New member function.
1081 (asm_language_data): Likewise.
1082 (asm_language::macro_expansion): New member function.
1083 (minimal_language_data): Likewise.
1084 (minimal_language::macro_expansion): New member function.
1085 * d-lang.c (d_language_data): Remove la_macro_expansion
1086 initializer.
1087 * f-lang.c (f_language_data): Likewise.
1088 * go-lang.c (go_language_data): Likewise.
1089 * language.c (unknown_language_data): Likewise.
1090 (auto_language_data): Likewise.
1091 * language.h (language_data): Remove la_macro_expansion field.
1092 (language_defn::macro_expansion): New member function.
1093 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1094 initializer.
1095 * objc-lang.c (objc_language_data): Likewise.
1096 (objc_language::macro_expansion): New member function.
1097 * opencl-lang.c (opencl_language_data): Likewise.
1098 (opencl_language::macro_expansion): New member function.
1099 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1100 initializer.
1101 * rust-lang.c (rust_language_data): Likewise.
1102 * symtab.c (default_collect_symbol_completion_matches_break_on):
1103 Update call to macro_expansion.
1104
3a3440fb
AB
11052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1106
1107 * ada-lang.c (ada_language_data): Remove la_array_ordering
1108 initializer.
1109 * c-lang.c (c_language_data): Likewise.
1110 (cplus_language_data): Likewise.
1111 (asm_language_data): Likewise.
1112 (minimal_language_data): Likewise.
1113 * d-lang.c (d_language_data): Likewise.
1114 * dwarf2/read.c (read_array_order): Update for call to
1115 array_ordering.
1116 * f-lang.c (f_language_data): Remove la_array_ordering
1117 initializer.
1118 (f_language::array_ordering): New member function.
1119 * go-lang.c (go_language_data): Remove la_array_ordering
1120 initializer.
1121 * language.c (unknown_language_data): Likewise.
1122 (auto_language_data): Likewise.
1123 * language.h (language_data): Delete la_array_ordering field.
1124 (language_defn::array_ordering): New member function.
1125 * m2-lang.c (m2_language_data): Remove la_array_ordering
1126 initializer.
1127 * objc-lang.c (objc_language_data): Likewise.
1128 * opencl-lang.c (opencl_language_data): Likewise.
1129 * p-lang.c (pascal_language_data): Likewise.
1130 * rust-lang.c (rust_language_data): Likewise.
1131
0d201fa4
AB
11322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1133
1134 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1135 initializer.
1136 * c-lang.c (c_language_data): Likewise.
1137 (cplus_language_data): Likewise.
1138 (asm_language_data): Likewise.
1139 (minimal_language_data): Likewise.
1140 * d-lang.c (d_language_data): Likewise.
1141 * f-lang.c (f_language_data): Likewise.
1142 (f_language::case_sensitivity): New member function.
1143 * go-lang.c (go_language_data): Remove la_case_sensitivity
1144 initializer.
1145 * language.c (enum case_mode): Moved here from language.h.
1146 (case_mode): Make static.
1147 (show_case_command): Update for case_sensitivity being a method.
1148 (set_case_command): Likewise.
1149 (set_range_case): Likewise.
1150 (unknown_language_data): Remove la_case_sensitivity initializer.
1151 (auto_language_data): Likewise.
1152 * language.h (case_mode): Delete, move enum declaration to
1153 language.c.
1154 (language_data): Delete la_case_sensitivity field.
1155 (language_defn::case_sensitivity): New member function.
1156 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1157 initializer.
1158 * objc-lang.c (objc_language_data): Likewise.
1159 * opencl-lang.c (opencl_language_data): Likewise.
1160 * p-lang.c (pascal_language_data): Likewise.
1161 * rust-lang.c (rust_language_data): Likewise.
1162
efdf6a73
AB
11632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * ada-lang.c (ada_language_data): Remove la_range_check
1166 initializer.
1167 * c-lang.c (c_language_data): Likewise.
1168 (cplus_language_data): Likewise.
1169 (asm_language_data): Likewise.
1170 (minimal_language_data): Likewise.
1171 * d-lang.c (d_language_data): Likewise.
1172 * f-lang.c (f_language_data): Likewise.
1173 (f_language::range_checking_on_by_default): New member function.
1174 * go-lang.c (go_language_data): Remove la_range_check initializer.
1175 * language.c (enum range_mode): Moved here from language.h.
1176 (range_mode): Made static.
1177 (show_range_command): Update to use
1178 range_checking_on_by_default.
1179 (set_range_command): Likewise.
1180 (set_range_case): Likewise.
1181 (unknown_language_data): Remove la_range_check initializer.
1182 (auto_language_data): Likewise.
1183 * language.h (range_mode): Delete. Enum definition moved to
1184 language.c.
1185 (language_data): Remove la_range_check field.
1186 (language_defn::range_checking_on_by_default): New member
1187 function.
1188 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1189 (m2_language::range_checking_on_by_default): New member function.
1190 * objc-lang.c (objc_language_data): Remove la_range_check
1191 initializer.
1192 * opencl-lang.c (opencl_language_data): Likewise.
1193 * p-lang.c (pascal_language_data): Likewise.
1194 (pascal_language::range_checking_on_by_default): New member
1195 function.
1196 * rust-lang.c (rust_language_data): Remove la_range_check
1197 initializer.
1198 (rust_language::range_checking_on_by_default): New member
1199 function.
1200
bf92aec5
AB
12012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * dwarf2/read.c (dwarf2_physname): Remove special case for
1204 language_go.
1205 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1206 member function.
1207
d3355e4d
AB
12082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1209
1210 * ada-lang.c (ada_language_data): Remove
1211 la_store_sym_names_in_linkage_form_p initializer.
1212 (ada_language::store_sym_names_in_linkage_form_p): New member
1213 function.
1214 * c-lang.c (c_language_data): Remove
1215 la_store_sym_names_in_linkage_form_p initializer.
1216 (c_language::store_sym_names_in_linkage_form_p): New member
1217 function.
1218 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1219 initializer.
1220 (asm_language_data): Likewise.
1221 (asm_language::store_sym_names_in_linkage_form_p): New member
1222 function.
1223 (minimal_language_data): Remove
1224 la_store_sym_names_in_linkage_form_p initializer.
1225 (minimal_language::store_sym_names_in_linkage_form_p): New member
1226 function.
1227 * d-lang.c (d_language_data): Remove
1228 la_store_sym_names_in_linkage_form_p initializer.
1229 * dwarf2/read.c (dwarf2_physname): Update call to
1230 store_sym_names_in_linkage_form_p.
1231 * f-lang.c (f_language_data): Remove
1232 la_store_sym_names_in_linkage_form_p initializer.
1233 * go-lang.c (go_language_data): Remove
1234 la_store_sym_names_in_linkage_form_p initializer.
1235 * language.c (unknown_language_data): Remove
1236 la_store_sym_names_in_linkage_form_p initializer.
1237 (unknown_language::store_sym_names_in_linkage_form_p): New member
1238 function.
1239 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1240 initializer.
1241 (auto_language::store_sym_names_in_linkage_form_p): New member
1242 function.
1243 * language.h (language_data): Remove
1244 la_store_sym_names_in_linkage_form_p member variable.
1245 (language_defn::store_sym_names_in_linkage_form_p): New member
1246 function.
1247 * m2-lang.c (m2_language_data): Remove
1248 la_store_sym_names_in_linkage_form_p initializer.
1249 * objc-lang.c (objc_language_data): Likewise.
1250 * opencl-lang.c (opencl_language_data): Likewise.
1251 * p-lang.c (pascal_language_data): Likewise.
1252 * rust-lang.c (rust_language_data): Likewise.
1253
22c12a6c
AB
12542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1255
1256 * ada-lang.c (ada_language_data): Remove string_lower_bound
1257 initializer.
1258 * c-lang.c (c_language_data): Likewise.
1259 (cplus_language_data): Likewise.
1260 (asm_language_data): Likewise.
1261 (minimal_language_data): Likewise.
1262 * d-lang.c (d_language_data): Likewise.
1263 * f-lang.c (f_language_data): Likewise.
1264 * go-lang.c (go_language_data): Likewise.
1265 * language.c (unknown_language_data): Likewise.
1266 (auto_language_data): Likewise.
1267 * language.h (language_data): Remove string_lower_bound field.
1268 (language_defn::string_lower_bound): New member function.
1269 * m2-lang.c (m2_language_data): Remove string_lower_bound
1270 initializer.
1271 (m2_language::string_lower_bound): New member function.
1272 * objc-lang.c (objc_language_data): Remove string_lower_bound
1273 initializer.
1274 * opencl-lang.c (opencl_language_data): Likewise.
1275 * p-lang.c (pascal_language_data): Likewise.
1276 * rust-lang.c (rust_language_data): Likewise.
1277 * valops.c (value_cstring): Update call to string_lower_bound.
1278 (value_string): Likewise.
1279 * value.c (allocate_repeated_value): Likewise.
1280
1c236ddd
AB
12812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1282
1283 * valops.c (value_repeat): Fix incorrect argument name in comment.
1284
67bd3fd5
AB
12852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1286
1287 * ada-lang.c (ada_language_data): Remove c_style_arrays
1288 initializer.
1289 (ada_language::c_style_arrays_p): New member fuction.
1290 * c-lang.c (c_language_data): Remove c_style_arrays
1291 initializer.
1292 (cplus_language_data): Likewise.
1293 (asm_language_data): Likewise.
1294 (minimal_language_data): Likewise.
1295 * d-lang.c (d_language_data): Likewise.
1296 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1297 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1298 (f_language::c_style_arrays_p): New member function.
1299 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1300 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1301 * language.c (unknown_language_data): Remove c_style_arrays
1302 initializer.
1303 (auto_language_data): Likewise.
1304 * language.h (language_data): Remove c_style_arrays field.
1305 (language_defn::c_style_arrays_p): New member function.
1306 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1307 (m2_language::c_style_arrays_p): New member function.
1308 * objc-lang.c (objc_language_data): Remove c_style_arrays
1309 initializer.
1310 * opencl-lang.c (opencl_language_data): Likewise.
1311 * p-lang.c (pascal_language_data): Likewise.
1312 * rust-lang.c (rust_language_data): Likewise.
1313 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1314 and update local variable to a bool.
1315 * valops.c (value_cast): Update call to c_style_arrays_p.
1316 (value_array): Likewise.
1317 * value.c (coerce_array): Likewise.
1318
85967615
AB
13192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1320
1321 * ada-lang.c (ada_language_data): Remove la_language initializer.
1322 * c-lang.c (c_language_data): Likewise.
1323 (cplus_language_data): Likewise.
1324 (asm_language_data): Likewise.
1325 (minimal_language_data): Likewise.
1326 * d-lang.c (d_language_data): Likewise.
1327 * f-lang.c (f_language_data): Likewise.
1328 * go-lang.c (go_language_data): Likewise.
1329 * language.c (unknown_language_data): Likewise.
1330 (auto_language_data): Likewise.
1331 * language.h (language_data): Remove la_language field.
1332 (language_defn::language_defn): Initialise la_language field.
1333 (language_defn::la_language): New member variable.
1334 * m2-lang.c (m2_language_data): Remove la_language field.
1335 * objc-lang.c (objc_language_data): Likewise.
1336 * opencl-lang.c (opencl_language_data): Likewise.
1337 * p-lang.c (pascal_language_data): Likewise.
1338 * rust-lang.c (rust_language_data): Likewise.
1339
e171d6f1
AB
13402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1341
1342 * ada-lang.c (ada_extensions): Delete, moved into
1343 ada_language::filename_extensions.
1344 (ada_language_data): Remove la_filename_extensions initializer.
1345 (ada_language::filename_extensions): New member function.
1346 * c-lang.c (c_extensions): Delete, moved into
1347 c_language::filename_extensions.
1348 (c_language_data): Remove la_filename_extensions initializer.
1349 (c_language::filename_extensions): New member function.
1350 (cplus_extensions): Delete, moved into
1351 cplus_language::filename_extensions.
1352 (cplus_language_data): Remove la_filename_extensions initializer.
1353 (cplus_language::filename_extensions): New member function.
1354 (asm_extensions): Delete, moved into
1355 asm_language::filename_extensions.
1356 (asm_language_data): Remove la_filename_extensions initializer.
1357 (asm_language::filename_extensions): New member function.
1358 (minimal_language_data): Remove la_filename_extensions
1359 initializer.
1360 * d-lang.c (d_extensions): Delete, moved into
1361 d_language::filename_extensions.
1362 (d_language_data): Remove la_filename_extensions initializer.
1363 (d_language::filename_extensions): New member function.
1364 * f-lang.c (f_extensions): Delete, moved into
1365 f_language::filename_extensions.
1366 (f_language_data): Remove la_filename_extensions initializer.
1367 (f_language::filename_extensions): New member function.
1368 * go-lang.c (go_language_data): Remove la_filename_extensions
1369 initializer.
1370 * language.c (add_set_language_command): Update now that
1371 filename_extensions returns a vector.
1372 (unknown_language_data): Remove la_filename_extensions
1373 initializer.
1374 (auto_language_data): Likewise.
1375 * language.h (language_data): Remove la_filename_extensions field.
1376 (language_defn::filename_extensions): New member function.
1377 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1378 initializer.
1379 * objc-lang.c (objc_extensions): Delete, moved into
1380 objc_language::filename_extensions.
1381 (objc_language_data): Remove la_filename_extensions initializer.
1382 (objc_language::filename_extensions): New member function.
1383 * opencl-lang.c (opencl_language_data): Remove
1384 la_filename_extensions initializer.
1385 * p-lang.c (pascal_extensions): Delete, moved into
1386 pascal_language::filename_extensions.
1387 (pascal_language_data): Remove la_filename_extensions initializer.
1388 (pascal_language::filename_extensions): New member function.
1389 * rust-lang.c (rust_extensions): Delete, moved into
1390 rust_language::filename_extensions.
1391 (rust_language_data): Remove la_filename_extensions initializer.
1392 (rust_language::filename_extensions): New member function.
1393 * symfile.c (add_filename_language): Add new assert.
1394
6f7664a9
AB
13952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * ada-lang.c (ada_language_data): Remove la_name and
1398 la_natural_name initializers.
1399 (ada_language::name): New member function.
1400 (ada_language::natural_name): New member function.
1401 * c-lang.c (c_language_data): Remove la_name and
1402 la_natural_name initializers.
1403 (c_language::name): New member function.
1404 (c_language::natural_name): New member function.
1405 (cplus_language_data): Remove la_name and
1406 la_natural_name initializers.
1407 (cplus_language::name): New member function.
1408 (cplus_language::natural_name): New member function.
1409 (asm_language_data): Remove la_name and
1410 la_natural_name initializers.
1411 (asm_language::name): New member function.
1412 (asm_language::natural_name): New member function.
1413 (minimal_language_data): Remove la_name and
1414 la_natural_name initializers.
1415 (minimal_language::name): New member function.
1416 (minimal_language::natural_name): New member function.
1417 * compile/compile.c (compile_to_object): Update call to
1418 lanugage_defn::name.
1419 * d-lang.c (d_language_data): Remove la_name and
1420 la_natural_name initializers.
1421 (d_language::name): New member function.
1422 (d_language::natural_name): New member function.
1423 * expprint.c (print_subexp_standard): Update call to
1424 language_defn::name.
1425 (dump_raw_expression): Likewise
1426 (dump_prefix_expression): Likewise.
1427 * f-lang.c (f_language_data): Remove la_name and
1428 la_natural_name initializers.
1429 (f_language::name): New member function.
1430 (f_language::natural_name): New member function.
1431 * go-lang.c (go_language_data): Remove la_name and
1432 la_natural_name initializers.
1433 (go_language::name): New member function.
1434 (go_language::natural_name): New member function.
1435 * language.c (show_language_command): Update call to
1436 language_defn::name.
1437 (set_language_command): Likewise.
1438 (language_enum): Likewise.
1439 (language_str): Likewise.
1440 (add_set_language_command): Likewise, use
1441 language_defn::natural_name in the doc string.
1442 (unknown_language_data): Remove la_name and
1443 la_natural_name initializers.
1444 (unknown_language::name): New member function.
1445 (unknown_language::natural_name): New member function.
1446 (auto_language_data): Remove la_name and
1447 la_natural_name initializers.
1448 (auto_language::name): New member function.
1449 (auto_language::natural_name): New member function.
1450 (language_lookup_primitive_type_as_symbol): Update call to
1451 language_defn::name.
1452 * language.h (language_data): Remove la_name and la_natural_name
1453 member variables.
1454 (language_defn::name): New member function.
1455 (language_defn::natural_name): New member function.
1456 * m2-lang.c (m2_language_data): Remove la_name and
1457 la_natural_name initializers.
1458 (m2_language::name): New member function.
1459 (m2_language::natural_name): New member function.
1460 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1461 language_defn::natural_name.
1462 * objc-lang.c (objc_language_data): Remove la_name and
1463 la_natural_name initializers.
1464 (objc_language::name): New member function.
1465 (objc_language::natural_name): New member function.
1466 * opencl-lang.c (opencl_language_data): Remove la_name and
1467 la_natural_name initializers.
1468 (opencl_language::name): New member function.
1469 (opencl_language::natural_name): New member function.
1470 * p-lang.c (pascal_language_data): Remove la_name and
1471 la_natural_name initializers.
1472 (pascal_language::name): New member function.
1473 (pascal_language::natural_name): New member function.
1474 * rust-lang.c (rust_language_data): Remove la_name and
1475 la_natural_name initializers.
1476 (rust_language::name): New member function.
1477 (rust_language::natural_name): New member function.
1478 * symtab.c (lookup_language_this): Update call to
1479 language_defn::name.
1480
5bae7c4e
AB
14812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * ada-lang.c (ada_language_data): Remove la_name_of_this
1484 initializer.
1485 * ax-gdb.c (gen_expr): Update call to name_of_this.
1486 * c-exp.y (classify_name): Likewise.
1487 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1488 (cplus_language_data): Likewise.
1489 (cplus_language::name_of_this): New member function.
1490 (asm_language_data): Remove la_name_of_this initializer.
1491 (minimal_language_data): Likewise.
1492 * d-lang.c (d_language_data): Likewise.
1493 (d_language::name_of_this): New member function.
1494 * expprint.c (print_subexp_standard): Update call to name_of_this.
1495 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1496 * go-lang.c (go_language_data): Likewise.
1497 * language.c (unknown_language_data): Likewise.
1498 (unknown_language::name_of_this): New member function.
1499 (auto_language_data): Remove la_name_of_this initializer.
1500 (auto_language::name_of_this): New member function.
1501 * language.h (language_data): Delete la_name_of_this member
1502 variable.
1503 (language_defn::name_of_this): New member function.
1504 * m2-lang.c (m2_language_data): Remove la_name_of_this
1505 initializer.
1506 * objc-lang.c (objc_language_data): Likewise.
1507 (objc_language::name_of_this): New member function.
1508 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1509 initializer.
1510 * p-lang.c (pascal_language_data): Likewise.
1511 (pascal_language::name_of_this): New member function.
1512 * rust-lang.c (rust_language_data): Remove la_name_of_this
1513 initializer.
1514 * symtab.c (lookup_language_this): Update call to name_of_this.
1515 (lookup_symbol_aux): Likewise.
1516 * valops.c (value_of_this): Likewise.
1517
22e3f3ed
AB
15182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1519
1520 * ada-lang.c (ada_language_data): Remove
1521 la_struct_too_deep_ellipsis initializer.
1522 (ada_language::struct_too_deep_ellipsis): New member function.
1523 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1524 initializer.
1525 (cplus_language_data): Likewise.
1526 (asm_language_data): Likewise.
1527 (minimal_language_data): Likewise.
1528 * cp-valprint.c (cp_print_value): Update call to
1529 struct_too_deep_ellipsis.
1530 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1531 initializer.
1532 * f-lang.c (f_language_data): Likewise.
1533 (f_language::struct_too_deep_ellipsis): New member function.
1534 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1535 initializer.
1536 * language.c (unknown_language_data): Likewise.
1537 (auto_language_data): Likewise.
1538 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1539 member variable.
1540 (language_defn::struct_too_deep_ellipsis): New member function.
1541 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1542 initializer.Q
1543 * objc-lang.c (objc_language_data): Likewise.
1544 * opencl-lang.c (opencl_language_data): Likewise.
1545 * p-lang.c (pascal_language_data): Likewise.
1546 * rust-lang.c (rust_language_data): Likewise.
1547 * valprint.c (val_print_check_max_depth): Update call to
1548 struct_too_deep_ellipsis.
1549
ed29e1c7
FW
15502020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1551
1552 * MAINTAINERS (Write After Approval): Add myself.
1553
12d8f940
TT
15542020-09-15 Tom Tromey <tom@tromey.com>
1555
1556 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1557 Remove.
1558
6b5a7bc7
TT
15592020-09-15 Tom Tromey <tom@tromey.com>
1560
1561 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1562 and TYPE_CODE_METHODPTR cases.
1563 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1564 (c_value_print_inner): Update.
1565 * valprint.c (generic_value_print_memberptr): New function, from
1566 c_value_print_memberptr.
1567 (generic_value_print): Use it. Call cplus_print_method_ptr.
1568
47f0e2ff
TT
15692020-09-15 Tom Tromey <tromey@adacore.com>
1570
1571 * python/python-internal.h (PyInt_FromLong): Remove define.
1572 * python/py-value.c (convert_value_from_python): Use
1573 gdb_py_object_from_longest.
1574 * python/py-type.c (typy_get_code): Use
1575 gdb_py_object_from_longest.
1576 * python/py-symtab.c (salpy_get_line): Use
1577 gdb_py_object_from_longest.
1578 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1579 gdb_py_object_from_longest.
1580 * python/py-record.c (recpy_gap_reason_code): Use
1581 gdb_py_object_from_longest.
1582 * python/py-record-btrace.c (recpy_bt_insn_size)
1583 (recpy_bt_func_level, btpy_list_count): Use
1584 gdb_py_object_from_longest.
1585 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1586 gdb_py_object_from_longest. Fix error handling.
1587 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1588 gdb_py_object_from_longest.
1589 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1590 gdb_py_object_from_longest.
1591 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1592 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1593 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1594
512116ce
TT
15952020-09-15 Tom Tromey <tromey@adacore.com>
1596
1597 * python/python.c (gdbpy_parameter_value): Use
1598 gdb_py_object_from_ulongest.
1599
4ab1029c
TT
16002020-09-15 Tom Tromey <tromey@adacore.com>
1601
1602 * python/py-infevents.c (create_register_changed_event_object):
1603 Use gdb_py_object_from_longest.
1604 * python/py-exitedevent.c (create_exited_event_object): Use
1605 gdb_py_object_from_longest.
1606
062534d4
TT
16072020-09-15 Tom Tromey <tromey@adacore.com>
1608
1609 * python/python.c (gdbpy_parameter_value): Use
1610 gdb_py_object_from_longest.
1611 * python/py-type.c (convert_field, typy_range): Use
1612 gdb_py_object_from_longest.
1613 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1614 gdb_py_object_from_longest.
1615 * python/py-lazy-string.c (stpy_get_length): Use
1616 gdb_py_object_from_longest.
1617 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1618 gdb_py_object_from_longest.
1619 * python/py-infevents.c (create_memory_changed_event_object): Use
1620 gdb_py_object_from_longest.
1621 * python/py-inferior.c (infpy_get_num): Use
1622 gdb_py_object_from_longest.
1623 (infpy_get_pid): Likewise.
1624
d1cab987
TT
16252020-09-15 Tom Tromey <tromey@adacore.com>
1626
1627 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1628 defines.
1629 * python/py-value.c (valpy_long): Use
1630 gdb_py_object_from_ulongest.
1631 * python/py-symtab.c (salpy_get_pc): Use
1632 gdb_py_object_from_ulongest.
1633 (salpy_get_last): Likewise.
1634 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1635 gdb_py_object_from_ulongest.
1636 * python/py-lazy-string.c (stpy_get_address): Use
1637 gdb_py_object_from_ulongest.
1638 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1639 * python/py-arch.c (archpy_disassemble): Use
1640 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1641 error handling.
1642
4bde49dc
TT
16432020-09-15 Tom Tromey <tromey@adacore.com>
1644
1645 * python/python-internal.h (gdb_py_long_from_longest): Remove
1646 defines.
1647 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1648 * python/py-type.c (convert_field, typy_get_sizeof): Use
1649 gdb_py_object_from_longest.
1650 * python/py-record-btrace.c (btpy_list_index): Use
1651 gdb_py_object_from_longest.
1652
37431074
TT
16532020-09-15 Tom Tromey <tromey@adacore.com>
1654
1655 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1656 * python/py-record.c (recpy_element_number): Use
1657 gdb_py_object_from_longest.
1658 (recpy_gap_number): Likewise.
1659
cbe25684
TT
16602020-09-15 Tom Tromey <tromey@adacore.com>
1661
1662 * top.c (ui::ui): Update.
1663 (highest_ui_num): Remove.
1664 * top.h (struct ui) <num>: Remove.
1665
db92ac45
TT
16662020-09-15 Tom Tromey <tromey@adacore.com>
1667
1668 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1669 * ui-style.c (ansi_regex_text): Now array.
1670 * rust-exp.y (number_regex_text): Now array.
1671 * linespec.c (linespec_quote_characters): Now array.
1672 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1673 Now arrays.
1674
d2b31b67
SM
16752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1676
1677 * debuginfod-support.c (debuginfod_client_deleter): New.
1678 (debuginfod_client_up): New.
1679 (debuginfod_init): Return debuginfod_client_up.
1680 (debuginfod_source_query): Adjust.
1681 (debuginfod_debuginfo_query): Adjust.
1682
3246bd8e
SM
16832020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1684
1685 * debuginfod-support.c (debuginfod_source_query): Use
1686 make_unique_xstrdup.
1687
10242f36
SM
16882020-09-14 Simon Marchi <simon.marchi@efficios.com>
1689
1690 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1691 with `type::instance_flags`.
1692
e1044e6a
MM
16932020-09-14 Michael Mullin <masmullin@gmail.com>
1694
1695 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1696 Remove baton parameter.
1697
04902b09
PA
16982020-09-14 Pedro Alves <pedro@palves.net>
1699
1700 * Makefile.in (SELFTESTS_SRCS): Add
1701 unittests/enum-flags-selftests.c.
1702 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1703 btrace_function_flags instead of enum btrace_function_flag.
1704 * compile/compile-c-types.c (convert_qualified): Use
1705 enum_flags::raw.
1706 * compile/compile-cplus-symbols.c (convert_one_symbol)
1707 (convert_symbol_bmsym):
1708 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1709 (compile_cplus_convert_struct_or_union_methods)
1710 (compile_cplus_instance::convert_qualified_base):
1711 * go-exp.y (parse_string_or_char): Add cast to int.
1712 * unittests/enum-flags-selftests.c: New file.
1713 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1714 type to btrace_thread_flags from btrace_thread_flag.
1715 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1716 local's type to btrace_thread_flags from btrace_thread_flag. Add
1717 cast in DEBUG call.
1718
69896a2c
PA
17192020-09-14 Pedro Alves <pedro@palves.net>
1720
1721 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1722 * gdbtypes.c (address_space_name_to_int): Rename to ...
1723 (address_space_name_to_type_instance_flags): ... this.
1724 (address_space_int_to_name): Rename to ...
1725 (address_space_type_instance_flags_to_name): ... this.
1726 * gdbtypes.h (address_space_name_to_int): Rename to ...
1727 (address_space_name_to_type_instance_flags): ... this.
1728 (address_space_int_to_name): Rename to ...
1729 (address_space_type_instance_flags_to_name): ... this.
1730 * type-stack.c (type_stack::insert): Adjust to rename.
1731 * type-stack.h (type_stack::insert): Likewise.
1732
314ad88d
PA
17332020-09-14 Pedro Alves <pedro@palves.net>
1734 Andrew Burgess <andrew.burgess@embecosm.com>
1735
1736 * avr-tdep.c (avr_address_class_type_flags): Return
1737 type_instance_flags.
1738 (avr_address_class_type_flags_to_name): Take a
1739 type_instance_flags.
1740 (avr_address_class_name_to_type_flags): Return bool and take a
1741 type_instance_flags.
1742 * d-lang.c (build_d_types): Use type::set_instance_flags.
1743 * ft32-tdep.c (ft32_address_class_type_flags): Return
1744 type_instance_flags.
1745 (ft32_address_class_type_flags_to_name): Take a
1746 type_instance_flags.
1747 (ft32_address_class_name_to_type_flags): Return bool and take a
1748 type_instance_flags.
1749 (ft32_gdbarch_init): Use type::set_instance_flags.
1750 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1751 * gdbarch.h, gdbarch.c: Regenerate.
1752 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1753 (address_class_name_to_type_flags): Use type_instance_flags and
1754 bool.
1755 * gdbtypes.c (address_space_name_to_int)
1756 (address_space_int_to_name, make_qualified_type): Use
1757 type_instance_flags.
1758 (make_qualified_type): Use type_instance_flags and
1759 type::set_instance_flags.
1760 (make_type_with_address_space, make_cv_type, make_vector_type)
1761 (check_typedef): Use type_instance_flags.
1762 (recursive_dump_type): Cast type_instance_flags to unsigned for
1763 printing.
1764 (copy_type_recursive): Use type::set_instance_flags.
1765 (gdbtypes_post_init): Use type::set_instance_flags.
1766 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1767 <m_instance_flags>: ... this.
1768 <instance_flags, set_instance_flags>: New methods.
1769 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1770 (SET_TYPE_INSTANCE_FLAGS): New.
1771 (address_space_name_to_int, address_space_int_to_name)
1772 (make_type_with_address_space): Pass flags using
1773 type_instance_flags instead of int.
1774 * stabsread.c (cleanup_undefined_types_noname): Use
1775 type::set_instance_flags.
1776 * s390-tdep.c (s390_address_class_type_flags): Return
1777 type_instance_flags.
1778 (s390_address_class_type_flags_to_name): Take a
1779 type_instance_flags.
1780 (s390_address_class_name_to_type_flags): Return bool and take a
1781 type_instance_flags.
1782 * type-stack.c (type_stack::follow_types): Use
1783 type_instance_flags.
1784 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1785
27087b7f
TT
17862020-09-14 Tom Tromey <tromey@adacore.com>
1787
1788 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1789 * x86-tdep.c (x86_is_thunk_register_name)
1790 (x86_in_indirect_branch_thunk): Update.
1791 * sparc64-tdep.c (sparc64_fpu_register_names)
1792 (sparc64_cp0_register_names, sparc64_register_names)
1793 (sparc64_pseudo_register_names): Now const.
1794 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1795 cp0_registers_num>: Now const.
1796 * sparc-tdep.c (sparc_core_register_names)
1797 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1798 (sparc32_pseudo_register_names): Now const.
1799 (validate_tdesc_registers): Update.
1800 * rust-lang.c (rust_extensions): Now const.
1801 * p-lang.c (p_extensions): Now const.
1802 * objc-lang.c (objc_extensions): Now const.
1803 * nto-tdep.c (nto_thread_state_str): Now const.
1804 * moxie-tdep.c (moxie_register_names): Now const.
1805 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1806 Now const.
1807 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1808 (mips_linux_reg_names): Now const.
1809 (mips_gdbarch_init): Update.
1810 * microblaze-tdep.c (microblaze_register_names): Now const.
1811 * m68k-tdep.c (m68k_register_names): Now const.
1812 * m32r-tdep.c (m32r_register_names): Now const.
1813 * ia64-tdep.c (ia64_register_names): Now const.
1814 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1815 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1816 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1817 ymm_avx512_register_names, pkeys_register_names>: Now const.
1818 * i386-tdep.c (i386_register_names, i386_zmm_names)
1819 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1820 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1821 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1822 * f-lang.c (f_extensions): Now const.
1823 * d-lang.c (d_extensions): Now const.
1824 * csky-tdep.c (csky_register_names): Now const.
1825 * charset.c (default_charset_names, charset_enum): Now const.
1826 (_initialize_charset): Update.
1827 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1828 const.
1829 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1830 (bsd_uthread_solib_loaded): Update.
1831 (bsd_uthread_state): Now const.
1832 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1833 (amd64_ymm_avx512_names, amd64_ymmh_names)
1834 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1835 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1836 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1837 (amd64_dword_names): Now const.
1838 * agent.c (can_use_agent_enum): Now const.
1839 * ada-tasks.c (task_states, long_task_states): Now const.
1840 * ada-lang.c (known_runtime_file_name_patterns)
1841 (known_auxiliary_function_name_patterns, attribute_names)
1842 (standard_exc, ada_extensions): Now const.
1843
89806626
SM
18442020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1845
1846 * bcache.h (struct bcache) <bcache>: Remove constructor.
1847 <m_hash_function, m_compare_function>: Remove.
1848 <~bcache>: Make virtual.
1849 <compare>: Remove static method, introduce virtual method.
1850 <default_hash>: Remove.
1851 <hash>: New virtual method.
1852 * bcache.c (bcache::expand_hash_table): Update.
1853 (bcache::insert): Update.
1854 (bcache::hash): New.
1855 (bcache::compare): Update comment and parameter names.
1856 * gdbtypes.c (types_deeply_equal): Update.
1857 * psymtab.h (struct psymbol_bcache): New struct.
1858 (class psymtab_storage) <psymtab_storage>: Make default.
1859 <psymbol_cache>: Change type to psymbol_bcache.
1860 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1861 (psymbol_hash): Change to...
1862 (psymbol_bcache::hash): ... this.
1863 (psymbol_compare): Change to...
1864 (psymbol_bcache::compare): ... this.
1865
677c92fe
SM
18662020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1867
1868 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1869 checking for initial lwp.
1870
3eba3a01
TT
18712020-09-14 Tom Tromey <tromey@adacore.com>
1872
1873 * m68k-tdep.c (m68k_extract_return_value): Use
1874 pointer_result_regnum.
1875 (m68k_store_return_value): Likewise.
1876 (m68k_reg_struct_return_p): Handle vectors and arrays.
1877 (m68k_return_value): Handle arrays.
1878 (m68k_svr4_return_value): Fix single-element aggregate handling.
1879 Handle long double. Adjust for embedded ABI.
1880 (m68k_svr4_init_abi): Set pointer_result_regnum.
1881 (m68k_embedded_init_abi): New function.
1882 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1883 (m68k_osabi_sniffer): New function.
1884 (_initialize_m68k_tdep): Register osabi sniffer.
1885 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1886 member.
1887
33f4dd48
SM
18882020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1889
1890 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1891 with gdb::unique_xmalloc_ptr<char>.
1892
8400a90d
SM
18932020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1894
1895 * xml-support.h (xml_fetch_another): Change type to be a
1896 function_view.
1897 (xml_process_xincludes): Remove baton parameter.
1898 (xml_fetch_content_from_file): Change baton parameter to
1899 dirname.
1900 * xml-support.c (struct xinclude_parsing_data)
1901 <xinclude_parsing_data>: Remove baton parameter.
1902 <fetcher_baton>: Remove.
1903 (xinclude_start_include): Adjust.
1904 (xml_process_xincludes): Adjust.
1905 (xml_fetch_content_from_file): Replace baton parameter with
1906 dirname.
1907 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1908 (xml_init_syscalls_info): Use a lambda.
1909 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1910 (file_read_description_xml): Use a lambda.
1911 (fetch_available_features_from_target): Change baton parameter
1912 to target_ops.
1913 (target_read_description_xml): Use a lambda.
1914 (target_fetch_description_xml): Use a lambda.
1915 (string_read_description_xml): Update.
1916
04f5bab2
SM
19172020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1918
1919 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1920 uses with type::endianity_is_not_default.
1921
db558e34
SM
19222020-09-14 Simon Marchi <simon.marchi@efficios.com>
1923
1924 * gdbtypes.h (struct type) <endianity_is_not_default,
1925 set_endianity_is_not_default>: New methods.
1926 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1927 type::endianity_is_not_default, change all write call sites to
1928 use type::set_endianity_is_not_default.
1929
22c4c60c
SM
19302020-09-14 Simon Marchi <simon.marchi@efficios.com>
1931
1932 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1933 uses with type::is_fixed_instance.
1934
9cdd0d12
SM
19352020-09-14 Simon Marchi <simon.marchi@efficios.com>
1936
1937 * gdbtypes.h (struct type) <is_fixed_instance,
1938 set_is_fixed_instance>: New methods.
1939 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1940 write call sites to use type::set_is_fixed_instance.
1941
0becda7a
SM
19422020-09-14 Simon Marchi <simon.marchi@efficios.com>
1943
1944 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1945 uses with type::is_gnu_ifunc.
1946
03cc7249
SM
19472020-09-14 Simon Marchi <simon.marchi@efficios.com>
1948
1949 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1950 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1951 use type::set_is_gnu_ifunc.
1952
3f46044c
SM
19532020-09-14 Simon Marchi <simon.marchi@efficios.com>
1954
1955 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1956 uses with type::stub_is_supported.
1957
9baccff6
SM
19582020-09-14 Simon Marchi <simon.marchi@efficios.com>
1959
1960 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1961 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1962 use type::set_stub_is_supported.
1963
bd63c870
SM
19642020-09-14 Simon Marchi <simon.marchi@efficios.com>
1965
1966 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1967 uses with type::is_vector.
1968
2062087b
SM
19692020-09-14 Simon Marchi <simon.marchi@efficios.com>
1970
1971 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1972 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1973 use type::set_is_vector.
1974
a409645d
SM
19752020-09-14 Simon Marchi <simon.marchi@efficios.com>
1976
1977 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1978 uses with type::has_varargs.
1979
1d6286ed
SM
19802020-09-14 Simon Marchi <simon.marchi@efficios.com>
1981
1982 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1983 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1984 use type::set_has_varargs.
1985
7f9f399b
SM
19862020-09-14 Simon Marchi <simon.marchi@efficios.com>
1987
1988 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1989 uses with type::is_prototyped.
1990
27e69b7a
SM
19912020-09-14 Simon Marchi <simon.marchi@efficios.com>
1992
1993 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1994 New methods.
1995 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1996 call sites to use type::set_is_prototyped.
1997
d2183968
SM
19982020-09-14 Simon Marchi <simon.marchi@efficios.com>
1999
2000 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2001 uses with type::target_is_stub.
2002
8f53807e
SM
20032020-09-14 Simon Marchi <simon.marchi@efficios.com>
2004
2005 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2006 New methods.
2007 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2008 sites to use type::set_target_is_stub.
2009
e46d3488
SM
20102020-09-14 Simon Marchi <simon.marchi@efficios.com>
2011
2012 * gdbtypes.h (TYPE_STUB): Remove, replace all
2013 uses with type::is_stub.
2014
b4b73759
SM
20152020-09-14 Simon Marchi <simon.marchi@efficios.com>
2016
2017 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2018 (TYPE_STUB): Use type::is_stub, change all write call sites to
2019 use type::set_is_stub.
2020
20ce4123
SM
20212020-09-14 Simon Marchi <simon.marchi@efficios.com>
2022
2023 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2024 type::has_no_signedness.
2025
15152a54
SM
20262020-09-14 Simon Marchi <simon.marchi@efficios.com>
2027
2028 * gdbtypes.h (struct type) <has_no_signedness,
2029 set_has_no_signedness>: New methods.
2030 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2031 call sites to use type::set_has_no_signedness.
2032
c6d940a9
SM
20332020-09-14 Simon Marchi <simon.marchi@efficios.com>
2034
2035 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2036 type::is_unsigned.
2037
653223d3
SM
20382020-09-14 Simon Marchi <simon.marchi@efficios.com>
2039
2040 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2041 methods.
2042 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2043 sites to use type::set_is_unsigned.
2044
55ea94da 20452020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2046 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2047
e851246a
SM
2048 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2049 pointer and stack frame offset when unwinding.
55ea94da 2050
6791b117
PA
20512020-09-13 Pedro Alves <pedro@palves.net>
2052
2053 * NEWS: Document "-break-insert --qualified".
2054 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2055
77f2120b
PA
20562020-09-13 Pedro Alves <pedro@palves.net>
2057
2058 * linespec.c (classify_mtype, compare_msyms): Delete.
2059 (search_minsyms_for_name): Remove classification logic. Instead
2060 filter out trampoline symbols if we also found an external
2061 function of the same name.
2062
ed6a896c
JB
20632020-09-13 Joel Brobecker <brobecker@adacore.com>
2064
2065 * NEWS: Create a new section for the next release branch.
2066 Rename the section of the current branch, now that it has
2067 been cut.
2068
32aea73e
JB
20692020-09-13 Joel Brobecker <brobecker@adacore.com>
2070
2071 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2072 * version.in: Bump version to 11.0.50.DATE-git.
2073
8087c3fa
JB
20742020-09-12 Joel Brobecker <brobecker@adacore.com>
2075
2076 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2077
2a67f09d
FW
20782020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2079 Felix Willgerodt <Felix.Willgerodt@intel.com>
2080
2081 * gdbarch.sh: Added bfloat16 type.
2082 * gdbarch.c: Regenerated.
2083 * gdbarch.h: Regenerated.
2084 * gdbtypes.c (floatformats_bfloat16): New struct.
2085 (gdbtypes_post_init): Add builtin_bfloat16.
2086 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2087 (floatformats_bfloat16): New struct.
2088 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2089 (i386_ymm_type): Add field "v16_bfloat16"
2090 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2091 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2092 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2093 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2094 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2095 * features/i386/64bit-avx512.c: Regenerated.
2096 * features/i386/64bit-sse.xml: Add bfloat16 type.
2097 * features/i386/64bit-sse.c: Regenerated.
2098
1347d111
FW
20992020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2100
2101 * i386-tdep.c (i386_zmm_type): Fix field names.
2102 (i386_ymm_type): Fix field names.
2103
7a4e8e7d
TBA
21042020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2105
2106 * breakpoint.c: Fix typo in the help message of the
2107 "set breakpoint condition-evaluation" command.
2108
cf4ac4be
KR
21092020-09-10 Kamil Rytarowski <n54@gmx.com>
2110
2111 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2112 * (nbsd_nat_target::pid_to_exec_file)
2113 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2114 (nbsd_nat_target::post_startup_inferior)
2115 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2116 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2117 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2118 * (nbsd_thread_lister): Remove.
2119
f404573e
KR
21202020-09-10 Kamil Rytarowski <n54@gmx.com>
2121
2122 * fork-inferior.c (startup_inferior): Avoid double free.
2123
1ccb2c17
KR
21242020-09-10 Kamil Rytarowski <n54@gmx.com>
2125
2126 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2127 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2128
feedfcc7
KR
21292020-09-10 Kamil Rytarowski <n54@gmx.com>
2130
2131 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2132 * netbsd-nat.c: Include <sys/ptrace.h>.
2133 * (netbsd_nat::enable_proc_events): Add.
2134
c489f8c6
KR
21352020-09-10 Kamil Rytarowski <n54@gmx.com>
2136
2137 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2138 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2139 (netbsd_nat::for_each_thread): Add.
2140 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2141 "gdbsupport/common-debug.h".
2142 * (netbsd_nat::netbsd_thread_lister)
2143 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2144 (netbsd_nat::for_each_thread): Add.
2145
330662f6
KR
21462020-09-10 Kamil Rytarowski <n54@gmx.com>
2147
2148 * netbsd-nat.h: Include <unistd.h>.
2149 * (netbsd_nat::pid_to_exec_file): Add.
2150 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2151 * (netbsd_nat::pid_to_exec_file) Add.
2152
70b67307
KR
21532020-09-10 Kamil Rytarowski <n54@gmx.com>
2154
2155 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2156
99cf6da6
KR
21572020-09-10 Kamil Rytarowski <n54@gmx.com>
2158
2159 * netbsd-nat.h: New file.
2160 * netbsd-nat.c: Likewise.
2161
1b788fb6
TT
21622020-09-09 Tom Tromey <tromey@adacore.com>
2163
2164 * ada-lang.c (remove_extra_symbols): Do not increment when
2165 removing an element
2166
03b0a45f
TT
21672020-09-08 Tom Tromey <tromey@adacore.com>
2168
2169 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2170
3cae4447
TT
21712020-09-08 Tom Tromey <tromey@adacore.com>
2172
2173 PR win32/25302:
2174 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2175 (gdb_bfd_init_data): New function.
2176 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2177
7f08fd51
TBA
21782020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2179
2180 * infrun.c (fetch_inferior_event): Use
2181 `switch_to_target_no_thread` to switch the target.
2182
3e6ff933
TT
21832020-09-06 Tom Tromey <tom@tromey.com>
2184
2185 * symfile.h (dwarf2_free_objfile): Don't declare.
2186
e56798df
AKS
21872020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2188
2189 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2190 to match 16 byte real/complex type generated by Flang compiler.
2191
8f5c6526
TV
21922020-09-03 Tom de Vries <tdevries@suse.de>
2193
2194 PR breakpoint/26546
2195 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2196 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2197
c5065df0
SM
21982020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2199
2200 * maint.c (index_digits): New function.
2201 (struct maint_print_section_data): Remove.
2202 (print_bfd_section_info): Remove print_data parameter, add arg
2203 and index_digits.
2204 (print_objfile_section_info): Likewise.
2205 (print_bfd_section_info_maybe_relocated): Likewise (plus
2206 objfile).
2207 (maintenance_info_sections): Adjust calls.
2208
02c6f3f1
TT
22092020-09-02 Tom Tromey <tromey@adacore.com>
2210
2211 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2212 for null pointers.
2213 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2214
ef5e5b0b
SM
22152020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2216
2217 * bcache.h (struct bcache) <insert>: Change type of `added` to
2218 pointer to bool.
2219 * bcache.c (bcache::insert): Likewise.
2220 * gdbtypes.c (check_types_worklist): Adjust.
2221 * psymtab.c (add_psymbol_to_bcache): Adjust.
2222
973695d6
KB
22232020-08-31 Kevin Buettner <kevinb@redhat.com>
2224
2225 * corelow.c (unordered_set): Include.
2226 (class core_target): Add field 'm_core_unavailable_mappings'.
2227 (core_target::build_file_mappings): Print only one warning
2228 per inaccessible file. Add unavailable/broken mappings
2229 to m_core_unavailable_mappings.
2230 (core_target::xfer_partial): Call...
2231 (core_target::xfer_memory_via_mappings): New method.
2232
264fc0e2
SM
22332020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2234
2235 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2236 type to bool.
2237
2de01bdb
SM
22382020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2239
2240 * dwarf2/read.c (struct field_info): Fix indentation.
2241
f3bd50f1
SM
22422020-08-31 Simon Marchi <simon.marchi@efficios.com>
2243
2244 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2245 ordering in comment.
2246 * frame.c (frame_id_eq): Fix indentation.
2247
22b9b4b0
SL
22482020-08-31 Scott Linder <scott@scottlinder.com>
2249 Simon Marchi <simon.marchi@efficios.com>
2250
2251 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2252 inline frame ids in outer frame.
2253
84154d16
SM
22542020-08-31 Simon Marchi <simon.marchi@efficios.com>
2255
2256 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2257 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2258 (outer_frame_id): Use FID_STACK_OUTER instead of
2259 FID_STACK_INVALID.
2260 (frame_id_p): Don't check for outer_frame_id.
2261
8efaf6b3
SM
22622020-08-31 Simon Marchi <simon.marchi@efficios.com>
2263
2264 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2265 regnum/frame in value. Call allocate_value_lazy.
2266 * frame.c (frame_unwind_register_value): Use
2267 val_print_not_saved.
2268
fe1fe7ea
SM
22692020-08-31 Simon Marchi <simon.marchi@efficios.com>
2270
2271 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2272
f7c7700d
PA
22732020-08-29 Pedro Alves <pedro@palves.net>
2274
2275 * progspace.c (print_program_space): Use all_inferiors. Switch to
2276 the inferior before calling target_pid_to_str.
2277
e0814aae
TT
22782020-08-28 Tom Tromey <tom@tromey.com>
2279
2280 * xcoffread.c (xcoff_end_psymtab): Update comment.
2281 * dbxread.c (dbx_end_psymtab): Update comment.
2282
626d2320
TV
22832020-08-28 Tom de Vries <tdevries@suse.de>
2284
2285 PR breakpoint/26544
2286 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2287 event_location.
2288 (create_breakpoint): Same.
2289 (base_breakpoint_decode_location): Same.
2290 (bkpt_create_sals_from_location): Same.
2291 (bkpt_decode_location): Same.
2292 (bkpt_probe_create_sals_from_location): Same.
2293 (bkpt_probe_decode_location): Same.
2294 (tracepoint_create_sals_from_location): Same.
2295 (tracepoint_decode_location): Same.
2296 (tracepoint_probe_decode_location): Same.
2297 (strace_marker_create_sals_from_location): Same.
2298 (strace_marker_decode_location): Same.
2299 (create_sals_from_location_default): Same.
2300 (decode_location_default): Same.
2301 * breakpoint.h (struct breakpoint_ops): Same.
2302 (create_breakpoint): Same.
2303 * linespec.h (decode_line_full): Same.
2304 * linespec.c (decode_line_full): Same. Throw error if
2305 result.size () == 0.
2306
df631783
PA
23072020-08-27 Pedro Alves <pedro@palves.net>
2308
2309 PR gdb/26524
2310 * breakpoint.c (until_break_fsm) <location_breakpoint,
2311 caller_breakpoint>: Delete fields.
2312 <breakpoints>: New field.
2313 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2314 two individual breakpoints.
2315 (until_break_fsm::should_stop): Loop over breakpoints in the
2316 breakpoint vector.
2317 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2318 vector.
2319 (until_break_command): Handle location expanding into multiple
2320 sals.
2321
b2b38aa4
PA
23222020-08-27 Pedro Alves <pedro@palves.net>
2323
2324 PR gdb/26523
2325 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2326 bp_until breakpoints user-specified locations. Update intro
2327 comment.
2328
b886559f
SM
23292020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2330
2331 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2332 gdb_bfd_sections): New.
2333 * maint.c (print_bfd_section_info): Change param type to
2334 maint_print_section_data.
2335 (print_objfile_section_info): Likewise.
2336 (print_bfd_section_info_maybe_relocated): Likewise.
2337 (maintenance_info_sections): Use gdb_bfd_sections.
2338
4c6e63bf
SV
23392020-08-25 Shahab Vahedi <shahab@synopsys.com>
2340
2341 * MAINTAINERS: Add ARC target and maintainer.
2342
8d7f0635
AK
23432020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2344
2345 * configure.tgt: ARC support for GNU/Linux.
2346 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2347 * arc-linux-tdep.c: New file.
2348 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2349 * arc-tdep.c (arc_write_pc): Use it.
2350
fdd8731b
SV
23512020-08-25 Shahab Vahedi <shahab@synopsys.com>
2352
2353 * arc-tdep.c (arc_check_for_hardware_loop): New.
2354 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2355
22459524
SV
23562020-08-25 Shahab Vahedi <shahab@synopsys.com>
2357
2358 * arc-tdep.h: Include "gdbarch.h".
2359
995d3a19
SV
23602020-08-25 Shahab Vahedi <shahab@synopsys.com>
2361
2362 * arch/arc.h
2363 (arc_gdbarch_features): New class to stir the selection of target XML.
2364 (arc_create_target_description): Use FEATURES to choose XML target.
2365 (arc_lookup_target_description): Use arc_create_target_description
2366 to create _new_ target descriptions or return the already created
2367 ones if the FEATURES is the same.
2368 * arch/arc.c: Implementation of prototypes described above.
2369 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2370 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2371 * arc-tdep.c (*_feature_name): Make feature names consistent.
2372 (arc_register_feature): A new struct to hold information about
2373 registers of a particular target/feature.
2374 (arc_check_tdesc_feature): Check if XML provides registers in
2375 compliance with ARC_REGISTER_FEATURE structs.
2376 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2377 (determine_*_reg_feature_set): Which feature name to look for.
2378 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2379 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2380 to expected ISA enums to be used in arc_gdbarch_features structs.
2381 * features/Makefile (FEATURE_XMLFILES): Add new files.
2382 * gdb/features/arc/v1-aux.c: New file.
2383 * gdb/features/arc/v1-aux.xml: Likewise.
2384 * gdb/features/arc/v1-core.c: Likewise.
2385 * gdb/features/arc/v1-core.xml: Likewise.
2386 * gdb/features/arc/v2-aux.c: Likewise.
2387 * gdb/features/arc/v2-aux.xml: Likewise.
2388 * gdb/features/arc/v2-core.c: Likewise.
2389 * gdb/features/arc/v2-core.xml: Likewise.
2390 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2391
3945d2d7
GM
23922020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2393 Andrew Burgess <andrew.burgess@embecosm.com>
2394
2395 PR m2/26372
fc5d6901 2396 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
2397 an assert. Remove single element array indexing pattern as the
2398 MULTI_SUBSCRIPT support will handle this case too.
2399
2677f2d3
SM
24002020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2401
2402 * value.h (valprint_check_validity): Move declaration from
2403 here...
2404 * valprint.h (valprint_check_validity): ... to here.
2405
c426fddb
SM
24062020-08-24 Simon Marchi <simon.marchi@efficios.com>
2407
2408 * debug.h: New file.
2409 * debug.c (debug_prefixed_vprintf): New function.
2410 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2411 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2412
1eb8556f
SM
24132020-08-24 Simon Marchi <simon.marchi@efficios.com>
2414
2415 * infrun.h (infrun_debug_printf_1): New function declaration.
2416 (infrun_debug_printf): New macro.
2417 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2418 throughout.
2419 (infrun_debug_printf): New function.
2420 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2421 (handle_jit_event): Likewise.
2422
b8fff44e
MW
24232020-08-21 Mark Wielaard <mark@klomp.org>
2424
2425 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2426
d19c3068
SM
24272020-08-22 Simon Marchi <simon.marchi@efficios.com>
2428
2429 * frame.c (enum class frame_id_status): New.
2430 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2431 (fprintf_frame): Update.
2432 (compute_frame_id): Set frame id status to "computing" on entry.
2433 Set it back to "not_computed" on failure and to "computed" on
2434 success.
2435 (get_frame_id): Assert the frame id is not being computed.
2436 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2437 (create_new_frame): Likewise.
2438 (frame_cleanup_after_sniffer): Update assert.
2439
b70e516e
SM
24402020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2441
2442 * regcache.c (pid_ptid_regcache_map): New type.
2443 (target_ptid_regcache_map): Remove.
2444 (target_pid_ptid_regcache_map): New type.
2445 (regcaches): Change type to target_pid_ptid_regcache_map.
2446 (get_thread_arch_aspace_regcache): Update.
2447 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2448 case.
2449 (regcaches_size): Update.
2450 (regcache_count): Update.
2451 (registers_changed_ptid_target_pid_test): New.
2452 (_initialize_regcache): Register new test.
2453
cdd9148a
SM
24542020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2455
2456 * regcache.c (regcache_count): New.
2457 (struct regcache_test_data): New.
2458 (regcache_test_data_up): New.
2459 (populate_regcaches_for_test): New.
2460 (regcaches_test): Remove.
2461 (get_thread_arch_aspace_regcache_test): New.
2462 (registers_changed_ptid_all_test): New.
2463 (registers_changed_ptid_target_test): New.
2464 (registers_changed_ptid_target_ptid_test): New.
2465 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2466 (_initialize_regcache): Register new tests.
2467
dd125343
SM
24682020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2469
2470 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2471 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2472 gdbarch and aspace parameter. Use current inferior's aspace.
2473 Validate regcache's arch value.
2474 (regcaches_test): Update.
2475
3ee93972
SM
24762020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2477
2478 * regcache.c (regcaches_test): Call registers_changed.
2479
33bf4c5c
TBA
24802020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2481
2482 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2483
c2fd7fae
AKS
24842020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2485
2486 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2487 to find the end of prologue for flang compiled binaries.
2488 * arm-tdep.c (arm_skip_prologue): Likewise.
2489 * i386-tdep.c (i386_skip_prologue): Likewise.
2490 * producer.c (producer_is_llvm): New function.
2491 (producer_parsing_tests): Added new tests for clang/flang.
2492 * producer.h (producer_is_llvm): New declaration.
2493
9327494e
SM
24942020-08-18 Simon Marchi <simon.marchi@efficios.com>
2495
2496 * linux-nat.c (linux_nat_debug_printf): New function.
2497 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2498
d138725a
AM
24992020-08-18 Aaron Merey <amerey@redhat.com>
2500
2501 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2502 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2503 (CLIBS): Add DEBUGINFOD_LIBS.
2504
f9b11e6b
ST
25052020-08-17 Sergei Trofimovich <siarheit@google.com>
2506
2507 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2508 'gdbarch_num_regs'.
2509
3ae7ab99
TT
25102020-08-17 Tom Tromey <tromey@adacore.com>
2511
2512 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2513 ada_get_decoded_value returns NULL.
2514
b017825f
TT
25152020-08-17 Tom Tromey <tromey@adacore.com>
2516
2517 * python/py-inferior.c (infpy_search_memory): Use
2518 gdb_py_object_from_ulongest.
2519 * python/py-infevents.c (create_inferior_call_event_object)
2520 (create_memory_changed_event_object): Use
2521 gdb_py_object_from_ulongest.
2522 * python/py-linetable.c (ltpy_entry_get_pc): Use
2523 gdb_py_object_from_ulongest.
2524
7635cf79
SM
25252020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2526
2527 * loc.c (class symbol_needs_eval_context): Fix indentation.
2528
f54be24b
SM
25292020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2530
2531 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2532 bool.
2533
53d5a2a5
TV
25342020-08-17 Tom de Vries <tdevries@suse.de>
2535
2536 PR gdb/26393
2537 * gdbtypes.c (dump_dynamic_prop): New function.
2538 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2539
547ce8f0
TV
25402020-08-15 Tom de Vries <tdevries@suse.de>
2541
2542 PR backtrace/26390
2543 * stack.c (print_frame_args): Temporarily set the selected
2544 frame to FRAME while printing the frame's arguments.
2545
6ea815e7
PFC
25462020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2547
2548 PR breakpoints/26385
2549 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2550 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2551
6e562fa3
PFC
25522020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2553
2554 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2555 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2556 and >= to check return value instead of == -1 and != -1.
2557
d369b608
SM
25582020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2559
2560 * utils.h (class gdb_argv) <as_array_view>: New method.
2561 * utils.c (gdb_argv_as_array_view_test): New.
2562 (_initialize_utils): Register selftest.
2563 * maint.c (maintenance_selftest): Use the new method.
2564
b31488a3
KR
25652020-08-13 Kamil Rytarowski <n54@gmx.com>
2566
2567 * target.h (supports_dumpcore, dumpcore): New
2568 function declarations.
2569 * target.c (supports_dumpcore, dumpcore): New
2570 functions.
2571 * target-delegates.c: Rebuild.
2572 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2573 and target_dumpcore ().
2574
002a3166
AM
25752020-08-13 Aaron Merey <amerey@redhat.com>
2576
2577 * debuginfod-support.c: Replace global variables with user_data.
2578
ece5bc8a
SM
25792020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2580
2581 * maint.c (maintenance_selftest): Split args and pass array_view
2582 to run_tests.
2583
6d8a0a5e
LM
25842020-08-12 Luis Machado <luis.machado@linaro.org>
2585
2586 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2587 type's length.
2588 Use %s and pulongest to print the length.
2589
7cf663a9
PA
25902020-08-12 Pedro Alves <palves@redhat.com>
2591
2592 * NEWS: Move "Multi-target debugging support" item to the
2593 "Changes since GDB 9" section.
2594
27c7b875
PA
25952020-08-12 Pedro Alves <palves@redhat.com>
2596
2597 PR gdb/26336
2598 * progspace.c (program_space::remove_objfile): Invalidate the
2599 frame cache.
2600
1796a2a1
TV
26012020-08-11 Tom de Vries <tdevries@suse.de>
2602
2603 * MAINTAINERS: Mark ms1 as deleted.
2604
f8e3fe0d
LM
26052020-08-10 Luis Machado <luis.machado@linaro.org>
2606
2607 PR gdb/26310
2608
2609 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2610 act accordingly.
2611 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2612 movz/str/stur/stp skipping behavior.
2613
cc308722
LM
26142020-08-10 Luis Machado <luis.machado@linaro.org>
2615
2616 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2617 struct user_sve_header instead of struct sve_context.
2618
041d9819
SM
26192020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2620
2621 * read.h (dwarf2_fetch_die_loc_sect_off,
2622 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2623 `void *` parameter with function_view.
2624 * read.c (dwarf2_fetch_die_loc_sect_off,
2625 dwarf2_fetch_die_loc_cu_off): Likewise.
2626 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2627 (per_cu_dwarf_call): Adjust.
2628 (get_frame_address_in_block_wrapper): Remove.
2629 (indirect_synthetic_pointer): Adjust.
2630 (get_ax_pc): Remove.
2631 (dwarf2_compile_expr_to_ax): Adjust.
2632
38f8aa06
TV
26332020-08-08 Tom de Vries <tdevries@suse.de>
2634
2635 PR build/26344
2636 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2637 constructor.
2638 * regcache.c (get_thread_arch_aspace_regcache): Same.
2639
a52b3ae2
TT
26402020-08-07 Tom Tromey <tromey@adacore.com>
2641
2642 * ravenscar-thread.c
2643 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2644 New method.
2645 (ravenscar_thread_target::wait): Check
2646 runtime_initialized.
2647 (ravenscar_thread_target::prepare_to_store)
2648 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2649 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2650 (ravenscar_thread_target::stopped_by_watchpoint)
2651 (ravenscar_thread_target::stopped_data_address)
2652 (ravenscar_thread_target::core_of_thread): Use
2653 scoped_restore_current_thread and
2654 set_base_thread_from_ravenscar_task.
2655
0e29517d
TT
26562020-08-07 Tom Tromey <tromey@adacore.com>
2657
2658 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2659
592f9bd7
TT
26602020-08-07 Tom Tromey <tromey@adacore.com>
2661
2662 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2663 update_inferior_ptid before update_thread_list.
2664 (temporarily_change_regcache_ptid): New class.
2665 (ravenscar_thread_target::fetch_registers)
2666 (ravenscar_thread_target::store_registers)
2667 (ravenscar_thread_target::prepare_to_store): Use base thread when
2668 forwarding operation.
2669
39e2018a
TT
26702020-08-07 Tom Tromey <tromey@adacore.com>
2671
2672 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2673 "is_pid" case.
2674
2080266b
TT
26752020-08-07 Tom Tromey <tromey@adacore.com>
2676
2677 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2678 New methods.
2679 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2680 first.
2681 (ravenscar_thread_target::add_thread): Rename from
2682 ravenscar_add_thread.
2683 (ravenscar_thread_target::update_thread_list): Use a lambda.
2684 (ravenscar_thread_target::xfer_partial): New method.
2685
78c02f21
TT
26862020-08-07 Tom Tromey <tromey@adacore.com>
2687
2688 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2689 gdb::function_view.
2690 (iterate_over_live_ada_tasks): Change type of argument.
2691 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2692 of argument.
2693
d5d833af
TT
26942020-08-07 Tom Tromey <tromey@adacore.com>
2695
2696 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2697 Remove.
2698 (ravenscar_thread_target::extra_thread_info): Remove.
2699 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2700 defer to target beneath for non-Ravenscar threads.
2701
a8ac85bb
TT
27022020-08-07 Tom Tromey <tromey@adacore.com>
2703
2704 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2705 get_base_thread_from_ravenscar_task>: Now methods.
2706 <m_cpu_map>: New member.
2707 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2708 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2709 (ravenscar_thread_target::task_is_currently_active): Update.
2710 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2711 Now a method.
2712 (ravenscar_thread_target::add_active_thread): Put initial thread
2713 into the m_cpu_map.
2714
550ab58d
TT
27152020-08-07 Tom Tromey <tromey@adacore.com>
2716
2717 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2718 event_ptid.
2719
e9546579
TT
27202020-08-07 Tom Tromey <tromey@adacore.com>
2721
2722 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2723 runtime_initialized.
2724
3d4470e5
TT
27252020-08-07 Tom Tromey <tromey@adacore.com>
2726
2727 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2728 add_active_thread.
2729 (ravenscar_thread_target::add_active_thread): Now public.
2730 (ravenscar_inferior_created): Call add_active_thread after pushing
2731 the target.
2732
888bdb2b
SM
27332020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2734
2735 * regcache.c (ptid_regcache_map): New type.
2736 (target_ptid_regcache_map): New type.
2737 (regcaches): Change type to target_ptid_regcache_map.
2738 (get_thread_arch_aspace_regcache): Update to regcaches' new
2739 type.
2740 (regcache_thread_ptid_changed): Likewise.
2741 (registers_changed_ptid): Likewise.
2742 (regcaches_size): Likewise.
2743 (regcaches_test): Update.
2744 (regcache_thread_ptid_changed): Update.
2745 * regcache.h (regcache_up): New type.
2746 * gdbsupport/ptid.h (hash_ptid): New struct.
2747
b161a60d
SM
27482020-08-07 Simon Marchi <simon.marchi@efficios.com>
2749
2750 * observable.h (thread_ptid_changed): Add parameter
2751 `process_stratum_target *`.
2752 * infrun.c (infrun_thread_ptid_changed): Add parameter
2753 `process_stratum_target *` and use it.
2754 (selftests): New namespace.
2755 (infrun_thread_ptid_changed): New function.
2756 (_initialize_infrun): Register selftest.
2757 * regcache.c (regcache_thread_ptid_changed): Add parameter
2758 `process_stratum_target *` and use it.
2759 (regcache_thread_ptid_changed): New function.
2760 (_initialize_regcache): Register selftest.
2761 * thread.c (thread_change_ptid): Pass target to
2762 thread_ptid_changed observable.
2763
d2854d8d
CT
27642020-08-06 Caroline Tice <cmtice@google.com>
2765
fe4c3d43
SM
2766 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2767 (struct dwp_sections): Update field comments. Add loclists and
2768 rnglists fields.
2769 (struct virtual_v2_dwo_sections): Rename struct to
2770 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2771 size & offset fields for loclists and rnglists.
2772 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2773 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2774 skipping dummy type units.
2775 (create_dwp_hash_table): Update the large comment above the function to
2776 discuss Version 5 DWP files as well, with references. Update all the
2777 version checks in the function to check for version 5 as well. Add new
2778 section at the end to create dwp hash table for version 5.
2779 (create_dwp_v2_section): Rename function to
2780 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2781 Add V5 to error message text.
2782 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2783 into calls to create_dwp_v2_or_v5_section.
2784 (create_dwo_unit_in_dwp_v5): New function.
2785 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2786 check for version2; add else clause to handle version 5.
2787 (open_and_init_dwo_file): Add code to check dwarf version & only call
2788 create_debug_types_hash_table (with sections.types) if version is not 5;
2789 else call create_debug_type_hash_table, with sections.info.
2790 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2791 version 5.
2792 (dwarf2_locate_v5_dwp_sections): New function.
2793 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2794 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2795
159ed7d9
SM
27962020-08-06 Simon Marchi <simon.marchi@efficios.com>
2797
2798 * regcache.h (class regcache): Remove friend
2799 registers_changed_ptid.
2800 <regcache_thread_ptid_changed>: Remove.
2801 <regcaches>: Remove.
2802 * regcache.c (regcache::regcaches): Rename to...
2803 (regcaches): ... this. Make static.
2804 (get_thread_arch_aspace_regcache): Update.
2805 (regcache::regcache_thread_ptid_changed): Rename to...
2806 (regcache_thread_ptid_changed): ... this. Update.
2807 (class regcache_access): Remove.
2808 (regcaches_test): Update.
2809 (_initialize_regcache): Update.
2810 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2811 <forward_list>.
2812
174981ae
SM
28132020-08-06 Simon Marchi <simon.marchi@efficios.com>
2814
2815 * regcache.h (class regcache) <current_regcache>: Rename to...
2816 <regcaches>: ... this. Move doc here.
2817 * regcache.c (regcache::current_regcache) Rename to...
2818 (regcache::regcaches): ... this. Move doc to header.
2819 (get_thread_arch_aspace_regcache): Update.
2820 (regcache::regcache_thread_ptid_changed): Update.
2821 (registers_changed_ptid): Update.
2822 (class regcache_access) <current_regcache_size>: Rename to...
2823 <regcaches_size>: ... this.
2824 (current_regcache_test): Rename to...
2825 (regcaches_test): ... this.
2826 (_initialize_regcache): Update.
2827
ed908db6
VC
28282020-08-06 Victor Collod <vcollod@nvidia.com>
2829
2830 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2831
b5582ab7
KB
28322020-08-05 Kevin Buettner <kevinb@redhat.com>
2833
2834 * corelow.c (core_target::build_file_mappings): Don't output
2835 null pathname in warning.
2836
ea946b86
SM
28372020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2838
2839 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2840 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2841 gdb.dwarf2/dw2-single-line-discriminators.exp,
2842 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2843
57d02173
TT
28442020-08-05 Tom Tromey <tromey@adacore.com>
2845
2846 PR rust/26197:
2847 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2848 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2849 Fix off-by-one and type size errors in ordinary case.
2850
5555c86d
TV
28512020-08-05 Tom de Vries <tdevries@suse.de>
2852
2853 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2854 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2855
97916bfe
SM
28562020-08-04 Simon Marchi <simon.marchi@efficios.com>
2857
2858 * frame.h (frame_id_p): Return bool.
2859 (frame_id_artificial_p): Return bool.
2860 (frame_id_eq): Return bool.
2861 (has_stack_frames): Return bool.
2862 (get_selected_frame): Fix typo in comment.
2863 (get_frame_pc_if_available): Return bool.
2864 (get_frame_address_in_block_if_available): Return bool.
2865 (get_frame_func_if_available): Return bool.
2866 (read_frame_register_unsigned): Return bool.
2867 (get_frame_register_bytes): Return bool.
2868 (safe_frame_unwind_memory): Return bool.
2869 (deprecated_frame_register_read): Return bool.
2870 (frame_unwinder_is): Return bool.
2871 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2872 bool.
2873 <this_id::p>: Likewise.
2874 <prev_p>: Likewise.
2875 (frame_stash_add): Return bool.
2876 (get_frame_id): Use bool.
2877 (frame_id_build_special) Use bool.
2878 (frame_id_build_unavailable_stack): Use bool.
2879 (frame_id_build): Use bool.
2880 (frame_id_p): Return bool, use true/false instead of 1/0.
2881 (frame_id_artificial_p): Likewise.
2882 (frame_id_eq): Likewise.
2883 (frame_id_inner): Likewise.
2884 (get_frame_func_if_available): Likewise.
2885 (read_frame_register_unsigned): Likewise.
2886 (deprecated_frame_register_read): Likewise.
2887 (get_frame_register_bytes): Likewise.
2888 (has_stack_frames): Likewise.
2889 (inside_main_func): Likewise.
2890 (inside_entry_func): Likewise.
2891 (get_frame_pc_if_available): Likewise.
2892 (get_frame_address_in_block_if_available): Likewise.
2893 (frame_unwinder_is): Likewise.
2894 (safe_frame_unwind_memory): Likewise.
2895 (frame_unwind_arch): Likewise.
2896
fedfee88
SM
28972020-08-04 Simon Marchi <simon.marchi@efficios.com>
2898
2899 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2900 type to cached_copy_status.
2901 (fprintf_frame): Adjust.
2902 (get_frame_func_if_available): Adjust.
2903 (frame_cleanup_after_sniffer): Adjust.
2904
6cfa9b59
MW
29052020-08-04 Mark Wielaard <mark@klomp.org>
2906
2907 * MAINTAINERS (Write After Approval): Update email address.
2908
66d6346b
SM
29092020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2910
2911 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2912 dynamic_prop::const_val.
2913
8a6d5e35
SM
29142020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2915
2916 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2917 dynamic_prop::kind.
2918
51d6067d
SM
29192020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2920
2921 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2922
b26e2ae7
JM
29232020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2924
2925 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2926
39791af2
JM
29272020-08-04 Weimin Pan <weimin.pan@oracle.com>
2928 Jose E. Marchesi <jose.marchesi@oracle.com>
2929
2930 * configure.tgt: Add entry for bpf-*-*.
2931 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2932 (ALLDEPFILES): Add bpf-tdep.c.
2933 * bpf-tdep.c: New file.
2934 * MAINTAINERS: Add bpf target and maintainer.
2935 * NEWS: Mention the support for the new target.
2936
521894aa
TV
29372020-08-04 Tom de Vries <tdevries@suse.de>
2938
2939 PR symtab/23270
2940 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2941 Error.
2942
5d6356e9
JB
29432020-08-03 John Baldwin <jhb@FreeBSD.org>
2944
2945 * syscalls/freebsd.xml: Regenerate.
2946
0cf82b81
JB
29472020-08-03 John Baldwin <jhb@FreeBSD.org>
2948
2949 * syscalls/update-freebsd.sh: Fix usage and year range.
2950
8f34b746
TV
29512020-08-03 Tom de Vries <tdevries@suse.de>
2952
2953 PR symtab/26333
2954 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2955 DW_LNE_lo_user/DW_LNE_hi_user range.
2956
5e500d33
SM
29572020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2958
2959 PR ada/26318
2960 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2961 kind.
2962
78319c15
TBA
29632020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2964
2965 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2966
4c55e970
TBA
29672020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2968
2969 * breakpoint.c (set_breakpoint_condition): Update the condition
2970 expressions after checking that the input condition string parses
2971 successfully and does not contain junk at the end.
2972
1e620590
TBA
29732020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2974
2975 * breakpoint.c (set_breakpoint_condition): Update the
2976 condition string after parsing the new condition successfully.
2977
c8693053
RO
29782020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2979
2980 * proc-api.c (_STRUCTURED_PROC): Don't define.
2981 * proc-events.c: Likewise.
2982 * proc-flags.c: Likewise.
2983 * proc-why.c: Likewise.
2984 * procfs.c: Likewise.
2985
2986 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2987 * configure, config.in: Regenerate.
2988
5a99adb8
TV
29892020-07-30 Tom de Vries <tdevries@suse.de>
2990
2991 PR build/26320
2992 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2993 m_red/m_green/m_blue in a union.
2994
8ba83e91
TV
29952020-07-29 Tom de Vries <tdevries@suse.de>
2996
2997 PR tdep/26280
2998 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2999
f75a0693
AB
30002020-07-28 Tom Tromey <tromey@adacore.com>
3001
3002 PR symtab/26270:
3003 * symtab.h (find_pc_partial_function_sym): Declare.
3004 * cli/cli-cmds.c (disassemble_command): Use
3005 find_pc_partial_function_sym. Check asm_demangle.
3006 * blockframe.c (cache_pc_function_sym): New global.
3007 (cache_pc_function_name): Remove.
3008 (clear_pc_function_cache): Update.
3009 (find_pc_partial_function_sym): New function, from
3010 find_pc_partial_function.
3011 (find_pc_partial_function): Rewrite using
3012 find_pc_partial_function_sym.
3013
16f3242c
TT
30142020-07-28 Tom Tromey <tromey@adacore.com>
3015
3016 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3017 help. Add usage.
3018
4888741a
TT
30192020-07-28 Tom Tromey <tromey@adacore.com>
3020
3021 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3022 <DW_OP_GNU_variable_value>: Cast to address type.
3023
4d46f402
KR
30242020-07-28 Kamil Rytarowski <n54@gmx.com>
3025
3026 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3027 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3028 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3029 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3030 (nbsd_get_siginfo_type): New.
3031 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3032 (_initialize_nbsd_tdep): New.
3033
d70f978b
L
30342020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3035
3036 PR binutils/26301
3037 * configure: Regenerated.
3038
377170fa
L
30392020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3040
3041 PR binutils/26301
3042 * configure: Regenerated.
3043
43d5901d
AB
30442020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3045
3046 * python/py-frame.c: Remove 'user-regs.h' include.
3047 (frapy_read_register): Rewrite to make use of
3048 gdbpy_parse_register_id.
3049 * python/py-registers.c (gdbpy_parse_register_id): New function,
3050 moved here from python/py-unwind.c. Updated the return type, and
3051 also accepts register descriptor objects.
3052 * python/py-unwind.c: Remove 'user-regs.h' include.
3053 (pyuw_parse_register_id): Moved to python/py-registers.c.
3054 (unwind_infopy_add_saved_register): Update to use
3055 gdbpy_parse_register_id.
3056 (pending_framepy_read_register): Likewise.
3057 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3058
14fa8fb3
AB
30592020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3060
3061 * python/py-registers.c: Add 'user-regs.h' include.
3062 (register_descriptor_iter_find): New function.
3063 (register_descriptor_iterator_object_methods): New static global
3064 methods array.
3065 (register_descriptor_iterator_object_type): Add pointer to methods
3066 array.
3067
ddce1758
JB
30682020-07-27 John Baldwin <jhb@FreeBSD.org>
3069
3070 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3071 for all architectures on FreeBSD 11.3 and later.
3072
a4089f52
TT
30732020-07-27 Tom Tromey <tromey@adacore.com>
3074
3075 * gcore.h (load_corefile): Don't declare.
3076
95420d30
TV
30772020-07-27 Tom de Vries <tdevries@suse.de>
3078
3079 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3080 * config.in: Regenerate.
3081 * configure: Regenerate.
3082
05a6b8c2
EZ
30832020-07-26 Eli Zaretskii <eliz@gnu.org>
3084
3085 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3086 ws2tcpip.h. When checking whether socklen_t type is defined, use
3087 ws2tcpip.h if it is available and sys/socket.h isn't.
3088 * configure: Regenerate.
3089 * config.in: Regenerate.
3090
e79eb02f
AB
30912020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3092
3093 PR fortran/23051
3094 PR fortran/26139
3095 * valops.c (value_ind): Pass address to
3096 readjust_indirect_value_type.
3097 * value.c (readjust_indirect_value_type): Make parameter
3098 non-const, and add extra address parameter. Resolve original type
3099 before using it.
3100 * value.h (readjust_indirect_value_type): Update function
3101 signature and comment.
3102
876518dd
TV
31032020-07-25 Tom de Vries <tdevries@suse.de>
3104
3105 PR symtab/26243
3106 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3107 entries.
3108
f6720b1c
AM
31092020-07-24 Aaron Merey <amerey@redhat.com>
3110
3111 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3112 * configure: Rebuild.
3113
513487e1
KB
31142020-07-23 Kevin Buettner <kevinb@redhat.com>
3115
3116 PR corefiles/26294
3117 * corelow.c (_initialize_corelow): Add period to help text
3118 for "maintenance print core-file-backed-mappings".
3119
e7bc9db8
PA
31202020-07-23 Pedro Alves <pedro@palves.net>
3121
3122 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3123 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3124 meanwhile.
3125 * frame.c (frame_cache_generation, get_frame_cache_generation):
3126 New.
3127 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3128 (get_prev_frame_if_no_cycle): On exception, don't touch
3129 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3130 * frame.h (get_frame_cache_generation): Declare.
3131
90fcc466
TV
31322020-07-23 Tom de Vries <tdevries@suse.de>
3133
3134 PR tui/26282
3135 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3136 New default constructor.
3137
78344df7
AB
31382020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3139
3140 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3141 exclude non-statement entries.
3142
b089853a
KB
31432020-07-22 Kevin Buettner <kevinb@redhat.com>
3144
3145 * NEWS (New commands): Mention new command
3146 "maintenance print core-file-backed-mappings".
3147
09c2f5d4
KB
31482020-07-22 Kevin Buettner <kevinb@redhat.com>
3149
3150 * corelow.c (gdbcmd.h): Include.
3151 (core_target::info_proc_mappings): New method.
3152 (get_current_core_target): New function.
3153 (maintenance_print_core_file_backed_mappings): New function.
3154 (_initialize_corelow): Add core-file-backed-mappings to
3155 "maint print" commands.
3156
9c5ec5c2 31572020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 3158
9c5ec5c2
KB
3159 * linux-tdep.c (dump_note_entry_p): New function.
3160 (linux_dump_mapping_p_ftype): New typedef.
3161 (linux_find_memory_regions_full): Add new parameter,
3162 should_dump_mapping_p.
3163 (linux_find_memory_regions): Adjust call to
3164 linux_find_memory_regions_full.
3165 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3166 call to linux_find_memory_regions_full.
3167
db082f59
KB
31682020-07-22 Kevin Buettner <kevinb@redhat.com>
3169
3170 * corelow.c (solist.h, unordered_map): Include.
3171 (class core_target): Add field m_core_file_mappings and
3172 method build_file_mappings.
3173 (core_target::core_target): Call build_file_mappings.
3174 (core_target::~core_target): Free memory associated with
3175 m_core_file_mappings.
3176 (core_target::build_file_mappings): New method.
3177 (core_target::xfer_partial): Use m_core_file_mappings
3178 for memory transfers.
3179 * linux-tdep.c (linux_read_core_file_mappings): New
3180 function.
3181 (linux_core_info_proc_mappings): Rewrite to use
3182 linux_read_core_file_mappings.
3183 (linux_init_abi): Register linux_read_core_file_mappings.
3184
7e183d27
KB
31852020-07-22 Kevin Buettner <kevinb@redhat.com>
3186
3187 * arch-utils.c (default_read_core_file_mappings): New function.
3188 * arch-utils.c (default_read_core_file_mappings): Declare.
3189 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3190 * gdbarch.h, gdbarch.c: Regenerate.
3191
2735d421
KB
31922020-07-22 Kevin Buettner <kevinb@redhat.com>
3193
3194 PR corefiles/25631
3195 * corelow.c (core_target:xfer_partial): Revise
3196 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3197 case after first checking the stratum beneath the core
3198 target.
3199 (has_all_memory): Return true.
3200 * target.c (raw_memory_xfer_partial): Revise comment
3201 regarding use of has_all_memory.
3202
e56cb451
KB
32032020-07-22 Kevin Buettner <kevinb@redhat.com>
3204
3205 * exec.h (section_table_xfer_memory): Revise declaration,
3206 replacing section name parameter with an optional callback
3207 predicate.
3208 * exec.c (section_table_xfer_memory): Likewise.
3209 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3210 of section_table_xfer_memory.
3211
32fa152e
TT
32122020-07-22 Tom Tromey <tromey@adacore.com>
3213
3214 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3215 lookup_symbol_search_name.
3216
a67a1c41
AB
32172020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3218
3219 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3220 redundant local variable.
3221 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3222 reference, not pointer, update code accordingly.
3223
a7b4ff4f
SM
32242020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3225 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3226
3227 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3228 * jit.c (jit_breakpoint_re_set_internal): Use the
3229 `skip_jit_symbol_lookup` field.
3230
2340e834
SM
32312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3232 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3233
3234 * jit.c (jit_read_descriptor): Define the descriptor address once,
3235 use twice.
3236 (jit_breakpoint_deleted): Move the declaration of the loop variable
3237 `iter` into the loop header.
3238 (jit_breakpoint_re_set_internal): Move the declaration of the local
3239 variable `objf_data` to the first point of definition.
3240 (jit_event_handler): Move the declaration of local variables
3241 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3242 Rename `objf` to `jited`.
3243
c1072906
SM
32442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3245
3246 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3247 Remove.
3248 * jit.c (get_jiter_objfile_data): Update.
3249
c8474dc3
TBA
32502020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3251 Simon Marchi <simon.marchi@polymtl.ca>
3252
3253 * jit.c (struct jit_program_space_data): Remove.
3254 (jit_program_space_key): Remove.
3255 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3256 stuff.
3257 (get_jit_program_space_data): Remove.
3258 (jit_breakpoint_deleted): Iterate on all of the program space's
3259 objfiles.
3260 (jit_inferior_init): Likewise.
3261 (jit_breakpoint_re_set_internal): Likewise. Also change return
3262 type to void.
3263 (jit_breakpoint_re_set): Pass current_program_space to
3264 jit_breakpoint_re_set_internal.
3265
77208eb7
SM
32662020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3267
3268 * jit.h (struct jiter_objfile_data) <cached_code_address,
3269 jit_breakpoint>: Move to here from ...
3270 * jit.c (jit_program_space_data): ... here.
3271 (jiter_objfile_data::~jiter_objfile_data): Update.
3272 (jit_breakpoint_deleted): Update.
3273 (jit_breakpoint_re_set_internal): Update.
3274
8c1c720f
SM
32752020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3276
3277 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3278 checks.
3279 (jit_read_descriptor): Remove NULL check.
3280 (jit_event_handler): Add an assertion.
3281
0e74a041
SM
32822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3283
3284 * jit.h (struct jit_objfile_data): Split into...
3285 (struct jiter_objfile_data): ... this ...
3286 (struct jited_objfile_data): ... and this.
3287 * objfiles.h (struct objfile) <jit_data>: Remove.
3288 <jiter_data, jited_data>: New fields.
3289 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3290 (jiter_objfile_data::~jiter_objfile_data): ... this.
3291 (get_jit_objfile_data): Rename to ...
3292 (get_jiter_objfile_data): ... this.
3293 (add_objfile_entry): Update.
3294 (jit_read_descriptor): Use get_jiter_objfile_data.
3295 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3296 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3297 (jit_inferior_exit_hook): Use objfile's jited_data field.
3298
238b5c9f
SM
32992020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3300
3301 * jit.h: Forward-declare `struct minimal_symbol`.
3302 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3303 constructor, destructor, and an objfile* field.
3304 * jit.c (jit_objfile_data): Remove.
3305 (struct jit_objfile_data): Migrate from here to jit.h.
3306 (jit_objfile_data::~jit_objfile_data): New destructor
3307 implementation with code moved from free_objfile_data.
3308 (free_objfile_data): Delete.
3309 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3310 (jit_find_objf_with_entry_addr): Ditto.
3311 (jit_inferior_exit_hook): Ditto.
3312 (_initialize_jit): Remove the call to
3313 register_objfile_data_with_cleanup.
3314 * objfiles.h (struct objfile) <jit_data>: New field.
3315
fe053b9e
TBA
33162020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3317
3318 * jit.h: Forward-declare `struct objfile`.
3319 (jit_event_handler): Add a second parameter, the JITer objfile.
3320 * jit.c (jit_read_descriptor): Change the signature to take the
3321 JITer objfile as an argument instead of the jit_program_space_data.
3322 (jit_inferior_init): Update the call to jit_read_descriptor.
3323 (jit_event_handler): Use the new JITer objfile argument when calling
3324 jit_read_descriptor.
3325 * breakpoint.c (handle_jit_event): Update the call to
3326 jit_event_handler to pass the JITer objfile.
3327
4cec0c66
JB
33282020-07-21 John Baldwin <jhb@FreeBSD.org>
3329
3330 * gdbarch.c: Regenerate.
3331 * gdbarch.h: Regenerate.
3332 * gdbarch.sh (handle_segmentation_fault): Remove method.
3333 * infrun.c (handle_segmentation_fault): Remove.
3334 (print_signal_received_reason): Remove call to
3335 handle_segmentation_fault.
3336
0e42f66a
JB
33372020-07-21 John Baldwin <jhb@FreeBSD.org>
3338
3339 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3340 Rename to sparc64_linux_report_signal_info and add siggnal
3341 argument.
3342 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3343 instead of sparc64_linux_handle_segmentation_fault.
3344
77bdfeb2
JB
33452020-07-21 John Baldwin <jhb@FreeBSD.org>
3346
3347 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3348 i386_linux_report_signal_info instead of
3349 i386_linux_handle_segmentation_fault.
3350 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3351 to i386_linux_report_signal_info and add siggnal argument.
3352 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3353 of i386_linux_handle_segmentation_fault.
3354 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3355 to i386_linux_report_signal_info and add siggnal argument.
3356
ad97bfc5
JB
33572020-07-21 John Baldwin <jhb@FreeBSD.org>
3358
3359 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3360 hook if present.
3361
272bb05c
JB
33622020-07-21 John Baldwin <jhb@FreeBSD.org>
3363
3364 * gdbarch.c: Regenerate.
3365 * gdbarch.h: Regenerate.
3366 * gdbarch.sh (report_signal_info): New method.
3367 * infrun.c (print_signal_received_reason): Invoke gdbarch
3368 report_signal_info hook if present.
3369
baf8791e
AB
33702020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3371
3372 * python/py-registers.c : Add 'unordered_map' include.
3373 (gdbpy_new_reggroup): Renamed to...
3374 (gdbpy_get_reggroup): ...this. Update to only create register
3375 group descriptors when needed.
3376 (gdbpy_reggroup_iter_next): Update.
3377
f7306dac
AB
33782020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * python/py-registers.c (gdbpy_register_object_data): New static
3381 global.
3382 (gdbpy_register_object_data_init): New function.
3383 (gdbpy_new_register_descriptor): Renamed to...
3384 (gdbpy_get_register_descriptor): ...this, and update to reuse
3385 existing register descriptors where possible.
3386 (gdbpy_register_descriptor_iter_next): Update.
3387 (gdbpy_initialize_registers): Register new gdbarch data.
3388
05c309a8
SM
33892020-07-21 Simon Marchi <simon.marchi@efficios.com>
3390
3391 * linux-nat.c (stopped_pids): Make static.
3392
d1fd641e
SM
33932020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3394
3395 PR ada/26235
3396 * gdbtypes.c (ada_discrete_type_low_bound,
3397 ada_discrete_type_high_bound): Handle undefined bounds.
3398
1de14d77
KR
33992020-07-21 Kamil Rytarowski <n54@gmx.com>
3400
3401 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3402 declaration.
3403 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3404 function.
3405
ed810cc7
JB
34062020-07-20 John Baldwin <jhb@FreeBSD.org>
3407
3408 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3409 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3410 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3411 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3412 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3413 method.
3414
ae5369e7
LC
34152020-07-20 Ludovic Courtès <ludo@gnu.org>
3416
3417 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3418 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3419 which are deprecated in Guile 3.0.
3420 * configure.ac (try_guile_versions): Add "guile-3.0".
3421 * configure (try_guile_versions): Regenerate.
3422 * NEWS: Update entry.
3423
68cf161c
LC
34242020-07-20 Ludovic Courtès <ludo@gnu.org>
3425 Doug Evans <dje@google.com>
3426
3427 PR gdb/21104
3428 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3429 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3430 USING_GUILE_BEFORE_2_2.
3431 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3432 Change type to 'scm_t_port_type *'.
3433 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3434 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3435 parameter and honor it. Update callers.
3436 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3437 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3438 functions.
3439 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3440 USING_GUILE_BEFORE_2_2.
3441 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3442 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3443 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3444 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3445 and 'SCM_PORT_TYPE'.
3446 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3447 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3448 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3449 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3450 [!USING_GUILE_BEFORE_2_2]: New functions.
3451 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3452 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3453 'gdbscm_memory_port_read'.
3454 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3455 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3456 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3457 function.
3458 (ioscm_init_memory_port): Remove.
3459 (ioscm_init_memory_port_stream): New function
3460 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3461 function.
3462 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3463 Return scm_from_uint (0).
3464 (gdbscm_set_memory_port_read_buffer_size_x)
3465 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3466 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3467 Return scm_from_uint (0).
3468 (gdbscm_set_memory_port_write_buffer_size_x)
3469 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3470 * configure.ac (try_guile_versions): Add "guile-2.2".
3471 * configure: Regenerate.
3472 * NEWS: Add entry.
3473
aee91db3
TT
34742020-07-18 Tom Tromey <tom@tromey.com>
3475
3476 * linux-nat.c (linux_multi_process): Remove.
3477 (linux_nat_target::supports_multi_process): Return true.
3478
0e267416
AB
34792020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3480
3481 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3482 (riscv_lookup_target_description): Return pointer out of
3483 unique_ptr.
3484 * target-descriptions.c (allocate_target_description): Add
3485 comment.
3486 (target_desc_deleter::operator()): Likewise.
3487 * target-descriptions.h (struct target_desc_deleter): Moved to
3488 gdbsupport/tdesc.h.
3489 (target_desc_up): Likewise.
3490
f80c8ec4
TT
34912020-07-17 Tom Tromey <tromey@adacore.com>
3492
3493 * linux-nat.c (linux_nat_target::supports_non_stop)
3494 (linux_nat_target::always_non_stop_p): Use "true".
3495 (linux_nat_target::supports_disable_randomization): Use "true" and
3496 "false".
3497
d0ce17d8
CT
34982020-07-16 Caroline Tice <cmtice@google.com>
3499
3500 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3501 (RNGLIST_HEADER_SIZE64): New constant definition.
3502 (struct dwop_section_names): Add rnglists_dwo.
3503 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3504 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3505 (struct dwo_sections): Add rnglists field.
3506 (read_attribut_reprocess): Add tag parameter.
3507 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3508 (cu_debug_rnglists_section): New function (decl & definition).
3509 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3510 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3511 die whose range is being checked; get rnglist section from
3512 cu_debug_rnglists_section, to get from either objfile or dwo file as
3513 appropriate. Add cases for DW_RLE_base_addressx,
3514 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3515 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3516 test inside if-condition and updating complaint message.
3517 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3518 dwarf2_rnglists_process.
3519 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3520 dwarf2_ranges_process.
3521 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3522 need_ranges_base and update comment appropriately. Also pass die tag
3523 to dwarf2_ranges_read.
3524 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3525 need_ranges_base and update comment appropriately. Also pass die tag
3526 to dwarf2_ranges_process.
3527 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3528 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3529 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3530 need_ranges_base and update comment appropriately. Also pass die tag
3531 to read_attribute_reprocess and dwarf2_ranges_read.
3532 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3533 and update function comment appropriately.
3534 (read_loclist_index): Call read_loclists_rnglists_header instead of
3535 read_loclist_header.
3536 (read_rnglist_index): New function.
3537 (read_attribute_reprocess): Add tag parameter. Add code for
3538 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3539 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3540
3dcc261c
AB
35412020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3542
3543 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3544 being resolved.
3545
ccb9eba6
AB
35462020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3547
3548 * arch-utils.c (show_architecture): Update formatting of messages.
3549
cf88be68
SM
35502020-07-12 Simon Marchi <simon.marchi@efficios.com>
3551
3552 * gdbtypes.h (struct type) <bounds>: Handle array and string
3553 types.
3554 * ada-lang.c (assign_aggregate): Use type::bounds on
3555 array/string type.
3556 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3557 * c-varobj.c (c_number_of_children): Likewise.
3558 (c_describe_child): Likewise.
3559 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3560 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3561 (f_type_print_base): Likewise.
3562 * f-valprint.c (f77_array_offset_tbl): Likewise.
3563 (f77_get_upperbound): Likewise.
3564 (f77_print_array_1): Likewise.
3565 * guile/scm-type.c (gdbscm_type_range): Likewise.
3566 * m2-typeprint.c (m2_array): Likewise.
3567 (m2_is_long_set_of_type): Likewise.
3568 * m2-valprint.c (get_long_set_bounds): Likewise.
3569 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3570 * python/py-type.c (typy_range): Likewise.
3571 * rust-lang.c (rust_internal_print_type): Likewise.
3572 * type-stack.c (type_stack::follow_types): Likewise.
3573 * valarith.c (value_subscripted_rvalue): Likewise.
3574 * valops.c (value_cast): Likewise.
3575
509971ae
SM
35762020-07-12 Simon Marchi <simon.marchi@efficios.com>
3577
3578 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3579 callers to use the equivalent accessor methods.
3580
107406b7
SM
35812020-07-12 Simon Marchi <simon.marchi@efficios.com>
3582
3583 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3584 (struct type) <bit_stride>: New method.
3585 (TYPE_BIT_STRIDE): Remove.
3586 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3587
bb789949
SM
35882020-07-12 Simon Marchi <simon.marchi@efficios.com>
3589
3590 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3591 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3592 callers to use the equivalent accessor methods instead.
3593
39498edb
SM
35942020-07-12 Simon Marchi <simon.marchi@efficios.com>
3595
3596 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3597 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3598 callers to use the equivalent accessor methods instead.
3599
3b606f38
SM
36002020-07-12 Simon Marchi <simon.marchi@efficios.com>
3601
3602 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3603 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3604 to use dynamic_prop::kind.
3605
064d9cb9
SM
36062020-07-12 Simon Marchi <simon.marchi@efficios.com>
3607
3608 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3609 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3610 to get the bound property's kind and check against
3611 PROP_UNDEFINED.
3612
5537ddd0
SM
36132020-07-12 Simon Marchi <simon.marchi@efficios.com>
3614
3615 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3616 all callers to use type::range_bounds followed by
3617 dynamic_prop::{low,high}.
3618
8c2e4e06
SM
36192020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3620
3621 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3622 const_val, set_const_val, baton, set_locexpr, set_loclist,
3623 set_addr_offset, variant_parts, set_variant_parts,
3624 original_type, set_original_type>: New methods.
3625 <kind>: Rename to...
3626 <m_kind>: ... this. Update all users to use the new methods
3627 instead.
3628 <data>: Rename to...
3629 <m_data>: ... this. Update all users to use the new methods
3630 instead.
3631
7c6f2712
SM
36322020-07-12 Simon Marchi <simon.marchi@efficios.com>
3633
3634 * gdbtypes.c (get_discrete_bounds): Return failure if
3635 the range type's bounds are not both defined and constant
3636 values.
3637 (get_array_bounds): Update comment. Remove undefined bound check.
3638
599088e3
SM
36392020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3640
3641 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3642 the type::bounds method directly.
3643
c4dfcb36
SM
36442020-07-12 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3647 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3648 are used to set the range type's bounds to use set_bounds.
3649
0a278aa7
PW
36502020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3651
3652 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3653
cce20f10
PA
36542020-07-10 Pedro Alves <pedro@palves.net>
3655
3656 * gdbthread.h (inferior_ref): Define.
3657 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3658 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3659 * thread.c
3660 (scoped_restore_current_thread::restore):
3661 Adjust to gdb::ref_ptr.
3662 (scoped_restore_current_thread::~scoped_restore_current_thread):
3663 Remove manual decref handling.
3664 (scoped_restore_current_thread::scoped_restore_current_thread):
3665 Adjust to use
3666 inferior_ref::new_reference/thread_info_ref::new_reference.
3667 Incref the thread before calling get_frame_id instead of after.
3668 Let TARGET_CLOSE_ERROR propagate.
3669
6d7aa592
PA
36702020-07-10 Pedro Alves <pedro@palves.net>
3671
3672 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3673 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3674 NOT_AVAILABLE_ERROR.
3675 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3676 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3677
b3e3a4c1
SM
36782020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3679 Pedro Alves <pedro@palves.net>
3680
3681 PR gdb/26199
3682 * infrun.c (threads_are_resumed_pending_p): Delete.
3683 (do_target_wait): Remove threads_are_executing and
3684 threads_are_resumed_pending_p checks from the inferior_matches
3685 lambda. Update comments.
3686
d6cc5d98
PA
36872020-07-10 Pedro Alves <pedro@palves.net>
3688
3689 PR gdb/26199
3690 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3691 executing threads.
3692
7d3badc6
PA
36932020-07-10 Pedro Alves <pedro@palves.net>
3694
3695 PR gdb/26199
3696 * infrun.c (handle_no_resumed): Handle multiple targets.
3697
42bd97a6
PA
36982020-07-10 Pedro Alves <pedro@palves.net>
3699
3700 PR gdb/26199
3701 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3702 target_is_async_p.
3703
43667cc6
PA
37042020-07-10 Pedro Alves <pedro@palves.net>
3705
3706 PR gdb/26199
3707 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3708 threads, not all threads.
3709
96118d11
PA
37102020-07-10 Pedro Alves <pedro@palves.net>
3711
3712 PR gdb/26199
3713 * remote.c (remote_target::open_1): Pass remote target pointer as
3714 data to create_async_event_handler.
3715 (remote_async_inferior_event_handler): Mark async event handler
3716 before returning if the remote target still has either pending
3717 events or unacknowledged notifications.
3718
54904d81
JB
37192020-07-10 John Baldwin <jhb@FreeBSD.org>
3720
3721 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3722 declaration.
3723 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3724 function.
3725
f37e5866
JB
37262020-07-09 John Baldwin <jhb@FreeBSD.org>
3727
3728 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3729 inferior_ptid.
3730
fc238d4a
JB
37312020-07-09 John Baldwin <jhb@FreeBSD.org>
3732
3733 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3734 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3735 AT_FREEBSD_PS_STRINGS.
3736
6e2469ff
HD
37372020-07-08 Hannes Domani <ssbssa@yahoo.de>
3738
3739 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3740 of debugfile path on Windows.
3741
d1076c41
JB
37422020-07-08 John Baldwin <jhb@FreeBSD.org>
3743
3744 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3745 argument to 'data'.
3746
15f3b077
TT
37472020-07-08 Tom Tromey <tromey@adacore.com>
3748
3749 * ada-lang.c (ada_exception_message_1): Use read_memory.
3750
9fc501fd
AB
37512020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3752
3753 PR python/22748
3754 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3755 special handling for inline frames.
3756 * findvar.c (value_of_register_lazy): Skip inline frames when
3757 creating lazy register values.
3758 * frame.c (frame_id_computed_p): Delete definition.
3759 * frame.h (frame_id_computed_p): Delete declaration.
3760
64cb3757
AB
37612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3762
3763 * NEWS: Mention additions to Python API.
3764 * python/py-arch.c (archpy_register_groups): New function.
3765 (arch_object_methods): Add 'register_groups' method.
3766 * python/py-registers.c (reggroup_iterator_object): New struct.
3767 (reggroup_object): New struct.
3768 (gdbpy_new_reggroup): New function.
3769 (gdbpy_reggroup_to_string): New function.
3770 (gdbpy_reggroup_name): New function.
3771 (gdbpy_reggroup_iter): New function.
3772 (gdbpy_reggroup_iter_next): New function.
3773 (gdbpy_new_reggroup_iterator): New function
3774 (gdbpy_initialize_registers): Register new types.
3775 (reggroup_iterator_object_type): Define new Python type.
3776 (gdbpy_reggroup_getset): New static global.
3777 (reggroup_object_type): Define new Python type.
3778 * python/python-internal.h
3779
0f767f94
AB
37802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3781
3782 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3783 * python/py-arch.c (archpy_registers): New function.
3784 (arch_object_methods): Add 'registers' method.
3785 * python/py-registers.c: New file.
3786 * python/python-internal.h
3787 (gdbpy_new_register_descriptor_iterator): Declare.
3788 (gdbpy_initialize_registers): Declare.
3789 * python/python.c (do_start_initialization): Call
3790 gdbpy_initialize_registers.
3791 * NEWS: Mention additions to the Python API.
3792
87dbc774
AB
37932020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3794
3795 * NEWS: Mention new Python API method.
3796 * python/py-unwind.c (pending_framepy_architecture): New function.
3797 (pending_frame_object_methods): Add architecture method.
3798
3bc98c0c
AB
37992020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3800
3801 * gdbarch.c: Regenerate.
3802 * gdbarch.h: Regenerate.
3803 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3804 (gdbarch_data): Use internal_error for the case where
3805 deprecated_set_gdbarch_data was originally needed.
3806 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3807 and use passed in obstack.
3808 (libunwind_frame_set_descr): Should no longer get back NULL from
3809 gdbarch_data.
3810 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3811 type.
3812 * user-regs.c (user_regs_init): Update parameters, and use passed
3813 in obstack.
3814 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3815 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3816
d8cc8af6
TV
38172020-07-06 Tom de Vries <tdevries@suse.de>
3818
3819 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3820 End-Of-Sequence in lte_is_less_than.
3821 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3822 "gdb: Don't reorder line table entries too much when sorting".
3823
947f7597
TV
38242020-07-06 Tom de Vries <tdevries@suse.de>
3825
3826 PR tui/26205
3827 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3828
1e7c1b22
TV
38292020-07-05 Tom de Vries <tdevries@suse.de>
3830
3831 PR build/26187
3832 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3833 std::uncaught_exceptions instead of deprecated
3834 std::uncaught_exception.
3835
a36158ec
SM
38362020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3837
3838 * macroexp.h (macro_stringify): Return
3839 gdb::unique_xmalloc_ptr<char>.
3840 * macroexp.c (macro_stringify): Likewise.
3841 * macrotab.c (fixup_definition): Update.
3842
14d960c8
SM
38432020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3844
3845 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3846 (lex_one_token): Update.
3847 * macroexp.c (struct macro_buffer) <release>: Return
3848 gdb::unique_xmalloc_ptr<char>.
3849 (macro_stringify): Update.
3850 (macro_expand): Update.
3851 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3852 * macroexp.h (macro_expand_next): Likewise.
3853
211d5b1c
SM
38542020-07-02 Simon Marchi <simon.marchi@efficios.com>
3855
3856 * macroexp.h (macro_lookup_ftype): Remove.
3857 (macro_expand, macro_expand_once, macro_expand_next): Remove
3858 lookup function parameters, add scope parameter.
3859 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3860 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3861 * macroscope.h (standard_macro_lookup): Change parameter type
3862 to macro_scope.
3863 * macroscope.c (standard_macro_lookup): Likewise.
3864 * c-exp.y (lex_one_token): Update.
3865 * macrocmd.c (macro_expand_command): Likewise.
3866 (macro_expand_once_command): Likewise.
3867
b1a35af2
SM
38682020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3869
3870 * inf-loop.c (inferior_event_handler): Remove client_data param.
3871 * inf-loop.h (inferior_event_handler): Likewise.
3872 * infcmd.c (step_1): Adjust.
3873 * infrun.c (proceed): Adjust.
3874 (fetch_inferior_event): Remove client_data param.
3875 (infrun_async_inferior_event_handler): Adjust.
3876 * infrun.h (fetch_inferior_event): Remove `void *` param.
3877 * linux-nat.c (handle_target_event): Adjust.
3878 * record-btrace.c (record_btrace_handle_async_inferior_event):
3879 Adjust.
3880 * record-full.c (record_full_async_inferior_event_handler):
3881 Adjust.
3882 * remote.c (remote_async_inferior_event_handler): Adjust.
3883
1cdf9e33
TT
38842020-07-01 Tom Tromey <tom@tromey.com>
3885
3886 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3887 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3888
32c1e210
TT
38892020-07-01 Tom Tromey <tom@tromey.com>
3890
3891 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3892 tui_gen_win_info.
3893 (tui_win_info::make_window): Merge with
3894 tui_gen_win_info::make_window.
3895 (tui_win_info::make_visible): Move from tui_gen_win_info.
3896 * tui/tui-win.c (tui_win_info::max_width): Move from
3897 tui_gen_win_info.
3898 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3899 type.
3900 <window_factory>: Likewise.
3901 * tui/tui-layout.c (tui_win_info::resize): Move from
3902 tui_gen_win_info.
3903 (make_standard_window): Change return type.
3904 (get_locator_window, tui_get_window_by_name): Likewise.
3905 (tui_layout_window::apply): Remove a cast.
3906 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3907 (struct tui_win_info): Merge with tui_gen_win_info.
3908 (struct tui_gen_win_info): Remove.
3909
a30cb6da
TT
39102020-07-01 Tom Tromey <tom@tromey.com>
3911
3912 * tui/tui-stack.h (struct tui_locator_window): Derive from
3913 tui_win_info.
3914 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3915 <can_box>: New method.
3916
1eb2161f
TT
39172020-07-01 Tom Tromey <tom@tromey.com>
3918
3919 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3920
7134f2eb
TT
39212020-07-01 Tom Tromey <tom@tromey.com>
3922
3923 * tui/tui-regs.c (tui_data_window::display_registers_from)
3924 (tui_data_window::display_registers_from)
3925 (tui_data_window::first_data_item_displayed)
3926 (tui_data_window::delete_data_content_windows): Update.
3927 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3928 Remove.
3929 (tui_data_window::check_register_values): Update.
3930 (tui_data_item_window::rerender): Add parameters. Update.
3931 (tui_data_item_window::refresh_window): Remove.
3932 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3933 virtual.
3934 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3935 tui_gen_win_info.
3936 <refresh_window, max_height, min_height>: Remove.
3937 <rerender>: Add parameters.
3938 <x, y, visible>: New members.
3939 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3940 <m_item_width>: New member.
3941
22b7b041
TT
39422020-07-01 Tom Tromey <tom@tromey.com>
3943
3944 * tui/tui-regs.c (tui_data_window::show_register_group)
3945 (tui_data_window::check_register_values): Update.
3946 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3947 from item_no.
3948
c9753adb
TT
39492020-07-01 Tom Tromey <tom@tromey.com>
3950
3951 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3952 useless "if".
3953
9ab26b4a
TT
39542020-07-01 Tom Tromey <tom@tromey.com>
3955
3956 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3957 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3958
e555083f
TT
39592020-07-01 Tom Tromey <tom@tromey.com>
3960
3961 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3962 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3963 (struct tui_line_or_address): Move from tui-data.h.
3964 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3965 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3966 (tui_cmd_window, tui_source_window_base, tui_source_window)
3967 (tui_disasm_window): Don't declare.
3968 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3969 to tui-winsource.h.
3970 (SINGLE_KEY): Move to tui-stack.c.
3971
7a02bab7
TT
39722020-07-01 Tom Tromey <tom@tromey.com>
3973
3974 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3975 std::string.
3976 * tui/tui-regs.c (class tab_expansion_file): New.
3977 (tab_expansion_file::write): New method.
3978 (tui_register_format): Change return type. Use
3979 tab_expansion_file.
3980 (tui_get_register, tui_data_window::display_registers_from)
3981 (tui_data_item_window::rerender): Update.
3982 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3983 * tui/tui-io.c (tui_expand_tabs): Remove.
3984
ea68593b
TT
39852020-07-01 Tom Tromey <tom@tromey.com>
3986
3987 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3988
a8caed5d
FS
39892020-07-01 Fangrui Song <maskray@google.com>
3990
3991 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3992
9cdf9820
AKS
39932020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3994
3995 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3996 forms for DW_AT_associated and DW_AT_allocated attributes,
3997 which is already checked in function attr_to_dynamic_prop.
3998
a1520ad8
TT
39992020-06-30 Tom Tromey <tromey@adacore.com>
4000
4001 * dwarf2/read.c (quirk_rust_enum): Correctly call
4002 alloc_rust_variant for default-less enum.
4003
5ac58899
TT
40042020-06-30 Tom Tromey <tromey@adacore.com>
4005
4006 PR build/26183:
4007 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4008 gdb::to_string.
4009
19b187a9
SM
40102020-06-29 Simon Marchi <simon.marchi@efficios.com>
4011
4012 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4013 * gdbarch.h: Re-generate.
4014
cd4c4c07
TT
40152020-06-28 Tom Tromey <tom@tromey.com>
4016
4017 * command.h (cmd_types): Remove.
4018 (cmd_type): Don't declare.
4019 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4020 typedef.
4021 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4022 * cli/cli-decode.c (cmd_type): Remove.
4023
05779d57
PA
40242020-06-27 Pedro Alves <palves@redhat.com>
4025
4026 * fork-child.c (prefork_hook): Adjust.
4027 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4028 Delete.
4029 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4030 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4031 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4032 Remove declarations.
4033 (struct inferior) <set_tty, tty>: New methods.
4034 (struct inferior) <terminal>: Rename to ...
4035 (struct inferior) <m_terminal>: ... this and make private.
4036 * main.c (captured_main_1): Adjust.
4037 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4038 (mi_cmd_inferior_tty_show): Adjust.
4039 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4040 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4041
1776e3e5
NA
40422020-06-26 Nick Alcock <nick.alcock@oracle.com>
4043
4044 * configure.ac: Add --enable-libctf: handle --disable-static
4045 properly.
4046 * acinclude.m4: sinclude ../config/enable.m4.
4047 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4048 (LIBCTF): Substitute in.
4049 (CTF_DEPS): New, likewise.
4050 (CLIBS): libctf needs symbols from libbfd: move earlier.
4051 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4052 flags.
4053 * ctfread.c: Surround in ENABLE_LIBCTF.
4054 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4055 * configure: Regenerate.
4056 * config.in: Likewise.
4057
58373b80
SM
40582020-06-25 Simon Marchi <simon.marchi@efficios.com>
4059
4060 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4061
277474ee
SM
40622020-06-25 Simon Marchi <simon.marchi@efficios.com>
4063
4064 * inferior.h (struct inferior) <terminal>: Change type to
4065 gdb::unique_xmalloc_ptr<char>.
4066 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4067 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4068 field, adjust to unique pointer.
4069 (get_inferior_io_terminal): Adjust to unique pointer.
4070
6d74da72
AB
40712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4072
4073 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4074 registers, not just the known core set of registers.
4075
2e52d038
AB
40762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4077
4078 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4079 fflags, frm, and fcsr registers.
4080 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4081 restore groups.
4082 (riscv_tdesc_unknown_reg): New function.
4083 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4084 tdesc_use_registers.
4085 * riscv-tdep.h (struct gdbarch_tdep): Add
4086 unknown_csrs_first_regnum, unknown_csrs_count,
4087 duplicate_fflags_regnum, duplicate_frm_regnum, and
4088 duplicate_fcsr_regnum fields.
4089
be64fd07
AB
40902020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4091
4092 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4093 callback, use the callback (when not null) to help number unknown
4094 registers.
4095 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4096 (tdesc_use_registers): Add extra parameter to declaration.
4097
3b9fce96
AB
40982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4099
4100 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4101 in the file.
4102 (class riscv_pending_register_alias): Likewise.
4103 (riscv_register_feature::register_info): Change 'required_p' field
4104 to 'required', and change its type. Add 'check' member function.
4105 (riscv_register_feature::register_info::check): Define new member
4106 function.
4107 (riscv_xreg_feature): Change initialisation of 'required' field.
4108 (riscv_freg_feature): Likewise.
4109 (riscv_virtual_feature): Likewise.
4110 (riscv_csr_feature): Likewise.
4111 (riscv_check_tdesc_feature): Take extra parameter, the csr
4112 tdesc_feature, rewrite the function to use the new
4113 riscv_register_feature::register_info::check function.
4114 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4115
865bad26
AB
41162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4117
4118 * features/Makefile: Remove all references to the deleted files
4119 below.
4120 * features/riscv/32bit-csr.c: Deleted.
4121 * features/riscv/32bit-csr.xml: Deleted.
4122 * features/riscv/64bit-csr.c: Deleted.
4123 * features/riscv/64bit-csr.xml: Deleted.
4124 * features/riscv/rebuild-csr-xml.sh: Deleted.
4125
ed69cbc8
AB
41262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4127
4128 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4129 whitespace error for declaration of names member variable.
4130 (struct riscv_register_feature): Add new prefer_first_name member
4131 variable, and fix whitespace error in declaration of registers.
4132 (riscv_xreg_feature): Initialize prefer_first_name field.
4133 (riscv_freg_feature): Likewise.
4134 (riscv_virtual_feature): Likewise.
4135 (riscv_csr_feature): Likewise.
4136 (riscv_register_name): Expand on comments. Remove register name
4137 modifications for CSR and virtual registers.
4138
4445e8f5
AB
41392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4140
4141 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4142 errors.
4143
767a879e
AB
41442020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4145
4146 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4147 riscv-opc.h.
4148 (class riscv_pending_register_alias): New class.
4149 (riscv_check_tdesc_feature): Take vector of pending aliases and
4150 populate it as appropriate.
4151 (riscv_setup_register_aliases): Delete.
4152 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4153 to riscv_check_tdesc_feature in all cases. Use the vector to
4154 create the register aliases.
4155
bb6e55f3
RO
41562020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4157
4158 * sol2-tdep.c (sol2_static_transform_name): Remove.
4159 (sol2_init_abi): Don't register it.
4160 * gdbarch.sh (static_transform_name): Remove.
4161 * gdbarch.c, gdbarch.h: Regenerate.
4162
4163 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4164 gdbarch_static_transform_name.
4165 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4166 * stabsread.c (define_symbol) <'X'>: Remove.
4167 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4168 handling.
4169 <'V'>: Likewise.
4170 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4171 <'S'>: Remove call to gdbarch_static_transform_name.
4172
c6d36836
RO
41732020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4174
4175 * procfs.c (procfs_pre_trace): New function.
4176 (procfs_target::create_inferior): Pass it to fork_inferior.
4177
a7e6196b
RO
41782020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4179
4180 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4181 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4182 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4183 sol2-tdep.o, sparc-sol2-tdep.o.
4184 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4185 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4186 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4187 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4188
d412e696
RO
41892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4190
4191 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4192 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4193 Call sol2_init_abi.
4194 Remove calls to set_gdbarch_skip_solib_resolver,
4195 set_gdbarch_core_pid_to_str.
4196 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4197 (i386_sol2_static_transform_name): Remove.
4198 (i386_sol2_init_abi): Call sol2_init_abi.
4199 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4200 set_gdbarch_static_transform_name,
4201 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4202 Use sol2_sigtramp_p.
4203 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4204 (sol2_sigtramp_p): New function.
4205 (sol2_static_transform_name): New function.
4206 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4207 (sol2_init_abi): New function.
4208 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4209 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4210 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4211 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4212 (sparc_sol2_static_transform_name): Remove.
4213 (sparc32_sol2_init_abi): Call sol2_init_abi.
4214 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4215 set_gdbarch_static_transform_name,
4216 set_gdbarch_skip_solib_resolver,
4217 set_gdbarch_core_pid_to_str.
4218 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4219 (sparc_sol2_static_transform_name): Remove
4220 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4221 call sol2_sigtramp_p.
4222 (sparc64_sol2_init_abi): Call sol2_init_abi.
4223 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4224 set_gdbarch_static_transform_name,
4225 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4226
a8654e7d
PW
42272020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4228
4229 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4230 * exec.c (validate_exec_file): If from_tty, set both
4231 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4232 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4233 and from_tty, unconditionally ask a confirmation.
4234
caa7fd04
AB
42352020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4236
4237 * target-descriptions.c (tdesc_architecture_name): Protect against
4238 NULL pointer dereference.
4239 (maint_print_xml_tdesc_cmd): New function.
4240 (_initialize_target_descriptions): Register new 'maint print
4241 xml-tdesc' command and give it the filename completer.
4242 * NEWS: Mention new 'maint print xml-tdesc' command.
4243
fbf42f4e
AB
42442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4245
4246 * target-descriptions.c (class tdesc_compatible_info): New class.
4247 (struct target_desc): Change type of compatible vector.
4248 (tdesc_compatible_p): Update for change in type of
4249 target_desc::compatible.
4250 (tdesc_compatible_info_list): New function.
4251 (tdesc_compatible_info_arch_name): New function.
4252 (tdesc_add_compatible): Update for change in type of
4253 target_desc::compatible.
4254 (print_c_tdesc::visit_pre): Likewise.
4255
20821f4e
AB
42562020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4257
4258 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4259 whitespace to underscore.
4260 (maint_print_c_tdesc_cmd): Use fake filename for target
4261 descriptions that came from the target.
4262 (_initialize_target_descriptions): Add filename command completion
4263 for 'maint print c-tdesc'.
4264
1fb5ee62
SM
42652020-06-23 Simon Marchi <simon.marchi@efficios.com>
4266
4267 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4268 lines.
4269
fc3ecb3e
SM
42702020-06-23 Simon Marchi <simon.marchi@efficios.com>
4271
4272 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4273 lines.
4274 (dwarf2_find_location_expression): Likewise.
4275 (call_site_parameter_matches): Likewise.
4276 (dwarf2_compile_expr_to_ax): Likewise.
4277 (disassemble_dwarf_expression): Likewise.
4278 (loclist_describe_location): Likewise.
4279
236ef034
PA
42802020-06-23 Pedro Alves <palves@redhat.com>
4281
4282 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4283 progspace-and-thread.h. Include scoped-mock-context.h instead.
4284 (register_to_value_test): Use scoped_mock_context.
4285 * regcache.c: Include "scoped-mock-context.h".
4286 (cooked_read_test): Don't error out if a target is already pushed.
4287 Use scoped_mock_context. Adjust.
4288 * scoped-mock-context.h: New file.
4289
39e7ecca
AB
42902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4291
4292 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4293 initializer.
4294 (ada_language::is_string_type_p): New member function.
4295 * c-lang.c (c_language_data): Delete la_is_string_type_p
4296 initializer.
4297 (cplus_language_data): Likewise.
4298 (asm_language_data): Likewise.
4299 (minimal_language_data): Likewise.
4300 * d-lang.c (d_language_data): Likewise.
4301 * f-lang.c (f_is_string_type_p): Delete function, implementation
4302 moved to f_language::is_string_type_p.
4303 (f_language_data): Delete la_is_string_type_p initializer.
4304 (f_language::is_string_type_p): New member function,
4305 implementation from f_is_string_type_p.
4306 * go-lang.c (go_is_string_type_p): Delete function, implementation
4307 moved to go_language::is_string_type_p.
4308 (go_language_data): Delete la_is_string_type_p initializer.
4309 (go_language::is_string_type_p): New member function,
4310 implementation from go_is_string_type_p.
4311 * language.c (language_defn::is_string_type_p): Define new member
4312 function.
4313 (default_is_string_type_p): Make static, add comment copied from
4314 header file.
4315 (unknown_language_data): Delete la_is_string_type_p initializer.
4316 (unknown_language::is_string_type_p): New member function.
4317 (auto_language_data): Delete la_is_string_type_p initializer.
4318 (auto_language::is_string_type_p): New member function.
4319 * language.h (language_data): Delete la_is_string_type_p field.
4320 (language_defn::is_string_type_p): Declare new function.
4321 (default_is_string_type_p): Delete desclaration, move comment to
4322 definition.
4323 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4324 moved to m2_language::is_string_type_p.
4325 (m2_language_data): Delete la_is_string_type_p initializer.
4326 (m2_language::is_string_type_p): New member function,
4327 implementation from m2_is_string_type_p.
4328 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4329 initializer.
4330 * opencl-lang.c (opencl_language_data): Likewise.
4331 * p-lang.c (pascal_is_string_type_p): Delete function,
4332 implementation moved to pascal_language::is_string_type_p.
4333 (pascal_language_data): Delete la_is_string_type_p initializer.
4334 (pascal_language::is_string_type_p): New member function,
4335 implementation from pascal_is_string_type_p.
4336 * rust-lang.c (rust_is_string_type_p): Delete function,
4337 implementation moved to rust_language::is_string_type_p.
4338 (rust_language_data): Delete la_is_string_type_p initializer.
4339 (rust_language::is_string_type_p): New member function,
4340 implementation from rust_is_string_type_p.
4341 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4342 is_string_type_p.
4343
4ffc13fb
AB
43442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4345
4346 * ada-lang.c (ada_language_data): Delete la_print_typedef
4347 initializer.
4348 (ada_language::print_typedef): New member function.
4349 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4350 (cplus_language_data): Likewise.
4351 (asm_language_data): Likewise.
4352 (minimal_language_data): Likewise.
4353 * d-lang.c (d_language_data): Likewise.
4354 * f-lang.c (f_language_data): Likewise.
4355 (f_language::print_typedef): New member function.
4356 * go-lang.c (go_language_data): Delete la_print_typedef
4357 initializer.
4358 * language.c (language_defn::print_typedef): Define member
4359 function.
4360 (unknown_language_data): Delete la_print_typedef initializer.
4361 (unknown_language::print_typedef): New member function.
4362 (auto_language_data): Delete la_print_typedef initializer.
4363 (auto_language::print_typedef): New member function.
4364 * language.h (language_data): Delete la_print_typedef field.
4365 (language_defn::print_typedef): Declare new member function.
4366 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4367 (default_print_typedef): Delete declaration.
4368 * m2-lang.c (m2_language_data): Delete la_print_typedef
4369 initializer.
4370 (m2_language::print_typedef): New member function.
4371 * objc-lang.c (objc_language_data): Delete la_print_typedef
4372 initializer.
4373 * opencl-lang.c (opencl_language_data): Likewise.
4374 * p-lang.c (pascal_language_data): Likewise.
4375 (pascal_language::print_typedef): New member function.
4376 * rust-lang.c (rust_print_typedef): Delete function,
4377 implementation moved to rust_language::print_typedef.
4378 (rust_language): Delete la_print_typedef initializer.
4379 (rust_language::print_typedef): New member function,
4380 implementation from rust_print_typedef.
4381 * typeprint.c (default_print_typedef): Delete.
4382
d711ee67
AB
43832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4384
4385 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4386 (ada_language::printstr): New member function.
4387 * c-lang.c (c_language_data): Delete la_printstr initializer.
4388 (cplus_language_data): Likewise.
4389 (asm_language_data): Likewise.
4390 (minimal_language_data): Likewise.
4391 * d-lang.c (d_language_data): Likewise.
4392 * f-lang.c (f_printstr): Rename to f_language::printstr.
4393 (f_language_data): Delete la_printstr initializer.
4394 (f_language::printstr): New member function, implementation from
4395 f_printstr.
4396 * go-lang.c (go_language_data): Delete la_printstr initializer.
4397 * language.c (language_defn::printstr): Define new member
4398 function.
4399 (unk_lang_printstr): Delete.
4400 (unknown_language_data): Delete la_printstr initializer.
4401 (unknown_language::printstr): New member function.
4402 (auto_language_data): Delete la_printstr initializer.
4403 (auto_language::printstr): New member function.
4404 * language.h (language_data): Delete la_printstr field.
4405 (language_defn::printstr): Declare new member function.
4406 (LA_PRINT_STRING): Update call to printstr.
4407 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4408 (m2_language_data): Delete la_printstr initializer.
4409 (m2_language::printstr): New member function, implementation from
4410 m2_printstr.
4411 * objc-lang.c (objc_language_data): Delete la_printstr
4412 initializer.
4413 * opencl-lang.c (opencl_language_data): Likewise.
4414 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4415 (pascal_language_data): Delete la_printstr initializer.
4416 (pascal_language::printstr): New member function, implementation
4417 from pascal_printstr.
4418 * p-lang.h (pascal_printstr): Delete declaration.
4419 * rust-lang.c (rust_printstr): Update header comment.
4420 (rust_language_data): Delete la_printstr initializer.
4421 (rust_language::printstr): New member function.
4422
52b50f2c
AB
44232020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4424
4425 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4426 (ada_language::printchar): New member function.
4427 * c-lang.c (c_language_data): Delete la_printchar initializer.
4428 (cplus_language_data): Likewise.
4429 (asm_language_data): Likewise.
4430 (minimal_language_data): Likewise.
4431 * d-lang.c (d_language_data): Likewise.
4432 * f-lang.c (f_printchar): Rename to f_language::printchar.
4433 (f_language_data): Delete la_printchar initializer.
4434 (f_language::printchar): New member function, implementation from
4435 f_printchar.
4436 * go-lang.c (go_language_data): Delete la_printchar initializer.
4437 * language.c (unk_lang_printchar): Delete.
4438 (language_defn::printchar): Define new member function.
4439 (unknown_language_data): Delete la_printchar initializer.
4440 (unknown_language::printchar): New member function.
4441 (auto_language_data): Delete la_printchar initializer.
4442 (auto_language::printchar): New member function.
4443 * language.h (language_data): Delete la_printchar field.
4444 (language_defn::printchar): Declare new member function.
4445 (LA_PRINT_CHAR): Update call to printchar.
4446 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4447 (m2_language::printchar): New member function.
4448 * objc-lang.c (objc_language_data): Delete la_printchar
4449 initializer.
4450 * opencl-lang.c (opencl_language_data): Likewise.
4451 * p-lang.c (pascal_language_data): Delete la_printchar
4452 initializer.
4453 (pascal_language::printchar): New member function.
4454 * rust-lang.c (rust_printchar): Rename to
4455 rust_language::printchar.
4456 (rust_language_data): Delete la_printchar initializer.
4457 (rust_language::printchar): New member function, implementation
4458 from rust_printchar.
4459
ec8cec5b
AB
44602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4461
4462 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4463 (ada_language_data): Delete la_emitchar initializer.
4464 (ada_language::emitchar): New member function, implementation from
4465 emit_char.
4466 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4467 (cplus_language_data): Likewise.
4468 (asm_language_data): Likewise.
4469 (minimal_language_data): Likewise.
4470 * d-lang.c (d_language_data): Likewise.
4471 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4472 (f_language_data): Delete la_emitchar initializer.
4473 (f_language::emitchar): New member function, implementation from
4474 f_emit_char.
4475 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4476 * language.c (unk_lang_emit_char): Delete.
4477 (language_defn::emitchar): New member function definition.
4478 (unknown_language_data): Delete la_emitchar initializer.
4479 (unknown_language::emitchar): New member function.
4480 (auto_language_data): Delete la_emitchar initializer.
4481 (auto_language::emitchar): New member function.
4482 * language.h (language_data): Delete la_emitchar field.
4483 (language_defn::emitchar): New member field declaration.
4484 (LA_EMIT_CHAR): Update call to emitchar.
4485 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4486 (m2_language_data): Delete la_emitchar initializer.
4487 (m2_language::emitchar): New member function, implementation from
4488 m2_emit_char.
4489 * objc-lang.c (objc_language_data): Delete la_emitchar
4490 initializer.
4491 * opencl-lang.c (opencl_language_data): Likewise.
4492 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4493 (pascal_language_data): Delete la_emitchar initializer.
4494 (pascal_language::emitchar): New member function, implementation
4495 from pascal_emit_char.
4496 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4497 (rust_language_data): Delete la_emitchar initializer.
4498 (rust_language::emitchar): New member function, implementation
4499 from rust_emitchar.
4500
1bf9c363
AB
45012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4502
4503 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4504 (ada_language_data): Delete la_post_parser initializer.
4505 (ada_language::post_parser): New member function.
4506 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4507 (cplus_language_data): Likewise.
4508 (asm_language_data): Likewise.
4509 (minimal_language_data): Likewise.
4510 * d-lang.c (d_language_data): Likewise.
4511 * f-lang.c (f_language_data): Likewise.
4512 * go-lang.c (go_language_data): Likewise.
4513 * language.c (unknown_language_data): Likewise.
4514 (auto_language_data): Likewise.
4515 * language.h (language_data): Delete la_post_parser field.
4516 (language_defn::post_parser): New member function.
4517 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4518 * objc-lang.c (objc_language_data): Likewise.
4519 * opencl-lang.c (opencl_language_data): Likewise.
4520 * p-lang.c (pascal_language_data): Likewise.
4521 * parse.c (parse_exp_in_context): Update call to post_parser.
4522 (null_post_parser): Delete definition.
4523 * parser-defs.h (null_post_parser): Delete declaration.
4524 * rust-lang.c (rust_language_data): Delete la_post_parser
4525 initializer.
4526
87afa652
AB
45272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4528
4529 * ada-lang.c (parse): Rename to ada_language::parser.
4530 (ada_language_data): Delete la_parser initializer.
4531 (ada_language::parser): New member function, implementation from
4532 parse.
4533 * c-lang.c (c_language_data): Delete la_parser initializer.
4534 (cplus_language_data): Likewise.
4535 (asm_language_data): Likewise.
4536 (minimal_language_data): Likewise.
4537 * d-lang.c (d_language_data): Likewise.
4538 (d_language::parser): New member function.
4539 * f-lang.c (f_language_data): Delete la_parser initializer.
4540 (f_language::parser): New member function.
4541 * go-lang.c (go_language_data): Delete la_parser initializer.
4542 (go_language::parser): New member function.
4543 * language.c (unk_lang_parser): Delete.
4544 (language_defn::parser): Define new member function.
4545 (unknown_language_data): Delete la_parser initializer.
4546 (unknown_language::parser): New member function.
4547 (auto_language_data): Delete la_parser initializer.
4548 (auto_language::parser): New member function.
4549 * language.h (language_data): Delete la_parser field.
4550 (language_defn::parser): Declare new member function.
4551 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4552 (m2_language::parser): New member function.
4553 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4554 * opencl-lang.c (opencl_language_data): Likewise.
4555 * p-lang.c (pascal_language_data): Likewise.
4556 (pascal_language::parser): New member function.
4557 * parse.c (parse_exp_in_context): Update call to parser.
4558 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4559 (rust_language::parser): New member function.
4560
37825800
AB
45612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4562
4563 * top.c (print_gdb_configuration): Print --with-python-libdir
4564 configuration value.
4565
5b860c93
PW
45662020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4567
4568 * NEWS: Mention change to the alias command.
4569
cf00cd6f
PW
45702020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4571
4572 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4573 (alias_command_completer)
4574 (make_alias_options_def_group): New functions.
4575 (alias_opts, alias_option_defs): New struct and array.
4576 (alias_usage_error): Update usage.
4577 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4578 Use option framework.
4579 (_initialize_cli_cmds): Update alias command help.
4580 Update aliases command help.
4581 (show_user):
4582 Add NULL for new default_args lookup_cmd argument.
4583 (valid_command_p): Rename to validate_aliased_command.
4584 Add NULL for new default_args lookup_cmd argument. Verify that the
4585 aliased_command has no default args.
4586 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4587 (lookup_cmd_1, lookup_cmd): New argument default_args.
4588 (add_alias_cmd):
4589 Add NULL for new default_args lookup_cmd argument.
4590 (print_help_for_command): Show default args under the layout
4591 alias some_alias = some_aliased_cmd some_alias_default_arg.
4592 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4593 xfree default_args in destructor.
4594 * cli/cli-script.c (process_next_line, do_define_command):
4595 Add NULL for new default_args lookup_cmd argument.
4596 * command.h: Declare new default_args argument in lookup_cmd
4597 and lookup_cmd_1.
4598 * completer.c (complete_line_internal_1):
4599 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4600 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4601 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4602 Likewise.
4603 * infcmd.c (_initialize_infcmd): Likewise.
4604 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4605 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4606 * python/py-param.c (add_setshow_generic): Likewise.
4607 * remote.c (_initialize_remote): Likewise.
4608 * top.c (execute_command): Prepend default_args if command has some.
4609 (set_verbose):
4610 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4611 * tracepoint.c (validate_actionline, encode_actions_1):
4612 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4613
bd920864
TBA
46142020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4615
4616 * jit.c (jit_read_descriptor): Use bool as the return type.
4617 (jit_breakpoint_re_set_internal): Use bool as the return type.
4618 Invert the return value logic; return true if the jit breakpoint
4619 has been successfully initialized.
4620 (jit_inferior_init): Update the call to
4621 jit_breakpoint_re_set_internal.
4622
f8098322
PA
46232020-06-22 Pedro Alves <palves@redhat.com>
4624
4625 PR gdb/25939
4626 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4627 Use the current inferior instead. Don't return
4628 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4629 wait again.
4630 * sol-thread.c (sol_thread_target::wait): Don't reference
4631 inferior_ptid.
4632 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4633 (sol_update_thread_list_callback): Use the current inferior's pid
4634 instead of inferior_ptid.
4635
196535a6
RO
46362020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4637
4638 * procfs.c: Cleanup many comments.
4639
4640 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4641 (AFTER_WATCHFLAG): Replace by value.
4642
4643 (MAIN_PROC_NAME_FORMAT): Inline ...
4644 (create_procinfo): ... here.
4645
4646 (procfs_debug_inferior): Remove SYS_exec handling.
4647 (syscall_is_exec): Likewise.
4648 (procfs_set_exec_trap): Likewise.
4649
4650 (syscall_is_lwp_exit): Inline in callers.
4651 (syscall_is_exit): Likewise.
4652 (syscall_is_exec): Likewise.
4653 (syscall_is_lwp_create): Likewise.
4654
4655 (invalidate_cache): Remove #if 0 code.
4656
4657 (make_signal_thread_runnable): Remove.
4658 (procfs_target::resume): Remove #if 0 code.
4659
cf6f3e86
RO
46602020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4661
4662 PR gdb/25939
4663 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4664 call ...
4665 (procfs_target::create_inferior): ... here.
4666
48e9cc84
PW
46672020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4668
4669 * exec.c (validate_exec_file): Ensure the build-id is up to
4670 date by calling reopen_exec_file (that checks file timestamp
4671 to decide to re-read the file).
4672
3922b302
PA
46732020-06-18 Pedro Alves <palves@redhat.com>
4674
4675 PR gdb/25412
4676 * gdbthread.h (delete_thread, delete_thread_silent)
4677 (find_thread_ptid): Update comments.
4678 * thread.c (current_thread_): New global.
4679 (is_current_thread): Move higher, and reimplement.
4680 (inferior_thread): Reimplement.
4681 (set_thread_exited): Use bool. Add assertions.
4682 (add_thread_silent): Simplify thread-reuse handling by always
4683 calling delete_thread.
4684 (delete_thread): Remove intro comment.
4685 (find_thread_ptid): Skip exited threads.
4686 (switch_to_thread_no_regs): Write to current_thread_.
4687 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4688 INFERIOR_PTID. Clear current_thread_.
4689
6dbdab44
PA
46902020-06-18 Pedro Alves <palves@redhat.com>
4691
4692 * aix-thread.c (pd_update): Use switch_to_thread.
4693
2da4b788
PA
46942020-06-18 Pedro Alves <palves@redhat.com>
4695
4696 * ravenscar-thread.c (ravenscar_thread_target): Update.
4697 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4698 (ravenscar_thread_target::add_active_thread): ... this. Don't
4699 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4700 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4701
50838d1b
PA
47022020-06-18 Pedro Alves <palves@redhat.com>
4703
4704 * nat/windows-nat.c (current_windows_thread): Remove.
4705 * nat/windows-nat.h (current_windows_thread): Remove.
4706 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4707 Adjust.
4708 (display_selectors): Adjust to fetch the current
4709 windows_thread_info based on inferior_ptid.
4710 (fake_create_process): No longer write to current_windows_thread.
4711 (windows_nat_target::get_windows_debug_event):
4712 Don't set inferior_ptid or current_windows_thread.
4713 (windows_nat_target::wait): Adjust to not rely on
4714 current_windows_thread.
4715 (do_initial_windows_stuff): Now a method of windows_nat_target.
4716 Switch to the last_ptid thread.
4717 (windows_nat_target::attach): Adjust.
4718 (windows_nat_target::detach): Use switch_to_no_thread instead of
4719 writing to inferior_ptid directly.
4720 (windows_nat_target::create_inferior): Adjust.
4721
31ce04e9
PA
47222020-06-18 Pedro Alves <palves@redhat.com>
4723
4724 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4725
1ee1a363
PA
47262020-06-18 Pedro Alves <palves@redhat.com>
4727
4728 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4729 after creating it, instead of writing to inferior_ptid. Don't
4730 write to inferior_ptid.
4731
6d350754
PA
47322020-06-18 Pedro Alves <palves@redhat.com>
4733
4734 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4735
5d971d48
PA
47362020-06-18 Pedro Alves <palves@redhat.com>
4737
4738 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4739 it, instead of writing to inferior_ptid.
4740
86e57d1b
PA
47412020-06-18 Pedro Alves <palves@redhat.com>
4742
4743 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4744 to inferior_ptid.
4745
f2e1c129
PA
47462020-06-18 Pedro Alves <palves@redhat.com>
4747
4748 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4749 instead of writing to inferior_ptid directly.
4750
60db1b85
PA
47512020-06-18 Pedro Alves <palves@redhat.com>
4752
4753 * corelow.c (core_target::close): Use switch_to_no_thread instead
4754 of writing to inferior_ptid directly.
4755 (add_to_thread_list, core_target_open): Use switch_to_thread
4756 instead of writing to inferior_ptid directly.
4757
fe7d6a8d
PA
47582020-06-18 Pedro Alves <palves@redhat.com>
4759
4760 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4761 inferior_ptid.
4762 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4763 inferior_ptid.
4764 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4765 inferior_ptid directly.
4766 (darwin_nat_target::init_thread_list): Switch to thread, instead
4767 of writing to inferior_ptid.
4768 (darwin_nat_target::attach): Don't write to inferior_ptid.
4769 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4770
975f8708
PA
47712020-06-18 Pedro Alves <palves@redhat.com>
4772
4773 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4774 thread.
4775 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4776 Instead use switch_to_thread.
4777 (gnu_nat_target::detach): Use switch_to_no_thread
4778 instead of writing to inferior_ptid directly. Used passed-in
4779 inferior instead of looking up the inferior by pid.
4780
1a204730
PA
47812020-06-18 Pedro Alves <palves@redhat.com>
4782
4783 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4784 inferior_ptid.
4785
ebe84f23
PA
47862020-06-18 Pedro Alves <palves@redhat.com>
4787
4788 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4789 inferior_ptid.
4790 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4791 thread.
4792 (nto_procfs_target::detach): Avoid referencing
4793 inferior_ptid. Use switch_to_no_thread instead of writing to
4794 inferior_ptid directly.
4795 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4796 instead of writing to inferior_ptid directly.
4797 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4798 to thread.
4799
191f02e5
PA
48002020-06-18 Pedro Alves <palves@redhat.com>
4801
4802 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4803 after creating it, instead of writing to inferior_ptid.
4804 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4805 to inferior_ptid directly.
4806 (gdbsim_target::wait): Don't write to inferior_ptid.
4807
0ac55310
PA
48082020-06-18 Pedro Alves <palves@redhat.com>
4809
4810 * remote.c (remote_target::remote_notice_new_inferior): Use
4811 switch_to_thread instead of writing to inferior_ptid directly.
4812 (remote_target::add_current_inferior_and_thread): Use
4813 switch_to_no_thread instead of writing to inferior_ptid directly.
4814 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4815 and switch_to_thread instead of using set_current_inferior or
4816 writing to inferior_ptid directly.
4817
5233f39b
PA
48182020-06-18 Pedro Alves <palves@redhat.com>
4819
4820 * tracectf.c (ctf_target_open): Switch to added thread instead of
4821 writing to inferior_ptid directly.
4822 (ctf_target::close): Use switch_to_no_thread instead of writing to
4823 inferior_ptid directly.
4824
087e161b
PA
48252020-06-18 Pedro Alves <palves@redhat.com>
4826
4827 * tracefile-tfile.c (tfile_target_open): Don't write to
4828 inferior_ptid directly, instead switch to added thread.
4829 (tfile_target::close): Use switch_to_no_thread instead of writing
4830 to inferior_ptid directly.
4831
7fb43e53
PA
48322020-06-18 Pedro Alves <palves@redhat.com>
4833
4834 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4835 (procfs_target::detach): Use switch_to_no_thread
4836 instead of writing to inferior_ptid directly.
4837 (do_attach): Change return type to void. Switch to the added
4838 thread.
4839 (procfs_target::create_inferior): Switch to the added thread.
4840 (procfs_do_thread_registers): Don't write to inferior_ptid.
4841
18493a00
PA
48422020-06-18 Pedro Alves <palves@redhat.com>
4843
4844 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4845 of writing to inferior_ptid.
4846 (scoped_restore_exited_inferior): Delete.
4847 (handle_vfork_child_exec_or_exit): Simplify using
4848 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4849 instead of writing to inferior_ptid.
4850 (THREAD_STOPPED_BY): Delete.
4851 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4852 (thread_stopped_by_hw_breakpoint): Delete.
4853 (save_waitstatus): Use
4854 scoped_restore_current_thread+switch_to_thread, and call
4855 target_stopped_by_watchpoint instead of
4856 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4857 instead of thread_stopped_by_sw_breakpoint, and
4858 target_stopped_by_hw_breakpoint instead of
4859 thread_stopped_by_hw_breakpoint.
4860 (handle_inferior_event)
4861 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4862 inferior_ptid directly, nor
4863 set_current_inferior/set_current_program_space. Use
4864 switch_to_thread / switch_to_inferior_no_thread instead.
4865
a0776b13
PA
48662020-06-18 Pedro Alves <palves@redhat.com>
4867
4868 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4869 instead of writing to inferior_ptid.
4870
6155c136
PA
48712020-06-18 Pedro Alves <palves@redhat.com>
4872
4873 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4874 added thread.
4875 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4876 to the added thread.
4877 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4878 instead of writing to inferior_ptid.
4879
c5316fc6
PA
48802020-06-18 Pedro Alves <palves@redhat.com>
4881
4882 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4883 (register_to_value_test): Mock a program_space too. Heap-allocate
4884 the address space. Don't write to inferior_ptid. Use
4885 switch_to_thread instead.
4886
8df01799
PA
48872020-06-18 Pedro Alves <palves@redhat.com>
4888
4889 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4890 Delete.
4891 (find_signalled_thread()): New, factored out from
4892 linux_make_corefile_notes and adjusted to handle exited threads.
4893 (linux_make_corefile_notes): Adjust to use the new
4894 find_signalled_thread.
4895
41792d68
PA
48962020-06-18 Pedro Alves <palves@redhat.com>
4897
4898 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4899 of saving/restoring inferior_ptid.
4900
612f258a
TT
49012020-06-17 Tom Tromey <tom@tromey.com>
4902
4903 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4904 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4905 declare.
4906 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4907
efb763a5
SM
49082020-06-15 Simon Marchi <simon.marchi@efficios.com>
4909
4910 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4911 of partial symtabs.
4912
2951f6c0
SM
49132020-06-17 Simon Marchi <simon.marchi@efficios.com>
4914
4915 * regformats/reg-arm.dat: Remove.
4916 * regformats/reg-bfin.dat: Remove.
4917 * regformats/reg-cris.dat: Remove.
4918 * regformats/reg-crisv32.dat: Remove.
4919 * regformats/reg-m32r.dat: Remove.
4920 * regformats/reg-tilegx.dat: Remove.
4921 * regformats/reg-tilegx32.dat: Remove.
4922
7d458ea5
SM
49232020-06-17 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * features/Makefile (WHICH): Remove arm files.
4926 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4927 * regformats/arm/arm-with-neon.dat: Remove.
4928 * regformats/arm/arm-with-vfpv2.dat: Remove.
4929 * regformats/arm/arm-with-vfpv3.dat: Remove.
4930
3af96c0d
SM
49312020-06-17 Simon Marchi <simon.marchi@efficios.com>
4932
4933 * features/Makefile (XMLTOC): Remove rx.xml.
4934
b25e22fd
PA
49352020-06-17 Pedro Alves <palves@redhat.com>
4936
4937 * gdbthread.h (thread_control_state) <trap_expected> Update
4938 comments.
4939
a78a19b1
AB
49402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4941
4942 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4943 ada_language::lookup_symbol_nonlocal.
4944 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4945 (ada_language::lookup_symbol_nonlocal): New member function,
4946 implementation from ada_lookup_symbol_nonlocal.
4947 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4948 initializer.
4949 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4950 initializer.
4951 (cplus_language::lookup_symbol_nonlocal): New member function.
4952 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4953 (minimal_language_data) Likewise.
4954 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4955 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4956 initializer.
4957 (d_language::lookup_symbol_nonlocal): New member function.
4958 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4959 initializer.
4960 (f_language::lookup_symbol_nonlocal): New member function.
4961 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4962 initializer.
4963 * language.c (unknown_language_data): Likewise.
4964 (auto_language_data): Likewise.
4965 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4966 field.
4967 (language_defn::lookup_symbol_nonlocal): New member function.
4968 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4969 initializer.
4970 * objc-lang.c (objc_language_data): Likewise.
4971 * opencl-lang.c (opencl_language_data): Likewise.
4972 * p-lang.c (pascal_language_data): Likewise.
4973 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4974 rust_language::lookup_symbol_nonlocal.
4975 (rust_language_data): Delete la_lookup_symbol_nonlocal
4976 initializer.
4977 (rust_language::lookup_symbol_nonlocal): New member function,
4978 implementation from rust_lookup_symbol_nonlocal.
4979 * symtab.c (lookup_symbol_aux): Update call to
4980 lookup_symbol_nonlocal.
4981 (basic_lookup_symbol_nonlocal): Rename to...
4982 (language_defn::lookup_symbol_nonlocal): ...this, and update
4983 header comment. Remove language_defn parameter, and replace with
4984 uses of `this'.
4985 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4986
ebe2334e
AB
49872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4988
4989 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4990 initializer.
4991 (ada_language::value_print_inner): New member function.
4992 * c-lang.c (c_language_data): Delete la_value_print_inner
4993 initializer.
4994 (cplus_language_data): Likewise.
4995 (asm_language_data): Likewise.
4996 (minimal_language_data): Likewise.
4997 * d-lang.c (d_language_data): Likewise.
4998 (d_language::value_print_inner): New member function.
4999 * f-lang.c (f_language_data): Delete la_value_print_inner
5000 initializer.
5001 (f_language::value_print_inner): New member function.
5002 * f-lang.h (f_value_print_innner): Rename to...
5003 (f_value_print_inner): ...this (note spelling of 'inner').
5004 * f-valprint.c (f_value_print_innner): Rename to...
5005 (f_value_print_inner): ...this (note spelling of 'inner').
5006 * go-lang.c (go_language_data): Delete la_value_print_inner
5007 initializer.
5008 (go_language::value_print_inner): New member function.
5009 * language.c (language_defn::value_print_inner): Define new member
5010 function.
5011 (unk_lang_value_print_inner): Delete.
5012 (unknown_language_data): Delete la_value_print_inner initializer.
5013 (unknown_language::value_print_inner): New member function.
5014 (auto_language_data): Delete la_value_print_inner initializer.
5015 (auto_language::value_print_inner): New member function.
5016 * language.h (language_data): Delete la_value_print_inner field.
5017 (language_defn::value_print_inner): Delcare new member function.
5018 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5019 initializer.
5020 (m2_language::value_print_inner): New member function.
5021 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5022 initializer.
5023 * opencl-lang.c (opencl_language_data): Likewise.
5024 * p-lang.c (pascal_language_data): Likewise.
5025 (pascal_language::value_print_inner): New member function.
5026 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5027 initializer.
5028 (rust_language::value_print_inner): New member function.
5029 * valprint.c (do_val_print): Update call to value_print_inner.
5030
a1d1fa3e
AB
50312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5032
5033 * ada-lang.c (ada_language_data): Delete la_value_print
5034 initializer.
5035 (ada_language::value_print): New member function.
5036 * c-lang.c (c_language_data): Delete la_value_print initializer.
5037 (cplus_language_data): Likewise.
5038 (asm_language_data): Likewise.
5039 (minimal_language_data): Likewise.
5040 * d-lang.c (d_language_data): Likewise.
5041 * f-lang.c (f_language_data): Likewise.
5042 * go-lang.c (go_language_data): Likewise.
5043 * language.c (unk_lang_value_print): Delete.
5044 (language_defn::value_print): Define new member function.
5045 (unknown_language_data): Delete la_value_print initializer.
5046 (unknown_language::value_print): New member function.
5047 (auto_language_data): Delete la_value_print initializer.
5048 (auto_language::value_print): New member function.
5049 * language.h (language_data): Delete la_value_print field.
5050 (language_defn::value_print): Declare new member function.
5051 (LA_VALUE_PRINT): Update call to value_print.
5052 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5053 * objc-lang.c (objc_language_data): Likewise.
5054 * opencl-lang.c (opencl_language_data): Likewise.
5055 * p-lang.c (pascal_language_data): Likewise.
5056 (pascal_language::value_print): New member function.
5057 * rust-lang.c (rust_language_data): Delete la_value_print
5058 initializer.
5059
f16a9f57
AB
50602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5061
5062 * ada-lang.c (ada_watch_location_expression): Rename to
5063 ada_language::watch_location_expression.
5064 (ada_language_data): Delete la_watch_location_expression
5065 initializer.
5066 (ada_language::watch_location_expression): New member function,
5067 implementation from ada_watch_location_expression.
5068 * breakpoint.c (watch_command_1): Update call to
5069 watch_location_expression.
5070 * c-lang.c (c_watch_location_expression): Rename to
5071 language_defn::watch_location_expression.
5072 (c_language_data): Delete la_watch_location_expression
5073 initializer.
5074 (cplus_language_data): Likewise.
5075 (asm_language_data): Likewise.
5076 (minimal_language_data): Likewise.
5077 * c-lang.h (c_watch_location_expression): Delete declaration.
5078 * d-lang.c (d_language_data): Delete la_watch_location_expression
5079 initializer.
5080 * f-lang.c (f_language_data): Likewise.
5081 * go-lang.c (go_language_data): Likewise.
5082 * language.c (language_defn::watch_location_expression): Member
5083 function implementation from c_watch_location_expression.
5084 (unknown_language_data): Delete la_watch_location_expression
5085 initializer.
5086 (auto_language_data): Likewise.
5087 * language.h (language_data): Delete la_watch_location_expression
5088 field.
5089 (language_defn::watch_location_expression): Declare new member
5090 function.
5091 * m2-lang.c (m2_language_data): Delete
5092 la_watch_location_expression initializer.
5093 * objc-lang.c (objc_language_data): Likewise.
5094 * opencl-lang.c (opencl_language_data): Likewise.
5095 * p-lang.c (pascal_language_data): Likewise.
5096 * rust-lang.c (rust_watch_location_expression): Rename to
5097 rust_language::watch_location_expression.
5098 (rust_language_data): Delete la_watch_location_expression
5099 initializer.
5100 (rust_language::watch_location_expression): New member function,
5101 implementation from rust_watch_location_expression.
5102
7e56227d
AB
51032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5104
5105 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5106 ada_language::collect_symbol_completion_matches.
5107 (ada_language_data): Delete la_collect_symbol_completion_matches
5108 initializer.
5109 (ada_language::collect_symbol_completion_matches): New member
5110 function, implementation from
5111 ada_collect_symbol_completion_matches.
5112 * c-lang.c (c_language_data): Delete
5113 la_collect_symbol_completion_matches initializer.
5114 (cplus_language_data): Likewise.
5115 (asm_language_data): Likewise.
5116 (minimal_language_data): Likewise.
5117 * d-lang.c (d_language_data): Likewise.
5118 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5119 f_language::collect_symbol_completion_matches.
5120 (f_language_data): Delete la_collect_symbol_completion_matches
5121 initializer.
5122 (f_language::collect_symbol_completion_matches) New member
5123 function, implementation from f_collect_symbol_completion_matches.
5124 * go-lang.c (go_language_data): Delete
5125 la_collect_symbol_completion_matches initializer.
5126 * language.c (unknown_language_data): Likewise.
5127 (auto_language_data): Likewise.
5128 * language.h (language_data): Delete
5129 la_collect_symbol_completion_matches field.
5130 (language_defn::collect_symbol_completion_matches): New member
5131 function.
5132 * m2-lang.c (m2_language_data): Delete
5133 la_collect_symbol_completion_matches initializer.
5134 * objc-lang.c (objc_language_data): Likewise.
5135 * opencl-lang.c (opencl_language_data): Likewise.
5136 * p-lang.c (pascal_language_data): Likewise.
5137 * rust-lang.c (rust_language_data): Likewise.
5138 * symtab.c (default_collect_symbol_completion_matches): Delete.
5139 (collect_symbol_completion_matches): Update call to
5140 collect_symbol_completion_matches.
5141 (collect_symbol_completion_matches_type): Likewise.
5142 * symtab.h (default_collect_symbol_completion_matches): Delete
5143 declaration.
5144
53fc67f8
AB
51452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5146
5147 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5148 (ada_language_data): Delete la_word_break_characters initializer.
5149 (ada_language::word_break_characters): New member function.
5150 * c-lang.c (c_language_data): Delete la_word_break_characters
5151 initializer.
5152 (cplus_language_data): Likewise.
5153 (asm_language_data): Likewise.
5154 (minimal_language_data): Likewise.
5155 * completer.c: Update global comment.
5156 (advance_to_expression_complete_word_point): Update call to
5157 word_break_characters.
5158 (complete_files_symbols): Likewise.
5159 (complete_line_internal_1): Likewise.
5160 (default_completer_handle_brkchars): Likewise.
5161 (skip_quoted_chars): Likewise.
5162 * d-lang.c (d_language_data): Delete la_word_break_characters
5163 initializer.
5164 * f-lang.c (f_word_break_characters): Delete.
5165 (f_language_data): Delete la_word_break_characters initializer.
5166 (f_language::word_break_characters): New member function.
5167 * go-lang.c (go_language_data): Delete la_word_break_characters
5168 initializer.
5169 * language.c (unknown_language_data): Likewise.
5170 (auto_language_data): Likewise.
5171 * language.h (default_word_break_characters): Move declaration to
5172 earlier in the file.
5173 (language_data): Delete la_word_break_characters field.
5174 (language_defn::word_break_characters): New member function.
5175 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5176 initializer.
5177 * objc-lang.c (objc_language_data): Likewise.
5178 * opencl-lang.c (opencl_language_data): Likewise.
5179 * p-lang.c (pascal_language_data): Likewise.
5180 * rust-lang.c (rust_language_data): Likewise.
5181
c9debfb9
AB
51822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5183
5184 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5185 (ada_language_data): Delete la_get_symbol_name_matcher
5186 initializer.
5187 (language_defn::get_symbol_name_matcher_inner): New member
5188 function.
5189 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5190 initializer.
5191 (cplus_language_data): Likewise.
5192 (cplus_language::get_symbol_name_matcher_inner): New member
5193 function.
5194 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5195 (minimal_language_data): Likewise.
5196 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5197 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5198 initializer.
5199 * dictionary.c (iter_match_first_hashed): Update call to
5200 get_symbol_name_matcher.
5201 (iter_match_next_hashed): Likewise.
5202 (iter_match_next_linear): Likewise.
5203 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5204 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5205 initializer.
5206 (f_language::get_symbol_name_matcher_inner): New member function.
5207 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5208 initializer.
5209 * language.c (default_symbol_name_matcher): Update header comment,
5210 make static.
5211 (language_defn::get_symbol_name_matcher): New definition.
5212 (language_defn::get_symbol_name_matcher_inner): Likewise.
5213 (get_symbol_name_matcher): Delete.
5214 (unknown_language_data): Delete la_get_symbol_name_matcher
5215 initializer.
5216 (auto_language_data): Likewise.
5217 * language.h (language_data): Delete la_get_symbol_name_matcher
5218 field.
5219 (language_defn::get_symbol_name_matcher): New member function.
5220 (language_defn::get_symbol_name_matcher_inner): Likewise.
5221 (default_symbol_name_matcher): Delete declaration.
5222 * linespec.c (find_methods): Update call to
5223 get_symbol_name_matcher.
5224 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5225 initializer.
5226 * minsyms.c (lookup_minimal_symbol): Update call to
5227 get_symbol_name_matcher.
5228 (iterate_over_minimal_symbols): Likewise.
5229 * objc-lang.c (objc_language_data): Delete
5230 la_get_symbol_name_matcher initializer.
5231 * opencl-lang.c (opencl_language_data): Likewise.
5232 * p-lang.c (pascal_language_data): Likewise.
5233 * psymtab.c (psymbol_name_matches): Update call to
5234 get_symbol_name_matcher.
5235 * rust-lang.c (rust_language_data): Delete
5236 la_get_symbol_name_matcher initializer.
5237 * symtab.c (symbol_matches_search_name): Update call to
5238 get_symbol_name_matcher.
5239 (compare_symbol_name): Likewise.
5240
9a49ad8c
AB
52412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5242
5243 * ada-lang.c (ada_language_data): Delete la_compute_program
5244 initializer.
5245 * c-lang.c (c_language_data): Likewise.
5246 (c_language::compute_program): New member function.
5247 (cplus_language_data): Delete la_compute_program initializer.
5248 (cplus_language::compute_program): New member function.
5249 (asm_language_data): Delete la_compute_program initializer.
5250 (minimal_language_data): Likewise.
5251 * c-lang.h (c_compute_program): Update comment.
5252 (cplus_compute_program): Likewise.
5253 * compile/compile-c-support.c (c_compute_program): Likewise.
5254 (cplus_compute_program): Likewise.
5255 * compile/compile.c (compile_to_object): Update call to
5256 la_compute_program.
5257 * d-lang.c (d_language_data): Delete la_compute_program
5258 initializer.
5259 * f-lang.c (f_language_data): Likewise.
5260 * go-lang.c (go_language_data): Likewise.
5261 * language.c (unknown_language_data): Likewise.
5262 (auto_language_data): Likewise.
5263 * language.h (language_data): Delete la_compute_program field.
5264 (language_defn::compute_program): New member function.
5265 * m2-lang.c (m2_language_data): Delete la_compute_program
5266 initializer.
5267 * objc-lang.c (objc_language_data): Likewise.
5268 * opencl-lang.c (opencl_language_data): Likewise.
5269 * p-lang.c (pascal_language_data): Likewise.
5270 * rust-lang.c (rust_language_data): Likewise.
5271
eff93b4d
AB
52722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5273
5274 * ada-lang.c (ada_language_data) Delete
5275 la_class_name_from_physname initializer.
5276 * c-lang.c (c_language_data): Likewise.
5277 (cplus_language_data): Likewise.
5278 (cplus_language::class_name_from_physname): New member function.
5279 (asm_language_data): Delete la_class_name_from_physname
5280 initializer.
5281 (minimal_language_data): Likewise.
5282 * d-lang.c (d_language_data): Likewise.
5283 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5284 method on language_defn class.
5285 (guess_full_die_structure_name): Likewise.
5286 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5287 initializer.
5288 * go-lang.c (go_language_data): Likewise.
5289 * language.c (language_class_name_from_physname): Delete.
5290 (unk_lang_class_name): Delete.
5291 (unknown_language_data): Delete la_class_name_from_physname
5292 initializer.
5293 (auto_language_data): Likewise.
5294 * language.h (language_data): Delete la_class_name_from_physname
5295 field.
5296 (language_defn::class_name_from_physname): New function.
5297 (language_class_name_from_physname): Delete declaration.
5298 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5299 initializer.
5300 * objc-lang.c (objc_language_data): Likewise.
5301 * opencl-lang.c (opencl_language_data): Likewise.
5302 * p-lang.c (pascal_language_data): Likewise.
5303 * rust-lang.c (rust_language_data): Likewise.
5304
de543742
TT
53052020-06-16 Tom Tromey <tom@tromey.com>
5306
5307 * tui/tui-data.h (STATUS_NAME): New macro.
5308 * tui/tui-layout.c (tui_remove_some_windows)
5309 (initialize_known_windows, tui_register_window)
5310 (tui_layout_split::remove_windows, initialize_layouts)
5311 (tui_new_layout_command): Don't use hard-coded window names.
5312
a350efd4
TT
53132020-06-16 Tom Tromey <tom@tromey.com>
5314
5315 PR tui/25348:
5316 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5317 tui_initialize_readline. Only run once. Call rl_initialize.
5318 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5319 tui_initialize_readline.
5320 * tui/tui-io.c (tui_setup_io): Call
5321 tui_ensure_readline_initialized.
5322 * tui/tui-interp.c (tui_interp::init): Update.
5323
39ec0490
TT
53242020-06-16 Tom Tromey <tom@tromey.com>
5325
5326 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5327 Also preserve the status window.
5328
d2d1ea20
TT
53292020-06-16 Tom Tromey <tom@tromey.com>
5330
5331 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5332 where m_window==nullptr.
5333
66920317
TT
53342020-06-15 Tom Tromey <tromey@adacore.com>
5335
5336 * windows-nat.c (windows_nat::handle_output_debug_string):
5337 Update.
5338 (windows_nat::handle_ms_vc_exception): Update.
5339 * target.h (target_read_string): Change API.
5340 * target.c (target_read_string): Change API.
5341 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5342 Update.
5343 * solib-frv.c (frv_current_sos): Update.
5344 * solib-dsbt.c (dsbt_current_sos): Update.
5345 * solib-darwin.c (darwin_current_sos): Update.
5346 * linux-thread-db.c (inferior_has_bug): Update.
5347 * expprint.c (print_subexp_standard): Update.
5348 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5349 (ada_exception_message_1): Update.
5350
a5d871dd
TT
53512020-06-15 Tom Tromey <tromey@adacore.com>
5352
5353 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5354
670e35fa
TT
53552020-06-15 Tom Tromey <tromey@adacore.com>
5356
5357 * valprint.c (read_string): Update comment.
5358 * target.c (MIN): Remove.
5359 (target_read_string): Rewrite.
5360
f5272a3b
TT
53612020-06-15 Tom Tromey <tromey@adacore.com>
5362
5363 * corefile.c (read_memory_string): Remove.
5364 * ada-valprint.c (ada_value_print_ptr): Update.
5365 * ada-lang.h (ada_tag_name): Change return type.
5366 * ada-lang.c (type_from_tag): Update.
5367 (ada_tag_name_from_tsd): Change return type. Use
5368 target_read_string.
5369 (ada_tag_name): Likewise.
5370 * gdbcore.h (read_memory_string): Don't declare.
5371
2c074f49
HD
53722020-06-14 Hannes Domani <ssbssa@yahoo.de>
5373
5374 * symtab.c (rbreak_command): Ignore Windows drive colon.
5375
6a17d503
SM
53762020-06-12 Simon Marchi <simon.marchi@efficios.com>
5377
5378 * NEWS: Mention removed GDBserver host support.
5379
453c733f
NC
53802020-06-12 Nelson Chu <nelson.chu@sifive.com>
5381
5382 * features/riscv/rebuild-csr-xml.sh: Updated.
5383
2b4e6a3f
TT
53842020-06-11 Tom Tromey <tom@tromey.com>
5385
5386 PR gdb/18318:
5387 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5388
4412332f
JG
53892020-06-09 Jonny Grant <jg@jguk.org>
53902020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5391
5392 * main.c (captured_main_1): Don't print new line after help.
5393 (print_gdb_help): add mailing list and IRC channel information
5394 to --help. Add new lines between items in the footer. Remove
5395 quotes around bug url.
5396
2f33032a
KS
53972020-06-11 Keith Seitz <keiths@redhat.com>
5398
5399 PR gdb/21356
5400 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5401 Resolve typedefs for type length calculations.
5402
7ab96794
TV
54032020-06-10 Tom de Vries <tdevries@suse.de>
5404
5405 PR ada/24713
5406 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5407 (write_psymbols): Enable .gdb_index for ada.
5408 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5409 ada.
5410
e5f3ece2
TV
54112020-06-10 Tom de Vries <tdevries@suse.de>
5412
5413 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5414 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5415 namei" instead of "const char *name" argument.
5416 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5417 dw2_symtab_iter_init.
5418
940da03e
SM
54192020-06-08 Simon Marchi <simon.marchi@efficios.com>
5420
5421 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5422 to use type::field and field::type instead.
5423
b6cdac4b
SM
54242020-06-08 Simon Marchi <simon.marchi@efficios.com>
5425
5426 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5427 to use field::type instead.
5428
5d14b6e5
SM
54292020-06-08 Simon Marchi <simon.marchi@efficios.com>
5430
5431 * gdbtypes.h (struct field) <type, set_type>: New methods.
5432 Rename `type` field to...
5433 <m_type>: ... this. Change references throughout to use type or
5434 set_type methods.
5435 (FIELD_TYPE): Use field::type. Change call sites that modify
5436 the field's type to use field::set_type instead.
5437
3d967001
SM
54382020-06-08 Simon Marchi <simon.marchi@efficios.com>
5439
5440 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5441 to use type::index_type instead.
5442
262abc0d
SM
54432020-06-08 Simon Marchi <simon.marchi@efficios.com>
5444
5445 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5446 methods.
5447 (TYPE_INDEX_TYPE): Use type::index_type.
5448 * gdbtypes.c (create_array_type_with_stride): Likewise.
5449
82836c92
TT
54502020-06-07 Tom Tromey <tom@tromey.com>
5451
5452 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5453 parameter.
5454 (generic_value_print): Update.
5455
940dace9
AB
54562020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5457
5458 Revert commit 982a38f60b0.
5459 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5460
982a38f6
AB
54612020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5462
5463 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5464 avoid use after free.
5465
82f06518
TV
54662020-06-05 Tom de Vries <tdevries@suse.de>
5467
5468 * NEWS: Fix typos.
5469
f8c41851
SM
54702020-06-04 Simon Marchi <simon.marchi@efficios.com>
5471
5472 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5473 the per_bfd object.
5474 (dwarf2_read_debug_names): Likewise.
5475 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5476 object when re-using a per_bfd object with an index.
5477
f9b5d5ea
TV
54782020-06-03 Tom de Vries <tdevries@suse.de>
5479
5480 PR symtab/26046
5481 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5482 children for C++.
5483 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5484 DW_TAG_subprogram.
5485
f6eee2d0
AB
54862020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5487
5488 * ada-lang.c (ada_language_data): Delete skip_trampoline
5489 initializer.
5490 * c-lang.c (c_language_data): Likewise.
5491 (cplus_language_data): Likewise.
5492 (cplus_language::skip_trampoline): New member function.
5493 (asm_language_data): Delete skip_trampoline initializer.
5494 (minimal_language_data): Likewise.
5495 * d-lang.c (d_language_data): Likewise.
5496 * f-lang.c (f_language_data): Likewise.
5497 * go-lang.c (go_language_data): Likewise.
5498 * language.c (unk_lang_trampoline): Delete function.
5499 (skip_language_trampoline): Update.
5500 (unknown_language_data): Delete skip_trampoline initializer.
5501 (auto_language_data): Likewise.
5502 * language.h (language_data): Delete skip_trampoline field.
5503 (language_defn::skip_trampoline): New function.
5504 * m2-lang.c (m2_language_data): Delete skip_trampoline
5505 initializer.
5506 * objc-lang.c (objc_skip_trampoline): Delete function, move
5507 implementation to objc_language::skip_trampoline.
5508 (objc_language_data): Delete skip_trampoline initializer.
5509 (objc_language::skip_trampoline): New member function with
5510 implementation from objc_skip_trampoline.
5511 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5512 initializer.
5513 * p-lang.c (pascal_language_data): Likewise.
5514 * rust-lang.c (rust_language_data): Likewise.
5515
0a50df5d
AB
55162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5517
5518 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5519 (ada_language::demangle): New member function.
5520 * c-lang.c (c_language_data): Delete la_demangle initializer.
5521 (cplus_language_data): Delete la_demangle initializer.
5522 (cplus_language::demangle): New member function.
5523 (asm_language_data): Delete la_demangle initializer.
5524 (minimal_language_data): Delete la_demangle initializer.
5525 * d-lang.c (d_language_data): Delete la_demangle initializer.
5526 (d_language::demangle): New member function.
5527 * f-lang.c (f_language_data): Delete la_demangle initializer.
5528 (f_language::demangle): New member function.
5529 * go-lang.c (go_language_data): Delete la_demangle initializer.
5530 (go_language::demangle): New member function.
5531 * language.c (language_demangle): Update.
5532 (unk_lang_demangle): Delete.
5533 (unknown_language_data): Delete la_demangle initializer.
5534 (unknown_language::demangle): New member function.
5535 (auto_language_data): Delete la_demangle initializer.
5536 (auto_language::demangle): New member function.
5537 * language.h (language_data): Delete la_demangle field.
5538 (language_defn::demangle): New function.
5539 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5540 * objc-lang.c (objc_language_data): Delete la_demangle
5541 initializer.
5542 (objc_language::demangle): New member function.
5543 * opencl-lang.c (opencl_language_data): Delete la_demangle
5544 initializer.
5545 * p-lang.c (pascal_language_data): Likewise.
5546 * rust-lang.c (rust_language_data): Likewise.
5547 (rust_language::demangle): New member function.
5548
fbfb0a46
AB
55492020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5550
5551 * ada-lang.c (ada_language_data): Delete la_print_type
5552 initializer.
5553 (ada_language::print_type): New member function.
5554 * c-lang.c (c_language_data): Delete la_print_type initializer.
5555 (c_language::print_type): New member function.
5556 (cplus_language_data): Delete la_print_type initializer.
5557 (cplus_language::print_type): New member function.
5558 (asm_language_data): Delete la_print_type initializer.
5559 (asm_language::print_type): New member function.
5560 (minimal_language_data): Delete la_print_type initializer.
5561 (minimal_language::print_type): New member function.
5562 * d-lang.c (d_language_data): Delete la_print_type initializer.
5563 (d_language::print_type): New member function.
5564 * f-lang.c (f_language_data): Delete la_print_type initializer.
5565 (f_language::print_type): New member function.
5566 * go-lang.c (go_language_data): Delete la_print_type initializer.
5567 (go_language::print_type): New member function.
5568 * language.c (unk_lang_print_type): Delete.
5569 (unknown_language_data): Delete la_print_type initializer.
5570 (unknown_language::print_type): New member function.
5571 (auto_language_data): Delete la_print_type initializer.
5572 (auto_language::print_type): New member function.
5573 * language.h (language_data): Delete la_print_type field.
5574 (language_defn::print_type): New function.
5575 (LA_PRINT_TYPE): Update.
5576 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5577 (m2_language::print_type): New member function.
5578 * objc-lang.c (objc_language_data): Delete la_print_type
5579 initializer.
5580 (objc_language::print_type): New member function.
5581 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5582 to opencl_language::print_type.
5583 (opencl_language_data): Delete la_print_type initializer.
5584 (opencl_language::print_type): New member function, implementation
5585 from opencl_print_type.
5586 * p-lang.c (pascal_language_data): Delete la_print_type
5587 initializer.
5588 (pascal_language::print_type): New member function.
5589 * rust-lang.c (rust_print_type): Delete, implementation moved to
5590 rust_language::print_type.
5591 (rust_language_data): Delete la_print_type initializer.
5592 (rust_language::print_type): New member function, implementation
5593 from rust_print_type.
5594
6f827019
AB
55952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5596
5597 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5598 implementation moves to...
5599 (ada_language::sniff_from_mangled_name): ...here. Update return
5600 type.
5601 (ada_language_data): Delete la_sniff_from_mangled_name
5602 initializer.
5603 * c-lang.c (c_language_data): Likewise.
5604 (cplus_language_data): Likewise.
5605 (cplus_language::sniff_from_mangled_name): New member function,
5606 implementation taken from gdb_sniff_from_mangled_name.
5607 (asm_language_data): Delete la_sniff_from_mangled_name
5608 initializer.
5609 (minimal_language_data): Likewise.
5610 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5611 implementation moves to cplus_language::sniff_from_mangled_name.
5612 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5613 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5614 moves to...
5615 (d_language::sniff_from_mangled_name): ...here.
5616 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5617 * f-lang.c (f_language_data): Likewise.
5618 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5619 moves to...
5620 (go_language::sniff_from_mangled_name): ...here.
5621 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5622 * language.c (language_sniff_from_mangled_name): Delete.
5623 (unknown_language_data): Delete la_sniff_from_mangled_name
5624 initializer.
5625 (auto_language_data): Likewise.
5626 * language.h (language_data): Delete la_sniff_from_mangled_name
5627 field.
5628 (language_defn::sniff_from_mangled_name): New function.
5629 (language_sniff_from_mangled_name): Delete declaration.
5630 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5631 field.
5632 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5633 implementation moves to...
5634 (objc_language::sniff_from_mangled_name): ...here.
5635 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5636 * opencl-lang.c (opencl_language_data): Likewise.
5637 * p-lang.c (pascal_language_data): Likewise.
5638 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5639 implementation moves to...
5640 (rust_language::sniff_from_mangled_name): ...here.
5641 (rust_language_data): Delete la_sniff_from_mangled_name
5642 initializer.
5643 * symtab.c (symbol_find_demangled_name): Call
5644 sniff_from_mangled_name member function.
5645
fb8006fd
AB
56462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5647
5648 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5649 initializer.
5650 * c-lang.c (c_language_data): Likewise.
5651 (cplus_language_data): Likewise.
5652 (cplus_language::search_name_hash): New member function.
5653 (asm_language_data): Delete la_search_name_hash initializer.
5654 (minimal_language_data): Likewise.
5655 * d-lang.c (d_language_data): Likewise.
5656 * dictionary.c (default_search_name_hash): Rename to...
5657 (language_defn::search_name_hash): ...this.
5658 * f-lang.c (f_language_data): Likewise.
5659 (f_language::search_name_hash): New member function.
5660 * go-lang.c (go_language_data): Delete la_search_name_hash
5661 initializer.
5662 * language.c (unknown_language_data): Likewise.
5663 (auto_language_data): Likewise.
5664 * language.h (struct language_data): Delete la_search_name_hash
5665 field.
5666 (language_defn::search_name_hash): Declare new member function.
5667 (default_search_name_hash): Delete declaration.
5668 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5669 initializer.
5670 * objc-lang.c (objc_language_data): Likewise.
5671 * opencl-lang.c (opencl_language_data): Likewise.
5672 * p-lang.c (pascal_language_data): Likewise.
5673 * rust-lang.c (rust_language_data): Likewise.
5674 * symtab.c (search_name_hash): Update call.
5675
8e25bafe
AB
56762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5677
5678 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5679 initializer.
5680 * c-lang.c (class compile_instance): Declare.
5681 (c_language_data): Delete la_get_compile_instance initializer.
5682 (c_language::get_compile_instance): New member function.
5683 (cplus_language_data): Delete la_get_compile_instance initializer.
5684 (cplus_language::get_compile_instance): New member function.
5685 (asm_language_data): Delete la_get_compile_instance initializer.
5686 (minimal_language_data): Likewise.
5687 * c-lang.h (c_get_compile_context): Update comment.
5688 (cplus_get_compile_context): Update comment.
5689 * compile/compile.c (compile_to_object): Update calls, don't rely
5690 on function pointer being NULL.
5691 * d-lang.c (d_language_data): Delete la_get_compile_instance
5692 initializer.
5693 * f-lang.c (f_language_data): Likewise.
5694 * go-lang.c (go_language_data): Likewise.
5695 * language.c (unknown_language_data): Likewise.
5696 (auto_language_data): Likewise.
5697 * language.h (language_data): Delete la_get_compile_instance field.
5698 (language_defn::get_compile_instance): New member function.
5699 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5700 initializer.
5701 * objc-lang.c (objc_language_data): Likewise.
5702 * opencl-lang.c (opencl_language_data): Likewise.
5703 * p-lang.c (pascal_language_data): Likewise.
5704 * rust-lang.c (rust_language_data): Likewise.
5705
4009ee92
AB
57062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5707
5708 * ada-lang.c (ada_add_all_symbols): Update comment.
5709 (ada_iterate_over_symbols): Delete, move implementation to...
5710 (ada_language::iterate_over_symbols): ...here, a new member
5711 function, rewrite to use range based for loop.
5712 (ada_language_data): Delete la_iterate_over_symbols initializer.
5713 * c-lang.c (c_language_data): Likewise.
5714 (cplus_language_data): Likewise.
5715 (asm_language_data): Likewise.
5716 (minimal_language_data): Likewise.
5717 * d-lang.c (d_language_data): Likewise.
5718 * f-lang.c (f_language_data): Likewise.
5719 * go-lang.c (go_language_data): Likewise.
5720 * language.c (unknown_language_data): Likewise.
5721 (auto_language_data): Likewise.
5722 * language.h (language_data): Delete la_iterate_over_symbols field.
5723 (language_defn::iterate_over_symbols): New member function.
5724 (LA_ITERATE_OVER_SYMBOLS): Update.
5725 * linespec.c (iterate_over_all_matching_symtabs): Update.
5726 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5727 initializer.
5728 * objc-lang.c (objc_language_data): Likewise.
5729 * opencl-lang.c (opencl_language_data): Likewise.
5730 * p-lang.c (pascal_language_data): Likewise.
5731 * rust-lang.c (rust_language_data): Likewise.
5732
54f4ca46
AB
57332020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5734
5735 * ada-lang.c (ada_language_data): Delete
5736 la_lookup_transparent_type initializer.
5737 * c-lang.c (c_language_data): Likewise.
5738 (cplus_language_data): Likewise.
5739 (cplus_language::lookup_transparent_type): New member function.
5740 (asm_language_data): Delete la_lookup_transparent_type
5741 initializer.
5742 (minimal_language_data): Likewise.
5743 * d-lang.c (d_language_data): Likewise.
5744 * f-lang.c (f_language_data): Likewise.
5745 * go-lang.c (go_language_data): Likewise.
5746 * language.c (unknown_language_data): Likewise.
5747 (auto_language_data): Likewise.
5748 * language.h (struct language_data): Delete
5749 la_lookup_transparent_type field.
5750 (language_defn::lookup_transparent_type): New member function.
5751 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5752 initializer.
5753 * objc-lang.c (objc_language_data): Likewise.
5754 * opencl-lang.c (opencl_language_data): Likewise.
5755 * p-lang.c (pascal_language_data): Likewise.
5756 * rust-lang.c (rust_language_data): Likewise.
5757 * symtab.c (symbol_matches_domain): Update call.
5758
1fb314aa
AB
57592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5760
5761 * ada-lang.c (ada_language_arch_info): Delete function, move
5762 implementation to...
5763 (ada_language::language_arch_info): ...here, a new member
5764 function.
5765 (ada_language_data): Delete la_language_arch_info.
5766 * c-lang.c (c_language_data): Likewise.
5767 (c_language::language_arch_info): New member function.
5768 (cplus_language_arch_info): Delete function, move
5769 implementation to...
5770 (cplus_language::language_arch_info): ...here, a new member
5771 function.
5772 (cplus_language_data): Delete la_language_arch_info.
5773 (asm_language_data): Likewise.
5774 (asm_language::language_arch_info): New member function.
5775 (minimal_language_data): Delete la_language_arch_info.
5776 (minimal_language::language_arch_info): New member function.
5777 * d-lang.c (d_language_arch_info): Delete function, move
5778 implementation to...
5779 (d_language::language_arch_info): ...here, a new member
5780 function.
5781 (d_language_data): Delete la_language_arch_info.
5782 * f-lang.c (f_language_arch_info): Delete function, move
5783 implementation to...
5784 (f_language::language_arch_info): ...here, a new member
5785 function.
5786 (f_language_data): Delete la_language_arch_info.
5787 * go-lang.c (go_language_arch_info): Delete function, move
5788 implementation to...
5789 (go_language::language_arch_info): ...here, a new member
5790 function.
5791 (go_language_data): Delete la_language_arch_info.
5792 * language.c (unknown_language_data): Likewise.
5793 (unknown_language::language_arch_info): New member function.
5794 (auto_language_data): Delete la_language_arch_info.
5795 (auto_language::language_arch_info): New member function.
5796 (language_gdbarch_post_init): Update call to
5797 la_language_arch_info.
5798 * language.h (language_data): Delete la_language_arch_info
5799 function pointer.
5800 (language_defn::language_arch_info): New function.
5801 * m2-lang.c (m2_language_arch_info): Delete function, move
5802 implementation to...
5803 (m2_language::language_arch_info): ...here, a new member
5804 function.
5805 (m2_language_data): Delete la_language_arch_info.
5806 * objc-lang.c (objc_language_arch_info): Delete function, move
5807 implementation to...
5808 (objc_language::language_arch_info): ...here, a new member
5809 function.
5810 (objc_language_data): Delete la_language_arch_info.
5811 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5812 implementation to...
5813 (opencl_language::language_arch_info): ...here, a new member
5814 function.
5815 (opencl_language_data): Delete la_language_arch_info.
5816 * p-lang.c (pascal_language_arch_info): Delete function, move
5817 implementation to...
5818 (pascal_language::language_arch_info): ...here, a new member
5819 function.
5820 (pascal_language_data): Delete la_language_arch_info.
5821 * rust-lang.c (rust_language_arch_info): Delete function, move
5822 implementation to...
5823 (rust_language::language_arch_info): ...here, a new member
5824 function.
5825 (rust_language_data): Delete la_language_arch_info.
5826
48448202
AB
58272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5828
5829 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5830 initializer.
5831 * c-lang.c (c_language_data): Likewise.
5832 (cplus_language_data): Likewise.
5833 (cplus_language::pass_by_reference_info): New method.
5834 (asm_language_data): Delete la_pass_by_reference initializer.
5835 (minimal_language_data): Likewise.
5836 * cp-abi.c (cp_pass_by_reference): Remove use of
5837 default_pass_by_reference.
5838 * d-lang.c (d_language_data): Likewise.
5839 * f-lang.c (f_language_data): Likewise.
5840 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5841 default_pass_by_reference.
5842 * go-lang.c (go_language_data): Likewise.
5843 * language.c (language_pass_by_reference): Update.
5844 (default_pass_by_reference): Delete.
5845 (unknown_language_data): Delete la_pass_by_reference
5846 initializer.
5847 (auto_language_data): Likewise.
5848 * language.h (struct language_data): Delete la_pass_by_reference
5849 field.
5850 (language_defn::pass_by_reference_info): New member function.
5851 (default_pass_by_reference): Delete declaration.
5852 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5853 initializer.
5854 * objc-lang.c (objc_language_data): Likewise.
5855 * opencl-lang.c (opencl_language_data): Likewise.
5856 * p-lang.c (pascal_language_data): Likewise.
5857 * rust-lang.c (rust_language_data): Likewise.
5858
15e5fd35
AB
58592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5860
5861 * ada-lang.c (ada_read_var_value): Delete function, move
5862 implementation to...
5863 (ada_language::read_var_value): ...here.
5864 (ada_language_data): Delete la_read_var_value initializer.
5865 * c-lang.c (c_language_data): Likewise.
5866 (cplus_language_data): Likewise.
5867 (minimal_language_data): Likewise.
5868 * d-lang.c (d_language_data): Likewise.
5869 * f-lang.c (f_language_data): Likewise.
5870 * findvar.c (default_read_var_value): Rename to...
5871 (language_defn::read_var_value): ...this.
5872 * findvar.c (read_var_value): Update header comment, and change to
5873 call member function instead of function pointer.
5874 * go-lang.c (go_language_data): Likewise.
5875 * language.c (unknown_language_data): Delete la_read_var_value
5876 initializer.
5877 (auto_language_data): Likewise.
5878 * language.h (struct language_data): Delete la_read_var_value
5879 field.
5880 (language_defn::read_var_value): New member function.
5881 (default_read_var_value): Delete declaration.
5882 * m2-lang.c (m2_language_data): Delete la_read_var_value
5883 initializer.
5884 * objc-lang.c (objc_language_data): Likewise.
5885 * opencl-lang.c (opencl_language_data): Likewise.
5886 * p-lang.c (pascal_language_data): Likewise.
5887 * rust-lang.c (rust_language_data): Likewise.
5888 * value.h (default_read_var_value): Delete declaration.
5889
5bd40f2a
AB
58902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5891
5892 * ada-lang.c (ada_print_array_index): Delete function, move
5893 implementation to...
5894 (ada_language::print_array_index): ...here.
5895 (ada_language_data): Delete la_print_array_index initializer.
5896 * c-lang.c (c_language_data): Likewise.
5897 (cplus_language_data): Likewise.
5898 (minimal_language_data): Likewise.
5899 * d-lang.c (d_language_data): Likewise.
5900 * f-lang.c (f_language_data): Likewise.
5901 * go-lang.c (go_language_data): Likewise.
5902 * language.c (default_print_array_index): Delete function, move
5903 implementation to...
5904 (language_defn::print_array_index): ...here.
5905 (unknown_language_data): Delete la_print_array_index initializer.
5906 (auto_language_data): Likewise.
5907 * language.h (struct language_data): Delete la_print_array_index
5908 field.
5909 (language_defn::print_array_index): New member function.
5910 (LA_PRINT_ARRAY_INDEX): Update.
5911 (default_print_array_index): Delete declaration.
5912 * m2-lang.c (m2_language_data): Delete la_print_array_index
5913 initializer.
5914 * objc-lang.c (objc_language_data): Likewise.
5915 * opencl-lang.c (opencl_language_data): Likewise.
5916 * p-lang.c (pascal_language_data): Likewise.
5917 * rust-lang.c (rust_language_data): Likewise.
5918
0874fd07
AB
59192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5920
5921 * gdb/ada-lang.c (ada_language_defn): Convert to...
5922 (ada_language_data): ...this.
5923 (class ada_language): New class.
5924 (ada_language_defn): New static global.
5925 * gdb/c-lang.c (c_language_defn): Convert to...
5926 (c_language_data): ...this.
5927 (class c_language): New class.
5928 (c_language_defn): New static global.
5929 (cplus_language_defn): Convert to...
5930 (cplus_language_data): ...this.
5931 (class cplus_language): New class.
5932 (cplus_language_defn): New static global.
5933 (asm_language_defn): Convert to...
5934 (asm_language_data): ...this.
5935 (class asm_language): New class.
5936 (asm_language_defn): New static global.
5937 (minimal_language_defn): Convert to...
5938 (minimal_language_data): ...this.
5939 (class minimal_language): New class.
5940 (minimal_language_defn): New static global.
5941 * gdb/d-lang.c (d_language_defn): Convert to...
5942 (d_language_data): ...this.
5943 (class d_language): New class.
5944 (d_language_defn): New static global.
5945 * gdb/f-lang.c (f_language_defn): Convert to...
5946 (f_language_data): ...this.
5947 (class f_language): New class.
5948 (f_language_defn): New static global.
5949 * gdb/go-lang.c (go_language_defn): Convert to...
5950 (go_language_data): ...this.
5951 (class go_language): New class.
5952 (go_language_defn): New static global.
5953 * gdb/language.c (unknown_language_defn): Remove declaration.
5954 (current_language): Initialize to nullptr, real initialization is
5955 moved to _initialize_language.
5956 (languages): Delete global.
5957 (language_defn::languages): Define.
5958 (set_language_command): Use language_defn::languages.
5959 (set_language): Likewise.
5960 (range_error): Likewise.
5961 (language_enum): Likewise.
5962 (language_def): Likewise.
5963 (add_set_language_command): Use language_def::languages for the
5964 language list, and language_def to lookup language pointers.
5965 (skip_language_trampoline): Use language_defn::languages.
5966 (unknown_language_defn): Convert to...
5967 (unknown_language_data): ...this.
5968 (class unknown_language): New class.
5969 (unknown_language_defn): New static global.
5970 (auto_language_defn): Convert to...
5971 (auto_language_data): ...this.
5972 (class auto_language): New class.
5973 (auto_language_defn): New static global.
5974 (language_gdbarch_post_init): Use language_defn::languages.
5975 (_initialize_language): Initialize current_language.
5976 * gdb/language.h (struct language_defn): Rename to...
5977 (struct language_data): ...this.
5978 (struct language_defn): New.
5979 (auto_language_defn): Delete.
5980 (unknown_language_defn): Delete.
5981 (minimal_language_defn): Delete.
5982 (ada_language_defn): Delete.
5983 (asm_language_defn): Delete.
5984 (c_language_defn): Delete.
5985 (cplus_language_defn): Delete.
5986 (d_language_defn): Delete.
5987 (f_language_defn): Delete.
5988 (go_language_defn): Delete.
5989 (m2_language_defn): Delete.
5990 (objc_language_defn): Delete.
5991 (opencl_language_defn): Delete.
5992 (pascal_language_defn): Delete.
5993 (rust_language_defn): Delete.
5994 * gdb/m2-lang.c (m2_language_defn): Convert to...
5995 (m2_language_data): ...this.
5996 (class m2_language): New class.
5997 (m2_language_defn): New static global.
5998 * gdb/objc-lang.c (objc_language_defn): Convert to...
5999 (objc_language_data): ...this.
6000 (class objc_language): New class.
6001 (objc_language_defn): New static global.
6002 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6003 (opencl_language_data): ...this.
6004 (class opencl_language): New class.
6005 (opencl_language_defn): New static global.
6006 * gdb/p-lang.c (pascal_language_defn): Convert to...
6007 (pascal_language_data): ...this.
6008 (class pascal_language): New class.
6009 (pascal_language_defn): New static global.
6010 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6011 language pointer, update comment format.
6012 * gdb/rust-lang.c (rust_language_defn): Convert to...
6013 (rust_language_data): ...this.
6014 (class rust_language): New class.
6015 (rust_language_defn): New static global.
6016
1313c56e
AB
60172020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6018
6019 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6020 member variable.
6021 <m_stmt_at_address>: New member variable.
6022 (lnp_state_machine::record_line): Don't record some lines, update
6023 tracking of is_stmt at the same address.
6024 (lnp_state_machine::lnp_state_machine): Initialise new member
6025 variables.
6026
b7ed9f3d
ST
60272020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6028
6029 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6030 "-include gnu-nat-mig.h".
6031 * gnu-nat-mig.h: New file.
6032 * gnu-nat.c: Include "gnu-nat-mig.h".
6033 (exc_server, msg_reply_server, notify_server,
6034 process_reply_server): Remove declarations.
6035
14a8ad62
ST
60362020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6037
6038 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6039 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6040 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6041 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6042 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6043 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6044 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6045 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6046 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6047 to gnu_nat_target class.
6048 * gnu-nat.c: Likewise.
6049 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6050 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6051 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6052 object.
6053 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6054 instead of `gnu_target'.
6055
0af5e106
ST
60562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6057
6058 * i386-gnu-tdep.c: Include "gdbcore.h"
6059 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6060 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6061 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6062 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6063 i386_gnu_sigcontext_addr): New functions
6064 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6065 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6066 tdep.
6067
078f2fc9
ST
60682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6069
6070 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6071 before fork_inferior call. Avoid calling it if target_is_pushed returns
6072 true.
6073
53dff92c
ST
60742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6075
6076 * gnu-nat.h (gnu_target): New variable declaration.
6077 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6078 gnu_target.
6079 * gnu-nat.c (gnu_target): New variable.
6080 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6081 add_thread_silent, and add_thread calls.
6082 (gnu_nat_target::create_inferior): Pass gnu_target to
6083 add_thread_silent, thread_change_ptid call.
6084 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6085 call.
6086
5a8b8627
ST
60872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6088
6089 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6090 (gnu_nat_target::find_memory_regions): Remove unused
6091 `old_address' variable.
6092
366f550a
ST
60932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6094
6095 * gnu-nat.c: Include "gdbarch.h".
6096
f14871bf
ST
60972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6098
6099 * reply_mig_hack.awk (Error return): Cast function through
6100 void *, to bypass compiler function call check.
6101
c6887cfb
ST
61022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6103
6104 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6105 $(srcdir)/reply_mig_hack.awk.
6106
6930bffe
ST
61072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6108
6109 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6110
112c22ed
JG
61112020-05-30 Jonny Grant <jg@jguk.org>
6112
6113 * configure.ac (ACX_BUGURL): change bug URL to https.
6114
f68f85b5
PA
61152020-05-30 Pedro Alves <palves@redhat.com>
6116
6117 * cp-support.c (replace_typedefs_template): New.
6118 (replace_typedefs_qualified_name): Handle
6119 DEMANGLE_COMPONENT_TEMPLATE.
6120
976ca316
SM
61212020-05-29 Simon Marchi <simon.marchi@efficios.com>
6122
6123 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6124 dwarf2/index-cache.h, dwarf2/index-write.c,
6125 dwarf2/index-write.h, dwarf2/line-header.c,
6126 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6127 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6128 variables and fields from `dwarf2_per_objfile` to just
6129 `per_objfile` throughout.
6130
989ade05
SM
61312020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6132
6133 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6134 <push_dwarf_reg_entry_value>: Add comment.
6135
c47bae85
KB
61362020-05-28 Kevin Buettner <kevinb@redhat.com>
6137 Keith Seitz <keiths@redhat.com>
6138
6139 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6140 instead of PyEval_ReleaseLock.
6141 (class gdbpy_gil): Move to earlier in file.
6142 (finalize_python): Set gdb_python_initialized.
6143 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6144 when not initialized.
6145
44486dcf
SM
61462020-05-28 Simon Marchi <simon.marchi@efficios.com>
6147
6148 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6149 <push_dwarf_reg_entry_value>: Remove assert. Override
6150 per_objfile with caller_per_objfile.
6151
f030440d
TV
61522020-05-28 Tom de Vries <tdevries@suse.de>
6153
6154 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6155 PR gold/15646 workaround to symbol kind "type".
6156
f0fbb768
TT
61572020-05-27 Tom Tromey <tromey@adacore.com>
6158
6159 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6160
af0b2a3e
TT
61612020-05-27 Tom Tromey <tromey@adacore.com>
6162
6163 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6164 Use htab_find_with_hash.
6165 <add_abbrev>: Remove "abbrev_number" parameter.
6166 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6167 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6168 (hash_abbrev): Add comment.
6169 (abbrev_table::lookup_abbrev): Move to header file.
6170 (abbrev_table::read): Update.
6171
7d00ffec
TT
61722020-05-27 Tom Tromey <tromey@adacore.com>
6173
6174 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6175 method.
6176 <canonical_name>: New member.
6177 <raw_name>: Rename from "name".
6178 (partial_die_info): Initialize canonical_name.
6179 (scan_partial_symbols): Check raw_name.
6180 (partial_die_parent_scope, partial_die_full_name)
6181 (add_partial_symbol, add_partial_subprogram)
6182 (add_partial_enumeration, load_partial_dies): Use "name" method.
6183 (partial_die_info::name): New method.
6184 (partial_die_info::read, guess_partial_die_structure_name)
6185 (partial_die_info::fixup): Update.
6186
697bba18
TT
61872020-05-27 Tom Tromey <tromey@adacore.com>
6188
6189 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6190 <get_ref_die_offset>: Inline.
6191 <get_ref_die_offset_complaint>: New method.
6192 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6193 (attribute::get_ref_die_offset_complaint): Rename from
6194 get_ref_die_offset. Just issue complaint.
6195
c17ace43
HD
61962020-05-27 Hannes Domani <ssbssa@yahoo.de>
6197
6198 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6199
96445f0b
HD
62002020-05-27 Hannes Domani <ssbssa@yahoo.de>
6201
6202 * exec.c (exec_file_attach): Use errno value of first openp failure.
6203
ac637ec3
HD
62042020-05-27 Hannes Domani <ssbssa@yahoo.de>
6205
6206 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6207 Don't close thread handle.
6208
17ee85fc
TT
62092020-05-27 Tom Tromey <tom@tromey.com>
6210 Simon Marchi <simon.marchi@efficios.com>
6211
6212 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6213 shared_ptr.
6214 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6215 member.
6216 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6217 dwarf2_per_bfd_objfile_data_key>: New globals.
6218 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6219 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6220 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6221 shared.
6222 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6223 short-circuit when sharing.
6224 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6225 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6226
39b16f87
SM
62272020-05-27 Simon Marchi <simon.marchi@efficios.com>
6228
6229 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6230 to...
6231 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6232 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6233
fcf23d5b
SM
62342020-05-27 Simon Marchi <simon.marchi@efficios.com>
6235
6236 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6237 build_name_components, find_name_components_bounds>:
6238 Add per_objfile parameter.
6239 (struct mapped_index) <symbol_name_at>: Likewise.
6240 (struct mapped_debug_names): Remove constructor.
6241 <dwarf2_per_objfile>: Remove field.
6242 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6243 (mapped_index_base::find_name_components_bounds,
6244 mapped_index_base::build_name_components,
6245 dw2_expand_symtabs_matching_symbol): Likewise.
6246 (class mock_mapped_index) <symbol_name_at>: Likewise.
6247 (check_match): Likewise.
6248 (check_find_bounds_finds): Likewise.
6249 (test_mapped_index_find_name_component_bounds): Update.
6250 (CHECK_MATCH): Update.
6251 (dw2_expand_symtabs_matching): Update.
6252 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6253 per_objfile parameter.
6254 <find_vec_in_debug_names>: Likewise.
6255 <m_per_objfile>: New field.
6256 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6257 parameter.
6258 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6259 (dw2_debug_names_iterator::next): Update.
6260 (dw2_debug_names_lookup_symbol): Update.
6261 (dw2_debug_names_expand_symtabs_for_function): Update.
6262 (dw2_debug_names_map_matching_symbols): Update.
6263 (dw2_debug_names_expand_symtabs_matching): Update.
6264 (dwarf2_read_debug_names): Update.
6265
7188ed02
SM
62662020-05-27 Simon Marchi <simon.marchi@efficios.com>
6267
6268 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6269 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6270 move to dwarf2_per_objfile.
6271 <read_in_chain>: Remove.
6272 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6273 remove_all_cus, age_comp_units>: New methods.
6274 <m_dwarf2_cus>: New member.
6275 (struct dwarf2_per_cu_data) <cu>: Remove.
6276 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6277 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6278 moved to methods of dwarf2_per_objfile.
6279 (dwarf2_clear_marks): Remove.
6280 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6281 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6282 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6283 (dwarf2_per_objfile::remove_all_cus): New.
6284 (class free_cached_comp_units) <~free_cached_comp_units>:
6285 Update.
6286 (load_cu): Update.
6287 (dw2_do_instantiate_symtab): Adjust.
6288 (fill_in_sig_entry_from_dwo_entry): Adjust.
6289 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6290 (cutu_reader::cutu_reader): Likewise.
6291 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6292 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6293 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6294 and dwarf2_per_objfile::age_comp_units.
6295 (load_partial_comp_unit): Update.
6296 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6297 (process_queue): Likewise.
6298 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6299 backlink.
6300 (dwarf2_read_addr_index): Likewise.
6301 (follow_die_offset): Likewise.
6302 (dwarf2_fetch_die_loc_sect_off): Likewise.
6303 (dwarf2_fetch_constant_bytes): Likewise.
6304 (dwarf2_fetch_die_type_sect_off): Likewise.
6305 (follow_die_sig_1): Likewise.
6306 (load_full_type_unit): Likewise.
6307 (read_signatured_type): Likewise.
6308 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6309 (dwarf2_cu::~dwarf2_cu): Remove.
6310 (dwarf2_per_objfile::get_cu): New.
6311 (dwarf2_per_objfile::set_cu): New.
6312 (age_cached_comp_units): Rename to...
6313 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6314 to std::unordered_map.
6315 (free_one_cached_comp_unit): Rename to...
6316 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6317 to std::unordered_map.
6318 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6319 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6320 a dwarf2_per_objfile in data.
6321 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6322 (dwarf2_clear_marks): Remove.
6323
2e671100
SM
63242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6325
6326 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6327 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6328 (init_tu_and_read_dwo_dies): Likewise.
6329 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6330 (cutu_reader::cutu_reader): Likewise.
6331 (load_partial_comp_unit): Likewise.
6332 (process_psymtab_comp_unit): Update.
6333 (build_type_psymtabs_1): Update.
6334 (process_skeletonless_type_unit): Update.
6335 (load_full_comp_unit): Update.
6336 (find_partial_die): Update.
6337 (dwarf2_read_addr_index): Update.
6338 (read_signatured_type): Update.
6339
2e6a9f79
SM
63402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6341
6342 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6343 m_header_read_in>: New fields.
6344 <get_header>: New method.
6345 * dwarf2/read.c (per_cu_header_read_in): Remove.
6346 (dwarf2_per_cu_data::get_header): New.
6347 (dwarf2_per_cu_data::addr_size): Update.
6348 (dwarf2_per_cu_data::offset_size): Update.
6349 (dwarf2_per_cu_data::ref_addr_size): Update.
6350
1b555f17
SM
63512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6352
6353 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6354 (dw2_do_instantiate_symtab): Update.
6355 (queue_and_load_all_dwo_tus): Change parameter from
6356 dwarf2_per_cu_data to dwarf2_cu.
6357 (dwarf2_fetch_die_loc_sect_off): Update.
6358 (dwarf2_fetch_constant_bytes): Update.
6359 (dwarf2_fetch_die_type_sect_off): Update.
6360
8fc0b21d
SM
63612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6362
6363 * dwarf2/read.c (process_full_comp_unit,
6364 process_full_type_unit): Remove per_cu, per_objfile paramters.
6365 Add dwarf2_cu parameter.
6366 (process_queue): Update.
6367
168c9250
SM
63682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6369
6370 * dwarf2/read.c (create_cu_from_index_list): Replace
6371 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6372 (create_cus_from_index_list): Likewise.
6373 (create_cus_from_index): Likewise.
6374 (create_signatured_type_table_from_index): Likewise.
6375 (create_cus_from_debug_names_list): Likewise.
6376 (create_cus_from_debug_names): Likewise.
6377 (dwarf2_read_gdb_index): Update.
6378 (dwarf2_read_debug_names): Update.
6379
e286671b
TT
63802020-05-27 Tom Tromey <tom@tromey.com>
6381 Simon Marchi <simon.marchi@efficios.com>
6382
6383 * dwarf2/read.h (struct dwarf2_per_objfile)
6384 <get_type_for_signatured_type, set_type_for_signatured_type>:
6385 New methods.
6386 <m_type_map>: New member.
6387 (struct signatured_type) <type>: Remove.
6388 * dwarf2/read.c
6389 (dwarf2_per_objfile::get_type_for_signatured_type,
6390 dwarf2_per_objfile::set_type_for_signatured_type): New.
6391 (get_signatured_type): Use new methods.
6392
8adb8487
TT
63932020-05-27 Tom Tromey <tom@tromey.com>
6394 Simon Marchi <simon.marchi@efficios.com>
6395
6396 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6397 (struct dwarf2_per_objfile) <type_units>: New member.
6398 <get_type_unit_group_unshareable>: New method.
6399 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6400 num_symtabs, symtabs>: Remove; move to
6401 type_unit_group_unshareable.
6402 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6403 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6404 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6405
127bbf4b
SM
64062020-05-27 Simon Marchi <simon.marchi@efficios.com>
6407
6408 * dwarf2/read.h (struct dwarf2_per_cu_data):
6409 <dwarf2_per_objfile>: Remove.
6410 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6411 dwarf2_per_objfile.
6412 (create_signatured_type_table_from_index): Likewise.
6413 (create_signatured_type_table_from_debug_names): Likewise.
6414 (create_debug_type_hash_table): Likewise.
6415 (fill_in_sig_entry_from_dwo_entry): Likewise.
6416 (create_type_unit_group): Likewise.
6417 (read_comp_units_from_section): Likewise.
6418 (create_cus_hash_table): Likewise.
6419
f6e649dd
SM
64202020-05-27 Simon Marchi <simon.marchi@efficios.com>
6421
6422 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6423 dwarf2_per_cu_data::dwarf2_per_objfile.
6424 (compute_compunit_symtab_includes): Likewise.
6425 (dwarf2_cu::start_symtab): Likewise.
6426
aa66c379
SM
64272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6428
6429 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6430 parameter.
6431 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6432 (read_namespace_alias): Update.
6433 (lookup_die_type): Update.
6434 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6435 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6436 Update.
6437 (disassemble_dwarf_expression): Update.
6438
120ce1b5
SM
64392020-05-27 Simon Marchi <simon.marchi@efficios.com>
6440
6441 * dwarf2/read.h (struct dwarf2_queue_item): Add
6442 dwarf2_per_objfile parameter, assign new parameter.
6443 <per_objfile>: New field.
6444 * dwarf2/read.c (free_one_cached_comp_unit): Add
6445 dwarf2_per_objfile parameter.
6446 (queue_comp_unit): Likewise.
6447 (dw2_do_instantiate_symtab): Update.
6448 (process_psymtab_comp_unit): Update.
6449 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6450 (process_imported_unit_die): Update.
6451 (queue_and_load_dwo_tu): Update.
6452 (follow_die_offset): Update.
6453 (follow_die_sig_1): Update.
6454
9f47c707
SM
64552020-05-27 Simon Marchi <simon.marchi@efficios.com>
6456
6457 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6458 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6459 (read_call_site_scope): Assign per_objfile.
6460 (dwarf2_per_cu_data::objfile): Remove.
6461 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6462 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6463 dwarf2_per_objfile parameter.
6464 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6465 dwarf2_per_objfile parameter.
6466 (dwarf_expr_reg_to_entry_parameter): Add output
6467 dwarf2_per_objfile parameter.
6468 (locexpr_get_frame_base): Update.
6469 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6470 <push_dwarf_reg_entry_value>: Update.
6471 <call_site_to_target_addr>: Update.
6472 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6473 parameter.
6474 (value_of_dwarf_reg_entry): Update.
6475 (rw_pieced_value): Update.
6476 (indirect_synthetic_pointer): Update.
6477 (dwarf2_evaluate_property): Update.
6478 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6479 parameter.
6480 (locexpr_read_variable): Update.
6481 (locexpr_get_symbol_read_needs): Update.
6482 (loclist_read_variable): Update.
6483
14095eb3
SM
64842020-05-27 Simon Marchi <simon.marchi@efficios.com>
6485
6486 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6487 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6488 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6489 parameter.
6490 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6491 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6492 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6493 parameter.
6494 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6495 sect_variable_value): Add dwarf2_per_objfile parameter.
6496 (class dwarf_evaluate_loc_desc) <dwarf_call,
6497 dwarf_variable_value>: Update.
6498 (fetch_const_value_from_synthetic_pointer): Add
6499 dwarf2_per_objfile parameter.
6500 (fetch_const_value_from_synthetic_pointer): Update.
6501 (coerced_pieced_ref): Update.
6502 (class symbol_needs_eval_context) <dwarf_call,
6503 dwarf_variable_value>: Update.
6504 (dwarf2_compile_expr_to_ax): Update.
6505
3c3cd3d4
SM
65062020-05-27 Simon Marchi <simon.marchi@efficios.com>
6507
6508 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6509 parameter.
6510 (dwarf2_evaluate_loc_desc_full): Update.
6511
82ca3f51
SM
65122020-05-27 Simon Marchi <simon.marchi@efficios.com>
6513
6514 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6515 parameter.
6516 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6517 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6518 dwarf2_per_objfile parameter.
6519 (decode_debug_loc_dwo_addresses): Likewise.
6520 (dwarf2_find_location_expression): Update.
6521 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6522 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6523 parameter.
6524 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6525 parameter.
6526 (locexpr_describe_location_1): Likewise.
6527 (locexpr_describe_location): Update.
6528
4b167ea1
SM
65292020-05-27 Simon Marchi <simon.marchi@efficios.com>
6530
6531 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6532 Remove.
6533 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6534 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6535 (dwarf2_compile_property_to_c): Update.
6536 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6537 use text offset from objfile.
6538 (locexpr_tracepoint_var_ref): Update.
6539 (locexpr_generate_c_location): Update.
6540 (loclist_describe_location): Update.
6541 (loclist_tracepoint_var_ref): Update.
6542 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6543 dwarf2_per_objfile parameter.
6544 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6545 use text offset from objfile.
6546 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6547
89b07335
SM
65482020-05-27 Simon Marchi <simon.marchi@efficios.com>
6549
6550 * dwarf2/expr.h (struct dwarf_expr_context)
6551 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6552 <offset>: Remove.
6553 <per_objfile>: New member.
6554 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6555 dwarf2_per_objfile parameter. Don't set offset, set
6556 per_objfile.
6557 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6558 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6559 a dwarf2_per_objfile object instead of an offset.
6560 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6561 constructor.
6562 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6563 to dwarf2_expr_executor constructor. Don't set offset.
6564 (dwarf2_fetch_cfa_info): Update.
6565 (struct dwarf2_frame_cache) <text_offset>: Remove.
6566 <per_objfile>: New field.
6567 (dwarf2_frame_cache): Update.
6568 (dwarf2_frame_prev_register): Update.
6569 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6570 <dwarf_evaluate_loc_desc>: Add constructor.
6571 (dwarf2_evaluate_loc_desc_full): Update.
6572 (dwarf2_locexpr_baton_eval): Update.
6573 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6574 Add constructor.
6575 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6576
293e7e51
SM
65772020-05-27 Simon Marchi <simon.marchi@efficios.com>
6578
6579 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6580 addr_sized_int_type>: Move to dwarf2_cu.
6581 <int_type>: Move to dwarf2_per_objfile.
6582 (struct dwarf2_per_objfile) <int_type>: Move here.
6583 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6584 addr_sized_int_type>: Move here.
6585 (read_func_scope): Update.
6586 (read_array_type): Update.
6587 (read_tag_string_type): Update.
6588 (attr_to_dynamic_prop): Update.
6589 (dwarf2_per_cu_data::int_type): Rename to...
6590 (dwarf2_per_objfile::int_type): ... this.
6591 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6592 (dwarf2_cu::addr_sized_int_type): ... this.
6593 (read_subrange_type): Update.
6594 (dwarf2_per_cu_data::addr_type): Rename to...
6595 (dwarf2_cu::addr_type): ... this.
6596 (set_die_type): Update.
6597
64874a40
SM
65982020-05-27 Simon Marchi <simon.marchi@efficios.com>
6599
6600 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6601 data through per_cu->cu.
6602
4ab09049
SM
66032020-05-27 Simon Marchi <simon.marchi@efficios.com>
6604
6605 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6606 dwarf2_per_cu_data parameter fo dwarf2_cu.
6607 (lookup_dwo_type_unit): Likewise.
6608 (read_cutu_die_from_dwo): Likewise.
6609 (lookup_dwo_unit): Likewise.
6610 (open_and_init_dwo_file): Likewise.
6611 (lookup_dwo_cutu): Likewise.
6612 (lookup_dwo_comp_unit): Likewise.
6613 (lookup_dwo_type_unit): Likewise.
6614 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6615 (cutu_reader::cutu_reader): Update.
6616
47b14e86
SM
66172020-05-27 Simon Marchi <simon.marchi@efficios.com>
6618
6619 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6620 parameter.
6621 (process_full_type_unit): Likewise.
6622 (process_queue): Update.
6623
43182c09
SM
66242020-05-27 Simon Marchi <simon.marchi@efficios.com>
6625
6626 * dwarf2/read.c (recursively_compute_inclusions): Add
6627 dwarf2_per_objfile parameter.
6628 (compute_compunit_symtab_includes): Likewise.
6629 (process_cu_includes): Update.
6630
7aa104c4
SM
66312020-05-27 Simon Marchi <simon.marchi@efficios.com>
6632
6633 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6634 parameter.
6635 (create_type_unit_group): Update.
6636 (process_psymtab_comp_unit_reader): Update.
6637 (build_type_psymtabs_reader): Update.
6638
e3beb21d
SM
66392020-05-27 Simon Marchi <simon.marchi@efficios.com>
6640
6641 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6642 object through m_this_cu->cu.
6643
d460f660
SM
66442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6645
6646 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6647 the info parameter.
6648 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6649
ab432490
SM
66502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6651
6652 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6653 per_objfile parameter.
6654 (load_full_type_unit): Add per_objfile parameter.
6655 (read_signatured_type): Likewise.
6656 (load_full_comp_unit): Likewise.
6657 (load_cu): Likewise.
6658 (dw2_do_instantiate_symtab): Likewise.
6659 (dw2_get_file_names): Likewise.
6660 (dw2_map_symtabs_matching_filename): Update.
6661 (dw_expand_symtabs_matching_file_matcher): Update.
6662 (dw2_map_symbol_filenames): Update.
6663 (process_psymtab_comp_unit): Add per_objfile parameter.
6664 (build_type_psymtabs_1): Update.
6665 (process_skeletonless_type_unit): Update.
6666 (dwarf2_build_psymtabs_hard): Update.
6667 (load_partial_comp_unit): Add per_objfile parameter.
6668 (scan_partial_symbols): Update.
6669 (load_full_comp_unit): Add per_objfile parameter.
6670 (process_imported_unit_die): Update.
6671 (create_cus_hash_table): Update.
6672 (find_partial_die): Update.
6673 (dwarf2_read_addr_index): Update.
6674 (follow_die_offset): Update.
6675 (dwarf2_fetch_die_loc_sect_off): Update.
6676 (dwarf2_fetch_constant_bytes): Update.
6677 (dwarf2_fetch_die_type_sect_off): Update.
6678 (follow_die_sig_1): Update.
6679 (load_full_type_unit): Add per_objfile parameter.
6680 (read_signatured_type): Likewise.
6681
313bad1b
SM
66822020-05-27 Simon Marchi <simon.marchi@efficios.com>
6683
6684 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6685 of objfile_name.
6686
c3699833
SM
66872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6688
6689 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6690 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6691 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6692 field.
6693 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6694 (create_cus_from_index): Update.
6695 (dwarf2_read_gdb_index): Update.
6696 (create_cus_from_debug_names): Update.
6697 (dwarf2_read_debug_names): Update.
6698 (get_abbrev_section_for_cu): Update.
6699 (create_all_comp_units): Update.
6700 (read_attribute_value): Update.
6701 (get_debug_line_section): Update.
6702 * dwarf2/index-cache.c (index_cache::store): Update.
6703 * dwarf2/index-write.c (save_gdb_index_command): Update.
6704 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6705
1859c670
SM
67062020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6707
6708 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6709 member.
6710 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6711 dwarf2_per_cu_data::per_bfd.
6712 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6713 (create_type_unit_group): Likewise.
6714 (queue_comp_unit): Remove reference to
6715 per_cu->dwarf2_per_objfile.
6716 (maybe_queue_comp_unit): Likewise.
6717 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6718 (create_cus_hash_table): Assign new field.
6719
5e22e966
SM
67202020-05-27 Simon Marchi <simon.marchi@efficios.com>
6721
6722 * dwarf2/read.c: Replace
6723 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6724 dwarf2_cu->per_objfile throughout.
6725
97a1449a
SM
67262020-05-27 Simon Marchi <simon.marchi@efficios.com>
6727
6728 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6729 parameter, don't use per_cu->dwarf2_per_objfile.
6730 (dw2_instantiate_symtab): Likewise.
6731 (dw2_find_last_source_symtab): Update.
6732 (dw2_map_expand_apply): Update.
6733 (dw2_lookup_symbol): Update.
6734 (dw2_expand_symtabs_for_function): Update.
6735 (dw2_expand_all_symtabs): Update.
6736 (dw2_expand_symtabs_with_fullname): Update.
6737 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6738 don't use per_cu->dwarf2_per_objfile.
6739 (dw2_expand_marked_cus): Update.
6740 (dw2_find_pc_sect_compunit_symtab): Update.
6741 (dw2_debug_names_lookup_symbol): Update.
6742 (dw2_debug_names_expand_symtabs_for_function): Update.
6743 (dw2_debug_names_map_matching_symbols): Update.
6744 (dwarf2_psymtab::expand_psymtab): Update.
6745
9e021579
SM
67462020-05-27 Simon Marchi <simon.marchi@efficios.com>
6747
6748 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6749 <per_objfile>: New member.
6750 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6751 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6752 call to dwarf2_cu.
6753 (cutu_reader::cutu_reader): Update.
6754 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6755
ae090bdb
SM
67562020-05-27 Simon Marchi <simon.marchi@efficios.com>
6757
6758 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6759 struct dwarf2_per_objfile.
6760 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6761 dwarf2_per_bfd.
6762 * dwarf2/read.c (set_die_type): Update.
6763 (get_die_type_at_offset): Update.
6764
af758d11
SM
67652020-05-27 Tom Tromey <tom@tromey.com>
6766 Simon Marchi <simon.marchi@efficios.com>
6767
6768 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6769 method.
6770 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6771 get_symtab, set_symtab>: New methods.
6772 <m_symtabs>: New field.
6773 (struct dwarf2_psymtab): Derive from partial_symtab.
6774 <readin_p, get_compunit_symtab>: Declare methods.
6775 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6776 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6777 New methods.
6778 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6779 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6780 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6781 (dw2_symtab_iter_next, dw2_print_stats)
6782 (dw2_expand_symtabs_with_fullname)
6783 (dw2_expand_symtabs_matching_one)
6784 (dw_expand_symtabs_matching_file_matcher)
6785 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6786 (dw2_debug_names_iterator::next)
6787 (dw2_debug_names_map_matching_symbols)
6788 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6789 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6790 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6791 New methods.
6792 (get_compunit_symtab, process_full_comp_unit)
6793 (process_full_type_unit): Update.
6794 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6795
5989a64e
SM
67962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6797
6798 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6799 then introduce a new dwarf2_per_objfile type.
6800 <read_line_string>: Move to the new dwarf2_per_objfile type.
6801 <objfile>: Likewise.
6802 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6803 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6804 dwarf2_per_objfile->per_bfd.
6805 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6806 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6807 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6808 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6809 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6810 (dwarf2_per_objfile::locate_sections): Rename to...
6811 (dwarf2_per_bfd::locate_sections): ... this.
6812 (dwarf2_per_objfile::get_cutu): Rename to...
6813 (dwarf2_per_bfd::get_cutu): ... this.
6814 (dwarf2_per_objfile::get_cu): Rename to...
6815 (dwarf2_per_bfd::get_cu): ... this.
6816 (dwarf2_per_objfile::get_tu): Rename to...
6817 (dwarf2_per_bfd::get_tu): ... this.
6818 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6819 (dwarf2_per_bfd::allocate_per_cu): ... this.
6820 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6821 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6822 (get_gdb_index_contents_ftype): Change parameter from
6823 dwarf2_per_objfile to dwarf2_per_bfd.
6824 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6825 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6826
a50264ba
TT
68272020-05-27 Tom Tromey <tom@tromey.com>
6828 Simon Marchi <simon.marchi@efficios.com>
6829
6830 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6831 (allocate_piece_closure): Set "per_objfile" member.
6832 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6833 (locexpr_describe_location, loclist_describe_location): Use new
6834 member.
6835 * dwarf2/read.c (read_call_site_scope)
6836 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6837 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6838 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6839 handle_data_member_location): Set per_objfile member.
6840 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6841 member.
6842 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6843
d3473f0c
TT
68442020-05-27 Tom Tromey <tom@tromey.com>
6845
6846 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6847 allocate_signatured_type>: Declare new methods.
6848 <m_num_psymtabs>: New member.
6849 (struct dwarf2_per_cu_data) <index>: New member.
6850 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6851 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6852 (create_cu_from_index_list): Use allocate_per_cu.
6853 (create_signatured_type_table_from_index)
6854 (create_signatured_type_table_from_debug_names)
6855 (create_debug_type_hash_table, add_type_unit)
6856 (read_comp_units_from_section): Use allocate_signatured_type.
6857
5717c425
TT
68582020-05-27 Tom Tromey <tom@tromey.com>
6859
6860 * psymtab.c (partial_map_expand_apply)
6861 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6862 (psym_lookup_global_symbol_language)
6863 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6864 (psym_print_stats, psym_expand_symtabs_for_function)
6865 (psym_map_symbol_filenames, psym_map_matching_symbols)
6866 (psym_expand_symtabs_matching)
6867 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6868 (maintenance_check_psymtabs): Update.
6869 * psympriv.h (struct partial_symtab) <readin_p,
6870 get_compunit_symtab>: Add objfile parameter.
6871 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6872 Likewise.
6873 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6874 get_compunit_symtab>: Likewise.
6875 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6876
45940949
TT
68772020-05-27 Tom Tromey <tom@tromey.com>
6878
6879 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6880 member.
6881 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6882 (create_cu_from_index_list)
6883 (create_signatured_type_table_from_index)
6884 (create_signatured_type_table_from_debug_names)
6885 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6886 (dwarf2_create_include_psymtab)
6887 (create_debug_type_hash_table, add_type_unit)
6888 (create_type_unit_group, read_comp_units_from_section)
6889 (dwarf2_compute_name, create_cus_hash_table)
6890 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6891 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6892 obstack.
6893 (dw2_get_real_path): Likewise. Change argument to
6894 dwarf2_per_objfile.
6895
f8c6d152
LM
68962020-05-27 Luis Machado <luis.machado@linaro.org>
6897
6898 PR tdep/26000
6899 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6900 for ldrd (immediate).
6901
e98d2e6d
PW
69022020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6903
6904 * command.h: Add comment giving the name of class_tui.
6905 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6906 create the fake command for the help for class_tui.
6907
53a47a3e
TT
69082020-05-26 Tom Tromey <tromey@adacore.com>
6909
6910 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6911 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6912 (val_atr): New function.
6913 (value_val_atr): Use it.
6914 * ada-valprint.c (print_optional_low_bound): Change low bound
6915 handling for enums.
6916 (val_print_packed_array_elements): Don't call discrete_position.
6917 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6918 discrete_position for enum types.
6919 * language.c (default_print_array_index): Change type.
6920 * language.h (struct language_defn) <la_print_array_index>: Add
6921 index_type parameter, change type of index_value.
6922 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6923 (default_print_array_index): Update.
6924 * valprint.c (maybe_print_array_index): Don't call
6925 value_from_longest. Update.
6926 (value_print_array_elements): Don't call discrete_position.
6927
0bc2354b
TT
69282020-05-26 Tom Tromey <tromey@adacore.com>
6929
6930 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6931 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6932
1218a4bf
CDA
69332020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6934
6935 PR gdb/13519
6936 * avr-tdep.c (avr_integer_to_address): Return data or code
6937 address accordingly to the second 'type' argument of the
6938 function.
6939
92651b1d
MW
69402020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6941
6942 * infcmd.c, inferior.h: (construct_inferior_arguments):
6943 Moved function from here to gdbsupport/common-inferior.{h,cc}
6944
0a4f5f8c
TT
69452020-05-23 Tom Tromey <tom@tromey.com>
6946
6947 Revert commit eca1f90c:
6948 * NEWS: Remove entry for completion styling.
6949 * completer.c (_rl_completion_prefix_display_length): Move
6950 declaration later.
6951 (gdb_fnprint): Revert.
6952 (gdb_display_match_list_1): Likewise.
6953 * cli/cli-style.c (completion_prefix_style)
6954 (completion_difference_style, completion_suffix_style): Remove.
6955 (_initialize_cli_style): Revert.
6956 * cli/cli-style.h (completion_prefix_style)
6957 (completion_difference_style, completion_suffix_style): Don't
6958 declare.
6959
e08bd6c5
PA
69602020-05-24 Pedro Alves <palves@redhat.com>
6961
6962 * symtab.c (completion_list_add_name): Return boolean indication
6963 of whether the symbol matched.
6964 (completion_list_add_symbol): Don't try to remove C++ aliases if
6965 the symbol didn't match in the first place.
6966 * symtab.h (completion_list_add_name): Return bool.
6967
ceacbf6e
SM
69682020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6969
6970 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6971 type::field.
6972
26f16254
JB
69732020-05-23 Joel Brobecker <brobecker@adacore.com>
6974
6975 GDB 9.2 released.
6976
eca1f90c
TT
69772020-05-23 Tom Tromey <tom@tromey.com>
6978
6979 * NEWS: Add entry for completion styling.
6980 * completer.c (_rl_completion_prefix_display_length): Move
6981 declaration earlier.
6982 (gdb_fnprint): Use completion_style.
6983 (gdb_display_match_list_1): Likewise.
6984 * cli/cli-style.c (completion_prefix_style)
6985 (completion_difference_style, completion_suffix_style): New
6986 globals.
6987 (_initialize_cli_style): Register new globals.
6988 * cli/cli-style.h (completion_prefix_style)
6989 (completion_difference_style, completion_suffix_style): Declare.
6990
51e2cfa2
PA
69912020-05-23 Pedro Alves <palves@redhat.com>
6992
6993 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6994 (parse_escape): Use ISDIGIT instead of isdigit.
6995 (puts_debug): Use gdb_isprint instead of isprint.
6996 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6997 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6998 ISSPACE instead of isspace.
6999 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7000 instead of isspace.
7001 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7002 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7003 instead of isxdigit and ISDIGIT instead of isdigit.
7004
80fc5e77
SM
70052020-05-22 Simon Marchi <simon.marchi@efficios.com>
7006
7007 * gdbtypes.h (struct type) <field>: New method.
7008 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7009 or type::field.
7010
3cabb6b0
SM
70112020-05-22 Simon Marchi <simon.marchi@efficios.com>
7012
7013 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7014 (TYPE_FIELDS): Use type::fields. Change all call sites that
7015 modify the propery to use type::set_fields instead.
7016
1f704f76
SM
70172020-05-22 Simon Marchi <simon.marchi@efficios.com>
7018
7019 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7020 type::num_fields instead.
7021
5e33d5f4
SM
70222020-05-22 Simon Marchi <simon.marchi@efficios.com>
7023
7024 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7025 methods.
7026 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7027 that modify the number of fields to use type::set_num_fields
7028 instead.
7029
9392ebb3
TT
70302020-05-22 Tom Tromey <tromey@adacore.com>
7031
7032 * compile/compile-object-load.h (munmap_list_free): Don't
7033 declare.
7034
7c13f4e8
AB
70352020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7036
7037 * annotate.c (annotate_source_line): Update return type, add call
7038 to update current symtab and line.
7039 * annotate.h (annotate_source_line): Update return type, and
7040 extend header comment.
7041 * source.c (info_line_command): Check annotation_level before
7042 calling annotate_source_line.
7043 * stack.c (print_frame_info): If calling annotate_source_line
7044 returns true, then don't print any other source line information.
7045
aa370940
SM
70462020-05-21 Simon Marchi <simon.marchi@efficios.com>
7047
7048 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7049
84d53fa9
SM
70502020-05-21 Simon Marchi <simon.marchi@efficios.com>
7051
7052 * coffread.c (patch_type): Remove NULL check before xfree.
7053 * corefile.c (set_gnutarget): Likewise.
7054 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7055 * exec.c (build_section_table): Likewise.
7056 * remote.c (remote_target::pass_signals): Likewise.
7057 * utils.c (n_spaces): Likewise.
7058 * cli/cli-script.c (document_command): Likewise.
7059 * i386-windows-tdep.c (core_process_module_section): Likewise.
7060 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7061
9d428aae
SM
70622020-05-20 Simon Marchi <simon.marchi@efficios.com>
7063
7064 * symfile.c (reread_symbols): Clear objfile's section_offsets
7065 vector and section indices, re-compute them by calling
7066 sym_offsets.
7067
250106a7
TT
70682020-05-20 Tom Tromey <tromey@adacore.com>
7069
7070 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7071 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7072
9a0bacfb
TV
70732020-05-20 Tom de Vries <tdevries@suse.de>
7074
7075 PR symtab/25833
7076 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7077
7b958a48
AM
70782020-05-20 Alan Modra <amodra@gmail.com>
7079
7080 PR 25993
7081 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7082 bfd_set_filename.
7083 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7084 passed to bfd_set_filename.
7085 * symfile-mem.c (add_vsyscall_page): Likewise for string
7086 passed to symbol_file_add_from_memory.
7087 (symbol_file_add_from_memory): Make name param a const char* and
7088 don't strdup.
7089
c7e97679
AM
70902020-05-20 Alan Modra <amodra@gmail.com>
7091
7092 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7093 rather than accessing bfd->filename directly.
7094 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7095 and use bfd_section_name.
7096 * dwarf2/frame.c (decode_frame_entry): Likewise.
7097 * exec.c (exec_set_section_address): Likewise.
7098 * solib-aix.c (solib_aix_bfd_open): Likewise.
7099 * stap-probe.c (get_stap_base_address): Likewise.
7100 * symfile.c (reread_symbols): Likewise.
7101
563c591b
TT
71022020-05-19 Tom Tromey <tromey@adacore.com>
7103
7104 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7105
f408d82c
SM
71062020-05-19 Simon Marchi <simon.marchi@efficios.com>
7107
7108 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7109
98c59b52
PA
71102020-05-19 Pedro Alves <palves@redhat.com>
7111
7112 * NEWS (set exec-file-mismatch): Adjust entry.
7113 * exec.c: Include "build-id.h".
7114 (validate_exec_file): Try to match build IDs instead of filenames.
7115 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7116 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7117 and pass down 'warn_if_slow'.
7118 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7119 gdb_bfd_open_closure to pass it down.
7120 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7121
4111f652
PA
71222020-05-19 Pedro Alves <palves@redhat.com>
7123
7124 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7125 * target.c (target_fileio_open_1): Rename to target_fileio_open
7126 and make extern. Use bool.
7127 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7128 (target_fileio_read_alloc_1): Adjust.
7129 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7130 (target_fileio_open_warn_if_slow): Delete declaration.
7131
ad80db5b
PA
71322020-05-19 Pedro Alves <palves@redhat.com>
7133
7134 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7135 Adjust all callers.
7136
1d6ce4d3
YS
71372020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7138
7139 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7140 whether disp is negative.
7141
9005fbbb
SM
71422020-05-19 Simon Marchi <simon.marchi@efficios.com>
7143
7144 * symfile.h (struct symfile_segment_data)
7145 <~symfile_segment_data>: Remove.
7146 <segment_info>: Change to std::vector.
7147 * symfile.c (default_symfile_segments): Update.
7148 * elfread.c (elf_symfile_segments): Update.
7149
68b888ff
SM
71502020-05-19 Simon Marchi <simon.marchi@efficios.com>
7151
7152 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7153 <segments>: New.
7154 <segment_bases, segment_sizes>: Remove.
7155 * symfile.c (default_symfile_segments): Update.
7156 * elfread.c (elf_symfile_segments): Update.
7157 * remote.c (remote_target::get_offsets): Update.
7158 * solib-target.c (solib_target_relocate_section_addresses):
7159 Update.
7160
62982abd
SM
71612020-05-19 Simon Marchi <simon.marchi@efficios.com>
7162
7163 * symfile.h (struct symfile_segment_data): Initialize fields.
7164 <~symfile_segment_data>: Add.
7165 (symfile_segment_data_up): New.
7166 (struct sym_fns) <sym_segments>: Return a
7167 symfile_segment_data_up.
7168 (default_symfile_segments): Return a symfile_segment_data_up.
7169 (free_symfile_segment_data): Remove.
7170 (get_symfile_segment_data): Return a symfile_segment_data_up.
7171 * symfile.c (default_symfile_segments): Likewise.
7172 (get_symfile_segment_data): Likewise.
7173 (free_symfile_segment_data): Remove.
7174 (symfile_find_segment_sections): Update.
7175 * elfread.c (elf_symfile_segments): Return a
7176 symfile_segment_data_up.
7177 * remote.c (remote_target::get_offsets): Update.
7178 * solib-target.c (solib_target_relocate_section_addresses):
7179 Update.
7180 * symfile-debug.c (debug_sym_segments): Return a
7181 symfile_segment_data_up.
7182
7f204339
RO
71832020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7184
e52a0f1b
RO
7185 PR build/25981
7186 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7187 Hardcode register numbers.
7188
7f204339
RO
7189 PR build/25981
7190 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7191 procfs_find_LDT_entry): Remove.
7192 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7193 procfs_find_LDT_entry): Remove.
7194 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7195 Remove.
7196
7f32a4d5
PA
71972020-05-17 Pedro Alves <palves@redhat.com>
7198 Andrew Burgess <andrew.burgess@embecosm.com>
7199 Keno Fischer <keno@juliacomputing.com>
7200
7201 PR gdb/25741
7202 * breakpoint.c (build_target_condition_list): Update comments.
7203 (build_target_command_list): Update comments and skip matching
7204 locations.
7205 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7206 a separate function. Simplify "set breakpoint auto-hw off"
7207 handling.
7208 (insert_breakpoints): Update comment.
7209 (tracepoint_locations_match): New parameter. For breakpoints,
7210 compare location types too, if the caller wants to.
7211 (handle_automatic_hardware_breakpoints): New functions.
7212 (bp_location_is_less_than): Also sort by location type and
7213 hardware breakpoint length.
7214 (update_global_location_list): Handle "set breakpoint auto-hw on"
7215 here.
7216 (update_breakpoint_locations): Ask breakpoint_locations_match to
7217 ignore location types.
7218
7d93a1e0
SM
72192020-05-16 Simon Marchi <simon.marchi@efficios.com>
7220
7221 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7222 type::name instead.
7223
d0e39ea2
SM
72242020-05-16 Simon Marchi <simon.marchi@efficios.com>
7225
7226 * gdbtypes.h (struct type) <name, set_name>: New methods.
7227 (TYPE_CODE): Use type::name. Change all call sites used to set
7228 the name to use type::set_name instead.
7229
2dab0c7b
TT
72302020-05-16 Tom Tromey <tom@tromey.com>
7231
7232 * top.c (quit_force): Update.
7233 * infrun.c (handle_no_resumed): Update.
7234 * top.h (all_uis): New function.
7235 (ALL_UIS): Remove.
7236
59f7bd8d
SM
72372020-05-16 Simon Marchi <simon.marchi@efficios.com>
7238
7239 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7240
9bf058f0
PA
72412020-05-16 Pedro Alves <palves@redhat.com>
7242
7243 * ia64-linux-nat.c
7244 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7245 Declare method.
7246 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7247
8f86ae1a
SM
72482020-05-15 Simon Marchi <simon.marchi@efficios.com>
7249
7250 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7251 (sparc64_adi_info): Likewise.
7252
d6bc0792
TT
72532020-05-15 Tom Tromey <tom@tromey.com>
7254
7255 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7256 block_objfile.
7257 (lookup_objfile_from_block): Remove.
7258 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7259 (lookup_global_symbol): Use block_objfile.
7260 * symtab.h (lookup_objfile_from_block): Don't declare.
7261 * printcmd.c (clear_dangling_display_expressions): Use
7262 block_objfile.
7263 * parse.c (operator_check_standard): Use block_objfile.
7264
8c14c3a3
TT
72652020-05-15 Tom Tromey <tom@tromey.com>
7266
7267 * language.c (language_alloc_type_symbol): Set
7268 SYMBOL_SECTION.
7269 * symtab.c (initialize_objfile_symbol): Remove.
7270 (allocate_symbol): Remove.
7271 (allocate_template_symbol): Remove.
7272 * dwarf2/read.c (fixup_go_packaging): Use "new".
7273 (new_symbol): Use "new".
7274 (read_variable): Don't call initialize_objfile_symbol. Use
7275 "new".
7276 (read_func_scope): Use "new".
7277 * xcoffread.c (process_xcoff_symbol): Don't call
7278 initialize_objfile_symbol.
7279 (SYMBOL_DUP): Remove.
7280 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7281 "new".
7282 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7283 (allocate_template_symbol): Don't declare.
7284 (struct symbol): Add copy constructor. Change defaults.
7285 * jit.c (finalize_symtab): Use "new".
7286 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7287 Use "new".
7288 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7289 (common_block_end): Use "new".
7290 * mdebugread.c (parse_symbol): Use "new".
7291 (new_symbol): Likewise.
7292
5b4a1a8d
PW
72932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7294
7295 * NEWS: Mention changes to help and apropos.
7296
57b4f16e
PW
72972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7298
7299 * command.h (enum command_class): Improve comments, document
7300 that class_alias is for user-defined aliases, give the class
7301 name for each class, remove unused class_xdb.
7302 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7303 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7304 by a precise class.
7305 * infcmd.c (_initialize_infcmd): Likewise.
7306 * reverse.c (_initialize_reverse): Likewise.
7307 * stack.c (_initialize_stack): Likewise.
7308 * symfile.c (_initialize_symfile): Likewise.
7309 * tracepoint.c (_initialize_tracepoint): Likewise.
7310
7c05caf7
PW
73112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7312
7313 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7314 when their aliased command is traversed.
7315 (help_cmd): Add fput_command_names_styled call to
7316 output command name and aliases when command has an alias.
7317
3b3aaacb
PW
73182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7319
7320 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7321 * cli/cli-decode.c (help_cmd_list): Declare as static,
7322 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7323 a command together with the command.
7324 (fput_command_name_styled, fput_command_names_styled): New functions.
7325 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7326 fput_command_name_styled.
7327 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7328 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7329
7aa1b46f
PW
73302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7331
7332 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7333 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7334 * command.h (cmd_show_list): Likewise.
7335 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7336 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7337
89bcba74
PW
73382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7339
7340 * unittests/command-def-selftests.c (traverse_command_structure):
7341 Verify all commands of a list have the same prefix command and
7342 that only the top cmdlist commands have a null prefix.
7343
3f4d92eb
PW
73442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7345
7346 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7347 as prefix, not one of its aliases.
7348 (set_cmd_prefix): Remove.
7349 (do_add_cmd): Centralize the setting of the prefix of a command, when
7350 command is defined after its full chain of prefix commands.
7351 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7352 (add_setshow_cmd_full): Likewise.
7353 (update_prefix_field_of_prefixed_commands): New function.
7354 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7355 update_prefix_field_of_prefixed_commands.
7356 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7357 addresses of remote_set_cmdlist and remote_show_cmdlist given
7358 as argument, not the address of an argument.
7359 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7360 * gdb/remote.c (_initialize_remote): Likewise.
7361
0605465f
PW
73622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7363
7364 * cli/cli-cmds.c (alias_command): Check for an existing alias
7365 using lookup_cmd_composition, as valid_command_p is too strict
7366 and forbids aliases that are the prefix of an existing alias
7367 or command.
7368 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7369 command is properly recognised as a valid command.
7370
58e6ac70
PW
73712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7372
7373 * unittests/help-doc-selftests.c: Rename to
7374 unittests/command-def-selftests.c
7375 * unittests/command-def-selftests.c (help_doc_tests): Update some
7376 comments.
7377 (command_structure_tests, traverse_command_structure): New namespace
7378 and function.
7379 (command_structure_invariants_tests): New function.
7380 (_initialize_command_def_selftests) Renamed from
7381 _initialize_help_doc_selftests, register command_structure_invariants
7382 selftest.
7383
a7b9ceb8
PW
73842020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7385
7386 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7387 an alias of 'show'.
7388
b2188a06
JB
73892020-05-15 Joel Brobecker <brobecker@adacore.com>
7390
7391 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7392 ada_is_fixed_point_type. Update all callers.
7393 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7394 all callers.
7395 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7396 Update all callers.
7397 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7398 print_fixed_point_type. Update all callers.
7399 * ada-valprint.c (ada_value_print_num): Replace call to
7400 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7401
a51951c2
KB
74022020-05-14 Kevin Buettner <kevinb@redhat.com>
7403
7404 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7405 processors.
7406 (cpu_supports_bts): Add CV_AMD case.
7407
29d6859f
LM
74082020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7409 Simon Marchi <simon.marchi@efficios.com>
7410
7411 * infrun.c (stop_all_threads): Collect multiple wait events at
7412 each pass.
7413
78134374
SM
74142020-05-14 Simon Marchi <simon.marchi@efficios.com>
7415
7416 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7417 type::code instead.
7418
67607e24
SM
74192020-05-14 Simon Marchi <simon.marchi@efficios.com>
7420
7421 * gdbtypes.h (struct type) <code, set_code>: New methods.
7422 (TYPE_CODE): Use type::code. Change all call sites used to set
7423 the code to use type::set_code instead.
7424
a05575d3
TBA
74252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7426 Tom de Vries <tdevries@suse.de>
7427 Pedro Alves <palves@redhat.com>
7428
7429 PR threads/25478
7430 * infrun.c (stop_all_threads): Do NOT ignore
7431 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7432 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7433 received.
7434 (handle_no_resumed): Remove code handling a live inferior with no
7435 threads.
7436 * remote.c (has_single_non_exited_thread): New.
7437 (remote_target::update_thread_list): Do not delete a thread if is
7438 the last thread of the process.
7439 * thread.c (thread_select): Call delete_exited_threads instead of
7440 prune_threads.
7441
6ad82919
TBA
74422020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7443
7444 * infrun.c (stop_all_threads): Enable/disable thread events of all
7445 targets. Move a debug message denoting the end of the function
7446 into the SCOPED_EXIT block.
7447
d890404b
TBA
74482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7449
7450 * process-stratum-target.h: Include <set>.
7451 (all_non_exited_process_targets, switch_to_target_no_thread): New
7452 function declarations.
7453 * process-stratum-target.c (all_non_exited_process_targets)
7454 (switch_to_target_no_thread): New function implementations.
7455
293b3ebc
TBA
74562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7457
7458 * infrun.c (handle_inferior_event): Extract out a piece of code
7459 into...
7460 (mark_non_executing_threads): ...this new function.
7461
7ca9b62a
TBA
74622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7463
7464 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7465 use.
7466
fc75c28b
TBA
74672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7468
7469 * regcache.c (regcache_read_pc_protected): New function
7470 implementation that returns 0 if the PC cannot read via
7471 'regcache_read_pc'.
7472 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7473 instead of 'regcache_read_pc'.
7474 (keep_going_pass_signal): Ditto.
7475
a89febbd
TT
74762020-05-13 Tom Tromey <tromey@adacore.com>
7477
7478 * ada-lang.c (align_value): Remove.
7479 (ada_template_to_fixed_record_type_1): Use align_up.
7480
f7e23710
TBA
74812020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7482
7483 * async-event.c: Update the copyright year.
7484 * async-event.h: Update the copyright year.
7485
02ff80c2
SM
74862020-05-12 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * objfiles.h (is_addr_in_objfile,
7489 shared_objfile_contains_address_p): Return bool.
7490 * objfile.c (is_addr_in_objfile,
7491 shared_objfile_contains_address_p): Return bool.
7492
4fd6c7e8
TT
74932020-05-11 Tom Tromey <tromey@adacore.com>
7494
7495 * cli/cli-cmds.c (info_command): Restore.
7496 (_initialize_cli_cmds): Use add_prefix_command for "info".
7497 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7498
5eb68a39
TT
74992020-05-11 Tom Tromey <tromey@adacore.com>
7500
7501 * ada-lang.c (ada_value_primitive_field): Now public.
7502 * ada-lang.h (ada_value_primitive_field): Declare.
7503 * ada-valprint.c (print_field_values): Use
7504 ada_value_primitive_field for wrapper fields.
7505
7666722f
TV
75062020-05-11 Tom de Vries <tdevries@suse.de>
7507
7508 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7509 MODULE_DOMAIN.
7510
3ee6bb11
TV
75112020-05-11 Tom de Vries <tdevries@suse.de>
7512
7513 PR symtab/25941
7514 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7515 with length 0, if not gdb-produced.
7516 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7517
43434996
TV
75182020-05-09 Tom de Vries <tdevries@suse.de>
7519
7520 PR gdb/25955
7521 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7522 calculation.
7523
2f78cffc
TT
75242020-05-09 Tom Tromey <tom@tromey.com>
7525
7526 * top.c (server_command): Now bool.
7527 * top.h (server_command): Now bool.
7528
4f7bc5ed
TT
75292020-05-08 Tom Tromey <tromey@adacore.com>
7530
7531 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7532 already being processed.
7533
8be4b118
TT
75342020-05-08 Tom Tromey <tom@tromey.com>
7535
7536 * printcmd.c (struct display) <next>: Remove.
7537 <display>: New constructor.
7538 <exp_string>: Now a std::string.
7539 <enabled_p>: Now a bool.
7540 (display_number): Move definition earlier.
7541 (displays): Rename from display_chain. Now a std::vector.
7542 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7543 (display_command): Update.
7544 (do_one_display, disable_display)
7545 (enable_disable_display_command, do_enable_disable_display):
7546 Update.
7547 (free_display): Remove.
7548 (clear_displays): Rewrite.
7549 (delete_display): Update.
7550 (map_display_numbers): Use function_view. Remove "data"
7551 parameter. Update.
7552 (do_delete_display): Remove.
7553 (undisplay_command): Update.
7554 (do_one_display, do_displays, disable_display)
7555 (info_display_command): Update.
7556 (do_enable_disable_display): Remove.
7557 (enable_disable_display_command)
7558 (clear_dangling_display_expressions): Update.
7559
94c93c35
TT
75602020-05-08 Tom Tromey <tom@tromey.com>
7561
7562 * symtab.c (set_symbol_cache_size)
7563 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7564 (maintenance_print_symbol_cache_statistics): Update.
7565 * symmisc.c (print_symbol_bcache_statistics)
7566 (print_objfile_statistics, maintenance_print_objfiles)
7567 (maintenance_info_symtabs, maintenance_check_symtabs)
7568 (maintenance_expand_symtabs, maintenance_info_line_tables):
7569 Update.
7570 * symfile-debug.c (set_debug_symfile): Update.
7571 * source.c (forget_cached_source_info): Update.
7572 * python/python.c (gdbpy_progspaces): Update.
7573 * psymtab.c (maintenance_info_psymtabs): Update.
7574 * probe.c (parse_probes): Update.
7575 * linespec.c (iterate_over_all_matching_symtabs)
7576 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7577 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7578 * exec.c (exec_target::close): Update.
7579 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7580 * breakpoint.c (print_one_breakpoint_location)
7581 (create_longjmp_master_breakpoint)
7582 (create_std_terminate_master_breakpoint): Update.
7583 * progspace.c (program_spaces): Now a std::vector.
7584 (maybe_new_address_space): Update.
7585 (add_program_space): Remove.
7586 (program_space::program_space): Update.
7587 (remove_program_space): Update.
7588 (number_of_program_spaces): Remove.
7589 (print_program_space, update_address_spaces): Update.
7590 * progspace.h (program_spaces): Change type.
7591 (ALL_PSPACES): Remove.
7592 (number_of_program_spaces): Don't declare.
7593 (struct program_space) <next>: Remove.
7594
a1fd1ac9
TT
75952020-05-08 Tom Tromey <tom@tromey.com>
7596
7597 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7598 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7599 (enable_break): Update.
7600 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7601 (frv_fdpic_find_canonical_descriptor): Update.
7602 (frv_fetch_objfile_link_map): Update.
7603 * progspace.c (program_space::free_all_objfiles): Update.
7604 (program_space::solibs): New method.
7605 * progspace.h (struct program_space) <solibs>: New method.
7606 * solist.h (master_so_list): Don't declare.
7607 (ALL_SO_LIBS): Remove.
7608 * solib.h (so_list_head): Remove.
7609 (update_solib_list): Update comment.
7610 * solib.c (master_so_list): Remove.
7611 (solib_used, update_solib_list, solib_add)
7612 (info_sharedlibrary_command, clear_solib)
7613 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7614
38eae084
TT
76152020-05-08 Tom Tromey <tom@tromey.com>
7616
7617 * extension.c (extension_languages): Now a std::array.
7618 (ALL_EXTENSION_LANGUAGES): Remove.
7619 (get_ext_lang_defn, get_ext_lang_of_file)
7620 (eval_ext_lang_from_control_command): Update.
7621 (finish_ext_lang_initialization)
7622 (auto_load_ext_lang_scripts_for_objfile)
7623 (ext_lang_type_printers::ext_lang_type_printers)
7624 (apply_ext_lang_type_printers)
7625 (ext_lang_type_printers::~ext_lang_type_printers)
7626 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7627 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7628 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7629 (get_matching_xmethod_workers, ext_lang_colorize)
7630 (ext_lang_before_prompt): Update.
7631 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7632
596dc4ad
TT
76332020-05-08 Tom Tromey <tom@tromey.com>
7634
7635 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7636 overload.
7637 <swap_string, m_string>: Remove.
7638 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7639 Update.
7640 * stabsread.c (define_symbol, read_type): Update.
7641 * linespec.c (find_linespec_symbols): Update.
7642 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7643 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7644 * dbxread.c (read_dbx_symtab): Update.
7645 * cp-support.h (cp_canonicalize_string_full)
7646 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7647 Return unique_xmalloc_ptr.
7648 * cp-support.c (inspect_type): Update.
7649 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7650 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7651 Likewise.
7652 * c-typeprint.c (print_name_maybe_canonical): Update.
7653 * break-catch-throw.c (check_status_exception_catchpoint):
7654 Update.
7655
bf4cb9be
TV
76562020-05-08 Tom de Vries <tdevries@suse.de>
7657
7658 * infrun.c (follow_fork): Copy current_line and current_symtab to
7659 child thread.
7660
a1b68f28
SM
76612020-05-07 Simon Marchi <simon.marchi@efficios.com>
7662
7663 * async-event.c (struct async_signal_handler, struct
7664 async_event_handler): Reformat, remove typedef.
7665
98d48915
SM
76662020-05-07 Simon Marchi <simon.marchi@efficios.com>
7667
7668 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7669 access thistype->main_type->dyn_prop_list directly.
7670
7aa91313
SM
76712020-05-07 Simon Marchi <simon.marchi@efficios.com>
7672
7673 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7674 (remove_dyn_prop): Remove. Update all users to use
7675 type::remove_dyn_prop.
7676 * gdbtypes.c (remove_dyn_prop): Rename to...
7677 (type::remove_dyn_prop): ... this.
7678
5c54719c
SM
76792020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7680
7681 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7682 (add_dyn_prop): Remove. Update all users to use
7683 type::add_dyn_prop.
7684 * gdbtypes.c (add_dyn_prop): Rename to...
7685 (type::add_dyn_prop): ... this.
7686
24e99c6c
SM
76872020-05-07 Simon Marchi <simon.marchi@efficios.com>
7688
7689 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7690 (get_dyn_prop): Remove. Update all users to use
7691 type::dyn_prop.
7692 * gdbtypes.c (get_dyn_prop): Rename to...
7693 (type::dyn_prop): ... this.
7694
0d4bf016
SM
76952020-05-06 Simon Marchi <simon.marchi@efficios.com>
7696
7697 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7698
ac4a4f1c
SM
76992020-05-06 Simon Marchi <simon.marchi@efficios.com>
7700
7701 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7702 instruction, skip it if it's there.
7703
a3bbacc1
SM
77042020-05-05 Simon Marchi <simon.marchi@efficios.com>
7705
7706 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7707
c3236f84
SM
77082020-05-04 Simon Marchi <simon.marchi@efficios.com>
7709
7710 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7711 * gdbtypes.c (recursive_dump_type): Remove use of
7712 TYPE_INCOMPLETE.
7713
3b6acaee
TT
77142020-05-03 Tom Tromey <tom@tromey.com>
7715
7716 * breakpoint.c (catch_command, tcatch_command): Remove.
7717 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7718 add_show_prefix_cmd.
7719 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7720 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7721 Remove.
7722 (add_internal_problem_command): Use add_basic_prefix_cmd,
7723 add_show_prefix_cmd.
7724 * mips-tdep.c (set_mipsfpu_command): Remove.
7725 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7726 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7727 (_initialize_index_cache): Use add_basic_prefix_cmd.
7728 * memattr.c (dummy_cmd): Remove.
7729 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7730 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7731 (_initialize_tui_win): Use add_basic_prefix_cmd,
7732 add_show_prefix_cmd.
7733 * cli/cli-logging.c (set_logging_command): Remove.
7734 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7735 add_show_prefix_cmd.
7736 (show_logging_command): Remove.
7737 * target.c (target_command): Remove.
7738 (add_target): Use add_basic_prefix_cmd.
7739
a51119cd
HD
77402020-05-02 Hannes Domani <ssbssa@yahoo.de>
7741
7742 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7743
652fc23a 77442020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7745
652fc23a
PW
7746 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7747 info_command.
7748
117539e6
KR
77492020-04-30 Kamil Rytarowski <n54@gmx.com>
7750
7751 * nbsd-nat.c (nbsd_enable_proc_events)
7752 (nbsd_nat_target::post_startup_inferior): Add.
7753 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7754 (nbsd_nat_target::update_thread_list): Rewrite.
7755 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7756 "PTRACE_LWP_CREATE".
7757 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7758
102e38eb 77592020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7760
102e38eb
PW
7761 * stack.c (_initialize_stack): Remove duplicated creation
7762 of "frame" command and "f" alias.
7763
ee9d1e5f
HD
77642020-04-30 Hannes Domani <ssbssa@yahoo.de>
7765
7766 PR gdb/18706
7767 * gdbtypes.c (check_typedef): Calculate size of array of
7768 stubbed type.
7769
627c7fb8
HD
77702020-04-30 Hannes Domani <ssbssa@yahoo.de>
7771
7772 PR gdb/15559
7773 * i386-tdep.c (i386_push_dummy_call): Call
7774 i386_thiscall_push_dummy_call.
7775 (i386_thiscall_push_dummy_call): New function.
7776 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7777 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7778 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7779
ffc2844e
SM
77802020-04-29 Simon Marchi <simon.marchi@efficios.com>
7781
7782 * gdbarch.sh (do_read): Add shellcheck disable directive for
7783 warning SC2162.
7784
1207375d
SM
77852020-04-29 Simon Marchi <simon.marchi@efficios.com>
7786
7787 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7788 "referenced but not assigned" warning.
7789
9fdb2916
SM
77902020-04-29 Simon Marchi <simon.marchi@efficios.com>
7791
7792 * gdbarch.sh: Remove code that sets fallbackdefault.
7793
759cea5e
SM
77942020-04-29 Simon Marchi <simon.marchi@efficios.com>
7795
7796 * gdbarch.sh: Use shell operators && and || instead of
7797 -a and -o.
7798
cb02ab24
SM
77992020-04-29 Simon Marchi <simon.marchi@efficios.com>
7800
7801 * gdbarch.sh: Use $(...) instead of `...`.
7802
a6fc5ffc
SM
78032020-04-29 Simon Marchi <simon.marchi@efficios.com>
7804
7805 * gdbarch.sh: Use double quotes around variables.
7806
8d113d13
SM
78072020-04-29 Simon Marchi <simon.marchi@efficios.com>
7808
7809 * gdbarch.sh: Use %s with printf, instead of variables in the
7810 format string.
7811
ed6acedd
TT
78122020-04-29 Tom Tromey <tromey@adacore.com>
7813
7814 PR ada/25875:
7815 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7816 type fields here.
7817 (read_enumeration_type): Call
7818 update_enumeration_type_from_children later. Update comments.
7819 (process_enumeration_scope): Don't create type fields.
7820
b68b1b58
KR
78212020-04-29 Kamil Rytarowski <n54@gmx.com>
7822
7823 * nbsd-tdep.c: Include "xml-syscall.h".
7824 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7825
f94b2e03
KR
78262020-04-29 Kamil Rytarowski <n54@gmx.com>
7827
7828 * nbsd-nat.c: Include "sys/wait.h".
7829 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7830 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7831 (nbsd_nat_target::remove_exec_catchpoint)
7832 (nbsd_nat_target::set_syscall_catchpoint): Add.
7833 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7834 (nbsd_nat_target::insert_exec_catchpoint)
7835 (nbsd_nat_target::remove_exec_catchpoint)
7836 (nbsd_nat_target::set_syscall_catchpoint): Add.
7837 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7838 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7839 `nbsd_get_syscall_number'.
7840
fc49bc72
TT
78412020-04-29 Tom Tromey <tom@tromey.com>
7842
7843 * stack.c (print_block_frame_labels): Remove.
7844
d642b692
HD
78452020-04-29 Hannes Domani <ssbssa@yahoo.de>
7846
7847 PR gdb/17320
7848 * ada-valprint.c (val_print_packed_array_elements): Move array
7849 end bracket to new line.
7850 (ada_val_print_string): Remove extra spaces before first array
7851 element.
7852 * c-valprint.c (c_value_print_array): Likewise.
7853 * m2-valprint.c (m2_print_array_contents): Likewise.
7854 (m2_value_print_inner): Likewise.
7855 * p-valprint.c (pascal_value_print_inner): Likewise.
7856 * valprint.c (generic_val_print_array): Likewise.
7857 (value_print_array_elements): Move first array element and array
7858 end bracket to new line.
7859
ea90f227
TV
78602020-04-29 Tom de Vries <tdevries@suse.de>
7861
7862 PR symtab/25889
7863 * linespec.c (find_method): Fix ix calculation.
7864
4498ef4f
KR
78652020-04-28 Kamil Rytarowski <n54@gmx.com>
7866
7867 * syscalls/update-netbsd.sh: New file.
7868 * syscalls/netbsd.xml: Regenerate.
7869 * data-directory/Makefile.in: Register `netbsd.xml' in
7870 `SYSCALLS_FILES'.
7871
a55e30b5
SM
78722020-04-28 Simon Marchi <simon.marchi@efficios.com>
7873
7874 * syscalls/update-freebsd.sh: Add double quotes.
7875
2b2fbab8
TT
78762020-04-28 Tom Tromey <tom@tromey.com>
7877
7878 * NEWS: Update.
7879 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7880 (cmdpy_init): Allow class_tui.
7881
a65189c9
TV
78822020-04-28 Mark Williams <mark@myosotissp.com>
7883
7884 PR gdb/24480
7885 * dwarf2read.c: Add missing assingments to list_in_scope when
7886 start_symtab was already called.
7887
1b95cdb7
SM
78882020-04-28 Simon Marchi <simon.marchi@efficios.com>
7889
7890 PR gdb/25881
7891 * dwarf2/read.c (offset_map_type): Use
7892 gdb:hash_enum<sect_offset> as hash function.
7893
15cd93d0
TV
78942020-04-28 Tom de Vries <tdevries@suse.de>
7895
7896 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7897 with DW_AT_signature.
7898
1eb39914
SM
78992020-04-27 Simon Marchi <simon.marchi@efficios.com>
7900
7901 * configure.ac: Remove check for fs_base/gs_base in
7902 user_regs_struct.
7903 * configure: Re-generate.
7904 * config.in: Re-generate.
7905 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7906 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7907 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7908
991a3e2e
LM
79092020-04-27 Luis Machado <luis.machado@linaro.org>
7910
7911 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7912 problematic inline frame unwinding situation.
7913 * frame.c (frame_id_computed_p): New function.
7914 * frame.h (frame_id_computed_p): New prototype.
7915
361ba0e8
TT
79162020-04-26 Tom Tromey <tom@tromey.com>
7917
7918 * command.h (enum command_class) <class_pseudo>: Remove.
7919
bc3609fd
PW
79202020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7921
7922 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7923 and whitespace.
7924
b9771db7
KR
79252020-04-25 Kamil Rytarowski <n54@gmx.com>
7926
ec16513e
SM
7927 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7928 `PT_GET_PROCESS_STATE' block.
b9771db7 7929
7151c1af
TT
79302020-04-24 Tom Tromey <tom@tromey.com>
7931
7932 * symtab.h (symbol_get_demangled_name): Don't declare.
7933 * symtab.c (symbol_get_demangled_name): Remove.
7934 (general_symbol_info::natural_name)
7935 (general_symbol_info::demangled_name): Update.
7936
906bb4c5
TT
79372020-04-24 Tom Tromey <tom@tromey.com>
7938
7939 PR rust/25025:
7940 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7941
bcfe6157
TT
79422020-04-24 Tom Tromey <tom@tromey.com>
7943
7944 PR symtab/12707:
7945 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7946 exists.
7947 (new_symbol): Likewise.
7948 * compile/compile-object-load.c (get_out_value_type): Use
7949 symbol_matches_search_name.
7950
f049a313
TT
79512020-04-24 Tom Tromey <tom@tromey.com>
7952
7953 * dwarf2/read.c (add_partial_symbol): Do not call
7954 compute_and_set_names.
7955
76e288d1
TT
79562020-04-24 Tom Tromey <tom@tromey.com>
7957
7958 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7959 overload.
7960
2467f4f6
TT
79612020-04-24 Tom Tromey <tom@tromey.com>
7962
7963 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7964 (add_psymbol_to_list): New overload. Make old overload call new
7965 one.
7966 * psympriv.h (add_psymbol_to_list): New overload.
7967
e61108c9
TT
79682020-04-24 Tom Tromey <tom@tromey.com>
7969
7970 * dwarf2/read.c (partial_die_info::read) <case
7971 DW_AT_linkage_name>: Use value_as_string.
7972 (dwarf2_string_attr): Use value_as_string.
7973 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7974 method.
7975 * dwarf2/attribute.c (attribute::value_as_string): New method.
7976
8c87a452
TT
79772020-04-24 Tom Tromey <tom@tromey.com>
7978
7979 * symtab.c (general_symbol_info::natural_name)
7980 (general_symbol_info::demangled_name): Check for language_rust.
7981
787de330
TT
79822020-04-24 Tom Tromey <tom@tromey.com>
7983
7984 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7985 (dwarf2_physname): ... from here.
7986 (partial_die_info::read): Add Rust "{" hack.
7987
ff985671
TT
79882020-04-24 Tom Tromey <tom@tromey.com>
7989
7990 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7991 method.
7992 (symbol_set_demangled_name): Don't declare.
7993 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7994 symbol_set_demangled_name.
7995 (general_symbol_info::set_language)
7996 (general_symbol_info::compute_and_set_names): Update.
7997 * minsyms.c (minimal_symbol_reader::install): Update.
7998 * dwarf2/read.c (new_symbol): Update.
7999
1acda803
TT
80002020-04-24 Tom Tromey <tromey@adacore.com>
8001
8002 PR python/23662:
8003 * python/py-type.c (convert_field): Handle
8004 FIELD_LOC_KIND_DWARF_BLOCK.
8005 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8006 (typy_get_dynamic): Nw function.
8007 (type_object_getset): Add "dynamic".
8008 * NEWS: Add entry.
8009
d656f129
TT
80102020-04-24 Tom Tromey <tromey@adacore.com>
8011
8012 * ada-typeprint.c (print_choices, print_variant_part)
8013 (print_record_field_types_dynamic): New functions.
8014 (print_record_field_types): Use print_record_field_types_dynamic.
8015
7d79de9a
TT
80162020-04-24 Tom Tromey <tromey@adacore.com>
8017
8018 * dwarf2/read.c (handle_data_member_location): New overload.
8019 (dwarf2_add_field): Use it.
8020 (decode_locdesc): Add "computed" parameter. Update comment.
8021 * gdbtypes.c (is_dynamic_type_internal): Also look for
8022 FIELD_LOC_KIND_DWARF_BLOCK.
8023 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8024 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8025 virtual base classes.
8026 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8027 FIELD_LOC_KIND_DWARF_BLOCK.
8028
f8e89861
TT
80292020-04-24 Tom Tromey <tromey@adacore.com>
8030
8031 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8032 * gdbtypes.c (is_dynamic_type_internal): Check
8033 TYPE_HAS_DYNAMIC_LENGTH.
8034 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8035 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8036 New macros.
8037 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8038 constant.
8039
9c6a1327
TT
80402020-04-24 Tom Tromey <tromey@adacore.com>
8041
8042 * dwarf2/read.c (struct variant_field): Rewrite.
8043 (struct variant_part_builder): New.
8044 (struct nextfield): Remove "variant" field. Add "offset".
8045 (struct field_info): Add "current_variant_part" and
8046 "variant_parts".
8047 (alloc_discriminant_info): Remove.
8048 (alloc_rust_variant): New function.
8049 (quirk_rust_enum): Update.
8050 (dwarf2_add_field): Set "offset" member. Don't handle
8051 DW_TAG_variant_part.
8052 (offset_map_type): New typedef.
8053 (convert_variant_range, create_one_variant)
8054 (create_one_variant_part, create_variant_parts)
8055 (add_variant_property): New functions.
8056 (dwarf2_attach_fields_to_type): Call add_variant_property.
8057 (read_structure_type): Don't handle DW_TAG_variant_part.
8058 (handle_variant_part, handle_variant): New functions.
8059 (handle_struct_member_die): Use them.
8060 (process_structure_scope): Don't handle variant parts.
8061 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8062 (struct discriminant_info): Remove.
8063 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8064 (struct main_type) <flag_discriminated_union>: Remove.
8065 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8066 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8067 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8068 Update.
8069 * valops.c (value_union_variant): Remove.
8070 * value.h (value_union_variant): Don't declare.
8071
b249d2c2
TT
80722020-04-24 Tom Tromey <tromey@adacore.com>
8073
8074 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8075 (ada_value_primitive_packed_val): Update.
8076 * ada-valprint.c (ada_value_print_1): Update.
8077 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8078 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8079 just an address. Use evaluate_for_locexpr_baton.
8080 (dwarf2_evaluate_property): Update.
8081 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8082 array_view.
8083 * findvar.c (default_read_var_value): Update.
8084 * gdbtypes.c (compute_variant_fields_inner)
8085 (resolve_dynamic_type_internal): Update.
8086 (resolve_dynamic_type): Change type of valaddr parameter.
8087 * gdbtypes.h (resolve_dynamic_type): Update.
8088 * valarith.c (value_subscripted_rvalue): Update.
8089 * value.c (value_from_contents_and_address): Update.
8090
61122aa9
TT
80912020-04-24 Tom Tromey <tromey@adacore.com>
8092
8093 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8094 "push_initial_value" parameter.
8095 (dwarf2_evaluate_property): Likewise.
8096 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8097
ef83a141
TT
80982020-04-24 Tom Tromey <tromey@adacore.com>
8099
8100 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8101 (variant::matches, compute_variant_fields_recurse)
8102 (compute_variant_fields_inner, compute_variant_fields): New
8103 functions.
8104 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8105 Use resolved_type after type is made.
8106 (operator==): Add new cases.
8107 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8108 (struct discriminant_range, struct variant, struct variant_part):
8109 New.
8110 (union dynamic_prop_data) <variant_parts, original_type>: New
8111 members.
8112 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8113 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8114 constants.
8115 * value.c (unpack_bits_as_long): Now public.
8116 * value.h (unpack_bits_as_long): Declare.
8117
675127ec
TT
81182020-04-24 Tom Tromey <tromey@adacore.com>
8119
8120 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8121 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8122
9852ceef
HD
81232020-04-24 Hannes Domani <ssbssa@yahoo.de>
8124
8125 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8126
7632c6ce
KR
81272020-04-24 Kamil Rytarowski <n54@gmx.com>
8128
8129 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8130 (remove_fork_catchpoint, post_startup_inferior)
8131 (post_attach): Move...
8132 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8133 (remove_fork_catchpoint, post_startup_inferior)
8134 (post_attach): ...here.
8135 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8136 (remove_fork_catchpoint, post_startup_inferior)
8137 (post_attach): Move...
8138 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8139 (remove_fork_catchpoint, post_startup_inferior)
8140 (post_attach): ...here.
8141
7be2bb4f
TT
81422020-04-24 Tom Tromey <tromey@adacore.com>
8143
8144 * nat/windows-nat.h (struct windows_thread_info)
8145 <pc_adjusted>: New member.
8146 * windows-nat.c (windows_fetch_one_register): Check
8147 pc_adjusted.
8148 (windows_nat_target::get_windows_debug_event)
8149 (windows_nat_target::wait): Set pc_adjusted.
8150
f80cb3b4
TV
81512020-04-24 Tom de Vries <tdevries@suse.de>
8152
8153 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8154 Run gdb-add-index inside temp dir.
8155
29514b87
TT
81562020-04-23 Tom Tromey <tromey@adacore.com>
8157
8158 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8159 in loop.
8160
5939967b
LM
81612020-04-23 Luis Machado <luis.machado@linaro.org>
8162
8163 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8164 get_frame_register instead of gdbarch_unwind_pc.
8165
70bc38f5
TV
81662020-04-23 Tom de Vries <tdevries@suse.de>
8167
8168 * symtab.c (lookup_global_symbol): Prefer def over decl.
8169
de82891c
TV
81702020-04-23 Tom de Vries <tdevries@suse.de>
8171
8172 PR symtab/25807
8173 * block.c (best_symbol, better_symbol): Promote to external.
8174 * block.h (best_symbol, better_symbol): Declare.
8175 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8176 decl.
8177
ecc6c606
TT
81782020-04-23 Tom Tromey <tromey@adacore.com>
8179
8180 PR ada/25837:
8181 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8182 "const char *", not a "const std::string &".
8183 <name_and_matcher::operator==>: Update.
8184 * unittests/lookup_name_info-selftests.c: Change type of
8185 "result".
8186
740480b8
TT
81872020-04-23 Tom Tromey <tom@tromey.com>
8188
8189 * inferior.h (iterate_over_inferiors): Don't declare.
8190 * inferior.c (iterate_over_inferiors): Remove.
8191 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8192 Remove.
8193 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8194 use iterate_over_inferiors.
8195 (darwin_resume_inferior_it)
8196 (struct resume_inferior_threads_param)
8197 (darwin_resume_inferior_threads_it): Remove.
8198 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8199
ae3ab1f0
TV
82002020-04-23 Tom de Vries <tdevries@suse.de>
8201
8202 * blockframe.c (find_pc_partial_function): Use
8203 find_pc_sect_compunit_symtab rather than
8204 objfile->sf->qf->find_pc_sect_compunit_symtab.
8205
317d2668
TV
82062020-04-22 Tom de Vries <tdevries@suse.de>
8207
8208 PR symtab/25764
8209 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8210 in psymtabs.
8211
eea9e357
TV
82122020-04-22 Tom de Vries <tdevries@suse.de>
8213
8214 PR symtab/25801
8215 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8216 symtabs.
8217
3d5afab3
TV
82182020-04-22 Tom de Vries <tdevries@suse.de>
8219
8220 PR symtab/25700
8221 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8222 CU if already created.
8223
d43b7a2d
TBA
82242020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8225
8226 * infrun.c (displaced_step_fixup): Switch to the event_thread
8227 before calling displaced_step_restore, not after.
8228
d89edf9b
MM
82292020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8230
8231 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8232 its inferior is not recorded by us.
8233 (record_btrace_target_open): Replace call to
8234 all_non_exited_threads () with call to current_inferior
8235 ()->non_exited_threads ().
8236 (record_btrace_target::stop_recording): Likewise.
8237 (record_btrace_target::close): Likewise.
8238 (record_btrace_target::wait): Likewise.
8239 (record_btrace_target::record_stop_replaying): Likewise.
8240
5897fd49
MM
82412020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8242
8243 * btrace.c (btrace_enable): Throw an error on double enables and
8244 when enabling recording fails.
8245 (btrace_disable): Throw an error if the thread is not recorded.
8246
1a476b6d
MM
82472020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8248
8249 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8250 request if we do not have a thread_info.
8251
4778a5f8
TV
82522020-04-21 Tom de Vries <tdevries@suse.de>
8253
8254 PR gdb/25471
8255 * thread.c
8256 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8257 exception in get_frame_id.
8258
0fa7617d
TT
82592020-04-20 Tom Tromey <tromey@adacore.com>
8260
8261 * python/python.c (struct gdbpy_event): Mark move constructor as
8262 noexcept.
8263 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8264 constructor as noexcept.
8265 * completer.h (struct completion_result): Mark move constructor as
8266 noexcept.
8267 * completer.c (completion_result::completion_result): Use
8268 initialization style. Don't call reset_match_list.
8269
ad23bda0
MS
82702020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8271
8272 * MAINTAINERS (Write After Approval): Add myself.
8273
45e1f031
TT
82742020-04-18 Tom Tromey <tom@tromey.com>
8275
8276 * windows-tdep.c (init_w32_command_list)
8277 (w32_prefix_command_valid): Restore.
8278 (_initialize_windows_tdep): Call init_w32_command_list.
8279
08feed99
TT
82802020-04-18 Tom Tromey <tom@tromey.com>
8281
8282 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8283 * value.c (value_fn_field): Update.
8284 * valops.c (find_function_in_inferior)
8285 (value_allocate_space_in_inferior): Update.
8286 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8287 Update.
8288 * tui/tui-source.c (tui_source_window::set_contents): Update.
8289 * symtab.c (lookup_global_or_static_symbol)
8290 (find_function_start_sal_1, skip_prologue_sal)
8291 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8292 * symmisc.c (dump_msymbols, dump_symtab_1)
8293 (maintenance_print_one_line_table): Update.
8294 * symfile.c (init_entry_point_info, section_is_mapped)
8295 (list_overlays_command, simple_read_overlay_table)
8296 (simple_overlay_update_1): Update.
8297 * stap-probe.c (handle_stap_probe): Update.
8298 * stabsread.c (dbx_init_float_type, define_symbol)
8299 (read_one_struct_field, read_enum_type, read_range_type): Update.
8300 * source.c (info_line_command): Update.
8301 * python/python.c (gdbpy_source_objfile_script)
8302 (gdbpy_execute_objfile_script): Update.
8303 * python/py-type.c (save_objfile_types): Update.
8304 * python/py-objfile.c (py_free_objfile): Update.
8305 * python/py-inferior.c (python_new_objfile): Update.
8306 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8307 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8308 (maintenance_check_psymtabs): Update.
8309 * printcmd.c (info_address_command): Update.
8310 * objfiles.h (struct objfile) <arch>: New method, from
8311 get_objfile_arch.
8312 (get_objfile_arch): Don't declare.
8313 * objfiles.c (get_objfile_arch): Remove.
8314 (filter_overlapping_sections): Update.
8315 * minsyms.c (msymbol_is_function): Update.
8316 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8317 (output_nondebug_symbol): Update.
8318 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8319 (mdebug_expand_psymtab): Update.
8320 * machoread.c (macho_add_oso_symfile): Update.
8321 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8322 Update.
8323 * linux-fork.c (checkpoint_command): Update.
8324 * linespec.c (convert_linespec_to_sals): Update.
8325 * jit.c (finalize_symtab): Update.
8326 * infrun.c (insert_exception_resume_from_probe): Update.
8327 * ia64-tdep.c (ia64_find_unwind_table): Update.
8328 * hppa-tdep.c (internalize_unwinds): Update.
8329 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8330 Update.
8331 * gcore.c (call_target_sbrk): Update.
8332 * elfread.c (record_minimal_symbol, elf_symtab_read)
8333 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8334 (elf_gnu_ifunc_resolve_by_got): Update.
8335 * dwarf2/read.c (create_addrmap_from_index)
8336 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8337 (read_debug_names_from_section)
8338 (process_psymtab_comp_unit_reader, add_partial_symbol)
8339 (add_partial_subprogram, process_full_comp_unit)
8340 (read_file_scope, read_func_scope, read_lexical_block_scope)
8341 (read_call_site_scope, dwarf2_ranges_read)
8342 (dwarf2_record_block_ranges, dwarf2_add_field)
8343 (mark_common_block_symbol_computed, read_tag_pointer_type)
8344 (read_tag_string_type, dwarf2_init_float_type)
8345 (dwarf2_init_complex_target_type, read_base_type)
8346 (partial_die_info::read, partial_die_info::read)
8347 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8348 (dwarf2_fetch_die_loc_sect_off): Update.
8349 * dwarf2/loc.c (dwarf2_find_location_expression)
8350 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8351 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8352 (dwarf2_loc_desc_get_symbol_read_needs)
8353 (locexpr_describe_location_piece, locexpr_describe_location_1)
8354 (loclist_describe_location): Update.
8355 * dwarf2/index-write.c (write_debug_names): Update.
8356 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8357 * dtrace-probe.c (dtrace_process_dof): Update.
8358 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8359 (process_one_symbol): Update.
8360 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8361 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8362 (coff_read_enum_type): Update.
8363 * cli/cli-cmds.c (edit_command, list_command): Update.
8364 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8365 * breakpoint.c (create_overlay_event_breakpoint)
8366 (create_longjmp_master_breakpoint)
8367 (create_std_terminate_master_breakpoint)
8368 (create_exception_master_breakpoint, get_sal_arch): Update.
8369 * block.c (block_gdbarch): Update.
8370 * annotate.c (annotate_source_line): Update.
8371
0743fc83
TT
83722020-04-17 Tom Tromey <tromey@adacore.com>
8373
8374 * auto-load.c (show_auto_load_cmd): Remove.
8375 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8376 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8377 (maintenance_print_arc_command): Remove.
8378 * tui/tui-win.c (tui_command): Remove.
8379 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8380 * tui/tui-layout.c (tui_layout_command): Remove.
8381 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8382 * python/python.c (user_set_python, user_show_python): Remove.
8383 (_initialize_python): Use add_basic_prefix_cmd,
8384 add_show_prefix_cmd.
8385 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8386 (install_gdb_commands): Use add_basic_prefix_cmd,
8387 add_show_prefix_cmd.
8388 (info_guile_command): Remove.
8389 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8390 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8391 add_show_prefix_cmd.
8392 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8393 Remove do_set and do_show parameters.
8394 * cli/cli-style.c (set_style, show_style): Remove.
8395 (_initialize_cli_style): Use add_basic_prefix_cmd,
8396 add_show_prefix_cmd.
8397 (cli_style_option::add_setshow_commands): Remove do_set and
8398 do_show parameters.
8399 (cli_style_option::add_setshow_commands): Use
8400 add_basic_prefix_cmd, add_show_prefix_cmd.
8401 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8402 (set_style_name): Remove.
8403 * cli/cli-dump.c (dump_command, append_command): Remove.
8404 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8405 (tekhex_dump_command, binary_dump_command)
8406 (binary_append_command): Remove.
8407 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8408 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8409 (init_w32_command_list): Remove; move into ...
8410 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8411 * valprint.c (set_print, show_print, set_print_raw)
8412 (show_print_raw): Remove.
8413 (_initialize_valprint): Use add_basic_prefix_cmd,
8414 add_show_prefix_cmd.
8415 * typeprint.c (set_print_type, show_print_type): Remove.
8416 (_initialize_typeprint): Use add_basic_prefix_cmd,
8417 add_show_prefix_cmd.
8418 * record.c (set_record_command, show_record_command): Remove.
8419 (_initialize_record): Use add_basic_prefix_cmd,
8420 add_show_prefix_cmd.
8421 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8422 add_show_prefix_cmd.
8423 (info_command, show_command, set_debug, show_debug): Remove.
8424 * top.h (set_history, show_history): Don't declare.
8425 * top.c (set_history, show_history): Remove.
8426 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8427 (unset_tdesc_cmd): Remove.
8428 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8429 add_show_prefix_cmd.
8430 * symtab.c (info_module_command): Remove.
8431 (_initialize_symtab): Use add_basic_prefix_cmd.
8432 * symfile.c (overlay_command): Remove.
8433 (_initialize_symfile): Use add_basic_prefix_cmd.
8434 * sparc64-tdep.c (info_adi_command): Remove.
8435 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8436 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8437 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8438 add_show_prefix_cmd.
8439 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8440 (_initialize_serial): Use add_basic_prefix_cmd,
8441 add_show_prefix_cmd.
8442 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8443 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8444 add_show_prefix_cmd.
8445 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8446 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8447 add_show_prefix_cmd.
8448 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8449 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8450 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8451 add_show_prefix_cmd.
8452 * remote.c (remote_command, set_remote_cmd): Remove.
8453 (_initialize_remote): Use add_basic_prefix_cmd.
8454 * record-full.c (set_record_full_command)
8455 (show_record_full_command): Remove.
8456 (_initialize_record_full): Use add_basic_prefix_cmd,
8457 add_show_prefix_cmd.
8458 * record-btrace.c (cmd_set_record_btrace)
8459 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8460 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8461 (cmd_show_record_btrace_pt): Remove.
8462 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8463 add_show_prefix_cmd.
8464 * ravenscar-thread.c (set_ravenscar_command)
8465 (show_ravenscar_command): Remove.
8466 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8467 add_show_prefix_cmd.
8468 * mips-tdep.c (show_mips_command, set_mips_command)
8469 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8470 add_show_prefix_cmd.
8471 * maint.c (maintenance_command, maintenance_info_command)
8472 (maintenance_check_command, maintenance_print_command)
8473 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8474 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8475 add_show_prefix_cmd.
8476 (show_per_command_cmd): Remove.
8477 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8478 Remove.
8479 (maintenance_show_test_settings_cmd): Remove.
8480 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8481 add_show_prefix_cmd.
8482 * maint-test-options.c (maintenance_test_options_command):
8483 Remove.
8484 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8485 * macrocmd.c (macro_command): Remove
8486 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8487 * language.c (set_check, show_check): Remove.
8488 (_initialize_language): Use add_basic_prefix_cmd,
8489 add_show_prefix_cmd.
8490 * infcmd.c (unset_command): Remove.
8491 (_initialize_infcmd): Use add_basic_prefix_cmd.
8492 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8493 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8494 add_show_prefix_cmd.
8495 * go32-nat.c (go32_info_dos_command): Remove.
8496 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8497 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8498 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8499 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8500 (_initialize_frame): Use add_basic_prefix_cmd,
8501 add_show_prefix_cmd.
8502 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8503 (_initialize_dcache): Use add_basic_prefix_cmd,
8504 add_show_prefix_cmd.
8505 * cp-support.c (maint_cplus_command): Remove.
8506 (_initialize_cp_support): Use add_basic_prefix_cmd.
8507 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8508 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8509 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8510 add_basic_prefix_cmd, add_show_prefix_cmd.
8511 * breakpoint.c (save_command): Remove.
8512 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8513 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8514 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8515 add_show_prefix_cmd.
8516 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8517 (set_ada_command, show_ada_command): Remove.
8518 (_initialize_ada_language): Use add_basic_prefix_cmd,
8519 add_show_prefix_cmd.
8520 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8521
3557f442
KR
85222020-04-16 Kamil Rytarowski <n54@gmx.com>
8523
8524 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8525 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8526
16197208
SM
85272020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8528
8529 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8530 warning messages.
8531
00ac85d3
SM
85322020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8533
8534 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8535 import table is not at beginning of .idata section.
8536
381ce63f
PA
85372020-04-16 Pedro Alves <palves@redhat.com>
8538
8539 * inferior.c (delete_inferior): Use delete operator directly
8540 instead of delete_program_space.
8541 * progspace.c (add_program_space): New, factored out from
8542 program_space::program_space.
8543 (remove_program_space): New, factored out from
8544 delete_program_space.
8545 (program_space::program_space): Remove intro comment. Rewrite.
8546 (program_space::~program_space): Remove intro comment. Call
8547 remove_program_space.
8548 (delete_program_space): Delete.
8549 * progspace.h (program_space::program_space): Make explicit. Move
8550 intro comment here, adjusted.
8551 (program_space::~program_space): Move intro comment here,
8552 adjusted.
8553 (delete_program_space): Remove.
8554
a010605f
TT
85552020-04-16 Tom Tromey <tromey@adacore.com>
8556
8557 * windows-nat.c (windows_nat::handle_access_violation): New
8558 function.
8559 * nat/windows-nat.h (handle_access_violation): Declare.
8560 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8561 windows-nat.c. Call handle_access_violation.
8562
efba5c23
TV
85632020-04-16 Tom de Vries <tdevries@suse.de>
8564
8565 PR symtab/25791
8566 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8567 CUs without psymtab.
8568
97ed802d
KB
85692020-04-16 Kevin Buettner <kevinb@redhat.com>
8570
8571 * python/python.c (do_start_initialization): Don't call
8572 PyEval_InitThreads for Python 3.9 and beyond.
8573
c7d64809
KR
85742020-04-15 Kamil Rytarowski <n54@gmx.com>
8575
8576 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8577 thread functions.
8578 (obsd_nat_target::wait): Likewise.
8579
ce127a96
TT
85802020-04-15 Tom Tromey <tromey@adacore.com>
8581
8582 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8583 (DEBUG_EXCEPT): Use debug_printf.
8584
99f1bc6a
AB
85852020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8586
8587 * completer.c (class completion_tracker::completion_hash_entry)
8588 <hash_name>: New member function.
8589 (completion_tracker::discard_completions): New callback to hash a
8590 completion_hash_entry, pass this to htab_create_alloc.
8591
a0e9b532
JT
85922016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8593
8594 * windows-nat.c (windows_make_so): Warn rather than stopping with
8595 an error if realpath() fails.
8596
06ca5dd4
KR
85972020-04-14 Kamil Rytarowski <n54@gmx.com>
8598
8599 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8600 (nbsd_nat_target::info_proc): Add do_status.
8601
194d088f
TV
86022020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8603 Tom de Vries <tdevries@suse.de>
8604
8605 PR symtab/25718
8606 * psympriv.h (struct partial_symtab::read_symtab)
8607 (struct partial_symtab::expand_psymtab)
8608 (struct partial_symtab::read_dependencies): Update comments.
8609 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8610 read_symtab for includer.
8611 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8612 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8613 (struct dwarf2_include_psymtab::m_readin): Remove.
8614 (struct dwarf2_include_psymtab::includer): New member function.
8615 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8616
c1a66c06
TV
86172020-04-14 Tom de Vries <tdevries@suse.de>
8618
8619 PR symtab/25720
8620 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8621 with NULL symbol_matcher and lookup_name.
8622 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8623 and lookup_name.
8624 * dwarf2/read.c (dw2_expand_symtabs_matching)
8625 (dw2_debug_names_expand_symtabs_matching): Same.
8626 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8627 Make lookup_name a pointer. Update comment.
8628 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8629 lookup_name being a pointer.
8630 * symfile.c (expand_symtabs_matching): Same.
8631 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8632 * linespec.c (iterate_over_all_matching_symtabs): Same.
8633
400b5eca
TT
86342020-04-13 Tom Tromey <tom@tromey.com>
8635
8636 * run-on-main-thread.c: Update include.
8637 * unittests/main-thread-selftests.c: Update include.
8638 * tui/tui-win.c: Update include.
8639 * tui/tui-io.c: Update include.
8640 * tui/tui-interp.c: Update include.
8641 * tui/tui-hooks.c: Update include.
8642 * top.h: Update include.
8643 * top.c: Update include.
8644 * ser-base.c: Update include.
8645 * remote.c: Update include.
8646 * remote-notif.c: Update include.
8647 * remote-fileio.c: Update include.
8648 * record-full.c: Update include.
8649 * record-btrace.c: Update include.
8650 * python/python.c: Update include.
8651 * posix-hdep.c: Update include.
8652 * mingw-hdep.c: Update include.
8653 * mi/mi-main.c: Update include.
8654 * mi/mi-interp.c: Update include.
8655 * main.c: Update include.
8656 * linux-nat.c: Update include.
8657 * interps.c: Update include.
8658 * infrun.c: Update include.
8659 * inf-loop.c: Update include.
8660 * event-top.c: Update include.
8661 * event-loop.c: Move to ../gdbsupport/.
8662 * event-loop.h: Move to ../gdbsupport/.
8663 * async-event.h: Update include.
8664 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8665
93b54c8e
TT
86662020-04-13 Tom Tromey <tom@tromey.com>
8667
8668 * tui/tui-win.c: Include async-event.h.
8669 * remote.c: Include async-event.h.
8670 * remote-notif.c: Include async-event.h.
8671 * record-full.c: Include async-event.h.
8672 * record-btrace.c: Include async-event.h.
8673 * infrun.c: Include async-event.h.
8674 * event-top.c: Include async-event.h.
8675 * event-loop.h: Move some declarations to async-event.h.
8676 * event-loop.c: Don't include ser-event.h or top.h. Move some
8677 code to async-event.c.
8678 * async-event.h: New file.
8679 * async-event.c: New file.
8680 * Makefile.in (COMMON_SFILES): Add async-event.c.
8681 (HFILES_NO_SRCDIR): Add async-event.h.
8682
c1cd3163
TT
86832020-04-13 Tom Tromey <tom@tromey.com>
8684
8685 * utils.c (flush_streams): New function.
8686 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8687
29f2bf4f
TT
86882020-04-13 Tom Tromey <tom@tromey.com>
8689
8690 * event-loop.c (handle_file_event): Use warning, not
8691 printf_unfiltered.
8692
98029d02
TT
86932020-04-13 Tom Tromey <tom@tromey.com>
8694
8695 * event-loop.c: Include <chrono>.
8696
06cc9596
TT
86972020-04-13 Tom Tromey <tom@tromey.com>
8698
8699 * gdb_select.h: Move to ../gdbsupport/.
8700 * event-loop.c: Update include path.
8701 * top.c: Update include path.
8702 * ser-base.c: Update include path.
8703 * ui-file.c: Update include path.
8704 * ser-tcp.c: Update include path.
8705 * guile/scm-ports.c: Update include path.
8706 * posix-hdep.c: Update include path.
8707 * ser-unix.c: Update include path.
8708 * gdb_usleep.c: Update include path.
8709 * mingw-hdep.c: Update include path.
8710 * inflow.c: Update include path.
8711 * infrun.c: Update include path.
8712 * event-top.c: Update include path.
8713
8ae8e197
TT
87142020-04-13 Tom Tromey <tom@tromey.com>
8715
8716 * configure: Rebuild.
8717 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8718
58cf28e8
TT
87192020-04-13 Tom Tromey <tom@tromey.com>
8720
8721 * event-loop.h (start_event_loop): Don't declare.
8722 * event-loop.c (start_event_loop): Move...
8723 * main.c (start_event_loop): ...here. Now static.
8724
b7f999ae
SDJ
87252020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8726
8727 * MAINTAINERS: Update my email address.
8728
1085dfd4
KR
87292020-04-12 Kamil Rytarowski <n54@gmx.com>
8730
8731 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8732 IP_ALL.
8733
49d1d1f5
KR
87342020-04-12 Kamil Rytarowski <n54@gmx.com>
8735
8736 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8737 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8738
b4848d2a
KR
87392020-04-12 Kamil Rytarowski <n54@gmx.com>
8740
8741 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8742 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8743
51c133d5
KR
87442020-04-12 Kamil Rytarowski <n54@gmx.com>
8745
8746 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8747
54b8cbd0
KR
87482020-04-11 Kamil Rytarowski <n54@gmx.com>
8749
8750 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8751 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8752 (nbsd_nat_target::info_proc): New functions.
8753 * nbsd-nat.c (kinfo_get_vmmap): New function.
8754 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8755 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8756 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8757 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8758 functions.
8759 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8760 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8761 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8762 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8763 (KINFO_VME_FLAG_GROWS_DOWN): New.
8764
cf83625d
AS
87652020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8766
8767 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8768 bit shift.
8769
0c4311ab
TT
87702020-04-10 Tom Tromey <tromey@adacore.com>
8771
8772 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8773
3e65b3e9
TT
87742020-04-10 Tom Tromey <tromey@adacore.com>
8775
8776 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8777 separate debug files.
8778
13302e95
HD
87792020-04-10 Hannes Domani <ssbssa@yahoo.de>
8780
8781 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8782 Move to...
8783 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8784 ... here.
8785 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8786 Check for STATUS_WX86_BREAKPOINT.
8787 (windows_nat_target::wait): Same.
8788
bdfc1e8a
TV
87892020-04-10 Tom de Vries <tdevries@suse.de>
8790
8791 PR cli/25808
8792 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8793
f4460aec
SM
87942020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8795
8796 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8797 (Write After Approval): Remove Tom de Vries.
8798
a25198bb
BE
87992020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8800
8801 revert partially:
8802 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8803
aac66a4c
SM
8804 * buildsym.c (record_line): Fix undefined behavior and preserve
8805 lines at eof.
a25198bb 8806
206c98a6
KR
88072020-04-09 Kamil Rytarowski <n54@gmx.com>
8808
8809 * auxv.h (svr4_auxv_parse): New.
8810 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8811 and generic_auxv_parse.
8812 (svr4_auxv_parse): Add.
8813 * obsd-tdep.c: Include "auxv.h".
8814 (obsd_auxv_parse): Remove.
8815 (obsd_init_abi): Remove comment.
8816 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8817 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8818 * nbsd-tdep.c: Include "auxv.h".
8819 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8820
71fbdbaf
TT
88212020-04-08 Tom Tromey <tromey@adacore.com>
8822
8823 * nat/windows-nat.h (last_wait_event): Don't declare.
8824 (wait_for_debug_event): Update comment.
8825 * nat/windows-nat.c (last_wait_event): Now static.
8826
2c1d95e8
TT
88272020-04-08 Tom Tromey <tromey@adacore.com>
8828
8829 * windows-nat.c (wait_for_debug_event): Move to
8830 nat/windows-nat.c.
8831 * nat/windows-nat.h (wait_for_debug_event): Declare.
8832 * nat/windows-nat.c (wait_for_debug_event): Move from
8833 windows-nat.c. No longer static.
8834
d2977bc4
TT
88352020-04-08 Tom Tromey <tromey@adacore.com>
8836
8837 * windows-nat.c (get_windows_debug_event): Use
8838 fetch_pending_stop.
8839 * nat/windows-nat.h (fetch_pending_stop): Declare.
8840 * nat/windows-nat.c (fetch_pending_stop): New function.
8841
e758e19c
TT
88422020-04-08 Tom Tromey <tromey@adacore.com>
8843
8844 * windows-nat.c (windows_continue): Use matching_pending_stop and
8845 continue_last_debug_event.
8846 * nat/windows-nat.h (matching_pending_stop)
8847 (continue_last_debug_event): Declare.
8848 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8849 (matching_pending_stop, continue_last_debug_event): New
8850 functions.
8851
8d30e395
TT
88522020-04-08 Tom Tromey <tromey@adacore.com>
8853
8854 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8855 (handle_exception_result): Move to nat/windows-nat.h.
8856 (DEBUG_EXCEPTION_SIMPLE): Remove.
8857 (windows_nat::handle_ms_vc_exception): New function.
8858 (handle_exception): Move to nat/windows-nat.c.
8859 (get_windows_debug_event): Update.
8860 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8861 nat/windows-nat.c.
8862 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8863 (handle_exception_result): Move from windows-nat.c.
8864 (handle_exception): Declare.
8865 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8866 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8867 windows-nat.c.
8868
29de418d
TT
88692020-04-08 Tom Tromey <tromey@adacore.com>
8870
8871 * windows-nat.c (exception_count, event_count): Remove.
8872 (handle_exception, get_windows_debug_event)
8873 (do_initial_windows_stuff): Update.
8874
a816ba18
TT
88752020-04-08 Tom Tromey <tromey@adacore.com>
8876
8877 * windows-nat.c (windows_nat::handle_load_dll)
8878 (windows_nat::handle_unload_dll): Rename. No longer static.
8879 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8880 Declare.
8881
a00caa12
TT
88822020-04-08 Tom Tromey <tromey@adacore.com>
8883
8884 * complaints.h (stop_whining): Declare at top-level.
8885 (complaint): Don't declare stop_whining.
8886
d41b524f
TT
88872020-04-08 Tom Tromey <tromey@adacore.com>
8888
8889 * windows-nat.c (windows_nat::handle_output_debug_string):
8890 Rename. No longer static.
8891 * nat/windows-nat.h (handle_output_debug_string): Declare.
8892
3c76026d
TT
88932020-04-08 Tom Tromey <tromey@adacore.com>
8894
8895 * windows-nat.c (current_process_handle, current_process_id)
8896 (main_thread_id, last_sig, current_event, last_wait_event)
8897 (current_windows_thread, desired_stop_thread_id, pending_stops)
8898 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8899 (display_selectors, fake_create_process)
8900 (get_windows_debug_event): Update.
8901 * nat/windows-nat.h (current_process_handle, current_process_id)
8902 (main_thread_id, last_sig, current_event, last_wait_event)
8903 (current_windows_thread, desired_stop_thread_id, pending_stops)
8904 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8905 * nat/windows-nat.c (current_process_handle, current_process_id)
8906 (main_thread_id, last_sig, current_event, last_wait_event)
8907 (current_windows_thread, desired_stop_thread_id, pending_stops)
8908 (siginfo_er): New globals. Move from windows-nat.c.
8909
9d8679cc
TT
89102020-04-08 Tom Tromey <tromey@adacore.com>
8911
8912 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8913 (handle_load_dll): Update.
8914 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8915
28688adf
TT
89162020-04-08 Tom Tromey <tromey@adacore.com>
8917
8918 * windows-nat.c (enum thread_disposition_type): Move to
8919 nat/windows-nat.h.
8920 (windows_nat::thread_rec): Rename from thread_rec. No longer
8921 static.
8922 (windows_add_thread, windows_nat_target::fetch_registers)
8923 (windows_nat_target::store_registers, handle_exception)
8924 (windows_nat_target::resume, get_windows_debug_event)
8925 (windows_nat_target::get_tib_address)
8926 (windows_nat_target::thread_name)
8927 (windows_nat_target::thread_alive): Update.
8928 * nat/windows-nat.h (enum thread_disposition_type): Move from
8929 windows-nat.c.
8930 (thread_rec): Declare.
8931
4834dad0
TT
89322020-04-08 Tom Tromey <tromey@adacore.com>
8933
8934 * windows-nat.c: Add "using namespace".
8935 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8936 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8937
65bafd5b
TT
89382020-04-08 Tom Tromey <tromey@adacore.com>
8939
8940 * nat/windows-nat.h (struct windows_thread_info): Declare
8941 destructor.
8942 * nat/windows-nat.c (~windows_thread_info): New.
8943
0a4afda3
TT
89442020-04-08 Tom Tromey <tromey@adacore.com>
8945
8946 PR gdb/22992
8947 * windows-nat.c (current_event): Update comment.
8948 (last_wait_event, desired_stop_thread_id): New globals.
8949 (struct pending_stop): New.
8950 (pending_stops): New global.
8951 (windows_nat_target) <stopped_by_sw_breakpoint>
8952 <supports_stopped_by_sw_breakpoint>: New methods.
8953 (windows_fetch_one_register): Add assertions. Adjust PC.
8954 (windows_continue): Handle pending stops. Suspend other threads
8955 when stepping. Use last_wait_event
8956 (wait_for_debug_event): New function.
8957 (get_windows_debug_event): Use wait_for_debug_event. Handle
8958 pending stops. Queue spurious stops.
8959 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8960 (windows_nat_target::kill): Use wait_for_debug_event.
8961 * nat/windows-nat.h (struct windows_thread_info)
8962 <stopped_at_software_breakpoint>: New field.
8963 * nat/windows-nat.c (windows_thread_info::resume): Clear
8964 stopped_at_software_breakpoint.
8965
8e61ebec
TT
89662020-04-08 Tom Tromey <tromey@adacore.com>
8967
8968 * windows-nat.c (enum thread_disposition_type): New.
8969 (thread_rec): Replace "get_context" parameter with "disposition";
8970 change type.
8971 (windows_add_thread, windows_nat_target::fetch_registers)
8972 (windows_nat_target::store_registers, handle_exception)
8973 (windows_nat_target::resume, get_windows_debug_event)
8974 (windows_nat_target::get_tib_address)
8975 (windows_nat_target::thread_name)
8976 (windows_nat_target::thread_alive): Update.
8977
98a03287
TT
89782020-04-08 Tom Tromey <tromey@adacore.com>
8979
8980 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8981 (windows_continue): Use windows_continue::resume.
8982 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8983 resume>: Declare new methods.
8984 * nat/windows-nat.c: New file.
8985 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8986
7c7411bc
TT
89872020-04-08 Tom Tromey <tromey@adacore.com>
8988
8989 * windows-nat.c (windows_add_thread, windows_delete_thread)
8990 (windows_nat_target::fetch_registers)
8991 (windows_nat_target::store_registers, fake_create_process)
8992 (windows_nat_target::resume, windows_nat_target::resume)
8993 (get_windows_debug_event, windows_nat_target::wait)
8994 (windows_nat_target::pid_to_str)
8995 (windows_nat_target::get_tib_address)
8996 (windows_nat_target::get_ada_task_ptid)
8997 (windows_nat_target::thread_name)
8998 (windows_nat_target::thread_alive): Use lwp, not tid.
8999
2950fdf7
TT
90002020-04-08 Tom Tromey <tromey@adacore.com>
9001
9002 * windows-nat.c (handle_exception)
9003 (windows_nat_target::thread_name): Update.
9004 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9005 <name>: Now unique_xmalloc_ptr.
9006
62fe396b
TT
90072020-04-08 Tom Tromey <tromey@adacore.com>
9008
9009 * windows-nat.c (thread_rec)
9010 (windows_nat_target::fetch_registers): Update.
9011 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9012 Update comment.
9013 <debug_registers_changed, reload_context>: Now bool.
9014
e9534bd2
TT
90152020-04-08 Tom Tromey <tromey@adacore.com>
9016
9017 * windows-nat.c (windows_add_thread): Use new.
9018 (windows_init_thread_list, windows_delete_thread): Use delete.
9019 (get_windows_debug_event): Update.
9020 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9021 destructor, and initializers.
9022
ae1f8880
TT
90232020-04-08 Tom Tromey <tromey@adacore.com>
9024
9025 * windows-nat.c (struct windows_thread_info): Remove.
9026 * nat/windows-nat.h: New file.
9027
55a1e039
TT
90282020-04-08 Tom Tromey <tromey@adacore.com>
9029
9030 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9031 (thread_rec, windows_add_thread, windows_delete_thread)
9032 (windows_continue): Update.
9033
93366324
TT
90342020-04-08 Tom Tromey <tromey@adacore.com>
9035
9036 * windows-nat.c (struct windows_thread_info): Remove typedef.
9037 (thread_head): Remove.
9038 (thread_list): New global.
9039 (thread_rec, windows_add_thread, windows_init_thread_list)
9040 (windows_delete_thread, windows_continue): Update.
9041
0f2265e2
SM
90422020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9043
9044 * windows-tdep.h (windows_init_abi): Add comment.
9045 (cygwin_init_abi): New declaration.
9046 * windows-tdep.c: Split signal enumeration in two, one for
9047 Windows and one for Cygwin.
9048 (windows_gdb_signal_to_target): Only deal with signal of the
9049 Windows OS ABI.
9050 (cygwin_gdb_signal_to_target): New function.
9051 (windows_init_abi): Rename to windows_init_abi_common, don't set
9052 gdb_signal_to_target gdbarch method. Add new new function with
9053 this name.
9054 (cygwin_init_abi): New function.
9055 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9056 comment. Don't call windows_init_abi.
9057 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9058 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9059 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9060 i386_windows_init_abi_common, don't call windows_init_abi. Add
9061 a new function of this name.
9062 (i386_cygwin_init_abi): New function.
9063 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9064 OS ABI Cygwin.
9065
3810f182
SM
90662020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9067
9068 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9069 parameter.c.
9070 (dwarf2_read_gdb_index): Update.
9071
063f8e80
KR
90722020-04-07 Kamil Rytarowski <n54@gmx.com>
9073
9074 * nbsd-tdep.c: Include "objfiles.h".
9075 (nbsd_skip_solib_resolver): New.
9076 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9077
85a9510c 90782020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9079
9080 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9081 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9082 with DW_LLE_base_addressx are being emitted in DWARFv5.
9083 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9084 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9085 unsigned integer.
9086
9fc3eaae 90872020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9088
9089 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9090 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9091 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9092 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9093 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9094 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9095 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9096
9097
41144253 90982020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9099
9100 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9101 (read_loclist_index): New function definition.
9102 (lookup_loclist_base): New function definition.
9103 (read_loclist_header): New function definition.
9104 (dwarf2_cu): Add loclist_base and loclist_header field.
9105 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9106 (read_full_die_1): Read the value of DW_AT_loclists_base.
9107 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9108 (read_attribute_value): Handle DW_FORM_loclistx.
9109 (skip_one_die): Handle DW_FORM_loclistx.
9110 (loclist_header): New structure declaration.
9111 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9112
9f4e76a4
SM
91132020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9114
9115 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9116 constructor. Remove `addr` parameter from other constructor and
9117 add `per_cu` parameter.
9118 * dwarf2/read.c (create_partial_symtab): Update.
9119
25c11aca
TV
91202020-04-07 Tom de Vries <tdevries@suse.de>
9121
9122 PR symtab/25796
9123 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9124 (partial_die_info::fixup): Inherit has_const_value.
9125
5707e24b
TV
91262020-04-07 Tom de Vries <tdevries@suse.de>
9127
9128 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9129 symbols without address.
9130
05f00e22
KR
91312020-04-06 Kamil Rytarowski <n54@gmx.com>
9132
9133 * nbsd-nat.h (struct thread_info): Add forward declaration.
9134 (nbsd_nat_target::thread_alive): Add.
9135 (nbsd_nat_target::thread_name): Likewise.
9136 (nbsd_nat_target::update_thread_list): Likewise.
9137 (update_thread_list::post_attach): Likewise.
9138 (post_attach::pid_to_str): Likewise.
9139 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9140 (nbsd_thread_lister): Add.
9141 (nbsd_nat_target::thread_alive): Likewise.
9142 (nbsd_nat_target::thread_name): Likewise.
9143 (nbsd_add_threads): Likewise.
9144 (update_thread_list::post_attach): Likewise.
9145 (nbsd_nat_target::update_thread_list): Likewise.
9146 (post_attach::pid_to_str): Likewise.
9147
6ee448cc
TT
91482020-04-06 Tom Tromey <tromey@adacore.com>
9149
9150 * ada-valprint.c (print_variant_part): Extract the variant field.
9151 (print_field_values): Use the field as the outer value when
9152 recursing.
9153
dea34e8c
TT
91542020-04-06 Tom Tromey <tromey@adacore.com>
9155
9156 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9157 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9158 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9159 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9160 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9161
93689ce9
TT
91622020-04-06 Tom Tromey <tromey@adacore.com>
9163
9164 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9165 TYPE_CODE_ERROR.
9166
79743962
KR
91672020-04-06 Kamil Rytarowski <n54@gmx.com>
9168
9169 * nbsd-tdep.c: Include "gdbarch.h".
9170 Define enum with NetBSD signal numbers.
9171 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9172 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9173 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9174 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9175 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9176 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9177 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9178 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9179 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9180 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9181 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9182 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9183
9e7c9a03
HD
91842020-04-03 Hannes Domani <ssbssa@yahoo.de>
9185
9186 PR gdb/25325
9187 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9188
d9e49b61
TT
91892020-04-03 Tom Tromey <tromey@adacore.com>
9190
9191 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9192 Read constant block.
9193
e0fc5c3f
SM
91942020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9195
9196 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9197 (gdb_bfd_get_full_section_contents): New declaration.
9198 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9199 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9200 gdb_bfd_get_full_section_contents.
9201
e2ff18a0
SM
92022020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9203
9204 * exec.c (build_section_table): Replace internal_error with
9205 gdb_assert.
9206 (section_table_xfer_memory_partial): Likewise.
9207 * mdebugread.c (parse_partial_symbols): Likewise.
9208 * psymtab.c (lookup_partial_symbol): Likewise.
9209 * utils.c (wrap_here): Likewise.
9210
0830d301
TT
92112020-04-02 Tom Tromey <tromey@adacore.com>
9212
9213 * f-lang.c (build_fortran_types): Use arch_type to initialize
9214 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9215
e7da7f8f
TT
92162020-04-02 Tom Tromey <tromey@adacore.com>
9217
9218 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9219 of attributes.
9220
c90d28ac
AB
92212020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9222 Bernd Edlinger <bernd.edlinger@hotmail.de>
9223 Tom Tromey <tromey@adacore.com>
9224
9225 * buildsym.c (buildsym_compunit::record_line): Remove
9226 deduplication code.
9227
1aa98955
TV
92282020-04-02 Tom de Vries <tdevries@suse.de>
9229
9230 PR ada/24671
9231 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9232
d3214198
TV
92332020-04-02 Tom de Vries <tdevries@suse.de>
9234
9235 * dwarf2/read.c (dwarf2_gdb_index_functions,
9236 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9237 NULL.
9238 * psymtab.c (psym_lookup_global_symbol_language): New function.
9239 (psym_functions): Init psym_lookup_global_symbol_language with
9240 psym_lookup_global_symbol_language.
9241 * symfile-debug.c (debug_sym_quick_functions): Init
9242 lookup_global_symbol_language with NULL.
9243 * symfile.c (set_initial_language): Remove fixme comment.
9244 * symfile.h (struct quick_symbol_functions): Add
9245 lookup_global_symbol_language.
9246 * symtab.c (find_quick_global_symbol_language): New function.
9247 (find_main_name): Use find_quick_global_symbol_language.
9248
2836752f
SM
92492020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9250
9251 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9252
64dc2d4b
BE
92532020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9254
9255 * buildsym.c (record_line): Fix undefined behavior and preserve
9256 lines at eof.
9257
bbe3dc41
BE
92582020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9259
9260 * buildsym.c (record_line): Fix the resizing condition.
9261
6b4a335b
TT
92622020-04-01 Tom Tromey <tom@tromey.com>
9263
9264 * value.h (value_literal_complex): Add comment.
9265 * valops.c (value_literal_complex): Refer to value.h.
9266
3638a098
TT
92672020-04-01 Tom Tromey <tom@tromey.com>
9268
9269 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9270 (scalar_type): New rule, from typebase.
9271 (typebase): Use scalar_type. Recognize complex types.
9272 (field_name): Handle FLOAT_KEYWORD.
9273 (ident_tokens): Add _Complex and __complex__.
9274
c34e8714
TT
92752020-04-01 Tom Tromey <tom@tromey.com>
9276
9277 PR exp/25299:
9278 * valarith.c (promotion_type, complex_binop): New functions.
9279 (scalar_binop): Handle complex numbers. Use promotion_type.
9280 (value_pos, value_neg, value_complement): Handle complex numbers.
9281
fa649bb7
TT
92822020-04-01 Tom Tromey <tom@tromey.com>
9283
9284 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9285 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9286 (parse_number): Handle complex numbers.
9287
981c08ce
TT
92882020-04-01 Tom Tromey <tom@tromey.com>
9289
9290 * c-valprint.c (c_decorations): Change complex suffix to "i".
9291
4c99290d
TT
92922020-04-01 Tom Tromey <tom@tromey.com>
9293
9294 * valprint.c (generic_value_print_complex): Use accessors.
9295 * value.h (value_real_part, value_imaginary_part): Declare.
9296 * valops.c (value_real_part, value_imaginary_part): New
9297 functions.
9298 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9299
5b930b45
TT
93002020-04-01 Tom Tromey <tom@tromey.com>
9301
9302 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9303 (read_range_type): Update.
9304 * mdebugread.c (basic_type): Update.
9305 * go-lang.c (build_go_types): Use init_complex_type.
9306 * gdbtypes.h (struct main_type) <complex_type>: New member.
9307 (init_complex_type): Update.
9308 (arch_complex_type): Don't declare.
9309 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9310 Make name if none given. Use alloc_type_copy. Look for cached
9311 complex type.
9312 (arch_complex_type): Remove.
9313 (gdbtypes_post_init): Use init_complex_type.
9314 * f-lang.c (build_fortran_types): Use init_complex_type.
9315 * dwarf2/read.c (read_base_type): Update.
9316 * d-lang.c (build_d_types): Use init_complex_type.
9317 * ctfread.c (read_base_type): Update.
9318
53cccef1
TBA
93192020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9320
9321 * infrun.c (stop_all_threads): Update assertion, plus when
9322 stopping threads, take into account that we might be trying
9323 to stop an all-stop target.
9324 (stop_waiting): Call 'stop_all_threads' if there exists a
9325 non-stop target.
9326
a0714d30
TBA
93272020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9328
9329 * target.h (exists_non_stop_target): New function declaration.
9330 * target.c (exists_non_stop_target): New function.
9331
60e22c1e
HD
93322020-04-01 Hannes Domani <ssbssa@yahoo.de>
9333
9334 PR gdb/24789
9335 * eval.c (is_integral_or_integral_reference): New function.
9336 (evaluate_subexp_standard): Allow integer references in
9337 pointer arithmetic.
9338
e139a727
TBA
93392020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9340
9341 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9342 check for no ptid in the stop reply when the target is non-stop.
9343
e0802d59
TT
93442020-04-01 Tom Tromey <tromey@adacore.com>
9345
9346 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9347 "name" parameter to rvalue reference. Initialize m_name_holder.
9348 <lookup_name_info>: New overloads.
9349 <name>: Return gdb::string_view.
9350 <c_str>: New method.
9351 <make_ignore_params>: Update.
9352 <search_name_hash>: Update.
9353 <language_lookup_name>: Return const char *.
9354 <m_name>: Change type.
9355 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9356 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9357 (lookup_name_info::match_any): Update.
9358 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9359 Update.
9360 * minsyms.c (linkage_name_str): Update.
9361 * language.c (default_symbol_name_matcher): Update.
9362 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9363 Update.
9364 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9365 (ada_lookup_name_info::ada_lookup_name_info): Update.
9366 (literal_symbol_name_matcher): Update.
9367
8c072cb6
TT
93682020-04-01 Tom Tromey <tromey@adacore.com>
9369
9370 * psymtab.c (psymtab_search_name): Remove function.
9371 (psym_lookup_symbol): Create search name and lookup name here.
9372 (lookup_partial_symbol): Remove "name" parameter; add
9373 lookup_name.
9374 (psym_expand_symtabs_for_function): Update.
9375
6f29a534
TT
93762020-03-31 Joel Jones <joelkevinjones@gmail.com>
9377
9378 PR tui/25597:
9379 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9380
af62665e
TT
93812020-03-31 Tom Tromey <tromey@adacore.com>
9382
9383 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9384 memcpy.
9385
d1a89da5
NC
93862020-03-30 Nelson Chu <nelson.chu@sifive.com>
9387
9388 * features/riscv/32bit-csr.xml: Regenerated.
9389 * features/riscv/64bit-csr.xml: Regenerated.
9390
d8af9068
TT
93912020-03-30 Tom Tromey <tromey@adacore.com>
9392
9393 * ada-valprint.c (print_variant_part): Update.
9394 * ada-lang.h (ada_which_variant_applies): Update.
9395 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9396 outer_valaddr parameters; replace with "outer" value parameter.
9397 (to_fixed_variant_branch_type): Update.
9398
227c0bf4
PFC
93992020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9400
9401 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9402 <list>. Remove inclusion of observable.h.
9403 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9404 (struct arch_lwp_info): New struct.
9405 (class ppc_linux_dreg_interface): New class.
9406 (struct ppc_linux_process_info): New struct.
9407 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9408 <low_new_clone, low_forget_process, low_prepare_to_resume>
9409 <copy_thread_dreg_state, mark_thread_stale>
9410 <mark_debug_registers_changed, register_hw_breakpoint>
9411 <clear_hw_breakpoint, register_wp, clear_wp>
9412 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9413 <num_memory_accesses, get_trigger_type>
9414 <create_watchpoint_request, hwdebug_point_cmp>
9415 <init_arch_lwp_info, get_arch_lwp_info>
9416 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9417 methods.
9418 <struct ptid_hash>: New inner struct.
9419 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9420 members.
9421 (saved_dabr_value, hwdebug_info, max_slots_number)
9422 (struct hw_break_tuple, struct thread_points, ppc_threads)
9423 (have_ptrace_hwdebug_interface)
9424 (hwdebug_find_thread_points_by_tid)
9425 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9426 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9427 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9428 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9429 use m_dreg_interface.
9430 (hwdebug_point_cmp): Change to...
9431 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9432 reference arguments instead of pointers.
9433 (ppc_linux_nat_target::ranged_break_num_registers): Use
9434 m_dreg_interface.
9435 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9436 m_dreg_interface. Call register_hw_breakpoint.
9437 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9438 m_dreg_interface. Call clear_hw_breakpoint.
9439 (get_trigger_type): Change to...
9440 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9441 comment.
9442 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9443 use m_dreg_interface. Call register_hw_breakpoint.
9444 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9445 use m_dreg_interface. Call clear_hw_breakpoint.
9446 (can_use_watchpoint_cond_accel): Change to...
9447 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9448 method. Update comment, use m_dreg_interface and
9449 m_process_info.
9450 (calculate_dvc): Change to...
9451 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9452 m_dreg_interface.
9453 (num_memory_accesses): Change to...
9454 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9455 (check_condition): Change to...
9456 (ppc_linux_nat_target::check_condition): ...this method.
9457 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9458 comment, use m_dreg_interface.
9459 (create_watchpoint_request): Change to...
9460 (ppc_linux_nat_target::create_watchpoint_request): ...this
9461 method. Use m_dreg_interface.
9462 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9463 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9464 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9465 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9466 (ppc_linux_nat_target::low_forget_process)
9467 (ppc_linux_nat_target::low_new_fork)
9468 (ppc_linux_nat_target::low_new_clone)
9469 (ppc_linux_nat_target::low_delete_thread)
9470 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9471 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9472 only call mark_thread_stale.
9473 (ppc_linux_thread_exit): Remove.
9474 (ppc_linux_nat_target::stopped_data_address): Change to...
9475 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9476 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9477 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9478 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9479 comment. Call low_stopped_data_address.
9480 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9481 m_dreg_interface.
9482 (ppc_linux_nat_target::masked_watch_num_registers): Use
9483 m_dreg_interface.
9484 (ppc_linux_nat_target::copy_thread_dreg_state)
9485 (ppc_linux_nat_target::mark_thread_stale)
9486 (ppc_linux_nat_target::mark_debug_registers_changed)
9487 (ppc_linux_nat_target::register_hw_breakpoint)
9488 (ppc_linux_nat_target::clear_hw_breakpoint)
9489 (ppc_linux_nat_target::register_wp)
9490 (ppc_linux_nat_target::clear_wp)
9491 (ppc_linux_nat_target::init_arch_lwp_info)
9492 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9493 (_initialize_ppc_linux_nat): Remove observer callback.
9494
4db10d8f
PFC
94952020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9496
9497 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9498 (ppc_linux_nat_target::auxv_parse)
9499 (ppc_linux_nat_target::read_description)
9500 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9501 Move up.
9502
1310c1b0
PFC
95032020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9504
9505 * linux-nat.h (low_new_clone): New method.
9506 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9507
69b037c3
SM
95082020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9509
9510 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9511 (dbx_expand_psymtab): ... this.
9512 (start_psymtab): Update.
9513 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9514 (mdebug_expand_psymtab): ... this.
9515 (parse_partial_symbols): Update.
9516 (new_psymtab): Update.
9517 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9518 (xcoff_expand_psymtab): ... this.
9519 (xcoff_start_psymtab): Update.
9520
48993951
SM
95212020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9522
9523 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9524 <expand_dependencies>: ... this.
9525 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9526 (partial_symtab::expand_dependencies): ... this.
9527 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9528 Update.
9529 (dwarf2_psymtab::expand_psymtab): Update.
9530 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9531 * mdebugread.c (psymtab_to_symtab_1): Update.
9532 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9533
3ad83046
SM
95342020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9535
9536 * psympriv.h (discard_psymtab): Remove.
9537 * dbxread.c (dbx_end_psymtab): Update.
9538 * xcoffread.c (xcoff_end_psymtab): Update.
9539
4d1b9ab6
TT
95402020-03-28 Tom Tromey <tom@tromey.com>
9541
9542 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9543 comment.
9544
f1749218
TT
95452020-03-28 Tom Tromey <tom@tromey.com>
9546
9547 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9548
ebea7626
HD
95492020-03-27 Hannes Domani <ssbssa@yahoo.de>
9550
9551 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9552
a879b4d5
JB
95532020-03-26 John Baldwin <jhb@FreeBSD.org>
9554
9555 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9556
0826b30a
TT
95572020-03-26 Tom Tromey <tom@tromey.com>
9558
9559 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9560 (mark_common_block_symbol_computed, read_tag_string_type)
9561 (attr_to_dynamic_prop, read_subrange_type): Update.
9562 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9563 to be methods on struct attribute.
9564 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9565 (read_call_site_scope, partial_die_info::read)
9566 (partial_die_info::read, lookup_die_type, follow_die_ref):
9567 Update.
9568 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9569 from dwarf2_get_ref_die_offset.
9570 (attribute::constant_value): New method, from
9571 dwarf2_get_attr_constant_value.
9572 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9573 Declare method.
9574 <constant_value>: New method.
9575
2b2558bf
TT
95762020-03-26 Tom Tromey <tom@tromey.com>
9577
9578 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9579 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9580 (dwarf_type_encoding_name): Move to stringify.c.
9581 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9582 * dwarf2/stringify.c: New file.
9583 * dwarf2/stringify.h: New file.
9584
eeb64781
TT
95852020-03-26 Tom Tromey <tom@tromey.com>
9586
9587 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9588 Rewrite.
9589
a39fdb41
TT
95902020-03-26 Tom Tromey <tom@tromey.com>
9591
9592 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9593 methods.
9594 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9595 (lookup_ranges_base): Likewise.
9596 (read_cutu_die_from_dwo, read_full_die_1): Update.
9597
436c571c
TT
95982020-03-26 Tom Tromey <tom@tromey.com>
9599
9600 * dwarf2/read.c (read_import_statement, read_file_scope)
9601 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9602 (read_lexical_block_scope, read_call_site_scope)
9603 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9604 (handle_struct_member_die, process_structure_scope)
9605 (update_enumeration_type_from_children)
9606 (process_enumeration_scope, read_array_type, read_common_block)
9607 (read_namespace, read_module, read_subroutine_type): Update.
9608 (sibling_die): Remove.
9609
052c8bb8
TT
96102020-03-26 Tom Tromey <tom@tromey.com>
9611
9612 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9613 (build_type_psymtabs_reader, read_structure_type)
9614 (read_enumeration_type, read_full_die_1): Update.
9615 (dwarf2_attr_no_follow): Move to die.h.
9616 * dwarf2/die.h (struct die_info) <attr>: New method.
9617
2b24b6e4
TT
96182020-03-26 Tom Tromey <tom@tromey.com>
9619
9620 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9621 <base_address>: Now an optional.
9622 (dwarf2_find_base_address, dwarf2_rnglists_process)
9623 (dwarf2_ranges_process, fill_in_loclist_baton)
9624 (dwarf2_symbol_mark_computed): Update.
9625
c2d50fd0
TT
96262020-03-26 Tom Tromey <tom@tromey.com>
9627
9628 * dwarf2/read.c (struct die_info): Move to die.h.
9629 * dwarf2/die.h: New file.
9630
0df7ad3a
TT
96312020-03-26 Tom Tromey <tom@tromey.com>
9632
9633 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9634 * dwarf2/read.c
9635 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9636 Move to line-header.c.
9637 (read_checked_initial_length_and_offset, read_formatted_entries):
9638 Likewise.
9639 (dwarf_decode_line_header): Split into two.
9640 * dwarf2/line-header.c
9641 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9642 Move from read.c.
9643 (read_checked_initial_length_and_offset, read_formatted_entries):
9644 Likewise.
9645 (dwarf_decode_line_header): New function, split from read.c.
9646
86c0bb4c
TT
96472020-03-26 Tom Tromey <tom@tromey.com>
9648
9649 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9650 Declare method.
9651 * dwarf2/read.c (read_attribute_value): Update.
9652 (dwarf2_per_objfile::read_line_string): Rename from
9653 read_indirect_line_string.
9654 (read_formatted_entries): Update.
9655
2ef46c2f
TT
96562020-03-26 Tom Tromey <tom@tromey.com>
9657
9658 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9659 variable.
9660
4f9c1eda
TT
96612020-03-26 Tom Tromey <tom@tromey.com>
9662
9663 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9664 const.
9665 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9666 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9667 parameter const.
9668
5a0e026f
TT
96692020-03-26 Tom Tromey <tom@tromey.com>
9670
9671 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9672 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9673 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9674 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9675
8844c11b
TT
96762020-03-26 Tom Tromey <tom@tromey.com>
9677
9678 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9679 file_names_size, file_full_name, file_file_name>: Use const.
9680 <file_name_at, file_names>: Add const overload.
9681 * dwarf2/line-header.c (line_header::file_file_name)
9682 (line_header::file_full_name): Update.
9683
c90ec28a
TT
96842020-03-26 Tom Tromey <tom@tromey.com>
9685
9686 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9687 (macro_start_file, consume_improper_spaces)
9688 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9689 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9690 (dwarf_decode_macros): Move to macro.c.
9691 * dwarf2/macro.c: New file.
9692 * dwarf2/macro.h: New file.
9693 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9694
4f44ae6c
TT
96952020-03-26 Tom Tromey <tom@tromey.com>
9696
9697 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9698 method.
9699 * dwarf2/section.c: New method. From
9700 read_indirect_string_at_offset_from.
9701 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9702 (read_indirect_string_at_offset_from): Move to section.c.
9703 (read_indirect_string_at_offset): Rewrite.
9704 (read_indirect_line_string_at_offset): Remove.
9705 (read_indirect_string, read_indirect_line_string)
9706 (dwarf_decode_macro_bytes): Update.
9707
a0194fa8
TT
97082020-03-26 Tom Tromey <tom@tromey.com>
9709
9710 * dwarf2/section.h (struct dwarf2_section_info)
9711 <overload_complaint>: Declare.
9712 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9713 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9714 Rename from dwarf2_section_buffer_overflow_complaint.
9715 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9716 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9717
3d27bbdb
TT
97182020-03-26 Tom Tromey <tom@tromey.com>
9719
9720 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9721 Declare.
9722 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9723 Move from read.c.
9724 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9725 to section.c.
9726
9eac9650
TT
97272020-03-26 Tom Tromey <tom@tromey.com>
9728
9729 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9730
bf80d710
TT
97312020-03-26 Tom Tromey <tom@tromey.com>
9732
9733 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9734 "builder".
9735 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9736 parameter.
9737 (dwarf_decode_macros): Update.
9738
0314b390
TT
97392020-03-26 Tom Tromey <tom@tromey.com>
9740
9741 * dwarf2/read.c (read_attribute_value): Update.
9742 (read_indirect_string_from_dwz): Move to dwz.c; change into
9743 method.
9744 (dwarf_decode_macro_bytes): Update.
9745 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9746 * dwarf2/dwz.c: New file.
9747 * Makefile.in (COMMON_SFILES): Add dwz.c.
9748
9fda78b6
TT
97492020-03-26 Tom Tromey <tom@tromey.com>
9750
9751 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9752 * dwarf2/read.c: Add include.
9753 * dwarf2/index-write.c: Add include.
9754 * dwarf2/index-cache.c: Add include.
9755 * dwarf2/dwz.h: New file.
9756
33aa3c10
TT
97572020-03-25 Tom Tromey <tom@tromey.com>
9758
9759 * compile/compile-object-load.c (get_out_value_type): Mention
9760 correct symbol name in error message.
9761
d503b685
HD
97622020-03-25 Hannes Domani <ssbssa@yahoo.de>
9763
9764 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9765
7b1eff95
TV
97662020-03-25 Tom de Vries <tdevries@suse.de>
9767
9768 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9769 * symmisc.c (dump_symtab_1): Print user and includes fields.
9770 (maintenance_info_symtabs): Same.
9771
dd895392
AB
97722020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9773
9774 PR gdb/25534
9775 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9776 (riscv_regcache_cooked_write): New function.
9777 (riscv_push_dummy_call): Use new function.
9778 (riscv_return_value): Likewise.
9779
5ab2fbf1
SM
97802020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9781
9782 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9783 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9784 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9785 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9786 * infrun.c (follow_fork): Likewise.
9787 (follow_fork_inferior): Likewise.
9788 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9789 * linux-nat.h (class linux_nat_target): Likewise.
9790 * remote.c (class remote_target) <follow_fork>: Likewise.
9791 (remote_target::follow_fork): Likewise.
9792 * target-delegates.c: Re-generate.
9793 * target.c (default_follow_fork): Likewise.
9794 (target_follow_fork): Likewise.
9795 * target.h (struct target_ops) <follow_fork>: Likewise.
9796 (target_follow_fork): Likewise.
9797
a64fafb5
TV
97982020-03-24 Tom de Vries <tdevries@suse.de>
9799
9800 * psymtab.c (maintenance_info_psymtabs): Print user field.
9801
fe26d3a3
TT
98022020-03-20 Tom Tromey <tromey@adacore.com>
9803
9804 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9805 const.
9806 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9807 const.
9808
c884cc46
SM
98092020-03-20 Simon Marchi <simon.marchi@efficios.com>
9810
9811 * ptrace.m4: Don't check for ptrace declaration.
9812 * config.in: Re-generate.
9813 * configure: Re-generate.
9814 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9815 not defined.
9816
1ff700c2
KR
98172020-03-20 Kamil Rytarowski <n54@gmx.com>
9818
9819 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9820 `PTRACE_TYPE_RET'.
9821 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9822 * sparc-nat.c (gdb_ptrace): Likewise.
9823 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9824
f7d4f0b1
TT
98252020-03-20 Tom Tromey <tromey@adacore.com>
9826
9827 * c-exp.y (lex_one_token): Fix assert.
9828
f67210ff
TT
98292020-03-20 Tom Tromey <tromey@adacore.com>
9830
9831 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9832 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9833 strncpy call.
9834
1773be9e
TT
98352020-03-20 Tom Tromey <tromey@adacore.com>
9836
9837 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9838
70304be9
TT
98392020-03-20 Tom Tromey <tromey@adacore.com>
9840
9841 * ada-valprint.c (print_variant_part): Remove parameters; switch
9842 to value-based API.
9843 (print_field_values): Likewise.
9844 (ada_val_print_struct_union): Likewise.
9845 (ada_value_print_1): Update.
9846
9faa006d
KR
98472020-03-20 Kamil Rytarowski <n54@gmx.com>
9848
9849 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9850 nbsd_nat_target instead of inf_ptrace_target.
9851 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9852 nbsd_nat_target.
9853
4a90f062
KR
98542020-03-20 Kamil Rytarowski <n54@gmx.com>
9855
9856 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9857 it to the ptrace call.
9858 * (store_registers): Likewise.
9859
98602020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9861
9862 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9863 it to the ptrace call.
9864 * (store_registers): Likewise.
9865
2d07da27
LM
98662020-03-19 Luis Machado <luis.machado@linaro.org>
9867
9868 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9869 valid, fetch vg value from ptrace.
9870
f09db380
KR
98712020-03-19 Kamil Rytarowski <n54@gmx.com>
9872 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9873 * inf-ptrace.c: Likewise.
9874 * (gdb_ptrace): Add.
9875 * (inf_ptrace_target::resume): Update.
9876 * (inf_ptrace_target::xfer_partial): Likewise.
9877 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9878 * (inf_ptrace_peek_poke): Update.
9879
fcc7376e
KR
98802020-03-19 Kamil Rytarowski <n54@gmx.com>
9881
9882 * x86-bsd-nat.c (gdb_ptrace): New.
9883 * (x86bsd_dr_set): Add new argument `ptid'.
9884 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9885 x86bsd_dr_set_addr): Update.
9886
cada5fc9
AB
98872020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9888
9889 * remote.c (remote_target::process_stop_reply): Handle events for
9890 all threads differently.
9891
19a2740f
AB
98922020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9893
9894 * completer.c (completion_tracker::remove_completion): Define new
9895 function.
9896 * completer.h (completion_tracker::remove_completion): Declare new
9897 function.
9898 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9899 when adding a C++ function symbol.
9900
724fd9ba
AB
99012020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9902
9903 * completer.c (completion_tracker::completion_hash_entry): Define
9904 new class.
9905 (advance_to_filename_complete_word_point): Call
9906 recompute_lowest_common_denominator.
9907 (completion_tracker::completion_tracker): Call discard_completions
9908 to setup the hash table.
9909 (completion_tracker::discard_completions): Allow for being called
9910 from the constructor, pass new equal function, and element deleter
9911 when constructing the hash table. Initialise new class member
9912 variables.
9913 (completion_tracker::maybe_add_completion): Remove use of
9914 m_entries_vec, and store more information into m_entries_hash.
9915 (completion_tracker::recompute_lcd_visitor): New function, most
9916 content taken from...
9917 (completion_tracker::recompute_lowest_common_denominator):
9918 ...here, this now just visits each item in the hash calling the
9919 above visitor.
9920 (completion_tracker::build_completion_result): Remove use of
9921 m_entries_vec, call recompute_lowest_common_denominator.
9922 * completer.h (completion_tracker::have_completions): Remove use
9923 of m_entries_vec.
9924 (completion_tracker::completion_hash_entry): Declare new class.
9925 (completion_tracker::recompute_lowest_common_denominator): Change
9926 function signature.
9927 (completion_tracker::recompute_lcd_visitor): Declare new function.
9928 (completion_tracker::m_entries_vec): Delete.
9929 (completion_tracker::m_entries_hash): Initialize to NULL.
9930 (completion_tracker::m_lowest_common_denominator_valid): New
9931 member variable.
9932 (completion_tracker::m_lowest_common_denominator_max_length): New
9933 member variable.
9934
5a82b8a1
KR
99352020-03-17 Kamil Rytarowski <n54@gmx.com>
9936
9937 * regformats/regdef.h: Put reg in gdb namespace.
9938
fb516a69
KR
99392020-03-17 Kamil Rytarowski <n54@gmx.com>
9940
9941 * i386-bsd-nat.c (gdb_ptrace): New.
9942 * (i386bsd_fetch_inferior_registers,
9943 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9944 * (i386bsd_fetch_inferior_registers,
9945 i386bsd_store_inferior_registers) Use gdb_ptrace.
9946
1c0aa1fb
KR
99472020-03-17 Kamil Rytarowski <n54@gmx.com>
9948
9949 * amd64-bsd-nat.c (gdb_ptrace): New.
9950 * (amd64bsd_fetch_inferior_registers,
9951 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9952 * (amd64bsd_fetch_inferior_registers,
9953 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9954
5ccd2fb7
KR
99552020-03-17 Kamil Rytarowski <n54@gmx.com>
9956
9957 * user-regs.c (user_reg::read): Rename to...
9958 (user_reg::xread): ...this.
9959 * (append_user_reg): Rename argument `read' to `xread'.
9960 * (user_reg_add_builtin): Likewise.
9961 * (user_reg_add): Likewise.
9962 * (value_of_user_reg): Likewise.
9963
2108a63a
KR
99642020-03-17 Kamil Rytarowski <n54@gmx.com>
9965
9966 * sparc-nat.c (gdb_ptrace): New.
9967 * sparc-nat.c (sparc_fetch_inferior_registers)
9968 (sparc_store_inferior_registers) Remove obsolete comment.
9969 * sparc-nat.c (sparc_fetch_inferior_registers)
9970 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9971 * sparc-nat.c (sparc_fetch_inferior_registers)
9972 (sparc_store_inferior_registers) Use gdb_ptrace.
9973
a225c9a8
KR
99742020-03-17 Kamil Rytarowski <n54@gmx.com>
9975
9976 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9977 it to the ptrace call.
9978 * sh-nbsd-nat.c (store_registers): Likewise.
9979
98097623
KR
99802020-03-17 Kamil Rytarowski <n54@gmx.com>
9981
9982 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9983 nbsd_nat_target instead of inf_ptrace_target.
9984 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9985 nbsd_nat_target.
9986
9e38d619
KR
99872020-03-17 Kamil Rytarowski <n54@gmx.com>
9988
9989 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9990
a2ecbe9f
KR
99912020-03-17 Kamil Rytarowski <n54@gmx.com>
9992
9993 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9994 <sys/sysctl.h>.
9995 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9996
58990295
TV
99972020-03-17 Tom de Vries <tdevries@suse.de>
9998
9999 PR gdb/23710
10000 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10001 fields.
10002 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10003 fields.
10004 (process_imported_unit_die): Skip import of c++ CUs.
10005
771dd3a8
TT
100062020-03-16 Tom Tromey <tom@tromey.com>
10007
10008 * p-valprint.c (pascal_object_print_value): Initialize
10009 base_value.
10010
817a7585
AK
100112020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10012 Shahab Vahedi <shahab@synopsys.com>
10013
10014 * Makefile.in: Add arch/arc.o
10015 * configure.tgt: Likewise.
10016 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10017 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10018 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10019 * arc-tdep.h (arc_read_description): Add proto type.
10020 * arch/arc.c: New file.
10021 * arch/arc.h: Likewise.
10022 * features/Makefile: Replace old target descriptions with new.
10023 * features/arc-arcompact.c: Remove.
10024 * features/arc-arcompact.xml: Likewise.
10025 * features/arc-v2.c: Likewise
10026 * features/arc-v2.xml: Likewise
10027 * features/arc/aux-arcompact.xml: New file.
10028 * features/arc/aux-v2.xml: Likewise.
10029 * features/arc/core-arcompact.xml: Likewise.
10030 * features/arc/core-v2.xml: Likewise.
10031 * features/arc/aux-arcompact.c: Generate.
10032 * features/arc/aux-v2.c: Likewise.
10033 * features/arc/core-arcompact.c: Likewise.
10034 * features/arc/core-v2.c: Likewise.
10035 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10036
67430cd0
TT
100372020-03-16 Tom Tromey <tromey@adacore.com>
10038
10039 PR gdb/25663:
10040 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10041 putting value into bcache.
10042
30efb6c7
SM
100432020-03-16 Simon Marchi <simon.marchi@efficios.com>
10044
10045 PR gdb/21500
10046 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10047 to...
10048 (amd64_windows_init_abi_common): ... this. Don't set size of
10049 long type.
10050 (amd64_windows_init_abi): New function.
10051 (amd64_cygwin_init_abi): New function.
10052 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10053 the Cygwin OS ABI.
10054 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10055 comment.
10056
8db52437
SM
100572020-03-16 Simon Marchi <simon.marchi@efficios.com>
10058
10059 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10060 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10061 (pe_import_directory_entry): New struct type.
10062 (is_linked_with_cygwin_dll): New function.
10063 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10064 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10065 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10066
5982a56a
SM
100672020-03-16 Simon Marchi <simon.marchi@efficios.com>
10068
10069 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10070 i386_cygwin_core_osabi_sniffer.
10071
7a1998df
SM
100722020-03-16 Simon Marchi <simon.marchi@efficios.com>
10073
10074 * i386-cygwin-tdep.c: Rename to...
10075 * i386-windows-tdep.c: ... this.
10076 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10077 i386-windows-tdep.c.
10078 * configure.tgt: Likewise.
10079
053205cc
SM
100802020-03-16 Simon Marchi <simon.marchi@efficios.com>
10081
10082 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10083 * osabi.c (gdb_osabi_names): Add "Windows".
10084 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10085 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10086 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10087 i386_cygwin_osabi_sniffer.
10088 (_initialize_i386_cygwin_tdep): Register OS ABI
10089 GDB_OSABI_WINDOWS for i386.
10090 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10091 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10092 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10093 for x86-64.
10094 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10095 when the target matches '*-*-mingw*'.
10096
fe4b2ee6
SM
100972020-03-16 Simon Marchi <simon.marchi@efficios.com>
10098
10099 * defs.h (enum gdb_osabi): Move to...
10100 * osabi.h (enum gdb_osabi): ... here.
10101 * gdbarch.sh: Include osabi.h in gdbarch.h.
10102 * gdbarch.h: Re-generate.
10103
cb9b645d
SM
101042020-03-16 Simon Marchi <simon.marchi@efficios.com>
10105
10106 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10107 function.
10108 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10109
3293bbaf
TT
101102020-03-14 Tom Tromey <tom@tromey.com>
10111
10112 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10113 for C++.
10114 (c_type_print_modifier): Likewise. Add "language" parameter.
10115 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10116 (c_type_print_base_1): Update.
10117 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10118 constants.
10119 * type-stack.c (type_stack::insert): Handle tp_atomic and
10120 tp_restrict.
10121 (type_stack::follow_type_instance_flags): Likewise.
10122 (type_stack::follow_types): Likewise. Merge type-following code.
10123 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10124 (space_identifier, cv_with_space_id)
10125 (const_or_volatile_or_space_identifier_noopt)
10126 (const_or_volatile_or_space_identifier): Remove.
10127 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10128 rules.
10129 (ptr_operator, typebase): Update.
10130 (enum token_flag) <FLAG_C>: New constant.
10131 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10132 "_Atomic".
10133 (lex_one_token): Handle FLAG_C.
10134
154151a6
KR
101352020-03-14 Kamil Rytarowski <n54@gmx.com>
10136
10137 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10138 it to the ptrace call.
10139 * m68k-bsd-nat.c (store_registers): Likewise.
10140
bc107784
KR
101412020-03-14 Kamil Rytarowski <n54@gmx.com>
10142
10143 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10144 gdb_byte *.
10145 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10146 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10147 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10148
01a80117
KR
101492020-03-14 Kamil Rytarowski <n54@gmx.com>
10150
10151 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10152 nbsd_nat_target instead of inf_ptrace_target.
10153 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10154 nbsd_nat_target.
10155
f90280ca
KR
101562020-03-14 Kamil Rytarowski <n54@gmx.com>
10157
10158 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10159 register_t.
10160
6def66f1
KR
101612020-03-14 Kamil Rytarowski <n54@gmx.com>
10162
10163 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10164 it to the ptrace call.
10165 * alpha-bsd-nat.c (store_registers): Likewise.
10166
66eaca97
KR
101672020-03-14 Kamil Rytarowski <n54@gmx.com>
10168
10169 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10170 includes.
10171 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10172 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10173 fill_fpregset): Likewise.
10174
4fed520b
KR
101752020-03-14 Kamil Rytarowski <n54@gmx.com>
10176
10177 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10178 nbsd_nat_target instead of inf_ptrace_target.
10179 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10180 nbsd_nat_target.
10181
2190cf06
KR
101822020-03-14 Kamil Rytarowski <n54@gmx.com>
10183
10184 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10185 register_t.
10186
75c56d3d
KR
101872020-03-14 Kamil Rytarowski <n54@gmx.com>
10188
10189 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10190 it to the ptrace call.
10191 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10192 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10193 * arm-nbsd-nat.c (store_register): Likewise.
10194 * arm-nbsd-nat.c (store_regs): Likewise.
10195 * arm-nbsd-nat.c (store_fp_register): Likewise.
10196 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10197
6018d381
KR
101982020-03-14 Kamil Rytarowski <n54@gmx.com>
10199
10200 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10201 nbsd_nat_target instead of inf_ptrace_target.
10202 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10203 nbsd_nat_target.
10204
013f99f0
KR
102052020-03-14 Kamil Rytarowski <n54@gmx.com>
10206
10207 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10208 it to the ptrace call.
10209 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10210
12753073
KR
102112020-03-14 Kamil Rytarowski <n54@gmx.com>
10212
6227b330
KR
10213 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10214 it to the ptrace call.
10215 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10216
102172020-03-14 Kamil Rytarowski <n54@gmx.com>
10218
10219 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10220 gdb_byte *.
12753073
KR
10221 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10222
d5be5fa4
KR
102232020-03-14 Kamil Rytarowski <n54@gmx.com>
10224
10225 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10226 instead of inf_ptrace_target.
10227 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10228 nbsd_nat_target.
10229
8110f842
KR
102302020-03-14 Kamil Rytarowski <n54@gmx.com>
10231
10232 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10233 register_t.
10234
52feded7
KR
102352020-03-14 Kamil Rytarowski <n54@gmx.com>
10236
10237 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10238 register_t.
10239
25567eee
KR
102402020-03-14 Kamil Rytarowski <n54@gmx.com>
10241
10242 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10243 register_t.
10244
426a9c18
TT
102452020-03-13 Tom Tromey <tom@tromey.com>
10246
10247 * value.h (val_print): Don't declare.
10248 * valprint.h (val_print_array_elements)
10249 (val_print_scalar_formatted, generic_val_print): Don't declare.
10250 * valprint.c (generic_val_print_array): Take a struct value.
10251 (generic_val_print_ptr, generic_val_print_memberptr)
10252 (generic_val_print_bool, generic_val_print_int)
10253 (generic_val_print_char, generic_val_print_complex)
10254 (generic_val_print): Remove.
10255 (generic_value_print): Update.
10256 (do_val_print): Remove unused parameters. Don't call
10257 la_val_print.
10258 (val_print): Remove.
10259 (common_val_print): Update. Don't call value_check_printable.
10260 (val_print_scalar_formatted, val_print_array_elements): Remove.
10261 * rust-lang.c (rust_val_print): Remove.
10262 (rust_language_defn): Update.
10263 * p-valprint.c (pascal_val_print): Remove.
10264 (pascal_value_print_inner): Update.
10265 (pascal_object_print_val_fields, pascal_object_print_val):
10266 Remove.
10267 (pascal_object_print_static_field): Update.
10268 * p-lang.h (pascal_val_print): Don't declare.
10269 * p-lang.c (pascal_language_defn): Update.
10270 * opencl-lang.c (opencl_language_defn): Update.
10271 * objc-lang.c (objc_language_defn): Update.
10272 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10273 * m2-lang.h (m2_val_print): Don't declare.
10274 * m2-lang.c (m2_language_defn): Update.
10275 * language.h (struct language_defn) <la_val_print>: Remove.
10276 * language.c (unk_lang_value_print_inner): Rename. Change
10277 argument types.
10278 (unknown_language_defn, auto_language_defn): Update.
10279 * go-valprint.c (go_val_print): Remove.
10280 * go-lang.h (go_val_print): Don't declare.
10281 * go-lang.c (go_language_defn): Update.
10282 * f-valprint.c (f_val_print): Remove.
10283 * f-lang.h (f_value_print): Don't declare.
10284 * f-lang.c (f_language_defn): Update.
10285 * d-valprint.c (d_val_print): Remove.
10286 * d-lang.h (d_value_print): Don't declare.
10287 * d-lang.c (d_language_defn): Update.
10288 * cp-valprint.c (cp_print_value_fields)
10289 (cp_print_value_fields_rtti, cp_print_value): Remove.
10290 (cp_print_static_field): Update.
10291 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10292 (c_val_print_struct, c_val_print_union, c_val_print_int)
10293 (c_val_print_memberptr, c_val_print): Remove.
10294 * c-lang.h (c_val_print_array, cp_print_value_fields)
10295 (cp_print_value_fields_rtti): Don't declare.
10296 * c-lang.c (c_language_defn, cplus_language_defn)
10297 (asm_language_defn, minimal_language_defn): Update.
10298 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10299 (ada_val_print_enum): Take a struct value.
10300 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10301 (ada_val_print): Remove.
10302 (ada_value_print_1): Update.
10303 (printable_val_type): Remove.
10304 * ada-lang.h (ada_val_print): Don't declare.
10305 * ada-lang.c (ada_language_defn): Update.
10306
42331a1e
TT
103072020-03-13 Tom Tromey <tom@tromey.com>
10308
10309 * valprint.c (do_val_print): Update.
10310 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10311 a struct value.
10312 (value_to_value_object_no_release): Declare.
10313 * python/py-value.c (value_to_value_object_no_release): New
10314 function.
10315 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10316 struct value.
10317 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10318 function.
10319 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10320 a struct value.
10321 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10322 Declare.
10323 (gdbscm_apply_val_pretty_printer): Take a struct value.
10324 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10325 value.
10326 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10327 value.
10328 * extension-priv.h (struct extension_language_ops)
10329 <apply_val_pretty_printer>: Take a struct value.
10330 * cp-valprint.c (cp_print_value): Create a struct value.
10331 (cp_print_value): Update.
10332
3a916a97
TT
103332020-03-13 Tom Tromey <tom@tromey.com>
10334
10335 * ada-valprint.c (print_field_values): Call common_val_print.
10336
b59eac37
TT
103372020-03-13 Tom Tromey <tom@tromey.com>
10338
10339 * ada-valprint.c (val_print_packed_array_elements): Remove
10340 bitoffset and val parameters. Call common_val_print.
10341 (ada_val_print_string): Remove offset, address, and original_value
10342 parameters.
10343 (ada_val_print_array): Update.
10344 (ada_value_print_array): New function.
10345 (ada_value_print_1): Call it.
10346
03371129
TT
103472020-03-13 Tom Tromey <tom@tromey.com>
10348
10349 * ada-valprint.c (ada_value_print): Use common_val_print.
10350
2e088f8b
TT
103512020-03-13 Tom Tromey <tom@tromey.com>
10352
10353 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10354
39ef85a8
TT
103552020-03-13 Tom Tromey <tom@tromey.com>
10356
10357 * ada-valprint.c (ada_value_print_num): New function.
10358 (ada_value_print_1): Use it.
10359
b9fa6e07
TT
103602020-03-13 Tom Tromey <tom@tromey.com>
10361
10362 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10363
416595d6
TT
103642020-03-13 Tom Tromey <tom@tromey.com>
10365
10366 * ada-valprint.c (ada_value_print_ptr): New function.
10367 (ada_value_print_1): Use it.
10368
5b5e15ec
TT
103692020-03-13 Tom Tromey <tom@tromey.com>
10370
10371 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10372 call common_val_print.
10373 (ada_val_print_1): Update.
10374 (ada_value_print_1): New function.
10375 (ada_value_print_inner): Rewrite.
10376
fbf54e75
TT
103772020-03-13 Tom Tromey <tom@tromey.com>
10378
10379 * cp-valprint.c (cp_print_value_fields): Update.
10380 (cp_print_value): New function.
10381
64b653ca
TT
103822020-03-13 Tom Tromey <tom@tromey.com>
10383
10384 * m2-valprint.c (m2_value_print_inner): Use
10385 cp_print_value_fields.
10386 * cp-valprint.c (cp_print_value_fields): New function.
10387 * c-valprint.c (c_value_print_struct): New function.
10388 (c_value_print_inner): Use c_value_print_struct.
10389 * c-lang.h (cp_print_value_fields): Declare.
10390
6999f067
TT
103912020-03-13 Tom Tromey <tom@tromey.com>
10392
10393 * c-valprint.c (c_value_print_array): New function.
10394 (c_value_print_inner): Use it.
10395
ce80b8bd
TT
103962020-03-13 Tom Tromey <tom@tromey.com>
10397
10398 * c-valprint.c (c_value_print_memberptr): New function.
10399 (c_value_print_inner): Use it.
10400
2faac269
TT
104012020-03-13 Tom Tromey <tom@tromey.com>
10402
10403 * c-valprint.c (c_value_print_int): New function.
10404 (c_value_print_inner): Use it.
10405
da3e2c29
TT
104062020-03-13 Tom Tromey <tom@tromey.com>
10407
10408 * c-valprint.c (c_value_print_ptr): New function.
10409 (c_value_print_inner): Use it.
10410
50836231
TT
104112020-03-13 Tom Tromey <tom@tromey.com>
10412
10413 * c-valprint.c (c_value_print_inner): Rewrite.
10414
4f412b6e
TT
104152020-03-13 Tom Tromey <tom@tromey.com>
10416
10417 * valprint.c (generic_value_print_complex): New function.
10418 (generic_value_print): Use it.
10419
f5354008
TT
104202020-03-13 Tom Tromey <tom@tromey.com>
10421
10422 * valprint.c (generic_val_print_float): Don't call
10423 val_print_scalar_formatted.
10424 (generic_val_print, generic_value_print): Update.
10425
3eec3b05
TT
104262020-03-13 Tom Tromey <tom@tromey.com>
10427
10428 * valprint.c (generic_value_print_char): New function
10429 (generic_value_print): Use it.
10430
fdddfccb
TT
104312020-03-13 Tom Tromey <tom@tromey.com>
10432
10433 * valprint.c (generic_value_print_int): New function.
10434 (generic_value_print): Use it.
10435
6dde7521
TT
104362020-03-13 Tom Tromey <tom@tromey.com>
10437
10438 * valprint.c (generic_value_print_bool): New function.
10439 (generic_value_print): Use it.
10440
4112d2e6
TT
104412020-03-13 Tom Tromey <tom@tromey.com>
10442
10443 * valprint.c (generic_val_print_func): Simplify.
10444 (generic_val_print, generic_value_print): Update.
10445
65786af6
TT
104462020-03-13 Tom Tromey <tom@tromey.com>
10447
10448 * valprint.c (generic_val_print_flags): Remove.
10449 (generic_val_print, generic_value_print): Update.
10450 (val_print_type_code_flags): Add original_value parameter.
10451
40f3ce18
TT
104522020-03-13 Tom Tromey <tom@tromey.com>
10453
10454 * valprint.c (generic_val_print): Update.
10455 (generic_value_print): Update.
10456 * valprint.c (generic_val_print_enum): Don't call
10457 val_print_scalar_formatted.
10458
2a5b130b
TT
104592020-03-13 Tom Tromey <tom@tromey.com>
10460
10461 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10462 * valprint.c (generic_value_print_ptr): New function.
10463
abc66ce9
TT
104642020-03-13 Tom Tromey <tom@tromey.com>
10465
10466 * valprint.c (generic_value_print): Rewrite.
10467
07a32858
TT
104682020-03-13 Tom Tromey <tom@tromey.com>
10469
10470 * p-valprint.c (pascal_object_print_value_fields)
10471 (pascal_object_print_value): New functions.
10472
64d64d3a
TT
104732020-03-13 Tom Tromey <tom@tromey.com>
10474
10475 * p-valprint.c (pascal_value_print_inner): Rewrite.
10476
6a95a1f5
TT
104772020-03-13 Tom Tromey <tom@tromey.com>
10478
10479 * f-valprint.c (f_value_print_innner): Rewrite.
10480
59fcdac6
TT
104812020-03-13 Tom Tromey <tom@tromey.com>
10482
10483 * m2-valprint.c (m2_print_unbounded_array): New overload.
10484 (m2_print_unbounded_array): Update.
10485 (m2_print_array_contents): Take a struct value.
10486 (m2_value_print_inner): Rewrite.
10487
d133c3e1
TT
104882020-03-13 Tom Tromey <tom@tromey.com>
10489
10490 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10491 (d_value_print_inner): New function.
10492 * d-lang.h (d_value_print_inner): Declare.
10493 * d-lang.c (d_language_defn): Use d_value_print_inner.
10494
23b0f06b
TT
104952020-03-13 Tom Tromey <tom@tromey.com>
10496
10497 * go-valprint.c (go_value_print_inner): New function.
10498 * go-lang.h (go_value_print_inner): Declare.
10499 * go-lang.c (go_language_defn): Use go_value_print_inner.
10500
5f56f7cb
TT
105012020-03-13 Tom Tromey <tom@tromey.com>
10502
10503 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10504 API.
10505 (rust_val_print): Rewrite.
10506 (rust_value_print_inner): New function, from rust_val_print.
10507 (rust_language_defn): Use rust_value_print_inner.
10508
26792ee0
TT
105092020-03-13 Tom Tromey <tom@tromey.com>
10510
10511 * ada-valprint.c (ada_value_print_inner): New function.
10512 * ada-lang.h (ada_value_print_inner): Declare.
10513 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10514
24051bbe
TT
105152020-03-13 Tom Tromey <tom@tromey.com>
10516
10517 * f-valprint.c (f_value_print_innner): New function.
10518 * f-lang.h (f_value_print_innner): Declare.
10519 * f-lang.c (f_language_defn): Use f_value_print_innner.
10520
c0941be6
TT
105212020-03-13 Tom Tromey <tom@tromey.com>
10522
10523 * p-valprint.c (pascal_value_print_inner): New function.
10524 * p-lang.h (pascal_value_print_inner): Declare.
10525 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10526
62c4663d
TT
105272020-03-13 Tom Tromey <tom@tromey.com>
10528
10529 * m2-valprint.c (m2_value_print_inner): New function.
10530 * m2-lang.h (m2_value_print_inner): Declare.
10531 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10532
62182190
TT
105332020-03-13 Tom Tromey <tom@tromey.com>
10534
10535 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10536 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10537 * c-valprint.c (c_value_print_inner): New function.
10538 * c-lang.h (c_value_print_inner): Declare.
10539 * c-lang.c (c_language_defn, cplus_language_defn)
10540 (asm_language_defn, minimal_language_defn): Use
10541 c_value_print_inner.
10542
1e592a8a
TT
105432020-03-13 Tom Tromey <tom@tromey.com>
10544
10545 * p-valprint.c (pascal_object_print_value_fields): Now static.
10546 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10547
7fe471e9
TT
105482020-03-13 Tom Tromey <tom@tromey.com>
10549
10550 * c-valprint.c (c_val_print_array): Simplify.
10551
d121c6ce
TT
105522020-03-13 Tom Tromey <tom@tromey.com>
10553
10554 * valprint.c (value_print_array_elements): New function.
10555 * valprint.h (value_print_array_elements): Declare.
10556
4dba70ee
TT
105572020-03-13 Tom Tromey <tom@tromey.com>
10558
10559 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10560 * mips-tdep.c (mips_print_register): Use
10561 value_print_scalar_formatted.
10562
4f9ae810
TT
105632020-03-13 Tom Tromey <tom@tromey.com>
10564
10565 * valprint.h (value_print_scalar_formatted): Declare.
10566 * valprint.c (value_print_scalar_formatted): New function.
10567
156bfec9
TT
105682020-03-13 Tom Tromey <tom@tromey.com>
10569
10570 * valprint.h (generic_value_print): Declare.
10571 * valprint.c (generic_value_print): New function.
10572
2b4e573d
TT
105732020-03-13 Tom Tromey <tom@tromey.com>
10574
10575 * valprint.c (do_val_print): Call la_value_print_inner, if
10576 available.
10577 * rust-lang.c (rust_language_defn): Update.
10578 * p-lang.c (pascal_language_defn): Update.
10579 * opencl-lang.c (opencl_language_defn): Update.
10580 * objc-lang.c (objc_language_defn): Update.
10581 * m2-lang.c (m2_language_defn): Update.
10582 * language.h (struct language_defn) <la_value_print_inner>: New
10583 member.
10584 * language.c (unknown_language_defn, auto_language_defn): Update.
10585 * go-lang.c (go_language_defn): Update.
10586 * f-lang.c (f_language_defn): Update.
10587 * d-lang.c (d_language_defn): Update.
10588 * c-lang.c (c_language_defn, cplus_language_defn)
10589 (asm_language_defn, minimal_language_defn): Update.
10590 * ada-lang.c (ada_language_defn): Update.
10591
a1f6a07c
TT
105922020-03-13 Tom Tromey <tom@tromey.com>
10593
10594 * c-valprint.c (c_value_print): Use common_val_print.
10595
410cf315
TT
105962020-03-13 Tom Tromey <tom@tromey.com>
10597
10598 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10599
72a45c93
TT
106002020-03-13 Tom Tromey <tom@tromey.com>
10601
10602 * f-valprint.c (f77_print_array_1, f_val_print): Use
10603 common_val_print.
10604
040f66bd
TT
106052020-03-13 Tom Tromey <tom@tromey.com>
10606
10607 * riscv-tdep.c (riscv_print_one_register_info): Use
10608 common_val_print.
10609
a6e05a6c
TT
106102020-03-13 Tom Tromey <tom@tromey.com>
10611
10612 * mi/mi-main.c (output_register): Use common_val_print.
10613
3444c526
TT
106142020-03-13 Tom Tromey <tom@tromey.com>
10615
10616 * infcmd.c (default_print_one_register_info): Use
10617 common_val_print.
10618
c2a44efe
TT
106192020-03-13 Tom Tromey <tom@tromey.com>
10620
10621 * valprint.h (common_val_print_checked): Declare.
10622 * valprint.c (common_val_print_checked): New function.
10623 * stack.c (print_frame_arg): Use common_val_print_checked.
10624
b0c26e99
TT
106252020-03-13 Tom Tromey <tom@tromey.com>
10626
10627 * valprint.c (do_val_print): New function, from val_print.
10628 (val_print): Use do_val_print.
10629 (common_val_print): Use do_val_print.
10630
ce3acbe9
TT
106312020-03-13 Tom Tromey <tom@tromey.com>
10632
10633 * valprint.c (value_print): Use scoped_value_mark.
10634
96c7f873
TV
106352020-03-13 Tom de Vries <tdevries@suse.de>
10636
10637 PR symtab/25646
10638 * psymtab.c (partial_symtab::partial_symtab): Don't set
10639 globals_offset and statics_offset. Push element onto
10640 current_global_psymbols and current_static_psymbols stacks.
10641 (concat): New function.
10642 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10643 element from current_global_psymbols and current_static_psymbols
10644 stacks. Concat popped elements to global_psymbols and
10645 static_symbols.
10646 (add_psymbol_to_list): Use current_global_psymbols and
10647 current_static_psymbols stacks.
10648 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10649 current_static_psymbols fields.
10650
6ba0a321
CB
106512020-03-12 Christian Biesinger <cbiesinger@google.com>
10652
10653 * corelow.c (sniff_core_bfd): Remove.
10654 (class core_target) <m_core_vec>: Remove.
10655 (core_target::core_target): Update.
10656 (core_file_fns): Remove.
10657 (deprecated_add_core_fns): Remove.
10658 (default_core_sniffer): Remove.
10659 (sniff_core_bfd): Remove.
10660 (default_check_format): Remove.
10661 (gdb_check_format): Remove.
10662 (core_target_open): Update.
10663 (core_target::get_core_register_section): Update.
10664 (get_core_registers_cb): Update.
10665 (core_target::fetch_registers): Update.
10666 * gdbcore.h (struct core_fns): Remove.
10667 (deprecated_add_core_fns): Remove.
10668 (default_core_sniffer): Remove.
10669 (default_check_format): Remove.
10670
227031b2
TT
106712020-03-12 Tom Tromey <tom@tromey.com>
10672
10673 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10674 CORE_ADDR.
10675 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10676
53807e9f
TT
106772020-03-12 Tom Tromey <tom@tromey.com>
10678
10679 * remote.c (remote_target::download_tracepoint)
10680 (remote_target::enable_tracepoint)
10681 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10682 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10683 sprintf_vma.
10684
64f25102
TT
106852020-03-12 Tom Tromey <tom@tromey.com>
10686
10687 * symfile-mem.c: Update CORE_ADDR size assert.
10688
272cd5a3
SM
106892020-03-12 Simon Marchi <simon.marchi@efficios.com>
10690
10691 * selftest.m4: Move to gdbsupport/.
10692 * acinclude.m4: Update path to selftest.m4.
10693
74cd3f9d
SM
106942020-03-12 Simon Marchi <simon.marchi@efficios.com>
10695
10696 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10697 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10698 gdbarch-selfselftests.c and selftest-arch.c.
10699 (SUBDIR_UNITTESTS_OBS): Rename to...
10700 (SELFTESTS_OBS): ... this.
10701 (COMMON_SFILES): Remove disasm-selftests.c and
10702 gdbarch-selftests.c.
10703 * configure.ac: Don't add selftest-arch.{c,o} to
10704 CONFIG_{SRCS,OBS}.
10705 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10706 preprocessor conditions.
10707
db6878ac
SM
107082020-03-12 Simon Marchi <simon.marchi@efficios.com>
10709
10710 * configure.ac: Don't source bfd/development.sh.
10711 * selftest.m4: Modify comment.
10712 * configure: Re-generate.
10713
4d696a5c
SM
107142020-03-12 Simon Marchi <simon.marchi@efficios.com>
10715
10716 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10717 not "true" or "false".
10718 * configure: Re-generate.
10719
8dd8e1c7
CB
107202020-03-12 Christian Biesinger <cbiesinger@google.com>
10721
10722 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10723 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10724 renamed to arm_nbsd_supply_gregset.
10725 (fetch_register): Update to call arm_nbsd_supply_gregset.
10726 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10727 (arm_netbsd_nat_target::fetch_registers): Update.
10728 (fetch_elfcore_registers): Removed.
10729 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10730 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10731 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10732 not require NetBSD system headers.
10733 (arm_nbsd_regset): New struct.
10734 (arm_nbsd_iterate_over_regset_sections): New function.
10735 (arm_netbsd_init_abi_common): Updated to call
10736 set_gdbarch_iterate_over_regset_sections.
10737 * arm-nbsd-tdep.h: New file.
10738
dd69bf7a
KB
107392020-03-11 Kevin Buettner <kevinb@redhat.com>
10740
10741 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10742 recursion.
10743
a0761e34
SM
107442020-03-11 Simon Marchi <simon.marchi@efficios.com>
10745
10746 * configure: Re-generate.
10747
e7a82140
TT
107482020-03-11 Tom Tromey <tromey@adacore.com>
10749
10750 * ada-typeprint.c (print_choices): Fix comment.
10751
dcc050c8
AB
107522020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10753
10754 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10755 previous item in the list, when the list has no items.
10756
1c33af77
TV
107572020-03-11 Tom de Vries <tdevries@suse.de>
10758
10759 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10760 PROP_LOCLIST handling code.
10761
8c95582d
AB
107622020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10763
10764 * buildsym-legacy.c (record_line): Pass extra parameter to
10765 record_line.
10766 * buildsym.c (buildsym_compunit::record_line): Take an extra
10767 parameter, reduce duplication in the line table, and record the
10768 is_stmt flag in the line table.
10769 * buildsym.h (buildsym_compunit::record_line): Add extra
10770 parameter.
10771 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10772 non-statement lines.
10773 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10774 this to the symtab builder.
10775 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10776 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10777 through to dwarf_record_line_1.
10778 * infrun.c (process_event_stop_test): When stepping, don't stop at
10779 a non-statement instruction, and only refresh the step info when
10780 we land in the middle of a line's range. Also add an extra
10781 comment.
10782 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10783 field.
10784 * record-btrace.c (btrace_find_line_range): Only record lines
10785 marked as is-statement.
10786 * stack.c (frame_show_address): Show the frame address if we are
10787 in a non-statement sal.
10788 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10789 (maintenance_print_one_line_table): Print a header for the is_stmt
10790 column, and include is_stmt information in the output.
10791 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10792 preference to non-statements.
10793 (find_pcs_for_symtab_line): Prefer is-statement entries.
10794 (find_line_common): Likewise.
10795 * symtab.h (struct linetable_entry): Add is_stmt field.
10796 (struct symtab_and_line): Likewise.
10797 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10798 arranging the line table.
10799
e4003a34
TV
108002020-03-07 Tom de Vries <tdevries@suse.de>
10801
10802 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10803 DIE.
10804
e8932576
TT
108052020-03-07 Tom Tromey <tom@tromey.com>
10806
10807 * valops.c (value_literal_complex): Remove obsolete comment.
10808 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10809 comment.
10810
29734269
SM
108112020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10812
10813 * infrun.h: Forward-declare thread_info.
10814 (set_step_info): Add thread_info parameter, add doc.
10815 * infrun.c (set_step_info): Add thread_info parameter, move doc
10816 to header.
10817 * infrun.c (process_event_stop_test): Pass thread to
10818 set_step_info call.
10819 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10820 set_step_info.
10821 (prepare_one_step): Add thread_info parameter, pass it to
10822 set_step_frame and prepare_one_step (recursive) call.
10823 (step_1): Pass thread to prepare_one_step call.
10824 (step_command_fsm::should_stop): Pass thread to
10825 prepare_one_step.
10826 (until_next_fsm): Pass thread to set_step_frame call.
10827 (finish_command): Pass thread to set_step_info call.
10828
b7d64b29
HD
108292020-03-06 Hannes Domani <ssbssa@yahoo.de>
10830
10831 * windows-tdep.c (windows_solib_create_inferior_hook):
10832 Check if inferior is running.
10833
09f2921c
TV
108342020-03-06 Tom de Vries <tdevries@suse.de>
10835
10836 * NEWS: Fix "the the".
10837 * ctfread.c: Same.
10838
fd760e79
TV
108392020-03-06 Tom de Vries <tdevries@suse.de>
10840
10841 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10842
20ea4a60
AB
108432020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10844
10845 * .dir-locals.el: Add a comment referencing the other copies of
10846 this file.
10847
0afbabf0
JB
108482020-03-05 John Baldwin <jhb@FreeBSD.org>
10849
10850 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10851 psargs.
10852
842806cb
TBA
108532020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10854
10855 * .gitattributes: New file.
10856
be1e3d3e
TT
108572020-03-04 Tom Tromey <tom@tromey.com>
10858
10859 * symmisc.c (print_symbol_bcache_statistics)
10860 (print_objfile_statistics): Update.
10861 * symfile.c (allocate_symtab): Use intern.
10862 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10863 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10864 macro_cache>: Remove.
10865 <string_cache>: New member.
10866 (struct objfile) <intern>: New methods.
10867 * elfread.c (elf_symtab_read): Use intern.
10868 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10869 (dwarf2_compute_name, dwarf2_physname)
10870 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10871 names.
10872 (guess_partial_die_structure_name): Update.
10873 (partial_die_info::fixup): Intern name.
10874 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10875 name.
10876 (dwarf2_name): Intern name. Update.
10877 * buildsym.c (buildsym_compunit::get_macro_table): Use
10878 string_cache.
10879
4e7625fd
TT
108802020-03-04 Tom Tromey <tom@tromey.com>
10881
10882 * jit.c (bfd_open_from_target_memory): Make "target" const.
10883 * corefile.c (gnutarget): Now const.
10884 * gdbcore.h (gnutarget): Now const.
10885
46f9f931
HD
108862020-03-04 Hannes Domani <ssbssa@yahoo.de>
10887
10888 * NEWS: Mention support for WOW64 processes.
10889 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10890 (amd64_windows_segment_register_p): Remove static.
10891 (_initialize_amd64_windows_nat): Update.
10892 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10893 * i386-windows-nat.c (context_offset): Update.
10894 (i386_mappings): Rename and remove static.
10895 (i386_windows_segment_register_p): Remove static.
10896 (_initialize_i386_windows_nat): Update.
10897 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10898 (STATUS_WX86_SINGLE_STEP): New macro.
10899 (EnumProcessModulesEx): New macro.
10900 (Wow64SuspendThread): New macro.
10901 (Wow64GetThreadContext): New macro.
10902 (Wow64SetThreadContext): New macro.
10903 (Wow64GetThreadSelectorEntry): New macro.
10904 (windows_set_context_register_offsets): Add static.
10905 (windows_set_segment_register_p): Likewise.
10906 (windows_add_thread): Adapt for WOW64 processes.
10907 (windows_fetch_one_register): Likewise.
10908 (windows_nat_target::fetch_registers): Likewise.
10909 (windows_store_one_register): Likewise.
10910 (display_selector): Likewise.
10911 (display_selectors): Likewise.
10912 (handle_exception): Likewise.
10913 (windows_continue): Likewise.
10914 (windows_nat_target::resume): Likewise.
10915 (windows_add_all_dlls): Likewise.
10916 (do_initial_windows_stuff): Likewise.
10917 (windows_nat_target::attach): Likewise.
10918 (windows_get_exec_module_filename): Likewise.
10919 (windows_nat_target::create_inferior): Likewise.
10920 (windows_xfer_siginfo): Likewise.
10921 (_initialize_loadable): Initialize Wow64SuspendThread,
10922 Wow64GetThreadContext, Wow64SetThreadContext,
10923 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10924 * windows-nat.h (windows_set_context_register_offsets):
10925 Remove declaration.
10926 (windows_set_segment_register_p): Likewise.
10927 (i386_windows_segment_register_p): Add declaration.
10928 (amd64_windows_segment_register_p): Likewise.
10929
440cf44e
LM
109302020-03-04 Luis Machado <luis.machado@linaro.org>
10931
10932 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10933 in "info registers" for AArch64/ARM.
10934
10935 The change caused "info registers" to not print GPR's.
10936
10937 gdb/ChangeLog:
10938
10939 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10940
10941 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10942 when reg->group is empty and reggroup is not.
10943
1009d92f
TT
109442020-03-03 Tom Tromey <tromey@adacore.com>
10945
10946 * dwarf2/frame.c (struct dwarf2_frame_cache)
10947 <checked_tailcall_bottom, entry_cfa_sp_offset,
10948 entry_cfa_sp_offset_p>: Remove members.
10949 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10950 (dwarf2_frame_prev_register): Don't call
10951 dwarf2_tailcall_sniffer_first.
10952 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10953 * frame-unwind.c (add_unwinder): New fuction.
10954 (frame_unwind_init): Use it. Add tailcall unwinder.
10955
5e5d66b6
AB
109562020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10957 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10958
10959 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10960 value should be printed as true.
10961
584cf46d
HD
109622020-03-03 Hannes Domani <ssbssa@yahoo.de>
10963
10964 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10965 (windows_init_abi): Set and use windows_so_ops.
10966
7b973adc
SDJ
109672020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10968
10969 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10970 when verifying if dealing with a convenience variable.
10971
bb7b70ab
LM
109722020-03-03 Luis Machado <luis.machado@linaro.org>
10973
10974 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10975
9822cb57
SM
109762020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10977
10978 * infrun.c (gdbarch_supports_displaced_stepping): New.
10979 (use_displaced_stepping): Break up conditions in smaller pieces.
10980 Use gdbarch_supports_displaced_stepping.
10981 (displaced_step_prepare_throw): Use
10982 gdbarch_supports_displaced_stepping.
10983
63e163f2
AB
109842020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10985
10986 * NEWS: Mention new behaviour of the history filename.
10987 * top.c (write_history_p): Add comment.
10988 (show_write_history_p): Add header comment, give a different
10989 message when history writing is on, but the history filename is
10990 empty.
10991 (history_filename): Add comment.
10992 (history_filename_empty): New function.
10993 (show_history_filename): Add header comment, give a different
10994 message when the filename is empty.
10995 (init_history): Compare history_filename against nullptr, and only
10996 read history if the filename is not empty.
10997 (set_history_filename): Add header comment, and only make
10998 non-empty filenames absolute.
10999 (init_main): Make the filename argument to 'set history filename'
11000 optional.
11001
81b86b97
CB
110022020-03-02 Christian Biesinger <cbiesinger@google.com>
11003
11004 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11005 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11006 (fetch_fp_register): Update.
11007 (fetch_fp_regs): Update.
11008 (store_fp_register): Update.
11009 (store_fp_regs): Update.
11010 (arm_netbsd_nat_target::read_description): New function.
11011 (fetch_elfcore_registers): Update.
11012
24ed6739
AB
110132020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11014
11015 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11016 general_thread if the stop reply is missing a thread-id.
11017 (remote_target::process_stop_reply): Use the first non-exited
11018 thread if the target didn't pass a thread-id.
11019 * infrun.c (do_target_wait): Move call to
11020 switch_to_inferior_no_thread to ....
11021 (do_target_wait_1): ... here.
11022
a84bb2a0
JT
110232020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11024
11025 * debuginfod-support.c: Include defs.h first.
11026
658dadf0
TV
110272020-02-28 Tom de Vries <tdevries@suse.de>
11028
11029 * symfile.c (set_initial_language): Use default language for lookup.
11030
4ebe4877
SM
110312020-02-28 Simon Marchi <simon.marchi@efficios.com>
11032
11033 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11034 reader variable, pass `this` to read_cutu_die_from_dwo.
11035
e5da1139
AM
110362020-02-27 Aaron Merey <amerey@redhat.com>
11037
11038 * source.c (open_source_file): Check for nullptr when computing
11039 srcpath.
11040
317f7127
TT
110412020-02-27 Tom Tromey <tromey@adacore.com>
11042
11043 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11044 member.
11045 (dwarf2_add_field): Don't update nfields.
11046 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11047
3104d9ee
AB
110482020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11049
11050 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11051 abs.
11052
b83470bf
TT
110532020-02-26 Tom Tromey <tom@tromey.com>
11054
11055 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11056 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11057 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11058 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11059 per_cu_data.
11060
edfe0a0c
TT
110612020-02-26 Tom Tromey <tom@tromey.com>
11062
11063 * dwarf2/index-write.c (psym_index_map): Change type.
11064 (add_address_entry_worker, write_one_signatured_type)
11065 (recursively_count_psymbols, recursively_write_psymbols)
11066 (class debug_names, psyms_seen_size, write_gdbindex)
11067 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11068
0d79cdc4
AM
110692020-02-26 Aaron Merey <amerey@redhat.com>
11070
11071 * Makefile.in: Handle optional debuginfod support.
11072 * NEWS: Update.
11073 * README: Add --with-debuginfod summary.
11074 * config.in: Regenerate.
11075 * configure: Regenerate.
11076 * configure.ac: Handle optional debuginfod support.
11077 * debuginfod-support.c: debuginfod helper functions.
11078 * debuginfod-support.h: Ditto.
11079 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11080 summary.
11081 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11082 when a dwz file cannot be found.
11083 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11084 debuginfo file cannot be found.
11085 * source.c (open_source_file): Query debuginfod servers when a
11086 source file cannot be found.
11087 * top.c (print_gdb_configuration): Include
11088 --{with,without}-debuginfod in the output.
11089
b65ce565
JG
110902020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11091
11092 * thread.c (thr_try_catch_cmd): Print thread name.
11093
d4c9a4f8
SM
110942020-02-26 Simon Marchi <simon.marchi@efficios.com>
11095
11096 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11097 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11098 dwarf2_fetch_die_type_sect_off): Move to...
11099 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11100 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11101 dwarf2_fetch_die_type_sect_off): ... here.
11102 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11103 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11104 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11105
0dce4280
TV
111062020-02-26 Tom de Vries <tdevries@suse.de>
11107
11108 PR gdb/25603
11109 * symfile.c (set_initial_language): Exit-early if
11110 language_mode == language_mode_manual.
11111
450a1bfc
SM
111122020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11113
11114 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11115 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11116 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11117
9e80cfa1
AB
111182020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11119
11120 * gdbtypes.c (create_array_type_with_stride): Handle negative
11121 array strides.
11122 * valarith.c (value_subscripted_rvalue): Likewise.
11123
09624f1f
LM
111242020-02-25 Luis Machado <luis.machado@linaro.org>
11125
11126 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11127
8cb5117c
SM
111282020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11129
11130 * loc.h (dwarf2_get_die_type): Move to...
11131 * read.h (dwarf2_get_die_type): ... here.
11132 * read.c (dwarf2_get_die_type): Move doc to header.
11133
c325c44e
JB
111342020-02-25 Joel Brobecker <brobecker@adacore.com>
11135
11136 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11137 'gnulib/Makefile.in' to the list.
11138
4ac93832
TT
111392020-02-24 Tom Tromey <tom@tromey.com>
11140
11141 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11142 Remove.
11143 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11144 XOBNEWVEC.
11145
197400e8
TT
111462020-02-24 Tom Tromey <tom@tromey.com>
11147
11148 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11149 New method.
11150 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11151 (dw2_do_instantiate_symtab, dw2_get_file_names)
11152 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11153
76935768
TT
111542020-02-24 Tom Tromey <tom@tromey.com>
11155
11156 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11157 make_scoped_restore.
11158 (dwarf2_psymtab::read_symtab): Don't clear
11159 reading_partial_symbols.
11160
a88ef40d
TV
111612020-02-24 Tom de Vries <tdevries@suse.de>
11162
11163 PR gdb/25592
11164 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11165
c9af6521
TV
111662020-02-24 Tom de Vries <tdevries@suse.de>
11167
11168 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11169 commands layout next/prev/regs.
11170
5707a07a
TT
111712020-02-22 Tom Tromey <tom@tromey.com>
11172
11173 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11174 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11175
3b0fb49e
TT
111762020-02-22 Tom Tromey <tom@tromey.com>
11177
11178 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11179
283be8bf
TT
111802020-02-22 Tom Tromey <tom@tromey.com>
11181
11182 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11183 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11184 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11185 * tui/tui.c (_initialize_tui): Add usage text.
11186
ca793b96
TT
111872020-02-22 Tom Tromey <tom@tromey.com>
11188
11189 * tui/tui-win.c (tui_set_focus_command)
11190 (tui_set_win_height_command): Use error_no_arg.
11191 (_initialize_tui_win): Update help text.
11192 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11193
432b5c40
TT
111942020-02-22 Tom Tromey <tom@tromey.com>
11195
11196 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11197 * tui/tui-disasm.h (struct tui_disasm_window)
11198 <display_start_addr>: Declare.
11199 * tui/tui-source.h (struct tui_source_window)
11200 <display_start_addr>: Declare.
11201 * tui/tui-winsource.h (struct tui_source_window_base)
11202 <show_source_line, display_start_addr>: New methods.
11203 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11204 Rename and move to protected section.
11205 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11206 (tui_source_window_base::do_erase_source_content): Update.
11207 (tui_source_window_base::show_source_line): Now a method.
11208 (tui_source_window_base::show_source_content)
11209 (tui_source_window_base::tui_source_window_base)
11210 (tui_source_window_base::rerender)
11211 (tui_source_window_base::refill)
11212 (tui_source_window_base::do_scroll_horizontal)
11213 (tui_source_window_base::set_is_exec_point_at)
11214 (tui_source_window_base::update_breakpoint_info)
11215 (tui_source_window_base::update_exec_info): Update.
11216 * tui/tui-source.c (tui_source_window::set_contents)
11217 (tui_source_window::showing_source_p)
11218 (tui_source_window::do_scroll_vertical)
11219 (tui_source_window::location_matches_p)
11220 (tui_source_window::line_is_displayed): Update.
11221 (tui_source_window::display_start_addr): New method.
11222 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11223 (tui_disasm_window::do_scroll_vertical)
11224 (tui_disasm_window::location_matches_p): Update.
11225 (tui_disasm_window::display_start_addr): New method.
11226
01b1af32
TT
112272020-02-22 Tom Tromey <tom@tromey.com>
11228
11229 * NEWS: Add entry for gdb.register_window_type.
11230 * tui/tui-layout.h (window_factory): New typedef.
11231 (tui_register_window): Declare.
11232 * tui/tui-layout.c (saved_tui_windows): New global.
11233 (tui_apply_current_layout): Use it.
11234 (tui_register_window): New function.
11235 * python/python.c (do_start_initialization): Call
11236 gdbpy_initialize_tui.
11237 (python_GdbMethods): Add "register_window_type" function.
11238 * python/python-internal.h (gdbpy_register_tui_window)
11239 (gdbpy_initialize_tui): Declare.
11240 * python/py-tui.c: New file.
11241 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11242
fc96d20b
TT
112432020-02-22 Tom Tromey <tom@tromey.com>
11244
11245 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11246
935c78c0
TT
112472020-02-22 Tom Tromey <tom@tromey.com>
11248
11249 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11250 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11251 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11252 (tui_set_win_focus_to): Move from tui-win.c.
11253
0240c8f1
TT
112542020-02-22 Tom Tromey <tom@tromey.com>
11255
11256 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11257 functions.
11258 (known_window_types): New global.
11259 (tui_get_window_by_name): Reimplement.
11260 (initialize_known_windows): New function.
11261 (validate_window_name): Rewrite.
11262 (_initialize_tui_layout): Call initialize_known_windows.
11263
fdb01f0c
TT
112642020-02-22 Tom Tromey <tom@tromey.com>
11265
11266 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11267 Remove constants.
11268 * tui/tui-winsource.h (struct tui_source_window_base)
11269 <tui_source_window_base>: Remove parameter.
11270 * tui/tui-winsource.c
11271 (tui_source_window_base::tui_source_window_base): Remove
11272 parameter.
11273 (tui_source_window_base::refill): Update.
11274 * tui/tui-stack.h (struct tui_locator_window)
11275 <tui_locator_window>: Update.
11276 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11277 Default the constructor.
11278 * tui/tui-regs.h (struct tui_data_item_window)
11279 <tui_data_item_window>: Default the constructor.
11280 (struct tui_data_window) <tui_data_window>: Likewise.
11281 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11282 Default the constructor.
11283 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11284 Default the constructor.
11285 <type>: Remove.
11286 (struct tui_win_info) <tui_win_info>: Default the constructor.
11287 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11288 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11289 Default the constructor.
11290
865a5aec
TT
112912020-02-22 Tom Tromey <tom@tromey.com>
11292
11293 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11294 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11295 * tui/tui-win.c (tui_resize_all): Don't call
11296 tui_delete_invisible_windows.
11297 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11298 done.
11299 (tui_set_layout): Update.
11300 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11301 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11302 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11303
e098d18c
TT
113042020-02-22 Tom Tromey <tom@tromey.com>
11305
11306 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11307 correctly.
11308
eb9c8874
TT
113092020-02-22 Tom Tromey <tom@tromey.com>
11310
11311 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11312
7eed1a8e
TT
113132020-02-22 Tom Tromey <tom@tromey.com>
11314
11315 * tui/tui-winsource.h (struct tui_source_window_iterator)
11316 <inner_iterator>: New etytypedef.
11317 <tui_source_window_iterator>: Take "end" parameter.
11318 <tui_source_window_iterator>: Take iterator.
11319 <operator*, advance>: Update.
11320 <m_iter>: Change type.
11321 <m_end>: New field.
11322 (struct tui_source_windows) <begin, end>: Update.
11323 * tui/tui-layout.c (tui_windows): New global.
11324 (tui_apply_current_layout): Clear tui_windows.
11325 (tui_layout_window::apply): Update tui_windows.
11326 * tui/tui-data.h (tui_windows): Declare.
11327 (all_tui_windows): Now inline function.
11328 (class tui_window_iterator, struct all_tui_windows): Remove.
11329
7c043ba6
TT
113302020-02-22 Tom Tromey <tom@tromey.com>
11331
11332 PR tui/17850:
11333 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11334 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11335 "height" argument.
11336 (class tui_layout_window) <get_sizes>: Likewise.
11337 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11338 argument.
11339 <get_sizes>: Add "height" argument.
11340 <m_vertical>: New field.
11341 * tui/tui-layout.c (tui_layout_split::clone): Update.
11342 (tui_layout_split::get_sizes): Add "height" argument.
11343 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11344 (tui_new_layout_command): Parse "-horizontal".
11345 (_initialize_tui_layout): Update help string.
11346 (tui_layout_split::specification): Add "-horizontal" when needed.
11347 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11348 argument.
11349 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11350 New methods.
11351
6bc56648
TT
113522020-02-22 Tom Tromey <tom@tromey.com>
11353
11354 * tui/tui-layout.h (enum tui_adjust_result): New.
11355 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11356 (class tui_layout_window) <adjust_size>: Return
11357 tui_adjust_result. Rewrite.
11358 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11359 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11360
c22fef7e
TT
113612020-02-22 Tom Tromey <tom@tromey.com>
11362
11363 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11364 parameter and return types.
11365 (class tui_layout_base) <specification>: Add "depth".
11366 (class tui_layout_window) <specification>: Add "depth".
11367 (class tui_layout_split) <specification>: Add "depth".
11368 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11369 and return types.
11370 (tui_new_layout_command): Parse sub-layouts.
11371 (_initialize_tui_layout): Update help string.
11372 (tui_layout_window::specification): Add "depth".
11373 (add_layout_command): Update.
11374
ee325b61
TT
113752020-02-22 Tom Tromey <tom@tromey.com>
11376
11377 * NEWS: Add "tui new-layout" item.
11378 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11379 Add new-layout command to help text.
11380 (validate_window_name): New function.
11381 (tui_new_layout_command): New function.
11382 (_initialize_tui_layout): Register "new-layout".
11383 (tui_layout_window::specification): New method.
11384 (tui_layout_window::specification): New method.
11385 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11386 method.
11387 (class tui_layout_window) <specification>: New method.
11388 (class tui_layout_split) <specification>: New method.
11389
416eb92d
TT
113902020-02-22 Tom Tromey <tom@tromey.com>
11391
11392 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11393 * tui/tui-win.c (window_name_completer): Update comment.
11394 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11395 Declare method.
11396 (class tui_layout_window) <replace_window>: Likewise.
11397 (class tui_layout_split) <replace_window>: Likewise.
11398 (tui_set_layout): Don't declare.
11399 (tui_set_initial_layout): Declare function.
11400 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11401 (asm_regs_layout): New globals.
11402 (tui_current_layout, show_layout): Remove.
11403 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11404 (find_layout, tui_apply_layout): New function.
11405 (layout_completer): Remove.
11406 (tui_next_layout): Reimplement.
11407 (tui_next_layout_command): New function.
11408 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11409 (tui_regs_layout): Reimplement.
11410 (tui_regs_layout_command): New function.
11411 (extract_display_start_addr): Rewrite.
11412 (next_layout, prev_layout): Remove.
11413 (tui_layout_window::replace_window): New method.
11414 (tui_layout_split::replace_window): New method.
11415 (destroy_layout): New function.
11416 (layout_list): New global.
11417 (add_layout_command): New function.
11418 (initialize_layouts): Update.
11419 (tui_layout_command): New function.
11420 (_initialize_tui_layout): Install "layout" commands.
11421 * tui/tui-data.h (enum tui_layout_type): Remove.
11422 (tui_current_layout): Don't declare.
11423
0dbc2fc7
TT
114242020-02-22 Tom Tromey <tom@tromey.com>
11425
11426 * tui/tui-regs.c (tui_reg_layout): Remove.
11427 (tui_reg_command): Use tui_regs_layout.
11428 * tui/tui-layout.h (tui_reg_command): Declare.
11429 * tui/tui-layout.c (tui_reg_command): New function.
11430
5afe342e
TT
114312020-02-22 Tom Tromey <tom@tromey.com>
11432
11433 * tui/tui.c (tui_rl_delete_other_windows): Call
11434 tui_remove_some_windows.
11435 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11436 Declare method.
11437 (class tui_layout_window) <remove_windows>: New method.
11438 (class tui_layout_split) <remove_windows>: Declare.
11439 (tui_remove_some_windows): Declare.
11440 * tui/tui-layout.c (tui_remove_some_windows): New function.
11441 (tui_layout_split::remove_windows): New method.
11442
427326a8
TT
114432020-02-22 Tom Tromey <tom@tromey.com>
11444
11445 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11446 * tui/tui-layout.h (tui_next_layout): Declare.
11447 * tui/tui-layout.c (tui_next_layout): New function.
11448
3fe12b6d
TT
114492020-02-22 Tom Tromey <tom@tromey.com>
11450
11451 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11452 correct coordinates.
11453
59b8b5d2
TT
114542020-02-22 Tom Tromey <tom@tromey.com>
11455
11456 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11457 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11458 DATA_WIN case.
11459
2a3d458b
TT
114602020-02-22 Tom Tromey <tom@tromey.com>
11461
11462 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11463 TUI_DISASM_WIN, not tui_win_list.
11464
3f0cbb04
TT
114652020-02-22 Tom Tromey <tom@tromey.com>
11466
11467 * valprint.c (generic_val_print_enum_1)
11468 (val_print_type_code_flags): Style member names.
11469 * rust-lang.c (val_print_struct, rust_print_enum)
11470 (rust_print_struct_def, rust_internal_print_type): Style member
11471 names.
11472 * p-valprint.c (pascal_object_print_value_fields): Style member
11473 names. Only call fprintf_symbol_filtered for static members.
11474 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11475 * f-valprint.c (f_val_print): Style member names.
11476 * f-typeprint.c (f_type_print_base): Style member names.
11477 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11478 call fprintf_symbol_filtered for static members.
11479 (cp_print_class_member): Style member names.
11480 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11481 member names.
11482 * ada-valprint.c (ada_print_scalar): Style enum names.
11483 (ada_val_print_enum): Likewise.
11484 * ada-typeprint.c (print_enum_type): Style enum names.
11485
d4d947ae
TT
114862020-02-21 Tom Tromey <tom@tromey.com>
11487
11488 * psympriv.h (struct partial_symtab): Update comment.
11489
e94e944b
TT
114902020-02-21 Tom Tromey <tromey@adacore.com>
11491
11492 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11493 type is CORE_ADDR.
11494
1eb73179
TV
114952020-02-21 Tom de Vries <tdevries@suse.de>
11496
11497 PR gdb/25534
11498 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11499 if dependencies[i]->user != NULL.
11500
4f180d53
AT
115012020-02-21 Ali Tamur <tamur@google.com>
11502
11503 * dwarf2/read.c (dwarf2_name): Add null check.
11504
22b6cd70
TT
115052020-02-20 Tom Tromey <tom@tromey.com>
11506
11507 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11508 ">=", in binary search.
11509 (dwarf2_find_containing_comp_unit): New overload.
11510 (run_test): New self-test.
11511 (_initialize_dwarf2_read): Register new test.
11512
bd0cf5a6
NC
115132020-02-20 Nelson Chu <nelson.chu@sifive.com>
11514
11515 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11516 * riscv-tdep.h: Likewise.
11517 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11518 rv32-only CSR.
11519 * features/riscv/64bit-csr.xml: Regenerated.
11520
3f702acd
SDJ
115212020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11522 Tom Tromey <tom@tromey.com>
11523
11524 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11525 of 'fputc_unfiltered'.
11526 (putchar_unfiltered): Call 'fputc_unfiltered'.
11527 (fputc_unfiltered): Call 'fputs_unfiltered'.
11528
d13c7322
AB
115292020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11530
11531 * config.in: Regenerate.
11532 * configure: Regenerate.
11533 * configure.ac: Add --with-python-libdir option.
11534 * main.c: Use WITH_PYTHON_LIBDIR.
11535
869d8950
TT
115362020-02-19 Tom Tromey <tom@tromey.com>
11537
11538 * symtab.c (general_symbol_info::compute_and_set_names): Use
11539 obstack_strndup. Simplify call to symbol_set_demangled_name.
11540
298e9637
SM
115412020-02-19 Simon Marchi <simon.marchi@efficios.com>
11542
11543 * dwarf2/read.c (allocate_signatured_type_table,
11544 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11545 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11546 Remove objfile parameter, update all callers.
11547
08410482
DE
115482020-02-19 Doug Evans <dje@google.com>
11549
11550 PR rust/25535
11551 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11552 rust_enum_variant calculation.
11553
dfdeeca1
TT
115542020-02-19 Tom Tromey <tromey@adacore.com>
11555
11556 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11557
2ef5453b
TT
115582020-02-19 Tom Tromey <tromey@adacore.com>
11559
11560 * ada-lang.c (cache_symbol): Use obstack_strdup.
11561
9f1528a1
AB
115622020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11563
11564 * configure: Regenerate.
11565
d3c22fa8
TT
115662020-02-19 Tom Tromey <tromey@adacore.com>
11567
11568 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11569 NULL check.
11570
bf84f706
MR
115712020-02-19 Maciej W. Rozycki <macro@wdc.com>
11572
11573 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11574
d1c9b20f
AB
115752020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11576
11577 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11578 if GDBSERVER is not defined.
11579 (riscv_tdesc_cache): Likewise, also store const target_desc.
11580 (STATIC_IN_GDB): Define.
11581 (riscv_create_target_description): Update declaration with
11582 STATIC_IN_GDB.
11583 (riscv_lookup_target_description): New function, only define if
11584 GDBSERVER is not defined.
11585 * arch/riscv.h (riscv_create_target_description): Declare only
11586 when GDBSERVER is defined.
11587 (riscv_lookup_target_description): New declaration when GDBSERVER
11588 is not defined.
11589 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11590 (riscv_linux_read_features): ...this, and return
11591 riscv_gdbarch_features instead of target_desc.
11592 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11593 (riscv_linux_read_description): Rename to...
11594 (riscv_linux_read_features): ...this.
11595 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11596 Update to use riscv_gdbarch_features and
11597 riscv_lookup_target_description.
11598 * riscv-tdep.c (riscv_find_default_target_description): Use
11599 riscv_lookup_target_description instead of
11600 riscv_create_target_description.
11601
373d7ac0
SM
116022020-02-18 Simon Marchi <simon.marchi@efficios.com>
11603
11604 * valprint.c (generic_val_print_enum_1): When printing a flag
11605 enum with value 0 and there is no enumerator with value 0, print
11606 just "0" instead of "(unknown: 0x0)".
11607
b29a2df0
SM
116082020-02-18 Simon Marchi <simon.marchi@efficios.com>
11609
11610 * valprint.c (generic_val_print_enum_1): Print unknown part of
11611 flag enum in hex.
11612
6740f0cc
SM
116132020-02-18 Simon Marchi <simon.marchi@efficios.com>
11614
11615 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11616 flag enums to contain duplicate enumerators.
11617 * valprint.c (generic_val_print_enum_1): Update comment.
11618
edd45eb0
SM
116192020-02-18 Simon Marchi <simon.marchi@efficios.com>
11620
11621 * dwarf2/read.c: Include "count-one-bits.h".
11622 (update_enumeration_type_from_children): If an enumerator has
11623 multiple bits set, don't treat the enumeration as a "flag enum".
11624 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11625 of flag enums have 0 or 1 bit set.
11626
6d0cf446
BE
116272020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11628
11629 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11630 conversion.
11631 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11632 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11633 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11634 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11635 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11636
7001c1b7
SM
116372020-02-18 Simon Marchi <simon.marchi@efficios.com>
11638
11639 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11640
fdb61c6c
SM
116412020-02-14 Simon Marchi <simon.marchi@efficios.com>
11642
11643 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11644 displaced_step_closure_up.
11645 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11646 (struct displaced_step_closure_up):
11647 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11648 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11649 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11650 Likewise.
11651 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11652 * gdbarch.c, gdbarch.h: Re-generate.
11653 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11654 displaced_step_closure_up.
11655 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11656 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11657 * infrun.h (displaced_step_closure_up): New type alias.
11658 (struct displaced_step_inferior_state) <step_closure>: Change
11659 type to displaced_step_closure_up.
11660 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11661 displaced_step_closure_up.
11662 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11663
a4a38eb4
TT
116642020-02-14 Tom Tromey <tom@tromey.com>
11665
11666 * minidebug.c (gnu_debug_key): New global.
11667 (find_separate_debug_file_in_section): Use it.
11668
e8217e61
SM
116692020-02-14 Simon Marchi <simon.marchi@efficios.com>
11670
11671 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11672 std::unique_ptr.
11673 * gdbarch.c: Re-generate.
11674 * gdbarch.h: Re-generate.
11675 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11676 change.
11677 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11678 type to std::unique_ptr.
11679 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11680 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11681 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11682 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11683 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11684 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11685 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11686 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11687 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11688
d8d83535
SM
116892020-02-14 Simon Marchi <simon.marchi@efficios.com>
11690
11691 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11692 std::unique_ptr.
11693 (displaced_step_clear): Rename to...
11694 (displaced_step_reset): ... this. Just call displaced->reset ().
11695 (displaced_step_clear_cleanup): Rename to...
11696 (displaced_step_reset_cleanup): ... this.
11697 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11698 (displaced_step_fixup): Likewise.
11699 (resume_1): Likewise.
11700 (handle_inferior_event): Restore child's memory before calling
11701 displaced_step_fixup on the parent.
11702 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11703 to std::unique_ptr.
11704 <step_closure>: Change type to std::unique_ptr.
11705
5f661e03
SM
117062020-02-14 Simon Marchi <simon.marchi@efficios.com>
11707
11708 * arm-tdep.c: Include count-one-bits.h.
11709 (cleanup_block_store_pc): Use count_one_bits.
11710 (cleanup_block_load_pc): Use count_one_bits.
11711 (arm_copy_block_xfer): Use count_one_bits.
11712 (thumb2_copy_block_xfer): Use count_one_bits.
11713 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11714 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11715 (thumb_get_next_pcs_raw): Use count_one_bits.
11716 (arm_get_next_pcs_raw): Use count_one_bits_l.
11717 * arch/arm.c (bitcount): Remove.
11718 * arch/arm.h (bitcount): Remove.
11719
8084e579
TT
117202020-02-14 Tom Tromey <tromey@adacore.com>
11721
11722 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11723 Update.
11724 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11725 * dwarf2/loc.c (call_site_find_chain_1): Return
11726 unique_xmalloc_ptr.
11727 (call_site_find_chain): Likewise.
11728
258bf0ee
RB
117292020-02-14 Richard Biener <rguenther@suse.de>
11730
11731 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11732 on expression with division operators.
11733
f98a8458
AKS
117342020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11735
11736 * MAINTAINERS (Write After Approval): Adding myself.
11737
d1437c0e
TT
117382020-02-12 Tom Tromey <tom@tromey.com>
11739
11740 * event-loop.c (event_data, gdb_event, event_handler_func):
11741 Remove.
11742
3d4560f7
TT
117432020-02-12 Tom Tromey <tom@tromey.com>
11744
11745 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11746 (dwarf2_frame_objfile_data): Add comment.
11747 (find_comp_unit, set_comp_unit): New functions.
11748 (dwarf2_frame_find_fde): Use find_comp_unit.
11749 (dwarf2_build_frame_info): Use set_comp_unit.
11750
21982304
TT
117512020-02-12 Tom Tromey <tom@tromey.com>
11752
11753 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11754 (comp_unit): Don't initialize objfile.
11755 (execute_cfa_program): Add text_offset parameter.
11756 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11757 (dwarf2_frame_cache): Update.
11758 (dwarf2_build_frame_info): Don't set "objfile" member.
11759
4debb237
TT
117602020-02-12 Tom Tromey <tom@tromey.com>
11761
11762 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11763 (decode_frame_entry): Likewise.
11764 (dwarf2_build_frame_info): Update.
11765
0d404d44
TT
117662020-02-12 Tom Tromey <tom@tromey.com>
11767
11768 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11769 (decode_frame_entry_1): Use the comp_unit obstack.
11770
a7a3ae5c
TT
117712020-02-12 Tom Tromey <tom@tromey.com>
11772
11773 * dwarf2/frame.c (struct comp_unit): Add initializers and
11774 constructor.
11775 (dwarf2_frame_objfile_data): Store a comp_unit.
11776 (dwarf2_frame_find_fde): Update.
11777 (dwarf2_build_frame_info): Use "new".
11778
a9d65418
TT
117792020-02-12 Tom Tromey <tom@tromey.com>
11780
11781 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11782 (dwarf2_fde_table): Typedef for std::vector.
11783 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11784 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11785 (decode_frame_entry): Update.
11786 (dwarf2_build_frame_info): Use "new".
11787
7559c217
CB
117882020-02-12 Christian Biesinger <cbiesinger@google.com>
11789
11790 * arm-tdep.c (arm_gdbarch_init): Update.
11791 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11792 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11793 have_neon, is_m>: Change to bool.
11794
aeefc73c
CB
117952020-02-12 Christian Biesinger <cbiesinger@google.com>
11796
11797 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11798
d27b8e5f
TT
117992020-02-12 Tom Tromey <tom@tromey.com>
11800
11801 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11802
cd5900f3
HD
118032020-02-12 Hannes Domani <ssbssa@yahoo.de>
11804
11805 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11806 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11807
f056b22b
TT
118082020-02-11 Tom Tromey <tom@tromey.com>
11809
11810 * psymtab.h: Update comment.
11811
f92ff6b5
TT
118122020-02-11 Tom Tromey <tom@tromey.com>
11813
11814 * gdb_obstack.h (struct auto_obstack): Use
11815 DISABLE_COPY_AND_ASSIGN.
11816
3fd6912b
TT
118172020-02-11 Tom Tromey <tom@tromey.com>
11818
11819 * dwarf2/frame.h (struct objfile): Don't forward declare.
11820
69ed9b74
CB
118212020-02-11 Christian Biesinger <cbiesinger@google.com>
11822
11823 * cris-tdep.c (cris_supply_gregset): Change signature to match
11824 what struct regset expects.
11825 (cris_regset): New struct.
11826 (fetch_core_registers): Remove.
11827 (cris_iterate_over_regset_sections): New function.
11828 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11829 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11830
bda874f6
CB
118312020-02-11 Christian Biesinger <cbiesinger@google.com>
11832
11833 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11834 registers.
11835
754e1564
CB
118362020-02-11 Christian Biesinger <cbiesinger@google.com>
11837
11838 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11839
8ddd8e0e
SM
118402020-02-11 Simon Marchi <simon.marchi@efficios.com>
11841
11842 * configure: Re-generate.
11843
898e7f60
SM
118442020-02-11 Simon Marchi <simon.marchi@efficios.com>
11845
11846 * configure: Re-generate.
11847
58df732b
SM
118482020-02-11 Simon Marchi <simon.marchi@efficios.com>
11849
11850 * acinclude: Update warning.m4 path.
11851 * warning.m4: Move to gdbsupport.
11852
da5bd37e
TT
118532020-02-11 Tom Tromey <tromey@adacore.com>
11854
11855 * remote.c (remote_console_output): Update.
11856 * printcmd.c (printf_command): Update.
11857 * event-loop.c (gdb_wait_for_event): Update.
11858 * linux-nat.c (sigchld_handler): Update.
11859 * remote-sim.c (gdb_os_write_stdout): Update.
11860 (gdb_os_flush_stdout): Update.
11861 (gdb_os_flush_stderr): Update.
11862 (gdb_os_write_stderr): Update.
11863 * exceptions.c (print_exception): Update.
11864 * remote-fileio.c (remote_fileio_func_read): Update.
11865 (remote_fileio_func_write): Update.
11866 * tui/tui.c (tui_enable): Update.
11867 * tui/tui-interp.c (tui_interp::init): Update.
11868 * utils.c (init_page_info): Update.
11869 (putchar_unfiltered, fputc_unfiltered): Update.
11870 (gdb_flush): Update.
11871 (emit_style_escape): Update.
11872 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11873 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11874 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11875 (stderr_file::write): Update.
11876 (stderr_file::puts): Update.
11877 * ui-file.h (ui_file_isatty, ui_file_write)
11878 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11879 (ui_file_puts): Don't declare.
11880
85f0dd3c
TV
118812020-02-10 Tom de Vries <tdevries@suse.de>
11882
11883 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11884 sentinel to char *.
11885
2e927613
TV
118862020-02-09 Tom de Vries <tdevries@suse.de>
11887
11888 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11889 filename if it matches "<artificial>".
11890
6bafc845
HD
118912020-02-09 Hannes Domani <ssbssa@yahoo.de>
11892
11893 * windows-tdep.c (struct enum_value_name): New struct.
11894 (create_enum): New function.
11895 (windows_get_siginfo_type): Create and use enum types.
11896
7928d571
HD
118972020-02-09 Hannes Domani <ssbssa@yahoo.de>
11898
11899 * NEWS: Mention $_siginfo support for Windows.
11900 * windows-nat.c (handle_exception): Set siginfo_er.
11901 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11902 (windows_xfer_siginfo): New function.
11903 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11904 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11905 (init_windows_gdbarch_data): New function.
11906 (get_windows_gdbarch_data): New function.
11907 (windows_get_siginfo_type): New function.
11908 (windows_init_abi): Register windows_get_siginfo_type.
11909 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11910
6751ebae
TT
119112020-02-08 Tom Tromey <tom@tromey.com>
11912
11913 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11914 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11915 <keep>: Declare method.
11916 <m_keep>: Remove member.
11917 <~cutu_reader>: Remove.
11918 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11919 (cutu_reader::cutu_reader): Update.
11920 (cutu_reader::keep): Rename from ~cutu_reader.
11921 (process_psymtab_comp_unit, build_type_psymtabs_1)
11922 (process_skeletonless_type_unit, load_partial_comp_unit)
11923 (load_full_comp_unit, dwarf2_read_addr_index)
11924 (read_signatured_type): Update.
11925
135f5437
TT
119262020-02-08 Tom Tromey <tom@tromey.com>
11927
11928 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11929 "want_partial_unit" parameter.
11930 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11931 Inline check for DW_TAG_partial_unit.
11932 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11933
9f66ff1c
TT
119342020-02-08 Tom Tromey <tom@tromey.com>
11935
11936 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11937 read.c.
11938 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11939 read.c.
11940
c8a7a66f
TT
119412020-02-08 Tom Tromey <tom@tromey.com>
11942
11943 * dwarf2/read.c (read_address): Move to comp-unit.c.
11944 (dwarf2_rnglists_process, dwarf2_ranges_process)
11945 (read_attribute_value, dwarf_decode_lines_1)
11946 (var_decode_location, decode_locdesc): Update.
11947 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11948 read.c. Remove "cu" parameter.
11949 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11950 method.
11951
8266302d
TT
119522020-02-08 Tom Tromey <tom@tromey.com>
11953
11954 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11955 (read_indirect_line_string): Update.
11956 * dwarf2/comp-unit.c (read_offset): Remove.
11957 (read_comp_unit_head): Update.
11958 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11959 method.
11960 (read_offset): Don't declare.
11961
4057dfde
TT
119622020-02-08 Tom Tromey <tom@tromey.com>
11963
11964 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11965 * dwarf2/read.c (struct comp_unit_head): Move to
11966 dwarf2/comp-unit.h.
11967 (enum class rcuh_kind): Move to comp-unit.h.
11968 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11969 (read_comp_unit_head, error_check_comp_unit_head)
11970 (read_and_check_comp_unit_head): Move to comp-unit.c.
11971 (read_offset, dwarf_unit_type_name): Likewise.
11972 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11973 (cutu_reader::cutu_reader, read_call_site_scope)
11974 (find_partial_die, follow_die_offset): Update.
11975 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11976
24aa364d
TT
119772020-02-08 Tom Tromey <tom@tromey.com>
11978
11979 * dwarf2/read.c (read_offset_1): Move to leb.c.
11980 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11981 (dwarf_decode_macro_bytes): Update.
11982 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11983 * dwarf2/leb.h (read_offset): Declare.
11984
2c7d5afc
TT
119852020-02-08 Tom Tromey <tom@tromey.com>
11986
11987 * dwarf2/read.c (dwarf2_section_size): Remove.
11988 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11989 Update.
11990 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11991
4075cb26
TT
119922020-02-08 Tom Tromey <tom@tromey.com>
11993
11994 * dwarf2/read.c (read_initial_length): Move to leb.c.
11995 * dwarf2/leb.h (read_initial_length): Declare.
11996 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11997 handle_nonstd parameter.
11998 * dwarf2/frame.c (read_initial_length): Remove.
11999 (decode_frame_entry_1): Update.
12000
09ba997f
TT
120012020-02-08 Tom Tromey <tom@tromey.com>
12002
12003 * dwarf2/loc.c (dwarf2_find_location_expression)
12004 (dwarf_evaluate_loc_desc::get_tls_address)
12005 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12006 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12007 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12008 (dwarf2_compile_property_to_c)
12009 (dwarf2_loc_desc_get_symbol_read_needs)
12010 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12011 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12012 (loclist_describe_location, loclist_tracepoint_var_ref)
12013 (loclist_generate_c_location): Update.
12014 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12015 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12016 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12017 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12018 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12019 (dwarf2_per_cu_data::addr_size)
12020 (dwarf2_per_cu_data::ref_addr_size)
12021 (dwarf2_per_cu_data::text_offset)
12022 (dwarf2_per_cu_data::addr_type): Now methods.
12023 (per_cu_header_read_in): Make per_cu "const".
12024 (dwarf2_version): Remove.
12025 (dwarf2_per_cu_data::int_type): Now a method.
12026 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12027 (set_die_type, read_array_type, read_subrange_index_type)
12028 (read_tag_string_type, read_subrange_type): Update.
12029 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12030 offset_size, ref_addr_size, text_offset, addr_type, version,
12031 objfile, int_type, addr_sized_int_type>: Declare methods.
12032
96c738c0
TT
120332020-02-08 Tom Tromey <tom@tromey.com>
12034
12035 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12036 Move earlier.
12037
8fdd972c
TT
120382020-02-08 Tom Tromey <tom@tromey.com>
12039
12040 * dwarf2/read.h (dwarf_line_debug): Declare.
12041 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12042 * dwarf2/read.c: Move line_header code to new files.
12043 (dwarf_line_debug): No longer static.
12044 * dwarf2/line-header.c: New file.
12045 * dwarf2/line-header.h: New file.
12046
03075812
TT
120472020-02-08 Tom Tromey <tom@tromey.com>
12048
12049 * dwarf2/read.c (struct line_header) <file_full_name,
12050 file_file_name>: Return unique_xmalloc_ptr.
12051 (line_header::file_file_name): Update.
12052 (line_header::file_full_name): Update.
12053 (dw2_get_file_names_reader): Update.
12054 (macro_start_file): Update.
12055
bb822404
TT
120562020-02-08 Tom Tromey <tom@tromey.com>
12057
12058 * dwarf2/read.c (struct line_header) <file_full_name,
12059 file_file_name>: Declare methods.
12060 (dw2_get_file_names_reader): Update.
12061 (file_file_name): Now a method.
12062 (file_full_name): Likewise.
12063 (macro_start_file): Update.
12064
009b64fc
TT
120652020-02-08 Tom Tromey <tom@tromey.com>
12066
12067 * dwarf2/read.c (dwarf_always_disassemble)
12068 (show_dwarf_always_disassemble): Move to loc.c.
12069 (_initialize_dwarf2_read): Move "always-disassemble" registration
12070 to loc.c.
12071 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12072 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12073 static.
12074 (show_dwarf_always_disassemble): Move from read.c.
12075 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12076
5895093f
TT
120772020-02-08 Tom Tromey <tom@tromey.com>
12078
12079 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12080 (create_quick_file_names_table): Return htab_up.
12081 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12082 Update.
12083 * dwarf2/read.h (struct dwarf2_per_objfile)
12084 <quick_file_names_table>: Now htab_up.
12085
b3b32279
TT
120862020-02-08 Tom Tromey <tom@tromey.com>
12087
12088 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12089
1d33d811
TT
120902020-02-08 Tom Tromey <tom@tromey.com>
12091
12092 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12093 Rewrite.
12094 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12095 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12096 (abbrev_table::abbrev_table): No longer inline.
12097 (ABBREV_HASH_SIZE): Remove.
12098 (abbrev_table::m_abbrevs): Now an htab_up.
12099
86de1d91
TT
121002020-02-08 Tom Tromey <tom@tromey.com>
12101
12102 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12103 (cutu_reader): Update.
12104 (build_type_psymtabs_1): Update.
12105 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12106 (abbrev_table::alloc_abbrev): Update.
12107 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12108 (abbrev_table::read): New static method, renamed from
12109 abbrev_table_read_table.
12110 (abbrev_table::alloc_abbrev)
12111 (abbrev_table::add_abbrev): Now private.
12112 (abbrev_table::abbrev_table): Now private.
12113 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12114
0335378b
TT
121152020-02-08 Tom Tromey <tom@tromey.com>
12116
12117 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12118 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12119 htab_up.
12120
48b490f2
TT
121212020-02-08 Tom Tromey <tom@tromey.com>
12122
12123 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12124 htab_up.
12125 (lookup_dwo_unit_in_dwp): Update.
12126 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12127 on obstack.
12128
bc68fb19
TT
121292020-02-08 Tom Tromey <tom@tromey.com>
12130
12131 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12132 obstack.
12133
d15acc42
TT
121342020-02-08 Tom Tromey <tom@tromey.com>
12135
12136 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12137 line_header_hash.
12138 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12139 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12140 Change type to htab_up.
12141
eaa5fa8b
TT
121422020-02-08 Tom Tromey <tom@tromey.com>
12143
12144 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12145 htab_up. Don't allocate on obstack.
12146 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12147 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12148 Change type to htab_up.
12149
b0b6a987
TT
121502020-02-08 Tom Tromey <tom@tromey.com>
12151
12152 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12153 Change type to htab_up.
12154 * dwarf2/read.c (create_signatured_type_table_from_index)
12155 (create_signatured_type_table_from_debug_names)
12156 (create_all_type_units, add_type_unit)
12157 (lookup_dwo_signatured_type, lookup_signatured_type)
12158 (process_skeletonless_type_unit): Update.
12159 (create_debug_type_hash_table, create_debug_types_hash_table):
12160 Change type of types_htab.
12161 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12162 htab_up. Don't allocate on obstack.
12163 (create_cus_hash_table): Change type of cus_htab parameter.
12164 (struct dwo_file) <cus, tus>: Now htab_up.
12165 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12166 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12167 (queue_and_load_all_dwo_tus): Update.
12168 * dwarf2/index-write.c (write_gdbindex): Update.
12169 (write_debug_names): Update.
12170
39856def
TT
121712020-02-08 Tom Tromey <tom@tromey.com>
12172
12173 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12174 dwarf2/read.c. Remove "next" member. Add constructor ntad
12175 destructor.
12176 (struct dwarf2_per_objfile) <queue>: New member.
12177 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12178 dwarf2/read.h.
12179 (dwarf2_queue, dwarf2_queue_tail): Remove.
12180 (class dwarf2_queue_guard): Add parameter to constructor. Use
12181 DISABLE_COPY_AND_ASSIGN.
12182 <m_per_objfile>: New member.
12183 <~dwarf2_queue_guard>: Rewrite.
12184 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12185 Update.
12186 (~dwarf2_queue_item): New.
12187
3e225074
TT
121882020-02-08 Tom Tromey <tom@tromey.com>
12189
12190 * dwarf2/read.c (struct die_info) <has_children>: New member.
12191 (dw2_get_file_names_reader): Remove has_children.
12192 (dw2_get_file_names): Update.
12193 (read_cutu_die_from_dwo): Remove has_children.
12194 (cutu_reader::init_tu_and_read_dwo_dies)
12195 (cutu_reader::cutu_reader): Update.
12196 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12197 Remove has_children.
12198 (build_type_psymtabs_1, process_skeletonless_type_unit)
12199 (load_partial_comp_unit, load_full_comp_unit): Update.
12200 (create_dwo_cu_reader): Remove has_children.
12201 (create_cus_hash_table, read_die_and_children): Update.
12202 (read_full_die_1,read_full_die): Remove has_children.
12203 (read_signatured_type): Update.
12204 (class cutu_reader) <has_children>: Remove.
12205
82ca8957
TT
122062020-02-08 Tom Tromey <tom@tromey.com>
12207
12208 * dwarf2/expr.c: Rename from dwarf2expr.c.
12209 * dwarf2/expr.h: Rename from dwarf2expr.h.
12210 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12211 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12212 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12213 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12214 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12215 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12216 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12217 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12218 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12219 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12220 * dwarf2/loc.c: Rename from dwarf2loc.c.
12221 * dwarf2/loc.h: Rename from dwarf2loc.h.
12222 * dwarf2/read.c: Rename from dwarf2read.c.
12223 * dwarf2/read.h: Rename from dwarf2read.h.
12224 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12225 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12226 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12227 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12228 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12229 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12230 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12231 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12232 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12233 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12234 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12235 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12236 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12237 Update.
12238 * Makefile.in (COMMON_SFILES): Update.
12239 (HFILES_NO_SRCDIR): Update.
12240
9e35d499
TT
122412020-02-08 Tom Tromey <tom@tromey.com>
12242
12243 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12244 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12245
1eba2311
TT
122462020-02-08 Tom Tromey <tom@tromey.com>
12247
12248 * dwarf2read.h (struct die_info): Don't declare.
12249
e41c2da2
TT
122502020-02-08 Tom Tromey <tom@tromey.com>
12251
12252 * dwarf2read.h (die_info_ptr): Remove typedef.
12253
4fc6c0d5
TT
122542020-02-08 Tom Tromey <tom@tromey.com>
12255
12256 * dwarf2read.c (read_call_site_scope)
12257 (handle_data_member_location, dwarf2_add_member_fn)
12258 (mark_common_block_symbol_computed, read_common_block)
12259 (attr_to_dynamic_prop, partial_die_info::read)
12260 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12261 (dwarf2_symbol_mark_computed, set_die_type): Update.
12262 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12263 method.
12264 (attr_form_is_block): Don't declare.
12265 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12266
cd6c91b4
TT
122672020-02-08 Tom Tromey <tom@tromey.com>
12268
12269 * dwarf2read.c (dwarf2_find_base_address, )
12270 (read_call_site_scope, rust_containing_type)
12271 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12272 (handle_data_member_location, dwarf2_add_member_fn)
12273 (get_alignment, read_structure_type, process_structure_scope)
12274 (mark_common_block_symbol_computed, read_common_block)
12275 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12276 (partial_die_info::read, read_attribute_value, new_symbol)
12277 (lookup_die_type, dwarf2_get_ref_die_offset)
12278 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12279 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12280 (dwarf2_symbol_mark_computed): Update.
12281 * dwarf2/attribute.h (struct attribute) <value_as_address,
12282 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12283 methods.
12284 (value_as_address, attr_form_is_section_offset)
12285 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12286 * dwarf2/attribute.c (attribute::value_as_address)
12287 (attribute::form_is_section_offset, attribute::form_is_constant)
12288 (attribute::form_is_ref): Now methods.
12289
162dce55
TT
122902020-02-08 Tom Tromey <tom@tromey.com>
12291
12292 * dwarf2read.c (struct attribute, DW_STRING)
12293 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12294 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12295 (attr_form_is_block, attr_form_is_section_offset)
12296 (attr_form_is_constant, attr_form_is_ref): Move.
12297 * dwarf2/attribute.h: New file.
12298 * dwarf2/attribute.c: New file, from dwarf2read.c.
12299 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12300
3054dd54
TT
123012020-02-08 Tom Tromey <tom@tromey.com>
12302
12303 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12304 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12305 Move.
12306 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12307 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12308 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12309 abbrev.c.
12310 * dwarf2/abbrev.h: New file.
12311 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12312 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12313
96b79293
TT
123142020-02-08 Tom Tromey <tom@tromey.com>
12315
12316 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12317 (dwarf2_section_size, dwarf2_get_section_info)
12318 (create_signatured_type_table_from_debug_names)
12319 (create_addrmap_from_aranges, read_debug_names_from_section)
12320 (get_gdb_index_contents_from_section, read_comp_unit_head)
12321 (error_check_comp_unit_head, read_abbrev_offset)
12322 (create_debug_type_hash_table, init_cu_die_reader)
12323 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12324 (read_comp_units_from_section, create_cus_hash_table)
12325 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12326 (create_dwp_v2_section, dwarf2_rnglists_process)
12327 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12328 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12329 (read_indirect_string_from_dwz, read_addr_index_1)
12330 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12331 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12332 (fill_in_loclist_baton): Update.
12333 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12334 get_containing_section, get_bfd_owner, get_bfd_section,
12335 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12336 (dwarf2_read_section, get_section_name, get_section_file_name)
12337 (get_containing_section, get_section_bfd_owner)
12338 (get_section_bfd_section, get_section_name, get_section_file_name)
12339 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12340 declare.
12341 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12342 (dwarf2_section_info::get_bfd_owner)
12343 (dwarf2_section_info::get_bfd_section)
12344 (dwarf2_section_info::get_name)
12345 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12346 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12347 (dwarf2_section_info::read): Now methods.
12348 * dwarf-index-write.c (class debug_names): Update.
12349
2c86cff9
TT
123502020-02-08 Tom Tromey <tom@tromey.com>
12351
12352 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12353 Move to dwarf2/section.h.
12354 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12355 (get_section_bfd_section, get_section_name)
12356 (get_section_file_name, get_section_id, get_section_flags)
12357 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12358 dwarf2/section.c.
12359 * dwarf2/section.h: New file.
12360 * dwarf2/section.c: New file, from dwarf2read.c.
12361 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12362
f4382c45
TT
123632020-02-08 Tom Tromey <tom@tromey.com>
12364
12365 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12366 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12367 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12368 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12369 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12370 * dwarf2/leb.h: New file, from dwarf2read.c.
12371 * dwarf2/leb.c: New file, from dwarf2read.c.
12372 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12373 Remove.
12374 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12375 (COMMON_SFILES): Add dwarf2/leb.c.
12376
01840b7a
JB
123772020-02-08 Joel Brobecker <brobecker@adacore.com>
12378
12379 GDB 9.1 released.
12380
dfcb27e4
IB
123812020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12382
12383 PR gdb/25190:
aac66a4c
SM
12384 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12385 * gdb/remote.c (remote_console_output): Update.
12386 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12387 (ui_file_puts): ...this.
12388 * gdb/ui-file.h (ui_file_puts): Add declaration.
12389 * gdb/utils.c (emit_style_escape): Update.
12390 (flush_wrap_buffer): Update.
12391 (fputs_maybe_filtered): Update.
12392 (fputs_unfiltered): Add function.
dfcb27e4 12393
faa17681
IB
123942020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12395
aac66a4c
SM
12396 * gdb/event-loop.c (gdb_wait_for_event): Update.
12397 * gdb/printcmd.c (printf_command): Update.
12398 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12399 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12400 (gdb_os_flush_stderr): Update.
12401 * gdb/remote.c (remote_console_output): Update.
12402 * gdb/ui-file.c (gdb_flush): Rename to...
12403 (ui_file_flush): ...this.
12404 (stderr_file::write): Update.
12405 (stderr_file::puts): Update.
12406 * gdb/ui-file.h (gdb_flush): Rename to...
12407 (ui_file_flush): ...this.
12408 * gdb/utils.c (gdb_flush): Add function.
12409 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 12410
5abbbe1d
TT
124112020-02-07 Tom Tromey <tromey@adacore.com>
12412
12413 PR breakpoints/24915:
12414 * source.c (find_and_open_source): Do not check basenames_may_differ.
12415
919adfe8
TT
124162020-02-07 Tom Tromey <tom@tromey.com>
12417
12418 * README: Update gdbserver documentation.
12419 * gdbserver: Move to top level.
12420 * configure.tgt (build_gdbserver): Remove.
12421 * configure.ac: Remove --enable-gdbserver.
12422 * configure: Rebuild.
12423 * Makefile.in (distclean): Don't mention gdbserver.
12424
1d5d29e7
SV
124252020-02-06 Shahab Vahedi <shahab@synopsys.com>
12426
12427 * source-cache.c (source_cache::ensure): Surround
12428 get_plain_source_lines with a try/catch.
12429 (source_cache::get_line_charpos): Get rid of try/catch
12430 and only check for the return value of "ensure".
12431 * tui/tui-source.c (tui_source_window::set_contents):
12432 Simplify "nlines" calculation.
12433
6eb1129c
SV
124342020-02-06 Shahab Vahedi <shahab@synopsys.com>
12435
12436 * MAINTAINERS (Write After Approval): Add myself.
12437
c6a42d11
CB
124382020-02-05 Christian Biesinger <cbiesinger@google.com>
12439
12440 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12441 function call.
12442
c8ecdda6
CB
124432020-02-05 Christian Biesinger <cbiesinger@google.com>
12444
12445 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12446
f6480e70
MR
124472020-02-05 Maciej W. Rozycki <macro@wdc.com>
12448
12449 * nat/riscv-linux-tdesc.h: New file.
12450 * nat/riscv-linux-tdesc.c: New file, taking code from...
12451 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12452 ... here.
12453 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12454 NATDEPFILES.
12455
dcc9fbc6
AB
124562020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12457
12458 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12459 we don't set the fake simulator ptid to the null_ptid.
12460
719546c4
SM
124612020-02-03 Simon Marchi <simon.marchi@efficios.com>
12462
12463 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12464 * gdbthread.h (class thread_info) <resumed>: Likewise.
12465 * infrun.c (resume_1): Likewise.
12466 (proceed): Likewise.
12467 (infrun_thread_stop_requested): Likewise.
12468 (stop_all_threads): Likewise.
12469 (handle_inferior_event): Likewise.
12470 (restart_threads): Likewise.
12471 (finish_step_over): Likewise.
12472 (keep_going_stepped_thread): Likewise.
12473 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12474 (linux_handle_extended_wait): Likewise.
12475 * record-btrace.c (get_thread_current_frame_id): Likewise.
12476 * record-full.c (record_full_wait_1): Likewise.
12477 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12478 * target.c (target_resume): Likewise.
12479 * thread.c (set_running_thread): Likewise.
12480
e409c542
AKS
124812020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12482
12483 * f-valprint.c (f77_print_array_1): Changed datatype of index
12484 variable to LONGEST from int to enable it to contain bound
12485 values correctly.
12486
ee98c0da
MR
124872020-02-03 Maciej W. Rozycki <macro@wdc.com>
12488
12489 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12490 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12491 offsets according to FLEN determined.
12492 (riscv_linux_nat_target::read_description): Determine FLEN
12493 dynamically.
12494 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12495 according to FLEN determined.
12496 (riscv_linux_nat_target::store_registers): Likewise.
12497
aa66aac4
SV
124982020-02-01 Shahab Vahedi <shahab@synopsys.com>
12499
12500 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12501 when reg->group is empty and reggroup is not.
12502
fd9faca8
TT
125032020-01-31 Tom Tromey <tromey@adacore.com>
12504
12505 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12506 Call beneath target's mourn_inferior after unpushing.
12507
42330a68
AB
125082020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12509
12510 PR tui/9765
12511 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12512 have enough lines to fill the screen, still return the lowest
12513 address we found.
12514
7a27a45b
AB
125152020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12516
12517 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12518 '-', '<', and '>' commands.
12519
c47f70e2
PA
125202020-01-29 Pedro Alves <palves@redhat.com>
12521 Sergio Durigan Junior <sergiodj@redhat.com>
12522
12523 * infcmd.c (construct_inferior_arguments): Assert that
12524 'argc' is greater than 0.
12525
5133a315
LM
125262020-01-29 Luis Machado <luis.machado@linaro.org>
12527
12528 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12529 (BRK_INSN_MASK): Define to 0xd4200000.
12530 (aarch64_program_breakpoint_here_p): New function.
12531 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12532 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12533 breakpoint.c.
12534 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12535 breakpoint.h
12536 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12537 call gdbarch_program_breakpoint_here_p.
12538 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12539 default_program_breakpoint_here_p, changed return type to bool and
12540 simplified.
12541 * breakpoint.h (program_breakpoint_here): Moved prototype to
12542 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12543 return type to bool.
12544 * gdbarch.c: Regenerate.
12545 * gdbarch.h: Regenerate.
12546 * gdbarch.sh (program_breakpoint_here_p): New method.
12547 * infrun.c (handle_signal_stop): Call
12548 gdbarch_program_breakpoint_here_p.
12549
168f8c6b
TT
125502020-01-26 Tom Tromey <tom@tromey.com>
12551
12552 * ctfread.c (struct ctf_fp_info): Reindent.
12553 (_initialize_ctfread): Remove.
12554
128a391f
TT
125552020-01-26 Tom Tromey <tom@tromey.com>
12556
12557 * psymtab.c (partial_map_expand_apply)
12558 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12559 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12560 (psym_print_stats, psym_expand_symtabs_for_function)
12561 (psym_map_symbol_filenames, psym_map_matching_symbols)
12562 (psym_expand_symtabs_matching)
12563 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12564 (maintenance_check_psymtabs): Use new methods.
12565 * psympriv.h (struct partial_symtab) <readin_p,
12566 get_compunit_symtab>: New methods.
12567 <readin, compunit_symtab>: Remove members.
12568 (struct standard_psymtab): New.
12569 (struct legacy_psymtab): Derive from standard_psymtab.
12570 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12571 standard_psymtab.
12572 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12573
0494dbec
TT
125742020-01-26 Tom Tromey <tom@tromey.com>
12575
12576 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12577 read_dependencies. Add assert.
12578 * psymtab.c (partial_symtab::read_dependencies): New method.
12579 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12580 method.
12581 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12582 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12583 read_dependencies.
12584 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12585 Add assert.
12586
8566b89b
TT
125872020-01-26 Tom Tromey <tom@tromey.com>
12588
12589 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12590 Call expand_psymtab.
12591 (xcoff_read_symtab): Call expand_psymtab.
12592 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12593 legacy_expand_psymtab.
12594 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12595 method.
12596 (struct legacy_psymtab) <expand_psymtab>: Implement.
12597 <legacy_expand_psymtab>: New member.
12598 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12599 (parse_partial_symbols): Set legacy_expand_psymtab.
12600 (psymtab_to_symtab_1): Change argument order. Call
12601 expand_psymtab.
12602 (new_psymtab): Set legacy_expand_psymtab.
12603 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12604 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12605 expand_psymtab.
12606 (dwarf2_psymtab::expand_psymtab): Rename from
12607 psymtab_to_symtab_1. Call expand_psymtab.
12608 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12609 (dbx_end_psymtab): Likewise.
12610 (dbx_psymtab_to_symtab_1): Change argument order. Call
12611 expand_psymtab.
12612 (dbx_read_symtab): Call expand_psymtab.
12613 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12614 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12615 (ctf_psymtab::read_symtab): Call expand_psymtab.
12616
077cbab2
TT
126172020-01-26 Tom Tromey <tom@tromey.com>
12618
12619 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12620 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12621 messages.
12622 * mdebugread.c (mdebug_read_symtab): Remove prints.
12623 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12624 assert.
12625 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12626
891813be
TT
126272020-01-26 Tom Tromey <tom@tromey.com>
12628
12629 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12630 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12631 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12632 legacy_symtab.
12633 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12634 * psymtab.c (psymtab_to_symtab): Call method.
12635 (dump_psymtab): Update.
12636 * psympriv.h (struct partial_symtab): Add virtual destructor.
12637 <read_symtab>: New method.
12638 (struct legacy_symtab): New.
12639 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12640 (struct pst_map) <pst>: Now a legacy_psymtab.
12641 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12642 (new_psymtab): Use legacy_psymtab.
12643 * dwarf2read.h (struct dwarf2_psymtab): New.
12644 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12645 * dwarf2read.c (dwarf2_create_include_psymtab)
12646 (dwarf2_build_include_psymtabs, create_type_unit_group)
12647 (create_partial_symtab, process_psymtab_comp_unit_reader)
12648 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12649 (set_partial_user): Use dwarf2_psymtab.
12650 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12651 (psymtab_to_symtab_1, process_full_comp_unit)
12652 (process_full_type_unit, dwarf2_ranges_read)
12653 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12654 (dwarf_decode_lines): Use dwarf2_psymtab.
12655 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12656 (add_address_entry_worker, write_one_signatured_type)
12657 (recursively_count_psymbols, recursively_write_psymbols)
12658 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12659 (write_debug_names): Likewise.
12660 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12661 <pst>: Now a legacy_psymtab.
12662 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12663 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12664 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12665 * ctfread.c (struct ctf_psymtab): New.
12666 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12667 ctf_psymtab.
12668 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12669 (create_partial_symtab): Return a ctf_psymtab.
12670 (scan_partial_symbols): Update.
12671
c3693a1d
TT
126722020-01-26 Tom Tromey <tom@tromey.com>
12673
12674 * xcoffread.c (xcoff_start_psymtab): Use new.
12675 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12676 renamed from start_psymtab_common.
12677 * psympriv.h (struct partial_symtab): Add new constructor.
12678 (start_psymtab_common): Don't declare.
12679 * mdebugread.c (parse_partial_symbols): Use new.
12680 * dwarf2read.c (create_partial_symtab): Use new.
12681 * dbxread.c (start_psymtab): Use new.
12682 * ctfread.c (create_partial_symtab): Use new.
12683
32caafd0
TT
126842020-01-26 Tom Tromey <tom@tromey.com>
12685
12686 * xcoffread.c (xcoff_end_psymtab): Use new.
12687 * psymtab.c (start_psymtab_common): Use new.
12688 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12689 Update.
12690 * psympriv.h (struct partial_symtab): Add parameters to
12691 constructor. Don't inline.
12692 (allocate_psymtab): Don't declare.
12693 * mdebugread.c (new_psymtab): Use new.
12694 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12695 * dbxread.c (dbx_end_psymtab): Use new.
12696
abaa2f23
TT
126972020-01-26 Tom Tromey <tom@tromey.com>
12698
12699 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12700 allocate_psymtab. Update documentation.
12701 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12702 allocate_psymtab. Do not use new.
12703 (allocate_psymtab): Use new. Update.
12704
6d94535f
TT
127052020-01-26 Tom Tromey <tom@tromey.com>
12706
12707 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12708 * psymtab.c (psym_print_stats): Update.
12709 * psympriv.h (struct partial_symtab) <readin,
12710 psymtabs_addrmap_supported, anonymous>: Now bool.
12711 * mdebugread.c (psymtab_to_symtab_1): Update.
12712 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12713 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12714 (process_full_comp_unit, process_full_type_unit): Update.
12715 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12716 * ctfread.c (psymtab_to_symtab): Update.
12717
6f17252b
TT
127182020-01-26 Tom Tromey <tom@tromey.com>
12719
12720 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12721 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12722 * psymtab.c (psymtab_storage): Delete psymtabs.
12723 (psymtab_storage::allocate_psymtab): Use new.
12724 (psymtab_storage::discard_psymtab): Use delete.
12725 * psympriv.h (struct partial_symtab): Add constructor and
12726 initializers.
12727
f6f1cebc
TT
127282020-01-26 Tom Tromey <tom@tromey.com>
12729
12730 * machoread.c: Do not include psympriv.h.
12731
e47e48f6
PW
127322020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12733
12734 * NEWS: Mention the new option and the set/show commands.
12735
a2fedca9
PW
127362020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12737
12738 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12739 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12740 (validate_exec_file): New variables, enums, functions.
12741 (exec_file_locate_attach, print_section_info): Style the filenames.
12742 (_initialize_exec): Install show_exec_file_mismatch_command and
12743 set_exec_file_mismatch_command.
12744 * gdbcore.h (validate_exec_file): Declare.
12745 * infcmd.c (attach_command): Call validate_exec_file.
12746 * remote.c ( remote_target::remote_add_inferior): Likewise.
12747
7ffa82e1
AB
127482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12749
12750 * frame.c (find_frame_sal): Move call to get_next_frame into more
12751 inner scope.
12752 * inline-frame.c (inilne_state) <inline_state>: Update argument
12753 types.
12754 (inilne_state) <skipped_symbol>: Rename to...
12755 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12756 (skip_inline_frames): Build vector of skipped symbols and use this
12757 to reate the inline_state.
12758 (inline_skipped_symbol): Add a comment and some assertions, fetch
12759 skipped symbol from the list.
12760
3d92a3e3
AB
127612020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12762
12763 * buildsym.c (lte_is_less_than): Delete.
12764 (buildsym_compunit::end_symtab_with_blockvector): Create local
12765 lambda function to sort line table entries, and use
12766 std::stable_sort instead of std::sort.
12767 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12768 markers when looking for a previous line.
12769
94a72be7
AB
127702020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12771
12772 * dwarf2read.c (lnp_state_machine::record_line): Include
12773 end_sequence parameter in debug print out. Record the line if we
12774 are at an end_sequence marker even if it's not the start of a
12775 statement.
12776 * symmisc.c (maintenance_print_one_line_table): Print end of
12777 sequence markers with 'END' not '0'.
12778
53af73bf
PA
127792020-01-24 Pedro Alves <palves@redhat.com>
12780
12781 PR gdb/25410
12782 * thread.c (scoped_restore_current_thread::restore): Use
12783 switch_to_inferior_no_thread.
12784 * exec.c: Include "progspace-and-thread.h".
12785 (add_target_sections, remove_target_sections):
12786 scoped_restore_current_pspace_and_thread instead of
12787 scoped_restore_current_thread.
12788 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12789 and aspace to the inferior before calling clone_program_space.
12790 Remove stale comment.
12791
3050c6f4
CB
127922020-01-24 Christian Biesinger <cbiesinger@google.com>
12793
12794 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12795 (arm_netbsd_nat_target::fetch_registers): ...this.
12796 (arm_nbsd_nat_target::store_registers): Rename to...
12797 (arm_netbsd_nat_target::store_registers): ...this.
12798
73685c7e
CB
127992020-01-24 Christian Biesinger <cbiesinger@google.com>
12800
12801 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12802 register_t.
12803
89203d40
CB
128042020-01-24 Christian Biesinger <cbiesinger@google.com>
12805
12806 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12807 Update comment.
12808 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12809 Likewise.
12810 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12811 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12812 the correct replacement (iterate_over_regset_sections).
12813 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12814 Update comment.
12815
1ba1ac88
AB
128162020-01-24 Graham Markall <graham.markall@embecosm.com>
12817
12818 PR gdb/23718
12819 * gdb/python/python.c (execute_gdb_command): Call
12820 async_enable_stdin in catch block.
12821
f3364a6d
AB
128222020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12823
12824 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12825 SWITCH_THRU_ALL_UIS.
12826
733d0a67
AB
128272020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12828
12829 PR tui/9765
12830 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12831 comment, add extra parameter, and update to store previous symbol
12832 when appropriate.
12833 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12834 add extra parameter.
12835 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12836 remove unneeded parameter, add try/catch around gdb_print_insn,
12837 rewrite to add items to asm_lines vector.
12838 (tui_find_backward_disassembly_start_address): New function.
12839 (tui_find_disassembly_address): Updated throughout.
12840 (tui_disasm_window::set_contents): Update for changes to
12841 tui_disassemble.
12842 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12843 number of lines to scroll.
12844
b3b3bada
SM
128452020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12846
12847 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12848 (SECT_OFF_DATA): Likewise.
12849 (SECT_OFF_RODATA): Likewise.
12850 (SECT_OFF_TEXT): Likewise.
12851 (SECT_OFF_BSS): Likewise.
12852 (struct objfile) <text_section_offset, data_section_offset>: New
12853 methods.
12854 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12855 objfile::text_section_offset.
12856 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12857 * coffread.c (coff_symtab_read): Likewise.
12858 (enter_linenos): Likewise.
12859 (process_coff_symbol): Likewise.
12860 * ctfread.c (get_objfile_text_range): Likewise.
12861 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12862 Use objfile::data_section_offset.
12863 * dwarf2-frame.c (execute_cfa_program): Use
12864 objfile::text_section_offset.
12865 (dwarf2_frame_find_fde): Likewise.
12866 * dwarf2read.c (create_addrmap_from_index): Likewise.
12867 (create_addrmap_from_aranges): Likewise.
12868 (dw2_find_pc_sect_compunit_symtab): Likewise.
12869 (process_psymtab_comp_unit_reader): Likewise.
12870 (add_partial_symbol): Likewise.
12871 (add_partial_subprogram): Likewise.
12872 (process_full_comp_unit): Likewise.
12873 (read_file_scope): Likewise.
12874 (read_func_scope): Likewise.
12875 (read_lexical_block_scope): Likewise.
12876 (read_call_site_scope): Likewise.
12877 (dwarf2_rnglists_process): Likewise.
12878 (dwarf2_ranges_process): Likewise.
12879 (dwarf2_ranges_read): Likewise.
12880 (dwarf_decode_lines_1): Likewise.
12881 (new_symbol): Likewise.
12882 (dwarf2_fetch_die_loc_sect_off): Likewise.
12883 (dwarf2_per_cu_text_offset): Likewise.
12884 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12885 * hppa-tdep.c (read_unwind_info): Likewise.
12886 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12887 * psympriv.h (struct partial_symtab): Likewise.
12888 * psymtab.c (find_pc_sect_psymtab): Likewise.
12889 * solib-svr4.c (enable_break): Likewise.
12890 * stap-probe.c (relocate_address): Use
12891 objfile::data_section_offset.
12892 * xcoffread.c (enter_line_range): Use
12893 objfile::text_section_offset.
12894 (read_xcoff_symtab): Likewise.
12895
ab53f382
SM
128962020-01-23 Simon Marchi <simon.marchi@efficios.com>
12897
12898 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12899 declaration to narrower scopes.
12900
e7eee665
SM
129012020-01-23 Simon Marchi <simon.marchi@efficios.com>
12902
12903 * darwin-nat.h (struct darwin_exception_msg, enum
12904 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12905 Move up.
12906 (class darwin_nat_target) <wait_1, check_new_threads,
12907 decode_exception_message, decode_message, stop_inferior,
12908 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12909 * darwin-nat.c (darwin_check_new_threads): Rename to...
12910 (darwin_nat_target::check_new_threads): ... this.
12911 (darwin_suspend_inferior_it): Remove.
12912 (darwin_decode_exception_message): Rename to...
12913 (darwin_nat_target::decode_exception_message): ... this.
12914 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12915 (darwin_decode_message): Rename to...
12916 (darwin_nat_target::decode_message): ... this.
12917 (cancel_breakpoint): Rename to...
12918 (darwin_nat_target::cancel_breakpoint): ... this.
12919 (darwin_wait): Rename to...
12920 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12921 instead of iterate_over_inferiors.
12922 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12923 (darwin_stop_inferior): Rename to...
12924 (darwin_nat_target::stop_inferior): ... this.
12925 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12926 (darwin_init_thread_list): Rename to...
12927 (darwin_nat_target::init_thread_list): ... this.
12928 (darwin_ptrace_him): Rename to...
12929 (darwin_nat_target::ptrace_him): ... this.
12930 (darwin_nat_target::create_inferior): Pass lambda function to
12931 fork_inferior.
12932 (darwin_nat_target::detach): Call stop_inferior instead of
12933 darwin_stop_inferior.
12934 * fork-inferior.h (fork_inferior): Change init_trace_fun
12935 parameter to gdb::function_view.
12936 * fork-inferior.c (fork_inferior): Likewise.
12937
c162ed3e
HD
129382020-01-23 Hannes Domani <ssbssa@yahoo.de>
12939
12940 * i386-cygwin-tdep.c (core_process_module_section): Update.
12941 * windows-nat.c (struct lm_info_windows): Add text_offset.
12942 (windows_xfer_shared_libraries): Update.
12943 * windows-tdep.c (windows_xfer_shared_library):
12944 Add text_offset_cached argument.
12945 * windows-tdep.h (windows_xfer_shared_library): Update.
12946
a1237872
SM
129472020-01-21 Simon Marchi <simon.marchi@efficios.com>
12948
12949 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12950
b3ee6dd9
SM
129512020-01-21 Simon Marchi <simon.marchi@efficios.com>
12952
12953 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12954 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12955 replace with range-based for.
12956 (gdbsim_interrupt_inferior): Remove.
12957 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12958 with a range-based for. Inline code from
12959 gdbsim_interrupt_inferior.
12960
f9fac3c8
SM
129612020-01-21 Simon Marchi <simon.marchi@efficios.com>
12962
12963 * infrun.c (proceed): Fix indentation.
12964
f6474de9
TT
129652020-01-21 Tom Tromey <tromey@adacore.com>
12966
12967 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12968 * python/python.c (python_extension_ops): Update.
12969 (gdbpy_colorize): New function.
12970 * python/lib/gdb/__init__.py (colorize): New function.
12971 * extension.h (ext_lang_colorize): Declare.
12972 * extension.c (ext_lang_colorize): New function.
12973 * extension-priv.h (struct extension_language_ops) <colorize>: New
12974 member.
12975 * cli/cli-style.c (_initialize_cli_style): Update help text.
12976
f0c702d4
LM
129772020-01-21 Luis Machado <luis.machado@linaro.org>
12978
12979 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12980 <cond>: Change type to bool.
12981 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12982 (aarch64_displaced_step_cb): Likewise.
12983 (aarch64_displaced_step_tb): Likewise.
12984
1ab139e5
LM
129852020-01-21 Luis Machado <luis.machado@linaro.org>
12986
12987 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12988 output.
12989
0c271889
LM
129902020-01-21 Luis Machado <luis.machado@linaro.org>
12991
12992 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12993 <pc_adjust>: Adjust the documentation.
12994 (aarch64_displaced_step_fixup): Check if PC really moved before
12995 adjusting it.
12996
4d89c1c7
TT
129972020-01-19 Tom Tromey <tom@tromey.com>
12998
12999 * disasm.c (~gdb_disassembler): New destructor.
13000 (gdb_buffered_insn_length): Call disassemble_free_target.
13001 * disasm.h (class gdb_disassembler): Declare destructor. Use
13002 DISABLE_COPY_AND_ASSIGN.
13003
c0ab21c2
TT
130042020-01-19 Tom Tromey <tom@tromey.com>
13005
13006 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13007 (die_reader_func_ftype): Remove.
13008 (cutu_reader): New class.
13009 (dw2_get_file_names_reader): Remove "data" parameter.
13010 (dw2_get_file_names): Use cutu_reader.
13011 (create_debug_type_hash_table): Update.
13012 (read_cutu_die_from_dwo): Update comment.
13013 (lookup_dwo_unit): Add dwo_name parameter.
13014 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13015 die_reader_func_ftype and data parameters.
13016 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13017 Remove die_reader_func_ftype and data parameters.
13018 (~cutu_reader): New; from init_cutu_and_read_dies.
13019 (cutu_reader::cutu_reader): Rename from
13020 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13021 and data parameters.
13022 (init_cutu_and_read_dies_simple): Remove.
13023 (struct process_psymtab_comp_unit_data): Remove.
13024 (process_psymtab_comp_unit_reader): Remove data parameter; add
13025 want_partial_unit and pretend_language parameters.
13026 (process_psymtab_comp_unit): Use cutu_reader.
13027 (build_type_psymtabs_reader): Remove data parameter.
13028 (build_type_psymtabs_1): Use cutu_reader.
13029 (process_skeletonless_type_unit): Likewise.
13030 (load_partial_comp_unit_reader): Remove.
13031 (load_partial_comp_unit): Use cutu_reader.
13032 (load_full_comp_unit_reader): Remove.
13033 (load_full_comp_unit): Use cutu_reader.
13034 (struct create_dwo_cu_data): Remove.
13035 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13036 dwo_unit parameters.
13037 (create_cus_hash_table): Use cutu_reader.
13038 (struct dwarf2_read_addr_index_data): Remove.
13039 (dwarf2_read_addr_index_reader): Remove.
13040 (dwarf2_read_addr_index): Use cutu_reader.
13041 (read_signatured_type_reader): Remove.
13042 (read_signatured_type): Use cutu_reader.
13043
45bbae5c
TT
130442020-01-19 Tom Tromey <tom@tromey.com>
13045
13046 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13047 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13048 (tui_wrefresh): Declare.
13049 * tui/tui-wingeneral.c (suppress_output): New global.
13050 (tui_suppress_output, ~tui_suppress_output): New constructor and
13051 destructor.
13052 (tui_wrefresh): New function.
13053 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13054 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13055 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13056 method.
13057 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13058 tui_wrefresh.
13059 (tui_data_window::no_refresh): New method.
13060 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13061 (tui_reg_command): Use tui_suppress_output
13062 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13063 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13064 method.
13065 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13066
4f13c1c0
TT
130672020-01-19 Tom Tromey <tom@tromey.com>
13068
13069 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13070 Handle case where symtab is null.
13071
fa47e446
SM
130722020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13073
13074 * linux-fork.c (one_fork_p): Simplify.
13075
26f42329
SM
130762020-01-17 Simon Marchi <simon.marchi@efficios.com>
13077
13078 * top.c (struct qt_args): Remove.
13079 (kill_or_detach): Change return type to void, replace `void *`
13080 parameter with a proper one.
13081 (print_inferior_quit_action): Likewise.
13082 (quit_confirm): Use range-based for loop to iterate over inferiors.
13083 (quit_force): Likewise.
13084
a9ac81b1
SM
130852020-01-17 Simon Marchi <simon.marchi@efficios.com>
13086
13087 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13088 `void *` parameter with proper parameters.
13089 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13090 (print_one_inferior): Change return type to void, replace `void *`
13091 parameter with proper parameters.
13092 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13093 inferiors.
13094 (get_other_inferior): Remove.
13095 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13096 inferiors.
13097
788eca49
SM
130982020-01-17 Simon Marchi <simon.marchi@efficios.com>
13099
13100 * mi/mi-interp.c (report_initial_inferior): Remove.
13101 (mi_interp::init): Use range-based for to iterate over inferiors.
13102
d9bc85b6
SM
131032020-01-17 Simon Marchi <simon.marchi@efficios.com>
13104
13105 * python/py-inferior.c (build_inferior_list): Remove.
13106 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13107
40c94099
CB
131082020-01-16 Christian Biesinger <cbiesinger@google.com>
13109
13110 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13111 (btrace_stitch_trace): Likewise.
13112 * charset.c (intermediate_encoding): Likewise (vaild).
13113 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13114 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13115 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13116
e0cdfe3c
HD
131172020-01-16 Hannes Domani <ssbssa@yahoo.de>
13118
13119 * windows-tdep.c (windows_get_tlb_type):
13120 Add rtl_user_process_parameters type.
13121
790f1718 131222020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13123 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13124
13125 PR build/24805
13126 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13127 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13128 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13129 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13130 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13131 (ps_plog): Redeclare exported functions with default visibility.
13132
3112ed97
NA
131332020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13134
13135 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13136 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13137
8dc3273e
SM
131382020-01-15 Simon Marchi <simon.marchi@efficios.com>
13139
13140 * infcmd.c (post_create_inferior): Use get_thread_regcache
13141 instead of get_current_regcache.
13142
ff47f4f0
TT
131432020-01-14 Tom Tromey <tom@tromey.com>
13144
13145 PR symtab/12535:
13146 * python/python.c (gdbpy_decode_line): Treat empty string the same
13147 as no argument.
13148
975f45b7
TT
131492020-01-14 Tom Tromey <tom@tromey.com>
13150
13151 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13152
25e57356
TT
131532020-01-14 Tom Tromey <tom@tromey.com>
13154
13155 * nat/linux-btrace.c: Don't include <config.h>.
13156 * nat/linux-ptrace.c: Don't include <config.h>.
13157 * nat/x86-linux-dregs.c: Don't include <config.h>.
13158
05ea2a05
TT
131592020-01-14 Tom Tromey <tom@tromey.com>
13160
13161 * configure: Rebuild.
13162 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13163
01027315
TT
131642020-01-14 Tom Tromey <tom@tromey.com>
13165
13166 * nat/x86-linux-dregs.c: Include configh.h.
13167 * nat/linux-ptrace.c: Include configh.h.
13168 * nat/linux-btrace.c: Include configh.h.
13169 * defs.h: Include config.h, bfd.h.
13170 * configure.ac: Don't source common.host.
13171 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13172 * configure: Rebuild.
13173 * acinclude.m4: Update path.
13174 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13175 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13176 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13177 (CLIBS): Add LIBSUPPORT.
13178 (CDEPS): Likewise.
13179 (COMMON_SFILES): Remove gdbsupport files.
13180 (HFILES_NO_SRCDIR): Likewise.
13181 (stamp-version): Update path to create-version.sh.
13182 (ALLDEPFILES): Remove gdbsupport files.
13183
b2ceabe8
TT
131842020-01-14 Tom Tromey <tom@tromey.com>
13185
13186 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13187 USE_WIN32API when needed.
13188 * configure.ac (USE_WIN32API): Don't define.
13189 (WIN32LIBS): Use WIN32APILIBS.
13190 * configure: Rebuild.
13191
25c51f71
TT
131922020-01-14 Tom Tromey <tom@tromey.com>
13193
13194 * configure: Rebuild.
13195 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13196
717c684d
BE
131972020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13198
13199 * skip.c (skip_function_command): Make skip w/o arguments use the
13200 name of the inlined function if pc is inside any inlined function.
13201
7da6a5b9
LM
132022020-01-14 Luis Machado <luis.machado@linaro.org>
13203
13204 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13205 * infrun.c (resume_1): Likewise.
13206 (handle_inferior_event): Remove stale comment.
13207 * linux-nat.c (linux_nat_target::resume): Update comments.
13208 (save_stop_reason): Likewise.
13209 (linux_nat_filter_event): Likewise.
13210 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13211
44e4c775
AB
132122020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13213
13214 * elfread.c (record_minimal_symbol): Set section index to 0 for
13215 non-allocatable sections.
13216
18a8505e
AT
13217
132182020-01-13 Ali Tamur <tamur@google.com>
13219
13220 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13221 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13222 to gdb::optional. Update comments.
13223 (dwo_file): Update comments.
13224 (read_attribute): Update API to take an additional out parameter,
13225 need_reprocess. This is used to mark attributes that need other
13226 attributes (e.g. str_offsets_base) for correct computation which may not
13227 have been read yet.
13228 (read_attribute_reprocess): New function declaration.
13229 (read_addr_index): Likewise.
13230 (read_dwo_str_index): Likewise.
13231 (read_stub_str_index): Likewise.
13232 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13233 (lookup_addr_base): New function definition.
13234 (lookup_ranges_base): Likewise.
13235 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13236 lookup_ranges_base.
13237 (init_cutu_and_read_dies): Update comments.
13238 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13239 unit. This is used to inherit parent's str_offsets_base and addr_base.
13240 Update comments.
13241 (init_cutu_and_read_dies_simple): Reflect API changes.
13242 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13243 (create_cus_hash_table): Change API to take parent compile unit.
13244 Reflect API changes.
13245 (open_and_init_dwo_file): Reflect API changes.
13246 (dwarf2_get_pc_bounds): Update comments.
13247 (dwarf2_record_block_ranges): Likewise.
13248 (read_full_die_1): Change implementation to reprocess attributes that
13249 need str_offsets_base and addr_base.
13250 (partial_die_info::read): Likewise.
13251 (read_attribute_reprocess): New function definition.
13252 (read_attribute_value): Change API to take an additional out parameter,
13253 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13254 when a non-dwo compile unit has index based attributes.
13255 (read_attribute): Reflect API changes.
13256 (read_addr_index_1): Reflect API changes. Update comments.
13257 (dwarf2_read_addr_index_data): Reflect API changes.
13258 (dwarf2_read_addr_index): Likewise.
13259 (read_str_index): Change API and implementation. This becomes a helper
13260 to be used by the new string index related methods. Update error
13261 message and comments.
13262 (read_dwo_str_index): New function definition.
13263 (read_stub_str_index): Likewise.
13264 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13265 * symfile.h (dwarf2_debug_sections): Likewise.
13266 * xcoffread.c (dwarf2_debug_sections): Likewise.
13267
0cac9354
SM
132682020-01-13 Simon Marchi <simon.marchi@efficios.com>
13269
13270 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13271 core_reg_sect type to gdb_byte *.
13272 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13273 * cris-tdep.c (fetch_core_registers): Likewise.
13274 * corelow.c (core_target::get_core_register_section): Change
13275 type of `contents` to gdb::byte_vector.
13276
9a6d629c
AB
132772020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13278
13279 * tui/tui-wingeneral.c (box_win): Position the title in the center
13280 of the border.
13281
d8b2f9e3
SM
132822020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13283
13284 * corelow.c (core_target::get_core_register_section): Use
13285 std::vector instead of alloca.
13286
bb564c58
SM
132872020-01-13 Simon Marchi <simon.marchi@efficios.com>
13288
13289 * warning.m4: Add -Wmissing-declarations to build_warnings.
13290 * configure: Re-generate.
13291
6b366111
SM
132922020-01-13 Simon Marchi <simon.marchi@efficios.com>
13293
13294 * python/python.c (init__gdb_module): Add declaration.
13295
6c265988
SM
132962020-01-13 Simon Marchi <simon.marchi@efficios.com>
13297
13298 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13299 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13300 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13301 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13302 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13303 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13304 * ada-exp.y (_initialize_ada_exp): Add declaration.
13305 * ada-lang.c (_initialize_ada_language): Add declaration.
13306 * ada-tasks.c (_initialize_tasks): Add declaration.
13307 * agent.c (_initialize_agent): Add declaration.
13308 * aix-thread.c (_initialize_aix_thread): Add declaration.
13309 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13310 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13311 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13312 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13313 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13314 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13315 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13316 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13317 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13318 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13319 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13320 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13321 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13322 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13323 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13324 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13325 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13326 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13327 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13328 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13329 * annotate.c (_initialize_annotate): Add declaration.
13330 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13331 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13332 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13333 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13334 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13335 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13336 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13337 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13338 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13339 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13340 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13341 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13342 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13343 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13344 * auto-load.c (_initialize_auto_load): Add declaration.
13345 * auxv.c (_initialize_auxv): Add declaration.
13346 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13347 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13348 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13349 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13350 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13351 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13352 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13353 * breakpoint.c (_initialize_breakpoint): Add declaration.
13354 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13355 * btrace.c (_initialize_btrace): Add declaration.
13356 * charset.c (_initialize_charset): Add declaration.
13357 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13358 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13359 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13360 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13361 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13362 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13363 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13364 * coffread.c (_initialize_coffread): Add declaration.
13365 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13366 * compile/compile.c (_initialize_compile): Add declaration.
13367 * complaints.c (_initialize_complaints): Add declaration.
13368 * completer.c (_initialize_completer): Add declaration.
13369 * copying.c (_initialize_copying): Add declaration.
13370 * corefile.c (_initialize_core): Add declaration.
13371 * corelow.c (_initialize_corelow): Add declaration.
13372 * cp-abi.c (_initialize_cp_abi): Add declaration.
13373 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13374 * cp-support.c (_initialize_cp_support): Add declaration.
13375 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13376 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13377 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13378 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13379 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13380 * ctfread.c (_initialize_ctfread): Add declaration.
13381 * d-lang.c (_initialize_d_language): Add declaration.
13382 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13383 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13384 * dbxread.c (_initialize_dbxread): Add declaration.
13385 * dcache.c (_initialize_dcache): Add declaration.
13386 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13387 * disasm.c (_initialize_disasm): Add declaration.
13388 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13389 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13390 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13391 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13392 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13393 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13394 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13395 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13396 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13397 * elfread.c (_initialize_elfread): Add declaration.
13398 * exec.c (_initialize_exec): Add declaration.
13399 * extension.c (_initialize_extension): Add declaration.
13400 * f-lang.c (_initialize_f_language): Add declaration.
13401 * f-valprint.c (_initialize_f_valprint): Add declaration.
13402 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13403 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13404 * filesystem.c (_initialize_filesystem): Add declaration.
13405 * findcmd.c (_initialize_mem_search): Add declaration.
13406 * findvar.c (_initialize_findvar): Add declaration.
13407 * fork-child.c (_initialize_fork_child): Add declaration.
13408 * frame-base.c (_initialize_frame_base): Add declaration.
13409 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13410 * frame.c (_initialize_frame): Add declaration.
13411 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13412 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13413 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13414 * gcore.c (_initialize_gcore): Add declaration.
13415 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13416 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13417 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13418 * gdbarch.c (_initialize_gdbarch): Add declaration.
13419 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13420 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13421 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13422 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13423 * go-lang.c (_initialize_go_language): Add declaration.
13424 * go32-nat.c (_initialize_go32_nat): Add declaration.
13425 * guile/guile.c (_initialize_guile): Add declaration.
13426 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13427 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13428 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13429 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13430 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13431 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13432 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13433 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13434 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13435 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13436 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13437 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13438 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13439 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13440 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13441 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13442 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13443 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13444 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13445 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13446 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13447 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13448 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13449 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13450 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13451 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13452 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13453 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13454 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13455 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13456 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13457 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13458 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13459 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13460 * infcall.c (_initialize_infcall): Add declaration.
13461 * infcmd.c (_initialize_infcmd): Add declaration.
13462 * inflow.c (_initialize_inflow): Add declaration.
13463 * infrun.c (_initialize_infrun): Add declaration.
13464 * interps.c (_initialize_interpreter): Add declaration.
13465 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13466 * jit.c (_initialize_jit): Add declaration.
13467 * language.c (_initialize_language): Add declaration.
13468 * linux-fork.c (_initialize_linux_fork): Add declaration.
13469 * linux-nat.c (_initialize_linux_nat): Add declaration.
13470 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13471 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13472 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13473 * m2-lang.c (_initialize_m2_language): Add declaration.
13474 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13475 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13476 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13477 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13478 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13479 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13480 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13481 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13482 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13483 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13484 * machoread.c (_initialize_machoread): Add declaration.
13485 * macrocmd.c (_initialize_macrocmd): Add declaration.
13486 * macroscope.c (_initialize_macroscope): Add declaration.
13487 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13488 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13489 * maint.c (_initialize_maint_cmds): Add declaration.
13490 * mdebugread.c (_initialize_mdebugread): Add declaration.
13491 * memattr.c (_initialize_mem): Add declaration.
13492 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13493 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13494 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13495 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13496 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13497 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13498 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13499 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13500 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13501 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13502 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13503 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13504 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13505 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13506 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13507 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13508 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13509 * mipsread.c (_initialize_mipsread): Add declaration.
13510 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13511 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13512 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13513 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13514 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13515 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13516 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13517 * nto-procfs.c (_initialize_procfs): Add declaration.
13518 * objc-lang.c (_initialize_objc_language): Add declaration.
13519 * observable.c (_initialize_observer): Add declaration.
13520 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13521 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13522 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13523 * osabi.c (_initialize_gdb_osabi): Add declaration.
13524 * osdata.c (_initialize_osdata): Add declaration.
13525 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13526 * parse.c (_initialize_parse): Add declaration.
13527 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13528 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13529 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13530 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13531 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13532 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13533 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13534 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13535 * printcmd.c (_initialize_printcmd): Add declaration.
13536 * probe.c (_initialize_probe): Add declaration.
13537 * proc-api.c (_initialize_proc_api): Add declaration.
13538 * proc-events.c (_initialize_proc_events): Add declaration.
13539 * proc-service.c (_initialize_proc_service): Add declaration.
13540 * procfs.c (_initialize_procfs): Add declaration.
13541 * producer.c (_initialize_producer): Add declaration.
13542 * psymtab.c (_initialize_psymtab): Add declaration.
13543 * python/python.c (_initialize_python): Add declaration.
13544 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13545 * record-btrace.c (_initialize_record_btrace): Add declaration.
13546 * record-full.c (_initialize_record_full): Add declaration.
13547 * record.c (_initialize_record): Add declaration.
13548 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13549 * regcache.c (_initialize_regcache): Add declaration.
13550 * reggroups.c (_initialize_reggroup): Add declaration.
13551 * remote-notif.c (_initialize_notif): Add declaration.
13552 * remote-sim.c (_initialize_remote_sim): Add declaration.
13553 * remote.c (_initialize_remote): Add declaration.
13554 * reverse.c (_initialize_reverse): Add declaration.
13555 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13556 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13557 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13558 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13559 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13560 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13561 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13562 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13563 Add declaration.
13564 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13565 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13566 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13567 * rust-exp.y (_initialize_rust_exp): Add declaration.
13568 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13569 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13570 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13571 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13572 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13573 * score-tdep.c (_initialize_score_tdep): Add declaration.
13574 * ser-go32.c (_initialize_ser_dos): Add declaration.
13575 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13576 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13577 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13578 * ser-uds.c (_initialize_ser_socket): Add declaration.
13579 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13580 * serial.c (_initialize_serial): Add declaration.
13581 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13582 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13583 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13584 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13585 * skip.c (_initialize_step_skip): Add declaration.
13586 * sol-thread.c (_initialize_sol_thread): Add declaration.
13587 * solib-aix.c (_initialize_solib_aix): Add declaration.
13588 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13589 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13590 * solib-frv.c (_initialize_frv_solib): Add declaration.
13591 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13592 * solib-target.c (_initialize_solib_target): Add declaration.
13593 * solib.c (_initialize_solib): Add declaration.
13594 * source-cache.c (_initialize_source_cache): Add declaration.
13595 * source.c (_initialize_source): Add declaration.
13596 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13597 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13598 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13599 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13600 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13601 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13602 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13603 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13604 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13605 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13606 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13607 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13608 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13609 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13610 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13611 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13612 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13613 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13614 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13615 * stabsread.c (_initialize_stabsread): Add declaration.
13616 * stack.c (_initialize_stack): Add declaration.
13617 * stap-probe.c (_initialize_stap_probe): Add declaration.
13618 * std-regs.c (_initialize_frame_reg): Add declaration.
13619 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13620 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13621 * symfile.c (_initialize_symfile): Add declaration.
13622 * symmisc.c (_initialize_symmisc): Add declaration.
13623 * symtab.c (_initialize_symtab): Add declaration.
13624 * target.c (_initialize_target): Add declaration.
13625 * target-connection.c (_initialize_target_connection): Add
13626 declaration.
13627 * target-dcache.c (_initialize_target_dcache): Add declaration.
13628 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13629 * thread.c (_initialize_thread): Add declaration.
13630 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13631 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13632 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13633 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13634 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13635 * tracectf.c (_initialize_ctf): Add declaration.
13636 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13637 * tracefile.c (_initialize_tracefile): Add declaration.
13638 * tracepoint.c (_initialize_tracepoint): Add declaration.
13639 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13640 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13641 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13642 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13643 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13644 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13645 * tui/tui.c (_initialize_tui): Add declaration.
13646 * typeprint.c (_initialize_typeprint): Add declaration.
13647 * ui-style.c (_initialize_ui_style): Add declaration.
13648 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13649 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13650 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13651 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13652 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13653 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13654 * unittests/filtered_iterator-selftests.c
13655 (_initialize_filtered_iterator_selftests): Add declaration.
13656 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13657 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13658 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13659 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13660 * unittests/main-thread-selftests.c
13661 (_initialize_main_thread_selftests): Add declaration.
13662 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13663 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13664 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13665 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13666 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13667 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13668 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13669 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13670 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13671 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13672 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13673 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13674 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13675 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13676 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13677 declaration.
13678 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13679 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13680 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13681 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13682 * user-regs.c (_initialize_user_regs): Add declaration.
13683 * utils.c (_initialize_utils): Add declaration.
13684 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13685 * valops.c (_initialize_valops): Add declaration.
13686 * valprint.c (_initialize_valprint): Add declaration.
13687 * value.c (_initialize_values): Add declaration.
13688 * varobj.c (_initialize_varobj): Add declaration.
13689 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13690 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13691 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13692 * windows-nat.c (_initialize_windows_nat): Add declaration.
13693 (_initialize_check_for_gdb_ini): Add declaration.
13694 (_initialize_loadable): Add declaration.
13695 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13696 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13697 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13698 * xcoffread.c (_initialize_xcoffread): Add declaration.
13699 * xml-support.c (_initialize_xml_support): Add declaration.
13700 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13701 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13702 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13703 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13704
e2de1eec
SM
137052020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13706
13707 * regformats/regdat.sh: Generate declaration for init function.
13708
e0037b4c
SM
137092020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13710
13711 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13712 up.
13713 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13714 close_one_inferior>: New methods.
13715 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13716 pass down target to find_inferior_pid.
13717 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13718 Pass down target to find_inferior_ptid.
13719 (gdbsim_target::create_inferior): Pass down target to
13720 add_thread_silent.
13721 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13722 target down to find_inferior_ptid and switch_to_thread.
13723 (gdbsim_target::close): Update to call close_one_inferior.
13724 (struct resume_data): Remove.
13725 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13726 directly, rather than through a void pointer.
13727 (gdbsim_target::resume): Update to call resume_one_inferior.
13728
58920b5b
SM
137292020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13730
13731 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13732
4ec89149
PA
137332020-01-12 Pedro Alves <palves@redhat.com>
13734
13735 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13736 directly for the current inferior instead of
13737 discard_all_inferiors.
13738 (discard_all_inferiors): Delete.
13739
7c392d1d
TT
137402020-01-11 Tom Tromey <tom@tromey.com>
13741
13742 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13743 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13744 deprecated_safe_get_selected_frame.
13745
d9ebdab7
TBA
137462020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13747
13748 * inferior.c (print_inferior): Switch inferior before printing it.
13749
f3c469b9
PA
137502020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13751 Pedro Alves <palves@redhat.com>
13752
13753 * progspace-and-thread.c (switch_to_program_space_and_thread):
13754 Assert there's an inferior for PSPACE. Use
13755 switch_to_inferior_no_thread to switch the inferior too.
13756 * progspace.c (program_space::~program_space): Call
13757 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13758 (program_space::free_all_objfiles): Don't call clear_symtab_users
13759 here.
13760 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13761
65c574f6
PA
137622020-01-10 Pedro Alves <palves@redhat.com>
13763
13764 * NEWS: Mention multi-target debugging, "info connections", and
13765 "add-inferior -no-connection".
13766
2f4fcf00
PA
137672020-01-10 Pedro Alves <palves@redhat.com>
13768
13769 * infrun.c: Include "target-connection.h".
13770 (check_multi_target_resumption): New.
13771 (proceed): Call it.
13772 * target-connection.c (make_target_connection_string): Make
13773 extern.
13774 * target-connection.h (make_target_connection_string): Declare.
13775
121b3efd
PA
137762020-01-10 Pedro Alves <palves@redhat.com>
13777
13778 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13779 * inferior.c (uiout_field_connection): New function.
13780 (print_inferior): Add new "connection-id" column.
13781 (add_inferior_command): Show connection number/string of added
13782 inferior.
13783 * process-stratum-target.h
13784 (process_stratum_target::connection_string): New virtual method.
13785 (process_stratum_target::connection_number): New field.
13786 * remote.c (remote_target::connection_string): New override.
13787 * target-connection.c: New file.
13788 * target-connection.h: New file.
13789 * target.c (decref_target): Remove process_stratum targets from
13790 the connection list.
13791 (target_stack::push): Add process_stratum targets to the
13792 connection list.
13793
4f837581
PA
137942020-01-10 Pedro Alves <palves@redhat.com>
13795
13796 Revert:
13797 2016-04-12 Pedro Alves <palves@redhat.com>
13798 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13799 Remove references to name.
13800 * serial.h (struct serial) <name>: Delete.
13801
f4ec508e
PA
138022020-01-10 Pedro Alves <palves@redhat.com>
13803
13804 * gdbarch-selftests.c (register_to_value_test): Remove "target
13805 already pushed" check.
13806
5b6d1e4f
PA
138072020-01-10 Pedro Alves <palves@redhat.com>
13808 John Baldwin <jhb@FreeBSD.org>
13809
13810 * aarch64-linux-nat.c
13811 (aarch64_linux_nat_target::thread_architecture): Adjust.
13812 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13813 (task_command_1): Likewise.
13814 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13815 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13816 (aix_thread_target::store_registers)
13817 (aix_thread_target::thread_alive): Adjust.
13818 * amd64-fbsd-tdep.c: Include "inferior.h".
13819 (amd64fbsd_get_thread_local_address): Pass down target.
13820 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13821 thread's gdbarch instead of target_gdbarch.
13822 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13823 get_last_target_status.
13824 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13825 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13826 inferiors.
13827 (update_inserted_breakpoint_locations): Skip if inferiors with no
13828 execution.
13829 (update_global_location_list): When handling moribund locations,
13830 find representative inferior for location's pspace, and use thread
13831 count of its process_stratum target.
13832 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13833 * bsd-uthread.c (bsd_uthread_target::wait): Use
13834 as_process_stratum_target and adjust thread_change_ptid and
13835 add_thread calls.
13836 (bsd_uthread_target::update_thread_list): Use
13837 as_process_stratum_target and adjust find_thread_ptid,
13838 thread_change_ptid and add_thread calls.
13839 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13840 find_thread_ptid call.
13841 * corelow.c (add_to_thread_list): Adjust add_thread call.
13842 (core_target_open): Adjust add_thread_silent and thread_count
13843 calls.
13844 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13845 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13846 * event-top.c (async_disconnect): Pop targets from all inferiors.
13847 * exec.c (add_target_sections): Push exec target on all inferiors
13848 sharing the program space.
13849 (remove_target_sections): Remove the exec target from all
13850 inferiors sharing the program space.
13851 (exec_on_vfork): New.
13852 * exec.h (exec_on_vfork): Declare.
13853 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13854 Pass it down.
13855 (fbsd_nat_target::update_thread_list): Adjust.
13856 (fbsd_nat_target::resume): Adjust.
13857 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13858 down.
13859 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13860 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13861 get_thread_arch_regcache call.
13862 * fork-child.c (gdb_startup_inferior): Pass target down to
13863 startup_inferior and set_executing.
13864 * gdbthread.h (struct process_stratum_target): Forward declare.
13865 (add_thread, add_thread_silent, add_thread_with_info)
13866 (in_thread_list): Add process_stratum_target parameter.
13867 (find_thread_ptid(inferior*, ptid_t)): New overload.
13868 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13869 parameter.
13870 (all_threads()): Delete overload.
13871 (all_threads, all_non_exited_threads): Add process_stratum_target
13872 parameter.
13873 (all_threads_safe): Use brace initialization.
13874 (thread_count): Add process_stratum_target parameter.
13875 (set_resumed, set_running, set_stop_requested, set_executing)
13876 (threads_are_executing, finish_thread_state): Add
13877 process_stratum_target parameter.
13878 (switch_to_thread): Use is_current_thread.
13879 * i386-fbsd-tdep.c: Include "inferior.h".
13880 (i386fbsd_get_thread_local_address): Pass down target.
13881 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13882 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13883 have_inferiors check.
13884 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13885 (inf_ptrace_target::attach): Adjust.
13886 * infcall.c (run_inferior_call): Adjust.
13887 * infcmd.c (run_command_1): Pass target to
13888 scoped_finish_thread_state.
13889 (proceed_thread_callback): Skip inferiors with no execution.
13890 (continue_command): Rename 'all_threads' local to avoid hiding
13891 'all_threads' function. Adjust get_last_target_status call.
13892 (prepare_one_step): Adjust set_running call.
13893 (signal_command): Use user_visible_resume_target. Compare thread
13894 pointers instead of inferior_ptid.
13895 (info_program_command): Adjust to pass down target.
13896 (attach_command): Mark target's 'thread_executing' flag.
13897 (stop_current_target_threads_ns): New, factored out from ...
13898 (interrupt_target_1): ... this. Switch inferior before making
13899 target calls.
13900 * inferior-iter.h
13901 (struct all_inferiors_iterator, struct all_inferiors_range)
13902 (struct all_inferiors_safe_range)
13903 (struct all_non_exited_inferiors_range): Filter on
13904 process_stratum_target too. Remove explicit.
13905 * inferior.c (inferior::inferior): Push dummy target on target
13906 stack.
13907 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13908 Add process_stratum_target parameter, and pass it down.
13909 (have_live_inferiors): Adjust.
13910 (switch_to_inferior_and_push_target): New.
13911 (add_inferior_command, clone_inferior_command): Handle
13912 "-no-connection" parameter. Use
13913 switch_to_inferior_and_push_target.
13914 (_initialize_inferior): Mention "-no-connection" option in
13915 the help of "add-inferior" and "clone-inferior" commands.
13916 * inferior.h: Include "process-stratum-target.h".
13917 (interrupt_target_1): Use bool.
13918 (struct inferior) <push_target, unpush_target, target_is_pushed,
13919 find_target_beneath, top_target, process_target, target_at,
13920 m_stack>: New.
13921 (discard_all_inferiors): Delete.
13922 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13923 (all_inferiors, all_non_exited_inferiors): Add
13924 process_stratum_target parameter.
13925 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13926 (target_last_proc_target): New global.
13927 (follow_fork_inferior): Push target on new inferior. Pass target
13928 to add_thread_silent. Call exec_on_vfork. Handle target's
13929 reference count.
13930 (follow_fork): Adjust get_last_target_status call. Also consider
13931 target.
13932 (follow_exec): Push target on new inferior.
13933 (struct execution_control_state) <target>: New field.
13934 (user_visible_resume_target): New.
13935 (do_target_resume): Call target_async.
13936 (resume_1): Set target's threads_executing flag. Consider resume
13937 target.
13938 (commit_resume_all_targets): New.
13939 (proceed): Also consider resume target. Skip threads of inferiors
13940 with no execution. Commit resumtion in all targets.
13941 (start_remote): Pass current inferior to wait_for_inferior.
13942 (infrun_thread_stop_requested): Consider target as well. Pass
13943 thread_info pointer to clear_inline_frame_state instead of ptid.
13944 (infrun_thread_thread_exit): Consider target as well.
13945 (random_pending_event_thread): New inferior parameter. Use it.
13946 (do_target_wait): Rename to ...
13947 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13948 down.
13949 (threads_are_resumed_pending_p, do_target_wait): New.
13950 (prepare_for_detach): Adjust calls.
13951 (wait_for_inferior): New inferior parameter. Handle it. Use
13952 do_target_wait_1 instead of do_target_wait.
13953 (fetch_inferior_event): Adjust. Switch to representative
13954 inferior. Pass target down.
13955 (set_last_target_status): Add process_stratum_target parameter.
13956 Save target in global.
13957 (get_last_target_status): Add process_stratum_target parameter and
13958 handle it.
13959 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13960 (context_switch): Check inferior_ptid == null_ptid before calling
13961 inferior_thread().
13962 (get_inferior_stop_soon): Pass down target.
13963 (wait_one): Rename to ...
13964 (poll_one_curr_target): ... this.
13965 (struct wait_one_event): New.
13966 (wait_one): New.
13967 (stop_all_threads): Adjust.
13968 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13969 event's target.
13970 (switch_back_to_stepped_thread): Also consider target.
13971 (print_stop_event): Update.
13972 (normal_stop): Update. Also consider the resume target.
13973 * infrun.h (wait_for_inferior): Remove declaration.
13974 (user_visible_resume_target): New declaration.
13975 (get_last_target_status, set_last_target_status): New
13976 process_stratum_target parameter.
13977 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13978 process_stratum_target parameter, and use it.
13979 (clear_inline_frame_state (thread_info*)): New.
13980 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13981 process_stratum_target parameter.
13982 (clear_inline_frame_state (thread_info*)): Declare.
13983 * linux-fork.c (delete_checkpoint_command): Pass target down to
13984 find_thread_ptid.
13985 (checkpoint_command): Adjust.
13986 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13987 instead of just tweaking inferior_ptid.
13988 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13989 (exit_lwp): Pass target down to find_thread_ptid.
13990 (attach_proc_task_lwp_callback): Pass target down to
13991 add_thread/set_running/set_executing.
13992 (linux_nat_target::attach): Pass target down to
13993 thread_change_ptid.
13994 (get_detach_signal): Pass target down to find_thread_ptid.
13995 Consider last target status's target.
13996 (linux_resume_one_lwp_throw, resume_lwp)
13997 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13998 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13999 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14000 (linux_nat_target::async_wait_fd): New.
14001 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14002 target down.
14003 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14004 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14005 * linux-thread-db.c (struct thread_db_info::process_target): New
14006 field.
14007 (add_thread_db_info): Save target.
14008 (get_thread_db_info): New process_stratum_target parameter. Also
14009 match target.
14010 (delete_thread_db_info): New process_stratum_target parameter.
14011 Also match target.
14012 (thread_from_lwp): Adjust to pass down target.
14013 (thread_db_notice_clone): Pass down target.
14014 (check_thread_db_callback): Pass down target.
14015 (try_thread_db_load_1): Always push the thread_db target.
14016 (try_thread_db_load, record_thread): Pass target down.
14017 (thread_db_target::detach): Pass target down. Always unpush the
14018 thread_db target.
14019 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14020 target down. Always unpush the thread_db target.
14021 (find_new_threads_callback, thread_db_find_new_threads_2)
14022 (thread_db_target::update_thread_list): Pass target down.
14023 (thread_db_target::pid_to_str): Pass current inferior down.
14024 (thread_db_target::get_thread_local_address): Pass target down.
14025 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14026 target down.
14027 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14028 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14029 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14030 (procfs_init_inferior): Rename to ...
14031 (procfs_target::procfs_init_inferior): ... this and adjust.
14032 (procfs_target::create_inferior, procfs_notice_thread)
14033 (procfs_do_thread_registers): Adjust.
14034 * ppc-fbsd-tdep.c: Include "inferior.h".
14035 (ppcfbsd_get_thread_local_address): Pass down target.
14036 * proc-service.c (ps_xfer_memory): Switch current inferior and
14037 program space as well.
14038 (get_ps_regcache): Pass target down.
14039 * process-stratum-target.c
14040 (process_stratum_target::thread_address_space)
14041 (process_stratum_target::thread_architecture): Pass target down.
14042 * process-stratum-target.h
14043 (process_stratum_target::threads_executing): New field.
14044 (as_process_stratum_target): New.
14045 * ravenscar-thread.c
14046 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14047 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14048 down.
14049 * record-btrace.c (record_btrace_target::info_record): Adjust.
14050 (record_btrace_target::record_method)
14051 (record_btrace_target::record_is_replaying)
14052 (record_btrace_target::fetch_registers)
14053 (get_thread_current_frame_id, record_btrace_target::resume)
14054 (record_btrace_target::wait, record_btrace_target::stop): Pass
14055 target down.
14056 * record-full.c (record_full_wait_1): Switch to event thread.
14057 Pass target down.
14058 * regcache.c (regcache::regcache)
14059 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14060 process_stratum_target parameter and handle it.
14061 (current_thread_target): New global.
14062 (get_thread_regcache): Add process_stratum_target parameter and
14063 handle it. Switch inferior before calling target method.
14064 (get_thread_regcache): Pass target down.
14065 (get_thread_regcache_for_ptid): Pass target down.
14066 (registers_changed_ptid): Add process_stratum_target parameter and
14067 handle it.
14068 (registers_changed_thread, registers_changed): Pass target down.
14069 (test_get_thread_arch_aspace_regcache): New.
14070 (current_regcache_test): Define a couple local test_target_ops
14071 instances and use them for testing.
14072 (readwrite_regcache): Pass process_stratum_target parameter.
14073 (cooked_read_test, cooked_write_test): Pass mock_target down.
14074 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14075 (get_thread_arch_aspace_regcache): Add process_stratum_target
14076 parameter.
14077 (regcache::target): New method.
14078 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14079 (regcache::registers_changed_ptid): Add process_stratum_target
14080 parameter.
14081 (regcache::m_target): New field.
14082 (registers_changed_ptid): Add process_stratum_target parameter.
14083 * remote.c (remote_state::supports_vCont_probed): New field.
14084 (remote_target::async_wait_fd): New method.
14085 (remote_unpush_and_throw): Add remote_target parameter.
14086 (get_current_remote_target): Adjust.
14087 (remote_target::remote_add_inferior): Push target.
14088 (remote_target::remote_add_thread)
14089 (remote_target::remote_notice_new_inferior)
14090 (get_remote_thread_info): Pass target down.
14091 (remote_target::update_thread_list): Skip threads of inferiors
14092 bound to other targets. (remote_target::close): Don't discard
14093 inferiors. (remote_target::add_current_inferior_and_thread)
14094 (remote_target::process_initial_stop_replies)
14095 (remote_target::start_remote)
14096 (remote_target::remote_serial_quit_handler): Pass down target.
14097 (remote_target::remote_unpush_target): New remote_target
14098 parameter. Unpush the target from all inferiors.
14099 (remote_target::remote_unpush_and_throw): New remote_target
14100 parameter. Pass it down.
14101 (remote_target::open_1): Check whether the current inferior has
14102 execution instead of checking whether any inferior is live. Pass
14103 target down.
14104 (remote_target::remote_detach_1): Pass down target. Use
14105 remote_unpush_target.
14106 (extended_remote_target::attach): Pass down target.
14107 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14108 (remote_target::append_resumption): Pass down target.
14109 (remote_target::append_pending_thread_resumptions)
14110 (remote_target::remote_resume_with_hc, remote_target::resume)
14111 (remote_target::commit_resume): Pass down target.
14112 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14113 (remote_target::interrupt_query)
14114 (remote_target::remove_new_fork_children)
14115 (remote_target::check_pending_events_prevent_wildcard_vcont)
14116 (remote_target::remote_parse_stop_reply)
14117 (remote_target::process_stop_reply): Pass down target.
14118 (first_remote_resumed_thread): New remote_target parameter. Pass
14119 it down.
14120 (remote_target::wait_as): Pass down target.
14121 (unpush_and_perror): New remote_target parameter. Pass it down.
14122 (remote_target::readchar, remote_target::remote_serial_write)
14123 (remote_target::getpkt_or_notif_sane_1)
14124 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14125 down target.
14126 (remote_target::mourn_inferior): Pass down target. Use
14127 remote_unpush_target.
14128 (remote_target::core_of_thread)
14129 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14130 (remote_target::pid_to_exec_file)
14131 (remote_target::thread_handle_to_thread_info): Pass down target.
14132 (remote_target::async_wait_fd): New.
14133 * riscv-fbsd-tdep.c: Include "inferior.h".
14134 (riscv_fbsd_get_thread_local_address): Pass down target.
14135 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14136 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14137 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14138 Adjust.
14139 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14140 * solib-svr4.c (enable_break): Pass down target.
14141 * spu-multiarch.c (parse_spufs_run): Pass down target.
14142 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14143 * target-delegates.c: Regenerate.
14144 * target.c (g_target_stack): Delete.
14145 (current_top_target): Return the current inferior's top target.
14146 (target_has_execution_1): Refer to the passed-in inferior's top
14147 target.
14148 (target_supports_terminal_ours): Check whether the initial
14149 inferior was already created.
14150 (decref_target): New.
14151 (target_stack::push): Incref/decref the target.
14152 (push_target, push_target, unpush_target): Adjust.
14153 (target_stack::unpush): Defref target.
14154 (target_is_pushed): Return bool. Adjust to refer to the current
14155 inferior's target stack.
14156 (dispose_inferior): Delete, and inline parts ...
14157 (target_preopen): ... here. Only dispose of the current inferior.
14158 (target_detach): Hold strong target reference while detaching.
14159 Pass target down.
14160 (target_thread_name): Add assertion.
14161 (target_resume): Pass down target.
14162 (target_ops::beneath, find_target_at): Adjust to refer to the
14163 current inferior's target stack.
14164 (get_dummy_target): New.
14165 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14166 has a thread running.
14167 (initialize_targets): Rename to ...
14168 (_initialize_target): ... this.
14169 * target.h: Include "gdbsupport/refcounted-object.h".
14170 (struct target_ops): Inherit refcounted_object.
14171 (target_ops::shortname, target_ops::longname): Make const.
14172 (target_ops::async_wait_fd): New method.
14173 (decref_target): Declare.
14174 (struct target_ops_ref_policy): New.
14175 (target_ops_ref): New typedef.
14176 (get_dummy_target): Declare function.
14177 (target_is_pushed): Return bool.
14178 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14179 (all_matching_threads_iterator::all_matching_threads_iterator):
14180 Handle filter target.
14181 * thread-iter.h (struct all_matching_threads_iterator, struct
14182 all_matching_threads_range, class all_non_exited_threads_range):
14183 Filter by target too. Remove explicit.
14184 * thread.c (threads_executing): Delete.
14185 (inferior_thread): Pass down current inferior.
14186 (clear_thread_inferior_resources): Pass down thread pointer
14187 instead of ptid_t.
14188 (add_thread_silent, add_thread_with_info, add_thread): Add
14189 process_stratum_target parameter. Use it for thread and inferior
14190 searches.
14191 (is_current_thread): New.
14192 (thread_info::deletable): Use it.
14193 (find_thread_ptid, thread_count, in_thread_list)
14194 (thread_change_ptid, set_resumed, set_running): New
14195 process_stratum_target parameter. Pass it down.
14196 (set_executing): New process_stratum_target parameter. Pass it
14197 down. Adjust reference to 'threads_executing'.
14198 (threads_are_executing): New process_stratum_target parameter.
14199 Adjust reference to 'threads_executing'.
14200 (set_stop_requested, finish_thread_state): New
14201 process_stratum_target parameter. Pass it down.
14202 (switch_to_thread): Also match inferior.
14203 (switch_to_thread): New process_stratum_target parameter. Pass it
14204 down.
14205 (update_threads_executing): Reimplement.
14206 * top.c (quit_force): Pop targets from all inferior.
14207 (gdb_init): Don't call initialize_targets.
14208 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14209 Declare.
14210 (windows_add_thread, windows_delete_thread): Adjust.
14211 (get_windows_debug_event): Rename to ...
14212 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14213 * tracefile-tfile.c (tfile_target_open): Pass down target.
14214 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14215 Forward declare.
14216 (switch_to_thread): Add process_stratum_target parameter.
14217 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14218 parameter. Use it.
14219 (mi_on_resume): Pass target down.
14220 * nat/fork-inferior.c (startup_inferior): Add
14221 process_stratum_target parameter. Pass it down.
14222 * nat/fork-inferior.h (startup_inferior): Add
14223 process_stratum_target parameter.
14224 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14225
75c6c844
PA
142262020-01-10 Pedro Alves <palves@redhat.com>
14227
14228 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14229 directly. Instead find the first thread in the thread list and
14230 use switch_to_thread.
14231
78f2c40a
PA
142322020-01-10 Pedro Alves <palves@redhat.com>
14233
14234 * remote.c (remote_target::remote_add_inferior): Don't bind a
14235 process to the current inferior if the current inferior is already
14236 bound to a process.
14237
e7af6c70
TBA
142382020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14239 Pedro Alves <palves@redhat.com>
14240
14241 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14242 If no process is specified, return null_ptid instead of
14243 inferior_ptid.
14244 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14245 TARGET_WAITKIND_SIGNALLED with no pid.
14246
31ba933e
PA
142472020-01-10 Pedro Alves <palves@redhat.com>
14248
14249 * remote.c (first_remote_resumed_thread): New.
14250 (remote_target::wait_as): Use it as default event_ptid instead of
14251 inferior_ptid.
14252
735fc2ca
PA
142532020-01-10 Pedro Alves <palves@redhat.com>
14254
14255 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14256
c17e02e1
PA
142572020-01-10 Pedro Alves <palves@redhat.com>
14258
14259 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14260 not -1.
14261
ab1ddbcf
PA
142622020-01-10 Pedro Alves <palves@redhat.com>
14263
14264 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14265 ptid to get_last_target_status.
14266 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14267 ptid to get_last_target_status.
14268 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14269 get_last_target_status.
14270 (info_program_command): Don't pass a target_waitstatus to
14271 get_last_target_status.
14272 * infrun.c (init_wait_for_inferior): Use
14273 nullify_last_target_wait_ptid.
14274 (get_last_target_status): Handle nullptr arguments.
14275 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14276 (print_stop_event): Don't pass a ptid to get_last_target_status.
14277 (normal_stop): Don't pass a ptid to get_last_target_status.
14278 * infrun.h (get_last_target_status, set_last_target_status): Move
14279 comments here and update.
14280 (nullify_last_target_wait_ptid): Declare.
14281 * linux-fork.c (fork_load_infrun_state): Remove local extern
14282 declaration of nullify_last_target_wait_ptid.
14283 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14284 to get_last_target_status.
14285
f3f8ece4
PA
142862020-01-10 Pedro Alves <palves@redhat.com>
14287
14288 * gdbthread.h (scoped_restore_current_thread)
14289 <dont_restore, restore, m_dont_restore>: Declare.
14290 * thread.c (thread_alive): Add assertion. Return bool.
14291 (switch_to_thread_if_alive): New.
14292 (prune_threads): Switch inferior/thread.
14293 (print_thread_info_1): Switch thread before calling target methods.
14294 (scoped_restore_current_thread::restore): New, factored out from
14295 ...
14296 (scoped_restore_current_thread::~scoped_restore_current_thread):
14297 ... this.
14298 (scoped_restore_current_thread::scoped_restore_current_thread):
14299 Add assertion.
14300 (thread_apply_all_command, thread_select): Use
14301 switch_to_thread_if_alive.
14302 * infrun.c (proceed, restart_threads, handle_signal_stop)
14303 (switch_back_to_stepped_thread): Switch current thread before
14304 calling target methods.
14305
db2d40f7
PA
143062020-01-10 Pedro Alves <palves@redhat.com>
14307
14308 * inferior.c (switch_to_inferior_no_thread): New function,
14309 factored out from ...
14310 (inferior_command): ... here.
14311 * inferior.h (switch_to_inferior_no_thread): Declare.
14312 * mi/mi-main.c (run_one_inferior): Use
14313 switch_to_inferior_no_thread.
14314
bd420a2d
PA
143152020-01-10 Pedro Alves <palves@redhat.com>
14316
14317 * infcmd.c (kill_command): Remove dead code.
14318
ddf5db90
PA
143192020-01-10 Pedro Alves <palves@redhat.com>
14320
14321 * remote.c (remote_target::mourn_inferior): No longer check
14322 whether the target is running.
14323
5018ce90
PA
143242020-01-10 Pedro Alves <palves@redhat.com>
14325
14326 * corelow.c (core_target::has_execution): Change parameter type to
14327 inferior pointer.
14328 * inferior.c (number_of_live_inferiors): Use
14329 inferior::has_execution instead of target_has_execution_1.
14330 * inferior.h (inferior::has_execution): New.
14331 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14332 inferior::has_execution instead of target_has_execution_1.
14333 * process-stratum-target.c
14334 (process_stratum_target::has_execution): Change parameter type to
14335 inferior pointer. Check the inferior's PID instead of
14336 inferior_ptid.
14337 * process-stratum-target.h
14338 (process_stratum_target::has_execution): Change parameter type to
14339 inferior pointer.
14340 * record-full.c (record_full_core_target::has_execution): Change
14341 parameter type to inferior pointer.
14342 * target.c (target_has_execution_1): Change parameter type to
14343 inferior pointer.
14344 (target_has_execution_current): Adjust.
14345 * target.h (target_ops::has_execution): Change parameter type to
14346 inferior pointer.
14347 (target_has_execution_1): Change parameter type to inferior
14348 pointer. Change return type to bool.
14349 * tracefile.h (tracefile_target::has_execution): Change parameter
14350 type to inferior pointer.
14351
74375d18
PA
143522020-01-10 Pedro Alves <palves@redhat.com>
14353
14354 * exceptions.c (print_flush): Remove current_top_target() check.
14355
acdf84a6
PA
143562020-01-10 Pedro Alves <palves@redhat.com>
14357
14358 * remote.c (show_remote_exec_file): Show the current inferior's
14359 exec-file instead of the command variable's value.
14360
ec506636
PA
143612020-01-10 Pedro Alves <palves@redhat.com>
14362
14363 * record-full.c (record_full_resume_ptid): New global.
14364 (record_full_target::resume): Set it.
14365 (record_full_wait_1): Use record_full_resume_ptid instead of
14366 inferior_ptid.
14367
873657b9
PA
143682020-01-10 Pedro Alves <palves@redhat.com>
14369
14370 * gdbthread.h (scoped_restore_current_thread)
14371 <dont_restore, restore, m_dont_restore>: Declare.
14372 * thread.c (thread_alive): Add assertion. Return bool.
14373 (switch_to_thread_if_alive): New.
14374 (prune_threads): Switch inferior/thread.
14375 (print_thread_info_1): Switch thread before calling target methods.
14376 (scoped_restore_current_thread::restore): New, factored out from
14377 ...
14378 (scoped_restore_current_thread::~scoped_restore_current_thread):
14379 ... this.
14380 (scoped_restore_current_thread::scoped_restore_current_thread):
14381 Add assertion.
14382 (thread_apply_all_command, thread_select): Use
14383 switch_to_thread_if_alive.
14384
7f0ae84c
GB
143852020-01-10 George Barrett <bob@bob131.so>
14386
14387 * stap-probe.c (stap_modify_semaphore): Don't check for null
14388 semaphores.
14389 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14390 for null semaphores.
14391
f5a7c406
AB
143922020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14393
14394 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14395 all source windows, and maintain horizontal scroll status while
14396 doing so.
14397
9ae6bf64
TT
143982020-01-09 Tom Tromey <tom@tromey.com>
14399
14400 PR tui/18932:
14401 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14402 update_source_window, not print_source_lines.
14403
b2efe70c
AB
144042020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14405
14406 * tui/tui.c (tui_enable): Register tui hooks after calling
14407 tui_display_main.
14408
5f23a082
CB
144092020-01-09 Christian Biesinger <cbiesinger@google.com>
14410
14411 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14412
3061113b
SM
144132020-01-08 Simon Marchi <simon.marchi@efficios.com>
14414
14415 * thread.c (print_thread_info_1): Fix indentation.
14416
57d75002
CB
144172020-01-09 Christian Biesinger <cbiesinger@google.com>
14418
14419 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14420 unique_xmalloc_ptr outside the if to always free the demangled name.
14421
6a053cb1
TT
144222020-01-08 Tom Tromey <tromey@adacore.com>
14423
14424 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14425 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14426 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14427 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14428 Remove.
14429 (section_offsets): New typedef.
14430 * symtab.c (fixup_section, get_msymbol_address): Update.
14431 * symmisc.c (dump_msymbols): Update.
14432 * symfile.h (relative_addr_info_to_section_offsets)
14433 (symfile_map_offsets_to_segments): Update.
14434 * symfile.c (build_section_addr_info_from_objfile)
14435 (init_objfile_sect_indices): Update.
14436 (struct place_section_arg): Change type of "offsets".
14437 (place_section): Update.
14438 (relative_addr_info_to_section_offsets): Change type of
14439 "section_offsets". Remove "num_sections" parameter.
14440 (default_symfile_offsets, syms_from_objfile_1)
14441 (set_objfile_default_section_offset): Update.
14442 (reread_symbols): No need to preserve section offsets by hand.
14443 (symfile_map_offsets_to_segments): Change type of "offsets".
14444 * stap-probe.c (relocate_address): Update.
14445 * stabsread.h (process_one_symbol): Update.
14446 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14447 (solib_target_relocate_section_addresses): Update.
14448 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14449 Update.
14450 * solib-frv.c (frv_relocate_main_executable): Update.
14451 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14452 * solib-aix.c (solib_aix_get_section_offsets): Change return
14453 type.
14454 (solib_aix_solib_create_inferior_hook): Update.
14455 * remote.c (remote_target::get_offsets): Update.
14456 * psymtab.c (find_pc_sect_psymtab): Update.
14457 * psympriv.h (struct partial_symbol) <address, text_low,
14458 text_high>: Update.
14459 * objfiles.h (obj_section_offset): Update.
14460 (struct objfile) <section_offsets>: Change type.
14461 <num_sections>: Remove.
14462 (objfile_relocate): Update.
14463 * objfiles.c (entry_point_address_query): Update
14464 (relocate_one_symbol): Change type of "section_offsets".
14465 (objfile_relocate1, objfile_relocate1): Change type of
14466 "new_offsets".
14467 (objfile_rebase1): Update.
14468 * mipsread.c (mipscoff_symfile_read): Update.
14469 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14470 parameter.
14471 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14472 (parse_external, psymtab_to_symtab_1): Update.
14473 * machoread.c (macho_symfile_offsets): Update.
14474 * ia64-tdep.c (ia64_find_unwind_table): Update.
14475 * hppa-tdep.c (read_unwind_info): Update.
14476 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14477 * dwarf2read.c (create_addrmap_from_index)
14478 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14479 (process_psymtab_comp_unit_reader, add_partial_symbol)
14480 (add_partial_subprogram, process_full_comp_unit)
14481 (read_file_scope, read_func_scope, read_lexical_block_scope)
14482 (read_call_site_scope, dwarf2_rnglists_process)
14483 (dwarf2_ranges_process, dwarf2_ranges_read)
14484 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14485 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14486 Update.
14487 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14488 Update.
14489 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14490 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14491 (process_one_symbol): Change type of "section_offsets".
14492 * ctfread.c (get_objfile_text_range): Update.
14493 * coffread.c (coff_symtab_read, enter_linenos)
14494 (process_coff_symbol): Update.
14495 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14496 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14497
456e800a
TT
144982020-01-08 Tom Tromey <tromey@adacore.com>
14499
14500 * dwarf2read.c (parse_macro_definition): Use std::string.
14501 (parse_macro_definition): Likewise.
14502
6dfa2fc2
TT
145032020-01-08 Tom Tromey <tromey@adacore.com>
14504
14505 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14506 (ATTR_ALLOC_CHUNK): Remove.
14507
421d1616
TT
145082020-01-08 Tom Tromey <tromey@adacore.com>
14509
14510 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14511
43816ebc
TT
145122020-01-08 Tom Tromey <tromey@adacore.com>
14513
14514 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14515 (dwarf2_compute_name, open_dwo_file): Likewise.
14516 (process_enumeration_scope): Use std::vector.
14517 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14518 (partial_die_info::fixup, dwarf2_start_subfile)
14519 (guess_full_die_structure_name, dwarf2_name): Likewise.
14520 (determine_prefix): Update.
14521 (guess_full_die_structure_name): Make return type const.
14522 (partial_die_full_name): Return unique_xmalloc_ptr.
14523 (DW_FIELD_ALLOC_CHUNK): Remove.
14524
4212d509
TT
145252020-01-07 Tom Tromey <tromey@adacore.com>
14526
14527 PR build/24937:
14528 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14529
06a6207a
JT
145302020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14531
14532 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14533
153d79c4
AB
145342020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14535
14536 * stack.c (print_frame_info): Move disassemble_next_line code
14537 inside source_print block.
14538
66182876
EZ
145392020-01-06 Eli Zaretskii <eliz@gnu.org>
14540
14541 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14542 gdb/signals.h, as we are now using native signal symbols.
14543
cbfa8581
SV
145442020-01-06 Shahab Vahedi <shahab@synopsys.com>
14545
14546 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14547 overflow by an early check of content vs threshold.
aac66a4c 14548 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
14549 Likewise.
14550
3f602821
EZ
145512020-01-06 Eli Zaretskii <eliz@gnu.org>
14552
14553 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14554
a08c904d
JT
145552020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14556
14557 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14558 export table if no section contains it's RVA.
14559
89a65580
EZ
145602020-01-06 Eli Zaretskii <eliz@gnu.org>
14561
14562 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14563
8b7fcda2
HD
145642020-01-06 Hannes Domani <ssbssa@yahoo.de>
14565
14566 * source.c (print_source_lines_base): Set last_line_listed.
14567
a61b4f69
SV
145682020-01-06 Shahab Vahedi <shahab@synopsys.com>
14569
14570 * tui/tui-disasm.c: Remove trailing spaces.
14571
559e7e50
EZ
145722020-01-06 Eli Zaretskii <eliz@gnu.org>
14573 Pedro Alves <palves@redhat.com>
14574
14575 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14576 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14577 (windows_gdb_signal_to_target): New function, uses the above
14578 enumeration to convert GDB internal signal codes to equivalent
14579 Windows codes.
14580 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14581 * windows-nat.c: Include "gdb_wait.h".
14582 (get_windows_debug_event): Extract the fatal exception from the
14583 exit status and convert to the equivalent Posix signal number.
14584 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14585 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14586 * gdbsupport/gdb_wait.c: New file, implements
14587 windows_status_to_termsig.
14588 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14589 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14590
f2302a34
AB
145912020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14592
14593 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14594 show_layout.
14595
6a5206eb
LM
145962020-01-05 Luis Machado <luis.machado@linaro.org>
14597
14598 * aarch64-linux-nat.c
14599 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14600 and bfd_mach_aarch64.
14601
6ec1d75e
PW
146022020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14603
14604 * ui-file.c (stdio_file::can_emit_style_escape)
14605 (tee_file::can_emit_style_escape): Ensure style is used also on
14606 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14607 to gdb_stdout.
14608 * main.c (set_gdb_data_directory): Use file style to output the
14609 warning that the given pathname is not a directory.
14610 * top.c (show_history_filename, gdb_safe_append_history)
14611 (show_gdb_datadir): Use file style.
14612
44f81a76
HD
146132020-01-03 Hannes Domani <ssbssa@yahoo.de>
14614
14615 * solib-target.c (struct lm_info_target):
14616 Change offsets to be a unique_xmalloc_ptr.
14617 (solib_target_relocate_section_addresses): Update.
14618
25057eb0
HD
146192020-01-03 Hannes Domani <ssbssa@yahoo.de>
14620
14621 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14622
6e2118f5
BE
146232020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14624
14625 * MAINTAINERS (Write After Approval): Add myself.
14626
8133c7dc
LM
146272020-01-02 Luis Machado <luis.machado@linaro.org>
14628
14629 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14630 Cell BE architecture.
14631 * target.h (struct target_ops) <thread_architecture>: Likewise.
14632
48189bec
HD
146332020-01-01 Hannes Domani <ssbssa@yahoo.de>
14634
14635 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14636
ead1063b
HD
146372020-01-01 Hannes Domani <ssbssa@yahoo.de>
14638
14639 * MAINTAINERS (Write After Approval): Add myself.
14640
e5d78223
JB
146412020-01-01 Joel Brobecker <brobecker@adacore.com>
14642
14643 * gdbarch.sh: Update copyright year range of generated files.
14644
b811d2c2
JB
146452020-01-01 Joel Brobecker <brobecker@adacore.com>
14646
14647 Update copyright year range in all GDB files.
14648
5f4def5c
JB
146492020-01-01 Joel Brobecker <brobecker@adacore.com>
14650
14651 * copyright.py: Convert to Python 3.
14652
51fd4002
JB
146532020-01-01 Joel Brobecker <brobecker@adacore.com>
14654
14655 * copyright.py: Adapt after move of gnulib directory from gdb
14656 directory to toplevel directory.
14657
5fb651f2
JB
146582020-01-01 Joel Brobecker <brobecker@adacore.com>
14659
14660 * copyright.py (main): Exit if run from the wrong directory.
14661
5dd8bf88
JB
146622020-01-01 Joel Brobecker <brobecker@adacore.com>
14663
14664 * top.c (print_gdb_version): Change copyright year to 2020.
14665
9f71dacb 146662020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14667
9f71dacb 14668 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14669
9f71dacb 14670For older changes see ChangeLog-2019.
c906108c
SS
14671\f
14672Local Variables:
14673mode: change-log
14674left-margin: 8
14675fill-column: 74
14676version-control: never
57da7796 14677coding: utf-8
c906108c 14678End:
This page took 3.204238 seconds and 4 git commands to generate.