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