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