[NIOS2] Fix disassembly of br.n instruction.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
328d42d8
SM
12021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * target.h (current_top_target): Remove, make callers use the
4 current inferior instead.
5 * target.c (current_top_target): Remove.
6
d777bf0d
SM
72021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * target.h (target_shortname): Change to function declaration.
10 (target_longname): Likewise.
11 (target_attach_no_wait): Likewise.
12 (target_post_attach): Likewise.
13 (target_prepare_to_store): Likewise.
14 (target_supports_enable_disable_tracepoint): Likewise.
15 (target_supports_string_tracing): Likewise.
16 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
17 (target_supports_dumpcore): Likewise.
18 (target_dumpcore): Likewise.
19 (target_can_run_breakpoint_commands): Likewise.
20 (target_files_info): Likewise.
21 (target_post_startup_inferior): Likewise.
22 (target_insert_fork_catchpoint): Likewise.
23 (target_remove_fork_catchpoint): Likewise.
24 (target_insert_vfork_catchpoint): Likewise.
25 (target_remove_vfork_catchpoint): Likewise.
26 (target_insert_exec_catchpoint): Likewise.
27 (target_remove_exec_catchpoint): Likewise.
28 (target_set_syscall_catchpoint): Likewise.
29 (target_rcmd): Likewise.
30 (target_can_lock_scheduler): Likewise.
31 (target_can_async_p): Likewise.
32 (target_is_async_p): Likewise.
33 (target_execution_direction): Likewise.
34 (target_extra_thread_info): Likewise.
35 (target_pid_to_exec_file): Likewise.
36 (target_thread_architecture): Likewise.
37 (target_find_memory_regions): Likewise.
38 (target_make_corefile_notes): Likewise.
39 (target_get_bookmark): Likewise.
40 (target_goto_bookmark): Likewise.
41 (target_stopped_by_watchpoint): Likewise.
42 (target_stopped_by_sw_breakpoint): Likewise.
43 (target_supports_stopped_by_sw_breakpoint): Likewise.
44 (target_stopped_by_hw_breakpoint): Likewise.
45 (target_supports_stopped_by_hw_breakpoint): Likewise.
46 (target_have_steppable_watchpoint): Likewise.
47 (target_can_use_hardware_watchpoint): Likewise.
48 (target_region_ok_for_hw_watchpoint): Likewise.
49 (target_can_do_single_step): Likewise.
50 (target_insert_watchpoint): Likewise.
51 (target_remove_watchpoint): Likewise.
52 (target_insert_hw_breakpoint): Likewise.
53 (target_remove_hw_breakpoint): Likewise.
54 (target_can_accel_watchpoint_condition): Likewise.
55 (target_can_execute_reverse): Likewise.
56 (target_get_ada_task_ptid): Likewise.
57 (target_filesystem_is_local): Likewise.
58 (target_trace_init): Likewise.
59 (target_download_tracepoint): Likewise.
60 (target_can_download_tracepoint): Likewise.
61 (target_download_trace_state_variable): Likewise.
62 (target_enable_tracepoint): Likewise.
63 (target_disable_tracepoint): Likewise.
64 (target_trace_start): Likewise.
65 (target_trace_set_readonly_regions): Likewise.
66 (target_get_trace_status): Likewise.
67 (target_get_tracepoint_status): Likewise.
68 (target_trace_stop): Likewise.
69 (target_trace_find): Likewise.
70 (target_get_trace_state_variable_value): Likewise.
71 (target_save_trace_data): Likewise.
72 (target_upload_tracepoints): Likewise.
73 (target_upload_trace_state_variables): Likewise.
74 (target_get_raw_trace_data): Likewise.
75 (target_get_min_fast_tracepoint_insn_len): Likewise.
76 (target_set_disconnected_tracing): Likewise.
77 (target_set_circular_trace_buffer): Likewise.
78 (target_set_trace_buffer_size): Likewise.
79 (target_set_trace_notes): Likewise.
80 (target_get_tib_address): Likewise.
81 (target_set_permissions): Likewise.
82 (target_static_tracepoint_marker_at): Likewise.
83 (target_static_tracepoint_markers_by_strid): Likewise.
84 (target_traceframe_info): Likewise.
85 (target_use_agent): Likewise.
86 (target_can_use_agent): Likewise.
87 (target_augmented_libraries_svr4_read): Likewise.
88 (target_log_command): Likewise.
89 * target.c (target_shortname): New.
90 (target_longname): New.
91 (target_attach_no_wait): New.
92 (target_post_attach): New.
93 (target_prepare_to_store): New.
94 (target_supports_enable_disable_tracepoint): New.
95 (target_supports_string_tracing): New.
96 (target_supports_evaluation_of_breakpoint_conditions): New.
97 (target_supports_dumpcore): New.
98 (target_dumpcore): New.
99 (target_can_run_breakpoint_commands): New.
100 (target_files_info): New.
101 (target_post_startup_inferior): New.
102 (target_insert_fork_catchpoint): New.
103 (target_remove_fork_catchpoint): New.
104 (target_insert_vfork_catchpoint): New.
105 (target_remove_vfork_catchpoint): New.
106 (target_insert_exec_catchpoint): New.
107 (target_remove_exec_catchpoint): New.
108 (target_set_syscall_catchpoint): New.
109 (target_rcmd): New.
110 (target_can_lock_scheduler): New.
111 (target_can_async_p): New.
112 (target_is_async_p): New.
113 (target_execution_direction): New.
114 (target_extra_thread_info): New.
115 (target_pid_to_exec_file): New.
116 (target_thread_architecture): New.
117 (target_find_memory_regions): New.
118 (target_make_corefile_notes): New.
119 (target_get_bookmark): New.
120 (target_goto_bookmark): New.
121 (target_stopped_by_watchpoint): New.
122 (target_stopped_by_sw_breakpoint): New.
123 (target_supports_stopped_by_sw_breakpoint): New.
124 (target_stopped_by_hw_breakpoint): New.
125 (target_supports_stopped_by_hw_breakpoint): New.
126 (target_have_steppable_watchpoint): New.
127 (target_can_use_hardware_watchpoint): New.
128 (target_region_ok_for_hw_watchpoint): New.
129 (target_can_do_single_step): New.
130 (target_insert_watchpoint): New.
131 (target_remove_watchpoint): New.
132 (target_insert_hw_breakpoint): New.
133 (target_remove_hw_breakpoint): New.
134 (target_can_accel_watchpoint_condition): New.
135 (target_can_execute_reverse): New.
136 (target_get_ada_task_ptid): New.
137 (target_filesystem_is_local): New.
138 (target_trace_init): New.
139 (target_download_tracepoint): New.
140 (target_can_download_tracepoint): New.
141 (target_download_trace_state_variable): New.
142 (target_enable_tracepoint): New.
143 (target_disable_tracepoint): New.
144 (target_trace_start): New.
145 (target_trace_set_readonly_regions): New.
146 (target_get_trace_status): New.
147 (target_get_tracepoint_status): New.
148 (target_trace_stop): New.
149 (target_trace_find): New.
150 (target_get_trace_state_variable_value): New.
151 (target_save_trace_data): New.
152 (target_upload_tracepoints): New.
153 (target_upload_trace_state_variables): New.
154 (target_get_raw_trace_data): New.
155 (target_get_min_fast_tracepoint_insn_len): New.
156 (target_set_disconnected_tracing): New.
157 (target_set_circular_trace_buffer): New.
158 (target_set_trace_buffer_size): New.
159 (target_set_trace_notes): New.
160 (target_get_tib_address): New.
161 (target_set_permissions): New.
162 (target_static_tracepoint_marker_at): New.
163 (target_static_tracepoint_markers_by_strid): New.
164 (target_traceframe_info): New.
165 (target_use_agent): New.
166 (target_can_use_agent): New.
167 (target_augmented_libraries_svr4_read): New.
168 (target_log_command): New.
169 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
170 * infrun.c (set_schedlock_func): Adjust.
171 * mi/mi-main.c (exec_reverse_continue): Adjust.
172 * reverse.c (exec_reverse_once): Adjust.
173 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
174 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
175 * remote-sim.c (gdbsim_target::detach): Adjust.
176 (gdbsim_target::files_info): Adjust.
177
b64f703b
TT
1782021-03-24 Tom Tromey <tom@tromey.com>
179
180 * dwarf2/read.c (dw2_map_matching_symbols): Update.
181 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
182 (check_match, dw2_expand_symtabs_matching)
183 (dwarf2_debug_names_index::map_matching_symbols)
184 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
185
68f115f8
KS
1862021-03-24 Keith Seitz <keiths@redhat.com>
187
188 * compile/compile-cplus-types.c
189 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
190 thinko.
191
41c0087b
SM
1922021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
193
194 * gdbarch.sh (gdbarch_data_registry): Make static.
195 * gdbarch.c: Re-generate.
196
ce192338
LM
1972021-03-24 Luis Machado <luis.machado@linaro.org>
198
199 * NEWS: Mention memory tagging changes.
200
bef382e6
LM
2012021-03-24 Luis Machado <luis.machado@linaro.org>
202
203 * printcmd.c (decode_format): Handle the 'm' modifier.
204 (do_examine): Display allocation tags when required/supported.
205 (should_validate_memtags): New function.
206 (print_command_1): Display memory tag mismatches.
207 * valprint.c (show_memory_tag_violations): New function.
208 (value_print_option_defs): Add new option "memory-tag-violations".
209 (user_print_options) <memory_tag_violations>: Initialize to 1.
210 * valprint.h (struct format_data) <print_tags>: New field.
211 (value_print_options) <memory_tag_violations>: New field.
212
48136e00
LM
2132021-03-24 Luis Machado <luis.machado@linaro.org>
214
215 * printcmd.c: Include gdbsupport/rsp-low.h.
216 (memory_tag_list): New static global.
217 (process_print_command_args): Factored out of
218 print_command_1.
219 (print_command_1): Use process_print_command_args.
220 (show_addr_not_tagged, show_memory_tagging_unsupported)
221 (memory_tag_command, memory_tag_print_tag_command)
222 (memory_tag_print_logical_tag_command)
223 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
224 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
225 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
226 functions.
227 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
228
ffcc2a15
LM
2292021-03-24 Luis Machado <luis.machado@linaro.org>
230
231 * aarch64-linux-tdep.c
232 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
233 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
234
cf44c9fa
LM
2352021-03-24 Luis Machado <luis.machado@linaro.org>
236
237 * aarch64-linux-tdep.c
238 (aarch64_linux_report_signal_info): New function.
239 (aarch64_linux_init_abi): Register
240 aarch64_linux_report_signal_info as the report_signal_info hook.
241 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
242 (SEGV_MTESERR): Define.
243
b4a7d4fc
LM
2442021-03-24 Luis Machado <luis.machado@linaro.org>
245
246 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
247 (aarch64_linux_ltag_tests): New function.
248 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
249
c7782e50
LM
2502021-03-24 Luis Machado <luis.machado@linaro.org>
251
252 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
253 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
254 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
255 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
256 functions.
257 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
258 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
259 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
260 (aarch64_linux_get_ltag): New functions.
261 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
262 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
263 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
264 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
265
1e735120
LM
2662021-03-24 Luis Machado <luis.machado@linaro.org>
267
268 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
269 bit.
270 (struct smaps_data): New struct.
271 (decode_vmflags): Handle the 'mt' flag.
272 (parse_smaps_data): New function, refactored from
273 linux_find_memory_regions_full.
274 (linux_address_in_memtag_page): New function.
275 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
276 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
277
93e447c6
LM
2782021-03-24 Luis Machado <luis.machado@linaro.org>
279
280 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
281 instead of char arrays.
282
4601818e
LM
2832021-03-24 Luis Machado <luis.machado@linaro.org>
284
285 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
286 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
287 nat/aarch64-mte-linux-ptrace.h.
288 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
289 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
290 override.
291 <fetch_memtags>: New method override.
292 <store_memtags>: New method override.
293 (aarch64_linux_nat_target::supports_memory_tagging): New method.
294 (aarch64_linux_nat_target::fetch_memtags): New method.
295 (aarch64_linux_nat_target::store_memtags): New method.
296 * arch/aarch64-mte-linux.c: New file.
297 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
298 (AARCH64_MTE_GRANULE_SIZE): Define.
299 (aarch64_memtag_type): New enum.
300 (aarch64_mte_get_tag_granules): New prototype.
301 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
302 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
303 * nat/aarch64-mte-linux-ptrace.c: New file.
304 * nat/aarch64-mte-linux-ptrace.h: New file.
305
3f3bd8b8
LM
3062021-03-24 Luis Machado <luis.machado@linaro.org>
307
308 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
309 * nat/aarch64-mte-linux-ptrace.h: New file.
310
5e984dbf
LM
3112021-03-24 Luis Machado <luis.machado@linaro.org>
312
313 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
314 (store_mteregs_to_thread): New function.
315 (aarch64_linux_nat_target::fetch_registers): Update to call
316 fetch_mteregs_from_thread.
317 (aarch64_linux_nat_target::store_registers): Update to call
318 store_mteregs_to_thread.
319 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
320 (aarch64_cannot_store_register): Handle MTE registers.
321 (aarch64_gdbarch_init): Initialize and setup MTE registers.
322 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
323 <has_mte>: New method.
324 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
325
c1bd443b
LM
3262021-03-24 Luis Machado <luis.machado@linaro.org>
327
328 * aarch64-linux-nat.c
329 (aarch64_linux_nat_target::read_description): Take MTE flag into
330 account.
331 Slight refactor to hwcap flag checking.
332 * aarch64-linux-tdep.c
333 (aarch64_linux_core_read_description): Likewise.
334 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
335 MTE.
336 (aarch64_read_description): Add mte_p parameter and update to use it.
337 Update the documentation.
338 (aarch64_gdbarch_init): Update call to aarch64_read_description.
339 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
340 * arch/aarch64.c: Include ../features/aarch64-mte.c.
341 (aarch64_create_target_description): Add mte_p parameter and update
342 the code to use it.
343 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
344 parameter.
345 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
346 * features/aarch64-mte.c: New file, generated.
347 * features/aarch64-mte.xml: New file.
348
04245125
LM
3492021-03-24 Luis Machado <luis.machado@linaro.org>
350
351 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
352 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
353 * aarch64-linux-tdep.c: Likewise
354 * arch/aarch64-mte-linux.h: New file.
355
754487e2
LM
3562021-03-24 Luis Machado <luis.machado@linaro.org>
357
358 * remote: Include gdbsupport/selftest.h.
359 (test_memory_tagging_functions): New function.
360 (_initialize_remote): Register test_memory_tagging_functions.
361
2c2e7f87
LM
3622021-03-24 Luis Machado <luis.machado@linaro.org>
363
364 * remote.c (PACKET_memory_tagging_feature): New enum.
365 (remote_memory_tagging_p): New function.
366 (remote_protocol_features): New "memory-tagging" entry.
367 (remote_target::remote_query_supported): Handle memory tagging
368 support.
369 (remote_target::supports_memory_tagging): Implement.
370 (create_fetch_memtags_request, parse_fetch_memtags_reply)
371 (create_store_memtags_request): New functions.
372 (remote_target::fetch_memtags): Implement.
373 (remote_target::store_memtags): Implement.
374 (_initialize_remote): Add new "memory-tagging-feature"
375 config command.
376
c193949e
LM
3772021-03-24 Luis Machado <luis.machado@linaro.org>
378
379 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
380 (default_memtag_matches_p, default_set_memtags)
381 (default_get_memtag): New functions.
382 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
383 (default_memtag_matches_p, default_set_memtags)
384 (default_get_memtag): New prototypes.
385 * gdbarch.c: Regenerate.
386 * gdbarch.h: Regenerate.
387 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
388 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
389 (enum memtag_type): New enum.
390
dbe692af
LM
3912021-03-24 Luis Machado <luis.machado@linaro.org>
392
393 * remote.c (remote_target) <supports_memory_tagging>: New method
394 override.
395 <fetch_memtags>: New method override.
396 <store_memtags>: New method override.
397 (remote_target::supports_memory_tagging): New method.
398 (remote_target::fetch_memtags): New method.
399 (remote_target::store_memtags): New method.
400 * target-delegates.c: Regenerate.
401 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
402 method.
403 <fetch_memtags>: New virtual method.
404 <store_memtags>: New virtual method.
405 (target_supports_memory_tagging): Define.
406 (target_fetch_memtags): Define.
407 (target_store_memtags): Define.
408 * target-debug.h (target_debug_print_size_t)
409 (target_debug_print_const_gdb_byte_vector_r)
410 (target_debug_print_gdb_byte_vector_r): New functions.
411
66848ebc
SM
4122021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
413
414 * target.h (target_longname): Remove.
415
c8fbd44a
SM
4162021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
417
418 * target.h (target_is_pushed): Remove, update callers to use
419 inferior::target_is_pushed instead.
420 * target.c (target_is_pushed): Remove.
421
02980c56
SM
4222021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
423
424 * target.h (push_target): Remove, update callers to use
425 inferior::push_target.
426 * target.c (push_target): Remove.
427 * inferior.h (class inferior) <push_target>: New overload.
428
fadf6add
SM
4292021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
430
431 * target.h (unpush_target): Remove, update all callers
432 to use `inferior::unpush_target` instead.
433 (struct target_unpusher) <operator()>: Just declare.
434 * target.c (unpush_target): Remove.
435 (target_unpusher::operator()): New.
436
702cf3f5
AB
4372021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
440 error.
441 (process_full_comp_unit): Validate the top-level tag before
442 processing the first DIE.
443 (read_func_scope): Ensure we have a valid builder.
444
46fec642
AB
4452021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
446
447 * objc-lang.c (objc_demangle): Renamed to
448 objc_language::demangle_symbol, and moved later in the file.
449 (objc_language::sniff_from_mangled_name): Call demangle_symbol
450 member function.
451 (objc_language::demangle_symbol): Defined outside of class
452 declaration. The definition is the old objc_demangle with NULL
453 changed to nullptr, and if conditions relating to nullptr pointers
454 or null character checks made explicit.
455 * objc-lang.h (objc_demangle): Delete declaration.
456
08dedd66
ML
4572021-03-22 Martin Liska <mliska@suse.cz>
458
459 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
460 (_initialize_arm_tdep): Likewise.
461
eb36a3eb
TT
4622021-03-20 Tom Tromey <tom@tromey.com>
463
464 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
465 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
466 * psymtab.h (make_psymbol_functions): Don't declare.
467 * psymtab.c (make_psymbol_functions): Remove.
468 (maintenance_print_psymbols): Update.
469 * psympriv.h (struct psymbol_functions): Add no-argument
470 constructor.
471 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
472 <partial_symtabs>: Remove.
473 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
474 * elfread.c (read_partial_symbols): Update.
475 (elf_symfile_read): Remove check for existing partial symbols.
476 Don't clear "qf".
477 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
478 partial symbols.
479 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
480 partial symtabs.
481 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
482 parameter.
483 * dbxread.c (dbx_symfile_read): Create partial symtabs.
484 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
485
e1114590
TT
4862021-03-20 Tom Tromey <tom@tromey.com>
487
488 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
489 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
490 * symfile-debug.c (objfile::has_partial_symbols)
491 (objfile::find_last_source_symtab)
492 (objfile::forget_cached_source_info)
493 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
494 (objfile::print_stats, objfile::dump)
495 (objfile::expand_symtabs_for_function)
496 (objfile::expand_all_symtabs)
497 (objfile::expand_symtabs_with_fullname)
498 (objfile::map_matching_symbols)
499 (objfile::expand_symtabs_matching)
500 (objfile::find_pc_sect_compunit_symtab)
501 (objfile::map_symbol_filenames)
502 (objfile::find_compunit_symtab_by_address)
503 (objfile::lookup_global_symbol_language)
504 (objfile::require_partial_symbols): Update.
505 * psymtab.c (maintenance_print_psymbols)
506 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
507 * objfiles.h (struct objfile) <qf>: Now a forward_list.
508 * objfiles.c (objfile_relocate1): Update.
509 * elfread.c (elf_symfile_read): Update.
510
de909f0b
TT
5112021-03-20 Tom Tromey <tom@tromey.com>
512
513 * objfiles.h (struct objfile) <psymtabs>: Remove method.
514
caf8c1e5
TT
5152021-03-20 Tom Tromey <tom@tromey.com>
516
517 * psymtab.c (psymbol_functions::count_psyms): Rename.
518 (psymbol_functions::print_stats): Update.
519 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
520 method.
521
3aa31ce7
TT
5222021-03-20 Tom Tromey <tom@tromey.com>
523
524 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
525 (psymbol_functions::find_pc_sect_psymtab): Rename.
526 (psymbol_functions::find_pc_sect_compunit_symtab)
527 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
528 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
529 Declare new method.
530 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
531
7b249e47
TT
5322021-03-20 Tom Tromey <tom@tromey.com>
533
534 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
535 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
536 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
537 parameter.
538 (add_psymbol_to_bcache): Remove.
539 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
540 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
541 Likewise.
542 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
543 <add_psymbol>: Likewise.
544 (standard_psymtab, legacy_psymtab): Likewise.
545 * mdebugread.c (parse_partial_symbols): Update.
546 (handle_psymbol_enumerators): Add partial_symtabs parameter.
547 (handle_psymbol_enumerators): Update.
548 (new_psymtab): Add partial_symtabs parameter.
549 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
550 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
551 parameter.
552 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
553 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
554 Update.
555 * dbxread.c (read_dbx_symtab): Update.
556 (start_psymtab): Add partial_symtabs parameter.
557 (dbx_end_psymtab): Update.
558 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
559 (ctf_psymtab): Add partial_symtabs parameter.
560 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
561 Update.
562 (scan_partial_symbols): Add partial_symtabs parameter.
563 (scan_partial_symbols, elfctf_build_psymtabs)
564 (ctf_psymtab_add_enums): Update.
565
d1eef86d
TT
5662021-03-20 Tom Tromey <tom@tromey.com>
567
568 * symfile.c (read_symbols): Use objfile method.
569 * symfile-debug.c (objfile::require_partial_symbols): New method.
570 * psymtab.h (require_partial_symbols): Don't declare.
571 * psymtab.c (require_partial_symbols): Use objfile method. Now
572 static.
573 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
574 (psymbol_functions::lookup_symbol)
575 (psymbol_functions::lookup_global_symbol_language)
576 (psymbol_functions::find_last_source_symtab)
577 (psymbol_functions::forget_cached_source_info)
578 (psymbol_functions::print_stats)
579 (psymbol_functions::expand_symtabs_for_function)
580 (psymbol_functions::expand_all_symtabs)
581 (psymbol_functions::expand_symtabs_with_fullname)
582 (psymbol_functions::map_symbol_filenames)
583 (psymbol_functions::map_matching_symbols)
584 (psymbol_functions::expand_symtabs_matching)
585 (psymbol_functions::find_compunit_symtab_by_address)
586 (maintenance_print_psymbols, maintenance_info_psymtabs)
587 (maintenance_check_psymtabs): Update.
588 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
589 new method.
590
eb00e468
TT
5912021-03-20 Tom Tromey <tom@tromey.com>
592
593 * xcoffread.c (xcoff_sym_fns): Update.
594 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
595 * symfile-debug.c (objfile::has_partial_symbols): Use
596 can_lazily_read_symbols.
597 (debug_sym_read_psymbols): Remove.
598 (debug_sym_fns, install_symfile_debug_logging): Update.
599 * quick-symbol.h (struct quick_symbol_functions)
600 <can_lazily_read_symbols, read_partial_symbols>: New methods.
601 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
602 * mipsread.c (ecoff_sym_fns): Update.
603 * machoread.c (macho_sym_fns): Update.
604 * elfread.c (struct lazy_dwarf_reader): New.
605 (elf_symfile_read): Update.
606 (read_psyms): Now a method of lazy_dwarf_reader.
607 (elf_sym_fns): Update.
608 (elf_sym_fns_lazy_psyms): Remove.
609 * dbxread.c (aout_sym_fns): Update.
610 * coffread.c (coff_sym_fns): Update.
611
b29b98cf
TT
6122021-03-20 Tom Tromey <tom@tromey.com>
613
614 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
615 (reread_symbols): Move reset_psymtabs call later.
616 * objfiles.c (objfile::objfile): Don't initialize
617 partial_symtabs.
618
17d66340
TT
6192021-03-20 Tom Tromey <tom@tromey.com>
620
621 * dwarf2/read.c (dwarf2_build_psymtabs): Call
622 set_partial_symtabs.
623 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
624 * psymtab.h (make_psymbol_functions): Add partial_symtabs
625 parameter.
626 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
627 parameter.
628 (psymbol_functions::find_pc_sect_compunit_symtab)
629 (psymbol_functions::print_stats, psymbol_functions::dump)
630 (psymbol_functions::has_symbols): Update.
631 (make_psymbol_functions, dump_psymtab_addrmap): Add
632 partial_symtabs parameter.
633 (maintenance_print_psymbols): Update.
634 (psymbol_functions::expand_symtabs_matching): Update.
635 * psympriv.h (struct psymbol_functions): Add constructor.
636 <m_partial_symtabs>: New member.
637 <set_partial_symtabs>: New method.
638
84685904
TT
6392021-03-20 Tom Tromey <tom@tromey.com>
640
641 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
642 parameter.
643 (process_psymtab_comp_unit_reader)
644 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
645 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
646 Reference psymtabs via per_bfd.
647
79cc99f6
TT
6482021-03-20 Tom Tromey <tom@tromey.com>
649
650 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
651 Remove.
652 (add_address_entry): Remove objfile parameter.
653 (add_address_entry_worker): Update.
654 (write_address_map): Replace objfile parameter with per_bfd.
655 (write_gdbindex, write_psymtabs_to_index): Update.
656
4829711b
TT
6572021-03-20 Tom Tromey <tom@tromey.com>
658
659 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
660 print_bcache parameter.
661 * symfile-debug.c (objfile::print_stats): Add print_bcache
662 parameter.
663 * quick-symbol.h (struct quick_symbol_functions)
664 <print_stats>: Add print_bcache parameter.
665 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
666 code to psymtab.c.
667 (print_objfile_statistics): Move psymtab code to psymtab.c.
668 * psymtab.c (count_psyms): Move from symmisc.c.
669 (psymbol_functions::print_stats): Print partial symbol and bcache
670 statistics. Add print_bcache parameter.
671 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
672 (struct objfile) <print_stats>: Add print_bcache parameter.
673 * maint.c (maintenance_print_statistics): Update.
674
efd7398e
TT
6752021-03-20 Tom Tromey <tom@tromey.com>
676
677 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
678 member.
679 * dwarf2/read.c (create_addrmap_from_index)
680 (create_addrmap_from_aranges): Set per_bfd addrmap.
681 (dwarf2_read_gdb_index): Don't set partial_symtabs.
682 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
683 per_bfd addrmap.
684 (dwarf2_read_debug_names): Don't set partial_symtabs.
685 (dwarf2_initialize_objfile): Likewise.
686
51962708
TT
6872021-03-20 Tom Tromey <tom@tromey.com>
688
689 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
690 earlier.
691
484b1090
TT
6922021-03-20 Tom Tromey <tom@tromey.com>
693
694 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
695 (~psymtab_discarder, keep): Update.
696 <m_objfile>: Remove.
697 <m_partial_symtabs>: New member.
698 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
699
7e9c0476
TT
7002021-03-20 Tom Tromey <tom@tromey.com>
701
702 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
703 (xcoff_end_psymtab): Update.
704 (scan_xcoff_symtab): Add partial_symtabs parameter.
705 (xcoff_initial_scan): Update.
706 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
707 * mdebugread.c (mdebug_build_psymtabs): Update.
708 (parse_partial_symbols): Add partial_symtabs parameter.
709 * dbxread.c (dbx_symfile_read): Update.
710 (read_dbx_symtab): Add partial_symtabs parameter.
711 (read_dbx_symtab): Update.
712 (dbx_end_psymtab): Add partial_symtabs parameter.
713
75336a5a
TT
7142021-03-20 Tom Tromey <tom@tromey.com>
715
716 * quick-symbol.h (struct quick_symbol_functions)
717 <relocated>: New method.
718 * psymtab.h (struct psymbol_functions) <relocated>: New
719 method.
720 <fill_psymbol_map>: Declare method.
721 <m_psymbol_map>: New member.
722 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
723 (psymbol_functions::find_compunit_symtab_by_address): Update.
724 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
725 (struct objfile) <psymbol_map>: Remove.
726 * objfiles.c (objfile_relocate1): Update.
727
39298a5d
TT
7282021-03-20 Tom Tromey <tom@tromey.com>
729
730 * psympriv.h (struct psymbol_functions): New.
731 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
732 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
733 (objfile::lookup_global_symbol_language): Update.
734 * quick-symbol.h (struct quick_symbol_functions): Convert function
735 pointers to methods. Add virtual destructor.
736 (quick_symbol_functions_up): New typedef.
737 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
738 (dwarf2_debug_names_functions): Don't declare.
739 (make_psymbol_functions): Declare.
740 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
741 (psymbol_functions::find_pc_sect_compunit_symtab)
742 (psymbol_functions::lookup_symbol)
743 (psymbol_functions::lookup_global_symbol_language)
744 (psymbol_functions::find_last_source_symtab)
745 (psymbol_functions::forget_cached_source_info)
746 (psymbol_functions::print_stats, psymbol_functions::dump)
747 (psymbol_functions::expand_symtabs_for_function)
748 (psymbol_functions::expand_all_symtabs)
749 (psymbol_functions::expand_symtabs_with_fullname)
750 (psymbol_functions::map_symbol_filenames)
751 (psymbol_functions::map_matching_symbols)
752 (psymbol_functions::expand_symtabs_matching)
753 (psymbol_functions::has_symbols)
754 (psymbol_functions::find_compunit_symtab_by_address): Rename.
755 (psym_functions): Remove.
756 (make_psymbol_functions): New function.
757 * objfiles.h (struct objfile) <qf>: Change type.
758 * elfread.c (elf_symfile_read): Update.
759 * dwarf2/read.c (struct dwarf2_base_index_functions)
760 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
761 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
762 (dwarf2_base_index_functions::find_last_source_symtab)
763 (dwarf2_base_index_functions::forget_cached_source_info)
764 (dwarf2_base_index_functions::map_symtabs_matching_filename)
765 (dwarf2_gdb_index::lookup_symbol)
766 (dwarf2_base_index_functions::print_stats)
767 (dwarf2_gdb_index::dump)
768 (dwarf2_gdb_index::expand_symtabs_for_function)
769 (dwarf2_base_index_functions::expand_all_symtabs)
770 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
771 Rename.
772 (dwarf2_gdb_index::map_matching_symbols): New method.
773 (dwarf2_gdb_index::expand_symtabs_matching): New method.
774 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
775 (dwarf2_base_index_functions::map_symbol_filenames)
776 (dwarf2_base_index_functions::has_symbols): Rename.
777 (dwarf2_gdb_index_functions): Remove.
778 (dwarf2_debug_names_index::lookup_symbol)
779 (dwarf2_debug_names_index::dump)
780 (dwarf2_debug_names_index::expand_symtabs_for_function)
781 (dwarf2_debug_names_index::map_matching_symbols)
782 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
783 (dwarf2_debug_names_functions): Remove.
784 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
785 Declare.
786
5c3f1e5b
TT
7872021-03-20 Tom Tromey <tom@tromey.com>
788
789 * psymtab.c (require_partial_symbols): Check that 'sf' is not
790 null.
791 * xcoffread.c (xcoff_sym_fns): Update.
792 * symfile.h (struct sym_fns) <qf>: Remove.
793 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
794 * symfile-debug.c (objfile::has_partial_symbols)
795 (objfile::find_last_source_symtab)
796 (objfile::forget_cached_source_info)
797 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
798 (objfile::print_stats, objfile::dump)
799 (objfile::expand_symtabs_for_function)
800 (objfile::expand_all_symtabs)
801 (objfile::expand_symtabs_with_fullname)
802 (objfile::map_matching_symbols)
803 (objfile::expand_symtabs_matching)
804 (objfile::find_pc_sect_compunit_symtab)
805 (objfile::map_symbol_filenames)
806 (objfile::find_compunit_symtab_by_address)
807 (objfile::lookup_global_symbol_language, debug_sym_fns)
808 (install_symfile_debug_logging): Update.
809 * objfiles.h (struct objfile) <qf>: New member.
810 * mipsread.c (ecoff_sym_fns): Update.
811 * machoread.c (macho_sym_fns): Update.
812 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
813 Don't declare.
814 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
815 * dbxread.c (aout_sym_fns): Update.
816 * coffread.c (coff_sym_fns): Update.
817
9b99dcc8
TT
8182021-03-20 Tom Tromey <tom@tromey.com>
819
820 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
821 (expand_symtabs_file_matcher_ftype)
822 (expand_symtabs_symbol_matcher_ftype)
823 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
824 Move to quick-symbol.h.
825 * quick-symbol.h: New file.
826
4d080b46
TT
8272021-03-20 Tom Tromey <tom@tromey.com>
828
829 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
830 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
831 (basic_lookup_transparent_type_quick)
832 (find_pc_sect_compunit_symtab, find_symbol_at_address)
833 (find_line_symtab, global_symbol_searcher::expand_symtabs):
834 Update.
835 * symmisc.c (print_objfile_statistics, dump_objfile)
836 (maintenance_expand_symtabs): Update.
837 * symfile.c (symbol_file_add_with_addrs)
838 (expand_symtabs_matching, map_symbol_filenames): Update.
839 * symfile-debug.c (objfile::has_partial_symbols)
840 (objfile::find_last_source_symtab)
841 (objfile::forget_cached_source_info)
842 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
843 (objfile::print_stats, objfile::dump)
844 (objfile::expand_symtabs_for_function)
845 (objfile::expand_all_symtabs)
846 (objfile::expand_symtabs_with_fullname)
847 (objfile::map_matching_symbols)
848 (objfile::expand_symtabs_matching)
849 (objfile::find_pc_sect_compunit_symtab)
850 (objfile::map_symbol_filenames)
851 (objfile::find_compunit_symtab_by_address)
852 (objfile::lookup_global_symbol_language): New methods.
853 (debug_sym_quick_functions): Remove.
854 (debug_sym_fns, install_symfile_debug_logging): Update.
855 * source.c (forget_cached_source_info_for_objfile)
856 (select_source_symtab): Update.
857 * objfiles.h (struct objfile): Add methods corresponding to
858 quick_symbol_functions.
859 * objfiles.c (objfile::has_partial_symbols): Move to
860 symfile-debug.c.
861 * linespec.c (iterate_over_all_matching_symtabs): Update.
862 * cp-support.c (add_symbol_overload_list_qualified): Update.
863 * ada-lang.c (add_nonlocal_symbols): Update.
864
fae2120b
TT
8652021-03-20 Tom Tromey <tom@tromey.com>
866
867 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
868 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
869 bool.
870 * symfile-debug.c (debug_qf_has_symbols): Return bool.
871 * psymtab.c (psym_has_symbols): Return bool.
872 * objfiles.c (objfile::has_partial_symbols): Return bool.
873 * dwarf2/read.c (dw2_has_symbols): Return bool.
874
a8ad4f3c
TT
8752021-03-20 Tom Tromey <tom@tromey.com>
876
877 * symfile.c (read_symbols): Update.
878 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
879 (objfile_has_partial_symbols): Don't declare.
880 * objfiles.c (objfile::has_partial_symbols): Rename from
881 objfile_has_partial_symbols.
882 (objfile_has_symbols, have_partial_symbols): Update.
883 * elfread.c (elf_symfile_read): Update.
884 * dwarf2/read.c (dwarf2_has_info): Update.
885 * coffread.c (coff_symfile_read): Update.
886
70182375
TT
8872021-03-20 Tom Tromey <tom@tromey.com>
888
889 * coffread.c: Include dwarf2/public.h.
890 * dwarf2/frame.c: Include dwarf2/public.h.
891 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
892 * dwarf2/public.h: New file.
893 * dwarf2/read.c: Include dwarf2/public.h.
894 * elfread.c: Include dwarf2/public.h.
895 * machoread.c: Include dwarf2/public.h.
896 * symfile.h (dwarf2_has_info, enum dw_index_kind)
897 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
898 (dwarf2_build_frame_info): Move to dwarf2/public.h.
899 * xcoffread.c: Include dwarf2/public.h.
900
18038e63
TT
9012021-03-20 Tom Tromey <tom@tromey.com>
902
903 * symfile.h (enum dwarf2_section_enum)
904 (dwarf2_get_section_info): Move to dwarf2/read.h.
905 * dwarf2/read.h (enum dwarf2_section_enum)
906 (dwarf2_get_section_info): Move from symfile.h.
907
219f56b4
PA
9082021-03-19 Pedro Alves <pedro@palves.net>
909
910 * thread.c (any_thread_of_inferior): Check if there's a selected
911 thread before calling inferior_thread().
912
15310fd4
TT
9132021-03-18 Tom Tromey <tromey@adacore.com>
914
915 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
916 get_DW_UT_name.
917 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
918 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
919
763b8efd
AB
9202021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
921
922 * python/py-param.c (get_set_value): Update header comment.
923
f058c521
SM
9242021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
925
926 * infrun.c (check_multi_target_resumption): Remove argument to
927 all_non_exited_inferiors.
928
383228bc
CB
9292021-03-16 Christian Biesinger <cbiesinger@google.com>
930
931 * windows-nat.c (windows_init_thread_list): Add message to
932 debug log.
933
7807d76a
AB
9342021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
935
936 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
937 well as PyLong_Check for Python 2.
938
675da9a5
TT
9392021-03-15 Tom Tromey <tromey@adacore.com>
940
941 PR build/27579:
942 * rust-exp.y (maker_map): Use gdb::hash_enum.
943 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
944
4800761a
SM
9452021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
946
947 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
948 end of debug print.
949
eb5dd737
SM
9502021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
951
952 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
953 parameter, adjust caller.
954
6813ceb0
TT
9552021-03-15 Tom Tromey <tromey@adacore.com>
956
957 * ada-exp.y (simple_exp): Always push a result for unary '+'.
958
3b5c4de0
TT
9592021-03-15 Tom Tromey <tromey@adacore.com>
960
961 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
962 ada_ensure_varsize_limit.
963
c04da66c
TT
9642021-03-15 Tom Tromey <tromey@adacore.com>
965
966 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
967 fixed-point.
968 * ada-exp.y (maybe_overload): New function.
969 (ada_wrap_overload): New function.
970 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
971 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
972 (or_else_exp, xor_exp, primary): Update.
973
9863c3b5
TT
9742021-03-15 Tom Tromey <tromey@adacore.com>
975
976 PR ada/27545:
977 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
978 call for tagged type.
979
1ac74522
TT
9802021-03-15 Tom Tromey <tromey@adacore.com>
981
982 * ada-exp.y (exp1): Handle resolution of the right hand side of an
983 assignment.
984
207582c0
TT
9852021-03-15 Tom Tromey <tromey@adacore.com>
986
987 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
988 container.
989 (ada_assign_operation::evaluate): Update.
990 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
991 Change return type.
992
8d624a9d
FW
9932021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
994
995 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
996
ba6a0ef3
AB
9972021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
998
999 * python/python.c (gdbpy_source_objfile_script): Use
1000 make_scoped_restore to restore gdbpy_current_objfile.
1001 (gdbpy_execute_objfile_script): Likewise.
1002
7c290a04
TT
10032021-03-14 Tom Tromey <tom@tromey.com>
1004
1005 * dwarf2/read.c (read_attribute_value): Use cu_header
1006 consistently.
1007
0280fdcc
TT
10082021-03-14 Tom Tromey <tom@tromey.com>
1009
1010 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1011 (peek_die_abbrev): Use reader.abfd.
1012
a9f172c6
TT
10132021-03-14 Tom Tromey <tom@tromey.com>
1014
1015 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1016 m_header_read_in.
1017
7c32eebb
TT
10182021-03-13 Tom Tromey <tom@tromey.com>
1019
1020 * dwarf2/read.c (struct partial_die_info): Update.
1021 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
1022 (load_partial_dies, partial_die_info::partial_die_info): Update.
1023 * dwarf2/abbrev.h (lookup_abbrev): Constify.
1024
27012aba
TT
10252021-03-13 Tom Tromey <tom@tromey.com>
1026
1027 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1028
fece451c
CB
10292021-03-12 Christian Biesinger <cbiesinger@google.com>
1030
1031 PR threads/27239
1032 * cp-support.c: Use scoped_segv_handler_restore.
1033 * event-top.c (thread_local_segv_handler): Made static.
1034 (scoped_segv_handler_restore::scoped_segv_handler_restore):
1035 New function.
1036 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1037 function.
1038 * event-top.h (class scoped_segv_handler_restore): New class.
1039 (thread_local_segv_handler): Removed.
1040
7056f312
TT
10412021-03-10 Tom Tromey <tromey@adacore.com>
1042
1043 * parser-defs.h (parser_state): Change completion to bool.
1044 <parse_completion>: Likewise.
1045 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1046 (ada_resolve_variable, ada_resolve_function): Update.
1047 * ada-lang.c (ada_find_operator_symbol): Change
1048 parse_completion to bool.
1049 (ada_resolve_funcall, ada_resolve_variable)
1050 (ada_resolve_function): Likewise.
1051
ccdc02ed
TT
10522021-03-09 Tom Tromey <tromey@adacore.com>
1053
1054 * eval.c (operation::evaluate_funcall): Use function formal
1055 parameter types when evaluating.
1056
fbb1aace
AB
10572021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
1060 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
1061 and owner to m_owner.
1062
611aa09d
FW
10632021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
1064
1065 * f-exp.h (eval_op_f_loc): Declare.
1066 (expr::fortran_loc_operation): New typedef.
1067 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
1068 UNOP_INTRINSIC.
1069 (f77_keywords): Add LOC keyword.
1070 * f-lang.c (eval_op_f_loc): New function.
1071 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
1072
eef32f59
AB
10732021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1074
1075 * f-exp.h (eval_op_f_array_shape): Declare.
1076 (fortran_array_shape_operation): New type.
1077 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
1078 UNOP_INTRINSIC.
1079 (f77_keywords): Add "shape" keyword.
1080 * f-lang.c (fortran_array_shape): New function.
1081 (eval_op_f_array_shape): New function.
1082 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
1083
7ba155b3
AB
10842021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1085
1086 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
1087 of this function.
1088 (expr::fortran_array_size_1arg): New type.
1089 (expr::fortran_array_size_2arg): Likewise.
1090 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
1091 UNOP_OR_BINOP_INTRINSIC.
1092 (f77_keywords): Add "size" keyword.
1093 * f-lang.c (fortran_array_size): New function.
1094 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
1095 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
1096
e14816a8
AB
10972021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1098
1099 * f-exp.h (eval_op_f_rank): Declare.
1100 (expr::fortran_rank_operation): New typedef.
1101 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
1102 UNOP_INTRINSIC.
1103 (f77_keywords): Add "rank" keyword.
1104 * f-lang.c (eval_op_f_rank): New function.
1105 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
1106
3dd93bf8
TT
11072021-03-08 Tom Tromey <tom@tromey.com>
1108
1109 * printcmd.c (set_command): Remove null check.
1110 * value.c (init_if_undefined_command): Remove null check.
1111
9c79936b
TT
11122021-03-08 Tom Tromey <tom@tromey.com>
1113
1114 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1115 Update.
1116 * p-exp.y (variable): Update.
1117 * go-exp.y (variable): Update.
1118 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
1119 Remove overload for objfile.
1120 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
1121 parameter.
1122 (check_objfile): Likewise.
1123 (dump_for_expression): Likewise. Remove overload for objfile.
1124 (class var_msym_value_operation): Use bound_minimal_symbol.
1125 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
1126 parameter.
1127 (var_msym_value_operation::evaluate_for_address)
1128 (var_msym_value_operation::evaluate_for_sizeof)
1129 (var_msym_value_operation::evaluate_for_cast): Update.
1130 * d-exp.y (PrimaryExpression): Update.
1131 * c-exp.y (variable): Update.
1132 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
1133 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1134 Update.
1135 * ada-exp.y (write_var_or_type): Update.
1136
40d07d07
TT
11372021-03-08 Tom Tromey <tom@tromey.com>
1138
1139 * parser-defs.h (exp_uses_objfile): Return bool.
1140 * parse.c (exp_uses_objfile): Return bool.
1141
0b2b0b82
TT
11422021-03-08 Tom Tromey <tom@tromey.com>
1143
1144 * value.h (eval_skip_value): Don't declare.
1145 * opencl-lang.c (eval_opencl_assign): Update.
1146 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
1147 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1148 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
1149 * expression.h (enum noside) <EVAL_SKIP>: Remove.
1150 * expop.h (typeof_operation::evaluate)
1151 (decltype_operation::evaluate, unop_addr_operation::evaluate)
1152 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
1153 (cxx_cast_operation::evaluate): Update.
1154 * eval.c (eval_skip_value): Remove.
1155 (eval_op_scope, eval_op_var_entry_value)
1156 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
1157 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
1158 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
1159 (eval_op_binary, eval_op_subscript, eval_op_equal)
1160 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
1161 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
1162 (eval_op_complement, eval_op_lognot, eval_op_ind)
1163 (eval_op_memval, eval_op_preinc, eval_op_predec)
1164 (eval_op_postinc, eval_op_postdec, eval_op_type)
1165 (eval_binop_assign_modify, eval_op_objc_msgcall)
1166 (eval_multi_subscript, logical_and_operation::evaluate)
1167 (logical_or_operation::evaluate, array_operation::evaluate)
1168 (operation::evaluate_for_cast)
1169 (var_msym_value_operation::evaluate_for_cast)
1170 (var_value_operation::evaluate_for_cast): Update.
1171 * c-lang.c (c_string_operation::evaluate): Update.
1172 * c-exp.h (objc_nsstring_operation::evaluate)
1173 (objc_selector_operation::evaluate): Update.
1174 * ada-lang.c (ada_assign_operation::evaluate)
1175 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
1176 (ada_atr_size): Update.
1177
96db551d
TT
11782021-03-08 Tom Tromey <tom@tromey.com>
1179
1180 * eval.c: Merge "namespace" scopes.
1181
ce284361
TT
11822021-03-08 Tom Tromey <tom@tromey.com>
1183
1184 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
1185 <release>: Inline.
1186 * parse.c (expr_builder::expr_builder, expr_builder::release):
1187 Remove.
1188
b9d06571
TT
11892021-03-08 Tom Tromey <tom@tromey.com>
1190
1191 * parse.c (expression::expression, expression::~expression):
1192 Remove.
1193 * expression.h (struct expression): Inline constructor. Remove
1194 destructor.
1195
79ab486e
TT
11962021-03-08 Tom Tromey <tom@tromey.com>
1197
1198 * std-operator.def (BINOP_END): Remove.
1199 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
1200 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
1201 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
1202 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
1203 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
1204 BINOP_END.
1205
48fa6f23
TT
12062021-03-08 Tom Tromey <tom@tromey.com>
1207
1208 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
1209
43f542e3
TT
12102021-03-08 Tom Tromey <tom@tromey.com>
1211
1212 * std-operator.def (OP_EXTENDED0): Remove.
1213
5d9ba982
TT
12142021-03-08 Tom Tromey <tom@tromey.com>
1215
1216 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
1217 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
1218 Remove.
1219
d357570d
TT
12202021-03-08 Tom Tromey <tom@tromey.com>
1221
1222 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
1223 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
1224
0922dc84
TT
12252021-03-08 Tom Tromey <tom@tromey.com>
1226
1227 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
1228 * ada-lang.c (ada_binop_minmax): Update.
1229 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1230 Use BINOP_MIN and BINOP_MAX.
1231
1eaebe02
TT
12322021-03-08 Tom Tromey <tom@tromey.com>
1233
1234 * value.h (evaluate_subexp_with_coercion): Don't declare.
1235 * parse.c (exp_descriptor_standard): Remove.
1236 (expr_builder::expr_builder, expr_builder::release): Update.
1237 (expression::expression): Remove size_t parameter.
1238 (expression::~expression): Simplify.
1239 (expression::resize): Remove.
1240 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1241 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1242 (write_exp_elt_longcst, write_exp_elt_floatcst)
1243 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1244 (write_exp_string_vector, write_exp_bitstring): Remove.
1245 * p-lang.h (class pascal_language) <opcode_print_table,
1246 op_print_tab>: Remove.
1247 * p-lang.c (pascal_language::op_print_tab): Remove.
1248 * opencl-lang.c (class opencl_language) <opcode_print_table>:
1249 Remove.
1250 * objc-lang.c (objc_op_print_tab): Remove.
1251 (class objc_language) <opcode_print_table>: Remove.
1252 * m2-lang.h (class m2_language) <opcode_print_table,
1253 op_print_tab>: Remove.
1254 * m2-lang.c (m2_language::op_print_tab): Remove.
1255 * language.h (struct language_defn) <post_parser, expression_ops,
1256 opcode_print_table>: Remove.
1257 * language.c (language_defn::expression_ops)
1258 (auto_or_unknown_language::opcode_print_table): Remove.
1259 * go-lang.h (class go_language) <opcode_print_table,
1260 op_print_tab>: Remove.
1261 * go-lang.c (go_language::op_print_tab): Remove.
1262 * f-lang.h (class f_language) <opcode_print_table>: Remove
1263 <op_print_tab>: Remove.
1264 * f-lang.c (f_language::op_print_tab): Remove.
1265 * expression.h (union exp_element): Remove.
1266 (struct expression): Remove size_t parameter from constructor.
1267 <resize>: Remove.
1268 <first_opcode>: Update.
1269 <nelts, elts>: Remove.
1270 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
1271 (evaluate_subexp_standard, print_expression, op_string)
1272 (dump_raw_expression): Don't declare.
1273 * expprint.c (print_expression, print_subexp)
1274 (print_subexp_funcall, print_subexp_standard, op_string)
1275 (dump_raw_expression, dump_subexp, dump_subexp_body)
1276 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
1277 (dump_prefix_expression): Update.
1278 * eval.c (evaluate_subexp): Remove.
1279 (evaluate_expression, evaluate_type): Update.
1280 (evaluate_subexpression_type): Remove.
1281 (fetch_subexp_value): Remove "pc" parameter. Update.
1282 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
1283 (evaluate_subexp_standard, evaluate_subexp_for_address)
1284 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
1285 (evaluate_subexp_for_cast): Remove.
1286 (parse_and_eval_type): Update.
1287 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1288 * d-lang.c (d_op_print_tab): Remove.
1289 (class d_language) <opcode_print_table>: Remove.
1290 * c-lang.h (c_op_print_tab): Don't declare.
1291 * c-lang.c (c_op_print_tab): Remove.
1292 (class c_language, class cplus_language, class asm_language, class
1293 minimal_language) <opcode_print_table>: Remove.
1294 * breakpoint.c (update_watchpoint, watchpoint_check)
1295 (watchpoint_exp_is_const, watch_command_1): Update.
1296 * ax-gdb.h (union exp_element): Don't declare.
1297 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
1298 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
1299 (gen_expr_binop_rest): Remove.
1300 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
1301 * ada-lang.c (ada_op_print_tab): Remove.
1302 (class ada_language) <post_parser, opcode_print_table>: Remove.
1303
f2a98603
TT
13042021-03-08 Tom Tromey <tom@tromey.com>
1305
1306 * go-lang.c (go_language::expression_ops): Don't declare.
1307 * go-lang.h (class go_language) <expression_ops>: Remove.
1308 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
1309 Remove.
1310 (class opencl_language) <expression_ops>: Remove.
1311 * d-lang.c (class d_language) <expression_ops>: Remove.
1312 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
1313 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
1314 (class c_language, class cplus_language, class asm_language)
1315 (class minimal_language) <expression_ops>: Remove.
1316
d3c54a1c
TT
13172021-03-08 Tom Tromey <tom@tromey.com>
1318
1319 * ada-lang.c (resolve_subexp, replace_operator_with_call)
1320 (evaluate_subexp_type, assign_aggregate)
1321 (aggregate_assign_positional, aggregate_assign_from_choices)
1322 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
1323 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
1324 (ada_operator_check, ada_forward_operator_length)
1325 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
1326 Remove.
1327 (post_parser): Update.
1328 (class ada_language) <expresssion_ops>: Remove.
1329
5871f0a3
TT
13302021-03-08 Tom Tromey <tom@tromey.com>
1331
1332 * m2-lang.h (class m2_language) <expresssion_ops,
1333 exp_descriptor_modula2>: Remove.
1334 * m2-lang.c (evaluate_subexp_modula2)
1335 (m2_language::exp_descriptor_modula2): Remove.
1336
a99be8c1
TT
13372021-03-08 Tom Tromey <tom@tromey.com>
1338
1339 * f-lang.h (class f_language) <expresssion_ops>: Remove.
1340 <exp_descriptor_tab>: Remove.
1341 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
1342 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
1343 (print_subexp_f, dump_subexp_body_f, operator_check_f)
1344 (f_language::exp_descriptor_tab, fortran_prepare_argument):
1345 Remove.
1346
aa1da9ed
TT
13472021-03-08 Tom Tromey <tom@tromey.com>
1348
1349 * rust-lang.h (class rust_language) <expression_ops,
1350 exp_descriptor_tab>: Remove.
1351 * rust-lang.c (rust_evaluate_funcall): Remove.
1352 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
1353 EVAL_SKIP.
1354 (rust_evaluate_subexp): Remove.
1355 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
1356 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
1357 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
1358
08a057e6
TT
13592021-03-08 Tom Tromey <tom@tromey.com>
1360
1361 * ada-exp.y: Create operations.
1362 (empty_stoken): Remove.
1363 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
1364 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
1365 (components): New global.
1366 (push_component, choice_component, pop_component, pop_components):
1367 New functions.
1368 (associations): New global
1369 (push_association, pop_association, pop_associations): New
1370 functions.
1371 (ada_parse): Update.
1372 (write_var_from_sym, write_int): Create operations.
1373 (write_exp_op_with_string): Remove.
1374 (write_object_renaming, write_selectors, write_ambiguous_var)
1375 (write_var_or_type, write_name_assoc): Create operations.
1376 * ada-lang.h (ada_index_type): Declare.
1377 * ada-lang.c (ada_index_type): No longer static.
1378
d308ba78
TT
13792021-03-08 Tom Tromey <tom@tromey.com>
1380
1381 * f-exp.y: Create operations.
1382 (f_language::parser): Update.
1383
f1b8ceef
TT
13842021-03-08 Tom Tromey <tom@tromey.com>
1385
1386 * m2-exp.y: Create operations.
1387 (m2_language::parser): Update.
1388
3163898e
TT
13892021-03-08 Tom Tromey <tom@tromey.com>
1390
1391 * p-exp.y: Create operations.
1392 (pascal_language::parser): Update.
1393
9412fdcc
TT
13942021-03-08 Tom Tromey <tom@tromey.com>
1395
1396 * d-exp.y: Create operations.
1397 (d_parse): Update.
1398
bb4e0574
TT
13992021-03-08 Tom Tromey <tom@tromey.com>
1400
1401 * go-exp.y: Create operations.
1402 (go_language::parser): Update.
1403
d182f279
TT
14042021-03-08 Tom Tromey <tom@tromey.com>
1405
1406 * objc-lang.c (end_msglist): Create operations.
1407 * c-exp.y: Change parser to create operations.
1408 (write_destructor_name): Remove.
1409 (c_parse): Update.
1410
c1299a23
TT
14112021-03-08 Tom Tromey <tom@tromey.com>
1412
1413 * rust-exp.y: Create operations.
1414 (rust_parser::convert_params_to_expression): Change return type.
1415 (binop_maker_ftype): New typedef.
1416 (maker_map): New global.
1417 (rust_parser::convert_ast_to_expression): Change return type.
1418 (rust_language::parser): Update.
1419 (_initialize_rust_exp): Initialize maker_map.
1420
4c5e7a93
TT
14212021-03-08 Tom Tromey <tom@tromey.com>
1422
1423 * stap-probe.c (binop_maker_ftype): New typedef.
1424 (stap_maker_map): New global.
1425 (stap_make_binop): New function.
1426 (stap_parse_register_operand): Return operation_up.
1427 (stap_parse_single_operand, stap_parse_argument_conditionally)
1428 (stap_parse_argument_1): Likewise.
1429 (stap_parse_argument): Create operations.
1430 (stap_probe::parse_arguments): Update.
1431 (_initialize_stap_probe): Initialize stap_maker_map.
1432 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
1433 type.
1434 * i386-tdep.h (i386_stap_parse_special_token): Change return
1435 type.
1436 * i386-tdep.c (i386_stap_parse_special_token_triplet)
1437 (i386_stap_parse_special_token_three_arg_disp)
1438 (i386_stap_parse_special_token): Change return type.
1439 * gdbarch.sh (stap_parse_special_token): Change return type.
1440 * gdbarch.c: Rebuild.
1441 * gdbarch.h: Rebuild.
1442 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
1443 type.
1444 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
1445 return type.
1446
482ddd69
TT
14472021-03-08 Tom Tromey <tom@tromey.com>
1448
1449 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
1450 * gdbarch.h: Rebuild.
1451 * gdbarch.c: Rebuild.
1452 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1453 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
1454 return type.
1455 (amd64_dtrace_parse_probe_argument): Update.
1456
8227d9e2
TT
14572021-03-08 Tom Tromey <tom@tromey.com>
1458
1459 * parser-defs.h (struct parser_state) <push, push_new,
1460 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
1461 wrap2>: New methods.
1462 <m_operations>: New member.
1463 * parse.c (parser_state::push_c_string)
1464 (parser_state::push_symbol, parser_state::push_dollar): New
1465 methods.
1466
4933522d
TT
14672021-03-08 Tom Tromey <tom@tromey.com>
1468
1469 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
1470 New member.
1471 (struct parser_state) <mark_struct_expression>: New method.
1472 * parse.c (parser_state::mark_struct_expression): Update assert.
1473 (parser_state::mark_struct_expression): New method.
1474 (parser_state::mark_completion_tag): Update assert.
1475 (parse_expression_for_completion): Handle expout_last_op.
1476
413403fc
TT
14772021-03-08 Tom Tromey <tom@tromey.com>
1478
1479 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
1480 now in superclass.
1481 * value.h (fetch_subexp_value): Add "op" parameter.
1482 * value.c (init_if_undefined_command): Update.
1483 * tracepoint.c (validate_actionline, encode_actions_1): Update.
1484 * stap-probe.c (stap_probe::compile_to_ax): Update.
1485 * printcmd.c (set_command): Update.
1486 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
1487 Update.
1488 * parser-defs.h (struct expr_builder) <set_operation>: New
1489 method.
1490 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
1491 * expression.h (struct expression) <first_opcode>: Update.
1492 <op>: New member.
1493 * expprint.c (dump_raw_expression, dump_prefix_expression):
1494 Update.
1495 * expop.h (class var_value_operation) <get_symbol>: New method.
1496 (class register_operation) <get_name>: New method.
1497 (class equal_operation): No longer a typedef, now a subclass.
1498 (class unop_memval_operation) <get_type>: New method.
1499 (class assign_operation) <get_lhs>: New method.
1500 (class unop_cast_operation) <get_type>: New method.
1501 * eval.c (evaluate_expression, evaluate_type)
1502 (evaluate_subexpression_type): Update.
1503 (fetch_subexp_value): Add "op" parameter.
1504 (parse_and_eval_type): Update.
1505 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1506 * breakpoint.c (update_watchpoint, watchpoint_check)
1507 (watchpoint_exp_is_const, watch_command_1): Update.
1508 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
1509 Update.
1510
b0f9164c
TT
15112021-03-08 Tom Tromey <tom@tromey.com>
1512
1513 * ada-lang.c (ada_value_binop): Do not use op_string.
1514
a88c4354
TT
15152021-03-08 Tom Tromey <tom@tromey.com>
1516
1517 * expprint.c (dump_for_expression): New overload.
1518 * expop.h (check_objfile, dump_for_expression): Declare new
1519 overloads.
1520 * ada-lang.c (check_objfile): New overload.
1521 (assign_component, ada_aggregate_component::uses_objfile)
1522 (ada_aggregate_component::dump, ada_aggregate_component::assign)
1523 (ada_aggregate_component::assign_aggregate)
1524 (ada_positional_component::uses_objfile)
1525 (ada_positional_component::dump, ada_positional_component::assign)
1526 (ada_discrete_range_association::uses_objfile)
1527 (ada_discrete_range_association::dump)
1528 (ada_discrete_range_association::assign)
1529 (ada_name_association::uses_objfile, ada_name_association::dump)
1530 (ada_name_association::assign)
1531 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1532 (ada_choices_component::assign)
1533 (ada_others_component::uses_objfile, ada_others_component::dump)
1534 (ada_others_component::assign, ada_assign_operation::evaluate):
1535 New methods.
1536 * ada-exp.h (ada_string_operation) <get_name>: New method.
1537 (class ada_assign_operation): New.
1538 (class ada_component): New.
1539 (ada_component_up): New typedef.
1540 (class ada_aggregate_operation, class ada_aggregate_component)
1541 (class ada_positional_component, class ada_others_component)
1542 (class ada_association): New.
1543 (ada_association_up): New typedef.
1544 (class ada_choices_component)
1545 (class ada_discrete_range_association)
1546 (class ada_name_association): New.
1547
d8a4ed8a
TT
15482021-03-08 Tom Tromey <tom@tromey.com>
1549
1550 * ada-lang.c (ada_var_value_operation::resolve)
1551 (ada_funcall_operation::resolve)
1552 (ada_ternop_slice_operation::resolve): New methods.
1553 * ada-exp.h (struct ada_resolvable): New.
1554 (class ada_var_value_operation): Derive from ada_resolvable.
1555 <get_block, resolve>: New methods.
1556 (class ada_funcall_operation): Derive from ada_resolvable.
1557 <resolve>: New method.
1558 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1559 <resolve>: New method.
1560
efe3af2f
TT
15612021-03-08 Tom Tromey <tom@tromey.com>
1562
1563 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1564 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1565 method.
1566 (class ada_funcall_operation): New.
1567
ebc06ad8
TT
15682021-03-08 Tom Tromey <tom@tromey.com>
1569
1570 * ada-lang.c (ada_structop_operation::evaluate): New method.
1571 * ada-exp.h (class ada_structop_operation): New.
1572
e8c33fa1
TT
15732021-03-08 Tom Tromey <tom@tromey.com>
1574
1575 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1576 * ada-exp.h (class ada_unop_ind_operation): New.
1577
065ec826
TT
15782021-03-08 Tom Tromey <tom@tromey.com>
1579
1580 * ada-lang.c (ada_binop_exp): No longer static.
1581 * ada-exp.h (ada_binop_exp_operation): New typedef.
1582
9e99f48f
TT
15832021-03-08 Tom Tromey <tom@tromey.com>
1584
1585 * ada-lang.c (ada_val_atr): No longer static.
1586 (ada_atr_val_operation::evaluate): New method.
1587 * ada-exp.h (class ada_atr_val_operation): New.
1588
7631cf6c
TT
15892021-03-08 Tom Tromey <tom@tromey.com>
1590
1591 * ada-lang.c (ada_pos_atr): No longer static.
1592 * ada-exp.h (ada_pos_operation): New typedef.
1593
7992accc
TT
15942021-03-08 Tom Tromey <tom@tromey.com>
1595
1596 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1597 parameters.
1598 (ada_evaluate_subexp): Use it.
1599
6ad3b8bf
TT
16002021-03-08 Tom Tromey <tom@tromey.com>
1601
1602 * ada-lang.c (ada_binop_minmax): No longer static.
1603 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1604 New typedefs.
1605
3f4a0053
TT
16062021-03-08 Tom Tromey <tom@tromey.com>
1607
1608 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1609 New method.
1610 * ada-exp.h (class ada_var_msym_value_operation): New.
1611
99a3b1e7
TT
16122021-03-08 Tom Tromey <tom@tromey.com>
1613
1614 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1615 (ada_var_value_operation::evaluate): New methods.
1616 * ada-exp.h (class ada_var_value_operation): New.
1617
60fa02ca
TT
16182021-03-08 Tom Tromey <tom@tromey.com>
1619
1620 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1621 * ada-exp.h (class ada_unop_atr_operation): New.
1622
82c3886e
TT
16232021-03-08 Tom Tromey <tom@tromey.com>
1624
1625 * ada-lang.c (ada_binop_in_bounds): No longer static.
1626 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1627
1b1ebfab
TT
16282021-03-08 Tom Tromey <tom@tromey.com>
1629
1630 * ada-lang.c (ada_ternop_slice): No longer static.
1631 * ada-exp.h (class ada_ternop_slice_operation): New.
1632
039e4b76
TT
16332021-03-08 Tom Tromey <tom@tromey.com>
1634
1635 * ada-exp.h (ada_bitwise_operation): New template class.
1636 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1637 (ada_bitwise_xor_operation): New typedefs.
1638
6e8fb7b7
TT
16392021-03-08 Tom Tromey <tom@tromey.com>
1640
1641 * ada-lang.c (ada_equal_binop): No longer static.
1642 * ada-exp.h (class ada_binop_equal_operation): New.
1643
d9e7db06
TT
16442021-03-08 Tom Tromey <tom@tromey.com>
1645
1646 * ada-lang.c (ada_mult_binop): No longer static.
1647 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1648 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1649
73796c73
TT
16502021-03-08 Tom Tromey <tom@tromey.com>
1651
1652 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1653 * ada-exp.h (class ada_binop_addsub_operation): New.
1654
cd9a3148
TT
16552021-03-08 Tom Tromey <tom@tromey.com>
1656
1657 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1658 (ada_resolve_variable): Declare.
1659 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1660 (ada_resolve_variable): New functions.
1661 (resolve_subexp): Update.
1662
cf12b17f
TT
16632021-03-08 Tom Tromey <tom@tromey.com>
1664
1665 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1666 method.
1667 * c-exp.h (class opencl_ternop_cond_operation): New.
1668
944fd3b8
TT
16692021-03-08 Tom Tromey <tom@tromey.com>
1670
1671 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1672 method.
1673 * c-exp.h (class opencl_logical_binop_operation): New.
1674
33b79214
TT
16752021-03-08 Tom Tromey <tom@tromey.com>
1676
1677 * opencl-lang.c (opencl_structop_operation::evaluate): New
1678 method.
1679 * c-exp.h (class opencl_structop_operation): New.
1680
2492ba36
TT
16812021-03-08 Tom Tromey <tom@tromey.com>
1682
1683 * opencl-lang.c (opencl_logical_not): No longer static. Change
1684 parameters.
1685 (evaluate_subexp_opencl): Update.
1686 * c-exp.h (opencl_notequal_operation): New typedef.
1687
a88c3c8d
TT
16882021-03-08 Tom Tromey <tom@tromey.com>
1689
1690 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
1691 static. Change parameters.
1692 (eval_opencl_assign): No longer static. Add "op" parameter.
1693 (evaluate_subexp_opencl): Update.
1694 * c-exp.h (opencl_binop_operation): New template class.
1695 (opencl_assign_operation, opencl_equal_operation)
1696 (opencl_notequal_operation, opencl_less_operation)
1697 (opencl_gtr_operation, opencl_geq_operation)
1698 (opencl_leq_operation): New typedefs.
1699
e9677704
TT
17002021-03-08 Tom Tromey <tom@tromey.com>
1701
1702 * opencl-lang.c (opencl_value_cast): No longer static.
1703 * c-exp.h (opencl_cast_type_operation): New typedef.
1704
f403a4e4
TT
17052021-03-08 Tom Tromey <tom@tromey.com>
1706
1707 * f-exp.h (eval_op_f_allocated): Declare.
1708 (fortran_allocated_operation): New typedef.
1709 * f-lang.c (eval_op_f_allocated): No longer static.
1710
eb4c9271
TT
17112021-03-08 Tom Tromey <tom@tromey.com>
1712
1713 * f-lang.c (eval_op_f_associated): New functions.
1714 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1715 typedefs.
1716
58a76c72
TT
17172021-03-08 Tom Tromey <tom@tromey.com>
1718
1719 * f-lang.c (fortran_bound_1arg::evaluate)
1720 (fortran_bound_2arg::evaluate): New methods.
1721 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
1722 New.
1723
2f98abe1
TT
17242021-03-08 Tom Tromey <tom@tromey.com>
1725
1726 * expop.h (class unop_addr_operation) <get_expression>: New
1727 method.
1728 * f-lang.c (fortran_undetermined::value_subarray)
1729 (fortran_undetermined::evaluate): New methods.
1730 (fortran_prepare_argument): New overload.
1731 * f-exp.h (class fortran_range_operation)
1732 (class fortran_undetermined): New classes.
1733
638fd74a
TT
17342021-03-08 Tom Tromey <tom@tromey.com>
1735
1736 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1737 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1738 method.
1739
a00b7254
TT
17402021-03-08 Tom Tromey <tom@tromey.com>
1741
1742 * expression.h (class operation) <evaluate_funcall>: New methods.
1743 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1744 (class var_value_operation) <evaluate_funcall>: New method.
1745 (class structop_base_operation) <evaluate_funcall>: New method.
1746 (class var_msym_value_operation) <evaluate_funcall>: New method.
1747 (class structop_member_base): New class.
1748 (class structop_member_operation): Derive from
1749 structop_member_base.
1750 (class structop_mptr_operation): Derive from
1751 structop_member_base.
1752 (class funcall_operation): New class.
1753 * eval.c (operation::evaluate_funcall)
1754 (var_value_operation::evaluate_funcall)
1755 (scope_operation::evaluate_funcall)
1756 (structop_member_base::evaluate_funcall)
1757 (structop_base_operation::evaluate_funcall): New methods.
1758
1c02eb30
TT
17592021-03-08 Tom Tromey <tom@tromey.com>
1760
1761 * expop.h (class array_operation): New.
1762 * eval.c (array_operation::evaluate_struct_tuple)
1763 (array_operation::evaluate): New methods.
1764
e4479080
TT
17652021-03-08 Tom Tromey <tom@tromey.com>
1766
1767 * expop.h (class adl_func_operation): New.
1768 * eval.c (adl_func_operation::evaluate): New method.
1769
95d49dfb
TT
17702021-03-08 Tom Tromey <tom@tromey.com>
1771
1772 * ada-lang.c (ada_unop_in_range): No longer static.
1773 * ada-exp.h (class ada_unop_range_operation): New.
1774
7c15d377
TT
17752021-03-08 Tom Tromey <tom@tromey.com>
1776
1777 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
1778 No longer static.
1779 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
1780 (ada_atr_size_operation, ada_abs_operation): New typedefs.
1781
5019124b
TT
17822021-03-08 Tom Tromey <tom@tromey.com>
1783
1784 * expop.h (class logical_and_operation)
1785 (class logical_or_operation): New.
1786 * eval.c (logical_and_operation::evaluate)
1787 (logical_or_operation::evaluate): New methods.
1788 * ax-gdb.c (logical_and_operation::do_generate_ax)
1789 (logical_or_operation::do_generate_ax): New methods.
1790
2bc9b40c
TT
17912021-03-08 Tom Tromey <tom@tromey.com>
1792
1793 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
1794 static.
1795 * m2-exp.h: New file.
1796
5947d337
TT
17972021-03-08 Tom Tromey <tom@tromey.com>
1798
1799 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
1800 * rust-exp.h (class rust_aggregate_operation): New.
1801
e4407a20
TT
18022021-03-08 Tom Tromey <tom@tromey.com>
1803
1804 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
1805 No longer static.
1806 * rust-exp.h (class rust_struct_anon): New.
1807 (class rust_structop): New.
1808
9db6b6dd
TT
18092021-03-08 Tom Tromey <tom@tromey.com>
1810
1811 * rust-lang.c (rust_range): No longer static.
1812 * rust-exp.h (class rust_range_operation): New.
1813
6ce1ad67
TT
18142021-03-08 Tom Tromey <tom@tromey.com>
1815
1816 * rust-lang.c (rust_subscript): No longer static.
1817 * rust-exp.h (class rust_subscript_operation): New.
1818
11dd3dce
TT
18192021-03-08 Tom Tromey <tom@tromey.com>
1820
1821 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1822 parameter.
1823 (rust_evaluate_subexp): Update.
1824 * rust-exp.h (class rust_unop_ind_operation): New.
1825
6fab4359
TT
18262021-03-08 Tom Tromey <tom@tromey.com>
1827
1828 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1829 longer static. Add "opcode" parameter.
1830 (rust_evaluate_subexp): Update.
1831 * rust-exp.h: New file.
1832
9dcd3e29
TT
18332021-03-08 Tom Tromey <tom@tromey.com>
1834
1835 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1836 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1837 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1838 (evaluate_subexp_f): Update.
1839 * f-exp.h: New file.
1840
fc715eb2
TT
18412021-03-08 Tom Tromey <tom@tromey.com>
1842
1843 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1844 * ada-exp.h (class ada_ternop_range_operation): New.
1845
cc6bd32e
TT
18462021-03-08 Tom Tromey <tom@tromey.com>
1847
1848 * ada-lang.c (ada_qual_operation::evaluate): New method.
1849 * ada-exp.h (class ada_qual_operation): New.
1850
42fecb61
TT
18512021-03-08 Tom Tromey <tom@tromey.com>
1852
1853 * ada-lang.c (ada_string_operation::evaluate): New method.
1854 * ada-exp.h (class ada_string_operation): New.
1855
03070ee9
TT
18562021-03-08 Tom Tromey <tom@tromey.com>
1857
1858 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
1859 * ada-exp.h: New file.
1860
821e72d7
TT
18612021-03-08 Tom Tromey <tom@tromey.com>
1862
1863 * expop.h (class multi_subscript_operation): New.
1864 * eval.c (multi_subscript_operation::evaluate): New method.
1865
085734dd
TT
18662021-03-08 Tom Tromey <tom@tromey.com>
1867
1868 * eval.c (objc_msgcall_operation::evaluate): New method.
1869 * c-exp.h (class objc_msgcall_operation): New.
1870
e82a5afc
TT
18712021-03-08 Tom Tromey <tom@tromey.com>
1872
1873 * expop.h (class var_value_operation): New.
1874 * eval.c (var_value_operation::evaluate)
1875 (var_value_operation::evaluate_for_address)
1876 (var_value_operation::evaluate_with_coercion)
1877 (var_value_operation::evaluate_for_sizeof)
1878 (var_value_operation::evaluate_for_cast): New methods.
1879 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
1880
d9ad79d8
TT
18812021-03-08 Tom Tromey <tom@tromey.com>
1882
1883 * expop.h (cxx_cast_ftype): New typedef.
1884 (cxx_cast_operation): New template.
1885 (dynamic_cast_operation, reinterpret_cast_operation): New
1886 typedefs.
1887
292382f4
TT
18882021-03-08 Tom Tromey <tom@tromey.com>
1889
1890 * expop.h (class unop_cast_type_operation): New.
1891 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
1892 method.
1893
165a813a
TT
18942021-03-08 Tom Tromey <tom@tromey.com>
1895
1896 * expop.h (class unop_cast_operation): New.
1897 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
1898
e5946e16
TT
18992021-03-08 Tom Tromey <tom@tromey.com>
1900
1901 * expop.h (class assign_modify_operation): New.
1902 * eval.c (eval_binop_assign_modify): No longer static.
1903 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1904
40786782
TT
19052021-03-08 Tom Tromey <tom@tromey.com>
1906
1907 * expop.h (class assign_operation): New.
1908 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1909
44b675c8
TT
19102021-03-08 Tom Tromey <tom@tromey.com>
1911
1912 * expop.h (class type_instance_operation): New.
1913 * eval.c (type_instance_operation::evaluate): New method.
1914
f6b42326
TT
19152021-03-08 Tom Tromey <tom@tromey.com>
1916
1917 * expop.h (class op_this_operation): New.
1918 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1919
cbc18219
TT
19202021-03-08 Tom Tromey <tom@tromey.com>
1921
1922 * expop.h (class unop_memval_operation)
1923 (class unop_memval_type_operation): New.
1924 * eval.c (eval_op_memval): No longer static.
1925 (unop_memval_operation::evaluate_for_address)
1926 (unop_memval_type_operation::evaluate_for_address)
1927 (unop_memval_operation::evaluate_for_sizeof)
1928 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1929 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1930 (unop_memval_type_operation::do_generate_ax): New methods.
1931
ae4bb61e
TT
19322021-03-08 Tom Tromey <tom@tromey.com>
1933
1934 * expop.h (class unop_alignof_operation): New.
1935 * eval.c (eval_op_alignof): No longer static.
1936
85d23bda
TT
19372021-03-08 Tom Tromey <tom@tromey.com>
1938
1939 * expop.h (class unop_sizeof_operation): New.
1940 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1941
14aff815
TT
19422021-03-08 Tom Tromey <tom@tromey.com>
1943
1944 * expop.h (class unop_addr_operation): New.
1945 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1946
929f3aa7
TT
19472021-03-08 Tom Tromey <tom@tromey.com>
1948
1949 * expop.h (class typeid_operation): New.
1950
0af8829e
TT
19512021-03-08 Tom Tromey <tom@tromey.com>
1952
1953 * expop.h (class decltype_operation): New.
1954
4efc574c
TT
19552021-03-08 Tom Tromey <tom@tromey.com>
1956
1957 * expop.h (class typeof_operation): New.
1958
5b5f5140
TT
19592021-03-08 Tom Tromey <tom@tromey.com>
1960
1961 * expop.h (class type_operation): New.
1962 * eval.c (eval_op_type): No longer static.
1963
876469ff
TT
19642021-03-08 Tom Tromey <tom@tromey.com>
1965
1966 * expop.h (class unop_ind_base_operation)
1967 (class unop_ind_operation): New.
1968 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1969 (unop_ind_base_operation::evaluate_for_address)
1970 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1971 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1972
6d89e296
TT
19732021-03-08 Tom Tromey <tom@tromey.com>
1974
1975 * expop.h (unop_incr_operation): New template.
1976 (preinc_operation, predec_operation, postinc_operation)
1977 (postdec_operation): New typedefs.
1978 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1979 (eval_op_postdec): No longer static.
1980
9307d17b
TT
19812021-03-08 Tom Tromey <tom@tromey.com>
1982
1983 * expop.h (unary_ftype): New typedef.
1984 (unop_operation, usual_ax_binop_operation): New templates.
1985 (unary_plus_operation, unary_neg_operation)
1986 (unary_complement_operation, unary_logical_not_operation): New
1987 typedefs.
1988 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1989 (eval_op_lognot): No longer static.
1990 * ax-gdb.c (gen_expr_unop): New function.
1991
ae64ba58
TT
19922021-03-08 Tom Tromey <tom@tromey.com>
1993
1994 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1995
d4eff4c1
TT
19962021-03-08 Tom Tromey <tom@tromey.com>
1997
1998 * expop.h (class repeat_operation): New.
1999 * eval.c (eval_op_repeat): No longer static. Remove "op"
2000 parameter.
2001 (evaluate_subexp_standard): Update.
2002 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2003
46916f2b
TT
20042021-03-08 Tom Tromey <tom@tromey.com>
2005
2006 * expop.h (class comparison_operation): New.
2007 (equal_operation, notequal_operation, less_operation)
2008 (gtr_operation, geq_operation, leq_operation): New typedefs.
2009 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
2010 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
2011
224d6424
TT
20122021-03-08 Tom Tromey <tom@tromey.com>
2013
2014 * expop.h (class subscript_operation): New.
2015 * eval.c (eval_op_subscript): No longer static.
2016
373907ff
TT
20172021-03-08 Tom Tromey <tom@tromey.com>
2018
2019 * expop.h (class binop_operation, class usual_ax_binop_operation):
2020 New.
2021 (exp_operation, intdiv_operation, mod_operation, mul_operation)
2022 (div_operation, rem_operation, lsh_operation, rsh_operation)
2023 (bitwise_and_operation, bitwise_ior_operation)
2024 (bitwise_xor_operation): New typedefs.
2025 * eval.c (eval_op_binary): No longer static.
2026
5133d78b
TT
20272021-03-08 Tom Tromey <tom@tromey.com>
2028
2029 * expop.h (class sub_operation): New.
2030 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
2031 (evaluate_subexp_standard): Update.
2032
a94323b6
TT
20332021-03-08 Tom Tromey <tom@tromey.com>
2034
2035 * expop.h (class add_operation): New.
2036 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
2037 (evaluate_subexp_standard): Update.
2038
e51e26a0
TT
20392021-03-08 Tom Tromey <tom@tromey.com>
2040
2041 * expop.h (class concat_operation): New.
2042 * eval.c (eval_op_concat): No longer static. Remove "op"
2043 parameter.
2044 (evaluate_subexp_standard): Update.
2045
07f724a8
TT
20462021-03-08 Tom Tromey <tom@tromey.com>
2047
2048 * expop.h (class structop_member_operation)
2049 (class structop_mptr_operation): New.
2050 * eval.c (eval_op_member): No longer static.
2051
ab0609be
TT
20522021-03-08 Tom Tromey <tom@tromey.com>
2053
2054 * expop.h (class structop_ptr_operation): New.
2055 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
2056 parameter.
2057
808b22cf
TT
20582021-03-08 Tom Tromey <tom@tromey.com>
2059
2060 * expop.h (class structop_base_operation)
2061 (class structop_operation): New.
2062 * eval.c (eval_op_structop_struct): No longer static.
2063
8cfd3e95
TT
20642021-03-08 Tom Tromey <tom@tromey.com>
2065
2066 * expop.h (class complex_operation): New.
2067
09db3700
TT
20682021-03-08 Tom Tromey <tom@tromey.com>
2069
2070 * eval.c (eval_op_objc_selector): No longer static.
2071 * c-exp.h (class objc_selector_operation): New.
2072
06dc61b9
TT
20732021-03-08 Tom Tromey <tom@tromey.com>
2074
2075 * eval.c: Include c-exp.h.
2076 * c-exp.h (class objc_nsstring_operation): New.
2077
72d0a711
TT
20782021-03-08 Tom Tromey <tom@tromey.com>
2079
2080 * c-lang.c (c_string_operation::evaluate): New method.
2081 * c-exp.h: New file.
2082
9186293f
TT
20832021-03-08 Tom Tromey <tom@tromey.com>
2084
2085 * expop.h (class ternop_cond_operation): New.
2086 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
2087
1594e0bb
TT
20882021-03-08 Tom Tromey <tom@tromey.com>
2089
2090 * expop.h (class ternop_slice_operation): New.
2091 * eval.c (eval_op_ternop): No longer static.
2092
b50db09f
TT
20932021-03-08 Tom Tromey <tom@tromey.com>
2094
2095 * expop.h (class string_operation): New.
2096 * eval.c (eval_op_string): No longer static.
2097
e6e01e16
TT
20982021-03-08 Tom Tromey <tom@tromey.com>
2099
2100 * expop.h (class internalvar_operation): New.
2101 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
2102
e6985c5e
TT
21032021-03-08 Tom Tromey <tom@tromey.com>
2104
2105 * expop.h (class bool_operation): New.
2106
55bdbff8
TT
21072021-03-08 Tom Tromey <tom@tromey.com>
2108
2109 * expop.h (class register_operation): New.
2110 * eval.c (eval_op_register): No longer static.
2111 * ax-gdb.c (register_operation::do_generate_ax): New method.
2112
247d935b
TT
21132021-03-08 Tom Tromey <tom@tromey.com>
2114
2115 * expop.h (class last_operation): New.
2116
17679395
TT
21172021-03-08 Tom Tromey <tom@tromey.com>
2118
2119 * expop.h (class func_static_var_operation): New.
2120 * eval.c (eval_op_func_static_var): No longer static.
2121
b5cc3923
TT
21222021-03-08 Tom Tromey <tom@tromey.com>
2123
2124 * expop.h (class var_entry_value_operation): New.
2125 * eval.c (eval_op_var_entry_value): No longer static.
2126
0c8effa3
TT
21272021-03-08 Tom Tromey <tom@tromey.com>
2128
2129 * expression.h (class operation) <set_outermost>: New method.
2130 * expop.h (class var_msym_value_operation): New.
2131 * eval.c (eval_op_var_msym_value): No longer static.
2132 (var_msym_value_operation::evaluate_for_address)
2133 (var_msym_value_operation::evaluate_for_sizeof)
2134 (var_msym_value_operation::evaluate_for_cast): New methods.
2135 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
2136 method.
2137
d336c29e
TT
21382021-03-08 Tom Tromey <tom@tromey.com>
2139
2140 * expop.h (class long_const_operation): New.
2141 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
2142
d5ab122c
TT
21432021-03-08 Tom Tromey <tom@tromey.com>
2144
2145 * expop.h (class scope_operation): New.
2146 * eval.c (eval_op_scope): No longer static.
2147 (scope_operation::evaluate_for_address): New method.
2148 * ax-gdb.c (scope_operation::do_generate_ax): New method.
2149
cae26a0c
TT
21502021-03-08 Tom Tromey <tom@tromey.com>
2151
2152 * expprint.c (float_const_operation::dump): New method.
2153 * expop.h (float_data): New typedef.
2154 (class float_const_operation): New.
2155
75f9892d
TT
21562021-03-08 Tom Tromey <tom@tromey.com>
2157
2158 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
2159 * ax-gdb.c (gen_expr_binop): New function.
2160 (gen_expr_structop): Likewise.
2161
de401988
TT
21622021-03-08 Tom Tromey <tom@tromey.com>
2163
2164 * expprint.c (expr::dump_for_expression): New functions.
2165 * expop.h (dump_for_expression): New overloads.
2166 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
2167 Update.
2168
e2803273
TT
21692021-03-08 Tom Tromey <tom@tromey.com>
2170
2171 * expression.h (expr::operation): New class.
2172 (expr::make_operation): New function.
2173 (expr::operation_up): New typedef.
2174 * expop.h: New file.
2175 * eval.c (operation::evaluate_for_cast)
2176 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
2177 New methods.
2178 * ax-gdb.c (operation::generate_ax): New method.
2179
e18c58f2
TT
21802021-03-08 Tom Tromey <tom@tromey.com>
2181
2182 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
2183 (gen_expr_binop_rest): New overload.
2184
c0d7ed8c
TT
21852021-03-08 Tom Tromey <tom@tromey.com>
2186
2187 * eval.c (eval_multi_subscript): New function.
2188 (evaluate_subexp_standard): Use it.
2189
dd5fd283
TT
21902021-03-08 Tom Tromey <tom@tromey.com>
2191
2192 * ada-lang.c (ada_binop_exp): New function.
2193 (ada_evaluate_subexp): Use it.
2194
3848abd6
TT
21952021-03-08 Tom Tromey <tom@tromey.com>
2196
2197 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
2198 parameters.
2199 (ada_evaluate_subexp): Use it.
2200
38dc70cf
TT
22012021-03-08 Tom Tromey <tom@tromey.com>
2202
2203 * ada-lang.c (ada_binop_minmax): New function.
2204 (ada_evaluate_subexp): Use it.
2205
b84564fc
TT
22062021-03-08 Tom Tromey <tom@tromey.com>
2207
2208 * ada-lang.c (ada_unop_atr): New function.
2209 (ada_evaluate_subexp): Use it.
2210
b467efaa
TT
22112021-03-08 Tom Tromey <tom@tromey.com>
2212
2213 * ada-lang.c (ada_binop_in_bounds): New function.
2214 (ada_evaluate_subexp): Use it.
2215
5ce19db8
TT
22162021-03-08 Tom Tromey <tom@tromey.com>
2217
2218 * ada-lang.c (ada_ternop_slice): New function.
2219 (ada_evaluate_subexp): Use it.
2220
214b13ac
TT
22212021-03-08 Tom Tromey <tom@tromey.com>
2222
2223 * ada-lang.c (ada_equal_binop): New function.
2224 (ada_evaluate_subexp): Use it.
2225
faa1dfd7
TT
22262021-03-08 Tom Tromey <tom@tromey.com>
2227
2228 * ada-lang.c (ada_mult_binop): New function.
2229 (ada_evaluate_subexp): Use it.
2230
d05e24e6
TT
22312021-03-08 Tom Tromey <tom@tromey.com>
2232
2233 * ada-lang.c (ada_abs): New function.
2234 (ada_evaluate_subexp): Use it.
2235
68c75735
TT
22362021-03-08 Tom Tromey <tom@tromey.com>
2237
2238 * ada-lang.c (ada_atr_size): New function.
2239 (ada_evaluate_subexp): Use it.
2240
020dbabe
TT
22412021-03-08 Tom Tromey <tom@tromey.com>
2242
2243 * ada-lang.c (ada_atr_tag): New function.
2244 (ada_evaluate_subexp): Use it.
2245
7efc87ff
TT
22462021-03-08 Tom Tromey <tom@tromey.com>
2247
2248 * ada-lang.c (ada_unop_in_range): New function.
2249 (ada_evaluate_subexp): Use it.
2250
82390ab8
TT
22512021-03-08 Tom Tromey <tom@tromey.com>
2252
2253 * ada-lang.c (ada_unop_neg): New function.
2254 (ada_evaluate_subexp): Use it.
2255
62d4bd94
TT
22562021-03-08 Tom Tromey <tom@tromey.com>
2257
2258 * ada-lang.c (eval_ternop_in_range): New function.
2259 (ada_evaluate_subexp): Use it.
2260
3634f669
TT
22612021-03-08 Tom Tromey <tom@tromey.com>
2262
2263 * opencl-lang.c (eval_opencl_assign): New function.
2264 (evaluate_subexp_opencl): Use it.
2265
5e80600e
TT
22662021-03-08 Tom Tromey <tom@tromey.com>
2267
2268 * eval.c (eval_op_objc_msgcall): New function.
2269 (evaluate_subexp_standard): Use it.
2270
fb5ba2ab
TT
22712021-03-08 Tom Tromey <tom@tromey.com>
2272
2273 * eval.c (eval_binop_assign_modify): New function.
2274 (evaluate_subexp_standard): Use it.
2275
a49881f7
TT
22762021-03-08 Tom Tromey <tom@tromey.com>
2277
2278 * m2-lang.c (eval_op_m2_subscript): New function.
2279 (evaluate_subexp_modula2): Use it.
2280
41bdced5
TT
22812021-03-08 Tom Tromey <tom@tromey.com>
2282
2283 * m2-lang.c (eval_op_m2_high): New function.
2284 (evaluate_subexp_modula2): Use it.
2285
13ea014a
TT
22862021-03-08 Tom Tromey <tom@tromey.com>
2287
2288 * eval.c (evaluate_subexp_for_address_base): New function.
2289 (evaluate_subexp_for_address): Use it.
2290 (evaluate_subexp_for_sizeof_base): New function.
2291 (evaluate_subexp_for_sizeof): Use it.
2292
1fa41fc7
TT
22932021-03-08 Tom Tromey <tom@tromey.com>
2294
2295 * rust-lang.c (eval_op_rust_structop): New function.
2296 (rust_evaluate_subexp): Use it.
2297
575cae23
TT
22982021-03-08 Tom Tromey <tom@tromey.com>
2299
2300 * rust-lang.c (eval_op_rust_struct_anon): New function.
2301 (rust_evaluate_subexp): Use it.
2302
05104233
TT
23032021-03-08 Tom Tromey <tom@tromey.com>
2304
2305 * rust-lang.c (eval_op_rust_array): New function.
2306 (rust_evaluate_subexp): Use it.
2307
6fa9831f
TT
23082021-03-08 Tom Tromey <tom@tromey.com>
2309
2310 * rust-lang.c (eval_op_rust_complement): New function.
2311 (rust_evaluate_subexp): Use it.
2312
d123f9e4
TT
23132021-03-08 Tom Tromey <tom@tromey.com>
2314
2315 * rust-lang.c (eval_op_rust_ind): New function.
2316 (rust_evaluate_subexp): Use it.
2317
984af2cb
TT
23182021-03-08 Tom Tromey <tom@tromey.com>
2319
2320 * rust-lang.c (rust_subscript): Change parameters.
2321 (rust_evaluate_subexp): Update.
2322
d148f803
TT
23232021-03-08 Tom Tromey <tom@tromey.com>
2324
2325 * rust-lang.c (rust_range): Change parameters.
2326 (rust_evaluate_subexp): Update.
2327
9cbd1c20
TT
23282021-03-08 Tom Tromey <tom@tromey.com>
2329
2330 * f-lang.c (eval_op_f_allocated): New function.
2331 (evaluate_subexp_f): Use it.
2332
3c18c49c
TT
23332021-03-08 Tom Tromey <tom@tromey.com>
2334
2335 * f-lang.c (fortran_require_array): New function.
2336 (evaluate_subexp_f): Use it.
2337
216f6fcb
TT
23382021-03-08 Tom Tromey <tom@tromey.com>
2339
2340 * f-lang.c (eval_op_f_kind): New function.
2341 (evaluate_subexp_f): Use it.
2342
00f2db6f
TT
23432021-03-08 Tom Tromey <tom@tromey.com>
2344
2345 * f-lang.c (eval_op_f_cmplx): New function.
2346 (evaluate_subexp_f): Use it.
2347
93b2b5fa
TT
23482021-03-08 Tom Tromey <tom@tromey.com>
2349
2350 * f-lang.c (eval_op_f_modulo): New function.
2351 (evaluate_subexp_f): Use it.
2352
9f1a1f3c
TT
23532021-03-08 Tom Tromey <tom@tromey.com>
2354
2355 * f-lang.c (eval_op_f_floor): New function.
2356 (evaluate_subexp_f): Use it.
2357
3dc41f3c
TT
23582021-03-08 Tom Tromey <tom@tromey.com>
2359
2360 * f-lang.c (eval_op_f_ceil): New function.
2361 (evaluate_subexp_f): Use it.
2362
e08109f2
TT
23632021-03-08 Tom Tromey <tom@tromey.com>
2364
2365 * f-lang.c (eval_op_f_mod): New function.
2366 (evaluate_subexp_f): Use it.
2367
cc05c68e
TT
23682021-03-08 Tom Tromey <tom@tromey.com>
2369
2370 * f-lang.c (eval_op_f_abs): New function.
2371 (evaluate_subexp_f): Use it.
2372
aec95807
TT
23732021-03-08 Tom Tromey <tom@tromey.com>
2374
2375 * eval.c (eval_op_type): New function.
2376 (evaluate_subexp_standard): Use it.
2377
a220ead5
TT
23782021-03-08 Tom Tromey <tom@tromey.com>
2379
2380 * eval.c (eval_op_postdec): New function.
2381 (evaluate_subexp_standard): Use it.
2382
abffe116
TT
23832021-03-08 Tom Tromey <tom@tromey.com>
2384
2385 * eval.c (eval_op_postinc): New function.
2386 (evaluate_subexp_standard): Use it.
2387
9e1361b7
TT
23882021-03-08 Tom Tromey <tom@tromey.com>
2389
2390 * eval.c (eval_op_predec): New file.
2391 (evaluate_subexp_standard): Use it.
2392
00f50884
TT
23932021-03-08 Tom Tromey <tom@tromey.com>
2394
2395 * eval.c (eval_op_preinc): New function.
2396 (evaluate_subexp_standard): Use it.
2397
3aef2a07
TT
23982021-03-08 Tom Tromey <tom@tromey.com>
2399
2400 * eval.c (eval_op_memval): New function.
2401 (evaluate_subexp_standard): Use it.
2402
acee9468
TT
24032021-03-08 Tom Tromey <tom@tromey.com>
2404
2405 * eval.c (eval_op_alignof): New function.
2406 (evaluate_subexp_standard): Use it.
2407
786f70ee
TT
24082021-03-08 Tom Tromey <tom@tromey.com>
2409
2410 * eval.c (eval_op_ind): New function.
2411 (evaluate_subexp_standard): Use it.
2412
24338fb9
TT
24132021-03-08 Tom Tromey <tom@tromey.com>
2414
2415 * eval.c (eval_op_lognot): New function.
2416 (evaluate_subexp_standard): Use it.
2417
1f09ec81
TT
24182021-03-08 Tom Tromey <tom@tromey.com>
2419
2420 * eval.c (eval_op_complement): New function.
2421 (evaluate_subexp_standard): Use it.
2422
606d105f
TT
24232021-03-08 Tom Tromey <tom@tromey.com>
2424
2425 * eval.c (eval_op_neg): New function.
2426 (evaluate_subexp_standard): Use it.
2427
39f288be
TT
24282021-03-08 Tom Tromey <tom@tromey.com>
2429
2430 * eval.c (eval_op_plus): New function.
2431 (evaluate_subexp_standard): Use it.
2432
eed70b1c
TT
24332021-03-08 Tom Tromey <tom@tromey.com>
2434
2435 * eval.c (eval_op_repeat): New function.
2436 (evaluate_subexp_standard): Use it.
2437
60cdd487
TT
24382021-03-08 Tom Tromey <tom@tromey.com>
2439
2440 * eval.c (eval_op_leq): New function.
2441 (evaluate_subexp_standard): Use it.
2442
96e3efd9
TT
24432021-03-08 Tom Tromey <tom@tromey.com>
2444
2445 * eval.c (eval_op_geq): New function.
2446 (evaluate_subexp_standard): Use it.
2447
1f78d732
TT
24482021-03-08 Tom Tromey <tom@tromey.com>
2449
2450 * eval.c (eval_op_gtr): New function.
2451 (evaluate_subexp_standard): Use it.
2452
6cad1349
TT
24532021-03-08 Tom Tromey <tom@tromey.com>
2454
2455 * eval.c (eval_op_less): New function.
2456 (evaluate_subexp_standard): Use it.
2457
1fcb3559
TT
24582021-03-08 Tom Tromey <tom@tromey.com>
2459
2460 * eval.c (eval_op_notequal): New function.
2461 (evaluate_subexp_standard): Use it.
2462
0cc96de8
TT
24632021-03-08 Tom Tromey <tom@tromey.com>
2464
2465 * eval.c (eval_op_equal): New function.
2466 (evaluate_subexp_standard): Use it.
2467
288d26bc
TT
24682021-03-08 Tom Tromey <tom@tromey.com>
2469
2470 * eval.c (eval_op_subscript): New function.
2471 (evaluate_subexp_standard): Use it.
2472
7cdcdd02
TT
24732021-03-08 Tom Tromey <tom@tromey.com>
2474
2475 * eval.c (eval_op_binary): New function.
2476 (evaluate_subexp_standard): Use it.
2477
d9790e22
TT
24782021-03-08 Tom Tromey <tom@tromey.com>
2479
2480 * eval.c (eval_op_sub): New function.
2481 (evaluate_subexp_standard): Use it.
2482
aedaf9ac
TT
24832021-03-08 Tom Tromey <tom@tromey.com>
2484
2485 * eval.c (eval_op_add): New function.
2486 (evaluate_subexp_standard): Use it.
2487
b7a96ed2
TT
24882021-03-08 Tom Tromey <tom@tromey.com>
2489
2490 * eval.c (eval_op_member): New function.
2491 (evaluate_subexp_standard): Use it.
2492
fb461aa3
TT
24932021-03-08 Tom Tromey <tom@tromey.com>
2494
2495 * eval.c (eval_op_structop_ptr): New function.
2496 (evaluate_subexp_standard): Use it.
2497
3e96c4fc
TT
24982021-03-08 Tom Tromey <tom@tromey.com>
2499
2500 * eval.c (eval_op_structop_struct): New function.
2501 (evaluate_subexp_standard): Use it.
2502
f960a617
TT
25032021-03-08 Tom Tromey <tom@tromey.com>
2504
2505 * eval.c (eval_op_ternop): New function.
2506 (evaluate_subexp_standard): Use it.
2507
5c2f201e
TT
25082021-03-08 Tom Tromey <tom@tromey.com>
2509
2510 * eval.c (eval_op_concat): New function.
2511 (evaluate_subexp_standard): Use it.
2512
f871bae1
TT
25132021-03-08 Tom Tromey <tom@tromey.com>
2514
2515 * eval.c (eval_op_objc_selector): New function.
2516 (evaluate_subexp_standard): Use it.
2517
14a1c64a
TT
25182021-03-08 Tom Tromey <tom@tromey.com>
2519
2520 * eval.c (eval_op_string): New function.
2521 (evaluate_subexp_standard): Use it.
2522
ffff730b
TT
25232021-03-08 Tom Tromey <tom@tromey.com>
2524
2525 * eval.c (eval_op_register): New function.
2526 (evaluate_subexp_standard): Use it.
2527
9b1d8af6
TT
25282021-03-08 Tom Tromey <tom@tromey.com>
2529
2530 * eval.c (eval_op_func_static_var): New function.
2531 (evaluate_subexp_standard): Use it.
2532
c0df9289
TT
25332021-03-08 Tom Tromey <tom@tromey.com>
2534
2535 * eval.c (eval_op_var_msym_value): New function.
2536 (evaluate_subexp_standard): Use it.
2537
50b98adc
TT
25382021-03-08 Tom Tromey <tom@tromey.com>
2539
2540 * eval.c (eval_op_var_entry_value): New function.
2541 (evaluate_subexp_standard): Use it.
2542
ea2d29f7
TT
25432021-03-08 Tom Tromey <tom@tromey.com>
2544
2545 * eval.c (eval_op_scope): New function.
2546 (evaluate_subexp_standard): Use it.
2547
01573d73
TT
25482021-03-06 Chernov Sergey <klen_s@mail.ru>
2549
2550 PR gdb/27528:
2551 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2552
9938d15a
TT
25532021-03-06 Tom Tromey <tom@tromey.com>
2554
2555 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2556 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2557 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2558 (locate_dwz_sections, dwz_search_other_debugdirs)
2559 (dwarf2_get_dwz_file): Move to dwz.c.
2560 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2561 read.h.
2562 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2563 (dwarf2_get_dwz_file): Move from read.c.
2564
18035655
TT
25652021-03-06 Tom Tromey <tom@tromey.com>
2566
2567 * debuginfod-support.h: Include scoped_fd.h.
2568
a7308ce0
TT
25692021-03-06 Tom Tromey <tom@tromey.com>
2570
2571 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2572 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2573 (get_abbrev_section_for_cu, read_attribute_value)
2574 (get_debug_line_section): Update.
2575 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2576
fbedd546
TT
25772021-03-06 Tom Tromey <tom@tromey.com>
2578
2579 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2580 method.
2581 * dwarf2/read.c (section_is_p): Remove.
2582 (dwarf2_per_bfd::locate_sections)
2583 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2584 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2585 (dwarf2_locate_common_dwp_sections)
2586 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2587 Update.
2588
c2a62a3d
TT
25892021-03-06 Tom Tromey <tom@tromey.com>
2590
2591 * xcoffread.c: Include sect-names.h.
2592 * symfile.h (struct dwarf2_section_names, struct
2593 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2594 * dwarf2/sect-names.h: New file, from symfile.h.
2595 * dwarf2/read.c: Include sect-names.h.
2596
4444f407
TT
25972021-03-06 Tom Tromey <tom@tromey.com>
2598
2599 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2600 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2601 (abbrev_table::read): Update.
2602 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2603 (struct abbrev_info): Reformat.
2604 <attrs>: Now an array.
2605 (struct abbrev_table) <alloc_abbrev>: Remove.
2606
dd99cf0c
WP
26072021-03-06 Weimin Pan <weimin.pan@oracle.com>
2608
2609 * ctfread.c (ctf_psymtab_add_enums): New function.
2610 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2611
844be3f2
WP
26122021-03-06 Weimin Pan <weimin.pan@oracle.com>
2613
2614 * ctfread.c (read_func_kind_type): Set up function arguments.
2615
b2668f28
AB
26162021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2617 Andrew Burgess <andrew.burgess@embecosm.com>
2618
2619 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2620 includes.
2621 (riscv_csrset): New static global.
2622 (riscv_update_csrmap): New function.
2623 (riscv_iterate_over_regset_sections): Process CSRs.
2624
d782d24b
AB
26252021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * riscv-tdep.c (riscv_feature_name_csr): Define.
2628 (riscv_feature_name_cpu): Define.
2629 (riscv_feature_name_fpu): Define.
2630 (riscv_feature_name_virtual): Define.
2631 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2632 (riscv_freg_feature): Use riscv_feature_name_fpu.
2633 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2634 (riscv_csr_feature): Use riscv_feature_name_csr.
2635 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2636
fb8f3fc0
AB
26372021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2638 Craig Blackmore <craig.blackmore@embecosm.com>
2639
2640 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2641 (ALLDEPFILES): Add riscv-none-tdep.c.
2642 * configure: Regenerate.
2643 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2644 support.
2645 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2646 * elf-none-tdep.c: New file.
2647 * elf-none-tdep.h: New file.
2648 * riscv-none-tdep.c: New file.
2649
95ce627a
AB
26502021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2651 Andrew Burgess <andrew.burgess@embecosm.com>
2652
2653 * corelow.c: Add 'xml-tdesc.h' include.
2654 (core_target::read_description): Load the target description from
2655 the core file when possible.
2656 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2657 note.
2658 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2659 (gcore_elf_make_tdesc_note): New function.
2660 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
2661 * linux-tdep.c (linux_make_corefile_notes): Add target description
2662 note.
2663
f3a5df7b
AB
26642021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2665
2666 * Makefile.in (SFILES): Add gcore-elf.c.
2667 (HFILES_NO_SRCDIR): Add gcore-elf.h
2668 * configure: Regenerate.
2669 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
2670 support.
2671 * fbsd-tdep.c: Add 'gcore-elf.h' include.
2672 (struct fbsd_collect_regset_section_cb_data): Delete.
2673 (fbsd_collect_regset_section_cb): Delete.
2674 (fbsd_collect_thread_registers): Delete.
2675 (struct fbsd_corefile_thread_data): Delete.
2676 (fbsd_corefile_thread): Delete.
2677 (fbsd_make_corefile_notes): Call
2678 gcore_elf_build_thread_register_notes instead of the now deleted
2679 FreeBSD code.
2680 * gcore-elf.c: New file, the content was moved here from
2681 linux-tdep.c, functions were renamed and given minor cleanup.
2682 * gcore-elf.h: New file.
2683 * gcore.c (gcore_find_signalled_thread): Moved here from
2684 linux-tdep.c and given a new name. Minor cleanups.
2685 * gcore.h (gcore_find_signalled_thread): Declare.
2686 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
2687 (struct linux_collect_regset_section_cb_data): Delete.
2688 (linux_collect_regset_section_cb): Delete.
2689 (linux_collect_thread_registers): Delete.
2690 (linux_corefile_thread): Call
2691 gcore_elf_build_thread_register_notes.
2692 (find_signalled_thread): Delete.
2693 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2694
d1e93af6
SM
26952021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
2696
2697 PR gdb/27147
2698 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2699 process_stratum_target parameter,
2700 sparc_store_inferior_registers): update callers.
2701 * sparc-nat.c (sparc_fetch_inferior_registers,
2702 sparc_store_inferior_registers): Add process_stratum_target
2703 parameter. Switch current thread before calling
2704 sparc_supply_gregset / sparc_collect_rwindow.
2705 (sparc_store_inferior_registers): Likewise.
2706 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2707 (sparc32obsd_collect_uthread): Likewise.
2708 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2709 Add assertion.
2710 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2711 sparc64obsd_supply_uthread): Add assertion.
2712
1178743e
TT
27132021-03-04 Tom Tromey <tromey@adacore.com>
2714
2715 * ada-lang.c (struct match_data) <found_sym>: Now bool.
2716 (aux_add_nonlocal_symbols): Update.
2717 (ada_add_block_symbols): Change "found_sym" to bool.
2718
1bfa81ac
TT
27192021-03-03 Tom Tromey <tromey@adacore.com>
2720
2721 * ada-lang.c (ada_resolve_function): Update comment.
2722 (is_nonfunction, add_symbols_from_enclosing_procs)
2723 (remove_extra_symbols): Likewise.
2724 (struct match_data): Add constructor, initializers.
2725 (add_nonlocal_symbols): Remove memset.
2726 (aux_add_nonlocal_symbols): Update comment.
2727 (ada_add_block_renamings, add_nonlocal_symbols)
2728 (ada_add_all_symbols): Likewise.
2729 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2730
bbcdf9ab
TT
27312021-03-02 Tom Tromey <tromey@adacore.com>
2732
2733 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2734 (cast_to_gnat_encoded_fixed_point_type): Remove.
2735 (ada_value_cast, ada_evaluate_subexp): Update.
2736 (gnat_encoded_fixed_point_type_info)
2737 (ada_is_gnat_encoded_fixed_point_type)
2738 (gnat_encoded_fixed_point_delta)
2739 (gnat_encoded_fixed_point_scaling_factor): Remove.
2740 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2741 (gnat_encoded_fixed_point_delta)
2742 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2743 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2744 (ada_print_type): Update.
2745 * ada-valprint.c (ada_value_print_num): Update.
2746 * dwarf2/read.c (ada_get_gnat_encoded_number)
2747 (ada_get_gnat_encoded_ratio): New functions.
2748 (finish_fixed_point_type): Use them. Add parameters.
2749 (GNAT_FIXED_POINT_SUFFIX): New define.
2750 (gnat_encoded_fixed_point_type_info): New function.
2751 (read_base_type): Handle gnat encodings.
2752
5f9febe0
TT
27532021-03-02 Tom Tromey <tromey@adacore.com>
2754
2755 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2756 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2757 std::string.
2758 (GROW_VECT): Remove.
2759 (grow_vect): Remove.
2760
d1183b06
TT
27612021-03-02 Tom Tromey <tromey@adacore.com>
2762
2763 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
2764 * ada-lang.c (resolve_subexp): Update.
2765 (ada_resolve_function): Accept a vector.
2766 (is_nonfunction, add_defn_to_vec)
2767 (add_symbols_from_enclosing_procs): Likewise.
2768 (num_defns_collected, defns_collected): Remove.
2769 (remove_extra_symbols): Return a vector.
2770 (remove_irrelevant_renamings): Return void.
2771 (ada_add_local_symbols): Accept a vector.
2772 (struct match_data) <obstackp>: Remove.
2773 <resultp>: New member.
2774 (aux_add_nonlocal_symbols): Update.
2775 (ada_add_block_renamings, add_nonlocal_symbols)
2776 (ada_add_all_symbols): Accept a vector.
2777 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
2778 vector.
2779 (ada_lookup_symbol): Update.
2780 (ada_add_block_symbols): Accept a vector.
2781 (get_var_value, iterate_over_symbols): Update.
2782 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
2783 Update.
2784
886d459f
TT
27852021-03-02 Tom Tromey <tromey@adacore.com>
2786
2787 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
2788
bdcccc56
TT
27892021-03-02 Tom Tromey <tromey@adacore.com>
2790
2791 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
2792 auto_obstack.
2793 <root>: Initialize.
2794 (ada_pspace_data): Remove destructor.
2795 <sym_cache>: Now a unique_ptr.
2796 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
2797 (ada_get_symbol_cache): Use 'new'.
2798 (ada_clear_symbol_cache): Rewrite.
2799
1228719f
TT
28002021-03-02 Tom Tromey <tromey@adacore.com>
2801
2802 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
2803 is null.
2804
bb3a4efe
LS
28052021-02-27 Lancelot Six <lsix@lancelotsix.com>
2806
2807 PR gdb/27393
2808 * source.c (add_path): Skip empty dirnames.
2809
26b43ca6 28102021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
2811
2812 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
2813 include order for <sys/ptrace.h> and <asm/ptrace.h>.
2814
dffdd8b5
SM
28152021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2816
2817 PR gdb/26861
2818 * target.c (target_mourn_inferior): Only compare pids in
2819 target_mourn_inferior.
2820
64d38fdd
JM
28212021-02-25 Jan Matyas <jmatyas@codasip.com>
2822
2823 PR gdb/26819
2824 * remote.c (remote_target::start_remote): Ensure the single
2825 thread, automatically added for remote targets without the
2826 concept of threading, is initially in set to the "resumed"
2827 state.
2828 * remote.c (remote_target::add_current_inferior_and_thread):
2829 Add return value - return the main thread.
2830
2450ad54
JV
28312021-02-25 Jan Vrany <jan.vrany@labware.com>
2832
2833 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2834 (mi_tsv_created): Likewise.
2835 (mi_tsv_deleted): Likewise.
2836
30c80d88
TV
28372021-02-25 Tom de Vries <tdevries@suse.de>
2838
2839 PR symtab/27354
2840 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2841 section_kind for &dwo_file->sections.info.
2842
68337b8b
AB
28432021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2844
2845 PR fortran/26155
2846 * f-lang.c (fortran_argument_convert): Delete declaration.
2847 (fortran_prepare_argument): New function.
2848 (evaluate_subexp_f): Move logic to new function
2849 fortran_prepare_argument.
2850
faeb9f13
AB
28512021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2852
2853 * f-exp.y (f77_keywords): Add 'associated'.
2854 * f-lang.c (fortran_associated): New function.
2855 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
2856 (operator_length_f): Likewise.
2857 (print_unop_or_binop_subexp_f): New function.
2858 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
2859 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
2860 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
2861 (operator_check_f): Likewise.
2862 * std-operator.def: Add FORTRAN_ASSOCIATED.
2863
170f4b23
AB
28642021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2865
2866 * f-exp.y (fortran_operators): Add ".xor.".
2867
aa659cfa
TV
28682021-02-24 Tom de Vries <tdevries@suse.de>
2869
2870 PR symtab/27336
2871 * dwarf2/attribute.c (attribute::form_is_signed): New function
2872 factored out of ...
2873 * dwarf2/attribute.h (attribute::as_signed): ... here.
2874 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
2875 (attribute::form_is_signed): Declare.
2876 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
2877 for DW_AT_decl_file.
2878
268c77c1
KB
28792021-02-24 Kevin Buettner <kevinb@redhat.com>
2880
2881 * nat/aarch64-linux-hw-point.c: Add comment regarding include
2882 order for <sys/ptrace.h> and <asm/ptrace.h>.
2883
665af52e
KB
28842021-02-24 Kevin Buettner <kevinb@redhat.com>
2885
2886 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
2887 <sys/ptrace.h>.
2888
dd80d750
AB
28892021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2890
2891 * exec.c (set_section_command): Move variable declarations into
2892 the function body, and use std::string instead of a fixed size
2893 buffer.
2894
336aa7b7
AB
28952021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2896
2897 * exec.c (exec_target::get_section_table): Delete member function.
2898 (section_table_read_available_memory): Use current_top_target, not
2899 just the exec_ops target.
2900 * target-delegates.c: Regenerate.
2901 * target.c (default_get_section_table): New function.
2902 * target.h (target_ops::get_section_table): Change default
2903 behaviour to call default_get_section_table.
2904 (default_get_section_table): Declare.
2905
02f7d26b
AB
29062021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2907
2908 * exec.c (exec_target::close): Call new clear_target_sections
2909 function.
2910 (program_space::add_target_sections): Update name of member
2911 variable.
2912 (program_space::add_target_sections): Update name of member
2913 variable.
2914 (program_space::remove_target_sections): Likewise.
2915 (exec_one_fork): Use new target_sections member function.
2916 (exec_target::get_section_table): Likewise.
2917 (exec_target::files_info): Likewise.
2918 (set_section_command): Likewise.
2919 (exec_set_section_address): Likewise.
2920 (exec_target::has_memory): Use new target_sections member
2921 function.
2922 * progspace.h (program_space::clear_target_sections): New member
2923 function.
2924 (program_space::target_sections): Rename member variable to
2925 m_target_sections, replace with a new member function.
2926 (program_space::m_target_sections): New member variable.
2927 * solib-dsbt.c (scan_dyntag): Use new member function.
2928 * solib-svr4.c (scan_dyntag): Likewise.
2929
19cf757a
AB
29302021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2931
2932 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2933 return type const.
2934 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2935 (section_table_read_available_memory): Make local const.
2936 (exec_target::xfer_partial): Make local const.
2937 (print_section_info): Make parameter const.
2938 * gdb/exec.h (print_section_info): Likewise.
2939 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2940 const.
2941 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2942 Likewise.
2943 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2944 Likewise.
2945 * gdb/s390-tdep.c (s390_load): Likewise.
2946 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2947 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2948 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2949 Rename to...
2950 (target_debug_print_const_target_section_table_p): ...this.
2951 * gdb/target-delegates.c: Regenerate.
2952 * gdb/target.c (target_get_section_table): Make return type const.
2953 (target_section_by_addr): Likewise. Also make some locals const.
2954 (memory_xfer_partial_1): Make some locals const.
2955 * gdb/target.h (struct target_ops) <get_section_table>: Make
2956 return type const.
2957 (target_section_by_addr): Likewise.
2958 (target_get_section_table): Likewise.
2959
02a79309
AB
29602021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2961
2962 * NEWS: Mention new 'maint info target-sections' command.
2963 * maint.c (maintenance_info_target_sections): New function.
2964 (_initialize_maint_cmds): Register new command.
2965
895b7b4e
AB
29662021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2967
2968 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2969 (riscv_features_from_bfd): ...this. Change parameter type to
2970 'bfd*', and update as required.
2971 (riscv_find_default_target_description): Update call to
2972 riscv_features_from_bfd. Select a default xlen based on
2973 info.bfd_arch_info.
2974 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2975
bc3c0632
AB
29762021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2977
2978 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2979 dynamic types in UNOP_IND.
2980
08ac5771
SM
29812021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2982
2983 PR gdb/26828
2984 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2985 Instantiate queue.
2986 (~dwarf2_queue_guard): Clear queue.
2987 (queue_comp_unit): Assert that queue is
2988 instantiated.
2989 (process_queue): Adjust.
2990 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2991
616c069a
SM
29922021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2993
2994 PR gdb/26828
2995 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2996 to decide whether or not to enqueue it for expansion.
2997 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2998 after calling maybe_queue_comp_unit.
2999
897608ed
SM
30002021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3001
3002 * linux-nat.c (linux_nat_filter_event): Return void.
3003
15908a11
TT
30042021-02-22 Tom Tromey <tromey@adacore.com>
3005
3006 * solib-svr4.c (enable_break): Update.
3007 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3008 type.
3009 (target_bfd_reopen): Change parameter type.
3010 * bfd-target.h (target_bfd_reopen): Change parameter type.
3011
f53fc427
SM
30122021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3013
3014 * thread.c (add_thread_silent): Add assert.
3015 (find_thread_ptid): Add assert.
3016
de146e19
SM
30172021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3018
3019 PR gdb/27435
3020 * inf-ptrace.c (struct target_unpusher): Move to target.h.
3021 (target_unpush_up): Likewise.
3022 * procfs.c (procfs_target::attach): Push target early. Use
3023 target_unpush_up to unpush target in case of error.
3024 * target.h (struct target_unpusher): Move here.
3025 (target_unpush_up): Likewise.
3026
8488c357
KB
30272021-02-19 Kevin Buettner <kevinb@redhat.com>
3028
3029 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3030 (which in turn includes <gnulib/config.h>) before include
3031 of <signal.h>.
3032
5a9f5403
NC
30332021-02-19 Nelson Chu <nelson.chu@sifive.com>
3034
3035 PR 27158
3036 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
3037 (decode_j_type_insn): Likewise.
3038 (decode_cj_type_insn): Likewise.
3039 (decode_b_type_insn): Likewise.
3040 (decode): Likewise.
3041
26f53cd3
TT
30422021-02-18 Tom Tromey <tom@tromey.com>
3043
3044 * expression.h (struct expression) <evaluate>: Declare method.
3045 * eval.c (evaluate_subexp): Simplify.
3046 (expression::evaluate): New method.
3047 (evaluate_expression, evaluate_type): Use expression::evaluate.
3048
6a780b67
KB
30492021-02-17 Kevin Buettner <kevinb@redhat.com>
3050
3051 * ada-lang.c (ada_fold_name): Check for non-empty string prior
3052 to accessing it.
3053 (ada_lookup_name_info): Likewise.
3054
adeab0c5
MF
30552021-02-13 Mike Frysinger <vapier@gentoo.org>
3056
3057 * aclocal.m4: Regenerate.
3058
089436f7
TV
30592021-02-12 Tom de Vries <tdevries@suse.de>
3060
3061 PR threads/26228
3062 * linux-nat.c (lin_thread_get_thread_signals): Remove.
3063 (lin_thread_signals): New static var.
3064 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3065 New function.
3066 * linux-nat.h (lin_thread_get_thread_signals): Remove.
3067 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3068 Declare.
3069 * linux-thread-db.c (check_thread_signals): Use
3070 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
3071
96df3e28
AB
30722021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
3073
3074 * f-exp.y (f77_keywords): Add allocated.
3075 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
3076 (operator_length_f): Likewise.
3077 (print_subexp_f): Likewise.
3078 (dump_subexp_body_f): Likewise.
3079 (operator_check_f): Likewise.
3080 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
3081
05f68f52
TV
30822021-02-11 Tom de Vries <tdevries@suse.de>
3083
3084 PR symtab/27353
3085 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
3086 Return true for DW_FORM_strx.
3087
b260f8d6
TT
30882021-02-11 Tom Tromey <tromey@adacore.com>
3089
3090 PR gdb/27383:
3091 * parse.c (write_exp_symbol_reference): Write sym.block.
3092
bf3386f0
AB
30932021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3094
3095 * NEWS: Mention changes to 'maint info sections'.
3096 * maint.c (match_substring): Return a bool, fix whitespace issue.
3097 (struct single_bfd_flag_info): New struct.
3098 (bfd_flag_info): New static global.
3099 (match_bfd_flags): Return a bool, use bfd_flag_info.
3100 (print_bfd_flags): Use bfd_flag_info.
3101 (maint_print_section_info): Delete trailing whitespace.
3102 (struct maint_info_sections_opts): New struct.
3103 (maint_info_sections_option_defs): New static global.
3104 (maint_info_sections_completer): New function.
3105 (maintenance_info_sections): Use option parsing mechanism.
3106 (_initialize_maint_cmds): Update command help text for 'maint info
3107 sections' and register a command completer.
3108
4790db14
AB
31092021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3110
3111 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
3112 functionality merged into...
3113 (maint_print_all_sections): ...this new function.
3114 (maintenance_info_sections): Make use of maint_print_all_sections,
3115 allow all objects to be printed even where there's no executable.
3116
1db66e34
AB
31172021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3118
3119 * breakpoint.c (resolve_sal_pc): Make use of
3120 bound_minimal_symbol::obj_section.
3121 * maint.c (maintenance_translate_address): Likewise.
3122 * minsyms.c (minimal_symbol_upper_bound): Likewise.
3123 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
3124 member function.
3125 * printcmd.c (info_address_command): Make use of
3126 bound_minimal_symbol::obj_section.
3127
18b8df43
AM
31282021-02-11 Alan Modra <amodra@gmail.com>
3129
3130 * arm-symbian-tdep.c: Delete.
3131 * NEWS: Mention arm-symbian removal.
3132 * Makefile.in: Remove arm-symbian-tdep entries.
3133 * configure.tgt: Remove arm*-*-symbianelf*.
3134 * doc/gdb.texinfo: Remove mention of SymbianOS.
3135 * osabi.c (gdb_osabi_names): Remove "Symbian".
3136 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
3137 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
3138 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
3139 handling.
3140 * testsuite/gdb.base/dup-sect.exp: Likewise.
3141 * testsuite/gdb.base/long_long.exp: Likewise.
3142 * testsuite/gdb.base/solib-weak.exp: Likewise.
3143 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
3144 * testsuite/gdb.python/py-section-script.exp: Likewise.
3145 * testsuite/lib/dwarf.exp: Likewise.
3146 * testsuite/lib/gdb.exp: Likewise.
3147
e92c8eb8
AB
31482021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3149
3150 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
3151 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
3152 (one_or_two_args): New pattern.
3153 (f77_keywords): Add lbound and ubound.
3154 * f-lang.c (fortran_bounds_all_dims): New function.
3155 (fortran_bounds_for_dimension): New function.
3156 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
3157 (operator_length_f): Likewise.
3158 (print_subexp_f): Likewise.
3159 (dump_subexp_body_f): Likewise.
3160 (operator_check_f): Likewise.
3161 * std-operator.def (FORTRAN_LBOUND): Define.
3162 (FORTRAN_UBOUND): Define.
3163
a52d653e
AB
31642021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3165
3166 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
3167 and set_section_index member functions where appropriate.
3168 * coffread.c (coff_symtab_read): Likewise.
3169 (process_coff_symbol): Likewise.
3170 * ctfread.c (set_symbol_address): Likewise.
3171 * dwarf2/read.c (add_partial_symbol): Likewise.
3172 (var_decode_location): Likewise.
3173 * language.c: Likewise.
3174 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
3175 (compact_minimal_symbols): Likewise.
3176 (minimal_symbol_upper_bound): Likewise.
3177 * objfiles.c (relocate_one_symbol): Likewise.
3178 * psympriv.h (partial_symbol::obj_section): Likewise.
3179 (partial_symbol::address): Likewise.
3180 * psymtab.c (partial_symtab::add_psymbol): Likewise.
3181 * stabsread.c (scan_file_globals): Likewise.
3182 * symmisc.c (dump_msymbols): Likewise.
3183 * symtab.c (general_symbol_info::obj_section): Likewise.
3184 (fixup_section): Likewise.
3185 (get_msymbol_address): Likewise.
3186 * symtab.h (general_symbol_info::section): Rename to...
3187 (general_symbol_info::m_section): ...this.
3188 (general_symbol_info::set_section_index): New member function.
3189 (general_symbol_info::section_index): Likewise.
3190 (SYMBOL_SECTION): Delete.
3191 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
3192 set_section_index member functions where appropriate.
3193 (MSYMBOL_SECTION): Delete.
3194 (symbol::symbol): Update to initialize 'm_section'.
3195 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
3196 (process_xcoff_symbol): Likewise.
3197
ebbc3a7d
AB
31982021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3199
3200 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
3201 MSYMBOL_OBJ_SECTION.
3202 * findvar.c (language_defn::read_var_value): Likewise.
3203 * infcmd.c (jump_command): Likewise.
3204 * linespec.c (minsym_found): Likewise.
3205 * maint.c (maintenance_translate_address): Likewise.
3206 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
3207 (minimal_symbol_upper_bound): Likewise.
3208 * parse.c (find_minsym_type_and_address): Likewise.
3209 (operator_check_standard): Likewise.
3210 * printcmd.c (info_address_command): Likewise.
3211 * symmisc.c (dump_msymbols): Likewise.
3212 (print_symbol): Likewise.
3213 * symtab.c (general_symbol_info::obj_section): Define new
3214 function.
3215 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
3216 (find_pc_sect_compunit_symtab): Likewise.
3217 (find_function_start_sal): Likewise.
3218 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
3219 MSYMBOL_OBJ_SECTION.
3220 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
3221 function.
3222 (SYMBOL_OBJ_SECTION): Delete.
3223 (MSYMBOL_OBJ_SECTION): Delete.
3224
9bb305b3
TT
32252021-02-09 Tom Tromey <tom@tromey.com>
3226
3227 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
3228
cf2b2075
TV
32292021-02-09 Tom de Vries <tdevries@suse.de>
3230
3231 PR symtab/27341
3232 * dwarf2/read.c (read_array_type): Return NULL when not being able to
3233 construct an array type. Add assert to ensure that element_type is
3234 not being modified.
3235
03642b71
AB
32362021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
3237
3238 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
3239 (gcore_collect_regset_section_cb): Delete.
3240 (gcore_collect_thread_registers): Delete.
3241 (gcore_build_thread_register_notes): Delete.
3242 (gcore_find_signalled_thread): Delete.
3243 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
3244 'gdbarch' and 'thread_info' declarations.
3245 (gcore_build_thread_register_notes): Delete declaration.
3246 (gcore_find_signalled_thread): Likewise.
3247 * fbsd-tdep.c: Remove 'gcore.h' include.
3248 (struct fbsd_collect_regset_section_cb_data): New struct.
3249 (fbsd_collect_regset_section_cb): New function.
3250 (fbsd_collect_thread_registers): New function.
3251 (struct fbsd_corefile_thread_data): New struct.
3252 (fbsd_corefile_thread): New function.
3253 (fbsd_make_corefile_notes): Call FreeBSD specific code.
3254 * linux-tdep.c: Remove 'gcore.h' include.
3255 (struct linux_collect_regset_section_cb_data): New struct.
3256 (linux_collect_regset_section_cb): New function.
3257 (linux_collect_thread_registers): New function.
3258 (linux_corefile_thread): Call Linux specific code.
3259 (find_signalled_thread): New function.
3260 (linux_make_corefile_notes): Call find_signalled_thread.
3261
f73e424f
TT
32622021-02-09 Tom Tromey <tromey@adacore.com>
3263
3264 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
3265 not_lval value.
3266 * value.c (value_contents_copy_raw): Now static.
3267 * value.h (value_contents_copy_raw): Don't declare.
3268
a4f0544b
TT
32692021-02-09 Tom Tromey <tromey@adacore.com>
3270
3271 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
3272 fields.
3273
9b3e4b5d
SV
32742021-02-08 Shahab Vahedi <shahab@synopsys.com>
3275
3276 PR tdep/27369
3277 * arc-linux-tdep.c (handle_atomic_sequence): New.
3278 (arc_linux_software_single_step): Call handle_atomic_sequence().
3279
29db1eb3
AB
32802021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3281
3282 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
3283 function.
3284 (REQUIRE_WINDOW): Call is_valid member function.
3285 (REQUIRE_WINDOW_FOR_SETTER): New define.
3286 (gdbpy_tui_is_valid): Call is_valid member function.
3287 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
3288 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
3289 tui_active too.
3290 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
3291 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
3292 the function.
3293
e0c23e11
AB
32942021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3295
3296 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
3297 for the title is not nullptr.
3298
1cf23996
AB
32992021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3300
3301 * tui-layout.c (saved_tui_windows): Delete.
3302 (tui_apply_current_layout): Don't make use of saved_tui_windows,
3303 call new get_windows member function instead.
3304 (tui_get_window_by_name): Check in tui_windows.
3305 (tui_layout_window::apply): Don't add to tui_windows.
3306 * tui-layout.h (tui_layout_base::get_windows): New member function.
3307 (tui_layout_window::get_windows): Likewise.
3308 (tui_layout_split::get_windows): Likewise.
3309
a53a2657
AB
33102021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3311
3312 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
3313 of the window objects.
3314
2708dbbd
AB
33152021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3316
3317 * python/python.c (gdbpy_print_stack): Reformat an error message.
3318
cd074e04
AB
33192021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3320
3321 * tui/tui-interp.c (tui_command_line_handler): New function.
3322 (tui_interp::resume): Register tui_command_line_handler as the
3323 input_handler.
3324 * tui/tui-io.c (tui_inject_newline_into_command_window): New
3325 function.
3326 (tui_getc_1): Delete handling of '\n' and '\r'.
3327 * tui-io.h (tui_inject_newline_into_command_window): Declare.
3328
4cf28e91
HD
33292021-02-07 Hannes Domani <ssbssa@yahoo.de>
3330
3331 * tui/tui-regs.c (tui_data_window::display_registers_from):
3332 Mark invisible register sub windows.
3333 (tui_data_window::check_register_values): Ignore invisible
3334 register sub windows.
3335
3537bc23
HD
33362021-02-07 Hannes Domani <ssbssa@yahoo.de>
3337
3338 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
3339 n_spaces with a negative value.
3340
5fc2d6aa
HD
33412021-02-07 Hannes Domani <ssbssa@yahoo.de>
3342
3343 * tui/tui-regs.c (tui_data_window::display_registers_from):
3344 Add refresh_window call.
3345
83962f83
HD
33462021-02-07 Hannes Domani <ssbssa@yahoo.de>
3347
3348 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
3349
0110ec82
SM
33502021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
3351
3352 * symmisc.c (std_in, std_out, std_err): Remove.
3353 (_initialize_symmisc): Don't set std_in, std_out and std_err.
3354
7c6944ab
TV
33552021-02-05 Tom de Vries <tdevries@suse.de>
3356
3357 PR breakpoints/27330
3358 * breakpoint.c (create_exception_master_breakpoint): Handle case that
3359 glibc object file has debug info.
3360
e77b0004
TV
33612021-02-05 Tom de Vries <tdevries@suse.de>
3362
3363 PR symtab/27333
3364 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
3365
0e857c82
TV
33662021-02-05 Tom de Vries <tdevries@suse.de>
3367
3368 PR breakpoints/27313
3369 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
3370 syscall numbers.
3371
bdfea17e
TT
33722021-02-05 Tom Tromey <tom@tromey.com>
3373
3374 * compile/compile-c-support.c (get_compile_context)
3375 (c_get_compile_context, cplus_get_compile_context): Change return
3376 type.
3377 * language.c (language_defn::get_compile_instance): New method.
3378 * language.h (language_defn::get_compile_instance): Change return
3379 type. No longer inline.
3380 * c-lang.c (c_language::get_compile_instance): Change return type.
3381 (cplus_language::get_compile_instance): Change return type.
3382 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
3383 Change return type.
3384 * compile/compile.c (compile_to_object): Update.
3385
1b30f421
TT
33862021-02-05 Tom Tromey <tom@tromey.com>
3387
3388 * parser-defs.h (write_exp_symbol_reference): Declare.
3389 * parse.c (write_exp_symbol_reference): New function.
3390 * p-exp.y (variable): Use write_exp_symbol_reference.
3391 * m2-exp.y (variable): Use write_exp_symbol_reference.
3392 * f-exp.y (variable): Use write_exp_symbol_reference.
3393 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
3394 * c-exp.y (variable): Use write_exp_symbol_reference.
3395
ae710496
TV
33962021-02-05 Tom de Vries <tdevries@suse.de>
3397
3398 PR exp/27265
3399 * valarith.c (complex_binop): Throw an error if complex type can't
3400 be created.
3401
d3b54e63
TV
34022021-02-05 Tom de Vries <tdevries@suse.de>
3403
3404 PR symtab/27307
3405 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
3406 return.
3407
fc9a13fb
TV
34082021-02-05 Tom de Vries <tdevries@suse.de>
3409
3410 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
3411
04b4939b
MF
34122021-02-04 Mike Frysinger <vapier@gentoo.org>
3413
3414 * configure.tgt (riscv*-*-*): Set gdb_sim.
3415
6ff267e1
SM
34162021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
3417
3418 * target.c (target_is_non_stop_p): Return bool.
3419 * target.h (target_is_non_stop_p): Return bool.
3420
fdbc5215
SM
34212021-02-04 Simon Marchi <simon.marchi@efficios.com>
3422
3423 * record-full.c (record_full_async_inferior_event_handler):
3424 Don't clear async event handler.
3425 (record_full_base_target::wait): Clear async event handler at
3426 beginning.
3427
85d3ad8e
SM
34282021-02-04 Simon Marchi <simon.marchi@efficios.com>
3429
3430 * record-btrace.c (record_btrace_handle_async_inferior_event):
3431 Don't clear async event handler.
3432 (record_btrace_target::wait): Clear async event handler at
3433 beginning.
3434
baa8575b
SM
34352021-02-04 Simon Marchi <simon.marchi@efficios.com>
3436
3437 * remote.c (remote_target::wait): Clear async event handler at
3438 beginning, mark if needed at the end.
3439 (remote_async_inferior_event_handler): Don't set or clear async
3440 event handler.
3441
6b36ddeb
SM
34422021-02-04 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * async-event.h (async_event_handler_func): Add documentation.
3445 * async-event.c (check_async_event_handlers): Don't clear
3446 async_event_handler ready flag.
3447 * infrun.c (infrun_async_inferior_event_handler): Clear ready
3448 flag.
3449 * record-btrace.c (record_btrace_handle_async_inferior_event):
3450 Likewise.
3451 * record-full.c (record_full_async_inferior_event_handler):
3452 Likewise.
3453 * remote-notif.c (remote_async_get_pending_events_handler):
3454 Likewise.
3455 * remote.c (remote_async_inferior_event_handler): Likewise.
3456
72d383bb
SM
34572021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
3458
3459 * infrun.c (handle_inferior_event): Move stop_soon variable to
3460 inner scope.
3461
408f6686
PA
34622021-02-03 Pedro Alves <pedro@palves.net>
3463
3464 * infcmd.c (detach_command): Hold strong reference to target, and
3465 if all-stop on entry, restart threads on exit.
3466 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
3467 (restart_stepped_thread): ... this new function. Also handle
3468 trap_expected.
3469 (restart_after_all_stop_detach): New function.
3470 * infrun.h (restart_after_all_stop_detach): Declare.
3471
ac7d717c
PA
34722021-02-03 Pedro Alves <pedro@palves.net>
3473
3474 * infrun.c (struct step_over_info): Initialize fields.
3475 (prepare_for_detach): Handle ongoing in-line step over.
3476
e87f0fe8
PA
34772021-02-03 Pedro Alves <pedro@palves.net>
3478
3479 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
3480 here...
3481 * remote.c (remote_target::remote_detach_1): ... and here ...
3482 * target.c (target_detach): ... instead of here.
3483 * target.h (target_ops::detach): Add comment.
3484
8ff53139
PA
34852021-02-03 Pedro Alves <pedro@palves.net>
3486
3487 * infrun.c (struct wait_one_event): Move higher up.
3488 (prepare_for_detach): Abort in-progress displaced steps instead of
3489 letting them complete.
3490 (handle_one): If the inferior is detaching, don't add the thread
3491 back to the global step-over chain.
3492 (restart_threads): Don't restart threads if detaching.
3493 (handle_signal_stop): Remove inferior::detaching reference.
3494
91475068
PA
34952021-02-03 Pedro Alves <pedro@palves.net>
3496
3497 * infrun.c (prepare_for_detach): Don't release scoped_restore
3498 before returning.
3499
d758e62c
PA
35002021-02-03 Pedro Alves <pedro@palves.net>
3501
3502 * infrun.c (handle_one): New function, factored out from ...
3503 (stop_all_threads): ... here.
3504
b0083dd7
PA
35052021-02-03 Pedro Alves <pedro@palves.net>
3506
3507 * remote.c (remote_notif_stop_ack): Don't error out on
3508 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
3509 (remote_target::discard_pending_stop_replies): Don't delete
3510 in-flight notification; instead, clear its contents.
3511
621cc310
PA
35122021-02-03 Pedro Alves <pedro@palves.net>
3513
3514 * remote.c (extended_remote_target::attach): Set target async in
3515 the target-non-stop path too.
3516
2ab76a18
PA
35172021-02-03 Pedro Alves <pedro@palves.net>
3518
3519 PR gdb/27055
3520 * infrun.c (handle_signal_stop): Move main context_switch call
3521 earlier, before STOP_QUIETLY_NO_SIGSTOP.
3522
2e3773ff
LS
35232021-02-02 Lancelot SIX <lsix@lancelotsix.com>
3524
3525 * NEWS (Changed commands): Add entry for the behavior change of
3526 the inferior command.
3527 * inferior.c (inferior_command): When no argument is given to the
3528 inferior command, display info about the currently selected
3529 inferior.
3530
e57933dc
SM
35312021-02-02 Simon Marchi <simon.marchi@efficios.com>
3532
3533 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3534 a sect_offset.
3535 (read_attribute_reprocess): Adjust.
3536
2b0c7f41
SM
35372021-02-02 Simon Marchi <simon.marchi@efficios.com>
3538
3539 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3540 <gnu_ranges_base>: ... this...
3541 <rnglists_base>: ... and this.
3542 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3543 <gnu_ranges_base>: ... this...
3544 <rnglists_base>: ... and this.
3545 (read_cutu_die_from_dwo): Adjust
3546 (dwarf2_get_pc_bounds): Adjust
3547 (dwarf2_record_block_ranges): Adjust.
3548 (read_full_die_1): Adjust
3549 (partial_die_info::read): Adjust.
3550 (read_rnglist_index): Adjust.
3551
a1c40103
SM
35522021-02-02 Simon Marchi <simon.marchi@efficios.com>
3553
3554 PR gdb/26813
3555 * dwarf2/read.c (read_loclists_rnglists_header): Add
3556 header_offset parameter and use it.
3557 (read_loclist_index): Read header of the current contribution,
3558 not the one at the beginning of the section.
3559 (read_rnglist_index): Likewise.
3560
b1829e1b
SM
35612021-02-02 Simon Marchi <simon.marchi@efficios.com>
3562
3563 PR gdb/26813
3564 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3565 requires_reprocessing flag.
3566 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3567 DW_FORM_loclistx.
3568 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3569 and DW_FORM_loclistx.
3570 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3571 instead of set_address for DW_FORM_loclistx and
3572 DW_FORM_rnglistx.
3573
0c800c6e
SM
35742021-02-02 Simon Marchi <simon.marchi@efficios.com>
3575
3576 * dwarf2/read.c (read_loclist_index): Remove bound check for
3577 start of offset.
3578 (read_rnglist_index): Likewise.
3579
05787bad
SM
35802021-02-02 Simon Marchi <simon.marchi@efficios.com>
3581
3582 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3583 of the offset.
3584
5e4d9bbc
SM
35852021-02-02 Simon Marchi <simon.marchi@efficios.com>
3586
3587 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3588
a0c1eeba
SM
35892021-02-02 Simon Marchi <simon.marchi@efficios.com>
3590
3591 * dwarf2/read.c (read_loclist_index): Change complaints into
3592 errors.
3593
2bd3e4b8
TV
35942021-02-02 Tom de Vries <tdevries@suse.de>
3595
3596 PR symtab/24620
3597 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3598 psymtab == nullptr.
3599
82a1fd3a
AB
36002021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3601
3602 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3603 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
3604 here from linux-tdep.c and given a new name. Minor cleanups.
3605 (gcore_collect_regset_section_cb): Likewise.
3606 (gcore_collect_thread_registers): Likewise.
3607 (gcore_build_thread_register_notes): Likewise.
3608 (gcore_find_signalled_thread): Likewise.
3609 * gcore.h (gcore_build_thread_register_notes): Declare.
3610 (gcore_find_signalled_thread): Declare.
3611 * fbsd-tdep.c: Add 'gcore.h' include.
3612 (struct fbsd_collect_regset_section_cb_data): Delete.
3613 (fbsd_collect_regset_section_cb): Delete.
3614 (fbsd_collect_thread_registers): Delete.
3615 (struct fbsd_corefile_thread_data): Delete.
3616 (fbsd_corefile_thread): Delete.
3617 (fbsd_make_corefile_notes): Call
3618 gcore_build_thread_register_notes instead of the now deleted
3619 FreeBSD code.
3620 * linux-tdep.c: Add 'gcore.h' include.
3621 (struct linux_collect_regset_section_cb_data): Delete.
3622 (linux_collect_regset_section_cb): Delete.
3623 (linux_collect_thread_registers): Delete.
3624 (linux_corefile_thread): Call
3625 gcore_build_thread_register_notes.
3626 (find_signalled_thread): Delete.
3627 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3628
ebde6f2d
TV
36292021-01-29 Tom de Vries <tdevries@suse.de>
3630
3631 PR breakpoints/26063
3632 * infrun.c (process_event_stop_test): Reset
3633 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3634 changed.
3635
0f93c3a2
AB
36362021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3637
3638 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3639 assert. Extend the header comment.
3640
f237f998
AB
36412021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3642
3643 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3644 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3645 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3646 (tui_locator_win_info_ptr): Delete declaration.
3647 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3648 (tui_disasm_window::set_contents): Fetch state from tui_location
3649 global.
3650 (tui_get_begin_asm_address): Likewise.
3651 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3652 for locator window.
3653 (get_locator_window): Delete.
3654 (initialize_known_windows): Treat locator window just like all the
3655 rest.
3656 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3657 (tui_source_window::set_contents): Fetch state from tui_location
3658 global.
3659 (tui_source_window::showing_source_p): Likewise.
3660 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3661 (_locator): Delete.
3662 (tui_locator_win_info_ptr): Delete.
3663 (tui_locator_window::make_status_line): Fetch state from
3664 tui_location global.
3665 (tui_locator_window::rerender): Remove check of 'handle',
3666 reindent function body.
3667 (tui_locator_window::set_locator_fullname): Delete.
3668 (tui_locator_window::set_locator_info): Delete.
3669 (tui_update_locator_fullname): Delete.
3670 (tui_show_frame_info): Likewise.
3671 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
3672 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
3673 tui/tui-location.h and renamed to
3674 tui_location_tracker::set_location.
3675 (tui_locator_window::set_locator_fullname): Moved to
3676 tui/tui-location.h and renamed to
3677 tui_location_tracker::set_fullname.
3678 (tui_locator_window::full_name): Delete.
3679 (tui_locator_window::proc_name): Delete.
3680 (tui_locator_window::line_no): Delete.
3681 (tui_locator_window::addr): Delete.
3682 (tui_locator_window::gdbarch): Delete.
3683 (tui_update_locator_fullname): Delete declaration.
3684 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
3685 for locator window.
3686 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
3687 (tui_display_main): Call function on tui_location directly.
3688 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
3689 * tui/tui-location.c: New file.
3690 * tui/tui-location.h: New file.
3691
8ee511af
SM
36922021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3693
3694 * gdbtypes.h (get_type_arch): Rename to...
3695 (struct type) <arch>: ... this, update all users.
3696
6ac37371
SM
36972021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3698
3699 * gdbtypes.h (struct type) <arch>: Rename to...
3700 <arch_owner>: ... this, update all users.
3701 <objfile>: Rename to...
3702 <objfile_owner>: ... this, update all users.
3703
24cf6389
AB
37042021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3705
3706 * gdbcmd.h (execute_command_to_string): Update comment.
3707 * top.c (execute_command_to_string): Update header comment.
3708
2a7f6487
TV
37092021-01-28 Tom de Vries <tdevries@suse.de>
3710
3711 PR breakpoints/27205
3712 * breakpoint.c (create_longjmp_master_breakpoint_probe)
3713 (create_longjmp_master_breakpoint_names): New function, factored out
3714 of ...
3715 (create_longjmp_master_breakpoint): ... here. Only try to install
3716 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
3717 breakpoint in libc.so failed.
3718
59b59f08
LS
37192021-01-27 Lancelot SIX <lsix@lancelotsix.com>
3720
3721 PR gdb/27133
3722 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
3723 unique_ptr is released when the wrapped pointer is kept for later
3724 use.
3725
807f647c
MM
37262021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
3727
3728 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3729 BLR and BR instructions.
3730 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3731 (enum aarch64_masks): New.
3732
4ef367bf
TT
37332021-01-26 Tom Tromey <tromey@adacore.com>
3734
3735 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3736 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3737 (windows_init_thread_list, windows_nat::handle_load_dll)
3738 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3739 (windows_nat_target::resume)
3740 (windows_nat_target::get_windows_debug_event)
3741 (windows_nat_target::interrupt, windows_xfer_memory)
3742 (windows_nat_target::close): Update.
3743 * nat/windows-nat.c (DEBUG_EVENTS): Use
3744 debug_prefixed_printf_cond.
3745 (matching_pending_stop, fetch_pending_stop)
3746 (continue_last_debug_event): Update.
3747
4cb1265b
MS
37482020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
3749
3750 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3751 elfcore_write_file_note.
3752
d0cc52bd
SV
37532021-01-26 Shahab Vahedi <shahab@synopsys.com>
3754
3755 * arc-tdep.c (arc_add_reggroups): New function.
3756 (arc_gdbarch_init): Call arc_add_reggroups.
3757
ac3571d9 37582021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
3759
3760 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3761
9f6c202e
TV
37622021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3763 Simon Marchi <simon.marchi@polymtl.ca>
3764 Tom de Vries <tdevries@suse.de>
3765
3766 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
3767 DW_AT_ranges.
3768
a625a8c9
TT
37692021-01-25 Tom Tromey <tromey@adacore.com>
3770
3771 * dwarf2/read.c (get_mpz): New function.
3772 (get_dwarf2_rational_constant): Use it.
3773
19184910
TT
37742021-01-25 Tom Tromey <tromey@adacore.com>
3775
3776 * ada-lang.c (resolve_subexp): Handle array context.
3777
b10bae18
TT
37782021-01-23 Tom Tromey <tom@tromey.com>
3779
3780 PR compile/25575
3781 * compile/compile-loc2c.c (note_register): New function.
3782 (pushf_register_address, pushf_register): Use it.
3783
3637a558
TT
37842021-01-23 Tom Tromey <tom@tromey.com>
3785
3786 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3787 Change type of "registers_used".
3788 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
3789 * dwarf2/loc.c (dwarf2_compile_property_to_c)
3790 (locexpr_generate_c_location, loclist_generate_c_location): Change
3791 type of "registers_used".
3792 * compile/compile.h (compile_dwarf_expr_to_c)
3793 (compile_dwarf_bounds_to_c): Update.
3794 * compile/compile-loc2c.c (pushf_register_address)
3795 (pushf_register, do_compile_dwarf_expr_to_c)
3796 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
3797 of "registers_used".
3798 * compile/compile-c.h (generate_c_for_variable_locations):
3799 Update.
3800 * compile/compile-c-symbols.c (generate_vla_size)
3801 (generate_c_for_for_one_variable): Change type of
3802 "registers_used".
3803 (generate_c_for_variable_locations): Return std::vector.
3804 * compile/compile-c-support.c (generate_register_struct): Change
3805 type of "registers_used".
3806 (compute): Update.
3807
9f7f6cb8
TT
38082021-01-23 Tom Tromey <tom@tromey.com>
3809
3810 * compile/compile-internal.h (class compile_instance)
3811 <set_arguments>: Change return type.
3812 * compile/compile.c (compile_to_object): Remove call to reset.
3813 (compile_instance::set_arguments): Change return type.
3814
dd5ca05f
SM
38152021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3816
3817 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3818 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3819
d3ee35db
LS
38202021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3821
3822 * Makefile.in (SELFTESTS_SRCS): Add
3823 unittests/gdb_tilde_expand-selftests.c.
3824 * unittests/gdb_tilde_expand-selftests.c: New file.
3825
9d2d8a16
AB
38262021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3827
3828 PR cli/25956
3829 * NEWS: Mention new command.
3830 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3831 (version_style): Define.
3832 (cli_style_option::cli_style_option): Add intensity parameter, and
3833 use as appropriate.
3834 (_initialize_cli_style): Register version style set/show commands.
3835 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3836 (version_style): Declare.
3837 * top.c (print_gdb_version): Use version_stype, and styled_string
3838 to print the GDB version string.
3839
e7b43072
AB
38402021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3841
3842 * utils.c (emit_style_escape): Only emit an escape sequence if the
3843 requested style is different than the current applied style.
3844 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3845 current applied_style.
3846 (fputs_styled): Remove is_default check.
3847 (fputs_styled_unfiltered): Likewise.
3848 (vfprintf_styled_no_gdbfmt): Likewise.
3849
2189c312
SM
38502021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3851
3852 * remote.h (remote_debug_printf): New.
3853 (remote_debug_printf_nofunc): New.
3854 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
3855 * remote.c: Use above macros throughout file.
3856
02349803
SM
38572021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3858
3859 * remote.h (remote_debug): Change to bool.
3860 * remote.c (remote_debug): Change to bool.
3861 (_initialize_remote): Adjust.
3862
cda09ec9
SM
38632021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3864
3865 * target.h (remote_debug): Move to...
3866 * remote.h (remote_debug): ... here.
3867 * top.c (remote_debug): Move to...
3868 * remote.c (remote_debug): ... here.
3869 * remote-sim.c: Include remote.h.
3870
baf2b57f
SM
38712021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3872
3873 * cli/cli-cmds.c (show_remote_debug): Remove.
3874 (show_remote_timeout): Remove.
3875 (_initialize_cli_cmds): Don't register commands.
3876 * remote.c (show_remote_debug): Move here.
3877 (show_remote_timeout): Move here.
3878 (_initialize_remote): Register commands.
3879
344e9841
SM
38802021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3881
3882 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
3883 type::objfile method instead.
3884
30625020
SM
38852021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3886
3887 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
3888 use the type::is_objfile_owned method.
3889
5b7d941b
SM
38902021-01-22 Simon Marchi <simon.marchi@efficios.com>
3891
3892 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
3893 (TYPE_OWNER): Remove.
3894 (TYPE_OBJFILE): Adjust.
3895 (struct main_type) <flag_objfile_owned>: Rename to...
3896 <m_flag_objfile_owned>: ... this.
3897 <owner>: Rename to...
3898 <m_owner>: ... this.
3899 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3900 methods.
3901 (TYPE_ALLOC): Adjust.
3902 * gdbtypes.c (alloc_type): Adjust.
3903 (alloc_type_arch): Adjust.
3904 (alloc_type_copy): Adjust.
3905 (get_type_arch): Adjust.
3906 (smash_type): Adjust.
3907 (lookup_array_range_type): Adjust.
3908 (recursive_dump_type): Adjust.
3909 (copy_type_recursive): Adjust.
3910 * compile/compile-c-types.c (convert_func): Adjust.
3911 (convert_type_basic): Adjust.
3912 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3913 Adjust.
3914 * language.c
3915 (language_arch_info::type_and_symbol::alloc_type_symbol):
3916 Adjust.
3917
d5d24e12
LM
39182021-01-21 Luis Machado <luis.machado@linaro.org>
3919
3920 * coffread.c (enter_linenos): Passing string to complaint.
3921 * valops.c (value_assign): Make array view.
3922
a59902a7
SM
39232021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3924
3925 * auto-load.h (debug_auto_load): Move here.
3926 (auto_load_debug_printf): New.
3927 * auto-load.c: Use auto_load_debug_printf.
3928 (debug_auto_load): Move to header.
3929 * linux-thread-db.c (try_thread_db_load): Use
3930 auto_load_debug_printf.
3931 * main.c (captured_main_1): Likewise.
3932
d3abc0ce
SM
39332021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3934
3935 * f-valprint.c (f77_array_offset_tbl): Remove.
3936
1e15fcac
SM
39372021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3938
3939 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3940
439706e6
SM
39412021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3942
3943 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3944 of gdb_select.
3945
325d39e4
HD
39462021-01-21 Hannes Domani <ssbssa@yahoo.de>
3947
3948 PR python/19151
3949 * python/py-breakpoint.c (bppy_get_location): Handle
3950 bp_hardware_breakpoint.
3951 (bppy_init): Likewise.
3952 (gdbpy_breakpoint_created): Likewise.
3953
7cb6d92a
SM
39542021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3955
3956 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3957
d4dd4fca
SM
39582021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3959
3960 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3961 (_initialize_gdb_bfd): Adjust.
3962
de53369b
SM
39632021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3964
3965 PR gdb/26828
3966 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3967
17e593e9
SM
39682021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3969
3970 * dwarf2/read.c (follow_die_offset): Add logging.
3971 (dwarf2_per_objfile::age_comp_units): Add logging.
3972
6bd434d6
SM
39732021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3974
3975 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3976 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3977 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3978 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3979 * arm-tdep.c (struct frame_unwind): Make static.
3980 * auto-load.c (auto_load_safe_path_vec): Make static.
3981 * csky-tdep.c (csky_stub_unwind): Make static.
3982 * gdbarch.c (gdbarch_data_registry): Make static.
3983 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3984 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3985 * i386-tdep.c (i386_frame_setup_skip_insns,
3986 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3987 Make static.
3988 * infrun.c (observer_mode): Make static.
3989 * linux-nat.c (sigchld_action): Make static.
3990 * linux-thread-db.c (thread_db_list): Make static.
3991 * maint-test-options.c (maintenance_test_options_list):
3992 * mep-tdep.c (mep_csr_registers): Make static.
3993 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3994 (stats): Make static.
3995 * nat/linux-osdata.c (struct osdata_type): Make static.
3996 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3997 * progspace.c (last_program_space_num): Make static.
3998 * python/py-param.c (struct parm_constant): Remove struct type
3999 name.
4000 (parm_constants): Make static.
4001 * python/py-record-btrace.c (btpy_list_methods): Make static.
4002 * python/py-record.c (recpy_gap_type): Make static.
4003 * record.c (record_goto_cmdlist): Make static.
4004 * regcache.c (regcache_descr_handle): Make static.
4005 * registry.h (DEFINE_REGISTRY): Make definition static.
4006 * symmisc.c (std_in, std_out, std_err): Make static.
4007 * top.c (previous_saved_command_line): Make static.
4008 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
4009 static.
4010 * unittests/command-def-selftests.c (nr_duplicates,
4011 nr_invalid_prefixcmd, lists): Make static.
4012 * unittests/observable-selftests.c (test_notification): Make
4013 static.
4014 * unittests/optional/assignment/1.cc (counter): Make static.
4015 * unittests/optional/assignment/2.cc (counter): Make static.
4016 * unittests/optional/assignment/3.cc (counter): Make static.
4017 * unittests/optional/assignment/4.cc (counter): Make static.
4018 * unittests/optional/assignment/5.cc (counter): Make static.
4019 * unittests/optional/assignment/6.cc (counter): Make static.
4020
a6c11cbb
JS
40212021-01-20 Joel Sherrill <joel@rtems.org>
4022
4023 PR gdb/27219
4024 * remote.c (struct remote_thread_info) <resume_state>: Rename
4025 to...
4026 <get_resume_state>: ... this.
4027 (remote_target::resume): Adjust.
4028 (remote_target::commit_resume): Adjust.
4029 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
4030
6f52fdf4
SDJ
40312021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
4032 Tom Tromey <tom@tromey.com>
4033
4034 * stap-probe.c (stap_parse_single_operand): Handle '!'
4035 operator.
4036 (stap_parse_argument_conditionally): Likewise.
4037 Skip spaces after processing open-parenthesis sub-expression.
4038 (stap_parse_argument_1): Skip spaces after call to
4039 stap_parse_argument_conditionally.
4040 Handle case when right-side expression is a parenthesized
4041 sub-expression.
4042 Skip spaces after call to stap_parse_argument_1.
4043
1c3b85ad
LS
40442021-01-19 Lancelot SIX <lsix@lancelotsix.com>
4045
4046 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4047
a9a87d35
LM
40482021-01-19 Luis Machado <luis.machado@linaro.org>
4049
4050 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
4051 memory and save data.
4052 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
4053 (trad_frame_set_unknown, trad_frame_set_value_bytes)
4054 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4055 (trad_frame_value_bytes_p): Remove.
4056 (trad_frame_reset_saved_regs): Adjust documentation.
4057 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
4058 constructor and reset the state of the registers.
4059 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4060 (trad_frame_value_bytes_p, trad_frame_set_value)
4061 (trad_frame_set_realreg, trad_frame_set_addr)
4062 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
4063 (trad_frame_set_reg_realreg): Update to call member function.
4064 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
4065 (trad_frame_get_prev_register): Likewise.
4066
4067 * aarch64-tdep.c (aarch64_analyze_prologue)
4068 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
4069 (aarch64_prologue_prev_register): Update to use member functions.
4070 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
4071 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
4072 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
4073 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
4074 (arm_make_epilogue_frame_cache): Likewise.
4075 * avr-tdep.c (avr_frame_unwind_cache)
4076 (avr_frame_prev_register): Likewise.
4077 * cris-tdep.c (cris_scan_prologue): Likewise.
4078 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
4079 * frv-tdep.c (frv_analyze_prologue): Likewise.
4080 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
4081 * lm32-tdep.c (lm32_frame_cache): Likewise.
4082 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4083 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
4084 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
4085 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
4086 (reset_saved_regs): Adjust to set realreg.
4087 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
4088 call member functions.
4089 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
4090 * s390-tdep.c (s390_prologue_frame_unwind_cache)
4091 (s390_backchain_frame_unwind_cache): Likewise.
4092 * score-tdep.c (score7_analyze_prologue)
4093 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
4094 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
4095 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4096 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
4097 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4098 * tilegx-tdep.c (tilegx_analyze_prologue)
4099 (tilegx_frame_cache): Likewise.
4100 * v850-tdep.c (v850_frame_cache): Likewise.
4101 * vax-tdep.c (vax_frame_cache): Likewise.
4102
bdec2917
LM
41032021-01-19 Luis Machado <luis.machado@linaro.org>
4104
4105 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
4106 of buffer + length.
4107 (put_frame_register_bytes): Likewise.
4108 Adjust documentation.
4109 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
4110 (safe_frame_unwind_memory): Likewise.
4111 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
4112 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
4113 gdb::array_view.
4114 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
4115 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
4116 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
4117 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
4118 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
4119 * dwarf2/loc.c (rw_pieced_value): Likewise.
4120 * hppa-tdep.c (hppa_frame_cache): Likewise.
4121 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
4122 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
4123 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4124 (i386_linux_rt_sigtramp_start): Likewise.
4125 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
4126 * i386-tdep.c (i386_register_to_value): Likewise.
4127 * i387-tdep.c (i387_register_to_value): Likewise.
4128 * ia64-tdep.c (ia64_register_to_value): Likewise.
4129 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
4130 (m32r_linux_rt_sigtramp_start): Likewise.
4131 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
4132 * m68k-tdep.c (m68k_register_to_value): Likewise.
4133 * mips-tdep.c (mips_register_to_value)
4134 (mips_value_to_register): Likewise.
4135 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
4136 (ppcfbsd_sigtramp_frame_cache): Likewise.
4137 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
4138 (ppcobsd_sigtramp_frame_cache): Likewise.
4139 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
4140 (rs6000_register_to_value): Likewise.
4141 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4142 * tramp-frame.c (tramp_frame_start): Likewise.
4143 * valops.c (value_assign): Likewise.
4144
ccbe4c82
LM
41452021-01-19 Luis Machado <luis.machado@linaro.org>
4146
4147 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
4148 array_view.
4149 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
4150 instead of buffer and size.
4151 (trad_frame_set_reg_value_bytes): Likewise.
4152 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
4153 (trad_frame_set_value_bytes): Likewise.
4154
0e7620dc
MF
41552021-01-18 Mike Frysinger <vapier@gentoo.org>
4156
4157 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
4158
6a9ad81c
AB
41592021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
4160
4161 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
4162 (riscv_fbsd_gregset): Use riscv_supply_regset.
4163 (riscv_fbsd_fpregset): Likewise.
4164 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
4165 (riscv_linux_fregset): Likewise.
4166 * riscv-tdep.c (riscv_supply_regset): Define new function.
4167 * riscv-tdep.h (riscv_supply_regset): Declare new function.
4168
d3d7d1ba
TV
41692021-01-18 Tom de Vries <tdevries@suse.de>
4170
4171 PR tdep/27172
4172 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
4173 New macro.
4174 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
4175 for SEGV_BNDERR.
4176
aa2838cc
SM
41772021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4178
4179 * remote.c (class remote_target) <remote_hostio_send_command,
4180 remote_hostio_parse_result>: Constify parameter.
4181 (remote_hostio_parse_result): Likewise.
4182 (remote_target::remote_hostio_send_command): Adjust.
4183 (remote_target::remote_hostio_pread_vFile): Adjust.
4184 (remote_target::fileio_readlink): Adjust.
4185 (remote_target::fileio_fstat): Adjust.
4186
b5c8f22d
SM
41872021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4188
4189 * remote.c (remote_target::start_remote): Move wait_status to
4190 narrower scope.
4191
e3b2741b
SM
41922021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4193
4194 * remote.c (class remote_target):
4195 <add_current_inferior_and_thread>: Constify parameter.
4196 (stop_reply_extract_thread): Likewise.
4197 (remote_target::get_current_thread): Likewise.
4198 (remote_target::add_current_inferior_and_thread): Likewise.
4199
cecb1912
SM
42002021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4201
4202 * remote.c (class remote_target)
4203 <remote_unpack_thread_info_response,
4204 parse_threadlist_response>: Constify parameter and/or return
4205 value and or local variable.
4206 (stub_unpack_int): Likewise.
4207 (unpack_nibble): Likewise.
4208 (unpack_byte): Likewise.
4209 (unpack_int): Likewise.
4210 (unpack_string): Likewise.
4211 (unpack_threadid): Likewise.
4212 (remote_target::remote_unpack_thread_info_response): Likewise.
4213 (remote_target::parse_threadlist_response): Likewise.
4214
5a11fff0
AB
42152021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
4216
4217 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
4218
17e89137
LS
42192021-01-14 Lancelot Six <lsix@lancelotsix.com>
4220
4221 * MAINTAINERS (Write After Approval): Add myself.
4222
58eadc4b
BE
42232021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4224
4225 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
4226 because is_trivially_default_constructible was first implemented with
4227 gcc-5.
4228
5fae2a2c
TV
42292021-01-14 Tom de Vries <tdevries@suse.de>
4230
4231 PR breakpoints/27151
4232 * objfiles.h (in_plt_section): Handle .plt.sec.
4233
8f66807b
AB
42342021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4235
4236 PR gdb/26819
4237 * remote.c
4238 (remote_target::select_thread_for_ambiguous_stop_reply): New
4239 member function.
4240 (remote_target::process_stop_reply): Call
4241 select_thread_for_ambiguous_stop_reply.
4242
bd497355
SM
42432021-01-13 Simon Marchi <simon.marchi@efficios.com>
4244
4245 * record-btrace.c (class record_btrace_target): Remove.
4246 (record_btrace_target::commit_resume): Remove.
4247 * record-full.c (class record_full_target): Remove.
4248 (record_full_target::commit_resume): Remove.
4249
c9d22089
SM
42502021-01-13 Simon Marchi <simon.marchi@efficios.com>
4251
4252 * remote.c (enum class resume_state): New.
4253 (struct resumed_pending_vcont_info): New.
4254 (struct remote_thread_info) <resume_state, set_not_resumed,
4255 set_resumed_pending_vcont, resumed_pending_vcont_info,
4256 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
4257 New.
4258 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
4259 (remote_target::remote_add_thread): Adjust.
4260 (remote_target::process_initial_stop_replies): Adjust.
4261 (remote_target::resume): Adjust.
4262 (remote_target::commit_resume): Rely on state in
4263 remote_thread_info and not on tp->executing.
4264 (remote_target::process_stop_reply): Adjust.
4265
d8d1feb4
SM
42662021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4267
4268 * arc-tdep.h (arc_debug_printf): New.
4269 * arc-tdep.c: Use arc_debug_printf.
4270 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
4271 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
4272 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
4273
fb0f5031
SM
42742021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4275
4276 * arc-tdep.h (arc_debug): Change type to bool.
4277 * arc-tdep.c (arc_debug): Change type to bool.
4278 (arc_analyze_prologue): Adjust.
4279 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
4280 * arc-linux-nat.c (ps_get_thread_area): Adjust.
4281
5bf7e91b
SM
42822021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4283
4284 * auto-load.c (auto_load_objfile_script_1): Use bool.
4285 (execute_script_contents): Use bool.
4286
db972fce
SM
42872021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4288
4289 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
4290 comment here.
4291 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
4292 comment to header.
4293 * extension-priv.h (struct extension_language_script_ops)
4294 <auto_load_enabled>: Return bool.
4295 * extension.h (ext_lang_auto_load_enabled): Return bool, move
4296 comment here.
4297 * extension.c (ext_lang_auto_load_enabled): Return bool, move
4298 comment to header.
4299 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
4300 move comment here.
4301 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
4302 move comment to header.
4303 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
4304 move comment here.
4305 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
4306 move comment to header.
4307
5e12f48f
SM
43082021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4309
4310 * auto-load.h (file_is_auto_load_safe): Change return type to
4311 bool, move comment here.
4312 * auto-load.c (file_is_auto_load_safe): Change return type and
4313 advice_printed to bool. Move comment to header.
4314
54ca9002
SM
43152021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4316
4317 * jit.c (jit_debug_printf): New, use throughout file.
4318
24a7f1b5
SM
43192021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4320
4321 * infrun.c (normal_stop): Fix indentation.
4322
fe7a351a
SM
43232021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4324
4325 * top.h (readnow_symbol_files, readnever_symbol_files): Move
4326 declarations to ...
4327 * symfile.h: ... here.
4328 * symfile.c: Update doc.
4329
16e9019e
SM
43302021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4331
4332 * target.h (baud_rate, serial_parity): Move declarations...
4333 * serial.h: ... here.
4334 * main.c: Include serial.h.
4335 * serial.c (baud_rate, serial_parity): Update doc.
4336
b2f2ae0d
SM
43372021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4338
4339 * top.c (pre_init_ui_hook): Remove.
4340
5291fe3c
SP
43412021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4342
4343 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
4344 (aarch64_vnv_type): Add "bf" type in h field of v registers.
4345 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
4346 * features/aarch64-fpu.xml: Add bfloat16 type.
4347
ce38f5ed
AB
43482021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4349
4350 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
4351
7c654b71
AB
43522021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4353
4354 * f-exp.y (dot_ops): Rename to...
4355 (fortran_operators): ...this. Add a header comment. Add symbol
4356 based operators.
4357 (yylex): Update to use fortran_operators not dot_ops. Remove
4358 special handling for '**', this is now included in
4359 fortran_operators.
4360
c6185dce
SM
43612021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4362
4363 * arch/aarch64-insn.h (aarch64_debug_printf): New.
4364 * arch/aarch64-insn.c: Use aarch64_debug_printf.
4365 * aarch64-tdep.c: Use aarch64_debug_printf.
4366
eef401dc
SM
43672021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4368
4369 * solib-aix.c (solib_aix_debug_printf): New, use throughout
4370 file.
4371
062eaacb
SM
43722021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4373
4374 * jit.c (jit_debug): Change type to bool.
4375 (_initialize_jit): Adjust.
4376
54585eee
TT
43772021-01-09 Tom Tromey <tom@tromey.com>
4378
4379 PR compile/23672
4380 * compile/compile.c (compile_to_object): Avoid crash when
4381 osabi_triplet_regexp returns NULL.
4382
bc167b6b
TT
43832021-01-09 Tom Tromey <tom@tromey.com>
4384
4385 * tracepoint.h (class collection_list) <append_exp>: Take a
4386 std::string.
4387 * tracepoint.c (collection_list::append_exp): Take a std::string.
4388 (encode_actions_1): Update.
4389
8fc48b79
TT
43902021-01-08 Tom Tromey <tromey@adacore.com>
4391
4392 * parse.c (parse_expression): Add void_context_p parameter. Use
4393 parse_exp_in_context.
4394 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
4395 parse_expression.
4396 (print_command, call_command): Update.
4397 * expression.h (parse_expression): Add void_context_p parameter.
4398
3c8c6de2
AB
43992021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4400
4401 * value.c (set_value_component_location): Adjust the VALUE_LVAL
4402 for internalvar components that have a dynamic location.
4403
1940319c
TV
44042021-01-08 Tom de Vries <tdevries@suse.de>
4405
4406 PR gdb/26881
4407 * breakpoint.c (create_exception_master_breakpoint_probe)
4408 (create_exception_master_breakpoint_hook): Factor out
4409 of ...
4410 (create_exception_master_breakpoint): ... here. Only try to install
4411 the master exception breakpoint in objfile.debug using the
4412 _Unwind_DebugHook method, if the install using probes in objfile
4413 failed.
4414
e3436813
AB
44152021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4416
4417 * f-lang.c (fortran_value_subarray): Call value_from_component.
4418
e904f56d
MF
44192021-01-07 Mike Frysinger <vapier@gentoo.org>
4420
4421 * remote-sim.c: Include memory-map.h.
4422 (gdbsim_target): Define memory_map override.
4423 (gdbsim_target::memory_map): Define.
4424
959d6a67
TT
44252021-01-07 Tom Tromey <tromey@adacore.com>
4426
4427 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
4428
d4813f10
TT
44292021-01-07 Tom Tromey <tromey@adacore.com>
4430
4431 * ada-lang.c (add_component_interval): Start loop using vector's
4432 updated size.
4433
b49180ac
TT
44342021-01-06 Tom Tromey <tromey@adacore.com>
4435
4436 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
4437 Do not cast result.
4438 * valarith.c (fixed_point_binop): Handle multiplication
4439 and division specially.
4440 * valops.c (value_to_gdb_mpq): New function.
4441 (value_cast_to_fixed_point): Use it.
4442
55195361
HD
44432021-01-05 Hannes Domani <ssbssa@yahoo.de>
4444
4445 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4446 Call wnoutrefresh instead of tui_win_info::refresh_window.
4447
1b6d4bb2
HD
44482021-01-05 Hannes Domani <ssbssa@yahoo.de>
4449
4450 * tui/tui-source.c (tui_source_window::show_line_number):
4451 Redraw second space after line number.
4452
b5ff370e
HD
44532021-01-05 Hannes Domani <ssbssa@yahoo.de>
4454
4455 PR tui/26927
4456 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4457 Fix source pad size in prefresh.
4458 (tui_source_window_base::show_source_content): Grow source pad
4459 if necessary.
4460
c68ea49f
MF
44612021-01-04 Mike Frysinger <vapier@gentoo.org>
4462
4463 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
4464 (bfin_frame_align): Use align_down.
4465
e4ad960a
TV
44662021-01-04 Tom de Vries <tdevries@suse.de>
4467
4468 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
4469 terminators that do not terminate anything.
4470
3ec3145c
SM
44712021-01-04 Simon Marchi <simon.marchi@efficios.com>
4472
4473 * debug.c (debug_print_depth): New.
4474 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
4475 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
4476 * infrun.c (start_step_over): Use
4477 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4478 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
4479 INFRUN_SCOPED_DEBUG_START_END.
4480 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4481
e71daf80
SM
44822021-01-04 Simon Marchi <simon.marchi@efficios.com>
4483
4484 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
4485
335709bc
SM
44862021-01-04 Simon Marchi <simon.marchi@efficios.com>
4487
4488 * utils.c (vfprintf_unfiltered): Print timestamp only when
4489 previous debug output ended with a newline.
4490
098caef4
LM
44912021-01-04 Luis Machado <luis.machado@linaro.org>
4492
4493 Update all users of trad_frame_saved_reg to use the new member
4494 functions.
4495
4496 Remote all struct keywords from declarations of trad_frame_saved_reg
4497 types, except on forward declarations.
4498
4499 * aarch64-tdep.c: Update.
4500 * alpha-mdebug-tdep.c: Update.
4501 * alpha-tdep.c: Update.
4502 * arc-tdep.c: Update.
4503 * arm-tdep.c: Update.
4504 * avr-tdep.c: Update.
4505 * cris-tdep.c: Update.
4506 * csky-tdep.c: Update.
4507 * frv-tdep.c: Update.
4508 * hppa-linux-tdep.c: Update.
4509 * hppa-tdep.c: Update.
4510 * hppa-tdep.h: Update.
4511 * lm32-tdep.c: Update.
4512 * m32r-linux-tdep.c: Update.
4513 * m32r-tdep.c: Update.
4514 * m68hc11-tdep.c: Update.
4515 * mips-tdep.c: Update.
4516 * moxie-tdep.c: Update.
4517 * riscv-tdep.c: Update.
4518 * rs6000-tdep.c: Update.
4519 * s390-linux-tdep.c: Update.
4520 * s390-tdep.c: Update.
4521 * score-tdep.c: Update.
4522 * sparc-netbsd-tdep.c: Update.
4523 * sparc-sol2-tdep.c: Update.
4524 * sparc64-fbsd-tdep.c: Update.
4525 * sparc64-netbsd-tdep.c: Update.
4526 * sparc64-obsd-tdep.c: Update.
4527 * sparc64-sol2-tdep.c: Update.
4528 * tilegx-tdep.c: Update.
4529 * v850-tdep.c: Update.
4530 * vax-tdep.c: Update.
4531
4532 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4533 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4534
4535 * trad-frame.c: Update.
4536 Remove TF_REG_* enum.
4537 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4538 a trivially-constructible struct.
4539 (trad_frame_reset_saved_regs): Adjust to use member function.
4540 (trad_frame_value_p): Likewise.
4541 (trad_frame_addr_p): Likewise.
4542 (trad_frame_realreg_p): Likewise.
4543 (trad_frame_value_bytes_p): Likewise.
4544 (trad_frame_set_value): Likewise.
4545 (trad_frame_set_realreg): Likewise.
4546 (trad_frame_set_addr): Likewise.
4547 (trad_frame_set_unknown): Likewise.
4548 (trad_frame_set_value_bytes): Likewise.
4549 (trad_frame_get_prev_register): Likewise.
4550 * trad-frame.h: Update.
4551 (trad_frame_saved_reg_kind): New enum.
4552 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4553 <m_kind, m_reg>: New member fields.
4554 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4555 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4556 <is_addr, is_unknown, is_value_bytes>: New member functions.
4557
9898e882
SM
45582021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
4559
4560 * target-float.c: Fix typos.
4561
b66b4e65
HD
45622021-01-02 Hannes Domani <ssbssa@yahoo.de>
4563
4564 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4565
b5b5650a
JB
45662021-01-01 Joel Brobecker <brobecker@adacore.com>
4567
4568 * gdbarch.sh: Update copyright year range.
4569
3666a048
JB
45702021-01-01 Joel Brobecker <brobecker@adacore.com>
4571
4572 Update copyright year range in copyright header of all GDB files.
4573
ff7e39b6
JB
45742021-01-01 Joel Brobecker <brobecker@adacore.com>
4575
4576 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4577 to the list of directories to update.
4578
2b47c078
JB
45792021-01-01 Joel Brobecker <brobecker@adacore.com>
4580
4581 * top.c (print_gdb_version): Update copyright year.
4582
476923f1 45832021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 4584
476923f1 4585 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 4586
476923f1 4587For older changes see ChangeLog-2020.
c906108c
SS
4588\f
4589Local Variables:
4590mode: change-log
4591left-margin: 8
4592fill-column: 74
4593version-control: never
57da7796 4594coding: utf-8
c906108c 4595End:
This page took 2.754444 seconds and 4 git commands to generate.