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