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