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