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