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