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