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