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