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