]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/fortran: handle dynamic types within arrays and structures
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0a703a4c
AB
12021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * f-exp.h (class fortran_structop_operation): New class.
4 * f-exp.y (exp): Create fortran_structop_operation instead of the
5 generic structop_operation.
6 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
7 expression as EVAL_NORMAL if the result type was dynamic so we can
8 extract the actual array bounds.
9 (fortran_structop_operation::evaluate): New function.
10
112021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
12
13 * eval.c (evaluate_subexp_standard): Remove
14 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
15 STRUCTOP_PTR.
16
30ab3586
AB
172021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
18
19 * valops.c (value_cast): Call value_deeply_equal before performing
20 any cast.
21
5e18990f
AB
222021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
23
24 * gdbtypes.c (types_equal): Move pointer equality check earlier in
25 the function.
26
56d467f4
CT
272021-04-07 Caroline Tice <cmtice@google.com>
28
29 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
30 the search paths used resolve relative location of .dwo file.
31
1fd999d9
AB
322021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
33
34 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
35 assert.
36 (dwarf2_section_info::get_file_name): Add an assert.
37 (dwarf2_section_info::read_string): Display a minimal, sane error
38 when the dwarf2_section_info is not associated with a bfd section.
39
79c02443
AB
402021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
41
42 * top.c (staged_gdb_datadir): Update comment.
43 (set_gdb_datadir): Copy the value of gdb_datadir back into
44 staged_datadir.
45 (init_main): Initialise staged_gdb_datadir.
46
340d00fb
TV
472021-04-06 Tom de Vries <tdevries@suse.de>
48
49 PR breakpoints/25884
50 * infcmd.c (prepare_one_step): Using inline frame info to narrow
51 stepping range.
52
d811a7cf
TV
532021-04-06 Tom de Vries <tdevries@suse.de>
54
55 PR tui/27680
56 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
57 to style.parse.
58
306b445a
SM
592021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * avr-tdep.c (avr_frame_unwind_cache): Use
62 trad_frame_saved_reg::is_addr.
63
9161c89a
SM
642021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
67 adjust callers.
68
0072c873
SM
692021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
70
71 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
72 objfile parameter for objfile_per_bfd_storage, adjust callers.
73 (struct standard_psymtab) <standard_psymtab>: Likewise.
74 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
75 * psymtab.c (partial_symtab::partial_symtab): Likewise.
76 * ctfread.c (struct ctf_psymtab): Likewise.
77 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
78 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
79 (dwarf2_create_include_psymtab): Likewise.
80 * objfiles.h (struct objfile_per_bfd_storage)
81 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
82 <get_bfd>: New method.
83 <m_bfd>: New field.
84 * objfiles.c (get_objfile_bfd_data): Adjust.
85
9984dd99
SM
862021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
87
88 * psymtab.c (partial_symtab::partial_symtab): Change
89 last_objfile_name to be an std::string.
90 * symfile.c (allocate_symtab): Likewise.
91
4a4f97c1
SM
922021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
93
94 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
95 methods.
96 (struct objfile) <intern>: Use
97 objfile::objfile_per_bfd_storage::intern.
98
0672875f
SM
992021-04-01 Simon Marchi <simon.marchi@efficios.com>
100
101 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
102 with type::is_flag_enum.
103
9902b327
SM
1042021-04-01 Simon Marchi <simon.marchi@efficios.com>
105
106 * gdbtypes.h (struct type) <is_flag_enum,
107 set_is_flag_enum>: New methods.
108 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
109 write call sites to use type::set_is_flag_enum.
110
3bc440a2
SM
1112021-04-01 Simon Marchi <simon.marchi@efficios.com>
112
113 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
114 with type::is_declared_class.
115
aa70e35c
SM
1162021-04-01 Simon Marchi <simon.marchi@efficios.com>
117
118 * gdbtypes.h (struct type) <is_declared_class,
119 set_is_declared_class>: New methods.
120 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
121 write call sites to use type::set_is_declared_class.
122
bfb9f5dc
BS
1232021-02-28 Boris Staletic <boris.staletic@gmail.com>
124
125 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
126 to avoid deprecation warnings.
127
733f5eea
ML
1282021-04-01 Martin Liska <mliska@suse.cz>
129
130 * cp-name-parser.y: Use startswith instead of strncmp.
131 * m2-exp.y: Likewise.
132 * macroexp.c (substitute_args): Likewise.
133 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
134 * rust-exp.y: Likewise.
135
af82f89d
TT
1362021-03-31 Tom Tromey <tom@tromey.com>
137
138 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
139 with dw2_map_matching_symbols.
140 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
141 dw2_expand_symtabs_matching.
142
3570682a
TT
1432021-03-31 Tom Tromey <tromey@adacore.com>
144
145 * dwarf2/stringify.h: Fix typo.
146
8a91fbdf
SM
1472021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
148
149 PR gdb/27541
150 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
151 with objfiles using READNOW.
152
9f67fc59
TT
1532021-03-29 Tom Tromey <tromey@adacore.com>
154
155 * top.c (check_frame_language_change): Update.
156 * language.c (language_info): Remove parameter.
157 * language.h (language_info): Remove parameter.
158
9b8ffbf4
LM
1592021-03-29 Luis Machado <luis.machado@linaro.org>
160
161 * compile/compile.c (get_args): Don't add empty argv entries.
162
25b48839
RO
1632021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
164
165 gdb:
166 * procfs.c (procfs_target::attach): Define inf.
167 Use it.
168 (procfs_target::create_inferior): Likewise.
169
edc02ceb
TT
1702021-03-28 Tom Tromey <tom@tromey.com>
171
172 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
173 (elf_symfile_read): Simplify.
174 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
175 (make_lazy_dwarf_reader): New function.
176 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
177 (dwarf2_initialize_objfile): Return void. Remove index_kind
178 parameter. Push on 'qf' list.
179 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
180 type. Remove 'index_kind' parameter.
181 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
182
6e23d91a
TT
1832021-03-27 Tom Tromey <tom@tromey.com>
184
185 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
186
594b8948
TT
1872021-03-27 Tom Tromey <tom@tromey.com>
188
189 * elfread.c (elf_symfile_read): Don't clear 'qf'.
190
efe1ecd8
LS
1912021-03-26 Lancelot Six <lsix@lancelotsix.com>
192
193 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
194 rid of 'local'.
195
f4655dee
TT
1962021-03-26 Tom Tromey <tom@tromey.com>
197
198 * symtab.c (struct output_source_filename_data): Add 'output'
199 method and operator().
200 (output_source_filename_data::output): Rename from
201 output_source_filename.
202 (output_partial_symbol_filename): Remove.
203 (info_sources_command): Update.
204 (struct add_partial_filename_data): Add operator().
205 (add_partial_filename_data::operator()): Rename from
206 maybe_add_partial_symtab_filename.
207 (make_source_files_completion_list): Update.
208 * symfile.c (quick_symbol_functions): Update.
209 * symfile-debug.c (objfile::map_symbol_filenames): Update.
210 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
211 'need_fullname'. Remove 'data' parameter.
212 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
213 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
214 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
215 Change type of 'fun' and 'need_fullname'. Remove 'data'
216 parameter.
217 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
218 of 'fun' and 'need_fullname'. Remove 'data' parameter.
219 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
220 parameter.
221 (mi_cmd_file_list_exec_source_files): Update.
222 * dwarf2/read.c
223 (dwarf2_base_index_functions::map_symbol_filenames): Update.
224
2315bb2d
TT
2252021-03-26 Tom Tromey <tom@tromey.com>
226
227 * ada-lang.c (struct match_data): Add operator().
228 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
229 (callback): Remove 'callback'.
230
e2cd5ca4
TT
2312021-03-26 Tom Tromey <tom@tromey.com>
232
233 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
234 call make_ignore_params once.
235
cd43f63e
TT
2362021-03-26 Tom Tromey <tom@tromey.com>
237
238 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
239 "user" check.
240
b4b1a226
SM
2412021-03-26 Simon Marchi <simon.marchi@efficios.com>
242 Pedro Alves <pedro@palves.net>
243
244 * async-event.c: Include "infrun.h".
245 (async_event_handler_marked): New.
246 * async-event.h (async_event_handler_marked): Declare.
247 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
248 inferior before calling target method. Don't commit-resumed if
249 target_has_pending_events is true.
250 * remote.c (remote_target::has_pending_events): New.
251 * target-delegates.c: Regenerate.
252 * target.c (target_has_pending_events): New.
253 * target.h (target_ops::has_pending_events): New target method.
254 (target_has_pending_events): New.
255
1192f124
SM
2562021-03-26 Simon Marchi <simon.marchi@efficios.com>
257 Pedro Alves <pedro@palves.net>
258
259 * infcmd.c (run_command_1, attach_command, detach_command)
260 (interrupt_target_1): Use scoped_disable_commit_resumed.
261 * infrun.c (do_target_resume): Remove
262 target_commit_resume call.
263 (commit_resume_all_targets): Remove.
264 (maybe_set_commit_resumed_all_targets): New.
265 (maybe_call_commit_resumed_all_targets): New.
266 (enable_commit_resumed): New.
267 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
268 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
269 (scoped_disable_commit_resumed::reset)
270 (scoped_disable_commit_resumed::reset_and_commit)
271 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
272 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
273 New.
274 (proceed): Use scoped_disable_commit_resumed and
275 maybe_call_commit_resumed_all_targets.
276 (fetch_inferior_event): Use scoped_disable_commit_resumed.
277 * infrun.h (struct scoped_disable_commit_resumed): New.
278 (maybe_call_commit_resumed_all_process_targets): New.
279 (struct scoped_enable_commit_resumed): New.
280 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
281 * process-stratum-target.h (class process_stratum_target):
282 <commit_resumed_state>: New.
283 * record-full.c (record_full_wait_1): Change commit_resumed_state
284 around calling commit_resumed.
285 * remote.c (class remote_target) <commit_resume>: Rename to...
286 <commit_resumed>: ... this.
287 (struct stop_reply): Move up.
288 (remote_target::commit_resume): Rename to...
289 (remote_target::commit_resumed): ... this. Check if there is any
290 thread pending vCont resume.
291 (remote_target::remote_stop_ns): Generate stop replies for resumed
292 but pending vCont threads.
293 (remote_target::wait_ns): Add gdb_assert.
294 * target-delegates.c: Regenerate.
295 * target.c (target_wait, target_resume): Assert that the current
296 process_stratum target isn't in commit-resumed state.
297 (defer_target_commit_resume): Remove.
298 (target_commit_resume): Remove.
299 (target_commit_resumed): New.
300 (make_scoped_defer_target_commit_resume): Remove.
301 (target_stop): Assert that the current process_stratum target
302 isn't in commit-resumed state.
303 * target.h (struct target_ops) <commit_resume>: Rename to ...
304 <commit_resumed>: ... this.
305 (target_commit_resume): Remove.
306 (target_commit_resumed): New.
307 (make_scoped_defer_target_commit_resume): Remove.
308 * top.c (wait_sync_command_done): Use
309 scoped_enable_commit_resumed.
310
e5b9b39f
PA
3112021-03-26 Pedro Alves <pedro@palves.net>
312
313 * target.c (target_always_non_stop_p): Also check whether the
314 target can async.
315
bab287cd
TT
3162021-03-26 Tom Tromey <tom@tromey.com>
317
318 * dwarf2/read.c (dwarf2_read_debug_names)
319 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
320 (dw2_debug_names_iterator::next, create_type_unit_group):
321 Simplify.
322
eff4f69d
PA
3232021-03-25 Pedro Alves <pedro@palves.net>
324
325 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
326 around setting the breakpoint.
327
323fd5b9
PA
3282021-03-25 Pedro Alves <pedro@palves.net>
329
330 * remote.c
331 (remote_target::check_pending_events_prevent_wildcard_vcont):
332 Check whether the event's ptid is not null_ptid before looking up
333 the corresponding inferior.
334
d3cbca38
CD
3352021-03-24 Changbin Du <changbin.du@gmail.com>
336
337 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
338 read_code.
339
328d42d8
SM
3402021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * target.h (current_top_target): Remove, make callers use the
343 current inferior instead.
344 * target.c (current_top_target): Remove.
345
d777bf0d
SM
3462021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
347
348 * target.h (target_shortname): Change to function declaration.
349 (target_longname): Likewise.
350 (target_attach_no_wait): Likewise.
351 (target_post_attach): Likewise.
352 (target_prepare_to_store): Likewise.
353 (target_supports_enable_disable_tracepoint): Likewise.
354 (target_supports_string_tracing): Likewise.
355 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
356 (target_supports_dumpcore): Likewise.
357 (target_dumpcore): Likewise.
358 (target_can_run_breakpoint_commands): Likewise.
359 (target_files_info): Likewise.
360 (target_post_startup_inferior): Likewise.
361 (target_insert_fork_catchpoint): Likewise.
362 (target_remove_fork_catchpoint): Likewise.
363 (target_insert_vfork_catchpoint): Likewise.
364 (target_remove_vfork_catchpoint): Likewise.
365 (target_insert_exec_catchpoint): Likewise.
366 (target_remove_exec_catchpoint): Likewise.
367 (target_set_syscall_catchpoint): Likewise.
368 (target_rcmd): Likewise.
369 (target_can_lock_scheduler): Likewise.
370 (target_can_async_p): Likewise.
371 (target_is_async_p): Likewise.
372 (target_execution_direction): Likewise.
373 (target_extra_thread_info): Likewise.
374 (target_pid_to_exec_file): Likewise.
375 (target_thread_architecture): Likewise.
376 (target_find_memory_regions): Likewise.
377 (target_make_corefile_notes): Likewise.
378 (target_get_bookmark): Likewise.
379 (target_goto_bookmark): Likewise.
380 (target_stopped_by_watchpoint): Likewise.
381 (target_stopped_by_sw_breakpoint): Likewise.
382 (target_supports_stopped_by_sw_breakpoint): Likewise.
383 (target_stopped_by_hw_breakpoint): Likewise.
384 (target_supports_stopped_by_hw_breakpoint): Likewise.
385 (target_have_steppable_watchpoint): Likewise.
386 (target_can_use_hardware_watchpoint): Likewise.
387 (target_region_ok_for_hw_watchpoint): Likewise.
388 (target_can_do_single_step): Likewise.
389 (target_insert_watchpoint): Likewise.
390 (target_remove_watchpoint): Likewise.
391 (target_insert_hw_breakpoint): Likewise.
392 (target_remove_hw_breakpoint): Likewise.
393 (target_can_accel_watchpoint_condition): Likewise.
394 (target_can_execute_reverse): Likewise.
395 (target_get_ada_task_ptid): Likewise.
396 (target_filesystem_is_local): Likewise.
397 (target_trace_init): Likewise.
398 (target_download_tracepoint): Likewise.
399 (target_can_download_tracepoint): Likewise.
400 (target_download_trace_state_variable): Likewise.
401 (target_enable_tracepoint): Likewise.
402 (target_disable_tracepoint): Likewise.
403 (target_trace_start): Likewise.
404 (target_trace_set_readonly_regions): Likewise.
405 (target_get_trace_status): Likewise.
406 (target_get_tracepoint_status): Likewise.
407 (target_trace_stop): Likewise.
408 (target_trace_find): Likewise.
409 (target_get_trace_state_variable_value): Likewise.
410 (target_save_trace_data): Likewise.
411 (target_upload_tracepoints): Likewise.
412 (target_upload_trace_state_variables): Likewise.
413 (target_get_raw_trace_data): Likewise.
414 (target_get_min_fast_tracepoint_insn_len): Likewise.
415 (target_set_disconnected_tracing): Likewise.
416 (target_set_circular_trace_buffer): Likewise.
417 (target_set_trace_buffer_size): Likewise.
418 (target_set_trace_notes): Likewise.
419 (target_get_tib_address): Likewise.
420 (target_set_permissions): Likewise.
421 (target_static_tracepoint_marker_at): Likewise.
422 (target_static_tracepoint_markers_by_strid): Likewise.
423 (target_traceframe_info): Likewise.
424 (target_use_agent): Likewise.
425 (target_can_use_agent): Likewise.
426 (target_augmented_libraries_svr4_read): Likewise.
427 (target_log_command): Likewise.
428 * target.c (target_shortname): New.
429 (target_longname): New.
430 (target_attach_no_wait): New.
431 (target_post_attach): New.
432 (target_prepare_to_store): New.
433 (target_supports_enable_disable_tracepoint): New.
434 (target_supports_string_tracing): New.
435 (target_supports_evaluation_of_breakpoint_conditions): New.
436 (target_supports_dumpcore): New.
437 (target_dumpcore): New.
438 (target_can_run_breakpoint_commands): New.
439 (target_files_info): New.
440 (target_post_startup_inferior): New.
441 (target_insert_fork_catchpoint): New.
442 (target_remove_fork_catchpoint): New.
443 (target_insert_vfork_catchpoint): New.
444 (target_remove_vfork_catchpoint): New.
445 (target_insert_exec_catchpoint): New.
446 (target_remove_exec_catchpoint): New.
447 (target_set_syscall_catchpoint): New.
448 (target_rcmd): New.
449 (target_can_lock_scheduler): New.
450 (target_can_async_p): New.
451 (target_is_async_p): New.
452 (target_execution_direction): New.
453 (target_extra_thread_info): New.
454 (target_pid_to_exec_file): New.
455 (target_thread_architecture): New.
456 (target_find_memory_regions): New.
457 (target_make_corefile_notes): New.
458 (target_get_bookmark): New.
459 (target_goto_bookmark): New.
460 (target_stopped_by_watchpoint): New.
461 (target_stopped_by_sw_breakpoint): New.
462 (target_supports_stopped_by_sw_breakpoint): New.
463 (target_stopped_by_hw_breakpoint): New.
464 (target_supports_stopped_by_hw_breakpoint): New.
465 (target_have_steppable_watchpoint): New.
466 (target_can_use_hardware_watchpoint): New.
467 (target_region_ok_for_hw_watchpoint): New.
468 (target_can_do_single_step): New.
469 (target_insert_watchpoint): New.
470 (target_remove_watchpoint): New.
471 (target_insert_hw_breakpoint): New.
472 (target_remove_hw_breakpoint): New.
473 (target_can_accel_watchpoint_condition): New.
474 (target_can_execute_reverse): New.
475 (target_get_ada_task_ptid): New.
476 (target_filesystem_is_local): New.
477 (target_trace_init): New.
478 (target_download_tracepoint): New.
479 (target_can_download_tracepoint): New.
480 (target_download_trace_state_variable): New.
481 (target_enable_tracepoint): New.
482 (target_disable_tracepoint): New.
483 (target_trace_start): New.
484 (target_trace_set_readonly_regions): New.
485 (target_get_trace_status): New.
486 (target_get_tracepoint_status): New.
487 (target_trace_stop): New.
488 (target_trace_find): New.
489 (target_get_trace_state_variable_value): New.
490 (target_save_trace_data): New.
491 (target_upload_tracepoints): New.
492 (target_upload_trace_state_variables): New.
493 (target_get_raw_trace_data): New.
494 (target_get_min_fast_tracepoint_insn_len): New.
495 (target_set_disconnected_tracing): New.
496 (target_set_circular_trace_buffer): New.
497 (target_set_trace_buffer_size): New.
498 (target_set_trace_notes): New.
499 (target_get_tib_address): New.
500 (target_set_permissions): New.
501 (target_static_tracepoint_marker_at): New.
502 (target_static_tracepoint_markers_by_strid): New.
503 (target_traceframe_info): New.
504 (target_use_agent): New.
505 (target_can_use_agent): New.
506 (target_augmented_libraries_svr4_read): New.
507 (target_log_command): New.
508 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
509 * infrun.c (set_schedlock_func): Adjust.
510 * mi/mi-main.c (exec_reverse_continue): Adjust.
511 * reverse.c (exec_reverse_once): Adjust.
512 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
513 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
514 * remote-sim.c (gdbsim_target::detach): Adjust.
515 (gdbsim_target::files_info): Adjust.
516
b64f703b
TT
5172021-03-24 Tom Tromey <tom@tromey.com>
518
519 * dwarf2/read.c (dw2_map_matching_symbols): Update.
520 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
521 (check_match, dw2_expand_symtabs_matching)
522 (dwarf2_debug_names_index::map_matching_symbols)
523 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
524
68f115f8
KS
5252021-03-24 Keith Seitz <keiths@redhat.com>
526
527 * compile/compile-cplus-types.c
528 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
529 thinko.
530
41c0087b
SM
5312021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
532
533 * gdbarch.sh (gdbarch_data_registry): Make static.
534 * gdbarch.c: Re-generate.
535
ce192338
LM
5362021-03-24 Luis Machado <luis.machado@linaro.org>
537
538 * NEWS: Mention memory tagging changes.
539
bef382e6
LM
5402021-03-24 Luis Machado <luis.machado@linaro.org>
541
542 * printcmd.c (decode_format): Handle the 'm' modifier.
543 (do_examine): Display allocation tags when required/supported.
544 (should_validate_memtags): New function.
545 (print_command_1): Display memory tag mismatches.
546 * valprint.c (show_memory_tag_violations): New function.
547 (value_print_option_defs): Add new option "memory-tag-violations".
548 (user_print_options) <memory_tag_violations>: Initialize to 1.
549 * valprint.h (struct format_data) <print_tags>: New field.
550 (value_print_options) <memory_tag_violations>: New field.
551
48136e00
LM
5522021-03-24 Luis Machado <luis.machado@linaro.org>
553
554 * printcmd.c: Include gdbsupport/rsp-low.h.
555 (memory_tag_list): New static global.
556 (process_print_command_args): Factored out of
557 print_command_1.
558 (print_command_1): Use process_print_command_args.
559 (show_addr_not_tagged, show_memory_tagging_unsupported)
560 (memory_tag_command, memory_tag_print_tag_command)
561 (memory_tag_print_logical_tag_command)
562 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
563 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
564 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
565 functions.
566 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
567
ffcc2a15
LM
5682021-03-24 Luis Machado <luis.machado@linaro.org>
569
570 * aarch64-linux-tdep.c
571 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
572 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
573
cf44c9fa
LM
5742021-03-24 Luis Machado <luis.machado@linaro.org>
575
576 * aarch64-linux-tdep.c
577 (aarch64_linux_report_signal_info): New function.
578 (aarch64_linux_init_abi): Register
579 aarch64_linux_report_signal_info as the report_signal_info hook.
580 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
581 (SEGV_MTESERR): Define.
582
b4a7d4fc
LM
5832021-03-24 Luis Machado <luis.machado@linaro.org>
584
585 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
586 (aarch64_linux_ltag_tests): New function.
587 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
588
c7782e50
LM
5892021-03-24 Luis Machado <luis.machado@linaro.org>
590
591 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
592 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
593 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
594 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
595 functions.
596 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
597 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
598 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
599 (aarch64_linux_get_ltag): New functions.
600 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
601 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
602 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
603 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
604
1e735120
LM
6052021-03-24 Luis Machado <luis.machado@linaro.org>
606
607 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
608 bit.
609 (struct smaps_data): New struct.
610 (decode_vmflags): Handle the 'mt' flag.
611 (parse_smaps_data): New function, refactored from
612 linux_find_memory_regions_full.
613 (linux_address_in_memtag_page): New function.
614 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
615 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
616
93e447c6
LM
6172021-03-24 Luis Machado <luis.machado@linaro.org>
618
619 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
620 instead of char arrays.
621
4601818e
LM
6222021-03-24 Luis Machado <luis.machado@linaro.org>
623
624 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
625 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
626 nat/aarch64-mte-linux-ptrace.h.
627 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
628 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
629 override.
630 <fetch_memtags>: New method override.
631 <store_memtags>: New method override.
632 (aarch64_linux_nat_target::supports_memory_tagging): New method.
633 (aarch64_linux_nat_target::fetch_memtags): New method.
634 (aarch64_linux_nat_target::store_memtags): New method.
635 * arch/aarch64-mte-linux.c: New file.
636 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
637 (AARCH64_MTE_GRANULE_SIZE): Define.
638 (aarch64_memtag_type): New enum.
639 (aarch64_mte_get_tag_granules): New prototype.
640 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
641 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
642 * nat/aarch64-mte-linux-ptrace.c: New file.
643 * nat/aarch64-mte-linux-ptrace.h: New file.
644
3f3bd8b8
LM
6452021-03-24 Luis Machado <luis.machado@linaro.org>
646
647 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
648 * nat/aarch64-mte-linux-ptrace.h: New file.
649
5e984dbf
LM
6502021-03-24 Luis Machado <luis.machado@linaro.org>
651
652 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
653 (store_mteregs_to_thread): New function.
654 (aarch64_linux_nat_target::fetch_registers): Update to call
655 fetch_mteregs_from_thread.
656 (aarch64_linux_nat_target::store_registers): Update to call
657 store_mteregs_to_thread.
658 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
659 (aarch64_cannot_store_register): Handle MTE registers.
660 (aarch64_gdbarch_init): Initialize and setup MTE registers.
661 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
662 <has_mte>: New method.
663 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
664
c1bd443b
LM
6652021-03-24 Luis Machado <luis.machado@linaro.org>
666
667 * aarch64-linux-nat.c
668 (aarch64_linux_nat_target::read_description): Take MTE flag into
669 account.
670 Slight refactor to hwcap flag checking.
671 * aarch64-linux-tdep.c
672 (aarch64_linux_core_read_description): Likewise.
673 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
674 MTE.
675 (aarch64_read_description): Add mte_p parameter and update to use it.
676 Update the documentation.
677 (aarch64_gdbarch_init): Update call to aarch64_read_description.
678 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
679 * arch/aarch64.c: Include ../features/aarch64-mte.c.
680 (aarch64_create_target_description): Add mte_p parameter and update
681 the code to use it.
682 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
683 parameter.
684 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
685 * features/aarch64-mte.c: New file, generated.
686 * features/aarch64-mte.xml: New file.
687
04245125
LM
6882021-03-24 Luis Machado <luis.machado@linaro.org>
689
690 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
691 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
692 * aarch64-linux-tdep.c: Likewise
693 * arch/aarch64-mte-linux.h: New file.
694
754487e2
LM
6952021-03-24 Luis Machado <luis.machado@linaro.org>
696
697 * remote: Include gdbsupport/selftest.h.
698 (test_memory_tagging_functions): New function.
699 (_initialize_remote): Register test_memory_tagging_functions.
700
2c2e7f87
LM
7012021-03-24 Luis Machado <luis.machado@linaro.org>
702
703 * remote.c (PACKET_memory_tagging_feature): New enum.
704 (remote_memory_tagging_p): New function.
705 (remote_protocol_features): New "memory-tagging" entry.
706 (remote_target::remote_query_supported): Handle memory tagging
707 support.
708 (remote_target::supports_memory_tagging): Implement.
709 (create_fetch_memtags_request, parse_fetch_memtags_reply)
710 (create_store_memtags_request): New functions.
711 (remote_target::fetch_memtags): Implement.
712 (remote_target::store_memtags): Implement.
713 (_initialize_remote): Add new "memory-tagging-feature"
714 config command.
715
c193949e
LM
7162021-03-24 Luis Machado <luis.machado@linaro.org>
717
718 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
719 (default_memtag_matches_p, default_set_memtags)
720 (default_get_memtag): New functions.
721 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
722 (default_memtag_matches_p, default_set_memtags)
723 (default_get_memtag): New prototypes.
724 * gdbarch.c: Regenerate.
725 * gdbarch.h: Regenerate.
726 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
727 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
728 (enum memtag_type): New enum.
729
dbe692af
LM
7302021-03-24 Luis Machado <luis.machado@linaro.org>
731
732 * remote.c (remote_target) <supports_memory_tagging>: New method
733 override.
734 <fetch_memtags>: New method override.
735 <store_memtags>: New method override.
736 (remote_target::supports_memory_tagging): New method.
737 (remote_target::fetch_memtags): New method.
738 (remote_target::store_memtags): New method.
739 * target-delegates.c: Regenerate.
740 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
741 method.
742 <fetch_memtags>: New virtual method.
743 <store_memtags>: New virtual method.
744 (target_supports_memory_tagging): Define.
745 (target_fetch_memtags): Define.
746 (target_store_memtags): Define.
747 * target-debug.h (target_debug_print_size_t)
748 (target_debug_print_const_gdb_byte_vector_r)
749 (target_debug_print_gdb_byte_vector_r): New functions.
750
66848ebc
SM
7512021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
752
753 * target.h (target_longname): Remove.
754
c8fbd44a
SM
7552021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
756
757 * target.h (target_is_pushed): Remove, update callers to use
758 inferior::target_is_pushed instead.
759 * target.c (target_is_pushed): Remove.
760
02980c56
SM
7612021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
762
763 * target.h (push_target): Remove, update callers to use
764 inferior::push_target.
765 * target.c (push_target): Remove.
766 * inferior.h (class inferior) <push_target>: New overload.
767
fadf6add
SM
7682021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
769
770 * target.h (unpush_target): Remove, update all callers
771 to use `inferior::unpush_target` instead.
772 (struct target_unpusher) <operator()>: Just declare.
773 * target.c (unpush_target): Remove.
774 (target_unpusher::operator()): New.
775
702cf3f5
AB
7762021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
777
778 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
779 error.
780 (process_full_comp_unit): Validate the top-level tag before
781 processing the first DIE.
782 (read_func_scope): Ensure we have a valid builder.
783
46fec642
AB
7842021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
785
786 * objc-lang.c (objc_demangle): Renamed to
787 objc_language::demangle_symbol, and moved later in the file.
788 (objc_language::sniff_from_mangled_name): Call demangle_symbol
789 member function.
790 (objc_language::demangle_symbol): Defined outside of class
791 declaration. The definition is the old objc_demangle with NULL
792 changed to nullptr, and if conditions relating to nullptr pointers
793 or null character checks made explicit.
794 * objc-lang.h (objc_demangle): Delete declaration.
795
08dedd66
ML
7962021-03-22 Martin Liska <mliska@suse.cz>
797
798 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
799 (_initialize_arm_tdep): Likewise.
800
eb36a3eb
TT
8012021-03-20 Tom Tromey <tom@tromey.com>
802
803 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
804 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
805 * psymtab.h (make_psymbol_functions): Don't declare.
806 * psymtab.c (make_psymbol_functions): Remove.
807 (maintenance_print_psymbols): Update.
808 * psympriv.h (struct psymbol_functions): Add no-argument
809 constructor.
810 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
811 <partial_symtabs>: Remove.
812 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
813 * elfread.c (read_partial_symbols): Update.
814 (elf_symfile_read): Remove check for existing partial symbols.
815 Don't clear "qf".
816 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
817 partial symbols.
818 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
819 partial symtabs.
820 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
821 parameter.
822 * dbxread.c (dbx_symfile_read): Create partial symtabs.
823 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
824
e1114590
TT
8252021-03-20 Tom Tromey <tom@tromey.com>
826
827 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
828 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
829 * symfile-debug.c (objfile::has_partial_symbols)
830 (objfile::find_last_source_symtab)
831 (objfile::forget_cached_source_info)
832 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
833 (objfile::print_stats, objfile::dump)
834 (objfile::expand_symtabs_for_function)
835 (objfile::expand_all_symtabs)
836 (objfile::expand_symtabs_with_fullname)
837 (objfile::map_matching_symbols)
838 (objfile::expand_symtabs_matching)
839 (objfile::find_pc_sect_compunit_symtab)
840 (objfile::map_symbol_filenames)
841 (objfile::find_compunit_symtab_by_address)
842 (objfile::lookup_global_symbol_language)
843 (objfile::require_partial_symbols): Update.
844 * psymtab.c (maintenance_print_psymbols)
845 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
846 * objfiles.h (struct objfile) <qf>: Now a forward_list.
847 * objfiles.c (objfile_relocate1): Update.
848 * elfread.c (elf_symfile_read): Update.
849
de909f0b
TT
8502021-03-20 Tom Tromey <tom@tromey.com>
851
852 * objfiles.h (struct objfile) <psymtabs>: Remove method.
853
caf8c1e5
TT
8542021-03-20 Tom Tromey <tom@tromey.com>
855
856 * psymtab.c (psymbol_functions::count_psyms): Rename.
857 (psymbol_functions::print_stats): Update.
858 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
859 method.
860
3aa31ce7
TT
8612021-03-20 Tom Tromey <tom@tromey.com>
862
863 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
864 (psymbol_functions::find_pc_sect_psymtab): Rename.
865 (psymbol_functions::find_pc_sect_compunit_symtab)
866 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
867 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
868 Declare new method.
869 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
870
7b249e47
TT
8712021-03-20 Tom Tromey <tom@tromey.com>
872
873 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
874 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
875 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
876 parameter.
877 (add_psymbol_to_bcache): Remove.
878 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
879 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
880 Likewise.
881 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
882 <add_psymbol>: Likewise.
883 (standard_psymtab, legacy_psymtab): Likewise.
884 * mdebugread.c (parse_partial_symbols): Update.
885 (handle_psymbol_enumerators): Add partial_symtabs parameter.
886 (handle_psymbol_enumerators): Update.
887 (new_psymtab): Add partial_symtabs parameter.
888 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
889 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
890 parameter.
891 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
892 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
893 Update.
894 * dbxread.c (read_dbx_symtab): Update.
895 (start_psymtab): Add partial_symtabs parameter.
896 (dbx_end_psymtab): Update.
897 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
898 (ctf_psymtab): Add partial_symtabs parameter.
899 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
900 Update.
901 (scan_partial_symbols): Add partial_symtabs parameter.
902 (scan_partial_symbols, elfctf_build_psymtabs)
903 (ctf_psymtab_add_enums): Update.
904
d1eef86d
TT
9052021-03-20 Tom Tromey <tom@tromey.com>
906
907 * symfile.c (read_symbols): Use objfile method.
908 * symfile-debug.c (objfile::require_partial_symbols): New method.
909 * psymtab.h (require_partial_symbols): Don't declare.
910 * psymtab.c (require_partial_symbols): Use objfile method. Now
911 static.
912 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
913 (psymbol_functions::lookup_symbol)
914 (psymbol_functions::lookup_global_symbol_language)
915 (psymbol_functions::find_last_source_symtab)
916 (psymbol_functions::forget_cached_source_info)
917 (psymbol_functions::print_stats)
918 (psymbol_functions::expand_symtabs_for_function)
919 (psymbol_functions::expand_all_symtabs)
920 (psymbol_functions::expand_symtabs_with_fullname)
921 (psymbol_functions::map_symbol_filenames)
922 (psymbol_functions::map_matching_symbols)
923 (psymbol_functions::expand_symtabs_matching)
924 (psymbol_functions::find_compunit_symtab_by_address)
925 (maintenance_print_psymbols, maintenance_info_psymtabs)
926 (maintenance_check_psymtabs): Update.
927 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
928 new method.
929
eb00e468
TT
9302021-03-20 Tom Tromey <tom@tromey.com>
931
932 * xcoffread.c (xcoff_sym_fns): Update.
933 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
934 * symfile-debug.c (objfile::has_partial_symbols): Use
935 can_lazily_read_symbols.
936 (debug_sym_read_psymbols): Remove.
937 (debug_sym_fns, install_symfile_debug_logging): Update.
938 * quick-symbol.h (struct quick_symbol_functions)
939 <can_lazily_read_symbols, read_partial_symbols>: New methods.
940 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
941 * mipsread.c (ecoff_sym_fns): Update.
942 * machoread.c (macho_sym_fns): Update.
943 * elfread.c (struct lazy_dwarf_reader): New.
944 (elf_symfile_read): Update.
945 (read_psyms): Now a method of lazy_dwarf_reader.
946 (elf_sym_fns): Update.
947 (elf_sym_fns_lazy_psyms): Remove.
948 * dbxread.c (aout_sym_fns): Update.
949 * coffread.c (coff_sym_fns): Update.
950
b29b98cf
TT
9512021-03-20 Tom Tromey <tom@tromey.com>
952
953 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
954 (reread_symbols): Move reset_psymtabs call later.
955 * objfiles.c (objfile::objfile): Don't initialize
956 partial_symtabs.
957
17d66340
TT
9582021-03-20 Tom Tromey <tom@tromey.com>
959
960 * dwarf2/read.c (dwarf2_build_psymtabs): Call
961 set_partial_symtabs.
962 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
963 * psymtab.h (make_psymbol_functions): Add partial_symtabs
964 parameter.
965 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
966 parameter.
967 (psymbol_functions::find_pc_sect_compunit_symtab)
968 (psymbol_functions::print_stats, psymbol_functions::dump)
969 (psymbol_functions::has_symbols): Update.
970 (make_psymbol_functions, dump_psymtab_addrmap): Add
971 partial_symtabs parameter.
972 (maintenance_print_psymbols): Update.
973 (psymbol_functions::expand_symtabs_matching): Update.
974 * psympriv.h (struct psymbol_functions): Add constructor.
975 <m_partial_symtabs>: New member.
976 <set_partial_symtabs>: New method.
977
84685904
TT
9782021-03-20 Tom Tromey <tom@tromey.com>
979
980 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
981 parameter.
982 (process_psymtab_comp_unit_reader)
983 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
984 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
985 Reference psymtabs via per_bfd.
986
79cc99f6
TT
9872021-03-20 Tom Tromey <tom@tromey.com>
988
989 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
990 Remove.
991 (add_address_entry): Remove objfile parameter.
992 (add_address_entry_worker): Update.
993 (write_address_map): Replace objfile parameter with per_bfd.
994 (write_gdbindex, write_psymtabs_to_index): Update.
995
4829711b
TT
9962021-03-20 Tom Tromey <tom@tromey.com>
997
998 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
999 print_bcache parameter.
1000 * symfile-debug.c (objfile::print_stats): Add print_bcache
1001 parameter.
1002 * quick-symbol.h (struct quick_symbol_functions)
1003 <print_stats>: Add print_bcache parameter.
1004 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
1005 code to psymtab.c.
1006 (print_objfile_statistics): Move psymtab code to psymtab.c.
1007 * psymtab.c (count_psyms): Move from symmisc.c.
1008 (psymbol_functions::print_stats): Print partial symbol and bcache
1009 statistics. Add print_bcache parameter.
1010 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
1011 (struct objfile) <print_stats>: Add print_bcache parameter.
1012 * maint.c (maintenance_print_statistics): Update.
1013
efd7398e
TT
10142021-03-20 Tom Tromey <tom@tromey.com>
1015
1016 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
1017 member.
1018 * dwarf2/read.c (create_addrmap_from_index)
1019 (create_addrmap_from_aranges): Set per_bfd addrmap.
1020 (dwarf2_read_gdb_index): Don't set partial_symtabs.
1021 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
1022 per_bfd addrmap.
1023 (dwarf2_read_debug_names): Don't set partial_symtabs.
1024 (dwarf2_initialize_objfile): Likewise.
1025
51962708
TT
10262021-03-20 Tom Tromey <tom@tromey.com>
1027
1028 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
1029 earlier.
1030
484b1090
TT
10312021-03-20 Tom Tromey <tom@tromey.com>
1032
1033 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
1034 (~psymtab_discarder, keep): Update.
1035 <m_objfile>: Remove.
1036 <m_partial_symtabs>: New member.
1037 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1038
7e9c0476
TT
10392021-03-20 Tom Tromey <tom@tromey.com>
1040
1041 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
1042 (xcoff_end_psymtab): Update.
1043 (scan_xcoff_symtab): Add partial_symtabs parameter.
1044 (xcoff_initial_scan): Update.
1045 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
1046 * mdebugread.c (mdebug_build_psymtabs): Update.
1047 (parse_partial_symbols): Add partial_symtabs parameter.
1048 * dbxread.c (dbx_symfile_read): Update.
1049 (read_dbx_symtab): Add partial_symtabs parameter.
1050 (read_dbx_symtab): Update.
1051 (dbx_end_psymtab): Add partial_symtabs parameter.
1052
75336a5a
TT
10532021-03-20 Tom Tromey <tom@tromey.com>
1054
1055 * quick-symbol.h (struct quick_symbol_functions)
1056 <relocated>: New method.
1057 * psymtab.h (struct psymbol_functions) <relocated>: New
1058 method.
1059 <fill_psymbol_map>: Declare method.
1060 <m_psymbol_map>: New member.
1061 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
1062 (psymbol_functions::find_compunit_symtab_by_address): Update.
1063 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
1064 (struct objfile) <psymbol_map>: Remove.
1065 * objfiles.c (objfile_relocate1): Update.
1066
39298a5d
TT
10672021-03-20 Tom Tromey <tom@tromey.com>
1068
1069 * psympriv.h (struct psymbol_functions): New.
1070 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1071 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
1072 (objfile::lookup_global_symbol_language): Update.
1073 * quick-symbol.h (struct quick_symbol_functions): Convert function
1074 pointers to methods. Add virtual destructor.
1075 (quick_symbol_functions_up): New typedef.
1076 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
1077 (dwarf2_debug_names_functions): Don't declare.
1078 (make_psymbol_functions): Declare.
1079 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
1080 (psymbol_functions::find_pc_sect_compunit_symtab)
1081 (psymbol_functions::lookup_symbol)
1082 (psymbol_functions::lookup_global_symbol_language)
1083 (psymbol_functions::find_last_source_symtab)
1084 (psymbol_functions::forget_cached_source_info)
1085 (psymbol_functions::print_stats, psymbol_functions::dump)
1086 (psymbol_functions::expand_symtabs_for_function)
1087 (psymbol_functions::expand_all_symtabs)
1088 (psymbol_functions::expand_symtabs_with_fullname)
1089 (psymbol_functions::map_symbol_filenames)
1090 (psymbol_functions::map_matching_symbols)
1091 (psymbol_functions::expand_symtabs_matching)
1092 (psymbol_functions::has_symbols)
1093 (psymbol_functions::find_compunit_symtab_by_address): Rename.
1094 (psym_functions): Remove.
1095 (make_psymbol_functions): New function.
1096 * objfiles.h (struct objfile) <qf>: Change type.
1097 * elfread.c (elf_symfile_read): Update.
1098 * dwarf2/read.c (struct dwarf2_base_index_functions)
1099 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
1100 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
1101 (dwarf2_base_index_functions::find_last_source_symtab)
1102 (dwarf2_base_index_functions::forget_cached_source_info)
1103 (dwarf2_base_index_functions::map_symtabs_matching_filename)
1104 (dwarf2_gdb_index::lookup_symbol)
1105 (dwarf2_base_index_functions::print_stats)
1106 (dwarf2_gdb_index::dump)
1107 (dwarf2_gdb_index::expand_symtabs_for_function)
1108 (dwarf2_base_index_functions::expand_all_symtabs)
1109 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1110 Rename.
1111 (dwarf2_gdb_index::map_matching_symbols): New method.
1112 (dwarf2_gdb_index::expand_symtabs_matching): New method.
1113 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
1114 (dwarf2_base_index_functions::map_symbol_filenames)
1115 (dwarf2_base_index_functions::has_symbols): Rename.
1116 (dwarf2_gdb_index_functions): Remove.
1117 (dwarf2_debug_names_index::lookup_symbol)
1118 (dwarf2_debug_names_index::dump)
1119 (dwarf2_debug_names_index::expand_symtabs_for_function)
1120 (dwarf2_debug_names_index::map_matching_symbols)
1121 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
1122 (dwarf2_debug_names_functions): Remove.
1123 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
1124 Declare.
1125
5c3f1e5b
TT
11262021-03-20 Tom Tromey <tom@tromey.com>
1127
1128 * psymtab.c (require_partial_symbols): Check that 'sf' is not
1129 null.
1130 * xcoffread.c (xcoff_sym_fns): Update.
1131 * symfile.h (struct sym_fns) <qf>: Remove.
1132 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1133 * symfile-debug.c (objfile::has_partial_symbols)
1134 (objfile::find_last_source_symtab)
1135 (objfile::forget_cached_source_info)
1136 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1137 (objfile::print_stats, objfile::dump)
1138 (objfile::expand_symtabs_for_function)
1139 (objfile::expand_all_symtabs)
1140 (objfile::expand_symtabs_with_fullname)
1141 (objfile::map_matching_symbols)
1142 (objfile::expand_symtabs_matching)
1143 (objfile::find_pc_sect_compunit_symtab)
1144 (objfile::map_symbol_filenames)
1145 (objfile::find_compunit_symtab_by_address)
1146 (objfile::lookup_global_symbol_language, debug_sym_fns)
1147 (install_symfile_debug_logging): Update.
1148 * objfiles.h (struct objfile) <qf>: New member.
1149 * mipsread.c (ecoff_sym_fns): Update.
1150 * machoread.c (macho_sym_fns): Update.
1151 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
1152 Don't declare.
1153 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
1154 * dbxread.c (aout_sym_fns): Update.
1155 * coffread.c (coff_sym_fns): Update.
1156
9b99dcc8
TT
11572021-03-20 Tom Tromey <tom@tromey.com>
1158
1159 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
1160 (expand_symtabs_file_matcher_ftype)
1161 (expand_symtabs_symbol_matcher_ftype)
1162 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
1163 Move to quick-symbol.h.
1164 * quick-symbol.h: New file.
1165
4d080b46
TT
11662021-03-20 Tom Tromey <tom@tromey.com>
1167
1168 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
1169 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
1170 (basic_lookup_transparent_type_quick)
1171 (find_pc_sect_compunit_symtab, find_symbol_at_address)
1172 (find_line_symtab, global_symbol_searcher::expand_symtabs):
1173 Update.
1174 * symmisc.c (print_objfile_statistics, dump_objfile)
1175 (maintenance_expand_symtabs): Update.
1176 * symfile.c (symbol_file_add_with_addrs)
1177 (expand_symtabs_matching, map_symbol_filenames): Update.
1178 * symfile-debug.c (objfile::has_partial_symbols)
1179 (objfile::find_last_source_symtab)
1180 (objfile::forget_cached_source_info)
1181 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1182 (objfile::print_stats, objfile::dump)
1183 (objfile::expand_symtabs_for_function)
1184 (objfile::expand_all_symtabs)
1185 (objfile::expand_symtabs_with_fullname)
1186 (objfile::map_matching_symbols)
1187 (objfile::expand_symtabs_matching)
1188 (objfile::find_pc_sect_compunit_symtab)
1189 (objfile::map_symbol_filenames)
1190 (objfile::find_compunit_symtab_by_address)
1191 (objfile::lookup_global_symbol_language): New methods.
1192 (debug_sym_quick_functions): Remove.
1193 (debug_sym_fns, install_symfile_debug_logging): Update.
1194 * source.c (forget_cached_source_info_for_objfile)
1195 (select_source_symtab): Update.
1196 * objfiles.h (struct objfile): Add methods corresponding to
1197 quick_symbol_functions.
1198 * objfiles.c (objfile::has_partial_symbols): Move to
1199 symfile-debug.c.
1200 * linespec.c (iterate_over_all_matching_symtabs): Update.
1201 * cp-support.c (add_symbol_overload_list_qualified): Update.
1202 * ada-lang.c (add_nonlocal_symbols): Update.
1203
fae2120b
TT
12042021-03-20 Tom Tromey <tom@tromey.com>
1205
1206 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
1207 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
1208 bool.
1209 * symfile-debug.c (debug_qf_has_symbols): Return bool.
1210 * psymtab.c (psym_has_symbols): Return bool.
1211 * objfiles.c (objfile::has_partial_symbols): Return bool.
1212 * dwarf2/read.c (dw2_has_symbols): Return bool.
1213
a8ad4f3c
TT
12142021-03-20 Tom Tromey <tom@tromey.com>
1215
1216 * symfile.c (read_symbols): Update.
1217 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
1218 (objfile_has_partial_symbols): Don't declare.
1219 * objfiles.c (objfile::has_partial_symbols): Rename from
1220 objfile_has_partial_symbols.
1221 (objfile_has_symbols, have_partial_symbols): Update.
1222 * elfread.c (elf_symfile_read): Update.
1223 * dwarf2/read.c (dwarf2_has_info): Update.
1224 * coffread.c (coff_symfile_read): Update.
1225
70182375
TT
12262021-03-20 Tom Tromey <tom@tromey.com>
1227
1228 * coffread.c: Include dwarf2/public.h.
1229 * dwarf2/frame.c: Include dwarf2/public.h.
1230 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
1231 * dwarf2/public.h: New file.
1232 * dwarf2/read.c: Include dwarf2/public.h.
1233 * elfread.c: Include dwarf2/public.h.
1234 * machoread.c: Include dwarf2/public.h.
1235 * symfile.h (dwarf2_has_info, enum dw_index_kind)
1236 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
1237 (dwarf2_build_frame_info): Move to dwarf2/public.h.
1238 * xcoffread.c: Include dwarf2/public.h.
1239
18038e63
TT
12402021-03-20 Tom Tromey <tom@tromey.com>
1241
1242 * symfile.h (enum dwarf2_section_enum)
1243 (dwarf2_get_section_info): Move to dwarf2/read.h.
1244 * dwarf2/read.h (enum dwarf2_section_enum)
1245 (dwarf2_get_section_info): Move from symfile.h.
1246
219f56b4
PA
12472021-03-19 Pedro Alves <pedro@palves.net>
1248
1249 * thread.c (any_thread_of_inferior): Check if there's a selected
1250 thread before calling inferior_thread().
1251
15310fd4
TT
12522021-03-18 Tom Tromey <tromey@adacore.com>
1253
1254 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
1255 get_DW_UT_name.
1256 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
1257 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
1258
763b8efd
AB
12592021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1260
1261 * python/py-param.c (get_set_value): Update header comment.
1262
f058c521
SM
12632021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
1264
1265 * infrun.c (check_multi_target_resumption): Remove argument to
1266 all_non_exited_inferiors.
1267
383228bc
CB
12682021-03-16 Christian Biesinger <cbiesinger@google.com>
1269
1270 * windows-nat.c (windows_init_thread_list): Add message to
1271 debug log.
1272
7807d76a
AB
12732021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
1274
1275 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
1276 well as PyLong_Check for Python 2.
1277
675da9a5
TT
12782021-03-15 Tom Tromey <tromey@adacore.com>
1279
1280 PR build/27579:
1281 * rust-exp.y (maker_map): Use gdb::hash_enum.
1282 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
1283
4800761a
SM
12842021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1285
1286 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
1287 end of debug print.
1288
eb5dd737
SM
12892021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1290
1291 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
1292 parameter, adjust caller.
1293
6813ceb0
TT
12942021-03-15 Tom Tromey <tromey@adacore.com>
1295
1296 * ada-exp.y (simple_exp): Always push a result for unary '+'.
1297
3b5c4de0
TT
12982021-03-15 Tom Tromey <tromey@adacore.com>
1299
1300 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
1301 ada_ensure_varsize_limit.
1302
c04da66c
TT
13032021-03-15 Tom Tromey <tromey@adacore.com>
1304
1305 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
1306 fixed-point.
1307 * ada-exp.y (maybe_overload): New function.
1308 (ada_wrap_overload): New function.
1309 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
1310 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
1311 (or_else_exp, xor_exp, primary): Update.
1312
9863c3b5
TT
13132021-03-15 Tom Tromey <tromey@adacore.com>
1314
1315 PR ada/27545:
1316 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
1317 call for tagged type.
1318
1ac74522
TT
13192021-03-15 Tom Tromey <tromey@adacore.com>
1320
1321 * ada-exp.y (exp1): Handle resolution of the right hand side of an
1322 assignment.
1323
207582c0
TT
13242021-03-15 Tom Tromey <tromey@adacore.com>
1325
1326 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
1327 container.
1328 (ada_assign_operation::evaluate): Update.
1329 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
1330 Change return type.
1331
8d624a9d
FW
13322021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
1333
1334 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
1335
ba6a0ef3
AB
13362021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
1337
1338 * python/python.c (gdbpy_source_objfile_script): Use
1339 make_scoped_restore to restore gdbpy_current_objfile.
1340 (gdbpy_execute_objfile_script): Likewise.
1341
7c290a04
TT
13422021-03-14 Tom Tromey <tom@tromey.com>
1343
1344 * dwarf2/read.c (read_attribute_value): Use cu_header
1345 consistently.
1346
0280fdcc
TT
13472021-03-14 Tom Tromey <tom@tromey.com>
1348
1349 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1350 (peek_die_abbrev): Use reader.abfd.
1351
a9f172c6
TT
13522021-03-14 Tom Tromey <tom@tromey.com>
1353
1354 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1355 m_header_read_in.
1356
7c32eebb
TT
13572021-03-13 Tom Tromey <tom@tromey.com>
1358
1359 * dwarf2/read.c (struct partial_die_info): Update.
1360 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
1361 (load_partial_dies, partial_die_info::partial_die_info): Update.
1362 * dwarf2/abbrev.h (lookup_abbrev): Constify.
1363
27012aba
TT
13642021-03-13 Tom Tromey <tom@tromey.com>
1365
1366 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1367
fece451c
CB
13682021-03-12 Christian Biesinger <cbiesinger@google.com>
1369
1370 PR threads/27239
1371 * cp-support.c: Use scoped_segv_handler_restore.
1372 * event-top.c (thread_local_segv_handler): Made static.
1373 (scoped_segv_handler_restore::scoped_segv_handler_restore):
1374 New function.
1375 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1376 function.
1377 * event-top.h (class scoped_segv_handler_restore): New class.
1378 (thread_local_segv_handler): Removed.
1379
7056f312
TT
13802021-03-10 Tom Tromey <tromey@adacore.com>
1381
1382 * parser-defs.h (parser_state): Change completion to bool.
1383 <parse_completion>: Likewise.
1384 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1385 (ada_resolve_variable, ada_resolve_function): Update.
1386 * ada-lang.c (ada_find_operator_symbol): Change
1387 parse_completion to bool.
1388 (ada_resolve_funcall, ada_resolve_variable)
1389 (ada_resolve_function): Likewise.
1390
ccdc02ed
TT
13912021-03-09 Tom Tromey <tromey@adacore.com>
1392
1393 * eval.c (operation::evaluate_funcall): Use function formal
1394 parameter types when evaluating.
1395
fbb1aace
AB
13962021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1397
1398 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
1399 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
1400 and owner to m_owner.
1401
611aa09d
FW
14022021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
1403
1404 * f-exp.h (eval_op_f_loc): Declare.
1405 (expr::fortran_loc_operation): New typedef.
1406 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
1407 UNOP_INTRINSIC.
1408 (f77_keywords): Add LOC keyword.
1409 * f-lang.c (eval_op_f_loc): New function.
1410 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
1411
eef32f59
AB
14122021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1413
1414 * f-exp.h (eval_op_f_array_shape): Declare.
1415 (fortran_array_shape_operation): New type.
1416 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
1417 UNOP_INTRINSIC.
1418 (f77_keywords): Add "shape" keyword.
1419 * f-lang.c (fortran_array_shape): New function.
1420 (eval_op_f_array_shape): New function.
1421 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
1422
7ba155b3
AB
14232021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1424
1425 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
1426 of this function.
1427 (expr::fortran_array_size_1arg): New type.
1428 (expr::fortran_array_size_2arg): Likewise.
1429 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
1430 UNOP_OR_BINOP_INTRINSIC.
1431 (f77_keywords): Add "size" keyword.
1432 * f-lang.c (fortran_array_size): New function.
1433 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
1434 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
1435
e14816a8
AB
14362021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1437
1438 * f-exp.h (eval_op_f_rank): Declare.
1439 (expr::fortran_rank_operation): New typedef.
1440 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
1441 UNOP_INTRINSIC.
1442 (f77_keywords): Add "rank" keyword.
1443 * f-lang.c (eval_op_f_rank): New function.
1444 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
1445
3dd93bf8
TT
14462021-03-08 Tom Tromey <tom@tromey.com>
1447
1448 * printcmd.c (set_command): Remove null check.
1449 * value.c (init_if_undefined_command): Remove null check.
1450
9c79936b
TT
14512021-03-08 Tom Tromey <tom@tromey.com>
1452
1453 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1454 Update.
1455 * p-exp.y (variable): Update.
1456 * go-exp.y (variable): Update.
1457 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
1458 Remove overload for objfile.
1459 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
1460 parameter.
1461 (check_objfile): Likewise.
1462 (dump_for_expression): Likewise. Remove overload for objfile.
1463 (class var_msym_value_operation): Use bound_minimal_symbol.
1464 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
1465 parameter.
1466 (var_msym_value_operation::evaluate_for_address)
1467 (var_msym_value_operation::evaluate_for_sizeof)
1468 (var_msym_value_operation::evaluate_for_cast): Update.
1469 * d-exp.y (PrimaryExpression): Update.
1470 * c-exp.y (variable): Update.
1471 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
1472 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1473 Update.
1474 * ada-exp.y (write_var_or_type): Update.
1475
40d07d07
TT
14762021-03-08 Tom Tromey <tom@tromey.com>
1477
1478 * parser-defs.h (exp_uses_objfile): Return bool.
1479 * parse.c (exp_uses_objfile): Return bool.
1480
0b2b0b82
TT
14812021-03-08 Tom Tromey <tom@tromey.com>
1482
1483 * value.h (eval_skip_value): Don't declare.
1484 * opencl-lang.c (eval_opencl_assign): Update.
1485 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
1486 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1487 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
1488 * expression.h (enum noside) <EVAL_SKIP>: Remove.
1489 * expop.h (typeof_operation::evaluate)
1490 (decltype_operation::evaluate, unop_addr_operation::evaluate)
1491 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
1492 (cxx_cast_operation::evaluate): Update.
1493 * eval.c (eval_skip_value): Remove.
1494 (eval_op_scope, eval_op_var_entry_value)
1495 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
1496 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
1497 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
1498 (eval_op_binary, eval_op_subscript, eval_op_equal)
1499 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
1500 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
1501 (eval_op_complement, eval_op_lognot, eval_op_ind)
1502 (eval_op_memval, eval_op_preinc, eval_op_predec)
1503 (eval_op_postinc, eval_op_postdec, eval_op_type)
1504 (eval_binop_assign_modify, eval_op_objc_msgcall)
1505 (eval_multi_subscript, logical_and_operation::evaluate)
1506 (logical_or_operation::evaluate, array_operation::evaluate)
1507 (operation::evaluate_for_cast)
1508 (var_msym_value_operation::evaluate_for_cast)
1509 (var_value_operation::evaluate_for_cast): Update.
1510 * c-lang.c (c_string_operation::evaluate): Update.
1511 * c-exp.h (objc_nsstring_operation::evaluate)
1512 (objc_selector_operation::evaluate): Update.
1513 * ada-lang.c (ada_assign_operation::evaluate)
1514 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
1515 (ada_atr_size): Update.
1516
96db551d
TT
15172021-03-08 Tom Tromey <tom@tromey.com>
1518
1519 * eval.c: Merge "namespace" scopes.
1520
ce284361
TT
15212021-03-08 Tom Tromey <tom@tromey.com>
1522
1523 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
1524 <release>: Inline.
1525 * parse.c (expr_builder::expr_builder, expr_builder::release):
1526 Remove.
1527
b9d06571
TT
15282021-03-08 Tom Tromey <tom@tromey.com>
1529
1530 * parse.c (expression::expression, expression::~expression):
1531 Remove.
1532 * expression.h (struct expression): Inline constructor. Remove
1533 destructor.
1534
79ab486e
TT
15352021-03-08 Tom Tromey <tom@tromey.com>
1536
1537 * std-operator.def (BINOP_END): Remove.
1538 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
1539 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
1540 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
1541 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
1542 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
1543 BINOP_END.
1544
48fa6f23
TT
15452021-03-08 Tom Tromey <tom@tromey.com>
1546
1547 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
1548
43f542e3
TT
15492021-03-08 Tom Tromey <tom@tromey.com>
1550
1551 * std-operator.def (OP_EXTENDED0): Remove.
1552
5d9ba982
TT
15532021-03-08 Tom Tromey <tom@tromey.com>
1554
1555 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
1556 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
1557 Remove.
1558
d357570d
TT
15592021-03-08 Tom Tromey <tom@tromey.com>
1560
1561 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
1562 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
1563
0922dc84
TT
15642021-03-08 Tom Tromey <tom@tromey.com>
1565
1566 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
1567 * ada-lang.c (ada_binop_minmax): Update.
1568 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1569 Use BINOP_MIN and BINOP_MAX.
1570
1eaebe02
TT
15712021-03-08 Tom Tromey <tom@tromey.com>
1572
1573 * value.h (evaluate_subexp_with_coercion): Don't declare.
1574 * parse.c (exp_descriptor_standard): Remove.
1575 (expr_builder::expr_builder, expr_builder::release): Update.
1576 (expression::expression): Remove size_t parameter.
1577 (expression::~expression): Simplify.
1578 (expression::resize): Remove.
1579 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1580 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1581 (write_exp_elt_longcst, write_exp_elt_floatcst)
1582 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1583 (write_exp_string_vector, write_exp_bitstring): Remove.
1584 * p-lang.h (class pascal_language) <opcode_print_table,
1585 op_print_tab>: Remove.
1586 * p-lang.c (pascal_language::op_print_tab): Remove.
1587 * opencl-lang.c (class opencl_language) <opcode_print_table>:
1588 Remove.
1589 * objc-lang.c (objc_op_print_tab): Remove.
1590 (class objc_language) <opcode_print_table>: Remove.
1591 * m2-lang.h (class m2_language) <opcode_print_table,
1592 op_print_tab>: Remove.
1593 * m2-lang.c (m2_language::op_print_tab): Remove.
1594 * language.h (struct language_defn) <post_parser, expression_ops,
1595 opcode_print_table>: Remove.
1596 * language.c (language_defn::expression_ops)
1597 (auto_or_unknown_language::opcode_print_table): Remove.
1598 * go-lang.h (class go_language) <opcode_print_table,
1599 op_print_tab>: Remove.
1600 * go-lang.c (go_language::op_print_tab): Remove.
1601 * f-lang.h (class f_language) <opcode_print_table>: Remove
1602 <op_print_tab>: Remove.
1603 * f-lang.c (f_language::op_print_tab): Remove.
1604 * expression.h (union exp_element): Remove.
1605 (struct expression): Remove size_t parameter from constructor.
1606 <resize>: Remove.
1607 <first_opcode>: Update.
1608 <nelts, elts>: Remove.
1609 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
1610 (evaluate_subexp_standard, print_expression, op_string)
1611 (dump_raw_expression): Don't declare.
1612 * expprint.c (print_expression, print_subexp)
1613 (print_subexp_funcall, print_subexp_standard, op_string)
1614 (dump_raw_expression, dump_subexp, dump_subexp_body)
1615 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
1616 (dump_prefix_expression): Update.
1617 * eval.c (evaluate_subexp): Remove.
1618 (evaluate_expression, evaluate_type): Update.
1619 (evaluate_subexpression_type): Remove.
1620 (fetch_subexp_value): Remove "pc" parameter. Update.
1621 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
1622 (evaluate_subexp_standard, evaluate_subexp_for_address)
1623 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
1624 (evaluate_subexp_for_cast): Remove.
1625 (parse_and_eval_type): Update.
1626 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1627 * d-lang.c (d_op_print_tab): Remove.
1628 (class d_language) <opcode_print_table>: Remove.
1629 * c-lang.h (c_op_print_tab): Don't declare.
1630 * c-lang.c (c_op_print_tab): Remove.
1631 (class c_language, class cplus_language, class asm_language, class
1632 minimal_language) <opcode_print_table>: Remove.
1633 * breakpoint.c (update_watchpoint, watchpoint_check)
1634 (watchpoint_exp_is_const, watch_command_1): Update.
1635 * ax-gdb.h (union exp_element): Don't declare.
1636 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
1637 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
1638 (gen_expr_binop_rest): Remove.
1639 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
1640 * ada-lang.c (ada_op_print_tab): Remove.
1641 (class ada_language) <post_parser, opcode_print_table>: Remove.
1642
f2a98603
TT
16432021-03-08 Tom Tromey <tom@tromey.com>
1644
1645 * go-lang.c (go_language::expression_ops): Don't declare.
1646 * go-lang.h (class go_language) <expression_ops>: Remove.
1647 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
1648 Remove.
1649 (class opencl_language) <expression_ops>: Remove.
1650 * d-lang.c (class d_language) <expression_ops>: Remove.
1651 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
1652 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
1653 (class c_language, class cplus_language, class asm_language)
1654 (class minimal_language) <expression_ops>: Remove.
1655
d3c54a1c
TT
16562021-03-08 Tom Tromey <tom@tromey.com>
1657
1658 * ada-lang.c (resolve_subexp, replace_operator_with_call)
1659 (evaluate_subexp_type, assign_aggregate)
1660 (aggregate_assign_positional, aggregate_assign_from_choices)
1661 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
1662 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
1663 (ada_operator_check, ada_forward_operator_length)
1664 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
1665 Remove.
1666 (post_parser): Update.
1667 (class ada_language) <expresssion_ops>: Remove.
1668
5871f0a3
TT
16692021-03-08 Tom Tromey <tom@tromey.com>
1670
1671 * m2-lang.h (class m2_language) <expresssion_ops,
1672 exp_descriptor_modula2>: Remove.
1673 * m2-lang.c (evaluate_subexp_modula2)
1674 (m2_language::exp_descriptor_modula2): Remove.
1675
a99be8c1
TT
16762021-03-08 Tom Tromey <tom@tromey.com>
1677
1678 * f-lang.h (class f_language) <expresssion_ops>: Remove.
1679 <exp_descriptor_tab>: Remove.
1680 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
1681 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
1682 (print_subexp_f, dump_subexp_body_f, operator_check_f)
1683 (f_language::exp_descriptor_tab, fortran_prepare_argument):
1684 Remove.
1685
aa1da9ed
TT
16862021-03-08 Tom Tromey <tom@tromey.com>
1687
1688 * rust-lang.h (class rust_language) <expression_ops,
1689 exp_descriptor_tab>: Remove.
1690 * rust-lang.c (rust_evaluate_funcall): Remove.
1691 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
1692 EVAL_SKIP.
1693 (rust_evaluate_subexp): Remove.
1694 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
1695 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
1696 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
1697
08a057e6
TT
16982021-03-08 Tom Tromey <tom@tromey.com>
1699
1700 * ada-exp.y: Create operations.
1701 (empty_stoken): Remove.
1702 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
1703 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
1704 (components): New global.
1705 (push_component, choice_component, pop_component, pop_components):
1706 New functions.
1707 (associations): New global
1708 (push_association, pop_association, pop_associations): New
1709 functions.
1710 (ada_parse): Update.
1711 (write_var_from_sym, write_int): Create operations.
1712 (write_exp_op_with_string): Remove.
1713 (write_object_renaming, write_selectors, write_ambiguous_var)
1714 (write_var_or_type, write_name_assoc): Create operations.
1715 * ada-lang.h (ada_index_type): Declare.
1716 * ada-lang.c (ada_index_type): No longer static.
1717
d308ba78
TT
17182021-03-08 Tom Tromey <tom@tromey.com>
1719
1720 * f-exp.y: Create operations.
1721 (f_language::parser): Update.
1722
f1b8ceef
TT
17232021-03-08 Tom Tromey <tom@tromey.com>
1724
1725 * m2-exp.y: Create operations.
1726 (m2_language::parser): Update.
1727
3163898e
TT
17282021-03-08 Tom Tromey <tom@tromey.com>
1729
1730 * p-exp.y: Create operations.
1731 (pascal_language::parser): Update.
1732
9412fdcc
TT
17332021-03-08 Tom Tromey <tom@tromey.com>
1734
1735 * d-exp.y: Create operations.
1736 (d_parse): Update.
1737
bb4e0574
TT
17382021-03-08 Tom Tromey <tom@tromey.com>
1739
1740 * go-exp.y: Create operations.
1741 (go_language::parser): Update.
1742
d182f279
TT
17432021-03-08 Tom Tromey <tom@tromey.com>
1744
1745 * objc-lang.c (end_msglist): Create operations.
1746 * c-exp.y: Change parser to create operations.
1747 (write_destructor_name): Remove.
1748 (c_parse): Update.
1749
c1299a23
TT
17502021-03-08 Tom Tromey <tom@tromey.com>
1751
1752 * rust-exp.y: Create operations.
1753 (rust_parser::convert_params_to_expression): Change return type.
1754 (binop_maker_ftype): New typedef.
1755 (maker_map): New global.
1756 (rust_parser::convert_ast_to_expression): Change return type.
1757 (rust_language::parser): Update.
1758 (_initialize_rust_exp): Initialize maker_map.
1759
4c5e7a93
TT
17602021-03-08 Tom Tromey <tom@tromey.com>
1761
1762 * stap-probe.c (binop_maker_ftype): New typedef.
1763 (stap_maker_map): New global.
1764 (stap_make_binop): New function.
1765 (stap_parse_register_operand): Return operation_up.
1766 (stap_parse_single_operand, stap_parse_argument_conditionally)
1767 (stap_parse_argument_1): Likewise.
1768 (stap_parse_argument): Create operations.
1769 (stap_probe::parse_arguments): Update.
1770 (_initialize_stap_probe): Initialize stap_maker_map.
1771 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
1772 type.
1773 * i386-tdep.h (i386_stap_parse_special_token): Change return
1774 type.
1775 * i386-tdep.c (i386_stap_parse_special_token_triplet)
1776 (i386_stap_parse_special_token_three_arg_disp)
1777 (i386_stap_parse_special_token): Change return type.
1778 * gdbarch.sh (stap_parse_special_token): Change return type.
1779 * gdbarch.c: Rebuild.
1780 * gdbarch.h: Rebuild.
1781 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
1782 type.
1783 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
1784 return type.
1785
482ddd69
TT
17862021-03-08 Tom Tromey <tom@tromey.com>
1787
1788 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
1789 * gdbarch.h: Rebuild.
1790 * gdbarch.c: Rebuild.
1791 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1792 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
1793 return type.
1794 (amd64_dtrace_parse_probe_argument): Update.
1795
8227d9e2
TT
17962021-03-08 Tom Tromey <tom@tromey.com>
1797
1798 * parser-defs.h (struct parser_state) <push, push_new,
1799 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
1800 wrap2>: New methods.
1801 <m_operations>: New member.
1802 * parse.c (parser_state::push_c_string)
1803 (parser_state::push_symbol, parser_state::push_dollar): New
1804 methods.
1805
4933522d
TT
18062021-03-08 Tom Tromey <tom@tromey.com>
1807
1808 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
1809 New member.
1810 (struct parser_state) <mark_struct_expression>: New method.
1811 * parse.c (parser_state::mark_struct_expression): Update assert.
1812 (parser_state::mark_struct_expression): New method.
1813 (parser_state::mark_completion_tag): Update assert.
1814 (parse_expression_for_completion): Handle expout_last_op.
1815
413403fc
TT
18162021-03-08 Tom Tromey <tom@tromey.com>
1817
1818 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
1819 now in superclass.
1820 * value.h (fetch_subexp_value): Add "op" parameter.
1821 * value.c (init_if_undefined_command): Update.
1822 * tracepoint.c (validate_actionline, encode_actions_1): Update.
1823 * stap-probe.c (stap_probe::compile_to_ax): Update.
1824 * printcmd.c (set_command): Update.
1825 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
1826 Update.
1827 * parser-defs.h (struct expr_builder) <set_operation>: New
1828 method.
1829 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
1830 * expression.h (struct expression) <first_opcode>: Update.
1831 <op>: New member.
1832 * expprint.c (dump_raw_expression, dump_prefix_expression):
1833 Update.
1834 * expop.h (class var_value_operation) <get_symbol>: New method.
1835 (class register_operation) <get_name>: New method.
1836 (class equal_operation): No longer a typedef, now a subclass.
1837 (class unop_memval_operation) <get_type>: New method.
1838 (class assign_operation) <get_lhs>: New method.
1839 (class unop_cast_operation) <get_type>: New method.
1840 * eval.c (evaluate_expression, evaluate_type)
1841 (evaluate_subexpression_type): Update.
1842 (fetch_subexp_value): Add "op" parameter.
1843 (parse_and_eval_type): Update.
1844 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1845 * breakpoint.c (update_watchpoint, watchpoint_check)
1846 (watchpoint_exp_is_const, watch_command_1): Update.
1847 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
1848 Update.
1849
b0f9164c
TT
18502021-03-08 Tom Tromey <tom@tromey.com>
1851
1852 * ada-lang.c (ada_value_binop): Do not use op_string.
1853
a88c4354
TT
18542021-03-08 Tom Tromey <tom@tromey.com>
1855
1856 * expprint.c (dump_for_expression): New overload.
1857 * expop.h (check_objfile, dump_for_expression): Declare new
1858 overloads.
1859 * ada-lang.c (check_objfile): New overload.
1860 (assign_component, ada_aggregate_component::uses_objfile)
1861 (ada_aggregate_component::dump, ada_aggregate_component::assign)
1862 (ada_aggregate_component::assign_aggregate)
1863 (ada_positional_component::uses_objfile)
1864 (ada_positional_component::dump, ada_positional_component::assign)
1865 (ada_discrete_range_association::uses_objfile)
1866 (ada_discrete_range_association::dump)
1867 (ada_discrete_range_association::assign)
1868 (ada_name_association::uses_objfile, ada_name_association::dump)
1869 (ada_name_association::assign)
1870 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1871 (ada_choices_component::assign)
1872 (ada_others_component::uses_objfile, ada_others_component::dump)
1873 (ada_others_component::assign, ada_assign_operation::evaluate):
1874 New methods.
1875 * ada-exp.h (ada_string_operation) <get_name>: New method.
1876 (class ada_assign_operation): New.
1877 (class ada_component): New.
1878 (ada_component_up): New typedef.
1879 (class ada_aggregate_operation, class ada_aggregate_component)
1880 (class ada_positional_component, class ada_others_component)
1881 (class ada_association): New.
1882 (ada_association_up): New typedef.
1883 (class ada_choices_component)
1884 (class ada_discrete_range_association)
1885 (class ada_name_association): New.
1886
d8a4ed8a
TT
18872021-03-08 Tom Tromey <tom@tromey.com>
1888
1889 * ada-lang.c (ada_var_value_operation::resolve)
1890 (ada_funcall_operation::resolve)
1891 (ada_ternop_slice_operation::resolve): New methods.
1892 * ada-exp.h (struct ada_resolvable): New.
1893 (class ada_var_value_operation): Derive from ada_resolvable.
1894 <get_block, resolve>: New methods.
1895 (class ada_funcall_operation): Derive from ada_resolvable.
1896 <resolve>: New method.
1897 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1898 <resolve>: New method.
1899
efe3af2f
TT
19002021-03-08 Tom Tromey <tom@tromey.com>
1901
1902 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1903 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1904 method.
1905 (class ada_funcall_operation): New.
1906
ebc06ad8
TT
19072021-03-08 Tom Tromey <tom@tromey.com>
1908
1909 * ada-lang.c (ada_structop_operation::evaluate): New method.
1910 * ada-exp.h (class ada_structop_operation): New.
1911
e8c33fa1
TT
19122021-03-08 Tom Tromey <tom@tromey.com>
1913
1914 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1915 * ada-exp.h (class ada_unop_ind_operation): New.
1916
065ec826
TT
19172021-03-08 Tom Tromey <tom@tromey.com>
1918
1919 * ada-lang.c (ada_binop_exp): No longer static.
1920 * ada-exp.h (ada_binop_exp_operation): New typedef.
1921
9e99f48f
TT
19222021-03-08 Tom Tromey <tom@tromey.com>
1923
1924 * ada-lang.c (ada_val_atr): No longer static.
1925 (ada_atr_val_operation::evaluate): New method.
1926 * ada-exp.h (class ada_atr_val_operation): New.
1927
7631cf6c
TT
19282021-03-08 Tom Tromey <tom@tromey.com>
1929
1930 * ada-lang.c (ada_pos_atr): No longer static.
1931 * ada-exp.h (ada_pos_operation): New typedef.
1932
7992accc
TT
19332021-03-08 Tom Tromey <tom@tromey.com>
1934
1935 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1936 parameters.
1937 (ada_evaluate_subexp): Use it.
1938
6ad3b8bf
TT
19392021-03-08 Tom Tromey <tom@tromey.com>
1940
1941 * ada-lang.c (ada_binop_minmax): No longer static.
1942 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1943 New typedefs.
1944
3f4a0053
TT
19452021-03-08 Tom Tromey <tom@tromey.com>
1946
1947 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1948 New method.
1949 * ada-exp.h (class ada_var_msym_value_operation): New.
1950
99a3b1e7
TT
19512021-03-08 Tom Tromey <tom@tromey.com>
1952
1953 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1954 (ada_var_value_operation::evaluate): New methods.
1955 * ada-exp.h (class ada_var_value_operation): New.
1956
60fa02ca
TT
19572021-03-08 Tom Tromey <tom@tromey.com>
1958
1959 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1960 * ada-exp.h (class ada_unop_atr_operation): New.
1961
82c3886e
TT
19622021-03-08 Tom Tromey <tom@tromey.com>
1963
1964 * ada-lang.c (ada_binop_in_bounds): No longer static.
1965 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1966
1b1ebfab
TT
19672021-03-08 Tom Tromey <tom@tromey.com>
1968
1969 * ada-lang.c (ada_ternop_slice): No longer static.
1970 * ada-exp.h (class ada_ternop_slice_operation): New.
1971
039e4b76
TT
19722021-03-08 Tom Tromey <tom@tromey.com>
1973
1974 * ada-exp.h (ada_bitwise_operation): New template class.
1975 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1976 (ada_bitwise_xor_operation): New typedefs.
1977
6e8fb7b7
TT
19782021-03-08 Tom Tromey <tom@tromey.com>
1979
1980 * ada-lang.c (ada_equal_binop): No longer static.
1981 * ada-exp.h (class ada_binop_equal_operation): New.
1982
d9e7db06
TT
19832021-03-08 Tom Tromey <tom@tromey.com>
1984
1985 * ada-lang.c (ada_mult_binop): No longer static.
1986 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1987 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1988
73796c73
TT
19892021-03-08 Tom Tromey <tom@tromey.com>
1990
1991 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1992 * ada-exp.h (class ada_binop_addsub_operation): New.
1993
cd9a3148
TT
19942021-03-08 Tom Tromey <tom@tromey.com>
1995
1996 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1997 (ada_resolve_variable): Declare.
1998 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1999 (ada_resolve_variable): New functions.
2000 (resolve_subexp): Update.
2001
cf12b17f
TT
20022021-03-08 Tom Tromey <tom@tromey.com>
2003
2004 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
2005 method.
2006 * c-exp.h (class opencl_ternop_cond_operation): New.
2007
944fd3b8
TT
20082021-03-08 Tom Tromey <tom@tromey.com>
2009
2010 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
2011 method.
2012 * c-exp.h (class opencl_logical_binop_operation): New.
2013
33b79214
TT
20142021-03-08 Tom Tromey <tom@tromey.com>
2015
2016 * opencl-lang.c (opencl_structop_operation::evaluate): New
2017 method.
2018 * c-exp.h (class opencl_structop_operation): New.
2019
2492ba36
TT
20202021-03-08 Tom Tromey <tom@tromey.com>
2021
2022 * opencl-lang.c (opencl_logical_not): No longer static. Change
2023 parameters.
2024 (evaluate_subexp_opencl): Update.
2025 * c-exp.h (opencl_notequal_operation): New typedef.
2026
a88c3c8d
TT
20272021-03-08 Tom Tromey <tom@tromey.com>
2028
2029 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
2030 static. Change parameters.
2031 (eval_opencl_assign): No longer static. Add "op" parameter.
2032 (evaluate_subexp_opencl): Update.
2033 * c-exp.h (opencl_binop_operation): New template class.
2034 (opencl_assign_operation, opencl_equal_operation)
2035 (opencl_notequal_operation, opencl_less_operation)
2036 (opencl_gtr_operation, opencl_geq_operation)
2037 (opencl_leq_operation): New typedefs.
2038
e9677704
TT
20392021-03-08 Tom Tromey <tom@tromey.com>
2040
2041 * opencl-lang.c (opencl_value_cast): No longer static.
2042 * c-exp.h (opencl_cast_type_operation): New typedef.
2043
f403a4e4
TT
20442021-03-08 Tom Tromey <tom@tromey.com>
2045
2046 * f-exp.h (eval_op_f_allocated): Declare.
2047 (fortran_allocated_operation): New typedef.
2048 * f-lang.c (eval_op_f_allocated): No longer static.
2049
eb4c9271
TT
20502021-03-08 Tom Tromey <tom@tromey.com>
2051
2052 * f-lang.c (eval_op_f_associated): New functions.
2053 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
2054 typedefs.
2055
58a76c72
TT
20562021-03-08 Tom Tromey <tom@tromey.com>
2057
2058 * f-lang.c (fortran_bound_1arg::evaluate)
2059 (fortran_bound_2arg::evaluate): New methods.
2060 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
2061 New.
2062
2f98abe1
TT
20632021-03-08 Tom Tromey <tom@tromey.com>
2064
2065 * expop.h (class unop_addr_operation) <get_expression>: New
2066 method.
2067 * f-lang.c (fortran_undetermined::value_subarray)
2068 (fortran_undetermined::evaluate): New methods.
2069 (fortran_prepare_argument): New overload.
2070 * f-exp.h (class fortran_range_operation)
2071 (class fortran_undetermined): New classes.
2072
638fd74a
TT
20732021-03-08 Tom Tromey <tom@tromey.com>
2074
2075 * rust-lang.c (rust_structop::evaluate_funcall): New method.
2076 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
2077 method.
2078
a00b7254
TT
20792021-03-08 Tom Tromey <tom@tromey.com>
2080
2081 * expression.h (class operation) <evaluate_funcall>: New methods.
2082 * expop.h (class scope_operation) <evaluate_funcall>: New method.
2083 (class var_value_operation) <evaluate_funcall>: New method.
2084 (class structop_base_operation) <evaluate_funcall>: New method.
2085 (class var_msym_value_operation) <evaluate_funcall>: New method.
2086 (class structop_member_base): New class.
2087 (class structop_member_operation): Derive from
2088 structop_member_base.
2089 (class structop_mptr_operation): Derive from
2090 structop_member_base.
2091 (class funcall_operation): New class.
2092 * eval.c (operation::evaluate_funcall)
2093 (var_value_operation::evaluate_funcall)
2094 (scope_operation::evaluate_funcall)
2095 (structop_member_base::evaluate_funcall)
2096 (structop_base_operation::evaluate_funcall): New methods.
2097
1c02eb30
TT
20982021-03-08 Tom Tromey <tom@tromey.com>
2099
2100 * expop.h (class array_operation): New.
2101 * eval.c (array_operation::evaluate_struct_tuple)
2102 (array_operation::evaluate): New methods.
2103
e4479080
TT
21042021-03-08 Tom Tromey <tom@tromey.com>
2105
2106 * expop.h (class adl_func_operation): New.
2107 * eval.c (adl_func_operation::evaluate): New method.
2108
95d49dfb
TT
21092021-03-08 Tom Tromey <tom@tromey.com>
2110
2111 * ada-lang.c (ada_unop_in_range): No longer static.
2112 * ada-exp.h (class ada_unop_range_operation): New.
2113
7c15d377
TT
21142021-03-08 Tom Tromey <tom@tromey.com>
2115
2116 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2117 No longer static.
2118 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2119 (ada_atr_size_operation, ada_abs_operation): New typedefs.
2120
5019124b
TT
21212021-03-08 Tom Tromey <tom@tromey.com>
2122
2123 * expop.h (class logical_and_operation)
2124 (class logical_or_operation): New.
2125 * eval.c (logical_and_operation::evaluate)
2126 (logical_or_operation::evaluate): New methods.
2127 * ax-gdb.c (logical_and_operation::do_generate_ax)
2128 (logical_or_operation::do_generate_ax): New methods.
2129
2bc9b40c
TT
21302021-03-08 Tom Tromey <tom@tromey.com>
2131
2132 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2133 static.
2134 * m2-exp.h: New file.
2135
5947d337
TT
21362021-03-08 Tom Tromey <tom@tromey.com>
2137
2138 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
2139 * rust-exp.h (class rust_aggregate_operation): New.
2140
e4407a20
TT
21412021-03-08 Tom Tromey <tom@tromey.com>
2142
2143 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
2144 No longer static.
2145 * rust-exp.h (class rust_struct_anon): New.
2146 (class rust_structop): New.
2147
9db6b6dd
TT
21482021-03-08 Tom Tromey <tom@tromey.com>
2149
2150 * rust-lang.c (rust_range): No longer static.
2151 * rust-exp.h (class rust_range_operation): New.
2152
6ce1ad67
TT
21532021-03-08 Tom Tromey <tom@tromey.com>
2154
2155 * rust-lang.c (rust_subscript): No longer static.
2156 * rust-exp.h (class rust_subscript_operation): New.
2157
11dd3dce
TT
21582021-03-08 Tom Tromey <tom@tromey.com>
2159
2160 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
2161 parameter.
2162 (rust_evaluate_subexp): Update.
2163 * rust-exp.h (class rust_unop_ind_operation): New.
2164
6fab4359
TT
21652021-03-08 Tom Tromey <tom@tromey.com>
2166
2167 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
2168 longer static. Add "opcode" parameter.
2169 (rust_evaluate_subexp): Update.
2170 * rust-exp.h: New file.
2171
9dcd3e29
TT
21722021-03-08 Tom Tromey <tom@tromey.com>
2173
2174 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2175 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
2176 (eval_op_f_kind): No longer static. Add "opcode" parameter.
2177 (evaluate_subexp_f): Update.
2178 * f-exp.h: New file.
2179
fc715eb2
TT
21802021-03-08 Tom Tromey <tom@tromey.com>
2181
2182 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
2183 * ada-exp.h (class ada_ternop_range_operation): New.
2184
cc6bd32e
TT
21852021-03-08 Tom Tromey <tom@tromey.com>
2186
2187 * ada-lang.c (ada_qual_operation::evaluate): New method.
2188 * ada-exp.h (class ada_qual_operation): New.
2189
42fecb61
TT
21902021-03-08 Tom Tromey <tom@tromey.com>
2191
2192 * ada-lang.c (ada_string_operation::evaluate): New method.
2193 * ada-exp.h (class ada_string_operation): New.
2194
03070ee9
TT
21952021-03-08 Tom Tromey <tom@tromey.com>
2196
2197 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2198 * ada-exp.h: New file.
2199
821e72d7
TT
22002021-03-08 Tom Tromey <tom@tromey.com>
2201
2202 * expop.h (class multi_subscript_operation): New.
2203 * eval.c (multi_subscript_operation::evaluate): New method.
2204
085734dd
TT
22052021-03-08 Tom Tromey <tom@tromey.com>
2206
2207 * eval.c (objc_msgcall_operation::evaluate): New method.
2208 * c-exp.h (class objc_msgcall_operation): New.
2209
e82a5afc
TT
22102021-03-08 Tom Tromey <tom@tromey.com>
2211
2212 * expop.h (class var_value_operation): New.
2213 * eval.c (var_value_operation::evaluate)
2214 (var_value_operation::evaluate_for_address)
2215 (var_value_operation::evaluate_with_coercion)
2216 (var_value_operation::evaluate_for_sizeof)
2217 (var_value_operation::evaluate_for_cast): New methods.
2218 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
2219
d9ad79d8
TT
22202021-03-08 Tom Tromey <tom@tromey.com>
2221
2222 * expop.h (cxx_cast_ftype): New typedef.
2223 (cxx_cast_operation): New template.
2224 (dynamic_cast_operation, reinterpret_cast_operation): New
2225 typedefs.
2226
292382f4
TT
22272021-03-08 Tom Tromey <tom@tromey.com>
2228
2229 * expop.h (class unop_cast_type_operation): New.
2230 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
2231 method.
2232
165a813a
TT
22332021-03-08 Tom Tromey <tom@tromey.com>
2234
2235 * expop.h (class unop_cast_operation): New.
2236 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
2237
e5946e16
TT
22382021-03-08 Tom Tromey <tom@tromey.com>
2239
2240 * expop.h (class assign_modify_operation): New.
2241 * eval.c (eval_binop_assign_modify): No longer static.
2242 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
2243
40786782
TT
22442021-03-08 Tom Tromey <tom@tromey.com>
2245
2246 * expop.h (class assign_operation): New.
2247 * ax-gdb.c (assign_operation::do_generate_ax): New method.
2248
44b675c8
TT
22492021-03-08 Tom Tromey <tom@tromey.com>
2250
2251 * expop.h (class type_instance_operation): New.
2252 * eval.c (type_instance_operation::evaluate): New method.
2253
f6b42326
TT
22542021-03-08 Tom Tromey <tom@tromey.com>
2255
2256 * expop.h (class op_this_operation): New.
2257 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
2258
cbc18219
TT
22592021-03-08 Tom Tromey <tom@tromey.com>
2260
2261 * expop.h (class unop_memval_operation)
2262 (class unop_memval_type_operation): New.
2263 * eval.c (eval_op_memval): No longer static.
2264 (unop_memval_operation::evaluate_for_address)
2265 (unop_memval_type_operation::evaluate_for_address)
2266 (unop_memval_operation::evaluate_for_sizeof)
2267 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
2268 * ax-gdb.c (unop_memval_operation::do_generate_ax)
2269 (unop_memval_type_operation::do_generate_ax): New methods.
2270
ae4bb61e
TT
22712021-03-08 Tom Tromey <tom@tromey.com>
2272
2273 * expop.h (class unop_alignof_operation): New.
2274 * eval.c (eval_op_alignof): No longer static.
2275
85d23bda
TT
22762021-03-08 Tom Tromey <tom@tromey.com>
2277
2278 * expop.h (class unop_sizeof_operation): New.
2279 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
2280
14aff815
TT
22812021-03-08 Tom Tromey <tom@tromey.com>
2282
2283 * expop.h (class unop_addr_operation): New.
2284 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
2285
929f3aa7
TT
22862021-03-08 Tom Tromey <tom@tromey.com>
2287
2288 * expop.h (class typeid_operation): New.
2289
0af8829e
TT
22902021-03-08 Tom Tromey <tom@tromey.com>
2291
2292 * expop.h (class decltype_operation): New.
2293
4efc574c
TT
22942021-03-08 Tom Tromey <tom@tromey.com>
2295
2296 * expop.h (class typeof_operation): New.
2297
5b5f5140
TT
22982021-03-08 Tom Tromey <tom@tromey.com>
2299
2300 * expop.h (class type_operation): New.
2301 * eval.c (eval_op_type): No longer static.
2302
876469ff
TT
23032021-03-08 Tom Tromey <tom@tromey.com>
2304
2305 * expop.h (class unop_ind_base_operation)
2306 (class unop_ind_operation): New.
2307 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
2308 (unop_ind_base_operation::evaluate_for_address)
2309 (unop_ind_base_operation::evaluate_for_sizeof): New method.
2310 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
2311
6d89e296
TT
23122021-03-08 Tom Tromey <tom@tromey.com>
2313
2314 * expop.h (unop_incr_operation): New template.
2315 (preinc_operation, predec_operation, postinc_operation)
2316 (postdec_operation): New typedefs.
2317 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
2318 (eval_op_postdec): No longer static.
2319
9307d17b
TT
23202021-03-08 Tom Tromey <tom@tromey.com>
2321
2322 * expop.h (unary_ftype): New typedef.
2323 (unop_operation, usual_ax_binop_operation): New templates.
2324 (unary_plus_operation, unary_neg_operation)
2325 (unary_complement_operation, unary_logical_not_operation): New
2326 typedefs.
2327 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
2328 (eval_op_lognot): No longer static.
2329 * ax-gdb.c (gen_expr_unop): New function.
2330
ae64ba58
TT
23312021-03-08 Tom Tromey <tom@tromey.com>
2332
2333 * ax-gdb.c (comma_operation::do_generate_ax): New method.
2334
d4eff4c1
TT
23352021-03-08 Tom Tromey <tom@tromey.com>
2336
2337 * expop.h (class repeat_operation): New.
2338 * eval.c (eval_op_repeat): No longer static. Remove "op"
2339 parameter.
2340 (evaluate_subexp_standard): Update.
2341 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2342
46916f2b
TT
23432021-03-08 Tom Tromey <tom@tromey.com>
2344
2345 * expop.h (class comparison_operation): New.
2346 (equal_operation, notequal_operation, less_operation)
2347 (gtr_operation, geq_operation, leq_operation): New typedefs.
2348 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
2349 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
2350
224d6424
TT
23512021-03-08 Tom Tromey <tom@tromey.com>
2352
2353 * expop.h (class subscript_operation): New.
2354 * eval.c (eval_op_subscript): No longer static.
2355
373907ff
TT
23562021-03-08 Tom Tromey <tom@tromey.com>
2357
2358 * expop.h (class binop_operation, class usual_ax_binop_operation):
2359 New.
2360 (exp_operation, intdiv_operation, mod_operation, mul_operation)
2361 (div_operation, rem_operation, lsh_operation, rsh_operation)
2362 (bitwise_and_operation, bitwise_ior_operation)
2363 (bitwise_xor_operation): New typedefs.
2364 * eval.c (eval_op_binary): No longer static.
2365
5133d78b
TT
23662021-03-08 Tom Tromey <tom@tromey.com>
2367
2368 * expop.h (class sub_operation): New.
2369 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
2370 (evaluate_subexp_standard): Update.
2371
a94323b6
TT
23722021-03-08 Tom Tromey <tom@tromey.com>
2373
2374 * expop.h (class add_operation): New.
2375 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
2376 (evaluate_subexp_standard): Update.
2377
e51e26a0
TT
23782021-03-08 Tom Tromey <tom@tromey.com>
2379
2380 * expop.h (class concat_operation): New.
2381 * eval.c (eval_op_concat): No longer static. Remove "op"
2382 parameter.
2383 (evaluate_subexp_standard): Update.
2384
07f724a8
TT
23852021-03-08 Tom Tromey <tom@tromey.com>
2386
2387 * expop.h (class structop_member_operation)
2388 (class structop_mptr_operation): New.
2389 * eval.c (eval_op_member): No longer static.
2390
ab0609be
TT
23912021-03-08 Tom Tromey <tom@tromey.com>
2392
2393 * expop.h (class structop_ptr_operation): New.
2394 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
2395 parameter.
2396
808b22cf
TT
23972021-03-08 Tom Tromey <tom@tromey.com>
2398
2399 * expop.h (class structop_base_operation)
2400 (class structop_operation): New.
2401 * eval.c (eval_op_structop_struct): No longer static.
2402
8cfd3e95
TT
24032021-03-08 Tom Tromey <tom@tromey.com>
2404
2405 * expop.h (class complex_operation): New.
2406
09db3700
TT
24072021-03-08 Tom Tromey <tom@tromey.com>
2408
2409 * eval.c (eval_op_objc_selector): No longer static.
2410 * c-exp.h (class objc_selector_operation): New.
2411
06dc61b9
TT
24122021-03-08 Tom Tromey <tom@tromey.com>
2413
2414 * eval.c: Include c-exp.h.
2415 * c-exp.h (class objc_nsstring_operation): New.
2416
72d0a711
TT
24172021-03-08 Tom Tromey <tom@tromey.com>
2418
2419 * c-lang.c (c_string_operation::evaluate): New method.
2420 * c-exp.h: New file.
2421
9186293f
TT
24222021-03-08 Tom Tromey <tom@tromey.com>
2423
2424 * expop.h (class ternop_cond_operation): New.
2425 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
2426
1594e0bb
TT
24272021-03-08 Tom Tromey <tom@tromey.com>
2428
2429 * expop.h (class ternop_slice_operation): New.
2430 * eval.c (eval_op_ternop): No longer static.
2431
b50db09f
TT
24322021-03-08 Tom Tromey <tom@tromey.com>
2433
2434 * expop.h (class string_operation): New.
2435 * eval.c (eval_op_string): No longer static.
2436
e6e01e16
TT
24372021-03-08 Tom Tromey <tom@tromey.com>
2438
2439 * expop.h (class internalvar_operation): New.
2440 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
2441
e6985c5e
TT
24422021-03-08 Tom Tromey <tom@tromey.com>
2443
2444 * expop.h (class bool_operation): New.
2445
55bdbff8
TT
24462021-03-08 Tom Tromey <tom@tromey.com>
2447
2448 * expop.h (class register_operation): New.
2449 * eval.c (eval_op_register): No longer static.
2450 * ax-gdb.c (register_operation::do_generate_ax): New method.
2451
247d935b
TT
24522021-03-08 Tom Tromey <tom@tromey.com>
2453
2454 * expop.h (class last_operation): New.
2455
17679395
TT
24562021-03-08 Tom Tromey <tom@tromey.com>
2457
2458 * expop.h (class func_static_var_operation): New.
2459 * eval.c (eval_op_func_static_var): No longer static.
2460
b5cc3923
TT
24612021-03-08 Tom Tromey <tom@tromey.com>
2462
2463 * expop.h (class var_entry_value_operation): New.
2464 * eval.c (eval_op_var_entry_value): No longer static.
2465
0c8effa3
TT
24662021-03-08 Tom Tromey <tom@tromey.com>
2467
2468 * expression.h (class operation) <set_outermost>: New method.
2469 * expop.h (class var_msym_value_operation): New.
2470 * eval.c (eval_op_var_msym_value): No longer static.
2471 (var_msym_value_operation::evaluate_for_address)
2472 (var_msym_value_operation::evaluate_for_sizeof)
2473 (var_msym_value_operation::evaluate_for_cast): New methods.
2474 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
2475 method.
2476
d336c29e
TT
24772021-03-08 Tom Tromey <tom@tromey.com>
2478
2479 * expop.h (class long_const_operation): New.
2480 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
2481
d5ab122c
TT
24822021-03-08 Tom Tromey <tom@tromey.com>
2483
2484 * expop.h (class scope_operation): New.
2485 * eval.c (eval_op_scope): No longer static.
2486 (scope_operation::evaluate_for_address): New method.
2487 * ax-gdb.c (scope_operation::do_generate_ax): New method.
2488
cae26a0c
TT
24892021-03-08 Tom Tromey <tom@tromey.com>
2490
2491 * expprint.c (float_const_operation::dump): New method.
2492 * expop.h (float_data): New typedef.
2493 (class float_const_operation): New.
2494
75f9892d
TT
24952021-03-08 Tom Tromey <tom@tromey.com>
2496
2497 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
2498 * ax-gdb.c (gen_expr_binop): New function.
2499 (gen_expr_structop): Likewise.
2500
de401988
TT
25012021-03-08 Tom Tromey <tom@tromey.com>
2502
2503 * expprint.c (expr::dump_for_expression): New functions.
2504 * expop.h (dump_for_expression): New overloads.
2505 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
2506 Update.
2507
e2803273
TT
25082021-03-08 Tom Tromey <tom@tromey.com>
2509
2510 * expression.h (expr::operation): New class.
2511 (expr::make_operation): New function.
2512 (expr::operation_up): New typedef.
2513 * expop.h: New file.
2514 * eval.c (operation::evaluate_for_cast)
2515 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
2516 New methods.
2517 * ax-gdb.c (operation::generate_ax): New method.
2518
e18c58f2
TT
25192021-03-08 Tom Tromey <tom@tromey.com>
2520
2521 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
2522 (gen_expr_binop_rest): New overload.
2523
c0d7ed8c
TT
25242021-03-08 Tom Tromey <tom@tromey.com>
2525
2526 * eval.c (eval_multi_subscript): New function.
2527 (evaluate_subexp_standard): Use it.
2528
dd5fd283
TT
25292021-03-08 Tom Tromey <tom@tromey.com>
2530
2531 * ada-lang.c (ada_binop_exp): New function.
2532 (ada_evaluate_subexp): Use it.
2533
3848abd6
TT
25342021-03-08 Tom Tromey <tom@tromey.com>
2535
2536 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
2537 parameters.
2538 (ada_evaluate_subexp): Use it.
2539
38dc70cf
TT
25402021-03-08 Tom Tromey <tom@tromey.com>
2541
2542 * ada-lang.c (ada_binop_minmax): New function.
2543 (ada_evaluate_subexp): Use it.
2544
b84564fc
TT
25452021-03-08 Tom Tromey <tom@tromey.com>
2546
2547 * ada-lang.c (ada_unop_atr): New function.
2548 (ada_evaluate_subexp): Use it.
2549
b467efaa
TT
25502021-03-08 Tom Tromey <tom@tromey.com>
2551
2552 * ada-lang.c (ada_binop_in_bounds): New function.
2553 (ada_evaluate_subexp): Use it.
2554
5ce19db8
TT
25552021-03-08 Tom Tromey <tom@tromey.com>
2556
2557 * ada-lang.c (ada_ternop_slice): New function.
2558 (ada_evaluate_subexp): Use it.
2559
214b13ac
TT
25602021-03-08 Tom Tromey <tom@tromey.com>
2561
2562 * ada-lang.c (ada_equal_binop): New function.
2563 (ada_evaluate_subexp): Use it.
2564
faa1dfd7
TT
25652021-03-08 Tom Tromey <tom@tromey.com>
2566
2567 * ada-lang.c (ada_mult_binop): New function.
2568 (ada_evaluate_subexp): Use it.
2569
d05e24e6
TT
25702021-03-08 Tom Tromey <tom@tromey.com>
2571
2572 * ada-lang.c (ada_abs): New function.
2573 (ada_evaluate_subexp): Use it.
2574
68c75735
TT
25752021-03-08 Tom Tromey <tom@tromey.com>
2576
2577 * ada-lang.c (ada_atr_size): New function.
2578 (ada_evaluate_subexp): Use it.
2579
020dbabe
TT
25802021-03-08 Tom Tromey <tom@tromey.com>
2581
2582 * ada-lang.c (ada_atr_tag): New function.
2583 (ada_evaluate_subexp): Use it.
2584
7efc87ff
TT
25852021-03-08 Tom Tromey <tom@tromey.com>
2586
2587 * ada-lang.c (ada_unop_in_range): New function.
2588 (ada_evaluate_subexp): Use it.
2589
82390ab8
TT
25902021-03-08 Tom Tromey <tom@tromey.com>
2591
2592 * ada-lang.c (ada_unop_neg): New function.
2593 (ada_evaluate_subexp): Use it.
2594
62d4bd94
TT
25952021-03-08 Tom Tromey <tom@tromey.com>
2596
2597 * ada-lang.c (eval_ternop_in_range): New function.
2598 (ada_evaluate_subexp): Use it.
2599
3634f669
TT
26002021-03-08 Tom Tromey <tom@tromey.com>
2601
2602 * opencl-lang.c (eval_opencl_assign): New function.
2603 (evaluate_subexp_opencl): Use it.
2604
5e80600e
TT
26052021-03-08 Tom Tromey <tom@tromey.com>
2606
2607 * eval.c (eval_op_objc_msgcall): New function.
2608 (evaluate_subexp_standard): Use it.
2609
fb5ba2ab
TT
26102021-03-08 Tom Tromey <tom@tromey.com>
2611
2612 * eval.c (eval_binop_assign_modify): New function.
2613 (evaluate_subexp_standard): Use it.
2614
a49881f7
TT
26152021-03-08 Tom Tromey <tom@tromey.com>
2616
2617 * m2-lang.c (eval_op_m2_subscript): New function.
2618 (evaluate_subexp_modula2): Use it.
2619
41bdced5
TT
26202021-03-08 Tom Tromey <tom@tromey.com>
2621
2622 * m2-lang.c (eval_op_m2_high): New function.
2623 (evaluate_subexp_modula2): Use it.
2624
13ea014a
TT
26252021-03-08 Tom Tromey <tom@tromey.com>
2626
2627 * eval.c (evaluate_subexp_for_address_base): New function.
2628 (evaluate_subexp_for_address): Use it.
2629 (evaluate_subexp_for_sizeof_base): New function.
2630 (evaluate_subexp_for_sizeof): Use it.
2631
1fa41fc7
TT
26322021-03-08 Tom Tromey <tom@tromey.com>
2633
2634 * rust-lang.c (eval_op_rust_structop): New function.
2635 (rust_evaluate_subexp): Use it.
2636
575cae23
TT
26372021-03-08 Tom Tromey <tom@tromey.com>
2638
2639 * rust-lang.c (eval_op_rust_struct_anon): New function.
2640 (rust_evaluate_subexp): Use it.
2641
05104233
TT
26422021-03-08 Tom Tromey <tom@tromey.com>
2643
2644 * rust-lang.c (eval_op_rust_array): New function.
2645 (rust_evaluate_subexp): Use it.
2646
6fa9831f
TT
26472021-03-08 Tom Tromey <tom@tromey.com>
2648
2649 * rust-lang.c (eval_op_rust_complement): New function.
2650 (rust_evaluate_subexp): Use it.
2651
d123f9e4
TT
26522021-03-08 Tom Tromey <tom@tromey.com>
2653
2654 * rust-lang.c (eval_op_rust_ind): New function.
2655 (rust_evaluate_subexp): Use it.
2656
984af2cb
TT
26572021-03-08 Tom Tromey <tom@tromey.com>
2658
2659 * rust-lang.c (rust_subscript): Change parameters.
2660 (rust_evaluate_subexp): Update.
2661
d148f803
TT
26622021-03-08 Tom Tromey <tom@tromey.com>
2663
2664 * rust-lang.c (rust_range): Change parameters.
2665 (rust_evaluate_subexp): Update.
2666
9cbd1c20
TT
26672021-03-08 Tom Tromey <tom@tromey.com>
2668
2669 * f-lang.c (eval_op_f_allocated): New function.
2670 (evaluate_subexp_f): Use it.
2671
3c18c49c
TT
26722021-03-08 Tom Tromey <tom@tromey.com>
2673
2674 * f-lang.c (fortran_require_array): New function.
2675 (evaluate_subexp_f): Use it.
2676
216f6fcb
TT
26772021-03-08 Tom Tromey <tom@tromey.com>
2678
2679 * f-lang.c (eval_op_f_kind): New function.
2680 (evaluate_subexp_f): Use it.
2681
00f2db6f
TT
26822021-03-08 Tom Tromey <tom@tromey.com>
2683
2684 * f-lang.c (eval_op_f_cmplx): New function.
2685 (evaluate_subexp_f): Use it.
2686
93b2b5fa
TT
26872021-03-08 Tom Tromey <tom@tromey.com>
2688
2689 * f-lang.c (eval_op_f_modulo): New function.
2690 (evaluate_subexp_f): Use it.
2691
9f1a1f3c
TT
26922021-03-08 Tom Tromey <tom@tromey.com>
2693
2694 * f-lang.c (eval_op_f_floor): New function.
2695 (evaluate_subexp_f): Use it.
2696
3dc41f3c
TT
26972021-03-08 Tom Tromey <tom@tromey.com>
2698
2699 * f-lang.c (eval_op_f_ceil): New function.
2700 (evaluate_subexp_f): Use it.
2701
e08109f2
TT
27022021-03-08 Tom Tromey <tom@tromey.com>
2703
2704 * f-lang.c (eval_op_f_mod): New function.
2705 (evaluate_subexp_f): Use it.
2706
cc05c68e
TT
27072021-03-08 Tom Tromey <tom@tromey.com>
2708
2709 * f-lang.c (eval_op_f_abs): New function.
2710 (evaluate_subexp_f): Use it.
2711
aec95807
TT
27122021-03-08 Tom Tromey <tom@tromey.com>
2713
2714 * eval.c (eval_op_type): New function.
2715 (evaluate_subexp_standard): Use it.
2716
a220ead5
TT
27172021-03-08 Tom Tromey <tom@tromey.com>
2718
2719 * eval.c (eval_op_postdec): New function.
2720 (evaluate_subexp_standard): Use it.
2721
abffe116
TT
27222021-03-08 Tom Tromey <tom@tromey.com>
2723
2724 * eval.c (eval_op_postinc): New function.
2725 (evaluate_subexp_standard): Use it.
2726
9e1361b7
TT
27272021-03-08 Tom Tromey <tom@tromey.com>
2728
2729 * eval.c (eval_op_predec): New file.
2730 (evaluate_subexp_standard): Use it.
2731
00f50884
TT
27322021-03-08 Tom Tromey <tom@tromey.com>
2733
2734 * eval.c (eval_op_preinc): New function.
2735 (evaluate_subexp_standard): Use it.
2736
3aef2a07
TT
27372021-03-08 Tom Tromey <tom@tromey.com>
2738
2739 * eval.c (eval_op_memval): New function.
2740 (evaluate_subexp_standard): Use it.
2741
acee9468
TT
27422021-03-08 Tom Tromey <tom@tromey.com>
2743
2744 * eval.c (eval_op_alignof): New function.
2745 (evaluate_subexp_standard): Use it.
2746
786f70ee
TT
27472021-03-08 Tom Tromey <tom@tromey.com>
2748
2749 * eval.c (eval_op_ind): New function.
2750 (evaluate_subexp_standard): Use it.
2751
24338fb9
TT
27522021-03-08 Tom Tromey <tom@tromey.com>
2753
2754 * eval.c (eval_op_lognot): New function.
2755 (evaluate_subexp_standard): Use it.
2756
1f09ec81
TT
27572021-03-08 Tom Tromey <tom@tromey.com>
2758
2759 * eval.c (eval_op_complement): New function.
2760 (evaluate_subexp_standard): Use it.
2761
606d105f
TT
27622021-03-08 Tom Tromey <tom@tromey.com>
2763
2764 * eval.c (eval_op_neg): New function.
2765 (evaluate_subexp_standard): Use it.
2766
39f288be
TT
27672021-03-08 Tom Tromey <tom@tromey.com>
2768
2769 * eval.c (eval_op_plus): New function.
2770 (evaluate_subexp_standard): Use it.
2771
eed70b1c
TT
27722021-03-08 Tom Tromey <tom@tromey.com>
2773
2774 * eval.c (eval_op_repeat): New function.
2775 (evaluate_subexp_standard): Use it.
2776
60cdd487
TT
27772021-03-08 Tom Tromey <tom@tromey.com>
2778
2779 * eval.c (eval_op_leq): New function.
2780 (evaluate_subexp_standard): Use it.
2781
96e3efd9
TT
27822021-03-08 Tom Tromey <tom@tromey.com>
2783
2784 * eval.c (eval_op_geq): New function.
2785 (evaluate_subexp_standard): Use it.
2786
1f78d732
TT
27872021-03-08 Tom Tromey <tom@tromey.com>
2788
2789 * eval.c (eval_op_gtr): New function.
2790 (evaluate_subexp_standard): Use it.
2791
6cad1349
TT
27922021-03-08 Tom Tromey <tom@tromey.com>
2793
2794 * eval.c (eval_op_less): New function.
2795 (evaluate_subexp_standard): Use it.
2796
1fcb3559
TT
27972021-03-08 Tom Tromey <tom@tromey.com>
2798
2799 * eval.c (eval_op_notequal): New function.
2800 (evaluate_subexp_standard): Use it.
2801
0cc96de8
TT
28022021-03-08 Tom Tromey <tom@tromey.com>
2803
2804 * eval.c (eval_op_equal): New function.
2805 (evaluate_subexp_standard): Use it.
2806
288d26bc
TT
28072021-03-08 Tom Tromey <tom@tromey.com>
2808
2809 * eval.c (eval_op_subscript): New function.
2810 (evaluate_subexp_standard): Use it.
2811
7cdcdd02
TT
28122021-03-08 Tom Tromey <tom@tromey.com>
2813
2814 * eval.c (eval_op_binary): New function.
2815 (evaluate_subexp_standard): Use it.
2816
d9790e22
TT
28172021-03-08 Tom Tromey <tom@tromey.com>
2818
2819 * eval.c (eval_op_sub): New function.
2820 (evaluate_subexp_standard): Use it.
2821
aedaf9ac
TT
28222021-03-08 Tom Tromey <tom@tromey.com>
2823
2824 * eval.c (eval_op_add): New function.
2825 (evaluate_subexp_standard): Use it.
2826
b7a96ed2
TT
28272021-03-08 Tom Tromey <tom@tromey.com>
2828
2829 * eval.c (eval_op_member): New function.
2830 (evaluate_subexp_standard): Use it.
2831
fb461aa3
TT
28322021-03-08 Tom Tromey <tom@tromey.com>
2833
2834 * eval.c (eval_op_structop_ptr): New function.
2835 (evaluate_subexp_standard): Use it.
2836
3e96c4fc
TT
28372021-03-08 Tom Tromey <tom@tromey.com>
2838
2839 * eval.c (eval_op_structop_struct): New function.
2840 (evaluate_subexp_standard): Use it.
2841
f960a617
TT
28422021-03-08 Tom Tromey <tom@tromey.com>
2843
2844 * eval.c (eval_op_ternop): New function.
2845 (evaluate_subexp_standard): Use it.
2846
5c2f201e
TT
28472021-03-08 Tom Tromey <tom@tromey.com>
2848
2849 * eval.c (eval_op_concat): New function.
2850 (evaluate_subexp_standard): Use it.
2851
f871bae1
TT
28522021-03-08 Tom Tromey <tom@tromey.com>
2853
2854 * eval.c (eval_op_objc_selector): New function.
2855 (evaluate_subexp_standard): Use it.
2856
14a1c64a
TT
28572021-03-08 Tom Tromey <tom@tromey.com>
2858
2859 * eval.c (eval_op_string): New function.
2860 (evaluate_subexp_standard): Use it.
2861
ffff730b
TT
28622021-03-08 Tom Tromey <tom@tromey.com>
2863
2864 * eval.c (eval_op_register): New function.
2865 (evaluate_subexp_standard): Use it.
2866
9b1d8af6
TT
28672021-03-08 Tom Tromey <tom@tromey.com>
2868
2869 * eval.c (eval_op_func_static_var): New function.
2870 (evaluate_subexp_standard): Use it.
2871
c0df9289
TT
28722021-03-08 Tom Tromey <tom@tromey.com>
2873
2874 * eval.c (eval_op_var_msym_value): New function.
2875 (evaluate_subexp_standard): Use it.
2876
50b98adc
TT
28772021-03-08 Tom Tromey <tom@tromey.com>
2878
2879 * eval.c (eval_op_var_entry_value): New function.
2880 (evaluate_subexp_standard): Use it.
2881
ea2d29f7
TT
28822021-03-08 Tom Tromey <tom@tromey.com>
2883
2884 * eval.c (eval_op_scope): New function.
2885 (evaluate_subexp_standard): Use it.
2886
01573d73
TT
28872021-03-06 Chernov Sergey <klen_s@mail.ru>
2888
2889 PR gdb/27528:
2890 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2891
9938d15a
TT
28922021-03-06 Tom Tromey <tom@tromey.com>
2893
2894 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2895 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2896 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2897 (locate_dwz_sections, dwz_search_other_debugdirs)
2898 (dwarf2_get_dwz_file): Move to dwz.c.
2899 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2900 read.h.
2901 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2902 (dwarf2_get_dwz_file): Move from read.c.
2903
18035655
TT
29042021-03-06 Tom Tromey <tom@tromey.com>
2905
2906 * debuginfod-support.h: Include scoped_fd.h.
2907
a7308ce0
TT
29082021-03-06 Tom Tromey <tom@tromey.com>
2909
2910 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2911 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2912 (get_abbrev_section_for_cu, read_attribute_value)
2913 (get_debug_line_section): Update.
2914 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2915
fbedd546
TT
29162021-03-06 Tom Tromey <tom@tromey.com>
2917
2918 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2919 method.
2920 * dwarf2/read.c (section_is_p): Remove.
2921 (dwarf2_per_bfd::locate_sections)
2922 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2923 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2924 (dwarf2_locate_common_dwp_sections)
2925 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2926 Update.
2927
c2a62a3d
TT
29282021-03-06 Tom Tromey <tom@tromey.com>
2929
2930 * xcoffread.c: Include sect-names.h.
2931 * symfile.h (struct dwarf2_section_names, struct
2932 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2933 * dwarf2/sect-names.h: New file, from symfile.h.
2934 * dwarf2/read.c: Include sect-names.h.
2935
4444f407
TT
29362021-03-06 Tom Tromey <tom@tromey.com>
2937
2938 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2939 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2940 (abbrev_table::read): Update.
2941 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2942 (struct abbrev_info): Reformat.
2943 <attrs>: Now an array.
2944 (struct abbrev_table) <alloc_abbrev>: Remove.
2945
dd99cf0c
WP
29462021-03-06 Weimin Pan <weimin.pan@oracle.com>
2947
2948 * ctfread.c (ctf_psymtab_add_enums): New function.
2949 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2950
844be3f2
WP
29512021-03-06 Weimin Pan <weimin.pan@oracle.com>
2952
2953 * ctfread.c (read_func_kind_type): Set up function arguments.
2954
b2668f28
AB
29552021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2956 Andrew Burgess <andrew.burgess@embecosm.com>
2957
2958 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2959 includes.
2960 (riscv_csrset): New static global.
2961 (riscv_update_csrmap): New function.
2962 (riscv_iterate_over_regset_sections): Process CSRs.
2963
d782d24b
AB
29642021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2965
2966 * riscv-tdep.c (riscv_feature_name_csr): Define.
2967 (riscv_feature_name_cpu): Define.
2968 (riscv_feature_name_fpu): Define.
2969 (riscv_feature_name_virtual): Define.
2970 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2971 (riscv_freg_feature): Use riscv_feature_name_fpu.
2972 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2973 (riscv_csr_feature): Use riscv_feature_name_csr.
2974 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2975
fb8f3fc0
AB
29762021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2977 Craig Blackmore <craig.blackmore@embecosm.com>
2978
2979 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2980 (ALLDEPFILES): Add riscv-none-tdep.c.
2981 * configure: Regenerate.
2982 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2983 support.
2984 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2985 * elf-none-tdep.c: New file.
2986 * elf-none-tdep.h: New file.
2987 * riscv-none-tdep.c: New file.
2988
95ce627a
AB
29892021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2990 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * corelow.c: Add 'xml-tdesc.h' include.
2993 (core_target::read_description): Load the target description from
2994 the core file when possible.
2995 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2996 note.
2997 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2998 (gcore_elf_make_tdesc_note): New function.
2999 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
3000 * linux-tdep.c (linux_make_corefile_notes): Add target description
3001 note.
3002
f3a5df7b
AB
30032021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3004
3005 * Makefile.in (SFILES): Add gcore-elf.c.
3006 (HFILES_NO_SRCDIR): Add gcore-elf.h
3007 * configure: Regenerate.
3008 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
3009 support.
3010 * fbsd-tdep.c: Add 'gcore-elf.h' include.
3011 (struct fbsd_collect_regset_section_cb_data): Delete.
3012 (fbsd_collect_regset_section_cb): Delete.
3013 (fbsd_collect_thread_registers): Delete.
3014 (struct fbsd_corefile_thread_data): Delete.
3015 (fbsd_corefile_thread): Delete.
3016 (fbsd_make_corefile_notes): Call
3017 gcore_elf_build_thread_register_notes instead of the now deleted
3018 FreeBSD code.
3019 * gcore-elf.c: New file, the content was moved here from
3020 linux-tdep.c, functions were renamed and given minor cleanup.
3021 * gcore-elf.h: New file.
3022 * gcore.c (gcore_find_signalled_thread): Moved here from
3023 linux-tdep.c and given a new name. Minor cleanups.
3024 * gcore.h (gcore_find_signalled_thread): Declare.
3025 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
3026 (struct linux_collect_regset_section_cb_data): Delete.
3027 (linux_collect_regset_section_cb): Delete.
3028 (linux_collect_thread_registers): Delete.
3029 (linux_corefile_thread): Call
3030 gcore_elf_build_thread_register_notes.
3031 (find_signalled_thread): Delete.
3032 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3033
d1e93af6
SM
30342021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
3035
3036 PR gdb/27147
3037 * sparc-nat.h (sparc_fetch_inferior_registers): Add
3038 process_stratum_target parameter,
3039 sparc_store_inferior_registers): update callers.
3040 * sparc-nat.c (sparc_fetch_inferior_registers,
3041 sparc_store_inferior_registers): Add process_stratum_target
3042 parameter. Switch current thread before calling
3043 sparc_supply_gregset / sparc_collect_rwindow.
3044 (sparc_store_inferior_registers): Likewise.
3045 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
3046 (sparc32obsd_collect_uthread): Likewise.
3047 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
3048 Add assertion.
3049 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
3050 sparc64obsd_supply_uthread): Add assertion.
3051
1178743e
TT
30522021-03-04 Tom Tromey <tromey@adacore.com>
3053
3054 * ada-lang.c (struct match_data) <found_sym>: Now bool.
3055 (aux_add_nonlocal_symbols): Update.
3056 (ada_add_block_symbols): Change "found_sym" to bool.
3057
1bfa81ac
TT
30582021-03-03 Tom Tromey <tromey@adacore.com>
3059
3060 * ada-lang.c (ada_resolve_function): Update comment.
3061 (is_nonfunction, add_symbols_from_enclosing_procs)
3062 (remove_extra_symbols): Likewise.
3063 (struct match_data): Add constructor, initializers.
3064 (add_nonlocal_symbols): Remove memset.
3065 (aux_add_nonlocal_symbols): Update comment.
3066 (ada_add_block_renamings, add_nonlocal_symbols)
3067 (ada_add_all_symbols): Likewise.
3068 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
3069
bbcdf9ab
TT
30702021-03-02 Tom Tromey <tromey@adacore.com>
3071
3072 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
3073 (cast_to_gnat_encoded_fixed_point_type): Remove.
3074 (ada_value_cast, ada_evaluate_subexp): Update.
3075 (gnat_encoded_fixed_point_type_info)
3076 (ada_is_gnat_encoded_fixed_point_type)
3077 (gnat_encoded_fixed_point_delta)
3078 (gnat_encoded_fixed_point_scaling_factor): Remove.
3079 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
3080 (gnat_encoded_fixed_point_delta)
3081 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
3082 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
3083 (ada_print_type): Update.
3084 * ada-valprint.c (ada_value_print_num): Update.
3085 * dwarf2/read.c (ada_get_gnat_encoded_number)
3086 (ada_get_gnat_encoded_ratio): New functions.
3087 (finish_fixed_point_type): Use them. Add parameters.
3088 (GNAT_FIXED_POINT_SUFFIX): New define.
3089 (gnat_encoded_fixed_point_type_info): New function.
3090 (read_base_type): Handle gnat encodings.
3091
5f9febe0
TT
30922021-03-02 Tom Tromey <tromey@adacore.com>
3093
3094 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
3095 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
3096 std::string.
3097 (GROW_VECT): Remove.
3098 (grow_vect): Remove.
3099
d1183b06
TT
31002021-03-02 Tom Tromey <tromey@adacore.com>
3101
3102 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
3103 * ada-lang.c (resolve_subexp): Update.
3104 (ada_resolve_function): Accept a vector.
3105 (is_nonfunction, add_defn_to_vec)
3106 (add_symbols_from_enclosing_procs): Likewise.
3107 (num_defns_collected, defns_collected): Remove.
3108 (remove_extra_symbols): Return a vector.
3109 (remove_irrelevant_renamings): Return void.
3110 (ada_add_local_symbols): Accept a vector.
3111 (struct match_data) <obstackp>: Remove.
3112 <resultp>: New member.
3113 (aux_add_nonlocal_symbols): Update.
3114 (ada_add_block_renamings, add_nonlocal_symbols)
3115 (ada_add_all_symbols): Accept a vector.
3116 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
3117 vector.
3118 (ada_lookup_symbol): Update.
3119 (ada_add_block_symbols): Accept a vector.
3120 (get_var_value, iterate_over_symbols): Update.
3121 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
3122 Update.
3123
886d459f
TT
31242021-03-02 Tom Tromey <tromey@adacore.com>
3125
3126 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3127
bdcccc56
TT
31282021-03-02 Tom Tromey <tromey@adacore.com>
3129
3130 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3131 auto_obstack.
3132 <root>: Initialize.
3133 (ada_pspace_data): Remove destructor.
3134 <sym_cache>: Now a unique_ptr.
3135 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
3136 (ada_get_symbol_cache): Use 'new'.
3137 (ada_clear_symbol_cache): Rewrite.
3138
1228719f
TT
31392021-03-02 Tom Tromey <tromey@adacore.com>
3140
3141 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
3142 is null.
3143
bb3a4efe
LS
31442021-02-27 Lancelot Six <lsix@lancelotsix.com>
3145
3146 PR gdb/27393
3147 * source.c (add_path): Skip empty dirnames.
3148
26b43ca6 31492021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
3150
3151 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
3152 include order for <sys/ptrace.h> and <asm/ptrace.h>.
3153
dffdd8b5
SM
31542021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3155
3156 PR gdb/26861
3157 * target.c (target_mourn_inferior): Only compare pids in
3158 target_mourn_inferior.
3159
64d38fdd
JM
31602021-02-25 Jan Matyas <jmatyas@codasip.com>
3161
3162 PR gdb/26819
3163 * remote.c (remote_target::start_remote): Ensure the single
3164 thread, automatically added for remote targets without the
3165 concept of threading, is initially in set to the "resumed"
3166 state.
3167 * remote.c (remote_target::add_current_inferior_and_thread):
3168 Add return value - return the main thread.
3169
2450ad54
JV
31702021-02-25 Jan Vrany <jan.vrany@labware.com>
3171
3172 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
3173 (mi_tsv_created): Likewise.
3174 (mi_tsv_deleted): Likewise.
3175
30c80d88
TV
31762021-02-25 Tom de Vries <tdevries@suse.de>
3177
3178 PR symtab/27354
3179 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
3180 section_kind for &dwo_file->sections.info.
3181
68337b8b
AB
31822021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3183
3184 PR fortran/26155
3185 * f-lang.c (fortran_argument_convert): Delete declaration.
3186 (fortran_prepare_argument): New function.
3187 (evaluate_subexp_f): Move logic to new function
3188 fortran_prepare_argument.
3189
faeb9f13
AB
31902021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3191
3192 * f-exp.y (f77_keywords): Add 'associated'.
3193 * f-lang.c (fortran_associated): New function.
3194 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
3195 (operator_length_f): Likewise.
3196 (print_unop_or_binop_subexp_f): New function.
3197 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
3198 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
3199 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
3200 (operator_check_f): Likewise.
3201 * std-operator.def: Add FORTRAN_ASSOCIATED.
3202
170f4b23
AB
32032021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3204
3205 * f-exp.y (fortran_operators): Add ".xor.".
3206
aa659cfa
TV
32072021-02-24 Tom de Vries <tdevries@suse.de>
3208
3209 PR symtab/27336
3210 * dwarf2/attribute.c (attribute::form_is_signed): New function
3211 factored out of ...
3212 * dwarf2/attribute.h (attribute::as_signed): ... here.
3213 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
3214 (attribute::form_is_signed): Declare.
3215 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
3216 for DW_AT_decl_file.
3217
268c77c1
KB
32182021-02-24 Kevin Buettner <kevinb@redhat.com>
3219
3220 * nat/aarch64-linux-hw-point.c: Add comment regarding include
3221 order for <sys/ptrace.h> and <asm/ptrace.h>.
3222
665af52e
KB
32232021-02-24 Kevin Buettner <kevinb@redhat.com>
3224
3225 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
3226 <sys/ptrace.h>.
3227
dd80d750
AB
32282021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3229
3230 * exec.c (set_section_command): Move variable declarations into
3231 the function body, and use std::string instead of a fixed size
3232 buffer.
3233
336aa7b7
AB
32342021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3235
3236 * exec.c (exec_target::get_section_table): Delete member function.
3237 (section_table_read_available_memory): Use current_top_target, not
3238 just the exec_ops target.
3239 * target-delegates.c: Regenerate.
3240 * target.c (default_get_section_table): New function.
3241 * target.h (target_ops::get_section_table): Change default
3242 behaviour to call default_get_section_table.
3243 (default_get_section_table): Declare.
3244
02f7d26b
AB
32452021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3246
3247 * exec.c (exec_target::close): Call new clear_target_sections
3248 function.
3249 (program_space::add_target_sections): Update name of member
3250 variable.
3251 (program_space::add_target_sections): Update name of member
3252 variable.
3253 (program_space::remove_target_sections): Likewise.
3254 (exec_one_fork): Use new target_sections member function.
3255 (exec_target::get_section_table): Likewise.
3256 (exec_target::files_info): Likewise.
3257 (set_section_command): Likewise.
3258 (exec_set_section_address): Likewise.
3259 (exec_target::has_memory): Use new target_sections member
3260 function.
3261 * progspace.h (program_space::clear_target_sections): New member
3262 function.
3263 (program_space::target_sections): Rename member variable to
3264 m_target_sections, replace with a new member function.
3265 (program_space::m_target_sections): New member variable.
3266 * solib-dsbt.c (scan_dyntag): Use new member function.
3267 * solib-svr4.c (scan_dyntag): Likewise.
3268
19cf757a
AB
32692021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3270
3271 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
3272 return type const.
3273 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
3274 (section_table_read_available_memory): Make local const.
3275 (exec_target::xfer_partial): Make local const.
3276 (print_section_info): Make parameter const.
3277 * gdb/exec.h (print_section_info): Likewise.
3278 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
3279 const.
3280 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
3281 Likewise.
3282 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
3283 Likewise.
3284 * gdb/s390-tdep.c (s390_load): Likewise.
3285 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
3286 * gdb/solib-svr4.c (scan_dyntag): Likewise.
3287 * gdb/target-debug.h (target_debug_print_target_section_table_p):
3288 Rename to...
3289 (target_debug_print_const_target_section_table_p): ...this.
3290 * gdb/target-delegates.c: Regenerate.
3291 * gdb/target.c (target_get_section_table): Make return type const.
3292 (target_section_by_addr): Likewise. Also make some locals const.
3293 (memory_xfer_partial_1): Make some locals const.
3294 * gdb/target.h (struct target_ops) <get_section_table>: Make
3295 return type const.
3296 (target_section_by_addr): Likewise.
3297 (target_get_section_table): Likewise.
3298
02a79309
AB
32992021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3300
3301 * NEWS: Mention new 'maint info target-sections' command.
3302 * maint.c (maintenance_info_target_sections): New function.
3303 (_initialize_maint_cmds): Register new command.
3304
895b7b4e
AB
33052021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3306
3307 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
3308 (riscv_features_from_bfd): ...this. Change parameter type to
3309 'bfd*', and update as required.
3310 (riscv_find_default_target_description): Update call to
3311 riscv_features_from_bfd. Select a default xlen based on
3312 info.bfd_arch_info.
3313 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
3314
bc3c0632
AB
33152021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3316
3317 * eval.c (evaluate_subexp_standard): Call value_ind for points to
3318 dynamic types in UNOP_IND.
3319
08ac5771
SM
33202021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3321
3322 PR gdb/26828
3323 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
3324 Instantiate queue.
3325 (~dwarf2_queue_guard): Clear queue.
3326 (queue_comp_unit): Assert that queue is
3327 instantiated.
3328 (process_queue): Adjust.
3329 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
3330
616c069a
SM
33312021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3332
3333 PR gdb/26828
3334 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
3335 to decide whether or not to enqueue it for expansion.
3336 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
3337 after calling maybe_queue_comp_unit.
3338
897608ed
SM
33392021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3340
3341 * linux-nat.c (linux_nat_filter_event): Return void.
3342
15908a11
TT
33432021-02-22 Tom Tromey <tromey@adacore.com>
3344
3345 * solib-svr4.c (enable_break): Update.
3346 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3347 type.
3348 (target_bfd_reopen): Change parameter type.
3349 * bfd-target.h (target_bfd_reopen): Change parameter type.
3350
f53fc427
SM
33512021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3352
3353 * thread.c (add_thread_silent): Add assert.
3354 (find_thread_ptid): Add assert.
3355
de146e19
SM
33562021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3357
3358 PR gdb/27435
3359 * inf-ptrace.c (struct target_unpusher): Move to target.h.
3360 (target_unpush_up): Likewise.
3361 * procfs.c (procfs_target::attach): Push target early. Use
3362 target_unpush_up to unpush target in case of error.
3363 * target.h (struct target_unpusher): Move here.
3364 (target_unpush_up): Likewise.
3365
8488c357
KB
33662021-02-19 Kevin Buettner <kevinb@redhat.com>
3367
3368 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3369 (which in turn includes <gnulib/config.h>) before include
3370 of <signal.h>.
3371
5a9f5403
NC
33722021-02-19 Nelson Chu <nelson.chu@sifive.com>
3373
3374 PR 27158
3375 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
3376 (decode_j_type_insn): Likewise.
3377 (decode_cj_type_insn): Likewise.
3378 (decode_b_type_insn): Likewise.
3379 (decode): Likewise.
3380
26f53cd3
TT
33812021-02-18 Tom Tromey <tom@tromey.com>
3382
3383 * expression.h (struct expression) <evaluate>: Declare method.
3384 * eval.c (evaluate_subexp): Simplify.
3385 (expression::evaluate): New method.
3386 (evaluate_expression, evaluate_type): Use expression::evaluate.
3387
6a780b67
KB
33882021-02-17 Kevin Buettner <kevinb@redhat.com>
3389
3390 * ada-lang.c (ada_fold_name): Check for non-empty string prior
3391 to accessing it.
3392 (ada_lookup_name_info): Likewise.
3393
adeab0c5
MF
33942021-02-13 Mike Frysinger <vapier@gentoo.org>
3395
3396 * aclocal.m4: Regenerate.
3397
089436f7
TV
33982021-02-12 Tom de Vries <tdevries@suse.de>
3399
3400 PR threads/26228
3401 * linux-nat.c (lin_thread_get_thread_signals): Remove.
3402 (lin_thread_signals): New static var.
3403 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3404 New function.
3405 * linux-nat.h (lin_thread_get_thread_signals): Remove.
3406 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3407 Declare.
3408 * linux-thread-db.c (check_thread_signals): Use
3409 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
3410
96df3e28
AB
34112021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
3412
3413 * f-exp.y (f77_keywords): Add allocated.
3414 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
3415 (operator_length_f): Likewise.
3416 (print_subexp_f): Likewise.
3417 (dump_subexp_body_f): Likewise.
3418 (operator_check_f): Likewise.
3419 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
3420
05f68f52
TV
34212021-02-11 Tom de Vries <tdevries@suse.de>
3422
3423 PR symtab/27353
3424 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
3425 Return true for DW_FORM_strx.
3426
b260f8d6
TT
34272021-02-11 Tom Tromey <tromey@adacore.com>
3428
3429 PR gdb/27383:
3430 * parse.c (write_exp_symbol_reference): Write sym.block.
3431
bf3386f0
AB
34322021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3433
3434 * NEWS: Mention changes to 'maint info sections'.
3435 * maint.c (match_substring): Return a bool, fix whitespace issue.
3436 (struct single_bfd_flag_info): New struct.
3437 (bfd_flag_info): New static global.
3438 (match_bfd_flags): Return a bool, use bfd_flag_info.
3439 (print_bfd_flags): Use bfd_flag_info.
3440 (maint_print_section_info): Delete trailing whitespace.
3441 (struct maint_info_sections_opts): New struct.
3442 (maint_info_sections_option_defs): New static global.
3443 (maint_info_sections_completer): New function.
3444 (maintenance_info_sections): Use option parsing mechanism.
3445 (_initialize_maint_cmds): Update command help text for 'maint info
3446 sections' and register a command completer.
3447
4790db14
AB
34482021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3449
3450 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
3451 functionality merged into...
3452 (maint_print_all_sections): ...this new function.
3453 (maintenance_info_sections): Make use of maint_print_all_sections,
3454 allow all objects to be printed even where there's no executable.
3455
1db66e34
AB
34562021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3457
3458 * breakpoint.c (resolve_sal_pc): Make use of
3459 bound_minimal_symbol::obj_section.
3460 * maint.c (maintenance_translate_address): Likewise.
3461 * minsyms.c (minimal_symbol_upper_bound): Likewise.
3462 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
3463 member function.
3464 * printcmd.c (info_address_command): Make use of
3465 bound_minimal_symbol::obj_section.
3466
18b8df43
AM
34672021-02-11 Alan Modra <amodra@gmail.com>
3468
3469 * arm-symbian-tdep.c: Delete.
3470 * NEWS: Mention arm-symbian removal.
3471 * Makefile.in: Remove arm-symbian-tdep entries.
3472 * configure.tgt: Remove arm*-*-symbianelf*.
3473 * doc/gdb.texinfo: Remove mention of SymbianOS.
3474 * osabi.c (gdb_osabi_names): Remove "Symbian".
3475 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
3476 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
3477 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
3478 handling.
3479 * testsuite/gdb.base/dup-sect.exp: Likewise.
3480 * testsuite/gdb.base/long_long.exp: Likewise.
3481 * testsuite/gdb.base/solib-weak.exp: Likewise.
3482 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
3483 * testsuite/gdb.python/py-section-script.exp: Likewise.
3484 * testsuite/lib/dwarf.exp: Likewise.
3485 * testsuite/lib/gdb.exp: Likewise.
3486
e92c8eb8
AB
34872021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3488
3489 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
3490 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
3491 (one_or_two_args): New pattern.
3492 (f77_keywords): Add lbound and ubound.
3493 * f-lang.c (fortran_bounds_all_dims): New function.
3494 (fortran_bounds_for_dimension): New function.
3495 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
3496 (operator_length_f): Likewise.
3497 (print_subexp_f): Likewise.
3498 (dump_subexp_body_f): Likewise.
3499 (operator_check_f): Likewise.
3500 * std-operator.def (FORTRAN_LBOUND): Define.
3501 (FORTRAN_UBOUND): Define.
3502
a52d653e
AB
35032021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3504
3505 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
3506 and set_section_index member functions where appropriate.
3507 * coffread.c (coff_symtab_read): Likewise.
3508 (process_coff_symbol): Likewise.
3509 * ctfread.c (set_symbol_address): Likewise.
3510 * dwarf2/read.c (add_partial_symbol): Likewise.
3511 (var_decode_location): Likewise.
3512 * language.c: Likewise.
3513 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
3514 (compact_minimal_symbols): Likewise.
3515 (minimal_symbol_upper_bound): Likewise.
3516 * objfiles.c (relocate_one_symbol): Likewise.
3517 * psympriv.h (partial_symbol::obj_section): Likewise.
3518 (partial_symbol::address): Likewise.
3519 * psymtab.c (partial_symtab::add_psymbol): Likewise.
3520 * stabsread.c (scan_file_globals): Likewise.
3521 * symmisc.c (dump_msymbols): Likewise.
3522 * symtab.c (general_symbol_info::obj_section): Likewise.
3523 (fixup_section): Likewise.
3524 (get_msymbol_address): Likewise.
3525 * symtab.h (general_symbol_info::section): Rename to...
3526 (general_symbol_info::m_section): ...this.
3527 (general_symbol_info::set_section_index): New member function.
3528 (general_symbol_info::section_index): Likewise.
3529 (SYMBOL_SECTION): Delete.
3530 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
3531 set_section_index member functions where appropriate.
3532 (MSYMBOL_SECTION): Delete.
3533 (symbol::symbol): Update to initialize 'm_section'.
3534 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
3535 (process_xcoff_symbol): Likewise.
3536
ebbc3a7d
AB
35372021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3538
3539 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
3540 MSYMBOL_OBJ_SECTION.
3541 * findvar.c (language_defn::read_var_value): Likewise.
3542 * infcmd.c (jump_command): Likewise.
3543 * linespec.c (minsym_found): Likewise.
3544 * maint.c (maintenance_translate_address): Likewise.
3545 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
3546 (minimal_symbol_upper_bound): Likewise.
3547 * parse.c (find_minsym_type_and_address): Likewise.
3548 (operator_check_standard): Likewise.
3549 * printcmd.c (info_address_command): Likewise.
3550 * symmisc.c (dump_msymbols): Likewise.
3551 (print_symbol): Likewise.
3552 * symtab.c (general_symbol_info::obj_section): Define new
3553 function.
3554 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
3555 (find_pc_sect_compunit_symtab): Likewise.
3556 (find_function_start_sal): Likewise.
3557 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
3558 MSYMBOL_OBJ_SECTION.
3559 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
3560 function.
3561 (SYMBOL_OBJ_SECTION): Delete.
3562 (MSYMBOL_OBJ_SECTION): Delete.
3563
9bb305b3
TT
35642021-02-09 Tom Tromey <tom@tromey.com>
3565
3566 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
3567
cf2b2075
TV
35682021-02-09 Tom de Vries <tdevries@suse.de>
3569
3570 PR symtab/27341
3571 * dwarf2/read.c (read_array_type): Return NULL when not being able to
3572 construct an array type. Add assert to ensure that element_type is
3573 not being modified.
3574
03642b71
AB
35752021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
3576
3577 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
3578 (gcore_collect_regset_section_cb): Delete.
3579 (gcore_collect_thread_registers): Delete.
3580 (gcore_build_thread_register_notes): Delete.
3581 (gcore_find_signalled_thread): Delete.
3582 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
3583 'gdbarch' and 'thread_info' declarations.
3584 (gcore_build_thread_register_notes): Delete declaration.
3585 (gcore_find_signalled_thread): Likewise.
3586 * fbsd-tdep.c: Remove 'gcore.h' include.
3587 (struct fbsd_collect_regset_section_cb_data): New struct.
3588 (fbsd_collect_regset_section_cb): New function.
3589 (fbsd_collect_thread_registers): New function.
3590 (struct fbsd_corefile_thread_data): New struct.
3591 (fbsd_corefile_thread): New function.
3592 (fbsd_make_corefile_notes): Call FreeBSD specific code.
3593 * linux-tdep.c: Remove 'gcore.h' include.
3594 (struct linux_collect_regset_section_cb_data): New struct.
3595 (linux_collect_regset_section_cb): New function.
3596 (linux_collect_thread_registers): New function.
3597 (linux_corefile_thread): Call Linux specific code.
3598 (find_signalled_thread): New function.
3599 (linux_make_corefile_notes): Call find_signalled_thread.
3600
f73e424f
TT
36012021-02-09 Tom Tromey <tromey@adacore.com>
3602
3603 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
3604 not_lval value.
3605 * value.c (value_contents_copy_raw): Now static.
3606 * value.h (value_contents_copy_raw): Don't declare.
3607
a4f0544b
TT
36082021-02-09 Tom Tromey <tromey@adacore.com>
3609
3610 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
3611 fields.
3612
9b3e4b5d
SV
36132021-02-08 Shahab Vahedi <shahab@synopsys.com>
3614
3615 PR tdep/27369
3616 * arc-linux-tdep.c (handle_atomic_sequence): New.
3617 (arc_linux_software_single_step): Call handle_atomic_sequence().
3618
29db1eb3
AB
36192021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3620
3621 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
3622 function.
3623 (REQUIRE_WINDOW): Call is_valid member function.
3624 (REQUIRE_WINDOW_FOR_SETTER): New define.
3625 (gdbpy_tui_is_valid): Call is_valid member function.
3626 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
3627 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
3628 tui_active too.
3629 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
3630 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
3631 the function.
3632
e0c23e11
AB
36332021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3634
3635 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
3636 for the title is not nullptr.
3637
1cf23996
AB
36382021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3639
3640 * tui-layout.c (saved_tui_windows): Delete.
3641 (tui_apply_current_layout): Don't make use of saved_tui_windows,
3642 call new get_windows member function instead.
3643 (tui_get_window_by_name): Check in tui_windows.
3644 (tui_layout_window::apply): Don't add to tui_windows.
3645 * tui-layout.h (tui_layout_base::get_windows): New member function.
3646 (tui_layout_window::get_windows): Likewise.
3647 (tui_layout_split::get_windows): Likewise.
3648
a53a2657
AB
36492021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3650
3651 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
3652 of the window objects.
3653
2708dbbd
AB
36542021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3655
3656 * python/python.c (gdbpy_print_stack): Reformat an error message.
3657
cd074e04
AB
36582021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3659
3660 * tui/tui-interp.c (tui_command_line_handler): New function.
3661 (tui_interp::resume): Register tui_command_line_handler as the
3662 input_handler.
3663 * tui/tui-io.c (tui_inject_newline_into_command_window): New
3664 function.
3665 (tui_getc_1): Delete handling of '\n' and '\r'.
3666 * tui-io.h (tui_inject_newline_into_command_window): Declare.
3667
4cf28e91
HD
36682021-02-07 Hannes Domani <ssbssa@yahoo.de>
3669
3670 * tui/tui-regs.c (tui_data_window::display_registers_from):
3671 Mark invisible register sub windows.
3672 (tui_data_window::check_register_values): Ignore invisible
3673 register sub windows.
3674
3537bc23
HD
36752021-02-07 Hannes Domani <ssbssa@yahoo.de>
3676
3677 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
3678 n_spaces with a negative value.
3679
5fc2d6aa
HD
36802021-02-07 Hannes Domani <ssbssa@yahoo.de>
3681
3682 * tui/tui-regs.c (tui_data_window::display_registers_from):
3683 Add refresh_window call.
3684
83962f83
HD
36852021-02-07 Hannes Domani <ssbssa@yahoo.de>
3686
3687 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
3688
0110ec82
SM
36892021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
3690
3691 * symmisc.c (std_in, std_out, std_err): Remove.
3692 (_initialize_symmisc): Don't set std_in, std_out and std_err.
3693
7c6944ab
TV
36942021-02-05 Tom de Vries <tdevries@suse.de>
3695
3696 PR breakpoints/27330
3697 * breakpoint.c (create_exception_master_breakpoint): Handle case that
3698 glibc object file has debug info.
3699
e77b0004
TV
37002021-02-05 Tom de Vries <tdevries@suse.de>
3701
3702 PR symtab/27333
3703 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
3704
0e857c82
TV
37052021-02-05 Tom de Vries <tdevries@suse.de>
3706
3707 PR breakpoints/27313
3708 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
3709 syscall numbers.
3710
bdfea17e
TT
37112021-02-05 Tom Tromey <tom@tromey.com>
3712
3713 * compile/compile-c-support.c (get_compile_context)
3714 (c_get_compile_context, cplus_get_compile_context): Change return
3715 type.
3716 * language.c (language_defn::get_compile_instance): New method.
3717 * language.h (language_defn::get_compile_instance): Change return
3718 type. No longer inline.
3719 * c-lang.c (c_language::get_compile_instance): Change return type.
3720 (cplus_language::get_compile_instance): Change return type.
3721 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
3722 Change return type.
3723 * compile/compile.c (compile_to_object): Update.
3724
1b30f421
TT
37252021-02-05 Tom Tromey <tom@tromey.com>
3726
3727 * parser-defs.h (write_exp_symbol_reference): Declare.
3728 * parse.c (write_exp_symbol_reference): New function.
3729 * p-exp.y (variable): Use write_exp_symbol_reference.
3730 * m2-exp.y (variable): Use write_exp_symbol_reference.
3731 * f-exp.y (variable): Use write_exp_symbol_reference.
3732 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
3733 * c-exp.y (variable): Use write_exp_symbol_reference.
3734
ae710496
TV
37352021-02-05 Tom de Vries <tdevries@suse.de>
3736
3737 PR exp/27265
3738 * valarith.c (complex_binop): Throw an error if complex type can't
3739 be created.
3740
d3b54e63
TV
37412021-02-05 Tom de Vries <tdevries@suse.de>
3742
3743 PR symtab/27307
3744 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
3745 return.
3746
fc9a13fb
TV
37472021-02-05 Tom de Vries <tdevries@suse.de>
3748
3749 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
3750
04b4939b
MF
37512021-02-04 Mike Frysinger <vapier@gentoo.org>
3752
3753 * configure.tgt (riscv*-*-*): Set gdb_sim.
3754
6ff267e1
SM
37552021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
3756
3757 * target.c (target_is_non_stop_p): Return bool.
3758 * target.h (target_is_non_stop_p): Return bool.
3759
fdbc5215
SM
37602021-02-04 Simon Marchi <simon.marchi@efficios.com>
3761
3762 * record-full.c (record_full_async_inferior_event_handler):
3763 Don't clear async event handler.
3764 (record_full_base_target::wait): Clear async event handler at
3765 beginning.
3766
85d3ad8e
SM
37672021-02-04 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * record-btrace.c (record_btrace_handle_async_inferior_event):
3770 Don't clear async event handler.
3771 (record_btrace_target::wait): Clear async event handler at
3772 beginning.
3773
baa8575b
SM
37742021-02-04 Simon Marchi <simon.marchi@efficios.com>
3775
3776 * remote.c (remote_target::wait): Clear async event handler at
3777 beginning, mark if needed at the end.
3778 (remote_async_inferior_event_handler): Don't set or clear async
3779 event handler.
3780
6b36ddeb
SM
37812021-02-04 Simon Marchi <simon.marchi@efficios.com>
3782
3783 * async-event.h (async_event_handler_func): Add documentation.
3784 * async-event.c (check_async_event_handlers): Don't clear
3785 async_event_handler ready flag.
3786 * infrun.c (infrun_async_inferior_event_handler): Clear ready
3787 flag.
3788 * record-btrace.c (record_btrace_handle_async_inferior_event):
3789 Likewise.
3790 * record-full.c (record_full_async_inferior_event_handler):
3791 Likewise.
3792 * remote-notif.c (remote_async_get_pending_events_handler):
3793 Likewise.
3794 * remote.c (remote_async_inferior_event_handler): Likewise.
3795
72d383bb
SM
37962021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
3797
3798 * infrun.c (handle_inferior_event): Move stop_soon variable to
3799 inner scope.
3800
408f6686
PA
38012021-02-03 Pedro Alves <pedro@palves.net>
3802
3803 * infcmd.c (detach_command): Hold strong reference to target, and
3804 if all-stop on entry, restart threads on exit.
3805 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
3806 (restart_stepped_thread): ... this new function. Also handle
3807 trap_expected.
3808 (restart_after_all_stop_detach): New function.
3809 * infrun.h (restart_after_all_stop_detach): Declare.
3810
ac7d717c
PA
38112021-02-03 Pedro Alves <pedro@palves.net>
3812
3813 * infrun.c (struct step_over_info): Initialize fields.
3814 (prepare_for_detach): Handle ongoing in-line step over.
3815
e87f0fe8
PA
38162021-02-03 Pedro Alves <pedro@palves.net>
3817
3818 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
3819 here...
3820 * remote.c (remote_target::remote_detach_1): ... and here ...
3821 * target.c (target_detach): ... instead of here.
3822 * target.h (target_ops::detach): Add comment.
3823
8ff53139
PA
38242021-02-03 Pedro Alves <pedro@palves.net>
3825
3826 * infrun.c (struct wait_one_event): Move higher up.
3827 (prepare_for_detach): Abort in-progress displaced steps instead of
3828 letting them complete.
3829 (handle_one): If the inferior is detaching, don't add the thread
3830 back to the global step-over chain.
3831 (restart_threads): Don't restart threads if detaching.
3832 (handle_signal_stop): Remove inferior::detaching reference.
3833
91475068
PA
38342021-02-03 Pedro Alves <pedro@palves.net>
3835
3836 * infrun.c (prepare_for_detach): Don't release scoped_restore
3837 before returning.
3838
d758e62c
PA
38392021-02-03 Pedro Alves <pedro@palves.net>
3840
3841 * infrun.c (handle_one): New function, factored out from ...
3842 (stop_all_threads): ... here.
3843
b0083dd7
PA
38442021-02-03 Pedro Alves <pedro@palves.net>
3845
3846 * remote.c (remote_notif_stop_ack): Don't error out on
3847 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
3848 (remote_target::discard_pending_stop_replies): Don't delete
3849 in-flight notification; instead, clear its contents.
3850
621cc310
PA
38512021-02-03 Pedro Alves <pedro@palves.net>
3852
3853 * remote.c (extended_remote_target::attach): Set target async in
3854 the target-non-stop path too.
3855
2ab76a18
PA
38562021-02-03 Pedro Alves <pedro@palves.net>
3857
3858 PR gdb/27055
3859 * infrun.c (handle_signal_stop): Move main context_switch call
3860 earlier, before STOP_QUIETLY_NO_SIGSTOP.
3861
2e3773ff
LS
38622021-02-02 Lancelot SIX <lsix@lancelotsix.com>
3863
3864 * NEWS (Changed commands): Add entry for the behavior change of
3865 the inferior command.
3866 * inferior.c (inferior_command): When no argument is given to the
3867 inferior command, display info about the currently selected
3868 inferior.
3869
e57933dc
SM
38702021-02-02 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3873 a sect_offset.
3874 (read_attribute_reprocess): Adjust.
3875
2b0c7f41
SM
38762021-02-02 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3879 <gnu_ranges_base>: ... this...
3880 <rnglists_base>: ... and this.
3881 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3882 <gnu_ranges_base>: ... this...
3883 <rnglists_base>: ... and this.
3884 (read_cutu_die_from_dwo): Adjust
3885 (dwarf2_get_pc_bounds): Adjust
3886 (dwarf2_record_block_ranges): Adjust.
3887 (read_full_die_1): Adjust
3888 (partial_die_info::read): Adjust.
3889 (read_rnglist_index): Adjust.
3890
a1c40103
SM
38912021-02-02 Simon Marchi <simon.marchi@efficios.com>
3892
3893 PR gdb/26813
3894 * dwarf2/read.c (read_loclists_rnglists_header): Add
3895 header_offset parameter and use it.
3896 (read_loclist_index): Read header of the current contribution,
3897 not the one at the beginning of the section.
3898 (read_rnglist_index): Likewise.
3899
b1829e1b
SM
39002021-02-02 Simon Marchi <simon.marchi@efficios.com>
3901
3902 PR gdb/26813
3903 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3904 requires_reprocessing flag.
3905 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3906 DW_FORM_loclistx.
3907 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3908 and DW_FORM_loclistx.
3909 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3910 instead of set_address for DW_FORM_loclistx and
3911 DW_FORM_rnglistx.
3912
0c800c6e
SM
39132021-02-02 Simon Marchi <simon.marchi@efficios.com>
3914
3915 * dwarf2/read.c (read_loclist_index): Remove bound check for
3916 start of offset.
3917 (read_rnglist_index): Likewise.
3918
05787bad
SM
39192021-02-02 Simon Marchi <simon.marchi@efficios.com>
3920
3921 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3922 of the offset.
3923
5e4d9bbc
SM
39242021-02-02 Simon Marchi <simon.marchi@efficios.com>
3925
3926 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3927
a0c1eeba
SM
39282021-02-02 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * dwarf2/read.c (read_loclist_index): Change complaints into
3931 errors.
3932
2bd3e4b8
TV
39332021-02-02 Tom de Vries <tdevries@suse.de>
3934
3935 PR symtab/24620
3936 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3937 psymtab == nullptr.
3938
82a1fd3a
AB
39392021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3940
3941 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3942 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
3943 here from linux-tdep.c and given a new name. Minor cleanups.
3944 (gcore_collect_regset_section_cb): Likewise.
3945 (gcore_collect_thread_registers): Likewise.
3946 (gcore_build_thread_register_notes): Likewise.
3947 (gcore_find_signalled_thread): Likewise.
3948 * gcore.h (gcore_build_thread_register_notes): Declare.
3949 (gcore_find_signalled_thread): Declare.
3950 * fbsd-tdep.c: Add 'gcore.h' include.
3951 (struct fbsd_collect_regset_section_cb_data): Delete.
3952 (fbsd_collect_regset_section_cb): Delete.
3953 (fbsd_collect_thread_registers): Delete.
3954 (struct fbsd_corefile_thread_data): Delete.
3955 (fbsd_corefile_thread): Delete.
3956 (fbsd_make_corefile_notes): Call
3957 gcore_build_thread_register_notes instead of the now deleted
3958 FreeBSD code.
3959 * linux-tdep.c: Add 'gcore.h' include.
3960 (struct linux_collect_regset_section_cb_data): Delete.
3961 (linux_collect_regset_section_cb): Delete.
3962 (linux_collect_thread_registers): Delete.
3963 (linux_corefile_thread): Call
3964 gcore_build_thread_register_notes.
3965 (find_signalled_thread): Delete.
3966 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3967
ebde6f2d
TV
39682021-01-29 Tom de Vries <tdevries@suse.de>
3969
3970 PR breakpoints/26063
3971 * infrun.c (process_event_stop_test): Reset
3972 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3973 changed.
3974
0f93c3a2
AB
39752021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3976
3977 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3978 assert. Extend the header comment.
3979
f237f998
AB
39802021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3981
3982 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3983 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3984 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3985 (tui_locator_win_info_ptr): Delete declaration.
3986 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3987 (tui_disasm_window::set_contents): Fetch state from tui_location
3988 global.
3989 (tui_get_begin_asm_address): Likewise.
3990 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3991 for locator window.
3992 (get_locator_window): Delete.
3993 (initialize_known_windows): Treat locator window just like all the
3994 rest.
3995 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3996 (tui_source_window::set_contents): Fetch state from tui_location
3997 global.
3998 (tui_source_window::showing_source_p): Likewise.
3999 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
4000 (_locator): Delete.
4001 (tui_locator_win_info_ptr): Delete.
4002 (tui_locator_window::make_status_line): Fetch state from
4003 tui_location global.
4004 (tui_locator_window::rerender): Remove check of 'handle',
4005 reindent function body.
4006 (tui_locator_window::set_locator_fullname): Delete.
4007 (tui_locator_window::set_locator_info): Delete.
4008 (tui_update_locator_fullname): Delete.
4009 (tui_show_frame_info): Likewise.
4010 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
4011 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
4012 tui/tui-location.h and renamed to
4013 tui_location_tracker::set_location.
4014 (tui_locator_window::set_locator_fullname): Moved to
4015 tui/tui-location.h and renamed to
4016 tui_location_tracker::set_fullname.
4017 (tui_locator_window::full_name): Delete.
4018 (tui_locator_window::proc_name): Delete.
4019 (tui_locator_window::line_no): Delete.
4020 (tui_locator_window::addr): Delete.
4021 (tui_locator_window::gdbarch): Delete.
4022 (tui_update_locator_fullname): Delete declaration.
4023 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
4024 for locator window.
4025 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
4026 (tui_display_main): Call function on tui_location directly.
4027 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
4028 * tui/tui-location.c: New file.
4029 * tui/tui-location.h: New file.
4030
8ee511af
SM
40312021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4032
4033 * gdbtypes.h (get_type_arch): Rename to...
4034 (struct type) <arch>: ... this, update all users.
4035
6ac37371
SM
40362021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4037
4038 * gdbtypes.h (struct type) <arch>: Rename to...
4039 <arch_owner>: ... this, update all users.
4040 <objfile>: Rename to...
4041 <objfile_owner>: ... this, update all users.
4042
24cf6389
AB
40432021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4044
4045 * gdbcmd.h (execute_command_to_string): Update comment.
4046 * top.c (execute_command_to_string): Update header comment.
4047
2a7f6487
TV
40482021-01-28 Tom de Vries <tdevries@suse.de>
4049
4050 PR breakpoints/27205
4051 * breakpoint.c (create_longjmp_master_breakpoint_probe)
4052 (create_longjmp_master_breakpoint_names): New function, factored out
4053 of ...
4054 (create_longjmp_master_breakpoint): ... here. Only try to install
4055 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
4056 breakpoint in libc.so failed.
4057
59b59f08
LS
40582021-01-27 Lancelot SIX <lsix@lancelotsix.com>
4059
4060 PR gdb/27133
4061 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
4062 unique_ptr is released when the wrapped pointer is kept for later
4063 use.
4064
807f647c
MM
40652021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
4066
4067 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
4068 BLR and BR instructions.
4069 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
4070 (enum aarch64_masks): New.
4071
4ef367bf
TT
40722021-01-26 Tom Tromey <tromey@adacore.com>
4073
4074 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4075 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
4076 (windows_init_thread_list, windows_nat::handle_load_dll)
4077 (windows_nat::handle_unload_dll, windows_nat_target::resume)
4078 (windows_nat_target::resume)
4079 (windows_nat_target::get_windows_debug_event)
4080 (windows_nat_target::interrupt, windows_xfer_memory)
4081 (windows_nat_target::close): Update.
4082 * nat/windows-nat.c (DEBUG_EVENTS): Use
4083 debug_prefixed_printf_cond.
4084 (matching_pending_stop, fetch_pending_stop)
4085 (continue_last_debug_event): Update.
4086
4cb1265b
MS
40872020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
4088
4089 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
4090 elfcore_write_file_note.
4091
d0cc52bd
SV
40922021-01-26 Shahab Vahedi <shahab@synopsys.com>
4093
4094 * arc-tdep.c (arc_add_reggroups): New function.
4095 (arc_gdbarch_init): Call arc_add_reggroups.
4096
ac3571d9 40972021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
4098
4099 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
4100
9f6c202e
TV
41012021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4102 Simon Marchi <simon.marchi@polymtl.ca>
4103 Tom de Vries <tdevries@suse.de>
4104
4105 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4106 DW_AT_ranges.
4107
a625a8c9
TT
41082021-01-25 Tom Tromey <tromey@adacore.com>
4109
4110 * dwarf2/read.c (get_mpz): New function.
4111 (get_dwarf2_rational_constant): Use it.
4112
19184910
TT
41132021-01-25 Tom Tromey <tromey@adacore.com>
4114
4115 * ada-lang.c (resolve_subexp): Handle array context.
4116
b10bae18
TT
41172021-01-23 Tom Tromey <tom@tromey.com>
4118
4119 PR compile/25575
4120 * compile/compile-loc2c.c (note_register): New function.
4121 (pushf_register_address, pushf_register): Use it.
4122
3637a558
TT
41232021-01-23 Tom Tromey <tom@tromey.com>
4124
4125 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4126 Change type of "registers_used".
4127 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
4128 * dwarf2/loc.c (dwarf2_compile_property_to_c)
4129 (locexpr_generate_c_location, loclist_generate_c_location): Change
4130 type of "registers_used".
4131 * compile/compile.h (compile_dwarf_expr_to_c)
4132 (compile_dwarf_bounds_to_c): Update.
4133 * compile/compile-loc2c.c (pushf_register_address)
4134 (pushf_register, do_compile_dwarf_expr_to_c)
4135 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
4136 of "registers_used".
4137 * compile/compile-c.h (generate_c_for_variable_locations):
4138 Update.
4139 * compile/compile-c-symbols.c (generate_vla_size)
4140 (generate_c_for_for_one_variable): Change type of
4141 "registers_used".
4142 (generate_c_for_variable_locations): Return std::vector.
4143 * compile/compile-c-support.c (generate_register_struct): Change
4144 type of "registers_used".
4145 (compute): Update.
4146
9f7f6cb8
TT
41472021-01-23 Tom Tromey <tom@tromey.com>
4148
4149 * compile/compile-internal.h (class compile_instance)
4150 <set_arguments>: Change return type.
4151 * compile/compile.c (compile_to_object): Remove call to reset.
4152 (compile_instance::set_arguments): Change return type.
4153
dd5ca05f
SM
41542021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4155
4156 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
4157 * gdbtypes.h (struct type) <set_owner>: Add asserts.
4158
d3ee35db
LS
41592021-01-23 Lancelot SIX <lsix@lancelotsix.com>
4160
4161 * Makefile.in (SELFTESTS_SRCS): Add
4162 unittests/gdb_tilde_expand-selftests.c.
4163 * unittests/gdb_tilde_expand-selftests.c: New file.
4164
9d2d8a16
AB
41652021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4166
4167 PR cli/25956
4168 * NEWS: Mention new command.
4169 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
4170 (version_style): Define.
4171 (cli_style_option::cli_style_option): Add intensity parameter, and
4172 use as appropriate.
4173 (_initialize_cli_style): Register version style set/show commands.
4174 * cli/cli-style.h (cli_style_option): Add intensity parameter.
4175 (version_style): Declare.
4176 * top.c (print_gdb_version): Use version_stype, and styled_string
4177 to print the GDB version string.
4178
e7b43072
AB
41792021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4180
4181 * utils.c (emit_style_escape): Only emit an escape sequence if the
4182 requested style is different than the current applied style.
4183 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
4184 current applied_style.
4185 (fputs_styled): Remove is_default check.
4186 (fputs_styled_unfiltered): Likewise.
4187 (vfprintf_styled_no_gdbfmt): Likewise.
4188
2189c312
SM
41892021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4190
4191 * remote.h (remote_debug_printf): New.
4192 (remote_debug_printf_nofunc): New.
4193 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
4194 * remote.c: Use above macros throughout file.
4195
02349803
SM
41962021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4197
4198 * remote.h (remote_debug): Change to bool.
4199 * remote.c (remote_debug): Change to bool.
4200 (_initialize_remote): Adjust.
4201
cda09ec9
SM
42022021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4203
4204 * target.h (remote_debug): Move to...
4205 * remote.h (remote_debug): ... here.
4206 * top.c (remote_debug): Move to...
4207 * remote.c (remote_debug): ... here.
4208 * remote-sim.c: Include remote.h.
4209
baf2b57f
SM
42102021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4211
4212 * cli/cli-cmds.c (show_remote_debug): Remove.
4213 (show_remote_timeout): Remove.
4214 (_initialize_cli_cmds): Don't register commands.
4215 * remote.c (show_remote_debug): Move here.
4216 (show_remote_timeout): Move here.
4217 (_initialize_remote): Register commands.
4218
344e9841
SM
42192021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4220
4221 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
4222 type::objfile method instead.
4223
30625020
SM
42242021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4225
4226 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
4227 use the type::is_objfile_owned method.
4228
5b7d941b
SM
42292021-01-22 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
4232 (TYPE_OWNER): Remove.
4233 (TYPE_OBJFILE): Adjust.
4234 (struct main_type) <flag_objfile_owned>: Rename to...
4235 <m_flag_objfile_owned>: ... this.
4236 <owner>: Rename to...
4237 <m_owner>: ... this.
4238 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
4239 methods.
4240 (TYPE_ALLOC): Adjust.
4241 * gdbtypes.c (alloc_type): Adjust.
4242 (alloc_type_arch): Adjust.
4243 (alloc_type_copy): Adjust.
4244 (get_type_arch): Adjust.
4245 (smash_type): Adjust.
4246 (lookup_array_range_type): Adjust.
4247 (recursive_dump_type): Adjust.
4248 (copy_type_recursive): Adjust.
4249 * compile/compile-c-types.c (convert_func): Adjust.
4250 (convert_type_basic): Adjust.
4251 * compile/compile-cplus-types.c (compile_cplus_convert_func):
4252 Adjust.
4253 * language.c
4254 (language_arch_info::type_and_symbol::alloc_type_symbol):
4255 Adjust.
4256
d5d24e12
LM
42572021-01-21 Luis Machado <luis.machado@linaro.org>
4258
4259 * coffread.c (enter_linenos): Passing string to complaint.
4260 * valops.c (value_assign): Make array view.
4261
a59902a7
SM
42622021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4263
4264 * auto-load.h (debug_auto_load): Move here.
4265 (auto_load_debug_printf): New.
4266 * auto-load.c: Use auto_load_debug_printf.
4267 (debug_auto_load): Move to header.
4268 * linux-thread-db.c (try_thread_db_load): Use
4269 auto_load_debug_printf.
4270 * main.c (captured_main_1): Likewise.
4271
d3abc0ce
SM
42722021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4273
4274 * f-valprint.c (f77_array_offset_tbl): Remove.
4275
1e15fcac
SM
42762021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4277
4278 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
4279
439706e6
SM
42802021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4281
4282 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
4283 of gdb_select.
4284
325d39e4
HD
42852021-01-21 Hannes Domani <ssbssa@yahoo.de>
4286
4287 PR python/19151
4288 * python/py-breakpoint.c (bppy_get_location): Handle
4289 bp_hardware_breakpoint.
4290 (bppy_init): Likewise.
4291 (gdbpy_breakpoint_created): Likewise.
4292
7cb6d92a
SM
42932021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4294
4295 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
4296
d4dd4fca
SM
42972021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4298
4299 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
4300 (_initialize_gdb_bfd): Adjust.
4301
de53369b
SM
43022021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4303
4304 PR gdb/26828
4305 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
4306
17e593e9
SM
43072021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4308
4309 * dwarf2/read.c (follow_die_offset): Add logging.
4310 (dwarf2_per_objfile::age_comp_units): Add logging.
4311
6bd434d6
SM
43122021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4313
4314 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
4315 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
4316 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
4317 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
4318 * arm-tdep.c (struct frame_unwind): Make static.
4319 * auto-load.c (auto_load_safe_path_vec): Make static.
4320 * csky-tdep.c (csky_stub_unwind): Make static.
4321 * gdbarch.c (gdbarch_data_registry): Make static.
4322 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
4323 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
4324 * i386-tdep.c (i386_frame_setup_skip_insns,
4325 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
4326 Make static.
4327 * infrun.c (observer_mode): Make static.
4328 * linux-nat.c (sigchld_action): Make static.
4329 * linux-thread-db.c (thread_db_list): Make static.
4330 * maint-test-options.c (maintenance_test_options_list):
4331 * mep-tdep.c (mep_csr_registers): Make static.
4332 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
4333 (stats): Make static.
4334 * nat/linux-osdata.c (struct osdata_type): Make static.
4335 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
4336 * progspace.c (last_program_space_num): Make static.
4337 * python/py-param.c (struct parm_constant): Remove struct type
4338 name.
4339 (parm_constants): Make static.
4340 * python/py-record-btrace.c (btpy_list_methods): Make static.
4341 * python/py-record.c (recpy_gap_type): Make static.
4342 * record.c (record_goto_cmdlist): Make static.
4343 * regcache.c (regcache_descr_handle): Make static.
4344 * registry.h (DEFINE_REGISTRY): Make definition static.
4345 * symmisc.c (std_in, std_out, std_err): Make static.
4346 * top.c (previous_saved_command_line): Make static.
4347 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
4348 static.
4349 * unittests/command-def-selftests.c (nr_duplicates,
4350 nr_invalid_prefixcmd, lists): Make static.
4351 * unittests/observable-selftests.c (test_notification): Make
4352 static.
4353 * unittests/optional/assignment/1.cc (counter): Make static.
4354 * unittests/optional/assignment/2.cc (counter): Make static.
4355 * unittests/optional/assignment/3.cc (counter): Make static.
4356 * unittests/optional/assignment/4.cc (counter): Make static.
4357 * unittests/optional/assignment/5.cc (counter): Make static.
4358 * unittests/optional/assignment/6.cc (counter): Make static.
4359
a6c11cbb
JS
43602021-01-20 Joel Sherrill <joel@rtems.org>
4361
4362 PR gdb/27219
4363 * remote.c (struct remote_thread_info) <resume_state>: Rename
4364 to...
4365 <get_resume_state>: ... this.
4366 (remote_target::resume): Adjust.
4367 (remote_target::commit_resume): Adjust.
4368 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
4369
6f52fdf4
SDJ
43702021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
4371 Tom Tromey <tom@tromey.com>
4372
4373 * stap-probe.c (stap_parse_single_operand): Handle '!'
4374 operator.
4375 (stap_parse_argument_conditionally): Likewise.
4376 Skip spaces after processing open-parenthesis sub-expression.
4377 (stap_parse_argument_1): Skip spaces after call to
4378 stap_parse_argument_conditionally.
4379 Handle case when right-side expression is a parenthesized
4380 sub-expression.
4381 Skip spaces after call to stap_parse_argument_1.
4382
1c3b85ad
LS
43832021-01-19 Lancelot SIX <lsix@lancelotsix.com>
4384
4385 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4386
a9a87d35
LM
43872021-01-19 Luis Machado <luis.machado@linaro.org>
4388
4389 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
4390 memory and save data.
4391 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
4392 (trad_frame_set_unknown, trad_frame_set_value_bytes)
4393 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4394 (trad_frame_value_bytes_p): Remove.
4395 (trad_frame_reset_saved_regs): Adjust documentation.
4396 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
4397 constructor and reset the state of the registers.
4398 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4399 (trad_frame_value_bytes_p, trad_frame_set_value)
4400 (trad_frame_set_realreg, trad_frame_set_addr)
4401 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
4402 (trad_frame_set_reg_realreg): Update to call member function.
4403 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
4404 (trad_frame_get_prev_register): Likewise.
4405
4406 * aarch64-tdep.c (aarch64_analyze_prologue)
4407 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
4408 (aarch64_prologue_prev_register): Update to use member functions.
4409 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
4410 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
4411 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
4412 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
4413 (arm_make_epilogue_frame_cache): Likewise.
4414 * avr-tdep.c (avr_frame_unwind_cache)
4415 (avr_frame_prev_register): Likewise.
4416 * cris-tdep.c (cris_scan_prologue): Likewise.
4417 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
4418 * frv-tdep.c (frv_analyze_prologue): Likewise.
4419 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
4420 * lm32-tdep.c (lm32_frame_cache): Likewise.
4421 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4422 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
4423 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
4424 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
4425 (reset_saved_regs): Adjust to set realreg.
4426 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
4427 call member functions.
4428 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
4429 * s390-tdep.c (s390_prologue_frame_unwind_cache)
4430 (s390_backchain_frame_unwind_cache): Likewise.
4431 * score-tdep.c (score7_analyze_prologue)
4432 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
4433 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
4434 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4435 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
4436 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4437 * tilegx-tdep.c (tilegx_analyze_prologue)
4438 (tilegx_frame_cache): Likewise.
4439 * v850-tdep.c (v850_frame_cache): Likewise.
4440 * vax-tdep.c (vax_frame_cache): Likewise.
4441
bdec2917
LM
44422021-01-19 Luis Machado <luis.machado@linaro.org>
4443
4444 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
4445 of buffer + length.
4446 (put_frame_register_bytes): Likewise.
4447 Adjust documentation.
4448 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
4449 (safe_frame_unwind_memory): Likewise.
4450 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
4451 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
4452 gdb::array_view.
4453 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
4454 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
4455 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
4456 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
4457 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
4458 * dwarf2/loc.c (rw_pieced_value): Likewise.
4459 * hppa-tdep.c (hppa_frame_cache): Likewise.
4460 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
4461 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
4462 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4463 (i386_linux_rt_sigtramp_start): Likewise.
4464 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
4465 * i386-tdep.c (i386_register_to_value): Likewise.
4466 * i387-tdep.c (i387_register_to_value): Likewise.
4467 * ia64-tdep.c (ia64_register_to_value): Likewise.
4468 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
4469 (m32r_linux_rt_sigtramp_start): Likewise.
4470 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
4471 * m68k-tdep.c (m68k_register_to_value): Likewise.
4472 * mips-tdep.c (mips_register_to_value)
4473 (mips_value_to_register): Likewise.
4474 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
4475 (ppcfbsd_sigtramp_frame_cache): Likewise.
4476 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
4477 (ppcobsd_sigtramp_frame_cache): Likewise.
4478 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
4479 (rs6000_register_to_value): Likewise.
4480 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4481 * tramp-frame.c (tramp_frame_start): Likewise.
4482 * valops.c (value_assign): Likewise.
4483
ccbe4c82
LM
44842021-01-19 Luis Machado <luis.machado@linaro.org>
4485
4486 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
4487 array_view.
4488 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
4489 instead of buffer and size.
4490 (trad_frame_set_reg_value_bytes): Likewise.
4491 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
4492 (trad_frame_set_value_bytes): Likewise.
4493
0e7620dc
MF
44942021-01-18 Mike Frysinger <vapier@gentoo.org>
4495
4496 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
4497
6a9ad81c
AB
44982021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
4499
4500 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
4501 (riscv_fbsd_gregset): Use riscv_supply_regset.
4502 (riscv_fbsd_fpregset): Likewise.
4503 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
4504 (riscv_linux_fregset): Likewise.
4505 * riscv-tdep.c (riscv_supply_regset): Define new function.
4506 * riscv-tdep.h (riscv_supply_regset): Declare new function.
4507
d3d7d1ba
TV
45082021-01-18 Tom de Vries <tdevries@suse.de>
4509
4510 PR tdep/27172
4511 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
4512 New macro.
4513 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
4514 for SEGV_BNDERR.
4515
aa2838cc
SM
45162021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4517
4518 * remote.c (class remote_target) <remote_hostio_send_command,
4519 remote_hostio_parse_result>: Constify parameter.
4520 (remote_hostio_parse_result): Likewise.
4521 (remote_target::remote_hostio_send_command): Adjust.
4522 (remote_target::remote_hostio_pread_vFile): Adjust.
4523 (remote_target::fileio_readlink): Adjust.
4524 (remote_target::fileio_fstat): Adjust.
4525
b5c8f22d
SM
45262021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4527
4528 * remote.c (remote_target::start_remote): Move wait_status to
4529 narrower scope.
4530
e3b2741b
SM
45312021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4532
4533 * remote.c (class remote_target):
4534 <add_current_inferior_and_thread>: Constify parameter.
4535 (stop_reply_extract_thread): Likewise.
4536 (remote_target::get_current_thread): Likewise.
4537 (remote_target::add_current_inferior_and_thread): Likewise.
4538
cecb1912
SM
45392021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4540
4541 * remote.c (class remote_target)
4542 <remote_unpack_thread_info_response,
4543 parse_threadlist_response>: Constify parameter and/or return
4544 value and or local variable.
4545 (stub_unpack_int): Likewise.
4546 (unpack_nibble): Likewise.
4547 (unpack_byte): Likewise.
4548 (unpack_int): Likewise.
4549 (unpack_string): Likewise.
4550 (unpack_threadid): Likewise.
4551 (remote_target::remote_unpack_thread_info_response): Likewise.
4552 (remote_target::parse_threadlist_response): Likewise.
4553
5a11fff0
AB
45542021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
4555
4556 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
4557
17e89137
LS
45582021-01-14 Lancelot Six <lsix@lancelotsix.com>
4559
4560 * MAINTAINERS (Write After Approval): Add myself.
4561
58eadc4b
BE
45622021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4563
4564 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
4565 because is_trivially_default_constructible was first implemented with
4566 gcc-5.
4567
5fae2a2c
TV
45682021-01-14 Tom de Vries <tdevries@suse.de>
4569
4570 PR breakpoints/27151
4571 * objfiles.h (in_plt_section): Handle .plt.sec.
4572
8f66807b
AB
45732021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4574
4575 PR gdb/26819
4576 * remote.c
4577 (remote_target::select_thread_for_ambiguous_stop_reply): New
4578 member function.
4579 (remote_target::process_stop_reply): Call
4580 select_thread_for_ambiguous_stop_reply.
4581
bd497355
SM
45822021-01-13 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * record-btrace.c (class record_btrace_target): Remove.
4585 (record_btrace_target::commit_resume): Remove.
4586 * record-full.c (class record_full_target): Remove.
4587 (record_full_target::commit_resume): Remove.
4588
c9d22089
SM
45892021-01-13 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * remote.c (enum class resume_state): New.
4592 (struct resumed_pending_vcont_info): New.
4593 (struct remote_thread_info) <resume_state, set_not_resumed,
4594 set_resumed_pending_vcont, resumed_pending_vcont_info,
4595 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
4596 New.
4597 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
4598 (remote_target::remote_add_thread): Adjust.
4599 (remote_target::process_initial_stop_replies): Adjust.
4600 (remote_target::resume): Adjust.
4601 (remote_target::commit_resume): Rely on state in
4602 remote_thread_info and not on tp->executing.
4603 (remote_target::process_stop_reply): Adjust.
4604
d8d1feb4
SM
46052021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4606
4607 * arc-tdep.h (arc_debug_printf): New.
4608 * arc-tdep.c: Use arc_debug_printf.
4609 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
4610 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
4611 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
4612
fb0f5031
SM
46132021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4614
4615 * arc-tdep.h (arc_debug): Change type to bool.
4616 * arc-tdep.c (arc_debug): Change type to bool.
4617 (arc_analyze_prologue): Adjust.
4618 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
4619 * arc-linux-nat.c (ps_get_thread_area): Adjust.
4620
5bf7e91b
SM
46212021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4622
4623 * auto-load.c (auto_load_objfile_script_1): Use bool.
4624 (execute_script_contents): Use bool.
4625
db972fce
SM
46262021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4627
4628 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
4629 comment here.
4630 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
4631 comment to header.
4632 * extension-priv.h (struct extension_language_script_ops)
4633 <auto_load_enabled>: Return bool.
4634 * extension.h (ext_lang_auto_load_enabled): Return bool, move
4635 comment here.
4636 * extension.c (ext_lang_auto_load_enabled): Return bool, move
4637 comment to header.
4638 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
4639 move comment here.
4640 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
4641 move comment to header.
4642 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
4643 move comment here.
4644 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
4645 move comment to header.
4646
5e12f48f
SM
46472021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4648
4649 * auto-load.h (file_is_auto_load_safe): Change return type to
4650 bool, move comment here.
4651 * auto-load.c (file_is_auto_load_safe): Change return type and
4652 advice_printed to bool. Move comment to header.
4653
54ca9002
SM
46542021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4655
4656 * jit.c (jit_debug_printf): New, use throughout file.
4657
24a7f1b5
SM
46582021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4659
4660 * infrun.c (normal_stop): Fix indentation.
4661
fe7a351a
SM
46622021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4663
4664 * top.h (readnow_symbol_files, readnever_symbol_files): Move
4665 declarations to ...
4666 * symfile.h: ... here.
4667 * symfile.c: Update doc.
4668
16e9019e
SM
46692021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4670
4671 * target.h (baud_rate, serial_parity): Move declarations...
4672 * serial.h: ... here.
4673 * main.c: Include serial.h.
4674 * serial.c (baud_rate, serial_parity): Update doc.
4675
b2f2ae0d
SM
46762021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4677
4678 * top.c (pre_init_ui_hook): Remove.
4679
5291fe3c
SP
46802021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4681
4682 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
4683 (aarch64_vnv_type): Add "bf" type in h field of v registers.
4684 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
4685 * features/aarch64-fpu.xml: Add bfloat16 type.
4686
ce38f5ed
AB
46872021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4688
4689 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
4690
7c654b71
AB
46912021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4692
4693 * f-exp.y (dot_ops): Rename to...
4694 (fortran_operators): ...this. Add a header comment. Add symbol
4695 based operators.
4696 (yylex): Update to use fortran_operators not dot_ops. Remove
4697 special handling for '**', this is now included in
4698 fortran_operators.
4699
c6185dce
SM
47002021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4701
4702 * arch/aarch64-insn.h (aarch64_debug_printf): New.
4703 * arch/aarch64-insn.c: Use aarch64_debug_printf.
4704 * aarch64-tdep.c: Use aarch64_debug_printf.
4705
eef401dc
SM
47062021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4707
4708 * solib-aix.c (solib_aix_debug_printf): New, use throughout
4709 file.
4710
062eaacb
SM
47112021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4712
4713 * jit.c (jit_debug): Change type to bool.
4714 (_initialize_jit): Adjust.
4715
54585eee
TT
47162021-01-09 Tom Tromey <tom@tromey.com>
4717
4718 PR compile/23672
4719 * compile/compile.c (compile_to_object): Avoid crash when
4720 osabi_triplet_regexp returns NULL.
4721
bc167b6b
TT
47222021-01-09 Tom Tromey <tom@tromey.com>
4723
4724 * tracepoint.h (class collection_list) <append_exp>: Take a
4725 std::string.
4726 * tracepoint.c (collection_list::append_exp): Take a std::string.
4727 (encode_actions_1): Update.
4728
8fc48b79
TT
47292021-01-08 Tom Tromey <tromey@adacore.com>
4730
4731 * parse.c (parse_expression): Add void_context_p parameter. Use
4732 parse_exp_in_context.
4733 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
4734 parse_expression.
4735 (print_command, call_command): Update.
4736 * expression.h (parse_expression): Add void_context_p parameter.
4737
3c8c6de2
AB
47382021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4739
4740 * value.c (set_value_component_location): Adjust the VALUE_LVAL
4741 for internalvar components that have a dynamic location.
4742
1940319c
TV
47432021-01-08 Tom de Vries <tdevries@suse.de>
4744
4745 PR gdb/26881
4746 * breakpoint.c (create_exception_master_breakpoint_probe)
4747 (create_exception_master_breakpoint_hook): Factor out
4748 of ...
4749 (create_exception_master_breakpoint): ... here. Only try to install
4750 the master exception breakpoint in objfile.debug using the
4751 _Unwind_DebugHook method, if the install using probes in objfile
4752 failed.
4753
e3436813
AB
47542021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4755
4756 * f-lang.c (fortran_value_subarray): Call value_from_component.
4757
e904f56d
MF
47582021-01-07 Mike Frysinger <vapier@gentoo.org>
4759
4760 * remote-sim.c: Include memory-map.h.
4761 (gdbsim_target): Define memory_map override.
4762 (gdbsim_target::memory_map): Define.
4763
959d6a67
TT
47642021-01-07 Tom Tromey <tromey@adacore.com>
4765
4766 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
4767
d4813f10
TT
47682021-01-07 Tom Tromey <tromey@adacore.com>
4769
4770 * ada-lang.c (add_component_interval): Start loop using vector's
4771 updated size.
4772
b49180ac
TT
47732021-01-06 Tom Tromey <tromey@adacore.com>
4774
4775 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
4776 Do not cast result.
4777 * valarith.c (fixed_point_binop): Handle multiplication
4778 and division specially.
4779 * valops.c (value_to_gdb_mpq): New function.
4780 (value_cast_to_fixed_point): Use it.
4781
55195361
HD
47822021-01-05 Hannes Domani <ssbssa@yahoo.de>
4783
4784 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4785 Call wnoutrefresh instead of tui_win_info::refresh_window.
4786
1b6d4bb2
HD
47872021-01-05 Hannes Domani <ssbssa@yahoo.de>
4788
4789 * tui/tui-source.c (tui_source_window::show_line_number):
4790 Redraw second space after line number.
4791
b5ff370e
HD
47922021-01-05 Hannes Domani <ssbssa@yahoo.de>
4793
4794 PR tui/26927
4795 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4796 Fix source pad size in prefresh.
4797 (tui_source_window_base::show_source_content): Grow source pad
4798 if necessary.
4799
c68ea49f
MF
48002021-01-04 Mike Frysinger <vapier@gentoo.org>
4801
4802 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
4803 (bfin_frame_align): Use align_down.
4804
e4ad960a
TV
48052021-01-04 Tom de Vries <tdevries@suse.de>
4806
4807 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
4808 terminators that do not terminate anything.
4809
3ec3145c
SM
48102021-01-04 Simon Marchi <simon.marchi@efficios.com>
4811
4812 * debug.c (debug_print_depth): New.
4813 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
4814 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
4815 * infrun.c (start_step_over): Use
4816 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4817 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
4818 INFRUN_SCOPED_DEBUG_START_END.
4819 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4820
e71daf80
SM
48212021-01-04 Simon Marchi <simon.marchi@efficios.com>
4822
4823 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
4824
335709bc
SM
48252021-01-04 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * utils.c (vfprintf_unfiltered): Print timestamp only when
4828 previous debug output ended with a newline.
4829
098caef4
LM
48302021-01-04 Luis Machado <luis.machado@linaro.org>
4831
4832 Update all users of trad_frame_saved_reg to use the new member
4833 functions.
4834
4835 Remote all struct keywords from declarations of trad_frame_saved_reg
4836 types, except on forward declarations.
4837
4838 * aarch64-tdep.c: Update.
4839 * alpha-mdebug-tdep.c: Update.
4840 * alpha-tdep.c: Update.
4841 * arc-tdep.c: Update.
4842 * arm-tdep.c: Update.
4843 * avr-tdep.c: Update.
4844 * cris-tdep.c: Update.
4845 * csky-tdep.c: Update.
4846 * frv-tdep.c: Update.
4847 * hppa-linux-tdep.c: Update.
4848 * hppa-tdep.c: Update.
4849 * hppa-tdep.h: Update.
4850 * lm32-tdep.c: Update.
4851 * m32r-linux-tdep.c: Update.
4852 * m32r-tdep.c: Update.
4853 * m68hc11-tdep.c: Update.
4854 * mips-tdep.c: Update.
4855 * moxie-tdep.c: Update.
4856 * riscv-tdep.c: Update.
4857 * rs6000-tdep.c: Update.
4858 * s390-linux-tdep.c: Update.
4859 * s390-tdep.c: Update.
4860 * score-tdep.c: Update.
4861 * sparc-netbsd-tdep.c: Update.
4862 * sparc-sol2-tdep.c: Update.
4863 * sparc64-fbsd-tdep.c: Update.
4864 * sparc64-netbsd-tdep.c: Update.
4865 * sparc64-obsd-tdep.c: Update.
4866 * sparc64-sol2-tdep.c: Update.
4867 * tilegx-tdep.c: Update.
4868 * v850-tdep.c: Update.
4869 * vax-tdep.c: Update.
4870
4871 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4872 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4873
4874 * trad-frame.c: Update.
4875 Remove TF_REG_* enum.
4876 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4877 a trivially-constructible struct.
4878 (trad_frame_reset_saved_regs): Adjust to use member function.
4879 (trad_frame_value_p): Likewise.
4880 (trad_frame_addr_p): Likewise.
4881 (trad_frame_realreg_p): Likewise.
4882 (trad_frame_value_bytes_p): Likewise.
4883 (trad_frame_set_value): Likewise.
4884 (trad_frame_set_realreg): Likewise.
4885 (trad_frame_set_addr): Likewise.
4886 (trad_frame_set_unknown): Likewise.
4887 (trad_frame_set_value_bytes): Likewise.
4888 (trad_frame_get_prev_register): Likewise.
4889 * trad-frame.h: Update.
4890 (trad_frame_saved_reg_kind): New enum.
4891 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4892 <m_kind, m_reg>: New member fields.
4893 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4894 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4895 <is_addr, is_unknown, is_value_bytes>: New member functions.
4896
9898e882
SM
48972021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
4898
4899 * target-float.c: Fix typos.
4900
b66b4e65
HD
49012021-01-02 Hannes Domani <ssbssa@yahoo.de>
4902
4903 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4904
b5b5650a
JB
49052021-01-01 Joel Brobecker <brobecker@adacore.com>
4906
4907 * gdbarch.sh: Update copyright year range.
4908
3666a048
JB
49092021-01-01 Joel Brobecker <brobecker@adacore.com>
4910
4911 Update copyright year range in copyright header of all GDB files.
4912
ff7e39b6
JB
49132021-01-01 Joel Brobecker <brobecker@adacore.com>
4914
4915 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4916 to the list of directories to update.
4917
2b47c078
JB
49182021-01-01 Joel Brobecker <brobecker@adacore.com>
4919
4920 * top.c (print_gdb_version): Update copyright year.
4921
476923f1 49222021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 4923
476923f1 4924 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 4925
476923f1 4926For older changes see ChangeLog-2020.
c906108c
SS
4927\f
4928Local Variables:
4929mode: change-log
4930left-margin: 8
4931fill-column: 74
4932version-control: never
57da7796 4933coding: utf-8
c906108c 4934End: