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