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