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