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