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