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