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