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