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