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