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