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