[gdb/tui] Fix len_without_escapes in tui-disasm.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d811a7cf
TV
12021-04-06 Tom de Vries <tdevries@suse.de>
2
3 PR tui/27680
4 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
5 to style.parse.
6
306b445a
SM
72021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
8
9 * avr-tdep.c (avr_frame_unwind_cache): Use
10 trad_frame_saved_reg::is_addr.
11
9161c89a
SM
122021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
15 adjust callers.
16
0072c873
SM
172021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
18
19 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
20 objfile parameter for objfile_per_bfd_storage, adjust callers.
21 (struct standard_psymtab) <standard_psymtab>: Likewise.
22 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
23 * psymtab.c (partial_symtab::partial_symtab): Likewise.
24 * ctfread.c (struct ctf_psymtab): Likewise.
25 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
26 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
27 (dwarf2_create_include_psymtab): Likewise.
28 * objfiles.h (struct objfile_per_bfd_storage)
29 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
30 <get_bfd>: New method.
31 <m_bfd>: New field.
32 * objfiles.c (get_objfile_bfd_data): Adjust.
33
9984dd99
SM
342021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
35
36 * psymtab.c (partial_symtab::partial_symtab): Change
37 last_objfile_name to be an std::string.
38 * symfile.c (allocate_symtab): Likewise.
39
4a4f97c1
SM
402021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
41
42 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
43 methods.
44 (struct objfile) <intern>: Use
45 objfile::objfile_per_bfd_storage::intern.
46
0672875f
SM
472021-04-01 Simon Marchi <simon.marchi@efficios.com>
48
49 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
50 with type::is_flag_enum.
51
9902b327
SM
522021-04-01 Simon Marchi <simon.marchi@efficios.com>
53
54 * gdbtypes.h (struct type) <is_flag_enum,
55 set_is_flag_enum>: New methods.
56 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
57 write call sites to use type::set_is_flag_enum.
58
3bc440a2
SM
592021-04-01 Simon Marchi <simon.marchi@efficios.com>
60
61 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
62 with type::is_declared_class.
63
aa70e35c
SM
642021-04-01 Simon Marchi <simon.marchi@efficios.com>
65
66 * gdbtypes.h (struct type) <is_declared_class,
67 set_is_declared_class>: New methods.
68 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
69 write call sites to use type::set_is_declared_class.
70
bfb9f5dc
BS
712021-02-28 Boris Staletic <boris.staletic@gmail.com>
72
73 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
74 to avoid deprecation warnings.
75
733f5eea
ML
762021-04-01 Martin Liska <mliska@suse.cz>
77
78 * cp-name-parser.y: Use startswith instead of strncmp.
79 * m2-exp.y: Likewise.
80 * macroexp.c (substitute_args): Likewise.
81 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
82 * rust-exp.y: Likewise.
83
af82f89d
TT
842021-03-31 Tom Tromey <tom@tromey.com>
85
86 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
87 with dw2_map_matching_symbols.
88 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
89 dw2_expand_symtabs_matching.
90
3570682a
TT
912021-03-31 Tom Tromey <tromey@adacore.com>
92
93 * dwarf2/stringify.h: Fix typo.
94
8a91fbdf
SM
952021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
96
97 PR gdb/27541
98 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
99 with objfiles using READNOW.
100
9f67fc59
TT
1012021-03-29 Tom Tromey <tromey@adacore.com>
102
103 * top.c (check_frame_language_change): Update.
104 * language.c (language_info): Remove parameter.
105 * language.h (language_info): Remove parameter.
106
9b8ffbf4
LM
1072021-03-29 Luis Machado <luis.machado@linaro.org>
108
109 * compile/compile.c (get_args): Don't add empty argv entries.
110
25b48839
RO
1112021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
112
113 gdb:
114 * procfs.c (procfs_target::attach): Define inf.
115 Use it.
116 (procfs_target::create_inferior): Likewise.
117
edc02ceb
TT
1182021-03-28 Tom Tromey <tom@tromey.com>
119
120 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
121 (elf_symfile_read): Simplify.
122 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
123 (make_lazy_dwarf_reader): New function.
124 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
125 (dwarf2_initialize_objfile): Return void. Remove index_kind
126 parameter. Push on 'qf' list.
127 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
128 type. Remove 'index_kind' parameter.
129 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
130
6e23d91a
TT
1312021-03-27 Tom Tromey <tom@tromey.com>
132
133 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
134
594b8948
TT
1352021-03-27 Tom Tromey <tom@tromey.com>
136
137 * elfread.c (elf_symfile_read): Don't clear 'qf'.
138
efe1ecd8
LS
1392021-03-26 Lancelot Six <lsix@lancelotsix.com>
140
141 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
142 rid of 'local'.
143
f4655dee
TT
1442021-03-26 Tom Tromey <tom@tromey.com>
145
146 * symtab.c (struct output_source_filename_data): Add 'output'
147 method and operator().
148 (output_source_filename_data::output): Rename from
149 output_source_filename.
150 (output_partial_symbol_filename): Remove.
151 (info_sources_command): Update.
152 (struct add_partial_filename_data): Add operator().
153 (add_partial_filename_data::operator()): Rename from
154 maybe_add_partial_symtab_filename.
155 (make_source_files_completion_list): Update.
156 * symfile.c (quick_symbol_functions): Update.
157 * symfile-debug.c (objfile::map_symbol_filenames): Update.
158 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
159 'need_fullname'. Remove 'data' parameter.
160 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
161 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
162 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
163 Change type of 'fun' and 'need_fullname'. Remove 'data'
164 parameter.
165 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
166 of 'fun' and 'need_fullname'. Remove 'data' parameter.
167 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
168 parameter.
169 (mi_cmd_file_list_exec_source_files): Update.
170 * dwarf2/read.c
171 (dwarf2_base_index_functions::map_symbol_filenames): Update.
172
2315bb2d
TT
1732021-03-26 Tom Tromey <tom@tromey.com>
174
175 * ada-lang.c (struct match_data): Add operator().
176 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
177 (callback): Remove 'callback'.
178
e2cd5ca4
TT
1792021-03-26 Tom Tromey <tom@tromey.com>
180
181 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
182 call make_ignore_params once.
183
cd43f63e
TT
1842021-03-26 Tom Tromey <tom@tromey.com>
185
186 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
187 "user" check.
188
b4b1a226
SM
1892021-03-26 Simon Marchi <simon.marchi@efficios.com>
190 Pedro Alves <pedro@palves.net>
191
192 * async-event.c: Include "infrun.h".
193 (async_event_handler_marked): New.
194 * async-event.h (async_event_handler_marked): Declare.
195 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
196 inferior before calling target method. Don't commit-resumed if
197 target_has_pending_events is true.
198 * remote.c (remote_target::has_pending_events): New.
199 * target-delegates.c: Regenerate.
200 * target.c (target_has_pending_events): New.
201 * target.h (target_ops::has_pending_events): New target method.
202 (target_has_pending_events): New.
203
1192f124
SM
2042021-03-26 Simon Marchi <simon.marchi@efficios.com>
205 Pedro Alves <pedro@palves.net>
206
207 * infcmd.c (run_command_1, attach_command, detach_command)
208 (interrupt_target_1): Use scoped_disable_commit_resumed.
209 * infrun.c (do_target_resume): Remove
210 target_commit_resume call.
211 (commit_resume_all_targets): Remove.
212 (maybe_set_commit_resumed_all_targets): New.
213 (maybe_call_commit_resumed_all_targets): New.
214 (enable_commit_resumed): New.
215 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
216 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
217 (scoped_disable_commit_resumed::reset)
218 (scoped_disable_commit_resumed::reset_and_commit)
219 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
220 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
221 New.
222 (proceed): Use scoped_disable_commit_resumed and
223 maybe_call_commit_resumed_all_targets.
224 (fetch_inferior_event): Use scoped_disable_commit_resumed.
225 * infrun.h (struct scoped_disable_commit_resumed): New.
226 (maybe_call_commit_resumed_all_process_targets): New.
227 (struct scoped_enable_commit_resumed): New.
228 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
229 * process-stratum-target.h (class process_stratum_target):
230 <commit_resumed_state>: New.
231 * record-full.c (record_full_wait_1): Change commit_resumed_state
232 around calling commit_resumed.
233 * remote.c (class remote_target) <commit_resume>: Rename to...
234 <commit_resumed>: ... this.
235 (struct stop_reply): Move up.
236 (remote_target::commit_resume): Rename to...
237 (remote_target::commit_resumed): ... this. Check if there is any
238 thread pending vCont resume.
239 (remote_target::remote_stop_ns): Generate stop replies for resumed
240 but pending vCont threads.
241 (remote_target::wait_ns): Add gdb_assert.
242 * target-delegates.c: Regenerate.
243 * target.c (target_wait, target_resume): Assert that the current
244 process_stratum target isn't in commit-resumed state.
245 (defer_target_commit_resume): Remove.
246 (target_commit_resume): Remove.
247 (target_commit_resumed): New.
248 (make_scoped_defer_target_commit_resume): Remove.
249 (target_stop): Assert that the current process_stratum target
250 isn't in commit-resumed state.
251 * target.h (struct target_ops) <commit_resume>: Rename to ...
252 <commit_resumed>: ... this.
253 (target_commit_resume): Remove.
254 (target_commit_resumed): New.
255 (make_scoped_defer_target_commit_resume): Remove.
256 * top.c (wait_sync_command_done): Use
257 scoped_enable_commit_resumed.
258
e5b9b39f
PA
2592021-03-26 Pedro Alves <pedro@palves.net>
260
261 * target.c (target_always_non_stop_p): Also check whether the
262 target can async.
263
bab287cd
TT
2642021-03-26 Tom Tromey <tom@tromey.com>
265
266 * dwarf2/read.c (dwarf2_read_debug_names)
267 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
268 (dw2_debug_names_iterator::next, create_type_unit_group):
269 Simplify.
270
eff4f69d
PA
2712021-03-25 Pedro Alves <pedro@palves.net>
272
273 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
274 around setting the breakpoint.
275
323fd5b9
PA
2762021-03-25 Pedro Alves <pedro@palves.net>
277
278 * remote.c
279 (remote_target::check_pending_events_prevent_wildcard_vcont):
280 Check whether the event's ptid is not null_ptid before looking up
281 the corresponding inferior.
282
d3cbca38
CD
2832021-03-24 Changbin Du <changbin.du@gmail.com>
284
285 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
286 read_code.
287
328d42d8
SM
2882021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
289
290 * target.h (current_top_target): Remove, make callers use the
291 current inferior instead.
292 * target.c (current_top_target): Remove.
293
d777bf0d
SM
2942021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * target.h (target_shortname): Change to function declaration.
297 (target_longname): Likewise.
298 (target_attach_no_wait): Likewise.
299 (target_post_attach): Likewise.
300 (target_prepare_to_store): Likewise.
301 (target_supports_enable_disable_tracepoint): Likewise.
302 (target_supports_string_tracing): Likewise.
303 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
304 (target_supports_dumpcore): Likewise.
305 (target_dumpcore): Likewise.
306 (target_can_run_breakpoint_commands): Likewise.
307 (target_files_info): Likewise.
308 (target_post_startup_inferior): Likewise.
309 (target_insert_fork_catchpoint): Likewise.
310 (target_remove_fork_catchpoint): Likewise.
311 (target_insert_vfork_catchpoint): Likewise.
312 (target_remove_vfork_catchpoint): Likewise.
313 (target_insert_exec_catchpoint): Likewise.
314 (target_remove_exec_catchpoint): Likewise.
315 (target_set_syscall_catchpoint): Likewise.
316 (target_rcmd): Likewise.
317 (target_can_lock_scheduler): Likewise.
318 (target_can_async_p): Likewise.
319 (target_is_async_p): Likewise.
320 (target_execution_direction): Likewise.
321 (target_extra_thread_info): Likewise.
322 (target_pid_to_exec_file): Likewise.
323 (target_thread_architecture): Likewise.
324 (target_find_memory_regions): Likewise.
325 (target_make_corefile_notes): Likewise.
326 (target_get_bookmark): Likewise.
327 (target_goto_bookmark): Likewise.
328 (target_stopped_by_watchpoint): Likewise.
329 (target_stopped_by_sw_breakpoint): Likewise.
330 (target_supports_stopped_by_sw_breakpoint): Likewise.
331 (target_stopped_by_hw_breakpoint): Likewise.
332 (target_supports_stopped_by_hw_breakpoint): Likewise.
333 (target_have_steppable_watchpoint): Likewise.
334 (target_can_use_hardware_watchpoint): Likewise.
335 (target_region_ok_for_hw_watchpoint): Likewise.
336 (target_can_do_single_step): Likewise.
337 (target_insert_watchpoint): Likewise.
338 (target_remove_watchpoint): Likewise.
339 (target_insert_hw_breakpoint): Likewise.
340 (target_remove_hw_breakpoint): Likewise.
341 (target_can_accel_watchpoint_condition): Likewise.
342 (target_can_execute_reverse): Likewise.
343 (target_get_ada_task_ptid): Likewise.
344 (target_filesystem_is_local): Likewise.
345 (target_trace_init): Likewise.
346 (target_download_tracepoint): Likewise.
347 (target_can_download_tracepoint): Likewise.
348 (target_download_trace_state_variable): Likewise.
349 (target_enable_tracepoint): Likewise.
350 (target_disable_tracepoint): Likewise.
351 (target_trace_start): Likewise.
352 (target_trace_set_readonly_regions): Likewise.
353 (target_get_trace_status): Likewise.
354 (target_get_tracepoint_status): Likewise.
355 (target_trace_stop): Likewise.
356 (target_trace_find): Likewise.
357 (target_get_trace_state_variable_value): Likewise.
358 (target_save_trace_data): Likewise.
359 (target_upload_tracepoints): Likewise.
360 (target_upload_trace_state_variables): Likewise.
361 (target_get_raw_trace_data): Likewise.
362 (target_get_min_fast_tracepoint_insn_len): Likewise.
363 (target_set_disconnected_tracing): Likewise.
364 (target_set_circular_trace_buffer): Likewise.
365 (target_set_trace_buffer_size): Likewise.
366 (target_set_trace_notes): Likewise.
367 (target_get_tib_address): Likewise.
368 (target_set_permissions): Likewise.
369 (target_static_tracepoint_marker_at): Likewise.
370 (target_static_tracepoint_markers_by_strid): Likewise.
371 (target_traceframe_info): Likewise.
372 (target_use_agent): Likewise.
373 (target_can_use_agent): Likewise.
374 (target_augmented_libraries_svr4_read): Likewise.
375 (target_log_command): Likewise.
376 * target.c (target_shortname): New.
377 (target_longname): New.
378 (target_attach_no_wait): New.
379 (target_post_attach): New.
380 (target_prepare_to_store): New.
381 (target_supports_enable_disable_tracepoint): New.
382 (target_supports_string_tracing): New.
383 (target_supports_evaluation_of_breakpoint_conditions): New.
384 (target_supports_dumpcore): New.
385 (target_dumpcore): New.
386 (target_can_run_breakpoint_commands): New.
387 (target_files_info): New.
388 (target_post_startup_inferior): New.
389 (target_insert_fork_catchpoint): New.
390 (target_remove_fork_catchpoint): New.
391 (target_insert_vfork_catchpoint): New.
392 (target_remove_vfork_catchpoint): New.
393 (target_insert_exec_catchpoint): New.
394 (target_remove_exec_catchpoint): New.
395 (target_set_syscall_catchpoint): New.
396 (target_rcmd): New.
397 (target_can_lock_scheduler): New.
398 (target_can_async_p): New.
399 (target_is_async_p): New.
400 (target_execution_direction): New.
401 (target_extra_thread_info): New.
402 (target_pid_to_exec_file): New.
403 (target_thread_architecture): New.
404 (target_find_memory_regions): New.
405 (target_make_corefile_notes): New.
406 (target_get_bookmark): New.
407 (target_goto_bookmark): New.
408 (target_stopped_by_watchpoint): New.
409 (target_stopped_by_sw_breakpoint): New.
410 (target_supports_stopped_by_sw_breakpoint): New.
411 (target_stopped_by_hw_breakpoint): New.
412 (target_supports_stopped_by_hw_breakpoint): New.
413 (target_have_steppable_watchpoint): New.
414 (target_can_use_hardware_watchpoint): New.
415 (target_region_ok_for_hw_watchpoint): New.
416 (target_can_do_single_step): New.
417 (target_insert_watchpoint): New.
418 (target_remove_watchpoint): New.
419 (target_insert_hw_breakpoint): New.
420 (target_remove_hw_breakpoint): New.
421 (target_can_accel_watchpoint_condition): New.
422 (target_can_execute_reverse): New.
423 (target_get_ada_task_ptid): New.
424 (target_filesystem_is_local): New.
425 (target_trace_init): New.
426 (target_download_tracepoint): New.
427 (target_can_download_tracepoint): New.
428 (target_download_trace_state_variable): New.
429 (target_enable_tracepoint): New.
430 (target_disable_tracepoint): New.
431 (target_trace_start): New.
432 (target_trace_set_readonly_regions): New.
433 (target_get_trace_status): New.
434 (target_get_tracepoint_status): New.
435 (target_trace_stop): New.
436 (target_trace_find): New.
437 (target_get_trace_state_variable_value): New.
438 (target_save_trace_data): New.
439 (target_upload_tracepoints): New.
440 (target_upload_trace_state_variables): New.
441 (target_get_raw_trace_data): New.
442 (target_get_min_fast_tracepoint_insn_len): New.
443 (target_set_disconnected_tracing): New.
444 (target_set_circular_trace_buffer): New.
445 (target_set_trace_buffer_size): New.
446 (target_set_trace_notes): New.
447 (target_get_tib_address): New.
448 (target_set_permissions): New.
449 (target_static_tracepoint_marker_at): New.
450 (target_static_tracepoint_markers_by_strid): New.
451 (target_traceframe_info): New.
452 (target_use_agent): New.
453 (target_can_use_agent): New.
454 (target_augmented_libraries_svr4_read): New.
455 (target_log_command): New.
456 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
457 * infrun.c (set_schedlock_func): Adjust.
458 * mi/mi-main.c (exec_reverse_continue): Adjust.
459 * reverse.c (exec_reverse_once): Adjust.
460 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
461 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
462 * remote-sim.c (gdbsim_target::detach): Adjust.
463 (gdbsim_target::files_info): Adjust.
464
b64f703b
TT
4652021-03-24 Tom Tromey <tom@tromey.com>
466
467 * dwarf2/read.c (dw2_map_matching_symbols): Update.
468 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
469 (check_match, dw2_expand_symtabs_matching)
470 (dwarf2_debug_names_index::map_matching_symbols)
471 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
472
68f115f8
KS
4732021-03-24 Keith Seitz <keiths@redhat.com>
474
475 * compile/compile-cplus-types.c
476 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
477 thinko.
478
41c0087b
SM
4792021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
480
481 * gdbarch.sh (gdbarch_data_registry): Make static.
482 * gdbarch.c: Re-generate.
483
ce192338
LM
4842021-03-24 Luis Machado <luis.machado@linaro.org>
485
486 * NEWS: Mention memory tagging changes.
487
bef382e6
LM
4882021-03-24 Luis Machado <luis.machado@linaro.org>
489
490 * printcmd.c (decode_format): Handle the 'm' modifier.
491 (do_examine): Display allocation tags when required/supported.
492 (should_validate_memtags): New function.
493 (print_command_1): Display memory tag mismatches.
494 * valprint.c (show_memory_tag_violations): New function.
495 (value_print_option_defs): Add new option "memory-tag-violations".
496 (user_print_options) <memory_tag_violations>: Initialize to 1.
497 * valprint.h (struct format_data) <print_tags>: New field.
498 (value_print_options) <memory_tag_violations>: New field.
499
48136e00
LM
5002021-03-24 Luis Machado <luis.machado@linaro.org>
501
502 * printcmd.c: Include gdbsupport/rsp-low.h.
503 (memory_tag_list): New static global.
504 (process_print_command_args): Factored out of
505 print_command_1.
506 (print_command_1): Use process_print_command_args.
507 (show_addr_not_tagged, show_memory_tagging_unsupported)
508 (memory_tag_command, memory_tag_print_tag_command)
509 (memory_tag_print_logical_tag_command)
510 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
511 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
512 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
513 functions.
514 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
515
ffcc2a15
LM
5162021-03-24 Luis Machado <luis.machado@linaro.org>
517
518 * aarch64-linux-tdep.c
519 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
520 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
521
cf44c9fa
LM
5222021-03-24 Luis Machado <luis.machado@linaro.org>
523
524 * aarch64-linux-tdep.c
525 (aarch64_linux_report_signal_info): New function.
526 (aarch64_linux_init_abi): Register
527 aarch64_linux_report_signal_info as the report_signal_info hook.
528 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
529 (SEGV_MTESERR): Define.
530
b4a7d4fc
LM
5312021-03-24 Luis Machado <luis.machado@linaro.org>
532
533 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
534 (aarch64_linux_ltag_tests): New function.
535 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
536
c7782e50
LM
5372021-03-24 Luis Machado <luis.machado@linaro.org>
538
539 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
540 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
541 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
542 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
543 functions.
544 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
545 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
546 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
547 (aarch64_linux_get_ltag): New functions.
548 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
549 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
550 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
551 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
552
1e735120
LM
5532021-03-24 Luis Machado <luis.machado@linaro.org>
554
555 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
556 bit.
557 (struct smaps_data): New struct.
558 (decode_vmflags): Handle the 'mt' flag.
559 (parse_smaps_data): New function, refactored from
560 linux_find_memory_regions_full.
561 (linux_address_in_memtag_page): New function.
562 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
563 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
564
93e447c6
LM
5652021-03-24 Luis Machado <luis.machado@linaro.org>
566
567 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
568 instead of char arrays.
569
4601818e
LM
5702021-03-24 Luis Machado <luis.machado@linaro.org>
571
572 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
573 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
574 nat/aarch64-mte-linux-ptrace.h.
575 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
576 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
577 override.
578 <fetch_memtags>: New method override.
579 <store_memtags>: New method override.
580 (aarch64_linux_nat_target::supports_memory_tagging): New method.
581 (aarch64_linux_nat_target::fetch_memtags): New method.
582 (aarch64_linux_nat_target::store_memtags): New method.
583 * arch/aarch64-mte-linux.c: New file.
584 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
585 (AARCH64_MTE_GRANULE_SIZE): Define.
586 (aarch64_memtag_type): New enum.
587 (aarch64_mte_get_tag_granules): New prototype.
588 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
589 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
590 * nat/aarch64-mte-linux-ptrace.c: New file.
591 * nat/aarch64-mte-linux-ptrace.h: New file.
592
3f3bd8b8
LM
5932021-03-24 Luis Machado <luis.machado@linaro.org>
594
595 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
596 * nat/aarch64-mte-linux-ptrace.h: New file.
597
5e984dbf
LM
5982021-03-24 Luis Machado <luis.machado@linaro.org>
599
600 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
601 (store_mteregs_to_thread): New function.
602 (aarch64_linux_nat_target::fetch_registers): Update to call
603 fetch_mteregs_from_thread.
604 (aarch64_linux_nat_target::store_registers): Update to call
605 store_mteregs_to_thread.
606 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
607 (aarch64_cannot_store_register): Handle MTE registers.
608 (aarch64_gdbarch_init): Initialize and setup MTE registers.
609 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
610 <has_mte>: New method.
611 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
612
c1bd443b
LM
6132021-03-24 Luis Machado <luis.machado@linaro.org>
614
615 * aarch64-linux-nat.c
616 (aarch64_linux_nat_target::read_description): Take MTE flag into
617 account.
618 Slight refactor to hwcap flag checking.
619 * aarch64-linux-tdep.c
620 (aarch64_linux_core_read_description): Likewise.
621 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
622 MTE.
623 (aarch64_read_description): Add mte_p parameter and update to use it.
624 Update the documentation.
625 (aarch64_gdbarch_init): Update call to aarch64_read_description.
626 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
627 * arch/aarch64.c: Include ../features/aarch64-mte.c.
628 (aarch64_create_target_description): Add mte_p parameter and update
629 the code to use it.
630 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
631 parameter.
632 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
633 * features/aarch64-mte.c: New file, generated.
634 * features/aarch64-mte.xml: New file.
635
04245125
LM
6362021-03-24 Luis Machado <luis.machado@linaro.org>
637
638 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
639 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
640 * aarch64-linux-tdep.c: Likewise
641 * arch/aarch64-mte-linux.h: New file.
642
754487e2
LM
6432021-03-24 Luis Machado <luis.machado@linaro.org>
644
645 * remote: Include gdbsupport/selftest.h.
646 (test_memory_tagging_functions): New function.
647 (_initialize_remote): Register test_memory_tagging_functions.
648
2c2e7f87
LM
6492021-03-24 Luis Machado <luis.machado@linaro.org>
650
651 * remote.c (PACKET_memory_tagging_feature): New enum.
652 (remote_memory_tagging_p): New function.
653 (remote_protocol_features): New "memory-tagging" entry.
654 (remote_target::remote_query_supported): Handle memory tagging
655 support.
656 (remote_target::supports_memory_tagging): Implement.
657 (create_fetch_memtags_request, parse_fetch_memtags_reply)
658 (create_store_memtags_request): New functions.
659 (remote_target::fetch_memtags): Implement.
660 (remote_target::store_memtags): Implement.
661 (_initialize_remote): Add new "memory-tagging-feature"
662 config command.
663
c193949e
LM
6642021-03-24 Luis Machado <luis.machado@linaro.org>
665
666 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
667 (default_memtag_matches_p, default_set_memtags)
668 (default_get_memtag): New functions.
669 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
670 (default_memtag_matches_p, default_set_memtags)
671 (default_get_memtag): New prototypes.
672 * gdbarch.c: Regenerate.
673 * gdbarch.h: Regenerate.
674 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
675 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
676 (enum memtag_type): New enum.
677
dbe692af
LM
6782021-03-24 Luis Machado <luis.machado@linaro.org>
679
680 * remote.c (remote_target) <supports_memory_tagging>: New method
681 override.
682 <fetch_memtags>: New method override.
683 <store_memtags>: New method override.
684 (remote_target::supports_memory_tagging): New method.
685 (remote_target::fetch_memtags): New method.
686 (remote_target::store_memtags): New method.
687 * target-delegates.c: Regenerate.
688 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
689 method.
690 <fetch_memtags>: New virtual method.
691 <store_memtags>: New virtual method.
692 (target_supports_memory_tagging): Define.
693 (target_fetch_memtags): Define.
694 (target_store_memtags): Define.
695 * target-debug.h (target_debug_print_size_t)
696 (target_debug_print_const_gdb_byte_vector_r)
697 (target_debug_print_gdb_byte_vector_r): New functions.
698
66848ebc
SM
6992021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
700
701 * target.h (target_longname): Remove.
702
c8fbd44a
SM
7032021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
704
705 * target.h (target_is_pushed): Remove, update callers to use
706 inferior::target_is_pushed instead.
707 * target.c (target_is_pushed): Remove.
708
02980c56
SM
7092021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
710
711 * target.h (push_target): Remove, update callers to use
712 inferior::push_target.
713 * target.c (push_target): Remove.
714 * inferior.h (class inferior) <push_target>: New overload.
715
fadf6add
SM
7162021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
717
718 * target.h (unpush_target): Remove, update all callers
719 to use `inferior::unpush_target` instead.
720 (struct target_unpusher) <operator()>: Just declare.
721 * target.c (unpush_target): Remove.
722 (target_unpusher::operator()): New.
723
702cf3f5
AB
7242021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
725
726 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
727 error.
728 (process_full_comp_unit): Validate the top-level tag before
729 processing the first DIE.
730 (read_func_scope): Ensure we have a valid builder.
731
46fec642
AB
7322021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
733
734 * objc-lang.c (objc_demangle): Renamed to
735 objc_language::demangle_symbol, and moved later in the file.
736 (objc_language::sniff_from_mangled_name): Call demangle_symbol
737 member function.
738 (objc_language::demangle_symbol): Defined outside of class
739 declaration. The definition is the old objc_demangle with NULL
740 changed to nullptr, and if conditions relating to nullptr pointers
741 or null character checks made explicit.
742 * objc-lang.h (objc_demangle): Delete declaration.
743
08dedd66
ML
7442021-03-22 Martin Liska <mliska@suse.cz>
745
746 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
747 (_initialize_arm_tdep): Likewise.
748
eb36a3eb
TT
7492021-03-20 Tom Tromey <tom@tromey.com>
750
751 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
752 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
753 * psymtab.h (make_psymbol_functions): Don't declare.
754 * psymtab.c (make_psymbol_functions): Remove.
755 (maintenance_print_psymbols): Update.
756 * psympriv.h (struct psymbol_functions): Add no-argument
757 constructor.
758 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
759 <partial_symtabs>: Remove.
760 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
761 * elfread.c (read_partial_symbols): Update.
762 (elf_symfile_read): Remove check for existing partial symbols.
763 Don't clear "qf".
764 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
765 partial symbols.
766 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
767 partial symtabs.
768 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
769 parameter.
770 * dbxread.c (dbx_symfile_read): Create partial symtabs.
771 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
772
e1114590
TT
7732021-03-20 Tom Tromey <tom@tromey.com>
774
775 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
776 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
777 * symfile-debug.c (objfile::has_partial_symbols)
778 (objfile::find_last_source_symtab)
779 (objfile::forget_cached_source_info)
780 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
781 (objfile::print_stats, objfile::dump)
782 (objfile::expand_symtabs_for_function)
783 (objfile::expand_all_symtabs)
784 (objfile::expand_symtabs_with_fullname)
785 (objfile::map_matching_symbols)
786 (objfile::expand_symtabs_matching)
787 (objfile::find_pc_sect_compunit_symtab)
788 (objfile::map_symbol_filenames)
789 (objfile::find_compunit_symtab_by_address)
790 (objfile::lookup_global_symbol_language)
791 (objfile::require_partial_symbols): Update.
792 * psymtab.c (maintenance_print_psymbols)
793 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
794 * objfiles.h (struct objfile) <qf>: Now a forward_list.
795 * objfiles.c (objfile_relocate1): Update.
796 * elfread.c (elf_symfile_read): Update.
797
de909f0b
TT
7982021-03-20 Tom Tromey <tom@tromey.com>
799
800 * objfiles.h (struct objfile) <psymtabs>: Remove method.
801
caf8c1e5
TT
8022021-03-20 Tom Tromey <tom@tromey.com>
803
804 * psymtab.c (psymbol_functions::count_psyms): Rename.
805 (psymbol_functions::print_stats): Update.
806 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
807 method.
808
3aa31ce7
TT
8092021-03-20 Tom Tromey <tom@tromey.com>
810
811 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
812 (psymbol_functions::find_pc_sect_psymtab): Rename.
813 (psymbol_functions::find_pc_sect_compunit_symtab)
814 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
815 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
816 Declare new method.
817 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
818
7b249e47
TT
8192021-03-20 Tom Tromey <tom@tromey.com>
820
821 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
822 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
823 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
824 parameter.
825 (add_psymbol_to_bcache): Remove.
826 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
827 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
828 Likewise.
829 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
830 <add_psymbol>: Likewise.
831 (standard_psymtab, legacy_psymtab): Likewise.
832 * mdebugread.c (parse_partial_symbols): Update.
833 (handle_psymbol_enumerators): Add partial_symtabs parameter.
834 (handle_psymbol_enumerators): Update.
835 (new_psymtab): Add partial_symtabs parameter.
836 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
837 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
838 parameter.
839 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
840 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
841 Update.
842 * dbxread.c (read_dbx_symtab): Update.
843 (start_psymtab): Add partial_symtabs parameter.
844 (dbx_end_psymtab): Update.
845 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
846 (ctf_psymtab): Add partial_symtabs parameter.
847 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
848 Update.
849 (scan_partial_symbols): Add partial_symtabs parameter.
850 (scan_partial_symbols, elfctf_build_psymtabs)
851 (ctf_psymtab_add_enums): Update.
852
d1eef86d
TT
8532021-03-20 Tom Tromey <tom@tromey.com>
854
855 * symfile.c (read_symbols): Use objfile method.
856 * symfile-debug.c (objfile::require_partial_symbols): New method.
857 * psymtab.h (require_partial_symbols): Don't declare.
858 * psymtab.c (require_partial_symbols): Use objfile method. Now
859 static.
860 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
861 (psymbol_functions::lookup_symbol)
862 (psymbol_functions::lookup_global_symbol_language)
863 (psymbol_functions::find_last_source_symtab)
864 (psymbol_functions::forget_cached_source_info)
865 (psymbol_functions::print_stats)
866 (psymbol_functions::expand_symtabs_for_function)
867 (psymbol_functions::expand_all_symtabs)
868 (psymbol_functions::expand_symtabs_with_fullname)
869 (psymbol_functions::map_symbol_filenames)
870 (psymbol_functions::map_matching_symbols)
871 (psymbol_functions::expand_symtabs_matching)
872 (psymbol_functions::find_compunit_symtab_by_address)
873 (maintenance_print_psymbols, maintenance_info_psymtabs)
874 (maintenance_check_psymtabs): Update.
875 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
876 new method.
877
eb00e468
TT
8782021-03-20 Tom Tromey <tom@tromey.com>
879
880 * xcoffread.c (xcoff_sym_fns): Update.
881 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
882 * symfile-debug.c (objfile::has_partial_symbols): Use
883 can_lazily_read_symbols.
884 (debug_sym_read_psymbols): Remove.
885 (debug_sym_fns, install_symfile_debug_logging): Update.
886 * quick-symbol.h (struct quick_symbol_functions)
887 <can_lazily_read_symbols, read_partial_symbols>: New methods.
888 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
889 * mipsread.c (ecoff_sym_fns): Update.
890 * machoread.c (macho_sym_fns): Update.
891 * elfread.c (struct lazy_dwarf_reader): New.
892 (elf_symfile_read): Update.
893 (read_psyms): Now a method of lazy_dwarf_reader.
894 (elf_sym_fns): Update.
895 (elf_sym_fns_lazy_psyms): Remove.
896 * dbxread.c (aout_sym_fns): Update.
897 * coffread.c (coff_sym_fns): Update.
898
b29b98cf
TT
8992021-03-20 Tom Tromey <tom@tromey.com>
900
901 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
902 (reread_symbols): Move reset_psymtabs call later.
903 * objfiles.c (objfile::objfile): Don't initialize
904 partial_symtabs.
905
17d66340
TT
9062021-03-20 Tom Tromey <tom@tromey.com>
907
908 * dwarf2/read.c (dwarf2_build_psymtabs): Call
909 set_partial_symtabs.
910 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
911 * psymtab.h (make_psymbol_functions): Add partial_symtabs
912 parameter.
913 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
914 parameter.
915 (psymbol_functions::find_pc_sect_compunit_symtab)
916 (psymbol_functions::print_stats, psymbol_functions::dump)
917 (psymbol_functions::has_symbols): Update.
918 (make_psymbol_functions, dump_psymtab_addrmap): Add
919 partial_symtabs parameter.
920 (maintenance_print_psymbols): Update.
921 (psymbol_functions::expand_symtabs_matching): Update.
922 * psympriv.h (struct psymbol_functions): Add constructor.
923 <m_partial_symtabs>: New member.
924 <set_partial_symtabs>: New method.
925
84685904
TT
9262021-03-20 Tom Tromey <tom@tromey.com>
927
928 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
929 parameter.
930 (process_psymtab_comp_unit_reader)
931 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
932 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
933 Reference psymtabs via per_bfd.
934
79cc99f6
TT
9352021-03-20 Tom Tromey <tom@tromey.com>
936
937 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
938 Remove.
939 (add_address_entry): Remove objfile parameter.
940 (add_address_entry_worker): Update.
941 (write_address_map): Replace objfile parameter with per_bfd.
942 (write_gdbindex, write_psymtabs_to_index): Update.
943
4829711b
TT
9442021-03-20 Tom Tromey <tom@tromey.com>
945
946 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
947 print_bcache parameter.
948 * symfile-debug.c (objfile::print_stats): Add print_bcache
949 parameter.
950 * quick-symbol.h (struct quick_symbol_functions)
951 <print_stats>: Add print_bcache parameter.
952 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
953 code to psymtab.c.
954 (print_objfile_statistics): Move psymtab code to psymtab.c.
955 * psymtab.c (count_psyms): Move from symmisc.c.
956 (psymbol_functions::print_stats): Print partial symbol and bcache
957 statistics. Add print_bcache parameter.
958 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
959 (struct objfile) <print_stats>: Add print_bcache parameter.
960 * maint.c (maintenance_print_statistics): Update.
961
efd7398e
TT
9622021-03-20 Tom Tromey <tom@tromey.com>
963
964 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
965 member.
966 * dwarf2/read.c (create_addrmap_from_index)
967 (create_addrmap_from_aranges): Set per_bfd addrmap.
968 (dwarf2_read_gdb_index): Don't set partial_symtabs.
969 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
970 per_bfd addrmap.
971 (dwarf2_read_debug_names): Don't set partial_symtabs.
972 (dwarf2_initialize_objfile): Likewise.
973
51962708
TT
9742021-03-20 Tom Tromey <tom@tromey.com>
975
976 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
977 earlier.
978
484b1090
TT
9792021-03-20 Tom Tromey <tom@tromey.com>
980
981 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
982 (~psymtab_discarder, keep): Update.
983 <m_objfile>: Remove.
984 <m_partial_symtabs>: New member.
985 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
986
7e9c0476
TT
9872021-03-20 Tom Tromey <tom@tromey.com>
988
989 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
990 (xcoff_end_psymtab): Update.
991 (scan_xcoff_symtab): Add partial_symtabs parameter.
992 (xcoff_initial_scan): Update.
993 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
994 * mdebugread.c (mdebug_build_psymtabs): Update.
995 (parse_partial_symbols): Add partial_symtabs parameter.
996 * dbxread.c (dbx_symfile_read): Update.
997 (read_dbx_symtab): Add partial_symtabs parameter.
998 (read_dbx_symtab): Update.
999 (dbx_end_psymtab): Add partial_symtabs parameter.
1000
75336a5a
TT
10012021-03-20 Tom Tromey <tom@tromey.com>
1002
1003 * quick-symbol.h (struct quick_symbol_functions)
1004 <relocated>: New method.
1005 * psymtab.h (struct psymbol_functions) <relocated>: New
1006 method.
1007 <fill_psymbol_map>: Declare method.
1008 <m_psymbol_map>: New member.
1009 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
1010 (psymbol_functions::find_compunit_symtab_by_address): Update.
1011 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
1012 (struct objfile) <psymbol_map>: Remove.
1013 * objfiles.c (objfile_relocate1): Update.
1014
39298a5d
TT
10152021-03-20 Tom Tromey <tom@tromey.com>
1016
1017 * psympriv.h (struct psymbol_functions): New.
1018 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1019 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
1020 (objfile::lookup_global_symbol_language): Update.
1021 * quick-symbol.h (struct quick_symbol_functions): Convert function
1022 pointers to methods. Add virtual destructor.
1023 (quick_symbol_functions_up): New typedef.
1024 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
1025 (dwarf2_debug_names_functions): Don't declare.
1026 (make_psymbol_functions): Declare.
1027 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
1028 (psymbol_functions::find_pc_sect_compunit_symtab)
1029 (psymbol_functions::lookup_symbol)
1030 (psymbol_functions::lookup_global_symbol_language)
1031 (psymbol_functions::find_last_source_symtab)
1032 (psymbol_functions::forget_cached_source_info)
1033 (psymbol_functions::print_stats, psymbol_functions::dump)
1034 (psymbol_functions::expand_symtabs_for_function)
1035 (psymbol_functions::expand_all_symtabs)
1036 (psymbol_functions::expand_symtabs_with_fullname)
1037 (psymbol_functions::map_symbol_filenames)
1038 (psymbol_functions::map_matching_symbols)
1039 (psymbol_functions::expand_symtabs_matching)
1040 (psymbol_functions::has_symbols)
1041 (psymbol_functions::find_compunit_symtab_by_address): Rename.
1042 (psym_functions): Remove.
1043 (make_psymbol_functions): New function.
1044 * objfiles.h (struct objfile) <qf>: Change type.
1045 * elfread.c (elf_symfile_read): Update.
1046 * dwarf2/read.c (struct dwarf2_base_index_functions)
1047 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
1048 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
1049 (dwarf2_base_index_functions::find_last_source_symtab)
1050 (dwarf2_base_index_functions::forget_cached_source_info)
1051 (dwarf2_base_index_functions::map_symtabs_matching_filename)
1052 (dwarf2_gdb_index::lookup_symbol)
1053 (dwarf2_base_index_functions::print_stats)
1054 (dwarf2_gdb_index::dump)
1055 (dwarf2_gdb_index::expand_symtabs_for_function)
1056 (dwarf2_base_index_functions::expand_all_symtabs)
1057 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1058 Rename.
1059 (dwarf2_gdb_index::map_matching_symbols): New method.
1060 (dwarf2_gdb_index::expand_symtabs_matching): New method.
1061 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
1062 (dwarf2_base_index_functions::map_symbol_filenames)
1063 (dwarf2_base_index_functions::has_symbols): Rename.
1064 (dwarf2_gdb_index_functions): Remove.
1065 (dwarf2_debug_names_index::lookup_symbol)
1066 (dwarf2_debug_names_index::dump)
1067 (dwarf2_debug_names_index::expand_symtabs_for_function)
1068 (dwarf2_debug_names_index::map_matching_symbols)
1069 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
1070 (dwarf2_debug_names_functions): Remove.
1071 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
1072 Declare.
1073
5c3f1e5b
TT
10742021-03-20 Tom Tromey <tom@tromey.com>
1075
1076 * psymtab.c (require_partial_symbols): Check that 'sf' is not
1077 null.
1078 * xcoffread.c (xcoff_sym_fns): Update.
1079 * symfile.h (struct sym_fns) <qf>: Remove.
1080 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1081 * symfile-debug.c (objfile::has_partial_symbols)
1082 (objfile::find_last_source_symtab)
1083 (objfile::forget_cached_source_info)
1084 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1085 (objfile::print_stats, objfile::dump)
1086 (objfile::expand_symtabs_for_function)
1087 (objfile::expand_all_symtabs)
1088 (objfile::expand_symtabs_with_fullname)
1089 (objfile::map_matching_symbols)
1090 (objfile::expand_symtabs_matching)
1091 (objfile::find_pc_sect_compunit_symtab)
1092 (objfile::map_symbol_filenames)
1093 (objfile::find_compunit_symtab_by_address)
1094 (objfile::lookup_global_symbol_language, debug_sym_fns)
1095 (install_symfile_debug_logging): Update.
1096 * objfiles.h (struct objfile) <qf>: New member.
1097 * mipsread.c (ecoff_sym_fns): Update.
1098 * machoread.c (macho_sym_fns): Update.
1099 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
1100 Don't declare.
1101 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
1102 * dbxread.c (aout_sym_fns): Update.
1103 * coffread.c (coff_sym_fns): Update.
1104
9b99dcc8
TT
11052021-03-20 Tom Tromey <tom@tromey.com>
1106
1107 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
1108 (expand_symtabs_file_matcher_ftype)
1109 (expand_symtabs_symbol_matcher_ftype)
1110 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
1111 Move to quick-symbol.h.
1112 * quick-symbol.h: New file.
1113
4d080b46
TT
11142021-03-20 Tom Tromey <tom@tromey.com>
1115
1116 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
1117 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
1118 (basic_lookup_transparent_type_quick)
1119 (find_pc_sect_compunit_symtab, find_symbol_at_address)
1120 (find_line_symtab, global_symbol_searcher::expand_symtabs):
1121 Update.
1122 * symmisc.c (print_objfile_statistics, dump_objfile)
1123 (maintenance_expand_symtabs): Update.
1124 * symfile.c (symbol_file_add_with_addrs)
1125 (expand_symtabs_matching, map_symbol_filenames): Update.
1126 * symfile-debug.c (objfile::has_partial_symbols)
1127 (objfile::find_last_source_symtab)
1128 (objfile::forget_cached_source_info)
1129 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1130 (objfile::print_stats, objfile::dump)
1131 (objfile::expand_symtabs_for_function)
1132 (objfile::expand_all_symtabs)
1133 (objfile::expand_symtabs_with_fullname)
1134 (objfile::map_matching_symbols)
1135 (objfile::expand_symtabs_matching)
1136 (objfile::find_pc_sect_compunit_symtab)
1137 (objfile::map_symbol_filenames)
1138 (objfile::find_compunit_symtab_by_address)
1139 (objfile::lookup_global_symbol_language): New methods.
1140 (debug_sym_quick_functions): Remove.
1141 (debug_sym_fns, install_symfile_debug_logging): Update.
1142 * source.c (forget_cached_source_info_for_objfile)
1143 (select_source_symtab): Update.
1144 * objfiles.h (struct objfile): Add methods corresponding to
1145 quick_symbol_functions.
1146 * objfiles.c (objfile::has_partial_symbols): Move to
1147 symfile-debug.c.
1148 * linespec.c (iterate_over_all_matching_symtabs): Update.
1149 * cp-support.c (add_symbol_overload_list_qualified): Update.
1150 * ada-lang.c (add_nonlocal_symbols): Update.
1151
fae2120b
TT
11522021-03-20 Tom Tromey <tom@tromey.com>
1153
1154 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
1155 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
1156 bool.
1157 * symfile-debug.c (debug_qf_has_symbols): Return bool.
1158 * psymtab.c (psym_has_symbols): Return bool.
1159 * objfiles.c (objfile::has_partial_symbols): Return bool.
1160 * dwarf2/read.c (dw2_has_symbols): Return bool.
1161
a8ad4f3c
TT
11622021-03-20 Tom Tromey <tom@tromey.com>
1163
1164 * symfile.c (read_symbols): Update.
1165 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
1166 (objfile_has_partial_symbols): Don't declare.
1167 * objfiles.c (objfile::has_partial_symbols): Rename from
1168 objfile_has_partial_symbols.
1169 (objfile_has_symbols, have_partial_symbols): Update.
1170 * elfread.c (elf_symfile_read): Update.
1171 * dwarf2/read.c (dwarf2_has_info): Update.
1172 * coffread.c (coff_symfile_read): Update.
1173
70182375
TT
11742021-03-20 Tom Tromey <tom@tromey.com>
1175
1176 * coffread.c: Include dwarf2/public.h.
1177 * dwarf2/frame.c: Include dwarf2/public.h.
1178 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
1179 * dwarf2/public.h: New file.
1180 * dwarf2/read.c: Include dwarf2/public.h.
1181 * elfread.c: Include dwarf2/public.h.
1182 * machoread.c: Include dwarf2/public.h.
1183 * symfile.h (dwarf2_has_info, enum dw_index_kind)
1184 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
1185 (dwarf2_build_frame_info): Move to dwarf2/public.h.
1186 * xcoffread.c: Include dwarf2/public.h.
1187
18038e63
TT
11882021-03-20 Tom Tromey <tom@tromey.com>
1189
1190 * symfile.h (enum dwarf2_section_enum)
1191 (dwarf2_get_section_info): Move to dwarf2/read.h.
1192 * dwarf2/read.h (enum dwarf2_section_enum)
1193 (dwarf2_get_section_info): Move from symfile.h.
1194
219f56b4
PA
11952021-03-19 Pedro Alves <pedro@palves.net>
1196
1197 * thread.c (any_thread_of_inferior): Check if there's a selected
1198 thread before calling inferior_thread().
1199
15310fd4
TT
12002021-03-18 Tom Tromey <tromey@adacore.com>
1201
1202 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
1203 get_DW_UT_name.
1204 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
1205 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
1206
763b8efd
AB
12072021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1208
1209 * python/py-param.c (get_set_value): Update header comment.
1210
f058c521
SM
12112021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
1212
1213 * infrun.c (check_multi_target_resumption): Remove argument to
1214 all_non_exited_inferiors.
1215
383228bc
CB
12162021-03-16 Christian Biesinger <cbiesinger@google.com>
1217
1218 * windows-nat.c (windows_init_thread_list): Add message to
1219 debug log.
1220
7807d76a
AB
12212021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
1224 well as PyLong_Check for Python 2.
1225
675da9a5
TT
12262021-03-15 Tom Tromey <tromey@adacore.com>
1227
1228 PR build/27579:
1229 * rust-exp.y (maker_map): Use gdb::hash_enum.
1230 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
1231
4800761a
SM
12322021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1233
1234 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
1235 end of debug print.
1236
eb5dd737
SM
12372021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1238
1239 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
1240 parameter, adjust caller.
1241
6813ceb0
TT
12422021-03-15 Tom Tromey <tromey@adacore.com>
1243
1244 * ada-exp.y (simple_exp): Always push a result for unary '+'.
1245
3b5c4de0
TT
12462021-03-15 Tom Tromey <tromey@adacore.com>
1247
1248 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
1249 ada_ensure_varsize_limit.
1250
c04da66c
TT
12512021-03-15 Tom Tromey <tromey@adacore.com>
1252
1253 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
1254 fixed-point.
1255 * ada-exp.y (maybe_overload): New function.
1256 (ada_wrap_overload): New function.
1257 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
1258 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
1259 (or_else_exp, xor_exp, primary): Update.
1260
9863c3b5
TT
12612021-03-15 Tom Tromey <tromey@adacore.com>
1262
1263 PR ada/27545:
1264 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
1265 call for tagged type.
1266
1ac74522
TT
12672021-03-15 Tom Tromey <tromey@adacore.com>
1268
1269 * ada-exp.y (exp1): Handle resolution of the right hand side of an
1270 assignment.
1271
207582c0
TT
12722021-03-15 Tom Tromey <tromey@adacore.com>
1273
1274 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
1275 container.
1276 (ada_assign_operation::evaluate): Update.
1277 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
1278 Change return type.
1279
8d624a9d
FW
12802021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
1281
1282 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
1283
ba6a0ef3
AB
12842021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
1285
1286 * python/python.c (gdbpy_source_objfile_script): Use
1287 make_scoped_restore to restore gdbpy_current_objfile.
1288 (gdbpy_execute_objfile_script): Likewise.
1289
7c290a04
TT
12902021-03-14 Tom Tromey <tom@tromey.com>
1291
1292 * dwarf2/read.c (read_attribute_value): Use cu_header
1293 consistently.
1294
0280fdcc
TT
12952021-03-14 Tom Tromey <tom@tromey.com>
1296
1297 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1298 (peek_die_abbrev): Use reader.abfd.
1299
a9f172c6
TT
13002021-03-14 Tom Tromey <tom@tromey.com>
1301
1302 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1303 m_header_read_in.
1304
7c32eebb
TT
13052021-03-13 Tom Tromey <tom@tromey.com>
1306
1307 * dwarf2/read.c (struct partial_die_info): Update.
1308 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
1309 (load_partial_dies, partial_die_info::partial_die_info): Update.
1310 * dwarf2/abbrev.h (lookup_abbrev): Constify.
1311
27012aba
TT
13122021-03-13 Tom Tromey <tom@tromey.com>
1313
1314 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1315
fece451c
CB
13162021-03-12 Christian Biesinger <cbiesinger@google.com>
1317
1318 PR threads/27239
1319 * cp-support.c: Use scoped_segv_handler_restore.
1320 * event-top.c (thread_local_segv_handler): Made static.
1321 (scoped_segv_handler_restore::scoped_segv_handler_restore):
1322 New function.
1323 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1324 function.
1325 * event-top.h (class scoped_segv_handler_restore): New class.
1326 (thread_local_segv_handler): Removed.
1327
7056f312
TT
13282021-03-10 Tom Tromey <tromey@adacore.com>
1329
1330 * parser-defs.h (parser_state): Change completion to bool.
1331 <parse_completion>: Likewise.
1332 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1333 (ada_resolve_variable, ada_resolve_function): Update.
1334 * ada-lang.c (ada_find_operator_symbol): Change
1335 parse_completion to bool.
1336 (ada_resolve_funcall, ada_resolve_variable)
1337 (ada_resolve_function): Likewise.
1338
ccdc02ed
TT
13392021-03-09 Tom Tromey <tromey@adacore.com>
1340
1341 * eval.c (operation::evaluate_funcall): Use function formal
1342 parameter types when evaluating.
1343
fbb1aace
AB
13442021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1345
1346 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
1347 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
1348 and owner to m_owner.
1349
611aa09d
FW
13502021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
1351
1352 * f-exp.h (eval_op_f_loc): Declare.
1353 (expr::fortran_loc_operation): New typedef.
1354 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
1355 UNOP_INTRINSIC.
1356 (f77_keywords): Add LOC keyword.
1357 * f-lang.c (eval_op_f_loc): New function.
1358 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
1359
eef32f59
AB
13602021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1361
1362 * f-exp.h (eval_op_f_array_shape): Declare.
1363 (fortran_array_shape_operation): New type.
1364 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
1365 UNOP_INTRINSIC.
1366 (f77_keywords): Add "shape" keyword.
1367 * f-lang.c (fortran_array_shape): New function.
1368 (eval_op_f_array_shape): New function.
1369 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
1370
7ba155b3
AB
13712021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1372
1373 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
1374 of this function.
1375 (expr::fortran_array_size_1arg): New type.
1376 (expr::fortran_array_size_2arg): Likewise.
1377 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
1378 UNOP_OR_BINOP_INTRINSIC.
1379 (f77_keywords): Add "size" keyword.
1380 * f-lang.c (fortran_array_size): New function.
1381 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
1382 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
1383
e14816a8
AB
13842021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1385
1386 * f-exp.h (eval_op_f_rank): Declare.
1387 (expr::fortran_rank_operation): New typedef.
1388 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
1389 UNOP_INTRINSIC.
1390 (f77_keywords): Add "rank" keyword.
1391 * f-lang.c (eval_op_f_rank): New function.
1392 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
1393
3dd93bf8
TT
13942021-03-08 Tom Tromey <tom@tromey.com>
1395
1396 * printcmd.c (set_command): Remove null check.
1397 * value.c (init_if_undefined_command): Remove null check.
1398
9c79936b
TT
13992021-03-08 Tom Tromey <tom@tromey.com>
1400
1401 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1402 Update.
1403 * p-exp.y (variable): Update.
1404 * go-exp.y (variable): Update.
1405 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
1406 Remove overload for objfile.
1407 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
1408 parameter.
1409 (check_objfile): Likewise.
1410 (dump_for_expression): Likewise. Remove overload for objfile.
1411 (class var_msym_value_operation): Use bound_minimal_symbol.
1412 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
1413 parameter.
1414 (var_msym_value_operation::evaluate_for_address)
1415 (var_msym_value_operation::evaluate_for_sizeof)
1416 (var_msym_value_operation::evaluate_for_cast): Update.
1417 * d-exp.y (PrimaryExpression): Update.
1418 * c-exp.y (variable): Update.
1419 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
1420 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1421 Update.
1422 * ada-exp.y (write_var_or_type): Update.
1423
40d07d07
TT
14242021-03-08 Tom Tromey <tom@tromey.com>
1425
1426 * parser-defs.h (exp_uses_objfile): Return bool.
1427 * parse.c (exp_uses_objfile): Return bool.
1428
0b2b0b82
TT
14292021-03-08 Tom Tromey <tom@tromey.com>
1430
1431 * value.h (eval_skip_value): Don't declare.
1432 * opencl-lang.c (eval_opencl_assign): Update.
1433 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
1434 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1435 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
1436 * expression.h (enum noside) <EVAL_SKIP>: Remove.
1437 * expop.h (typeof_operation::evaluate)
1438 (decltype_operation::evaluate, unop_addr_operation::evaluate)
1439 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
1440 (cxx_cast_operation::evaluate): Update.
1441 * eval.c (eval_skip_value): Remove.
1442 (eval_op_scope, eval_op_var_entry_value)
1443 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
1444 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
1445 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
1446 (eval_op_binary, eval_op_subscript, eval_op_equal)
1447 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
1448 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
1449 (eval_op_complement, eval_op_lognot, eval_op_ind)
1450 (eval_op_memval, eval_op_preinc, eval_op_predec)
1451 (eval_op_postinc, eval_op_postdec, eval_op_type)
1452 (eval_binop_assign_modify, eval_op_objc_msgcall)
1453 (eval_multi_subscript, logical_and_operation::evaluate)
1454 (logical_or_operation::evaluate, array_operation::evaluate)
1455 (operation::evaluate_for_cast)
1456 (var_msym_value_operation::evaluate_for_cast)
1457 (var_value_operation::evaluate_for_cast): Update.
1458 * c-lang.c (c_string_operation::evaluate): Update.
1459 * c-exp.h (objc_nsstring_operation::evaluate)
1460 (objc_selector_operation::evaluate): Update.
1461 * ada-lang.c (ada_assign_operation::evaluate)
1462 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
1463 (ada_atr_size): Update.
1464
96db551d
TT
14652021-03-08 Tom Tromey <tom@tromey.com>
1466
1467 * eval.c: Merge "namespace" scopes.
1468
ce284361
TT
14692021-03-08 Tom Tromey <tom@tromey.com>
1470
1471 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
1472 <release>: Inline.
1473 * parse.c (expr_builder::expr_builder, expr_builder::release):
1474 Remove.
1475
b9d06571
TT
14762021-03-08 Tom Tromey <tom@tromey.com>
1477
1478 * parse.c (expression::expression, expression::~expression):
1479 Remove.
1480 * expression.h (struct expression): Inline constructor. Remove
1481 destructor.
1482
79ab486e
TT
14832021-03-08 Tom Tromey <tom@tromey.com>
1484
1485 * std-operator.def (BINOP_END): Remove.
1486 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
1487 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
1488 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
1489 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
1490 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
1491 BINOP_END.
1492
48fa6f23
TT
14932021-03-08 Tom Tromey <tom@tromey.com>
1494
1495 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
1496
43f542e3
TT
14972021-03-08 Tom Tromey <tom@tromey.com>
1498
1499 * std-operator.def (OP_EXTENDED0): Remove.
1500
5d9ba982
TT
15012021-03-08 Tom Tromey <tom@tromey.com>
1502
1503 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
1504 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
1505 Remove.
1506
d357570d
TT
15072021-03-08 Tom Tromey <tom@tromey.com>
1508
1509 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
1510 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
1511
0922dc84
TT
15122021-03-08 Tom Tromey <tom@tromey.com>
1513
1514 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
1515 * ada-lang.c (ada_binop_minmax): Update.
1516 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1517 Use BINOP_MIN and BINOP_MAX.
1518
1eaebe02
TT
15192021-03-08 Tom Tromey <tom@tromey.com>
1520
1521 * value.h (evaluate_subexp_with_coercion): Don't declare.
1522 * parse.c (exp_descriptor_standard): Remove.
1523 (expr_builder::expr_builder, expr_builder::release): Update.
1524 (expression::expression): Remove size_t parameter.
1525 (expression::~expression): Simplify.
1526 (expression::resize): Remove.
1527 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1528 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1529 (write_exp_elt_longcst, write_exp_elt_floatcst)
1530 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1531 (write_exp_string_vector, write_exp_bitstring): Remove.
1532 * p-lang.h (class pascal_language) <opcode_print_table,
1533 op_print_tab>: Remove.
1534 * p-lang.c (pascal_language::op_print_tab): Remove.
1535 * opencl-lang.c (class opencl_language) <opcode_print_table>:
1536 Remove.
1537 * objc-lang.c (objc_op_print_tab): Remove.
1538 (class objc_language) <opcode_print_table>: Remove.
1539 * m2-lang.h (class m2_language) <opcode_print_table,
1540 op_print_tab>: Remove.
1541 * m2-lang.c (m2_language::op_print_tab): Remove.
1542 * language.h (struct language_defn) <post_parser, expression_ops,
1543 opcode_print_table>: Remove.
1544 * language.c (language_defn::expression_ops)
1545 (auto_or_unknown_language::opcode_print_table): Remove.
1546 * go-lang.h (class go_language) <opcode_print_table,
1547 op_print_tab>: Remove.
1548 * go-lang.c (go_language::op_print_tab): Remove.
1549 * f-lang.h (class f_language) <opcode_print_table>: Remove
1550 <op_print_tab>: Remove.
1551 * f-lang.c (f_language::op_print_tab): Remove.
1552 * expression.h (union exp_element): Remove.
1553 (struct expression): Remove size_t parameter from constructor.
1554 <resize>: Remove.
1555 <first_opcode>: Update.
1556 <nelts, elts>: Remove.
1557 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
1558 (evaluate_subexp_standard, print_expression, op_string)
1559 (dump_raw_expression): Don't declare.
1560 * expprint.c (print_expression, print_subexp)
1561 (print_subexp_funcall, print_subexp_standard, op_string)
1562 (dump_raw_expression, dump_subexp, dump_subexp_body)
1563 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
1564 (dump_prefix_expression): Update.
1565 * eval.c (evaluate_subexp): Remove.
1566 (evaluate_expression, evaluate_type): Update.
1567 (evaluate_subexpression_type): Remove.
1568 (fetch_subexp_value): Remove "pc" parameter. Update.
1569 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
1570 (evaluate_subexp_standard, evaluate_subexp_for_address)
1571 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
1572 (evaluate_subexp_for_cast): Remove.
1573 (parse_and_eval_type): Update.
1574 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1575 * d-lang.c (d_op_print_tab): Remove.
1576 (class d_language) <opcode_print_table>: Remove.
1577 * c-lang.h (c_op_print_tab): Don't declare.
1578 * c-lang.c (c_op_print_tab): Remove.
1579 (class c_language, class cplus_language, class asm_language, class
1580 minimal_language) <opcode_print_table>: Remove.
1581 * breakpoint.c (update_watchpoint, watchpoint_check)
1582 (watchpoint_exp_is_const, watch_command_1): Update.
1583 * ax-gdb.h (union exp_element): Don't declare.
1584 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
1585 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
1586 (gen_expr_binop_rest): Remove.
1587 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
1588 * ada-lang.c (ada_op_print_tab): Remove.
1589 (class ada_language) <post_parser, opcode_print_table>: Remove.
1590
f2a98603
TT
15912021-03-08 Tom Tromey <tom@tromey.com>
1592
1593 * go-lang.c (go_language::expression_ops): Don't declare.
1594 * go-lang.h (class go_language) <expression_ops>: Remove.
1595 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
1596 Remove.
1597 (class opencl_language) <expression_ops>: Remove.
1598 * d-lang.c (class d_language) <expression_ops>: Remove.
1599 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
1600 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
1601 (class c_language, class cplus_language, class asm_language)
1602 (class minimal_language) <expression_ops>: Remove.
1603
d3c54a1c
TT
16042021-03-08 Tom Tromey <tom@tromey.com>
1605
1606 * ada-lang.c (resolve_subexp, replace_operator_with_call)
1607 (evaluate_subexp_type, assign_aggregate)
1608 (aggregate_assign_positional, aggregate_assign_from_choices)
1609 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
1610 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
1611 (ada_operator_check, ada_forward_operator_length)
1612 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
1613 Remove.
1614 (post_parser): Update.
1615 (class ada_language) <expresssion_ops>: Remove.
1616
5871f0a3
TT
16172021-03-08 Tom Tromey <tom@tromey.com>
1618
1619 * m2-lang.h (class m2_language) <expresssion_ops,
1620 exp_descriptor_modula2>: Remove.
1621 * m2-lang.c (evaluate_subexp_modula2)
1622 (m2_language::exp_descriptor_modula2): Remove.
1623
a99be8c1
TT
16242021-03-08 Tom Tromey <tom@tromey.com>
1625
1626 * f-lang.h (class f_language) <expresssion_ops>: Remove.
1627 <exp_descriptor_tab>: Remove.
1628 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
1629 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
1630 (print_subexp_f, dump_subexp_body_f, operator_check_f)
1631 (f_language::exp_descriptor_tab, fortran_prepare_argument):
1632 Remove.
1633
aa1da9ed
TT
16342021-03-08 Tom Tromey <tom@tromey.com>
1635
1636 * rust-lang.h (class rust_language) <expression_ops,
1637 exp_descriptor_tab>: Remove.
1638 * rust-lang.c (rust_evaluate_funcall): Remove.
1639 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
1640 EVAL_SKIP.
1641 (rust_evaluate_subexp): Remove.
1642 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
1643 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
1644 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
1645
08a057e6
TT
16462021-03-08 Tom Tromey <tom@tromey.com>
1647
1648 * ada-exp.y: Create operations.
1649 (empty_stoken): Remove.
1650 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
1651 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
1652 (components): New global.
1653 (push_component, choice_component, pop_component, pop_components):
1654 New functions.
1655 (associations): New global
1656 (push_association, pop_association, pop_associations): New
1657 functions.
1658 (ada_parse): Update.
1659 (write_var_from_sym, write_int): Create operations.
1660 (write_exp_op_with_string): Remove.
1661 (write_object_renaming, write_selectors, write_ambiguous_var)
1662 (write_var_or_type, write_name_assoc): Create operations.
1663 * ada-lang.h (ada_index_type): Declare.
1664 * ada-lang.c (ada_index_type): No longer static.
1665
d308ba78
TT
16662021-03-08 Tom Tromey <tom@tromey.com>
1667
1668 * f-exp.y: Create operations.
1669 (f_language::parser): Update.
1670
f1b8ceef
TT
16712021-03-08 Tom Tromey <tom@tromey.com>
1672
1673 * m2-exp.y: Create operations.
1674 (m2_language::parser): Update.
1675
3163898e
TT
16762021-03-08 Tom Tromey <tom@tromey.com>
1677
1678 * p-exp.y: Create operations.
1679 (pascal_language::parser): Update.
1680
9412fdcc
TT
16812021-03-08 Tom Tromey <tom@tromey.com>
1682
1683 * d-exp.y: Create operations.
1684 (d_parse): Update.
1685
bb4e0574
TT
16862021-03-08 Tom Tromey <tom@tromey.com>
1687
1688 * go-exp.y: Create operations.
1689 (go_language::parser): Update.
1690
d182f279
TT
16912021-03-08 Tom Tromey <tom@tromey.com>
1692
1693 * objc-lang.c (end_msglist): Create operations.
1694 * c-exp.y: Change parser to create operations.
1695 (write_destructor_name): Remove.
1696 (c_parse): Update.
1697
c1299a23
TT
16982021-03-08 Tom Tromey <tom@tromey.com>
1699
1700 * rust-exp.y: Create operations.
1701 (rust_parser::convert_params_to_expression): Change return type.
1702 (binop_maker_ftype): New typedef.
1703 (maker_map): New global.
1704 (rust_parser::convert_ast_to_expression): Change return type.
1705 (rust_language::parser): Update.
1706 (_initialize_rust_exp): Initialize maker_map.
1707
4c5e7a93
TT
17082021-03-08 Tom Tromey <tom@tromey.com>
1709
1710 * stap-probe.c (binop_maker_ftype): New typedef.
1711 (stap_maker_map): New global.
1712 (stap_make_binop): New function.
1713 (stap_parse_register_operand): Return operation_up.
1714 (stap_parse_single_operand, stap_parse_argument_conditionally)
1715 (stap_parse_argument_1): Likewise.
1716 (stap_parse_argument): Create operations.
1717 (stap_probe::parse_arguments): Update.
1718 (_initialize_stap_probe): Initialize stap_maker_map.
1719 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
1720 type.
1721 * i386-tdep.h (i386_stap_parse_special_token): Change return
1722 type.
1723 * i386-tdep.c (i386_stap_parse_special_token_triplet)
1724 (i386_stap_parse_special_token_three_arg_disp)
1725 (i386_stap_parse_special_token): Change return type.
1726 * gdbarch.sh (stap_parse_special_token): Change return type.
1727 * gdbarch.c: Rebuild.
1728 * gdbarch.h: Rebuild.
1729 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
1730 type.
1731 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
1732 return type.
1733
482ddd69
TT
17342021-03-08 Tom Tromey <tom@tromey.com>
1735
1736 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
1737 * gdbarch.h: Rebuild.
1738 * gdbarch.c: Rebuild.
1739 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1740 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
1741 return type.
1742 (amd64_dtrace_parse_probe_argument): Update.
1743
8227d9e2
TT
17442021-03-08 Tom Tromey <tom@tromey.com>
1745
1746 * parser-defs.h (struct parser_state) <push, push_new,
1747 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
1748 wrap2>: New methods.
1749 <m_operations>: New member.
1750 * parse.c (parser_state::push_c_string)
1751 (parser_state::push_symbol, parser_state::push_dollar): New
1752 methods.
1753
4933522d
TT
17542021-03-08 Tom Tromey <tom@tromey.com>
1755
1756 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
1757 New member.
1758 (struct parser_state) <mark_struct_expression>: New method.
1759 * parse.c (parser_state::mark_struct_expression): Update assert.
1760 (parser_state::mark_struct_expression): New method.
1761 (parser_state::mark_completion_tag): Update assert.
1762 (parse_expression_for_completion): Handle expout_last_op.
1763
413403fc
TT
17642021-03-08 Tom Tromey <tom@tromey.com>
1765
1766 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
1767 now in superclass.
1768 * value.h (fetch_subexp_value): Add "op" parameter.
1769 * value.c (init_if_undefined_command): Update.
1770 * tracepoint.c (validate_actionline, encode_actions_1): Update.
1771 * stap-probe.c (stap_probe::compile_to_ax): Update.
1772 * printcmd.c (set_command): Update.
1773 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
1774 Update.
1775 * parser-defs.h (struct expr_builder) <set_operation>: New
1776 method.
1777 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
1778 * expression.h (struct expression) <first_opcode>: Update.
1779 <op>: New member.
1780 * expprint.c (dump_raw_expression, dump_prefix_expression):
1781 Update.
1782 * expop.h (class var_value_operation) <get_symbol>: New method.
1783 (class register_operation) <get_name>: New method.
1784 (class equal_operation): No longer a typedef, now a subclass.
1785 (class unop_memval_operation) <get_type>: New method.
1786 (class assign_operation) <get_lhs>: New method.
1787 (class unop_cast_operation) <get_type>: New method.
1788 * eval.c (evaluate_expression, evaluate_type)
1789 (evaluate_subexpression_type): Update.
1790 (fetch_subexp_value): Add "op" parameter.
1791 (parse_and_eval_type): Update.
1792 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1793 * breakpoint.c (update_watchpoint, watchpoint_check)
1794 (watchpoint_exp_is_const, watch_command_1): Update.
1795 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
1796 Update.
1797
b0f9164c
TT
17982021-03-08 Tom Tromey <tom@tromey.com>
1799
1800 * ada-lang.c (ada_value_binop): Do not use op_string.
1801
a88c4354
TT
18022021-03-08 Tom Tromey <tom@tromey.com>
1803
1804 * expprint.c (dump_for_expression): New overload.
1805 * expop.h (check_objfile, dump_for_expression): Declare new
1806 overloads.
1807 * ada-lang.c (check_objfile): New overload.
1808 (assign_component, ada_aggregate_component::uses_objfile)
1809 (ada_aggregate_component::dump, ada_aggregate_component::assign)
1810 (ada_aggregate_component::assign_aggregate)
1811 (ada_positional_component::uses_objfile)
1812 (ada_positional_component::dump, ada_positional_component::assign)
1813 (ada_discrete_range_association::uses_objfile)
1814 (ada_discrete_range_association::dump)
1815 (ada_discrete_range_association::assign)
1816 (ada_name_association::uses_objfile, ada_name_association::dump)
1817 (ada_name_association::assign)
1818 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1819 (ada_choices_component::assign)
1820 (ada_others_component::uses_objfile, ada_others_component::dump)
1821 (ada_others_component::assign, ada_assign_operation::evaluate):
1822 New methods.
1823 * ada-exp.h (ada_string_operation) <get_name>: New method.
1824 (class ada_assign_operation): New.
1825 (class ada_component): New.
1826 (ada_component_up): New typedef.
1827 (class ada_aggregate_operation, class ada_aggregate_component)
1828 (class ada_positional_component, class ada_others_component)
1829 (class ada_association): New.
1830 (ada_association_up): New typedef.
1831 (class ada_choices_component)
1832 (class ada_discrete_range_association)
1833 (class ada_name_association): New.
1834
d8a4ed8a
TT
18352021-03-08 Tom Tromey <tom@tromey.com>
1836
1837 * ada-lang.c (ada_var_value_operation::resolve)
1838 (ada_funcall_operation::resolve)
1839 (ada_ternop_slice_operation::resolve): New methods.
1840 * ada-exp.h (struct ada_resolvable): New.
1841 (class ada_var_value_operation): Derive from ada_resolvable.
1842 <get_block, resolve>: New methods.
1843 (class ada_funcall_operation): Derive from ada_resolvable.
1844 <resolve>: New method.
1845 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1846 <resolve>: New method.
1847
efe3af2f
TT
18482021-03-08 Tom Tromey <tom@tromey.com>
1849
1850 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1851 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1852 method.
1853 (class ada_funcall_operation): New.
1854
ebc06ad8
TT
18552021-03-08 Tom Tromey <tom@tromey.com>
1856
1857 * ada-lang.c (ada_structop_operation::evaluate): New method.
1858 * ada-exp.h (class ada_structop_operation): New.
1859
e8c33fa1
TT
18602021-03-08 Tom Tromey <tom@tromey.com>
1861
1862 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1863 * ada-exp.h (class ada_unop_ind_operation): New.
1864
065ec826
TT
18652021-03-08 Tom Tromey <tom@tromey.com>
1866
1867 * ada-lang.c (ada_binop_exp): No longer static.
1868 * ada-exp.h (ada_binop_exp_operation): New typedef.
1869
9e99f48f
TT
18702021-03-08 Tom Tromey <tom@tromey.com>
1871
1872 * ada-lang.c (ada_val_atr): No longer static.
1873 (ada_atr_val_operation::evaluate): New method.
1874 * ada-exp.h (class ada_atr_val_operation): New.
1875
7631cf6c
TT
18762021-03-08 Tom Tromey <tom@tromey.com>
1877
1878 * ada-lang.c (ada_pos_atr): No longer static.
1879 * ada-exp.h (ada_pos_operation): New typedef.
1880
7992accc
TT
18812021-03-08 Tom Tromey <tom@tromey.com>
1882
1883 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1884 parameters.
1885 (ada_evaluate_subexp): Use it.
1886
6ad3b8bf
TT
18872021-03-08 Tom Tromey <tom@tromey.com>
1888
1889 * ada-lang.c (ada_binop_minmax): No longer static.
1890 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1891 New typedefs.
1892
3f4a0053
TT
18932021-03-08 Tom Tromey <tom@tromey.com>
1894
1895 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1896 New method.
1897 * ada-exp.h (class ada_var_msym_value_operation): New.
1898
99a3b1e7
TT
18992021-03-08 Tom Tromey <tom@tromey.com>
1900
1901 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1902 (ada_var_value_operation::evaluate): New methods.
1903 * ada-exp.h (class ada_var_value_operation): New.
1904
60fa02ca
TT
19052021-03-08 Tom Tromey <tom@tromey.com>
1906
1907 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1908 * ada-exp.h (class ada_unop_atr_operation): New.
1909
82c3886e
TT
19102021-03-08 Tom Tromey <tom@tromey.com>
1911
1912 * ada-lang.c (ada_binop_in_bounds): No longer static.
1913 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1914
1b1ebfab
TT
19152021-03-08 Tom Tromey <tom@tromey.com>
1916
1917 * ada-lang.c (ada_ternop_slice): No longer static.
1918 * ada-exp.h (class ada_ternop_slice_operation): New.
1919
039e4b76
TT
19202021-03-08 Tom Tromey <tom@tromey.com>
1921
1922 * ada-exp.h (ada_bitwise_operation): New template class.
1923 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1924 (ada_bitwise_xor_operation): New typedefs.
1925
6e8fb7b7
TT
19262021-03-08 Tom Tromey <tom@tromey.com>
1927
1928 * ada-lang.c (ada_equal_binop): No longer static.
1929 * ada-exp.h (class ada_binop_equal_operation): New.
1930
d9e7db06
TT
19312021-03-08 Tom Tromey <tom@tromey.com>
1932
1933 * ada-lang.c (ada_mult_binop): No longer static.
1934 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1935 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1936
73796c73
TT
19372021-03-08 Tom Tromey <tom@tromey.com>
1938
1939 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1940 * ada-exp.h (class ada_binop_addsub_operation): New.
1941
cd9a3148
TT
19422021-03-08 Tom Tromey <tom@tromey.com>
1943
1944 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1945 (ada_resolve_variable): Declare.
1946 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1947 (ada_resolve_variable): New functions.
1948 (resolve_subexp): Update.
1949
cf12b17f
TT
19502021-03-08 Tom Tromey <tom@tromey.com>
1951
1952 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1953 method.
1954 * c-exp.h (class opencl_ternop_cond_operation): New.
1955
944fd3b8
TT
19562021-03-08 Tom Tromey <tom@tromey.com>
1957
1958 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1959 method.
1960 * c-exp.h (class opencl_logical_binop_operation): New.
1961
33b79214
TT
19622021-03-08 Tom Tromey <tom@tromey.com>
1963
1964 * opencl-lang.c (opencl_structop_operation::evaluate): New
1965 method.
1966 * c-exp.h (class opencl_structop_operation): New.
1967
2492ba36
TT
19682021-03-08 Tom Tromey <tom@tromey.com>
1969
1970 * opencl-lang.c (opencl_logical_not): No longer static. Change
1971 parameters.
1972 (evaluate_subexp_opencl): Update.
1973 * c-exp.h (opencl_notequal_operation): New typedef.
1974
a88c3c8d
TT
19752021-03-08 Tom Tromey <tom@tromey.com>
1976
1977 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
1978 static. Change parameters.
1979 (eval_opencl_assign): No longer static. Add "op" parameter.
1980 (evaluate_subexp_opencl): Update.
1981 * c-exp.h (opencl_binop_operation): New template class.
1982 (opencl_assign_operation, opencl_equal_operation)
1983 (opencl_notequal_operation, opencl_less_operation)
1984 (opencl_gtr_operation, opencl_geq_operation)
1985 (opencl_leq_operation): New typedefs.
1986
e9677704
TT
19872021-03-08 Tom Tromey <tom@tromey.com>
1988
1989 * opencl-lang.c (opencl_value_cast): No longer static.
1990 * c-exp.h (opencl_cast_type_operation): New typedef.
1991
f403a4e4
TT
19922021-03-08 Tom Tromey <tom@tromey.com>
1993
1994 * f-exp.h (eval_op_f_allocated): Declare.
1995 (fortran_allocated_operation): New typedef.
1996 * f-lang.c (eval_op_f_allocated): No longer static.
1997
eb4c9271
TT
19982021-03-08 Tom Tromey <tom@tromey.com>
1999
2000 * f-lang.c (eval_op_f_associated): New functions.
2001 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
2002 typedefs.
2003
58a76c72
TT
20042021-03-08 Tom Tromey <tom@tromey.com>
2005
2006 * f-lang.c (fortran_bound_1arg::evaluate)
2007 (fortran_bound_2arg::evaluate): New methods.
2008 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
2009 New.
2010
2f98abe1
TT
20112021-03-08 Tom Tromey <tom@tromey.com>
2012
2013 * expop.h (class unop_addr_operation) <get_expression>: New
2014 method.
2015 * f-lang.c (fortran_undetermined::value_subarray)
2016 (fortran_undetermined::evaluate): New methods.
2017 (fortran_prepare_argument): New overload.
2018 * f-exp.h (class fortran_range_operation)
2019 (class fortran_undetermined): New classes.
2020
638fd74a
TT
20212021-03-08 Tom Tromey <tom@tromey.com>
2022
2023 * rust-lang.c (rust_structop::evaluate_funcall): New method.
2024 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
2025 method.
2026
a00b7254
TT
20272021-03-08 Tom Tromey <tom@tromey.com>
2028
2029 * expression.h (class operation) <evaluate_funcall>: New methods.
2030 * expop.h (class scope_operation) <evaluate_funcall>: New method.
2031 (class var_value_operation) <evaluate_funcall>: New method.
2032 (class structop_base_operation) <evaluate_funcall>: New method.
2033 (class var_msym_value_operation) <evaluate_funcall>: New method.
2034 (class structop_member_base): New class.
2035 (class structop_member_operation): Derive from
2036 structop_member_base.
2037 (class structop_mptr_operation): Derive from
2038 structop_member_base.
2039 (class funcall_operation): New class.
2040 * eval.c (operation::evaluate_funcall)
2041 (var_value_operation::evaluate_funcall)
2042 (scope_operation::evaluate_funcall)
2043 (structop_member_base::evaluate_funcall)
2044 (structop_base_operation::evaluate_funcall): New methods.
2045
1c02eb30
TT
20462021-03-08 Tom Tromey <tom@tromey.com>
2047
2048 * expop.h (class array_operation): New.
2049 * eval.c (array_operation::evaluate_struct_tuple)
2050 (array_operation::evaluate): New methods.
2051
e4479080
TT
20522021-03-08 Tom Tromey <tom@tromey.com>
2053
2054 * expop.h (class adl_func_operation): New.
2055 * eval.c (adl_func_operation::evaluate): New method.
2056
95d49dfb
TT
20572021-03-08 Tom Tromey <tom@tromey.com>
2058
2059 * ada-lang.c (ada_unop_in_range): No longer static.
2060 * ada-exp.h (class ada_unop_range_operation): New.
2061
7c15d377
TT
20622021-03-08 Tom Tromey <tom@tromey.com>
2063
2064 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2065 No longer static.
2066 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2067 (ada_atr_size_operation, ada_abs_operation): New typedefs.
2068
5019124b
TT
20692021-03-08 Tom Tromey <tom@tromey.com>
2070
2071 * expop.h (class logical_and_operation)
2072 (class logical_or_operation): New.
2073 * eval.c (logical_and_operation::evaluate)
2074 (logical_or_operation::evaluate): New methods.
2075 * ax-gdb.c (logical_and_operation::do_generate_ax)
2076 (logical_or_operation::do_generate_ax): New methods.
2077
2bc9b40c
TT
20782021-03-08 Tom Tromey <tom@tromey.com>
2079
2080 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2081 static.
2082 * m2-exp.h: New file.
2083
5947d337
TT
20842021-03-08 Tom Tromey <tom@tromey.com>
2085
2086 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
2087 * rust-exp.h (class rust_aggregate_operation): New.
2088
e4407a20
TT
20892021-03-08 Tom Tromey <tom@tromey.com>
2090
2091 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
2092 No longer static.
2093 * rust-exp.h (class rust_struct_anon): New.
2094 (class rust_structop): New.
2095
9db6b6dd
TT
20962021-03-08 Tom Tromey <tom@tromey.com>
2097
2098 * rust-lang.c (rust_range): No longer static.
2099 * rust-exp.h (class rust_range_operation): New.
2100
6ce1ad67
TT
21012021-03-08 Tom Tromey <tom@tromey.com>
2102
2103 * rust-lang.c (rust_subscript): No longer static.
2104 * rust-exp.h (class rust_subscript_operation): New.
2105
11dd3dce
TT
21062021-03-08 Tom Tromey <tom@tromey.com>
2107
2108 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
2109 parameter.
2110 (rust_evaluate_subexp): Update.
2111 * rust-exp.h (class rust_unop_ind_operation): New.
2112
6fab4359
TT
21132021-03-08 Tom Tromey <tom@tromey.com>
2114
2115 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
2116 longer static. Add "opcode" parameter.
2117 (rust_evaluate_subexp): Update.
2118 * rust-exp.h: New file.
2119
9dcd3e29
TT
21202021-03-08 Tom Tromey <tom@tromey.com>
2121
2122 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2123 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
2124 (eval_op_f_kind): No longer static. Add "opcode" parameter.
2125 (evaluate_subexp_f): Update.
2126 * f-exp.h: New file.
2127
fc715eb2
TT
21282021-03-08 Tom Tromey <tom@tromey.com>
2129
2130 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
2131 * ada-exp.h (class ada_ternop_range_operation): New.
2132
cc6bd32e
TT
21332021-03-08 Tom Tromey <tom@tromey.com>
2134
2135 * ada-lang.c (ada_qual_operation::evaluate): New method.
2136 * ada-exp.h (class ada_qual_operation): New.
2137
42fecb61
TT
21382021-03-08 Tom Tromey <tom@tromey.com>
2139
2140 * ada-lang.c (ada_string_operation::evaluate): New method.
2141 * ada-exp.h (class ada_string_operation): New.
2142
03070ee9
TT
21432021-03-08 Tom Tromey <tom@tromey.com>
2144
2145 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2146 * ada-exp.h: New file.
2147
821e72d7
TT
21482021-03-08 Tom Tromey <tom@tromey.com>
2149
2150 * expop.h (class multi_subscript_operation): New.
2151 * eval.c (multi_subscript_operation::evaluate): New method.
2152
085734dd
TT
21532021-03-08 Tom Tromey <tom@tromey.com>
2154
2155 * eval.c (objc_msgcall_operation::evaluate): New method.
2156 * c-exp.h (class objc_msgcall_operation): New.
2157
e82a5afc
TT
21582021-03-08 Tom Tromey <tom@tromey.com>
2159
2160 * expop.h (class var_value_operation): New.
2161 * eval.c (var_value_operation::evaluate)
2162 (var_value_operation::evaluate_for_address)
2163 (var_value_operation::evaluate_with_coercion)
2164 (var_value_operation::evaluate_for_sizeof)
2165 (var_value_operation::evaluate_for_cast): New methods.
2166 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
2167
d9ad79d8
TT
21682021-03-08 Tom Tromey <tom@tromey.com>
2169
2170 * expop.h (cxx_cast_ftype): New typedef.
2171 (cxx_cast_operation): New template.
2172 (dynamic_cast_operation, reinterpret_cast_operation): New
2173 typedefs.
2174
292382f4
TT
21752021-03-08 Tom Tromey <tom@tromey.com>
2176
2177 * expop.h (class unop_cast_type_operation): New.
2178 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
2179 method.
2180
165a813a
TT
21812021-03-08 Tom Tromey <tom@tromey.com>
2182
2183 * expop.h (class unop_cast_operation): New.
2184 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
2185
e5946e16
TT
21862021-03-08 Tom Tromey <tom@tromey.com>
2187
2188 * expop.h (class assign_modify_operation): New.
2189 * eval.c (eval_binop_assign_modify): No longer static.
2190 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
2191
40786782
TT
21922021-03-08 Tom Tromey <tom@tromey.com>
2193
2194 * expop.h (class assign_operation): New.
2195 * ax-gdb.c (assign_operation::do_generate_ax): New method.
2196
44b675c8
TT
21972021-03-08 Tom Tromey <tom@tromey.com>
2198
2199 * expop.h (class type_instance_operation): New.
2200 * eval.c (type_instance_operation::evaluate): New method.
2201
f6b42326
TT
22022021-03-08 Tom Tromey <tom@tromey.com>
2203
2204 * expop.h (class op_this_operation): New.
2205 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
2206
cbc18219
TT
22072021-03-08 Tom Tromey <tom@tromey.com>
2208
2209 * expop.h (class unop_memval_operation)
2210 (class unop_memval_type_operation): New.
2211 * eval.c (eval_op_memval): No longer static.
2212 (unop_memval_operation::evaluate_for_address)
2213 (unop_memval_type_operation::evaluate_for_address)
2214 (unop_memval_operation::evaluate_for_sizeof)
2215 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
2216 * ax-gdb.c (unop_memval_operation::do_generate_ax)
2217 (unop_memval_type_operation::do_generate_ax): New methods.
2218
ae4bb61e
TT
22192021-03-08 Tom Tromey <tom@tromey.com>
2220
2221 * expop.h (class unop_alignof_operation): New.
2222 * eval.c (eval_op_alignof): No longer static.
2223
85d23bda
TT
22242021-03-08 Tom Tromey <tom@tromey.com>
2225
2226 * expop.h (class unop_sizeof_operation): New.
2227 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
2228
14aff815
TT
22292021-03-08 Tom Tromey <tom@tromey.com>
2230
2231 * expop.h (class unop_addr_operation): New.
2232 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
2233
929f3aa7
TT
22342021-03-08 Tom Tromey <tom@tromey.com>
2235
2236 * expop.h (class typeid_operation): New.
2237
0af8829e
TT
22382021-03-08 Tom Tromey <tom@tromey.com>
2239
2240 * expop.h (class decltype_operation): New.
2241
4efc574c
TT
22422021-03-08 Tom Tromey <tom@tromey.com>
2243
2244 * expop.h (class typeof_operation): New.
2245
5b5f5140
TT
22462021-03-08 Tom Tromey <tom@tromey.com>
2247
2248 * expop.h (class type_operation): New.
2249 * eval.c (eval_op_type): No longer static.
2250
876469ff
TT
22512021-03-08 Tom Tromey <tom@tromey.com>
2252
2253 * expop.h (class unop_ind_base_operation)
2254 (class unop_ind_operation): New.
2255 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
2256 (unop_ind_base_operation::evaluate_for_address)
2257 (unop_ind_base_operation::evaluate_for_sizeof): New method.
2258 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
2259
6d89e296
TT
22602021-03-08 Tom Tromey <tom@tromey.com>
2261
2262 * expop.h (unop_incr_operation): New template.
2263 (preinc_operation, predec_operation, postinc_operation)
2264 (postdec_operation): New typedefs.
2265 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
2266 (eval_op_postdec): No longer static.
2267
9307d17b
TT
22682021-03-08 Tom Tromey <tom@tromey.com>
2269
2270 * expop.h (unary_ftype): New typedef.
2271 (unop_operation, usual_ax_binop_operation): New templates.
2272 (unary_plus_operation, unary_neg_operation)
2273 (unary_complement_operation, unary_logical_not_operation): New
2274 typedefs.
2275 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
2276 (eval_op_lognot): No longer static.
2277 * ax-gdb.c (gen_expr_unop): New function.
2278
ae64ba58
TT
22792021-03-08 Tom Tromey <tom@tromey.com>
2280
2281 * ax-gdb.c (comma_operation::do_generate_ax): New method.
2282
d4eff4c1
TT
22832021-03-08 Tom Tromey <tom@tromey.com>
2284
2285 * expop.h (class repeat_operation): New.
2286 * eval.c (eval_op_repeat): No longer static. Remove "op"
2287 parameter.
2288 (evaluate_subexp_standard): Update.
2289 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2290
46916f2b
TT
22912021-03-08 Tom Tromey <tom@tromey.com>
2292
2293 * expop.h (class comparison_operation): New.
2294 (equal_operation, notequal_operation, less_operation)
2295 (gtr_operation, geq_operation, leq_operation): New typedefs.
2296 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
2297 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
2298
224d6424
TT
22992021-03-08 Tom Tromey <tom@tromey.com>
2300
2301 * expop.h (class subscript_operation): New.
2302 * eval.c (eval_op_subscript): No longer static.
2303
373907ff
TT
23042021-03-08 Tom Tromey <tom@tromey.com>
2305
2306 * expop.h (class binop_operation, class usual_ax_binop_operation):
2307 New.
2308 (exp_operation, intdiv_operation, mod_operation, mul_operation)
2309 (div_operation, rem_operation, lsh_operation, rsh_operation)
2310 (bitwise_and_operation, bitwise_ior_operation)
2311 (bitwise_xor_operation): New typedefs.
2312 * eval.c (eval_op_binary): No longer static.
2313
5133d78b
TT
23142021-03-08 Tom Tromey <tom@tromey.com>
2315
2316 * expop.h (class sub_operation): New.
2317 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
2318 (evaluate_subexp_standard): Update.
2319
a94323b6
TT
23202021-03-08 Tom Tromey <tom@tromey.com>
2321
2322 * expop.h (class add_operation): New.
2323 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
2324 (evaluate_subexp_standard): Update.
2325
e51e26a0
TT
23262021-03-08 Tom Tromey <tom@tromey.com>
2327
2328 * expop.h (class concat_operation): New.
2329 * eval.c (eval_op_concat): No longer static. Remove "op"
2330 parameter.
2331 (evaluate_subexp_standard): Update.
2332
07f724a8
TT
23332021-03-08 Tom Tromey <tom@tromey.com>
2334
2335 * expop.h (class structop_member_operation)
2336 (class structop_mptr_operation): New.
2337 * eval.c (eval_op_member): No longer static.
2338
ab0609be
TT
23392021-03-08 Tom Tromey <tom@tromey.com>
2340
2341 * expop.h (class structop_ptr_operation): New.
2342 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
2343 parameter.
2344
808b22cf
TT
23452021-03-08 Tom Tromey <tom@tromey.com>
2346
2347 * expop.h (class structop_base_operation)
2348 (class structop_operation): New.
2349 * eval.c (eval_op_structop_struct): No longer static.
2350
8cfd3e95
TT
23512021-03-08 Tom Tromey <tom@tromey.com>
2352
2353 * expop.h (class complex_operation): New.
2354
09db3700
TT
23552021-03-08 Tom Tromey <tom@tromey.com>
2356
2357 * eval.c (eval_op_objc_selector): No longer static.
2358 * c-exp.h (class objc_selector_operation): New.
2359
06dc61b9
TT
23602021-03-08 Tom Tromey <tom@tromey.com>
2361
2362 * eval.c: Include c-exp.h.
2363 * c-exp.h (class objc_nsstring_operation): New.
2364
72d0a711
TT
23652021-03-08 Tom Tromey <tom@tromey.com>
2366
2367 * c-lang.c (c_string_operation::evaluate): New method.
2368 * c-exp.h: New file.
2369
9186293f
TT
23702021-03-08 Tom Tromey <tom@tromey.com>
2371
2372 * expop.h (class ternop_cond_operation): New.
2373 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
2374
1594e0bb
TT
23752021-03-08 Tom Tromey <tom@tromey.com>
2376
2377 * expop.h (class ternop_slice_operation): New.
2378 * eval.c (eval_op_ternop): No longer static.
2379
b50db09f
TT
23802021-03-08 Tom Tromey <tom@tromey.com>
2381
2382 * expop.h (class string_operation): New.
2383 * eval.c (eval_op_string): No longer static.
2384
e6e01e16
TT
23852021-03-08 Tom Tromey <tom@tromey.com>
2386
2387 * expop.h (class internalvar_operation): New.
2388 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
2389
e6985c5e
TT
23902021-03-08 Tom Tromey <tom@tromey.com>
2391
2392 * expop.h (class bool_operation): New.
2393
55bdbff8
TT
23942021-03-08 Tom Tromey <tom@tromey.com>
2395
2396 * expop.h (class register_operation): New.
2397 * eval.c (eval_op_register): No longer static.
2398 * ax-gdb.c (register_operation::do_generate_ax): New method.
2399
247d935b
TT
24002021-03-08 Tom Tromey <tom@tromey.com>
2401
2402 * expop.h (class last_operation): New.
2403
17679395
TT
24042021-03-08 Tom Tromey <tom@tromey.com>
2405
2406 * expop.h (class func_static_var_operation): New.
2407 * eval.c (eval_op_func_static_var): No longer static.
2408
b5cc3923
TT
24092021-03-08 Tom Tromey <tom@tromey.com>
2410
2411 * expop.h (class var_entry_value_operation): New.
2412 * eval.c (eval_op_var_entry_value): No longer static.
2413
0c8effa3
TT
24142021-03-08 Tom Tromey <tom@tromey.com>
2415
2416 * expression.h (class operation) <set_outermost>: New method.
2417 * expop.h (class var_msym_value_operation): New.
2418 * eval.c (eval_op_var_msym_value): No longer static.
2419 (var_msym_value_operation::evaluate_for_address)
2420 (var_msym_value_operation::evaluate_for_sizeof)
2421 (var_msym_value_operation::evaluate_for_cast): New methods.
2422 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
2423 method.
2424
d336c29e
TT
24252021-03-08 Tom Tromey <tom@tromey.com>
2426
2427 * expop.h (class long_const_operation): New.
2428 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
2429
d5ab122c
TT
24302021-03-08 Tom Tromey <tom@tromey.com>
2431
2432 * expop.h (class scope_operation): New.
2433 * eval.c (eval_op_scope): No longer static.
2434 (scope_operation::evaluate_for_address): New method.
2435 * ax-gdb.c (scope_operation::do_generate_ax): New method.
2436
cae26a0c
TT
24372021-03-08 Tom Tromey <tom@tromey.com>
2438
2439 * expprint.c (float_const_operation::dump): New method.
2440 * expop.h (float_data): New typedef.
2441 (class float_const_operation): New.
2442
75f9892d
TT
24432021-03-08 Tom Tromey <tom@tromey.com>
2444
2445 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
2446 * ax-gdb.c (gen_expr_binop): New function.
2447 (gen_expr_structop): Likewise.
2448
de401988
TT
24492021-03-08 Tom Tromey <tom@tromey.com>
2450
2451 * expprint.c (expr::dump_for_expression): New functions.
2452 * expop.h (dump_for_expression): New overloads.
2453 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
2454 Update.
2455
e2803273
TT
24562021-03-08 Tom Tromey <tom@tromey.com>
2457
2458 * expression.h (expr::operation): New class.
2459 (expr::make_operation): New function.
2460 (expr::operation_up): New typedef.
2461 * expop.h: New file.
2462 * eval.c (operation::evaluate_for_cast)
2463 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
2464 New methods.
2465 * ax-gdb.c (operation::generate_ax): New method.
2466
e18c58f2
TT
24672021-03-08 Tom Tromey <tom@tromey.com>
2468
2469 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
2470 (gen_expr_binop_rest): New overload.
2471
c0d7ed8c
TT
24722021-03-08 Tom Tromey <tom@tromey.com>
2473
2474 * eval.c (eval_multi_subscript): New function.
2475 (evaluate_subexp_standard): Use it.
2476
dd5fd283
TT
24772021-03-08 Tom Tromey <tom@tromey.com>
2478
2479 * ada-lang.c (ada_binop_exp): New function.
2480 (ada_evaluate_subexp): Use it.
2481
3848abd6
TT
24822021-03-08 Tom Tromey <tom@tromey.com>
2483
2484 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
2485 parameters.
2486 (ada_evaluate_subexp): Use it.
2487
38dc70cf
TT
24882021-03-08 Tom Tromey <tom@tromey.com>
2489
2490 * ada-lang.c (ada_binop_minmax): New function.
2491 (ada_evaluate_subexp): Use it.
2492
b84564fc
TT
24932021-03-08 Tom Tromey <tom@tromey.com>
2494
2495 * ada-lang.c (ada_unop_atr): New function.
2496 (ada_evaluate_subexp): Use it.
2497
b467efaa
TT
24982021-03-08 Tom Tromey <tom@tromey.com>
2499
2500 * ada-lang.c (ada_binop_in_bounds): New function.
2501 (ada_evaluate_subexp): Use it.
2502
5ce19db8
TT
25032021-03-08 Tom Tromey <tom@tromey.com>
2504
2505 * ada-lang.c (ada_ternop_slice): New function.
2506 (ada_evaluate_subexp): Use it.
2507
214b13ac
TT
25082021-03-08 Tom Tromey <tom@tromey.com>
2509
2510 * ada-lang.c (ada_equal_binop): New function.
2511 (ada_evaluate_subexp): Use it.
2512
faa1dfd7
TT
25132021-03-08 Tom Tromey <tom@tromey.com>
2514
2515 * ada-lang.c (ada_mult_binop): New function.
2516 (ada_evaluate_subexp): Use it.
2517
d05e24e6
TT
25182021-03-08 Tom Tromey <tom@tromey.com>
2519
2520 * ada-lang.c (ada_abs): New function.
2521 (ada_evaluate_subexp): Use it.
2522
68c75735
TT
25232021-03-08 Tom Tromey <tom@tromey.com>
2524
2525 * ada-lang.c (ada_atr_size): New function.
2526 (ada_evaluate_subexp): Use it.
2527
020dbabe
TT
25282021-03-08 Tom Tromey <tom@tromey.com>
2529
2530 * ada-lang.c (ada_atr_tag): New function.
2531 (ada_evaluate_subexp): Use it.
2532
7efc87ff
TT
25332021-03-08 Tom Tromey <tom@tromey.com>
2534
2535 * ada-lang.c (ada_unop_in_range): New function.
2536 (ada_evaluate_subexp): Use it.
2537
82390ab8
TT
25382021-03-08 Tom Tromey <tom@tromey.com>
2539
2540 * ada-lang.c (ada_unop_neg): New function.
2541 (ada_evaluate_subexp): Use it.
2542
62d4bd94
TT
25432021-03-08 Tom Tromey <tom@tromey.com>
2544
2545 * ada-lang.c (eval_ternop_in_range): New function.
2546 (ada_evaluate_subexp): Use it.
2547
3634f669
TT
25482021-03-08 Tom Tromey <tom@tromey.com>
2549
2550 * opencl-lang.c (eval_opencl_assign): New function.
2551 (evaluate_subexp_opencl): Use it.
2552
5e80600e
TT
25532021-03-08 Tom Tromey <tom@tromey.com>
2554
2555 * eval.c (eval_op_objc_msgcall): New function.
2556 (evaluate_subexp_standard): Use it.
2557
fb5ba2ab
TT
25582021-03-08 Tom Tromey <tom@tromey.com>
2559
2560 * eval.c (eval_binop_assign_modify): New function.
2561 (evaluate_subexp_standard): Use it.
2562
a49881f7
TT
25632021-03-08 Tom Tromey <tom@tromey.com>
2564
2565 * m2-lang.c (eval_op_m2_subscript): New function.
2566 (evaluate_subexp_modula2): Use it.
2567
41bdced5
TT
25682021-03-08 Tom Tromey <tom@tromey.com>
2569
2570 * m2-lang.c (eval_op_m2_high): New function.
2571 (evaluate_subexp_modula2): Use it.
2572
13ea014a
TT
25732021-03-08 Tom Tromey <tom@tromey.com>
2574
2575 * eval.c (evaluate_subexp_for_address_base): New function.
2576 (evaluate_subexp_for_address): Use it.
2577 (evaluate_subexp_for_sizeof_base): New function.
2578 (evaluate_subexp_for_sizeof): Use it.
2579
1fa41fc7
TT
25802021-03-08 Tom Tromey <tom@tromey.com>
2581
2582 * rust-lang.c (eval_op_rust_structop): New function.
2583 (rust_evaluate_subexp): Use it.
2584
575cae23
TT
25852021-03-08 Tom Tromey <tom@tromey.com>
2586
2587 * rust-lang.c (eval_op_rust_struct_anon): New function.
2588 (rust_evaluate_subexp): Use it.
2589
05104233
TT
25902021-03-08 Tom Tromey <tom@tromey.com>
2591
2592 * rust-lang.c (eval_op_rust_array): New function.
2593 (rust_evaluate_subexp): Use it.
2594
6fa9831f
TT
25952021-03-08 Tom Tromey <tom@tromey.com>
2596
2597 * rust-lang.c (eval_op_rust_complement): New function.
2598 (rust_evaluate_subexp): Use it.
2599
d123f9e4
TT
26002021-03-08 Tom Tromey <tom@tromey.com>
2601
2602 * rust-lang.c (eval_op_rust_ind): New function.
2603 (rust_evaluate_subexp): Use it.
2604
984af2cb
TT
26052021-03-08 Tom Tromey <tom@tromey.com>
2606
2607 * rust-lang.c (rust_subscript): Change parameters.
2608 (rust_evaluate_subexp): Update.
2609
d148f803
TT
26102021-03-08 Tom Tromey <tom@tromey.com>
2611
2612 * rust-lang.c (rust_range): Change parameters.
2613 (rust_evaluate_subexp): Update.
2614
9cbd1c20
TT
26152021-03-08 Tom Tromey <tom@tromey.com>
2616
2617 * f-lang.c (eval_op_f_allocated): New function.
2618 (evaluate_subexp_f): Use it.
2619
3c18c49c
TT
26202021-03-08 Tom Tromey <tom@tromey.com>
2621
2622 * f-lang.c (fortran_require_array): New function.
2623 (evaluate_subexp_f): Use it.
2624
216f6fcb
TT
26252021-03-08 Tom Tromey <tom@tromey.com>
2626
2627 * f-lang.c (eval_op_f_kind): New function.
2628 (evaluate_subexp_f): Use it.
2629
00f2db6f
TT
26302021-03-08 Tom Tromey <tom@tromey.com>
2631
2632 * f-lang.c (eval_op_f_cmplx): New function.
2633 (evaluate_subexp_f): Use it.
2634
93b2b5fa
TT
26352021-03-08 Tom Tromey <tom@tromey.com>
2636
2637 * f-lang.c (eval_op_f_modulo): New function.
2638 (evaluate_subexp_f): Use it.
2639
9f1a1f3c
TT
26402021-03-08 Tom Tromey <tom@tromey.com>
2641
2642 * f-lang.c (eval_op_f_floor): New function.
2643 (evaluate_subexp_f): Use it.
2644
3dc41f3c
TT
26452021-03-08 Tom Tromey <tom@tromey.com>
2646
2647 * f-lang.c (eval_op_f_ceil): New function.
2648 (evaluate_subexp_f): Use it.
2649
e08109f2
TT
26502021-03-08 Tom Tromey <tom@tromey.com>
2651
2652 * f-lang.c (eval_op_f_mod): New function.
2653 (evaluate_subexp_f): Use it.
2654
cc05c68e
TT
26552021-03-08 Tom Tromey <tom@tromey.com>
2656
2657 * f-lang.c (eval_op_f_abs): New function.
2658 (evaluate_subexp_f): Use it.
2659
aec95807
TT
26602021-03-08 Tom Tromey <tom@tromey.com>
2661
2662 * eval.c (eval_op_type): New function.
2663 (evaluate_subexp_standard): Use it.
2664
a220ead5
TT
26652021-03-08 Tom Tromey <tom@tromey.com>
2666
2667 * eval.c (eval_op_postdec): New function.
2668 (evaluate_subexp_standard): Use it.
2669
abffe116
TT
26702021-03-08 Tom Tromey <tom@tromey.com>
2671
2672 * eval.c (eval_op_postinc): New function.
2673 (evaluate_subexp_standard): Use it.
2674
9e1361b7
TT
26752021-03-08 Tom Tromey <tom@tromey.com>
2676
2677 * eval.c (eval_op_predec): New file.
2678 (evaluate_subexp_standard): Use it.
2679
00f50884
TT
26802021-03-08 Tom Tromey <tom@tromey.com>
2681
2682 * eval.c (eval_op_preinc): New function.
2683 (evaluate_subexp_standard): Use it.
2684
3aef2a07
TT
26852021-03-08 Tom Tromey <tom@tromey.com>
2686
2687 * eval.c (eval_op_memval): New function.
2688 (evaluate_subexp_standard): Use it.
2689
acee9468
TT
26902021-03-08 Tom Tromey <tom@tromey.com>
2691
2692 * eval.c (eval_op_alignof): New function.
2693 (evaluate_subexp_standard): Use it.
2694
786f70ee
TT
26952021-03-08 Tom Tromey <tom@tromey.com>
2696
2697 * eval.c (eval_op_ind): New function.
2698 (evaluate_subexp_standard): Use it.
2699
24338fb9
TT
27002021-03-08 Tom Tromey <tom@tromey.com>
2701
2702 * eval.c (eval_op_lognot): New function.
2703 (evaluate_subexp_standard): Use it.
2704
1f09ec81
TT
27052021-03-08 Tom Tromey <tom@tromey.com>
2706
2707 * eval.c (eval_op_complement): New function.
2708 (evaluate_subexp_standard): Use it.
2709
606d105f
TT
27102021-03-08 Tom Tromey <tom@tromey.com>
2711
2712 * eval.c (eval_op_neg): New function.
2713 (evaluate_subexp_standard): Use it.
2714
39f288be
TT
27152021-03-08 Tom Tromey <tom@tromey.com>
2716
2717 * eval.c (eval_op_plus): New function.
2718 (evaluate_subexp_standard): Use it.
2719
eed70b1c
TT
27202021-03-08 Tom Tromey <tom@tromey.com>
2721
2722 * eval.c (eval_op_repeat): New function.
2723 (evaluate_subexp_standard): Use it.
2724
60cdd487
TT
27252021-03-08 Tom Tromey <tom@tromey.com>
2726
2727 * eval.c (eval_op_leq): New function.
2728 (evaluate_subexp_standard): Use it.
2729
96e3efd9
TT
27302021-03-08 Tom Tromey <tom@tromey.com>
2731
2732 * eval.c (eval_op_geq): New function.
2733 (evaluate_subexp_standard): Use it.
2734
1f78d732
TT
27352021-03-08 Tom Tromey <tom@tromey.com>
2736
2737 * eval.c (eval_op_gtr): New function.
2738 (evaluate_subexp_standard): Use it.
2739
6cad1349
TT
27402021-03-08 Tom Tromey <tom@tromey.com>
2741
2742 * eval.c (eval_op_less): New function.
2743 (evaluate_subexp_standard): Use it.
2744
1fcb3559
TT
27452021-03-08 Tom Tromey <tom@tromey.com>
2746
2747 * eval.c (eval_op_notequal): New function.
2748 (evaluate_subexp_standard): Use it.
2749
0cc96de8
TT
27502021-03-08 Tom Tromey <tom@tromey.com>
2751
2752 * eval.c (eval_op_equal): New function.
2753 (evaluate_subexp_standard): Use it.
2754
288d26bc
TT
27552021-03-08 Tom Tromey <tom@tromey.com>
2756
2757 * eval.c (eval_op_subscript): New function.
2758 (evaluate_subexp_standard): Use it.
2759
7cdcdd02
TT
27602021-03-08 Tom Tromey <tom@tromey.com>
2761
2762 * eval.c (eval_op_binary): New function.
2763 (evaluate_subexp_standard): Use it.
2764
d9790e22
TT
27652021-03-08 Tom Tromey <tom@tromey.com>
2766
2767 * eval.c (eval_op_sub): New function.
2768 (evaluate_subexp_standard): Use it.
2769
aedaf9ac
TT
27702021-03-08 Tom Tromey <tom@tromey.com>
2771
2772 * eval.c (eval_op_add): New function.
2773 (evaluate_subexp_standard): Use it.
2774
b7a96ed2
TT
27752021-03-08 Tom Tromey <tom@tromey.com>
2776
2777 * eval.c (eval_op_member): New function.
2778 (evaluate_subexp_standard): Use it.
2779
fb461aa3
TT
27802021-03-08 Tom Tromey <tom@tromey.com>
2781
2782 * eval.c (eval_op_structop_ptr): New function.
2783 (evaluate_subexp_standard): Use it.
2784
3e96c4fc
TT
27852021-03-08 Tom Tromey <tom@tromey.com>
2786
2787 * eval.c (eval_op_structop_struct): New function.
2788 (evaluate_subexp_standard): Use it.
2789
f960a617
TT
27902021-03-08 Tom Tromey <tom@tromey.com>
2791
2792 * eval.c (eval_op_ternop): New function.
2793 (evaluate_subexp_standard): Use it.
2794
5c2f201e
TT
27952021-03-08 Tom Tromey <tom@tromey.com>
2796
2797 * eval.c (eval_op_concat): New function.
2798 (evaluate_subexp_standard): Use it.
2799
f871bae1
TT
28002021-03-08 Tom Tromey <tom@tromey.com>
2801
2802 * eval.c (eval_op_objc_selector): New function.
2803 (evaluate_subexp_standard): Use it.
2804
14a1c64a
TT
28052021-03-08 Tom Tromey <tom@tromey.com>
2806
2807 * eval.c (eval_op_string): New function.
2808 (evaluate_subexp_standard): Use it.
2809
ffff730b
TT
28102021-03-08 Tom Tromey <tom@tromey.com>
2811
2812 * eval.c (eval_op_register): New function.
2813 (evaluate_subexp_standard): Use it.
2814
9b1d8af6
TT
28152021-03-08 Tom Tromey <tom@tromey.com>
2816
2817 * eval.c (eval_op_func_static_var): New function.
2818 (evaluate_subexp_standard): Use it.
2819
c0df9289
TT
28202021-03-08 Tom Tromey <tom@tromey.com>
2821
2822 * eval.c (eval_op_var_msym_value): New function.
2823 (evaluate_subexp_standard): Use it.
2824
50b98adc
TT
28252021-03-08 Tom Tromey <tom@tromey.com>
2826
2827 * eval.c (eval_op_var_entry_value): New function.
2828 (evaluate_subexp_standard): Use it.
2829
ea2d29f7
TT
28302021-03-08 Tom Tromey <tom@tromey.com>
2831
2832 * eval.c (eval_op_scope): New function.
2833 (evaluate_subexp_standard): Use it.
2834
01573d73
TT
28352021-03-06 Chernov Sergey <klen_s@mail.ru>
2836
2837 PR gdb/27528:
2838 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2839
9938d15a
TT
28402021-03-06 Tom Tromey <tom@tromey.com>
2841
2842 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2843 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2844 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2845 (locate_dwz_sections, dwz_search_other_debugdirs)
2846 (dwarf2_get_dwz_file): Move to dwz.c.
2847 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2848 read.h.
2849 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2850 (dwarf2_get_dwz_file): Move from read.c.
2851
18035655
TT
28522021-03-06 Tom Tromey <tom@tromey.com>
2853
2854 * debuginfod-support.h: Include scoped_fd.h.
2855
a7308ce0
TT
28562021-03-06 Tom Tromey <tom@tromey.com>
2857
2858 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2859 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2860 (get_abbrev_section_for_cu, read_attribute_value)
2861 (get_debug_line_section): Update.
2862 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2863
fbedd546
TT
28642021-03-06 Tom Tromey <tom@tromey.com>
2865
2866 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2867 method.
2868 * dwarf2/read.c (section_is_p): Remove.
2869 (dwarf2_per_bfd::locate_sections)
2870 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2871 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2872 (dwarf2_locate_common_dwp_sections)
2873 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2874 Update.
2875
c2a62a3d
TT
28762021-03-06 Tom Tromey <tom@tromey.com>
2877
2878 * xcoffread.c: Include sect-names.h.
2879 * symfile.h (struct dwarf2_section_names, struct
2880 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2881 * dwarf2/sect-names.h: New file, from symfile.h.
2882 * dwarf2/read.c: Include sect-names.h.
2883
4444f407
TT
28842021-03-06 Tom Tromey <tom@tromey.com>
2885
2886 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2887 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2888 (abbrev_table::read): Update.
2889 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2890 (struct abbrev_info): Reformat.
2891 <attrs>: Now an array.
2892 (struct abbrev_table) <alloc_abbrev>: Remove.
2893
dd99cf0c
WP
28942021-03-06 Weimin Pan <weimin.pan@oracle.com>
2895
2896 * ctfread.c (ctf_psymtab_add_enums): New function.
2897 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2898
844be3f2
WP
28992021-03-06 Weimin Pan <weimin.pan@oracle.com>
2900
2901 * ctfread.c (read_func_kind_type): Set up function arguments.
2902
b2668f28
AB
29032021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2904 Andrew Burgess <andrew.burgess@embecosm.com>
2905
2906 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2907 includes.
2908 (riscv_csrset): New static global.
2909 (riscv_update_csrmap): New function.
2910 (riscv_iterate_over_regset_sections): Process CSRs.
2911
d782d24b
AB
29122021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2913
2914 * riscv-tdep.c (riscv_feature_name_csr): Define.
2915 (riscv_feature_name_cpu): Define.
2916 (riscv_feature_name_fpu): Define.
2917 (riscv_feature_name_virtual): Define.
2918 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2919 (riscv_freg_feature): Use riscv_feature_name_fpu.
2920 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2921 (riscv_csr_feature): Use riscv_feature_name_csr.
2922 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2923
fb8f3fc0
AB
29242021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2925 Craig Blackmore <craig.blackmore@embecosm.com>
2926
2927 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2928 (ALLDEPFILES): Add riscv-none-tdep.c.
2929 * configure: Regenerate.
2930 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2931 support.
2932 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2933 * elf-none-tdep.c: New file.
2934 * elf-none-tdep.h: New file.
2935 * riscv-none-tdep.c: New file.
2936
95ce627a
AB
29372021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2938 Andrew Burgess <andrew.burgess@embecosm.com>
2939
2940 * corelow.c: Add 'xml-tdesc.h' include.
2941 (core_target::read_description): Load the target description from
2942 the core file when possible.
2943 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2944 note.
2945 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2946 (gcore_elf_make_tdesc_note): New function.
2947 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
2948 * linux-tdep.c (linux_make_corefile_notes): Add target description
2949 note.
2950
f3a5df7b
AB
29512021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2952
2953 * Makefile.in (SFILES): Add gcore-elf.c.
2954 (HFILES_NO_SRCDIR): Add gcore-elf.h
2955 * configure: Regenerate.
2956 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
2957 support.
2958 * fbsd-tdep.c: Add 'gcore-elf.h' include.
2959 (struct fbsd_collect_regset_section_cb_data): Delete.
2960 (fbsd_collect_regset_section_cb): Delete.
2961 (fbsd_collect_thread_registers): Delete.
2962 (struct fbsd_corefile_thread_data): Delete.
2963 (fbsd_corefile_thread): Delete.
2964 (fbsd_make_corefile_notes): Call
2965 gcore_elf_build_thread_register_notes instead of the now deleted
2966 FreeBSD code.
2967 * gcore-elf.c: New file, the content was moved here from
2968 linux-tdep.c, functions were renamed and given minor cleanup.
2969 * gcore-elf.h: New file.
2970 * gcore.c (gcore_find_signalled_thread): Moved here from
2971 linux-tdep.c and given a new name. Minor cleanups.
2972 * gcore.h (gcore_find_signalled_thread): Declare.
2973 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
2974 (struct linux_collect_regset_section_cb_data): Delete.
2975 (linux_collect_regset_section_cb): Delete.
2976 (linux_collect_thread_registers): Delete.
2977 (linux_corefile_thread): Call
2978 gcore_elf_build_thread_register_notes.
2979 (find_signalled_thread): Delete.
2980 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2981
d1e93af6
SM
29822021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
2983
2984 PR gdb/27147
2985 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2986 process_stratum_target parameter,
2987 sparc_store_inferior_registers): update callers.
2988 * sparc-nat.c (sparc_fetch_inferior_registers,
2989 sparc_store_inferior_registers): Add process_stratum_target
2990 parameter. Switch current thread before calling
2991 sparc_supply_gregset / sparc_collect_rwindow.
2992 (sparc_store_inferior_registers): Likewise.
2993 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2994 (sparc32obsd_collect_uthread): Likewise.
2995 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2996 Add assertion.
2997 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2998 sparc64obsd_supply_uthread): Add assertion.
2999
1178743e
TT
30002021-03-04 Tom Tromey <tromey@adacore.com>
3001
3002 * ada-lang.c (struct match_data) <found_sym>: Now bool.
3003 (aux_add_nonlocal_symbols): Update.
3004 (ada_add_block_symbols): Change "found_sym" to bool.
3005
1bfa81ac
TT
30062021-03-03 Tom Tromey <tromey@adacore.com>
3007
3008 * ada-lang.c (ada_resolve_function): Update comment.
3009 (is_nonfunction, add_symbols_from_enclosing_procs)
3010 (remove_extra_symbols): Likewise.
3011 (struct match_data): Add constructor, initializers.
3012 (add_nonlocal_symbols): Remove memset.
3013 (aux_add_nonlocal_symbols): Update comment.
3014 (ada_add_block_renamings, add_nonlocal_symbols)
3015 (ada_add_all_symbols): Likewise.
3016 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
3017
bbcdf9ab
TT
30182021-03-02 Tom Tromey <tromey@adacore.com>
3019
3020 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
3021 (cast_to_gnat_encoded_fixed_point_type): Remove.
3022 (ada_value_cast, ada_evaluate_subexp): Update.
3023 (gnat_encoded_fixed_point_type_info)
3024 (ada_is_gnat_encoded_fixed_point_type)
3025 (gnat_encoded_fixed_point_delta)
3026 (gnat_encoded_fixed_point_scaling_factor): Remove.
3027 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
3028 (gnat_encoded_fixed_point_delta)
3029 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
3030 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
3031 (ada_print_type): Update.
3032 * ada-valprint.c (ada_value_print_num): Update.
3033 * dwarf2/read.c (ada_get_gnat_encoded_number)
3034 (ada_get_gnat_encoded_ratio): New functions.
3035 (finish_fixed_point_type): Use them. Add parameters.
3036 (GNAT_FIXED_POINT_SUFFIX): New define.
3037 (gnat_encoded_fixed_point_type_info): New function.
3038 (read_base_type): Handle gnat encodings.
3039
5f9febe0
TT
30402021-03-02 Tom Tromey <tromey@adacore.com>
3041
3042 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
3043 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
3044 std::string.
3045 (GROW_VECT): Remove.
3046 (grow_vect): Remove.
3047
d1183b06
TT
30482021-03-02 Tom Tromey <tromey@adacore.com>
3049
3050 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
3051 * ada-lang.c (resolve_subexp): Update.
3052 (ada_resolve_function): Accept a vector.
3053 (is_nonfunction, add_defn_to_vec)
3054 (add_symbols_from_enclosing_procs): Likewise.
3055 (num_defns_collected, defns_collected): Remove.
3056 (remove_extra_symbols): Return a vector.
3057 (remove_irrelevant_renamings): Return void.
3058 (ada_add_local_symbols): Accept a vector.
3059 (struct match_data) <obstackp>: Remove.
3060 <resultp>: New member.
3061 (aux_add_nonlocal_symbols): Update.
3062 (ada_add_block_renamings, add_nonlocal_symbols)
3063 (ada_add_all_symbols): Accept a vector.
3064 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
3065 vector.
3066 (ada_lookup_symbol): Update.
3067 (ada_add_block_symbols): Accept a vector.
3068 (get_var_value, iterate_over_symbols): Update.
3069 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
3070 Update.
3071
886d459f
TT
30722021-03-02 Tom Tromey <tromey@adacore.com>
3073
3074 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3075
bdcccc56
TT
30762021-03-02 Tom Tromey <tromey@adacore.com>
3077
3078 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3079 auto_obstack.
3080 <root>: Initialize.
3081 (ada_pspace_data): Remove destructor.
3082 <sym_cache>: Now a unique_ptr.
3083 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
3084 (ada_get_symbol_cache): Use 'new'.
3085 (ada_clear_symbol_cache): Rewrite.
3086
1228719f
TT
30872021-03-02 Tom Tromey <tromey@adacore.com>
3088
3089 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
3090 is null.
3091
bb3a4efe
LS
30922021-02-27 Lancelot Six <lsix@lancelotsix.com>
3093
3094 PR gdb/27393
3095 * source.c (add_path): Skip empty dirnames.
3096
26b43ca6 30972021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
3098
3099 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
3100 include order for <sys/ptrace.h> and <asm/ptrace.h>.
3101
dffdd8b5
SM
31022021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3103
3104 PR gdb/26861
3105 * target.c (target_mourn_inferior): Only compare pids in
3106 target_mourn_inferior.
3107
64d38fdd
JM
31082021-02-25 Jan Matyas <jmatyas@codasip.com>
3109
3110 PR gdb/26819
3111 * remote.c (remote_target::start_remote): Ensure the single
3112 thread, automatically added for remote targets without the
3113 concept of threading, is initially in set to the "resumed"
3114 state.
3115 * remote.c (remote_target::add_current_inferior_and_thread):
3116 Add return value - return the main thread.
3117
2450ad54
JV
31182021-02-25 Jan Vrany <jan.vrany@labware.com>
3119
3120 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
3121 (mi_tsv_created): Likewise.
3122 (mi_tsv_deleted): Likewise.
3123
30c80d88
TV
31242021-02-25 Tom de Vries <tdevries@suse.de>
3125
3126 PR symtab/27354
3127 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
3128 section_kind for &dwo_file->sections.info.
3129
68337b8b
AB
31302021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3131
3132 PR fortran/26155
3133 * f-lang.c (fortran_argument_convert): Delete declaration.
3134 (fortran_prepare_argument): New function.
3135 (evaluate_subexp_f): Move logic to new function
3136 fortran_prepare_argument.
3137
faeb9f13
AB
31382021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3139
3140 * f-exp.y (f77_keywords): Add 'associated'.
3141 * f-lang.c (fortran_associated): New function.
3142 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
3143 (operator_length_f): Likewise.
3144 (print_unop_or_binop_subexp_f): New function.
3145 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
3146 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
3147 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
3148 (operator_check_f): Likewise.
3149 * std-operator.def: Add FORTRAN_ASSOCIATED.
3150
170f4b23
AB
31512021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3152
3153 * f-exp.y (fortran_operators): Add ".xor.".
3154
aa659cfa
TV
31552021-02-24 Tom de Vries <tdevries@suse.de>
3156
3157 PR symtab/27336
3158 * dwarf2/attribute.c (attribute::form_is_signed): New function
3159 factored out of ...
3160 * dwarf2/attribute.h (attribute::as_signed): ... here.
3161 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
3162 (attribute::form_is_signed): Declare.
3163 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
3164 for DW_AT_decl_file.
3165
268c77c1
KB
31662021-02-24 Kevin Buettner <kevinb@redhat.com>
3167
3168 * nat/aarch64-linux-hw-point.c: Add comment regarding include
3169 order for <sys/ptrace.h> and <asm/ptrace.h>.
3170
665af52e
KB
31712021-02-24 Kevin Buettner <kevinb@redhat.com>
3172
3173 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
3174 <sys/ptrace.h>.
3175
dd80d750
AB
31762021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3177
3178 * exec.c (set_section_command): Move variable declarations into
3179 the function body, and use std::string instead of a fixed size
3180 buffer.
3181
336aa7b7
AB
31822021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3183
3184 * exec.c (exec_target::get_section_table): Delete member function.
3185 (section_table_read_available_memory): Use current_top_target, not
3186 just the exec_ops target.
3187 * target-delegates.c: Regenerate.
3188 * target.c (default_get_section_table): New function.
3189 * target.h (target_ops::get_section_table): Change default
3190 behaviour to call default_get_section_table.
3191 (default_get_section_table): Declare.
3192
02f7d26b
AB
31932021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3194
3195 * exec.c (exec_target::close): Call new clear_target_sections
3196 function.
3197 (program_space::add_target_sections): Update name of member
3198 variable.
3199 (program_space::add_target_sections): Update name of member
3200 variable.
3201 (program_space::remove_target_sections): Likewise.
3202 (exec_one_fork): Use new target_sections member function.
3203 (exec_target::get_section_table): Likewise.
3204 (exec_target::files_info): Likewise.
3205 (set_section_command): Likewise.
3206 (exec_set_section_address): Likewise.
3207 (exec_target::has_memory): Use new target_sections member
3208 function.
3209 * progspace.h (program_space::clear_target_sections): New member
3210 function.
3211 (program_space::target_sections): Rename member variable to
3212 m_target_sections, replace with a new member function.
3213 (program_space::m_target_sections): New member variable.
3214 * solib-dsbt.c (scan_dyntag): Use new member function.
3215 * solib-svr4.c (scan_dyntag): Likewise.
3216
19cf757a
AB
32172021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3218
3219 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
3220 return type const.
3221 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
3222 (section_table_read_available_memory): Make local const.
3223 (exec_target::xfer_partial): Make local const.
3224 (print_section_info): Make parameter const.
3225 * gdb/exec.h (print_section_info): Likewise.
3226 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
3227 const.
3228 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
3229 Likewise.
3230 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
3231 Likewise.
3232 * gdb/s390-tdep.c (s390_load): Likewise.
3233 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
3234 * gdb/solib-svr4.c (scan_dyntag): Likewise.
3235 * gdb/target-debug.h (target_debug_print_target_section_table_p):
3236 Rename to...
3237 (target_debug_print_const_target_section_table_p): ...this.
3238 * gdb/target-delegates.c: Regenerate.
3239 * gdb/target.c (target_get_section_table): Make return type const.
3240 (target_section_by_addr): Likewise. Also make some locals const.
3241 (memory_xfer_partial_1): Make some locals const.
3242 * gdb/target.h (struct target_ops) <get_section_table>: Make
3243 return type const.
3244 (target_section_by_addr): Likewise.
3245 (target_get_section_table): Likewise.
3246
02a79309
AB
32472021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3248
3249 * NEWS: Mention new 'maint info target-sections' command.
3250 * maint.c (maintenance_info_target_sections): New function.
3251 (_initialize_maint_cmds): Register new command.
3252
895b7b4e
AB
32532021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3254
3255 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
3256 (riscv_features_from_bfd): ...this. Change parameter type to
3257 'bfd*', and update as required.
3258 (riscv_find_default_target_description): Update call to
3259 riscv_features_from_bfd. Select a default xlen based on
3260 info.bfd_arch_info.
3261 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
3262
bc3c0632
AB
32632021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3264
3265 * eval.c (evaluate_subexp_standard): Call value_ind for points to
3266 dynamic types in UNOP_IND.
3267
08ac5771
SM
32682021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3269
3270 PR gdb/26828
3271 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
3272 Instantiate queue.
3273 (~dwarf2_queue_guard): Clear queue.
3274 (queue_comp_unit): Assert that queue is
3275 instantiated.
3276 (process_queue): Adjust.
3277 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
3278
616c069a
SM
32792021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3280
3281 PR gdb/26828
3282 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
3283 to decide whether or not to enqueue it for expansion.
3284 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
3285 after calling maybe_queue_comp_unit.
3286
897608ed
SM
32872021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3288
3289 * linux-nat.c (linux_nat_filter_event): Return void.
3290
15908a11
TT
32912021-02-22 Tom Tromey <tromey@adacore.com>
3292
3293 * solib-svr4.c (enable_break): Update.
3294 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3295 type.
3296 (target_bfd_reopen): Change parameter type.
3297 * bfd-target.h (target_bfd_reopen): Change parameter type.
3298
f53fc427
SM
32992021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3300
3301 * thread.c (add_thread_silent): Add assert.
3302 (find_thread_ptid): Add assert.
3303
de146e19
SM
33042021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3305
3306 PR gdb/27435
3307 * inf-ptrace.c (struct target_unpusher): Move to target.h.
3308 (target_unpush_up): Likewise.
3309 * procfs.c (procfs_target::attach): Push target early. Use
3310 target_unpush_up to unpush target in case of error.
3311 * target.h (struct target_unpusher): Move here.
3312 (target_unpush_up): Likewise.
3313
8488c357
KB
33142021-02-19 Kevin Buettner <kevinb@redhat.com>
3315
3316 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3317 (which in turn includes <gnulib/config.h>) before include
3318 of <signal.h>.
3319
5a9f5403
NC
33202021-02-19 Nelson Chu <nelson.chu@sifive.com>
3321
3322 PR 27158
3323 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
3324 (decode_j_type_insn): Likewise.
3325 (decode_cj_type_insn): Likewise.
3326 (decode_b_type_insn): Likewise.
3327 (decode): Likewise.
3328
26f53cd3
TT
33292021-02-18 Tom Tromey <tom@tromey.com>
3330
3331 * expression.h (struct expression) <evaluate>: Declare method.
3332 * eval.c (evaluate_subexp): Simplify.
3333 (expression::evaluate): New method.
3334 (evaluate_expression, evaluate_type): Use expression::evaluate.
3335
6a780b67
KB
33362021-02-17 Kevin Buettner <kevinb@redhat.com>
3337
3338 * ada-lang.c (ada_fold_name): Check for non-empty string prior
3339 to accessing it.
3340 (ada_lookup_name_info): Likewise.
3341
adeab0c5
MF
33422021-02-13 Mike Frysinger <vapier@gentoo.org>
3343
3344 * aclocal.m4: Regenerate.
3345
089436f7
TV
33462021-02-12 Tom de Vries <tdevries@suse.de>
3347
3348 PR threads/26228
3349 * linux-nat.c (lin_thread_get_thread_signals): Remove.
3350 (lin_thread_signals): New static var.
3351 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3352 New function.
3353 * linux-nat.h (lin_thread_get_thread_signals): Remove.
3354 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3355 Declare.
3356 * linux-thread-db.c (check_thread_signals): Use
3357 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
3358
96df3e28
AB
33592021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
3360
3361 * f-exp.y (f77_keywords): Add allocated.
3362 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
3363 (operator_length_f): Likewise.
3364 (print_subexp_f): Likewise.
3365 (dump_subexp_body_f): Likewise.
3366 (operator_check_f): Likewise.
3367 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
3368
05f68f52
TV
33692021-02-11 Tom de Vries <tdevries@suse.de>
3370
3371 PR symtab/27353
3372 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
3373 Return true for DW_FORM_strx.
3374
b260f8d6
TT
33752021-02-11 Tom Tromey <tromey@adacore.com>
3376
3377 PR gdb/27383:
3378 * parse.c (write_exp_symbol_reference): Write sym.block.
3379
bf3386f0
AB
33802021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3381
3382 * NEWS: Mention changes to 'maint info sections'.
3383 * maint.c (match_substring): Return a bool, fix whitespace issue.
3384 (struct single_bfd_flag_info): New struct.
3385 (bfd_flag_info): New static global.
3386 (match_bfd_flags): Return a bool, use bfd_flag_info.
3387 (print_bfd_flags): Use bfd_flag_info.
3388 (maint_print_section_info): Delete trailing whitespace.
3389 (struct maint_info_sections_opts): New struct.
3390 (maint_info_sections_option_defs): New static global.
3391 (maint_info_sections_completer): New function.
3392 (maintenance_info_sections): Use option parsing mechanism.
3393 (_initialize_maint_cmds): Update command help text for 'maint info
3394 sections' and register a command completer.
3395
4790db14
AB
33962021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3397
3398 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
3399 functionality merged into...
3400 (maint_print_all_sections): ...this new function.
3401 (maintenance_info_sections): Make use of maint_print_all_sections,
3402 allow all objects to be printed even where there's no executable.
3403
1db66e34
AB
34042021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 * breakpoint.c (resolve_sal_pc): Make use of
3407 bound_minimal_symbol::obj_section.
3408 * maint.c (maintenance_translate_address): Likewise.
3409 * minsyms.c (minimal_symbol_upper_bound): Likewise.
3410 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
3411 member function.
3412 * printcmd.c (info_address_command): Make use of
3413 bound_minimal_symbol::obj_section.
3414
18b8df43
AM
34152021-02-11 Alan Modra <amodra@gmail.com>
3416
3417 * arm-symbian-tdep.c: Delete.
3418 * NEWS: Mention arm-symbian removal.
3419 * Makefile.in: Remove arm-symbian-tdep entries.
3420 * configure.tgt: Remove arm*-*-symbianelf*.
3421 * doc/gdb.texinfo: Remove mention of SymbianOS.
3422 * osabi.c (gdb_osabi_names): Remove "Symbian".
3423 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
3424 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
3425 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
3426 handling.
3427 * testsuite/gdb.base/dup-sect.exp: Likewise.
3428 * testsuite/gdb.base/long_long.exp: Likewise.
3429 * testsuite/gdb.base/solib-weak.exp: Likewise.
3430 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
3431 * testsuite/gdb.python/py-section-script.exp: Likewise.
3432 * testsuite/lib/dwarf.exp: Likewise.
3433 * testsuite/lib/gdb.exp: Likewise.
3434
e92c8eb8
AB
34352021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3436
3437 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
3438 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
3439 (one_or_two_args): New pattern.
3440 (f77_keywords): Add lbound and ubound.
3441 * f-lang.c (fortran_bounds_all_dims): New function.
3442 (fortran_bounds_for_dimension): New function.
3443 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
3444 (operator_length_f): Likewise.
3445 (print_subexp_f): Likewise.
3446 (dump_subexp_body_f): Likewise.
3447 (operator_check_f): Likewise.
3448 * std-operator.def (FORTRAN_LBOUND): Define.
3449 (FORTRAN_UBOUND): Define.
3450
a52d653e
AB
34512021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3452
3453 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
3454 and set_section_index member functions where appropriate.
3455 * coffread.c (coff_symtab_read): Likewise.
3456 (process_coff_symbol): Likewise.
3457 * ctfread.c (set_symbol_address): Likewise.
3458 * dwarf2/read.c (add_partial_symbol): Likewise.
3459 (var_decode_location): Likewise.
3460 * language.c: Likewise.
3461 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
3462 (compact_minimal_symbols): Likewise.
3463 (minimal_symbol_upper_bound): Likewise.
3464 * objfiles.c (relocate_one_symbol): Likewise.
3465 * psympriv.h (partial_symbol::obj_section): Likewise.
3466 (partial_symbol::address): Likewise.
3467 * psymtab.c (partial_symtab::add_psymbol): Likewise.
3468 * stabsread.c (scan_file_globals): Likewise.
3469 * symmisc.c (dump_msymbols): Likewise.
3470 * symtab.c (general_symbol_info::obj_section): Likewise.
3471 (fixup_section): Likewise.
3472 (get_msymbol_address): Likewise.
3473 * symtab.h (general_symbol_info::section): Rename to...
3474 (general_symbol_info::m_section): ...this.
3475 (general_symbol_info::set_section_index): New member function.
3476 (general_symbol_info::section_index): Likewise.
3477 (SYMBOL_SECTION): Delete.
3478 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
3479 set_section_index member functions where appropriate.
3480 (MSYMBOL_SECTION): Delete.
3481 (symbol::symbol): Update to initialize 'm_section'.
3482 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
3483 (process_xcoff_symbol): Likewise.
3484
ebbc3a7d
AB
34852021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
3488 MSYMBOL_OBJ_SECTION.
3489 * findvar.c (language_defn::read_var_value): Likewise.
3490 * infcmd.c (jump_command): Likewise.
3491 * linespec.c (minsym_found): Likewise.
3492 * maint.c (maintenance_translate_address): Likewise.
3493 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
3494 (minimal_symbol_upper_bound): Likewise.
3495 * parse.c (find_minsym_type_and_address): Likewise.
3496 (operator_check_standard): Likewise.
3497 * printcmd.c (info_address_command): Likewise.
3498 * symmisc.c (dump_msymbols): Likewise.
3499 (print_symbol): Likewise.
3500 * symtab.c (general_symbol_info::obj_section): Define new
3501 function.
3502 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
3503 (find_pc_sect_compunit_symtab): Likewise.
3504 (find_function_start_sal): Likewise.
3505 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
3506 MSYMBOL_OBJ_SECTION.
3507 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
3508 function.
3509 (SYMBOL_OBJ_SECTION): Delete.
3510 (MSYMBOL_OBJ_SECTION): Delete.
3511
9bb305b3
TT
35122021-02-09 Tom Tromey <tom@tromey.com>
3513
3514 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
3515
cf2b2075
TV
35162021-02-09 Tom de Vries <tdevries@suse.de>
3517
3518 PR symtab/27341
3519 * dwarf2/read.c (read_array_type): Return NULL when not being able to
3520 construct an array type. Add assert to ensure that element_type is
3521 not being modified.
3522
03642b71
AB
35232021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
3524
3525 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
3526 (gcore_collect_regset_section_cb): Delete.
3527 (gcore_collect_thread_registers): Delete.
3528 (gcore_build_thread_register_notes): Delete.
3529 (gcore_find_signalled_thread): Delete.
3530 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
3531 'gdbarch' and 'thread_info' declarations.
3532 (gcore_build_thread_register_notes): Delete declaration.
3533 (gcore_find_signalled_thread): Likewise.
3534 * fbsd-tdep.c: Remove 'gcore.h' include.
3535 (struct fbsd_collect_regset_section_cb_data): New struct.
3536 (fbsd_collect_regset_section_cb): New function.
3537 (fbsd_collect_thread_registers): New function.
3538 (struct fbsd_corefile_thread_data): New struct.
3539 (fbsd_corefile_thread): New function.
3540 (fbsd_make_corefile_notes): Call FreeBSD specific code.
3541 * linux-tdep.c: Remove 'gcore.h' include.
3542 (struct linux_collect_regset_section_cb_data): New struct.
3543 (linux_collect_regset_section_cb): New function.
3544 (linux_collect_thread_registers): New function.
3545 (linux_corefile_thread): Call Linux specific code.
3546 (find_signalled_thread): New function.
3547 (linux_make_corefile_notes): Call find_signalled_thread.
3548
f73e424f
TT
35492021-02-09 Tom Tromey <tromey@adacore.com>
3550
3551 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
3552 not_lval value.
3553 * value.c (value_contents_copy_raw): Now static.
3554 * value.h (value_contents_copy_raw): Don't declare.
3555
a4f0544b
TT
35562021-02-09 Tom Tromey <tromey@adacore.com>
3557
3558 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
3559 fields.
3560
9b3e4b5d
SV
35612021-02-08 Shahab Vahedi <shahab@synopsys.com>
3562
3563 PR tdep/27369
3564 * arc-linux-tdep.c (handle_atomic_sequence): New.
3565 (arc_linux_software_single_step): Call handle_atomic_sequence().
3566
29db1eb3
AB
35672021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
3570 function.
3571 (REQUIRE_WINDOW): Call is_valid member function.
3572 (REQUIRE_WINDOW_FOR_SETTER): New define.
3573 (gdbpy_tui_is_valid): Call is_valid member function.
3574 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
3575 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
3576 tui_active too.
3577 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
3578 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
3579 the function.
3580
e0c23e11
AB
35812021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3582
3583 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
3584 for the title is not nullptr.
3585
1cf23996
AB
35862021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3587
3588 * tui-layout.c (saved_tui_windows): Delete.
3589 (tui_apply_current_layout): Don't make use of saved_tui_windows,
3590 call new get_windows member function instead.
3591 (tui_get_window_by_name): Check in tui_windows.
3592 (tui_layout_window::apply): Don't add to tui_windows.
3593 * tui-layout.h (tui_layout_base::get_windows): New member function.
3594 (tui_layout_window::get_windows): Likewise.
3595 (tui_layout_split::get_windows): Likewise.
3596
a53a2657
AB
35972021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3598
3599 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
3600 of the window objects.
3601
2708dbbd
AB
36022021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3603
3604 * python/python.c (gdbpy_print_stack): Reformat an error message.
3605
cd074e04
AB
36062021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3607
3608 * tui/tui-interp.c (tui_command_line_handler): New function.
3609 (tui_interp::resume): Register tui_command_line_handler as the
3610 input_handler.
3611 * tui/tui-io.c (tui_inject_newline_into_command_window): New
3612 function.
3613 (tui_getc_1): Delete handling of '\n' and '\r'.
3614 * tui-io.h (tui_inject_newline_into_command_window): Declare.
3615
4cf28e91
HD
36162021-02-07 Hannes Domani <ssbssa@yahoo.de>
3617
3618 * tui/tui-regs.c (tui_data_window::display_registers_from):
3619 Mark invisible register sub windows.
3620 (tui_data_window::check_register_values): Ignore invisible
3621 register sub windows.
3622
3537bc23
HD
36232021-02-07 Hannes Domani <ssbssa@yahoo.de>
3624
3625 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
3626 n_spaces with a negative value.
3627
5fc2d6aa
HD
36282021-02-07 Hannes Domani <ssbssa@yahoo.de>
3629
3630 * tui/tui-regs.c (tui_data_window::display_registers_from):
3631 Add refresh_window call.
3632
83962f83
HD
36332021-02-07 Hannes Domani <ssbssa@yahoo.de>
3634
3635 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
3636
0110ec82
SM
36372021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
3638
3639 * symmisc.c (std_in, std_out, std_err): Remove.
3640 (_initialize_symmisc): Don't set std_in, std_out and std_err.
3641
7c6944ab
TV
36422021-02-05 Tom de Vries <tdevries@suse.de>
3643
3644 PR breakpoints/27330
3645 * breakpoint.c (create_exception_master_breakpoint): Handle case that
3646 glibc object file has debug info.
3647
e77b0004
TV
36482021-02-05 Tom de Vries <tdevries@suse.de>
3649
3650 PR symtab/27333
3651 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
3652
0e857c82
TV
36532021-02-05 Tom de Vries <tdevries@suse.de>
3654
3655 PR breakpoints/27313
3656 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
3657 syscall numbers.
3658
bdfea17e
TT
36592021-02-05 Tom Tromey <tom@tromey.com>
3660
3661 * compile/compile-c-support.c (get_compile_context)
3662 (c_get_compile_context, cplus_get_compile_context): Change return
3663 type.
3664 * language.c (language_defn::get_compile_instance): New method.
3665 * language.h (language_defn::get_compile_instance): Change return
3666 type. No longer inline.
3667 * c-lang.c (c_language::get_compile_instance): Change return type.
3668 (cplus_language::get_compile_instance): Change return type.
3669 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
3670 Change return type.
3671 * compile/compile.c (compile_to_object): Update.
3672
1b30f421
TT
36732021-02-05 Tom Tromey <tom@tromey.com>
3674
3675 * parser-defs.h (write_exp_symbol_reference): Declare.
3676 * parse.c (write_exp_symbol_reference): New function.
3677 * p-exp.y (variable): Use write_exp_symbol_reference.
3678 * m2-exp.y (variable): Use write_exp_symbol_reference.
3679 * f-exp.y (variable): Use write_exp_symbol_reference.
3680 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
3681 * c-exp.y (variable): Use write_exp_symbol_reference.
3682
ae710496
TV
36832021-02-05 Tom de Vries <tdevries@suse.de>
3684
3685 PR exp/27265
3686 * valarith.c (complex_binop): Throw an error if complex type can't
3687 be created.
3688
d3b54e63
TV
36892021-02-05 Tom de Vries <tdevries@suse.de>
3690
3691 PR symtab/27307
3692 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
3693 return.
3694
fc9a13fb
TV
36952021-02-05 Tom de Vries <tdevries@suse.de>
3696
3697 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
3698
04b4939b
MF
36992021-02-04 Mike Frysinger <vapier@gentoo.org>
3700
3701 * configure.tgt (riscv*-*-*): Set gdb_sim.
3702
6ff267e1
SM
37032021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
3704
3705 * target.c (target_is_non_stop_p): Return bool.
3706 * target.h (target_is_non_stop_p): Return bool.
3707
fdbc5215
SM
37082021-02-04 Simon Marchi <simon.marchi@efficios.com>
3709
3710 * record-full.c (record_full_async_inferior_event_handler):
3711 Don't clear async event handler.
3712 (record_full_base_target::wait): Clear async event handler at
3713 beginning.
3714
85d3ad8e
SM
37152021-02-04 Simon Marchi <simon.marchi@efficios.com>
3716
3717 * record-btrace.c (record_btrace_handle_async_inferior_event):
3718 Don't clear async event handler.
3719 (record_btrace_target::wait): Clear async event handler at
3720 beginning.
3721
baa8575b
SM
37222021-02-04 Simon Marchi <simon.marchi@efficios.com>
3723
3724 * remote.c (remote_target::wait): Clear async event handler at
3725 beginning, mark if needed at the end.
3726 (remote_async_inferior_event_handler): Don't set or clear async
3727 event handler.
3728
6b36ddeb
SM
37292021-02-04 Simon Marchi <simon.marchi@efficios.com>
3730
3731 * async-event.h (async_event_handler_func): Add documentation.
3732 * async-event.c (check_async_event_handlers): Don't clear
3733 async_event_handler ready flag.
3734 * infrun.c (infrun_async_inferior_event_handler): Clear ready
3735 flag.
3736 * record-btrace.c (record_btrace_handle_async_inferior_event):
3737 Likewise.
3738 * record-full.c (record_full_async_inferior_event_handler):
3739 Likewise.
3740 * remote-notif.c (remote_async_get_pending_events_handler):
3741 Likewise.
3742 * remote.c (remote_async_inferior_event_handler): Likewise.
3743
72d383bb
SM
37442021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
3745
3746 * infrun.c (handle_inferior_event): Move stop_soon variable to
3747 inner scope.
3748
408f6686
PA
37492021-02-03 Pedro Alves <pedro@palves.net>
3750
3751 * infcmd.c (detach_command): Hold strong reference to target, and
3752 if all-stop on entry, restart threads on exit.
3753 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
3754 (restart_stepped_thread): ... this new function. Also handle
3755 trap_expected.
3756 (restart_after_all_stop_detach): New function.
3757 * infrun.h (restart_after_all_stop_detach): Declare.
3758
ac7d717c
PA
37592021-02-03 Pedro Alves <pedro@palves.net>
3760
3761 * infrun.c (struct step_over_info): Initialize fields.
3762 (prepare_for_detach): Handle ongoing in-line step over.
3763
e87f0fe8
PA
37642021-02-03 Pedro Alves <pedro@palves.net>
3765
3766 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
3767 here...
3768 * remote.c (remote_target::remote_detach_1): ... and here ...
3769 * target.c (target_detach): ... instead of here.
3770 * target.h (target_ops::detach): Add comment.
3771
8ff53139
PA
37722021-02-03 Pedro Alves <pedro@palves.net>
3773
3774 * infrun.c (struct wait_one_event): Move higher up.
3775 (prepare_for_detach): Abort in-progress displaced steps instead of
3776 letting them complete.
3777 (handle_one): If the inferior is detaching, don't add the thread
3778 back to the global step-over chain.
3779 (restart_threads): Don't restart threads if detaching.
3780 (handle_signal_stop): Remove inferior::detaching reference.
3781
91475068
PA
37822021-02-03 Pedro Alves <pedro@palves.net>
3783
3784 * infrun.c (prepare_for_detach): Don't release scoped_restore
3785 before returning.
3786
d758e62c
PA
37872021-02-03 Pedro Alves <pedro@palves.net>
3788
3789 * infrun.c (handle_one): New function, factored out from ...
3790 (stop_all_threads): ... here.
3791
b0083dd7
PA
37922021-02-03 Pedro Alves <pedro@palves.net>
3793
3794 * remote.c (remote_notif_stop_ack): Don't error out on
3795 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
3796 (remote_target::discard_pending_stop_replies): Don't delete
3797 in-flight notification; instead, clear its contents.
3798
621cc310
PA
37992021-02-03 Pedro Alves <pedro@palves.net>
3800
3801 * remote.c (extended_remote_target::attach): Set target async in
3802 the target-non-stop path too.
3803
2ab76a18
PA
38042021-02-03 Pedro Alves <pedro@palves.net>
3805
3806 PR gdb/27055
3807 * infrun.c (handle_signal_stop): Move main context_switch call
3808 earlier, before STOP_QUIETLY_NO_SIGSTOP.
3809
2e3773ff
LS
38102021-02-02 Lancelot SIX <lsix@lancelotsix.com>
3811
3812 * NEWS (Changed commands): Add entry for the behavior change of
3813 the inferior command.
3814 * inferior.c (inferior_command): When no argument is given to the
3815 inferior command, display info about the currently selected
3816 inferior.
3817
e57933dc
SM
38182021-02-02 Simon Marchi <simon.marchi@efficios.com>
3819
3820 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3821 a sect_offset.
3822 (read_attribute_reprocess): Adjust.
3823
2b0c7f41
SM
38242021-02-02 Simon Marchi <simon.marchi@efficios.com>
3825
3826 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3827 <gnu_ranges_base>: ... this...
3828 <rnglists_base>: ... and this.
3829 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3830 <gnu_ranges_base>: ... this...
3831 <rnglists_base>: ... and this.
3832 (read_cutu_die_from_dwo): Adjust
3833 (dwarf2_get_pc_bounds): Adjust
3834 (dwarf2_record_block_ranges): Adjust.
3835 (read_full_die_1): Adjust
3836 (partial_die_info::read): Adjust.
3837 (read_rnglist_index): Adjust.
3838
a1c40103
SM
38392021-02-02 Simon Marchi <simon.marchi@efficios.com>
3840
3841 PR gdb/26813
3842 * dwarf2/read.c (read_loclists_rnglists_header): Add
3843 header_offset parameter and use it.
3844 (read_loclist_index): Read header of the current contribution,
3845 not the one at the beginning of the section.
3846 (read_rnglist_index): Likewise.
3847
b1829e1b
SM
38482021-02-02 Simon Marchi <simon.marchi@efficios.com>
3849
3850 PR gdb/26813
3851 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3852 requires_reprocessing flag.
3853 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3854 DW_FORM_loclistx.
3855 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3856 and DW_FORM_loclistx.
3857 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3858 instead of set_address for DW_FORM_loclistx and
3859 DW_FORM_rnglistx.
3860
0c800c6e
SM
38612021-02-02 Simon Marchi <simon.marchi@efficios.com>
3862
3863 * dwarf2/read.c (read_loclist_index): Remove bound check for
3864 start of offset.
3865 (read_rnglist_index): Likewise.
3866
05787bad
SM
38672021-02-02 Simon Marchi <simon.marchi@efficios.com>
3868
3869 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3870 of the offset.
3871
5e4d9bbc
SM
38722021-02-02 Simon Marchi <simon.marchi@efficios.com>
3873
3874 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3875
a0c1eeba
SM
38762021-02-02 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * dwarf2/read.c (read_loclist_index): Change complaints into
3879 errors.
3880
2bd3e4b8
TV
38812021-02-02 Tom de Vries <tdevries@suse.de>
3882
3883 PR symtab/24620
3884 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3885 psymtab == nullptr.
3886
82a1fd3a
AB
38872021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3888
3889 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3890 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
3891 here from linux-tdep.c and given a new name. Minor cleanups.
3892 (gcore_collect_regset_section_cb): Likewise.
3893 (gcore_collect_thread_registers): Likewise.
3894 (gcore_build_thread_register_notes): Likewise.
3895 (gcore_find_signalled_thread): Likewise.
3896 * gcore.h (gcore_build_thread_register_notes): Declare.
3897 (gcore_find_signalled_thread): Declare.
3898 * fbsd-tdep.c: Add 'gcore.h' include.
3899 (struct fbsd_collect_regset_section_cb_data): Delete.
3900 (fbsd_collect_regset_section_cb): Delete.
3901 (fbsd_collect_thread_registers): Delete.
3902 (struct fbsd_corefile_thread_data): Delete.
3903 (fbsd_corefile_thread): Delete.
3904 (fbsd_make_corefile_notes): Call
3905 gcore_build_thread_register_notes instead of the now deleted
3906 FreeBSD code.
3907 * linux-tdep.c: Add 'gcore.h' include.
3908 (struct linux_collect_regset_section_cb_data): Delete.
3909 (linux_collect_regset_section_cb): Delete.
3910 (linux_collect_thread_registers): Delete.
3911 (linux_corefile_thread): Call
3912 gcore_build_thread_register_notes.
3913 (find_signalled_thread): Delete.
3914 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3915
ebde6f2d
TV
39162021-01-29 Tom de Vries <tdevries@suse.de>
3917
3918 PR breakpoints/26063
3919 * infrun.c (process_event_stop_test): Reset
3920 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3921 changed.
3922
0f93c3a2
AB
39232021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3924
3925 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3926 assert. Extend the header comment.
3927
f237f998
AB
39282021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3931 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3932 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3933 (tui_locator_win_info_ptr): Delete declaration.
3934 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3935 (tui_disasm_window::set_contents): Fetch state from tui_location
3936 global.
3937 (tui_get_begin_asm_address): Likewise.
3938 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3939 for locator window.
3940 (get_locator_window): Delete.
3941 (initialize_known_windows): Treat locator window just like all the
3942 rest.
3943 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3944 (tui_source_window::set_contents): Fetch state from tui_location
3945 global.
3946 (tui_source_window::showing_source_p): Likewise.
3947 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3948 (_locator): Delete.
3949 (tui_locator_win_info_ptr): Delete.
3950 (tui_locator_window::make_status_line): Fetch state from
3951 tui_location global.
3952 (tui_locator_window::rerender): Remove check of 'handle',
3953 reindent function body.
3954 (tui_locator_window::set_locator_fullname): Delete.
3955 (tui_locator_window::set_locator_info): Delete.
3956 (tui_update_locator_fullname): Delete.
3957 (tui_show_frame_info): Likewise.
3958 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
3959 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
3960 tui/tui-location.h and renamed to
3961 tui_location_tracker::set_location.
3962 (tui_locator_window::set_locator_fullname): Moved to
3963 tui/tui-location.h and renamed to
3964 tui_location_tracker::set_fullname.
3965 (tui_locator_window::full_name): Delete.
3966 (tui_locator_window::proc_name): Delete.
3967 (tui_locator_window::line_no): Delete.
3968 (tui_locator_window::addr): Delete.
3969 (tui_locator_window::gdbarch): Delete.
3970 (tui_update_locator_fullname): Delete declaration.
3971 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
3972 for locator window.
3973 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
3974 (tui_display_main): Call function on tui_location directly.
3975 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
3976 * tui/tui-location.c: New file.
3977 * tui/tui-location.h: New file.
3978
8ee511af
SM
39792021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3980
3981 * gdbtypes.h (get_type_arch): Rename to...
3982 (struct type) <arch>: ... this, update all users.
3983
6ac37371
SM
39842021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3985
3986 * gdbtypes.h (struct type) <arch>: Rename to...
3987 <arch_owner>: ... this, update all users.
3988 <objfile>: Rename to...
3989 <objfile_owner>: ... this, update all users.
3990
24cf6389
AB
39912021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3992
3993 * gdbcmd.h (execute_command_to_string): Update comment.
3994 * top.c (execute_command_to_string): Update header comment.
3995
2a7f6487
TV
39962021-01-28 Tom de Vries <tdevries@suse.de>
3997
3998 PR breakpoints/27205
3999 * breakpoint.c (create_longjmp_master_breakpoint_probe)
4000 (create_longjmp_master_breakpoint_names): New function, factored out
4001 of ...
4002 (create_longjmp_master_breakpoint): ... here. Only try to install
4003 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
4004 breakpoint in libc.so failed.
4005
59b59f08
LS
40062021-01-27 Lancelot SIX <lsix@lancelotsix.com>
4007
4008 PR gdb/27133
4009 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
4010 unique_ptr is released when the wrapped pointer is kept for later
4011 use.
4012
807f647c
MM
40132021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
4014
4015 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
4016 BLR and BR instructions.
4017 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
4018 (enum aarch64_masks): New.
4019
4ef367bf
TT
40202021-01-26 Tom Tromey <tromey@adacore.com>
4021
4022 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4023 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
4024 (windows_init_thread_list, windows_nat::handle_load_dll)
4025 (windows_nat::handle_unload_dll, windows_nat_target::resume)
4026 (windows_nat_target::resume)
4027 (windows_nat_target::get_windows_debug_event)
4028 (windows_nat_target::interrupt, windows_xfer_memory)
4029 (windows_nat_target::close): Update.
4030 * nat/windows-nat.c (DEBUG_EVENTS): Use
4031 debug_prefixed_printf_cond.
4032 (matching_pending_stop, fetch_pending_stop)
4033 (continue_last_debug_event): Update.
4034
4cb1265b
MS
40352020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
4036
4037 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
4038 elfcore_write_file_note.
4039
d0cc52bd
SV
40402021-01-26 Shahab Vahedi <shahab@synopsys.com>
4041
4042 * arc-tdep.c (arc_add_reggroups): New function.
4043 (arc_gdbarch_init): Call arc_add_reggroups.
4044
ac3571d9 40452021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
4046
4047 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
4048
9f6c202e
TV
40492021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4050 Simon Marchi <simon.marchi@polymtl.ca>
4051 Tom de Vries <tdevries@suse.de>
4052
4053 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4054 DW_AT_ranges.
4055
a625a8c9
TT
40562021-01-25 Tom Tromey <tromey@adacore.com>
4057
4058 * dwarf2/read.c (get_mpz): New function.
4059 (get_dwarf2_rational_constant): Use it.
4060
19184910
TT
40612021-01-25 Tom Tromey <tromey@adacore.com>
4062
4063 * ada-lang.c (resolve_subexp): Handle array context.
4064
b10bae18
TT
40652021-01-23 Tom Tromey <tom@tromey.com>
4066
4067 PR compile/25575
4068 * compile/compile-loc2c.c (note_register): New function.
4069 (pushf_register_address, pushf_register): Use it.
4070
3637a558
TT
40712021-01-23 Tom Tromey <tom@tromey.com>
4072
4073 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4074 Change type of "registers_used".
4075 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
4076 * dwarf2/loc.c (dwarf2_compile_property_to_c)
4077 (locexpr_generate_c_location, loclist_generate_c_location): Change
4078 type of "registers_used".
4079 * compile/compile.h (compile_dwarf_expr_to_c)
4080 (compile_dwarf_bounds_to_c): Update.
4081 * compile/compile-loc2c.c (pushf_register_address)
4082 (pushf_register, do_compile_dwarf_expr_to_c)
4083 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
4084 of "registers_used".
4085 * compile/compile-c.h (generate_c_for_variable_locations):
4086 Update.
4087 * compile/compile-c-symbols.c (generate_vla_size)
4088 (generate_c_for_for_one_variable): Change type of
4089 "registers_used".
4090 (generate_c_for_variable_locations): Return std::vector.
4091 * compile/compile-c-support.c (generate_register_struct): Change
4092 type of "registers_used".
4093 (compute): Update.
4094
9f7f6cb8
TT
40952021-01-23 Tom Tromey <tom@tromey.com>
4096
4097 * compile/compile-internal.h (class compile_instance)
4098 <set_arguments>: Change return type.
4099 * compile/compile.c (compile_to_object): Remove call to reset.
4100 (compile_instance::set_arguments): Change return type.
4101
dd5ca05f
SM
41022021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4103
4104 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
4105 * gdbtypes.h (struct type) <set_owner>: Add asserts.
4106
d3ee35db
LS
41072021-01-23 Lancelot SIX <lsix@lancelotsix.com>
4108
4109 * Makefile.in (SELFTESTS_SRCS): Add
4110 unittests/gdb_tilde_expand-selftests.c.
4111 * unittests/gdb_tilde_expand-selftests.c: New file.
4112
9d2d8a16
AB
41132021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4114
4115 PR cli/25956
4116 * NEWS: Mention new command.
4117 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
4118 (version_style): Define.
4119 (cli_style_option::cli_style_option): Add intensity parameter, and
4120 use as appropriate.
4121 (_initialize_cli_style): Register version style set/show commands.
4122 * cli/cli-style.h (cli_style_option): Add intensity parameter.
4123 (version_style): Declare.
4124 * top.c (print_gdb_version): Use version_stype, and styled_string
4125 to print the GDB version string.
4126
e7b43072
AB
41272021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4128
4129 * utils.c (emit_style_escape): Only emit an escape sequence if the
4130 requested style is different than the current applied style.
4131 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
4132 current applied_style.
4133 (fputs_styled): Remove is_default check.
4134 (fputs_styled_unfiltered): Likewise.
4135 (vfprintf_styled_no_gdbfmt): Likewise.
4136
2189c312
SM
41372021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4138
4139 * remote.h (remote_debug_printf): New.
4140 (remote_debug_printf_nofunc): New.
4141 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
4142 * remote.c: Use above macros throughout file.
4143
02349803
SM
41442021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4145
4146 * remote.h (remote_debug): Change to bool.
4147 * remote.c (remote_debug): Change to bool.
4148 (_initialize_remote): Adjust.
4149
cda09ec9
SM
41502021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4151
4152 * target.h (remote_debug): Move to...
4153 * remote.h (remote_debug): ... here.
4154 * top.c (remote_debug): Move to...
4155 * remote.c (remote_debug): ... here.
4156 * remote-sim.c: Include remote.h.
4157
baf2b57f
SM
41582021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4159
4160 * cli/cli-cmds.c (show_remote_debug): Remove.
4161 (show_remote_timeout): Remove.
4162 (_initialize_cli_cmds): Don't register commands.
4163 * remote.c (show_remote_debug): Move here.
4164 (show_remote_timeout): Move here.
4165 (_initialize_remote): Register commands.
4166
344e9841
SM
41672021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4168
4169 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
4170 type::objfile method instead.
4171
30625020
SM
41722021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4173
4174 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
4175 use the type::is_objfile_owned method.
4176
5b7d941b
SM
41772021-01-22 Simon Marchi <simon.marchi@efficios.com>
4178
4179 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
4180 (TYPE_OWNER): Remove.
4181 (TYPE_OBJFILE): Adjust.
4182 (struct main_type) <flag_objfile_owned>: Rename to...
4183 <m_flag_objfile_owned>: ... this.
4184 <owner>: Rename to...
4185 <m_owner>: ... this.
4186 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
4187 methods.
4188 (TYPE_ALLOC): Adjust.
4189 * gdbtypes.c (alloc_type): Adjust.
4190 (alloc_type_arch): Adjust.
4191 (alloc_type_copy): Adjust.
4192 (get_type_arch): Adjust.
4193 (smash_type): Adjust.
4194 (lookup_array_range_type): Adjust.
4195 (recursive_dump_type): Adjust.
4196 (copy_type_recursive): Adjust.
4197 * compile/compile-c-types.c (convert_func): Adjust.
4198 (convert_type_basic): Adjust.
4199 * compile/compile-cplus-types.c (compile_cplus_convert_func):
4200 Adjust.
4201 * language.c
4202 (language_arch_info::type_and_symbol::alloc_type_symbol):
4203 Adjust.
4204
d5d24e12
LM
42052021-01-21 Luis Machado <luis.machado@linaro.org>
4206
4207 * coffread.c (enter_linenos): Passing string to complaint.
4208 * valops.c (value_assign): Make array view.
4209
a59902a7
SM
42102021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4211
4212 * auto-load.h (debug_auto_load): Move here.
4213 (auto_load_debug_printf): New.
4214 * auto-load.c: Use auto_load_debug_printf.
4215 (debug_auto_load): Move to header.
4216 * linux-thread-db.c (try_thread_db_load): Use
4217 auto_load_debug_printf.
4218 * main.c (captured_main_1): Likewise.
4219
d3abc0ce
SM
42202021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4221
4222 * f-valprint.c (f77_array_offset_tbl): Remove.
4223
1e15fcac
SM
42242021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4225
4226 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
4227
439706e6
SM
42282021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4229
4230 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
4231 of gdb_select.
4232
325d39e4
HD
42332021-01-21 Hannes Domani <ssbssa@yahoo.de>
4234
4235 PR python/19151
4236 * python/py-breakpoint.c (bppy_get_location): Handle
4237 bp_hardware_breakpoint.
4238 (bppy_init): Likewise.
4239 (gdbpy_breakpoint_created): Likewise.
4240
7cb6d92a
SM
42412021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4242
4243 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
4244
d4dd4fca
SM
42452021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4246
4247 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
4248 (_initialize_gdb_bfd): Adjust.
4249
de53369b
SM
42502021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4251
4252 PR gdb/26828
4253 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
4254
17e593e9
SM
42552021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4256
4257 * dwarf2/read.c (follow_die_offset): Add logging.
4258 (dwarf2_per_objfile::age_comp_units): Add logging.
4259
6bd434d6
SM
42602021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4261
4262 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
4263 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
4264 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
4265 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
4266 * arm-tdep.c (struct frame_unwind): Make static.
4267 * auto-load.c (auto_load_safe_path_vec): Make static.
4268 * csky-tdep.c (csky_stub_unwind): Make static.
4269 * gdbarch.c (gdbarch_data_registry): Make static.
4270 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
4271 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
4272 * i386-tdep.c (i386_frame_setup_skip_insns,
4273 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
4274 Make static.
4275 * infrun.c (observer_mode): Make static.
4276 * linux-nat.c (sigchld_action): Make static.
4277 * linux-thread-db.c (thread_db_list): Make static.
4278 * maint-test-options.c (maintenance_test_options_list):
4279 * mep-tdep.c (mep_csr_registers): Make static.
4280 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
4281 (stats): Make static.
4282 * nat/linux-osdata.c (struct osdata_type): Make static.
4283 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
4284 * progspace.c (last_program_space_num): Make static.
4285 * python/py-param.c (struct parm_constant): Remove struct type
4286 name.
4287 (parm_constants): Make static.
4288 * python/py-record-btrace.c (btpy_list_methods): Make static.
4289 * python/py-record.c (recpy_gap_type): Make static.
4290 * record.c (record_goto_cmdlist): Make static.
4291 * regcache.c (regcache_descr_handle): Make static.
4292 * registry.h (DEFINE_REGISTRY): Make definition static.
4293 * symmisc.c (std_in, std_out, std_err): Make static.
4294 * top.c (previous_saved_command_line): Make static.
4295 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
4296 static.
4297 * unittests/command-def-selftests.c (nr_duplicates,
4298 nr_invalid_prefixcmd, lists): Make static.
4299 * unittests/observable-selftests.c (test_notification): Make
4300 static.
4301 * unittests/optional/assignment/1.cc (counter): Make static.
4302 * unittests/optional/assignment/2.cc (counter): Make static.
4303 * unittests/optional/assignment/3.cc (counter): Make static.
4304 * unittests/optional/assignment/4.cc (counter): Make static.
4305 * unittests/optional/assignment/5.cc (counter): Make static.
4306 * unittests/optional/assignment/6.cc (counter): Make static.
4307
a6c11cbb
JS
43082021-01-20 Joel Sherrill <joel@rtems.org>
4309
4310 PR gdb/27219
4311 * remote.c (struct remote_thread_info) <resume_state>: Rename
4312 to...
4313 <get_resume_state>: ... this.
4314 (remote_target::resume): Adjust.
4315 (remote_target::commit_resume): Adjust.
4316 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
4317
6f52fdf4
SDJ
43182021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
4319 Tom Tromey <tom@tromey.com>
4320
4321 * stap-probe.c (stap_parse_single_operand): Handle '!'
4322 operator.
4323 (stap_parse_argument_conditionally): Likewise.
4324 Skip spaces after processing open-parenthesis sub-expression.
4325 (stap_parse_argument_1): Skip spaces after call to
4326 stap_parse_argument_conditionally.
4327 Handle case when right-side expression is a parenthesized
4328 sub-expression.
4329 Skip spaces after call to stap_parse_argument_1.
4330
1c3b85ad
LS
43312021-01-19 Lancelot SIX <lsix@lancelotsix.com>
4332
4333 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4334
a9a87d35
LM
43352021-01-19 Luis Machado <luis.machado@linaro.org>
4336
4337 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
4338 memory and save data.
4339 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
4340 (trad_frame_set_unknown, trad_frame_set_value_bytes)
4341 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4342 (trad_frame_value_bytes_p): Remove.
4343 (trad_frame_reset_saved_regs): Adjust documentation.
4344 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
4345 constructor and reset the state of the registers.
4346 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4347 (trad_frame_value_bytes_p, trad_frame_set_value)
4348 (trad_frame_set_realreg, trad_frame_set_addr)
4349 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
4350 (trad_frame_set_reg_realreg): Update to call member function.
4351 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
4352 (trad_frame_get_prev_register): Likewise.
4353
4354 * aarch64-tdep.c (aarch64_analyze_prologue)
4355 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
4356 (aarch64_prologue_prev_register): Update to use member functions.
4357 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
4358 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
4359 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
4360 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
4361 (arm_make_epilogue_frame_cache): Likewise.
4362 * avr-tdep.c (avr_frame_unwind_cache)
4363 (avr_frame_prev_register): Likewise.
4364 * cris-tdep.c (cris_scan_prologue): Likewise.
4365 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
4366 * frv-tdep.c (frv_analyze_prologue): Likewise.
4367 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
4368 * lm32-tdep.c (lm32_frame_cache): Likewise.
4369 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4370 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
4371 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
4372 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
4373 (reset_saved_regs): Adjust to set realreg.
4374 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
4375 call member functions.
4376 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
4377 * s390-tdep.c (s390_prologue_frame_unwind_cache)
4378 (s390_backchain_frame_unwind_cache): Likewise.
4379 * score-tdep.c (score7_analyze_prologue)
4380 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
4381 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
4382 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4383 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
4384 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4385 * tilegx-tdep.c (tilegx_analyze_prologue)
4386 (tilegx_frame_cache): Likewise.
4387 * v850-tdep.c (v850_frame_cache): Likewise.
4388 * vax-tdep.c (vax_frame_cache): Likewise.
4389
bdec2917
LM
43902021-01-19 Luis Machado <luis.machado@linaro.org>
4391
4392 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
4393 of buffer + length.
4394 (put_frame_register_bytes): Likewise.
4395 Adjust documentation.
4396 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
4397 (safe_frame_unwind_memory): Likewise.
4398 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
4399 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
4400 gdb::array_view.
4401 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
4402 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
4403 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
4404 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
4405 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
4406 * dwarf2/loc.c (rw_pieced_value): Likewise.
4407 * hppa-tdep.c (hppa_frame_cache): Likewise.
4408 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
4409 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
4410 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4411 (i386_linux_rt_sigtramp_start): Likewise.
4412 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
4413 * i386-tdep.c (i386_register_to_value): Likewise.
4414 * i387-tdep.c (i387_register_to_value): Likewise.
4415 * ia64-tdep.c (ia64_register_to_value): Likewise.
4416 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
4417 (m32r_linux_rt_sigtramp_start): Likewise.
4418 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
4419 * m68k-tdep.c (m68k_register_to_value): Likewise.
4420 * mips-tdep.c (mips_register_to_value)
4421 (mips_value_to_register): Likewise.
4422 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
4423 (ppcfbsd_sigtramp_frame_cache): Likewise.
4424 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
4425 (ppcobsd_sigtramp_frame_cache): Likewise.
4426 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
4427 (rs6000_register_to_value): Likewise.
4428 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4429 * tramp-frame.c (tramp_frame_start): Likewise.
4430 * valops.c (value_assign): Likewise.
4431
ccbe4c82
LM
44322021-01-19 Luis Machado <luis.machado@linaro.org>
4433
4434 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
4435 array_view.
4436 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
4437 instead of buffer and size.
4438 (trad_frame_set_reg_value_bytes): Likewise.
4439 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
4440 (trad_frame_set_value_bytes): Likewise.
4441
0e7620dc
MF
44422021-01-18 Mike Frysinger <vapier@gentoo.org>
4443
4444 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
4445
6a9ad81c
AB
44462021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
4447
4448 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
4449 (riscv_fbsd_gregset): Use riscv_supply_regset.
4450 (riscv_fbsd_fpregset): Likewise.
4451 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
4452 (riscv_linux_fregset): Likewise.
4453 * riscv-tdep.c (riscv_supply_regset): Define new function.
4454 * riscv-tdep.h (riscv_supply_regset): Declare new function.
4455
d3d7d1ba
TV
44562021-01-18 Tom de Vries <tdevries@suse.de>
4457
4458 PR tdep/27172
4459 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
4460 New macro.
4461 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
4462 for SEGV_BNDERR.
4463
aa2838cc
SM
44642021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4465
4466 * remote.c (class remote_target) <remote_hostio_send_command,
4467 remote_hostio_parse_result>: Constify parameter.
4468 (remote_hostio_parse_result): Likewise.
4469 (remote_target::remote_hostio_send_command): Adjust.
4470 (remote_target::remote_hostio_pread_vFile): Adjust.
4471 (remote_target::fileio_readlink): Adjust.
4472 (remote_target::fileio_fstat): Adjust.
4473
b5c8f22d
SM
44742021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4475
4476 * remote.c (remote_target::start_remote): Move wait_status to
4477 narrower scope.
4478
e3b2741b
SM
44792021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4480
4481 * remote.c (class remote_target):
4482 <add_current_inferior_and_thread>: Constify parameter.
4483 (stop_reply_extract_thread): Likewise.
4484 (remote_target::get_current_thread): Likewise.
4485 (remote_target::add_current_inferior_and_thread): Likewise.
4486
cecb1912
SM
44872021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4488
4489 * remote.c (class remote_target)
4490 <remote_unpack_thread_info_response,
4491 parse_threadlist_response>: Constify parameter and/or return
4492 value and or local variable.
4493 (stub_unpack_int): Likewise.
4494 (unpack_nibble): Likewise.
4495 (unpack_byte): Likewise.
4496 (unpack_int): Likewise.
4497 (unpack_string): Likewise.
4498 (unpack_threadid): Likewise.
4499 (remote_target::remote_unpack_thread_info_response): Likewise.
4500 (remote_target::parse_threadlist_response): Likewise.
4501
5a11fff0
AB
45022021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
4503
4504 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
4505
17e89137
LS
45062021-01-14 Lancelot Six <lsix@lancelotsix.com>
4507
4508 * MAINTAINERS (Write After Approval): Add myself.
4509
58eadc4b
BE
45102021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4511
4512 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
4513 because is_trivially_default_constructible was first implemented with
4514 gcc-5.
4515
5fae2a2c
TV
45162021-01-14 Tom de Vries <tdevries@suse.de>
4517
4518 PR breakpoints/27151
4519 * objfiles.h (in_plt_section): Handle .plt.sec.
4520
8f66807b
AB
45212021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4522
4523 PR gdb/26819
4524 * remote.c
4525 (remote_target::select_thread_for_ambiguous_stop_reply): New
4526 member function.
4527 (remote_target::process_stop_reply): Call
4528 select_thread_for_ambiguous_stop_reply.
4529
bd497355
SM
45302021-01-13 Simon Marchi <simon.marchi@efficios.com>
4531
4532 * record-btrace.c (class record_btrace_target): Remove.
4533 (record_btrace_target::commit_resume): Remove.
4534 * record-full.c (class record_full_target): Remove.
4535 (record_full_target::commit_resume): Remove.
4536
c9d22089
SM
45372021-01-13 Simon Marchi <simon.marchi@efficios.com>
4538
4539 * remote.c (enum class resume_state): New.
4540 (struct resumed_pending_vcont_info): New.
4541 (struct remote_thread_info) <resume_state, set_not_resumed,
4542 set_resumed_pending_vcont, resumed_pending_vcont_info,
4543 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
4544 New.
4545 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
4546 (remote_target::remote_add_thread): Adjust.
4547 (remote_target::process_initial_stop_replies): Adjust.
4548 (remote_target::resume): Adjust.
4549 (remote_target::commit_resume): Rely on state in
4550 remote_thread_info and not on tp->executing.
4551 (remote_target::process_stop_reply): Adjust.
4552
d8d1feb4
SM
45532021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4554
4555 * arc-tdep.h (arc_debug_printf): New.
4556 * arc-tdep.c: Use arc_debug_printf.
4557 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
4558 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
4559 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
4560
fb0f5031
SM
45612021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4562
4563 * arc-tdep.h (arc_debug): Change type to bool.
4564 * arc-tdep.c (arc_debug): Change type to bool.
4565 (arc_analyze_prologue): Adjust.
4566 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
4567 * arc-linux-nat.c (ps_get_thread_area): Adjust.
4568
5bf7e91b
SM
45692021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4570
4571 * auto-load.c (auto_load_objfile_script_1): Use bool.
4572 (execute_script_contents): Use bool.
4573
db972fce
SM
45742021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4575
4576 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
4577 comment here.
4578 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
4579 comment to header.
4580 * extension-priv.h (struct extension_language_script_ops)
4581 <auto_load_enabled>: Return bool.
4582 * extension.h (ext_lang_auto_load_enabled): Return bool, move
4583 comment here.
4584 * extension.c (ext_lang_auto_load_enabled): Return bool, move
4585 comment to header.
4586 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
4587 move comment here.
4588 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
4589 move comment to header.
4590 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
4591 move comment here.
4592 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
4593 move comment to header.
4594
5e12f48f
SM
45952021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4596
4597 * auto-load.h (file_is_auto_load_safe): Change return type to
4598 bool, move comment here.
4599 * auto-load.c (file_is_auto_load_safe): Change return type and
4600 advice_printed to bool. Move comment to header.
4601
54ca9002
SM
46022021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4603
4604 * jit.c (jit_debug_printf): New, use throughout file.
4605
24a7f1b5
SM
46062021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4607
4608 * infrun.c (normal_stop): Fix indentation.
4609
fe7a351a
SM
46102021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4611
4612 * top.h (readnow_symbol_files, readnever_symbol_files): Move
4613 declarations to ...
4614 * symfile.h: ... here.
4615 * symfile.c: Update doc.
4616
16e9019e
SM
46172021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4618
4619 * target.h (baud_rate, serial_parity): Move declarations...
4620 * serial.h: ... here.
4621 * main.c: Include serial.h.
4622 * serial.c (baud_rate, serial_parity): Update doc.
4623
b2f2ae0d
SM
46242021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4625
4626 * top.c (pre_init_ui_hook): Remove.
4627
5291fe3c
SP
46282021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4629
4630 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
4631 (aarch64_vnv_type): Add "bf" type in h field of v registers.
4632 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
4633 * features/aarch64-fpu.xml: Add bfloat16 type.
4634
ce38f5ed
AB
46352021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4636
4637 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
4638
7c654b71
AB
46392021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4640
4641 * f-exp.y (dot_ops): Rename to...
4642 (fortran_operators): ...this. Add a header comment. Add symbol
4643 based operators.
4644 (yylex): Update to use fortran_operators not dot_ops. Remove
4645 special handling for '**', this is now included in
4646 fortran_operators.
4647
c6185dce
SM
46482021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4649
4650 * arch/aarch64-insn.h (aarch64_debug_printf): New.
4651 * arch/aarch64-insn.c: Use aarch64_debug_printf.
4652 * aarch64-tdep.c: Use aarch64_debug_printf.
4653
eef401dc
SM
46542021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4655
4656 * solib-aix.c (solib_aix_debug_printf): New, use throughout
4657 file.
4658
062eaacb
SM
46592021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4660
4661 * jit.c (jit_debug): Change type to bool.
4662 (_initialize_jit): Adjust.
4663
54585eee
TT
46642021-01-09 Tom Tromey <tom@tromey.com>
4665
4666 PR compile/23672
4667 * compile/compile.c (compile_to_object): Avoid crash when
4668 osabi_triplet_regexp returns NULL.
4669
bc167b6b
TT
46702021-01-09 Tom Tromey <tom@tromey.com>
4671
4672 * tracepoint.h (class collection_list) <append_exp>: Take a
4673 std::string.
4674 * tracepoint.c (collection_list::append_exp): Take a std::string.
4675 (encode_actions_1): Update.
4676
8fc48b79
TT
46772021-01-08 Tom Tromey <tromey@adacore.com>
4678
4679 * parse.c (parse_expression): Add void_context_p parameter. Use
4680 parse_exp_in_context.
4681 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
4682 parse_expression.
4683 (print_command, call_command): Update.
4684 * expression.h (parse_expression): Add void_context_p parameter.
4685
3c8c6de2
AB
46862021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4687
4688 * value.c (set_value_component_location): Adjust the VALUE_LVAL
4689 for internalvar components that have a dynamic location.
4690
1940319c
TV
46912021-01-08 Tom de Vries <tdevries@suse.de>
4692
4693 PR gdb/26881
4694 * breakpoint.c (create_exception_master_breakpoint_probe)
4695 (create_exception_master_breakpoint_hook): Factor out
4696 of ...
4697 (create_exception_master_breakpoint): ... here. Only try to install
4698 the master exception breakpoint in objfile.debug using the
4699 _Unwind_DebugHook method, if the install using probes in objfile
4700 failed.
4701
e3436813
AB
47022021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4703
4704 * f-lang.c (fortran_value_subarray): Call value_from_component.
4705
e904f56d
MF
47062021-01-07 Mike Frysinger <vapier@gentoo.org>
4707
4708 * remote-sim.c: Include memory-map.h.
4709 (gdbsim_target): Define memory_map override.
4710 (gdbsim_target::memory_map): Define.
4711
959d6a67
TT
47122021-01-07 Tom Tromey <tromey@adacore.com>
4713
4714 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
4715
d4813f10
TT
47162021-01-07 Tom Tromey <tromey@adacore.com>
4717
4718 * ada-lang.c (add_component_interval): Start loop using vector's
4719 updated size.
4720
b49180ac
TT
47212021-01-06 Tom Tromey <tromey@adacore.com>
4722
4723 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
4724 Do not cast result.
4725 * valarith.c (fixed_point_binop): Handle multiplication
4726 and division specially.
4727 * valops.c (value_to_gdb_mpq): New function.
4728 (value_cast_to_fixed_point): Use it.
4729
55195361
HD
47302021-01-05 Hannes Domani <ssbssa@yahoo.de>
4731
4732 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4733 Call wnoutrefresh instead of tui_win_info::refresh_window.
4734
1b6d4bb2
HD
47352021-01-05 Hannes Domani <ssbssa@yahoo.de>
4736
4737 * tui/tui-source.c (tui_source_window::show_line_number):
4738 Redraw second space after line number.
4739
b5ff370e
HD
47402021-01-05 Hannes Domani <ssbssa@yahoo.de>
4741
4742 PR tui/26927
4743 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4744 Fix source pad size in prefresh.
4745 (tui_source_window_base::show_source_content): Grow source pad
4746 if necessary.
4747
c68ea49f
MF
47482021-01-04 Mike Frysinger <vapier@gentoo.org>
4749
4750 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
4751 (bfin_frame_align): Use align_down.
4752
e4ad960a
TV
47532021-01-04 Tom de Vries <tdevries@suse.de>
4754
4755 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
4756 terminators that do not terminate anything.
4757
3ec3145c
SM
47582021-01-04 Simon Marchi <simon.marchi@efficios.com>
4759
4760 * debug.c (debug_print_depth): New.
4761 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
4762 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
4763 * infrun.c (start_step_over): Use
4764 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4765 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
4766 INFRUN_SCOPED_DEBUG_START_END.
4767 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4768
e71daf80
SM
47692021-01-04 Simon Marchi <simon.marchi@efficios.com>
4770
4771 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
4772
335709bc
SM
47732021-01-04 Simon Marchi <simon.marchi@efficios.com>
4774
4775 * utils.c (vfprintf_unfiltered): Print timestamp only when
4776 previous debug output ended with a newline.
4777
098caef4
LM
47782021-01-04 Luis Machado <luis.machado@linaro.org>
4779
4780 Update all users of trad_frame_saved_reg to use the new member
4781 functions.
4782
4783 Remote all struct keywords from declarations of trad_frame_saved_reg
4784 types, except on forward declarations.
4785
4786 * aarch64-tdep.c: Update.
4787 * alpha-mdebug-tdep.c: Update.
4788 * alpha-tdep.c: Update.
4789 * arc-tdep.c: Update.
4790 * arm-tdep.c: Update.
4791 * avr-tdep.c: Update.
4792 * cris-tdep.c: Update.
4793 * csky-tdep.c: Update.
4794 * frv-tdep.c: Update.
4795 * hppa-linux-tdep.c: Update.
4796 * hppa-tdep.c: Update.
4797 * hppa-tdep.h: Update.
4798 * lm32-tdep.c: Update.
4799 * m32r-linux-tdep.c: Update.
4800 * m32r-tdep.c: Update.
4801 * m68hc11-tdep.c: Update.
4802 * mips-tdep.c: Update.
4803 * moxie-tdep.c: Update.
4804 * riscv-tdep.c: Update.
4805 * rs6000-tdep.c: Update.
4806 * s390-linux-tdep.c: Update.
4807 * s390-tdep.c: Update.
4808 * score-tdep.c: Update.
4809 * sparc-netbsd-tdep.c: Update.
4810 * sparc-sol2-tdep.c: Update.
4811 * sparc64-fbsd-tdep.c: Update.
4812 * sparc64-netbsd-tdep.c: Update.
4813 * sparc64-obsd-tdep.c: Update.
4814 * sparc64-sol2-tdep.c: Update.
4815 * tilegx-tdep.c: Update.
4816 * v850-tdep.c: Update.
4817 * vax-tdep.c: Update.
4818
4819 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4820 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4821
4822 * trad-frame.c: Update.
4823 Remove TF_REG_* enum.
4824 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4825 a trivially-constructible struct.
4826 (trad_frame_reset_saved_regs): Adjust to use member function.
4827 (trad_frame_value_p): Likewise.
4828 (trad_frame_addr_p): Likewise.
4829 (trad_frame_realreg_p): Likewise.
4830 (trad_frame_value_bytes_p): Likewise.
4831 (trad_frame_set_value): Likewise.
4832 (trad_frame_set_realreg): Likewise.
4833 (trad_frame_set_addr): Likewise.
4834 (trad_frame_set_unknown): Likewise.
4835 (trad_frame_set_value_bytes): Likewise.
4836 (trad_frame_get_prev_register): Likewise.
4837 * trad-frame.h: Update.
4838 (trad_frame_saved_reg_kind): New enum.
4839 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4840 <m_kind, m_reg>: New member fields.
4841 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4842 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4843 <is_addr, is_unknown, is_value_bytes>: New member functions.
4844
9898e882
SM
48452021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
4846
4847 * target-float.c: Fix typos.
4848
b66b4e65
HD
48492021-01-02 Hannes Domani <ssbssa@yahoo.de>
4850
4851 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4852
b5b5650a
JB
48532021-01-01 Joel Brobecker <brobecker@adacore.com>
4854
4855 * gdbarch.sh: Update copyright year range.
4856
3666a048
JB
48572021-01-01 Joel Brobecker <brobecker@adacore.com>
4858
4859 Update copyright year range in copyright header of all GDB files.
4860
ff7e39b6
JB
48612021-01-01 Joel Brobecker <brobecker@adacore.com>
4862
4863 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4864 to the list of directories to update.
4865
2b47c078
JB
48662021-01-01 Joel Brobecker <brobecker@adacore.com>
4867
4868 * top.c (print_gdb_version): Update copyright year.
4869
476923f1 48702021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 4871
476923f1 4872 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 4873
476923f1 4874For older changes see ChangeLog-2020.
c906108c
SS
4875\f
4876Local Variables:
4877mode: change-log
4878left-margin: 8
4879fill-column: 74
4880version-control: never
57da7796 4881coding: utf-8
c906108c 4882End:
This page took 2.995324 seconds and 4 git commands to generate.