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