1 2021-04-10 Eli Zaretskii <eliz@gnu.org>
3 * windows-nat.c (windows_nat::handle_load_dll): Call
4 windows_add_dll if get_image_name failed to glean the name of the
5 DLL by using the lpImageName pointer.
6 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
7 (windows_add_dll): Now does what windows_add_all_dlls did before,
8 but also accepts an argument LOAD_ADDR, which, if non-NULL,
9 specifies the address where the DLL was loaded into the inferior,
10 and looks for the single DLL loaded at that address.
12 2021-04-09 Luis Machado <luis.machado@linaro.org>
14 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
16 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
18 * darwin-nat.c (darwin_nat_target::resume): Remove status
21 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
23 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
24 prologue end for Intel compilers.
25 * amd64-tdep.c (amd64_skip_prologue): Likewise.
26 * producer.c (producer_is_icc_ge_19): New function.
27 * producer.h (producer_is_icc_ge_19): New declaration.
29 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
31 * producer.c: (producer_is_icc): Update for new version scheme.
32 (producer_parsing_tests): Update names and expected results.
33 * producer.h: (producer_is_icc): Update comment accordingly.
35 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
37 * target.h (struct target_ops) <follow_fork>: Return void.
38 (target_follow_fork): Likewise.
39 * target.c (default_follow_fork): Likewise.
40 (target_follow_fork): Likewise.
41 * infrun.c (follow_fork_inferior): Adjust.
42 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
43 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
44 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
45 * linux-nat.c (linux_nat_target::follow_fork): Return void.
46 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
47 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
48 * remote.c (class remote_target) <follow_fork>: Likewise.
49 (remote_target::follow_fork): Likewise.
50 * target-delegates.c: Re-generate.
52 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
54 * ctfread.c (fetch_tid_type): New function, use throughout file.
55 (read_forward_type): New function.
56 (read_type_record): Call read_forward_type.
58 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
60 * f-exp.h (class fortran_structop_operation): New class.
61 * f-exp.y (exp): Create fortran_structop_operation instead of the
62 generic structop_operation.
63 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
64 expression as EVAL_NORMAL if the result type was dynamic so we can
65 extract the actual array bounds.
66 (fortran_structop_operation::evaluate): New function.
68 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
70 * eval.c (evaluate_subexp_standard): Remove
71 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
74 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
76 * valops.c (value_cast): Call value_deeply_equal before performing
79 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
81 * gdbtypes.c (types_equal): Move pointer equality check earlier in
84 2021-04-07 Caroline Tice <cmtice@google.com>
86 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
87 the search paths used resolve relative location of .dwo file.
89 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
91 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
93 (dwarf2_section_info::get_file_name): Add an assert.
94 (dwarf2_section_info::read_string): Display a minimal, sane error
95 when the dwarf2_section_info is not associated with a bfd section.
97 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
99 * top.c (staged_gdb_datadir): Update comment.
100 (set_gdb_datadir): Copy the value of gdb_datadir back into
102 (init_main): Initialise staged_gdb_datadir.
104 2021-04-06 Tom de Vries <tdevries@suse.de>
107 * infcmd.c (prepare_one_step): Using inline frame info to narrow
110 2021-04-06 Tom de Vries <tdevries@suse.de>
113 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
116 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
118 * avr-tdep.c (avr_frame_unwind_cache): Use
119 trad_frame_saved_reg::is_addr.
121 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
123 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
126 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
128 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
129 objfile parameter for objfile_per_bfd_storage, adjust callers.
130 (struct standard_psymtab) <standard_psymtab>: Likewise.
131 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
132 * psymtab.c (partial_symtab::partial_symtab): Likewise.
133 * ctfread.c (struct ctf_psymtab): Likewise.
134 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
135 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
136 (dwarf2_create_include_psymtab): Likewise.
137 * objfiles.h (struct objfile_per_bfd_storage)
138 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
139 <get_bfd>: New method.
141 * objfiles.c (get_objfile_bfd_data): Adjust.
143 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
145 * psymtab.c (partial_symtab::partial_symtab): Change
146 last_objfile_name to be an std::string.
147 * symfile.c (allocate_symtab): Likewise.
149 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
151 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
153 (struct objfile) <intern>: Use
154 objfile::objfile_per_bfd_storage::intern.
156 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
158 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
159 with type::is_flag_enum.
161 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
163 * gdbtypes.h (struct type) <is_flag_enum,
164 set_is_flag_enum>: New methods.
165 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
166 write call sites to use type::set_is_flag_enum.
168 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
170 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
171 with type::is_declared_class.
173 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
175 * gdbtypes.h (struct type) <is_declared_class,
176 set_is_declared_class>: New methods.
177 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
178 write call sites to use type::set_is_declared_class.
180 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
182 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
183 to avoid deprecation warnings.
185 2021-04-01 Martin Liska <mliska@suse.cz>
187 * cp-name-parser.y: Use startswith instead of strncmp.
188 * m2-exp.y: Likewise.
189 * macroexp.c (substitute_args): Likewise.
190 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
191 * rust-exp.y: Likewise.
193 2021-03-31 Tom Tromey <tom@tromey.com>
195 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
196 with dw2_map_matching_symbols.
197 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
198 dw2_expand_symtabs_matching.
200 2021-03-31 Tom Tromey <tromey@adacore.com>
202 * dwarf2/stringify.h: Fix typo.
204 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
207 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
208 with objfiles using READNOW.
210 2021-03-29 Tom Tromey <tromey@adacore.com>
212 * top.c (check_frame_language_change): Update.
213 * language.c (language_info): Remove parameter.
214 * language.h (language_info): Remove parameter.
216 2021-03-29 Luis Machado <luis.machado@linaro.org>
218 * compile/compile.c (get_args): Don't add empty argv entries.
220 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
223 * procfs.c (procfs_target::attach): Define inf.
225 (procfs_target::create_inferior): Likewise.
227 2021-03-28 Tom Tromey <tom@tromey.com>
229 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
230 (elf_symfile_read): Simplify.
231 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
232 (make_lazy_dwarf_reader): New function.
233 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
234 (dwarf2_initialize_objfile): Return void. Remove index_kind
235 parameter. Push on 'qf' list.
236 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
237 type. Remove 'index_kind' parameter.
238 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
240 2021-03-27 Tom Tromey <tom@tromey.com>
242 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
244 2021-03-27 Tom Tromey <tom@tromey.com>
246 * elfread.c (elf_symfile_read): Don't clear 'qf'.
248 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
250 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
253 2021-03-26 Tom Tromey <tom@tromey.com>
255 * symtab.c (struct output_source_filename_data): Add 'output'
256 method and operator().
257 (output_source_filename_data::output): Rename from
258 output_source_filename.
259 (output_partial_symbol_filename): Remove.
260 (info_sources_command): Update.
261 (struct add_partial_filename_data): Add operator().
262 (add_partial_filename_data::operator()): Rename from
263 maybe_add_partial_symtab_filename.
264 (make_source_files_completion_list): Update.
265 * symfile.c (quick_symbol_functions): Update.
266 * symfile-debug.c (objfile::map_symbol_filenames): Update.
267 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
268 'need_fullname'. Remove 'data' parameter.
269 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
270 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
271 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
272 Change type of 'fun' and 'need_fullname'. Remove 'data'
274 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
275 of 'fun' and 'need_fullname'. Remove 'data' parameter.
276 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
278 (mi_cmd_file_list_exec_source_files): Update.
280 (dwarf2_base_index_functions::map_symbol_filenames): Update.
282 2021-03-26 Tom Tromey <tom@tromey.com>
284 * ada-lang.c (struct match_data): Add operator().
285 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
286 (callback): Remove 'callback'.
288 2021-03-26 Tom Tromey <tom@tromey.com>
290 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
291 call make_ignore_params once.
293 2021-03-26 Tom Tromey <tom@tromey.com>
295 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
298 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
299 Pedro Alves <pedro@palves.net>
301 * async-event.c: Include "infrun.h".
302 (async_event_handler_marked): New.
303 * async-event.h (async_event_handler_marked): Declare.
304 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
305 inferior before calling target method. Don't commit-resumed if
306 target_has_pending_events is true.
307 * remote.c (remote_target::has_pending_events): New.
308 * target-delegates.c: Regenerate.
309 * target.c (target_has_pending_events): New.
310 * target.h (target_ops::has_pending_events): New target method.
311 (target_has_pending_events): New.
313 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
314 Pedro Alves <pedro@palves.net>
316 * infcmd.c (run_command_1, attach_command, detach_command)
317 (interrupt_target_1): Use scoped_disable_commit_resumed.
318 * infrun.c (do_target_resume): Remove
319 target_commit_resume call.
320 (commit_resume_all_targets): Remove.
321 (maybe_set_commit_resumed_all_targets): New.
322 (maybe_call_commit_resumed_all_targets): New.
323 (enable_commit_resumed): New.
324 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
325 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
326 (scoped_disable_commit_resumed::reset)
327 (scoped_disable_commit_resumed::reset_and_commit)
328 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
329 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
331 (proceed): Use scoped_disable_commit_resumed and
332 maybe_call_commit_resumed_all_targets.
333 (fetch_inferior_event): Use scoped_disable_commit_resumed.
334 * infrun.h (struct scoped_disable_commit_resumed): New.
335 (maybe_call_commit_resumed_all_process_targets): New.
336 (struct scoped_enable_commit_resumed): New.
337 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
338 * process-stratum-target.h (class process_stratum_target):
339 <commit_resumed_state>: New.
340 * record-full.c (record_full_wait_1): Change commit_resumed_state
341 around calling commit_resumed.
342 * remote.c (class remote_target) <commit_resume>: Rename to...
343 <commit_resumed>: ... this.
344 (struct stop_reply): Move up.
345 (remote_target::commit_resume): Rename to...
346 (remote_target::commit_resumed): ... this. Check if there is any
347 thread pending vCont resume.
348 (remote_target::remote_stop_ns): Generate stop replies for resumed
349 but pending vCont threads.
350 (remote_target::wait_ns): Add gdb_assert.
351 * target-delegates.c: Regenerate.
352 * target.c (target_wait, target_resume): Assert that the current
353 process_stratum target isn't in commit-resumed state.
354 (defer_target_commit_resume): Remove.
355 (target_commit_resume): Remove.
356 (target_commit_resumed): New.
357 (make_scoped_defer_target_commit_resume): Remove.
358 (target_stop): Assert that the current process_stratum target
359 isn't in commit-resumed state.
360 * target.h (struct target_ops) <commit_resume>: Rename to ...
361 <commit_resumed>: ... this.
362 (target_commit_resume): Remove.
363 (target_commit_resumed): New.
364 (make_scoped_defer_target_commit_resume): Remove.
365 * top.c (wait_sync_command_done): Use
366 scoped_enable_commit_resumed.
368 2021-03-26 Pedro Alves <pedro@palves.net>
370 * target.c (target_always_non_stop_p): Also check whether the
373 2021-03-26 Tom Tromey <tom@tromey.com>
375 * dwarf2/read.c (dwarf2_read_debug_names)
376 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
377 (dw2_debug_names_iterator::next, create_type_unit_group):
380 2021-03-25 Pedro Alves <pedro@palves.net>
382 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
383 around setting the breakpoint.
385 2021-03-25 Pedro Alves <pedro@palves.net>
388 (remote_target::check_pending_events_prevent_wildcard_vcont):
389 Check whether the event's ptid is not null_ptid before looking up
390 the corresponding inferior.
392 2021-03-24 Changbin Du <changbin.du@gmail.com>
394 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
397 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
399 * target.h (current_top_target): Remove, make callers use the
400 current inferior instead.
401 * target.c (current_top_target): Remove.
403 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
405 * target.h (target_shortname): Change to function declaration.
406 (target_longname): Likewise.
407 (target_attach_no_wait): Likewise.
408 (target_post_attach): Likewise.
409 (target_prepare_to_store): Likewise.
410 (target_supports_enable_disable_tracepoint): Likewise.
411 (target_supports_string_tracing): Likewise.
412 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
413 (target_supports_dumpcore): Likewise.
414 (target_dumpcore): Likewise.
415 (target_can_run_breakpoint_commands): Likewise.
416 (target_files_info): Likewise.
417 (target_post_startup_inferior): Likewise.
418 (target_insert_fork_catchpoint): Likewise.
419 (target_remove_fork_catchpoint): Likewise.
420 (target_insert_vfork_catchpoint): Likewise.
421 (target_remove_vfork_catchpoint): Likewise.
422 (target_insert_exec_catchpoint): Likewise.
423 (target_remove_exec_catchpoint): Likewise.
424 (target_set_syscall_catchpoint): Likewise.
425 (target_rcmd): Likewise.
426 (target_can_lock_scheduler): Likewise.
427 (target_can_async_p): Likewise.
428 (target_is_async_p): Likewise.
429 (target_execution_direction): Likewise.
430 (target_extra_thread_info): Likewise.
431 (target_pid_to_exec_file): Likewise.
432 (target_thread_architecture): Likewise.
433 (target_find_memory_regions): Likewise.
434 (target_make_corefile_notes): Likewise.
435 (target_get_bookmark): Likewise.
436 (target_goto_bookmark): Likewise.
437 (target_stopped_by_watchpoint): Likewise.
438 (target_stopped_by_sw_breakpoint): Likewise.
439 (target_supports_stopped_by_sw_breakpoint): Likewise.
440 (target_stopped_by_hw_breakpoint): Likewise.
441 (target_supports_stopped_by_hw_breakpoint): Likewise.
442 (target_have_steppable_watchpoint): Likewise.
443 (target_can_use_hardware_watchpoint): Likewise.
444 (target_region_ok_for_hw_watchpoint): Likewise.
445 (target_can_do_single_step): Likewise.
446 (target_insert_watchpoint): Likewise.
447 (target_remove_watchpoint): Likewise.
448 (target_insert_hw_breakpoint): Likewise.
449 (target_remove_hw_breakpoint): Likewise.
450 (target_can_accel_watchpoint_condition): Likewise.
451 (target_can_execute_reverse): Likewise.
452 (target_get_ada_task_ptid): Likewise.
453 (target_filesystem_is_local): Likewise.
454 (target_trace_init): Likewise.
455 (target_download_tracepoint): Likewise.
456 (target_can_download_tracepoint): Likewise.
457 (target_download_trace_state_variable): Likewise.
458 (target_enable_tracepoint): Likewise.
459 (target_disable_tracepoint): Likewise.
460 (target_trace_start): Likewise.
461 (target_trace_set_readonly_regions): Likewise.
462 (target_get_trace_status): Likewise.
463 (target_get_tracepoint_status): Likewise.
464 (target_trace_stop): Likewise.
465 (target_trace_find): Likewise.
466 (target_get_trace_state_variable_value): Likewise.
467 (target_save_trace_data): Likewise.
468 (target_upload_tracepoints): Likewise.
469 (target_upload_trace_state_variables): Likewise.
470 (target_get_raw_trace_data): Likewise.
471 (target_get_min_fast_tracepoint_insn_len): Likewise.
472 (target_set_disconnected_tracing): Likewise.
473 (target_set_circular_trace_buffer): Likewise.
474 (target_set_trace_buffer_size): Likewise.
475 (target_set_trace_notes): Likewise.
476 (target_get_tib_address): Likewise.
477 (target_set_permissions): Likewise.
478 (target_static_tracepoint_marker_at): Likewise.
479 (target_static_tracepoint_markers_by_strid): Likewise.
480 (target_traceframe_info): Likewise.
481 (target_use_agent): Likewise.
482 (target_can_use_agent): Likewise.
483 (target_augmented_libraries_svr4_read): Likewise.
484 (target_log_command): Likewise.
485 * target.c (target_shortname): New.
486 (target_longname): New.
487 (target_attach_no_wait): New.
488 (target_post_attach): New.
489 (target_prepare_to_store): New.
490 (target_supports_enable_disable_tracepoint): New.
491 (target_supports_string_tracing): New.
492 (target_supports_evaluation_of_breakpoint_conditions): New.
493 (target_supports_dumpcore): New.
494 (target_dumpcore): New.
495 (target_can_run_breakpoint_commands): New.
496 (target_files_info): New.
497 (target_post_startup_inferior): New.
498 (target_insert_fork_catchpoint): New.
499 (target_remove_fork_catchpoint): New.
500 (target_insert_vfork_catchpoint): New.
501 (target_remove_vfork_catchpoint): New.
502 (target_insert_exec_catchpoint): New.
503 (target_remove_exec_catchpoint): New.
504 (target_set_syscall_catchpoint): New.
506 (target_can_lock_scheduler): New.
507 (target_can_async_p): New.
508 (target_is_async_p): New.
509 (target_execution_direction): New.
510 (target_extra_thread_info): New.
511 (target_pid_to_exec_file): New.
512 (target_thread_architecture): New.
513 (target_find_memory_regions): New.
514 (target_make_corefile_notes): New.
515 (target_get_bookmark): New.
516 (target_goto_bookmark): New.
517 (target_stopped_by_watchpoint): New.
518 (target_stopped_by_sw_breakpoint): New.
519 (target_supports_stopped_by_sw_breakpoint): New.
520 (target_stopped_by_hw_breakpoint): New.
521 (target_supports_stopped_by_hw_breakpoint): New.
522 (target_have_steppable_watchpoint): New.
523 (target_can_use_hardware_watchpoint): New.
524 (target_region_ok_for_hw_watchpoint): New.
525 (target_can_do_single_step): New.
526 (target_insert_watchpoint): New.
527 (target_remove_watchpoint): New.
528 (target_insert_hw_breakpoint): New.
529 (target_remove_hw_breakpoint): New.
530 (target_can_accel_watchpoint_condition): New.
531 (target_can_execute_reverse): New.
532 (target_get_ada_task_ptid): New.
533 (target_filesystem_is_local): New.
534 (target_trace_init): New.
535 (target_download_tracepoint): New.
536 (target_can_download_tracepoint): New.
537 (target_download_trace_state_variable): New.
538 (target_enable_tracepoint): New.
539 (target_disable_tracepoint): New.
540 (target_trace_start): New.
541 (target_trace_set_readonly_regions): New.
542 (target_get_trace_status): New.
543 (target_get_tracepoint_status): New.
544 (target_trace_stop): New.
545 (target_trace_find): New.
546 (target_get_trace_state_variable_value): New.
547 (target_save_trace_data): New.
548 (target_upload_tracepoints): New.
549 (target_upload_trace_state_variables): New.
550 (target_get_raw_trace_data): New.
551 (target_get_min_fast_tracepoint_insn_len): New.
552 (target_set_disconnected_tracing): New.
553 (target_set_circular_trace_buffer): New.
554 (target_set_trace_buffer_size): New.
555 (target_set_trace_notes): New.
556 (target_get_tib_address): New.
557 (target_set_permissions): New.
558 (target_static_tracepoint_marker_at): New.
559 (target_static_tracepoint_markers_by_strid): New.
560 (target_traceframe_info): New.
561 (target_use_agent): New.
562 (target_can_use_agent): New.
563 (target_augmented_libraries_svr4_read): New.
564 (target_log_command): New.
565 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
566 * infrun.c (set_schedlock_func): Adjust.
567 * mi/mi-main.c (exec_reverse_continue): Adjust.
568 * reverse.c (exec_reverse_once): Adjust.
569 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
570 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
571 * remote-sim.c (gdbsim_target::detach): Adjust.
572 (gdbsim_target::files_info): Adjust.
574 2021-03-24 Tom Tromey <tom@tromey.com>
576 * dwarf2/read.c (dw2_map_matching_symbols): Update.
577 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
578 (check_match, dw2_expand_symtabs_matching)
579 (dwarf2_debug_names_index::map_matching_symbols)
580 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
582 2021-03-24 Keith Seitz <keiths@redhat.com>
584 * compile/compile-cplus-types.c
585 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
588 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
590 * gdbarch.sh (gdbarch_data_registry): Make static.
591 * gdbarch.c: Re-generate.
593 2021-03-24 Luis Machado <luis.machado@linaro.org>
595 * NEWS: Mention memory tagging changes.
597 2021-03-24 Luis Machado <luis.machado@linaro.org>
599 * printcmd.c (decode_format): Handle the 'm' modifier.
600 (do_examine): Display allocation tags when required/supported.
601 (should_validate_memtags): New function.
602 (print_command_1): Display memory tag mismatches.
603 * valprint.c (show_memory_tag_violations): New function.
604 (value_print_option_defs): Add new option "memory-tag-violations".
605 (user_print_options) <memory_tag_violations>: Initialize to 1.
606 * valprint.h (struct format_data) <print_tags>: New field.
607 (value_print_options) <memory_tag_violations>: New field.
609 2021-03-24 Luis Machado <luis.machado@linaro.org>
611 * printcmd.c: Include gdbsupport/rsp-low.h.
612 (memory_tag_list): New static global.
613 (process_print_command_args): Factored out of
615 (print_command_1): Use process_print_command_args.
616 (show_addr_not_tagged, show_memory_tagging_unsupported)
617 (memory_tag_command, memory_tag_print_tag_command)
618 (memory_tag_print_logical_tag_command)
619 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
620 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
621 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
623 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
625 2021-03-24 Luis Machado <luis.machado@linaro.org>
627 * aarch64-linux-tdep.c
628 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
629 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
631 2021-03-24 Luis Machado <luis.machado@linaro.org>
633 * aarch64-linux-tdep.c
634 (aarch64_linux_report_signal_info): New function.
635 (aarch64_linux_init_abi): Register
636 aarch64_linux_report_signal_info as the report_signal_info hook.
637 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
638 (SEGV_MTESERR): Define.
640 2021-03-24 Luis Machado <luis.machado@linaro.org>
642 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
643 (aarch64_linux_ltag_tests): New function.
644 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
646 2021-03-24 Luis Machado <luis.machado@linaro.org>
648 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
649 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
650 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
651 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
653 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
654 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
655 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
656 (aarch64_linux_get_ltag): New functions.
657 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
658 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
659 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
660 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
662 2021-03-24 Luis Machado <luis.machado@linaro.org>
664 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
666 (struct smaps_data): New struct.
667 (decode_vmflags): Handle the 'mt' flag.
668 (parse_smaps_data): New function, refactored from
669 linux_find_memory_regions_full.
670 (linux_address_in_memtag_page): New function.
671 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
672 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
674 2021-03-24 Luis Machado <luis.machado@linaro.org>
676 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
677 instead of char arrays.
679 2021-03-24 Luis Machado <luis.machado@linaro.org>
681 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
682 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
683 nat/aarch64-mte-linux-ptrace.h.
684 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
685 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
687 <fetch_memtags>: New method override.
688 <store_memtags>: New method override.
689 (aarch64_linux_nat_target::supports_memory_tagging): New method.
690 (aarch64_linux_nat_target::fetch_memtags): New method.
691 (aarch64_linux_nat_target::store_memtags): New method.
692 * arch/aarch64-mte-linux.c: New file.
693 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
694 (AARCH64_MTE_GRANULE_SIZE): Define.
695 (aarch64_memtag_type): New enum.
696 (aarch64_mte_get_tag_granules): New prototype.
697 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
698 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
699 * nat/aarch64-mte-linux-ptrace.c: New file.
700 * nat/aarch64-mte-linux-ptrace.h: New file.
702 2021-03-24 Luis Machado <luis.machado@linaro.org>
704 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
705 * nat/aarch64-mte-linux-ptrace.h: New file.
707 2021-03-24 Luis Machado <luis.machado@linaro.org>
709 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
710 (store_mteregs_to_thread): New function.
711 (aarch64_linux_nat_target::fetch_registers): Update to call
712 fetch_mteregs_from_thread.
713 (aarch64_linux_nat_target::store_registers): Update to call
714 store_mteregs_to_thread.
715 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
716 (aarch64_cannot_store_register): Handle MTE registers.
717 (aarch64_gdbarch_init): Initialize and setup MTE registers.
718 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
719 <has_mte>: New method.
720 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
722 2021-03-24 Luis Machado <luis.machado@linaro.org>
724 * aarch64-linux-nat.c
725 (aarch64_linux_nat_target::read_description): Take MTE flag into
727 Slight refactor to hwcap flag checking.
728 * aarch64-linux-tdep.c
729 (aarch64_linux_core_read_description): Likewise.
730 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
732 (aarch64_read_description): Add mte_p parameter and update to use it.
733 Update the documentation.
734 (aarch64_gdbarch_init): Update call to aarch64_read_description.
735 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
736 * arch/aarch64.c: Include ../features/aarch64-mte.c.
737 (aarch64_create_target_description): Add mte_p parameter and update
739 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
741 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
742 * features/aarch64-mte.c: New file, generated.
743 * features/aarch64-mte.xml: New file.
745 2021-03-24 Luis Machado <luis.machado@linaro.org>
747 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
748 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
749 * aarch64-linux-tdep.c: Likewise
750 * arch/aarch64-mte-linux.h: New file.
752 2021-03-24 Luis Machado <luis.machado@linaro.org>
754 * remote: Include gdbsupport/selftest.h.
755 (test_memory_tagging_functions): New function.
756 (_initialize_remote): Register test_memory_tagging_functions.
758 2021-03-24 Luis Machado <luis.machado@linaro.org>
760 * remote.c (PACKET_memory_tagging_feature): New enum.
761 (remote_memory_tagging_p): New function.
762 (remote_protocol_features): New "memory-tagging" entry.
763 (remote_target::remote_query_supported): Handle memory tagging
765 (remote_target::supports_memory_tagging): Implement.
766 (create_fetch_memtags_request, parse_fetch_memtags_reply)
767 (create_store_memtags_request): New functions.
768 (remote_target::fetch_memtags): Implement.
769 (remote_target::store_memtags): Implement.
770 (_initialize_remote): Add new "memory-tagging-feature"
773 2021-03-24 Luis Machado <luis.machado@linaro.org>
775 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
776 (default_memtag_matches_p, default_set_memtags)
777 (default_get_memtag): New functions.
778 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
779 (default_memtag_matches_p, default_set_memtags)
780 (default_get_memtag): New prototypes.
781 * gdbarch.c: Regenerate.
782 * gdbarch.h: Regenerate.
783 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
784 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
785 (enum memtag_type): New enum.
787 2021-03-24 Luis Machado <luis.machado@linaro.org>
789 * remote.c (remote_target) <supports_memory_tagging>: New method
791 <fetch_memtags>: New method override.
792 <store_memtags>: New method override.
793 (remote_target::supports_memory_tagging): New method.
794 (remote_target::fetch_memtags): New method.
795 (remote_target::store_memtags): New method.
796 * target-delegates.c: Regenerate.
797 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
799 <fetch_memtags>: New virtual method.
800 <store_memtags>: New virtual method.
801 (target_supports_memory_tagging): Define.
802 (target_fetch_memtags): Define.
803 (target_store_memtags): Define.
804 * target-debug.h (target_debug_print_size_t)
805 (target_debug_print_const_gdb_byte_vector_r)
806 (target_debug_print_gdb_byte_vector_r): New functions.
808 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
810 * target.h (target_longname): Remove.
812 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
814 * target.h (target_is_pushed): Remove, update callers to use
815 inferior::target_is_pushed instead.
816 * target.c (target_is_pushed): Remove.
818 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
820 * target.h (push_target): Remove, update callers to use
821 inferior::push_target.
822 * target.c (push_target): Remove.
823 * inferior.h (class inferior) <push_target>: New overload.
825 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
827 * target.h (unpush_target): Remove, update all callers
828 to use `inferior::unpush_target` instead.
829 (struct target_unpusher) <operator()>: Just declare.
830 * target.c (unpush_target): Remove.
831 (target_unpusher::operator()): New.
833 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
835 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
837 (process_full_comp_unit): Validate the top-level tag before
838 processing the first DIE.
839 (read_func_scope): Ensure we have a valid builder.
841 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
843 * objc-lang.c (objc_demangle): Renamed to
844 objc_language::demangle_symbol, and moved later in the file.
845 (objc_language::sniff_from_mangled_name): Call demangle_symbol
847 (objc_language::demangle_symbol): Defined outside of class
848 declaration. The definition is the old objc_demangle with NULL
849 changed to nullptr, and if conditions relating to nullptr pointers
850 or null character checks made explicit.
851 * objc-lang.h (objc_demangle): Delete declaration.
853 2021-03-22 Martin Liska <mliska@suse.cz>
855 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
856 (_initialize_arm_tdep): Likewise.
858 2021-03-20 Tom Tromey <tom@tromey.com>
860 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
861 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
862 * psymtab.h (make_psymbol_functions): Don't declare.
863 * psymtab.c (make_psymbol_functions): Remove.
864 (maintenance_print_psymbols): Update.
865 * psympriv.h (struct psymbol_functions): Add no-argument
867 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
868 <partial_symtabs>: Remove.
869 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
870 * elfread.c (read_partial_symbols): Update.
871 (elf_symfile_read): Remove check for existing partial symbols.
873 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
875 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
877 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
879 * dbxread.c (dbx_symfile_read): Create partial symtabs.
880 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
882 2021-03-20 Tom Tromey <tom@tromey.com>
884 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
885 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
886 * symfile-debug.c (objfile::has_partial_symbols)
887 (objfile::find_last_source_symtab)
888 (objfile::forget_cached_source_info)
889 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
890 (objfile::print_stats, objfile::dump)
891 (objfile::expand_symtabs_for_function)
892 (objfile::expand_all_symtabs)
893 (objfile::expand_symtabs_with_fullname)
894 (objfile::map_matching_symbols)
895 (objfile::expand_symtabs_matching)
896 (objfile::find_pc_sect_compunit_symtab)
897 (objfile::map_symbol_filenames)
898 (objfile::find_compunit_symtab_by_address)
899 (objfile::lookup_global_symbol_language)
900 (objfile::require_partial_symbols): Update.
901 * psymtab.c (maintenance_print_psymbols)
902 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
903 * objfiles.h (struct objfile) <qf>: Now a forward_list.
904 * objfiles.c (objfile_relocate1): Update.
905 * elfread.c (elf_symfile_read): Update.
907 2021-03-20 Tom Tromey <tom@tromey.com>
909 * objfiles.h (struct objfile) <psymtabs>: Remove method.
911 2021-03-20 Tom Tromey <tom@tromey.com>
913 * psymtab.c (psymbol_functions::count_psyms): Rename.
914 (psymbol_functions::print_stats): Update.
915 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
918 2021-03-20 Tom Tromey <tom@tromey.com>
920 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
921 (psymbol_functions::find_pc_sect_psymtab): Rename.
922 (psymbol_functions::find_pc_sect_compunit_symtab)
923 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
924 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
926 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
928 2021-03-20 Tom Tromey <tom@tromey.com>
930 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
931 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
932 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
934 (add_psymbol_to_bcache): Remove.
935 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
936 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
938 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
939 <add_psymbol>: Likewise.
940 (standard_psymtab, legacy_psymtab): Likewise.
941 * mdebugread.c (parse_partial_symbols): Update.
942 (handle_psymbol_enumerators): Add partial_symtabs parameter.
943 (handle_psymbol_enumerators): Update.
944 (new_psymtab): Add partial_symtabs parameter.
945 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
946 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
948 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
949 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
951 * dbxread.c (read_dbx_symtab): Update.
952 (start_psymtab): Add partial_symtabs parameter.
953 (dbx_end_psymtab): Update.
954 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
955 (ctf_psymtab): Add partial_symtabs parameter.
956 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
958 (scan_partial_symbols): Add partial_symtabs parameter.
959 (scan_partial_symbols, elfctf_build_psymtabs)
960 (ctf_psymtab_add_enums): Update.
962 2021-03-20 Tom Tromey <tom@tromey.com>
964 * symfile.c (read_symbols): Use objfile method.
965 * symfile-debug.c (objfile::require_partial_symbols): New method.
966 * psymtab.h (require_partial_symbols): Don't declare.
967 * psymtab.c (require_partial_symbols): Use objfile method. Now
969 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
970 (psymbol_functions::lookup_symbol)
971 (psymbol_functions::lookup_global_symbol_language)
972 (psymbol_functions::find_last_source_symtab)
973 (psymbol_functions::forget_cached_source_info)
974 (psymbol_functions::print_stats)
975 (psymbol_functions::expand_symtabs_for_function)
976 (psymbol_functions::expand_all_symtabs)
977 (psymbol_functions::expand_symtabs_with_fullname)
978 (psymbol_functions::map_symbol_filenames)
979 (psymbol_functions::map_matching_symbols)
980 (psymbol_functions::expand_symtabs_matching)
981 (psymbol_functions::find_compunit_symtab_by_address)
982 (maintenance_print_psymbols, maintenance_info_psymtabs)
983 (maintenance_check_psymtabs): Update.
984 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
987 2021-03-20 Tom Tromey <tom@tromey.com>
989 * xcoffread.c (xcoff_sym_fns): Update.
990 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
991 * symfile-debug.c (objfile::has_partial_symbols): Use
992 can_lazily_read_symbols.
993 (debug_sym_read_psymbols): Remove.
994 (debug_sym_fns, install_symfile_debug_logging): Update.
995 * quick-symbol.h (struct quick_symbol_functions)
996 <can_lazily_read_symbols, read_partial_symbols>: New methods.
997 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
998 * mipsread.c (ecoff_sym_fns): Update.
999 * machoread.c (macho_sym_fns): Update.
1000 * elfread.c (struct lazy_dwarf_reader): New.
1001 (elf_symfile_read): Update.
1002 (read_psyms): Now a method of lazy_dwarf_reader.
1003 (elf_sym_fns): Update.
1004 (elf_sym_fns_lazy_psyms): Remove.
1005 * dbxread.c (aout_sym_fns): Update.
1006 * coffread.c (coff_sym_fns): Update.
1008 2021-03-20 Tom Tromey <tom@tromey.com>
1010 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1011 (reread_symbols): Move reset_psymtabs call later.
1012 * objfiles.c (objfile::objfile): Don't initialize
1015 2021-03-20 Tom Tromey <tom@tromey.com>
1017 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1018 set_partial_symtabs.
1019 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1020 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1022 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1024 (psymbol_functions::find_pc_sect_compunit_symtab)
1025 (psymbol_functions::print_stats, psymbol_functions::dump)
1026 (psymbol_functions::has_symbols): Update.
1027 (make_psymbol_functions, dump_psymtab_addrmap): Add
1028 partial_symtabs parameter.
1029 (maintenance_print_psymbols): Update.
1030 (psymbol_functions::expand_symtabs_matching): Update.
1031 * psympriv.h (struct psymbol_functions): Add constructor.
1032 <m_partial_symtabs>: New member.
1033 <set_partial_symtabs>: New method.
1035 2021-03-20 Tom Tromey <tom@tromey.com>
1037 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
1039 (process_psymtab_comp_unit_reader)
1040 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
1041 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
1042 Reference psymtabs via per_bfd.
1044 2021-03-20 Tom Tromey <tom@tromey.com>
1046 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
1048 (add_address_entry): Remove objfile parameter.
1049 (add_address_entry_worker): Update.
1050 (write_address_map): Replace objfile parameter with per_bfd.
1051 (write_gdbindex, write_psymtabs_to_index): Update.
1053 2021-03-20 Tom Tromey <tom@tromey.com>
1055 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
1056 print_bcache parameter.
1057 * symfile-debug.c (objfile::print_stats): Add print_bcache
1059 * quick-symbol.h (struct quick_symbol_functions)
1060 <print_stats>: Add print_bcache parameter.
1061 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
1063 (print_objfile_statistics): Move psymtab code to psymtab.c.
1064 * psymtab.c (count_psyms): Move from symmisc.c.
1065 (psymbol_functions::print_stats): Print partial symbol and bcache
1066 statistics. Add print_bcache parameter.
1067 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
1068 (struct objfile) <print_stats>: Add print_bcache parameter.
1069 * maint.c (maintenance_print_statistics): Update.
1071 2021-03-20 Tom Tromey <tom@tromey.com>
1073 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
1075 * dwarf2/read.c (create_addrmap_from_index)
1076 (create_addrmap_from_aranges): Set per_bfd addrmap.
1077 (dwarf2_read_gdb_index): Don't set partial_symtabs.
1078 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
1080 (dwarf2_read_debug_names): Don't set partial_symtabs.
1081 (dwarf2_initialize_objfile): Likewise.
1083 2021-03-20 Tom Tromey <tom@tromey.com>
1085 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
1088 2021-03-20 Tom Tromey <tom@tromey.com>
1090 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
1091 (~psymtab_discarder, keep): Update.
1092 <m_objfile>: Remove.
1093 <m_partial_symtabs>: New member.
1094 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1096 2021-03-20 Tom Tromey <tom@tromey.com>
1098 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
1099 (xcoff_end_psymtab): Update.
1100 (scan_xcoff_symtab): Add partial_symtabs parameter.
1101 (xcoff_initial_scan): Update.
1102 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
1103 * mdebugread.c (mdebug_build_psymtabs): Update.
1104 (parse_partial_symbols): Add partial_symtabs parameter.
1105 * dbxread.c (dbx_symfile_read): Update.
1106 (read_dbx_symtab): Add partial_symtabs parameter.
1107 (read_dbx_symtab): Update.
1108 (dbx_end_psymtab): Add partial_symtabs parameter.
1110 2021-03-20 Tom Tromey <tom@tromey.com>
1112 * quick-symbol.h (struct quick_symbol_functions)
1113 <relocated>: New method.
1114 * psymtab.h (struct psymbol_functions) <relocated>: New
1116 <fill_psymbol_map>: Declare method.
1117 <m_psymbol_map>: New member.
1118 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
1119 (psymbol_functions::find_compunit_symtab_by_address): Update.
1120 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
1121 (struct objfile) <psymbol_map>: Remove.
1122 * objfiles.c (objfile_relocate1): Update.
1124 2021-03-20 Tom Tromey <tom@tromey.com>
1126 * psympriv.h (struct psymbol_functions): New.
1127 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1128 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
1129 (objfile::lookup_global_symbol_language): Update.
1130 * quick-symbol.h (struct quick_symbol_functions): Convert function
1131 pointers to methods. Add virtual destructor.
1132 (quick_symbol_functions_up): New typedef.
1133 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
1134 (dwarf2_debug_names_functions): Don't declare.
1135 (make_psymbol_functions): Declare.
1136 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
1137 (psymbol_functions::find_pc_sect_compunit_symtab)
1138 (psymbol_functions::lookup_symbol)
1139 (psymbol_functions::lookup_global_symbol_language)
1140 (psymbol_functions::find_last_source_symtab)
1141 (psymbol_functions::forget_cached_source_info)
1142 (psymbol_functions::print_stats, psymbol_functions::dump)
1143 (psymbol_functions::expand_symtabs_for_function)
1144 (psymbol_functions::expand_all_symtabs)
1145 (psymbol_functions::expand_symtabs_with_fullname)
1146 (psymbol_functions::map_symbol_filenames)
1147 (psymbol_functions::map_matching_symbols)
1148 (psymbol_functions::expand_symtabs_matching)
1149 (psymbol_functions::has_symbols)
1150 (psymbol_functions::find_compunit_symtab_by_address): Rename.
1151 (psym_functions): Remove.
1152 (make_psymbol_functions): New function.
1153 * objfiles.h (struct objfile) <qf>: Change type.
1154 * elfread.c (elf_symfile_read): Update.
1155 * dwarf2/read.c (struct dwarf2_base_index_functions)
1156 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
1157 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
1158 (dwarf2_base_index_functions::find_last_source_symtab)
1159 (dwarf2_base_index_functions::forget_cached_source_info)
1160 (dwarf2_base_index_functions::map_symtabs_matching_filename)
1161 (dwarf2_gdb_index::lookup_symbol)
1162 (dwarf2_base_index_functions::print_stats)
1163 (dwarf2_gdb_index::dump)
1164 (dwarf2_gdb_index::expand_symtabs_for_function)
1165 (dwarf2_base_index_functions::expand_all_symtabs)
1166 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1168 (dwarf2_gdb_index::map_matching_symbols): New method.
1169 (dwarf2_gdb_index::expand_symtabs_matching): New method.
1170 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
1171 (dwarf2_base_index_functions::map_symbol_filenames)
1172 (dwarf2_base_index_functions::has_symbols): Rename.
1173 (dwarf2_gdb_index_functions): Remove.
1174 (dwarf2_debug_names_index::lookup_symbol)
1175 (dwarf2_debug_names_index::dump)
1176 (dwarf2_debug_names_index::expand_symtabs_for_function)
1177 (dwarf2_debug_names_index::map_matching_symbols)
1178 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
1179 (dwarf2_debug_names_functions): Remove.
1180 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
1183 2021-03-20 Tom Tromey <tom@tromey.com>
1185 * psymtab.c (require_partial_symbols): Check that 'sf' is not
1187 * xcoffread.c (xcoff_sym_fns): Update.
1188 * symfile.h (struct sym_fns) <qf>: Remove.
1189 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1190 * symfile-debug.c (objfile::has_partial_symbols)
1191 (objfile::find_last_source_symtab)
1192 (objfile::forget_cached_source_info)
1193 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1194 (objfile::print_stats, objfile::dump)
1195 (objfile::expand_symtabs_for_function)
1196 (objfile::expand_all_symtabs)
1197 (objfile::expand_symtabs_with_fullname)
1198 (objfile::map_matching_symbols)
1199 (objfile::expand_symtabs_matching)
1200 (objfile::find_pc_sect_compunit_symtab)
1201 (objfile::map_symbol_filenames)
1202 (objfile::find_compunit_symtab_by_address)
1203 (objfile::lookup_global_symbol_language, debug_sym_fns)
1204 (install_symfile_debug_logging): Update.
1205 * objfiles.h (struct objfile) <qf>: New member.
1206 * mipsread.c (ecoff_sym_fns): Update.
1207 * machoread.c (macho_sym_fns): Update.
1208 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
1210 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
1211 * dbxread.c (aout_sym_fns): Update.
1212 * coffread.c (coff_sym_fns): Update.
1214 2021-03-20 Tom Tromey <tom@tromey.com>
1216 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
1217 (expand_symtabs_file_matcher_ftype)
1218 (expand_symtabs_symbol_matcher_ftype)
1219 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
1220 Move to quick-symbol.h.
1221 * quick-symbol.h: New file.
1223 2021-03-20 Tom Tromey <tom@tromey.com>
1225 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
1226 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
1227 (basic_lookup_transparent_type_quick)
1228 (find_pc_sect_compunit_symtab, find_symbol_at_address)
1229 (find_line_symtab, global_symbol_searcher::expand_symtabs):
1231 * symmisc.c (print_objfile_statistics, dump_objfile)
1232 (maintenance_expand_symtabs): Update.
1233 * symfile.c (symbol_file_add_with_addrs)
1234 (expand_symtabs_matching, map_symbol_filenames): Update.
1235 * symfile-debug.c (objfile::has_partial_symbols)
1236 (objfile::find_last_source_symtab)
1237 (objfile::forget_cached_source_info)
1238 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1239 (objfile::print_stats, objfile::dump)
1240 (objfile::expand_symtabs_for_function)
1241 (objfile::expand_all_symtabs)
1242 (objfile::expand_symtabs_with_fullname)
1243 (objfile::map_matching_symbols)
1244 (objfile::expand_symtabs_matching)
1245 (objfile::find_pc_sect_compunit_symtab)
1246 (objfile::map_symbol_filenames)
1247 (objfile::find_compunit_symtab_by_address)
1248 (objfile::lookup_global_symbol_language): New methods.
1249 (debug_sym_quick_functions): Remove.
1250 (debug_sym_fns, install_symfile_debug_logging): Update.
1251 * source.c (forget_cached_source_info_for_objfile)
1252 (select_source_symtab): Update.
1253 * objfiles.h (struct objfile): Add methods corresponding to
1254 quick_symbol_functions.
1255 * objfiles.c (objfile::has_partial_symbols): Move to
1257 * linespec.c (iterate_over_all_matching_symtabs): Update.
1258 * cp-support.c (add_symbol_overload_list_qualified): Update.
1259 * ada-lang.c (add_nonlocal_symbols): Update.
1261 2021-03-20 Tom Tromey <tom@tromey.com>
1263 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
1264 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
1266 * symfile-debug.c (debug_qf_has_symbols): Return bool.
1267 * psymtab.c (psym_has_symbols): Return bool.
1268 * objfiles.c (objfile::has_partial_symbols): Return bool.
1269 * dwarf2/read.c (dw2_has_symbols): Return bool.
1271 2021-03-20 Tom Tromey <tom@tromey.com>
1273 * symfile.c (read_symbols): Update.
1274 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
1275 (objfile_has_partial_symbols): Don't declare.
1276 * objfiles.c (objfile::has_partial_symbols): Rename from
1277 objfile_has_partial_symbols.
1278 (objfile_has_symbols, have_partial_symbols): Update.
1279 * elfread.c (elf_symfile_read): Update.
1280 * dwarf2/read.c (dwarf2_has_info): Update.
1281 * coffread.c (coff_symfile_read): Update.
1283 2021-03-20 Tom Tromey <tom@tromey.com>
1285 * coffread.c: Include dwarf2/public.h.
1286 * dwarf2/frame.c: Include dwarf2/public.h.
1287 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
1288 * dwarf2/public.h: New file.
1289 * dwarf2/read.c: Include dwarf2/public.h.
1290 * elfread.c: Include dwarf2/public.h.
1291 * machoread.c: Include dwarf2/public.h.
1292 * symfile.h (dwarf2_has_info, enum dw_index_kind)
1293 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
1294 (dwarf2_build_frame_info): Move to dwarf2/public.h.
1295 * xcoffread.c: Include dwarf2/public.h.
1297 2021-03-20 Tom Tromey <tom@tromey.com>
1299 * symfile.h (enum dwarf2_section_enum)
1300 (dwarf2_get_section_info): Move to dwarf2/read.h.
1301 * dwarf2/read.h (enum dwarf2_section_enum)
1302 (dwarf2_get_section_info): Move from symfile.h.
1304 2021-03-19 Pedro Alves <pedro@palves.net>
1306 * thread.c (any_thread_of_inferior): Check if there's a selected
1307 thread before calling inferior_thread().
1309 2021-03-18 Tom Tromey <tromey@adacore.com>
1311 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
1313 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
1314 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
1316 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1318 * python/py-param.c (get_set_value): Update header comment.
1320 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
1322 * infrun.c (check_multi_target_resumption): Remove argument to
1323 all_non_exited_inferiors.
1325 2021-03-16 Christian Biesinger <cbiesinger@google.com>
1327 * windows-nat.c (windows_init_thread_list): Add message to
1330 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
1332 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
1333 well as PyLong_Check for Python 2.
1335 2021-03-15 Tom Tromey <tromey@adacore.com>
1338 * rust-exp.y (maker_map): Use gdb::hash_enum.
1339 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
1341 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1343 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
1346 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1348 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
1349 parameter, adjust caller.
1351 2021-03-15 Tom Tromey <tromey@adacore.com>
1353 * ada-exp.y (simple_exp): Always push a result for unary '+'.
1355 2021-03-15 Tom Tromey <tromey@adacore.com>
1357 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
1358 ada_ensure_varsize_limit.
1360 2021-03-15 Tom Tromey <tromey@adacore.com>
1362 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
1364 * ada-exp.y (maybe_overload): New function.
1365 (ada_wrap_overload): New function.
1366 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
1367 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
1368 (or_else_exp, xor_exp, primary): Update.
1370 2021-03-15 Tom Tromey <tromey@adacore.com>
1373 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
1374 call for tagged type.
1376 2021-03-15 Tom Tromey <tromey@adacore.com>
1378 * ada-exp.y (exp1): Handle resolution of the right hand side of an
1381 2021-03-15 Tom Tromey <tromey@adacore.com>
1383 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
1385 (ada_assign_operation::evaluate): Update.
1386 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
1389 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
1391 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
1393 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
1395 * python/python.c (gdbpy_source_objfile_script): Use
1396 make_scoped_restore to restore gdbpy_current_objfile.
1397 (gdbpy_execute_objfile_script): Likewise.
1399 2021-03-14 Tom Tromey <tom@tromey.com>
1401 * dwarf2/read.c (read_attribute_value): Use cu_header
1404 2021-03-14 Tom Tromey <tom@tromey.com>
1406 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1407 (peek_die_abbrev): Use reader.abfd.
1409 2021-03-14 Tom Tromey <tom@tromey.com>
1411 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1414 2021-03-13 Tom Tromey <tom@tromey.com>
1416 * dwarf2/read.c (struct partial_die_info): Update.
1417 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
1418 (load_partial_dies, partial_die_info::partial_die_info): Update.
1419 * dwarf2/abbrev.h (lookup_abbrev): Constify.
1421 2021-03-13 Tom Tromey <tom@tromey.com>
1423 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1425 2021-03-12 Christian Biesinger <cbiesinger@google.com>
1428 * cp-support.c: Use scoped_segv_handler_restore.
1429 * event-top.c (thread_local_segv_handler): Made static.
1430 (scoped_segv_handler_restore::scoped_segv_handler_restore):
1432 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1434 * event-top.h (class scoped_segv_handler_restore): New class.
1435 (thread_local_segv_handler): Removed.
1437 2021-03-10 Tom Tromey <tromey@adacore.com>
1439 * parser-defs.h (parser_state): Change completion to bool.
1440 <parse_completion>: Likewise.
1441 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1442 (ada_resolve_variable, ada_resolve_function): Update.
1443 * ada-lang.c (ada_find_operator_symbol): Change
1444 parse_completion to bool.
1445 (ada_resolve_funcall, ada_resolve_variable)
1446 (ada_resolve_function): Likewise.
1448 2021-03-09 Tom Tromey <tromey@adacore.com>
1450 * eval.c (operation::evaluate_funcall): Use function formal
1451 parameter types when evaluating.
1453 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1455 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
1456 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
1457 and owner to m_owner.
1459 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
1461 * f-exp.h (eval_op_f_loc): Declare.
1462 (expr::fortran_loc_operation): New typedef.
1463 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
1465 (f77_keywords): Add LOC keyword.
1466 * f-lang.c (eval_op_f_loc): New function.
1467 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
1469 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1471 * f-exp.h (eval_op_f_array_shape): Declare.
1472 (fortran_array_shape_operation): New type.
1473 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
1475 (f77_keywords): Add "shape" keyword.
1476 * f-lang.c (fortran_array_shape): New function.
1477 (eval_op_f_array_shape): New function.
1478 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
1480 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1482 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
1484 (expr::fortran_array_size_1arg): New type.
1485 (expr::fortran_array_size_2arg): Likewise.
1486 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
1487 UNOP_OR_BINOP_INTRINSIC.
1488 (f77_keywords): Add "size" keyword.
1489 * f-lang.c (fortran_array_size): New function.
1490 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
1491 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
1493 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1495 * f-exp.h (eval_op_f_rank): Declare.
1496 (expr::fortran_rank_operation): New typedef.
1497 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
1499 (f77_keywords): Add "rank" keyword.
1500 * f-lang.c (eval_op_f_rank): New function.
1501 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
1503 2021-03-08 Tom Tromey <tom@tromey.com>
1505 * printcmd.c (set_command): Remove null check.
1506 * value.c (init_if_undefined_command): Remove null check.
1508 2021-03-08 Tom Tromey <tom@tromey.com>
1510 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1512 * p-exp.y (variable): Update.
1513 * go-exp.y (variable): Update.
1514 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
1515 Remove overload for objfile.
1516 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
1518 (check_objfile): Likewise.
1519 (dump_for_expression): Likewise. Remove overload for objfile.
1520 (class var_msym_value_operation): Use bound_minimal_symbol.
1521 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
1523 (var_msym_value_operation::evaluate_for_address)
1524 (var_msym_value_operation::evaluate_for_sizeof)
1525 (var_msym_value_operation::evaluate_for_cast): Update.
1526 * d-exp.y (PrimaryExpression): Update.
1527 * c-exp.y (variable): Update.
1528 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
1529 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1531 * ada-exp.y (write_var_or_type): Update.
1533 2021-03-08 Tom Tromey <tom@tromey.com>
1535 * parser-defs.h (exp_uses_objfile): Return bool.
1536 * parse.c (exp_uses_objfile): Return bool.
1538 2021-03-08 Tom Tromey <tom@tromey.com>
1540 * value.h (eval_skip_value): Don't declare.
1541 * opencl-lang.c (eval_opencl_assign): Update.
1542 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
1543 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1544 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
1545 * expression.h (enum noside) <EVAL_SKIP>: Remove.
1546 * expop.h (typeof_operation::evaluate)
1547 (decltype_operation::evaluate, unop_addr_operation::evaluate)
1548 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
1549 (cxx_cast_operation::evaluate): Update.
1550 * eval.c (eval_skip_value): Remove.
1551 (eval_op_scope, eval_op_var_entry_value)
1552 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
1553 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
1554 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
1555 (eval_op_binary, eval_op_subscript, eval_op_equal)
1556 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
1557 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
1558 (eval_op_complement, eval_op_lognot, eval_op_ind)
1559 (eval_op_memval, eval_op_preinc, eval_op_predec)
1560 (eval_op_postinc, eval_op_postdec, eval_op_type)
1561 (eval_binop_assign_modify, eval_op_objc_msgcall)
1562 (eval_multi_subscript, logical_and_operation::evaluate)
1563 (logical_or_operation::evaluate, array_operation::evaluate)
1564 (operation::evaluate_for_cast)
1565 (var_msym_value_operation::evaluate_for_cast)
1566 (var_value_operation::evaluate_for_cast): Update.
1567 * c-lang.c (c_string_operation::evaluate): Update.
1568 * c-exp.h (objc_nsstring_operation::evaluate)
1569 (objc_selector_operation::evaluate): Update.
1570 * ada-lang.c (ada_assign_operation::evaluate)
1571 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
1572 (ada_atr_size): Update.
1574 2021-03-08 Tom Tromey <tom@tromey.com>
1576 * eval.c: Merge "namespace" scopes.
1578 2021-03-08 Tom Tromey <tom@tromey.com>
1580 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
1582 * parse.c (expr_builder::expr_builder, expr_builder::release):
1585 2021-03-08 Tom Tromey <tom@tromey.com>
1587 * parse.c (expression::expression, expression::~expression):
1589 * expression.h (struct expression): Inline constructor. Remove
1592 2021-03-08 Tom Tromey <tom@tromey.com>
1594 * std-operator.def (BINOP_END): Remove.
1595 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
1596 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
1597 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
1598 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
1599 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
1602 2021-03-08 Tom Tromey <tom@tromey.com>
1604 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
1606 2021-03-08 Tom Tromey <tom@tromey.com>
1608 * std-operator.def (OP_EXTENDED0): Remove.
1610 2021-03-08 Tom Tromey <tom@tromey.com>
1612 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
1613 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
1616 2021-03-08 Tom Tromey <tom@tromey.com>
1618 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
1619 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
1621 2021-03-08 Tom Tromey <tom@tromey.com>
1623 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
1624 * ada-lang.c (ada_binop_minmax): Update.
1625 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1626 Use BINOP_MIN and BINOP_MAX.
1628 2021-03-08 Tom Tromey <tom@tromey.com>
1630 * value.h (evaluate_subexp_with_coercion): Don't declare.
1631 * parse.c (exp_descriptor_standard): Remove.
1632 (expr_builder::expr_builder, expr_builder::release): Update.
1633 (expression::expression): Remove size_t parameter.
1634 (expression::~expression): Simplify.
1635 (expression::resize): Remove.
1636 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1637 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1638 (write_exp_elt_longcst, write_exp_elt_floatcst)
1639 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1640 (write_exp_string_vector, write_exp_bitstring): Remove.
1641 * p-lang.h (class pascal_language) <opcode_print_table,
1642 op_print_tab>: Remove.
1643 * p-lang.c (pascal_language::op_print_tab): Remove.
1644 * opencl-lang.c (class opencl_language) <opcode_print_table>:
1646 * objc-lang.c (objc_op_print_tab): Remove.
1647 (class objc_language) <opcode_print_table>: Remove.
1648 * m2-lang.h (class m2_language) <opcode_print_table,
1649 op_print_tab>: Remove.
1650 * m2-lang.c (m2_language::op_print_tab): Remove.
1651 * language.h (struct language_defn) <post_parser, expression_ops,
1652 opcode_print_table>: Remove.
1653 * language.c (language_defn::expression_ops)
1654 (auto_or_unknown_language::opcode_print_table): Remove.
1655 * go-lang.h (class go_language) <opcode_print_table,
1656 op_print_tab>: Remove.
1657 * go-lang.c (go_language::op_print_tab): Remove.
1658 * f-lang.h (class f_language) <opcode_print_table>: Remove
1659 <op_print_tab>: Remove.
1660 * f-lang.c (f_language::op_print_tab): Remove.
1661 * expression.h (union exp_element): Remove.
1662 (struct expression): Remove size_t parameter from constructor.
1664 <first_opcode>: Update.
1665 <nelts, elts>: Remove.
1666 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
1667 (evaluate_subexp_standard, print_expression, op_string)
1668 (dump_raw_expression): Don't declare.
1669 * expprint.c (print_expression, print_subexp)
1670 (print_subexp_funcall, print_subexp_standard, op_string)
1671 (dump_raw_expression, dump_subexp, dump_subexp_body)
1672 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
1673 (dump_prefix_expression): Update.
1674 * eval.c (evaluate_subexp): Remove.
1675 (evaluate_expression, evaluate_type): Update.
1676 (evaluate_subexpression_type): Remove.
1677 (fetch_subexp_value): Remove "pc" parameter. Update.
1678 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
1679 (evaluate_subexp_standard, evaluate_subexp_for_address)
1680 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
1681 (evaluate_subexp_for_cast): Remove.
1682 (parse_and_eval_type): Update.
1683 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1684 * d-lang.c (d_op_print_tab): Remove.
1685 (class d_language) <opcode_print_table>: Remove.
1686 * c-lang.h (c_op_print_tab): Don't declare.
1687 * c-lang.c (c_op_print_tab): Remove.
1688 (class c_language, class cplus_language, class asm_language, class
1689 minimal_language) <opcode_print_table>: Remove.
1690 * breakpoint.c (update_watchpoint, watchpoint_check)
1691 (watchpoint_exp_is_const, watch_command_1): Update.
1692 * ax-gdb.h (union exp_element): Don't declare.
1693 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
1694 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
1695 (gen_expr_binop_rest): Remove.
1696 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
1697 * ada-lang.c (ada_op_print_tab): Remove.
1698 (class ada_language) <post_parser, opcode_print_table>: Remove.
1700 2021-03-08 Tom Tromey <tom@tromey.com>
1702 * go-lang.c (go_language::expression_ops): Don't declare.
1703 * go-lang.h (class go_language) <expression_ops>: Remove.
1704 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
1706 (class opencl_language) <expression_ops>: Remove.
1707 * d-lang.c (class d_language) <expression_ops>: Remove.
1708 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
1709 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
1710 (class c_language, class cplus_language, class asm_language)
1711 (class minimal_language) <expression_ops>: Remove.
1713 2021-03-08 Tom Tromey <tom@tromey.com>
1715 * ada-lang.c (resolve_subexp, replace_operator_with_call)
1716 (evaluate_subexp_type, assign_aggregate)
1717 (aggregate_assign_positional, aggregate_assign_from_choices)
1718 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
1719 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
1720 (ada_operator_check, ada_forward_operator_length)
1721 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
1723 (post_parser): Update.
1724 (class ada_language) <expresssion_ops>: Remove.
1726 2021-03-08 Tom Tromey <tom@tromey.com>
1728 * m2-lang.h (class m2_language) <expresssion_ops,
1729 exp_descriptor_modula2>: Remove.
1730 * m2-lang.c (evaluate_subexp_modula2)
1731 (m2_language::exp_descriptor_modula2): Remove.
1733 2021-03-08 Tom Tromey <tom@tromey.com>
1735 * f-lang.h (class f_language) <expresssion_ops>: Remove.
1736 <exp_descriptor_tab>: Remove.
1737 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
1738 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
1739 (print_subexp_f, dump_subexp_body_f, operator_check_f)
1740 (f_language::exp_descriptor_tab, fortran_prepare_argument):
1743 2021-03-08 Tom Tromey <tom@tromey.com>
1745 * rust-lang.h (class rust_language) <expression_ops,
1746 exp_descriptor_tab>: Remove.
1747 * rust-lang.c (rust_evaluate_funcall): Remove.
1748 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
1750 (rust_evaluate_subexp): Remove.
1751 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
1752 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
1753 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
1755 2021-03-08 Tom Tromey <tom@tromey.com>
1757 * ada-exp.y: Create operations.
1758 (empty_stoken): Remove.
1759 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
1760 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
1761 (components): New global.
1762 (push_component, choice_component, pop_component, pop_components):
1764 (associations): New global
1765 (push_association, pop_association, pop_associations): New
1767 (ada_parse): Update.
1768 (write_var_from_sym, write_int): Create operations.
1769 (write_exp_op_with_string): Remove.
1770 (write_object_renaming, write_selectors, write_ambiguous_var)
1771 (write_var_or_type, write_name_assoc): Create operations.
1772 * ada-lang.h (ada_index_type): Declare.
1773 * ada-lang.c (ada_index_type): No longer static.
1775 2021-03-08 Tom Tromey <tom@tromey.com>
1777 * f-exp.y: Create operations.
1778 (f_language::parser): Update.
1780 2021-03-08 Tom Tromey <tom@tromey.com>
1782 * m2-exp.y: Create operations.
1783 (m2_language::parser): Update.
1785 2021-03-08 Tom Tromey <tom@tromey.com>
1787 * p-exp.y: Create operations.
1788 (pascal_language::parser): Update.
1790 2021-03-08 Tom Tromey <tom@tromey.com>
1792 * d-exp.y: Create operations.
1795 2021-03-08 Tom Tromey <tom@tromey.com>
1797 * go-exp.y: Create operations.
1798 (go_language::parser): Update.
1800 2021-03-08 Tom Tromey <tom@tromey.com>
1802 * objc-lang.c (end_msglist): Create operations.
1803 * c-exp.y: Change parser to create operations.
1804 (write_destructor_name): Remove.
1807 2021-03-08 Tom Tromey <tom@tromey.com>
1809 * rust-exp.y: Create operations.
1810 (rust_parser::convert_params_to_expression): Change return type.
1811 (binop_maker_ftype): New typedef.
1812 (maker_map): New global.
1813 (rust_parser::convert_ast_to_expression): Change return type.
1814 (rust_language::parser): Update.
1815 (_initialize_rust_exp): Initialize maker_map.
1817 2021-03-08 Tom Tromey <tom@tromey.com>
1819 * stap-probe.c (binop_maker_ftype): New typedef.
1820 (stap_maker_map): New global.
1821 (stap_make_binop): New function.
1822 (stap_parse_register_operand): Return operation_up.
1823 (stap_parse_single_operand, stap_parse_argument_conditionally)
1824 (stap_parse_argument_1): Likewise.
1825 (stap_parse_argument): Create operations.
1826 (stap_probe::parse_arguments): Update.
1827 (_initialize_stap_probe): Initialize stap_maker_map.
1828 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
1830 * i386-tdep.h (i386_stap_parse_special_token): Change return
1832 * i386-tdep.c (i386_stap_parse_special_token_triplet)
1833 (i386_stap_parse_special_token_three_arg_disp)
1834 (i386_stap_parse_special_token): Change return type.
1835 * gdbarch.sh (stap_parse_special_token): Change return type.
1836 * gdbarch.c: Rebuild.
1837 * gdbarch.h: Rebuild.
1838 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
1840 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
1843 2021-03-08 Tom Tromey <tom@tromey.com>
1845 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
1846 * gdbarch.h: Rebuild.
1847 * gdbarch.c: Rebuild.
1848 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1849 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
1851 (amd64_dtrace_parse_probe_argument): Update.
1853 2021-03-08 Tom Tromey <tom@tromey.com>
1855 * parser-defs.h (struct parser_state) <push, push_new,
1856 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
1857 wrap2>: New methods.
1858 <m_operations>: New member.
1859 * parse.c (parser_state::push_c_string)
1860 (parser_state::push_symbol, parser_state::push_dollar): New
1863 2021-03-08 Tom Tromey <tom@tromey.com>
1865 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
1867 (struct parser_state) <mark_struct_expression>: New method.
1868 * parse.c (parser_state::mark_struct_expression): Update assert.
1869 (parser_state::mark_struct_expression): New method.
1870 (parser_state::mark_completion_tag): Update assert.
1871 (parse_expression_for_completion): Handle expout_last_op.
1873 2021-03-08 Tom Tromey <tom@tromey.com>
1875 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
1877 * value.h (fetch_subexp_value): Add "op" parameter.
1878 * value.c (init_if_undefined_command): Update.
1879 * tracepoint.c (validate_actionline, encode_actions_1): Update.
1880 * stap-probe.c (stap_probe::compile_to_ax): Update.
1881 * printcmd.c (set_command): Update.
1882 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
1884 * parser-defs.h (struct expr_builder) <set_operation>: New
1886 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
1887 * expression.h (struct expression) <first_opcode>: Update.
1889 * expprint.c (dump_raw_expression, dump_prefix_expression):
1891 * expop.h (class var_value_operation) <get_symbol>: New method.
1892 (class register_operation) <get_name>: New method.
1893 (class equal_operation): No longer a typedef, now a subclass.
1894 (class unop_memval_operation) <get_type>: New method.
1895 (class assign_operation) <get_lhs>: New method.
1896 (class unop_cast_operation) <get_type>: New method.
1897 * eval.c (evaluate_expression, evaluate_type)
1898 (evaluate_subexpression_type): Update.
1899 (fetch_subexp_value): Add "op" parameter.
1900 (parse_and_eval_type): Update.
1901 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1902 * breakpoint.c (update_watchpoint, watchpoint_check)
1903 (watchpoint_exp_is_const, watch_command_1): Update.
1904 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
1907 2021-03-08 Tom Tromey <tom@tromey.com>
1909 * ada-lang.c (ada_value_binop): Do not use op_string.
1911 2021-03-08 Tom Tromey <tom@tromey.com>
1913 * expprint.c (dump_for_expression): New overload.
1914 * expop.h (check_objfile, dump_for_expression): Declare new
1916 * ada-lang.c (check_objfile): New overload.
1917 (assign_component, ada_aggregate_component::uses_objfile)
1918 (ada_aggregate_component::dump, ada_aggregate_component::assign)
1919 (ada_aggregate_component::assign_aggregate)
1920 (ada_positional_component::uses_objfile)
1921 (ada_positional_component::dump, ada_positional_component::assign)
1922 (ada_discrete_range_association::uses_objfile)
1923 (ada_discrete_range_association::dump)
1924 (ada_discrete_range_association::assign)
1925 (ada_name_association::uses_objfile, ada_name_association::dump)
1926 (ada_name_association::assign)
1927 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1928 (ada_choices_component::assign)
1929 (ada_others_component::uses_objfile, ada_others_component::dump)
1930 (ada_others_component::assign, ada_assign_operation::evaluate):
1932 * ada-exp.h (ada_string_operation) <get_name>: New method.
1933 (class ada_assign_operation): New.
1934 (class ada_component): New.
1935 (ada_component_up): New typedef.
1936 (class ada_aggregate_operation, class ada_aggregate_component)
1937 (class ada_positional_component, class ada_others_component)
1938 (class ada_association): New.
1939 (ada_association_up): New typedef.
1940 (class ada_choices_component)
1941 (class ada_discrete_range_association)
1942 (class ada_name_association): New.
1944 2021-03-08 Tom Tromey <tom@tromey.com>
1946 * ada-lang.c (ada_var_value_operation::resolve)
1947 (ada_funcall_operation::resolve)
1948 (ada_ternop_slice_operation::resolve): New methods.
1949 * ada-exp.h (struct ada_resolvable): New.
1950 (class ada_var_value_operation): Derive from ada_resolvable.
1951 <get_block, resolve>: New methods.
1952 (class ada_funcall_operation): Derive from ada_resolvable.
1953 <resolve>: New method.
1954 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1955 <resolve>: New method.
1957 2021-03-08 Tom Tromey <tom@tromey.com>
1959 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1960 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1962 (class ada_funcall_operation): New.
1964 2021-03-08 Tom Tromey <tom@tromey.com>
1966 * ada-lang.c (ada_structop_operation::evaluate): New method.
1967 * ada-exp.h (class ada_structop_operation): New.
1969 2021-03-08 Tom Tromey <tom@tromey.com>
1971 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1972 * ada-exp.h (class ada_unop_ind_operation): New.
1974 2021-03-08 Tom Tromey <tom@tromey.com>
1976 * ada-lang.c (ada_binop_exp): No longer static.
1977 * ada-exp.h (ada_binop_exp_operation): New typedef.
1979 2021-03-08 Tom Tromey <tom@tromey.com>
1981 * ada-lang.c (ada_val_atr): No longer static.
1982 (ada_atr_val_operation::evaluate): New method.
1983 * ada-exp.h (class ada_atr_val_operation): New.
1985 2021-03-08 Tom Tromey <tom@tromey.com>
1987 * ada-lang.c (ada_pos_atr): No longer static.
1988 * ada-exp.h (ada_pos_operation): New typedef.
1990 2021-03-08 Tom Tromey <tom@tromey.com>
1992 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1994 (ada_evaluate_subexp): Use it.
1996 2021-03-08 Tom Tromey <tom@tromey.com>
1998 * ada-lang.c (ada_binop_minmax): No longer static.
1999 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2002 2021-03-08 Tom Tromey <tom@tromey.com>
2004 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2006 * ada-exp.h (class ada_var_msym_value_operation): New.
2008 2021-03-08 Tom Tromey <tom@tromey.com>
2010 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2011 (ada_var_value_operation::evaluate): New methods.
2012 * ada-exp.h (class ada_var_value_operation): New.
2014 2021-03-08 Tom Tromey <tom@tromey.com>
2016 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2017 * ada-exp.h (class ada_unop_atr_operation): New.
2019 2021-03-08 Tom Tromey <tom@tromey.com>
2021 * ada-lang.c (ada_binop_in_bounds): No longer static.
2022 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2024 2021-03-08 Tom Tromey <tom@tromey.com>
2026 * ada-lang.c (ada_ternop_slice): No longer static.
2027 * ada-exp.h (class ada_ternop_slice_operation): New.
2029 2021-03-08 Tom Tromey <tom@tromey.com>
2031 * ada-exp.h (ada_bitwise_operation): New template class.
2032 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
2033 (ada_bitwise_xor_operation): New typedefs.
2035 2021-03-08 Tom Tromey <tom@tromey.com>
2037 * ada-lang.c (ada_equal_binop): No longer static.
2038 * ada-exp.h (class ada_binop_equal_operation): New.
2040 2021-03-08 Tom Tromey <tom@tromey.com>
2042 * ada-lang.c (ada_mult_binop): No longer static.
2043 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
2044 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
2046 2021-03-08 Tom Tromey <tom@tromey.com>
2048 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
2049 * ada-exp.h (class ada_binop_addsub_operation): New.
2051 2021-03-08 Tom Tromey <tom@tromey.com>
2053 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2054 (ada_resolve_variable): Declare.
2055 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
2056 (ada_resolve_variable): New functions.
2057 (resolve_subexp): Update.
2059 2021-03-08 Tom Tromey <tom@tromey.com>
2061 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
2063 * c-exp.h (class opencl_ternop_cond_operation): New.
2065 2021-03-08 Tom Tromey <tom@tromey.com>
2067 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
2069 * c-exp.h (class opencl_logical_binop_operation): New.
2071 2021-03-08 Tom Tromey <tom@tromey.com>
2073 * opencl-lang.c (opencl_structop_operation::evaluate): New
2075 * c-exp.h (class opencl_structop_operation): New.
2077 2021-03-08 Tom Tromey <tom@tromey.com>
2079 * opencl-lang.c (opencl_logical_not): No longer static. Change
2081 (evaluate_subexp_opencl): Update.
2082 * c-exp.h (opencl_notequal_operation): New typedef.
2084 2021-03-08 Tom Tromey <tom@tromey.com>
2086 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
2087 static. Change parameters.
2088 (eval_opencl_assign): No longer static. Add "op" parameter.
2089 (evaluate_subexp_opencl): Update.
2090 * c-exp.h (opencl_binop_operation): New template class.
2091 (opencl_assign_operation, opencl_equal_operation)
2092 (opencl_notequal_operation, opencl_less_operation)
2093 (opencl_gtr_operation, opencl_geq_operation)
2094 (opencl_leq_operation): New typedefs.
2096 2021-03-08 Tom Tromey <tom@tromey.com>
2098 * opencl-lang.c (opencl_value_cast): No longer static.
2099 * c-exp.h (opencl_cast_type_operation): New typedef.
2101 2021-03-08 Tom Tromey <tom@tromey.com>
2103 * f-exp.h (eval_op_f_allocated): Declare.
2104 (fortran_allocated_operation): New typedef.
2105 * f-lang.c (eval_op_f_allocated): No longer static.
2107 2021-03-08 Tom Tromey <tom@tromey.com>
2109 * f-lang.c (eval_op_f_associated): New functions.
2110 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
2113 2021-03-08 Tom Tromey <tom@tromey.com>
2115 * f-lang.c (fortran_bound_1arg::evaluate)
2116 (fortran_bound_2arg::evaluate): New methods.
2117 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
2120 2021-03-08 Tom Tromey <tom@tromey.com>
2122 * expop.h (class unop_addr_operation) <get_expression>: New
2124 * f-lang.c (fortran_undetermined::value_subarray)
2125 (fortran_undetermined::evaluate): New methods.
2126 (fortran_prepare_argument): New overload.
2127 * f-exp.h (class fortran_range_operation)
2128 (class fortran_undetermined): New classes.
2130 2021-03-08 Tom Tromey <tom@tromey.com>
2132 * rust-lang.c (rust_structop::evaluate_funcall): New method.
2133 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
2136 2021-03-08 Tom Tromey <tom@tromey.com>
2138 * expression.h (class operation) <evaluate_funcall>: New methods.
2139 * expop.h (class scope_operation) <evaluate_funcall>: New method.
2140 (class var_value_operation) <evaluate_funcall>: New method.
2141 (class structop_base_operation) <evaluate_funcall>: New method.
2142 (class var_msym_value_operation) <evaluate_funcall>: New method.
2143 (class structop_member_base): New class.
2144 (class structop_member_operation): Derive from
2145 structop_member_base.
2146 (class structop_mptr_operation): Derive from
2147 structop_member_base.
2148 (class funcall_operation): New class.
2149 * eval.c (operation::evaluate_funcall)
2150 (var_value_operation::evaluate_funcall)
2151 (scope_operation::evaluate_funcall)
2152 (structop_member_base::evaluate_funcall)
2153 (structop_base_operation::evaluate_funcall): New methods.
2155 2021-03-08 Tom Tromey <tom@tromey.com>
2157 * expop.h (class array_operation): New.
2158 * eval.c (array_operation::evaluate_struct_tuple)
2159 (array_operation::evaluate): New methods.
2161 2021-03-08 Tom Tromey <tom@tromey.com>
2163 * expop.h (class adl_func_operation): New.
2164 * eval.c (adl_func_operation::evaluate): New method.
2166 2021-03-08 Tom Tromey <tom@tromey.com>
2168 * ada-lang.c (ada_unop_in_range): No longer static.
2169 * ada-exp.h (class ada_unop_range_operation): New.
2171 2021-03-08 Tom Tromey <tom@tromey.com>
2173 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2175 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2176 (ada_atr_size_operation, ada_abs_operation): New typedefs.
2178 2021-03-08 Tom Tromey <tom@tromey.com>
2180 * expop.h (class logical_and_operation)
2181 (class logical_or_operation): New.
2182 * eval.c (logical_and_operation::evaluate)
2183 (logical_or_operation::evaluate): New methods.
2184 * ax-gdb.c (logical_and_operation::do_generate_ax)
2185 (logical_or_operation::do_generate_ax): New methods.
2187 2021-03-08 Tom Tromey <tom@tromey.com>
2189 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2191 * m2-exp.h: New file.
2193 2021-03-08 Tom Tromey <tom@tromey.com>
2195 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
2196 * rust-exp.h (class rust_aggregate_operation): New.
2198 2021-03-08 Tom Tromey <tom@tromey.com>
2200 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
2202 * rust-exp.h (class rust_struct_anon): New.
2203 (class rust_structop): New.
2205 2021-03-08 Tom Tromey <tom@tromey.com>
2207 * rust-lang.c (rust_range): No longer static.
2208 * rust-exp.h (class rust_range_operation): New.
2210 2021-03-08 Tom Tromey <tom@tromey.com>
2212 * rust-lang.c (rust_subscript): No longer static.
2213 * rust-exp.h (class rust_subscript_operation): New.
2215 2021-03-08 Tom Tromey <tom@tromey.com>
2217 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
2219 (rust_evaluate_subexp): Update.
2220 * rust-exp.h (class rust_unop_ind_operation): New.
2222 2021-03-08 Tom Tromey <tom@tromey.com>
2224 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
2225 longer static. Add "opcode" parameter.
2226 (rust_evaluate_subexp): Update.
2227 * rust-exp.h: New file.
2229 2021-03-08 Tom Tromey <tom@tromey.com>
2231 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2232 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
2233 (eval_op_f_kind): No longer static. Add "opcode" parameter.
2234 (evaluate_subexp_f): Update.
2235 * f-exp.h: New file.
2237 2021-03-08 Tom Tromey <tom@tromey.com>
2239 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
2240 * ada-exp.h (class ada_ternop_range_operation): New.
2242 2021-03-08 Tom Tromey <tom@tromey.com>
2244 * ada-lang.c (ada_qual_operation::evaluate): New method.
2245 * ada-exp.h (class ada_qual_operation): New.
2247 2021-03-08 Tom Tromey <tom@tromey.com>
2249 * ada-lang.c (ada_string_operation::evaluate): New method.
2250 * ada-exp.h (class ada_string_operation): New.
2252 2021-03-08 Tom Tromey <tom@tromey.com>
2254 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2255 * ada-exp.h: New file.
2257 2021-03-08 Tom Tromey <tom@tromey.com>
2259 * expop.h (class multi_subscript_operation): New.
2260 * eval.c (multi_subscript_operation::evaluate): New method.
2262 2021-03-08 Tom Tromey <tom@tromey.com>
2264 * eval.c (objc_msgcall_operation::evaluate): New method.
2265 * c-exp.h (class objc_msgcall_operation): New.
2267 2021-03-08 Tom Tromey <tom@tromey.com>
2269 * expop.h (class var_value_operation): New.
2270 * eval.c (var_value_operation::evaluate)
2271 (var_value_operation::evaluate_for_address)
2272 (var_value_operation::evaluate_with_coercion)
2273 (var_value_operation::evaluate_for_sizeof)
2274 (var_value_operation::evaluate_for_cast): New methods.
2275 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
2277 2021-03-08 Tom Tromey <tom@tromey.com>
2279 * expop.h (cxx_cast_ftype): New typedef.
2280 (cxx_cast_operation): New template.
2281 (dynamic_cast_operation, reinterpret_cast_operation): New
2284 2021-03-08 Tom Tromey <tom@tromey.com>
2286 * expop.h (class unop_cast_type_operation): New.
2287 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
2290 2021-03-08 Tom Tromey <tom@tromey.com>
2292 * expop.h (class unop_cast_operation): New.
2293 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
2295 2021-03-08 Tom Tromey <tom@tromey.com>
2297 * expop.h (class assign_modify_operation): New.
2298 * eval.c (eval_binop_assign_modify): No longer static.
2299 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
2301 2021-03-08 Tom Tromey <tom@tromey.com>
2303 * expop.h (class assign_operation): New.
2304 * ax-gdb.c (assign_operation::do_generate_ax): New method.
2306 2021-03-08 Tom Tromey <tom@tromey.com>
2308 * expop.h (class type_instance_operation): New.
2309 * eval.c (type_instance_operation::evaluate): New method.
2311 2021-03-08 Tom Tromey <tom@tromey.com>
2313 * expop.h (class op_this_operation): New.
2314 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
2316 2021-03-08 Tom Tromey <tom@tromey.com>
2318 * expop.h (class unop_memval_operation)
2319 (class unop_memval_type_operation): New.
2320 * eval.c (eval_op_memval): No longer static.
2321 (unop_memval_operation::evaluate_for_address)
2322 (unop_memval_type_operation::evaluate_for_address)
2323 (unop_memval_operation::evaluate_for_sizeof)
2324 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
2325 * ax-gdb.c (unop_memval_operation::do_generate_ax)
2326 (unop_memval_type_operation::do_generate_ax): New methods.
2328 2021-03-08 Tom Tromey <tom@tromey.com>
2330 * expop.h (class unop_alignof_operation): New.
2331 * eval.c (eval_op_alignof): No longer static.
2333 2021-03-08 Tom Tromey <tom@tromey.com>
2335 * expop.h (class unop_sizeof_operation): New.
2336 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
2338 2021-03-08 Tom Tromey <tom@tromey.com>
2340 * expop.h (class unop_addr_operation): New.
2341 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
2343 2021-03-08 Tom Tromey <tom@tromey.com>
2345 * expop.h (class typeid_operation): New.
2347 2021-03-08 Tom Tromey <tom@tromey.com>
2349 * expop.h (class decltype_operation): New.
2351 2021-03-08 Tom Tromey <tom@tromey.com>
2353 * expop.h (class typeof_operation): New.
2355 2021-03-08 Tom Tromey <tom@tromey.com>
2357 * expop.h (class type_operation): New.
2358 * eval.c (eval_op_type): No longer static.
2360 2021-03-08 Tom Tromey <tom@tromey.com>
2362 * expop.h (class unop_ind_base_operation)
2363 (class unop_ind_operation): New.
2364 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
2365 (unop_ind_base_operation::evaluate_for_address)
2366 (unop_ind_base_operation::evaluate_for_sizeof): New method.
2367 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
2369 2021-03-08 Tom Tromey <tom@tromey.com>
2371 * expop.h (unop_incr_operation): New template.
2372 (preinc_operation, predec_operation, postinc_operation)
2373 (postdec_operation): New typedefs.
2374 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
2375 (eval_op_postdec): No longer static.
2377 2021-03-08 Tom Tromey <tom@tromey.com>
2379 * expop.h (unary_ftype): New typedef.
2380 (unop_operation, usual_ax_binop_operation): New templates.
2381 (unary_plus_operation, unary_neg_operation)
2382 (unary_complement_operation, unary_logical_not_operation): New
2384 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
2385 (eval_op_lognot): No longer static.
2386 * ax-gdb.c (gen_expr_unop): New function.
2388 2021-03-08 Tom Tromey <tom@tromey.com>
2390 * ax-gdb.c (comma_operation::do_generate_ax): New method.
2392 2021-03-08 Tom Tromey <tom@tromey.com>
2394 * expop.h (class repeat_operation): New.
2395 * eval.c (eval_op_repeat): No longer static. Remove "op"
2397 (evaluate_subexp_standard): Update.
2398 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2400 2021-03-08 Tom Tromey <tom@tromey.com>
2402 * expop.h (class comparison_operation): New.
2403 (equal_operation, notequal_operation, less_operation)
2404 (gtr_operation, geq_operation, leq_operation): New typedefs.
2405 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
2406 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
2408 2021-03-08 Tom Tromey <tom@tromey.com>
2410 * expop.h (class subscript_operation): New.
2411 * eval.c (eval_op_subscript): No longer static.
2413 2021-03-08 Tom Tromey <tom@tromey.com>
2415 * expop.h (class binop_operation, class usual_ax_binop_operation):
2417 (exp_operation, intdiv_operation, mod_operation, mul_operation)
2418 (div_operation, rem_operation, lsh_operation, rsh_operation)
2419 (bitwise_and_operation, bitwise_ior_operation)
2420 (bitwise_xor_operation): New typedefs.
2421 * eval.c (eval_op_binary): No longer static.
2423 2021-03-08 Tom Tromey <tom@tromey.com>
2425 * expop.h (class sub_operation): New.
2426 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
2427 (evaluate_subexp_standard): Update.
2429 2021-03-08 Tom Tromey <tom@tromey.com>
2431 * expop.h (class add_operation): New.
2432 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
2433 (evaluate_subexp_standard): Update.
2435 2021-03-08 Tom Tromey <tom@tromey.com>
2437 * expop.h (class concat_operation): New.
2438 * eval.c (eval_op_concat): No longer static. Remove "op"
2440 (evaluate_subexp_standard): Update.
2442 2021-03-08 Tom Tromey <tom@tromey.com>
2444 * expop.h (class structop_member_operation)
2445 (class structop_mptr_operation): New.
2446 * eval.c (eval_op_member): No longer static.
2448 2021-03-08 Tom Tromey <tom@tromey.com>
2450 * expop.h (class structop_ptr_operation): New.
2451 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
2454 2021-03-08 Tom Tromey <tom@tromey.com>
2456 * expop.h (class structop_base_operation)
2457 (class structop_operation): New.
2458 * eval.c (eval_op_structop_struct): No longer static.
2460 2021-03-08 Tom Tromey <tom@tromey.com>
2462 * expop.h (class complex_operation): New.
2464 2021-03-08 Tom Tromey <tom@tromey.com>
2466 * eval.c (eval_op_objc_selector): No longer static.
2467 * c-exp.h (class objc_selector_operation): New.
2469 2021-03-08 Tom Tromey <tom@tromey.com>
2471 * eval.c: Include c-exp.h.
2472 * c-exp.h (class objc_nsstring_operation): New.
2474 2021-03-08 Tom Tromey <tom@tromey.com>
2476 * c-lang.c (c_string_operation::evaluate): New method.
2477 * c-exp.h: New file.
2479 2021-03-08 Tom Tromey <tom@tromey.com>
2481 * expop.h (class ternop_cond_operation): New.
2482 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
2484 2021-03-08 Tom Tromey <tom@tromey.com>
2486 * expop.h (class ternop_slice_operation): New.
2487 * eval.c (eval_op_ternop): No longer static.
2489 2021-03-08 Tom Tromey <tom@tromey.com>
2491 * expop.h (class string_operation): New.
2492 * eval.c (eval_op_string): No longer static.
2494 2021-03-08 Tom Tromey <tom@tromey.com>
2496 * expop.h (class internalvar_operation): New.
2497 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
2499 2021-03-08 Tom Tromey <tom@tromey.com>
2501 * expop.h (class bool_operation): New.
2503 2021-03-08 Tom Tromey <tom@tromey.com>
2505 * expop.h (class register_operation): New.
2506 * eval.c (eval_op_register): No longer static.
2507 * ax-gdb.c (register_operation::do_generate_ax): New method.
2509 2021-03-08 Tom Tromey <tom@tromey.com>
2511 * expop.h (class last_operation): New.
2513 2021-03-08 Tom Tromey <tom@tromey.com>
2515 * expop.h (class func_static_var_operation): New.
2516 * eval.c (eval_op_func_static_var): No longer static.
2518 2021-03-08 Tom Tromey <tom@tromey.com>
2520 * expop.h (class var_entry_value_operation): New.
2521 * eval.c (eval_op_var_entry_value): No longer static.
2523 2021-03-08 Tom Tromey <tom@tromey.com>
2525 * expression.h (class operation) <set_outermost>: New method.
2526 * expop.h (class var_msym_value_operation): New.
2527 * eval.c (eval_op_var_msym_value): No longer static.
2528 (var_msym_value_operation::evaluate_for_address)
2529 (var_msym_value_operation::evaluate_for_sizeof)
2530 (var_msym_value_operation::evaluate_for_cast): New methods.
2531 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
2534 2021-03-08 Tom Tromey <tom@tromey.com>
2536 * expop.h (class long_const_operation): New.
2537 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
2539 2021-03-08 Tom Tromey <tom@tromey.com>
2541 * expop.h (class scope_operation): New.
2542 * eval.c (eval_op_scope): No longer static.
2543 (scope_operation::evaluate_for_address): New method.
2544 * ax-gdb.c (scope_operation::do_generate_ax): New method.
2546 2021-03-08 Tom Tromey <tom@tromey.com>
2548 * expprint.c (float_const_operation::dump): New method.
2549 * expop.h (float_data): New typedef.
2550 (class float_const_operation): New.
2552 2021-03-08 Tom Tromey <tom@tromey.com>
2554 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
2555 * ax-gdb.c (gen_expr_binop): New function.
2556 (gen_expr_structop): Likewise.
2558 2021-03-08 Tom Tromey <tom@tromey.com>
2560 * expprint.c (expr::dump_for_expression): New functions.
2561 * expop.h (dump_for_expression): New overloads.
2562 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
2565 2021-03-08 Tom Tromey <tom@tromey.com>
2567 * expression.h (expr::operation): New class.
2568 (expr::make_operation): New function.
2569 (expr::operation_up): New typedef.
2570 * expop.h: New file.
2571 * eval.c (operation::evaluate_for_cast)
2572 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
2574 * ax-gdb.c (operation::generate_ax): New method.
2576 2021-03-08 Tom Tromey <tom@tromey.com>
2578 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
2579 (gen_expr_binop_rest): New overload.
2581 2021-03-08 Tom Tromey <tom@tromey.com>
2583 * eval.c (eval_multi_subscript): New function.
2584 (evaluate_subexp_standard): Use it.
2586 2021-03-08 Tom Tromey <tom@tromey.com>
2588 * ada-lang.c (ada_binop_exp): New function.
2589 (ada_evaluate_subexp): Use it.
2591 2021-03-08 Tom Tromey <tom@tromey.com>
2593 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
2595 (ada_evaluate_subexp): Use it.
2597 2021-03-08 Tom Tromey <tom@tromey.com>
2599 * ada-lang.c (ada_binop_minmax): New function.
2600 (ada_evaluate_subexp): Use it.
2602 2021-03-08 Tom Tromey <tom@tromey.com>
2604 * ada-lang.c (ada_unop_atr): New function.
2605 (ada_evaluate_subexp): Use it.
2607 2021-03-08 Tom Tromey <tom@tromey.com>
2609 * ada-lang.c (ada_binop_in_bounds): New function.
2610 (ada_evaluate_subexp): Use it.
2612 2021-03-08 Tom Tromey <tom@tromey.com>
2614 * ada-lang.c (ada_ternop_slice): New function.
2615 (ada_evaluate_subexp): Use it.
2617 2021-03-08 Tom Tromey <tom@tromey.com>
2619 * ada-lang.c (ada_equal_binop): New function.
2620 (ada_evaluate_subexp): Use it.
2622 2021-03-08 Tom Tromey <tom@tromey.com>
2624 * ada-lang.c (ada_mult_binop): New function.
2625 (ada_evaluate_subexp): Use it.
2627 2021-03-08 Tom Tromey <tom@tromey.com>
2629 * ada-lang.c (ada_abs): New function.
2630 (ada_evaluate_subexp): Use it.
2632 2021-03-08 Tom Tromey <tom@tromey.com>
2634 * ada-lang.c (ada_atr_size): New function.
2635 (ada_evaluate_subexp): Use it.
2637 2021-03-08 Tom Tromey <tom@tromey.com>
2639 * ada-lang.c (ada_atr_tag): New function.
2640 (ada_evaluate_subexp): Use it.
2642 2021-03-08 Tom Tromey <tom@tromey.com>
2644 * ada-lang.c (ada_unop_in_range): New function.
2645 (ada_evaluate_subexp): Use it.
2647 2021-03-08 Tom Tromey <tom@tromey.com>
2649 * ada-lang.c (ada_unop_neg): New function.
2650 (ada_evaluate_subexp): Use it.
2652 2021-03-08 Tom Tromey <tom@tromey.com>
2654 * ada-lang.c (eval_ternop_in_range): New function.
2655 (ada_evaluate_subexp): Use it.
2657 2021-03-08 Tom Tromey <tom@tromey.com>
2659 * opencl-lang.c (eval_opencl_assign): New function.
2660 (evaluate_subexp_opencl): Use it.
2662 2021-03-08 Tom Tromey <tom@tromey.com>
2664 * eval.c (eval_op_objc_msgcall): New function.
2665 (evaluate_subexp_standard): Use it.
2667 2021-03-08 Tom Tromey <tom@tromey.com>
2669 * eval.c (eval_binop_assign_modify): New function.
2670 (evaluate_subexp_standard): Use it.
2672 2021-03-08 Tom Tromey <tom@tromey.com>
2674 * m2-lang.c (eval_op_m2_subscript): New function.
2675 (evaluate_subexp_modula2): Use it.
2677 2021-03-08 Tom Tromey <tom@tromey.com>
2679 * m2-lang.c (eval_op_m2_high): New function.
2680 (evaluate_subexp_modula2): Use it.
2682 2021-03-08 Tom Tromey <tom@tromey.com>
2684 * eval.c (evaluate_subexp_for_address_base): New function.
2685 (evaluate_subexp_for_address): Use it.
2686 (evaluate_subexp_for_sizeof_base): New function.
2687 (evaluate_subexp_for_sizeof): Use it.
2689 2021-03-08 Tom Tromey <tom@tromey.com>
2691 * rust-lang.c (eval_op_rust_structop): New function.
2692 (rust_evaluate_subexp): Use it.
2694 2021-03-08 Tom Tromey <tom@tromey.com>
2696 * rust-lang.c (eval_op_rust_struct_anon): New function.
2697 (rust_evaluate_subexp): Use it.
2699 2021-03-08 Tom Tromey <tom@tromey.com>
2701 * rust-lang.c (eval_op_rust_array): New function.
2702 (rust_evaluate_subexp): Use it.
2704 2021-03-08 Tom Tromey <tom@tromey.com>
2706 * rust-lang.c (eval_op_rust_complement): New function.
2707 (rust_evaluate_subexp): Use it.
2709 2021-03-08 Tom Tromey <tom@tromey.com>
2711 * rust-lang.c (eval_op_rust_ind): New function.
2712 (rust_evaluate_subexp): Use it.
2714 2021-03-08 Tom Tromey <tom@tromey.com>
2716 * rust-lang.c (rust_subscript): Change parameters.
2717 (rust_evaluate_subexp): Update.
2719 2021-03-08 Tom Tromey <tom@tromey.com>
2721 * rust-lang.c (rust_range): Change parameters.
2722 (rust_evaluate_subexp): Update.
2724 2021-03-08 Tom Tromey <tom@tromey.com>
2726 * f-lang.c (eval_op_f_allocated): New function.
2727 (evaluate_subexp_f): Use it.
2729 2021-03-08 Tom Tromey <tom@tromey.com>
2731 * f-lang.c (fortran_require_array): New function.
2732 (evaluate_subexp_f): Use it.
2734 2021-03-08 Tom Tromey <tom@tromey.com>
2736 * f-lang.c (eval_op_f_kind): New function.
2737 (evaluate_subexp_f): Use it.
2739 2021-03-08 Tom Tromey <tom@tromey.com>
2741 * f-lang.c (eval_op_f_cmplx): New function.
2742 (evaluate_subexp_f): Use it.
2744 2021-03-08 Tom Tromey <tom@tromey.com>
2746 * f-lang.c (eval_op_f_modulo): New function.
2747 (evaluate_subexp_f): Use it.
2749 2021-03-08 Tom Tromey <tom@tromey.com>
2751 * f-lang.c (eval_op_f_floor): New function.
2752 (evaluate_subexp_f): Use it.
2754 2021-03-08 Tom Tromey <tom@tromey.com>
2756 * f-lang.c (eval_op_f_ceil): New function.
2757 (evaluate_subexp_f): Use it.
2759 2021-03-08 Tom Tromey <tom@tromey.com>
2761 * f-lang.c (eval_op_f_mod): New function.
2762 (evaluate_subexp_f): Use it.
2764 2021-03-08 Tom Tromey <tom@tromey.com>
2766 * f-lang.c (eval_op_f_abs): New function.
2767 (evaluate_subexp_f): Use it.
2769 2021-03-08 Tom Tromey <tom@tromey.com>
2771 * eval.c (eval_op_type): New function.
2772 (evaluate_subexp_standard): Use it.
2774 2021-03-08 Tom Tromey <tom@tromey.com>
2776 * eval.c (eval_op_postdec): New function.
2777 (evaluate_subexp_standard): Use it.
2779 2021-03-08 Tom Tromey <tom@tromey.com>
2781 * eval.c (eval_op_postinc): New function.
2782 (evaluate_subexp_standard): Use it.
2784 2021-03-08 Tom Tromey <tom@tromey.com>
2786 * eval.c (eval_op_predec): New file.
2787 (evaluate_subexp_standard): Use it.
2789 2021-03-08 Tom Tromey <tom@tromey.com>
2791 * eval.c (eval_op_preinc): New function.
2792 (evaluate_subexp_standard): Use it.
2794 2021-03-08 Tom Tromey <tom@tromey.com>
2796 * eval.c (eval_op_memval): New function.
2797 (evaluate_subexp_standard): Use it.
2799 2021-03-08 Tom Tromey <tom@tromey.com>
2801 * eval.c (eval_op_alignof): New function.
2802 (evaluate_subexp_standard): Use it.
2804 2021-03-08 Tom Tromey <tom@tromey.com>
2806 * eval.c (eval_op_ind): New function.
2807 (evaluate_subexp_standard): Use it.
2809 2021-03-08 Tom Tromey <tom@tromey.com>
2811 * eval.c (eval_op_lognot): New function.
2812 (evaluate_subexp_standard): Use it.
2814 2021-03-08 Tom Tromey <tom@tromey.com>
2816 * eval.c (eval_op_complement): New function.
2817 (evaluate_subexp_standard): Use it.
2819 2021-03-08 Tom Tromey <tom@tromey.com>
2821 * eval.c (eval_op_neg): New function.
2822 (evaluate_subexp_standard): Use it.
2824 2021-03-08 Tom Tromey <tom@tromey.com>
2826 * eval.c (eval_op_plus): New function.
2827 (evaluate_subexp_standard): Use it.
2829 2021-03-08 Tom Tromey <tom@tromey.com>
2831 * eval.c (eval_op_repeat): New function.
2832 (evaluate_subexp_standard): Use it.
2834 2021-03-08 Tom Tromey <tom@tromey.com>
2836 * eval.c (eval_op_leq): New function.
2837 (evaluate_subexp_standard): Use it.
2839 2021-03-08 Tom Tromey <tom@tromey.com>
2841 * eval.c (eval_op_geq): New function.
2842 (evaluate_subexp_standard): Use it.
2844 2021-03-08 Tom Tromey <tom@tromey.com>
2846 * eval.c (eval_op_gtr): New function.
2847 (evaluate_subexp_standard): Use it.
2849 2021-03-08 Tom Tromey <tom@tromey.com>
2851 * eval.c (eval_op_less): New function.
2852 (evaluate_subexp_standard): Use it.
2854 2021-03-08 Tom Tromey <tom@tromey.com>
2856 * eval.c (eval_op_notequal): New function.
2857 (evaluate_subexp_standard): Use it.
2859 2021-03-08 Tom Tromey <tom@tromey.com>
2861 * eval.c (eval_op_equal): New function.
2862 (evaluate_subexp_standard): Use it.
2864 2021-03-08 Tom Tromey <tom@tromey.com>
2866 * eval.c (eval_op_subscript): New function.
2867 (evaluate_subexp_standard): Use it.
2869 2021-03-08 Tom Tromey <tom@tromey.com>
2871 * eval.c (eval_op_binary): New function.
2872 (evaluate_subexp_standard): Use it.
2874 2021-03-08 Tom Tromey <tom@tromey.com>
2876 * eval.c (eval_op_sub): New function.
2877 (evaluate_subexp_standard): Use it.
2879 2021-03-08 Tom Tromey <tom@tromey.com>
2881 * eval.c (eval_op_add): New function.
2882 (evaluate_subexp_standard): Use it.
2884 2021-03-08 Tom Tromey <tom@tromey.com>
2886 * eval.c (eval_op_member): New function.
2887 (evaluate_subexp_standard): Use it.
2889 2021-03-08 Tom Tromey <tom@tromey.com>
2891 * eval.c (eval_op_structop_ptr): New function.
2892 (evaluate_subexp_standard): Use it.
2894 2021-03-08 Tom Tromey <tom@tromey.com>
2896 * eval.c (eval_op_structop_struct): New function.
2897 (evaluate_subexp_standard): Use it.
2899 2021-03-08 Tom Tromey <tom@tromey.com>
2901 * eval.c (eval_op_ternop): New function.
2902 (evaluate_subexp_standard): Use it.
2904 2021-03-08 Tom Tromey <tom@tromey.com>
2906 * eval.c (eval_op_concat): New function.
2907 (evaluate_subexp_standard): Use it.
2909 2021-03-08 Tom Tromey <tom@tromey.com>
2911 * eval.c (eval_op_objc_selector): New function.
2912 (evaluate_subexp_standard): Use it.
2914 2021-03-08 Tom Tromey <tom@tromey.com>
2916 * eval.c (eval_op_string): New function.
2917 (evaluate_subexp_standard): Use it.
2919 2021-03-08 Tom Tromey <tom@tromey.com>
2921 * eval.c (eval_op_register): New function.
2922 (evaluate_subexp_standard): Use it.
2924 2021-03-08 Tom Tromey <tom@tromey.com>
2926 * eval.c (eval_op_func_static_var): New function.
2927 (evaluate_subexp_standard): Use it.
2929 2021-03-08 Tom Tromey <tom@tromey.com>
2931 * eval.c (eval_op_var_msym_value): New function.
2932 (evaluate_subexp_standard): Use it.
2934 2021-03-08 Tom Tromey <tom@tromey.com>
2936 * eval.c (eval_op_var_entry_value): New function.
2937 (evaluate_subexp_standard): Use it.
2939 2021-03-08 Tom Tromey <tom@tromey.com>
2941 * eval.c (eval_op_scope): New function.
2942 (evaluate_subexp_standard): Use it.
2944 2021-03-06 Chernov Sergey <klen_s@mail.ru>
2947 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2949 2021-03-06 Tom Tromey <tom@tromey.com>
2951 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2952 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2953 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2954 (locate_dwz_sections, dwz_search_other_debugdirs)
2955 (dwarf2_get_dwz_file): Move to dwz.c.
2956 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2958 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2959 (dwarf2_get_dwz_file): Move from read.c.
2961 2021-03-06 Tom Tromey <tom@tromey.com>
2963 * debuginfod-support.h: Include scoped_fd.h.
2965 2021-03-06 Tom Tromey <tom@tromey.com>
2967 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2968 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2969 (get_abbrev_section_for_cu, read_attribute_value)
2970 (get_debug_line_section): Update.
2971 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2973 2021-03-06 Tom Tromey <tom@tromey.com>
2975 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2977 * dwarf2/read.c (section_is_p): Remove.
2978 (dwarf2_per_bfd::locate_sections)
2979 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2980 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2981 (dwarf2_locate_common_dwp_sections)
2982 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2985 2021-03-06 Tom Tromey <tom@tromey.com>
2987 * xcoffread.c: Include sect-names.h.
2988 * symfile.h (struct dwarf2_section_names, struct
2989 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2990 * dwarf2/sect-names.h: New file, from symfile.h.
2991 * dwarf2/read.c: Include sect-names.h.
2993 2021-03-06 Tom Tromey <tom@tromey.com>
2995 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2996 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2997 (abbrev_table::read): Update.
2998 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2999 (struct abbrev_info): Reformat.
3000 <attrs>: Now an array.
3001 (struct abbrev_table) <alloc_abbrev>: Remove.
3003 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3005 * ctfread.c (ctf_psymtab_add_enums): New function.
3006 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3008 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3010 * ctfread.c (read_func_kind_type): Set up function arguments.
3012 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3013 Andrew Burgess <andrew.burgess@embecosm.com>
3015 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3017 (riscv_csrset): New static global.
3018 (riscv_update_csrmap): New function.
3019 (riscv_iterate_over_regset_sections): Process CSRs.
3021 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3023 * riscv-tdep.c (riscv_feature_name_csr): Define.
3024 (riscv_feature_name_cpu): Define.
3025 (riscv_feature_name_fpu): Define.
3026 (riscv_feature_name_virtual): Define.
3027 (riscv_xreg_feature): Use riscv_feature_name_cpu.
3028 (riscv_freg_feature): Use riscv_feature_name_fpu.
3029 (riscv_virtual_feature): Use riscv_feature_name_virtual.
3030 (riscv_csr_feature): Use riscv_feature_name_csr.
3031 * riscv-tdep.h (riscv_feature_name_csr): Declare.
3033 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3034 Craig Blackmore <craig.blackmore@embecosm.com>
3036 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
3037 (ALLDEPFILES): Add riscv-none-tdep.c.
3038 * configure: Regenerate.
3039 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
3041 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
3042 * elf-none-tdep.c: New file.
3043 * elf-none-tdep.h: New file.
3044 * riscv-none-tdep.c: New file.
3046 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3047 Andrew Burgess <andrew.burgess@embecosm.com>
3049 * corelow.c: Add 'xml-tdesc.h' include.
3050 (core_target::read_description): Load the target description from
3051 the core file when possible.
3052 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
3054 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
3055 (gcore_elf_make_tdesc_note): New function.
3056 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
3057 * linux-tdep.c (linux_make_corefile_notes): Add target description
3060 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3062 * Makefile.in (SFILES): Add gcore-elf.c.
3063 (HFILES_NO_SRCDIR): Add gcore-elf.h
3064 * configure: Regenerate.
3065 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
3067 * fbsd-tdep.c: Add 'gcore-elf.h' include.
3068 (struct fbsd_collect_regset_section_cb_data): Delete.
3069 (fbsd_collect_regset_section_cb): Delete.
3070 (fbsd_collect_thread_registers): Delete.
3071 (struct fbsd_corefile_thread_data): Delete.
3072 (fbsd_corefile_thread): Delete.
3073 (fbsd_make_corefile_notes): Call
3074 gcore_elf_build_thread_register_notes instead of the now deleted
3076 * gcore-elf.c: New file, the content was moved here from
3077 linux-tdep.c, functions were renamed and given minor cleanup.
3078 * gcore-elf.h: New file.
3079 * gcore.c (gcore_find_signalled_thread): Moved here from
3080 linux-tdep.c and given a new name. Minor cleanups.
3081 * gcore.h (gcore_find_signalled_thread): Declare.
3082 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
3083 (struct linux_collect_regset_section_cb_data): Delete.
3084 (linux_collect_regset_section_cb): Delete.
3085 (linux_collect_thread_registers): Delete.
3086 (linux_corefile_thread): Call
3087 gcore_elf_build_thread_register_notes.
3088 (find_signalled_thread): Delete.
3089 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3091 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
3094 * sparc-nat.h (sparc_fetch_inferior_registers): Add
3095 process_stratum_target parameter,
3096 sparc_store_inferior_registers): update callers.
3097 * sparc-nat.c (sparc_fetch_inferior_registers,
3098 sparc_store_inferior_registers): Add process_stratum_target
3099 parameter. Switch current thread before calling
3100 sparc_supply_gregset / sparc_collect_rwindow.
3101 (sparc_store_inferior_registers): Likewise.
3102 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
3103 (sparc32obsd_collect_uthread): Likewise.
3104 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
3106 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
3107 sparc64obsd_supply_uthread): Add assertion.
3109 2021-03-04 Tom Tromey <tromey@adacore.com>
3111 * ada-lang.c (struct match_data) <found_sym>: Now bool.
3112 (aux_add_nonlocal_symbols): Update.
3113 (ada_add_block_symbols): Change "found_sym" to bool.
3115 2021-03-03 Tom Tromey <tromey@adacore.com>
3117 * ada-lang.c (ada_resolve_function): Update comment.
3118 (is_nonfunction, add_symbols_from_enclosing_procs)
3119 (remove_extra_symbols): Likewise.
3120 (struct match_data): Add constructor, initializers.
3121 (add_nonlocal_symbols): Remove memset.
3122 (aux_add_nonlocal_symbols): Update comment.
3123 (ada_add_block_renamings, add_nonlocal_symbols)
3124 (ada_add_all_symbols): Likewise.
3125 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
3127 2021-03-02 Tom Tromey <tromey@adacore.com>
3129 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
3130 (cast_to_gnat_encoded_fixed_point_type): Remove.
3131 (ada_value_cast, ada_evaluate_subexp): Update.
3132 (gnat_encoded_fixed_point_type_info)
3133 (ada_is_gnat_encoded_fixed_point_type)
3134 (gnat_encoded_fixed_point_delta)
3135 (gnat_encoded_fixed_point_scaling_factor): Remove.
3136 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
3137 (gnat_encoded_fixed_point_delta)
3138 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
3139 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
3140 (ada_print_type): Update.
3141 * ada-valprint.c (ada_value_print_num): Update.
3142 * dwarf2/read.c (ada_get_gnat_encoded_number)
3143 (ada_get_gnat_encoded_ratio): New functions.
3144 (finish_fixed_point_type): Use them. Add parameters.
3145 (GNAT_FIXED_POINT_SUFFIX): New define.
3146 (gnat_encoded_fixed_point_type_info): New function.
3147 (read_base_type): Handle gnat encodings.
3149 2021-03-02 Tom Tromey <tromey@adacore.com>
3151 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
3152 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
3154 (GROW_VECT): Remove.
3155 (grow_vect): Remove.
3157 2021-03-02 Tom Tromey <tromey@adacore.com>
3159 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
3160 * ada-lang.c (resolve_subexp): Update.
3161 (ada_resolve_function): Accept a vector.
3162 (is_nonfunction, add_defn_to_vec)
3163 (add_symbols_from_enclosing_procs): Likewise.
3164 (num_defns_collected, defns_collected): Remove.
3165 (remove_extra_symbols): Return a vector.
3166 (remove_irrelevant_renamings): Return void.
3167 (ada_add_local_symbols): Accept a vector.
3168 (struct match_data) <obstackp>: Remove.
3169 <resultp>: New member.
3170 (aux_add_nonlocal_symbols): Update.
3171 (ada_add_block_renamings, add_nonlocal_symbols)
3172 (ada_add_all_symbols): Accept a vector.
3173 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
3175 (ada_lookup_symbol): Update.
3176 (ada_add_block_symbols): Accept a vector.
3177 (get_var_value, iterate_over_symbols): Update.
3178 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
3181 2021-03-02 Tom Tromey <tromey@adacore.com>
3183 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3185 2021-03-02 Tom Tromey <tromey@adacore.com>
3187 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3190 (ada_pspace_data): Remove destructor.
3191 <sym_cache>: Now a unique_ptr.
3192 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
3193 (ada_get_symbol_cache): Use 'new'.
3194 (ada_clear_symbol_cache): Rewrite.
3196 2021-03-02 Tom Tromey <tromey@adacore.com>
3198 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
3201 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
3204 * source.c (add_path): Skip empty dirnames.
3206 2021-02-25 Kevin Buettner <kevinb@redhat.com>
3208 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
3209 include order for <sys/ptrace.h> and <asm/ptrace.h>.
3211 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3214 * target.c (target_mourn_inferior): Only compare pids in
3215 target_mourn_inferior.
3217 2021-02-25 Jan Matyas <jmatyas@codasip.com>
3220 * remote.c (remote_target::start_remote): Ensure the single
3221 thread, automatically added for remote targets without the
3222 concept of threading, is initially in set to the "resumed"
3224 * remote.c (remote_target::add_current_inferior_and_thread):
3225 Add return value - return the main thread.
3227 2021-02-25 Jan Vrany <jan.vrany@labware.com>
3229 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
3230 (mi_tsv_created): Likewise.
3231 (mi_tsv_deleted): Likewise.
3233 2021-02-25 Tom de Vries <tdevries@suse.de>
3236 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
3237 section_kind for &dwo_file->sections.info.
3239 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3242 * f-lang.c (fortran_argument_convert): Delete declaration.
3243 (fortran_prepare_argument): New function.
3244 (evaluate_subexp_f): Move logic to new function
3245 fortran_prepare_argument.
3247 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3249 * f-exp.y (f77_keywords): Add 'associated'.
3250 * f-lang.c (fortran_associated): New function.
3251 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
3252 (operator_length_f): Likewise.
3253 (print_unop_or_binop_subexp_f): New function.
3254 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
3255 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
3256 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
3257 (operator_check_f): Likewise.
3258 * std-operator.def: Add FORTRAN_ASSOCIATED.
3260 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3262 * f-exp.y (fortran_operators): Add ".xor.".
3264 2021-02-24 Tom de Vries <tdevries@suse.de>
3267 * dwarf2/attribute.c (attribute::form_is_signed): New function
3269 * dwarf2/attribute.h (attribute::as_signed): ... here.
3270 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
3271 (attribute::form_is_signed): Declare.
3272 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
3273 for DW_AT_decl_file.
3275 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3277 * nat/aarch64-linux-hw-point.c: Add comment regarding include
3278 order for <sys/ptrace.h> and <asm/ptrace.h>.
3280 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3282 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
3285 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3287 * exec.c (set_section_command): Move variable declarations into
3288 the function body, and use std::string instead of a fixed size
3291 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3293 * exec.c (exec_target::get_section_table): Delete member function.
3294 (section_table_read_available_memory): Use current_top_target, not
3295 just the exec_ops target.
3296 * target-delegates.c: Regenerate.
3297 * target.c (default_get_section_table): New function.
3298 * target.h (target_ops::get_section_table): Change default
3299 behaviour to call default_get_section_table.
3300 (default_get_section_table): Declare.
3302 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3304 * exec.c (exec_target::close): Call new clear_target_sections
3306 (program_space::add_target_sections): Update name of member
3308 (program_space::add_target_sections): Update name of member
3310 (program_space::remove_target_sections): Likewise.
3311 (exec_one_fork): Use new target_sections member function.
3312 (exec_target::get_section_table): Likewise.
3313 (exec_target::files_info): Likewise.
3314 (set_section_command): Likewise.
3315 (exec_set_section_address): Likewise.
3316 (exec_target::has_memory): Use new target_sections member
3318 * progspace.h (program_space::clear_target_sections): New member
3320 (program_space::target_sections): Rename member variable to
3321 m_target_sections, replace with a new member function.
3322 (program_space::m_target_sections): New member variable.
3323 * solib-dsbt.c (scan_dyntag): Use new member function.
3324 * solib-svr4.c (scan_dyntag): Likewise.
3326 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3328 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
3330 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
3331 (section_table_read_available_memory): Make local const.
3332 (exec_target::xfer_partial): Make local const.
3333 (print_section_info): Make parameter const.
3334 * gdb/exec.h (print_section_info): Likewise.
3335 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
3337 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
3339 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
3341 * gdb/s390-tdep.c (s390_load): Likewise.
3342 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
3343 * gdb/solib-svr4.c (scan_dyntag): Likewise.
3344 * gdb/target-debug.h (target_debug_print_target_section_table_p):
3346 (target_debug_print_const_target_section_table_p): ...this.
3347 * gdb/target-delegates.c: Regenerate.
3348 * gdb/target.c (target_get_section_table): Make return type const.
3349 (target_section_by_addr): Likewise. Also make some locals const.
3350 (memory_xfer_partial_1): Make some locals const.
3351 * gdb/target.h (struct target_ops) <get_section_table>: Make
3353 (target_section_by_addr): Likewise.
3354 (target_get_section_table): Likewise.
3356 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3358 * NEWS: Mention new 'maint info target-sections' command.
3359 * maint.c (maintenance_info_target_sections): New function.
3360 (_initialize_maint_cmds): Register new command.
3362 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3364 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
3365 (riscv_features_from_bfd): ...this. Change parameter type to
3366 'bfd*', and update as required.
3367 (riscv_find_default_target_description): Update call to
3368 riscv_features_from_bfd. Select a default xlen based on
3370 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
3372 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3374 * eval.c (evaluate_subexp_standard): Call value_ind for points to
3375 dynamic types in UNOP_IND.
3377 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3380 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
3382 (~dwarf2_queue_guard): Clear queue.
3383 (queue_comp_unit): Assert that queue is
3385 (process_queue): Adjust.
3386 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
3388 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3391 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
3392 to decide whether or not to enqueue it for expansion.
3393 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
3394 after calling maybe_queue_comp_unit.
3396 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3398 * linux-nat.c (linux_nat_filter_event): Return void.
3400 2021-02-22 Tom Tromey <tromey@adacore.com>
3402 * solib-svr4.c (enable_break): Update.
3403 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3405 (target_bfd_reopen): Change parameter type.
3406 * bfd-target.h (target_bfd_reopen): Change parameter type.
3408 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3410 * thread.c (add_thread_silent): Add assert.
3411 (find_thread_ptid): Add assert.
3413 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3416 * inf-ptrace.c (struct target_unpusher): Move to target.h.
3417 (target_unpush_up): Likewise.
3418 * procfs.c (procfs_target::attach): Push target early. Use
3419 target_unpush_up to unpush target in case of error.
3420 * target.h (struct target_unpusher): Move here.
3421 (target_unpush_up): Likewise.
3423 2021-02-19 Kevin Buettner <kevinb@redhat.com>
3425 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3426 (which in turn includes <gnulib/config.h>) before include
3429 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
3432 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
3433 (decode_j_type_insn): Likewise.
3434 (decode_cj_type_insn): Likewise.
3435 (decode_b_type_insn): Likewise.
3438 2021-02-18 Tom Tromey <tom@tromey.com>
3440 * expression.h (struct expression) <evaluate>: Declare method.
3441 * eval.c (evaluate_subexp): Simplify.
3442 (expression::evaluate): New method.
3443 (evaluate_expression, evaluate_type): Use expression::evaluate.
3445 2021-02-17 Kevin Buettner <kevinb@redhat.com>
3447 * ada-lang.c (ada_fold_name): Check for non-empty string prior
3449 (ada_lookup_name_info): Likewise.
3451 2021-02-13 Mike Frysinger <vapier@gentoo.org>
3453 * aclocal.m4: Regenerate.
3455 2021-02-12 Tom de Vries <tdevries@suse.de>
3458 * linux-nat.c (lin_thread_get_thread_signals): Remove.
3459 (lin_thread_signals): New static var.
3460 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3462 * linux-nat.h (lin_thread_get_thread_signals): Remove.
3463 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3465 * linux-thread-db.c (check_thread_signals): Use
3466 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
3468 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
3470 * f-exp.y (f77_keywords): Add allocated.
3471 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
3472 (operator_length_f): Likewise.
3473 (print_subexp_f): Likewise.
3474 (dump_subexp_body_f): Likewise.
3475 (operator_check_f): Likewise.
3476 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
3478 2021-02-11 Tom de Vries <tdevries@suse.de>
3481 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
3482 Return true for DW_FORM_strx.
3484 2021-02-11 Tom Tromey <tromey@adacore.com>
3487 * parse.c (write_exp_symbol_reference): Write sym.block.
3489 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3491 * NEWS: Mention changes to 'maint info sections'.
3492 * maint.c (match_substring): Return a bool, fix whitespace issue.
3493 (struct single_bfd_flag_info): New struct.
3494 (bfd_flag_info): New static global.
3495 (match_bfd_flags): Return a bool, use bfd_flag_info.
3496 (print_bfd_flags): Use bfd_flag_info.
3497 (maint_print_section_info): Delete trailing whitespace.
3498 (struct maint_info_sections_opts): New struct.
3499 (maint_info_sections_option_defs): New static global.
3500 (maint_info_sections_completer): New function.
3501 (maintenance_info_sections): Use option parsing mechanism.
3502 (_initialize_maint_cmds): Update command help text for 'maint info
3503 sections' and register a command completer.
3505 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3507 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
3508 functionality merged into...
3509 (maint_print_all_sections): ...this new function.
3510 (maintenance_info_sections): Make use of maint_print_all_sections,
3511 allow all objects to be printed even where there's no executable.
3513 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3515 * breakpoint.c (resolve_sal_pc): Make use of
3516 bound_minimal_symbol::obj_section.
3517 * maint.c (maintenance_translate_address): Likewise.
3518 * minsyms.c (minimal_symbol_upper_bound): Likewise.
3519 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
3521 * printcmd.c (info_address_command): Make use of
3522 bound_minimal_symbol::obj_section.
3524 2021-02-11 Alan Modra <amodra@gmail.com>
3526 * arm-symbian-tdep.c: Delete.
3527 * NEWS: Mention arm-symbian removal.
3528 * Makefile.in: Remove arm-symbian-tdep entries.
3529 * configure.tgt: Remove arm*-*-symbianelf*.
3530 * doc/gdb.texinfo: Remove mention of SymbianOS.
3531 * osabi.c (gdb_osabi_names): Remove "Symbian".
3532 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
3533 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
3534 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
3536 * testsuite/gdb.base/dup-sect.exp: Likewise.
3537 * testsuite/gdb.base/long_long.exp: Likewise.
3538 * testsuite/gdb.base/solib-weak.exp: Likewise.
3539 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
3540 * testsuite/gdb.python/py-section-script.exp: Likewise.
3541 * testsuite/lib/dwarf.exp: Likewise.
3542 * testsuite/lib/gdb.exp: Likewise.
3544 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3546 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
3547 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
3548 (one_or_two_args): New pattern.
3549 (f77_keywords): Add lbound and ubound.
3550 * f-lang.c (fortran_bounds_all_dims): New function.
3551 (fortran_bounds_for_dimension): New function.
3552 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
3553 (operator_length_f): Likewise.
3554 (print_subexp_f): Likewise.
3555 (dump_subexp_body_f): Likewise.
3556 (operator_check_f): Likewise.
3557 * std-operator.def (FORTRAN_LBOUND): Define.
3558 (FORTRAN_UBOUND): Define.
3560 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3562 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
3563 and set_section_index member functions where appropriate.
3564 * coffread.c (coff_symtab_read): Likewise.
3565 (process_coff_symbol): Likewise.
3566 * ctfread.c (set_symbol_address): Likewise.
3567 * dwarf2/read.c (add_partial_symbol): Likewise.
3568 (var_decode_location): Likewise.
3569 * language.c: Likewise.
3570 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
3571 (compact_minimal_symbols): Likewise.
3572 (minimal_symbol_upper_bound): Likewise.
3573 * objfiles.c (relocate_one_symbol): Likewise.
3574 * psympriv.h (partial_symbol::obj_section): Likewise.
3575 (partial_symbol::address): Likewise.
3576 * psymtab.c (partial_symtab::add_psymbol): Likewise.
3577 * stabsread.c (scan_file_globals): Likewise.
3578 * symmisc.c (dump_msymbols): Likewise.
3579 * symtab.c (general_symbol_info::obj_section): Likewise.
3580 (fixup_section): Likewise.
3581 (get_msymbol_address): Likewise.
3582 * symtab.h (general_symbol_info::section): Rename to...
3583 (general_symbol_info::m_section): ...this.
3584 (general_symbol_info::set_section_index): New member function.
3585 (general_symbol_info::section_index): Likewise.
3586 (SYMBOL_SECTION): Delete.
3587 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
3588 set_section_index member functions where appropriate.
3589 (MSYMBOL_SECTION): Delete.
3590 (symbol::symbol): Update to initialize 'm_section'.
3591 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
3592 (process_xcoff_symbol): Likewise.
3594 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3596 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
3597 MSYMBOL_OBJ_SECTION.
3598 * findvar.c (language_defn::read_var_value): Likewise.
3599 * infcmd.c (jump_command): Likewise.
3600 * linespec.c (minsym_found): Likewise.
3601 * maint.c (maintenance_translate_address): Likewise.
3602 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
3603 (minimal_symbol_upper_bound): Likewise.
3604 * parse.c (find_minsym_type_and_address): Likewise.
3605 (operator_check_standard): Likewise.
3606 * printcmd.c (info_address_command): Likewise.
3607 * symmisc.c (dump_msymbols): Likewise.
3608 (print_symbol): Likewise.
3609 * symtab.c (general_symbol_info::obj_section): Define new
3611 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
3612 (find_pc_sect_compunit_symtab): Likewise.
3613 (find_function_start_sal): Likewise.
3614 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
3615 MSYMBOL_OBJ_SECTION.
3616 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
3618 (SYMBOL_OBJ_SECTION): Delete.
3619 (MSYMBOL_OBJ_SECTION): Delete.
3621 2021-02-09 Tom Tromey <tom@tromey.com>
3623 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
3625 2021-02-09 Tom de Vries <tdevries@suse.de>
3628 * dwarf2/read.c (read_array_type): Return NULL when not being able to
3629 construct an array type. Add assert to ensure that element_type is
3632 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
3634 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
3635 (gcore_collect_regset_section_cb): Delete.
3636 (gcore_collect_thread_registers): Delete.
3637 (gcore_build_thread_register_notes): Delete.
3638 (gcore_find_signalled_thread): Delete.
3639 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
3640 'gdbarch' and 'thread_info' declarations.
3641 (gcore_build_thread_register_notes): Delete declaration.
3642 (gcore_find_signalled_thread): Likewise.
3643 * fbsd-tdep.c: Remove 'gcore.h' include.
3644 (struct fbsd_collect_regset_section_cb_data): New struct.
3645 (fbsd_collect_regset_section_cb): New function.
3646 (fbsd_collect_thread_registers): New function.
3647 (struct fbsd_corefile_thread_data): New struct.
3648 (fbsd_corefile_thread): New function.
3649 (fbsd_make_corefile_notes): Call FreeBSD specific code.
3650 * linux-tdep.c: Remove 'gcore.h' include.
3651 (struct linux_collect_regset_section_cb_data): New struct.
3652 (linux_collect_regset_section_cb): New function.
3653 (linux_collect_thread_registers): New function.
3654 (linux_corefile_thread): Call Linux specific code.
3655 (find_signalled_thread): New function.
3656 (linux_make_corefile_notes): Call find_signalled_thread.
3658 2021-02-09 Tom Tromey <tromey@adacore.com>
3660 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
3662 * value.c (value_contents_copy_raw): Now static.
3663 * value.h (value_contents_copy_raw): Don't declare.
3665 2021-02-09 Tom Tromey <tromey@adacore.com>
3667 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
3670 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
3673 * arc-linux-tdep.c (handle_atomic_sequence): New.
3674 (arc_linux_software_single_step): Call handle_atomic_sequence().
3676 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3678 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
3680 (REQUIRE_WINDOW): Call is_valid member function.
3681 (REQUIRE_WINDOW_FOR_SETTER): New define.
3682 (gdbpy_tui_is_valid): Call is_valid member function.
3683 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
3684 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
3686 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
3687 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
3690 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3692 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
3693 for the title is not nullptr.
3695 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3697 * tui-layout.c (saved_tui_windows): Delete.
3698 (tui_apply_current_layout): Don't make use of saved_tui_windows,
3699 call new get_windows member function instead.
3700 (tui_get_window_by_name): Check in tui_windows.
3701 (tui_layout_window::apply): Don't add to tui_windows.
3702 * tui-layout.h (tui_layout_base::get_windows): New member function.
3703 (tui_layout_window::get_windows): Likewise.
3704 (tui_layout_split::get_windows): Likewise.
3706 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3708 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
3709 of the window objects.
3711 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3713 * python/python.c (gdbpy_print_stack): Reformat an error message.
3715 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3717 * tui/tui-interp.c (tui_command_line_handler): New function.
3718 (tui_interp::resume): Register tui_command_line_handler as the
3720 * tui/tui-io.c (tui_inject_newline_into_command_window): New
3722 (tui_getc_1): Delete handling of '\n' and '\r'.
3723 * tui-io.h (tui_inject_newline_into_command_window): Declare.
3725 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3727 * tui/tui-regs.c (tui_data_window::display_registers_from):
3728 Mark invisible register sub windows.
3729 (tui_data_window::check_register_values): Ignore invisible
3730 register sub windows.
3732 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3734 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
3735 n_spaces with a negative value.
3737 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3739 * tui/tui-regs.c (tui_data_window::display_registers_from):
3740 Add refresh_window call.
3742 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3744 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
3746 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
3748 * symmisc.c (std_in, std_out, std_err): Remove.
3749 (_initialize_symmisc): Don't set std_in, std_out and std_err.
3751 2021-02-05 Tom de Vries <tdevries@suse.de>
3753 PR breakpoints/27330
3754 * breakpoint.c (create_exception_master_breakpoint): Handle case that
3755 glibc object file has debug info.
3757 2021-02-05 Tom de Vries <tdevries@suse.de>
3760 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
3762 2021-02-05 Tom de Vries <tdevries@suse.de>
3764 PR breakpoints/27313
3765 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
3768 2021-02-05 Tom Tromey <tom@tromey.com>
3770 * compile/compile-c-support.c (get_compile_context)
3771 (c_get_compile_context, cplus_get_compile_context): Change return
3773 * language.c (language_defn::get_compile_instance): New method.
3774 * language.h (language_defn::get_compile_instance): Change return
3775 type. No longer inline.
3776 * c-lang.c (c_language::get_compile_instance): Change return type.
3777 (cplus_language::get_compile_instance): Change return type.
3778 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
3780 * compile/compile.c (compile_to_object): Update.
3782 2021-02-05 Tom Tromey <tom@tromey.com>
3784 * parser-defs.h (write_exp_symbol_reference): Declare.
3785 * parse.c (write_exp_symbol_reference): New function.
3786 * p-exp.y (variable): Use write_exp_symbol_reference.
3787 * m2-exp.y (variable): Use write_exp_symbol_reference.
3788 * f-exp.y (variable): Use write_exp_symbol_reference.
3789 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
3790 * c-exp.y (variable): Use write_exp_symbol_reference.
3792 2021-02-05 Tom de Vries <tdevries@suse.de>
3795 * valarith.c (complex_binop): Throw an error if complex type can't
3798 2021-02-05 Tom de Vries <tdevries@suse.de>
3801 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
3804 2021-02-05 Tom de Vries <tdevries@suse.de>
3806 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
3808 2021-02-04 Mike Frysinger <vapier@gentoo.org>
3810 * configure.tgt (riscv*-*-*): Set gdb_sim.
3812 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
3814 * target.c (target_is_non_stop_p): Return bool.
3815 * target.h (target_is_non_stop_p): Return bool.
3817 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3819 * record-full.c (record_full_async_inferior_event_handler):
3820 Don't clear async event handler.
3821 (record_full_base_target::wait): Clear async event handler at
3824 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3826 * record-btrace.c (record_btrace_handle_async_inferior_event):
3827 Don't clear async event handler.
3828 (record_btrace_target::wait): Clear async event handler at
3831 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3833 * remote.c (remote_target::wait): Clear async event handler at
3834 beginning, mark if needed at the end.
3835 (remote_async_inferior_event_handler): Don't set or clear async
3838 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3840 * async-event.h (async_event_handler_func): Add documentation.
3841 * async-event.c (check_async_event_handlers): Don't clear
3842 async_event_handler ready flag.
3843 * infrun.c (infrun_async_inferior_event_handler): Clear ready
3845 * record-btrace.c (record_btrace_handle_async_inferior_event):
3847 * record-full.c (record_full_async_inferior_event_handler):
3849 * remote-notif.c (remote_async_get_pending_events_handler):
3851 * remote.c (remote_async_inferior_event_handler): Likewise.
3853 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
3855 * infrun.c (handle_inferior_event): Move stop_soon variable to
3858 2021-02-03 Pedro Alves <pedro@palves.net>
3860 * infcmd.c (detach_command): Hold strong reference to target, and
3861 if all-stop on entry, restart threads on exit.
3862 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
3863 (restart_stepped_thread): ... this new function. Also handle
3865 (restart_after_all_stop_detach): New function.
3866 * infrun.h (restart_after_all_stop_detach): Declare.
3868 2021-02-03 Pedro Alves <pedro@palves.net>
3870 * infrun.c (struct step_over_info): Initialize fields.
3871 (prepare_for_detach): Handle ongoing in-line step over.
3873 2021-02-03 Pedro Alves <pedro@palves.net>
3875 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
3877 * remote.c (remote_target::remote_detach_1): ... and here ...
3878 * target.c (target_detach): ... instead of here.
3879 * target.h (target_ops::detach): Add comment.
3881 2021-02-03 Pedro Alves <pedro@palves.net>
3883 * infrun.c (struct wait_one_event): Move higher up.
3884 (prepare_for_detach): Abort in-progress displaced steps instead of
3885 letting them complete.
3886 (handle_one): If the inferior is detaching, don't add the thread
3887 back to the global step-over chain.
3888 (restart_threads): Don't restart threads if detaching.
3889 (handle_signal_stop): Remove inferior::detaching reference.
3891 2021-02-03 Pedro Alves <pedro@palves.net>
3893 * infrun.c (prepare_for_detach): Don't release scoped_restore
3896 2021-02-03 Pedro Alves <pedro@palves.net>
3898 * infrun.c (handle_one): New function, factored out from ...
3899 (stop_all_threads): ... here.
3901 2021-02-03 Pedro Alves <pedro@palves.net>
3903 * remote.c (remote_notif_stop_ack): Don't error out on
3904 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
3905 (remote_target::discard_pending_stop_replies): Don't delete
3906 in-flight notification; instead, clear its contents.
3908 2021-02-03 Pedro Alves <pedro@palves.net>
3910 * remote.c (extended_remote_target::attach): Set target async in
3911 the target-non-stop path too.
3913 2021-02-03 Pedro Alves <pedro@palves.net>
3916 * infrun.c (handle_signal_stop): Move main context_switch call
3917 earlier, before STOP_QUIETLY_NO_SIGSTOP.
3919 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
3921 * NEWS (Changed commands): Add entry for the behavior change of
3922 the inferior command.
3923 * inferior.c (inferior_command): When no argument is given to the
3924 inferior command, display info about the currently selected
3927 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3929 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3931 (read_attribute_reprocess): Adjust.
3933 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3935 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3936 <gnu_ranges_base>: ... this...
3937 <rnglists_base>: ... and this.
3938 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3939 <gnu_ranges_base>: ... this...
3940 <rnglists_base>: ... and this.
3941 (read_cutu_die_from_dwo): Adjust
3942 (dwarf2_get_pc_bounds): Adjust
3943 (dwarf2_record_block_ranges): Adjust.
3944 (read_full_die_1): Adjust
3945 (partial_die_info::read): Adjust.
3946 (read_rnglist_index): Adjust.
3948 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3951 * dwarf2/read.c (read_loclists_rnglists_header): Add
3952 header_offset parameter and use it.
3953 (read_loclist_index): Read header of the current contribution,
3954 not the one at the beginning of the section.
3955 (read_rnglist_index): Likewise.
3957 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3960 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3961 requires_reprocessing flag.
3962 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3964 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3965 and DW_FORM_loclistx.
3966 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3967 instead of set_address for DW_FORM_loclistx and
3970 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3972 * dwarf2/read.c (read_loclist_index): Remove bound check for
3974 (read_rnglist_index): Likewise.
3976 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3978 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3981 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3983 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3985 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3987 * dwarf2/read.c (read_loclist_index): Change complaints into
3990 2021-02-02 Tom de Vries <tdevries@suse.de>
3993 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3996 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3998 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3999 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4000 here from linux-tdep.c and given a new name. Minor cleanups.
4001 (gcore_collect_regset_section_cb): Likewise.
4002 (gcore_collect_thread_registers): Likewise.
4003 (gcore_build_thread_register_notes): Likewise.
4004 (gcore_find_signalled_thread): Likewise.
4005 * gcore.h (gcore_build_thread_register_notes): Declare.
4006 (gcore_find_signalled_thread): Declare.
4007 * fbsd-tdep.c: Add 'gcore.h' include.
4008 (struct fbsd_collect_regset_section_cb_data): Delete.
4009 (fbsd_collect_regset_section_cb): Delete.
4010 (fbsd_collect_thread_registers): Delete.
4011 (struct fbsd_corefile_thread_data): Delete.
4012 (fbsd_corefile_thread): Delete.
4013 (fbsd_make_corefile_notes): Call
4014 gcore_build_thread_register_notes instead of the now deleted
4016 * linux-tdep.c: Add 'gcore.h' include.
4017 (struct linux_collect_regset_section_cb_data): Delete.
4018 (linux_collect_regset_section_cb): Delete.
4019 (linux_collect_thread_registers): Delete.
4020 (linux_corefile_thread): Call
4021 gcore_build_thread_register_notes.
4022 (find_signalled_thread): Delete.
4023 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4025 2021-01-29 Tom de Vries <tdevries@suse.de>
4027 PR breakpoints/26063
4028 * infrun.c (process_event_stop_test): Reset
4029 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
4032 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4034 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
4035 assert. Extend the header comment.
4037 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4039 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
4040 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
4041 * tui/tui-data.h (TUI_STATUS_WIN): Define.
4042 (tui_locator_win_info_ptr): Delete declaration.
4043 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
4044 (tui_disasm_window::set_contents): Fetch state from tui_location
4046 (tui_get_begin_asm_address): Likewise.
4047 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
4049 (get_locator_window): Delete.
4050 (initialize_known_windows): Treat locator window just like all the
4052 * tui/tui-source.c: Add 'tui/tui-location.h' include.
4053 (tui_source_window::set_contents): Fetch state from tui_location
4055 (tui_source_window::showing_source_p): Likewise.
4056 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
4058 (tui_locator_win_info_ptr): Delete.
4059 (tui_locator_window::make_status_line): Fetch state from
4060 tui_location global.
4061 (tui_locator_window::rerender): Remove check of 'handle',
4062 reindent function body.
4063 (tui_locator_window::set_locator_fullname): Delete.
4064 (tui_locator_window::set_locator_info): Delete.
4065 (tui_update_locator_fullname): Delete.
4066 (tui_show_frame_info): Likewise.
4067 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
4068 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
4069 tui/tui-location.h and renamed to
4070 tui_location_tracker::set_location.
4071 (tui_locator_window::set_locator_fullname): Moved to
4072 tui/tui-location.h and renamed to
4073 tui_location_tracker::set_fullname.
4074 (tui_locator_window::full_name): Delete.
4075 (tui_locator_window::proc_name): Delete.
4076 (tui_locator_window::line_no): Delete.
4077 (tui_locator_window::addr): Delete.
4078 (tui_locator_window::gdbarch): Delete.
4079 (tui_update_locator_fullname): Delete declaration.
4080 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
4082 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
4083 (tui_display_main): Call function on tui_location directly.
4084 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
4085 * tui/tui-location.c: New file.
4086 * tui/tui-location.h: New file.
4088 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4090 * gdbtypes.h (get_type_arch): Rename to...
4091 (struct type) <arch>: ... this, update all users.
4093 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4095 * gdbtypes.h (struct type) <arch>: Rename to...
4096 <arch_owner>: ... this, update all users.
4097 <objfile>: Rename to...
4098 <objfile_owner>: ... this, update all users.
4100 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4102 * gdbcmd.h (execute_command_to_string): Update comment.
4103 * top.c (execute_command_to_string): Update header comment.
4105 2021-01-28 Tom de Vries <tdevries@suse.de>
4107 PR breakpoints/27205
4108 * breakpoint.c (create_longjmp_master_breakpoint_probe)
4109 (create_longjmp_master_breakpoint_names): New function, factored out
4111 (create_longjmp_master_breakpoint): ... here. Only try to install
4112 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
4113 breakpoint in libc.so failed.
4115 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
4118 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
4119 unique_ptr is released when the wrapped pointer is kept for later
4122 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
4124 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
4125 BLR and BR instructions.
4126 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
4127 (enum aarch64_masks): New.
4129 2021-01-26 Tom Tromey <tromey@adacore.com>
4131 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4132 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
4133 (windows_init_thread_list, windows_nat::handle_load_dll)
4134 (windows_nat::handle_unload_dll, windows_nat_target::resume)
4135 (windows_nat_target::resume)
4136 (windows_nat_target::get_windows_debug_event)
4137 (windows_nat_target::interrupt, windows_xfer_memory)
4138 (windows_nat_target::close): Update.
4139 * nat/windows-nat.c (DEBUG_EVENTS): Use
4140 debug_prefixed_printf_cond.
4141 (matching_pending_stop, fetch_pending_stop)
4142 (continue_last_debug_event): Update.
4144 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
4146 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
4147 elfcore_write_file_note.
4149 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
4151 * arc-tdep.c (arc_add_reggroups): New function.
4152 (arc_gdbarch_init): Call arc_add_reggroups.
4154 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
4156 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
4158 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4159 Simon Marchi <simon.marchi@polymtl.ca>
4160 Tom de Vries <tdevries@suse.de>
4162 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4165 2021-01-25 Tom Tromey <tromey@adacore.com>
4167 * dwarf2/read.c (get_mpz): New function.
4168 (get_dwarf2_rational_constant): Use it.
4170 2021-01-25 Tom Tromey <tromey@adacore.com>
4172 * ada-lang.c (resolve_subexp): Handle array context.
4174 2021-01-23 Tom Tromey <tom@tromey.com>
4177 * compile/compile-loc2c.c (note_register): New function.
4178 (pushf_register_address, pushf_register): Use it.
4180 2021-01-23 Tom Tromey <tom@tromey.com>
4182 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4183 Change type of "registers_used".
4184 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
4185 * dwarf2/loc.c (dwarf2_compile_property_to_c)
4186 (locexpr_generate_c_location, loclist_generate_c_location): Change
4187 type of "registers_used".
4188 * compile/compile.h (compile_dwarf_expr_to_c)
4189 (compile_dwarf_bounds_to_c): Update.
4190 * compile/compile-loc2c.c (pushf_register_address)
4191 (pushf_register, do_compile_dwarf_expr_to_c)
4192 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
4193 of "registers_used".
4194 * compile/compile-c.h (generate_c_for_variable_locations):
4196 * compile/compile-c-symbols.c (generate_vla_size)
4197 (generate_c_for_for_one_variable): Change type of
4199 (generate_c_for_variable_locations): Return std::vector.
4200 * compile/compile-c-support.c (generate_register_struct): Change
4201 type of "registers_used".
4204 2021-01-23 Tom Tromey <tom@tromey.com>
4206 * compile/compile-internal.h (class compile_instance)
4207 <set_arguments>: Change return type.
4208 * compile/compile.c (compile_to_object): Remove call to reset.
4209 (compile_instance::set_arguments): Change return type.
4211 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4213 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
4214 * gdbtypes.h (struct type) <set_owner>: Add asserts.
4216 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
4218 * Makefile.in (SELFTESTS_SRCS): Add
4219 unittests/gdb_tilde_expand-selftests.c.
4220 * unittests/gdb_tilde_expand-selftests.c: New file.
4222 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4225 * NEWS: Mention new command.
4226 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
4227 (version_style): Define.
4228 (cli_style_option::cli_style_option): Add intensity parameter, and
4230 (_initialize_cli_style): Register version style set/show commands.
4231 * cli/cli-style.h (cli_style_option): Add intensity parameter.
4232 (version_style): Declare.
4233 * top.c (print_gdb_version): Use version_stype, and styled_string
4234 to print the GDB version string.
4236 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
4238 * utils.c (emit_style_escape): Only emit an escape sequence if the
4239 requested style is different than the current applied style.
4240 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
4241 current applied_style.
4242 (fputs_styled): Remove is_default check.
4243 (fputs_styled_unfiltered): Likewise.
4244 (vfprintf_styled_no_gdbfmt): Likewise.
4246 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4248 * remote.h (remote_debug_printf): New.
4249 (remote_debug_printf_nofunc): New.
4250 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
4251 * remote.c: Use above macros throughout file.
4253 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4255 * remote.h (remote_debug): Change to bool.
4256 * remote.c (remote_debug): Change to bool.
4257 (_initialize_remote): Adjust.
4259 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4261 * target.h (remote_debug): Move to...
4262 * remote.h (remote_debug): ... here.
4263 * top.c (remote_debug): Move to...
4264 * remote.c (remote_debug): ... here.
4265 * remote-sim.c: Include remote.h.
4267 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4269 * cli/cli-cmds.c (show_remote_debug): Remove.
4270 (show_remote_timeout): Remove.
4271 (_initialize_cli_cmds): Don't register commands.
4272 * remote.c (show_remote_debug): Move here.
4273 (show_remote_timeout): Move here.
4274 (_initialize_remote): Register commands.
4276 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4278 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
4279 type::objfile method instead.
4281 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4283 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
4284 use the type::is_objfile_owned method.
4286 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
4288 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
4289 (TYPE_OWNER): Remove.
4290 (TYPE_OBJFILE): Adjust.
4291 (struct main_type) <flag_objfile_owned>: Rename to...
4292 <m_flag_objfile_owned>: ... this.
4293 <owner>: Rename to...
4294 <m_owner>: ... this.
4295 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
4297 (TYPE_ALLOC): Adjust.
4298 * gdbtypes.c (alloc_type): Adjust.
4299 (alloc_type_arch): Adjust.
4300 (alloc_type_copy): Adjust.
4301 (get_type_arch): Adjust.
4302 (smash_type): Adjust.
4303 (lookup_array_range_type): Adjust.
4304 (recursive_dump_type): Adjust.
4305 (copy_type_recursive): Adjust.
4306 * compile/compile-c-types.c (convert_func): Adjust.
4307 (convert_type_basic): Adjust.
4308 * compile/compile-cplus-types.c (compile_cplus_convert_func):
4311 (language_arch_info::type_and_symbol::alloc_type_symbol):
4314 2021-01-21 Luis Machado <luis.machado@linaro.org>
4316 * coffread.c (enter_linenos): Passing string to complaint.
4317 * valops.c (value_assign): Make array view.
4319 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4321 * auto-load.h (debug_auto_load): Move here.
4322 (auto_load_debug_printf): New.
4323 * auto-load.c: Use auto_load_debug_printf.
4324 (debug_auto_load): Move to header.
4325 * linux-thread-db.c (try_thread_db_load): Use
4326 auto_load_debug_printf.
4327 * main.c (captured_main_1): Likewise.
4329 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4331 * f-valprint.c (f77_array_offset_tbl): Remove.
4333 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4335 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
4337 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4339 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
4342 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
4345 * python/py-breakpoint.c (bppy_get_location): Handle
4346 bp_hardware_breakpoint.
4347 (bppy_init): Likewise.
4348 (gdbpy_breakpoint_created): Likewise.
4350 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4352 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
4354 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4356 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
4357 (_initialize_gdb_bfd): Adjust.
4359 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4362 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
4364 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4366 * dwarf2/read.c (follow_die_offset): Add logging.
4367 (dwarf2_per_objfile::age_comp_units): Add logging.
4369 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4371 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
4372 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
4373 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
4374 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
4375 * arm-tdep.c (struct frame_unwind): Make static.
4376 * auto-load.c (auto_load_safe_path_vec): Make static.
4377 * csky-tdep.c (csky_stub_unwind): Make static.
4378 * gdbarch.c (gdbarch_data_registry): Make static.
4379 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
4380 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
4381 * i386-tdep.c (i386_frame_setup_skip_insns,
4382 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
4384 * infrun.c (observer_mode): Make static.
4385 * linux-nat.c (sigchld_action): Make static.
4386 * linux-thread-db.c (thread_db_list): Make static.
4387 * maint-test-options.c (maintenance_test_options_list):
4388 * mep-tdep.c (mep_csr_registers): Make static.
4389 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
4390 (stats): Make static.
4391 * nat/linux-osdata.c (struct osdata_type): Make static.
4392 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
4393 * progspace.c (last_program_space_num): Make static.
4394 * python/py-param.c (struct parm_constant): Remove struct type
4396 (parm_constants): Make static.
4397 * python/py-record-btrace.c (btpy_list_methods): Make static.
4398 * python/py-record.c (recpy_gap_type): Make static.
4399 * record.c (record_goto_cmdlist): Make static.
4400 * regcache.c (regcache_descr_handle): Make static.
4401 * registry.h (DEFINE_REGISTRY): Make definition static.
4402 * symmisc.c (std_in, std_out, std_err): Make static.
4403 * top.c (previous_saved_command_line): Make static.
4404 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
4406 * unittests/command-def-selftests.c (nr_duplicates,
4407 nr_invalid_prefixcmd, lists): Make static.
4408 * unittests/observable-selftests.c (test_notification): Make
4410 * unittests/optional/assignment/1.cc (counter): Make static.
4411 * unittests/optional/assignment/2.cc (counter): Make static.
4412 * unittests/optional/assignment/3.cc (counter): Make static.
4413 * unittests/optional/assignment/4.cc (counter): Make static.
4414 * unittests/optional/assignment/5.cc (counter): Make static.
4415 * unittests/optional/assignment/6.cc (counter): Make static.
4417 2021-01-20 Joel Sherrill <joel@rtems.org>
4420 * remote.c (struct remote_thread_info) <resume_state>: Rename
4422 <get_resume_state>: ... this.
4423 (remote_target::resume): Adjust.
4424 (remote_target::commit_resume): Adjust.
4425 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
4427 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
4428 Tom Tromey <tom@tromey.com>
4430 * stap-probe.c (stap_parse_single_operand): Handle '!'
4432 (stap_parse_argument_conditionally): Likewise.
4433 Skip spaces after processing open-parenthesis sub-expression.
4434 (stap_parse_argument_1): Skip spaces after call to
4435 stap_parse_argument_conditionally.
4436 Handle case when right-side expression is a parenthesized
4438 Skip spaces after call to stap_parse_argument_1.
4440 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
4442 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4444 2021-01-19 Luis Machado <luis.machado@linaro.org>
4446 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
4447 memory and save data.
4448 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
4449 (trad_frame_set_unknown, trad_frame_set_value_bytes)
4450 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4451 (trad_frame_value_bytes_p): Remove.
4452 (trad_frame_reset_saved_regs): Adjust documentation.
4453 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
4454 constructor and reset the state of the registers.
4455 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4456 (trad_frame_value_bytes_p, trad_frame_set_value)
4457 (trad_frame_set_realreg, trad_frame_set_addr)
4458 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
4459 (trad_frame_set_reg_realreg): Update to call member function.
4460 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
4461 (trad_frame_get_prev_register): Likewise.
4463 * aarch64-tdep.c (aarch64_analyze_prologue)
4464 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
4465 (aarch64_prologue_prev_register): Update to use member functions.
4466 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
4467 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
4468 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
4469 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
4470 (arm_make_epilogue_frame_cache): Likewise.
4471 * avr-tdep.c (avr_frame_unwind_cache)
4472 (avr_frame_prev_register): Likewise.
4473 * cris-tdep.c (cris_scan_prologue): Likewise.
4474 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
4475 * frv-tdep.c (frv_analyze_prologue): Likewise.
4476 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
4477 * lm32-tdep.c (lm32_frame_cache): Likewise.
4478 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4479 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
4480 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
4481 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
4482 (reset_saved_regs): Adjust to set realreg.
4483 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
4484 call member functions.
4485 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
4486 * s390-tdep.c (s390_prologue_frame_unwind_cache)
4487 (s390_backchain_frame_unwind_cache): Likewise.
4488 * score-tdep.c (score7_analyze_prologue)
4489 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
4490 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
4491 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4492 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
4493 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4494 * tilegx-tdep.c (tilegx_analyze_prologue)
4495 (tilegx_frame_cache): Likewise.
4496 * v850-tdep.c (v850_frame_cache): Likewise.
4497 * vax-tdep.c (vax_frame_cache): Likewise.
4499 2021-01-19 Luis Machado <luis.machado@linaro.org>
4501 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
4503 (put_frame_register_bytes): Likewise.
4504 Adjust documentation.
4505 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
4506 (safe_frame_unwind_memory): Likewise.
4507 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
4508 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
4510 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
4511 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
4512 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
4513 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
4514 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
4515 * dwarf2/loc.c (rw_pieced_value): Likewise.
4516 * hppa-tdep.c (hppa_frame_cache): Likewise.
4517 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
4518 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
4519 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4520 (i386_linux_rt_sigtramp_start): Likewise.
4521 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
4522 * i386-tdep.c (i386_register_to_value): Likewise.
4523 * i387-tdep.c (i387_register_to_value): Likewise.
4524 * ia64-tdep.c (ia64_register_to_value): Likewise.
4525 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
4526 (m32r_linux_rt_sigtramp_start): Likewise.
4527 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
4528 * m68k-tdep.c (m68k_register_to_value): Likewise.
4529 * mips-tdep.c (mips_register_to_value)
4530 (mips_value_to_register): Likewise.
4531 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
4532 (ppcfbsd_sigtramp_frame_cache): Likewise.
4533 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
4534 (ppcobsd_sigtramp_frame_cache): Likewise.
4535 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
4536 (rs6000_register_to_value): Likewise.
4537 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4538 * tramp-frame.c (tramp_frame_start): Likewise.
4539 * valops.c (value_assign): Likewise.
4541 2021-01-19 Luis Machado <luis.machado@linaro.org>
4543 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
4545 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
4546 instead of buffer and size.
4547 (trad_frame_set_reg_value_bytes): Likewise.
4548 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
4549 (trad_frame_set_value_bytes): Likewise.
4551 2021-01-18 Mike Frysinger <vapier@gentoo.org>
4553 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
4555 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
4557 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
4558 (riscv_fbsd_gregset): Use riscv_supply_regset.
4559 (riscv_fbsd_fpregset): Likewise.
4560 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
4561 (riscv_linux_fregset): Likewise.
4562 * riscv-tdep.c (riscv_supply_regset): Define new function.
4563 * riscv-tdep.h (riscv_supply_regset): Declare new function.
4565 2021-01-18 Tom de Vries <tdevries@suse.de>
4568 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
4570 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
4573 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4575 * remote.c (class remote_target) <remote_hostio_send_command,
4576 remote_hostio_parse_result>: Constify parameter.
4577 (remote_hostio_parse_result): Likewise.
4578 (remote_target::remote_hostio_send_command): Adjust.
4579 (remote_target::remote_hostio_pread_vFile): Adjust.
4580 (remote_target::fileio_readlink): Adjust.
4581 (remote_target::fileio_fstat): Adjust.
4583 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4585 * remote.c (remote_target::start_remote): Move wait_status to
4588 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4590 * remote.c (class remote_target):
4591 <add_current_inferior_and_thread>: Constify parameter.
4592 (stop_reply_extract_thread): Likewise.
4593 (remote_target::get_current_thread): Likewise.
4594 (remote_target::add_current_inferior_and_thread): Likewise.
4596 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4598 * remote.c (class remote_target)
4599 <remote_unpack_thread_info_response,
4600 parse_threadlist_response>: Constify parameter and/or return
4601 value and or local variable.
4602 (stub_unpack_int): Likewise.
4603 (unpack_nibble): Likewise.
4604 (unpack_byte): Likewise.
4605 (unpack_int): Likewise.
4606 (unpack_string): Likewise.
4607 (unpack_threadid): Likewise.
4608 (remote_target::remote_unpack_thread_info_response): Likewise.
4609 (remote_target::parse_threadlist_response): Likewise.
4611 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
4613 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
4615 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
4617 * MAINTAINERS (Write After Approval): Add myself.
4619 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4621 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
4622 because is_trivially_default_constructible was first implemented with
4625 2021-01-14 Tom de Vries <tdevries@suse.de>
4627 PR breakpoints/27151
4628 * objfiles.h (in_plt_section): Handle .plt.sec.
4630 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4634 (remote_target::select_thread_for_ambiguous_stop_reply): New
4636 (remote_target::process_stop_reply): Call
4637 select_thread_for_ambiguous_stop_reply.
4639 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
4641 * record-btrace.c (class record_btrace_target): Remove.
4642 (record_btrace_target::commit_resume): Remove.
4643 * record-full.c (class record_full_target): Remove.
4644 (record_full_target::commit_resume): Remove.
4646 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
4648 * remote.c (enum class resume_state): New.
4649 (struct resumed_pending_vcont_info): New.
4650 (struct remote_thread_info) <resume_state, set_not_resumed,
4651 set_resumed_pending_vcont, resumed_pending_vcont_info,
4652 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
4654 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
4655 (remote_target::remote_add_thread): Adjust.
4656 (remote_target::process_initial_stop_replies): Adjust.
4657 (remote_target::resume): Adjust.
4658 (remote_target::commit_resume): Rely on state in
4659 remote_thread_info and not on tp->executing.
4660 (remote_target::process_stop_reply): Adjust.
4662 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4664 * arc-tdep.h (arc_debug_printf): New.
4665 * arc-tdep.c: Use arc_debug_printf.
4666 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
4667 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
4668 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
4670 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4672 * arc-tdep.h (arc_debug): Change type to bool.
4673 * arc-tdep.c (arc_debug): Change type to bool.
4674 (arc_analyze_prologue): Adjust.
4675 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
4676 * arc-linux-nat.c (ps_get_thread_area): Adjust.
4678 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4680 * auto-load.c (auto_load_objfile_script_1): Use bool.
4681 (execute_script_contents): Use bool.
4683 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4685 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
4687 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
4689 * extension-priv.h (struct extension_language_script_ops)
4690 <auto_load_enabled>: Return bool.
4691 * extension.h (ext_lang_auto_load_enabled): Return bool, move
4693 * extension.c (ext_lang_auto_load_enabled): Return bool, move
4695 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
4697 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
4698 move comment to header.
4699 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
4701 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
4702 move comment to header.
4704 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4706 * auto-load.h (file_is_auto_load_safe): Change return type to
4707 bool, move comment here.
4708 * auto-load.c (file_is_auto_load_safe): Change return type and
4709 advice_printed to bool. Move comment to header.
4711 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4713 * jit.c (jit_debug_printf): New, use throughout file.
4715 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4717 * infrun.c (normal_stop): Fix indentation.
4719 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4721 * top.h (readnow_symbol_files, readnever_symbol_files): Move
4723 * symfile.h: ... here.
4724 * symfile.c: Update doc.
4726 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4728 * target.h (baud_rate, serial_parity): Move declarations...
4729 * serial.h: ... here.
4730 * main.c: Include serial.h.
4731 * serial.c (baud_rate, serial_parity): Update doc.
4733 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4735 * top.c (pre_init_ui_hook): Remove.
4737 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4739 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
4740 (aarch64_vnv_type): Add "bf" type in h field of v registers.
4741 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
4742 * features/aarch64-fpu.xml: Add bfloat16 type.
4744 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4746 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
4748 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4750 * f-exp.y (dot_ops): Rename to...
4751 (fortran_operators): ...this. Add a header comment. Add symbol
4753 (yylex): Update to use fortran_operators not dot_ops. Remove
4754 special handling for '**', this is now included in
4757 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4759 * arch/aarch64-insn.h (aarch64_debug_printf): New.
4760 * arch/aarch64-insn.c: Use aarch64_debug_printf.
4761 * aarch64-tdep.c: Use aarch64_debug_printf.
4763 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4765 * solib-aix.c (solib_aix_debug_printf): New, use throughout
4768 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4770 * jit.c (jit_debug): Change type to bool.
4771 (_initialize_jit): Adjust.
4773 2021-01-09 Tom Tromey <tom@tromey.com>
4776 * compile/compile.c (compile_to_object): Avoid crash when
4777 osabi_triplet_regexp returns NULL.
4779 2021-01-09 Tom Tromey <tom@tromey.com>
4781 * tracepoint.h (class collection_list) <append_exp>: Take a
4783 * tracepoint.c (collection_list::append_exp): Take a std::string.
4784 (encode_actions_1): Update.
4786 2021-01-08 Tom Tromey <tromey@adacore.com>
4788 * parse.c (parse_expression): Add void_context_p parameter. Use
4789 parse_exp_in_context.
4790 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
4792 (print_command, call_command): Update.
4793 * expression.h (parse_expression): Add void_context_p parameter.
4795 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4797 * value.c (set_value_component_location): Adjust the VALUE_LVAL
4798 for internalvar components that have a dynamic location.
4800 2021-01-08 Tom de Vries <tdevries@suse.de>
4803 * breakpoint.c (create_exception_master_breakpoint_probe)
4804 (create_exception_master_breakpoint_hook): Factor out
4806 (create_exception_master_breakpoint): ... here. Only try to install
4807 the master exception breakpoint in objfile.debug using the
4808 _Unwind_DebugHook method, if the install using probes in objfile
4811 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4813 * f-lang.c (fortran_value_subarray): Call value_from_component.
4815 2021-01-07 Mike Frysinger <vapier@gentoo.org>
4817 * remote-sim.c: Include memory-map.h.
4818 (gdbsim_target): Define memory_map override.
4819 (gdbsim_target::memory_map): Define.
4821 2021-01-07 Tom Tromey <tromey@adacore.com>
4823 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
4825 2021-01-07 Tom Tromey <tromey@adacore.com>
4827 * ada-lang.c (add_component_interval): Start loop using vector's
4830 2021-01-06 Tom Tromey <tromey@adacore.com>
4832 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
4834 * valarith.c (fixed_point_binop): Handle multiplication
4835 and division specially.
4836 * valops.c (value_to_gdb_mpq): New function.
4837 (value_cast_to_fixed_point): Use it.
4839 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
4841 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4842 Call wnoutrefresh instead of tui_win_info::refresh_window.
4844 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
4846 * tui/tui-source.c (tui_source_window::show_line_number):
4847 Redraw second space after line number.
4849 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
4852 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4853 Fix source pad size in prefresh.
4854 (tui_source_window_base::show_source_content): Grow source pad
4857 2021-01-04 Mike Frysinger <vapier@gentoo.org>
4859 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
4860 (bfin_frame_align): Use align_down.
4862 2021-01-04 Tom de Vries <tdevries@suse.de>
4864 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
4865 terminators that do not terminate anything.
4867 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
4869 * debug.c (debug_print_depth): New.
4870 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
4871 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
4872 * infrun.c (start_step_over): Use
4873 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4874 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
4875 INFRUN_SCOPED_DEBUG_START_END.
4876 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4878 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
4880 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
4882 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
4884 * utils.c (vfprintf_unfiltered): Print timestamp only when
4885 previous debug output ended with a newline.
4887 2021-01-04 Luis Machado <luis.machado@linaro.org>
4889 Update all users of trad_frame_saved_reg to use the new member
4892 Remote all struct keywords from declarations of trad_frame_saved_reg
4893 types, except on forward declarations.
4895 * aarch64-tdep.c: Update.
4896 * alpha-mdebug-tdep.c: Update.
4897 * alpha-tdep.c: Update.
4898 * arc-tdep.c: Update.
4899 * arm-tdep.c: Update.
4900 * avr-tdep.c: Update.
4901 * cris-tdep.c: Update.
4902 * csky-tdep.c: Update.
4903 * frv-tdep.c: Update.
4904 * hppa-linux-tdep.c: Update.
4905 * hppa-tdep.c: Update.
4906 * hppa-tdep.h: Update.
4907 * lm32-tdep.c: Update.
4908 * m32r-linux-tdep.c: Update.
4909 * m32r-tdep.c: Update.
4910 * m68hc11-tdep.c: Update.
4911 * mips-tdep.c: Update.
4912 * moxie-tdep.c: Update.
4913 * riscv-tdep.c: Update.
4914 * rs6000-tdep.c: Update.
4915 * s390-linux-tdep.c: Update.
4916 * s390-tdep.c: Update.
4917 * score-tdep.c: Update.
4918 * sparc-netbsd-tdep.c: Update.
4919 * sparc-sol2-tdep.c: Update.
4920 * sparc64-fbsd-tdep.c: Update.
4921 * sparc64-netbsd-tdep.c: Update.
4922 * sparc64-obsd-tdep.c: Update.
4923 * sparc64-sol2-tdep.c: Update.
4924 * tilegx-tdep.c: Update.
4925 * v850-tdep.c: Update.
4926 * vax-tdep.c: Update.
4928 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4929 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4931 * trad-frame.c: Update.
4932 Remove TF_REG_* enum.
4933 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4934 a trivially-constructible struct.
4935 (trad_frame_reset_saved_regs): Adjust to use member function.
4936 (trad_frame_value_p): Likewise.
4937 (trad_frame_addr_p): Likewise.
4938 (trad_frame_realreg_p): Likewise.
4939 (trad_frame_value_bytes_p): Likewise.
4940 (trad_frame_set_value): Likewise.
4941 (trad_frame_set_realreg): Likewise.
4942 (trad_frame_set_addr): Likewise.
4943 (trad_frame_set_unknown): Likewise.
4944 (trad_frame_set_value_bytes): Likewise.
4945 (trad_frame_get_prev_register): Likewise.
4946 * trad-frame.h: Update.
4947 (trad_frame_saved_reg_kind): New enum.
4948 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4949 <m_kind, m_reg>: New member fields.
4950 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4951 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4952 <is_addr, is_unknown, is_value_bytes>: New member functions.
4954 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
4956 * target-float.c: Fix typos.
4958 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
4960 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4962 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4964 * gdbarch.sh: Update copyright year range.
4966 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4968 Update copyright year range in copyright header of all GDB files.
4970 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4972 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4973 to the list of directories to update.
4975 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4977 * top.c (print_gdb_version): Update copyright year.
4979 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4981 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
4983 For older changes see ChangeLog-2020.
4989 version-control: never