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