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