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