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