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