]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Change how dwarf2_per_cu_data is deleted
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2021-05-17 Tom Tromey <tromey@adacore.com>
2
3 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
4 (dwarf2_per_cu_data_up): New typedef.
5 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
6 <all_comp_units>: Use dwarf2_per_cu_data_up.
7 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
8 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
9 (create_cu_from_index_list): Likewise.
10 (create_signatured_type_table_from_index)
11 (create_cus_from_debug_names_list, add_type_unit)
12 (read_comp_units_from_section): Update.
13 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
14 (run_test): Update.
15
16 2021-05-17 Tom Tromey <tom@tromey.com>
17
18 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
19 (sort_tu_by_abbrev_offset): Remove.
20 (build_type_psymtabs): Update.
21
22 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
23
24 * py-project.toml: New.
25 * gdb-gdb.py.in: Re-format.
26
27 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
28
29 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
30 New, use it.
31 * command.h (cmd_func_p): Remove.
32 * cli/cli-decode.c (cmd_func_p): Remove.
33
34 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
37
38 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
39
40 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
41 to...
42 <alias_target>: ... this.
43 (add_alias_cmd): Rename old to target.
44 (add_info_alias): Rename old_name to target_name.
45 (add_com_alias): Likewise.
46
47 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * Rename "prefixlist" parameters to "subcommands" throughout.
50 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
51 <subcommands>: ... this.
52 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
53 (lookup_cmd_with_subcommands): ... this.
54
55 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
56
57 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
58
59 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * cli/cli-decode.h (prefixname): Make const, move implementation
62 to cli/cli-decode.c.
63 * cli/cli-decode.c (cmd_list_element::prefixname): New.
64
65 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
66
67 * ctfread.c (new_symbol): Set function address.
68 (read_func_kind_type): Remove incorrect type name setting.
69 Don't copy name returned from ctf_type_ame_raw throughout file.
70
71 2021-05-14 Tom Tromey <tom@tromey.com>
72
73 * rust-lang.c (rust_language::val_print_struct)
74 (rust_language::print_enum): Use common_val_print, not
75 value_print_inner.
76
77 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
78
79 * python/py-inferior.c (infpy_get_connection_num): New function.
80 (inferior_object_getset): Add a new element for 'connection_num'.
81 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
82
83 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
84
85 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
86 argument type, update and re-wrap, header comment.
87 (remote_target::commit_resumed): Convert any_process_wildcard and
88 may_global_wildcard_vcont from int to bool.
89
90 2021-05-14 Kent Cheung <kent.cheung@arm.com>
91
92 * cp-valprint.c (cp_print_value): Replaced duplicate code.
93 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
94 just before printing child values.
95 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
96 printing string representation.
97 * python/py-prettyprint.c (print_children): Check max_depth just
98 before printing child values.
99 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
100 printing string representation.
101
102 2021-05-14 Mike Frysinger <vapier@gentoo.org>
103
104 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
105 sim/callback.h & sim/sim.h.
106
107 2021-05-13 Mike Frysinger <vapier@gentoo.org>
108
109 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
110 sim-regno.h include.
111
112 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
113
114 * inf-child.h (inf_child_target) <follow_exec>: New.
115 * inf-child.c (inf_child_target::follow_exec): New.
116
117 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
118
119 * target.h (struct target_ops) <follow_exec>: Add ptid_t
120 parameter.
121 (target_follow_exec): Likewise.
122 * target.c (target_follow_exec): Add ptid_t parameter.
123 * infrun.c (follow_exec): Adjust call to target_follow_exec,
124 don't push target nor create thread.
125 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
126 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
127 (thread_db_target::follow_exec): New.
128 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
129 (remote_target::follow_exec): Call
130 process_stratum_target::follow_exec.
131 * target-delegates.c: Re-generate.
132
133 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
134
135 * infrun.c (follow_exec): Call target_follow_fork when
136 follow-exec-mode is same.
137 * target.h (target_follow_fork): Improve doc.
138
139 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
140
141 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
142 Remove.
143 * cli/cli-setshow.c (do_show_command): Adjust.
144
145 2021-05-13 Luis Machado <luis.machado@linaro.org>
146
147 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
148 include the last address in the range.
149
150 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
151
152 * python/python-internal.h (gdbpy_parse_command_name): Return
153 gdb::unique_xmalloc_ptr.
154 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
155 (cmdpy_init): Adjust.
156 * python/py-param.c (parmpy_init): Adjust.
157 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
158 when done.
159
160 2021-05-12 George Barrett <bob@bob131.so>
161
162 * NEWS (Guile API): Note the addition of the new procedure.
163 * guile/scm-value.c (gdbscm_value_const_value): Add
164 implementation of value-const-value procedure.
165 (value_functions): Add value-const-value procedure.
166
167 2021-05-12 George Barrett <bob@bob131.so>
168
169 * NEWS (Guile API): Note the addition of new procedures.
170 * guile/scm-value.c (gdbscm_reference_value): Add helper function
171 for reference value creation.
172 (gdbscm_value_reference_value): Add implementation of
173 value-reference-value procedure.
174 (gdbscm_value_rvalue_reference_value): Add implementation of
175 value-rvalue-reference-value procedure.
176 (value_functions): Add value-reference-value procedure. Add
177 value-rvalue-reference-value procedure.
178
179 2021-05-12 George Barrett <bob@bob131.so>
180
181 * guile/scm-type.c (type_integer_constants): Add binding for
182 TYPE_CODE_RVALUE_REF.
183 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
184 dereferencing of rvalue references.
185 * NEWS (Guile API): Note improvements in rvalue reference support.
186
187 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
188
189 * btrace.c (handle_pt_insn_events): Ignore status update enable
190 events.
191
192 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
193
194 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
195 indentation.
196
197 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
198
199 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
200
201 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
202
203 PR gdb/27614
204 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
205 argument.
206
207 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
208
209 * nat/linux-waitpid.c (status_to_str): Show signal name.
210
211 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
212
213 * python/py-breakpoint.c (pybp_debug): New static global.
214 (show_pybp_debug): New function.
215 (pybp_debug_printf): Define.
216 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
217 (gdbpy_breakpoint_created): Add some debugging.
218 (gdbpy_breakpoint_deleted): Likewise.
219 (gdbpy_breakpoint_modified): Likewise.
220 (_initialize_py_breakpoint): New function.
221
222 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
223
224 * python/py-unwind.c (pyuw_debug): Convert to bool.
225 (show_pyuw_debug): New function.
226 (pyuw_debug_printf): Define.
227 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
228 (pyuw_this_id): Convert to new debug print macros.
229 (pyuw_prev_register): Likewise.
230 (pyuw_sniffer): Likewise.
231 (pyuw_dealloc_cache): Likewise.
232 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
233 show function when registering.
234
235 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
236
237 * dummy-frame.c (fprint_dummy_frames): Convert use of
238 fprint_frame_id to use frame_id::to_string.
239 * frame.c (fprint_field): Delete.
240 (fprint_frame_id): Moved to...
241 (frame_id::to_string): ...this, rewritten to return a string.
242 (fprint_frame): Convert use of fprint_frame_id to use
243 frame_id::to_string.
244 (compute_frame_id): Likewise.
245 (frame_id_p): Likewise.
246 (frame_id_eq): Likewise.
247 (frame_id_inner): Likewise.
248 * frame.h (struct frame_id) <to_string>: New member function.
249 (fprint_frame_id): Delete declaration.
250 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
251 fprint_frame_id to use frame_id::to_string.
252 * python/py-frame.c (frame_object_to_frame_info): Likewise.
253 * python/py-unwind.c (unwind_infopy_str): Likewise.
254 (pyuw_this_id): Likewise.
255
256 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
257
258 * nat/linux-waitpid.c (status_to_str): Return std::string.
259 * nat/linux-waitpid.h (status_to_str): Likewise.
260 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
261 (linux_nat_target::attach): Adjust.
262 (linux_handle_extended_wait): Adjust.
263 (wait_lwp): Adjust.
264 (stop_wait_callback): Adjust.
265 (linux_nat_filter_event): Adjust.
266 (linux_nat_wait_1): Adjust.
267 * nat/linux-waitpid.c (status_to_str): Adjust.
268 * nat/linux-waitpid.h (status_to_str): Adjust.
269
270 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
271
272 * infrun.h (infrun_debug_printf): Add missing space.
273
274 2021-05-08 Pedro Alves <pedro@palves.net>
275
276 * linux-nat.c (linux_nat_target::supports_disable_randomization):
277 Remove references to HAVE_PERSONALITY.
278 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
279 (maybe_disable_address_space_randomization)
280 (~maybe_disable_address_space_randomizatio): Remove references to
281 HAVE_PERSONALITY.
282 * config.in, configure: Regenerate.
283
284 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
285
286 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
287 include.
288 (source_script_with_search): Perform tilde expansion.
289
290 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
291
292 * target-descriptions.c (struct target_desc_info) <filename>:
293 Make std::string.
294 (copy_inferior_target_desc_info): Adjust.
295 (target_desc_info_free): Adjust.
296 (target_find_description): Adjust.
297 (set_tdesc_filename_cmd): Adjust.
298 (show_tdesc_filename_cmd): Adjust.
299 (unset_tdesc_filename_cmd): Adjust.
300 (maint_print_c_tdesc_cmd): Adjust.
301
302 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
303
304 * target-descriptions.c (struct target_desc_info): Initialize
305 fields.
306 (get_tdesc_info): Use new.
307 (target_desc_info_free): Use delete.
308
309 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
310
311 * target-descriptions.c (struct target_desc_info) <fetched>:
312 bool.
313 (target_find_description): Adjust.
314 (target_clear_description): Adjust.
315
316 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
317
318 * target-descriptions.c (struct target_desc_info) <tdesc>:
319 Adjust doc.
320 (target_desc_fetched): Remove.
321 (current_target_desc): Remove.
322 (target_description_filename): Remove.
323 (target_find_description): Adjust.
324 (target_clear_description): Adjust.
325 (target_current_description): Adjust.
326 (set_tdesc_filename_cmd): Adjust.
327 (show_tdesc_filename_cmd): Adjust.
328 (unset_tdesc_filename_cmd): Adjust.
329 (maint_print_c_tdesc_cmd): Adjust.
330 (maint_print_xml_tdesc_cmd): Adjust.
331
332 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
333
334 * infcmd.c (notice_new_inferior): Change parameter type.
335 * inferior.h (notice_new_inferior): Change parameter type.
336 * remote.c (remote_notice_new_inferior): Change parameter type to
337 bool. Also update type of local variable to bool.
338 (remote_target::update_thread_list): Change type of local variable
339 to bool.
340 (remote_target::process_stop_reply): Pass bool instead of int to
341 remote_notice_new_inferior.
342
343 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
344
345 * target.c (target_stack::unpush): Call target_ops::find_beneath
346 to get the target beneath `t`.
347
348 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
349
350 * target.c (target_close): Check in all inferiors that the
351 target is not pushed.
352
353 2021-05-07 Aaron Merey <amerey@redhat.com>
354
355 * debuginfod-support.c (debuginfod_init): Remove.
356 (get_debuginfod_client): New function.
357
358 2021-05-07 Tom Tromey <tom@tromey.com>
359
360 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
361 * utils.c (streq_hash): Remove.
362 * utils.h (streq_hash): Don't declare.
363 * completer.c (completion_tracker::discard_completions): Update
364 comment.
365 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
366
367 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
368
369 * Re-format all Python files using black.
370
371 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
372
373 * guile/guile-internal.h (gdbscm_safe_source_script): Change
374 function return type.
375 * guile/guile.c (gdbscm_source_script): Update to handle change in
376 gdbscm_safe_source_script.
377 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
378 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
379 type.
380
381 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
382
383 * inferior.h (class inferior) <args>: Change type to
384 unique_xmalloc_ptr.
385 * inferior.c (inferior::~inferior): Don't free args.
386 * infcmd.c (get_inferior_args): Adjust.
387 (set_inferior_args): Adjust.
388
389 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
390
391 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
392 breakpoint locations when the breakpoint actually has a location.
393
394 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
395
396 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
397 * mi/mi-cmds.c: Change the binding of "-break-condition" to
398 mi_cmd_break_condition.
399 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
400 * breakpoint.h (set_breakpoint_condition): Declare a new
401 overload.
402 * breakpoint.c (set_breakpoint_condition): New overloaded function
403 extracted out from ...
404 (condition_command): ... this.
405 * NEWS: Mention the change.
406
407 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
408
409 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
410 '--force-condition' flag to force the condition in the
411 '-break-insert' and '-dprintf-insert' commands.
412 * NEWS: Mention the change.
413
414 2021-05-04 Tom de Vries <tdevries@suse.de>
415
416 PR guile/27806
417 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
418 memory functions.
419
420 2021-04-30 Tom Tromey <tom@tromey.com>
421
422 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
423 (add_signatured_type_cu_to_table): Remove.
424 (create_debug_type_hash_table): Assume dwo_file is non-null.
425 (create_debug_types_hash_table): Update comment.
426 (create_all_type_units): Remove.
427 (sort_tu_by_abbrev_offset): Update comment.
428 (build_type_psymtabs): Rename from build_type_psymtabs_1.
429 (build_type_psymtabs): Remove.
430 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
431 Update.
432 (read_comp_units_from_section): Add types_htab, section_kind
433 parameters.
434 (create_all_comp_units): Read type units.
435
436 2021-04-30 Tom Tromey <tom@tromey.com>
437
438 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
439 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
440 <get_cu>: Now inline.
441 <all_type_units>: Remove.
442 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
443 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
444 (dwarf2_per_bfd::get_tu): Remove.
445 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
446 (create_signatured_type_table_from_index)
447 (create_signatured_type_table_from_debug_names)
448 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
449 (dwarf2_base_index_functions::expand_all_symtabs)
450 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
451 (dwarf2_base_index_functions::map_symbol_filenames)
452 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
453 (add_signatured_type_cu_to_table, create_all_type_units)
454 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
455 (create_all_comp_units): Update.
456 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
457 (write_debug_names): Update.
458
459 2021-04-30 Tom Tromey <tom@tromey.com>
460
461 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
462 allocate_signatured_type>: Change return type.
463 <all_comp_units, all_type_units>: Hold unique pointers.
464 (struct dwarf2_per_cu_data): Add constructor and initializers.
465 (struct signatured_type): Derive from dwarf2_per_cu_data.
466 * dwarf2/read.c (type_unit_group): Derive from
467 dwarf2_per_cu_data.
468 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
469 (dwarf2_per_bfd::get_tu)
470 (dwarf2_per_bfd::allocate_signatured_type)
471 (dwarf2_per_bfd::allocate_signatured_type)
472 (create_cu_from_index_list, create_cus_from_index_list)
473 (create_signatured_type_table_from_index)
474 (create_signatured_type_table_from_debug_names)
475 (create_addrmap_from_aranges)
476 (dwarf2_base_index_functions::find_last_source_symtab)
477 (dw_expand_symtabs_matching_file_matcher)
478 (dwarf2_gdb_index::expand_symtabs_matching)
479 (dwarf2_base_index_functions::map_symbol_filenames)
480 (create_cus_from_debug_names_list)
481 (dw2_debug_names_iterator::next)
482 (dwarf2_debug_names_index::expand_symtabs_matching)
483 (create_debug_type_hash_table, add_type_unit)
484 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
485 Update.
486 (allocate_type_unit_groups_table): Use delete.
487 (create_type_unit_group): Change return type. Use new.
488 (get_type_unit_group, build_type_psymtabs_1)
489 (build_type_psymtab_dependencies)
490 (process_skeletonless_type_unit, set_partial_user)
491 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
492 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
493 (read_signatured_type): Update.
494 (dwarf2_find_containing_comp_unit): Change type of
495 'all_comp_units'.
496 (run_test): Update.
497 (dwarf2_per_bfd::allocate_per_cu)
498 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
499 Use new.
500 (add_signatured_type_cu_to_table): Update.
501 * dwarf2/index-write.c (write_one_signatured_type)
502 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
503 (write_debug_names): Update.
504
505 2021-04-30 Tom Tromey <tromey@adacore.com>
506
507 * nat/windows-nat.h (get_image_name): Don't declare.
508 * nat/windows-nat.c (get_image_name): Now static.
509
510 2021-04-30 Tom Tromey <tromey@adacore.com>
511
512 * windows-nat.c (windows_nat::handle_load_dll): Update.
513 (windows_nat_target::get_windows_debug_event): Call
514 dll_loaded_event.
515 (windows_add_all_dlls, windows_add_dll): Move to
516 nat/windows-nat.c.
517 * nat/windows-nat.h (handle_load_dll): Change parameters.
518 (dll_loaded_event, windows_add_all_dlls): Declare.
519 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
520 from windows-nat.c.
521 (dll_loaded_event): New function.
522
523 2021-04-30 Tom Tromey <tromey@adacore.com>
524
525 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
526 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
527 Declare.
528 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
529 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
530
531 2021-04-30 Tom Tromey <tromey@adacore.com>
532
533 * windows-nat.c: Move code to nat/windows-nat.[ch].
534 (_initialize_windows_nat): Call initialize_loadable.
535 * nat/windows-nat.h (AdjustTokenPrivileges)
536 (DebugActiveProcessStop, DebugBreakProcess)
537 (DebugSetProcessKillOnExit, EnumProcessModules)
538 (EnumProcessModulesEx, GetModuleInformation)
539 (GetModuleFileNameExA, GetModuleFileNameExW)
540 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
541 (GetCurrentConsoleFont, Wow64SuspendThread)
542 (Wow64GetThreadContext, Wow64SetThreadContext)
543 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
544 (AdjustTokenPrivileges_ftype)
545 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
546 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
547 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
548 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
549 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
550 (GetConsoleFontSize_ftype)
551 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
552 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
553 (Wow64GetThreadSelectorEntry_ftype): Likewise.
554 (initialize_loadable): Declare.
555 * nat/windows-nat.c (AdjustTokenPrivileges)
556 (DebugActiveProcessStop, DebugBreakProcess)
557 (DebugSetProcessKillOnExit, EnumProcessModules)
558 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
559 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
560 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
561 (Wow64GetThreadContext, Wow64SetThreadContext)
562 (Wow64GetThreadSelectorEntry): Define.
563 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
564 from windows-nat.c.
565 (initialize_loadable): Likewise, and rename.
566
567 2021-04-30 Tom Tromey <tromey@adacore.com>
568
569 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
570 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
571 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
572 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
573 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
574 (bad): New template functions.
575 (_initialize_loadable): Update.
576
577 2021-04-30 Tom Tromey <tromey@adacore.com>
578
579 * ada-lang.c (ada_index_type): Use ada_check_typedef.
580
581 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
582
583 * auto-load.h: Split namespace declaration.
584
585 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
586
587 * infrun.c (save_waitstatus): Move variables to inner scope.
588
589 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
590
591 * NEWS: Fix typo and stray full stop.
592
593 2021-04-28 Tom Tromey <tromey@adacore.com>
594
595 * ada-exp.y (primary): Use new type for null pointer.
596 * ada-lang.c (ada_type_match): Remove "may_deref"
597 parameter. Handle null pointer.
598 (ada_args_match): Update.
599 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
600 Handle null pointer.
601
602 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
603
604 * NEWS: Mention new commands.
605 * python/python.c (python_ignore_environment): New static global.
606 (show_python_ignore_environment): New function.
607 (set_python_ignore_environment): New function.
608 (python_dont_write_bytecode): New static global.
609 (show_python_dont_write_bytecode): New function.
610 (set_python_dont_write_bytecode): New function.
611 (_initialize_python): Register new commands.
612
613 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
614
615 * extension-priv.h (struct extension_language_ops): Rename
616 'finish_initialization' to 'initialize'.
617 * extension.c (finish_ext_lang_initialization): Renamed to...
618 (ext_lang_initialization): ...this, update comment, and updated
619 the calls to reflect the change in struct extension_language_ops.
620 * extension.h (finish_ext_lang_initialization): Renamed to...
621 (ext_lang_initialization): ...this.
622 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
623 (gdbscm_initialize): ...this, update comment at definition.
624 (guile_extension_ops): Update.
625 * main.c (captured_main_1): Update call to
626 finish_ext_lang_initialization.
627 * python/python.c (gdbpy_finish_initialization): Rename to...
628 (gdbpy_initialize): ...this, update comment at definition, and
629 update call to do_finish_initialization.
630 (python_extension_ops): Update.
631 (do_finish_initialization): Rename to...
632 (do_initialize): ...this, and update comment.
633
634 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
635
636 * main.c (captured_main_1): Add a call to
637 finish_ext_lang_initialization.
638 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
639
640 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
641
642 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
643 (gdbscm_finish_initialization): Add code moved from
644 _initialize_guile.
645 (_initialize_guile): Move code to gdbscm_finish_initialization.
646 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
647 _initialize_scm_arch.
648 (_initialize_scm_arch): New function.
649 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
650 into _initialize_scm_block.
651 (_initialize_scm_block): New function.
652 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
653 into _initialize_scm_frame.
654 (_initialize_scm_frame): New function.
655 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
656 into _initialize_scm_objfile.
657 (_initialize_scm_objfile): New function.
658 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
659 code into _initialize_scm_progspace.
660 (_initialize_scm_progspace): New function.
661 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
662 into _initialize_scm_symbol.
663 (_initialize_scm_symbol): New function.
664 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
665 into _initialize_scm_symtab.
666 (_initialize_scm_symtab): New function.
667 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
668 _initialize_scm_type.
669 (_initialize_scm_type): New function.
670
671 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
672
673 * python/py-arch.c (_initialize_py_arch): New function.
674 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
675 * python/py-block.c (_initialize_py_block): New function.
676 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
677 * python/py-inferior.c (_initialize_py_inferior): New function.
678 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
679 * python/py-objfile.c (_initialize_py_objfile): New function.
680 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
681 * python/py-progspace.c (_initialize_py_progspace): New function.
682 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
683 * python/py-registers.c (_initialize_py_registers): New function.
684 (gdbpy_initialize_registers): Move code to
685 _initialize_py_registers.
686 * python/py-symbol.c (_initialize_py_symbol): New function.
687 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
688 * python/py-symtab.c (_initialize_py_symtab): New function.
689 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
690 * python/py-type.c (_initialize_py_type): New function.
691 (gdbpy_initialize_types): Move code to _initialize_py_type.
692 * python/py-unwind.c (_initialize_py_unwind): New function.
693 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
694 * python/python.c (_initialize_python): Move call to
695 do_start_initialization to gdbpy_finish_initialization.
696 (gdbpy_finish_initialization): Add call to
697 do_start_initialization.
698
699 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
700
701 * extension.c (struct scoped_default_signal): New struct.
702 (scoped_default_sigint): New typedef.
703 (finish_ext_lang_initialization): Make use of
704 scoped_default_sigint.
705
706 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
707
708 * main.c (captured_main_1): Don't pass argument to gdb_init.
709 * top.c (gdb_init): Remove unused argument, and add header
710 comment.
711 * top.h (gdb_init): Remove argument.
712
713 2021-04-27 Luis Machado <luis.machado@linaro.org>
714
715 * psymtab.c (psymbol_functions::dump): Output newline.
716 Remove wrap.
717 * symmisc.c (dump_objfile): Likewise.
718
719 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
720 Simon Marchi <simon.marchi@polymtl.ca>
721
722 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
723 when attaching the 'auto_load_new_objfile' observer, so
724 other observers can specify it as a dependency.
725 * gdb/auto-load.h (struct token): Declare
726 'auto_load_new_objfile_observer_token' as token to be used
727 for the 'auto_load_new_objfile' observer.
728 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
729 'python_new_objfile' observer depend on 'auto_load_new_objfile'
730 observer, so it gets notified after the latter.
731
732 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
733 Simon Marchi <simon.marchi@polymtl.ca>
734
735 * unittests/observable-selftests.c (dependency_test_counters):
736 New.
737 (observer_token0, observer_token1, observer_token2,
738 observer_token3, observer_token4, observer_token5): New.
739 (struct dependency_observer_data): New struct.
740 (observer_dependency_test_callback): New function.
741 (test_observers): New.
742 (run_dependency_test): New function.
743 (test_dependency): New.
744 (_initialize_observer_selftest): Register dependency test.
745
746 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
747
748 PR gdb/27773
749 * cli/cli-dump.c (dump_binary_file): Check result of
750 gdb_fopen_cloexec.
751
752 2021-04-25 Sergei Trofimovich <siarheit@google.com>
753
754 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
755 by passing `process_stratum_target*` parameter.
756
757 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
758
759 PR gdb/22640
760 * typeprint.h (struct type_print_options): Add print_in_hex
761 flag.
762 (struct print_offset_data): Add print_in_hex flag, add a
763 constructor accepting a type_print_options* argument.
764 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
765 default value for print_in_hex.
766 (print_offset_data::indentation): Allow more horizontal space.
767 (print_offset_data::print_offset_data): Add ctor.
768 (print_offset_data::maybe_print_hole, print_offset_data::update):
769 Handle the print_in_hex flag.
770 (whatis_exp): Handle 'x' and 'd' flags.
771 (print_offsets_and_sizes_in_hex): Declare.
772 (set_print_offsets_and_sizes_in_hex): Create.
773 (show_print_offsets_and_sizes_in_hex): Create.
774 (_initialize_typeprint): Update help message for the ptype
775 command, register the 'set print type hex' and 'show print type
776 hex' commands.
777 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
778 (c_type_print_base): Construct the print_offset_data
779 object using the type_print_optons parameter.
780 * rust-lang.c (rust_language::print_type): Construct the
781 print_offset_data object using the type_print_optons parameter.
782 * NEWS: Mention the new flags of the ptype command.
783
784 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
785
786 * typeprint.h (struct type_print_options): Move before
787 print_offset_data.
788
789 2021-04-25 Joel Brobecker <brobecker@adacore.com>
790
791 GDB 10.2 released.
792
793 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
794
795 * observable.c (observer_debug): Change to bool.
796
797 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
798
799 * dwarf2/read.c: Add 'unordered_set' include.
800 (dwarf2_base_index_functions::map_symbol_filenames): Replace
801 'visited' hash table with 'qfn_cache' unordered_set. Remove use
802 of per_Bfd->filenames_cache cache, and use function local
803 filenames_cache instead. Reindent.
804 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
805
806 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
807
808 * breakpoint.c (iterate_over_bp_locations): Change callback to
809 function view, remove data parameter.
810 * breakpoint.h (iterate_over_bp_locations): Likewise.
811 * record-full.c (record_full_sync_record_breakpoints): Remove
812 data parameter.
813
814 2021-04-22 Tom Tromey <tom@tromey.com>
815
816 * c-typeprint.c (c_type_print_base_struct_union): Use
817 print_spaces_filtered_with_print_options.
818
819 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
820
821 PR gdb/27757
822 * python/py-type.c (typy_range): Check that bounds are constant
823 before accessing them as such.
824 * guile/scm-type.c (gdbscm_type_range): Likewise.
825
826 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
827
828 * Makefile.in (COMMON_SFILES): Remove continuations.c.
829 * inferior.c (inferior::add_continuation): New method, adapted
830 from 'add_inferior_continuation'.
831 (inferior::do_all_continuations): New method, adapted from
832 'do_all_inferior_continuations'.
833 (inferior::~inferior): Clear the list of continuations directly.
834 * inferior.h (class inferior) <continuations>: Rename into...
835 <m_continuations>: ...this and make private.
836 * continuations.c: Remove.
837 * continuations.h: Remove.
838 * event-top.c: Don't include "continuations.h".
839
840 Update the users below.
841 * inf-loop.c (inferior_event_handler)
842 * infcmd.c (attach_command)
843 (notice_new_inferior): Update.
844
845 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
846
847 * inferior.h (class inferior) <continuations>: Change the type
848 to be an std::list of std::function's.
849 Update the references and uses below.
850 * continuations.c (struct continuation): Delete.
851 (make_continuation): Delete.
852 (do_my_continuations_1): Delete.
853 (do_my_continuations): Delete.
854 (discard_my_continuations_1): Delete.
855 (discard_my_continuations): Delete.
856 (add_inferior_continuation): Update.
857 (do_all_inferior_continuations): Update.
858 (discard_all_inferior_continuations): Update.
859 * continuations.h (add_inferior_continuation): Update to take
860 an std::function as the parameter.
861 * infcmd.c (struct attach_command_continuation_args): Delete.
862 (attach_command_continuation): Delete.
863 (attach_command_continuation_free_args): Delete.
864 (attach_command): Update.
865 (notice_new_inferior): Update.
866
867 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
868
869 * continuations.h: Update the general comment.
870 * inferior.h (class inferior) <continuations>: Update the comment.
871 * interps.c: Do not include "continuations.h".
872
873 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
874
875 * continuations.h (do_all_inferior_continuations): Remove the 'err'
876 parameter. Update the references below.
877 * continuations.c (do_my_continuations_1)
878 (do_my_continuations)
879 (do_all_inferior_continuations): Update.
880 * inf-loop.c (inferior_event_handler): Update.
881 * infcmd.c (attach_command_continuation): Update.
882
883 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
884
885 * infcmd.c (attach_post_wait): Update the function comment.
886
887 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
888
889 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
890 Update the references below.
891 (struct attach_command_continuation_args)
892 (attach_command_continuation)
893 (attach_command_continuation_free_args)
894 (attach_command)
895 (notice_new_inferior): Update to remove the reference to 'args'.
896
897 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
898 Tom de Vries <tdevries@suse.de>
899
900 PR remote/27710
901 * remote.c (remote_target_is_non_stop_p): New function.
902 * remote.h (remote_target_is_non_stop_p): Declare.
903 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
904 to check non-stopness using notif_state->remote rather current target.
905
906 2021-04-22 Tom Tromey <tom@tromey.com>
907
908 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
909 (struct typed_val_int) <val>: Now ULONGEST.
910 (rust_parser::parse_array_type): Remove negative check.
911 (rust_lex_int_test): Change 'value' to ULONGEST.
912
913 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
914
915 * arch-utils.c (default_addressable_memory_unit_size): Return a
916 value based on bfd's bits per byte.
917
918 2021-04-21 Tom Tromey <tom@tromey.com>
919
920 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
921 unsigned char.
922 (struct dwarf2_per_cu_data): Rearrange.
923 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
924 unsigned char.
925 (struct comp_unit_head): Rearrange.
926 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
927
928 2021-04-21 Tom de Vries <tdevries@suse.de>
929
930 PR build/27681
931 * configure.ac: Remove --without-included-regex/--with-included-regex.
932 * config.in: Regenerate.
933 * configure: Regenerate.
934 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
935
936 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
937
938 * breakpoint.h (create_breakpoint): Add a new parameter,
939 'force_condition'.
940 * breakpoint.c (create_breakpoint): Use the 'force_condition'
941 argument when 'parse_extra' is false to check if the condition
942 is invalid at all of the breakpoint locations.
943 Update the users below.
944 (break_command_1)
945 (dprintf_command)
946 (trace_command)
947 (ftrace_command)
948 (strace_command)
949 (create_tracepoint_from_upload): Update.
950 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
951 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
952 * python/py-breakpoint.c (bppy_init): Update.
953 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
954
955 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
956
957 * breakpoint.c (print_one_breakpoint_location): Display "N" for
958 disabled-by-condition locations on MI-like output.
959 (breakpoint_1): Do not display the disabled-by-condition footnote
960 if the output is MI-like.
961
962 2021-04-21 Frederic Cambus <fred@statdns.com>
963
964 * syscalls/update-netbsd.sh: Fix script name display in usage, and
965 update year range in generated copyright notices.
966
967 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
968
969 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
970 qualifier_seq_noopt.
971
972 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
973
974 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
975
976 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
977
978 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
979 (producer_is_icc): Replace use of std::regex with gdb's
980 compiled_regex.
981
982 2021-04-17 Tom Tromey <tom@tromey.com>
983
984 PR gdb/23743:
985 * dwarf2/read.c (class offset_view): New.
986 (struct symbol_table_slot): Remove.
987 (struct mapped_index) <symbol_table, constant_pool>: Change type.
988 <symbol_name_index, symbol_vec_index>: New methods.
989 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
990 Rewrite.
991 (read_gdb_index_from_buffer): Update.
992 (struct dw2_symtab_iterator) <vec>: Change type.
993 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
994 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
995 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
996 <append_array, append_offset>: New methods.
997 (write_hash_table, add_address_entry, write_gdbindex_1)
998 (write_debug_names): Update.
999 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1000
1001 2021-04-17 Tom Tromey <tom@tromey.com>
1002
1003 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1004 partial_symtabs.
1005
1006 2021-04-17 Tom Tromey <tom@tromey.com>
1007
1008 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1009 from map_matching_symbols. Change parameters.
1010 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1011 Rename from map_matching_symbols. Change parameters.
1012 * dwarf2/read.c (struct dwarf2_gdb_index)
1013 <expand_matching_symbols>: Rename from map_matching_symbols.
1014 Change parameters.
1015 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1016 Rename from map_matching_symbols. Change parameters.
1017 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1018 dw2_map_matching_symbols. Change parameters.
1019 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1020 implementation.
1021 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1022 map_matching_symbols. Change parameters.
1023 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1024 from map_matching_symbols. Change parameters.
1025 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1026 map_matching_symbols. Change parameters.
1027 * ada-lang.c (map_matching_symbols): New function.
1028 (add_nonlocal_symbols): Update.
1029
1030 2021-04-17 Tom Tromey <tom@tromey.com>
1031
1032 * quick-symbol.h (struct quick_symbol_functions)
1033 <expand_symtabs_with_fullname>: Remove.
1034 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1035 Remove.
1036 * psympriv.h (struct psymbol_functions)
1037 <expand_symtabs_with_fullname>: Remove.
1038 * dwarf2/read.c (struct dwarf2_base_index_functions)
1039 <expand_symtabs_with_fullname>: Remove.
1040 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1041 Remove.
1042 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1043 Update comment.
1044 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1045 Rewrite.
1046
1047 2021-04-17 Tom Tromey <tom@tromey.com>
1048
1049 * symfile-debug.c (objfile::expand_symtabs_for_function):
1050 Rewrite.
1051 * quick-symbol.h (struct quick_symbol_functions)
1052 <expand_symtabs_for_function>: Remove.
1053 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1054 Remove.
1055 * psympriv.h (struct psymbol_functions)
1056 <expand_symtabs_for_function>: Remove.
1057 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1058 Update comment.
1059 * dwarf2/read.c (struct dwarf2_gdb_index)
1060 <expand_symtabs_for_function>: Remove.
1061 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1062 Remove.
1063 (find_slot_in_mapped_hash): Remove.
1064 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1065 (dw2_symtab_iter_init): Remove one overload.
1066 (dwarf2_gdb_index::expand_symtabs_for_function)
1067 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1068
1069 2021-04-17 Tom Tromey <tom@tromey.com>
1070
1071 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1072 Rewrite.
1073 * quick-symbol.h (struct quick_symbol_functions)
1074 <map_symtabs_matching_filename>: Remove.
1075 * psymtab.c (partial_map_expand_apply)
1076 (psymbol_functions::map_symtabs_matching_filename): Remove.
1077 * psympriv.h (struct psymbol_functions)
1078 <map_symtabs_matching_filename>: Remove.
1079 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1080 Update comment.
1081 * dwarf2/read.c (struct dwarf2_base_index_functions)
1082 <map_symtabs_matching_filename>: Remove.
1083 (dw2_map_expand_apply)
1084 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1085 Remove.
1086
1087 2021-04-17 Tom Tromey <tom@tromey.com>
1088
1089 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1090 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1091 Remove.
1092 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1093 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1094 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1095 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1096 Remove.
1097 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1098 (dwarf2_gdb_index::lookup_symbol)
1099 (dwarf2_debug_names_index::lookup_symbol): Remove.
1100
1101 2021-04-17 Tom Tromey <tom@tromey.com>
1102
1103 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1104 * symmisc.c (maintenance_expand_symtabs): Update.
1105 * symfile.c (expand_symtabs_matching): Update.
1106 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1107 parameter.
1108 * quick-symbol.h (struct quick_symbol_functions)
1109 <expand_symtabs_matching>: Add 'domain' parameter.
1110 * psymtab.c (recursively_search_psymtabs)
1111 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1112 parameter.
1113 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1114 Add 'domain' parameter.
1115 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1116 'domain' parameter.
1117 * linespec.c (iterate_over_all_matching_symtabs): Update.
1118 * dwarf2/read.c (struct dwarf2_gdb_index)
1119 <expand_symtabs_matching>: Add 'domain' parameter.
1120 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1121 'domain' parameter.
1122 (dw2_expand_symtabs_matching)
1123 (dwarf2_gdb_index::expand_symtabs_matching)
1124 (dw2_debug_names_iterator)
1125 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1126 parameter.
1127
1128 2021-04-17 Tom Tromey <tom@tromey.com>
1129
1130 * symtab.c (global_symbol_searcher::expand_symtabs)
1131 (default_collect_symbol_completion_matches_break_on): Update.
1132 * symmisc.c (maintenance_expand_symtabs): Update.
1133 * symfile.h (expand_symtabs_matching): Add search_flags
1134 parameter.
1135 * symfile.c (expand_symtabs_matching): Add search_flags
1136 parameter.
1137 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1138 search_flags parameter.
1139 * quick-symbol.h (struct quick_symbol_functions)
1140 <expand_symtabs_matching>: Add search_flags parameter.
1141 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1142 * psymtab.c (recursively_search_psymtabs)
1143 (psymbol_functions::expand_symtabs_matching): Add search_flags
1144 parameter.
1145 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1146 Add search_flags parameter.
1147 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1148 search_flags parameter.
1149 * linespec.c (iterate_over_all_matching_symtabs): Update.
1150 * dwarf2/read.c (struct dwarf2_gdb_index)
1151 <expand_symtabs_matching>: Add search_flags parameter.
1152 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1153 search_flags parameter.
1154 (dw2_map_matching_symbols): Update.
1155 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1156 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1157 parameter.
1158 (dw2_debug_names_iterator): Change block_index to search flags.
1159 <m_block_index>: Likewise.
1160 (dw2_debug_names_iterator::next)
1161 (dwarf2_debug_names_index::lookup_symbol)
1162 (dwarf2_debug_names_index::expand_symtabs_for_function)
1163 (dwarf2_debug_names_index::map_matching_symbols)
1164 (dwarf2_debug_names_index::map_matching_symbols): Update.
1165 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1166 search_flags parameter.
1167 * ada-lang.c (ada_add_global_exceptions)
1168 (collect_symbol_completion_matches): Update.
1169
1170 2021-04-17 Tom Tromey <tom@tromey.com>
1171
1172 * symtab.c (default_collect_symbol_completion_matches_break_on):
1173 Update.
1174 * symfile.h (expand_symtabs_matching): Return bool.
1175 * symfile.c (expand_symtabs_matching): Return bool.
1176 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1177 bool.
1178 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1179 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1180 bool.
1181 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1182 bool.
1183 * psympriv.h (struct psymbol_functions)
1184 <expand_symtabs_matching>: Return bool.
1185 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1186 bool.
1187 * dwarf2/read.c (struct dwarf2_gdb_index)
1188 <expand_symtabs_matching>: Return bool.
1189 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1190 Return bool.
1191 (dw2_expand_symtabs_matching_symbol): Return bool.
1192 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1193 (dw2_expand_symtabs_matching)
1194 (dwarf2_gdb_index::expand_symtabs_matching)
1195 (dwarf2_debug_names_index::expand_symtabs_matching)
1196 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1197
1198 2021-04-17 Tom Tromey <tom@tromey.com>
1199
1200 * quick-symbol.h (enum block_search_flag_values): New.
1201 (block_search_flags): New enum flags type.
1202
1203 2021-04-16 Tom Tromey <tom@tromey.com>
1204
1205 * rust-parse.c: New file.
1206 * rust-exp.y: Remove.
1207 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1208 (SFILES): Remove rust-exp.y.
1209 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1210
1211 2021-04-16 Luis Machado <luis.machado@linaro.org>
1212
1213 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1214
1215 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1216
1217 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1218 use throughout file.
1219
1220 2021-04-15 Tom Tromey <tromey@adacore.com>
1221
1222 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1223 arrays.
1224
1225 2021-04-15 Tom Tromey <tromey@adacore.com>
1226
1227 * printcmd.c (print_variable_and_value): Use
1228 common_val_print_checked.
1229
1230 2021-04-15 Tom Tromey <tromey@adacore.com>
1231
1232 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1233 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1234 Update.
1235 * p-exp.y (variable): Update.
1236 * m2-exp.y (variable): Update.
1237 * go-exp.y (variable): Update.
1238 * expprint.c (dump_for_expression): New overload.
1239 * expop.h (check_objfile): New overload.
1240 (check_constant): New overload.
1241 (class var_value_operation): Use block_symbol.
1242 <get_symbol>: Rewrite.
1243 * eval.c (var_value_operation::evaluate)
1244 (var_value_operation::evaluate_funcall)
1245 (var_value_operation::evaluate_for_address)
1246 (var_value_operation::evaluate_for_address)
1247 (var_value_operation::evaluate_with_coercion)
1248 (var_value_operation::evaluate_for_sizeof)
1249 (var_value_operation::evaluate_for_cast): Update.
1250 * d-exp.y (PrimaryExpression): Update.
1251 * c-exp.y (variable): Update.
1252 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1253 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1254 (ada_var_value_operation::evaluate)
1255 (ada_var_value_operation::resolve)
1256 (ada_funcall_operation::resolve): Update.
1257 * ada-exp.y (write_var_from_sym, write_object_renaming)
1258 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1259 (maybe_overload): Update.
1260 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1261
1262 2021-04-15 Tom Tromey <tom@tromey.com>
1263 Andrew Burgess <andrew.burgess@embecosm.com>
1264
1265 * NEWS: Add entry.
1266 * main.c (captured_main_1): Call check_quiet_mode.
1267 * top.c (startup_quiet): New global.
1268 (check_quiet_mode): New function.
1269 (show_startup_quiet): New function.
1270 (init_main): Register new command.
1271 * top.h (check_quiet_mode): Declare.
1272
1273 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1274
1275 PR cli/25956
1276 * NEWS: Mention new early init files and command line options.
1277 * config.in: Regenerate.
1278 * configure: Regenerate.
1279 * configure.ac: Define GDBEARLYINIT.
1280 * main.c (get_earlyinit_files): New function.
1281 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1282 CMDARG_EARLYINIT_COMMAND.
1283 (captured_main_1): Add support for new command line flags, and for
1284 processing startup files.
1285 (print_gdb_help): Include startup files in the output.
1286
1287 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1288
1289 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1290 (relocate_file_path_maybe_in_datadir): ...this.
1291 (class gdb_initfile_finder): New class.
1292 (get_init_files): Now uses gdb_initfile_finder.
1293 (print_gdb_help): Print 'None found' when there are no init files.
1294
1295 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1296
1297 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1298 corresponding child of the abstract DIE when iterating the
1299 children of the concrete DIE.
1300
1301 2021-04-13 Tom de Vries <tdevries@suse.de>
1302
1303 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1304 type to regoff_t *.
1305
1306 2021-04-13 Luis Machado <luis.machado@linaro.org>
1307
1308 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1309 hex values.
1310
1311 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1312
1313 * rs6000-tdep.c: Add support for single-stepping of
1314 prefixed instructions.
1315
1316 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1317
1318 PR gdb/27525
1319 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1320 handle the addpcis/lnia instruction.
1321
1322 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1323
1324 * MAINTAINERS (Write After Approval): Add myself.
1325
1326 2021-4-12 Carl Love <cel@us.ibm.com>
1327
1328 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1329 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1330 float128.
1331
1332 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1333
1334 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1335 * nat/windows-nat.h: Likewise.
1336
1337 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1338
1339 * windows-nat.c (windows_nat::handle_load_dll): Call
1340 windows_add_dll if get_image_name failed to glean the name of the
1341 DLL by using the lpImageName pointer.
1342 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1343 (windows_add_dll): Now does what windows_add_all_dlls did before,
1344 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1345 specifies the address where the DLL was loaded into the inferior,
1346 and looks for the single DLL loaded at that address.
1347
1348 2021-04-09 Luis Machado <luis.machado@linaro.org>
1349
1350 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1351
1352 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1353
1354 * darwin-nat.c (darwin_nat_target::resume): Remove status
1355 variable.
1356
1357 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1358
1359 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1360 prologue end for Intel compilers.
1361 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1362 * producer.c (producer_is_icc_ge_19): New function.
1363 * producer.h (producer_is_icc_ge_19): New declaration.
1364
1365 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1366
1367 * producer.c: (producer_is_icc): Update for new version scheme.
1368 (producer_parsing_tests): Update names and expected results.
1369 * producer.h: (producer_is_icc): Update comment accordingly.
1370
1371 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1372
1373 * target.h (struct target_ops) <follow_fork>: Return void.
1374 (target_follow_fork): Likewise.
1375 * target.c (default_follow_fork): Likewise.
1376 (target_follow_fork): Likewise.
1377 * infrun.c (follow_fork_inferior): Adjust.
1378 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1379 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1380 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1381 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1382 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1383 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1384 * remote.c (class remote_target) <follow_fork>: Likewise.
1385 (remote_target::follow_fork): Likewise.
1386 * target-delegates.c: Re-generate.
1387
1388 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1389
1390 * ctfread.c (fetch_tid_type): New function, use throughout file.
1391 (read_forward_type): New function.
1392 (read_type_record): Call read_forward_type.
1393
1394 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1395
1396 * f-exp.h (class fortran_structop_operation): New class.
1397 * f-exp.y (exp): Create fortran_structop_operation instead of the
1398 generic structop_operation.
1399 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1400 expression as EVAL_NORMAL if the result type was dynamic so we can
1401 extract the actual array bounds.
1402 (fortran_structop_operation::evaluate): New function.
1403
1404 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1405
1406 * eval.c (evaluate_subexp_standard): Remove
1407 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1408 STRUCTOP_PTR.
1409
1410 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1411
1412 * valops.c (value_cast): Call value_deeply_equal before performing
1413 any cast.
1414
1415 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1416
1417 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1418 the function.
1419
1420 2021-04-07 Caroline Tice <cmtice@google.com>
1421
1422 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1423 the search paths used resolve relative location of .dwo file.
1424
1425 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1426
1427 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1428 assert.
1429 (dwarf2_section_info::get_file_name): Add an assert.
1430 (dwarf2_section_info::read_string): Display a minimal, sane error
1431 when the dwarf2_section_info is not associated with a bfd section.
1432
1433 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1434
1435 * top.c (staged_gdb_datadir): Update comment.
1436 (set_gdb_datadir): Copy the value of gdb_datadir back into
1437 staged_datadir.
1438 (init_main): Initialise staged_gdb_datadir.
1439
1440 2021-04-06 Tom de Vries <tdevries@suse.de>
1441
1442 PR breakpoints/25884
1443 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1444 stepping range.
1445
1446 2021-04-06 Tom de Vries <tdevries@suse.de>
1447
1448 PR tui/27680
1449 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1450 to style.parse.
1451
1452 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1453
1454 * avr-tdep.c (avr_frame_unwind_cache): Use
1455 trad_frame_saved_reg::is_addr.
1456
1457 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1458
1459 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1460 adjust callers.
1461
1462 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1463
1464 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1465 objfile parameter for objfile_per_bfd_storage, adjust callers.
1466 (struct standard_psymtab) <standard_psymtab>: Likewise.
1467 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1468 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1469 * ctfread.c (struct ctf_psymtab): Likewise.
1470 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1471 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1472 (dwarf2_create_include_psymtab): Likewise.
1473 * objfiles.h (struct objfile_per_bfd_storage)
1474 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1475 <get_bfd>: New method.
1476 <m_bfd>: New field.
1477 * objfiles.c (get_objfile_bfd_data): Adjust.
1478
1479 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1480
1481 * psymtab.c (partial_symtab::partial_symtab): Change
1482 last_objfile_name to be an std::string.
1483 * symfile.c (allocate_symtab): Likewise.
1484
1485 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1486
1487 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1488 methods.
1489 (struct objfile) <intern>: Use
1490 objfile::objfile_per_bfd_storage::intern.
1491
1492 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1493
1494 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1495 with type::is_flag_enum.
1496
1497 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1498
1499 * gdbtypes.h (struct type) <is_flag_enum,
1500 set_is_flag_enum>: New methods.
1501 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1502 write call sites to use type::set_is_flag_enum.
1503
1504 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1505
1506 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1507 with type::is_declared_class.
1508
1509 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1510
1511 * gdbtypes.h (struct type) <is_declared_class,
1512 set_is_declared_class>: New methods.
1513 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1514 write call sites to use type::set_is_declared_class.
1515
1516 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1517
1518 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1519 to avoid deprecation warnings.
1520
1521 2021-04-01 Martin Liska <mliska@suse.cz>
1522
1523 * cp-name-parser.y: Use startswith instead of strncmp.
1524 * m2-exp.y: Likewise.
1525 * macroexp.c (substitute_args): Likewise.
1526 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1527 * rust-exp.y: Likewise.
1528
1529 2021-03-31 Tom Tromey <tom@tromey.com>
1530
1531 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1532 with dw2_map_matching_symbols.
1533 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1534 dw2_expand_symtabs_matching.
1535
1536 2021-03-31 Tom Tromey <tromey@adacore.com>
1537
1538 * dwarf2/stringify.h: Fix typo.
1539
1540 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1541
1542 PR gdb/27541
1543 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1544 with objfiles using READNOW.
1545
1546 2021-03-29 Tom Tromey <tromey@adacore.com>
1547
1548 * top.c (check_frame_language_change): Update.
1549 * language.c (language_info): Remove parameter.
1550 * language.h (language_info): Remove parameter.
1551
1552 2021-03-29 Luis Machado <luis.machado@linaro.org>
1553
1554 * compile/compile.c (get_args): Don't add empty argv entries.
1555
1556 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1557
1558 gdb:
1559 * procfs.c (procfs_target::attach): Define inf.
1560 Use it.
1561 (procfs_target::create_inferior): Likewise.
1562
1563 2021-03-28 Tom Tromey <tom@tromey.com>
1564
1565 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1566 (elf_symfile_read): Simplify.
1567 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1568 (make_lazy_dwarf_reader): New function.
1569 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1570 (dwarf2_initialize_objfile): Return void. Remove index_kind
1571 parameter. Push on 'qf' list.
1572 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1573 type. Remove 'index_kind' parameter.
1574 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1575
1576 2021-03-27 Tom Tromey <tom@tromey.com>
1577
1578 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1579
1580 2021-03-27 Tom Tromey <tom@tromey.com>
1581
1582 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1583
1584 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1585
1586 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1587 rid of 'local'.
1588
1589 2021-03-26 Tom Tromey <tom@tromey.com>
1590
1591 * symtab.c (struct output_source_filename_data): Add 'output'
1592 method and operator().
1593 (output_source_filename_data::output): Rename from
1594 output_source_filename.
1595 (output_partial_symbol_filename): Remove.
1596 (info_sources_command): Update.
1597 (struct add_partial_filename_data): Add operator().
1598 (add_partial_filename_data::operator()): Rename from
1599 maybe_add_partial_symtab_filename.
1600 (make_source_files_completion_list): Update.
1601 * symfile.c (quick_symbol_functions): Update.
1602 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1603 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1604 'need_fullname'. Remove 'data' parameter.
1605 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1606 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1607 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1608 Change type of 'fun' and 'need_fullname'. Remove 'data'
1609 parameter.
1610 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1611 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1612 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1613 parameter.
1614 (mi_cmd_file_list_exec_source_files): Update.
1615 * dwarf2/read.c
1616 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1617
1618 2021-03-26 Tom Tromey <tom@tromey.com>
1619
1620 * ada-lang.c (struct match_data): Add operator().
1621 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1622 (callback): Remove 'callback'.
1623
1624 2021-03-26 Tom Tromey <tom@tromey.com>
1625
1626 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1627 call make_ignore_params once.
1628
1629 2021-03-26 Tom Tromey <tom@tromey.com>
1630
1631 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1632 "user" check.
1633
1634 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1635 Pedro Alves <pedro@palves.net>
1636
1637 * async-event.c: Include "infrun.h".
1638 (async_event_handler_marked): New.
1639 * async-event.h (async_event_handler_marked): Declare.
1640 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1641 inferior before calling target method. Don't commit-resumed if
1642 target_has_pending_events is true.
1643 * remote.c (remote_target::has_pending_events): New.
1644 * target-delegates.c: Regenerate.
1645 * target.c (target_has_pending_events): New.
1646 * target.h (target_ops::has_pending_events): New target method.
1647 (target_has_pending_events): New.
1648
1649 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1650 Pedro Alves <pedro@palves.net>
1651
1652 * infcmd.c (run_command_1, attach_command, detach_command)
1653 (interrupt_target_1): Use scoped_disable_commit_resumed.
1654 * infrun.c (do_target_resume): Remove
1655 target_commit_resume call.
1656 (commit_resume_all_targets): Remove.
1657 (maybe_set_commit_resumed_all_targets): New.
1658 (maybe_call_commit_resumed_all_targets): New.
1659 (enable_commit_resumed): New.
1660 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1661 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1662 (scoped_disable_commit_resumed::reset)
1663 (scoped_disable_commit_resumed::reset_and_commit)
1664 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1665 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1666 New.
1667 (proceed): Use scoped_disable_commit_resumed and
1668 maybe_call_commit_resumed_all_targets.
1669 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1670 * infrun.h (struct scoped_disable_commit_resumed): New.
1671 (maybe_call_commit_resumed_all_process_targets): New.
1672 (struct scoped_enable_commit_resumed): New.
1673 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1674 * process-stratum-target.h (class process_stratum_target):
1675 <commit_resumed_state>: New.
1676 * record-full.c (record_full_wait_1): Change commit_resumed_state
1677 around calling commit_resumed.
1678 * remote.c (class remote_target) <commit_resume>: Rename to...
1679 <commit_resumed>: ... this.
1680 (struct stop_reply): Move up.
1681 (remote_target::commit_resume): Rename to...
1682 (remote_target::commit_resumed): ... this. Check if there is any
1683 thread pending vCont resume.
1684 (remote_target::remote_stop_ns): Generate stop replies for resumed
1685 but pending vCont threads.
1686 (remote_target::wait_ns): Add gdb_assert.
1687 * target-delegates.c: Regenerate.
1688 * target.c (target_wait, target_resume): Assert that the current
1689 process_stratum target isn't in commit-resumed state.
1690 (defer_target_commit_resume): Remove.
1691 (target_commit_resume): Remove.
1692 (target_commit_resumed): New.
1693 (make_scoped_defer_target_commit_resume): Remove.
1694 (target_stop): Assert that the current process_stratum target
1695 isn't in commit-resumed state.
1696 * target.h (struct target_ops) <commit_resume>: Rename to ...
1697 <commit_resumed>: ... this.
1698 (target_commit_resume): Remove.
1699 (target_commit_resumed): New.
1700 (make_scoped_defer_target_commit_resume): Remove.
1701 * top.c (wait_sync_command_done): Use
1702 scoped_enable_commit_resumed.
1703
1704 2021-03-26 Pedro Alves <pedro@palves.net>
1705
1706 * target.c (target_always_non_stop_p): Also check whether the
1707 target can async.
1708
1709 2021-03-26 Tom Tromey <tom@tromey.com>
1710
1711 * dwarf2/read.c (dwarf2_read_debug_names)
1712 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1713 (dw2_debug_names_iterator::next, create_type_unit_group):
1714 Simplify.
1715
1716 2021-03-25 Pedro Alves <pedro@palves.net>
1717
1718 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1719 around setting the breakpoint.
1720
1721 2021-03-25 Pedro Alves <pedro@palves.net>
1722
1723 * remote.c
1724 (remote_target::check_pending_events_prevent_wildcard_vcont):
1725 Check whether the event's ptid is not null_ptid before looking up
1726 the corresponding inferior.
1727
1728 2021-03-24 Changbin Du <changbin.du@gmail.com>
1729
1730 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1731 read_code.
1732
1733 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1734
1735 * target.h (current_top_target): Remove, make callers use the
1736 current inferior instead.
1737 * target.c (current_top_target): Remove.
1738
1739 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1740
1741 * target.h (target_shortname): Change to function declaration.
1742 (target_longname): Likewise.
1743 (target_attach_no_wait): Likewise.
1744 (target_post_attach): Likewise.
1745 (target_prepare_to_store): Likewise.
1746 (target_supports_enable_disable_tracepoint): Likewise.
1747 (target_supports_string_tracing): Likewise.
1748 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1749 (target_supports_dumpcore): Likewise.
1750 (target_dumpcore): Likewise.
1751 (target_can_run_breakpoint_commands): Likewise.
1752 (target_files_info): Likewise.
1753 (target_post_startup_inferior): Likewise.
1754 (target_insert_fork_catchpoint): Likewise.
1755 (target_remove_fork_catchpoint): Likewise.
1756 (target_insert_vfork_catchpoint): Likewise.
1757 (target_remove_vfork_catchpoint): Likewise.
1758 (target_insert_exec_catchpoint): Likewise.
1759 (target_remove_exec_catchpoint): Likewise.
1760 (target_set_syscall_catchpoint): Likewise.
1761 (target_rcmd): Likewise.
1762 (target_can_lock_scheduler): Likewise.
1763 (target_can_async_p): Likewise.
1764 (target_is_async_p): Likewise.
1765 (target_execution_direction): Likewise.
1766 (target_extra_thread_info): Likewise.
1767 (target_pid_to_exec_file): Likewise.
1768 (target_thread_architecture): Likewise.
1769 (target_find_memory_regions): Likewise.
1770 (target_make_corefile_notes): Likewise.
1771 (target_get_bookmark): Likewise.
1772 (target_goto_bookmark): Likewise.
1773 (target_stopped_by_watchpoint): Likewise.
1774 (target_stopped_by_sw_breakpoint): Likewise.
1775 (target_supports_stopped_by_sw_breakpoint): Likewise.
1776 (target_stopped_by_hw_breakpoint): Likewise.
1777 (target_supports_stopped_by_hw_breakpoint): Likewise.
1778 (target_have_steppable_watchpoint): Likewise.
1779 (target_can_use_hardware_watchpoint): Likewise.
1780 (target_region_ok_for_hw_watchpoint): Likewise.
1781 (target_can_do_single_step): Likewise.
1782 (target_insert_watchpoint): Likewise.
1783 (target_remove_watchpoint): Likewise.
1784 (target_insert_hw_breakpoint): Likewise.
1785 (target_remove_hw_breakpoint): Likewise.
1786 (target_can_accel_watchpoint_condition): Likewise.
1787 (target_can_execute_reverse): Likewise.
1788 (target_get_ada_task_ptid): Likewise.
1789 (target_filesystem_is_local): Likewise.
1790 (target_trace_init): Likewise.
1791 (target_download_tracepoint): Likewise.
1792 (target_can_download_tracepoint): Likewise.
1793 (target_download_trace_state_variable): Likewise.
1794 (target_enable_tracepoint): Likewise.
1795 (target_disable_tracepoint): Likewise.
1796 (target_trace_start): Likewise.
1797 (target_trace_set_readonly_regions): Likewise.
1798 (target_get_trace_status): Likewise.
1799 (target_get_tracepoint_status): Likewise.
1800 (target_trace_stop): Likewise.
1801 (target_trace_find): Likewise.
1802 (target_get_trace_state_variable_value): Likewise.
1803 (target_save_trace_data): Likewise.
1804 (target_upload_tracepoints): Likewise.
1805 (target_upload_trace_state_variables): Likewise.
1806 (target_get_raw_trace_data): Likewise.
1807 (target_get_min_fast_tracepoint_insn_len): Likewise.
1808 (target_set_disconnected_tracing): Likewise.
1809 (target_set_circular_trace_buffer): Likewise.
1810 (target_set_trace_buffer_size): Likewise.
1811 (target_set_trace_notes): Likewise.
1812 (target_get_tib_address): Likewise.
1813 (target_set_permissions): Likewise.
1814 (target_static_tracepoint_marker_at): Likewise.
1815 (target_static_tracepoint_markers_by_strid): Likewise.
1816 (target_traceframe_info): Likewise.
1817 (target_use_agent): Likewise.
1818 (target_can_use_agent): Likewise.
1819 (target_augmented_libraries_svr4_read): Likewise.
1820 (target_log_command): Likewise.
1821 * target.c (target_shortname): New.
1822 (target_longname): New.
1823 (target_attach_no_wait): New.
1824 (target_post_attach): New.
1825 (target_prepare_to_store): New.
1826 (target_supports_enable_disable_tracepoint): New.
1827 (target_supports_string_tracing): New.
1828 (target_supports_evaluation_of_breakpoint_conditions): New.
1829 (target_supports_dumpcore): New.
1830 (target_dumpcore): New.
1831 (target_can_run_breakpoint_commands): New.
1832 (target_files_info): New.
1833 (target_post_startup_inferior): New.
1834 (target_insert_fork_catchpoint): New.
1835 (target_remove_fork_catchpoint): New.
1836 (target_insert_vfork_catchpoint): New.
1837 (target_remove_vfork_catchpoint): New.
1838 (target_insert_exec_catchpoint): New.
1839 (target_remove_exec_catchpoint): New.
1840 (target_set_syscall_catchpoint): New.
1841 (target_rcmd): New.
1842 (target_can_lock_scheduler): New.
1843 (target_can_async_p): New.
1844 (target_is_async_p): New.
1845 (target_execution_direction): New.
1846 (target_extra_thread_info): New.
1847 (target_pid_to_exec_file): New.
1848 (target_thread_architecture): New.
1849 (target_find_memory_regions): New.
1850 (target_make_corefile_notes): New.
1851 (target_get_bookmark): New.
1852 (target_goto_bookmark): New.
1853 (target_stopped_by_watchpoint): New.
1854 (target_stopped_by_sw_breakpoint): New.
1855 (target_supports_stopped_by_sw_breakpoint): New.
1856 (target_stopped_by_hw_breakpoint): New.
1857 (target_supports_stopped_by_hw_breakpoint): New.
1858 (target_have_steppable_watchpoint): New.
1859 (target_can_use_hardware_watchpoint): New.
1860 (target_region_ok_for_hw_watchpoint): New.
1861 (target_can_do_single_step): New.
1862 (target_insert_watchpoint): New.
1863 (target_remove_watchpoint): New.
1864 (target_insert_hw_breakpoint): New.
1865 (target_remove_hw_breakpoint): New.
1866 (target_can_accel_watchpoint_condition): New.
1867 (target_can_execute_reverse): New.
1868 (target_get_ada_task_ptid): New.
1869 (target_filesystem_is_local): New.
1870 (target_trace_init): New.
1871 (target_download_tracepoint): New.
1872 (target_can_download_tracepoint): New.
1873 (target_download_trace_state_variable): New.
1874 (target_enable_tracepoint): New.
1875 (target_disable_tracepoint): New.
1876 (target_trace_start): New.
1877 (target_trace_set_readonly_regions): New.
1878 (target_get_trace_status): New.
1879 (target_get_tracepoint_status): New.
1880 (target_trace_stop): New.
1881 (target_trace_find): New.
1882 (target_get_trace_state_variable_value): New.
1883 (target_save_trace_data): New.
1884 (target_upload_tracepoints): New.
1885 (target_upload_trace_state_variables): New.
1886 (target_get_raw_trace_data): New.
1887 (target_get_min_fast_tracepoint_insn_len): New.
1888 (target_set_disconnected_tracing): New.
1889 (target_set_circular_trace_buffer): New.
1890 (target_set_trace_buffer_size): New.
1891 (target_set_trace_notes): New.
1892 (target_get_tib_address): New.
1893 (target_set_permissions): New.
1894 (target_static_tracepoint_marker_at): New.
1895 (target_static_tracepoint_markers_by_strid): New.
1896 (target_traceframe_info): New.
1897 (target_use_agent): New.
1898 (target_can_use_agent): New.
1899 (target_augmented_libraries_svr4_read): New.
1900 (target_log_command): New.
1901 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1902 * infrun.c (set_schedlock_func): Adjust.
1903 * mi/mi-main.c (exec_reverse_continue): Adjust.
1904 * reverse.c (exec_reverse_once): Adjust.
1905 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1906 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1907 * remote-sim.c (gdbsim_target::detach): Adjust.
1908 (gdbsim_target::files_info): Adjust.
1909
1910 2021-03-24 Tom Tromey <tom@tromey.com>
1911
1912 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1913 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1914 (check_match, dw2_expand_symtabs_matching)
1915 (dwarf2_debug_names_index::map_matching_symbols)
1916 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1917
1918 2021-03-24 Keith Seitz <keiths@redhat.com>
1919
1920 * compile/compile-cplus-types.c
1921 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1922 thinko.
1923
1924 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1925
1926 * gdbarch.sh (gdbarch_data_registry): Make static.
1927 * gdbarch.c: Re-generate.
1928
1929 2021-03-24 Luis Machado <luis.machado@linaro.org>
1930
1931 * NEWS: Mention memory tagging changes.
1932
1933 2021-03-24 Luis Machado <luis.machado@linaro.org>
1934
1935 * printcmd.c (decode_format): Handle the 'm' modifier.
1936 (do_examine): Display allocation tags when required/supported.
1937 (should_validate_memtags): New function.
1938 (print_command_1): Display memory tag mismatches.
1939 * valprint.c (show_memory_tag_violations): New function.
1940 (value_print_option_defs): Add new option "memory-tag-violations".
1941 (user_print_options) <memory_tag_violations>: Initialize to 1.
1942 * valprint.h (struct format_data) <print_tags>: New field.
1943 (value_print_options) <memory_tag_violations>: New field.
1944
1945 2021-03-24 Luis Machado <luis.machado@linaro.org>
1946
1947 * printcmd.c: Include gdbsupport/rsp-low.h.
1948 (memory_tag_list): New static global.
1949 (process_print_command_args): Factored out of
1950 print_command_1.
1951 (print_command_1): Use process_print_command_args.
1952 (show_addr_not_tagged, show_memory_tagging_unsupported)
1953 (memory_tag_command, memory_tag_print_tag_command)
1954 (memory_tag_print_logical_tag_command)
1955 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1956 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1957 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1958 functions.
1959 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1960
1961 2021-03-24 Luis Machado <luis.machado@linaro.org>
1962
1963 * aarch64-linux-tdep.c
1964 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1965 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1966
1967 2021-03-24 Luis Machado <luis.machado@linaro.org>
1968
1969 * aarch64-linux-tdep.c
1970 (aarch64_linux_report_signal_info): New function.
1971 (aarch64_linux_init_abi): Register
1972 aarch64_linux_report_signal_info as the report_signal_info hook.
1973 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1974 (SEGV_MTESERR): Define.
1975
1976 2021-03-24 Luis Machado <luis.machado@linaro.org>
1977
1978 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1979 (aarch64_linux_ltag_tests): New function.
1980 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1981
1982 2021-03-24 Luis Machado <luis.machado@linaro.org>
1983
1984 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1985 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1986 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1987 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1988 functions.
1989 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1990 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1991 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1992 (aarch64_linux_get_ltag): New functions.
1993 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1994 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1995 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1996 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1997
1998 2021-03-24 Luis Machado <luis.machado@linaro.org>
1999
2000 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2001 bit.
2002 (struct smaps_data): New struct.
2003 (decode_vmflags): Handle the 'mt' flag.
2004 (parse_smaps_data): New function, refactored from
2005 linux_find_memory_regions_full.
2006 (linux_address_in_memtag_page): New function.
2007 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2008 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2009
2010 2021-03-24 Luis Machado <luis.machado@linaro.org>
2011
2012 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2013 instead of char arrays.
2014
2015 2021-03-24 Luis Machado <luis.machado@linaro.org>
2016
2017 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2018 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2019 nat/aarch64-mte-linux-ptrace.h.
2020 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2021 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2022 override.
2023 <fetch_memtags>: New method override.
2024 <store_memtags>: New method override.
2025 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2026 (aarch64_linux_nat_target::fetch_memtags): New method.
2027 (aarch64_linux_nat_target::store_memtags): New method.
2028 * arch/aarch64-mte-linux.c: New file.
2029 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2030 (AARCH64_MTE_GRANULE_SIZE): Define.
2031 (aarch64_memtag_type): New enum.
2032 (aarch64_mte_get_tag_granules): New prototype.
2033 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2034 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2035 * nat/aarch64-mte-linux-ptrace.c: New file.
2036 * nat/aarch64-mte-linux-ptrace.h: New file.
2037
2038 2021-03-24 Luis Machado <luis.machado@linaro.org>
2039
2040 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2041 * nat/aarch64-mte-linux-ptrace.h: New file.
2042
2043 2021-03-24 Luis Machado <luis.machado@linaro.org>
2044
2045 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2046 (store_mteregs_to_thread): New function.
2047 (aarch64_linux_nat_target::fetch_registers): Update to call
2048 fetch_mteregs_from_thread.
2049 (aarch64_linux_nat_target::store_registers): Update to call
2050 store_mteregs_to_thread.
2051 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2052 (aarch64_cannot_store_register): Handle MTE registers.
2053 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2054 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2055 <has_mte>: New method.
2056 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2057
2058 2021-03-24 Luis Machado <luis.machado@linaro.org>
2059
2060 * aarch64-linux-nat.c
2061 (aarch64_linux_nat_target::read_description): Take MTE flag into
2062 account.
2063 Slight refactor to hwcap flag checking.
2064 * aarch64-linux-tdep.c
2065 (aarch64_linux_core_read_description): Likewise.
2066 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2067 MTE.
2068 (aarch64_read_description): Add mte_p parameter and update to use it.
2069 Update the documentation.
2070 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2071 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2072 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2073 (aarch64_create_target_description): Add mte_p parameter and update
2074 the code to use it.
2075 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2076 parameter.
2077 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2078 * features/aarch64-mte.c: New file, generated.
2079 * features/aarch64-mte.xml: New file.
2080
2081 2021-03-24 Luis Machado <luis.machado@linaro.org>
2082
2083 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2084 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2085 * aarch64-linux-tdep.c: Likewise
2086 * arch/aarch64-mte-linux.h: New file.
2087
2088 2021-03-24 Luis Machado <luis.machado@linaro.org>
2089
2090 * remote: Include gdbsupport/selftest.h.
2091 (test_memory_tagging_functions): New function.
2092 (_initialize_remote): Register test_memory_tagging_functions.
2093
2094 2021-03-24 Luis Machado <luis.machado@linaro.org>
2095
2096 * remote.c (PACKET_memory_tagging_feature): New enum.
2097 (remote_memory_tagging_p): New function.
2098 (remote_protocol_features): New "memory-tagging" entry.
2099 (remote_target::remote_query_supported): Handle memory tagging
2100 support.
2101 (remote_target::supports_memory_tagging): Implement.
2102 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2103 (create_store_memtags_request): New functions.
2104 (remote_target::fetch_memtags): Implement.
2105 (remote_target::store_memtags): Implement.
2106 (_initialize_remote): Add new "memory-tagging-feature"
2107 config command.
2108
2109 2021-03-24 Luis Machado <luis.machado@linaro.org>
2110
2111 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2112 (default_memtag_matches_p, default_set_memtags)
2113 (default_get_memtag): New functions.
2114 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2115 (default_memtag_matches_p, default_set_memtags)
2116 (default_get_memtag): New prototypes.
2117 * gdbarch.c: Regenerate.
2118 * gdbarch.h: Regenerate.
2119 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2120 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2121 (enum memtag_type): New enum.
2122
2123 2021-03-24 Luis Machado <luis.machado@linaro.org>
2124
2125 * remote.c (remote_target) <supports_memory_tagging>: New method
2126 override.
2127 <fetch_memtags>: New method override.
2128 <store_memtags>: New method override.
2129 (remote_target::supports_memory_tagging): New method.
2130 (remote_target::fetch_memtags): New method.
2131 (remote_target::store_memtags): New method.
2132 * target-delegates.c: Regenerate.
2133 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2134 method.
2135 <fetch_memtags>: New virtual method.
2136 <store_memtags>: New virtual method.
2137 (target_supports_memory_tagging): Define.
2138 (target_fetch_memtags): Define.
2139 (target_store_memtags): Define.
2140 * target-debug.h (target_debug_print_size_t)
2141 (target_debug_print_const_gdb_byte_vector_r)
2142 (target_debug_print_gdb_byte_vector_r): New functions.
2143
2144 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2145
2146 * target.h (target_longname): Remove.
2147
2148 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2149
2150 * target.h (target_is_pushed): Remove, update callers to use
2151 inferior::target_is_pushed instead.
2152 * target.c (target_is_pushed): Remove.
2153
2154 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2155
2156 * target.h (push_target): Remove, update callers to use
2157 inferior::push_target.
2158 * target.c (push_target): Remove.
2159 * inferior.h (class inferior) <push_target>: New overload.
2160
2161 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2162
2163 * target.h (unpush_target): Remove, update all callers
2164 to use `inferior::unpush_target` instead.
2165 (struct target_unpusher) <operator()>: Just declare.
2166 * target.c (unpush_target): Remove.
2167 (target_unpusher::operator()): New.
2168
2169 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2172 error.
2173 (process_full_comp_unit): Validate the top-level tag before
2174 processing the first DIE.
2175 (read_func_scope): Ensure we have a valid builder.
2176
2177 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2178
2179 * objc-lang.c (objc_demangle): Renamed to
2180 objc_language::demangle_symbol, and moved later in the file.
2181 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2182 member function.
2183 (objc_language::demangle_symbol): Defined outside of class
2184 declaration. The definition is the old objc_demangle with NULL
2185 changed to nullptr, and if conditions relating to nullptr pointers
2186 or null character checks made explicit.
2187 * objc-lang.h (objc_demangle): Delete declaration.
2188
2189 2021-03-22 Martin Liska <mliska@suse.cz>
2190
2191 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2192 (_initialize_arm_tdep): Likewise.
2193
2194 2021-03-20 Tom Tromey <tom@tromey.com>
2195
2196 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2197 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2198 * psymtab.h (make_psymbol_functions): Don't declare.
2199 * psymtab.c (make_psymbol_functions): Remove.
2200 (maintenance_print_psymbols): Update.
2201 * psympriv.h (struct psymbol_functions): Add no-argument
2202 constructor.
2203 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2204 <partial_symtabs>: Remove.
2205 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2206 * elfread.c (read_partial_symbols): Update.
2207 (elf_symfile_read): Remove check for existing partial symbols.
2208 Don't clear "qf".
2209 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2210 partial symbols.
2211 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2212 partial symtabs.
2213 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2214 parameter.
2215 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2216 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2217
2218 2021-03-20 Tom Tromey <tom@tromey.com>
2219
2220 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2221 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2222 * symfile-debug.c (objfile::has_partial_symbols)
2223 (objfile::find_last_source_symtab)
2224 (objfile::forget_cached_source_info)
2225 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2226 (objfile::print_stats, objfile::dump)
2227 (objfile::expand_symtabs_for_function)
2228 (objfile::expand_all_symtabs)
2229 (objfile::expand_symtabs_with_fullname)
2230 (objfile::map_matching_symbols)
2231 (objfile::expand_symtabs_matching)
2232 (objfile::find_pc_sect_compunit_symtab)
2233 (objfile::map_symbol_filenames)
2234 (objfile::find_compunit_symtab_by_address)
2235 (objfile::lookup_global_symbol_language)
2236 (objfile::require_partial_symbols): Update.
2237 * psymtab.c (maintenance_print_psymbols)
2238 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2239 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2240 * objfiles.c (objfile_relocate1): Update.
2241 * elfread.c (elf_symfile_read): Update.
2242
2243 2021-03-20 Tom Tromey <tom@tromey.com>
2244
2245 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2246
2247 2021-03-20 Tom Tromey <tom@tromey.com>
2248
2249 * psymtab.c (psymbol_functions::count_psyms): Rename.
2250 (psymbol_functions::print_stats): Update.
2251 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2252 method.
2253
2254 2021-03-20 Tom Tromey <tom@tromey.com>
2255
2256 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2257 (psymbol_functions::find_pc_sect_psymtab): Rename.
2258 (psymbol_functions::find_pc_sect_compunit_symtab)
2259 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2260 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2261 Declare new method.
2262 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2263
2264 2021-03-20 Tom Tromey <tom@tromey.com>
2265
2266 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2267 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2268 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2269 parameter.
2270 (add_psymbol_to_bcache): Remove.
2271 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2272 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2273 Likewise.
2274 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2275 <add_psymbol>: Likewise.
2276 (standard_psymtab, legacy_psymtab): Likewise.
2277 * mdebugread.c (parse_partial_symbols): Update.
2278 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2279 (handle_psymbol_enumerators): Update.
2280 (new_psymtab): Add partial_symtabs parameter.
2281 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2282 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2283 parameter.
2284 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2285 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2286 Update.
2287 * dbxread.c (read_dbx_symtab): Update.
2288 (start_psymtab): Add partial_symtabs parameter.
2289 (dbx_end_psymtab): Update.
2290 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2291 (ctf_psymtab): Add partial_symtabs parameter.
2292 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2293 Update.
2294 (scan_partial_symbols): Add partial_symtabs parameter.
2295 (scan_partial_symbols, elfctf_build_psymtabs)
2296 (ctf_psymtab_add_enums): Update.
2297
2298 2021-03-20 Tom Tromey <tom@tromey.com>
2299
2300 * symfile.c (read_symbols): Use objfile method.
2301 * symfile-debug.c (objfile::require_partial_symbols): New method.
2302 * psymtab.h (require_partial_symbols): Don't declare.
2303 * psymtab.c (require_partial_symbols): Use objfile method. Now
2304 static.
2305 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2306 (psymbol_functions::lookup_symbol)
2307 (psymbol_functions::lookup_global_symbol_language)
2308 (psymbol_functions::find_last_source_symtab)
2309 (psymbol_functions::forget_cached_source_info)
2310 (psymbol_functions::print_stats)
2311 (psymbol_functions::expand_symtabs_for_function)
2312 (psymbol_functions::expand_all_symtabs)
2313 (psymbol_functions::expand_symtabs_with_fullname)
2314 (psymbol_functions::map_symbol_filenames)
2315 (psymbol_functions::map_matching_symbols)
2316 (psymbol_functions::expand_symtabs_matching)
2317 (psymbol_functions::find_compunit_symtab_by_address)
2318 (maintenance_print_psymbols, maintenance_info_psymtabs)
2319 (maintenance_check_psymtabs): Update.
2320 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2321 new method.
2322
2323 2021-03-20 Tom Tromey <tom@tromey.com>
2324
2325 * xcoffread.c (xcoff_sym_fns): Update.
2326 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2327 * symfile-debug.c (objfile::has_partial_symbols): Use
2328 can_lazily_read_symbols.
2329 (debug_sym_read_psymbols): Remove.
2330 (debug_sym_fns, install_symfile_debug_logging): Update.
2331 * quick-symbol.h (struct quick_symbol_functions)
2332 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2333 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2334 * mipsread.c (ecoff_sym_fns): Update.
2335 * machoread.c (macho_sym_fns): Update.
2336 * elfread.c (struct lazy_dwarf_reader): New.
2337 (elf_symfile_read): Update.
2338 (read_psyms): Now a method of lazy_dwarf_reader.
2339 (elf_sym_fns): Update.
2340 (elf_sym_fns_lazy_psyms): Remove.
2341 * dbxread.c (aout_sym_fns): Update.
2342 * coffread.c (coff_sym_fns): Update.
2343
2344 2021-03-20 Tom Tromey <tom@tromey.com>
2345
2346 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2347 (reread_symbols): Move reset_psymtabs call later.
2348 * objfiles.c (objfile::objfile): Don't initialize
2349 partial_symtabs.
2350
2351 2021-03-20 Tom Tromey <tom@tromey.com>
2352
2353 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2354 set_partial_symtabs.
2355 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2356 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2357 parameter.
2358 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2359 parameter.
2360 (psymbol_functions::find_pc_sect_compunit_symtab)
2361 (psymbol_functions::print_stats, psymbol_functions::dump)
2362 (psymbol_functions::has_symbols): Update.
2363 (make_psymbol_functions, dump_psymtab_addrmap): Add
2364 partial_symtabs parameter.
2365 (maintenance_print_psymbols): Update.
2366 (psymbol_functions::expand_symtabs_matching): Update.
2367 * psympriv.h (struct psymbol_functions): Add constructor.
2368 <m_partial_symtabs>: New member.
2369 <set_partial_symtabs>: New method.
2370
2371 2021-03-20 Tom Tromey <tom@tromey.com>
2372
2373 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2374 parameter.
2375 (process_psymtab_comp_unit_reader)
2376 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2377 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2378 Reference psymtabs via per_bfd.
2379
2380 2021-03-20 Tom Tromey <tom@tromey.com>
2381
2382 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2383 Remove.
2384 (add_address_entry): Remove objfile parameter.
2385 (add_address_entry_worker): Update.
2386 (write_address_map): Replace objfile parameter with per_bfd.
2387 (write_gdbindex, write_psymtabs_to_index): Update.
2388
2389 2021-03-20 Tom Tromey <tom@tromey.com>
2390
2391 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2392 print_bcache parameter.
2393 * symfile-debug.c (objfile::print_stats): Add print_bcache
2394 parameter.
2395 * quick-symbol.h (struct quick_symbol_functions)
2396 <print_stats>: Add print_bcache parameter.
2397 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2398 code to psymtab.c.
2399 (print_objfile_statistics): Move psymtab code to psymtab.c.
2400 * psymtab.c (count_psyms): Move from symmisc.c.
2401 (psymbol_functions::print_stats): Print partial symbol and bcache
2402 statistics. Add print_bcache parameter.
2403 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2404 (struct objfile) <print_stats>: Add print_bcache parameter.
2405 * maint.c (maintenance_print_statistics): Update.
2406
2407 2021-03-20 Tom Tromey <tom@tromey.com>
2408
2409 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2410 member.
2411 * dwarf2/read.c (create_addrmap_from_index)
2412 (create_addrmap_from_aranges): Set per_bfd addrmap.
2413 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2414 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2415 per_bfd addrmap.
2416 (dwarf2_read_debug_names): Don't set partial_symtabs.
2417 (dwarf2_initialize_objfile): Likewise.
2418
2419 2021-03-20 Tom Tromey <tom@tromey.com>
2420
2421 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2422 earlier.
2423
2424 2021-03-20 Tom Tromey <tom@tromey.com>
2425
2426 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2427 (~psymtab_discarder, keep): Update.
2428 <m_objfile>: Remove.
2429 <m_partial_symtabs>: New member.
2430 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2431
2432 2021-03-20 Tom Tromey <tom@tromey.com>
2433
2434 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2435 (xcoff_end_psymtab): Update.
2436 (scan_xcoff_symtab): Add partial_symtabs parameter.
2437 (xcoff_initial_scan): Update.
2438 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2439 * mdebugread.c (mdebug_build_psymtabs): Update.
2440 (parse_partial_symbols): Add partial_symtabs parameter.
2441 * dbxread.c (dbx_symfile_read): Update.
2442 (read_dbx_symtab): Add partial_symtabs parameter.
2443 (read_dbx_symtab): Update.
2444 (dbx_end_psymtab): Add partial_symtabs parameter.
2445
2446 2021-03-20 Tom Tromey <tom@tromey.com>
2447
2448 * quick-symbol.h (struct quick_symbol_functions)
2449 <relocated>: New method.
2450 * psymtab.h (struct psymbol_functions) <relocated>: New
2451 method.
2452 <fill_psymbol_map>: Declare method.
2453 <m_psymbol_map>: New member.
2454 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2455 (psymbol_functions::find_compunit_symtab_by_address): Update.
2456 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2457 (struct objfile) <psymbol_map>: Remove.
2458 * objfiles.c (objfile_relocate1): Update.
2459
2460 2021-03-20 Tom Tromey <tom@tromey.com>
2461
2462 * psympriv.h (struct psymbol_functions): New.
2463 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2464 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2465 (objfile::lookup_global_symbol_language): Update.
2466 * quick-symbol.h (struct quick_symbol_functions): Convert function
2467 pointers to methods. Add virtual destructor.
2468 (quick_symbol_functions_up): New typedef.
2469 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2470 (dwarf2_debug_names_functions): Don't declare.
2471 (make_psymbol_functions): Declare.
2472 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2473 (psymbol_functions::find_pc_sect_compunit_symtab)
2474 (psymbol_functions::lookup_symbol)
2475 (psymbol_functions::lookup_global_symbol_language)
2476 (psymbol_functions::find_last_source_symtab)
2477 (psymbol_functions::forget_cached_source_info)
2478 (psymbol_functions::print_stats, psymbol_functions::dump)
2479 (psymbol_functions::expand_symtabs_for_function)
2480 (psymbol_functions::expand_all_symtabs)
2481 (psymbol_functions::expand_symtabs_with_fullname)
2482 (psymbol_functions::map_symbol_filenames)
2483 (psymbol_functions::map_matching_symbols)
2484 (psymbol_functions::expand_symtabs_matching)
2485 (psymbol_functions::has_symbols)
2486 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2487 (psym_functions): Remove.
2488 (make_psymbol_functions): New function.
2489 * objfiles.h (struct objfile) <qf>: Change type.
2490 * elfread.c (elf_symfile_read): Update.
2491 * dwarf2/read.c (struct dwarf2_base_index_functions)
2492 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2493 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2494 (dwarf2_base_index_functions::find_last_source_symtab)
2495 (dwarf2_base_index_functions::forget_cached_source_info)
2496 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2497 (dwarf2_gdb_index::lookup_symbol)
2498 (dwarf2_base_index_functions::print_stats)
2499 (dwarf2_gdb_index::dump)
2500 (dwarf2_gdb_index::expand_symtabs_for_function)
2501 (dwarf2_base_index_functions::expand_all_symtabs)
2502 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2503 Rename.
2504 (dwarf2_gdb_index::map_matching_symbols): New method.
2505 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2506 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2507 (dwarf2_base_index_functions::map_symbol_filenames)
2508 (dwarf2_base_index_functions::has_symbols): Rename.
2509 (dwarf2_gdb_index_functions): Remove.
2510 (dwarf2_debug_names_index::lookup_symbol)
2511 (dwarf2_debug_names_index::dump)
2512 (dwarf2_debug_names_index::expand_symtabs_for_function)
2513 (dwarf2_debug_names_index::map_matching_symbols)
2514 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2515 (dwarf2_debug_names_functions): Remove.
2516 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2517 Declare.
2518
2519 2021-03-20 Tom Tromey <tom@tromey.com>
2520
2521 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2522 null.
2523 * xcoffread.c (xcoff_sym_fns): Update.
2524 * symfile.h (struct sym_fns) <qf>: Remove.
2525 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2526 * symfile-debug.c (objfile::has_partial_symbols)
2527 (objfile::find_last_source_symtab)
2528 (objfile::forget_cached_source_info)
2529 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2530 (objfile::print_stats, objfile::dump)
2531 (objfile::expand_symtabs_for_function)
2532 (objfile::expand_all_symtabs)
2533 (objfile::expand_symtabs_with_fullname)
2534 (objfile::map_matching_symbols)
2535 (objfile::expand_symtabs_matching)
2536 (objfile::find_pc_sect_compunit_symtab)
2537 (objfile::map_symbol_filenames)
2538 (objfile::find_compunit_symtab_by_address)
2539 (objfile::lookup_global_symbol_language, debug_sym_fns)
2540 (install_symfile_debug_logging): Update.
2541 * objfiles.h (struct objfile) <qf>: New member.
2542 * mipsread.c (ecoff_sym_fns): Update.
2543 * machoread.c (macho_sym_fns): Update.
2544 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2545 Don't declare.
2546 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2547 * dbxread.c (aout_sym_fns): Update.
2548 * coffread.c (coff_sym_fns): Update.
2549
2550 2021-03-20 Tom Tromey <tom@tromey.com>
2551
2552 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2553 (expand_symtabs_file_matcher_ftype)
2554 (expand_symtabs_symbol_matcher_ftype)
2555 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2556 Move to quick-symbol.h.
2557 * quick-symbol.h: New file.
2558
2559 2021-03-20 Tom Tromey <tom@tromey.com>
2560
2561 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2562 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2563 (basic_lookup_transparent_type_quick)
2564 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2565 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2566 Update.
2567 * symmisc.c (print_objfile_statistics, dump_objfile)
2568 (maintenance_expand_symtabs): Update.
2569 * symfile.c (symbol_file_add_with_addrs)
2570 (expand_symtabs_matching, map_symbol_filenames): Update.
2571 * symfile-debug.c (objfile::has_partial_symbols)
2572 (objfile::find_last_source_symtab)
2573 (objfile::forget_cached_source_info)
2574 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2575 (objfile::print_stats, objfile::dump)
2576 (objfile::expand_symtabs_for_function)
2577 (objfile::expand_all_symtabs)
2578 (objfile::expand_symtabs_with_fullname)
2579 (objfile::map_matching_symbols)
2580 (objfile::expand_symtabs_matching)
2581 (objfile::find_pc_sect_compunit_symtab)
2582 (objfile::map_symbol_filenames)
2583 (objfile::find_compunit_symtab_by_address)
2584 (objfile::lookup_global_symbol_language): New methods.
2585 (debug_sym_quick_functions): Remove.
2586 (debug_sym_fns, install_symfile_debug_logging): Update.
2587 * source.c (forget_cached_source_info_for_objfile)
2588 (select_source_symtab): Update.
2589 * objfiles.h (struct objfile): Add methods corresponding to
2590 quick_symbol_functions.
2591 * objfiles.c (objfile::has_partial_symbols): Move to
2592 symfile-debug.c.
2593 * linespec.c (iterate_over_all_matching_symtabs): Update.
2594 * cp-support.c (add_symbol_overload_list_qualified): Update.
2595 * ada-lang.c (add_nonlocal_symbols): Update.
2596
2597 2021-03-20 Tom Tromey <tom@tromey.com>
2598
2599 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2600 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2601 bool.
2602 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2603 * psymtab.c (psym_has_symbols): Return bool.
2604 * objfiles.c (objfile::has_partial_symbols): Return bool.
2605 * dwarf2/read.c (dw2_has_symbols): Return bool.
2606
2607 2021-03-20 Tom Tromey <tom@tromey.com>
2608
2609 * symfile.c (read_symbols): Update.
2610 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2611 (objfile_has_partial_symbols): Don't declare.
2612 * objfiles.c (objfile::has_partial_symbols): Rename from
2613 objfile_has_partial_symbols.
2614 (objfile_has_symbols, have_partial_symbols): Update.
2615 * elfread.c (elf_symfile_read): Update.
2616 * dwarf2/read.c (dwarf2_has_info): Update.
2617 * coffread.c (coff_symfile_read): Update.
2618
2619 2021-03-20 Tom Tromey <tom@tromey.com>
2620
2621 * coffread.c: Include dwarf2/public.h.
2622 * dwarf2/frame.c: Include dwarf2/public.h.
2623 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2624 * dwarf2/public.h: New file.
2625 * dwarf2/read.c: Include dwarf2/public.h.
2626 * elfread.c: Include dwarf2/public.h.
2627 * machoread.c: Include dwarf2/public.h.
2628 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2629 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2630 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2631 * xcoffread.c: Include dwarf2/public.h.
2632
2633 2021-03-20 Tom Tromey <tom@tromey.com>
2634
2635 * symfile.h (enum dwarf2_section_enum)
2636 (dwarf2_get_section_info): Move to dwarf2/read.h.
2637 * dwarf2/read.h (enum dwarf2_section_enum)
2638 (dwarf2_get_section_info): Move from symfile.h.
2639
2640 2021-03-19 Pedro Alves <pedro@palves.net>
2641
2642 * thread.c (any_thread_of_inferior): Check if there's a selected
2643 thread before calling inferior_thread().
2644
2645 2021-03-18 Tom Tromey <tromey@adacore.com>
2646
2647 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2648 get_DW_UT_name.
2649 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2650 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2651
2652 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2653
2654 * python/py-param.c (get_set_value): Update header comment.
2655
2656 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2657
2658 * infrun.c (check_multi_target_resumption): Remove argument to
2659 all_non_exited_inferiors.
2660
2661 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2662
2663 * windows-nat.c (windows_init_thread_list): Add message to
2664 debug log.
2665
2666 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2669 well as PyLong_Check for Python 2.
2670
2671 2021-03-15 Tom Tromey <tromey@adacore.com>
2672
2673 PR build/27579:
2674 * rust-exp.y (maker_map): Use gdb::hash_enum.
2675 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2676
2677 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2678
2679 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2680 end of debug print.
2681
2682 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2683
2684 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2685 parameter, adjust caller.
2686
2687 2021-03-15 Tom Tromey <tromey@adacore.com>
2688
2689 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2690
2691 2021-03-15 Tom Tromey <tromey@adacore.com>
2692
2693 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2694 ada_ensure_varsize_limit.
2695
2696 2021-03-15 Tom Tromey <tromey@adacore.com>
2697
2698 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2699 fixed-point.
2700 * ada-exp.y (maybe_overload): New function.
2701 (ada_wrap_overload): New function.
2702 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2703 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2704 (or_else_exp, xor_exp, primary): Update.
2705
2706 2021-03-15 Tom Tromey <tromey@adacore.com>
2707
2708 PR ada/27545:
2709 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2710 call for tagged type.
2711
2712 2021-03-15 Tom Tromey <tromey@adacore.com>
2713
2714 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2715 assignment.
2716
2717 2021-03-15 Tom Tromey <tromey@adacore.com>
2718
2719 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2720 container.
2721 (ada_assign_operation::evaluate): Update.
2722 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2723 Change return type.
2724
2725 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2726
2727 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2728
2729 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2730
2731 * python/python.c (gdbpy_source_objfile_script): Use
2732 make_scoped_restore to restore gdbpy_current_objfile.
2733 (gdbpy_execute_objfile_script): Likewise.
2734
2735 2021-03-14 Tom Tromey <tom@tromey.com>
2736
2737 * dwarf2/read.c (read_attribute_value): Use cu_header
2738 consistently.
2739
2740 2021-03-14 Tom Tromey <tom@tromey.com>
2741
2742 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2743 (peek_die_abbrev): Use reader.abfd.
2744
2745 2021-03-14 Tom Tromey <tom@tromey.com>
2746
2747 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2748 m_header_read_in.
2749
2750 2021-03-13 Tom Tromey <tom@tromey.com>
2751
2752 * dwarf2/read.c (struct partial_die_info): Update.
2753 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2754 (load_partial_dies, partial_die_info::partial_die_info): Update.
2755 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2756
2757 2021-03-13 Tom Tromey <tom@tromey.com>
2758
2759 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2760
2761 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2762
2763 PR threads/27239
2764 * cp-support.c: Use scoped_segv_handler_restore.
2765 * event-top.c (thread_local_segv_handler): Made static.
2766 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2767 New function.
2768 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2769 function.
2770 * event-top.h (class scoped_segv_handler_restore): New class.
2771 (thread_local_segv_handler): Removed.
2772
2773 2021-03-10 Tom Tromey <tromey@adacore.com>
2774
2775 * parser-defs.h (parser_state): Change completion to bool.
2776 <parse_completion>: Likewise.
2777 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2778 (ada_resolve_variable, ada_resolve_function): Update.
2779 * ada-lang.c (ada_find_operator_symbol): Change
2780 parse_completion to bool.
2781 (ada_resolve_funcall, ada_resolve_variable)
2782 (ada_resolve_function): Likewise.
2783
2784 2021-03-09 Tom Tromey <tromey@adacore.com>
2785
2786 * eval.c (operation::evaluate_funcall): Use function formal
2787 parameter types when evaluating.
2788
2789 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2790
2791 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2792 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2793 and owner to m_owner.
2794
2795 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2796
2797 * f-exp.h (eval_op_f_loc): Declare.
2798 (expr::fortran_loc_operation): New typedef.
2799 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2800 UNOP_INTRINSIC.
2801 (f77_keywords): Add LOC keyword.
2802 * f-lang.c (eval_op_f_loc): New function.
2803 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2804
2805 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2806
2807 * f-exp.h (eval_op_f_array_shape): Declare.
2808 (fortran_array_shape_operation): New type.
2809 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2810 UNOP_INTRINSIC.
2811 (f77_keywords): Add "shape" keyword.
2812 * f-lang.c (fortran_array_shape): New function.
2813 (eval_op_f_array_shape): New function.
2814 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2815
2816 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2817
2818 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2819 of this function.
2820 (expr::fortran_array_size_1arg): New type.
2821 (expr::fortran_array_size_2arg): Likewise.
2822 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2823 UNOP_OR_BINOP_INTRINSIC.
2824 (f77_keywords): Add "size" keyword.
2825 * f-lang.c (fortran_array_size): New function.
2826 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2827 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2828
2829 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2830
2831 * f-exp.h (eval_op_f_rank): Declare.
2832 (expr::fortran_rank_operation): New typedef.
2833 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2834 UNOP_INTRINSIC.
2835 (f77_keywords): Add "rank" keyword.
2836 * f-lang.c (eval_op_f_rank): New function.
2837 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2838
2839 2021-03-08 Tom Tromey <tom@tromey.com>
2840
2841 * printcmd.c (set_command): Remove null check.
2842 * value.c (init_if_undefined_command): Remove null check.
2843
2844 2021-03-08 Tom Tromey <tom@tromey.com>
2845
2846 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2847 Update.
2848 * p-exp.y (variable): Update.
2849 * go-exp.y (variable): Update.
2850 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2851 Remove overload for objfile.
2852 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2853 parameter.
2854 (check_objfile): Likewise.
2855 (dump_for_expression): Likewise. Remove overload for objfile.
2856 (class var_msym_value_operation): Use bound_minimal_symbol.
2857 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2858 parameter.
2859 (var_msym_value_operation::evaluate_for_address)
2860 (var_msym_value_operation::evaluate_for_sizeof)
2861 (var_msym_value_operation::evaluate_for_cast): Update.
2862 * d-exp.y (PrimaryExpression): Update.
2863 * c-exp.y (variable): Update.
2864 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2865 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2866 Update.
2867 * ada-exp.y (write_var_or_type): Update.
2868
2869 2021-03-08 Tom Tromey <tom@tromey.com>
2870
2871 * parser-defs.h (exp_uses_objfile): Return bool.
2872 * parse.c (exp_uses_objfile): Return bool.
2873
2874 2021-03-08 Tom Tromey <tom@tromey.com>
2875
2876 * value.h (eval_skip_value): Don't declare.
2877 * opencl-lang.c (eval_opencl_assign): Update.
2878 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2879 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2880 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2881 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2882 * expop.h (typeof_operation::evaluate)
2883 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2884 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2885 (cxx_cast_operation::evaluate): Update.
2886 * eval.c (eval_skip_value): Remove.
2887 (eval_op_scope, eval_op_var_entry_value)
2888 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2889 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2890 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2891 (eval_op_binary, eval_op_subscript, eval_op_equal)
2892 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2893 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2894 (eval_op_complement, eval_op_lognot, eval_op_ind)
2895 (eval_op_memval, eval_op_preinc, eval_op_predec)
2896 (eval_op_postinc, eval_op_postdec, eval_op_type)
2897 (eval_binop_assign_modify, eval_op_objc_msgcall)
2898 (eval_multi_subscript, logical_and_operation::evaluate)
2899 (logical_or_operation::evaluate, array_operation::evaluate)
2900 (operation::evaluate_for_cast)
2901 (var_msym_value_operation::evaluate_for_cast)
2902 (var_value_operation::evaluate_for_cast): Update.
2903 * c-lang.c (c_string_operation::evaluate): Update.
2904 * c-exp.h (objc_nsstring_operation::evaluate)
2905 (objc_selector_operation::evaluate): Update.
2906 * ada-lang.c (ada_assign_operation::evaluate)
2907 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2908 (ada_atr_size): Update.
2909
2910 2021-03-08 Tom Tromey <tom@tromey.com>
2911
2912 * eval.c: Merge "namespace" scopes.
2913
2914 2021-03-08 Tom Tromey <tom@tromey.com>
2915
2916 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2917 <release>: Inline.
2918 * parse.c (expr_builder::expr_builder, expr_builder::release):
2919 Remove.
2920
2921 2021-03-08 Tom Tromey <tom@tromey.com>
2922
2923 * parse.c (expression::expression, expression::~expression):
2924 Remove.
2925 * expression.h (struct expression): Inline constructor. Remove
2926 destructor.
2927
2928 2021-03-08 Tom Tromey <tom@tromey.com>
2929
2930 * std-operator.def (BINOP_END): Remove.
2931 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2932 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2933 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2934 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2935 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2936 BINOP_END.
2937
2938 2021-03-08 Tom Tromey <tom@tromey.com>
2939
2940 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2941
2942 2021-03-08 Tom Tromey <tom@tromey.com>
2943
2944 * std-operator.def (OP_EXTENDED0): Remove.
2945
2946 2021-03-08 Tom Tromey <tom@tromey.com>
2947
2948 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2949 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2950 Remove.
2951
2952 2021-03-08 Tom Tromey <tom@tromey.com>
2953
2954 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2955 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2956
2957 2021-03-08 Tom Tromey <tom@tromey.com>
2958
2959 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2960 * ada-lang.c (ada_binop_minmax): Update.
2961 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2962 Use BINOP_MIN and BINOP_MAX.
2963
2964 2021-03-08 Tom Tromey <tom@tromey.com>
2965
2966 * value.h (evaluate_subexp_with_coercion): Don't declare.
2967 * parse.c (exp_descriptor_standard): Remove.
2968 (expr_builder::expr_builder, expr_builder::release): Update.
2969 (expression::expression): Remove size_t parameter.
2970 (expression::~expression): Simplify.
2971 (expression::resize): Remove.
2972 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2973 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2974 (write_exp_elt_longcst, write_exp_elt_floatcst)
2975 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2976 (write_exp_string_vector, write_exp_bitstring): Remove.
2977 * p-lang.h (class pascal_language) <opcode_print_table,
2978 op_print_tab>: Remove.
2979 * p-lang.c (pascal_language::op_print_tab): Remove.
2980 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2981 Remove.
2982 * objc-lang.c (objc_op_print_tab): Remove.
2983 (class objc_language) <opcode_print_table>: Remove.
2984 * m2-lang.h (class m2_language) <opcode_print_table,
2985 op_print_tab>: Remove.
2986 * m2-lang.c (m2_language::op_print_tab): Remove.
2987 * language.h (struct language_defn) <post_parser, expression_ops,
2988 opcode_print_table>: Remove.
2989 * language.c (language_defn::expression_ops)
2990 (auto_or_unknown_language::opcode_print_table): Remove.
2991 * go-lang.h (class go_language) <opcode_print_table,
2992 op_print_tab>: Remove.
2993 * go-lang.c (go_language::op_print_tab): Remove.
2994 * f-lang.h (class f_language) <opcode_print_table>: Remove
2995 <op_print_tab>: Remove.
2996 * f-lang.c (f_language::op_print_tab): Remove.
2997 * expression.h (union exp_element): Remove.
2998 (struct expression): Remove size_t parameter from constructor.
2999 <resize>: Remove.
3000 <first_opcode>: Update.
3001 <nelts, elts>: Remove.
3002 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3003 (evaluate_subexp_standard, print_expression, op_string)
3004 (dump_raw_expression): Don't declare.
3005 * expprint.c (print_expression, print_subexp)
3006 (print_subexp_funcall, print_subexp_standard, op_string)
3007 (dump_raw_expression, dump_subexp, dump_subexp_body)
3008 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3009 (dump_prefix_expression): Update.
3010 * eval.c (evaluate_subexp): Remove.
3011 (evaluate_expression, evaluate_type): Update.
3012 (evaluate_subexpression_type): Remove.
3013 (fetch_subexp_value): Remove "pc" parameter. Update.
3014 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3015 (evaluate_subexp_standard, evaluate_subexp_for_address)
3016 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3017 (evaluate_subexp_for_cast): Remove.
3018 (parse_and_eval_type): Update.
3019 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3020 * d-lang.c (d_op_print_tab): Remove.
3021 (class d_language) <opcode_print_table>: Remove.
3022 * c-lang.h (c_op_print_tab): Don't declare.
3023 * c-lang.c (c_op_print_tab): Remove.
3024 (class c_language, class cplus_language, class asm_language, class
3025 minimal_language) <opcode_print_table>: Remove.
3026 * breakpoint.c (update_watchpoint, watchpoint_check)
3027 (watchpoint_exp_is_const, watch_command_1): Update.
3028 * ax-gdb.h (union exp_element): Don't declare.
3029 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3030 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3031 (gen_expr_binop_rest): Remove.
3032 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3033 * ada-lang.c (ada_op_print_tab): Remove.
3034 (class ada_language) <post_parser, opcode_print_table>: Remove.
3035
3036 2021-03-08 Tom Tromey <tom@tromey.com>
3037
3038 * go-lang.c (go_language::expression_ops): Don't declare.
3039 * go-lang.h (class go_language) <expression_ops>: Remove.
3040 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3041 Remove.
3042 (class opencl_language) <expression_ops>: Remove.
3043 * d-lang.c (class d_language) <expression_ops>: Remove.
3044 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3045 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3046 (class c_language, class cplus_language, class asm_language)
3047 (class minimal_language) <expression_ops>: Remove.
3048
3049 2021-03-08 Tom Tromey <tom@tromey.com>
3050
3051 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3052 (evaluate_subexp_type, assign_aggregate)
3053 (aggregate_assign_positional, aggregate_assign_from_choices)
3054 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3055 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3056 (ada_operator_check, ada_forward_operator_length)
3057 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3058 Remove.
3059 (post_parser): Update.
3060 (class ada_language) <expresssion_ops>: Remove.
3061
3062 2021-03-08 Tom Tromey <tom@tromey.com>
3063
3064 * m2-lang.h (class m2_language) <expresssion_ops,
3065 exp_descriptor_modula2>: Remove.
3066 * m2-lang.c (evaluate_subexp_modula2)
3067 (m2_language::exp_descriptor_modula2): Remove.
3068
3069 2021-03-08 Tom Tromey <tom@tromey.com>
3070
3071 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3072 <exp_descriptor_tab>: Remove.
3073 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3074 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3075 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3076 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3077 Remove.
3078
3079 2021-03-08 Tom Tromey <tom@tromey.com>
3080
3081 * rust-lang.h (class rust_language) <expression_ops,
3082 exp_descriptor_tab>: Remove.
3083 * rust-lang.c (rust_evaluate_funcall): Remove.
3084 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3085 EVAL_SKIP.
3086 (rust_evaluate_subexp): Remove.
3087 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3088 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3089 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3090
3091 2021-03-08 Tom Tromey <tom@tromey.com>
3092
3093 * ada-exp.y: Create operations.
3094 (empty_stoken): Remove.
3095 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3096 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3097 (components): New global.
3098 (push_component, choice_component, pop_component, pop_components):
3099 New functions.
3100 (associations): New global
3101 (push_association, pop_association, pop_associations): New
3102 functions.
3103 (ada_parse): Update.
3104 (write_var_from_sym, write_int): Create operations.
3105 (write_exp_op_with_string): Remove.
3106 (write_object_renaming, write_selectors, write_ambiguous_var)
3107 (write_var_or_type, write_name_assoc): Create operations.
3108 * ada-lang.h (ada_index_type): Declare.
3109 * ada-lang.c (ada_index_type): No longer static.
3110
3111 2021-03-08 Tom Tromey <tom@tromey.com>
3112
3113 * f-exp.y: Create operations.
3114 (f_language::parser): Update.
3115
3116 2021-03-08 Tom Tromey <tom@tromey.com>
3117
3118 * m2-exp.y: Create operations.
3119 (m2_language::parser): Update.
3120
3121 2021-03-08 Tom Tromey <tom@tromey.com>
3122
3123 * p-exp.y: Create operations.
3124 (pascal_language::parser): Update.
3125
3126 2021-03-08 Tom Tromey <tom@tromey.com>
3127
3128 * d-exp.y: Create operations.
3129 (d_parse): Update.
3130
3131 2021-03-08 Tom Tromey <tom@tromey.com>
3132
3133 * go-exp.y: Create operations.
3134 (go_language::parser): Update.
3135
3136 2021-03-08 Tom Tromey <tom@tromey.com>
3137
3138 * objc-lang.c (end_msglist): Create operations.
3139 * c-exp.y: Change parser to create operations.
3140 (write_destructor_name): Remove.
3141 (c_parse): Update.
3142
3143 2021-03-08 Tom Tromey <tom@tromey.com>
3144
3145 * rust-exp.y: Create operations.
3146 (rust_parser::convert_params_to_expression): Change return type.
3147 (binop_maker_ftype): New typedef.
3148 (maker_map): New global.
3149 (rust_parser::convert_ast_to_expression): Change return type.
3150 (rust_language::parser): Update.
3151 (_initialize_rust_exp): Initialize maker_map.
3152
3153 2021-03-08 Tom Tromey <tom@tromey.com>
3154
3155 * stap-probe.c (binop_maker_ftype): New typedef.
3156 (stap_maker_map): New global.
3157 (stap_make_binop): New function.
3158 (stap_parse_register_operand): Return operation_up.
3159 (stap_parse_single_operand, stap_parse_argument_conditionally)
3160 (stap_parse_argument_1): Likewise.
3161 (stap_parse_argument): Create operations.
3162 (stap_probe::parse_arguments): Update.
3163 (_initialize_stap_probe): Initialize stap_maker_map.
3164 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3165 type.
3166 * i386-tdep.h (i386_stap_parse_special_token): Change return
3167 type.
3168 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3169 (i386_stap_parse_special_token_three_arg_disp)
3170 (i386_stap_parse_special_token): Change return type.
3171 * gdbarch.sh (stap_parse_special_token): Change return type.
3172 * gdbarch.c: Rebuild.
3173 * gdbarch.h: Rebuild.
3174 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3175 type.
3176 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3177 return type.
3178
3179 2021-03-08 Tom Tromey <tom@tromey.com>
3180
3181 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3182 * gdbarch.h: Rebuild.
3183 * gdbarch.c: Rebuild.
3184 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3185 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3186 return type.
3187 (amd64_dtrace_parse_probe_argument): Update.
3188
3189 2021-03-08 Tom Tromey <tom@tromey.com>
3190
3191 * parser-defs.h (struct parser_state) <push, push_new,
3192 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3193 wrap2>: New methods.
3194 <m_operations>: New member.
3195 * parse.c (parser_state::push_c_string)
3196 (parser_state::push_symbol, parser_state::push_dollar): New
3197 methods.
3198
3199 2021-03-08 Tom Tromey <tom@tromey.com>
3200
3201 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3202 New member.
3203 (struct parser_state) <mark_struct_expression>: New method.
3204 * parse.c (parser_state::mark_struct_expression): Update assert.
3205 (parser_state::mark_struct_expression): New method.
3206 (parser_state::mark_completion_tag): Update assert.
3207 (parse_expression_for_completion): Handle expout_last_op.
3208
3209 2021-03-08 Tom Tromey <tom@tromey.com>
3210
3211 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3212 now in superclass.
3213 * value.h (fetch_subexp_value): Add "op" parameter.
3214 * value.c (init_if_undefined_command): Update.
3215 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3216 * stap-probe.c (stap_probe::compile_to_ax): Update.
3217 * printcmd.c (set_command): Update.
3218 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3219 Update.
3220 * parser-defs.h (struct expr_builder) <set_operation>: New
3221 method.
3222 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3223 * expression.h (struct expression) <first_opcode>: Update.
3224 <op>: New member.
3225 * expprint.c (dump_raw_expression, dump_prefix_expression):
3226 Update.
3227 * expop.h (class var_value_operation) <get_symbol>: New method.
3228 (class register_operation) <get_name>: New method.
3229 (class equal_operation): No longer a typedef, now a subclass.
3230 (class unop_memval_operation) <get_type>: New method.
3231 (class assign_operation) <get_lhs>: New method.
3232 (class unop_cast_operation) <get_type>: New method.
3233 * eval.c (evaluate_expression, evaluate_type)
3234 (evaluate_subexpression_type): Update.
3235 (fetch_subexp_value): Add "op" parameter.
3236 (parse_and_eval_type): Update.
3237 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3238 * breakpoint.c (update_watchpoint, watchpoint_check)
3239 (watchpoint_exp_is_const, watch_command_1): Update.
3240 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3241 Update.
3242
3243 2021-03-08 Tom Tromey <tom@tromey.com>
3244
3245 * ada-lang.c (ada_value_binop): Do not use op_string.
3246
3247 2021-03-08 Tom Tromey <tom@tromey.com>
3248
3249 * expprint.c (dump_for_expression): New overload.
3250 * expop.h (check_objfile, dump_for_expression): Declare new
3251 overloads.
3252 * ada-lang.c (check_objfile): New overload.
3253 (assign_component, ada_aggregate_component::uses_objfile)
3254 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3255 (ada_aggregate_component::assign_aggregate)
3256 (ada_positional_component::uses_objfile)
3257 (ada_positional_component::dump, ada_positional_component::assign)
3258 (ada_discrete_range_association::uses_objfile)
3259 (ada_discrete_range_association::dump)
3260 (ada_discrete_range_association::assign)
3261 (ada_name_association::uses_objfile, ada_name_association::dump)
3262 (ada_name_association::assign)
3263 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3264 (ada_choices_component::assign)
3265 (ada_others_component::uses_objfile, ada_others_component::dump)
3266 (ada_others_component::assign, ada_assign_operation::evaluate):
3267 New methods.
3268 * ada-exp.h (ada_string_operation) <get_name>: New method.
3269 (class ada_assign_operation): New.
3270 (class ada_component): New.
3271 (ada_component_up): New typedef.
3272 (class ada_aggregate_operation, class ada_aggregate_component)
3273 (class ada_positional_component, class ada_others_component)
3274 (class ada_association): New.
3275 (ada_association_up): New typedef.
3276 (class ada_choices_component)
3277 (class ada_discrete_range_association)
3278 (class ada_name_association): New.
3279
3280 2021-03-08 Tom Tromey <tom@tromey.com>
3281
3282 * ada-lang.c (ada_var_value_operation::resolve)
3283 (ada_funcall_operation::resolve)
3284 (ada_ternop_slice_operation::resolve): New methods.
3285 * ada-exp.h (struct ada_resolvable): New.
3286 (class ada_var_value_operation): Derive from ada_resolvable.
3287 <get_block, resolve>: New methods.
3288 (class ada_funcall_operation): Derive from ada_resolvable.
3289 <resolve>: New method.
3290 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3291 <resolve>: New method.
3292
3293 2021-03-08 Tom Tromey <tom@tromey.com>
3294
3295 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3296 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3297 method.
3298 (class ada_funcall_operation): New.
3299
3300 2021-03-08 Tom Tromey <tom@tromey.com>
3301
3302 * ada-lang.c (ada_structop_operation::evaluate): New method.
3303 * ada-exp.h (class ada_structop_operation): New.
3304
3305 2021-03-08 Tom Tromey <tom@tromey.com>
3306
3307 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3308 * ada-exp.h (class ada_unop_ind_operation): New.
3309
3310 2021-03-08 Tom Tromey <tom@tromey.com>
3311
3312 * ada-lang.c (ada_binop_exp): No longer static.
3313 * ada-exp.h (ada_binop_exp_operation): New typedef.
3314
3315 2021-03-08 Tom Tromey <tom@tromey.com>
3316
3317 * ada-lang.c (ada_val_atr): No longer static.
3318 (ada_atr_val_operation::evaluate): New method.
3319 * ada-exp.h (class ada_atr_val_operation): New.
3320
3321 2021-03-08 Tom Tromey <tom@tromey.com>
3322
3323 * ada-lang.c (ada_pos_atr): No longer static.
3324 * ada-exp.h (ada_pos_operation): New typedef.
3325
3326 2021-03-08 Tom Tromey <tom@tromey.com>
3327
3328 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3329 parameters.
3330 (ada_evaluate_subexp): Use it.
3331
3332 2021-03-08 Tom Tromey <tom@tromey.com>
3333
3334 * ada-lang.c (ada_binop_minmax): No longer static.
3335 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3336 New typedefs.
3337
3338 2021-03-08 Tom Tromey <tom@tromey.com>
3339
3340 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3341 New method.
3342 * ada-exp.h (class ada_var_msym_value_operation): New.
3343
3344 2021-03-08 Tom Tromey <tom@tromey.com>
3345
3346 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3347 (ada_var_value_operation::evaluate): New methods.
3348 * ada-exp.h (class ada_var_value_operation): New.
3349
3350 2021-03-08 Tom Tromey <tom@tromey.com>
3351
3352 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3353 * ada-exp.h (class ada_unop_atr_operation): New.
3354
3355 2021-03-08 Tom Tromey <tom@tromey.com>
3356
3357 * ada-lang.c (ada_binop_in_bounds): No longer static.
3358 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3359
3360 2021-03-08 Tom Tromey <tom@tromey.com>
3361
3362 * ada-lang.c (ada_ternop_slice): No longer static.
3363 * ada-exp.h (class ada_ternop_slice_operation): New.
3364
3365 2021-03-08 Tom Tromey <tom@tromey.com>
3366
3367 * ada-exp.h (ada_bitwise_operation): New template class.
3368 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3369 (ada_bitwise_xor_operation): New typedefs.
3370
3371 2021-03-08 Tom Tromey <tom@tromey.com>
3372
3373 * ada-lang.c (ada_equal_binop): No longer static.
3374 * ada-exp.h (class ada_binop_equal_operation): New.
3375
3376 2021-03-08 Tom Tromey <tom@tromey.com>
3377
3378 * ada-lang.c (ada_mult_binop): No longer static.
3379 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3380 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3381
3382 2021-03-08 Tom Tromey <tom@tromey.com>
3383
3384 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3385 * ada-exp.h (class ada_binop_addsub_operation): New.
3386
3387 2021-03-08 Tom Tromey <tom@tromey.com>
3388
3389 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3390 (ada_resolve_variable): Declare.
3391 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3392 (ada_resolve_variable): New functions.
3393 (resolve_subexp): Update.
3394
3395 2021-03-08 Tom Tromey <tom@tromey.com>
3396
3397 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3398 method.
3399 * c-exp.h (class opencl_ternop_cond_operation): New.
3400
3401 2021-03-08 Tom Tromey <tom@tromey.com>
3402
3403 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3404 method.
3405 * c-exp.h (class opencl_logical_binop_operation): New.
3406
3407 2021-03-08 Tom Tromey <tom@tromey.com>
3408
3409 * opencl-lang.c (opencl_structop_operation::evaluate): New
3410 method.
3411 * c-exp.h (class opencl_structop_operation): New.
3412
3413 2021-03-08 Tom Tromey <tom@tromey.com>
3414
3415 * opencl-lang.c (opencl_logical_not): No longer static. Change
3416 parameters.
3417 (evaluate_subexp_opencl): Update.
3418 * c-exp.h (opencl_notequal_operation): New typedef.
3419
3420 2021-03-08 Tom Tromey <tom@tromey.com>
3421
3422 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3423 static. Change parameters.
3424 (eval_opencl_assign): No longer static. Add "op" parameter.
3425 (evaluate_subexp_opencl): Update.
3426 * c-exp.h (opencl_binop_operation): New template class.
3427 (opencl_assign_operation, opencl_equal_operation)
3428 (opencl_notequal_operation, opencl_less_operation)
3429 (opencl_gtr_operation, opencl_geq_operation)
3430 (opencl_leq_operation): New typedefs.
3431
3432 2021-03-08 Tom Tromey <tom@tromey.com>
3433
3434 * opencl-lang.c (opencl_value_cast): No longer static.
3435 * c-exp.h (opencl_cast_type_operation): New typedef.
3436
3437 2021-03-08 Tom Tromey <tom@tromey.com>
3438
3439 * f-exp.h (eval_op_f_allocated): Declare.
3440 (fortran_allocated_operation): New typedef.
3441 * f-lang.c (eval_op_f_allocated): No longer static.
3442
3443 2021-03-08 Tom Tromey <tom@tromey.com>
3444
3445 * f-lang.c (eval_op_f_associated): New functions.
3446 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3447 typedefs.
3448
3449 2021-03-08 Tom Tromey <tom@tromey.com>
3450
3451 * f-lang.c (fortran_bound_1arg::evaluate)
3452 (fortran_bound_2arg::evaluate): New methods.
3453 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3454 New.
3455
3456 2021-03-08 Tom Tromey <tom@tromey.com>
3457
3458 * expop.h (class unop_addr_operation) <get_expression>: New
3459 method.
3460 * f-lang.c (fortran_undetermined::value_subarray)
3461 (fortran_undetermined::evaluate): New methods.
3462 (fortran_prepare_argument): New overload.
3463 * f-exp.h (class fortran_range_operation)
3464 (class fortran_undetermined): New classes.
3465
3466 2021-03-08 Tom Tromey <tom@tromey.com>
3467
3468 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3469 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3470 method.
3471
3472 2021-03-08 Tom Tromey <tom@tromey.com>
3473
3474 * expression.h (class operation) <evaluate_funcall>: New methods.
3475 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3476 (class var_value_operation) <evaluate_funcall>: New method.
3477 (class structop_base_operation) <evaluate_funcall>: New method.
3478 (class var_msym_value_operation) <evaluate_funcall>: New method.
3479 (class structop_member_base): New class.
3480 (class structop_member_operation): Derive from
3481 structop_member_base.
3482 (class structop_mptr_operation): Derive from
3483 structop_member_base.
3484 (class funcall_operation): New class.
3485 * eval.c (operation::evaluate_funcall)
3486 (var_value_operation::evaluate_funcall)
3487 (scope_operation::evaluate_funcall)
3488 (structop_member_base::evaluate_funcall)
3489 (structop_base_operation::evaluate_funcall): New methods.
3490
3491 2021-03-08 Tom Tromey <tom@tromey.com>
3492
3493 * expop.h (class array_operation): New.
3494 * eval.c (array_operation::evaluate_struct_tuple)
3495 (array_operation::evaluate): New methods.
3496
3497 2021-03-08 Tom Tromey <tom@tromey.com>
3498
3499 * expop.h (class adl_func_operation): New.
3500 * eval.c (adl_func_operation::evaluate): New method.
3501
3502 2021-03-08 Tom Tromey <tom@tromey.com>
3503
3504 * ada-lang.c (ada_unop_in_range): No longer static.
3505 * ada-exp.h (class ada_unop_range_operation): New.
3506
3507 2021-03-08 Tom Tromey <tom@tromey.com>
3508
3509 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3510 No longer static.
3511 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3512 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3513
3514 2021-03-08 Tom Tromey <tom@tromey.com>
3515
3516 * expop.h (class logical_and_operation)
3517 (class logical_or_operation): New.
3518 * eval.c (logical_and_operation::evaluate)
3519 (logical_or_operation::evaluate): New methods.
3520 * ax-gdb.c (logical_and_operation::do_generate_ax)
3521 (logical_or_operation::do_generate_ax): New methods.
3522
3523 2021-03-08 Tom Tromey <tom@tromey.com>
3524
3525 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3526 static.
3527 * m2-exp.h: New file.
3528
3529 2021-03-08 Tom Tromey <tom@tromey.com>
3530
3531 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3532 * rust-exp.h (class rust_aggregate_operation): New.
3533
3534 2021-03-08 Tom Tromey <tom@tromey.com>
3535
3536 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3537 No longer static.
3538 * rust-exp.h (class rust_struct_anon): New.
3539 (class rust_structop): New.
3540
3541 2021-03-08 Tom Tromey <tom@tromey.com>
3542
3543 * rust-lang.c (rust_range): No longer static.
3544 * rust-exp.h (class rust_range_operation): New.
3545
3546 2021-03-08 Tom Tromey <tom@tromey.com>
3547
3548 * rust-lang.c (rust_subscript): No longer static.
3549 * rust-exp.h (class rust_subscript_operation): New.
3550
3551 2021-03-08 Tom Tromey <tom@tromey.com>
3552
3553 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3554 parameter.
3555 (rust_evaluate_subexp): Update.
3556 * rust-exp.h (class rust_unop_ind_operation): New.
3557
3558 2021-03-08 Tom Tromey <tom@tromey.com>
3559
3560 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3561 longer static. Add "opcode" parameter.
3562 (rust_evaluate_subexp): Update.
3563 * rust-exp.h: New file.
3564
3565 2021-03-08 Tom Tromey <tom@tromey.com>
3566
3567 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3568 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3569 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3570 (evaluate_subexp_f): Update.
3571 * f-exp.h: New file.
3572
3573 2021-03-08 Tom Tromey <tom@tromey.com>
3574
3575 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3576 * ada-exp.h (class ada_ternop_range_operation): New.
3577
3578 2021-03-08 Tom Tromey <tom@tromey.com>
3579
3580 * ada-lang.c (ada_qual_operation::evaluate): New method.
3581 * ada-exp.h (class ada_qual_operation): New.
3582
3583 2021-03-08 Tom Tromey <tom@tromey.com>
3584
3585 * ada-lang.c (ada_string_operation::evaluate): New method.
3586 * ada-exp.h (class ada_string_operation): New.
3587
3588 2021-03-08 Tom Tromey <tom@tromey.com>
3589
3590 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3591 * ada-exp.h: New file.
3592
3593 2021-03-08 Tom Tromey <tom@tromey.com>
3594
3595 * expop.h (class multi_subscript_operation): New.
3596 * eval.c (multi_subscript_operation::evaluate): New method.
3597
3598 2021-03-08 Tom Tromey <tom@tromey.com>
3599
3600 * eval.c (objc_msgcall_operation::evaluate): New method.
3601 * c-exp.h (class objc_msgcall_operation): New.
3602
3603 2021-03-08 Tom Tromey <tom@tromey.com>
3604
3605 * expop.h (class var_value_operation): New.
3606 * eval.c (var_value_operation::evaluate)
3607 (var_value_operation::evaluate_for_address)
3608 (var_value_operation::evaluate_with_coercion)
3609 (var_value_operation::evaluate_for_sizeof)
3610 (var_value_operation::evaluate_for_cast): New methods.
3611 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3612
3613 2021-03-08 Tom Tromey <tom@tromey.com>
3614
3615 * expop.h (cxx_cast_ftype): New typedef.
3616 (cxx_cast_operation): New template.
3617 (dynamic_cast_operation, reinterpret_cast_operation): New
3618 typedefs.
3619
3620 2021-03-08 Tom Tromey <tom@tromey.com>
3621
3622 * expop.h (class unop_cast_type_operation): New.
3623 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3624 method.
3625
3626 2021-03-08 Tom Tromey <tom@tromey.com>
3627
3628 * expop.h (class unop_cast_operation): New.
3629 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3630
3631 2021-03-08 Tom Tromey <tom@tromey.com>
3632
3633 * expop.h (class assign_modify_operation): New.
3634 * eval.c (eval_binop_assign_modify): No longer static.
3635 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3636
3637 2021-03-08 Tom Tromey <tom@tromey.com>
3638
3639 * expop.h (class assign_operation): New.
3640 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3641
3642 2021-03-08 Tom Tromey <tom@tromey.com>
3643
3644 * expop.h (class type_instance_operation): New.
3645 * eval.c (type_instance_operation::evaluate): New method.
3646
3647 2021-03-08 Tom Tromey <tom@tromey.com>
3648
3649 * expop.h (class op_this_operation): New.
3650 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3651
3652 2021-03-08 Tom Tromey <tom@tromey.com>
3653
3654 * expop.h (class unop_memval_operation)
3655 (class unop_memval_type_operation): New.
3656 * eval.c (eval_op_memval): No longer static.
3657 (unop_memval_operation::evaluate_for_address)
3658 (unop_memval_type_operation::evaluate_for_address)
3659 (unop_memval_operation::evaluate_for_sizeof)
3660 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3661 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3662 (unop_memval_type_operation::do_generate_ax): New methods.
3663
3664 2021-03-08 Tom Tromey <tom@tromey.com>
3665
3666 * expop.h (class unop_alignof_operation): New.
3667 * eval.c (eval_op_alignof): No longer static.
3668
3669 2021-03-08 Tom Tromey <tom@tromey.com>
3670
3671 * expop.h (class unop_sizeof_operation): New.
3672 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3673
3674 2021-03-08 Tom Tromey <tom@tromey.com>
3675
3676 * expop.h (class unop_addr_operation): New.
3677 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3678
3679 2021-03-08 Tom Tromey <tom@tromey.com>
3680
3681 * expop.h (class typeid_operation): New.
3682
3683 2021-03-08 Tom Tromey <tom@tromey.com>
3684
3685 * expop.h (class decltype_operation): New.
3686
3687 2021-03-08 Tom Tromey <tom@tromey.com>
3688
3689 * expop.h (class typeof_operation): New.
3690
3691 2021-03-08 Tom Tromey <tom@tromey.com>
3692
3693 * expop.h (class type_operation): New.
3694 * eval.c (eval_op_type): No longer static.
3695
3696 2021-03-08 Tom Tromey <tom@tromey.com>
3697
3698 * expop.h (class unop_ind_base_operation)
3699 (class unop_ind_operation): New.
3700 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3701 (unop_ind_base_operation::evaluate_for_address)
3702 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3703 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3704
3705 2021-03-08 Tom Tromey <tom@tromey.com>
3706
3707 * expop.h (unop_incr_operation): New template.
3708 (preinc_operation, predec_operation, postinc_operation)
3709 (postdec_operation): New typedefs.
3710 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3711 (eval_op_postdec): No longer static.
3712
3713 2021-03-08 Tom Tromey <tom@tromey.com>
3714
3715 * expop.h (unary_ftype): New typedef.
3716 (unop_operation, usual_ax_binop_operation): New templates.
3717 (unary_plus_operation, unary_neg_operation)
3718 (unary_complement_operation, unary_logical_not_operation): New
3719 typedefs.
3720 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3721 (eval_op_lognot): No longer static.
3722 * ax-gdb.c (gen_expr_unop): New function.
3723
3724 2021-03-08 Tom Tromey <tom@tromey.com>
3725
3726 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3727
3728 2021-03-08 Tom Tromey <tom@tromey.com>
3729
3730 * expop.h (class repeat_operation): New.
3731 * eval.c (eval_op_repeat): No longer static. Remove "op"
3732 parameter.
3733 (evaluate_subexp_standard): Update.
3734 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3735
3736 2021-03-08 Tom Tromey <tom@tromey.com>
3737
3738 * expop.h (class comparison_operation): New.
3739 (equal_operation, notequal_operation, less_operation)
3740 (gtr_operation, geq_operation, leq_operation): New typedefs.
3741 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3742 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3743
3744 2021-03-08 Tom Tromey <tom@tromey.com>
3745
3746 * expop.h (class subscript_operation): New.
3747 * eval.c (eval_op_subscript): No longer static.
3748
3749 2021-03-08 Tom Tromey <tom@tromey.com>
3750
3751 * expop.h (class binop_operation, class usual_ax_binop_operation):
3752 New.
3753 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3754 (div_operation, rem_operation, lsh_operation, rsh_operation)
3755 (bitwise_and_operation, bitwise_ior_operation)
3756 (bitwise_xor_operation): New typedefs.
3757 * eval.c (eval_op_binary): No longer static.
3758
3759 2021-03-08 Tom Tromey <tom@tromey.com>
3760
3761 * expop.h (class sub_operation): New.
3762 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3763 (evaluate_subexp_standard): Update.
3764
3765 2021-03-08 Tom Tromey <tom@tromey.com>
3766
3767 * expop.h (class add_operation): New.
3768 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3769 (evaluate_subexp_standard): Update.
3770
3771 2021-03-08 Tom Tromey <tom@tromey.com>
3772
3773 * expop.h (class concat_operation): New.
3774 * eval.c (eval_op_concat): No longer static. Remove "op"
3775 parameter.
3776 (evaluate_subexp_standard): Update.
3777
3778 2021-03-08 Tom Tromey <tom@tromey.com>
3779
3780 * expop.h (class structop_member_operation)
3781 (class structop_mptr_operation): New.
3782 * eval.c (eval_op_member): No longer static.
3783
3784 2021-03-08 Tom Tromey <tom@tromey.com>
3785
3786 * expop.h (class structop_ptr_operation): New.
3787 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3788 parameter.
3789
3790 2021-03-08 Tom Tromey <tom@tromey.com>
3791
3792 * expop.h (class structop_base_operation)
3793 (class structop_operation): New.
3794 * eval.c (eval_op_structop_struct): No longer static.
3795
3796 2021-03-08 Tom Tromey <tom@tromey.com>
3797
3798 * expop.h (class complex_operation): New.
3799
3800 2021-03-08 Tom Tromey <tom@tromey.com>
3801
3802 * eval.c (eval_op_objc_selector): No longer static.
3803 * c-exp.h (class objc_selector_operation): New.
3804
3805 2021-03-08 Tom Tromey <tom@tromey.com>
3806
3807 * eval.c: Include c-exp.h.
3808 * c-exp.h (class objc_nsstring_operation): New.
3809
3810 2021-03-08 Tom Tromey <tom@tromey.com>
3811
3812 * c-lang.c (c_string_operation::evaluate): New method.
3813 * c-exp.h: New file.
3814
3815 2021-03-08 Tom Tromey <tom@tromey.com>
3816
3817 * expop.h (class ternop_cond_operation): New.
3818 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3819
3820 2021-03-08 Tom Tromey <tom@tromey.com>
3821
3822 * expop.h (class ternop_slice_operation): New.
3823 * eval.c (eval_op_ternop): No longer static.
3824
3825 2021-03-08 Tom Tromey <tom@tromey.com>
3826
3827 * expop.h (class string_operation): New.
3828 * eval.c (eval_op_string): No longer static.
3829
3830 2021-03-08 Tom Tromey <tom@tromey.com>
3831
3832 * expop.h (class internalvar_operation): New.
3833 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3834
3835 2021-03-08 Tom Tromey <tom@tromey.com>
3836
3837 * expop.h (class bool_operation): New.
3838
3839 2021-03-08 Tom Tromey <tom@tromey.com>
3840
3841 * expop.h (class register_operation): New.
3842 * eval.c (eval_op_register): No longer static.
3843 * ax-gdb.c (register_operation::do_generate_ax): New method.
3844
3845 2021-03-08 Tom Tromey <tom@tromey.com>
3846
3847 * expop.h (class last_operation): New.
3848
3849 2021-03-08 Tom Tromey <tom@tromey.com>
3850
3851 * expop.h (class func_static_var_operation): New.
3852 * eval.c (eval_op_func_static_var): No longer static.
3853
3854 2021-03-08 Tom Tromey <tom@tromey.com>
3855
3856 * expop.h (class var_entry_value_operation): New.
3857 * eval.c (eval_op_var_entry_value): No longer static.
3858
3859 2021-03-08 Tom Tromey <tom@tromey.com>
3860
3861 * expression.h (class operation) <set_outermost>: New method.
3862 * expop.h (class var_msym_value_operation): New.
3863 * eval.c (eval_op_var_msym_value): No longer static.
3864 (var_msym_value_operation::evaluate_for_address)
3865 (var_msym_value_operation::evaluate_for_sizeof)
3866 (var_msym_value_operation::evaluate_for_cast): New methods.
3867 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3868 method.
3869
3870 2021-03-08 Tom Tromey <tom@tromey.com>
3871
3872 * expop.h (class long_const_operation): New.
3873 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3874
3875 2021-03-08 Tom Tromey <tom@tromey.com>
3876
3877 * expop.h (class scope_operation): New.
3878 * eval.c (eval_op_scope): No longer static.
3879 (scope_operation::evaluate_for_address): New method.
3880 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3881
3882 2021-03-08 Tom Tromey <tom@tromey.com>
3883
3884 * expprint.c (float_const_operation::dump): New method.
3885 * expop.h (float_data): New typedef.
3886 (class float_const_operation): New.
3887
3888 2021-03-08 Tom Tromey <tom@tromey.com>
3889
3890 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3891 * ax-gdb.c (gen_expr_binop): New function.
3892 (gen_expr_structop): Likewise.
3893
3894 2021-03-08 Tom Tromey <tom@tromey.com>
3895
3896 * expprint.c (expr::dump_for_expression): New functions.
3897 * expop.h (dump_for_expression): New overloads.
3898 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3899 Update.
3900
3901 2021-03-08 Tom Tromey <tom@tromey.com>
3902
3903 * expression.h (expr::operation): New class.
3904 (expr::make_operation): New function.
3905 (expr::operation_up): New typedef.
3906 * expop.h: New file.
3907 * eval.c (operation::evaluate_for_cast)
3908 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3909 New methods.
3910 * ax-gdb.c (operation::generate_ax): New method.
3911
3912 2021-03-08 Tom Tromey <tom@tromey.com>
3913
3914 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3915 (gen_expr_binop_rest): New overload.
3916
3917 2021-03-08 Tom Tromey <tom@tromey.com>
3918
3919 * eval.c (eval_multi_subscript): New function.
3920 (evaluate_subexp_standard): Use it.
3921
3922 2021-03-08 Tom Tromey <tom@tromey.com>
3923
3924 * ada-lang.c (ada_binop_exp): New function.
3925 (ada_evaluate_subexp): Use it.
3926
3927 2021-03-08 Tom Tromey <tom@tromey.com>
3928
3929 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3930 parameters.
3931 (ada_evaluate_subexp): Use it.
3932
3933 2021-03-08 Tom Tromey <tom@tromey.com>
3934
3935 * ada-lang.c (ada_binop_minmax): New function.
3936 (ada_evaluate_subexp): Use it.
3937
3938 2021-03-08 Tom Tromey <tom@tromey.com>
3939
3940 * ada-lang.c (ada_unop_atr): New function.
3941 (ada_evaluate_subexp): Use it.
3942
3943 2021-03-08 Tom Tromey <tom@tromey.com>
3944
3945 * ada-lang.c (ada_binop_in_bounds): New function.
3946 (ada_evaluate_subexp): Use it.
3947
3948 2021-03-08 Tom Tromey <tom@tromey.com>
3949
3950 * ada-lang.c (ada_ternop_slice): New function.
3951 (ada_evaluate_subexp): Use it.
3952
3953 2021-03-08 Tom Tromey <tom@tromey.com>
3954
3955 * ada-lang.c (ada_equal_binop): New function.
3956 (ada_evaluate_subexp): Use it.
3957
3958 2021-03-08 Tom Tromey <tom@tromey.com>
3959
3960 * ada-lang.c (ada_mult_binop): New function.
3961 (ada_evaluate_subexp): Use it.
3962
3963 2021-03-08 Tom Tromey <tom@tromey.com>
3964
3965 * ada-lang.c (ada_abs): New function.
3966 (ada_evaluate_subexp): Use it.
3967
3968 2021-03-08 Tom Tromey <tom@tromey.com>
3969
3970 * ada-lang.c (ada_atr_size): New function.
3971 (ada_evaluate_subexp): Use it.
3972
3973 2021-03-08 Tom Tromey <tom@tromey.com>
3974
3975 * ada-lang.c (ada_atr_tag): New function.
3976 (ada_evaluate_subexp): Use it.
3977
3978 2021-03-08 Tom Tromey <tom@tromey.com>
3979
3980 * ada-lang.c (ada_unop_in_range): New function.
3981 (ada_evaluate_subexp): Use it.
3982
3983 2021-03-08 Tom Tromey <tom@tromey.com>
3984
3985 * ada-lang.c (ada_unop_neg): New function.
3986 (ada_evaluate_subexp): Use it.
3987
3988 2021-03-08 Tom Tromey <tom@tromey.com>
3989
3990 * ada-lang.c (eval_ternop_in_range): New function.
3991 (ada_evaluate_subexp): Use it.
3992
3993 2021-03-08 Tom Tromey <tom@tromey.com>
3994
3995 * opencl-lang.c (eval_opencl_assign): New function.
3996 (evaluate_subexp_opencl): Use it.
3997
3998 2021-03-08 Tom Tromey <tom@tromey.com>
3999
4000 * eval.c (eval_op_objc_msgcall): New function.
4001 (evaluate_subexp_standard): Use it.
4002
4003 2021-03-08 Tom Tromey <tom@tromey.com>
4004
4005 * eval.c (eval_binop_assign_modify): New function.
4006 (evaluate_subexp_standard): Use it.
4007
4008 2021-03-08 Tom Tromey <tom@tromey.com>
4009
4010 * m2-lang.c (eval_op_m2_subscript): New function.
4011 (evaluate_subexp_modula2): Use it.
4012
4013 2021-03-08 Tom Tromey <tom@tromey.com>
4014
4015 * m2-lang.c (eval_op_m2_high): New function.
4016 (evaluate_subexp_modula2): Use it.
4017
4018 2021-03-08 Tom Tromey <tom@tromey.com>
4019
4020 * eval.c (evaluate_subexp_for_address_base): New function.
4021 (evaluate_subexp_for_address): Use it.
4022 (evaluate_subexp_for_sizeof_base): New function.
4023 (evaluate_subexp_for_sizeof): Use it.
4024
4025 2021-03-08 Tom Tromey <tom@tromey.com>
4026
4027 * rust-lang.c (eval_op_rust_structop): New function.
4028 (rust_evaluate_subexp): Use it.
4029
4030 2021-03-08 Tom Tromey <tom@tromey.com>
4031
4032 * rust-lang.c (eval_op_rust_struct_anon): New function.
4033 (rust_evaluate_subexp): Use it.
4034
4035 2021-03-08 Tom Tromey <tom@tromey.com>
4036
4037 * rust-lang.c (eval_op_rust_array): New function.
4038 (rust_evaluate_subexp): Use it.
4039
4040 2021-03-08 Tom Tromey <tom@tromey.com>
4041
4042 * rust-lang.c (eval_op_rust_complement): New function.
4043 (rust_evaluate_subexp): Use it.
4044
4045 2021-03-08 Tom Tromey <tom@tromey.com>
4046
4047 * rust-lang.c (eval_op_rust_ind): New function.
4048 (rust_evaluate_subexp): Use it.
4049
4050 2021-03-08 Tom Tromey <tom@tromey.com>
4051
4052 * rust-lang.c (rust_subscript): Change parameters.
4053 (rust_evaluate_subexp): Update.
4054
4055 2021-03-08 Tom Tromey <tom@tromey.com>
4056
4057 * rust-lang.c (rust_range): Change parameters.
4058 (rust_evaluate_subexp): Update.
4059
4060 2021-03-08 Tom Tromey <tom@tromey.com>
4061
4062 * f-lang.c (eval_op_f_allocated): New function.
4063 (evaluate_subexp_f): Use it.
4064
4065 2021-03-08 Tom Tromey <tom@tromey.com>
4066
4067 * f-lang.c (fortran_require_array): New function.
4068 (evaluate_subexp_f): Use it.
4069
4070 2021-03-08 Tom Tromey <tom@tromey.com>
4071
4072 * f-lang.c (eval_op_f_kind): New function.
4073 (evaluate_subexp_f): Use it.
4074
4075 2021-03-08 Tom Tromey <tom@tromey.com>
4076
4077 * f-lang.c (eval_op_f_cmplx): New function.
4078 (evaluate_subexp_f): Use it.
4079
4080 2021-03-08 Tom Tromey <tom@tromey.com>
4081
4082 * f-lang.c (eval_op_f_modulo): New function.
4083 (evaluate_subexp_f): Use it.
4084
4085 2021-03-08 Tom Tromey <tom@tromey.com>
4086
4087 * f-lang.c (eval_op_f_floor): New function.
4088 (evaluate_subexp_f): Use it.
4089
4090 2021-03-08 Tom Tromey <tom@tromey.com>
4091
4092 * f-lang.c (eval_op_f_ceil): New function.
4093 (evaluate_subexp_f): Use it.
4094
4095 2021-03-08 Tom Tromey <tom@tromey.com>
4096
4097 * f-lang.c (eval_op_f_mod): New function.
4098 (evaluate_subexp_f): Use it.
4099
4100 2021-03-08 Tom Tromey <tom@tromey.com>
4101
4102 * f-lang.c (eval_op_f_abs): New function.
4103 (evaluate_subexp_f): Use it.
4104
4105 2021-03-08 Tom Tromey <tom@tromey.com>
4106
4107 * eval.c (eval_op_type): New function.
4108 (evaluate_subexp_standard): Use it.
4109
4110 2021-03-08 Tom Tromey <tom@tromey.com>
4111
4112 * eval.c (eval_op_postdec): New function.
4113 (evaluate_subexp_standard): Use it.
4114
4115 2021-03-08 Tom Tromey <tom@tromey.com>
4116
4117 * eval.c (eval_op_postinc): New function.
4118 (evaluate_subexp_standard): Use it.
4119
4120 2021-03-08 Tom Tromey <tom@tromey.com>
4121
4122 * eval.c (eval_op_predec): New file.
4123 (evaluate_subexp_standard): Use it.
4124
4125 2021-03-08 Tom Tromey <tom@tromey.com>
4126
4127 * eval.c (eval_op_preinc): New function.
4128 (evaluate_subexp_standard): Use it.
4129
4130 2021-03-08 Tom Tromey <tom@tromey.com>
4131
4132 * eval.c (eval_op_memval): New function.
4133 (evaluate_subexp_standard): Use it.
4134
4135 2021-03-08 Tom Tromey <tom@tromey.com>
4136
4137 * eval.c (eval_op_alignof): New function.
4138 (evaluate_subexp_standard): Use it.
4139
4140 2021-03-08 Tom Tromey <tom@tromey.com>
4141
4142 * eval.c (eval_op_ind): New function.
4143 (evaluate_subexp_standard): Use it.
4144
4145 2021-03-08 Tom Tromey <tom@tromey.com>
4146
4147 * eval.c (eval_op_lognot): New function.
4148 (evaluate_subexp_standard): Use it.
4149
4150 2021-03-08 Tom Tromey <tom@tromey.com>
4151
4152 * eval.c (eval_op_complement): New function.
4153 (evaluate_subexp_standard): Use it.
4154
4155 2021-03-08 Tom Tromey <tom@tromey.com>
4156
4157 * eval.c (eval_op_neg): New function.
4158 (evaluate_subexp_standard): Use it.
4159
4160 2021-03-08 Tom Tromey <tom@tromey.com>
4161
4162 * eval.c (eval_op_plus): New function.
4163 (evaluate_subexp_standard): Use it.
4164
4165 2021-03-08 Tom Tromey <tom@tromey.com>
4166
4167 * eval.c (eval_op_repeat): New function.
4168 (evaluate_subexp_standard): Use it.
4169
4170 2021-03-08 Tom Tromey <tom@tromey.com>
4171
4172 * eval.c (eval_op_leq): New function.
4173 (evaluate_subexp_standard): Use it.
4174
4175 2021-03-08 Tom Tromey <tom@tromey.com>
4176
4177 * eval.c (eval_op_geq): New function.
4178 (evaluate_subexp_standard): Use it.
4179
4180 2021-03-08 Tom Tromey <tom@tromey.com>
4181
4182 * eval.c (eval_op_gtr): New function.
4183 (evaluate_subexp_standard): Use it.
4184
4185 2021-03-08 Tom Tromey <tom@tromey.com>
4186
4187 * eval.c (eval_op_less): New function.
4188 (evaluate_subexp_standard): Use it.
4189
4190 2021-03-08 Tom Tromey <tom@tromey.com>
4191
4192 * eval.c (eval_op_notequal): New function.
4193 (evaluate_subexp_standard): Use it.
4194
4195 2021-03-08 Tom Tromey <tom@tromey.com>
4196
4197 * eval.c (eval_op_equal): New function.
4198 (evaluate_subexp_standard): Use it.
4199
4200 2021-03-08 Tom Tromey <tom@tromey.com>
4201
4202 * eval.c (eval_op_subscript): New function.
4203 (evaluate_subexp_standard): Use it.
4204
4205 2021-03-08 Tom Tromey <tom@tromey.com>
4206
4207 * eval.c (eval_op_binary): New function.
4208 (evaluate_subexp_standard): Use it.
4209
4210 2021-03-08 Tom Tromey <tom@tromey.com>
4211
4212 * eval.c (eval_op_sub): New function.
4213 (evaluate_subexp_standard): Use it.
4214
4215 2021-03-08 Tom Tromey <tom@tromey.com>
4216
4217 * eval.c (eval_op_add): New function.
4218 (evaluate_subexp_standard): Use it.
4219
4220 2021-03-08 Tom Tromey <tom@tromey.com>
4221
4222 * eval.c (eval_op_member): New function.
4223 (evaluate_subexp_standard): Use it.
4224
4225 2021-03-08 Tom Tromey <tom@tromey.com>
4226
4227 * eval.c (eval_op_structop_ptr): New function.
4228 (evaluate_subexp_standard): Use it.
4229
4230 2021-03-08 Tom Tromey <tom@tromey.com>
4231
4232 * eval.c (eval_op_structop_struct): New function.
4233 (evaluate_subexp_standard): Use it.
4234
4235 2021-03-08 Tom Tromey <tom@tromey.com>
4236
4237 * eval.c (eval_op_ternop): New function.
4238 (evaluate_subexp_standard): Use it.
4239
4240 2021-03-08 Tom Tromey <tom@tromey.com>
4241
4242 * eval.c (eval_op_concat): New function.
4243 (evaluate_subexp_standard): Use it.
4244
4245 2021-03-08 Tom Tromey <tom@tromey.com>
4246
4247 * eval.c (eval_op_objc_selector): New function.
4248 (evaluate_subexp_standard): Use it.
4249
4250 2021-03-08 Tom Tromey <tom@tromey.com>
4251
4252 * eval.c (eval_op_string): New function.
4253 (evaluate_subexp_standard): Use it.
4254
4255 2021-03-08 Tom Tromey <tom@tromey.com>
4256
4257 * eval.c (eval_op_register): New function.
4258 (evaluate_subexp_standard): Use it.
4259
4260 2021-03-08 Tom Tromey <tom@tromey.com>
4261
4262 * eval.c (eval_op_func_static_var): New function.
4263 (evaluate_subexp_standard): Use it.
4264
4265 2021-03-08 Tom Tromey <tom@tromey.com>
4266
4267 * eval.c (eval_op_var_msym_value): New function.
4268 (evaluate_subexp_standard): Use it.
4269
4270 2021-03-08 Tom Tromey <tom@tromey.com>
4271
4272 * eval.c (eval_op_var_entry_value): New function.
4273 (evaluate_subexp_standard): Use it.
4274
4275 2021-03-08 Tom Tromey <tom@tromey.com>
4276
4277 * eval.c (eval_op_scope): New function.
4278 (evaluate_subexp_standard): Use it.
4279
4280 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4281
4282 PR gdb/27528:
4283 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4284
4285 2021-03-06 Tom Tromey <tom@tromey.com>
4286
4287 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4288 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4289 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4290 (locate_dwz_sections, dwz_search_other_debugdirs)
4291 (dwarf2_get_dwz_file): Move to dwz.c.
4292 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4293 read.h.
4294 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4295 (dwarf2_get_dwz_file): Move from read.c.
4296
4297 2021-03-06 Tom Tromey <tom@tromey.com>
4298
4299 * debuginfod-support.h: Include scoped_fd.h.
4300
4301 2021-03-06 Tom Tromey <tom@tromey.com>
4302
4303 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4304 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4305 (get_abbrev_section_for_cu, read_attribute_value)
4306 (get_debug_line_section): Update.
4307 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4308
4309 2021-03-06 Tom Tromey <tom@tromey.com>
4310
4311 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4312 method.
4313 * dwarf2/read.c (section_is_p): Remove.
4314 (dwarf2_per_bfd::locate_sections)
4315 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4316 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4317 (dwarf2_locate_common_dwp_sections)
4318 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4319 Update.
4320
4321 2021-03-06 Tom Tromey <tom@tromey.com>
4322
4323 * xcoffread.c: Include sect-names.h.
4324 * symfile.h (struct dwarf2_section_names, struct
4325 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4326 * dwarf2/sect-names.h: New file, from symfile.h.
4327 * dwarf2/read.c: Include sect-names.h.
4328
4329 2021-03-06 Tom Tromey <tom@tromey.com>
4330
4331 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4332 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4333 (abbrev_table::read): Update.
4334 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4335 (struct abbrev_info): Reformat.
4336 <attrs>: Now an array.
4337 (struct abbrev_table) <alloc_abbrev>: Remove.
4338
4339 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4340
4341 * ctfread.c (ctf_psymtab_add_enums): New function.
4342 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4343
4344 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4345
4346 * ctfread.c (read_func_kind_type): Set up function arguments.
4347
4348 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4349 Andrew Burgess <andrew.burgess@embecosm.com>
4350
4351 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4352 includes.
4353 (riscv_csrset): New static global.
4354 (riscv_update_csrmap): New function.
4355 (riscv_iterate_over_regset_sections): Process CSRs.
4356
4357 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4358
4359 * riscv-tdep.c (riscv_feature_name_csr): Define.
4360 (riscv_feature_name_cpu): Define.
4361 (riscv_feature_name_fpu): Define.
4362 (riscv_feature_name_virtual): Define.
4363 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4364 (riscv_freg_feature): Use riscv_feature_name_fpu.
4365 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4366 (riscv_csr_feature): Use riscv_feature_name_csr.
4367 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4368
4369 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4370 Craig Blackmore <craig.blackmore@embecosm.com>
4371
4372 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4373 (ALLDEPFILES): Add riscv-none-tdep.c.
4374 * configure: Regenerate.
4375 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4376 support.
4377 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4378 * elf-none-tdep.c: New file.
4379 * elf-none-tdep.h: New file.
4380 * riscv-none-tdep.c: New file.
4381
4382 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4383 Andrew Burgess <andrew.burgess@embecosm.com>
4384
4385 * corelow.c: Add 'xml-tdesc.h' include.
4386 (core_target::read_description): Load the target description from
4387 the core file when possible.
4388 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4389 note.
4390 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4391 (gcore_elf_make_tdesc_note): New function.
4392 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4393 * linux-tdep.c (linux_make_corefile_notes): Add target description
4394 note.
4395
4396 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4397
4398 * Makefile.in (SFILES): Add gcore-elf.c.
4399 (HFILES_NO_SRCDIR): Add gcore-elf.h
4400 * configure: Regenerate.
4401 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4402 support.
4403 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4404 (struct fbsd_collect_regset_section_cb_data): Delete.
4405 (fbsd_collect_regset_section_cb): Delete.
4406 (fbsd_collect_thread_registers): Delete.
4407 (struct fbsd_corefile_thread_data): Delete.
4408 (fbsd_corefile_thread): Delete.
4409 (fbsd_make_corefile_notes): Call
4410 gcore_elf_build_thread_register_notes instead of the now deleted
4411 FreeBSD code.
4412 * gcore-elf.c: New file, the content was moved here from
4413 linux-tdep.c, functions were renamed and given minor cleanup.
4414 * gcore-elf.h: New file.
4415 * gcore.c (gcore_find_signalled_thread): Moved here from
4416 linux-tdep.c and given a new name. Minor cleanups.
4417 * gcore.h (gcore_find_signalled_thread): Declare.
4418 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4419 (struct linux_collect_regset_section_cb_data): Delete.
4420 (linux_collect_regset_section_cb): Delete.
4421 (linux_collect_thread_registers): Delete.
4422 (linux_corefile_thread): Call
4423 gcore_elf_build_thread_register_notes.
4424 (find_signalled_thread): Delete.
4425 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4426
4427 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4428
4429 PR gdb/27147
4430 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4431 process_stratum_target parameter,
4432 sparc_store_inferior_registers): update callers.
4433 * sparc-nat.c (sparc_fetch_inferior_registers,
4434 sparc_store_inferior_registers): Add process_stratum_target
4435 parameter. Switch current thread before calling
4436 sparc_supply_gregset / sparc_collect_rwindow.
4437 (sparc_store_inferior_registers): Likewise.
4438 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4439 (sparc32obsd_collect_uthread): Likewise.
4440 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4441 Add assertion.
4442 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4443 sparc64obsd_supply_uthread): Add assertion.
4444
4445 2021-03-04 Tom Tromey <tromey@adacore.com>
4446
4447 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4448 (aux_add_nonlocal_symbols): Update.
4449 (ada_add_block_symbols): Change "found_sym" to bool.
4450
4451 2021-03-03 Tom Tromey <tromey@adacore.com>
4452
4453 * ada-lang.c (ada_resolve_function): Update comment.
4454 (is_nonfunction, add_symbols_from_enclosing_procs)
4455 (remove_extra_symbols): Likewise.
4456 (struct match_data): Add constructor, initializers.
4457 (add_nonlocal_symbols): Remove memset.
4458 (aux_add_nonlocal_symbols): Update comment.
4459 (ada_add_block_renamings, add_nonlocal_symbols)
4460 (ada_add_all_symbols): Likewise.
4461 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4462
4463 2021-03-02 Tom Tromey <tromey@adacore.com>
4464
4465 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4466 (cast_to_gnat_encoded_fixed_point_type): Remove.
4467 (ada_value_cast, ada_evaluate_subexp): Update.
4468 (gnat_encoded_fixed_point_type_info)
4469 (ada_is_gnat_encoded_fixed_point_type)
4470 (gnat_encoded_fixed_point_delta)
4471 (gnat_encoded_fixed_point_scaling_factor): Remove.
4472 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4473 (gnat_encoded_fixed_point_delta)
4474 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4475 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4476 (ada_print_type): Update.
4477 * ada-valprint.c (ada_value_print_num): Update.
4478 * dwarf2/read.c (ada_get_gnat_encoded_number)
4479 (ada_get_gnat_encoded_ratio): New functions.
4480 (finish_fixed_point_type): Use them. Add parameters.
4481 (GNAT_FIXED_POINT_SUFFIX): New define.
4482 (gnat_encoded_fixed_point_type_info): New function.
4483 (read_base_type): Handle gnat encodings.
4484
4485 2021-03-02 Tom Tromey <tromey@adacore.com>
4486
4487 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4488 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4489 std::string.
4490 (GROW_VECT): Remove.
4491 (grow_vect): Remove.
4492
4493 2021-03-02 Tom Tromey <tromey@adacore.com>
4494
4495 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4496 * ada-lang.c (resolve_subexp): Update.
4497 (ada_resolve_function): Accept a vector.
4498 (is_nonfunction, add_defn_to_vec)
4499 (add_symbols_from_enclosing_procs): Likewise.
4500 (num_defns_collected, defns_collected): Remove.
4501 (remove_extra_symbols): Return a vector.
4502 (remove_irrelevant_renamings): Return void.
4503 (ada_add_local_symbols): Accept a vector.
4504 (struct match_data) <obstackp>: Remove.
4505 <resultp>: New member.
4506 (aux_add_nonlocal_symbols): Update.
4507 (ada_add_block_renamings, add_nonlocal_symbols)
4508 (ada_add_all_symbols): Accept a vector.
4509 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4510 vector.
4511 (ada_lookup_symbol): Update.
4512 (ada_add_block_symbols): Accept a vector.
4513 (get_var_value, iterate_over_symbols): Update.
4514 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4515 Update.
4516
4517 2021-03-02 Tom Tromey <tromey@adacore.com>
4518
4519 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4520
4521 2021-03-02 Tom Tromey <tromey@adacore.com>
4522
4523 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4524 auto_obstack.
4525 <root>: Initialize.
4526 (ada_pspace_data): Remove destructor.
4527 <sym_cache>: Now a unique_ptr.
4528 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4529 (ada_get_symbol_cache): Use 'new'.
4530 (ada_clear_symbol_cache): Rewrite.
4531
4532 2021-03-02 Tom Tromey <tromey@adacore.com>
4533
4534 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4535 is null.
4536
4537 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4538
4539 PR gdb/27393
4540 * source.c (add_path): Skip empty dirnames.
4541
4542 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4543
4544 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4545 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4546
4547 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4548
4549 PR gdb/26861
4550 * target.c (target_mourn_inferior): Only compare pids in
4551 target_mourn_inferior.
4552
4553 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4554
4555 PR gdb/26819
4556 * remote.c (remote_target::start_remote): Ensure the single
4557 thread, automatically added for remote targets without the
4558 concept of threading, is initially in set to the "resumed"
4559 state.
4560 * remote.c (remote_target::add_current_inferior_and_thread):
4561 Add return value - return the main thread.
4562
4563 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4564
4565 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4566 (mi_tsv_created): Likewise.
4567 (mi_tsv_deleted): Likewise.
4568
4569 2021-02-25 Tom de Vries <tdevries@suse.de>
4570
4571 PR symtab/27354
4572 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4573 section_kind for &dwo_file->sections.info.
4574
4575 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4576
4577 PR fortran/26155
4578 * f-lang.c (fortran_argument_convert): Delete declaration.
4579 (fortran_prepare_argument): New function.
4580 (evaluate_subexp_f): Move logic to new function
4581 fortran_prepare_argument.
4582
4583 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4584
4585 * f-exp.y (f77_keywords): Add 'associated'.
4586 * f-lang.c (fortran_associated): New function.
4587 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4588 (operator_length_f): Likewise.
4589 (print_unop_or_binop_subexp_f): New function.
4590 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4591 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4592 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4593 (operator_check_f): Likewise.
4594 * std-operator.def: Add FORTRAN_ASSOCIATED.
4595
4596 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4597
4598 * f-exp.y (fortran_operators): Add ".xor.".
4599
4600 2021-02-24 Tom de Vries <tdevries@suse.de>
4601
4602 PR symtab/27336
4603 * dwarf2/attribute.c (attribute::form_is_signed): New function
4604 factored out of ...
4605 * dwarf2/attribute.h (attribute::as_signed): ... here.
4606 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4607 (attribute::form_is_signed): Declare.
4608 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4609 for DW_AT_decl_file.
4610
4611 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4612
4613 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4614 order for <sys/ptrace.h> and <asm/ptrace.h>.
4615
4616 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4617
4618 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4619 <sys/ptrace.h>.
4620
4621 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4622
4623 * exec.c (set_section_command): Move variable declarations into
4624 the function body, and use std::string instead of a fixed size
4625 buffer.
4626
4627 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4628
4629 * exec.c (exec_target::get_section_table): Delete member function.
4630 (section_table_read_available_memory): Use current_top_target, not
4631 just the exec_ops target.
4632 * target-delegates.c: Regenerate.
4633 * target.c (default_get_section_table): New function.
4634 * target.h (target_ops::get_section_table): Change default
4635 behaviour to call default_get_section_table.
4636 (default_get_section_table): Declare.
4637
4638 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4639
4640 * exec.c (exec_target::close): Call new clear_target_sections
4641 function.
4642 (program_space::add_target_sections): Update name of member
4643 variable.
4644 (program_space::add_target_sections): Update name of member
4645 variable.
4646 (program_space::remove_target_sections): Likewise.
4647 (exec_one_fork): Use new target_sections member function.
4648 (exec_target::get_section_table): Likewise.
4649 (exec_target::files_info): Likewise.
4650 (set_section_command): Likewise.
4651 (exec_set_section_address): Likewise.
4652 (exec_target::has_memory): Use new target_sections member
4653 function.
4654 * progspace.h (program_space::clear_target_sections): New member
4655 function.
4656 (program_space::target_sections): Rename member variable to
4657 m_target_sections, replace with a new member function.
4658 (program_space::m_target_sections): New member variable.
4659 * solib-dsbt.c (scan_dyntag): Use new member function.
4660 * solib-svr4.c (scan_dyntag): Likewise.
4661
4662 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4663
4664 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4665 return type const.
4666 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4667 (section_table_read_available_memory): Make local const.
4668 (exec_target::xfer_partial): Make local const.
4669 (print_section_info): Make parameter const.
4670 * gdb/exec.h (print_section_info): Likewise.
4671 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4672 const.
4673 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4674 Likewise.
4675 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4676 Likewise.
4677 * gdb/s390-tdep.c (s390_load): Likewise.
4678 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4679 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4680 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4681 Rename to...
4682 (target_debug_print_const_target_section_table_p): ...this.
4683 * gdb/target-delegates.c: Regenerate.
4684 * gdb/target.c (target_get_section_table): Make return type const.
4685 (target_section_by_addr): Likewise. Also make some locals const.
4686 (memory_xfer_partial_1): Make some locals const.
4687 * gdb/target.h (struct target_ops) <get_section_table>: Make
4688 return type const.
4689 (target_section_by_addr): Likewise.
4690 (target_get_section_table): Likewise.
4691
4692 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4693
4694 * NEWS: Mention new 'maint info target-sections' command.
4695 * maint.c (maintenance_info_target_sections): New function.
4696 (_initialize_maint_cmds): Register new command.
4697
4698 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4699
4700 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4701 (riscv_features_from_bfd): ...this. Change parameter type to
4702 'bfd*', and update as required.
4703 (riscv_find_default_target_description): Update call to
4704 riscv_features_from_bfd. Select a default xlen based on
4705 info.bfd_arch_info.
4706 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4707
4708 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4709
4710 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4711 dynamic types in UNOP_IND.
4712
4713 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4714
4715 PR gdb/26828
4716 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4717 Instantiate queue.
4718 (~dwarf2_queue_guard): Clear queue.
4719 (queue_comp_unit): Assert that queue is
4720 instantiated.
4721 (process_queue): Adjust.
4722 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4723
4724 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4725
4726 PR gdb/26828
4727 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4728 to decide whether or not to enqueue it for expansion.
4729 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4730 after calling maybe_queue_comp_unit.
4731
4732 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4733
4734 * linux-nat.c (linux_nat_filter_event): Return void.
4735
4736 2021-02-22 Tom Tromey <tromey@adacore.com>
4737
4738 * solib-svr4.c (enable_break): Update.
4739 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4740 type.
4741 (target_bfd_reopen): Change parameter type.
4742 * bfd-target.h (target_bfd_reopen): Change parameter type.
4743
4744 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4745
4746 * thread.c (add_thread_silent): Add assert.
4747 (find_thread_ptid): Add assert.
4748
4749 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4750
4751 PR gdb/27435
4752 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4753 (target_unpush_up): Likewise.
4754 * procfs.c (procfs_target::attach): Push target early. Use
4755 target_unpush_up to unpush target in case of error.
4756 * target.h (struct target_unpusher): Move here.
4757 (target_unpush_up): Likewise.
4758
4759 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4760
4761 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4762 (which in turn includes <gnulib/config.h>) before include
4763 of <signal.h>.
4764
4765 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4766
4767 PR 27158
4768 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4769 (decode_j_type_insn): Likewise.
4770 (decode_cj_type_insn): Likewise.
4771 (decode_b_type_insn): Likewise.
4772 (decode): Likewise.
4773
4774 2021-02-18 Tom Tromey <tom@tromey.com>
4775
4776 * expression.h (struct expression) <evaluate>: Declare method.
4777 * eval.c (evaluate_subexp): Simplify.
4778 (expression::evaluate): New method.
4779 (evaluate_expression, evaluate_type): Use expression::evaluate.
4780
4781 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4782
4783 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4784 to accessing it.
4785 (ada_lookup_name_info): Likewise.
4786
4787 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4788
4789 * aclocal.m4: Regenerate.
4790
4791 2021-02-12 Tom de Vries <tdevries@suse.de>
4792
4793 PR threads/26228
4794 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4795 (lin_thread_signals): New static var.
4796 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4797 New function.
4798 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4799 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4800 Declare.
4801 * linux-thread-db.c (check_thread_signals): Use
4802 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4803
4804 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4805
4806 * f-exp.y (f77_keywords): Add allocated.
4807 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4808 (operator_length_f): Likewise.
4809 (print_subexp_f): Likewise.
4810 (dump_subexp_body_f): Likewise.
4811 (operator_check_f): Likewise.
4812 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4813
4814 2021-02-11 Tom de Vries <tdevries@suse.de>
4815
4816 PR symtab/27353
4817 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4818 Return true for DW_FORM_strx.
4819
4820 2021-02-11 Tom Tromey <tromey@adacore.com>
4821
4822 PR gdb/27383:
4823 * parse.c (write_exp_symbol_reference): Write sym.block.
4824
4825 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4826
4827 * NEWS: Mention changes to 'maint info sections'.
4828 * maint.c (match_substring): Return a bool, fix whitespace issue.
4829 (struct single_bfd_flag_info): New struct.
4830 (bfd_flag_info): New static global.
4831 (match_bfd_flags): Return a bool, use bfd_flag_info.
4832 (print_bfd_flags): Use bfd_flag_info.
4833 (maint_print_section_info): Delete trailing whitespace.
4834 (struct maint_info_sections_opts): New struct.
4835 (maint_info_sections_option_defs): New static global.
4836 (maint_info_sections_completer): New function.
4837 (maintenance_info_sections): Use option parsing mechanism.
4838 (_initialize_maint_cmds): Update command help text for 'maint info
4839 sections' and register a command completer.
4840
4841 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4842
4843 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4844 functionality merged into...
4845 (maint_print_all_sections): ...this new function.
4846 (maintenance_info_sections): Make use of maint_print_all_sections,
4847 allow all objects to be printed even where there's no executable.
4848
4849 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4850
4851 * breakpoint.c (resolve_sal_pc): Make use of
4852 bound_minimal_symbol::obj_section.
4853 * maint.c (maintenance_translate_address): Likewise.
4854 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4855 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4856 member function.
4857 * printcmd.c (info_address_command): Make use of
4858 bound_minimal_symbol::obj_section.
4859
4860 2021-02-11 Alan Modra <amodra@gmail.com>
4861
4862 * arm-symbian-tdep.c: Delete.
4863 * NEWS: Mention arm-symbian removal.
4864 * Makefile.in: Remove arm-symbian-tdep entries.
4865 * configure.tgt: Remove arm*-*-symbianelf*.
4866 * doc/gdb.texinfo: Remove mention of SymbianOS.
4867 * osabi.c (gdb_osabi_names): Remove "Symbian".
4868 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4869 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4870 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4871 handling.
4872 * testsuite/gdb.base/dup-sect.exp: Likewise.
4873 * testsuite/gdb.base/long_long.exp: Likewise.
4874 * testsuite/gdb.base/solib-weak.exp: Likewise.
4875 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4876 * testsuite/gdb.python/py-section-script.exp: Likewise.
4877 * testsuite/lib/dwarf.exp: Likewise.
4878 * testsuite/lib/gdb.exp: Likewise.
4879
4880 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4881
4882 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4883 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4884 (one_or_two_args): New pattern.
4885 (f77_keywords): Add lbound and ubound.
4886 * f-lang.c (fortran_bounds_all_dims): New function.
4887 (fortran_bounds_for_dimension): New function.
4888 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4889 (operator_length_f): Likewise.
4890 (print_subexp_f): Likewise.
4891 (dump_subexp_body_f): Likewise.
4892 (operator_check_f): Likewise.
4893 * std-operator.def (FORTRAN_LBOUND): Define.
4894 (FORTRAN_UBOUND): Define.
4895
4896 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4897
4898 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4899 and set_section_index member functions where appropriate.
4900 * coffread.c (coff_symtab_read): Likewise.
4901 (process_coff_symbol): Likewise.
4902 * ctfread.c (set_symbol_address): Likewise.
4903 * dwarf2/read.c (add_partial_symbol): Likewise.
4904 (var_decode_location): Likewise.
4905 * language.c: Likewise.
4906 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4907 (compact_minimal_symbols): Likewise.
4908 (minimal_symbol_upper_bound): Likewise.
4909 * objfiles.c (relocate_one_symbol): Likewise.
4910 * psympriv.h (partial_symbol::obj_section): Likewise.
4911 (partial_symbol::address): Likewise.
4912 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4913 * stabsread.c (scan_file_globals): Likewise.
4914 * symmisc.c (dump_msymbols): Likewise.
4915 * symtab.c (general_symbol_info::obj_section): Likewise.
4916 (fixup_section): Likewise.
4917 (get_msymbol_address): Likewise.
4918 * symtab.h (general_symbol_info::section): Rename to...
4919 (general_symbol_info::m_section): ...this.
4920 (general_symbol_info::set_section_index): New member function.
4921 (general_symbol_info::section_index): Likewise.
4922 (SYMBOL_SECTION): Delete.
4923 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4924 set_section_index member functions where appropriate.
4925 (MSYMBOL_SECTION): Delete.
4926 (symbol::symbol): Update to initialize 'm_section'.
4927 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4928 (process_xcoff_symbol): Likewise.
4929
4930 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4931
4932 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4933 MSYMBOL_OBJ_SECTION.
4934 * findvar.c (language_defn::read_var_value): Likewise.
4935 * infcmd.c (jump_command): Likewise.
4936 * linespec.c (minsym_found): Likewise.
4937 * maint.c (maintenance_translate_address): Likewise.
4938 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4939 (minimal_symbol_upper_bound): Likewise.
4940 * parse.c (find_minsym_type_and_address): Likewise.
4941 (operator_check_standard): Likewise.
4942 * printcmd.c (info_address_command): Likewise.
4943 * symmisc.c (dump_msymbols): Likewise.
4944 (print_symbol): Likewise.
4945 * symtab.c (general_symbol_info::obj_section): Define new
4946 function.
4947 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4948 (find_pc_sect_compunit_symtab): Likewise.
4949 (find_function_start_sal): Likewise.
4950 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4951 MSYMBOL_OBJ_SECTION.
4952 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4953 function.
4954 (SYMBOL_OBJ_SECTION): Delete.
4955 (MSYMBOL_OBJ_SECTION): Delete.
4956
4957 2021-02-09 Tom Tromey <tom@tromey.com>
4958
4959 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4960
4961 2021-02-09 Tom de Vries <tdevries@suse.de>
4962
4963 PR symtab/27341
4964 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4965 construct an array type. Add assert to ensure that element_type is
4966 not being modified.
4967
4968 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4969
4970 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4971 (gcore_collect_regset_section_cb): Delete.
4972 (gcore_collect_thread_registers): Delete.
4973 (gcore_build_thread_register_notes): Delete.
4974 (gcore_find_signalled_thread): Delete.
4975 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4976 'gdbarch' and 'thread_info' declarations.
4977 (gcore_build_thread_register_notes): Delete declaration.
4978 (gcore_find_signalled_thread): Likewise.
4979 * fbsd-tdep.c: Remove 'gcore.h' include.
4980 (struct fbsd_collect_regset_section_cb_data): New struct.
4981 (fbsd_collect_regset_section_cb): New function.
4982 (fbsd_collect_thread_registers): New function.
4983 (struct fbsd_corefile_thread_data): New struct.
4984 (fbsd_corefile_thread): New function.
4985 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4986 * linux-tdep.c: Remove 'gcore.h' include.
4987 (struct linux_collect_regset_section_cb_data): New struct.
4988 (linux_collect_regset_section_cb): New function.
4989 (linux_collect_thread_registers): New function.
4990 (linux_corefile_thread): Call Linux specific code.
4991 (find_signalled_thread): New function.
4992 (linux_make_corefile_notes): Call find_signalled_thread.
4993
4994 2021-02-09 Tom Tromey <tromey@adacore.com>
4995
4996 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4997 not_lval value.
4998 * value.c (value_contents_copy_raw): Now static.
4999 * value.h (value_contents_copy_raw): Don't declare.
5000
5001 2021-02-09 Tom Tromey <tromey@adacore.com>
5002
5003 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5004 fields.
5005
5006 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
5007
5008 PR tdep/27369
5009 * arc-linux-tdep.c (handle_atomic_sequence): New.
5010 (arc_linux_software_single_step): Call handle_atomic_sequence().
5011
5012 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5015 function.
5016 (REQUIRE_WINDOW): Call is_valid member function.
5017 (REQUIRE_WINDOW_FOR_SETTER): New define.
5018 (gdbpy_tui_is_valid): Call is_valid member function.
5019 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5020 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5021 tui_active too.
5022 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5023 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5024 the function.
5025
5026 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5027
5028 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5029 for the title is not nullptr.
5030
5031 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5032
5033 * tui-layout.c (saved_tui_windows): Delete.
5034 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5035 call new get_windows member function instead.
5036 (tui_get_window_by_name): Check in tui_windows.
5037 (tui_layout_window::apply): Don't add to tui_windows.
5038 * tui-layout.h (tui_layout_base::get_windows): New member function.
5039 (tui_layout_window::get_windows): Likewise.
5040 (tui_layout_split::get_windows): Likewise.
5041
5042 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5043
5044 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5045 of the window objects.
5046
5047 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5048
5049 * python/python.c (gdbpy_print_stack): Reformat an error message.
5050
5051 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5052
5053 * tui/tui-interp.c (tui_command_line_handler): New function.
5054 (tui_interp::resume): Register tui_command_line_handler as the
5055 input_handler.
5056 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5057 function.
5058 (tui_getc_1): Delete handling of '\n' and '\r'.
5059 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5060
5061 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5062
5063 * tui/tui-regs.c (tui_data_window::display_registers_from):
5064 Mark invisible register sub windows.
5065 (tui_data_window::check_register_values): Ignore invisible
5066 register sub windows.
5067
5068 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5069
5070 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5071 n_spaces with a negative value.
5072
5073 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5074
5075 * tui/tui-regs.c (tui_data_window::display_registers_from):
5076 Add refresh_window call.
5077
5078 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5079
5080 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5081
5082 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5083
5084 * symmisc.c (std_in, std_out, std_err): Remove.
5085 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5086
5087 2021-02-05 Tom de Vries <tdevries@suse.de>
5088
5089 PR breakpoints/27330
5090 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5091 glibc object file has debug info.
5092
5093 2021-02-05 Tom de Vries <tdevries@suse.de>
5094
5095 PR symtab/27333
5096 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5097
5098 2021-02-05 Tom de Vries <tdevries@suse.de>
5099
5100 PR breakpoints/27313
5101 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5102 syscall numbers.
5103
5104 2021-02-05 Tom Tromey <tom@tromey.com>
5105
5106 * compile/compile-c-support.c (get_compile_context)
5107 (c_get_compile_context, cplus_get_compile_context): Change return
5108 type.
5109 * language.c (language_defn::get_compile_instance): New method.
5110 * language.h (language_defn::get_compile_instance): Change return
5111 type. No longer inline.
5112 * c-lang.c (c_language::get_compile_instance): Change return type.
5113 (cplus_language::get_compile_instance): Change return type.
5114 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5115 Change return type.
5116 * compile/compile.c (compile_to_object): Update.
5117
5118 2021-02-05 Tom Tromey <tom@tromey.com>
5119
5120 * parser-defs.h (write_exp_symbol_reference): Declare.
5121 * parse.c (write_exp_symbol_reference): New function.
5122 * p-exp.y (variable): Use write_exp_symbol_reference.
5123 * m2-exp.y (variable): Use write_exp_symbol_reference.
5124 * f-exp.y (variable): Use write_exp_symbol_reference.
5125 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5126 * c-exp.y (variable): Use write_exp_symbol_reference.
5127
5128 2021-02-05 Tom de Vries <tdevries@suse.de>
5129
5130 PR exp/27265
5131 * valarith.c (complex_binop): Throw an error if complex type can't
5132 be created.
5133
5134 2021-02-05 Tom de Vries <tdevries@suse.de>
5135
5136 PR symtab/27307
5137 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5138 return.
5139
5140 2021-02-05 Tom de Vries <tdevries@suse.de>
5141
5142 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5143
5144 2021-02-04 Mike Frysinger <vapier@gentoo.org>
5145
5146 * configure.tgt (riscv*-*-*): Set gdb_sim.
5147
5148 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5149
5150 * target.c (target_is_non_stop_p): Return bool.
5151 * target.h (target_is_non_stop_p): Return bool.
5152
5153 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * record-full.c (record_full_async_inferior_event_handler):
5156 Don't clear async event handler.
5157 (record_full_base_target::wait): Clear async event handler at
5158 beginning.
5159
5160 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5161
5162 * record-btrace.c (record_btrace_handle_async_inferior_event):
5163 Don't clear async event handler.
5164 (record_btrace_target::wait): Clear async event handler at
5165 beginning.
5166
5167 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5168
5169 * remote.c (remote_target::wait): Clear async event handler at
5170 beginning, mark if needed at the end.
5171 (remote_async_inferior_event_handler): Don't set or clear async
5172 event handler.
5173
5174 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5175
5176 * async-event.h (async_event_handler_func): Add documentation.
5177 * async-event.c (check_async_event_handlers): Don't clear
5178 async_event_handler ready flag.
5179 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5180 flag.
5181 * record-btrace.c (record_btrace_handle_async_inferior_event):
5182 Likewise.
5183 * record-full.c (record_full_async_inferior_event_handler):
5184 Likewise.
5185 * remote-notif.c (remote_async_get_pending_events_handler):
5186 Likewise.
5187 * remote.c (remote_async_inferior_event_handler): Likewise.
5188
5189 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5190
5191 * infrun.c (handle_inferior_event): Move stop_soon variable to
5192 inner scope.
5193
5194 2021-02-03 Pedro Alves <pedro@palves.net>
5195
5196 * infcmd.c (detach_command): Hold strong reference to target, and
5197 if all-stop on entry, restart threads on exit.
5198 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5199 (restart_stepped_thread): ... this new function. Also handle
5200 trap_expected.
5201 (restart_after_all_stop_detach): New function.
5202 * infrun.h (restart_after_all_stop_detach): Declare.
5203
5204 2021-02-03 Pedro Alves <pedro@palves.net>
5205
5206 * infrun.c (struct step_over_info): Initialize fields.
5207 (prepare_for_detach): Handle ongoing in-line step over.
5208
5209 2021-02-03 Pedro Alves <pedro@palves.net>
5210
5211 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5212 here...
5213 * remote.c (remote_target::remote_detach_1): ... and here ...
5214 * target.c (target_detach): ... instead of here.
5215 * target.h (target_ops::detach): Add comment.
5216
5217 2021-02-03 Pedro Alves <pedro@palves.net>
5218
5219 * infrun.c (struct wait_one_event): Move higher up.
5220 (prepare_for_detach): Abort in-progress displaced steps instead of
5221 letting them complete.
5222 (handle_one): If the inferior is detaching, don't add the thread
5223 back to the global step-over chain.
5224 (restart_threads): Don't restart threads if detaching.
5225 (handle_signal_stop): Remove inferior::detaching reference.
5226
5227 2021-02-03 Pedro Alves <pedro@palves.net>
5228
5229 * infrun.c (prepare_for_detach): Don't release scoped_restore
5230 before returning.
5231
5232 2021-02-03 Pedro Alves <pedro@palves.net>
5233
5234 * infrun.c (handle_one): New function, factored out from ...
5235 (stop_all_threads): ... here.
5236
5237 2021-02-03 Pedro Alves <pedro@palves.net>
5238
5239 * remote.c (remote_notif_stop_ack): Don't error out on
5240 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5241 (remote_target::discard_pending_stop_replies): Don't delete
5242 in-flight notification; instead, clear its contents.
5243
5244 2021-02-03 Pedro Alves <pedro@palves.net>
5245
5246 * remote.c (extended_remote_target::attach): Set target async in
5247 the target-non-stop path too.
5248
5249 2021-02-03 Pedro Alves <pedro@palves.net>
5250
5251 PR gdb/27055
5252 * infrun.c (handle_signal_stop): Move main context_switch call
5253 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5254
5255 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5256
5257 * NEWS (Changed commands): Add entry for the behavior change of
5258 the inferior command.
5259 * inferior.c (inferior_command): When no argument is given to the
5260 inferior command, display info about the currently selected
5261 inferior.
5262
5263 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5264
5265 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5266 a sect_offset.
5267 (read_attribute_reprocess): Adjust.
5268
5269 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5270
5271 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5272 <gnu_ranges_base>: ... this...
5273 <rnglists_base>: ... and this.
5274 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5275 <gnu_ranges_base>: ... this...
5276 <rnglists_base>: ... and this.
5277 (read_cutu_die_from_dwo): Adjust
5278 (dwarf2_get_pc_bounds): Adjust
5279 (dwarf2_record_block_ranges): Adjust.
5280 (read_full_die_1): Adjust
5281 (partial_die_info::read): Adjust.
5282 (read_rnglist_index): Adjust.
5283
5284 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5285
5286 PR gdb/26813
5287 * dwarf2/read.c (read_loclists_rnglists_header): Add
5288 header_offset parameter and use it.
5289 (read_loclist_index): Read header of the current contribution,
5290 not the one at the beginning of the section.
5291 (read_rnglist_index): Likewise.
5292
5293 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5294
5295 PR gdb/26813
5296 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5297 requires_reprocessing flag.
5298 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5299 DW_FORM_loclistx.
5300 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5301 and DW_FORM_loclistx.
5302 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5303 instead of set_address for DW_FORM_loclistx and
5304 DW_FORM_rnglistx.
5305
5306 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5307
5308 * dwarf2/read.c (read_loclist_index): Remove bound check for
5309 start of offset.
5310 (read_rnglist_index): Likewise.
5311
5312 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5313
5314 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5315 of the offset.
5316
5317 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5318
5319 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5320
5321 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5322
5323 * dwarf2/read.c (read_loclist_index): Change complaints into
5324 errors.
5325
5326 2021-02-02 Tom de Vries <tdevries@suse.de>
5327
5328 PR symtab/24620
5329 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5330 psymtab == nullptr.
5331
5332 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5333
5334 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5335 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5336 here from linux-tdep.c and given a new name. Minor cleanups.
5337 (gcore_collect_regset_section_cb): Likewise.
5338 (gcore_collect_thread_registers): Likewise.
5339 (gcore_build_thread_register_notes): Likewise.
5340 (gcore_find_signalled_thread): Likewise.
5341 * gcore.h (gcore_build_thread_register_notes): Declare.
5342 (gcore_find_signalled_thread): Declare.
5343 * fbsd-tdep.c: Add 'gcore.h' include.
5344 (struct fbsd_collect_regset_section_cb_data): Delete.
5345 (fbsd_collect_regset_section_cb): Delete.
5346 (fbsd_collect_thread_registers): Delete.
5347 (struct fbsd_corefile_thread_data): Delete.
5348 (fbsd_corefile_thread): Delete.
5349 (fbsd_make_corefile_notes): Call
5350 gcore_build_thread_register_notes instead of the now deleted
5351 FreeBSD code.
5352 * linux-tdep.c: Add 'gcore.h' include.
5353 (struct linux_collect_regset_section_cb_data): Delete.
5354 (linux_collect_regset_section_cb): Delete.
5355 (linux_collect_thread_registers): Delete.
5356 (linux_corefile_thread): Call
5357 gcore_build_thread_register_notes.
5358 (find_signalled_thread): Delete.
5359 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5360
5361 2021-01-29 Tom de Vries <tdevries@suse.de>
5362
5363 PR breakpoints/26063
5364 * infrun.c (process_event_stop_test): Reset
5365 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5366 changed.
5367
5368 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5369
5370 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5371 assert. Extend the header comment.
5372
5373 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5374
5375 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5376 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5377 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5378 (tui_locator_win_info_ptr): Delete declaration.
5379 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5380 (tui_disasm_window::set_contents): Fetch state from tui_location
5381 global.
5382 (tui_get_begin_asm_address): Likewise.
5383 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5384 for locator window.
5385 (get_locator_window): Delete.
5386 (initialize_known_windows): Treat locator window just like all the
5387 rest.
5388 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5389 (tui_source_window::set_contents): Fetch state from tui_location
5390 global.
5391 (tui_source_window::showing_source_p): Likewise.
5392 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5393 (_locator): Delete.
5394 (tui_locator_win_info_ptr): Delete.
5395 (tui_locator_window::make_status_line): Fetch state from
5396 tui_location global.
5397 (tui_locator_window::rerender): Remove check of 'handle',
5398 reindent function body.
5399 (tui_locator_window::set_locator_fullname): Delete.
5400 (tui_locator_window::set_locator_info): Delete.
5401 (tui_update_locator_fullname): Delete.
5402 (tui_show_frame_info): Likewise.
5403 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5404 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5405 tui/tui-location.h and renamed to
5406 tui_location_tracker::set_location.
5407 (tui_locator_window::set_locator_fullname): Moved to
5408 tui/tui-location.h and renamed to
5409 tui_location_tracker::set_fullname.
5410 (tui_locator_window::full_name): Delete.
5411 (tui_locator_window::proc_name): Delete.
5412 (tui_locator_window::line_no): Delete.
5413 (tui_locator_window::addr): Delete.
5414 (tui_locator_window::gdbarch): Delete.
5415 (tui_update_locator_fullname): Delete declaration.
5416 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5417 for locator window.
5418 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5419 (tui_display_main): Call function on tui_location directly.
5420 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5421 * tui/tui-location.c: New file.
5422 * tui/tui-location.h: New file.
5423
5424 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5425
5426 * gdbtypes.h (get_type_arch): Rename to...
5427 (struct type) <arch>: ... this, update all users.
5428
5429 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5430
5431 * gdbtypes.h (struct type) <arch>: Rename to...
5432 <arch_owner>: ... this, update all users.
5433 <objfile>: Rename to...
5434 <objfile_owner>: ... this, update all users.
5435
5436 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5437
5438 * gdbcmd.h (execute_command_to_string): Update comment.
5439 * top.c (execute_command_to_string): Update header comment.
5440
5441 2021-01-28 Tom de Vries <tdevries@suse.de>
5442
5443 PR breakpoints/27205
5444 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5445 (create_longjmp_master_breakpoint_names): New function, factored out
5446 of ...
5447 (create_longjmp_master_breakpoint): ... here. Only try to install
5448 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5449 breakpoint in libc.so failed.
5450
5451 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5452
5453 PR gdb/27133
5454 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5455 unique_ptr is released when the wrapped pointer is kept for later
5456 use.
5457
5458 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5459
5460 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5461 BLR and BR instructions.
5462 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5463 (enum aarch64_masks): New.
5464
5465 2021-01-26 Tom Tromey <tromey@adacore.com>
5466
5467 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5468 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5469 (windows_init_thread_list, windows_nat::handle_load_dll)
5470 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5471 (windows_nat_target::resume)
5472 (windows_nat_target::get_windows_debug_event)
5473 (windows_nat_target::interrupt, windows_xfer_memory)
5474 (windows_nat_target::close): Update.
5475 * nat/windows-nat.c (DEBUG_EVENTS): Use
5476 debug_prefixed_printf_cond.
5477 (matching_pending_stop, fetch_pending_stop)
5478 (continue_last_debug_event): Update.
5479
5480 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5481
5482 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5483 elfcore_write_file_note.
5484
5485 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5486
5487 * arc-tdep.c (arc_add_reggroups): New function.
5488 (arc_gdbarch_init): Call arc_add_reggroups.
5489
5490 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5491
5492 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5493
5494 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5495 Simon Marchi <simon.marchi@polymtl.ca>
5496 Tom de Vries <tdevries@suse.de>
5497
5498 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5499 DW_AT_ranges.
5500
5501 2021-01-25 Tom Tromey <tromey@adacore.com>
5502
5503 * dwarf2/read.c (get_mpz): New function.
5504 (get_dwarf2_rational_constant): Use it.
5505
5506 2021-01-25 Tom Tromey <tromey@adacore.com>
5507
5508 * ada-lang.c (resolve_subexp): Handle array context.
5509
5510 2021-01-23 Tom Tromey <tom@tromey.com>
5511
5512 PR compile/25575
5513 * compile/compile-loc2c.c (note_register): New function.
5514 (pushf_register_address, pushf_register): Use it.
5515
5516 2021-01-23 Tom Tromey <tom@tromey.com>
5517
5518 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5519 Change type of "registers_used".
5520 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5521 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5522 (locexpr_generate_c_location, loclist_generate_c_location): Change
5523 type of "registers_used".
5524 * compile/compile.h (compile_dwarf_expr_to_c)
5525 (compile_dwarf_bounds_to_c): Update.
5526 * compile/compile-loc2c.c (pushf_register_address)
5527 (pushf_register, do_compile_dwarf_expr_to_c)
5528 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5529 of "registers_used".
5530 * compile/compile-c.h (generate_c_for_variable_locations):
5531 Update.
5532 * compile/compile-c-symbols.c (generate_vla_size)
5533 (generate_c_for_for_one_variable): Change type of
5534 "registers_used".
5535 (generate_c_for_variable_locations): Return std::vector.
5536 * compile/compile-c-support.c (generate_register_struct): Change
5537 type of "registers_used".
5538 (compute): Update.
5539
5540 2021-01-23 Tom Tromey <tom@tromey.com>
5541
5542 * compile/compile-internal.h (class compile_instance)
5543 <set_arguments>: Change return type.
5544 * compile/compile.c (compile_to_object): Remove call to reset.
5545 (compile_instance::set_arguments): Change return type.
5546
5547 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5548
5549 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5550 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5551
5552 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5553
5554 * Makefile.in (SELFTESTS_SRCS): Add
5555 unittests/gdb_tilde_expand-selftests.c.
5556 * unittests/gdb_tilde_expand-selftests.c: New file.
5557
5558 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5559
5560 PR cli/25956
5561 * NEWS: Mention new command.
5562 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5563 (version_style): Define.
5564 (cli_style_option::cli_style_option): Add intensity parameter, and
5565 use as appropriate.
5566 (_initialize_cli_style): Register version style set/show commands.
5567 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5568 (version_style): Declare.
5569 * top.c (print_gdb_version): Use version_stype, and styled_string
5570 to print the GDB version string.
5571
5572 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * utils.c (emit_style_escape): Only emit an escape sequence if the
5575 requested style is different than the current applied style.
5576 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5577 current applied_style.
5578 (fputs_styled): Remove is_default check.
5579 (fputs_styled_unfiltered): Likewise.
5580 (vfprintf_styled_no_gdbfmt): Likewise.
5581
5582 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5583
5584 * remote.h (remote_debug_printf): New.
5585 (remote_debug_printf_nofunc): New.
5586 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5587 * remote.c: Use above macros throughout file.
5588
5589 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5590
5591 * remote.h (remote_debug): Change to bool.
5592 * remote.c (remote_debug): Change to bool.
5593 (_initialize_remote): Adjust.
5594
5595 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5596
5597 * target.h (remote_debug): Move to...
5598 * remote.h (remote_debug): ... here.
5599 * top.c (remote_debug): Move to...
5600 * remote.c (remote_debug): ... here.
5601 * remote-sim.c: Include remote.h.
5602
5603 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5604
5605 * cli/cli-cmds.c (show_remote_debug): Remove.
5606 (show_remote_timeout): Remove.
5607 (_initialize_cli_cmds): Don't register commands.
5608 * remote.c (show_remote_debug): Move here.
5609 (show_remote_timeout): Move here.
5610 (_initialize_remote): Register commands.
5611
5612 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5613
5614 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5615 type::objfile method instead.
5616
5617 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5618
5619 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5620 use the type::is_objfile_owned method.
5621
5622 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5623
5624 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5625 (TYPE_OWNER): Remove.
5626 (TYPE_OBJFILE): Adjust.
5627 (struct main_type) <flag_objfile_owned>: Rename to...
5628 <m_flag_objfile_owned>: ... this.
5629 <owner>: Rename to...
5630 <m_owner>: ... this.
5631 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5632 methods.
5633 (TYPE_ALLOC): Adjust.
5634 * gdbtypes.c (alloc_type): Adjust.
5635 (alloc_type_arch): Adjust.
5636 (alloc_type_copy): Adjust.
5637 (get_type_arch): Adjust.
5638 (smash_type): Adjust.
5639 (lookup_array_range_type): Adjust.
5640 (recursive_dump_type): Adjust.
5641 (copy_type_recursive): Adjust.
5642 * compile/compile-c-types.c (convert_func): Adjust.
5643 (convert_type_basic): Adjust.
5644 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5645 Adjust.
5646 * language.c
5647 (language_arch_info::type_and_symbol::alloc_type_symbol):
5648 Adjust.
5649
5650 2021-01-21 Luis Machado <luis.machado@linaro.org>
5651
5652 * coffread.c (enter_linenos): Passing string to complaint.
5653 * valops.c (value_assign): Make array view.
5654
5655 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5656
5657 * auto-load.h (debug_auto_load): Move here.
5658 (auto_load_debug_printf): New.
5659 * auto-load.c: Use auto_load_debug_printf.
5660 (debug_auto_load): Move to header.
5661 * linux-thread-db.c (try_thread_db_load): Use
5662 auto_load_debug_printf.
5663 * main.c (captured_main_1): Likewise.
5664
5665 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5666
5667 * f-valprint.c (f77_array_offset_tbl): Remove.
5668
5669 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5670
5671 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5672
5673 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5674
5675 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5676 of gdb_select.
5677
5678 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5679
5680 PR python/19151
5681 * python/py-breakpoint.c (bppy_get_location): Handle
5682 bp_hardware_breakpoint.
5683 (bppy_init): Likewise.
5684 (gdbpy_breakpoint_created): Likewise.
5685
5686 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5687
5688 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5689
5690 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5691
5692 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5693 (_initialize_gdb_bfd): Adjust.
5694
5695 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5696
5697 PR gdb/26828
5698 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5699
5700 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5701
5702 * dwarf2/read.c (follow_die_offset): Add logging.
5703 (dwarf2_per_objfile::age_comp_units): Add logging.
5704
5705 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5706
5707 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5708 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5709 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5710 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5711 * arm-tdep.c (struct frame_unwind): Make static.
5712 * auto-load.c (auto_load_safe_path_vec): Make static.
5713 * csky-tdep.c (csky_stub_unwind): Make static.
5714 * gdbarch.c (gdbarch_data_registry): Make static.
5715 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5716 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5717 * i386-tdep.c (i386_frame_setup_skip_insns,
5718 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5719 Make static.
5720 * infrun.c (observer_mode): Make static.
5721 * linux-nat.c (sigchld_action): Make static.
5722 * linux-thread-db.c (thread_db_list): Make static.
5723 * maint-test-options.c (maintenance_test_options_list):
5724 * mep-tdep.c (mep_csr_registers): Make static.
5725 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5726 (stats): Make static.
5727 * nat/linux-osdata.c (struct osdata_type): Make static.
5728 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5729 * progspace.c (last_program_space_num): Make static.
5730 * python/py-param.c (struct parm_constant): Remove struct type
5731 name.
5732 (parm_constants): Make static.
5733 * python/py-record-btrace.c (btpy_list_methods): Make static.
5734 * python/py-record.c (recpy_gap_type): Make static.
5735 * record.c (record_goto_cmdlist): Make static.
5736 * regcache.c (regcache_descr_handle): Make static.
5737 * registry.h (DEFINE_REGISTRY): Make definition static.
5738 * symmisc.c (std_in, std_out, std_err): Make static.
5739 * top.c (previous_saved_command_line): Make static.
5740 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5741 static.
5742 * unittests/command-def-selftests.c (nr_duplicates,
5743 nr_invalid_prefixcmd, lists): Make static.
5744 * unittests/observable-selftests.c (test_notification): Make
5745 static.
5746 * unittests/optional/assignment/1.cc (counter): Make static.
5747 * unittests/optional/assignment/2.cc (counter): Make static.
5748 * unittests/optional/assignment/3.cc (counter): Make static.
5749 * unittests/optional/assignment/4.cc (counter): Make static.
5750 * unittests/optional/assignment/5.cc (counter): Make static.
5751 * unittests/optional/assignment/6.cc (counter): Make static.
5752
5753 2021-01-20 Joel Sherrill <joel@rtems.org>
5754
5755 PR gdb/27219
5756 * remote.c (struct remote_thread_info) <resume_state>: Rename
5757 to...
5758 <get_resume_state>: ... this.
5759 (remote_target::resume): Adjust.
5760 (remote_target::commit_resume): Adjust.
5761 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5762
5763 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5764 Tom Tromey <tom@tromey.com>
5765
5766 * stap-probe.c (stap_parse_single_operand): Handle '!'
5767 operator.
5768 (stap_parse_argument_conditionally): Likewise.
5769 Skip spaces after processing open-parenthesis sub-expression.
5770 (stap_parse_argument_1): Skip spaces after call to
5771 stap_parse_argument_conditionally.
5772 Handle case when right-side expression is a parenthesized
5773 sub-expression.
5774 Skip spaces after call to stap_parse_argument_1.
5775
5776 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5777
5778 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5779
5780 2021-01-19 Luis Machado <luis.machado@linaro.org>
5781
5782 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5783 memory and save data.
5784 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5785 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5786 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5787 (trad_frame_value_bytes_p): Remove.
5788 (trad_frame_reset_saved_regs): Adjust documentation.
5789 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5790 constructor and reset the state of the registers.
5791 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5792 (trad_frame_value_bytes_p, trad_frame_set_value)
5793 (trad_frame_set_realreg, trad_frame_set_addr)
5794 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5795 (trad_frame_set_reg_realreg): Update to call member function.
5796 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5797 (trad_frame_get_prev_register): Likewise.
5798
5799 * aarch64-tdep.c (aarch64_analyze_prologue)
5800 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5801 (aarch64_prologue_prev_register): Update to use member functions.
5802 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5803 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5804 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5805 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5806 (arm_make_epilogue_frame_cache): Likewise.
5807 * avr-tdep.c (avr_frame_unwind_cache)
5808 (avr_frame_prev_register): Likewise.
5809 * cris-tdep.c (cris_scan_prologue): Likewise.
5810 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5811 * frv-tdep.c (frv_analyze_prologue): Likewise.
5812 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5813 * lm32-tdep.c (lm32_frame_cache): Likewise.
5814 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5815 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5816 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5817 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5818 (reset_saved_regs): Adjust to set realreg.
5819 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5820 call member functions.
5821 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5822 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5823 (s390_backchain_frame_unwind_cache): Likewise.
5824 * score-tdep.c (score7_analyze_prologue)
5825 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5826 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5827 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5828 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5829 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5830 * tilegx-tdep.c (tilegx_analyze_prologue)
5831 (tilegx_frame_cache): Likewise.
5832 * v850-tdep.c (v850_frame_cache): Likewise.
5833 * vax-tdep.c (vax_frame_cache): Likewise.
5834
5835 2021-01-19 Luis Machado <luis.machado@linaro.org>
5836
5837 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5838 of buffer + length.
5839 (put_frame_register_bytes): Likewise.
5840 Adjust documentation.
5841 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5842 (safe_frame_unwind_memory): Likewise.
5843 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5844 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5845 gdb::array_view.
5846 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5847 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5848 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5849 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5850 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5851 * dwarf2/loc.c (rw_pieced_value): Likewise.
5852 * hppa-tdep.c (hppa_frame_cache): Likewise.
5853 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5854 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5855 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5856 (i386_linux_rt_sigtramp_start): Likewise.
5857 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5858 * i386-tdep.c (i386_register_to_value): Likewise.
5859 * i387-tdep.c (i387_register_to_value): Likewise.
5860 * ia64-tdep.c (ia64_register_to_value): Likewise.
5861 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5862 (m32r_linux_rt_sigtramp_start): Likewise.
5863 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5864 * m68k-tdep.c (m68k_register_to_value): Likewise.
5865 * mips-tdep.c (mips_register_to_value)
5866 (mips_value_to_register): Likewise.
5867 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5868 (ppcfbsd_sigtramp_frame_cache): Likewise.
5869 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5870 (ppcobsd_sigtramp_frame_cache): Likewise.
5871 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5872 (rs6000_register_to_value): Likewise.
5873 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5874 * tramp-frame.c (tramp_frame_start): Likewise.
5875 * valops.c (value_assign): Likewise.
5876
5877 2021-01-19 Luis Machado <luis.machado@linaro.org>
5878
5879 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5880 array_view.
5881 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5882 instead of buffer and size.
5883 (trad_frame_set_reg_value_bytes): Likewise.
5884 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5885 (trad_frame_set_value_bytes): Likewise.
5886
5887 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5888
5889 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5890
5891 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5892
5893 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5894 (riscv_fbsd_gregset): Use riscv_supply_regset.
5895 (riscv_fbsd_fpregset): Likewise.
5896 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5897 (riscv_linux_fregset): Likewise.
5898 * riscv-tdep.c (riscv_supply_regset): Define new function.
5899 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5900
5901 2021-01-18 Tom de Vries <tdevries@suse.de>
5902
5903 PR tdep/27172
5904 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5905 New macro.
5906 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5907 for SEGV_BNDERR.
5908
5909 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5910
5911 * remote.c (class remote_target) <remote_hostio_send_command,
5912 remote_hostio_parse_result>: Constify parameter.
5913 (remote_hostio_parse_result): Likewise.
5914 (remote_target::remote_hostio_send_command): Adjust.
5915 (remote_target::remote_hostio_pread_vFile): Adjust.
5916 (remote_target::fileio_readlink): Adjust.
5917 (remote_target::fileio_fstat): Adjust.
5918
5919 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5920
5921 * remote.c (remote_target::start_remote): Move wait_status to
5922 narrower scope.
5923
5924 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5925
5926 * remote.c (class remote_target):
5927 <add_current_inferior_and_thread>: Constify parameter.
5928 (stop_reply_extract_thread): Likewise.
5929 (remote_target::get_current_thread): Likewise.
5930 (remote_target::add_current_inferior_and_thread): Likewise.
5931
5932 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5933
5934 * remote.c (class remote_target)
5935 <remote_unpack_thread_info_response,
5936 parse_threadlist_response>: Constify parameter and/or return
5937 value and or local variable.
5938 (stub_unpack_int): Likewise.
5939 (unpack_nibble): Likewise.
5940 (unpack_byte): Likewise.
5941 (unpack_int): Likewise.
5942 (unpack_string): Likewise.
5943 (unpack_threadid): Likewise.
5944 (remote_target::remote_unpack_thread_info_response): Likewise.
5945 (remote_target::parse_threadlist_response): Likewise.
5946
5947 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5948
5949 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5950
5951 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5952
5953 * MAINTAINERS (Write After Approval): Add myself.
5954
5955 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5956
5957 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5958 because is_trivially_default_constructible was first implemented with
5959 gcc-5.
5960
5961 2021-01-14 Tom de Vries <tdevries@suse.de>
5962
5963 PR breakpoints/27151
5964 * objfiles.h (in_plt_section): Handle .plt.sec.
5965
5966 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5967
5968 PR gdb/26819
5969 * remote.c
5970 (remote_target::select_thread_for_ambiguous_stop_reply): New
5971 member function.
5972 (remote_target::process_stop_reply): Call
5973 select_thread_for_ambiguous_stop_reply.
5974
5975 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5976
5977 * record-btrace.c (class record_btrace_target): Remove.
5978 (record_btrace_target::commit_resume): Remove.
5979 * record-full.c (class record_full_target): Remove.
5980 (record_full_target::commit_resume): Remove.
5981
5982 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5983
5984 * remote.c (enum class resume_state): New.
5985 (struct resumed_pending_vcont_info): New.
5986 (struct remote_thread_info) <resume_state, set_not_resumed,
5987 set_resumed_pending_vcont, resumed_pending_vcont_info,
5988 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5989 New.
5990 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5991 (remote_target::remote_add_thread): Adjust.
5992 (remote_target::process_initial_stop_replies): Adjust.
5993 (remote_target::resume): Adjust.
5994 (remote_target::commit_resume): Rely on state in
5995 remote_thread_info and not on tp->executing.
5996 (remote_target::process_stop_reply): Adjust.
5997
5998 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5999
6000 * arc-tdep.h (arc_debug_printf): New.
6001 * arc-tdep.c: Use arc_debug_printf.
6002 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6003 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6004 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6005
6006 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6007
6008 * arc-tdep.h (arc_debug): Change type to bool.
6009 * arc-tdep.c (arc_debug): Change type to bool.
6010 (arc_analyze_prologue): Adjust.
6011 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6012 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6013
6014 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6015
6016 * auto-load.c (auto_load_objfile_script_1): Use bool.
6017 (execute_script_contents): Use bool.
6018
6019 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6020
6021 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6022 comment here.
6023 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6024 comment to header.
6025 * extension-priv.h (struct extension_language_script_ops)
6026 <auto_load_enabled>: Return bool.
6027 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6028 comment here.
6029 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6030 comment to header.
6031 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6032 move comment here.
6033 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6034 move comment to header.
6035 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6036 move comment here.
6037 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6038 move comment to header.
6039
6040 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6041
6042 * auto-load.h (file_is_auto_load_safe): Change return type to
6043 bool, move comment here.
6044 * auto-load.c (file_is_auto_load_safe): Change return type and
6045 advice_printed to bool. Move comment to header.
6046
6047 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6048
6049 * jit.c (jit_debug_printf): New, use throughout file.
6050
6051 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6052
6053 * infrun.c (normal_stop): Fix indentation.
6054
6055 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6056
6057 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6058 declarations to ...
6059 * symfile.h: ... here.
6060 * symfile.c: Update doc.
6061
6062 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6063
6064 * target.h (baud_rate, serial_parity): Move declarations...
6065 * serial.h: ... here.
6066 * main.c: Include serial.h.
6067 * serial.c (baud_rate, serial_parity): Update doc.
6068
6069 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6070
6071 * top.c (pre_init_ui_hook): Remove.
6072
6073 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6074
6075 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6076 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6077 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6078 * features/aarch64-fpu.xml: Add bfloat16 type.
6079
6080 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6081
6082 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6083
6084 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6085
6086 * f-exp.y (dot_ops): Rename to...
6087 (fortran_operators): ...this. Add a header comment. Add symbol
6088 based operators.
6089 (yylex): Update to use fortran_operators not dot_ops. Remove
6090 special handling for '**', this is now included in
6091 fortran_operators.
6092
6093 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6094
6095 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6096 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6097 * aarch64-tdep.c: Use aarch64_debug_printf.
6098
6099 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6100
6101 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6102 file.
6103
6104 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6105
6106 * jit.c (jit_debug): Change type to bool.
6107 (_initialize_jit): Adjust.
6108
6109 2021-01-09 Tom Tromey <tom@tromey.com>
6110
6111 PR compile/23672
6112 * compile/compile.c (compile_to_object): Avoid crash when
6113 osabi_triplet_regexp returns NULL.
6114
6115 2021-01-09 Tom Tromey <tom@tromey.com>
6116
6117 * tracepoint.h (class collection_list) <append_exp>: Take a
6118 std::string.
6119 * tracepoint.c (collection_list::append_exp): Take a std::string.
6120 (encode_actions_1): Update.
6121
6122 2021-01-08 Tom Tromey <tromey@adacore.com>
6123
6124 * parse.c (parse_expression): Add void_context_p parameter. Use
6125 parse_exp_in_context.
6126 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6127 parse_expression.
6128 (print_command, call_command): Update.
6129 * expression.h (parse_expression): Add void_context_p parameter.
6130
6131 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6132
6133 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6134 for internalvar components that have a dynamic location.
6135
6136 2021-01-08 Tom de Vries <tdevries@suse.de>
6137
6138 PR gdb/26881
6139 * breakpoint.c (create_exception_master_breakpoint_probe)
6140 (create_exception_master_breakpoint_hook): Factor out
6141 of ...
6142 (create_exception_master_breakpoint): ... here. Only try to install
6143 the master exception breakpoint in objfile.debug using the
6144 _Unwind_DebugHook method, if the install using probes in objfile
6145 failed.
6146
6147 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6148
6149 * f-lang.c (fortran_value_subarray): Call value_from_component.
6150
6151 2021-01-07 Mike Frysinger <vapier@gentoo.org>
6152
6153 * remote-sim.c: Include memory-map.h.
6154 (gdbsim_target): Define memory_map override.
6155 (gdbsim_target::memory_map): Define.
6156
6157 2021-01-07 Tom Tromey <tromey@adacore.com>
6158
6159 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6160
6161 2021-01-07 Tom Tromey <tromey@adacore.com>
6162
6163 * ada-lang.c (add_component_interval): Start loop using vector's
6164 updated size.
6165
6166 2021-01-06 Tom Tromey <tromey@adacore.com>
6167
6168 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6169 Do not cast result.
6170 * valarith.c (fixed_point_binop): Handle multiplication
6171 and division specially.
6172 * valops.c (value_to_gdb_mpq): New function.
6173 (value_cast_to_fixed_point): Use it.
6174
6175 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6176
6177 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6178 Call wnoutrefresh instead of tui_win_info::refresh_window.
6179
6180 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6181
6182 * tui/tui-source.c (tui_source_window::show_line_number):
6183 Redraw second space after line number.
6184
6185 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6186
6187 PR tui/26927
6188 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6189 Fix source pad size in prefresh.
6190 (tui_source_window_base::show_source_content): Grow source pad
6191 if necessary.
6192
6193 2021-01-04 Mike Frysinger <vapier@gentoo.org>
6194
6195 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6196 (bfin_frame_align): Use align_down.
6197
6198 2021-01-04 Tom de Vries <tdevries@suse.de>
6199
6200 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6201 terminators that do not terminate anything.
6202
6203 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6204
6205 * debug.c (debug_print_depth): New.
6206 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6207 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6208 * infrun.c (start_step_over): Use
6209 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6210 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6211 INFRUN_SCOPED_DEBUG_START_END.
6212 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6213
6214 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6217
6218 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6219
6220 * utils.c (vfprintf_unfiltered): Print timestamp only when
6221 previous debug output ended with a newline.
6222
6223 2021-01-04 Luis Machado <luis.machado@linaro.org>
6224
6225 Update all users of trad_frame_saved_reg to use the new member
6226 functions.
6227
6228 Remote all struct keywords from declarations of trad_frame_saved_reg
6229 types, except on forward declarations.
6230
6231 * aarch64-tdep.c: Update.
6232 * alpha-mdebug-tdep.c: Update.
6233 * alpha-tdep.c: Update.
6234 * arc-tdep.c: Update.
6235 * arm-tdep.c: Update.
6236 * avr-tdep.c: Update.
6237 * cris-tdep.c: Update.
6238 * csky-tdep.c: Update.
6239 * frv-tdep.c: Update.
6240 * hppa-linux-tdep.c: Update.
6241 * hppa-tdep.c: Update.
6242 * hppa-tdep.h: Update.
6243 * lm32-tdep.c: Update.
6244 * m32r-linux-tdep.c: Update.
6245 * m32r-tdep.c: Update.
6246 * m68hc11-tdep.c: Update.
6247 * mips-tdep.c: Update.
6248 * moxie-tdep.c: Update.
6249 * riscv-tdep.c: Update.
6250 * rs6000-tdep.c: Update.
6251 * s390-linux-tdep.c: Update.
6252 * s390-tdep.c: Update.
6253 * score-tdep.c: Update.
6254 * sparc-netbsd-tdep.c: Update.
6255 * sparc-sol2-tdep.c: Update.
6256 * sparc64-fbsd-tdep.c: Update.
6257 * sparc64-netbsd-tdep.c: Update.
6258 * sparc64-obsd-tdep.c: Update.
6259 * sparc64-sol2-tdep.c: Update.
6260 * tilegx-tdep.c: Update.
6261 * v850-tdep.c: Update.
6262 * vax-tdep.c: Update.
6263
6264 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6265 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6266
6267 * trad-frame.c: Update.
6268 Remove TF_REG_* enum.
6269 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6270 a trivially-constructible struct.
6271 (trad_frame_reset_saved_regs): Adjust to use member function.
6272 (trad_frame_value_p): Likewise.
6273 (trad_frame_addr_p): Likewise.
6274 (trad_frame_realreg_p): Likewise.
6275 (trad_frame_value_bytes_p): Likewise.
6276 (trad_frame_set_value): Likewise.
6277 (trad_frame_set_realreg): Likewise.
6278 (trad_frame_set_addr): Likewise.
6279 (trad_frame_set_unknown): Likewise.
6280 (trad_frame_set_value_bytes): Likewise.
6281 (trad_frame_get_prev_register): Likewise.
6282 * trad-frame.h: Update.
6283 (trad_frame_saved_reg_kind): New enum.
6284 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6285 <m_kind, m_reg>: New member fields.
6286 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6287 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6288 <is_addr, is_unknown, is_value_bytes>: New member functions.
6289
6290 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6291
6292 * target-float.c: Fix typos.
6293
6294 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6295
6296 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6297
6298 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6299
6300 * gdbarch.sh: Update copyright year range.
6301
6302 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6303
6304 Update copyright year range in copyright header of all GDB files.
6305
6306 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6307
6308 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6309 to the list of directories to update.
6310
6311 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6312
6313 * top.c (print_gdb_version): Update copyright year.
6314
6315 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6316
6317 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6318
6319 For older changes see ChangeLog-2020.
6320 \f
6321 Local Variables:
6322 mode: change-log
6323 left-margin: 8
6324 fill-column: 74
6325 version-control: never
6326 coding: utf-8
6327 End: