]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Rearrange psymtab_storage construction
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2021-03-20 Tom Tromey <tom@tromey.com>
2
3 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
4 (reread_symbols): Move reset_psymtabs call later.
5 * objfiles.c (objfile::objfile): Don't initialize
6 partial_symtabs.
7
8 2021-03-20 Tom Tromey <tom@tromey.com>
9
10 * dwarf2/read.c (dwarf2_build_psymtabs): Call
11 set_partial_symtabs.
12 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
13 * psymtab.h (make_psymbol_functions): Add partial_symtabs
14 parameter.
15 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
16 parameter.
17 (psymbol_functions::find_pc_sect_compunit_symtab)
18 (psymbol_functions::print_stats, psymbol_functions::dump)
19 (psymbol_functions::has_symbols): Update.
20 (make_psymbol_functions, dump_psymtab_addrmap): Add
21 partial_symtabs parameter.
22 (maintenance_print_psymbols): Update.
23 (psymbol_functions::expand_symtabs_matching): Update.
24 * psympriv.h (struct psymbol_functions): Add constructor.
25 <m_partial_symtabs>: New member.
26 <set_partial_symtabs>: New method.
27
28 2021-03-20 Tom Tromey <tom@tromey.com>
29
30 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
31 parameter.
32 (process_psymtab_comp_unit_reader)
33 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
34 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
35 Reference psymtabs via per_bfd.
36
37 2021-03-20 Tom Tromey <tom@tromey.com>
38
39 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
40 Remove.
41 (add_address_entry): Remove objfile parameter.
42 (add_address_entry_worker): Update.
43 (write_address_map): Replace objfile parameter with per_bfd.
44 (write_gdbindex, write_psymtabs_to_index): Update.
45
46 2021-03-20 Tom Tromey <tom@tromey.com>
47
48 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
49 print_bcache parameter.
50 * symfile-debug.c (objfile::print_stats): Add print_bcache
51 parameter.
52 * quick-symbol.h (struct quick_symbol_functions)
53 <print_stats>: Add print_bcache parameter.
54 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
55 code to psymtab.c.
56 (print_objfile_statistics): Move psymtab code to psymtab.c.
57 * psymtab.c (count_psyms): Move from symmisc.c.
58 (psymbol_functions::print_stats): Print partial symbol and bcache
59 statistics. Add print_bcache parameter.
60 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
61 (struct objfile) <print_stats>: Add print_bcache parameter.
62 * maint.c (maintenance_print_statistics): Update.
63
64 2021-03-20 Tom Tromey <tom@tromey.com>
65
66 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
67 member.
68 * dwarf2/read.c (create_addrmap_from_index)
69 (create_addrmap_from_aranges): Set per_bfd addrmap.
70 (dwarf2_read_gdb_index): Don't set partial_symtabs.
71 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
72 per_bfd addrmap.
73 (dwarf2_read_debug_names): Don't set partial_symtabs.
74 (dwarf2_initialize_objfile): Likewise.
75
76 2021-03-20 Tom Tromey <tom@tromey.com>
77
78 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
79 earlier.
80
81 2021-03-20 Tom Tromey <tom@tromey.com>
82
83 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
84 (~psymtab_discarder, keep): Update.
85 <m_objfile>: Remove.
86 <m_partial_symtabs>: New member.
87 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
88
89 2021-03-20 Tom Tromey <tom@tromey.com>
90
91 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
92 (xcoff_end_psymtab): Update.
93 (scan_xcoff_symtab): Add partial_symtabs parameter.
94 (xcoff_initial_scan): Update.
95 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
96 * mdebugread.c (mdebug_build_psymtabs): Update.
97 (parse_partial_symbols): Add partial_symtabs parameter.
98 * dbxread.c (dbx_symfile_read): Update.
99 (read_dbx_symtab): Add partial_symtabs parameter.
100 (read_dbx_symtab): Update.
101 (dbx_end_psymtab): Add partial_symtabs parameter.
102
103 2021-03-20 Tom Tromey <tom@tromey.com>
104
105 * quick-symbol.h (struct quick_symbol_functions)
106 <relocated>: New method.
107 * psymtab.h (struct psymbol_functions) <relocated>: New
108 method.
109 <fill_psymbol_map>: Declare method.
110 <m_psymbol_map>: New member.
111 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
112 (psymbol_functions::find_compunit_symtab_by_address): Update.
113 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
114 (struct objfile) <psymbol_map>: Remove.
115 * objfiles.c (objfile_relocate1): Update.
116
117 2021-03-20 Tom Tromey <tom@tromey.com>
118
119 * psympriv.h (struct psymbol_functions): New.
120 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
121 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
122 (objfile::lookup_global_symbol_language): Update.
123 * quick-symbol.h (struct quick_symbol_functions): Convert function
124 pointers to methods. Add virtual destructor.
125 (quick_symbol_functions_up): New typedef.
126 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
127 (dwarf2_debug_names_functions): Don't declare.
128 (make_psymbol_functions): Declare.
129 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
130 (psymbol_functions::find_pc_sect_compunit_symtab)
131 (psymbol_functions::lookup_symbol)
132 (psymbol_functions::lookup_global_symbol_language)
133 (psymbol_functions::find_last_source_symtab)
134 (psymbol_functions::forget_cached_source_info)
135 (psymbol_functions::print_stats, psymbol_functions::dump)
136 (psymbol_functions::expand_symtabs_for_function)
137 (psymbol_functions::expand_all_symtabs)
138 (psymbol_functions::expand_symtabs_with_fullname)
139 (psymbol_functions::map_symbol_filenames)
140 (psymbol_functions::map_matching_symbols)
141 (psymbol_functions::expand_symtabs_matching)
142 (psymbol_functions::has_symbols)
143 (psymbol_functions::find_compunit_symtab_by_address): Rename.
144 (psym_functions): Remove.
145 (make_psymbol_functions): New function.
146 * objfiles.h (struct objfile) <qf>: Change type.
147 * elfread.c (elf_symfile_read): Update.
148 * dwarf2/read.c (struct dwarf2_base_index_functions)
149 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
150 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
151 (dwarf2_base_index_functions::find_last_source_symtab)
152 (dwarf2_base_index_functions::forget_cached_source_info)
153 (dwarf2_base_index_functions::map_symtabs_matching_filename)
154 (dwarf2_gdb_index::lookup_symbol)
155 (dwarf2_base_index_functions::print_stats)
156 (dwarf2_gdb_index::dump)
157 (dwarf2_gdb_index::expand_symtabs_for_function)
158 (dwarf2_base_index_functions::expand_all_symtabs)
159 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
160 Rename.
161 (dwarf2_gdb_index::map_matching_symbols): New method.
162 (dwarf2_gdb_index::expand_symtabs_matching): New method.
163 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
164 (dwarf2_base_index_functions::map_symbol_filenames)
165 (dwarf2_base_index_functions::has_symbols): Rename.
166 (dwarf2_gdb_index_functions): Remove.
167 (dwarf2_debug_names_index::lookup_symbol)
168 (dwarf2_debug_names_index::dump)
169 (dwarf2_debug_names_index::expand_symtabs_for_function)
170 (dwarf2_debug_names_index::map_matching_symbols)
171 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
172 (dwarf2_debug_names_functions): Remove.
173 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
174 Declare.
175
176 2021-03-20 Tom Tromey <tom@tromey.com>
177
178 * psymtab.c (require_partial_symbols): Check that 'sf' is not
179 null.
180 * xcoffread.c (xcoff_sym_fns): Update.
181 * symfile.h (struct sym_fns) <qf>: Remove.
182 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
183 * symfile-debug.c (objfile::has_partial_symbols)
184 (objfile::find_last_source_symtab)
185 (objfile::forget_cached_source_info)
186 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
187 (objfile::print_stats, objfile::dump)
188 (objfile::expand_symtabs_for_function)
189 (objfile::expand_all_symtabs)
190 (objfile::expand_symtabs_with_fullname)
191 (objfile::map_matching_symbols)
192 (objfile::expand_symtabs_matching)
193 (objfile::find_pc_sect_compunit_symtab)
194 (objfile::map_symbol_filenames)
195 (objfile::find_compunit_symtab_by_address)
196 (objfile::lookup_global_symbol_language, debug_sym_fns)
197 (install_symfile_debug_logging): Update.
198 * objfiles.h (struct objfile) <qf>: New member.
199 * mipsread.c (ecoff_sym_fns): Update.
200 * machoread.c (macho_sym_fns): Update.
201 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
202 Don't declare.
203 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
204 * dbxread.c (aout_sym_fns): Update.
205 * coffread.c (coff_sym_fns): Update.
206
207 2021-03-20 Tom Tromey <tom@tromey.com>
208
209 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
210 (expand_symtabs_file_matcher_ftype)
211 (expand_symtabs_symbol_matcher_ftype)
212 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
213 Move to quick-symbol.h.
214 * quick-symbol.h: New file.
215
216 2021-03-20 Tom Tromey <tom@tromey.com>
217
218 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
219 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
220 (basic_lookup_transparent_type_quick)
221 (find_pc_sect_compunit_symtab, find_symbol_at_address)
222 (find_line_symtab, global_symbol_searcher::expand_symtabs):
223 Update.
224 * symmisc.c (print_objfile_statistics, dump_objfile)
225 (maintenance_expand_symtabs): Update.
226 * symfile.c (symbol_file_add_with_addrs)
227 (expand_symtabs_matching, map_symbol_filenames): Update.
228 * symfile-debug.c (objfile::has_partial_symbols)
229 (objfile::find_last_source_symtab)
230 (objfile::forget_cached_source_info)
231 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
232 (objfile::print_stats, objfile::dump)
233 (objfile::expand_symtabs_for_function)
234 (objfile::expand_all_symtabs)
235 (objfile::expand_symtabs_with_fullname)
236 (objfile::map_matching_symbols)
237 (objfile::expand_symtabs_matching)
238 (objfile::find_pc_sect_compunit_symtab)
239 (objfile::map_symbol_filenames)
240 (objfile::find_compunit_symtab_by_address)
241 (objfile::lookup_global_symbol_language): New methods.
242 (debug_sym_quick_functions): Remove.
243 (debug_sym_fns, install_symfile_debug_logging): Update.
244 * source.c (forget_cached_source_info_for_objfile)
245 (select_source_symtab): Update.
246 * objfiles.h (struct objfile): Add methods corresponding to
247 quick_symbol_functions.
248 * objfiles.c (objfile::has_partial_symbols): Move to
249 symfile-debug.c.
250 * linespec.c (iterate_over_all_matching_symtabs): Update.
251 * cp-support.c (add_symbol_overload_list_qualified): Update.
252 * ada-lang.c (add_nonlocal_symbols): Update.
253
254 2021-03-20 Tom Tromey <tom@tromey.com>
255
256 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
257 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
258 bool.
259 * symfile-debug.c (debug_qf_has_symbols): Return bool.
260 * psymtab.c (psym_has_symbols): Return bool.
261 * objfiles.c (objfile::has_partial_symbols): Return bool.
262 * dwarf2/read.c (dw2_has_symbols): Return bool.
263
264 2021-03-20 Tom Tromey <tom@tromey.com>
265
266 * symfile.c (read_symbols): Update.
267 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
268 (objfile_has_partial_symbols): Don't declare.
269 * objfiles.c (objfile::has_partial_symbols): Rename from
270 objfile_has_partial_symbols.
271 (objfile_has_symbols, have_partial_symbols): Update.
272 * elfread.c (elf_symfile_read): Update.
273 * dwarf2/read.c (dwarf2_has_info): Update.
274 * coffread.c (coff_symfile_read): Update.
275
276 2021-03-20 Tom Tromey <tom@tromey.com>
277
278 * coffread.c: Include dwarf2/public.h.
279 * dwarf2/frame.c: Include dwarf2/public.h.
280 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
281 * dwarf2/public.h: New file.
282 * dwarf2/read.c: Include dwarf2/public.h.
283 * elfread.c: Include dwarf2/public.h.
284 * machoread.c: Include dwarf2/public.h.
285 * symfile.h (dwarf2_has_info, enum dw_index_kind)
286 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
287 (dwarf2_build_frame_info): Move to dwarf2/public.h.
288 * xcoffread.c: Include dwarf2/public.h.
289
290 2021-03-20 Tom Tromey <tom@tromey.com>
291
292 * symfile.h (enum dwarf2_section_enum)
293 (dwarf2_get_section_info): Move to dwarf2/read.h.
294 * dwarf2/read.h (enum dwarf2_section_enum)
295 (dwarf2_get_section_info): Move from symfile.h.
296
297 2021-03-19 Pedro Alves <pedro@palves.net>
298
299 * thread.c (any_thread_of_inferior): Check if there's a selected
300 thread before calling inferior_thread().
301
302 2021-03-18 Tom Tromey <tromey@adacore.com>
303
304 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
305 get_DW_UT_name.
306 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
307 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
308
309 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
310
311 * python/py-param.c (get_set_value): Update header comment.
312
313 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
314
315 * infrun.c (check_multi_target_resumption): Remove argument to
316 all_non_exited_inferiors.
317
318 2021-03-16 Christian Biesinger <cbiesinger@google.com>
319
320 * windows-nat.c (windows_init_thread_list): Add message to
321 debug log.
322
323 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
324
325 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
326 well as PyLong_Check for Python 2.
327
328 2021-03-15 Tom Tromey <tromey@adacore.com>
329
330 PR build/27579:
331 * rust-exp.y (maker_map): Use gdb::hash_enum.
332 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
333
334 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
335
336 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
337 end of debug print.
338
339 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
342 parameter, adjust caller.
343
344 2021-03-15 Tom Tromey <tromey@adacore.com>
345
346 * ada-exp.y (simple_exp): Always push a result for unary '+'.
347
348 2021-03-15 Tom Tromey <tromey@adacore.com>
349
350 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
351 ada_ensure_varsize_limit.
352
353 2021-03-15 Tom Tromey <tromey@adacore.com>
354
355 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
356 fixed-point.
357 * ada-exp.y (maybe_overload): New function.
358 (ada_wrap_overload): New function.
359 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
360 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
361 (or_else_exp, xor_exp, primary): Update.
362
363 2021-03-15 Tom Tromey <tromey@adacore.com>
364
365 PR ada/27545:
366 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
367 call for tagged type.
368
369 2021-03-15 Tom Tromey <tromey@adacore.com>
370
371 * ada-exp.y (exp1): Handle resolution of the right hand side of an
372 assignment.
373
374 2021-03-15 Tom Tromey <tromey@adacore.com>
375
376 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
377 container.
378 (ada_assign_operation::evaluate): Update.
379 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
380 Change return type.
381
382 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
383
384 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
385
386 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
387
388 * python/python.c (gdbpy_source_objfile_script): Use
389 make_scoped_restore to restore gdbpy_current_objfile.
390 (gdbpy_execute_objfile_script): Likewise.
391
392 2021-03-14 Tom Tromey <tom@tromey.com>
393
394 * dwarf2/read.c (read_attribute_value): Use cu_header
395 consistently.
396
397 2021-03-14 Tom Tromey <tom@tromey.com>
398
399 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
400 (peek_die_abbrev): Use reader.abfd.
401
402 2021-03-14 Tom Tromey <tom@tromey.com>
403
404 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
405 m_header_read_in.
406
407 2021-03-13 Tom Tromey <tom@tromey.com>
408
409 * dwarf2/read.c (struct partial_die_info): Update.
410 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
411 (load_partial_dies, partial_die_info::partial_die_info): Update.
412 * dwarf2/abbrev.h (lookup_abbrev): Constify.
413
414 2021-03-13 Tom Tromey <tom@tromey.com>
415
416 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
417
418 2021-03-12 Christian Biesinger <cbiesinger@google.com>
419
420 PR threads/27239
421 * cp-support.c: Use scoped_segv_handler_restore.
422 * event-top.c (thread_local_segv_handler): Made static.
423 (scoped_segv_handler_restore::scoped_segv_handler_restore):
424 New function.
425 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
426 function.
427 * event-top.h (class scoped_segv_handler_restore): New class.
428 (thread_local_segv_handler): Removed.
429
430 2021-03-10 Tom Tromey <tromey@adacore.com>
431
432 * parser-defs.h (parser_state): Change completion to bool.
433 <parse_completion>: Likewise.
434 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
435 (ada_resolve_variable, ada_resolve_function): Update.
436 * ada-lang.c (ada_find_operator_symbol): Change
437 parse_completion to bool.
438 (ada_resolve_funcall, ada_resolve_variable)
439 (ada_resolve_function): Likewise.
440
441 2021-03-09 Tom Tromey <tromey@adacore.com>
442
443 * eval.c (operation::evaluate_funcall): Use function formal
444 parameter types when evaluating.
445
446 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
447
448 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
449 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
450 and owner to m_owner.
451
452 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
453
454 * f-exp.h (eval_op_f_loc): Declare.
455 (expr::fortran_loc_operation): New typedef.
456 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
457 UNOP_INTRINSIC.
458 (f77_keywords): Add LOC keyword.
459 * f-lang.c (eval_op_f_loc): New function.
460 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
461
462 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
463
464 * f-exp.h (eval_op_f_array_shape): Declare.
465 (fortran_array_shape_operation): New type.
466 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
467 UNOP_INTRINSIC.
468 (f77_keywords): Add "shape" keyword.
469 * f-lang.c (fortran_array_shape): New function.
470 (eval_op_f_array_shape): New function.
471 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
472
473 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
474
475 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
476 of this function.
477 (expr::fortran_array_size_1arg): New type.
478 (expr::fortran_array_size_2arg): Likewise.
479 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
480 UNOP_OR_BINOP_INTRINSIC.
481 (f77_keywords): Add "size" keyword.
482 * f-lang.c (fortran_array_size): New function.
483 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
484 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
485
486 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
487
488 * f-exp.h (eval_op_f_rank): Declare.
489 (expr::fortran_rank_operation): New typedef.
490 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
491 UNOP_INTRINSIC.
492 (f77_keywords): Add "rank" keyword.
493 * f-lang.c (eval_op_f_rank): New function.
494 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
495
496 2021-03-08 Tom Tromey <tom@tromey.com>
497
498 * printcmd.c (set_command): Remove null check.
499 * value.c (init_if_undefined_command): Remove null check.
500
501 2021-03-08 Tom Tromey <tom@tromey.com>
502
503 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
504 Update.
505 * p-exp.y (variable): Update.
506 * go-exp.y (variable): Update.
507 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
508 Remove overload for objfile.
509 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
510 parameter.
511 (check_objfile): Likewise.
512 (dump_for_expression): Likewise. Remove overload for objfile.
513 (class var_msym_value_operation): Use bound_minimal_symbol.
514 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
515 parameter.
516 (var_msym_value_operation::evaluate_for_address)
517 (var_msym_value_operation::evaluate_for_sizeof)
518 (var_msym_value_operation::evaluate_for_cast): Update.
519 * d-exp.y (PrimaryExpression): Update.
520 * c-exp.y (variable): Update.
521 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
522 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
523 Update.
524 * ada-exp.y (write_var_or_type): Update.
525
526 2021-03-08 Tom Tromey <tom@tromey.com>
527
528 * parser-defs.h (exp_uses_objfile): Return bool.
529 * parse.c (exp_uses_objfile): Return bool.
530
531 2021-03-08 Tom Tromey <tom@tromey.com>
532
533 * value.h (eval_skip_value): Don't declare.
534 * opencl-lang.c (eval_opencl_assign): Update.
535 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
536 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
537 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
538 * expression.h (enum noside) <EVAL_SKIP>: Remove.
539 * expop.h (typeof_operation::evaluate)
540 (decltype_operation::evaluate, unop_addr_operation::evaluate)
541 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
542 (cxx_cast_operation::evaluate): Update.
543 * eval.c (eval_skip_value): Remove.
544 (eval_op_scope, eval_op_var_entry_value)
545 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
546 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
547 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
548 (eval_op_binary, eval_op_subscript, eval_op_equal)
549 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
550 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
551 (eval_op_complement, eval_op_lognot, eval_op_ind)
552 (eval_op_memval, eval_op_preinc, eval_op_predec)
553 (eval_op_postinc, eval_op_postdec, eval_op_type)
554 (eval_binop_assign_modify, eval_op_objc_msgcall)
555 (eval_multi_subscript, logical_and_operation::evaluate)
556 (logical_or_operation::evaluate, array_operation::evaluate)
557 (operation::evaluate_for_cast)
558 (var_msym_value_operation::evaluate_for_cast)
559 (var_value_operation::evaluate_for_cast): Update.
560 * c-lang.c (c_string_operation::evaluate): Update.
561 * c-exp.h (objc_nsstring_operation::evaluate)
562 (objc_selector_operation::evaluate): Update.
563 * ada-lang.c (ada_assign_operation::evaluate)
564 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
565 (ada_atr_size): Update.
566
567 2021-03-08 Tom Tromey <tom@tromey.com>
568
569 * eval.c: Merge "namespace" scopes.
570
571 2021-03-08 Tom Tromey <tom@tromey.com>
572
573 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
574 <release>: Inline.
575 * parse.c (expr_builder::expr_builder, expr_builder::release):
576 Remove.
577
578 2021-03-08 Tom Tromey <tom@tromey.com>
579
580 * parse.c (expression::expression, expression::~expression):
581 Remove.
582 * expression.h (struct expression): Inline constructor. Remove
583 destructor.
584
585 2021-03-08 Tom Tromey <tom@tromey.com>
586
587 * std-operator.def (BINOP_END): Remove.
588 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
589 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
590 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
591 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
592 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
593 BINOP_END.
594
595 2021-03-08 Tom Tromey <tom@tromey.com>
596
597 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
598
599 2021-03-08 Tom Tromey <tom@tromey.com>
600
601 * std-operator.def (OP_EXTENDED0): Remove.
602
603 2021-03-08 Tom Tromey <tom@tromey.com>
604
605 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
606 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
607 Remove.
608
609 2021-03-08 Tom Tromey <tom@tromey.com>
610
611 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
612 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
613
614 2021-03-08 Tom Tromey <tom@tromey.com>
615
616 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
617 * ada-lang.c (ada_binop_minmax): Update.
618 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
619 Use BINOP_MIN and BINOP_MAX.
620
621 2021-03-08 Tom Tromey <tom@tromey.com>
622
623 * value.h (evaluate_subexp_with_coercion): Don't declare.
624 * parse.c (exp_descriptor_standard): Remove.
625 (expr_builder::expr_builder, expr_builder::release): Update.
626 (expression::expression): Remove size_t parameter.
627 (expression::~expression): Simplify.
628 (expression::resize): Remove.
629 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
630 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
631 (write_exp_elt_longcst, write_exp_elt_floatcst)
632 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
633 (write_exp_string_vector, write_exp_bitstring): Remove.
634 * p-lang.h (class pascal_language) <opcode_print_table,
635 op_print_tab>: Remove.
636 * p-lang.c (pascal_language::op_print_tab): Remove.
637 * opencl-lang.c (class opencl_language) <opcode_print_table>:
638 Remove.
639 * objc-lang.c (objc_op_print_tab): Remove.
640 (class objc_language) <opcode_print_table>: Remove.
641 * m2-lang.h (class m2_language) <opcode_print_table,
642 op_print_tab>: Remove.
643 * m2-lang.c (m2_language::op_print_tab): Remove.
644 * language.h (struct language_defn) <post_parser, expression_ops,
645 opcode_print_table>: Remove.
646 * language.c (language_defn::expression_ops)
647 (auto_or_unknown_language::opcode_print_table): Remove.
648 * go-lang.h (class go_language) <opcode_print_table,
649 op_print_tab>: Remove.
650 * go-lang.c (go_language::op_print_tab): Remove.
651 * f-lang.h (class f_language) <opcode_print_table>: Remove
652 <op_print_tab>: Remove.
653 * f-lang.c (f_language::op_print_tab): Remove.
654 * expression.h (union exp_element): Remove.
655 (struct expression): Remove size_t parameter from constructor.
656 <resize>: Remove.
657 <first_opcode>: Update.
658 <nelts, elts>: Remove.
659 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
660 (evaluate_subexp_standard, print_expression, op_string)
661 (dump_raw_expression): Don't declare.
662 * expprint.c (print_expression, print_subexp)
663 (print_subexp_funcall, print_subexp_standard, op_string)
664 (dump_raw_expression, dump_subexp, dump_subexp_body)
665 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
666 (dump_prefix_expression): Update.
667 * eval.c (evaluate_subexp): Remove.
668 (evaluate_expression, evaluate_type): Update.
669 (evaluate_subexpression_type): Remove.
670 (fetch_subexp_value): Remove "pc" parameter. Update.
671 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
672 (evaluate_subexp_standard, evaluate_subexp_for_address)
673 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
674 (evaluate_subexp_for_cast): Remove.
675 (parse_and_eval_type): Update.
676 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
677 * d-lang.c (d_op_print_tab): Remove.
678 (class d_language) <opcode_print_table>: Remove.
679 * c-lang.h (c_op_print_tab): Don't declare.
680 * c-lang.c (c_op_print_tab): Remove.
681 (class c_language, class cplus_language, class asm_language, class
682 minimal_language) <opcode_print_table>: Remove.
683 * breakpoint.c (update_watchpoint, watchpoint_check)
684 (watchpoint_exp_is_const, watch_command_1): Update.
685 * ax-gdb.h (union exp_element): Don't declare.
686 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
687 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
688 (gen_expr_binop_rest): Remove.
689 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
690 * ada-lang.c (ada_op_print_tab): Remove.
691 (class ada_language) <post_parser, opcode_print_table>: Remove.
692
693 2021-03-08 Tom Tromey <tom@tromey.com>
694
695 * go-lang.c (go_language::expression_ops): Don't declare.
696 * go-lang.h (class go_language) <expression_ops>: Remove.
697 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
698 Remove.
699 (class opencl_language) <expression_ops>: Remove.
700 * d-lang.c (class d_language) <expression_ops>: Remove.
701 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
702 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
703 (class c_language, class cplus_language, class asm_language)
704 (class minimal_language) <expression_ops>: Remove.
705
706 2021-03-08 Tom Tromey <tom@tromey.com>
707
708 * ada-lang.c (resolve_subexp, replace_operator_with_call)
709 (evaluate_subexp_type, assign_aggregate)
710 (aggregate_assign_positional, aggregate_assign_from_choices)
711 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
712 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
713 (ada_operator_check, ada_forward_operator_length)
714 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
715 Remove.
716 (post_parser): Update.
717 (class ada_language) <expresssion_ops>: Remove.
718
719 2021-03-08 Tom Tromey <tom@tromey.com>
720
721 * m2-lang.h (class m2_language) <expresssion_ops,
722 exp_descriptor_modula2>: Remove.
723 * m2-lang.c (evaluate_subexp_modula2)
724 (m2_language::exp_descriptor_modula2): Remove.
725
726 2021-03-08 Tom Tromey <tom@tromey.com>
727
728 * f-lang.h (class f_language) <expresssion_ops>: Remove.
729 <exp_descriptor_tab>: Remove.
730 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
731 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
732 (print_subexp_f, dump_subexp_body_f, operator_check_f)
733 (f_language::exp_descriptor_tab, fortran_prepare_argument):
734 Remove.
735
736 2021-03-08 Tom Tromey <tom@tromey.com>
737
738 * rust-lang.h (class rust_language) <expression_ops,
739 exp_descriptor_tab>: Remove.
740 * rust-lang.c (rust_evaluate_funcall): Remove.
741 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
742 EVAL_SKIP.
743 (rust_evaluate_subexp): Remove.
744 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
745 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
746 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
747
748 2021-03-08 Tom Tromey <tom@tromey.com>
749
750 * ada-exp.y: Create operations.
751 (empty_stoken): Remove.
752 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
753 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
754 (components): New global.
755 (push_component, choice_component, pop_component, pop_components):
756 New functions.
757 (associations): New global
758 (push_association, pop_association, pop_associations): New
759 functions.
760 (ada_parse): Update.
761 (write_var_from_sym, write_int): Create operations.
762 (write_exp_op_with_string): Remove.
763 (write_object_renaming, write_selectors, write_ambiguous_var)
764 (write_var_or_type, write_name_assoc): Create operations.
765 * ada-lang.h (ada_index_type): Declare.
766 * ada-lang.c (ada_index_type): No longer static.
767
768 2021-03-08 Tom Tromey <tom@tromey.com>
769
770 * f-exp.y: Create operations.
771 (f_language::parser): Update.
772
773 2021-03-08 Tom Tromey <tom@tromey.com>
774
775 * m2-exp.y: Create operations.
776 (m2_language::parser): Update.
777
778 2021-03-08 Tom Tromey <tom@tromey.com>
779
780 * p-exp.y: Create operations.
781 (pascal_language::parser): Update.
782
783 2021-03-08 Tom Tromey <tom@tromey.com>
784
785 * d-exp.y: Create operations.
786 (d_parse): Update.
787
788 2021-03-08 Tom Tromey <tom@tromey.com>
789
790 * go-exp.y: Create operations.
791 (go_language::parser): Update.
792
793 2021-03-08 Tom Tromey <tom@tromey.com>
794
795 * objc-lang.c (end_msglist): Create operations.
796 * c-exp.y: Change parser to create operations.
797 (write_destructor_name): Remove.
798 (c_parse): Update.
799
800 2021-03-08 Tom Tromey <tom@tromey.com>
801
802 * rust-exp.y: Create operations.
803 (rust_parser::convert_params_to_expression): Change return type.
804 (binop_maker_ftype): New typedef.
805 (maker_map): New global.
806 (rust_parser::convert_ast_to_expression): Change return type.
807 (rust_language::parser): Update.
808 (_initialize_rust_exp): Initialize maker_map.
809
810 2021-03-08 Tom Tromey <tom@tromey.com>
811
812 * stap-probe.c (binop_maker_ftype): New typedef.
813 (stap_maker_map): New global.
814 (stap_make_binop): New function.
815 (stap_parse_register_operand): Return operation_up.
816 (stap_parse_single_operand, stap_parse_argument_conditionally)
817 (stap_parse_argument_1): Likewise.
818 (stap_parse_argument): Create operations.
819 (stap_probe::parse_arguments): Update.
820 (_initialize_stap_probe): Initialize stap_maker_map.
821 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
822 type.
823 * i386-tdep.h (i386_stap_parse_special_token): Change return
824 type.
825 * i386-tdep.c (i386_stap_parse_special_token_triplet)
826 (i386_stap_parse_special_token_three_arg_disp)
827 (i386_stap_parse_special_token): Change return type.
828 * gdbarch.sh (stap_parse_special_token): Change return type.
829 * gdbarch.c: Rebuild.
830 * gdbarch.h: Rebuild.
831 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
832 type.
833 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
834 return type.
835
836 2021-03-08 Tom Tromey <tom@tromey.com>
837
838 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
839 * gdbarch.h: Rebuild.
840 * gdbarch.c: Rebuild.
841 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
842 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
843 return type.
844 (amd64_dtrace_parse_probe_argument): Update.
845
846 2021-03-08 Tom Tromey <tom@tromey.com>
847
848 * parser-defs.h (struct parser_state) <push, push_new,
849 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
850 wrap2>: New methods.
851 <m_operations>: New member.
852 * parse.c (parser_state::push_c_string)
853 (parser_state::push_symbol, parser_state::push_dollar): New
854 methods.
855
856 2021-03-08 Tom Tromey <tom@tromey.com>
857
858 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
859 New member.
860 (struct parser_state) <mark_struct_expression>: New method.
861 * parse.c (parser_state::mark_struct_expression): Update assert.
862 (parser_state::mark_struct_expression): New method.
863 (parser_state::mark_completion_tag): Update assert.
864 (parse_expression_for_completion): Handle expout_last_op.
865
866 2021-03-08 Tom Tromey <tom@tromey.com>
867
868 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
869 now in superclass.
870 * value.h (fetch_subexp_value): Add "op" parameter.
871 * value.c (init_if_undefined_command): Update.
872 * tracepoint.c (validate_actionline, encode_actions_1): Update.
873 * stap-probe.c (stap_probe::compile_to_ax): Update.
874 * printcmd.c (set_command): Update.
875 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
876 Update.
877 * parser-defs.h (struct expr_builder) <set_operation>: New
878 method.
879 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
880 * expression.h (struct expression) <first_opcode>: Update.
881 <op>: New member.
882 * expprint.c (dump_raw_expression, dump_prefix_expression):
883 Update.
884 * expop.h (class var_value_operation) <get_symbol>: New method.
885 (class register_operation) <get_name>: New method.
886 (class equal_operation): No longer a typedef, now a subclass.
887 (class unop_memval_operation) <get_type>: New method.
888 (class assign_operation) <get_lhs>: New method.
889 (class unop_cast_operation) <get_type>: New method.
890 * eval.c (evaluate_expression, evaluate_type)
891 (evaluate_subexpression_type): Update.
892 (fetch_subexp_value): Add "op" parameter.
893 (parse_and_eval_type): Update.
894 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
895 * breakpoint.c (update_watchpoint, watchpoint_check)
896 (watchpoint_exp_is_const, watch_command_1): Update.
897 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
898 Update.
899
900 2021-03-08 Tom Tromey <tom@tromey.com>
901
902 * ada-lang.c (ada_value_binop): Do not use op_string.
903
904 2021-03-08 Tom Tromey <tom@tromey.com>
905
906 * expprint.c (dump_for_expression): New overload.
907 * expop.h (check_objfile, dump_for_expression): Declare new
908 overloads.
909 * ada-lang.c (check_objfile): New overload.
910 (assign_component, ada_aggregate_component::uses_objfile)
911 (ada_aggregate_component::dump, ada_aggregate_component::assign)
912 (ada_aggregate_component::assign_aggregate)
913 (ada_positional_component::uses_objfile)
914 (ada_positional_component::dump, ada_positional_component::assign)
915 (ada_discrete_range_association::uses_objfile)
916 (ada_discrete_range_association::dump)
917 (ada_discrete_range_association::assign)
918 (ada_name_association::uses_objfile, ada_name_association::dump)
919 (ada_name_association::assign)
920 (ada_choices_component::uses_objfile, ada_choices_component::dump)
921 (ada_choices_component::assign)
922 (ada_others_component::uses_objfile, ada_others_component::dump)
923 (ada_others_component::assign, ada_assign_operation::evaluate):
924 New methods.
925 * ada-exp.h (ada_string_operation) <get_name>: New method.
926 (class ada_assign_operation): New.
927 (class ada_component): New.
928 (ada_component_up): New typedef.
929 (class ada_aggregate_operation, class ada_aggregate_component)
930 (class ada_positional_component, class ada_others_component)
931 (class ada_association): New.
932 (ada_association_up): New typedef.
933 (class ada_choices_component)
934 (class ada_discrete_range_association)
935 (class ada_name_association): New.
936
937 2021-03-08 Tom Tromey <tom@tromey.com>
938
939 * ada-lang.c (ada_var_value_operation::resolve)
940 (ada_funcall_operation::resolve)
941 (ada_ternop_slice_operation::resolve): New methods.
942 * ada-exp.h (struct ada_resolvable): New.
943 (class ada_var_value_operation): Derive from ada_resolvable.
944 <get_block, resolve>: New methods.
945 (class ada_funcall_operation): Derive from ada_resolvable.
946 <resolve>: New method.
947 (class ada_ternop_slice_operation): Derive from ada_resolvable.
948 <resolve>: New method.
949
950 2021-03-08 Tom Tromey <tom@tromey.com>
951
952 * ada-lang.c (ada_funcall_operation::evaluate): New method.
953 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
954 method.
955 (class ada_funcall_operation): New.
956
957 2021-03-08 Tom Tromey <tom@tromey.com>
958
959 * ada-lang.c (ada_structop_operation::evaluate): New method.
960 * ada-exp.h (class ada_structop_operation): New.
961
962 2021-03-08 Tom Tromey <tom@tromey.com>
963
964 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
965 * ada-exp.h (class ada_unop_ind_operation): New.
966
967 2021-03-08 Tom Tromey <tom@tromey.com>
968
969 * ada-lang.c (ada_binop_exp): No longer static.
970 * ada-exp.h (ada_binop_exp_operation): New typedef.
971
972 2021-03-08 Tom Tromey <tom@tromey.com>
973
974 * ada-lang.c (ada_val_atr): No longer static.
975 (ada_atr_val_operation::evaluate): New method.
976 * ada-exp.h (class ada_atr_val_operation): New.
977
978 2021-03-08 Tom Tromey <tom@tromey.com>
979
980 * ada-lang.c (ada_pos_atr): No longer static.
981 * ada-exp.h (ada_pos_operation): New typedef.
982
983 2021-03-08 Tom Tromey <tom@tromey.com>
984
985 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
986 parameters.
987 (ada_evaluate_subexp): Use it.
988
989 2021-03-08 Tom Tromey <tom@tromey.com>
990
991 * ada-lang.c (ada_binop_minmax): No longer static.
992 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
993 New typedefs.
994
995 2021-03-08 Tom Tromey <tom@tromey.com>
996
997 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
998 New method.
999 * ada-exp.h (class ada_var_msym_value_operation): New.
1000
1001 2021-03-08 Tom Tromey <tom@tromey.com>
1002
1003 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1004 (ada_var_value_operation::evaluate): New methods.
1005 * ada-exp.h (class ada_var_value_operation): New.
1006
1007 2021-03-08 Tom Tromey <tom@tromey.com>
1008
1009 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1010 * ada-exp.h (class ada_unop_atr_operation): New.
1011
1012 2021-03-08 Tom Tromey <tom@tromey.com>
1013
1014 * ada-lang.c (ada_binop_in_bounds): No longer static.
1015 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1016
1017 2021-03-08 Tom Tromey <tom@tromey.com>
1018
1019 * ada-lang.c (ada_ternop_slice): No longer static.
1020 * ada-exp.h (class ada_ternop_slice_operation): New.
1021
1022 2021-03-08 Tom Tromey <tom@tromey.com>
1023
1024 * ada-exp.h (ada_bitwise_operation): New template class.
1025 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1026 (ada_bitwise_xor_operation): New typedefs.
1027
1028 2021-03-08 Tom Tromey <tom@tromey.com>
1029
1030 * ada-lang.c (ada_equal_binop): No longer static.
1031 * ada-exp.h (class ada_binop_equal_operation): New.
1032
1033 2021-03-08 Tom Tromey <tom@tromey.com>
1034
1035 * ada-lang.c (ada_mult_binop): No longer static.
1036 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1037 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1038
1039 2021-03-08 Tom Tromey <tom@tromey.com>
1040
1041 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1042 * ada-exp.h (class ada_binop_addsub_operation): New.
1043
1044 2021-03-08 Tom Tromey <tom@tromey.com>
1045
1046 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1047 (ada_resolve_variable): Declare.
1048 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1049 (ada_resolve_variable): New functions.
1050 (resolve_subexp): Update.
1051
1052 2021-03-08 Tom Tromey <tom@tromey.com>
1053
1054 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1055 method.
1056 * c-exp.h (class opencl_ternop_cond_operation): New.
1057
1058 2021-03-08 Tom Tromey <tom@tromey.com>
1059
1060 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1061 method.
1062 * c-exp.h (class opencl_logical_binop_operation): New.
1063
1064 2021-03-08 Tom Tromey <tom@tromey.com>
1065
1066 * opencl-lang.c (opencl_structop_operation::evaluate): New
1067 method.
1068 * c-exp.h (class opencl_structop_operation): New.
1069
1070 2021-03-08 Tom Tromey <tom@tromey.com>
1071
1072 * opencl-lang.c (opencl_logical_not): No longer static. Change
1073 parameters.
1074 (evaluate_subexp_opencl): Update.
1075 * c-exp.h (opencl_notequal_operation): New typedef.
1076
1077 2021-03-08 Tom Tromey <tom@tromey.com>
1078
1079 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
1080 static. Change parameters.
1081 (eval_opencl_assign): No longer static. Add "op" parameter.
1082 (evaluate_subexp_opencl): Update.
1083 * c-exp.h (opencl_binop_operation): New template class.
1084 (opencl_assign_operation, opencl_equal_operation)
1085 (opencl_notequal_operation, opencl_less_operation)
1086 (opencl_gtr_operation, opencl_geq_operation)
1087 (opencl_leq_operation): New typedefs.
1088
1089 2021-03-08 Tom Tromey <tom@tromey.com>
1090
1091 * opencl-lang.c (opencl_value_cast): No longer static.
1092 * c-exp.h (opencl_cast_type_operation): New typedef.
1093
1094 2021-03-08 Tom Tromey <tom@tromey.com>
1095
1096 * f-exp.h (eval_op_f_allocated): Declare.
1097 (fortran_allocated_operation): New typedef.
1098 * f-lang.c (eval_op_f_allocated): No longer static.
1099
1100 2021-03-08 Tom Tromey <tom@tromey.com>
1101
1102 * f-lang.c (eval_op_f_associated): New functions.
1103 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1104 typedefs.
1105
1106 2021-03-08 Tom Tromey <tom@tromey.com>
1107
1108 * f-lang.c (fortran_bound_1arg::evaluate)
1109 (fortran_bound_2arg::evaluate): New methods.
1110 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
1111 New.
1112
1113 2021-03-08 Tom Tromey <tom@tromey.com>
1114
1115 * expop.h (class unop_addr_operation) <get_expression>: New
1116 method.
1117 * f-lang.c (fortran_undetermined::value_subarray)
1118 (fortran_undetermined::evaluate): New methods.
1119 (fortran_prepare_argument): New overload.
1120 * f-exp.h (class fortran_range_operation)
1121 (class fortran_undetermined): New classes.
1122
1123 2021-03-08 Tom Tromey <tom@tromey.com>
1124
1125 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1126 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1127 method.
1128
1129 2021-03-08 Tom Tromey <tom@tromey.com>
1130
1131 * expression.h (class operation) <evaluate_funcall>: New methods.
1132 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1133 (class var_value_operation) <evaluate_funcall>: New method.
1134 (class structop_base_operation) <evaluate_funcall>: New method.
1135 (class var_msym_value_operation) <evaluate_funcall>: New method.
1136 (class structop_member_base): New class.
1137 (class structop_member_operation): Derive from
1138 structop_member_base.
1139 (class structop_mptr_operation): Derive from
1140 structop_member_base.
1141 (class funcall_operation): New class.
1142 * eval.c (operation::evaluate_funcall)
1143 (var_value_operation::evaluate_funcall)
1144 (scope_operation::evaluate_funcall)
1145 (structop_member_base::evaluate_funcall)
1146 (structop_base_operation::evaluate_funcall): New methods.
1147
1148 2021-03-08 Tom Tromey <tom@tromey.com>
1149
1150 * expop.h (class array_operation): New.
1151 * eval.c (array_operation::evaluate_struct_tuple)
1152 (array_operation::evaluate): New methods.
1153
1154 2021-03-08 Tom Tromey <tom@tromey.com>
1155
1156 * expop.h (class adl_func_operation): New.
1157 * eval.c (adl_func_operation::evaluate): New method.
1158
1159 2021-03-08 Tom Tromey <tom@tromey.com>
1160
1161 * ada-lang.c (ada_unop_in_range): No longer static.
1162 * ada-exp.h (class ada_unop_range_operation): New.
1163
1164 2021-03-08 Tom Tromey <tom@tromey.com>
1165
1166 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
1167 No longer static.
1168 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
1169 (ada_atr_size_operation, ada_abs_operation): New typedefs.
1170
1171 2021-03-08 Tom Tromey <tom@tromey.com>
1172
1173 * expop.h (class logical_and_operation)
1174 (class logical_or_operation): New.
1175 * eval.c (logical_and_operation::evaluate)
1176 (logical_or_operation::evaluate): New methods.
1177 * ax-gdb.c (logical_and_operation::do_generate_ax)
1178 (logical_or_operation::do_generate_ax): New methods.
1179
1180 2021-03-08 Tom Tromey <tom@tromey.com>
1181
1182 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
1183 static.
1184 * m2-exp.h: New file.
1185
1186 2021-03-08 Tom Tromey <tom@tromey.com>
1187
1188 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
1189 * rust-exp.h (class rust_aggregate_operation): New.
1190
1191 2021-03-08 Tom Tromey <tom@tromey.com>
1192
1193 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
1194 No longer static.
1195 * rust-exp.h (class rust_struct_anon): New.
1196 (class rust_structop): New.
1197
1198 2021-03-08 Tom Tromey <tom@tromey.com>
1199
1200 * rust-lang.c (rust_range): No longer static.
1201 * rust-exp.h (class rust_range_operation): New.
1202
1203 2021-03-08 Tom Tromey <tom@tromey.com>
1204
1205 * rust-lang.c (rust_subscript): No longer static.
1206 * rust-exp.h (class rust_subscript_operation): New.
1207
1208 2021-03-08 Tom Tromey <tom@tromey.com>
1209
1210 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1211 parameter.
1212 (rust_evaluate_subexp): Update.
1213 * rust-exp.h (class rust_unop_ind_operation): New.
1214
1215 2021-03-08 Tom Tromey <tom@tromey.com>
1216
1217 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1218 longer static. Add "opcode" parameter.
1219 (rust_evaluate_subexp): Update.
1220 * rust-exp.h: New file.
1221
1222 2021-03-08 Tom Tromey <tom@tromey.com>
1223
1224 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1225 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1226 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1227 (evaluate_subexp_f): Update.
1228 * f-exp.h: New file.
1229
1230 2021-03-08 Tom Tromey <tom@tromey.com>
1231
1232 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1233 * ada-exp.h (class ada_ternop_range_operation): New.
1234
1235 2021-03-08 Tom Tromey <tom@tromey.com>
1236
1237 * ada-lang.c (ada_qual_operation::evaluate): New method.
1238 * ada-exp.h (class ada_qual_operation): New.
1239
1240 2021-03-08 Tom Tromey <tom@tromey.com>
1241
1242 * ada-lang.c (ada_string_operation::evaluate): New method.
1243 * ada-exp.h (class ada_string_operation): New.
1244
1245 2021-03-08 Tom Tromey <tom@tromey.com>
1246
1247 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
1248 * ada-exp.h: New file.
1249
1250 2021-03-08 Tom Tromey <tom@tromey.com>
1251
1252 * expop.h (class multi_subscript_operation): New.
1253 * eval.c (multi_subscript_operation::evaluate): New method.
1254
1255 2021-03-08 Tom Tromey <tom@tromey.com>
1256
1257 * eval.c (objc_msgcall_operation::evaluate): New method.
1258 * c-exp.h (class objc_msgcall_operation): New.
1259
1260 2021-03-08 Tom Tromey <tom@tromey.com>
1261
1262 * expop.h (class var_value_operation): New.
1263 * eval.c (var_value_operation::evaluate)
1264 (var_value_operation::evaluate_for_address)
1265 (var_value_operation::evaluate_with_coercion)
1266 (var_value_operation::evaluate_for_sizeof)
1267 (var_value_operation::evaluate_for_cast): New methods.
1268 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
1269
1270 2021-03-08 Tom Tromey <tom@tromey.com>
1271
1272 * expop.h (cxx_cast_ftype): New typedef.
1273 (cxx_cast_operation): New template.
1274 (dynamic_cast_operation, reinterpret_cast_operation): New
1275 typedefs.
1276
1277 2021-03-08 Tom Tromey <tom@tromey.com>
1278
1279 * expop.h (class unop_cast_type_operation): New.
1280 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
1281 method.
1282
1283 2021-03-08 Tom Tromey <tom@tromey.com>
1284
1285 * expop.h (class unop_cast_operation): New.
1286 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
1287
1288 2021-03-08 Tom Tromey <tom@tromey.com>
1289
1290 * expop.h (class assign_modify_operation): New.
1291 * eval.c (eval_binop_assign_modify): No longer static.
1292 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1293
1294 2021-03-08 Tom Tromey <tom@tromey.com>
1295
1296 * expop.h (class assign_operation): New.
1297 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1298
1299 2021-03-08 Tom Tromey <tom@tromey.com>
1300
1301 * expop.h (class type_instance_operation): New.
1302 * eval.c (type_instance_operation::evaluate): New method.
1303
1304 2021-03-08 Tom Tromey <tom@tromey.com>
1305
1306 * expop.h (class op_this_operation): New.
1307 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1308
1309 2021-03-08 Tom Tromey <tom@tromey.com>
1310
1311 * expop.h (class unop_memval_operation)
1312 (class unop_memval_type_operation): New.
1313 * eval.c (eval_op_memval): No longer static.
1314 (unop_memval_operation::evaluate_for_address)
1315 (unop_memval_type_operation::evaluate_for_address)
1316 (unop_memval_operation::evaluate_for_sizeof)
1317 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1318 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1319 (unop_memval_type_operation::do_generate_ax): New methods.
1320
1321 2021-03-08 Tom Tromey <tom@tromey.com>
1322
1323 * expop.h (class unop_alignof_operation): New.
1324 * eval.c (eval_op_alignof): No longer static.
1325
1326 2021-03-08 Tom Tromey <tom@tromey.com>
1327
1328 * expop.h (class unop_sizeof_operation): New.
1329 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1330
1331 2021-03-08 Tom Tromey <tom@tromey.com>
1332
1333 * expop.h (class unop_addr_operation): New.
1334 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1335
1336 2021-03-08 Tom Tromey <tom@tromey.com>
1337
1338 * expop.h (class typeid_operation): New.
1339
1340 2021-03-08 Tom Tromey <tom@tromey.com>
1341
1342 * expop.h (class decltype_operation): New.
1343
1344 2021-03-08 Tom Tromey <tom@tromey.com>
1345
1346 * expop.h (class typeof_operation): New.
1347
1348 2021-03-08 Tom Tromey <tom@tromey.com>
1349
1350 * expop.h (class type_operation): New.
1351 * eval.c (eval_op_type): No longer static.
1352
1353 2021-03-08 Tom Tromey <tom@tromey.com>
1354
1355 * expop.h (class unop_ind_base_operation)
1356 (class unop_ind_operation): New.
1357 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1358 (unop_ind_base_operation::evaluate_for_address)
1359 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1360 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1361
1362 2021-03-08 Tom Tromey <tom@tromey.com>
1363
1364 * expop.h (unop_incr_operation): New template.
1365 (preinc_operation, predec_operation, postinc_operation)
1366 (postdec_operation): New typedefs.
1367 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1368 (eval_op_postdec): No longer static.
1369
1370 2021-03-08 Tom Tromey <tom@tromey.com>
1371
1372 * expop.h (unary_ftype): New typedef.
1373 (unop_operation, usual_ax_binop_operation): New templates.
1374 (unary_plus_operation, unary_neg_operation)
1375 (unary_complement_operation, unary_logical_not_operation): New
1376 typedefs.
1377 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1378 (eval_op_lognot): No longer static.
1379 * ax-gdb.c (gen_expr_unop): New function.
1380
1381 2021-03-08 Tom Tromey <tom@tromey.com>
1382
1383 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1384
1385 2021-03-08 Tom Tromey <tom@tromey.com>
1386
1387 * expop.h (class repeat_operation): New.
1388 * eval.c (eval_op_repeat): No longer static. Remove "op"
1389 parameter.
1390 (evaluate_subexp_standard): Update.
1391 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1392
1393 2021-03-08 Tom Tromey <tom@tromey.com>
1394
1395 * expop.h (class comparison_operation): New.
1396 (equal_operation, notequal_operation, less_operation)
1397 (gtr_operation, geq_operation, leq_operation): New typedefs.
1398 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1399 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1400
1401 2021-03-08 Tom Tromey <tom@tromey.com>
1402
1403 * expop.h (class subscript_operation): New.
1404 * eval.c (eval_op_subscript): No longer static.
1405
1406 2021-03-08 Tom Tromey <tom@tromey.com>
1407
1408 * expop.h (class binop_operation, class usual_ax_binop_operation):
1409 New.
1410 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1411 (div_operation, rem_operation, lsh_operation, rsh_operation)
1412 (bitwise_and_operation, bitwise_ior_operation)
1413 (bitwise_xor_operation): New typedefs.
1414 * eval.c (eval_op_binary): No longer static.
1415
1416 2021-03-08 Tom Tromey <tom@tromey.com>
1417
1418 * expop.h (class sub_operation): New.
1419 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1420 (evaluate_subexp_standard): Update.
1421
1422 2021-03-08 Tom Tromey <tom@tromey.com>
1423
1424 * expop.h (class add_operation): New.
1425 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1426 (evaluate_subexp_standard): Update.
1427
1428 2021-03-08 Tom Tromey <tom@tromey.com>
1429
1430 * expop.h (class concat_operation): New.
1431 * eval.c (eval_op_concat): No longer static. Remove "op"
1432 parameter.
1433 (evaluate_subexp_standard): Update.
1434
1435 2021-03-08 Tom Tromey <tom@tromey.com>
1436
1437 * expop.h (class structop_member_operation)
1438 (class structop_mptr_operation): New.
1439 * eval.c (eval_op_member): No longer static.
1440
1441 2021-03-08 Tom Tromey <tom@tromey.com>
1442
1443 * expop.h (class structop_ptr_operation): New.
1444 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1445 parameter.
1446
1447 2021-03-08 Tom Tromey <tom@tromey.com>
1448
1449 * expop.h (class structop_base_operation)
1450 (class structop_operation): New.
1451 * eval.c (eval_op_structop_struct): No longer static.
1452
1453 2021-03-08 Tom Tromey <tom@tromey.com>
1454
1455 * expop.h (class complex_operation): New.
1456
1457 2021-03-08 Tom Tromey <tom@tromey.com>
1458
1459 * eval.c (eval_op_objc_selector): No longer static.
1460 * c-exp.h (class objc_selector_operation): New.
1461
1462 2021-03-08 Tom Tromey <tom@tromey.com>
1463
1464 * eval.c: Include c-exp.h.
1465 * c-exp.h (class objc_nsstring_operation): New.
1466
1467 2021-03-08 Tom Tromey <tom@tromey.com>
1468
1469 * c-lang.c (c_string_operation::evaluate): New method.
1470 * c-exp.h: New file.
1471
1472 2021-03-08 Tom Tromey <tom@tromey.com>
1473
1474 * expop.h (class ternop_cond_operation): New.
1475 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1476
1477 2021-03-08 Tom Tromey <tom@tromey.com>
1478
1479 * expop.h (class ternop_slice_operation): New.
1480 * eval.c (eval_op_ternop): No longer static.
1481
1482 2021-03-08 Tom Tromey <tom@tromey.com>
1483
1484 * expop.h (class string_operation): New.
1485 * eval.c (eval_op_string): No longer static.
1486
1487 2021-03-08 Tom Tromey <tom@tromey.com>
1488
1489 * expop.h (class internalvar_operation): New.
1490 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1491
1492 2021-03-08 Tom Tromey <tom@tromey.com>
1493
1494 * expop.h (class bool_operation): New.
1495
1496 2021-03-08 Tom Tromey <tom@tromey.com>
1497
1498 * expop.h (class register_operation): New.
1499 * eval.c (eval_op_register): No longer static.
1500 * ax-gdb.c (register_operation::do_generate_ax): New method.
1501
1502 2021-03-08 Tom Tromey <tom@tromey.com>
1503
1504 * expop.h (class last_operation): New.
1505
1506 2021-03-08 Tom Tromey <tom@tromey.com>
1507
1508 * expop.h (class func_static_var_operation): New.
1509 * eval.c (eval_op_func_static_var): No longer static.
1510
1511 2021-03-08 Tom Tromey <tom@tromey.com>
1512
1513 * expop.h (class var_entry_value_operation): New.
1514 * eval.c (eval_op_var_entry_value): No longer static.
1515
1516 2021-03-08 Tom Tromey <tom@tromey.com>
1517
1518 * expression.h (class operation) <set_outermost>: New method.
1519 * expop.h (class var_msym_value_operation): New.
1520 * eval.c (eval_op_var_msym_value): No longer static.
1521 (var_msym_value_operation::evaluate_for_address)
1522 (var_msym_value_operation::evaluate_for_sizeof)
1523 (var_msym_value_operation::evaluate_for_cast): New methods.
1524 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1525 method.
1526
1527 2021-03-08 Tom Tromey <tom@tromey.com>
1528
1529 * expop.h (class long_const_operation): New.
1530 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1531
1532 2021-03-08 Tom Tromey <tom@tromey.com>
1533
1534 * expop.h (class scope_operation): New.
1535 * eval.c (eval_op_scope): No longer static.
1536 (scope_operation::evaluate_for_address): New method.
1537 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1538
1539 2021-03-08 Tom Tromey <tom@tromey.com>
1540
1541 * expprint.c (float_const_operation::dump): New method.
1542 * expop.h (float_data): New typedef.
1543 (class float_const_operation): New.
1544
1545 2021-03-08 Tom Tromey <tom@tromey.com>
1546
1547 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1548 * ax-gdb.c (gen_expr_binop): New function.
1549 (gen_expr_structop): Likewise.
1550
1551 2021-03-08 Tom Tromey <tom@tromey.com>
1552
1553 * expprint.c (expr::dump_for_expression): New functions.
1554 * expop.h (dump_for_expression): New overloads.
1555 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1556 Update.
1557
1558 2021-03-08 Tom Tromey <tom@tromey.com>
1559
1560 * expression.h (expr::operation): New class.
1561 (expr::make_operation): New function.
1562 (expr::operation_up): New typedef.
1563 * expop.h: New file.
1564 * eval.c (operation::evaluate_for_cast)
1565 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1566 New methods.
1567 * ax-gdb.c (operation::generate_ax): New method.
1568
1569 2021-03-08 Tom Tromey <tom@tromey.com>
1570
1571 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1572 (gen_expr_binop_rest): New overload.
1573
1574 2021-03-08 Tom Tromey <tom@tromey.com>
1575
1576 * eval.c (eval_multi_subscript): New function.
1577 (evaluate_subexp_standard): Use it.
1578
1579 2021-03-08 Tom Tromey <tom@tromey.com>
1580
1581 * ada-lang.c (ada_binop_exp): New function.
1582 (ada_evaluate_subexp): Use it.
1583
1584 2021-03-08 Tom Tromey <tom@tromey.com>
1585
1586 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1587 parameters.
1588 (ada_evaluate_subexp): Use it.
1589
1590 2021-03-08 Tom Tromey <tom@tromey.com>
1591
1592 * ada-lang.c (ada_binop_minmax): New function.
1593 (ada_evaluate_subexp): Use it.
1594
1595 2021-03-08 Tom Tromey <tom@tromey.com>
1596
1597 * ada-lang.c (ada_unop_atr): New function.
1598 (ada_evaluate_subexp): Use it.
1599
1600 2021-03-08 Tom Tromey <tom@tromey.com>
1601
1602 * ada-lang.c (ada_binop_in_bounds): New function.
1603 (ada_evaluate_subexp): Use it.
1604
1605 2021-03-08 Tom Tromey <tom@tromey.com>
1606
1607 * ada-lang.c (ada_ternop_slice): New function.
1608 (ada_evaluate_subexp): Use it.
1609
1610 2021-03-08 Tom Tromey <tom@tromey.com>
1611
1612 * ada-lang.c (ada_equal_binop): New function.
1613 (ada_evaluate_subexp): Use it.
1614
1615 2021-03-08 Tom Tromey <tom@tromey.com>
1616
1617 * ada-lang.c (ada_mult_binop): New function.
1618 (ada_evaluate_subexp): Use it.
1619
1620 2021-03-08 Tom Tromey <tom@tromey.com>
1621
1622 * ada-lang.c (ada_abs): New function.
1623 (ada_evaluate_subexp): Use it.
1624
1625 2021-03-08 Tom Tromey <tom@tromey.com>
1626
1627 * ada-lang.c (ada_atr_size): New function.
1628 (ada_evaluate_subexp): Use it.
1629
1630 2021-03-08 Tom Tromey <tom@tromey.com>
1631
1632 * ada-lang.c (ada_atr_tag): New function.
1633 (ada_evaluate_subexp): Use it.
1634
1635 2021-03-08 Tom Tromey <tom@tromey.com>
1636
1637 * ada-lang.c (ada_unop_in_range): New function.
1638 (ada_evaluate_subexp): Use it.
1639
1640 2021-03-08 Tom Tromey <tom@tromey.com>
1641
1642 * ada-lang.c (ada_unop_neg): New function.
1643 (ada_evaluate_subexp): Use it.
1644
1645 2021-03-08 Tom Tromey <tom@tromey.com>
1646
1647 * ada-lang.c (eval_ternop_in_range): New function.
1648 (ada_evaluate_subexp): Use it.
1649
1650 2021-03-08 Tom Tromey <tom@tromey.com>
1651
1652 * opencl-lang.c (eval_opencl_assign): New function.
1653 (evaluate_subexp_opencl): Use it.
1654
1655 2021-03-08 Tom Tromey <tom@tromey.com>
1656
1657 * eval.c (eval_op_objc_msgcall): New function.
1658 (evaluate_subexp_standard): Use it.
1659
1660 2021-03-08 Tom Tromey <tom@tromey.com>
1661
1662 * eval.c (eval_binop_assign_modify): New function.
1663 (evaluate_subexp_standard): Use it.
1664
1665 2021-03-08 Tom Tromey <tom@tromey.com>
1666
1667 * m2-lang.c (eval_op_m2_subscript): New function.
1668 (evaluate_subexp_modula2): Use it.
1669
1670 2021-03-08 Tom Tromey <tom@tromey.com>
1671
1672 * m2-lang.c (eval_op_m2_high): New function.
1673 (evaluate_subexp_modula2): Use it.
1674
1675 2021-03-08 Tom Tromey <tom@tromey.com>
1676
1677 * eval.c (evaluate_subexp_for_address_base): New function.
1678 (evaluate_subexp_for_address): Use it.
1679 (evaluate_subexp_for_sizeof_base): New function.
1680 (evaluate_subexp_for_sizeof): Use it.
1681
1682 2021-03-08 Tom Tromey <tom@tromey.com>
1683
1684 * rust-lang.c (eval_op_rust_structop): New function.
1685 (rust_evaluate_subexp): Use it.
1686
1687 2021-03-08 Tom Tromey <tom@tromey.com>
1688
1689 * rust-lang.c (eval_op_rust_struct_anon): New function.
1690 (rust_evaluate_subexp): Use it.
1691
1692 2021-03-08 Tom Tromey <tom@tromey.com>
1693
1694 * rust-lang.c (eval_op_rust_array): New function.
1695 (rust_evaluate_subexp): Use it.
1696
1697 2021-03-08 Tom Tromey <tom@tromey.com>
1698
1699 * rust-lang.c (eval_op_rust_complement): New function.
1700 (rust_evaluate_subexp): Use it.
1701
1702 2021-03-08 Tom Tromey <tom@tromey.com>
1703
1704 * rust-lang.c (eval_op_rust_ind): New function.
1705 (rust_evaluate_subexp): Use it.
1706
1707 2021-03-08 Tom Tromey <tom@tromey.com>
1708
1709 * rust-lang.c (rust_subscript): Change parameters.
1710 (rust_evaluate_subexp): Update.
1711
1712 2021-03-08 Tom Tromey <tom@tromey.com>
1713
1714 * rust-lang.c (rust_range): Change parameters.
1715 (rust_evaluate_subexp): Update.
1716
1717 2021-03-08 Tom Tromey <tom@tromey.com>
1718
1719 * f-lang.c (eval_op_f_allocated): New function.
1720 (evaluate_subexp_f): Use it.
1721
1722 2021-03-08 Tom Tromey <tom@tromey.com>
1723
1724 * f-lang.c (fortran_require_array): New function.
1725 (evaluate_subexp_f): Use it.
1726
1727 2021-03-08 Tom Tromey <tom@tromey.com>
1728
1729 * f-lang.c (eval_op_f_kind): New function.
1730 (evaluate_subexp_f): Use it.
1731
1732 2021-03-08 Tom Tromey <tom@tromey.com>
1733
1734 * f-lang.c (eval_op_f_cmplx): New function.
1735 (evaluate_subexp_f): Use it.
1736
1737 2021-03-08 Tom Tromey <tom@tromey.com>
1738
1739 * f-lang.c (eval_op_f_modulo): New function.
1740 (evaluate_subexp_f): Use it.
1741
1742 2021-03-08 Tom Tromey <tom@tromey.com>
1743
1744 * f-lang.c (eval_op_f_floor): New function.
1745 (evaluate_subexp_f): Use it.
1746
1747 2021-03-08 Tom Tromey <tom@tromey.com>
1748
1749 * f-lang.c (eval_op_f_ceil): New function.
1750 (evaluate_subexp_f): Use it.
1751
1752 2021-03-08 Tom Tromey <tom@tromey.com>
1753
1754 * f-lang.c (eval_op_f_mod): New function.
1755 (evaluate_subexp_f): Use it.
1756
1757 2021-03-08 Tom Tromey <tom@tromey.com>
1758
1759 * f-lang.c (eval_op_f_abs): New function.
1760 (evaluate_subexp_f): Use it.
1761
1762 2021-03-08 Tom Tromey <tom@tromey.com>
1763
1764 * eval.c (eval_op_type): New function.
1765 (evaluate_subexp_standard): Use it.
1766
1767 2021-03-08 Tom Tromey <tom@tromey.com>
1768
1769 * eval.c (eval_op_postdec): New function.
1770 (evaluate_subexp_standard): Use it.
1771
1772 2021-03-08 Tom Tromey <tom@tromey.com>
1773
1774 * eval.c (eval_op_postinc): New function.
1775 (evaluate_subexp_standard): Use it.
1776
1777 2021-03-08 Tom Tromey <tom@tromey.com>
1778
1779 * eval.c (eval_op_predec): New file.
1780 (evaluate_subexp_standard): Use it.
1781
1782 2021-03-08 Tom Tromey <tom@tromey.com>
1783
1784 * eval.c (eval_op_preinc): New function.
1785 (evaluate_subexp_standard): Use it.
1786
1787 2021-03-08 Tom Tromey <tom@tromey.com>
1788
1789 * eval.c (eval_op_memval): New function.
1790 (evaluate_subexp_standard): Use it.
1791
1792 2021-03-08 Tom Tromey <tom@tromey.com>
1793
1794 * eval.c (eval_op_alignof): New function.
1795 (evaluate_subexp_standard): Use it.
1796
1797 2021-03-08 Tom Tromey <tom@tromey.com>
1798
1799 * eval.c (eval_op_ind): New function.
1800 (evaluate_subexp_standard): Use it.
1801
1802 2021-03-08 Tom Tromey <tom@tromey.com>
1803
1804 * eval.c (eval_op_lognot): New function.
1805 (evaluate_subexp_standard): Use it.
1806
1807 2021-03-08 Tom Tromey <tom@tromey.com>
1808
1809 * eval.c (eval_op_complement): New function.
1810 (evaluate_subexp_standard): Use it.
1811
1812 2021-03-08 Tom Tromey <tom@tromey.com>
1813
1814 * eval.c (eval_op_neg): New function.
1815 (evaluate_subexp_standard): Use it.
1816
1817 2021-03-08 Tom Tromey <tom@tromey.com>
1818
1819 * eval.c (eval_op_plus): New function.
1820 (evaluate_subexp_standard): Use it.
1821
1822 2021-03-08 Tom Tromey <tom@tromey.com>
1823
1824 * eval.c (eval_op_repeat): New function.
1825 (evaluate_subexp_standard): Use it.
1826
1827 2021-03-08 Tom Tromey <tom@tromey.com>
1828
1829 * eval.c (eval_op_leq): New function.
1830 (evaluate_subexp_standard): Use it.
1831
1832 2021-03-08 Tom Tromey <tom@tromey.com>
1833
1834 * eval.c (eval_op_geq): New function.
1835 (evaluate_subexp_standard): Use it.
1836
1837 2021-03-08 Tom Tromey <tom@tromey.com>
1838
1839 * eval.c (eval_op_gtr): New function.
1840 (evaluate_subexp_standard): Use it.
1841
1842 2021-03-08 Tom Tromey <tom@tromey.com>
1843
1844 * eval.c (eval_op_less): New function.
1845 (evaluate_subexp_standard): Use it.
1846
1847 2021-03-08 Tom Tromey <tom@tromey.com>
1848
1849 * eval.c (eval_op_notequal): New function.
1850 (evaluate_subexp_standard): Use it.
1851
1852 2021-03-08 Tom Tromey <tom@tromey.com>
1853
1854 * eval.c (eval_op_equal): New function.
1855 (evaluate_subexp_standard): Use it.
1856
1857 2021-03-08 Tom Tromey <tom@tromey.com>
1858
1859 * eval.c (eval_op_subscript): New function.
1860 (evaluate_subexp_standard): Use it.
1861
1862 2021-03-08 Tom Tromey <tom@tromey.com>
1863
1864 * eval.c (eval_op_binary): New function.
1865 (evaluate_subexp_standard): Use it.
1866
1867 2021-03-08 Tom Tromey <tom@tromey.com>
1868
1869 * eval.c (eval_op_sub): New function.
1870 (evaluate_subexp_standard): Use it.
1871
1872 2021-03-08 Tom Tromey <tom@tromey.com>
1873
1874 * eval.c (eval_op_add): New function.
1875 (evaluate_subexp_standard): Use it.
1876
1877 2021-03-08 Tom Tromey <tom@tromey.com>
1878
1879 * eval.c (eval_op_member): New function.
1880 (evaluate_subexp_standard): Use it.
1881
1882 2021-03-08 Tom Tromey <tom@tromey.com>
1883
1884 * eval.c (eval_op_structop_ptr): New function.
1885 (evaluate_subexp_standard): Use it.
1886
1887 2021-03-08 Tom Tromey <tom@tromey.com>
1888
1889 * eval.c (eval_op_structop_struct): New function.
1890 (evaluate_subexp_standard): Use it.
1891
1892 2021-03-08 Tom Tromey <tom@tromey.com>
1893
1894 * eval.c (eval_op_ternop): New function.
1895 (evaluate_subexp_standard): Use it.
1896
1897 2021-03-08 Tom Tromey <tom@tromey.com>
1898
1899 * eval.c (eval_op_concat): New function.
1900 (evaluate_subexp_standard): Use it.
1901
1902 2021-03-08 Tom Tromey <tom@tromey.com>
1903
1904 * eval.c (eval_op_objc_selector): New function.
1905 (evaluate_subexp_standard): Use it.
1906
1907 2021-03-08 Tom Tromey <tom@tromey.com>
1908
1909 * eval.c (eval_op_string): New function.
1910 (evaluate_subexp_standard): Use it.
1911
1912 2021-03-08 Tom Tromey <tom@tromey.com>
1913
1914 * eval.c (eval_op_register): New function.
1915 (evaluate_subexp_standard): Use it.
1916
1917 2021-03-08 Tom Tromey <tom@tromey.com>
1918
1919 * eval.c (eval_op_func_static_var): New function.
1920 (evaluate_subexp_standard): Use it.
1921
1922 2021-03-08 Tom Tromey <tom@tromey.com>
1923
1924 * eval.c (eval_op_var_msym_value): New function.
1925 (evaluate_subexp_standard): Use it.
1926
1927 2021-03-08 Tom Tromey <tom@tromey.com>
1928
1929 * eval.c (eval_op_var_entry_value): New function.
1930 (evaluate_subexp_standard): Use it.
1931
1932 2021-03-08 Tom Tromey <tom@tromey.com>
1933
1934 * eval.c (eval_op_scope): New function.
1935 (evaluate_subexp_standard): Use it.
1936
1937 2021-03-06 Chernov Sergey <klen_s@mail.ru>
1938
1939 PR gdb/27528:
1940 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1941
1942 2021-03-06 Tom Tromey <tom@tromey.com>
1943
1944 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1945 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1946 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1947 (locate_dwz_sections, dwz_search_other_debugdirs)
1948 (dwarf2_get_dwz_file): Move to dwz.c.
1949 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1950 read.h.
1951 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1952 (dwarf2_get_dwz_file): Move from read.c.
1953
1954 2021-03-06 Tom Tromey <tom@tromey.com>
1955
1956 * debuginfod-support.h: Include scoped_fd.h.
1957
1958 2021-03-06 Tom Tromey <tom@tromey.com>
1959
1960 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1961 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1962 (get_abbrev_section_for_cu, read_attribute_value)
1963 (get_debug_line_section): Update.
1964 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1965
1966 2021-03-06 Tom Tromey <tom@tromey.com>
1967
1968 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1969 method.
1970 * dwarf2/read.c (section_is_p): Remove.
1971 (dwarf2_per_bfd::locate_sections)
1972 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1973 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1974 (dwarf2_locate_common_dwp_sections)
1975 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1976 Update.
1977
1978 2021-03-06 Tom Tromey <tom@tromey.com>
1979
1980 * xcoffread.c: Include sect-names.h.
1981 * symfile.h (struct dwarf2_section_names, struct
1982 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1983 * dwarf2/sect-names.h: New file, from symfile.h.
1984 * dwarf2/read.c: Include sect-names.h.
1985
1986 2021-03-06 Tom Tromey <tom@tromey.com>
1987
1988 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1989 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1990 (abbrev_table::read): Update.
1991 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1992 (struct abbrev_info): Reformat.
1993 <attrs>: Now an array.
1994 (struct abbrev_table) <alloc_abbrev>: Remove.
1995
1996 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1997
1998 * ctfread.c (ctf_psymtab_add_enums): New function.
1999 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2000
2001 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
2002
2003 * ctfread.c (read_func_kind_type): Set up function arguments.
2004
2005 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2006 Andrew Burgess <andrew.burgess@embecosm.com>
2007
2008 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2009 includes.
2010 (riscv_csrset): New static global.
2011 (riscv_update_csrmap): New function.
2012 (riscv_iterate_over_regset_sections): Process CSRs.
2013
2014 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * riscv-tdep.c (riscv_feature_name_csr): Define.
2017 (riscv_feature_name_cpu): Define.
2018 (riscv_feature_name_fpu): Define.
2019 (riscv_feature_name_virtual): Define.
2020 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2021 (riscv_freg_feature): Use riscv_feature_name_fpu.
2022 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2023 (riscv_csr_feature): Use riscv_feature_name_csr.
2024 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2025
2026 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2027 Craig Blackmore <craig.blackmore@embecosm.com>
2028
2029 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2030 (ALLDEPFILES): Add riscv-none-tdep.c.
2031 * configure: Regenerate.
2032 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2033 support.
2034 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2035 * elf-none-tdep.c: New file.
2036 * elf-none-tdep.h: New file.
2037 * riscv-none-tdep.c: New file.
2038
2039 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2040 Andrew Burgess <andrew.burgess@embecosm.com>
2041
2042 * corelow.c: Add 'xml-tdesc.h' include.
2043 (core_target::read_description): Load the target description from
2044 the core file when possible.
2045 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2046 note.
2047 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2048 (gcore_elf_make_tdesc_note): New function.
2049 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
2050 * linux-tdep.c (linux_make_corefile_notes): Add target description
2051 note.
2052
2053 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2054
2055 * Makefile.in (SFILES): Add gcore-elf.c.
2056 (HFILES_NO_SRCDIR): Add gcore-elf.h
2057 * configure: Regenerate.
2058 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
2059 support.
2060 * fbsd-tdep.c: Add 'gcore-elf.h' include.
2061 (struct fbsd_collect_regset_section_cb_data): Delete.
2062 (fbsd_collect_regset_section_cb): Delete.
2063 (fbsd_collect_thread_registers): Delete.
2064 (struct fbsd_corefile_thread_data): Delete.
2065 (fbsd_corefile_thread): Delete.
2066 (fbsd_make_corefile_notes): Call
2067 gcore_elf_build_thread_register_notes instead of the now deleted
2068 FreeBSD code.
2069 * gcore-elf.c: New file, the content was moved here from
2070 linux-tdep.c, functions were renamed and given minor cleanup.
2071 * gcore-elf.h: New file.
2072 * gcore.c (gcore_find_signalled_thread): Moved here from
2073 linux-tdep.c and given a new name. Minor cleanups.
2074 * gcore.h (gcore_find_signalled_thread): Declare.
2075 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
2076 (struct linux_collect_regset_section_cb_data): Delete.
2077 (linux_collect_regset_section_cb): Delete.
2078 (linux_collect_thread_registers): Delete.
2079 (linux_corefile_thread): Call
2080 gcore_elf_build_thread_register_notes.
2081 (find_signalled_thread): Delete.
2082 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2083
2084 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
2085
2086 PR gdb/27147
2087 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2088 process_stratum_target parameter,
2089 sparc_store_inferior_registers): update callers.
2090 * sparc-nat.c (sparc_fetch_inferior_registers,
2091 sparc_store_inferior_registers): Add process_stratum_target
2092 parameter. Switch current thread before calling
2093 sparc_supply_gregset / sparc_collect_rwindow.
2094 (sparc_store_inferior_registers): Likewise.
2095 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2096 (sparc32obsd_collect_uthread): Likewise.
2097 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2098 Add assertion.
2099 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2100 sparc64obsd_supply_uthread): Add assertion.
2101
2102 2021-03-04 Tom Tromey <tromey@adacore.com>
2103
2104 * ada-lang.c (struct match_data) <found_sym>: Now bool.
2105 (aux_add_nonlocal_symbols): Update.
2106 (ada_add_block_symbols): Change "found_sym" to bool.
2107
2108 2021-03-03 Tom Tromey <tromey@adacore.com>
2109
2110 * ada-lang.c (ada_resolve_function): Update comment.
2111 (is_nonfunction, add_symbols_from_enclosing_procs)
2112 (remove_extra_symbols): Likewise.
2113 (struct match_data): Add constructor, initializers.
2114 (add_nonlocal_symbols): Remove memset.
2115 (aux_add_nonlocal_symbols): Update comment.
2116 (ada_add_block_renamings, add_nonlocal_symbols)
2117 (ada_add_all_symbols): Likewise.
2118 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2119
2120 2021-03-02 Tom Tromey <tromey@adacore.com>
2121
2122 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2123 (cast_to_gnat_encoded_fixed_point_type): Remove.
2124 (ada_value_cast, ada_evaluate_subexp): Update.
2125 (gnat_encoded_fixed_point_type_info)
2126 (ada_is_gnat_encoded_fixed_point_type)
2127 (gnat_encoded_fixed_point_delta)
2128 (gnat_encoded_fixed_point_scaling_factor): Remove.
2129 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2130 (gnat_encoded_fixed_point_delta)
2131 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2132 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2133 (ada_print_type): Update.
2134 * ada-valprint.c (ada_value_print_num): Update.
2135 * dwarf2/read.c (ada_get_gnat_encoded_number)
2136 (ada_get_gnat_encoded_ratio): New functions.
2137 (finish_fixed_point_type): Use them. Add parameters.
2138 (GNAT_FIXED_POINT_SUFFIX): New define.
2139 (gnat_encoded_fixed_point_type_info): New function.
2140 (read_base_type): Handle gnat encodings.
2141
2142 2021-03-02 Tom Tromey <tromey@adacore.com>
2143
2144 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2145 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2146 std::string.
2147 (GROW_VECT): Remove.
2148 (grow_vect): Remove.
2149
2150 2021-03-02 Tom Tromey <tromey@adacore.com>
2151
2152 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
2153 * ada-lang.c (resolve_subexp): Update.
2154 (ada_resolve_function): Accept a vector.
2155 (is_nonfunction, add_defn_to_vec)
2156 (add_symbols_from_enclosing_procs): Likewise.
2157 (num_defns_collected, defns_collected): Remove.
2158 (remove_extra_symbols): Return a vector.
2159 (remove_irrelevant_renamings): Return void.
2160 (ada_add_local_symbols): Accept a vector.
2161 (struct match_data) <obstackp>: Remove.
2162 <resultp>: New member.
2163 (aux_add_nonlocal_symbols): Update.
2164 (ada_add_block_renamings, add_nonlocal_symbols)
2165 (ada_add_all_symbols): Accept a vector.
2166 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
2167 vector.
2168 (ada_lookup_symbol): Update.
2169 (ada_add_block_symbols): Accept a vector.
2170 (get_var_value, iterate_over_symbols): Update.
2171 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
2172 Update.
2173
2174 2021-03-02 Tom Tromey <tromey@adacore.com>
2175
2176 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
2177
2178 2021-03-02 Tom Tromey <tromey@adacore.com>
2179
2180 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
2181 auto_obstack.
2182 <root>: Initialize.
2183 (ada_pspace_data): Remove destructor.
2184 <sym_cache>: Now a unique_ptr.
2185 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
2186 (ada_get_symbol_cache): Use 'new'.
2187 (ada_clear_symbol_cache): Rewrite.
2188
2189 2021-03-02 Tom Tromey <tromey@adacore.com>
2190
2191 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
2192 is null.
2193
2194 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
2195
2196 PR gdb/27393
2197 * source.c (add_path): Skip empty dirnames.
2198
2199 2021-02-25 Kevin Buettner <kevinb@redhat.com>
2200
2201 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
2202 include order for <sys/ptrace.h> and <asm/ptrace.h>.
2203
2204 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2205
2206 PR gdb/26861
2207 * target.c (target_mourn_inferior): Only compare pids in
2208 target_mourn_inferior.
2209
2210 2021-02-25 Jan Matyas <jmatyas@codasip.com>
2211
2212 PR gdb/26819
2213 * remote.c (remote_target::start_remote): Ensure the single
2214 thread, automatically added for remote targets without the
2215 concept of threading, is initially in set to the "resumed"
2216 state.
2217 * remote.c (remote_target::add_current_inferior_and_thread):
2218 Add return value - return the main thread.
2219
2220 2021-02-25 Jan Vrany <jan.vrany@labware.com>
2221
2222 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2223 (mi_tsv_created): Likewise.
2224 (mi_tsv_deleted): Likewise.
2225
2226 2021-02-25 Tom de Vries <tdevries@suse.de>
2227
2228 PR symtab/27354
2229 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2230 section_kind for &dwo_file->sections.info.
2231
2232 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2233
2234 PR fortran/26155
2235 * f-lang.c (fortran_argument_convert): Delete declaration.
2236 (fortran_prepare_argument): New function.
2237 (evaluate_subexp_f): Move logic to new function
2238 fortran_prepare_argument.
2239
2240 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2241
2242 * f-exp.y (f77_keywords): Add 'associated'.
2243 * f-lang.c (fortran_associated): New function.
2244 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
2245 (operator_length_f): Likewise.
2246 (print_unop_or_binop_subexp_f): New function.
2247 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
2248 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
2249 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
2250 (operator_check_f): Likewise.
2251 * std-operator.def: Add FORTRAN_ASSOCIATED.
2252
2253 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2254
2255 * f-exp.y (fortran_operators): Add ".xor.".
2256
2257 2021-02-24 Tom de Vries <tdevries@suse.de>
2258
2259 PR symtab/27336
2260 * dwarf2/attribute.c (attribute::form_is_signed): New function
2261 factored out of ...
2262 * dwarf2/attribute.h (attribute::as_signed): ... here.
2263 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
2264 (attribute::form_is_signed): Declare.
2265 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
2266 for DW_AT_decl_file.
2267
2268 2021-02-24 Kevin Buettner <kevinb@redhat.com>
2269
2270 * nat/aarch64-linux-hw-point.c: Add comment regarding include
2271 order for <sys/ptrace.h> and <asm/ptrace.h>.
2272
2273 2021-02-24 Kevin Buettner <kevinb@redhat.com>
2274
2275 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
2276 <sys/ptrace.h>.
2277
2278 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2279
2280 * exec.c (set_section_command): Move variable declarations into
2281 the function body, and use std::string instead of a fixed size
2282 buffer.
2283
2284 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2285
2286 * exec.c (exec_target::get_section_table): Delete member function.
2287 (section_table_read_available_memory): Use current_top_target, not
2288 just the exec_ops target.
2289 * target-delegates.c: Regenerate.
2290 * target.c (default_get_section_table): New function.
2291 * target.h (target_ops::get_section_table): Change default
2292 behaviour to call default_get_section_table.
2293 (default_get_section_table): Declare.
2294
2295 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * exec.c (exec_target::close): Call new clear_target_sections
2298 function.
2299 (program_space::add_target_sections): Update name of member
2300 variable.
2301 (program_space::add_target_sections): Update name of member
2302 variable.
2303 (program_space::remove_target_sections): Likewise.
2304 (exec_one_fork): Use new target_sections member function.
2305 (exec_target::get_section_table): Likewise.
2306 (exec_target::files_info): Likewise.
2307 (set_section_command): Likewise.
2308 (exec_set_section_address): Likewise.
2309 (exec_target::has_memory): Use new target_sections member
2310 function.
2311 * progspace.h (program_space::clear_target_sections): New member
2312 function.
2313 (program_space::target_sections): Rename member variable to
2314 m_target_sections, replace with a new member function.
2315 (program_space::m_target_sections): New member variable.
2316 * solib-dsbt.c (scan_dyntag): Use new member function.
2317 * solib-svr4.c (scan_dyntag): Likewise.
2318
2319 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2322 return type const.
2323 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2324 (section_table_read_available_memory): Make local const.
2325 (exec_target::xfer_partial): Make local const.
2326 (print_section_info): Make parameter const.
2327 * gdb/exec.h (print_section_info): Likewise.
2328 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2329 const.
2330 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2331 Likewise.
2332 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2333 Likewise.
2334 * gdb/s390-tdep.c (s390_load): Likewise.
2335 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2336 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2337 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2338 Rename to...
2339 (target_debug_print_const_target_section_table_p): ...this.
2340 * gdb/target-delegates.c: Regenerate.
2341 * gdb/target.c (target_get_section_table): Make return type const.
2342 (target_section_by_addr): Likewise. Also make some locals const.
2343 (memory_xfer_partial_1): Make some locals const.
2344 * gdb/target.h (struct target_ops) <get_section_table>: Make
2345 return type const.
2346 (target_section_by_addr): Likewise.
2347 (target_get_section_table): Likewise.
2348
2349 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2350
2351 * NEWS: Mention new 'maint info target-sections' command.
2352 * maint.c (maintenance_info_target_sections): New function.
2353 (_initialize_maint_cmds): Register new command.
2354
2355 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2356
2357 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2358 (riscv_features_from_bfd): ...this. Change parameter type to
2359 'bfd*', and update as required.
2360 (riscv_find_default_target_description): Update call to
2361 riscv_features_from_bfd. Select a default xlen based on
2362 info.bfd_arch_info.
2363 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2364
2365 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2366
2367 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2368 dynamic types in UNOP_IND.
2369
2370 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2371
2372 PR gdb/26828
2373 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2374 Instantiate queue.
2375 (~dwarf2_queue_guard): Clear queue.
2376 (queue_comp_unit): Assert that queue is
2377 instantiated.
2378 (process_queue): Adjust.
2379 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2380
2381 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2382
2383 PR gdb/26828
2384 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2385 to decide whether or not to enqueue it for expansion.
2386 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2387 after calling maybe_queue_comp_unit.
2388
2389 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2390
2391 * linux-nat.c (linux_nat_filter_event): Return void.
2392
2393 2021-02-22 Tom Tromey <tromey@adacore.com>
2394
2395 * solib-svr4.c (enable_break): Update.
2396 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2397 type.
2398 (target_bfd_reopen): Change parameter type.
2399 * bfd-target.h (target_bfd_reopen): Change parameter type.
2400
2401 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2402
2403 * thread.c (add_thread_silent): Add assert.
2404 (find_thread_ptid): Add assert.
2405
2406 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2407
2408 PR gdb/27435
2409 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2410 (target_unpush_up): Likewise.
2411 * procfs.c (procfs_target::attach): Push target early. Use
2412 target_unpush_up to unpush target in case of error.
2413 * target.h (struct target_unpusher): Move here.
2414 (target_unpush_up): Likewise.
2415
2416 2021-02-19 Kevin Buettner <kevinb@redhat.com>
2417
2418 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2419 (which in turn includes <gnulib/config.h>) before include
2420 of <signal.h>.
2421
2422 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
2423
2424 PR 27158
2425 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2426 (decode_j_type_insn): Likewise.
2427 (decode_cj_type_insn): Likewise.
2428 (decode_b_type_insn): Likewise.
2429 (decode): Likewise.
2430
2431 2021-02-18 Tom Tromey <tom@tromey.com>
2432
2433 * expression.h (struct expression) <evaluate>: Declare method.
2434 * eval.c (evaluate_subexp): Simplify.
2435 (expression::evaluate): New method.
2436 (evaluate_expression, evaluate_type): Use expression::evaluate.
2437
2438 2021-02-17 Kevin Buettner <kevinb@redhat.com>
2439
2440 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2441 to accessing it.
2442 (ada_lookup_name_info): Likewise.
2443
2444 2021-02-13 Mike Frysinger <vapier@gentoo.org>
2445
2446 * aclocal.m4: Regenerate.
2447
2448 2021-02-12 Tom de Vries <tdevries@suse.de>
2449
2450 PR threads/26228
2451 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2452 (lin_thread_signals): New static var.
2453 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2454 New function.
2455 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2456 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2457 Declare.
2458 * linux-thread-db.c (check_thread_signals): Use
2459 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2460
2461 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2462
2463 * f-exp.y (f77_keywords): Add allocated.
2464 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2465 (operator_length_f): Likewise.
2466 (print_subexp_f): Likewise.
2467 (dump_subexp_body_f): Likewise.
2468 (operator_check_f): Likewise.
2469 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2470
2471 2021-02-11 Tom de Vries <tdevries@suse.de>
2472
2473 PR symtab/27353
2474 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2475 Return true for DW_FORM_strx.
2476
2477 2021-02-11 Tom Tromey <tromey@adacore.com>
2478
2479 PR gdb/27383:
2480 * parse.c (write_exp_symbol_reference): Write sym.block.
2481
2482 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * NEWS: Mention changes to 'maint info sections'.
2485 * maint.c (match_substring): Return a bool, fix whitespace issue.
2486 (struct single_bfd_flag_info): New struct.
2487 (bfd_flag_info): New static global.
2488 (match_bfd_flags): Return a bool, use bfd_flag_info.
2489 (print_bfd_flags): Use bfd_flag_info.
2490 (maint_print_section_info): Delete trailing whitespace.
2491 (struct maint_info_sections_opts): New struct.
2492 (maint_info_sections_option_defs): New static global.
2493 (maint_info_sections_completer): New function.
2494 (maintenance_info_sections): Use option parsing mechanism.
2495 (_initialize_maint_cmds): Update command help text for 'maint info
2496 sections' and register a command completer.
2497
2498 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2501 functionality merged into...
2502 (maint_print_all_sections): ...this new function.
2503 (maintenance_info_sections): Make use of maint_print_all_sections,
2504 allow all objects to be printed even where there's no executable.
2505
2506 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2507
2508 * breakpoint.c (resolve_sal_pc): Make use of
2509 bound_minimal_symbol::obj_section.
2510 * maint.c (maintenance_translate_address): Likewise.
2511 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2512 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2513 member function.
2514 * printcmd.c (info_address_command): Make use of
2515 bound_minimal_symbol::obj_section.
2516
2517 2021-02-11 Alan Modra <amodra@gmail.com>
2518
2519 * arm-symbian-tdep.c: Delete.
2520 * NEWS: Mention arm-symbian removal.
2521 * Makefile.in: Remove arm-symbian-tdep entries.
2522 * configure.tgt: Remove arm*-*-symbianelf*.
2523 * doc/gdb.texinfo: Remove mention of SymbianOS.
2524 * osabi.c (gdb_osabi_names): Remove "Symbian".
2525 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2526 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2527 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2528 handling.
2529 * testsuite/gdb.base/dup-sect.exp: Likewise.
2530 * testsuite/gdb.base/long_long.exp: Likewise.
2531 * testsuite/gdb.base/solib-weak.exp: Likewise.
2532 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2533 * testsuite/gdb.python/py-section-script.exp: Likewise.
2534 * testsuite/lib/dwarf.exp: Likewise.
2535 * testsuite/lib/gdb.exp: Likewise.
2536
2537 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2538
2539 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2540 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2541 (one_or_two_args): New pattern.
2542 (f77_keywords): Add lbound and ubound.
2543 * f-lang.c (fortran_bounds_all_dims): New function.
2544 (fortran_bounds_for_dimension): New function.
2545 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2546 (operator_length_f): Likewise.
2547 (print_subexp_f): Likewise.
2548 (dump_subexp_body_f): Likewise.
2549 (operator_check_f): Likewise.
2550 * std-operator.def (FORTRAN_LBOUND): Define.
2551 (FORTRAN_UBOUND): Define.
2552
2553 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2554
2555 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2556 and set_section_index member functions where appropriate.
2557 * coffread.c (coff_symtab_read): Likewise.
2558 (process_coff_symbol): Likewise.
2559 * ctfread.c (set_symbol_address): Likewise.
2560 * dwarf2/read.c (add_partial_symbol): Likewise.
2561 (var_decode_location): Likewise.
2562 * language.c: Likewise.
2563 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2564 (compact_minimal_symbols): Likewise.
2565 (minimal_symbol_upper_bound): Likewise.
2566 * objfiles.c (relocate_one_symbol): Likewise.
2567 * psympriv.h (partial_symbol::obj_section): Likewise.
2568 (partial_symbol::address): Likewise.
2569 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2570 * stabsread.c (scan_file_globals): Likewise.
2571 * symmisc.c (dump_msymbols): Likewise.
2572 * symtab.c (general_symbol_info::obj_section): Likewise.
2573 (fixup_section): Likewise.
2574 (get_msymbol_address): Likewise.
2575 * symtab.h (general_symbol_info::section): Rename to...
2576 (general_symbol_info::m_section): ...this.
2577 (general_symbol_info::set_section_index): New member function.
2578 (general_symbol_info::section_index): Likewise.
2579 (SYMBOL_SECTION): Delete.
2580 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2581 set_section_index member functions where appropriate.
2582 (MSYMBOL_SECTION): Delete.
2583 (symbol::symbol): Update to initialize 'm_section'.
2584 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2585 (process_xcoff_symbol): Likewise.
2586
2587 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2588
2589 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2590 MSYMBOL_OBJ_SECTION.
2591 * findvar.c (language_defn::read_var_value): Likewise.
2592 * infcmd.c (jump_command): Likewise.
2593 * linespec.c (minsym_found): Likewise.
2594 * maint.c (maintenance_translate_address): Likewise.
2595 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2596 (minimal_symbol_upper_bound): Likewise.
2597 * parse.c (find_minsym_type_and_address): Likewise.
2598 (operator_check_standard): Likewise.
2599 * printcmd.c (info_address_command): Likewise.
2600 * symmisc.c (dump_msymbols): Likewise.
2601 (print_symbol): Likewise.
2602 * symtab.c (general_symbol_info::obj_section): Define new
2603 function.
2604 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2605 (find_pc_sect_compunit_symtab): Likewise.
2606 (find_function_start_sal): Likewise.
2607 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2608 MSYMBOL_OBJ_SECTION.
2609 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2610 function.
2611 (SYMBOL_OBJ_SECTION): Delete.
2612 (MSYMBOL_OBJ_SECTION): Delete.
2613
2614 2021-02-09 Tom Tromey <tom@tromey.com>
2615
2616 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2617
2618 2021-02-09 Tom de Vries <tdevries@suse.de>
2619
2620 PR symtab/27341
2621 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2622 construct an array type. Add assert to ensure that element_type is
2623 not being modified.
2624
2625 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2628 (gcore_collect_regset_section_cb): Delete.
2629 (gcore_collect_thread_registers): Delete.
2630 (gcore_build_thread_register_notes): Delete.
2631 (gcore_find_signalled_thread): Delete.
2632 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2633 'gdbarch' and 'thread_info' declarations.
2634 (gcore_build_thread_register_notes): Delete declaration.
2635 (gcore_find_signalled_thread): Likewise.
2636 * fbsd-tdep.c: Remove 'gcore.h' include.
2637 (struct fbsd_collect_regset_section_cb_data): New struct.
2638 (fbsd_collect_regset_section_cb): New function.
2639 (fbsd_collect_thread_registers): New function.
2640 (struct fbsd_corefile_thread_data): New struct.
2641 (fbsd_corefile_thread): New function.
2642 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2643 * linux-tdep.c: Remove 'gcore.h' include.
2644 (struct linux_collect_regset_section_cb_data): New struct.
2645 (linux_collect_regset_section_cb): New function.
2646 (linux_collect_thread_registers): New function.
2647 (linux_corefile_thread): Call Linux specific code.
2648 (find_signalled_thread): New function.
2649 (linux_make_corefile_notes): Call find_signalled_thread.
2650
2651 2021-02-09 Tom Tromey <tromey@adacore.com>
2652
2653 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2654 not_lval value.
2655 * value.c (value_contents_copy_raw): Now static.
2656 * value.h (value_contents_copy_raw): Don't declare.
2657
2658 2021-02-09 Tom Tromey <tromey@adacore.com>
2659
2660 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2661 fields.
2662
2663 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
2664
2665 PR tdep/27369
2666 * arc-linux-tdep.c (handle_atomic_sequence): New.
2667 (arc_linux_software_single_step): Call handle_atomic_sequence().
2668
2669 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2670
2671 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2672 function.
2673 (REQUIRE_WINDOW): Call is_valid member function.
2674 (REQUIRE_WINDOW_FOR_SETTER): New define.
2675 (gdbpy_tui_is_valid): Call is_valid member function.
2676 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2677 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2678 tui_active too.
2679 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2680 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2681 the function.
2682
2683 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2684
2685 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2686 for the title is not nullptr.
2687
2688 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2689
2690 * tui-layout.c (saved_tui_windows): Delete.
2691 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2692 call new get_windows member function instead.
2693 (tui_get_window_by_name): Check in tui_windows.
2694 (tui_layout_window::apply): Don't add to tui_windows.
2695 * tui-layout.h (tui_layout_base::get_windows): New member function.
2696 (tui_layout_window::get_windows): Likewise.
2697 (tui_layout_split::get_windows): Likewise.
2698
2699 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2702 of the window objects.
2703
2704 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2705
2706 * python/python.c (gdbpy_print_stack): Reformat an error message.
2707
2708 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2709
2710 * tui/tui-interp.c (tui_command_line_handler): New function.
2711 (tui_interp::resume): Register tui_command_line_handler as the
2712 input_handler.
2713 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2714 function.
2715 (tui_getc_1): Delete handling of '\n' and '\r'.
2716 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2717
2718 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2719
2720 * tui/tui-regs.c (tui_data_window::display_registers_from):
2721 Mark invisible register sub windows.
2722 (tui_data_window::check_register_values): Ignore invisible
2723 register sub windows.
2724
2725 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2726
2727 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2728 n_spaces with a negative value.
2729
2730 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2731
2732 * tui/tui-regs.c (tui_data_window::display_registers_from):
2733 Add refresh_window call.
2734
2735 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2736
2737 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2738
2739 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2740
2741 * symmisc.c (std_in, std_out, std_err): Remove.
2742 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2743
2744 2021-02-05 Tom de Vries <tdevries@suse.de>
2745
2746 PR breakpoints/27330
2747 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2748 glibc object file has debug info.
2749
2750 2021-02-05 Tom de Vries <tdevries@suse.de>
2751
2752 PR symtab/27333
2753 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2754
2755 2021-02-05 Tom de Vries <tdevries@suse.de>
2756
2757 PR breakpoints/27313
2758 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2759 syscall numbers.
2760
2761 2021-02-05 Tom Tromey <tom@tromey.com>
2762
2763 * compile/compile-c-support.c (get_compile_context)
2764 (c_get_compile_context, cplus_get_compile_context): Change return
2765 type.
2766 * language.c (language_defn::get_compile_instance): New method.
2767 * language.h (language_defn::get_compile_instance): Change return
2768 type. No longer inline.
2769 * c-lang.c (c_language::get_compile_instance): Change return type.
2770 (cplus_language::get_compile_instance): Change return type.
2771 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2772 Change return type.
2773 * compile/compile.c (compile_to_object): Update.
2774
2775 2021-02-05 Tom Tromey <tom@tromey.com>
2776
2777 * parser-defs.h (write_exp_symbol_reference): Declare.
2778 * parse.c (write_exp_symbol_reference): New function.
2779 * p-exp.y (variable): Use write_exp_symbol_reference.
2780 * m2-exp.y (variable): Use write_exp_symbol_reference.
2781 * f-exp.y (variable): Use write_exp_symbol_reference.
2782 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2783 * c-exp.y (variable): Use write_exp_symbol_reference.
2784
2785 2021-02-05 Tom de Vries <tdevries@suse.de>
2786
2787 PR exp/27265
2788 * valarith.c (complex_binop): Throw an error if complex type can't
2789 be created.
2790
2791 2021-02-05 Tom de Vries <tdevries@suse.de>
2792
2793 PR symtab/27307
2794 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2795 return.
2796
2797 2021-02-05 Tom de Vries <tdevries@suse.de>
2798
2799 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2800
2801 2021-02-04 Mike Frysinger <vapier@gentoo.org>
2802
2803 * configure.tgt (riscv*-*-*): Set gdb_sim.
2804
2805 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2806
2807 * target.c (target_is_non_stop_p): Return bool.
2808 * target.h (target_is_non_stop_p): Return bool.
2809
2810 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2811
2812 * record-full.c (record_full_async_inferior_event_handler):
2813 Don't clear async event handler.
2814 (record_full_base_target::wait): Clear async event handler at
2815 beginning.
2816
2817 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2818
2819 * record-btrace.c (record_btrace_handle_async_inferior_event):
2820 Don't clear async event handler.
2821 (record_btrace_target::wait): Clear async event handler at
2822 beginning.
2823
2824 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2825
2826 * remote.c (remote_target::wait): Clear async event handler at
2827 beginning, mark if needed at the end.
2828 (remote_async_inferior_event_handler): Don't set or clear async
2829 event handler.
2830
2831 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2832
2833 * async-event.h (async_event_handler_func): Add documentation.
2834 * async-event.c (check_async_event_handlers): Don't clear
2835 async_event_handler ready flag.
2836 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2837 flag.
2838 * record-btrace.c (record_btrace_handle_async_inferior_event):
2839 Likewise.
2840 * record-full.c (record_full_async_inferior_event_handler):
2841 Likewise.
2842 * remote-notif.c (remote_async_get_pending_events_handler):
2843 Likewise.
2844 * remote.c (remote_async_inferior_event_handler): Likewise.
2845
2846 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2847
2848 * infrun.c (handle_inferior_event): Move stop_soon variable to
2849 inner scope.
2850
2851 2021-02-03 Pedro Alves <pedro@palves.net>
2852
2853 * infcmd.c (detach_command): Hold strong reference to target, and
2854 if all-stop on entry, restart threads on exit.
2855 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2856 (restart_stepped_thread): ... this new function. Also handle
2857 trap_expected.
2858 (restart_after_all_stop_detach): New function.
2859 * infrun.h (restart_after_all_stop_detach): Declare.
2860
2861 2021-02-03 Pedro Alves <pedro@palves.net>
2862
2863 * infrun.c (struct step_over_info): Initialize fields.
2864 (prepare_for_detach): Handle ongoing in-line step over.
2865
2866 2021-02-03 Pedro Alves <pedro@palves.net>
2867
2868 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2869 here...
2870 * remote.c (remote_target::remote_detach_1): ... and here ...
2871 * target.c (target_detach): ... instead of here.
2872 * target.h (target_ops::detach): Add comment.
2873
2874 2021-02-03 Pedro Alves <pedro@palves.net>
2875
2876 * infrun.c (struct wait_one_event): Move higher up.
2877 (prepare_for_detach): Abort in-progress displaced steps instead of
2878 letting them complete.
2879 (handle_one): If the inferior is detaching, don't add the thread
2880 back to the global step-over chain.
2881 (restart_threads): Don't restart threads if detaching.
2882 (handle_signal_stop): Remove inferior::detaching reference.
2883
2884 2021-02-03 Pedro Alves <pedro@palves.net>
2885
2886 * infrun.c (prepare_for_detach): Don't release scoped_restore
2887 before returning.
2888
2889 2021-02-03 Pedro Alves <pedro@palves.net>
2890
2891 * infrun.c (handle_one): New function, factored out from ...
2892 (stop_all_threads): ... here.
2893
2894 2021-02-03 Pedro Alves <pedro@palves.net>
2895
2896 * remote.c (remote_notif_stop_ack): Don't error out on
2897 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2898 (remote_target::discard_pending_stop_replies): Don't delete
2899 in-flight notification; instead, clear its contents.
2900
2901 2021-02-03 Pedro Alves <pedro@palves.net>
2902
2903 * remote.c (extended_remote_target::attach): Set target async in
2904 the target-non-stop path too.
2905
2906 2021-02-03 Pedro Alves <pedro@palves.net>
2907
2908 PR gdb/27055
2909 * infrun.c (handle_signal_stop): Move main context_switch call
2910 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2911
2912 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2913
2914 * NEWS (Changed commands): Add entry for the behavior change of
2915 the inferior command.
2916 * inferior.c (inferior_command): When no argument is given to the
2917 inferior command, display info about the currently selected
2918 inferior.
2919
2920 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2921
2922 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2923 a sect_offset.
2924 (read_attribute_reprocess): Adjust.
2925
2926 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2927
2928 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2929 <gnu_ranges_base>: ... this...
2930 <rnglists_base>: ... and this.
2931 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2932 <gnu_ranges_base>: ... this...
2933 <rnglists_base>: ... and this.
2934 (read_cutu_die_from_dwo): Adjust
2935 (dwarf2_get_pc_bounds): Adjust
2936 (dwarf2_record_block_ranges): Adjust.
2937 (read_full_die_1): Adjust
2938 (partial_die_info::read): Adjust.
2939 (read_rnglist_index): Adjust.
2940
2941 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2942
2943 PR gdb/26813
2944 * dwarf2/read.c (read_loclists_rnglists_header): Add
2945 header_offset parameter and use it.
2946 (read_loclist_index): Read header of the current contribution,
2947 not the one at the beginning of the section.
2948 (read_rnglist_index): Likewise.
2949
2950 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2951
2952 PR gdb/26813
2953 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2954 requires_reprocessing flag.
2955 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2956 DW_FORM_loclistx.
2957 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2958 and DW_FORM_loclistx.
2959 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2960 instead of set_address for DW_FORM_loclistx and
2961 DW_FORM_rnglistx.
2962
2963 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2964
2965 * dwarf2/read.c (read_loclist_index): Remove bound check for
2966 start of offset.
2967 (read_rnglist_index): Likewise.
2968
2969 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2970
2971 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2972 of the offset.
2973
2974 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2975
2976 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2977
2978 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2979
2980 * dwarf2/read.c (read_loclist_index): Change complaints into
2981 errors.
2982
2983 2021-02-02 Tom de Vries <tdevries@suse.de>
2984
2985 PR symtab/24620
2986 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2987 psymtab == nullptr.
2988
2989 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2990
2991 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2992 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2993 here from linux-tdep.c and given a new name. Minor cleanups.
2994 (gcore_collect_regset_section_cb): Likewise.
2995 (gcore_collect_thread_registers): Likewise.
2996 (gcore_build_thread_register_notes): Likewise.
2997 (gcore_find_signalled_thread): Likewise.
2998 * gcore.h (gcore_build_thread_register_notes): Declare.
2999 (gcore_find_signalled_thread): Declare.
3000 * fbsd-tdep.c: Add 'gcore.h' include.
3001 (struct fbsd_collect_regset_section_cb_data): Delete.
3002 (fbsd_collect_regset_section_cb): Delete.
3003 (fbsd_collect_thread_registers): Delete.
3004 (struct fbsd_corefile_thread_data): Delete.
3005 (fbsd_corefile_thread): Delete.
3006 (fbsd_make_corefile_notes): Call
3007 gcore_build_thread_register_notes instead of the now deleted
3008 FreeBSD code.
3009 * linux-tdep.c: Add 'gcore.h' include.
3010 (struct linux_collect_regset_section_cb_data): Delete.
3011 (linux_collect_regset_section_cb): Delete.
3012 (linux_collect_thread_registers): Delete.
3013 (linux_corefile_thread): Call
3014 gcore_build_thread_register_notes.
3015 (find_signalled_thread): Delete.
3016 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3017
3018 2021-01-29 Tom de Vries <tdevries@suse.de>
3019
3020 PR breakpoints/26063
3021 * infrun.c (process_event_stop_test): Reset
3022 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3023 changed.
3024
3025 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3026
3027 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3028 assert. Extend the header comment.
3029
3030 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3031
3032 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3033 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3034 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3035 (tui_locator_win_info_ptr): Delete declaration.
3036 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3037 (tui_disasm_window::set_contents): Fetch state from tui_location
3038 global.
3039 (tui_get_begin_asm_address): Likewise.
3040 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3041 for locator window.
3042 (get_locator_window): Delete.
3043 (initialize_known_windows): Treat locator window just like all the
3044 rest.
3045 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3046 (tui_source_window::set_contents): Fetch state from tui_location
3047 global.
3048 (tui_source_window::showing_source_p): Likewise.
3049 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3050 (_locator): Delete.
3051 (tui_locator_win_info_ptr): Delete.
3052 (tui_locator_window::make_status_line): Fetch state from
3053 tui_location global.
3054 (tui_locator_window::rerender): Remove check of 'handle',
3055 reindent function body.
3056 (tui_locator_window::set_locator_fullname): Delete.
3057 (tui_locator_window::set_locator_info): Delete.
3058 (tui_update_locator_fullname): Delete.
3059 (tui_show_frame_info): Likewise.
3060 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
3061 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
3062 tui/tui-location.h and renamed to
3063 tui_location_tracker::set_location.
3064 (tui_locator_window::set_locator_fullname): Moved to
3065 tui/tui-location.h and renamed to
3066 tui_location_tracker::set_fullname.
3067 (tui_locator_window::full_name): Delete.
3068 (tui_locator_window::proc_name): Delete.
3069 (tui_locator_window::line_no): Delete.
3070 (tui_locator_window::addr): Delete.
3071 (tui_locator_window::gdbarch): Delete.
3072 (tui_update_locator_fullname): Delete declaration.
3073 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
3074 for locator window.
3075 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
3076 (tui_display_main): Call function on tui_location directly.
3077 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
3078 * tui/tui-location.c: New file.
3079 * tui/tui-location.h: New file.
3080
3081 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3082
3083 * gdbtypes.h (get_type_arch): Rename to...
3084 (struct type) <arch>: ... this, update all users.
3085
3086 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3087
3088 * gdbtypes.h (struct type) <arch>: Rename to...
3089 <arch_owner>: ... this, update all users.
3090 <objfile>: Rename to...
3091 <objfile_owner>: ... this, update all users.
3092
3093 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3094
3095 * gdbcmd.h (execute_command_to_string): Update comment.
3096 * top.c (execute_command_to_string): Update header comment.
3097
3098 2021-01-28 Tom de Vries <tdevries@suse.de>
3099
3100 PR breakpoints/27205
3101 * breakpoint.c (create_longjmp_master_breakpoint_probe)
3102 (create_longjmp_master_breakpoint_names): New function, factored out
3103 of ...
3104 (create_longjmp_master_breakpoint): ... here. Only try to install
3105 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
3106 breakpoint in libc.so failed.
3107
3108 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
3109
3110 PR gdb/27133
3111 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
3112 unique_ptr is released when the wrapped pointer is kept for later
3113 use.
3114
3115 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
3116
3117 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3118 BLR and BR instructions.
3119 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3120 (enum aarch64_masks): New.
3121
3122 2021-01-26 Tom Tromey <tromey@adacore.com>
3123
3124 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3125 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3126 (windows_init_thread_list, windows_nat::handle_load_dll)
3127 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3128 (windows_nat_target::resume)
3129 (windows_nat_target::get_windows_debug_event)
3130 (windows_nat_target::interrupt, windows_xfer_memory)
3131 (windows_nat_target::close): Update.
3132 * nat/windows-nat.c (DEBUG_EVENTS): Use
3133 debug_prefixed_printf_cond.
3134 (matching_pending_stop, fetch_pending_stop)
3135 (continue_last_debug_event): Update.
3136
3137 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
3138
3139 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3140 elfcore_write_file_note.
3141
3142 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
3143
3144 * arc-tdep.c (arc_add_reggroups): New function.
3145 (arc_gdbarch_init): Call arc_add_reggroups.
3146
3147 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
3148
3149 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3150
3151 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3152 Simon Marchi <simon.marchi@polymtl.ca>
3153 Tom de Vries <tdevries@suse.de>
3154
3155 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
3156 DW_AT_ranges.
3157
3158 2021-01-25 Tom Tromey <tromey@adacore.com>
3159
3160 * dwarf2/read.c (get_mpz): New function.
3161 (get_dwarf2_rational_constant): Use it.
3162
3163 2021-01-25 Tom Tromey <tromey@adacore.com>
3164
3165 * ada-lang.c (resolve_subexp): Handle array context.
3166
3167 2021-01-23 Tom Tromey <tom@tromey.com>
3168
3169 PR compile/25575
3170 * compile/compile-loc2c.c (note_register): New function.
3171 (pushf_register_address, pushf_register): Use it.
3172
3173 2021-01-23 Tom Tromey <tom@tromey.com>
3174
3175 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3176 Change type of "registers_used".
3177 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
3178 * dwarf2/loc.c (dwarf2_compile_property_to_c)
3179 (locexpr_generate_c_location, loclist_generate_c_location): Change
3180 type of "registers_used".
3181 * compile/compile.h (compile_dwarf_expr_to_c)
3182 (compile_dwarf_bounds_to_c): Update.
3183 * compile/compile-loc2c.c (pushf_register_address)
3184 (pushf_register, do_compile_dwarf_expr_to_c)
3185 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
3186 of "registers_used".
3187 * compile/compile-c.h (generate_c_for_variable_locations):
3188 Update.
3189 * compile/compile-c-symbols.c (generate_vla_size)
3190 (generate_c_for_for_one_variable): Change type of
3191 "registers_used".
3192 (generate_c_for_variable_locations): Return std::vector.
3193 * compile/compile-c-support.c (generate_register_struct): Change
3194 type of "registers_used".
3195 (compute): Update.
3196
3197 2021-01-23 Tom Tromey <tom@tromey.com>
3198
3199 * compile/compile-internal.h (class compile_instance)
3200 <set_arguments>: Change return type.
3201 * compile/compile.c (compile_to_object): Remove call to reset.
3202 (compile_instance::set_arguments): Change return type.
3203
3204 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3205
3206 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3207 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3208
3209 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3210
3211 * Makefile.in (SELFTESTS_SRCS): Add
3212 unittests/gdb_tilde_expand-selftests.c.
3213 * unittests/gdb_tilde_expand-selftests.c: New file.
3214
3215 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3216
3217 PR cli/25956
3218 * NEWS: Mention new command.
3219 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3220 (version_style): Define.
3221 (cli_style_option::cli_style_option): Add intensity parameter, and
3222 use as appropriate.
3223 (_initialize_cli_style): Register version style set/show commands.
3224 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3225 (version_style): Declare.
3226 * top.c (print_gdb_version): Use version_stype, and styled_string
3227 to print the GDB version string.
3228
3229 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3230
3231 * utils.c (emit_style_escape): Only emit an escape sequence if the
3232 requested style is different than the current applied style.
3233 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3234 current applied_style.
3235 (fputs_styled): Remove is_default check.
3236 (fputs_styled_unfiltered): Likewise.
3237 (vfprintf_styled_no_gdbfmt): Likewise.
3238
3239 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3240
3241 * remote.h (remote_debug_printf): New.
3242 (remote_debug_printf_nofunc): New.
3243 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
3244 * remote.c: Use above macros throughout file.
3245
3246 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3247
3248 * remote.h (remote_debug): Change to bool.
3249 * remote.c (remote_debug): Change to bool.
3250 (_initialize_remote): Adjust.
3251
3252 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3253
3254 * target.h (remote_debug): Move to...
3255 * remote.h (remote_debug): ... here.
3256 * top.c (remote_debug): Move to...
3257 * remote.c (remote_debug): ... here.
3258 * remote-sim.c: Include remote.h.
3259
3260 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3261
3262 * cli/cli-cmds.c (show_remote_debug): Remove.
3263 (show_remote_timeout): Remove.
3264 (_initialize_cli_cmds): Don't register commands.
3265 * remote.c (show_remote_debug): Move here.
3266 (show_remote_timeout): Move here.
3267 (_initialize_remote): Register commands.
3268
3269 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3270
3271 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
3272 type::objfile method instead.
3273
3274 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3275
3276 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
3277 use the type::is_objfile_owned method.
3278
3279 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
3280
3281 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
3282 (TYPE_OWNER): Remove.
3283 (TYPE_OBJFILE): Adjust.
3284 (struct main_type) <flag_objfile_owned>: Rename to...
3285 <m_flag_objfile_owned>: ... this.
3286 <owner>: Rename to...
3287 <m_owner>: ... this.
3288 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3289 methods.
3290 (TYPE_ALLOC): Adjust.
3291 * gdbtypes.c (alloc_type): Adjust.
3292 (alloc_type_arch): Adjust.
3293 (alloc_type_copy): Adjust.
3294 (get_type_arch): Adjust.
3295 (smash_type): Adjust.
3296 (lookup_array_range_type): Adjust.
3297 (recursive_dump_type): Adjust.
3298 (copy_type_recursive): Adjust.
3299 * compile/compile-c-types.c (convert_func): Adjust.
3300 (convert_type_basic): Adjust.
3301 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3302 Adjust.
3303 * language.c
3304 (language_arch_info::type_and_symbol::alloc_type_symbol):
3305 Adjust.
3306
3307 2021-01-21 Luis Machado <luis.machado@linaro.org>
3308
3309 * coffread.c (enter_linenos): Passing string to complaint.
3310 * valops.c (value_assign): Make array view.
3311
3312 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3313
3314 * auto-load.h (debug_auto_load): Move here.
3315 (auto_load_debug_printf): New.
3316 * auto-load.c: Use auto_load_debug_printf.
3317 (debug_auto_load): Move to header.
3318 * linux-thread-db.c (try_thread_db_load): Use
3319 auto_load_debug_printf.
3320 * main.c (captured_main_1): Likewise.
3321
3322 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3323
3324 * f-valprint.c (f77_array_offset_tbl): Remove.
3325
3326 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3327
3328 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3329
3330 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3331
3332 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3333 of gdb_select.
3334
3335 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
3336
3337 PR python/19151
3338 * python/py-breakpoint.c (bppy_get_location): Handle
3339 bp_hardware_breakpoint.
3340 (bppy_init): Likewise.
3341 (gdbpy_breakpoint_created): Likewise.
3342
3343 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3344
3345 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3346
3347 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3348
3349 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3350 (_initialize_gdb_bfd): Adjust.
3351
3352 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3353
3354 PR gdb/26828
3355 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3356
3357 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3358
3359 * dwarf2/read.c (follow_die_offset): Add logging.
3360 (dwarf2_per_objfile::age_comp_units): Add logging.
3361
3362 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3363
3364 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3365 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3366 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3367 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3368 * arm-tdep.c (struct frame_unwind): Make static.
3369 * auto-load.c (auto_load_safe_path_vec): Make static.
3370 * csky-tdep.c (csky_stub_unwind): Make static.
3371 * gdbarch.c (gdbarch_data_registry): Make static.
3372 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3373 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3374 * i386-tdep.c (i386_frame_setup_skip_insns,
3375 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3376 Make static.
3377 * infrun.c (observer_mode): Make static.
3378 * linux-nat.c (sigchld_action): Make static.
3379 * linux-thread-db.c (thread_db_list): Make static.
3380 * maint-test-options.c (maintenance_test_options_list):
3381 * mep-tdep.c (mep_csr_registers): Make static.
3382 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3383 (stats): Make static.
3384 * nat/linux-osdata.c (struct osdata_type): Make static.
3385 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3386 * progspace.c (last_program_space_num): Make static.
3387 * python/py-param.c (struct parm_constant): Remove struct type
3388 name.
3389 (parm_constants): Make static.
3390 * python/py-record-btrace.c (btpy_list_methods): Make static.
3391 * python/py-record.c (recpy_gap_type): Make static.
3392 * record.c (record_goto_cmdlist): Make static.
3393 * regcache.c (regcache_descr_handle): Make static.
3394 * registry.h (DEFINE_REGISTRY): Make definition static.
3395 * symmisc.c (std_in, std_out, std_err): Make static.
3396 * top.c (previous_saved_command_line): Make static.
3397 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3398 static.
3399 * unittests/command-def-selftests.c (nr_duplicates,
3400 nr_invalid_prefixcmd, lists): Make static.
3401 * unittests/observable-selftests.c (test_notification): Make
3402 static.
3403 * unittests/optional/assignment/1.cc (counter): Make static.
3404 * unittests/optional/assignment/2.cc (counter): Make static.
3405 * unittests/optional/assignment/3.cc (counter): Make static.
3406 * unittests/optional/assignment/4.cc (counter): Make static.
3407 * unittests/optional/assignment/5.cc (counter): Make static.
3408 * unittests/optional/assignment/6.cc (counter): Make static.
3409
3410 2021-01-20 Joel Sherrill <joel@rtems.org>
3411
3412 PR gdb/27219
3413 * remote.c (struct remote_thread_info) <resume_state>: Rename
3414 to...
3415 <get_resume_state>: ... this.
3416 (remote_target::resume): Adjust.
3417 (remote_target::commit_resume): Adjust.
3418 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3419
3420 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3421 Tom Tromey <tom@tromey.com>
3422
3423 * stap-probe.c (stap_parse_single_operand): Handle '!'
3424 operator.
3425 (stap_parse_argument_conditionally): Likewise.
3426 Skip spaces after processing open-parenthesis sub-expression.
3427 (stap_parse_argument_1): Skip spaces after call to
3428 stap_parse_argument_conditionally.
3429 Handle case when right-side expression is a parenthesized
3430 sub-expression.
3431 Skip spaces after call to stap_parse_argument_1.
3432
3433 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3434
3435 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3436
3437 2021-01-19 Luis Machado <luis.machado@linaro.org>
3438
3439 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3440 memory and save data.
3441 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3442 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3443 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3444 (trad_frame_value_bytes_p): Remove.
3445 (trad_frame_reset_saved_regs): Adjust documentation.
3446 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3447 constructor and reset the state of the registers.
3448 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3449 (trad_frame_value_bytes_p, trad_frame_set_value)
3450 (trad_frame_set_realreg, trad_frame_set_addr)
3451 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3452 (trad_frame_set_reg_realreg): Update to call member function.
3453 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3454 (trad_frame_get_prev_register): Likewise.
3455
3456 * aarch64-tdep.c (aarch64_analyze_prologue)
3457 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3458 (aarch64_prologue_prev_register): Update to use member functions.
3459 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3460 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3461 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3462 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3463 (arm_make_epilogue_frame_cache): Likewise.
3464 * avr-tdep.c (avr_frame_unwind_cache)
3465 (avr_frame_prev_register): Likewise.
3466 * cris-tdep.c (cris_scan_prologue): Likewise.
3467 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3468 * frv-tdep.c (frv_analyze_prologue): Likewise.
3469 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3470 * lm32-tdep.c (lm32_frame_cache): Likewise.
3471 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3472 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3473 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3474 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3475 (reset_saved_regs): Adjust to set realreg.
3476 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3477 call member functions.
3478 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3479 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3480 (s390_backchain_frame_unwind_cache): Likewise.
3481 * score-tdep.c (score7_analyze_prologue)
3482 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3483 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3484 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3485 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3486 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3487 * tilegx-tdep.c (tilegx_analyze_prologue)
3488 (tilegx_frame_cache): Likewise.
3489 * v850-tdep.c (v850_frame_cache): Likewise.
3490 * vax-tdep.c (vax_frame_cache): Likewise.
3491
3492 2021-01-19 Luis Machado <luis.machado@linaro.org>
3493
3494 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3495 of buffer + length.
3496 (put_frame_register_bytes): Likewise.
3497 Adjust documentation.
3498 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3499 (safe_frame_unwind_memory): Likewise.
3500 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3501 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3502 gdb::array_view.
3503 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3504 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3505 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3506 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3507 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3508 * dwarf2/loc.c (rw_pieced_value): Likewise.
3509 * hppa-tdep.c (hppa_frame_cache): Likewise.
3510 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3511 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3512 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3513 (i386_linux_rt_sigtramp_start): Likewise.
3514 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3515 * i386-tdep.c (i386_register_to_value): Likewise.
3516 * i387-tdep.c (i387_register_to_value): Likewise.
3517 * ia64-tdep.c (ia64_register_to_value): Likewise.
3518 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3519 (m32r_linux_rt_sigtramp_start): Likewise.
3520 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3521 * m68k-tdep.c (m68k_register_to_value): Likewise.
3522 * mips-tdep.c (mips_register_to_value)
3523 (mips_value_to_register): Likewise.
3524 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3525 (ppcfbsd_sigtramp_frame_cache): Likewise.
3526 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3527 (ppcobsd_sigtramp_frame_cache): Likewise.
3528 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3529 (rs6000_register_to_value): Likewise.
3530 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3531 * tramp-frame.c (tramp_frame_start): Likewise.
3532 * valops.c (value_assign): Likewise.
3533
3534 2021-01-19 Luis Machado <luis.machado@linaro.org>
3535
3536 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3537 array_view.
3538 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3539 instead of buffer and size.
3540 (trad_frame_set_reg_value_bytes): Likewise.
3541 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3542 (trad_frame_set_value_bytes): Likewise.
3543
3544 2021-01-18 Mike Frysinger <vapier@gentoo.org>
3545
3546 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3547
3548 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3549
3550 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3551 (riscv_fbsd_gregset): Use riscv_supply_regset.
3552 (riscv_fbsd_fpregset): Likewise.
3553 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3554 (riscv_linux_fregset): Likewise.
3555 * riscv-tdep.c (riscv_supply_regset): Define new function.
3556 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3557
3558 2021-01-18 Tom de Vries <tdevries@suse.de>
3559
3560 PR tdep/27172
3561 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3562 New macro.
3563 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3564 for SEGV_BNDERR.
3565
3566 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3567
3568 * remote.c (class remote_target) <remote_hostio_send_command,
3569 remote_hostio_parse_result>: Constify parameter.
3570 (remote_hostio_parse_result): Likewise.
3571 (remote_target::remote_hostio_send_command): Adjust.
3572 (remote_target::remote_hostio_pread_vFile): Adjust.
3573 (remote_target::fileio_readlink): Adjust.
3574 (remote_target::fileio_fstat): Adjust.
3575
3576 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3577
3578 * remote.c (remote_target::start_remote): Move wait_status to
3579 narrower scope.
3580
3581 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3582
3583 * remote.c (class remote_target):
3584 <add_current_inferior_and_thread>: Constify parameter.
3585 (stop_reply_extract_thread): Likewise.
3586 (remote_target::get_current_thread): Likewise.
3587 (remote_target::add_current_inferior_and_thread): Likewise.
3588
3589 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3590
3591 * remote.c (class remote_target)
3592 <remote_unpack_thread_info_response,
3593 parse_threadlist_response>: Constify parameter and/or return
3594 value and or local variable.
3595 (stub_unpack_int): Likewise.
3596 (unpack_nibble): Likewise.
3597 (unpack_byte): Likewise.
3598 (unpack_int): Likewise.
3599 (unpack_string): Likewise.
3600 (unpack_threadid): Likewise.
3601 (remote_target::remote_unpack_thread_info_response): Likewise.
3602 (remote_target::parse_threadlist_response): Likewise.
3603
3604 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3605
3606 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3607
3608 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
3609
3610 * MAINTAINERS (Write After Approval): Add myself.
3611
3612 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3613
3614 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3615 because is_trivially_default_constructible was first implemented with
3616 gcc-5.
3617
3618 2021-01-14 Tom de Vries <tdevries@suse.de>
3619
3620 PR breakpoints/27151
3621 * objfiles.h (in_plt_section): Handle .plt.sec.
3622
3623 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3624
3625 PR gdb/26819
3626 * remote.c
3627 (remote_target::select_thread_for_ambiguous_stop_reply): New
3628 member function.
3629 (remote_target::process_stop_reply): Call
3630 select_thread_for_ambiguous_stop_reply.
3631
3632 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3633
3634 * record-btrace.c (class record_btrace_target): Remove.
3635 (record_btrace_target::commit_resume): Remove.
3636 * record-full.c (class record_full_target): Remove.
3637 (record_full_target::commit_resume): Remove.
3638
3639 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3640
3641 * remote.c (enum class resume_state): New.
3642 (struct resumed_pending_vcont_info): New.
3643 (struct remote_thread_info) <resume_state, set_not_resumed,
3644 set_resumed_pending_vcont, resumed_pending_vcont_info,
3645 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3646 New.
3647 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3648 (remote_target::remote_add_thread): Adjust.
3649 (remote_target::process_initial_stop_replies): Adjust.
3650 (remote_target::resume): Adjust.
3651 (remote_target::commit_resume): Rely on state in
3652 remote_thread_info and not on tp->executing.
3653 (remote_target::process_stop_reply): Adjust.
3654
3655 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3656
3657 * arc-tdep.h (arc_debug_printf): New.
3658 * arc-tdep.c: Use arc_debug_printf.
3659 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3660 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3661 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3662
3663 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3664
3665 * arc-tdep.h (arc_debug): Change type to bool.
3666 * arc-tdep.c (arc_debug): Change type to bool.
3667 (arc_analyze_prologue): Adjust.
3668 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3669 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3670
3671 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3672
3673 * auto-load.c (auto_load_objfile_script_1): Use bool.
3674 (execute_script_contents): Use bool.
3675
3676 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3677
3678 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3679 comment here.
3680 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3681 comment to header.
3682 * extension-priv.h (struct extension_language_script_ops)
3683 <auto_load_enabled>: Return bool.
3684 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3685 comment here.
3686 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3687 comment to header.
3688 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3689 move comment here.
3690 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3691 move comment to header.
3692 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3693 move comment here.
3694 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3695 move comment to header.
3696
3697 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3698
3699 * auto-load.h (file_is_auto_load_safe): Change return type to
3700 bool, move comment here.
3701 * auto-load.c (file_is_auto_load_safe): Change return type and
3702 advice_printed to bool. Move comment to header.
3703
3704 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3705
3706 * jit.c (jit_debug_printf): New, use throughout file.
3707
3708 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3709
3710 * infrun.c (normal_stop): Fix indentation.
3711
3712 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3713
3714 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3715 declarations to ...
3716 * symfile.h: ... here.
3717 * symfile.c: Update doc.
3718
3719 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3720
3721 * target.h (baud_rate, serial_parity): Move declarations...
3722 * serial.h: ... here.
3723 * main.c: Include serial.h.
3724 * serial.c (baud_rate, serial_parity): Update doc.
3725
3726 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3727
3728 * top.c (pre_init_ui_hook): Remove.
3729
3730 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3731
3732 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3733 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3734 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3735 * features/aarch64-fpu.xml: Add bfloat16 type.
3736
3737 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3738
3739 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3740
3741 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3742
3743 * f-exp.y (dot_ops): Rename to...
3744 (fortran_operators): ...this. Add a header comment. Add symbol
3745 based operators.
3746 (yylex): Update to use fortran_operators not dot_ops. Remove
3747 special handling for '**', this is now included in
3748 fortran_operators.
3749
3750 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3751
3752 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3753 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3754 * aarch64-tdep.c: Use aarch64_debug_printf.
3755
3756 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3757
3758 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3759 file.
3760
3761 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3762
3763 * jit.c (jit_debug): Change type to bool.
3764 (_initialize_jit): Adjust.
3765
3766 2021-01-09 Tom Tromey <tom@tromey.com>
3767
3768 PR compile/23672
3769 * compile/compile.c (compile_to_object): Avoid crash when
3770 osabi_triplet_regexp returns NULL.
3771
3772 2021-01-09 Tom Tromey <tom@tromey.com>
3773
3774 * tracepoint.h (class collection_list) <append_exp>: Take a
3775 std::string.
3776 * tracepoint.c (collection_list::append_exp): Take a std::string.
3777 (encode_actions_1): Update.
3778
3779 2021-01-08 Tom Tromey <tromey@adacore.com>
3780
3781 * parse.c (parse_expression): Add void_context_p parameter. Use
3782 parse_exp_in_context.
3783 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3784 parse_expression.
3785 (print_command, call_command): Update.
3786 * expression.h (parse_expression): Add void_context_p parameter.
3787
3788 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3789
3790 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3791 for internalvar components that have a dynamic location.
3792
3793 2021-01-08 Tom de Vries <tdevries@suse.de>
3794
3795 PR gdb/26881
3796 * breakpoint.c (create_exception_master_breakpoint_probe)
3797 (create_exception_master_breakpoint_hook): Factor out
3798 of ...
3799 (create_exception_master_breakpoint): ... here. Only try to install
3800 the master exception breakpoint in objfile.debug using the
3801 _Unwind_DebugHook method, if the install using probes in objfile
3802 failed.
3803
3804 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3805
3806 * f-lang.c (fortran_value_subarray): Call value_from_component.
3807
3808 2021-01-07 Mike Frysinger <vapier@gentoo.org>
3809
3810 * remote-sim.c: Include memory-map.h.
3811 (gdbsim_target): Define memory_map override.
3812 (gdbsim_target::memory_map): Define.
3813
3814 2021-01-07 Tom Tromey <tromey@adacore.com>
3815
3816 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3817
3818 2021-01-07 Tom Tromey <tromey@adacore.com>
3819
3820 * ada-lang.c (add_component_interval): Start loop using vector's
3821 updated size.
3822
3823 2021-01-06 Tom Tromey <tromey@adacore.com>
3824
3825 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3826 Do not cast result.
3827 * valarith.c (fixed_point_binop): Handle multiplication
3828 and division specially.
3829 * valops.c (value_to_gdb_mpq): New function.
3830 (value_cast_to_fixed_point): Use it.
3831
3832 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3833
3834 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3835 Call wnoutrefresh instead of tui_win_info::refresh_window.
3836
3837 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3838
3839 * tui/tui-source.c (tui_source_window::show_line_number):
3840 Redraw second space after line number.
3841
3842 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3843
3844 PR tui/26927
3845 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3846 Fix source pad size in prefresh.
3847 (tui_source_window_base::show_source_content): Grow source pad
3848 if necessary.
3849
3850 2021-01-04 Mike Frysinger <vapier@gentoo.org>
3851
3852 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3853 (bfin_frame_align): Use align_down.
3854
3855 2021-01-04 Tom de Vries <tdevries@suse.de>
3856
3857 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3858 terminators that do not terminate anything.
3859
3860 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3861
3862 * debug.c (debug_print_depth): New.
3863 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3864 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3865 * infrun.c (start_step_over): Use
3866 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3867 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3868 INFRUN_SCOPED_DEBUG_START_END.
3869 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3870
3871 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3872
3873 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3874
3875 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3876
3877 * utils.c (vfprintf_unfiltered): Print timestamp only when
3878 previous debug output ended with a newline.
3879
3880 2021-01-04 Luis Machado <luis.machado@linaro.org>
3881
3882 Update all users of trad_frame_saved_reg to use the new member
3883 functions.
3884
3885 Remote all struct keywords from declarations of trad_frame_saved_reg
3886 types, except on forward declarations.
3887
3888 * aarch64-tdep.c: Update.
3889 * alpha-mdebug-tdep.c: Update.
3890 * alpha-tdep.c: Update.
3891 * arc-tdep.c: Update.
3892 * arm-tdep.c: Update.
3893 * avr-tdep.c: Update.
3894 * cris-tdep.c: Update.
3895 * csky-tdep.c: Update.
3896 * frv-tdep.c: Update.
3897 * hppa-linux-tdep.c: Update.
3898 * hppa-tdep.c: Update.
3899 * hppa-tdep.h: Update.
3900 * lm32-tdep.c: Update.
3901 * m32r-linux-tdep.c: Update.
3902 * m32r-tdep.c: Update.
3903 * m68hc11-tdep.c: Update.
3904 * mips-tdep.c: Update.
3905 * moxie-tdep.c: Update.
3906 * riscv-tdep.c: Update.
3907 * rs6000-tdep.c: Update.
3908 * s390-linux-tdep.c: Update.
3909 * s390-tdep.c: Update.
3910 * score-tdep.c: Update.
3911 * sparc-netbsd-tdep.c: Update.
3912 * sparc-sol2-tdep.c: Update.
3913 * sparc64-fbsd-tdep.c: Update.
3914 * sparc64-netbsd-tdep.c: Update.
3915 * sparc64-obsd-tdep.c: Update.
3916 * sparc64-sol2-tdep.c: Update.
3917 * tilegx-tdep.c: Update.
3918 * v850-tdep.c: Update.
3919 * vax-tdep.c: Update.
3920
3921 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3922 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3923
3924 * trad-frame.c: Update.
3925 Remove TF_REG_* enum.
3926 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3927 a trivially-constructible struct.
3928 (trad_frame_reset_saved_regs): Adjust to use member function.
3929 (trad_frame_value_p): Likewise.
3930 (trad_frame_addr_p): Likewise.
3931 (trad_frame_realreg_p): Likewise.
3932 (trad_frame_value_bytes_p): Likewise.
3933 (trad_frame_set_value): Likewise.
3934 (trad_frame_set_realreg): Likewise.
3935 (trad_frame_set_addr): Likewise.
3936 (trad_frame_set_unknown): Likewise.
3937 (trad_frame_set_value_bytes): Likewise.
3938 (trad_frame_get_prev_register): Likewise.
3939 * trad-frame.h: Update.
3940 (trad_frame_saved_reg_kind): New enum.
3941 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3942 <m_kind, m_reg>: New member fields.
3943 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3944 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3945 <is_addr, is_unknown, is_value_bytes>: New member functions.
3946
3947 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3948
3949 * target-float.c: Fix typos.
3950
3951 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
3952
3953 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3954
3955 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3956
3957 * gdbarch.sh: Update copyright year range.
3958
3959 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3960
3961 Update copyright year range in copyright header of all GDB files.
3962
3963 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3964
3965 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3966 to the list of directories to update.
3967
3968 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3969
3970 * top.c (print_gdb_version): Update copyright year.
3971
3972 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3973
3974 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
3975
3976 For older changes see ChangeLog-2020.
3977 \f
3978 Local Variables:
3979 mode: change-log
3980 left-margin: 8
3981 fill-column: 74
3982 version-control: never
3983 coding: utf-8
3984 End: