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