]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Convert quick_symbol_functions to use methods
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
39298a5d
TT
12021-03-20 Tom Tromey <tom@tromey.com>
2
3 * psympriv.h (struct psymbol_functions): New.
4 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
5 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
6 (objfile::lookup_global_symbol_language): Update.
7 * quick-symbol.h (struct quick_symbol_functions): Convert function
8 pointers to methods. Add virtual destructor.
9 (quick_symbol_functions_up): New typedef.
10 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
11 (dwarf2_debug_names_functions): Don't declare.
12 (make_psymbol_functions): Declare.
13 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
14 (psymbol_functions::find_pc_sect_compunit_symtab)
15 (psymbol_functions::lookup_symbol)
16 (psymbol_functions::lookup_global_symbol_language)
17 (psymbol_functions::find_last_source_symtab)
18 (psymbol_functions::forget_cached_source_info)
19 (psymbol_functions::print_stats, psymbol_functions::dump)
20 (psymbol_functions::expand_symtabs_for_function)
21 (psymbol_functions::expand_all_symtabs)
22 (psymbol_functions::expand_symtabs_with_fullname)
23 (psymbol_functions::map_symbol_filenames)
24 (psymbol_functions::map_matching_symbols)
25 (psymbol_functions::expand_symtabs_matching)
26 (psymbol_functions::has_symbols)
27 (psymbol_functions::find_compunit_symtab_by_address): Rename.
28 (psym_functions): Remove.
29 (make_psymbol_functions): New function.
30 * objfiles.h (struct objfile) <qf>: Change type.
31 * elfread.c (elf_symfile_read): Update.
32 * dwarf2/read.c (struct dwarf2_base_index_functions)
33 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
34 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
35 (dwarf2_base_index_functions::find_last_source_symtab)
36 (dwarf2_base_index_functions::forget_cached_source_info)
37 (dwarf2_base_index_functions::map_symtabs_matching_filename)
38 (dwarf2_gdb_index::lookup_symbol)
39 (dwarf2_base_index_functions::print_stats)
40 (dwarf2_gdb_index::dump)
41 (dwarf2_gdb_index::expand_symtabs_for_function)
42 (dwarf2_base_index_functions::expand_all_symtabs)
43 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
44 Rename.
45 (dwarf2_gdb_index::map_matching_symbols): New method.
46 (dwarf2_gdb_index::expand_symtabs_matching): New method.
47 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
48 (dwarf2_base_index_functions::map_symbol_filenames)
49 (dwarf2_base_index_functions::has_symbols): Rename.
50 (dwarf2_gdb_index_functions): Remove.
51 (dwarf2_debug_names_index::lookup_symbol)
52 (dwarf2_debug_names_index::dump)
53 (dwarf2_debug_names_index::expand_symtabs_for_function)
54 (dwarf2_debug_names_index::map_matching_symbols)
55 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
56 (dwarf2_debug_names_functions): Remove.
57 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
58 Declare.
59
5c3f1e5b
TT
602021-03-20 Tom Tromey <tom@tromey.com>
61
62 * psymtab.c (require_partial_symbols): Check that 'sf' is not
63 null.
64 * xcoffread.c (xcoff_sym_fns): Update.
65 * symfile.h (struct sym_fns) <qf>: Remove.
66 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
67 * symfile-debug.c (objfile::has_partial_symbols)
68 (objfile::find_last_source_symtab)
69 (objfile::forget_cached_source_info)
70 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
71 (objfile::print_stats, objfile::dump)
72 (objfile::expand_symtabs_for_function)
73 (objfile::expand_all_symtabs)
74 (objfile::expand_symtabs_with_fullname)
75 (objfile::map_matching_symbols)
76 (objfile::expand_symtabs_matching)
77 (objfile::find_pc_sect_compunit_symtab)
78 (objfile::map_symbol_filenames)
79 (objfile::find_compunit_symtab_by_address)
80 (objfile::lookup_global_symbol_language, debug_sym_fns)
81 (install_symfile_debug_logging): Update.
82 * objfiles.h (struct objfile) <qf>: New member.
83 * mipsread.c (ecoff_sym_fns): Update.
84 * machoread.c (macho_sym_fns): Update.
85 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
86 Don't declare.
87 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
88 * dbxread.c (aout_sym_fns): Update.
89 * coffread.c (coff_sym_fns): Update.
90
9b99dcc8
TT
912021-03-20 Tom Tromey <tom@tromey.com>
92
93 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
94 (expand_symtabs_file_matcher_ftype)
95 (expand_symtabs_symbol_matcher_ftype)
96 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
97 Move to quick-symbol.h.
98 * quick-symbol.h: New file.
99
4d080b46
TT
1002021-03-20 Tom Tromey <tom@tromey.com>
101
102 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
103 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
104 (basic_lookup_transparent_type_quick)
105 (find_pc_sect_compunit_symtab, find_symbol_at_address)
106 (find_line_symtab, global_symbol_searcher::expand_symtabs):
107 Update.
108 * symmisc.c (print_objfile_statistics, dump_objfile)
109 (maintenance_expand_symtabs): Update.
110 * symfile.c (symbol_file_add_with_addrs)
111 (expand_symtabs_matching, map_symbol_filenames): Update.
112 * symfile-debug.c (objfile::has_partial_symbols)
113 (objfile::find_last_source_symtab)
114 (objfile::forget_cached_source_info)
115 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
116 (objfile::print_stats, objfile::dump)
117 (objfile::expand_symtabs_for_function)
118 (objfile::expand_all_symtabs)
119 (objfile::expand_symtabs_with_fullname)
120 (objfile::map_matching_symbols)
121 (objfile::expand_symtabs_matching)
122 (objfile::find_pc_sect_compunit_symtab)
123 (objfile::map_symbol_filenames)
124 (objfile::find_compunit_symtab_by_address)
125 (objfile::lookup_global_symbol_language): New methods.
126 (debug_sym_quick_functions): Remove.
127 (debug_sym_fns, install_symfile_debug_logging): Update.
128 * source.c (forget_cached_source_info_for_objfile)
129 (select_source_symtab): Update.
130 * objfiles.h (struct objfile): Add methods corresponding to
131 quick_symbol_functions.
132 * objfiles.c (objfile::has_partial_symbols): Move to
133 symfile-debug.c.
134 * linespec.c (iterate_over_all_matching_symtabs): Update.
135 * cp-support.c (add_symbol_overload_list_qualified): Update.
136 * ada-lang.c (add_nonlocal_symbols): Update.
137
fae2120b
TT
1382021-03-20 Tom Tromey <tom@tromey.com>
139
140 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
141 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
142 bool.
143 * symfile-debug.c (debug_qf_has_symbols): Return bool.
144 * psymtab.c (psym_has_symbols): Return bool.
145 * objfiles.c (objfile::has_partial_symbols): Return bool.
146 * dwarf2/read.c (dw2_has_symbols): Return bool.
147
a8ad4f3c
TT
1482021-03-20 Tom Tromey <tom@tromey.com>
149
150 * symfile.c (read_symbols): Update.
151 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
152 (objfile_has_partial_symbols): Don't declare.
153 * objfiles.c (objfile::has_partial_symbols): Rename from
154 objfile_has_partial_symbols.
155 (objfile_has_symbols, have_partial_symbols): Update.
156 * elfread.c (elf_symfile_read): Update.
157 * dwarf2/read.c (dwarf2_has_info): Update.
158 * coffread.c (coff_symfile_read): Update.
159
70182375
TT
1602021-03-20 Tom Tromey <tom@tromey.com>
161
162 * coffread.c: Include dwarf2/public.h.
163 * dwarf2/frame.c: Include dwarf2/public.h.
164 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
165 * dwarf2/public.h: New file.
166 * dwarf2/read.c: Include dwarf2/public.h.
167 * elfread.c: Include dwarf2/public.h.
168 * machoread.c: Include dwarf2/public.h.
169 * symfile.h (dwarf2_has_info, enum dw_index_kind)
170 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
171 (dwarf2_build_frame_info): Move to dwarf2/public.h.
172 * xcoffread.c: Include dwarf2/public.h.
173
18038e63
TT
1742021-03-20 Tom Tromey <tom@tromey.com>
175
176 * symfile.h (enum dwarf2_section_enum)
177 (dwarf2_get_section_info): Move to dwarf2/read.h.
178 * dwarf2/read.h (enum dwarf2_section_enum)
179 (dwarf2_get_section_info): Move from symfile.h.
180
219f56b4
PA
1812021-03-19 Pedro Alves <pedro@palves.net>
182
183 * thread.c (any_thread_of_inferior): Check if there's a selected
184 thread before calling inferior_thread().
185
15310fd4
TT
1862021-03-18 Tom Tromey <tromey@adacore.com>
187
188 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
189 get_DW_UT_name.
190 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
191 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
192
763b8efd
AB
1932021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
194
195 * python/py-param.c (get_set_value): Update header comment.
196
f058c521
SM
1972021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
198
199 * infrun.c (check_multi_target_resumption): Remove argument to
200 all_non_exited_inferiors.
201
383228bc
CB
2022021-03-16 Christian Biesinger <cbiesinger@google.com>
203
204 * windows-nat.c (windows_init_thread_list): Add message to
205 debug log.
206
7807d76a
AB
2072021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
208
209 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
210 well as PyLong_Check for Python 2.
211
675da9a5
TT
2122021-03-15 Tom Tromey <tromey@adacore.com>
213
214 PR build/27579:
215 * rust-exp.y (maker_map): Use gdb::hash_enum.
216 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
217
4800761a
SM
2182021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
219
220 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
221 end of debug print.
222
eb5dd737
SM
2232021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
224
225 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
226 parameter, adjust caller.
227
6813ceb0
TT
2282021-03-15 Tom Tromey <tromey@adacore.com>
229
230 * ada-exp.y (simple_exp): Always push a result for unary '+'.
231
3b5c4de0
TT
2322021-03-15 Tom Tromey <tromey@adacore.com>
233
234 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
235 ada_ensure_varsize_limit.
236
c04da66c
TT
2372021-03-15 Tom Tromey <tromey@adacore.com>
238
239 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
240 fixed-point.
241 * ada-exp.y (maybe_overload): New function.
242 (ada_wrap_overload): New function.
243 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
244 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
245 (or_else_exp, xor_exp, primary): Update.
246
9863c3b5
TT
2472021-03-15 Tom Tromey <tromey@adacore.com>
248
249 PR ada/27545:
250 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
251 call for tagged type.
252
1ac74522
TT
2532021-03-15 Tom Tromey <tromey@adacore.com>
254
255 * ada-exp.y (exp1): Handle resolution of the right hand side of an
256 assignment.
257
207582c0
TT
2582021-03-15 Tom Tromey <tromey@adacore.com>
259
260 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
261 container.
262 (ada_assign_operation::evaluate): Update.
263 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
264 Change return type.
265
8d624a9d
FW
2662021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
267
268 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
269
ba6a0ef3
AB
2702021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
271
272 * python/python.c (gdbpy_source_objfile_script): Use
273 make_scoped_restore to restore gdbpy_current_objfile.
274 (gdbpy_execute_objfile_script): Likewise.
275
7c290a04
TT
2762021-03-14 Tom Tromey <tom@tromey.com>
277
278 * dwarf2/read.c (read_attribute_value): Use cu_header
279 consistently.
280
0280fdcc
TT
2812021-03-14 Tom Tromey <tom@tromey.com>
282
283 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
284 (peek_die_abbrev): Use reader.abfd.
285
a9f172c6
TT
2862021-03-14 Tom Tromey <tom@tromey.com>
287
288 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
289 m_header_read_in.
290
7c32eebb
TT
2912021-03-13 Tom Tromey <tom@tromey.com>
292
293 * dwarf2/read.c (struct partial_die_info): Update.
294 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
295 (load_partial_dies, partial_die_info::partial_die_info): Update.
296 * dwarf2/abbrev.h (lookup_abbrev): Constify.
297
27012aba
TT
2982021-03-13 Tom Tromey <tom@tromey.com>
299
300 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
301
fece451c
CB
3022021-03-12 Christian Biesinger <cbiesinger@google.com>
303
304 PR threads/27239
305 * cp-support.c: Use scoped_segv_handler_restore.
306 * event-top.c (thread_local_segv_handler): Made static.
307 (scoped_segv_handler_restore::scoped_segv_handler_restore):
308 New function.
309 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
310 function.
311 * event-top.h (class scoped_segv_handler_restore): New class.
312 (thread_local_segv_handler): Removed.
313
7056f312
TT
3142021-03-10 Tom Tromey <tromey@adacore.com>
315
316 * parser-defs.h (parser_state): Change completion to bool.
317 <parse_completion>: Likewise.
318 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
319 (ada_resolve_variable, ada_resolve_function): Update.
320 * ada-lang.c (ada_find_operator_symbol): Change
321 parse_completion to bool.
322 (ada_resolve_funcall, ada_resolve_variable)
323 (ada_resolve_function): Likewise.
324
ccdc02ed
TT
3252021-03-09 Tom Tromey <tromey@adacore.com>
326
327 * eval.c (operation::evaluate_funcall): Use function formal
328 parameter types when evaluating.
329
fbb1aace
AB
3302021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
331
332 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
333 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
334 and owner to m_owner.
335
611aa09d
FW
3362021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
337
338 * f-exp.h (eval_op_f_loc): Declare.
339 (expr::fortran_loc_operation): New typedef.
340 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
341 UNOP_INTRINSIC.
342 (f77_keywords): Add LOC keyword.
343 * f-lang.c (eval_op_f_loc): New function.
344 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
345
eef32f59
AB
3462021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
347
348 * f-exp.h (eval_op_f_array_shape): Declare.
349 (fortran_array_shape_operation): New type.
350 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
351 UNOP_INTRINSIC.
352 (f77_keywords): Add "shape" keyword.
353 * f-lang.c (fortran_array_shape): New function.
354 (eval_op_f_array_shape): New function.
355 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
356
7ba155b3
AB
3572021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
358
359 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
360 of this function.
361 (expr::fortran_array_size_1arg): New type.
362 (expr::fortran_array_size_2arg): Likewise.
363 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
364 UNOP_OR_BINOP_INTRINSIC.
365 (f77_keywords): Add "size" keyword.
366 * f-lang.c (fortran_array_size): New function.
367 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
368 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
369
e14816a8
AB
3702021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
371
372 * f-exp.h (eval_op_f_rank): Declare.
373 (expr::fortran_rank_operation): New typedef.
374 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
375 UNOP_INTRINSIC.
376 (f77_keywords): Add "rank" keyword.
377 * f-lang.c (eval_op_f_rank): New function.
378 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
379
3dd93bf8
TT
3802021-03-08 Tom Tromey <tom@tromey.com>
381
382 * printcmd.c (set_command): Remove null check.
383 * value.c (init_if_undefined_command): Remove null check.
384
9c79936b
TT
3852021-03-08 Tom Tromey <tom@tromey.com>
386
387 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
388 Update.
389 * p-exp.y (variable): Update.
390 * go-exp.y (variable): Update.
391 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
392 Remove overload for objfile.
393 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
394 parameter.
395 (check_objfile): Likewise.
396 (dump_for_expression): Likewise. Remove overload for objfile.
397 (class var_msym_value_operation): Use bound_minimal_symbol.
398 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
399 parameter.
400 (var_msym_value_operation::evaluate_for_address)
401 (var_msym_value_operation::evaluate_for_sizeof)
402 (var_msym_value_operation::evaluate_for_cast): Update.
403 * d-exp.y (PrimaryExpression): Update.
404 * c-exp.y (variable): Update.
405 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
406 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
407 Update.
408 * ada-exp.y (write_var_or_type): Update.
409
40d07d07
TT
4102021-03-08 Tom Tromey <tom@tromey.com>
411
412 * parser-defs.h (exp_uses_objfile): Return bool.
413 * parse.c (exp_uses_objfile): Return bool.
414
0b2b0b82
TT
4152021-03-08 Tom Tromey <tom@tromey.com>
416
417 * value.h (eval_skip_value): Don't declare.
418 * opencl-lang.c (eval_opencl_assign): Update.
419 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
420 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
421 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
422 * expression.h (enum noside) <EVAL_SKIP>: Remove.
423 * expop.h (typeof_operation::evaluate)
424 (decltype_operation::evaluate, unop_addr_operation::evaluate)
425 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
426 (cxx_cast_operation::evaluate): Update.
427 * eval.c (eval_skip_value): Remove.
428 (eval_op_scope, eval_op_var_entry_value)
429 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
430 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
431 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
432 (eval_op_binary, eval_op_subscript, eval_op_equal)
433 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
434 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
435 (eval_op_complement, eval_op_lognot, eval_op_ind)
436 (eval_op_memval, eval_op_preinc, eval_op_predec)
437 (eval_op_postinc, eval_op_postdec, eval_op_type)
438 (eval_binop_assign_modify, eval_op_objc_msgcall)
439 (eval_multi_subscript, logical_and_operation::evaluate)
440 (logical_or_operation::evaluate, array_operation::evaluate)
441 (operation::evaluate_for_cast)
442 (var_msym_value_operation::evaluate_for_cast)
443 (var_value_operation::evaluate_for_cast): Update.
444 * c-lang.c (c_string_operation::evaluate): Update.
445 * c-exp.h (objc_nsstring_operation::evaluate)
446 (objc_selector_operation::evaluate): Update.
447 * ada-lang.c (ada_assign_operation::evaluate)
448 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
449 (ada_atr_size): Update.
450
96db551d
TT
4512021-03-08 Tom Tromey <tom@tromey.com>
452
453 * eval.c: Merge "namespace" scopes.
454
ce284361
TT
4552021-03-08 Tom Tromey <tom@tromey.com>
456
457 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
458 <release>: Inline.
459 * parse.c (expr_builder::expr_builder, expr_builder::release):
460 Remove.
461
b9d06571
TT
4622021-03-08 Tom Tromey <tom@tromey.com>
463
464 * parse.c (expression::expression, expression::~expression):
465 Remove.
466 * expression.h (struct expression): Inline constructor. Remove
467 destructor.
468
79ab486e
TT
4692021-03-08 Tom Tromey <tom@tromey.com>
470
471 * std-operator.def (BINOP_END): Remove.
472 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
473 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
474 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
475 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
476 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
477 BINOP_END.
478
48fa6f23
TT
4792021-03-08 Tom Tromey <tom@tromey.com>
480
481 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
482
43f542e3
TT
4832021-03-08 Tom Tromey <tom@tromey.com>
484
485 * std-operator.def (OP_EXTENDED0): Remove.
486
5d9ba982
TT
4872021-03-08 Tom Tromey <tom@tromey.com>
488
489 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
490 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
491 Remove.
492
d357570d
TT
4932021-03-08 Tom Tromey <tom@tromey.com>
494
495 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
496 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
497
0922dc84
TT
4982021-03-08 Tom Tromey <tom@tromey.com>
499
500 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
501 * ada-lang.c (ada_binop_minmax): Update.
502 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
503 Use BINOP_MIN and BINOP_MAX.
504
1eaebe02
TT
5052021-03-08 Tom Tromey <tom@tromey.com>
506
507 * value.h (evaluate_subexp_with_coercion): Don't declare.
508 * parse.c (exp_descriptor_standard): Remove.
509 (expr_builder::expr_builder, expr_builder::release): Update.
510 (expression::expression): Remove size_t parameter.
511 (expression::~expression): Simplify.
512 (expression::resize): Remove.
513 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
514 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
515 (write_exp_elt_longcst, write_exp_elt_floatcst)
516 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
517 (write_exp_string_vector, write_exp_bitstring): Remove.
518 * p-lang.h (class pascal_language) <opcode_print_table,
519 op_print_tab>: Remove.
520 * p-lang.c (pascal_language::op_print_tab): Remove.
521 * opencl-lang.c (class opencl_language) <opcode_print_table>:
522 Remove.
523 * objc-lang.c (objc_op_print_tab): Remove.
524 (class objc_language) <opcode_print_table>: Remove.
525 * m2-lang.h (class m2_language) <opcode_print_table,
526 op_print_tab>: Remove.
527 * m2-lang.c (m2_language::op_print_tab): Remove.
528 * language.h (struct language_defn) <post_parser, expression_ops,
529 opcode_print_table>: Remove.
530 * language.c (language_defn::expression_ops)
531 (auto_or_unknown_language::opcode_print_table): Remove.
532 * go-lang.h (class go_language) <opcode_print_table,
533 op_print_tab>: Remove.
534 * go-lang.c (go_language::op_print_tab): Remove.
535 * f-lang.h (class f_language) <opcode_print_table>: Remove
536 <op_print_tab>: Remove.
537 * f-lang.c (f_language::op_print_tab): Remove.
538 * expression.h (union exp_element): Remove.
539 (struct expression): Remove size_t parameter from constructor.
540 <resize>: Remove.
541 <first_opcode>: Update.
542 <nelts, elts>: Remove.
543 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
544 (evaluate_subexp_standard, print_expression, op_string)
545 (dump_raw_expression): Don't declare.
546 * expprint.c (print_expression, print_subexp)
547 (print_subexp_funcall, print_subexp_standard, op_string)
548 (dump_raw_expression, dump_subexp, dump_subexp_body)
549 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
550 (dump_prefix_expression): Update.
551 * eval.c (evaluate_subexp): Remove.
552 (evaluate_expression, evaluate_type): Update.
553 (evaluate_subexpression_type): Remove.
554 (fetch_subexp_value): Remove "pc" parameter. Update.
555 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
556 (evaluate_subexp_standard, evaluate_subexp_for_address)
557 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
558 (evaluate_subexp_for_cast): Remove.
559 (parse_and_eval_type): Update.
560 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
561 * d-lang.c (d_op_print_tab): Remove.
562 (class d_language) <opcode_print_table>: Remove.
563 * c-lang.h (c_op_print_tab): Don't declare.
564 * c-lang.c (c_op_print_tab): Remove.
565 (class c_language, class cplus_language, class asm_language, class
566 minimal_language) <opcode_print_table>: Remove.
567 * breakpoint.c (update_watchpoint, watchpoint_check)
568 (watchpoint_exp_is_const, watch_command_1): Update.
569 * ax-gdb.h (union exp_element): Don't declare.
570 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
571 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
572 (gen_expr_binop_rest): Remove.
573 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
574 * ada-lang.c (ada_op_print_tab): Remove.
575 (class ada_language) <post_parser, opcode_print_table>: Remove.
576
f2a98603
TT
5772021-03-08 Tom Tromey <tom@tromey.com>
578
579 * go-lang.c (go_language::expression_ops): Don't declare.
580 * go-lang.h (class go_language) <expression_ops>: Remove.
581 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
582 Remove.
583 (class opencl_language) <expression_ops>: Remove.
584 * d-lang.c (class d_language) <expression_ops>: Remove.
585 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
586 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
587 (class c_language, class cplus_language, class asm_language)
588 (class minimal_language) <expression_ops>: Remove.
589
d3c54a1c
TT
5902021-03-08 Tom Tromey <tom@tromey.com>
591
592 * ada-lang.c (resolve_subexp, replace_operator_with_call)
593 (evaluate_subexp_type, assign_aggregate)
594 (aggregate_assign_positional, aggregate_assign_from_choices)
595 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
596 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
597 (ada_operator_check, ada_forward_operator_length)
598 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
599 Remove.
600 (post_parser): Update.
601 (class ada_language) <expresssion_ops>: Remove.
602
5871f0a3
TT
6032021-03-08 Tom Tromey <tom@tromey.com>
604
605 * m2-lang.h (class m2_language) <expresssion_ops,
606 exp_descriptor_modula2>: Remove.
607 * m2-lang.c (evaluate_subexp_modula2)
608 (m2_language::exp_descriptor_modula2): Remove.
609
a99be8c1
TT
6102021-03-08 Tom Tromey <tom@tromey.com>
611
612 * f-lang.h (class f_language) <expresssion_ops>: Remove.
613 <exp_descriptor_tab>: Remove.
614 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
615 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
616 (print_subexp_f, dump_subexp_body_f, operator_check_f)
617 (f_language::exp_descriptor_tab, fortran_prepare_argument):
618 Remove.
619
aa1da9ed
TT
6202021-03-08 Tom Tromey <tom@tromey.com>
621
622 * rust-lang.h (class rust_language) <expression_ops,
623 exp_descriptor_tab>: Remove.
624 * rust-lang.c (rust_evaluate_funcall): Remove.
625 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
626 EVAL_SKIP.
627 (rust_evaluate_subexp): Remove.
628 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
629 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
630 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
631
08a057e6
TT
6322021-03-08 Tom Tromey <tom@tromey.com>
633
634 * ada-exp.y: Create operations.
635 (empty_stoken): Remove.
636 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
637 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
638 (components): New global.
639 (push_component, choice_component, pop_component, pop_components):
640 New functions.
641 (associations): New global
642 (push_association, pop_association, pop_associations): New
643 functions.
644 (ada_parse): Update.
645 (write_var_from_sym, write_int): Create operations.
646 (write_exp_op_with_string): Remove.
647 (write_object_renaming, write_selectors, write_ambiguous_var)
648 (write_var_or_type, write_name_assoc): Create operations.
649 * ada-lang.h (ada_index_type): Declare.
650 * ada-lang.c (ada_index_type): No longer static.
651
d308ba78
TT
6522021-03-08 Tom Tromey <tom@tromey.com>
653
654 * f-exp.y: Create operations.
655 (f_language::parser): Update.
656
f1b8ceef
TT
6572021-03-08 Tom Tromey <tom@tromey.com>
658
659 * m2-exp.y: Create operations.
660 (m2_language::parser): Update.
661
3163898e
TT
6622021-03-08 Tom Tromey <tom@tromey.com>
663
664 * p-exp.y: Create operations.
665 (pascal_language::parser): Update.
666
9412fdcc
TT
6672021-03-08 Tom Tromey <tom@tromey.com>
668
669 * d-exp.y: Create operations.
670 (d_parse): Update.
671
bb4e0574
TT
6722021-03-08 Tom Tromey <tom@tromey.com>
673
674 * go-exp.y: Create operations.
675 (go_language::parser): Update.
676
d182f279
TT
6772021-03-08 Tom Tromey <tom@tromey.com>
678
679 * objc-lang.c (end_msglist): Create operations.
680 * c-exp.y: Change parser to create operations.
681 (write_destructor_name): Remove.
682 (c_parse): Update.
683
c1299a23
TT
6842021-03-08 Tom Tromey <tom@tromey.com>
685
686 * rust-exp.y: Create operations.
687 (rust_parser::convert_params_to_expression): Change return type.
688 (binop_maker_ftype): New typedef.
689 (maker_map): New global.
690 (rust_parser::convert_ast_to_expression): Change return type.
691 (rust_language::parser): Update.
692 (_initialize_rust_exp): Initialize maker_map.
693
4c5e7a93
TT
6942021-03-08 Tom Tromey <tom@tromey.com>
695
696 * stap-probe.c (binop_maker_ftype): New typedef.
697 (stap_maker_map): New global.
698 (stap_make_binop): New function.
699 (stap_parse_register_operand): Return operation_up.
700 (stap_parse_single_operand, stap_parse_argument_conditionally)
701 (stap_parse_argument_1): Likewise.
702 (stap_parse_argument): Create operations.
703 (stap_probe::parse_arguments): Update.
704 (_initialize_stap_probe): Initialize stap_maker_map.
705 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
706 type.
707 * i386-tdep.h (i386_stap_parse_special_token): Change return
708 type.
709 * i386-tdep.c (i386_stap_parse_special_token_triplet)
710 (i386_stap_parse_special_token_three_arg_disp)
711 (i386_stap_parse_special_token): Change return type.
712 * gdbarch.sh (stap_parse_special_token): Change return type.
713 * gdbarch.c: Rebuild.
714 * gdbarch.h: Rebuild.
715 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
716 type.
717 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
718 return type.
719
482ddd69
TT
7202021-03-08 Tom Tromey <tom@tromey.com>
721
722 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
723 * gdbarch.h: Rebuild.
724 * gdbarch.c: Rebuild.
725 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
726 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
727 return type.
728 (amd64_dtrace_parse_probe_argument): Update.
729
8227d9e2
TT
7302021-03-08 Tom Tromey <tom@tromey.com>
731
732 * parser-defs.h (struct parser_state) <push, push_new,
733 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
734 wrap2>: New methods.
735 <m_operations>: New member.
736 * parse.c (parser_state::push_c_string)
737 (parser_state::push_symbol, parser_state::push_dollar): New
738 methods.
739
4933522d
TT
7402021-03-08 Tom Tromey <tom@tromey.com>
741
742 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
743 New member.
744 (struct parser_state) <mark_struct_expression>: New method.
745 * parse.c (parser_state::mark_struct_expression): Update assert.
746 (parser_state::mark_struct_expression): New method.
747 (parser_state::mark_completion_tag): Update assert.
748 (parse_expression_for_completion): Handle expout_last_op.
749
413403fc
TT
7502021-03-08 Tom Tromey <tom@tromey.com>
751
752 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
753 now in superclass.
754 * value.h (fetch_subexp_value): Add "op" parameter.
755 * value.c (init_if_undefined_command): Update.
756 * tracepoint.c (validate_actionline, encode_actions_1): Update.
757 * stap-probe.c (stap_probe::compile_to_ax): Update.
758 * printcmd.c (set_command): Update.
759 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
760 Update.
761 * parser-defs.h (struct expr_builder) <set_operation>: New
762 method.
763 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
764 * expression.h (struct expression) <first_opcode>: Update.
765 <op>: New member.
766 * expprint.c (dump_raw_expression, dump_prefix_expression):
767 Update.
768 * expop.h (class var_value_operation) <get_symbol>: New method.
769 (class register_operation) <get_name>: New method.
770 (class equal_operation): No longer a typedef, now a subclass.
771 (class unop_memval_operation) <get_type>: New method.
772 (class assign_operation) <get_lhs>: New method.
773 (class unop_cast_operation) <get_type>: New method.
774 * eval.c (evaluate_expression, evaluate_type)
775 (evaluate_subexpression_type): Update.
776 (fetch_subexp_value): Add "op" parameter.
777 (parse_and_eval_type): Update.
778 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
779 * breakpoint.c (update_watchpoint, watchpoint_check)
780 (watchpoint_exp_is_const, watch_command_1): Update.
781 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
782 Update.
783
b0f9164c
TT
7842021-03-08 Tom Tromey <tom@tromey.com>
785
786 * ada-lang.c (ada_value_binop): Do not use op_string.
787
a88c4354
TT
7882021-03-08 Tom Tromey <tom@tromey.com>
789
790 * expprint.c (dump_for_expression): New overload.
791 * expop.h (check_objfile, dump_for_expression): Declare new
792 overloads.
793 * ada-lang.c (check_objfile): New overload.
794 (assign_component, ada_aggregate_component::uses_objfile)
795 (ada_aggregate_component::dump, ada_aggregate_component::assign)
796 (ada_aggregate_component::assign_aggregate)
797 (ada_positional_component::uses_objfile)
798 (ada_positional_component::dump, ada_positional_component::assign)
799 (ada_discrete_range_association::uses_objfile)
800 (ada_discrete_range_association::dump)
801 (ada_discrete_range_association::assign)
802 (ada_name_association::uses_objfile, ada_name_association::dump)
803 (ada_name_association::assign)
804 (ada_choices_component::uses_objfile, ada_choices_component::dump)
805 (ada_choices_component::assign)
806 (ada_others_component::uses_objfile, ada_others_component::dump)
807 (ada_others_component::assign, ada_assign_operation::evaluate):
808 New methods.
809 * ada-exp.h (ada_string_operation) <get_name>: New method.
810 (class ada_assign_operation): New.
811 (class ada_component): New.
812 (ada_component_up): New typedef.
813 (class ada_aggregate_operation, class ada_aggregate_component)
814 (class ada_positional_component, class ada_others_component)
815 (class ada_association): New.
816 (ada_association_up): New typedef.
817 (class ada_choices_component)
818 (class ada_discrete_range_association)
819 (class ada_name_association): New.
820
d8a4ed8a
TT
8212021-03-08 Tom Tromey <tom@tromey.com>
822
823 * ada-lang.c (ada_var_value_operation::resolve)
824 (ada_funcall_operation::resolve)
825 (ada_ternop_slice_operation::resolve): New methods.
826 * ada-exp.h (struct ada_resolvable): New.
827 (class ada_var_value_operation): Derive from ada_resolvable.
828 <get_block, resolve>: New methods.
829 (class ada_funcall_operation): Derive from ada_resolvable.
830 <resolve>: New method.
831 (class ada_ternop_slice_operation): Derive from ada_resolvable.
832 <resolve>: New method.
833
efe3af2f
TT
8342021-03-08 Tom Tromey <tom@tromey.com>
835
836 * ada-lang.c (ada_funcall_operation::evaluate): New method.
837 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
838 method.
839 (class ada_funcall_operation): New.
840
ebc06ad8
TT
8412021-03-08 Tom Tromey <tom@tromey.com>
842
843 * ada-lang.c (ada_structop_operation::evaluate): New method.
844 * ada-exp.h (class ada_structop_operation): New.
845
e8c33fa1
TT
8462021-03-08 Tom Tromey <tom@tromey.com>
847
848 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
849 * ada-exp.h (class ada_unop_ind_operation): New.
850
065ec826
TT
8512021-03-08 Tom Tromey <tom@tromey.com>
852
853 * ada-lang.c (ada_binop_exp): No longer static.
854 * ada-exp.h (ada_binop_exp_operation): New typedef.
855
9e99f48f
TT
8562021-03-08 Tom Tromey <tom@tromey.com>
857
858 * ada-lang.c (ada_val_atr): No longer static.
859 (ada_atr_val_operation::evaluate): New method.
860 * ada-exp.h (class ada_atr_val_operation): New.
861
7631cf6c
TT
8622021-03-08 Tom Tromey <tom@tromey.com>
863
864 * ada-lang.c (ada_pos_atr): No longer static.
865 * ada-exp.h (ada_pos_operation): New typedef.
866
7992accc
TT
8672021-03-08 Tom Tromey <tom@tromey.com>
868
869 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
870 parameters.
871 (ada_evaluate_subexp): Use it.
872
6ad3b8bf
TT
8732021-03-08 Tom Tromey <tom@tromey.com>
874
875 * ada-lang.c (ada_binop_minmax): No longer static.
876 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
877 New typedefs.
878
3f4a0053
TT
8792021-03-08 Tom Tromey <tom@tromey.com>
880
881 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
882 New method.
883 * ada-exp.h (class ada_var_msym_value_operation): New.
884
99a3b1e7
TT
8852021-03-08 Tom Tromey <tom@tromey.com>
886
887 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
888 (ada_var_value_operation::evaluate): New methods.
889 * ada-exp.h (class ada_var_value_operation): New.
890
60fa02ca
TT
8912021-03-08 Tom Tromey <tom@tromey.com>
892
893 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
894 * ada-exp.h (class ada_unop_atr_operation): New.
895
82c3886e
TT
8962021-03-08 Tom Tromey <tom@tromey.com>
897
898 * ada-lang.c (ada_binop_in_bounds): No longer static.
899 * ada-exp.h (class ada_binop_in_bounds_operation): New.
900
1b1ebfab
TT
9012021-03-08 Tom Tromey <tom@tromey.com>
902
903 * ada-lang.c (ada_ternop_slice): No longer static.
904 * ada-exp.h (class ada_ternop_slice_operation): New.
905
039e4b76
TT
9062021-03-08 Tom Tromey <tom@tromey.com>
907
908 * ada-exp.h (ada_bitwise_operation): New template class.
909 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
910 (ada_bitwise_xor_operation): New typedefs.
911
6e8fb7b7
TT
9122021-03-08 Tom Tromey <tom@tromey.com>
913
914 * ada-lang.c (ada_equal_binop): No longer static.
915 * ada-exp.h (class ada_binop_equal_operation): New.
916
d9e7db06
TT
9172021-03-08 Tom Tromey <tom@tromey.com>
918
919 * ada-lang.c (ada_mult_binop): No longer static.
920 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
921 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
922
73796c73
TT
9232021-03-08 Tom Tromey <tom@tromey.com>
924
925 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
926 * ada-exp.h (class ada_binop_addsub_operation): New.
927
cd9a3148
TT
9282021-03-08 Tom Tromey <tom@tromey.com>
929
930 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
931 (ada_resolve_variable): Declare.
932 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
933 (ada_resolve_variable): New functions.
934 (resolve_subexp): Update.
935
cf12b17f
TT
9362021-03-08 Tom Tromey <tom@tromey.com>
937
938 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
939 method.
940 * c-exp.h (class opencl_ternop_cond_operation): New.
941
944fd3b8
TT
9422021-03-08 Tom Tromey <tom@tromey.com>
943
944 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
945 method.
946 * c-exp.h (class opencl_logical_binop_operation): New.
947
33b79214
TT
9482021-03-08 Tom Tromey <tom@tromey.com>
949
950 * opencl-lang.c (opencl_structop_operation::evaluate): New
951 method.
952 * c-exp.h (class opencl_structop_operation): New.
953
2492ba36
TT
9542021-03-08 Tom Tromey <tom@tromey.com>
955
956 * opencl-lang.c (opencl_logical_not): No longer static. Change
957 parameters.
958 (evaluate_subexp_opencl): Update.
959 * c-exp.h (opencl_notequal_operation): New typedef.
960
a88c3c8d
TT
9612021-03-08 Tom Tromey <tom@tromey.com>
962
963 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
964 static. Change parameters.
965 (eval_opencl_assign): No longer static. Add "op" parameter.
966 (evaluate_subexp_opencl): Update.
967 * c-exp.h (opencl_binop_operation): New template class.
968 (opencl_assign_operation, opencl_equal_operation)
969 (opencl_notequal_operation, opencl_less_operation)
970 (opencl_gtr_operation, opencl_geq_operation)
971 (opencl_leq_operation): New typedefs.
972
e9677704
TT
9732021-03-08 Tom Tromey <tom@tromey.com>
974
975 * opencl-lang.c (opencl_value_cast): No longer static.
976 * c-exp.h (opencl_cast_type_operation): New typedef.
977
f403a4e4
TT
9782021-03-08 Tom Tromey <tom@tromey.com>
979
980 * f-exp.h (eval_op_f_allocated): Declare.
981 (fortran_allocated_operation): New typedef.
982 * f-lang.c (eval_op_f_allocated): No longer static.
983
eb4c9271
TT
9842021-03-08 Tom Tromey <tom@tromey.com>
985
986 * f-lang.c (eval_op_f_associated): New functions.
987 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
988 typedefs.
989
58a76c72
TT
9902021-03-08 Tom Tromey <tom@tromey.com>
991
992 * f-lang.c (fortran_bound_1arg::evaluate)
993 (fortran_bound_2arg::evaluate): New methods.
994 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
995 New.
996
2f98abe1
TT
9972021-03-08 Tom Tromey <tom@tromey.com>
998
999 * expop.h (class unop_addr_operation) <get_expression>: New
1000 method.
1001 * f-lang.c (fortran_undetermined::value_subarray)
1002 (fortran_undetermined::evaluate): New methods.
1003 (fortran_prepare_argument): New overload.
1004 * f-exp.h (class fortran_range_operation)
1005 (class fortran_undetermined): New classes.
1006
638fd74a
TT
10072021-03-08 Tom Tromey <tom@tromey.com>
1008
1009 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1010 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1011 method.
1012
a00b7254
TT
10132021-03-08 Tom Tromey <tom@tromey.com>
1014
1015 * expression.h (class operation) <evaluate_funcall>: New methods.
1016 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1017 (class var_value_operation) <evaluate_funcall>: New method.
1018 (class structop_base_operation) <evaluate_funcall>: New method.
1019 (class var_msym_value_operation) <evaluate_funcall>: New method.
1020 (class structop_member_base): New class.
1021 (class structop_member_operation): Derive from
1022 structop_member_base.
1023 (class structop_mptr_operation): Derive from
1024 structop_member_base.
1025 (class funcall_operation): New class.
1026 * eval.c (operation::evaluate_funcall)
1027 (var_value_operation::evaluate_funcall)
1028 (scope_operation::evaluate_funcall)
1029 (structop_member_base::evaluate_funcall)
1030 (structop_base_operation::evaluate_funcall): New methods.
1031
1c02eb30
TT
10322021-03-08 Tom Tromey <tom@tromey.com>
1033
1034 * expop.h (class array_operation): New.
1035 * eval.c (array_operation::evaluate_struct_tuple)
1036 (array_operation::evaluate): New methods.
1037
e4479080
TT
10382021-03-08 Tom Tromey <tom@tromey.com>
1039
1040 * expop.h (class adl_func_operation): New.
1041 * eval.c (adl_func_operation::evaluate): New method.
1042
95d49dfb
TT
10432021-03-08 Tom Tromey <tom@tromey.com>
1044
1045 * ada-lang.c (ada_unop_in_range): No longer static.
1046 * ada-exp.h (class ada_unop_range_operation): New.
1047
7c15d377
TT
10482021-03-08 Tom Tromey <tom@tromey.com>
1049
1050 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
1051 No longer static.
1052 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
1053 (ada_atr_size_operation, ada_abs_operation): New typedefs.
1054
5019124b
TT
10552021-03-08 Tom Tromey <tom@tromey.com>
1056
1057 * expop.h (class logical_and_operation)
1058 (class logical_or_operation): New.
1059 * eval.c (logical_and_operation::evaluate)
1060 (logical_or_operation::evaluate): New methods.
1061 * ax-gdb.c (logical_and_operation::do_generate_ax)
1062 (logical_or_operation::do_generate_ax): New methods.
1063
2bc9b40c
TT
10642021-03-08 Tom Tromey <tom@tromey.com>
1065
1066 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
1067 static.
1068 * m2-exp.h: New file.
1069
5947d337
TT
10702021-03-08 Tom Tromey <tom@tromey.com>
1071
1072 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
1073 * rust-exp.h (class rust_aggregate_operation): New.
1074
e4407a20
TT
10752021-03-08 Tom Tromey <tom@tromey.com>
1076
1077 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
1078 No longer static.
1079 * rust-exp.h (class rust_struct_anon): New.
1080 (class rust_structop): New.
1081
9db6b6dd
TT
10822021-03-08 Tom Tromey <tom@tromey.com>
1083
1084 * rust-lang.c (rust_range): No longer static.
1085 * rust-exp.h (class rust_range_operation): New.
1086
6ce1ad67
TT
10872021-03-08 Tom Tromey <tom@tromey.com>
1088
1089 * rust-lang.c (rust_subscript): No longer static.
1090 * rust-exp.h (class rust_subscript_operation): New.
1091
11dd3dce
TT
10922021-03-08 Tom Tromey <tom@tromey.com>
1093
1094 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1095 parameter.
1096 (rust_evaluate_subexp): Update.
1097 * rust-exp.h (class rust_unop_ind_operation): New.
1098
6fab4359
TT
10992021-03-08 Tom Tromey <tom@tromey.com>
1100
1101 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1102 longer static. Add "opcode" parameter.
1103 (rust_evaluate_subexp): Update.
1104 * rust-exp.h: New file.
1105
9dcd3e29
TT
11062021-03-08 Tom Tromey <tom@tromey.com>
1107
1108 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1109 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1110 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1111 (evaluate_subexp_f): Update.
1112 * f-exp.h: New file.
1113
fc715eb2
TT
11142021-03-08 Tom Tromey <tom@tromey.com>
1115
1116 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1117 * ada-exp.h (class ada_ternop_range_operation): New.
1118
cc6bd32e
TT
11192021-03-08 Tom Tromey <tom@tromey.com>
1120
1121 * ada-lang.c (ada_qual_operation::evaluate): New method.
1122 * ada-exp.h (class ada_qual_operation): New.
1123
42fecb61
TT
11242021-03-08 Tom Tromey <tom@tromey.com>
1125
1126 * ada-lang.c (ada_string_operation::evaluate): New method.
1127 * ada-exp.h (class ada_string_operation): New.
1128
03070ee9
TT
11292021-03-08 Tom Tromey <tom@tromey.com>
1130
1131 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
1132 * ada-exp.h: New file.
1133
821e72d7
TT
11342021-03-08 Tom Tromey <tom@tromey.com>
1135
1136 * expop.h (class multi_subscript_operation): New.
1137 * eval.c (multi_subscript_operation::evaluate): New method.
1138
085734dd
TT
11392021-03-08 Tom Tromey <tom@tromey.com>
1140
1141 * eval.c (objc_msgcall_operation::evaluate): New method.
1142 * c-exp.h (class objc_msgcall_operation): New.
1143
e82a5afc
TT
11442021-03-08 Tom Tromey <tom@tromey.com>
1145
1146 * expop.h (class var_value_operation): New.
1147 * eval.c (var_value_operation::evaluate)
1148 (var_value_operation::evaluate_for_address)
1149 (var_value_operation::evaluate_with_coercion)
1150 (var_value_operation::evaluate_for_sizeof)
1151 (var_value_operation::evaluate_for_cast): New methods.
1152 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
1153
d9ad79d8
TT
11542021-03-08 Tom Tromey <tom@tromey.com>
1155
1156 * expop.h (cxx_cast_ftype): New typedef.
1157 (cxx_cast_operation): New template.
1158 (dynamic_cast_operation, reinterpret_cast_operation): New
1159 typedefs.
1160
292382f4
TT
11612021-03-08 Tom Tromey <tom@tromey.com>
1162
1163 * expop.h (class unop_cast_type_operation): New.
1164 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
1165 method.
1166
165a813a
TT
11672021-03-08 Tom Tromey <tom@tromey.com>
1168
1169 * expop.h (class unop_cast_operation): New.
1170 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
1171
e5946e16
TT
11722021-03-08 Tom Tromey <tom@tromey.com>
1173
1174 * expop.h (class assign_modify_operation): New.
1175 * eval.c (eval_binop_assign_modify): No longer static.
1176 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1177
40786782
TT
11782021-03-08 Tom Tromey <tom@tromey.com>
1179
1180 * expop.h (class assign_operation): New.
1181 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1182
44b675c8
TT
11832021-03-08 Tom Tromey <tom@tromey.com>
1184
1185 * expop.h (class type_instance_operation): New.
1186 * eval.c (type_instance_operation::evaluate): New method.
1187
f6b42326
TT
11882021-03-08 Tom Tromey <tom@tromey.com>
1189
1190 * expop.h (class op_this_operation): New.
1191 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1192
cbc18219
TT
11932021-03-08 Tom Tromey <tom@tromey.com>
1194
1195 * expop.h (class unop_memval_operation)
1196 (class unop_memval_type_operation): New.
1197 * eval.c (eval_op_memval): No longer static.
1198 (unop_memval_operation::evaluate_for_address)
1199 (unop_memval_type_operation::evaluate_for_address)
1200 (unop_memval_operation::evaluate_for_sizeof)
1201 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1202 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1203 (unop_memval_type_operation::do_generate_ax): New methods.
1204
ae4bb61e
TT
12052021-03-08 Tom Tromey <tom@tromey.com>
1206
1207 * expop.h (class unop_alignof_operation): New.
1208 * eval.c (eval_op_alignof): No longer static.
1209
85d23bda
TT
12102021-03-08 Tom Tromey <tom@tromey.com>
1211
1212 * expop.h (class unop_sizeof_operation): New.
1213 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1214
14aff815
TT
12152021-03-08 Tom Tromey <tom@tromey.com>
1216
1217 * expop.h (class unop_addr_operation): New.
1218 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1219
929f3aa7
TT
12202021-03-08 Tom Tromey <tom@tromey.com>
1221
1222 * expop.h (class typeid_operation): New.
1223
0af8829e
TT
12242021-03-08 Tom Tromey <tom@tromey.com>
1225
1226 * expop.h (class decltype_operation): New.
1227
4efc574c
TT
12282021-03-08 Tom Tromey <tom@tromey.com>
1229
1230 * expop.h (class typeof_operation): New.
1231
5b5f5140
TT
12322021-03-08 Tom Tromey <tom@tromey.com>
1233
1234 * expop.h (class type_operation): New.
1235 * eval.c (eval_op_type): No longer static.
1236
876469ff
TT
12372021-03-08 Tom Tromey <tom@tromey.com>
1238
1239 * expop.h (class unop_ind_base_operation)
1240 (class unop_ind_operation): New.
1241 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1242 (unop_ind_base_operation::evaluate_for_address)
1243 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1244 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1245
6d89e296
TT
12462021-03-08 Tom Tromey <tom@tromey.com>
1247
1248 * expop.h (unop_incr_operation): New template.
1249 (preinc_operation, predec_operation, postinc_operation)
1250 (postdec_operation): New typedefs.
1251 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1252 (eval_op_postdec): No longer static.
1253
9307d17b
TT
12542021-03-08 Tom Tromey <tom@tromey.com>
1255
1256 * expop.h (unary_ftype): New typedef.
1257 (unop_operation, usual_ax_binop_operation): New templates.
1258 (unary_plus_operation, unary_neg_operation)
1259 (unary_complement_operation, unary_logical_not_operation): New
1260 typedefs.
1261 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1262 (eval_op_lognot): No longer static.
1263 * ax-gdb.c (gen_expr_unop): New function.
1264
ae64ba58
TT
12652021-03-08 Tom Tromey <tom@tromey.com>
1266
1267 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1268
d4eff4c1
TT
12692021-03-08 Tom Tromey <tom@tromey.com>
1270
1271 * expop.h (class repeat_operation): New.
1272 * eval.c (eval_op_repeat): No longer static. Remove "op"
1273 parameter.
1274 (evaluate_subexp_standard): Update.
1275 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1276
46916f2b
TT
12772021-03-08 Tom Tromey <tom@tromey.com>
1278
1279 * expop.h (class comparison_operation): New.
1280 (equal_operation, notequal_operation, less_operation)
1281 (gtr_operation, geq_operation, leq_operation): New typedefs.
1282 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1283 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1284
224d6424
TT
12852021-03-08 Tom Tromey <tom@tromey.com>
1286
1287 * expop.h (class subscript_operation): New.
1288 * eval.c (eval_op_subscript): No longer static.
1289
373907ff
TT
12902021-03-08 Tom Tromey <tom@tromey.com>
1291
1292 * expop.h (class binop_operation, class usual_ax_binop_operation):
1293 New.
1294 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1295 (div_operation, rem_operation, lsh_operation, rsh_operation)
1296 (bitwise_and_operation, bitwise_ior_operation)
1297 (bitwise_xor_operation): New typedefs.
1298 * eval.c (eval_op_binary): No longer static.
1299
5133d78b
TT
13002021-03-08 Tom Tromey <tom@tromey.com>
1301
1302 * expop.h (class sub_operation): New.
1303 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1304 (evaluate_subexp_standard): Update.
1305
a94323b6
TT
13062021-03-08 Tom Tromey <tom@tromey.com>
1307
1308 * expop.h (class add_operation): New.
1309 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1310 (evaluate_subexp_standard): Update.
1311
e51e26a0
TT
13122021-03-08 Tom Tromey <tom@tromey.com>
1313
1314 * expop.h (class concat_operation): New.
1315 * eval.c (eval_op_concat): No longer static. Remove "op"
1316 parameter.
1317 (evaluate_subexp_standard): Update.
1318
07f724a8
TT
13192021-03-08 Tom Tromey <tom@tromey.com>
1320
1321 * expop.h (class structop_member_operation)
1322 (class structop_mptr_operation): New.
1323 * eval.c (eval_op_member): No longer static.
1324
ab0609be
TT
13252021-03-08 Tom Tromey <tom@tromey.com>
1326
1327 * expop.h (class structop_ptr_operation): New.
1328 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1329 parameter.
1330
808b22cf
TT
13312021-03-08 Tom Tromey <tom@tromey.com>
1332
1333 * expop.h (class structop_base_operation)
1334 (class structop_operation): New.
1335 * eval.c (eval_op_structop_struct): No longer static.
1336
8cfd3e95
TT
13372021-03-08 Tom Tromey <tom@tromey.com>
1338
1339 * expop.h (class complex_operation): New.
1340
09db3700
TT
13412021-03-08 Tom Tromey <tom@tromey.com>
1342
1343 * eval.c (eval_op_objc_selector): No longer static.
1344 * c-exp.h (class objc_selector_operation): New.
1345
06dc61b9
TT
13462021-03-08 Tom Tromey <tom@tromey.com>
1347
1348 * eval.c: Include c-exp.h.
1349 * c-exp.h (class objc_nsstring_operation): New.
1350
72d0a711
TT
13512021-03-08 Tom Tromey <tom@tromey.com>
1352
1353 * c-lang.c (c_string_operation::evaluate): New method.
1354 * c-exp.h: New file.
1355
9186293f
TT
13562021-03-08 Tom Tromey <tom@tromey.com>
1357
1358 * expop.h (class ternop_cond_operation): New.
1359 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1360
1594e0bb
TT
13612021-03-08 Tom Tromey <tom@tromey.com>
1362
1363 * expop.h (class ternop_slice_operation): New.
1364 * eval.c (eval_op_ternop): No longer static.
1365
b50db09f
TT
13662021-03-08 Tom Tromey <tom@tromey.com>
1367
1368 * expop.h (class string_operation): New.
1369 * eval.c (eval_op_string): No longer static.
1370
e6e01e16
TT
13712021-03-08 Tom Tromey <tom@tromey.com>
1372
1373 * expop.h (class internalvar_operation): New.
1374 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1375
e6985c5e
TT
13762021-03-08 Tom Tromey <tom@tromey.com>
1377
1378 * expop.h (class bool_operation): New.
1379
55bdbff8
TT
13802021-03-08 Tom Tromey <tom@tromey.com>
1381
1382 * expop.h (class register_operation): New.
1383 * eval.c (eval_op_register): No longer static.
1384 * ax-gdb.c (register_operation::do_generate_ax): New method.
1385
247d935b
TT
13862021-03-08 Tom Tromey <tom@tromey.com>
1387
1388 * expop.h (class last_operation): New.
1389
17679395
TT
13902021-03-08 Tom Tromey <tom@tromey.com>
1391
1392 * expop.h (class func_static_var_operation): New.
1393 * eval.c (eval_op_func_static_var): No longer static.
1394
b5cc3923
TT
13952021-03-08 Tom Tromey <tom@tromey.com>
1396
1397 * expop.h (class var_entry_value_operation): New.
1398 * eval.c (eval_op_var_entry_value): No longer static.
1399
0c8effa3
TT
14002021-03-08 Tom Tromey <tom@tromey.com>
1401
1402 * expression.h (class operation) <set_outermost>: New method.
1403 * expop.h (class var_msym_value_operation): New.
1404 * eval.c (eval_op_var_msym_value): No longer static.
1405 (var_msym_value_operation::evaluate_for_address)
1406 (var_msym_value_operation::evaluate_for_sizeof)
1407 (var_msym_value_operation::evaluate_for_cast): New methods.
1408 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1409 method.
1410
d336c29e
TT
14112021-03-08 Tom Tromey <tom@tromey.com>
1412
1413 * expop.h (class long_const_operation): New.
1414 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1415
d5ab122c
TT
14162021-03-08 Tom Tromey <tom@tromey.com>
1417
1418 * expop.h (class scope_operation): New.
1419 * eval.c (eval_op_scope): No longer static.
1420 (scope_operation::evaluate_for_address): New method.
1421 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1422
cae26a0c
TT
14232021-03-08 Tom Tromey <tom@tromey.com>
1424
1425 * expprint.c (float_const_operation::dump): New method.
1426 * expop.h (float_data): New typedef.
1427 (class float_const_operation): New.
1428
75f9892d
TT
14292021-03-08 Tom Tromey <tom@tromey.com>
1430
1431 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1432 * ax-gdb.c (gen_expr_binop): New function.
1433 (gen_expr_structop): Likewise.
1434
de401988
TT
14352021-03-08 Tom Tromey <tom@tromey.com>
1436
1437 * expprint.c (expr::dump_for_expression): New functions.
1438 * expop.h (dump_for_expression): New overloads.
1439 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1440 Update.
1441
e2803273
TT
14422021-03-08 Tom Tromey <tom@tromey.com>
1443
1444 * expression.h (expr::operation): New class.
1445 (expr::make_operation): New function.
1446 (expr::operation_up): New typedef.
1447 * expop.h: New file.
1448 * eval.c (operation::evaluate_for_cast)
1449 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1450 New methods.
1451 * ax-gdb.c (operation::generate_ax): New method.
1452
e18c58f2
TT
14532021-03-08 Tom Tromey <tom@tromey.com>
1454
1455 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1456 (gen_expr_binop_rest): New overload.
1457
c0d7ed8c
TT
14582021-03-08 Tom Tromey <tom@tromey.com>
1459
1460 * eval.c (eval_multi_subscript): New function.
1461 (evaluate_subexp_standard): Use it.
1462
dd5fd283
TT
14632021-03-08 Tom Tromey <tom@tromey.com>
1464
1465 * ada-lang.c (ada_binop_exp): New function.
1466 (ada_evaluate_subexp): Use it.
1467
3848abd6
TT
14682021-03-08 Tom Tromey <tom@tromey.com>
1469
1470 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1471 parameters.
1472 (ada_evaluate_subexp): Use it.
1473
38dc70cf
TT
14742021-03-08 Tom Tromey <tom@tromey.com>
1475
1476 * ada-lang.c (ada_binop_minmax): New function.
1477 (ada_evaluate_subexp): Use it.
1478
b84564fc
TT
14792021-03-08 Tom Tromey <tom@tromey.com>
1480
1481 * ada-lang.c (ada_unop_atr): New function.
1482 (ada_evaluate_subexp): Use it.
1483
b467efaa
TT
14842021-03-08 Tom Tromey <tom@tromey.com>
1485
1486 * ada-lang.c (ada_binop_in_bounds): New function.
1487 (ada_evaluate_subexp): Use it.
1488
5ce19db8
TT
14892021-03-08 Tom Tromey <tom@tromey.com>
1490
1491 * ada-lang.c (ada_ternop_slice): New function.
1492 (ada_evaluate_subexp): Use it.
1493
214b13ac
TT
14942021-03-08 Tom Tromey <tom@tromey.com>
1495
1496 * ada-lang.c (ada_equal_binop): New function.
1497 (ada_evaluate_subexp): Use it.
1498
faa1dfd7
TT
14992021-03-08 Tom Tromey <tom@tromey.com>
1500
1501 * ada-lang.c (ada_mult_binop): New function.
1502 (ada_evaluate_subexp): Use it.
1503
d05e24e6
TT
15042021-03-08 Tom Tromey <tom@tromey.com>
1505
1506 * ada-lang.c (ada_abs): New function.
1507 (ada_evaluate_subexp): Use it.
1508
68c75735
TT
15092021-03-08 Tom Tromey <tom@tromey.com>
1510
1511 * ada-lang.c (ada_atr_size): New function.
1512 (ada_evaluate_subexp): Use it.
1513
020dbabe
TT
15142021-03-08 Tom Tromey <tom@tromey.com>
1515
1516 * ada-lang.c (ada_atr_tag): New function.
1517 (ada_evaluate_subexp): Use it.
1518
7efc87ff
TT
15192021-03-08 Tom Tromey <tom@tromey.com>
1520
1521 * ada-lang.c (ada_unop_in_range): New function.
1522 (ada_evaluate_subexp): Use it.
1523
82390ab8
TT
15242021-03-08 Tom Tromey <tom@tromey.com>
1525
1526 * ada-lang.c (ada_unop_neg): New function.
1527 (ada_evaluate_subexp): Use it.
1528
62d4bd94
TT
15292021-03-08 Tom Tromey <tom@tromey.com>
1530
1531 * ada-lang.c (eval_ternop_in_range): New function.
1532 (ada_evaluate_subexp): Use it.
1533
3634f669
TT
15342021-03-08 Tom Tromey <tom@tromey.com>
1535
1536 * opencl-lang.c (eval_opencl_assign): New function.
1537 (evaluate_subexp_opencl): Use it.
1538
5e80600e
TT
15392021-03-08 Tom Tromey <tom@tromey.com>
1540
1541 * eval.c (eval_op_objc_msgcall): New function.
1542 (evaluate_subexp_standard): Use it.
1543
fb5ba2ab
TT
15442021-03-08 Tom Tromey <tom@tromey.com>
1545
1546 * eval.c (eval_binop_assign_modify): New function.
1547 (evaluate_subexp_standard): Use it.
1548
a49881f7
TT
15492021-03-08 Tom Tromey <tom@tromey.com>
1550
1551 * m2-lang.c (eval_op_m2_subscript): New function.
1552 (evaluate_subexp_modula2): Use it.
1553
41bdced5
TT
15542021-03-08 Tom Tromey <tom@tromey.com>
1555
1556 * m2-lang.c (eval_op_m2_high): New function.
1557 (evaluate_subexp_modula2): Use it.
1558
13ea014a
TT
15592021-03-08 Tom Tromey <tom@tromey.com>
1560
1561 * eval.c (evaluate_subexp_for_address_base): New function.
1562 (evaluate_subexp_for_address): Use it.
1563 (evaluate_subexp_for_sizeof_base): New function.
1564 (evaluate_subexp_for_sizeof): Use it.
1565
1fa41fc7
TT
15662021-03-08 Tom Tromey <tom@tromey.com>
1567
1568 * rust-lang.c (eval_op_rust_structop): New function.
1569 (rust_evaluate_subexp): Use it.
1570
575cae23
TT
15712021-03-08 Tom Tromey <tom@tromey.com>
1572
1573 * rust-lang.c (eval_op_rust_struct_anon): New function.
1574 (rust_evaluate_subexp): Use it.
1575
05104233
TT
15762021-03-08 Tom Tromey <tom@tromey.com>
1577
1578 * rust-lang.c (eval_op_rust_array): New function.
1579 (rust_evaluate_subexp): Use it.
1580
6fa9831f
TT
15812021-03-08 Tom Tromey <tom@tromey.com>
1582
1583 * rust-lang.c (eval_op_rust_complement): New function.
1584 (rust_evaluate_subexp): Use it.
1585
d123f9e4
TT
15862021-03-08 Tom Tromey <tom@tromey.com>
1587
1588 * rust-lang.c (eval_op_rust_ind): New function.
1589 (rust_evaluate_subexp): Use it.
1590
984af2cb
TT
15912021-03-08 Tom Tromey <tom@tromey.com>
1592
1593 * rust-lang.c (rust_subscript): Change parameters.
1594 (rust_evaluate_subexp): Update.
1595
d148f803
TT
15962021-03-08 Tom Tromey <tom@tromey.com>
1597
1598 * rust-lang.c (rust_range): Change parameters.
1599 (rust_evaluate_subexp): Update.
1600
9cbd1c20
TT
16012021-03-08 Tom Tromey <tom@tromey.com>
1602
1603 * f-lang.c (eval_op_f_allocated): New function.
1604 (evaluate_subexp_f): Use it.
1605
3c18c49c
TT
16062021-03-08 Tom Tromey <tom@tromey.com>
1607
1608 * f-lang.c (fortran_require_array): New function.
1609 (evaluate_subexp_f): Use it.
1610
216f6fcb
TT
16112021-03-08 Tom Tromey <tom@tromey.com>
1612
1613 * f-lang.c (eval_op_f_kind): New function.
1614 (evaluate_subexp_f): Use it.
1615
00f2db6f
TT
16162021-03-08 Tom Tromey <tom@tromey.com>
1617
1618 * f-lang.c (eval_op_f_cmplx): New function.
1619 (evaluate_subexp_f): Use it.
1620
93b2b5fa
TT
16212021-03-08 Tom Tromey <tom@tromey.com>
1622
1623 * f-lang.c (eval_op_f_modulo): New function.
1624 (evaluate_subexp_f): Use it.
1625
9f1a1f3c
TT
16262021-03-08 Tom Tromey <tom@tromey.com>
1627
1628 * f-lang.c (eval_op_f_floor): New function.
1629 (evaluate_subexp_f): Use it.
1630
3dc41f3c
TT
16312021-03-08 Tom Tromey <tom@tromey.com>
1632
1633 * f-lang.c (eval_op_f_ceil): New function.
1634 (evaluate_subexp_f): Use it.
1635
e08109f2
TT
16362021-03-08 Tom Tromey <tom@tromey.com>
1637
1638 * f-lang.c (eval_op_f_mod): New function.
1639 (evaluate_subexp_f): Use it.
1640
cc05c68e
TT
16412021-03-08 Tom Tromey <tom@tromey.com>
1642
1643 * f-lang.c (eval_op_f_abs): New function.
1644 (evaluate_subexp_f): Use it.
1645
aec95807
TT
16462021-03-08 Tom Tromey <tom@tromey.com>
1647
1648 * eval.c (eval_op_type): New function.
1649 (evaluate_subexp_standard): Use it.
1650
a220ead5
TT
16512021-03-08 Tom Tromey <tom@tromey.com>
1652
1653 * eval.c (eval_op_postdec): New function.
1654 (evaluate_subexp_standard): Use it.
1655
abffe116
TT
16562021-03-08 Tom Tromey <tom@tromey.com>
1657
1658 * eval.c (eval_op_postinc): New function.
1659 (evaluate_subexp_standard): Use it.
1660
9e1361b7
TT
16612021-03-08 Tom Tromey <tom@tromey.com>
1662
1663 * eval.c (eval_op_predec): New file.
1664 (evaluate_subexp_standard): Use it.
1665
00f50884
TT
16662021-03-08 Tom Tromey <tom@tromey.com>
1667
1668 * eval.c (eval_op_preinc): New function.
1669 (evaluate_subexp_standard): Use it.
1670
3aef2a07
TT
16712021-03-08 Tom Tromey <tom@tromey.com>
1672
1673 * eval.c (eval_op_memval): New function.
1674 (evaluate_subexp_standard): Use it.
1675
acee9468
TT
16762021-03-08 Tom Tromey <tom@tromey.com>
1677
1678 * eval.c (eval_op_alignof): New function.
1679 (evaluate_subexp_standard): Use it.
1680
786f70ee
TT
16812021-03-08 Tom Tromey <tom@tromey.com>
1682
1683 * eval.c (eval_op_ind): New function.
1684 (evaluate_subexp_standard): Use it.
1685
24338fb9
TT
16862021-03-08 Tom Tromey <tom@tromey.com>
1687
1688 * eval.c (eval_op_lognot): New function.
1689 (evaluate_subexp_standard): Use it.
1690
1f09ec81
TT
16912021-03-08 Tom Tromey <tom@tromey.com>
1692
1693 * eval.c (eval_op_complement): New function.
1694 (evaluate_subexp_standard): Use it.
1695
606d105f
TT
16962021-03-08 Tom Tromey <tom@tromey.com>
1697
1698 * eval.c (eval_op_neg): New function.
1699 (evaluate_subexp_standard): Use it.
1700
39f288be
TT
17012021-03-08 Tom Tromey <tom@tromey.com>
1702
1703 * eval.c (eval_op_plus): New function.
1704 (evaluate_subexp_standard): Use it.
1705
eed70b1c
TT
17062021-03-08 Tom Tromey <tom@tromey.com>
1707
1708 * eval.c (eval_op_repeat): New function.
1709 (evaluate_subexp_standard): Use it.
1710
60cdd487
TT
17112021-03-08 Tom Tromey <tom@tromey.com>
1712
1713 * eval.c (eval_op_leq): New function.
1714 (evaluate_subexp_standard): Use it.
1715
96e3efd9
TT
17162021-03-08 Tom Tromey <tom@tromey.com>
1717
1718 * eval.c (eval_op_geq): New function.
1719 (evaluate_subexp_standard): Use it.
1720
1f78d732
TT
17212021-03-08 Tom Tromey <tom@tromey.com>
1722
1723 * eval.c (eval_op_gtr): New function.
1724 (evaluate_subexp_standard): Use it.
1725
6cad1349
TT
17262021-03-08 Tom Tromey <tom@tromey.com>
1727
1728 * eval.c (eval_op_less): New function.
1729 (evaluate_subexp_standard): Use it.
1730
1fcb3559
TT
17312021-03-08 Tom Tromey <tom@tromey.com>
1732
1733 * eval.c (eval_op_notequal): New function.
1734 (evaluate_subexp_standard): Use it.
1735
0cc96de8
TT
17362021-03-08 Tom Tromey <tom@tromey.com>
1737
1738 * eval.c (eval_op_equal): New function.
1739 (evaluate_subexp_standard): Use it.
1740
288d26bc
TT
17412021-03-08 Tom Tromey <tom@tromey.com>
1742
1743 * eval.c (eval_op_subscript): New function.
1744 (evaluate_subexp_standard): Use it.
1745
7cdcdd02
TT
17462021-03-08 Tom Tromey <tom@tromey.com>
1747
1748 * eval.c (eval_op_binary): New function.
1749 (evaluate_subexp_standard): Use it.
1750
d9790e22
TT
17512021-03-08 Tom Tromey <tom@tromey.com>
1752
1753 * eval.c (eval_op_sub): New function.
1754 (evaluate_subexp_standard): Use it.
1755
aedaf9ac
TT
17562021-03-08 Tom Tromey <tom@tromey.com>
1757
1758 * eval.c (eval_op_add): New function.
1759 (evaluate_subexp_standard): Use it.
1760
b7a96ed2
TT
17612021-03-08 Tom Tromey <tom@tromey.com>
1762
1763 * eval.c (eval_op_member): New function.
1764 (evaluate_subexp_standard): Use it.
1765
fb461aa3
TT
17662021-03-08 Tom Tromey <tom@tromey.com>
1767
1768 * eval.c (eval_op_structop_ptr): New function.
1769 (evaluate_subexp_standard): Use it.
1770
3e96c4fc
TT
17712021-03-08 Tom Tromey <tom@tromey.com>
1772
1773 * eval.c (eval_op_structop_struct): New function.
1774 (evaluate_subexp_standard): Use it.
1775
f960a617
TT
17762021-03-08 Tom Tromey <tom@tromey.com>
1777
1778 * eval.c (eval_op_ternop): New function.
1779 (evaluate_subexp_standard): Use it.
1780
5c2f201e
TT
17812021-03-08 Tom Tromey <tom@tromey.com>
1782
1783 * eval.c (eval_op_concat): New function.
1784 (evaluate_subexp_standard): Use it.
1785
f871bae1
TT
17862021-03-08 Tom Tromey <tom@tromey.com>
1787
1788 * eval.c (eval_op_objc_selector): New function.
1789 (evaluate_subexp_standard): Use it.
1790
14a1c64a
TT
17912021-03-08 Tom Tromey <tom@tromey.com>
1792
1793 * eval.c (eval_op_string): New function.
1794 (evaluate_subexp_standard): Use it.
1795
ffff730b
TT
17962021-03-08 Tom Tromey <tom@tromey.com>
1797
1798 * eval.c (eval_op_register): New function.
1799 (evaluate_subexp_standard): Use it.
1800
9b1d8af6
TT
18012021-03-08 Tom Tromey <tom@tromey.com>
1802
1803 * eval.c (eval_op_func_static_var): New function.
1804 (evaluate_subexp_standard): Use it.
1805
c0df9289
TT
18062021-03-08 Tom Tromey <tom@tromey.com>
1807
1808 * eval.c (eval_op_var_msym_value): New function.
1809 (evaluate_subexp_standard): Use it.
1810
50b98adc
TT
18112021-03-08 Tom Tromey <tom@tromey.com>
1812
1813 * eval.c (eval_op_var_entry_value): New function.
1814 (evaluate_subexp_standard): Use it.
1815
ea2d29f7
TT
18162021-03-08 Tom Tromey <tom@tromey.com>
1817
1818 * eval.c (eval_op_scope): New function.
1819 (evaluate_subexp_standard): Use it.
1820
01573d73
TT
18212021-03-06 Chernov Sergey <klen_s@mail.ru>
1822
1823 PR gdb/27528:
1824 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1825
9938d15a
TT
18262021-03-06 Tom Tromey <tom@tromey.com>
1827
1828 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1829 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1830 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1831 (locate_dwz_sections, dwz_search_other_debugdirs)
1832 (dwarf2_get_dwz_file): Move to dwz.c.
1833 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1834 read.h.
1835 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1836 (dwarf2_get_dwz_file): Move from read.c.
1837
18035655
TT
18382021-03-06 Tom Tromey <tom@tromey.com>
1839
1840 * debuginfod-support.h: Include scoped_fd.h.
1841
a7308ce0
TT
18422021-03-06 Tom Tromey <tom@tromey.com>
1843
1844 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1845 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1846 (get_abbrev_section_for_cu, read_attribute_value)
1847 (get_debug_line_section): Update.
1848 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1849
fbedd546
TT
18502021-03-06 Tom Tromey <tom@tromey.com>
1851
1852 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1853 method.
1854 * dwarf2/read.c (section_is_p): Remove.
1855 (dwarf2_per_bfd::locate_sections)
1856 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1857 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1858 (dwarf2_locate_common_dwp_sections)
1859 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1860 Update.
1861
c2a62a3d
TT
18622021-03-06 Tom Tromey <tom@tromey.com>
1863
1864 * xcoffread.c: Include sect-names.h.
1865 * symfile.h (struct dwarf2_section_names, struct
1866 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1867 * dwarf2/sect-names.h: New file, from symfile.h.
1868 * dwarf2/read.c: Include sect-names.h.
1869
4444f407
TT
18702021-03-06 Tom Tromey <tom@tromey.com>
1871
1872 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1873 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1874 (abbrev_table::read): Update.
1875 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1876 (struct abbrev_info): Reformat.
1877 <attrs>: Now an array.
1878 (struct abbrev_table) <alloc_abbrev>: Remove.
1879
dd99cf0c
WP
18802021-03-06 Weimin Pan <weimin.pan@oracle.com>
1881
1882 * ctfread.c (ctf_psymtab_add_enums): New function.
1883 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1884
844be3f2
WP
18852021-03-06 Weimin Pan <weimin.pan@oracle.com>
1886
1887 * ctfread.c (read_func_kind_type): Set up function arguments.
1888
b2668f28
AB
18892021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1890 Andrew Burgess <andrew.burgess@embecosm.com>
1891
1892 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1893 includes.
1894 (riscv_csrset): New static global.
1895 (riscv_update_csrmap): New function.
1896 (riscv_iterate_over_regset_sections): Process CSRs.
1897
d782d24b
AB
18982021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 * riscv-tdep.c (riscv_feature_name_csr): Define.
1901 (riscv_feature_name_cpu): Define.
1902 (riscv_feature_name_fpu): Define.
1903 (riscv_feature_name_virtual): Define.
1904 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1905 (riscv_freg_feature): Use riscv_feature_name_fpu.
1906 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1907 (riscv_csr_feature): Use riscv_feature_name_csr.
1908 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1909
fb8f3fc0
AB
19102021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1911 Craig Blackmore <craig.blackmore@embecosm.com>
1912
1913 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1914 (ALLDEPFILES): Add riscv-none-tdep.c.
1915 * configure: Regenerate.
1916 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1917 support.
1918 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1919 * elf-none-tdep.c: New file.
1920 * elf-none-tdep.h: New file.
1921 * riscv-none-tdep.c: New file.
1922
95ce627a
AB
19232021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1924 Andrew Burgess <andrew.burgess@embecosm.com>
1925
1926 * corelow.c: Add 'xml-tdesc.h' include.
1927 (core_target::read_description): Load the target description from
1928 the core file when possible.
1929 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1930 note.
1931 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1932 (gcore_elf_make_tdesc_note): New function.
1933 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1934 * linux-tdep.c (linux_make_corefile_notes): Add target description
1935 note.
1936
f3a5df7b
AB
19372021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * Makefile.in (SFILES): Add gcore-elf.c.
1940 (HFILES_NO_SRCDIR): Add gcore-elf.h
1941 * configure: Regenerate.
1942 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1943 support.
1944 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1945 (struct fbsd_collect_regset_section_cb_data): Delete.
1946 (fbsd_collect_regset_section_cb): Delete.
1947 (fbsd_collect_thread_registers): Delete.
1948 (struct fbsd_corefile_thread_data): Delete.
1949 (fbsd_corefile_thread): Delete.
1950 (fbsd_make_corefile_notes): Call
1951 gcore_elf_build_thread_register_notes instead of the now deleted
1952 FreeBSD code.
1953 * gcore-elf.c: New file, the content was moved here from
1954 linux-tdep.c, functions were renamed and given minor cleanup.
1955 * gcore-elf.h: New file.
1956 * gcore.c (gcore_find_signalled_thread): Moved here from
1957 linux-tdep.c and given a new name. Minor cleanups.
1958 * gcore.h (gcore_find_signalled_thread): Declare.
1959 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1960 (struct linux_collect_regset_section_cb_data): Delete.
1961 (linux_collect_regset_section_cb): Delete.
1962 (linux_collect_thread_registers): Delete.
1963 (linux_corefile_thread): Call
1964 gcore_elf_build_thread_register_notes.
1965 (find_signalled_thread): Delete.
1966 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1967
d1e93af6
SM
19682021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1969
1970 PR gdb/27147
1971 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1972 process_stratum_target parameter,
1973 sparc_store_inferior_registers): update callers.
1974 * sparc-nat.c (sparc_fetch_inferior_registers,
1975 sparc_store_inferior_registers): Add process_stratum_target
1976 parameter. Switch current thread before calling
1977 sparc_supply_gregset / sparc_collect_rwindow.
1978 (sparc_store_inferior_registers): Likewise.
1979 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1980 (sparc32obsd_collect_uthread): Likewise.
1981 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1982 Add assertion.
1983 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1984 sparc64obsd_supply_uthread): Add assertion.
1985
1178743e
TT
19862021-03-04 Tom Tromey <tromey@adacore.com>
1987
1988 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1989 (aux_add_nonlocal_symbols): Update.
1990 (ada_add_block_symbols): Change "found_sym" to bool.
1991
1bfa81ac
TT
19922021-03-03 Tom Tromey <tromey@adacore.com>
1993
1994 * ada-lang.c (ada_resolve_function): Update comment.
1995 (is_nonfunction, add_symbols_from_enclosing_procs)
1996 (remove_extra_symbols): Likewise.
1997 (struct match_data): Add constructor, initializers.
1998 (add_nonlocal_symbols): Remove memset.
1999 (aux_add_nonlocal_symbols): Update comment.
2000 (ada_add_block_renamings, add_nonlocal_symbols)
2001 (ada_add_all_symbols): Likewise.
2002 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2003
bbcdf9ab
TT
20042021-03-02 Tom Tromey <tromey@adacore.com>
2005
2006 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2007 (cast_to_gnat_encoded_fixed_point_type): Remove.
2008 (ada_value_cast, ada_evaluate_subexp): Update.
2009 (gnat_encoded_fixed_point_type_info)
2010 (ada_is_gnat_encoded_fixed_point_type)
2011 (gnat_encoded_fixed_point_delta)
2012 (gnat_encoded_fixed_point_scaling_factor): Remove.
2013 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2014 (gnat_encoded_fixed_point_delta)
2015 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2016 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2017 (ada_print_type): Update.
2018 * ada-valprint.c (ada_value_print_num): Update.
2019 * dwarf2/read.c (ada_get_gnat_encoded_number)
2020 (ada_get_gnat_encoded_ratio): New functions.
2021 (finish_fixed_point_type): Use them. Add parameters.
2022 (GNAT_FIXED_POINT_SUFFIX): New define.
2023 (gnat_encoded_fixed_point_type_info): New function.
2024 (read_base_type): Handle gnat encodings.
2025
5f9febe0
TT
20262021-03-02 Tom Tromey <tromey@adacore.com>
2027
2028 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2029 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2030 std::string.
2031 (GROW_VECT): Remove.
2032 (grow_vect): Remove.
2033
d1183b06
TT
20342021-03-02 Tom Tromey <tromey@adacore.com>
2035
2036 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
2037 * ada-lang.c (resolve_subexp): Update.
2038 (ada_resolve_function): Accept a vector.
2039 (is_nonfunction, add_defn_to_vec)
2040 (add_symbols_from_enclosing_procs): Likewise.
2041 (num_defns_collected, defns_collected): Remove.
2042 (remove_extra_symbols): Return a vector.
2043 (remove_irrelevant_renamings): Return void.
2044 (ada_add_local_symbols): Accept a vector.
2045 (struct match_data) <obstackp>: Remove.
2046 <resultp>: New member.
2047 (aux_add_nonlocal_symbols): Update.
2048 (ada_add_block_renamings, add_nonlocal_symbols)
2049 (ada_add_all_symbols): Accept a vector.
2050 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
2051 vector.
2052 (ada_lookup_symbol): Update.
2053 (ada_add_block_symbols): Accept a vector.
2054 (get_var_value, iterate_over_symbols): Update.
2055 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
2056 Update.
2057
886d459f
TT
20582021-03-02 Tom Tromey <tromey@adacore.com>
2059
2060 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
2061
bdcccc56
TT
20622021-03-02 Tom Tromey <tromey@adacore.com>
2063
2064 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
2065 auto_obstack.
2066 <root>: Initialize.
2067 (ada_pspace_data): Remove destructor.
2068 <sym_cache>: Now a unique_ptr.
2069 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
2070 (ada_get_symbol_cache): Use 'new'.
2071 (ada_clear_symbol_cache): Rewrite.
2072
1228719f
TT
20732021-03-02 Tom Tromey <tromey@adacore.com>
2074
2075 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
2076 is null.
2077
bb3a4efe
LS
20782021-02-27 Lancelot Six <lsix@lancelotsix.com>
2079
2080 PR gdb/27393
2081 * source.c (add_path): Skip empty dirnames.
2082
26b43ca6 20832021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
2084
2085 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
2086 include order for <sys/ptrace.h> and <asm/ptrace.h>.
2087
dffdd8b5
SM
20882021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2089
2090 PR gdb/26861
2091 * target.c (target_mourn_inferior): Only compare pids in
2092 target_mourn_inferior.
2093
64d38fdd
JM
20942021-02-25 Jan Matyas <jmatyas@codasip.com>
2095
2096 PR gdb/26819
2097 * remote.c (remote_target::start_remote): Ensure the single
2098 thread, automatically added for remote targets without the
2099 concept of threading, is initially in set to the "resumed"
2100 state.
2101 * remote.c (remote_target::add_current_inferior_and_thread):
2102 Add return value - return the main thread.
2103
2450ad54
JV
21042021-02-25 Jan Vrany <jan.vrany@labware.com>
2105
2106 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2107 (mi_tsv_created): Likewise.
2108 (mi_tsv_deleted): Likewise.
2109
30c80d88
TV
21102021-02-25 Tom de Vries <tdevries@suse.de>
2111
2112 PR symtab/27354
2113 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2114 section_kind for &dwo_file->sections.info.
2115
68337b8b
AB
21162021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2117
2118 PR fortran/26155
2119 * f-lang.c (fortran_argument_convert): Delete declaration.
2120 (fortran_prepare_argument): New function.
2121 (evaluate_subexp_f): Move logic to new function
2122 fortran_prepare_argument.
2123
faeb9f13
AB
21242021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * f-exp.y (f77_keywords): Add 'associated'.
2127 * f-lang.c (fortran_associated): New function.
2128 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
2129 (operator_length_f): Likewise.
2130 (print_unop_or_binop_subexp_f): New function.
2131 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
2132 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
2133 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
2134 (operator_check_f): Likewise.
2135 * std-operator.def: Add FORTRAN_ASSOCIATED.
2136
170f4b23
AB
21372021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * f-exp.y (fortran_operators): Add ".xor.".
2140
aa659cfa
TV
21412021-02-24 Tom de Vries <tdevries@suse.de>
2142
2143 PR symtab/27336
2144 * dwarf2/attribute.c (attribute::form_is_signed): New function
2145 factored out of ...
2146 * dwarf2/attribute.h (attribute::as_signed): ... here.
2147 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
2148 (attribute::form_is_signed): Declare.
2149 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
2150 for DW_AT_decl_file.
2151
268c77c1
KB
21522021-02-24 Kevin Buettner <kevinb@redhat.com>
2153
2154 * nat/aarch64-linux-hw-point.c: Add comment regarding include
2155 order for <sys/ptrace.h> and <asm/ptrace.h>.
2156
665af52e
KB
21572021-02-24 Kevin Buettner <kevinb@redhat.com>
2158
2159 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
2160 <sys/ptrace.h>.
2161
dd80d750
AB
21622021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2163
2164 * exec.c (set_section_command): Move variable declarations into
2165 the function body, and use std::string instead of a fixed size
2166 buffer.
2167
336aa7b7
AB
21682021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2169
2170 * exec.c (exec_target::get_section_table): Delete member function.
2171 (section_table_read_available_memory): Use current_top_target, not
2172 just the exec_ops target.
2173 * target-delegates.c: Regenerate.
2174 * target.c (default_get_section_table): New function.
2175 * target.h (target_ops::get_section_table): Change default
2176 behaviour to call default_get_section_table.
2177 (default_get_section_table): Declare.
2178
02f7d26b
AB
21792021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2180
2181 * exec.c (exec_target::close): Call new clear_target_sections
2182 function.
2183 (program_space::add_target_sections): Update name of member
2184 variable.
2185 (program_space::add_target_sections): Update name of member
2186 variable.
2187 (program_space::remove_target_sections): Likewise.
2188 (exec_one_fork): Use new target_sections member function.
2189 (exec_target::get_section_table): Likewise.
2190 (exec_target::files_info): Likewise.
2191 (set_section_command): Likewise.
2192 (exec_set_section_address): Likewise.
2193 (exec_target::has_memory): Use new target_sections member
2194 function.
2195 * progspace.h (program_space::clear_target_sections): New member
2196 function.
2197 (program_space::target_sections): Rename member variable to
2198 m_target_sections, replace with a new member function.
2199 (program_space::m_target_sections): New member variable.
2200 * solib-dsbt.c (scan_dyntag): Use new member function.
2201 * solib-svr4.c (scan_dyntag): Likewise.
2202
19cf757a
AB
22032021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2204
2205 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2206 return type const.
2207 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2208 (section_table_read_available_memory): Make local const.
2209 (exec_target::xfer_partial): Make local const.
2210 (print_section_info): Make parameter const.
2211 * gdb/exec.h (print_section_info): Likewise.
2212 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2213 const.
2214 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2215 Likewise.
2216 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2217 Likewise.
2218 * gdb/s390-tdep.c (s390_load): Likewise.
2219 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2220 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2221 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2222 Rename to...
2223 (target_debug_print_const_target_section_table_p): ...this.
2224 * gdb/target-delegates.c: Regenerate.
2225 * gdb/target.c (target_get_section_table): Make return type const.
2226 (target_section_by_addr): Likewise. Also make some locals const.
2227 (memory_xfer_partial_1): Make some locals const.
2228 * gdb/target.h (struct target_ops) <get_section_table>: Make
2229 return type const.
2230 (target_section_by_addr): Likewise.
2231 (target_get_section_table): Likewise.
2232
02a79309
AB
22332021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2234
2235 * NEWS: Mention new 'maint info target-sections' command.
2236 * maint.c (maintenance_info_target_sections): New function.
2237 (_initialize_maint_cmds): Register new command.
2238
895b7b4e
AB
22392021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2240
2241 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2242 (riscv_features_from_bfd): ...this. Change parameter type to
2243 'bfd*', and update as required.
2244 (riscv_find_default_target_description): Update call to
2245 riscv_features_from_bfd. Select a default xlen based on
2246 info.bfd_arch_info.
2247 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2248
bc3c0632
AB
22492021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2250
2251 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2252 dynamic types in UNOP_IND.
2253
08ac5771
SM
22542021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2255
2256 PR gdb/26828
2257 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2258 Instantiate queue.
2259 (~dwarf2_queue_guard): Clear queue.
2260 (queue_comp_unit): Assert that queue is
2261 instantiated.
2262 (process_queue): Adjust.
2263 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2264
616c069a
SM
22652021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2266
2267 PR gdb/26828
2268 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2269 to decide whether or not to enqueue it for expansion.
2270 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2271 after calling maybe_queue_comp_unit.
2272
897608ed
SM
22732021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2274
2275 * linux-nat.c (linux_nat_filter_event): Return void.
2276
15908a11
TT
22772021-02-22 Tom Tromey <tromey@adacore.com>
2278
2279 * solib-svr4.c (enable_break): Update.
2280 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2281 type.
2282 (target_bfd_reopen): Change parameter type.
2283 * bfd-target.h (target_bfd_reopen): Change parameter type.
2284
f53fc427
SM
22852021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2286
2287 * thread.c (add_thread_silent): Add assert.
2288 (find_thread_ptid): Add assert.
2289
de146e19
SM
22902021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2291
2292 PR gdb/27435
2293 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2294 (target_unpush_up): Likewise.
2295 * procfs.c (procfs_target::attach): Push target early. Use
2296 target_unpush_up to unpush target in case of error.
2297 * target.h (struct target_unpusher): Move here.
2298 (target_unpush_up): Likewise.
2299
8488c357
KB
23002021-02-19 Kevin Buettner <kevinb@redhat.com>
2301
2302 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2303 (which in turn includes <gnulib/config.h>) before include
2304 of <signal.h>.
2305
5a9f5403
NC
23062021-02-19 Nelson Chu <nelson.chu@sifive.com>
2307
2308 PR 27158
2309 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2310 (decode_j_type_insn): Likewise.
2311 (decode_cj_type_insn): Likewise.
2312 (decode_b_type_insn): Likewise.
2313 (decode): Likewise.
2314
26f53cd3
TT
23152021-02-18 Tom Tromey <tom@tromey.com>
2316
2317 * expression.h (struct expression) <evaluate>: Declare method.
2318 * eval.c (evaluate_subexp): Simplify.
2319 (expression::evaluate): New method.
2320 (evaluate_expression, evaluate_type): Use expression::evaluate.
2321
6a780b67
KB
23222021-02-17 Kevin Buettner <kevinb@redhat.com>
2323
2324 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2325 to accessing it.
2326 (ada_lookup_name_info): Likewise.
2327
adeab0c5
MF
23282021-02-13 Mike Frysinger <vapier@gentoo.org>
2329
2330 * aclocal.m4: Regenerate.
2331
089436f7
TV
23322021-02-12 Tom de Vries <tdevries@suse.de>
2333
2334 PR threads/26228
2335 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2336 (lin_thread_signals): New static var.
2337 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2338 New function.
2339 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2340 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2341 Declare.
2342 * linux-thread-db.c (check_thread_signals): Use
2343 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2344
96df3e28
AB
23452021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2346
2347 * f-exp.y (f77_keywords): Add allocated.
2348 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2349 (operator_length_f): Likewise.
2350 (print_subexp_f): Likewise.
2351 (dump_subexp_body_f): Likewise.
2352 (operator_check_f): Likewise.
2353 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2354
05f68f52
TV
23552021-02-11 Tom de Vries <tdevries@suse.de>
2356
2357 PR symtab/27353
2358 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2359 Return true for DW_FORM_strx.
2360
b260f8d6
TT
23612021-02-11 Tom Tromey <tromey@adacore.com>
2362
2363 PR gdb/27383:
2364 * parse.c (write_exp_symbol_reference): Write sym.block.
2365
bf3386f0
AB
23662021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2367
2368 * NEWS: Mention changes to 'maint info sections'.
2369 * maint.c (match_substring): Return a bool, fix whitespace issue.
2370 (struct single_bfd_flag_info): New struct.
2371 (bfd_flag_info): New static global.
2372 (match_bfd_flags): Return a bool, use bfd_flag_info.
2373 (print_bfd_flags): Use bfd_flag_info.
2374 (maint_print_section_info): Delete trailing whitespace.
2375 (struct maint_info_sections_opts): New struct.
2376 (maint_info_sections_option_defs): New static global.
2377 (maint_info_sections_completer): New function.
2378 (maintenance_info_sections): Use option parsing mechanism.
2379 (_initialize_maint_cmds): Update command help text for 'maint info
2380 sections' and register a command completer.
2381
4790db14
AB
23822021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2383
2384 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2385 functionality merged into...
2386 (maint_print_all_sections): ...this new function.
2387 (maintenance_info_sections): Make use of maint_print_all_sections,
2388 allow all objects to be printed even where there's no executable.
2389
1db66e34
AB
23902021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2391
2392 * breakpoint.c (resolve_sal_pc): Make use of
2393 bound_minimal_symbol::obj_section.
2394 * maint.c (maintenance_translate_address): Likewise.
2395 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2396 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2397 member function.
2398 * printcmd.c (info_address_command): Make use of
2399 bound_minimal_symbol::obj_section.
2400
18b8df43
AM
24012021-02-11 Alan Modra <amodra@gmail.com>
2402
2403 * arm-symbian-tdep.c: Delete.
2404 * NEWS: Mention arm-symbian removal.
2405 * Makefile.in: Remove arm-symbian-tdep entries.
2406 * configure.tgt: Remove arm*-*-symbianelf*.
2407 * doc/gdb.texinfo: Remove mention of SymbianOS.
2408 * osabi.c (gdb_osabi_names): Remove "Symbian".
2409 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2410 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2411 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2412 handling.
2413 * testsuite/gdb.base/dup-sect.exp: Likewise.
2414 * testsuite/gdb.base/long_long.exp: Likewise.
2415 * testsuite/gdb.base/solib-weak.exp: Likewise.
2416 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2417 * testsuite/gdb.python/py-section-script.exp: Likewise.
2418 * testsuite/lib/dwarf.exp: Likewise.
2419 * testsuite/lib/gdb.exp: Likewise.
2420
e92c8eb8
AB
24212021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2422
2423 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2424 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2425 (one_or_two_args): New pattern.
2426 (f77_keywords): Add lbound and ubound.
2427 * f-lang.c (fortran_bounds_all_dims): New function.
2428 (fortran_bounds_for_dimension): New function.
2429 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2430 (operator_length_f): Likewise.
2431 (print_subexp_f): Likewise.
2432 (dump_subexp_body_f): Likewise.
2433 (operator_check_f): Likewise.
2434 * std-operator.def (FORTRAN_LBOUND): Define.
2435 (FORTRAN_UBOUND): Define.
2436
a52d653e
AB
24372021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2438
2439 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2440 and set_section_index member functions where appropriate.
2441 * coffread.c (coff_symtab_read): Likewise.
2442 (process_coff_symbol): Likewise.
2443 * ctfread.c (set_symbol_address): Likewise.
2444 * dwarf2/read.c (add_partial_symbol): Likewise.
2445 (var_decode_location): Likewise.
2446 * language.c: Likewise.
2447 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2448 (compact_minimal_symbols): Likewise.
2449 (minimal_symbol_upper_bound): Likewise.
2450 * objfiles.c (relocate_one_symbol): Likewise.
2451 * psympriv.h (partial_symbol::obj_section): Likewise.
2452 (partial_symbol::address): Likewise.
2453 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2454 * stabsread.c (scan_file_globals): Likewise.
2455 * symmisc.c (dump_msymbols): Likewise.
2456 * symtab.c (general_symbol_info::obj_section): Likewise.
2457 (fixup_section): Likewise.
2458 (get_msymbol_address): Likewise.
2459 * symtab.h (general_symbol_info::section): Rename to...
2460 (general_symbol_info::m_section): ...this.
2461 (general_symbol_info::set_section_index): New member function.
2462 (general_symbol_info::section_index): Likewise.
2463 (SYMBOL_SECTION): Delete.
2464 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2465 set_section_index member functions where appropriate.
2466 (MSYMBOL_SECTION): Delete.
2467 (symbol::symbol): Update to initialize 'm_section'.
2468 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2469 (process_xcoff_symbol): Likewise.
2470
ebbc3a7d
AB
24712021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2474 MSYMBOL_OBJ_SECTION.
2475 * findvar.c (language_defn::read_var_value): Likewise.
2476 * infcmd.c (jump_command): Likewise.
2477 * linespec.c (minsym_found): Likewise.
2478 * maint.c (maintenance_translate_address): Likewise.
2479 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2480 (minimal_symbol_upper_bound): Likewise.
2481 * parse.c (find_minsym_type_and_address): Likewise.
2482 (operator_check_standard): Likewise.
2483 * printcmd.c (info_address_command): Likewise.
2484 * symmisc.c (dump_msymbols): Likewise.
2485 (print_symbol): Likewise.
2486 * symtab.c (general_symbol_info::obj_section): Define new
2487 function.
2488 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2489 (find_pc_sect_compunit_symtab): Likewise.
2490 (find_function_start_sal): Likewise.
2491 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2492 MSYMBOL_OBJ_SECTION.
2493 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2494 function.
2495 (SYMBOL_OBJ_SECTION): Delete.
2496 (MSYMBOL_OBJ_SECTION): Delete.
2497
9bb305b3
TT
24982021-02-09 Tom Tromey <tom@tromey.com>
2499
2500 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2501
cf2b2075
TV
25022021-02-09 Tom de Vries <tdevries@suse.de>
2503
2504 PR symtab/27341
2505 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2506 construct an array type. Add assert to ensure that element_type is
2507 not being modified.
2508
03642b71
AB
25092021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2510
2511 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2512 (gcore_collect_regset_section_cb): Delete.
2513 (gcore_collect_thread_registers): Delete.
2514 (gcore_build_thread_register_notes): Delete.
2515 (gcore_find_signalled_thread): Delete.
2516 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2517 'gdbarch' and 'thread_info' declarations.
2518 (gcore_build_thread_register_notes): Delete declaration.
2519 (gcore_find_signalled_thread): Likewise.
2520 * fbsd-tdep.c: Remove 'gcore.h' include.
2521 (struct fbsd_collect_regset_section_cb_data): New struct.
2522 (fbsd_collect_regset_section_cb): New function.
2523 (fbsd_collect_thread_registers): New function.
2524 (struct fbsd_corefile_thread_data): New struct.
2525 (fbsd_corefile_thread): New function.
2526 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2527 * linux-tdep.c: Remove 'gcore.h' include.
2528 (struct linux_collect_regset_section_cb_data): New struct.
2529 (linux_collect_regset_section_cb): New function.
2530 (linux_collect_thread_registers): New function.
2531 (linux_corefile_thread): Call Linux specific code.
2532 (find_signalled_thread): New function.
2533 (linux_make_corefile_notes): Call find_signalled_thread.
2534
f73e424f
TT
25352021-02-09 Tom Tromey <tromey@adacore.com>
2536
2537 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2538 not_lval value.
2539 * value.c (value_contents_copy_raw): Now static.
2540 * value.h (value_contents_copy_raw): Don't declare.
2541
a4f0544b
TT
25422021-02-09 Tom Tromey <tromey@adacore.com>
2543
2544 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2545 fields.
2546
9b3e4b5d
SV
25472021-02-08 Shahab Vahedi <shahab@synopsys.com>
2548
2549 PR tdep/27369
2550 * arc-linux-tdep.c (handle_atomic_sequence): New.
2551 (arc_linux_software_single_step): Call handle_atomic_sequence().
2552
29db1eb3
AB
25532021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2554
2555 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2556 function.
2557 (REQUIRE_WINDOW): Call is_valid member function.
2558 (REQUIRE_WINDOW_FOR_SETTER): New define.
2559 (gdbpy_tui_is_valid): Call is_valid member function.
2560 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2561 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2562 tui_active too.
2563 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2564 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2565 the function.
2566
e0c23e11
AB
25672021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2568
2569 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2570 for the title is not nullptr.
2571
1cf23996
AB
25722021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * tui-layout.c (saved_tui_windows): Delete.
2575 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2576 call new get_windows member function instead.
2577 (tui_get_window_by_name): Check in tui_windows.
2578 (tui_layout_window::apply): Don't add to tui_windows.
2579 * tui-layout.h (tui_layout_base::get_windows): New member function.
2580 (tui_layout_window::get_windows): Likewise.
2581 (tui_layout_split::get_windows): Likewise.
2582
a53a2657
AB
25832021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2584
2585 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2586 of the window objects.
2587
2708dbbd
AB
25882021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2589
2590 * python/python.c (gdbpy_print_stack): Reformat an error message.
2591
cd074e04
AB
25922021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2593
2594 * tui/tui-interp.c (tui_command_line_handler): New function.
2595 (tui_interp::resume): Register tui_command_line_handler as the
2596 input_handler.
2597 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2598 function.
2599 (tui_getc_1): Delete handling of '\n' and '\r'.
2600 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2601
4cf28e91
HD
26022021-02-07 Hannes Domani <ssbssa@yahoo.de>
2603
2604 * tui/tui-regs.c (tui_data_window::display_registers_from):
2605 Mark invisible register sub windows.
2606 (tui_data_window::check_register_values): Ignore invisible
2607 register sub windows.
2608
3537bc23
HD
26092021-02-07 Hannes Domani <ssbssa@yahoo.de>
2610
2611 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2612 n_spaces with a negative value.
2613
5fc2d6aa
HD
26142021-02-07 Hannes Domani <ssbssa@yahoo.de>
2615
2616 * tui/tui-regs.c (tui_data_window::display_registers_from):
2617 Add refresh_window call.
2618
83962f83
HD
26192021-02-07 Hannes Domani <ssbssa@yahoo.de>
2620
2621 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2622
0110ec82
SM
26232021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2624
2625 * symmisc.c (std_in, std_out, std_err): Remove.
2626 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2627
7c6944ab
TV
26282021-02-05 Tom de Vries <tdevries@suse.de>
2629
2630 PR breakpoints/27330
2631 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2632 glibc object file has debug info.
2633
e77b0004
TV
26342021-02-05 Tom de Vries <tdevries@suse.de>
2635
2636 PR symtab/27333
2637 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2638
0e857c82
TV
26392021-02-05 Tom de Vries <tdevries@suse.de>
2640
2641 PR breakpoints/27313
2642 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2643 syscall numbers.
2644
bdfea17e
TT
26452021-02-05 Tom Tromey <tom@tromey.com>
2646
2647 * compile/compile-c-support.c (get_compile_context)
2648 (c_get_compile_context, cplus_get_compile_context): Change return
2649 type.
2650 * language.c (language_defn::get_compile_instance): New method.
2651 * language.h (language_defn::get_compile_instance): Change return
2652 type. No longer inline.
2653 * c-lang.c (c_language::get_compile_instance): Change return type.
2654 (cplus_language::get_compile_instance): Change return type.
2655 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2656 Change return type.
2657 * compile/compile.c (compile_to_object): Update.
2658
1b30f421
TT
26592021-02-05 Tom Tromey <tom@tromey.com>
2660
2661 * parser-defs.h (write_exp_symbol_reference): Declare.
2662 * parse.c (write_exp_symbol_reference): New function.
2663 * p-exp.y (variable): Use write_exp_symbol_reference.
2664 * m2-exp.y (variable): Use write_exp_symbol_reference.
2665 * f-exp.y (variable): Use write_exp_symbol_reference.
2666 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2667 * c-exp.y (variable): Use write_exp_symbol_reference.
2668
ae710496
TV
26692021-02-05 Tom de Vries <tdevries@suse.de>
2670
2671 PR exp/27265
2672 * valarith.c (complex_binop): Throw an error if complex type can't
2673 be created.
2674
d3b54e63
TV
26752021-02-05 Tom de Vries <tdevries@suse.de>
2676
2677 PR symtab/27307
2678 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2679 return.
2680
fc9a13fb
TV
26812021-02-05 Tom de Vries <tdevries@suse.de>
2682
2683 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2684
04b4939b
MF
26852021-02-04 Mike Frysinger <vapier@gentoo.org>
2686
2687 * configure.tgt (riscv*-*-*): Set gdb_sim.
2688
6ff267e1
SM
26892021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2690
2691 * target.c (target_is_non_stop_p): Return bool.
2692 * target.h (target_is_non_stop_p): Return bool.
2693
fdbc5215
SM
26942021-02-04 Simon Marchi <simon.marchi@efficios.com>
2695
2696 * record-full.c (record_full_async_inferior_event_handler):
2697 Don't clear async event handler.
2698 (record_full_base_target::wait): Clear async event handler at
2699 beginning.
2700
85d3ad8e
SM
27012021-02-04 Simon Marchi <simon.marchi@efficios.com>
2702
2703 * record-btrace.c (record_btrace_handle_async_inferior_event):
2704 Don't clear async event handler.
2705 (record_btrace_target::wait): Clear async event handler at
2706 beginning.
2707
baa8575b
SM
27082021-02-04 Simon Marchi <simon.marchi@efficios.com>
2709
2710 * remote.c (remote_target::wait): Clear async event handler at
2711 beginning, mark if needed at the end.
2712 (remote_async_inferior_event_handler): Don't set or clear async
2713 event handler.
2714
6b36ddeb
SM
27152021-02-04 Simon Marchi <simon.marchi@efficios.com>
2716
2717 * async-event.h (async_event_handler_func): Add documentation.
2718 * async-event.c (check_async_event_handlers): Don't clear
2719 async_event_handler ready flag.
2720 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2721 flag.
2722 * record-btrace.c (record_btrace_handle_async_inferior_event):
2723 Likewise.
2724 * record-full.c (record_full_async_inferior_event_handler):
2725 Likewise.
2726 * remote-notif.c (remote_async_get_pending_events_handler):
2727 Likewise.
2728 * remote.c (remote_async_inferior_event_handler): Likewise.
2729
72d383bb
SM
27302021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2731
2732 * infrun.c (handle_inferior_event): Move stop_soon variable to
2733 inner scope.
2734
408f6686
PA
27352021-02-03 Pedro Alves <pedro@palves.net>
2736
2737 * infcmd.c (detach_command): Hold strong reference to target, and
2738 if all-stop on entry, restart threads on exit.
2739 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2740 (restart_stepped_thread): ... this new function. Also handle
2741 trap_expected.
2742 (restart_after_all_stop_detach): New function.
2743 * infrun.h (restart_after_all_stop_detach): Declare.
2744
ac7d717c
PA
27452021-02-03 Pedro Alves <pedro@palves.net>
2746
2747 * infrun.c (struct step_over_info): Initialize fields.
2748 (prepare_for_detach): Handle ongoing in-line step over.
2749
e87f0fe8
PA
27502021-02-03 Pedro Alves <pedro@palves.net>
2751
2752 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2753 here...
2754 * remote.c (remote_target::remote_detach_1): ... and here ...
2755 * target.c (target_detach): ... instead of here.
2756 * target.h (target_ops::detach): Add comment.
2757
8ff53139
PA
27582021-02-03 Pedro Alves <pedro@palves.net>
2759
2760 * infrun.c (struct wait_one_event): Move higher up.
2761 (prepare_for_detach): Abort in-progress displaced steps instead of
2762 letting them complete.
2763 (handle_one): If the inferior is detaching, don't add the thread
2764 back to the global step-over chain.
2765 (restart_threads): Don't restart threads if detaching.
2766 (handle_signal_stop): Remove inferior::detaching reference.
2767
91475068
PA
27682021-02-03 Pedro Alves <pedro@palves.net>
2769
2770 * infrun.c (prepare_for_detach): Don't release scoped_restore
2771 before returning.
2772
d758e62c
PA
27732021-02-03 Pedro Alves <pedro@palves.net>
2774
2775 * infrun.c (handle_one): New function, factored out from ...
2776 (stop_all_threads): ... here.
2777
b0083dd7
PA
27782021-02-03 Pedro Alves <pedro@palves.net>
2779
2780 * remote.c (remote_notif_stop_ack): Don't error out on
2781 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2782 (remote_target::discard_pending_stop_replies): Don't delete
2783 in-flight notification; instead, clear its contents.
2784
621cc310
PA
27852021-02-03 Pedro Alves <pedro@palves.net>
2786
2787 * remote.c (extended_remote_target::attach): Set target async in
2788 the target-non-stop path too.
2789
2ab76a18
PA
27902021-02-03 Pedro Alves <pedro@palves.net>
2791
2792 PR gdb/27055
2793 * infrun.c (handle_signal_stop): Move main context_switch call
2794 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2795
2e3773ff
LS
27962021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2797
2798 * NEWS (Changed commands): Add entry for the behavior change of
2799 the inferior command.
2800 * inferior.c (inferior_command): When no argument is given to the
2801 inferior command, display info about the currently selected
2802 inferior.
2803
e57933dc
SM
28042021-02-02 Simon Marchi <simon.marchi@efficios.com>
2805
2806 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2807 a sect_offset.
2808 (read_attribute_reprocess): Adjust.
2809
2b0c7f41
SM
28102021-02-02 Simon Marchi <simon.marchi@efficios.com>
2811
2812 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2813 <gnu_ranges_base>: ... this...
2814 <rnglists_base>: ... and this.
2815 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2816 <gnu_ranges_base>: ... this...
2817 <rnglists_base>: ... and this.
2818 (read_cutu_die_from_dwo): Adjust
2819 (dwarf2_get_pc_bounds): Adjust
2820 (dwarf2_record_block_ranges): Adjust.
2821 (read_full_die_1): Adjust
2822 (partial_die_info::read): Adjust.
2823 (read_rnglist_index): Adjust.
2824
a1c40103
SM
28252021-02-02 Simon Marchi <simon.marchi@efficios.com>
2826
2827 PR gdb/26813
2828 * dwarf2/read.c (read_loclists_rnglists_header): Add
2829 header_offset parameter and use it.
2830 (read_loclist_index): Read header of the current contribution,
2831 not the one at the beginning of the section.
2832 (read_rnglist_index): Likewise.
2833
b1829e1b
SM
28342021-02-02 Simon Marchi <simon.marchi@efficios.com>
2835
2836 PR gdb/26813
2837 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2838 requires_reprocessing flag.
2839 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2840 DW_FORM_loclistx.
2841 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2842 and DW_FORM_loclistx.
2843 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2844 instead of set_address for DW_FORM_loclistx and
2845 DW_FORM_rnglistx.
2846
0c800c6e
SM
28472021-02-02 Simon Marchi <simon.marchi@efficios.com>
2848
2849 * dwarf2/read.c (read_loclist_index): Remove bound check for
2850 start of offset.
2851 (read_rnglist_index): Likewise.
2852
05787bad
SM
28532021-02-02 Simon Marchi <simon.marchi@efficios.com>
2854
2855 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2856 of the offset.
2857
5e4d9bbc
SM
28582021-02-02 Simon Marchi <simon.marchi@efficios.com>
2859
2860 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2861
a0c1eeba
SM
28622021-02-02 Simon Marchi <simon.marchi@efficios.com>
2863
2864 * dwarf2/read.c (read_loclist_index): Change complaints into
2865 errors.
2866
2bd3e4b8
TV
28672021-02-02 Tom de Vries <tdevries@suse.de>
2868
2869 PR symtab/24620
2870 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2871 psymtab == nullptr.
2872
82a1fd3a
AB
28732021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2874
2875 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2876 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2877 here from linux-tdep.c and given a new name. Minor cleanups.
2878 (gcore_collect_regset_section_cb): Likewise.
2879 (gcore_collect_thread_registers): Likewise.
2880 (gcore_build_thread_register_notes): Likewise.
2881 (gcore_find_signalled_thread): Likewise.
2882 * gcore.h (gcore_build_thread_register_notes): Declare.
2883 (gcore_find_signalled_thread): Declare.
2884 * fbsd-tdep.c: Add 'gcore.h' include.
2885 (struct fbsd_collect_regset_section_cb_data): Delete.
2886 (fbsd_collect_regset_section_cb): Delete.
2887 (fbsd_collect_thread_registers): Delete.
2888 (struct fbsd_corefile_thread_data): Delete.
2889 (fbsd_corefile_thread): Delete.
2890 (fbsd_make_corefile_notes): Call
2891 gcore_build_thread_register_notes instead of the now deleted
2892 FreeBSD code.
2893 * linux-tdep.c: Add 'gcore.h' include.
2894 (struct linux_collect_regset_section_cb_data): Delete.
2895 (linux_collect_regset_section_cb): Delete.
2896 (linux_collect_thread_registers): Delete.
2897 (linux_corefile_thread): Call
2898 gcore_build_thread_register_notes.
2899 (find_signalled_thread): Delete.
2900 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2901
ebde6f2d
TV
29022021-01-29 Tom de Vries <tdevries@suse.de>
2903
2904 PR breakpoints/26063
2905 * infrun.c (process_event_stop_test): Reset
2906 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2907 changed.
2908
0f93c3a2
AB
29092021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2912 assert. Extend the header comment.
2913
f237f998
AB
29142021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2917 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2918 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2919 (tui_locator_win_info_ptr): Delete declaration.
2920 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2921 (tui_disasm_window::set_contents): Fetch state from tui_location
2922 global.
2923 (tui_get_begin_asm_address): Likewise.
2924 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2925 for locator window.
2926 (get_locator_window): Delete.
2927 (initialize_known_windows): Treat locator window just like all the
2928 rest.
2929 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2930 (tui_source_window::set_contents): Fetch state from tui_location
2931 global.
2932 (tui_source_window::showing_source_p): Likewise.
2933 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2934 (_locator): Delete.
2935 (tui_locator_win_info_ptr): Delete.
2936 (tui_locator_window::make_status_line): Fetch state from
2937 tui_location global.
2938 (tui_locator_window::rerender): Remove check of 'handle',
2939 reindent function body.
2940 (tui_locator_window::set_locator_fullname): Delete.
2941 (tui_locator_window::set_locator_info): Delete.
2942 (tui_update_locator_fullname): Delete.
2943 (tui_show_frame_info): Likewise.
2944 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2945 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2946 tui/tui-location.h and renamed to
2947 tui_location_tracker::set_location.
2948 (tui_locator_window::set_locator_fullname): Moved to
2949 tui/tui-location.h and renamed to
2950 tui_location_tracker::set_fullname.
2951 (tui_locator_window::full_name): Delete.
2952 (tui_locator_window::proc_name): Delete.
2953 (tui_locator_window::line_no): Delete.
2954 (tui_locator_window::addr): Delete.
2955 (tui_locator_window::gdbarch): Delete.
2956 (tui_update_locator_fullname): Delete declaration.
2957 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2958 for locator window.
2959 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2960 (tui_display_main): Call function on tui_location directly.
2961 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2962 * tui/tui-location.c: New file.
2963 * tui/tui-location.h: New file.
2964
8ee511af
SM
29652021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2966
2967 * gdbtypes.h (get_type_arch): Rename to...
2968 (struct type) <arch>: ... this, update all users.
2969
6ac37371
SM
29702021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2971
2972 * gdbtypes.h (struct type) <arch>: Rename to...
2973 <arch_owner>: ... this, update all users.
2974 <objfile>: Rename to...
2975 <objfile_owner>: ... this, update all users.
2976
24cf6389
AB
29772021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 * gdbcmd.h (execute_command_to_string): Update comment.
2980 * top.c (execute_command_to_string): Update header comment.
2981
2a7f6487
TV
29822021-01-28 Tom de Vries <tdevries@suse.de>
2983
2984 PR breakpoints/27205
2985 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2986 (create_longjmp_master_breakpoint_names): New function, factored out
2987 of ...
2988 (create_longjmp_master_breakpoint): ... here. Only try to install
2989 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2990 breakpoint in libc.so failed.
2991
59b59f08
LS
29922021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2993
2994 PR gdb/27133
2995 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2996 unique_ptr is released when the wrapped pointer is kept for later
2997 use.
2998
807f647c
MM
29992021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
3000
3001 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3002 BLR and BR instructions.
3003 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3004 (enum aarch64_masks): New.
3005
4ef367bf
TT
30062021-01-26 Tom Tromey <tromey@adacore.com>
3007
3008 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3009 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3010 (windows_init_thread_list, windows_nat::handle_load_dll)
3011 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3012 (windows_nat_target::resume)
3013 (windows_nat_target::get_windows_debug_event)
3014 (windows_nat_target::interrupt, windows_xfer_memory)
3015 (windows_nat_target::close): Update.
3016 * nat/windows-nat.c (DEBUG_EVENTS): Use
3017 debug_prefixed_printf_cond.
3018 (matching_pending_stop, fetch_pending_stop)
3019 (continue_last_debug_event): Update.
3020
4cb1265b
MS
30212020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
3022
3023 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3024 elfcore_write_file_note.
3025
d0cc52bd
SV
30262021-01-26 Shahab Vahedi <shahab@synopsys.com>
3027
3028 * arc-tdep.c (arc_add_reggroups): New function.
3029 (arc_gdbarch_init): Call arc_add_reggroups.
3030
ac3571d9 30312021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
3032
3033 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3034
9f6c202e
TV
30352021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3036 Simon Marchi <simon.marchi@polymtl.ca>
3037 Tom de Vries <tdevries@suse.de>
3038
3039 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
3040 DW_AT_ranges.
3041
a625a8c9
TT
30422021-01-25 Tom Tromey <tromey@adacore.com>
3043
3044 * dwarf2/read.c (get_mpz): New function.
3045 (get_dwarf2_rational_constant): Use it.
3046
19184910
TT
30472021-01-25 Tom Tromey <tromey@adacore.com>
3048
3049 * ada-lang.c (resolve_subexp): Handle array context.
3050
b10bae18
TT
30512021-01-23 Tom Tromey <tom@tromey.com>
3052
3053 PR compile/25575
3054 * compile/compile-loc2c.c (note_register): New function.
3055 (pushf_register_address, pushf_register): Use it.
3056
3637a558
TT
30572021-01-23 Tom Tromey <tom@tromey.com>
3058
3059 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3060 Change type of "registers_used".
3061 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
3062 * dwarf2/loc.c (dwarf2_compile_property_to_c)
3063 (locexpr_generate_c_location, loclist_generate_c_location): Change
3064 type of "registers_used".
3065 * compile/compile.h (compile_dwarf_expr_to_c)
3066 (compile_dwarf_bounds_to_c): Update.
3067 * compile/compile-loc2c.c (pushf_register_address)
3068 (pushf_register, do_compile_dwarf_expr_to_c)
3069 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
3070 of "registers_used".
3071 * compile/compile-c.h (generate_c_for_variable_locations):
3072 Update.
3073 * compile/compile-c-symbols.c (generate_vla_size)
3074 (generate_c_for_for_one_variable): Change type of
3075 "registers_used".
3076 (generate_c_for_variable_locations): Return std::vector.
3077 * compile/compile-c-support.c (generate_register_struct): Change
3078 type of "registers_used".
3079 (compute): Update.
3080
9f7f6cb8
TT
30812021-01-23 Tom Tromey <tom@tromey.com>
3082
3083 * compile/compile-internal.h (class compile_instance)
3084 <set_arguments>: Change return type.
3085 * compile/compile.c (compile_to_object): Remove call to reset.
3086 (compile_instance::set_arguments): Change return type.
3087
dd5ca05f
SM
30882021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3089
3090 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3091 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3092
d3ee35db
LS
30932021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3094
3095 * Makefile.in (SELFTESTS_SRCS): Add
3096 unittests/gdb_tilde_expand-selftests.c.
3097 * unittests/gdb_tilde_expand-selftests.c: New file.
3098
9d2d8a16
AB
30992021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3100
3101 PR cli/25956
3102 * NEWS: Mention new command.
3103 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3104 (version_style): Define.
3105 (cli_style_option::cli_style_option): Add intensity parameter, and
3106 use as appropriate.
3107 (_initialize_cli_style): Register version style set/show commands.
3108 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3109 (version_style): Declare.
3110 * top.c (print_gdb_version): Use version_stype, and styled_string
3111 to print the GDB version string.
3112
e7b43072
AB
31132021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3114
3115 * utils.c (emit_style_escape): Only emit an escape sequence if the
3116 requested style is different than the current applied style.
3117 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3118 current applied_style.
3119 (fputs_styled): Remove is_default check.
3120 (fputs_styled_unfiltered): Likewise.
3121 (vfprintf_styled_no_gdbfmt): Likewise.
3122
2189c312
SM
31232021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3124
3125 * remote.h (remote_debug_printf): New.
3126 (remote_debug_printf_nofunc): New.
3127 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
3128 * remote.c: Use above macros throughout file.
3129
02349803
SM
31302021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3131
3132 * remote.h (remote_debug): Change to bool.
3133 * remote.c (remote_debug): Change to bool.
3134 (_initialize_remote): Adjust.
3135
cda09ec9
SM
31362021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3137
3138 * target.h (remote_debug): Move to...
3139 * remote.h (remote_debug): ... here.
3140 * top.c (remote_debug): Move to...
3141 * remote.c (remote_debug): ... here.
3142 * remote-sim.c: Include remote.h.
3143
baf2b57f
SM
31442021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3145
3146 * cli/cli-cmds.c (show_remote_debug): Remove.
3147 (show_remote_timeout): Remove.
3148 (_initialize_cli_cmds): Don't register commands.
3149 * remote.c (show_remote_debug): Move here.
3150 (show_remote_timeout): Move here.
3151 (_initialize_remote): Register commands.
3152
344e9841
SM
31532021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3154
3155 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
3156 type::objfile method instead.
3157
30625020
SM
31582021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3159
3160 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
3161 use the type::is_objfile_owned method.
3162
5b7d941b
SM
31632021-01-22 Simon Marchi <simon.marchi@efficios.com>
3164
3165 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
3166 (TYPE_OWNER): Remove.
3167 (TYPE_OBJFILE): Adjust.
3168 (struct main_type) <flag_objfile_owned>: Rename to...
3169 <m_flag_objfile_owned>: ... this.
3170 <owner>: Rename to...
3171 <m_owner>: ... this.
3172 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3173 methods.
3174 (TYPE_ALLOC): Adjust.
3175 * gdbtypes.c (alloc_type): Adjust.
3176 (alloc_type_arch): Adjust.
3177 (alloc_type_copy): Adjust.
3178 (get_type_arch): Adjust.
3179 (smash_type): Adjust.
3180 (lookup_array_range_type): Adjust.
3181 (recursive_dump_type): Adjust.
3182 (copy_type_recursive): Adjust.
3183 * compile/compile-c-types.c (convert_func): Adjust.
3184 (convert_type_basic): Adjust.
3185 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3186 Adjust.
3187 * language.c
3188 (language_arch_info::type_and_symbol::alloc_type_symbol):
3189 Adjust.
3190
d5d24e12
LM
31912021-01-21 Luis Machado <luis.machado@linaro.org>
3192
3193 * coffread.c (enter_linenos): Passing string to complaint.
3194 * valops.c (value_assign): Make array view.
3195
a59902a7
SM
31962021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3197
3198 * auto-load.h (debug_auto_load): Move here.
3199 (auto_load_debug_printf): New.
3200 * auto-load.c: Use auto_load_debug_printf.
3201 (debug_auto_load): Move to header.
3202 * linux-thread-db.c (try_thread_db_load): Use
3203 auto_load_debug_printf.
3204 * main.c (captured_main_1): Likewise.
3205
d3abc0ce
SM
32062021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3207
3208 * f-valprint.c (f77_array_offset_tbl): Remove.
3209
1e15fcac
SM
32102021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3211
3212 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3213
439706e6
SM
32142021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3215
3216 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3217 of gdb_select.
3218
325d39e4
HD
32192021-01-21 Hannes Domani <ssbssa@yahoo.de>
3220
3221 PR python/19151
3222 * python/py-breakpoint.c (bppy_get_location): Handle
3223 bp_hardware_breakpoint.
3224 (bppy_init): Likewise.
3225 (gdbpy_breakpoint_created): Likewise.
3226
7cb6d92a
SM
32272021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3228
3229 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3230
d4dd4fca
SM
32312021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3232
3233 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3234 (_initialize_gdb_bfd): Adjust.
3235
de53369b
SM
32362021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3237
3238 PR gdb/26828
3239 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3240
17e593e9
SM
32412021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3242
3243 * dwarf2/read.c (follow_die_offset): Add logging.
3244 (dwarf2_per_objfile::age_comp_units): Add logging.
3245
6bd434d6
SM
32462021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3247
3248 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3249 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3250 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3251 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3252 * arm-tdep.c (struct frame_unwind): Make static.
3253 * auto-load.c (auto_load_safe_path_vec): Make static.
3254 * csky-tdep.c (csky_stub_unwind): Make static.
3255 * gdbarch.c (gdbarch_data_registry): Make static.
3256 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3257 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3258 * i386-tdep.c (i386_frame_setup_skip_insns,
3259 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3260 Make static.
3261 * infrun.c (observer_mode): Make static.
3262 * linux-nat.c (sigchld_action): Make static.
3263 * linux-thread-db.c (thread_db_list): Make static.
3264 * maint-test-options.c (maintenance_test_options_list):
3265 * mep-tdep.c (mep_csr_registers): Make static.
3266 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3267 (stats): Make static.
3268 * nat/linux-osdata.c (struct osdata_type): Make static.
3269 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3270 * progspace.c (last_program_space_num): Make static.
3271 * python/py-param.c (struct parm_constant): Remove struct type
3272 name.
3273 (parm_constants): Make static.
3274 * python/py-record-btrace.c (btpy_list_methods): Make static.
3275 * python/py-record.c (recpy_gap_type): Make static.
3276 * record.c (record_goto_cmdlist): Make static.
3277 * regcache.c (regcache_descr_handle): Make static.
3278 * registry.h (DEFINE_REGISTRY): Make definition static.
3279 * symmisc.c (std_in, std_out, std_err): Make static.
3280 * top.c (previous_saved_command_line): Make static.
3281 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3282 static.
3283 * unittests/command-def-selftests.c (nr_duplicates,
3284 nr_invalid_prefixcmd, lists): Make static.
3285 * unittests/observable-selftests.c (test_notification): Make
3286 static.
3287 * unittests/optional/assignment/1.cc (counter): Make static.
3288 * unittests/optional/assignment/2.cc (counter): Make static.
3289 * unittests/optional/assignment/3.cc (counter): Make static.
3290 * unittests/optional/assignment/4.cc (counter): Make static.
3291 * unittests/optional/assignment/5.cc (counter): Make static.
3292 * unittests/optional/assignment/6.cc (counter): Make static.
3293
a6c11cbb
JS
32942021-01-20 Joel Sherrill <joel@rtems.org>
3295
3296 PR gdb/27219
3297 * remote.c (struct remote_thread_info) <resume_state>: Rename
3298 to...
3299 <get_resume_state>: ... this.
3300 (remote_target::resume): Adjust.
3301 (remote_target::commit_resume): Adjust.
3302 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3303
6f52fdf4
SDJ
33042021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3305 Tom Tromey <tom@tromey.com>
3306
3307 * stap-probe.c (stap_parse_single_operand): Handle '!'
3308 operator.
3309 (stap_parse_argument_conditionally): Likewise.
3310 Skip spaces after processing open-parenthesis sub-expression.
3311 (stap_parse_argument_1): Skip spaces after call to
3312 stap_parse_argument_conditionally.
3313 Handle case when right-side expression is a parenthesized
3314 sub-expression.
3315 Skip spaces after call to stap_parse_argument_1.
3316
1c3b85ad
LS
33172021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3318
3319 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3320
a9a87d35
LM
33212021-01-19 Luis Machado <luis.machado@linaro.org>
3322
3323 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3324 memory and save data.
3325 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3326 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3327 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3328 (trad_frame_value_bytes_p): Remove.
3329 (trad_frame_reset_saved_regs): Adjust documentation.
3330 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3331 constructor and reset the state of the registers.
3332 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3333 (trad_frame_value_bytes_p, trad_frame_set_value)
3334 (trad_frame_set_realreg, trad_frame_set_addr)
3335 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3336 (trad_frame_set_reg_realreg): Update to call member function.
3337 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3338 (trad_frame_get_prev_register): Likewise.
3339
3340 * aarch64-tdep.c (aarch64_analyze_prologue)
3341 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3342 (aarch64_prologue_prev_register): Update to use member functions.
3343 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3344 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3345 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3346 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3347 (arm_make_epilogue_frame_cache): Likewise.
3348 * avr-tdep.c (avr_frame_unwind_cache)
3349 (avr_frame_prev_register): Likewise.
3350 * cris-tdep.c (cris_scan_prologue): Likewise.
3351 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3352 * frv-tdep.c (frv_analyze_prologue): Likewise.
3353 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3354 * lm32-tdep.c (lm32_frame_cache): Likewise.
3355 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3356 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3357 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3358 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3359 (reset_saved_regs): Adjust to set realreg.
3360 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3361 call member functions.
3362 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3363 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3364 (s390_backchain_frame_unwind_cache): Likewise.
3365 * score-tdep.c (score7_analyze_prologue)
3366 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3367 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3368 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3369 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3370 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3371 * tilegx-tdep.c (tilegx_analyze_prologue)
3372 (tilegx_frame_cache): Likewise.
3373 * v850-tdep.c (v850_frame_cache): Likewise.
3374 * vax-tdep.c (vax_frame_cache): Likewise.
3375
bdec2917
LM
33762021-01-19 Luis Machado <luis.machado@linaro.org>
3377
3378 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3379 of buffer + length.
3380 (put_frame_register_bytes): Likewise.
3381 Adjust documentation.
3382 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3383 (safe_frame_unwind_memory): Likewise.
3384 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3385 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3386 gdb::array_view.
3387 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3388 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3389 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3390 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3391 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3392 * dwarf2/loc.c (rw_pieced_value): Likewise.
3393 * hppa-tdep.c (hppa_frame_cache): Likewise.
3394 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3395 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3396 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3397 (i386_linux_rt_sigtramp_start): Likewise.
3398 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3399 * i386-tdep.c (i386_register_to_value): Likewise.
3400 * i387-tdep.c (i387_register_to_value): Likewise.
3401 * ia64-tdep.c (ia64_register_to_value): Likewise.
3402 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3403 (m32r_linux_rt_sigtramp_start): Likewise.
3404 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3405 * m68k-tdep.c (m68k_register_to_value): Likewise.
3406 * mips-tdep.c (mips_register_to_value)
3407 (mips_value_to_register): Likewise.
3408 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3409 (ppcfbsd_sigtramp_frame_cache): Likewise.
3410 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3411 (ppcobsd_sigtramp_frame_cache): Likewise.
3412 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3413 (rs6000_register_to_value): Likewise.
3414 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3415 * tramp-frame.c (tramp_frame_start): Likewise.
3416 * valops.c (value_assign): Likewise.
3417
ccbe4c82
LM
34182021-01-19 Luis Machado <luis.machado@linaro.org>
3419
3420 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3421 array_view.
3422 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3423 instead of buffer and size.
3424 (trad_frame_set_reg_value_bytes): Likewise.
3425 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3426 (trad_frame_set_value_bytes): Likewise.
3427
0e7620dc
MF
34282021-01-18 Mike Frysinger <vapier@gentoo.org>
3429
3430 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3431
6a9ad81c
AB
34322021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3433
3434 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3435 (riscv_fbsd_gregset): Use riscv_supply_regset.
3436 (riscv_fbsd_fpregset): Likewise.
3437 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3438 (riscv_linux_fregset): Likewise.
3439 * riscv-tdep.c (riscv_supply_regset): Define new function.
3440 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3441
d3d7d1ba
TV
34422021-01-18 Tom de Vries <tdevries@suse.de>
3443
3444 PR tdep/27172
3445 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3446 New macro.
3447 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3448 for SEGV_BNDERR.
3449
aa2838cc
SM
34502021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3451
3452 * remote.c (class remote_target) <remote_hostio_send_command,
3453 remote_hostio_parse_result>: Constify parameter.
3454 (remote_hostio_parse_result): Likewise.
3455 (remote_target::remote_hostio_send_command): Adjust.
3456 (remote_target::remote_hostio_pread_vFile): Adjust.
3457 (remote_target::fileio_readlink): Adjust.
3458 (remote_target::fileio_fstat): Adjust.
3459
b5c8f22d
SM
34602021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3461
3462 * remote.c (remote_target::start_remote): Move wait_status to
3463 narrower scope.
3464
e3b2741b
SM
34652021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3466
3467 * remote.c (class remote_target):
3468 <add_current_inferior_and_thread>: Constify parameter.
3469 (stop_reply_extract_thread): Likewise.
3470 (remote_target::get_current_thread): Likewise.
3471 (remote_target::add_current_inferior_and_thread): Likewise.
3472
cecb1912
SM
34732021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3474
3475 * remote.c (class remote_target)
3476 <remote_unpack_thread_info_response,
3477 parse_threadlist_response>: Constify parameter and/or return
3478 value and or local variable.
3479 (stub_unpack_int): Likewise.
3480 (unpack_nibble): Likewise.
3481 (unpack_byte): Likewise.
3482 (unpack_int): Likewise.
3483 (unpack_string): Likewise.
3484 (unpack_threadid): Likewise.
3485 (remote_target::remote_unpack_thread_info_response): Likewise.
3486 (remote_target::parse_threadlist_response): Likewise.
3487
5a11fff0
AB
34882021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3489
3490 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3491
17e89137
LS
34922021-01-14 Lancelot Six <lsix@lancelotsix.com>
3493
3494 * MAINTAINERS (Write After Approval): Add myself.
3495
58eadc4b
BE
34962021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3497
3498 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3499 because is_trivially_default_constructible was first implemented with
3500 gcc-5.
3501
5fae2a2c
TV
35022021-01-14 Tom de Vries <tdevries@suse.de>
3503
3504 PR breakpoints/27151
3505 * objfiles.h (in_plt_section): Handle .plt.sec.
3506
8f66807b
AB
35072021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3508
3509 PR gdb/26819
3510 * remote.c
3511 (remote_target::select_thread_for_ambiguous_stop_reply): New
3512 member function.
3513 (remote_target::process_stop_reply): Call
3514 select_thread_for_ambiguous_stop_reply.
3515
bd497355
SM
35162021-01-13 Simon Marchi <simon.marchi@efficios.com>
3517
3518 * record-btrace.c (class record_btrace_target): Remove.
3519 (record_btrace_target::commit_resume): Remove.
3520 * record-full.c (class record_full_target): Remove.
3521 (record_full_target::commit_resume): Remove.
3522
c9d22089
SM
35232021-01-13 Simon Marchi <simon.marchi@efficios.com>
3524
3525 * remote.c (enum class resume_state): New.
3526 (struct resumed_pending_vcont_info): New.
3527 (struct remote_thread_info) <resume_state, set_not_resumed,
3528 set_resumed_pending_vcont, resumed_pending_vcont_info,
3529 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3530 New.
3531 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3532 (remote_target::remote_add_thread): Adjust.
3533 (remote_target::process_initial_stop_replies): Adjust.
3534 (remote_target::resume): Adjust.
3535 (remote_target::commit_resume): Rely on state in
3536 remote_thread_info and not on tp->executing.
3537 (remote_target::process_stop_reply): Adjust.
3538
d8d1feb4
SM
35392021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3540
3541 * arc-tdep.h (arc_debug_printf): New.
3542 * arc-tdep.c: Use arc_debug_printf.
3543 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3544 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3545 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3546
fb0f5031
SM
35472021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3548
3549 * arc-tdep.h (arc_debug): Change type to bool.
3550 * arc-tdep.c (arc_debug): Change type to bool.
3551 (arc_analyze_prologue): Adjust.
3552 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3553 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3554
5bf7e91b
SM
35552021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3556
3557 * auto-load.c (auto_load_objfile_script_1): Use bool.
3558 (execute_script_contents): Use bool.
3559
db972fce
SM
35602021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3561
3562 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3563 comment here.
3564 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3565 comment to header.
3566 * extension-priv.h (struct extension_language_script_ops)
3567 <auto_load_enabled>: Return bool.
3568 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3569 comment here.
3570 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3571 comment to header.
3572 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3573 move comment here.
3574 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3575 move comment to header.
3576 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3577 move comment here.
3578 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3579 move comment to header.
3580
5e12f48f
SM
35812021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3582
3583 * auto-load.h (file_is_auto_load_safe): Change return type to
3584 bool, move comment here.
3585 * auto-load.c (file_is_auto_load_safe): Change return type and
3586 advice_printed to bool. Move comment to header.
3587
54ca9002
SM
35882021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3589
3590 * jit.c (jit_debug_printf): New, use throughout file.
3591
24a7f1b5
SM
35922021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3593
3594 * infrun.c (normal_stop): Fix indentation.
3595
fe7a351a
SM
35962021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3597
3598 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3599 declarations to ...
3600 * symfile.h: ... here.
3601 * symfile.c: Update doc.
3602
16e9019e
SM
36032021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3604
3605 * target.h (baud_rate, serial_parity): Move declarations...
3606 * serial.h: ... here.
3607 * main.c: Include serial.h.
3608 * serial.c (baud_rate, serial_parity): Update doc.
3609
b2f2ae0d
SM
36102021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3611
3612 * top.c (pre_init_ui_hook): Remove.
3613
5291fe3c
SP
36142021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3615
3616 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3617 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3618 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3619 * features/aarch64-fpu.xml: Add bfloat16 type.
3620
ce38f5ed
AB
36212021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3622
3623 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3624
7c654b71
AB
36252021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3626
3627 * f-exp.y (dot_ops): Rename to...
3628 (fortran_operators): ...this. Add a header comment. Add symbol
3629 based operators.
3630 (yylex): Update to use fortran_operators not dot_ops. Remove
3631 special handling for '**', this is now included in
3632 fortran_operators.
3633
c6185dce
SM
36342021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3635
3636 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3637 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3638 * aarch64-tdep.c: Use aarch64_debug_printf.
3639
eef401dc
SM
36402021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3641
3642 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3643 file.
3644
062eaacb
SM
36452021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3646
3647 * jit.c (jit_debug): Change type to bool.
3648 (_initialize_jit): Adjust.
3649
54585eee
TT
36502021-01-09 Tom Tromey <tom@tromey.com>
3651
3652 PR compile/23672
3653 * compile/compile.c (compile_to_object): Avoid crash when
3654 osabi_triplet_regexp returns NULL.
3655
bc167b6b
TT
36562021-01-09 Tom Tromey <tom@tromey.com>
3657
3658 * tracepoint.h (class collection_list) <append_exp>: Take a
3659 std::string.
3660 * tracepoint.c (collection_list::append_exp): Take a std::string.
3661 (encode_actions_1): Update.
3662
8fc48b79
TT
36632021-01-08 Tom Tromey <tromey@adacore.com>
3664
3665 * parse.c (parse_expression): Add void_context_p parameter. Use
3666 parse_exp_in_context.
3667 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3668 parse_expression.
3669 (print_command, call_command): Update.
3670 * expression.h (parse_expression): Add void_context_p parameter.
3671
3c8c6de2
AB
36722021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3673
3674 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3675 for internalvar components that have a dynamic location.
3676
1940319c
TV
36772021-01-08 Tom de Vries <tdevries@suse.de>
3678
3679 PR gdb/26881
3680 * breakpoint.c (create_exception_master_breakpoint_probe)
3681 (create_exception_master_breakpoint_hook): Factor out
3682 of ...
3683 (create_exception_master_breakpoint): ... here. Only try to install
3684 the master exception breakpoint in objfile.debug using the
3685 _Unwind_DebugHook method, if the install using probes in objfile
3686 failed.
3687
e3436813
AB
36882021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3689
3690 * f-lang.c (fortran_value_subarray): Call value_from_component.
3691
e904f56d
MF
36922021-01-07 Mike Frysinger <vapier@gentoo.org>
3693
3694 * remote-sim.c: Include memory-map.h.
3695 (gdbsim_target): Define memory_map override.
3696 (gdbsim_target::memory_map): Define.
3697
959d6a67
TT
36982021-01-07 Tom Tromey <tromey@adacore.com>
3699
3700 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3701
d4813f10
TT
37022021-01-07 Tom Tromey <tromey@adacore.com>
3703
3704 * ada-lang.c (add_component_interval): Start loop using vector's
3705 updated size.
3706
b49180ac
TT
37072021-01-06 Tom Tromey <tromey@adacore.com>
3708
3709 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3710 Do not cast result.
3711 * valarith.c (fixed_point_binop): Handle multiplication
3712 and division specially.
3713 * valops.c (value_to_gdb_mpq): New function.
3714 (value_cast_to_fixed_point): Use it.
3715
55195361
HD
37162021-01-05 Hannes Domani <ssbssa@yahoo.de>
3717
3718 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3719 Call wnoutrefresh instead of tui_win_info::refresh_window.
3720
1b6d4bb2
HD
37212021-01-05 Hannes Domani <ssbssa@yahoo.de>
3722
3723 * tui/tui-source.c (tui_source_window::show_line_number):
3724 Redraw second space after line number.
3725
b5ff370e
HD
37262021-01-05 Hannes Domani <ssbssa@yahoo.de>
3727
3728 PR tui/26927
3729 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3730 Fix source pad size in prefresh.
3731 (tui_source_window_base::show_source_content): Grow source pad
3732 if necessary.
3733
c68ea49f
MF
37342021-01-04 Mike Frysinger <vapier@gentoo.org>
3735
3736 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3737 (bfin_frame_align): Use align_down.
3738
e4ad960a
TV
37392021-01-04 Tom de Vries <tdevries@suse.de>
3740
3741 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3742 terminators that do not terminate anything.
3743
3ec3145c
SM
37442021-01-04 Simon Marchi <simon.marchi@efficios.com>
3745
3746 * debug.c (debug_print_depth): New.
3747 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3748 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3749 * infrun.c (start_step_over): Use
3750 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3751 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3752 INFRUN_SCOPED_DEBUG_START_END.
3753 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3754
e71daf80
SM
37552021-01-04 Simon Marchi <simon.marchi@efficios.com>
3756
3757 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3758
335709bc
SM
37592021-01-04 Simon Marchi <simon.marchi@efficios.com>
3760
3761 * utils.c (vfprintf_unfiltered): Print timestamp only when
3762 previous debug output ended with a newline.
3763
098caef4
LM
37642021-01-04 Luis Machado <luis.machado@linaro.org>
3765
3766 Update all users of trad_frame_saved_reg to use the new member
3767 functions.
3768
3769 Remote all struct keywords from declarations of trad_frame_saved_reg
3770 types, except on forward declarations.
3771
3772 * aarch64-tdep.c: Update.
3773 * alpha-mdebug-tdep.c: Update.
3774 * alpha-tdep.c: Update.
3775 * arc-tdep.c: Update.
3776 * arm-tdep.c: Update.
3777 * avr-tdep.c: Update.
3778 * cris-tdep.c: Update.
3779 * csky-tdep.c: Update.
3780 * frv-tdep.c: Update.
3781 * hppa-linux-tdep.c: Update.
3782 * hppa-tdep.c: Update.
3783 * hppa-tdep.h: Update.
3784 * lm32-tdep.c: Update.
3785 * m32r-linux-tdep.c: Update.
3786 * m32r-tdep.c: Update.
3787 * m68hc11-tdep.c: Update.
3788 * mips-tdep.c: Update.
3789 * moxie-tdep.c: Update.
3790 * riscv-tdep.c: Update.
3791 * rs6000-tdep.c: Update.
3792 * s390-linux-tdep.c: Update.
3793 * s390-tdep.c: Update.
3794 * score-tdep.c: Update.
3795 * sparc-netbsd-tdep.c: Update.
3796 * sparc-sol2-tdep.c: Update.
3797 * sparc64-fbsd-tdep.c: Update.
3798 * sparc64-netbsd-tdep.c: Update.
3799 * sparc64-obsd-tdep.c: Update.
3800 * sparc64-sol2-tdep.c: Update.
3801 * tilegx-tdep.c: Update.
3802 * v850-tdep.c: Update.
3803 * vax-tdep.c: Update.
3804
3805 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3806 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3807
3808 * trad-frame.c: Update.
3809 Remove TF_REG_* enum.
3810 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3811 a trivially-constructible struct.
3812 (trad_frame_reset_saved_regs): Adjust to use member function.
3813 (trad_frame_value_p): Likewise.
3814 (trad_frame_addr_p): Likewise.
3815 (trad_frame_realreg_p): Likewise.
3816 (trad_frame_value_bytes_p): Likewise.
3817 (trad_frame_set_value): Likewise.
3818 (trad_frame_set_realreg): Likewise.
3819 (trad_frame_set_addr): Likewise.
3820 (trad_frame_set_unknown): Likewise.
3821 (trad_frame_set_value_bytes): Likewise.
3822 (trad_frame_get_prev_register): Likewise.
3823 * trad-frame.h: Update.
3824 (trad_frame_saved_reg_kind): New enum.
3825 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3826 <m_kind, m_reg>: New member fields.
3827 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3828 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3829 <is_addr, is_unknown, is_value_bytes>: New member functions.
3830
9898e882
SM
38312021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3832
3833 * target-float.c: Fix typos.
3834
b66b4e65
HD
38352021-01-02 Hannes Domani <ssbssa@yahoo.de>
3836
3837 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3838
b5b5650a
JB
38392021-01-01 Joel Brobecker <brobecker@adacore.com>
3840
3841 * gdbarch.sh: Update copyright year range.
3842
3666a048
JB
38432021-01-01 Joel Brobecker <brobecker@adacore.com>
3844
3845 Update copyright year range in copyright header of all GDB files.
3846
ff7e39b6
JB
38472021-01-01 Joel Brobecker <brobecker@adacore.com>
3848
3849 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3850 to the list of directories to update.
3851
2b47c078
JB
38522021-01-01 Joel Brobecker <brobecker@adacore.com>
3853
3854 * top.c (print_gdb_version): Update copyright year.
3855
476923f1 38562021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 3857
476923f1 3858 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 3859
476923f1 3860For older changes see ChangeLog-2020.
c906108c
SS
3861\f
3862Local Variables:
3863mode: change-log
3864left-margin: 8
3865fill-column: 74
3866version-control: never
57da7796 3867coding: utf-8
c906108c 3868End: