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