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