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