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