Move quick_symbol_functions to a new header
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
9b99dcc8
TT
12021-03-20 Tom Tromey <tom@tromey.com>
2
3 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
4 (expand_symtabs_file_matcher_ftype)
5 (expand_symtabs_symbol_matcher_ftype)
6 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
7 Move to quick-symbol.h.
8 * quick-symbol.h: New file.
9
4d080b46
TT
102021-03-20 Tom Tromey <tom@tromey.com>
11
12 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
13 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
14 (basic_lookup_transparent_type_quick)
15 (find_pc_sect_compunit_symtab, find_symbol_at_address)
16 (find_line_symtab, global_symbol_searcher::expand_symtabs):
17 Update.
18 * symmisc.c (print_objfile_statistics, dump_objfile)
19 (maintenance_expand_symtabs): Update.
20 * symfile.c (symbol_file_add_with_addrs)
21 (expand_symtabs_matching, map_symbol_filenames): Update.
22 * symfile-debug.c (objfile::has_partial_symbols)
23 (objfile::find_last_source_symtab)
24 (objfile::forget_cached_source_info)
25 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
26 (objfile::print_stats, objfile::dump)
27 (objfile::expand_symtabs_for_function)
28 (objfile::expand_all_symtabs)
29 (objfile::expand_symtabs_with_fullname)
30 (objfile::map_matching_symbols)
31 (objfile::expand_symtabs_matching)
32 (objfile::find_pc_sect_compunit_symtab)
33 (objfile::map_symbol_filenames)
34 (objfile::find_compunit_symtab_by_address)
35 (objfile::lookup_global_symbol_language): New methods.
36 (debug_sym_quick_functions): Remove.
37 (debug_sym_fns, install_symfile_debug_logging): Update.
38 * source.c (forget_cached_source_info_for_objfile)
39 (select_source_symtab): Update.
40 * objfiles.h (struct objfile): Add methods corresponding to
41 quick_symbol_functions.
42 * objfiles.c (objfile::has_partial_symbols): Move to
43 symfile-debug.c.
44 * linespec.c (iterate_over_all_matching_symtabs): Update.
45 * cp-support.c (add_symbol_overload_list_qualified): Update.
46 * ada-lang.c (add_nonlocal_symbols): Update.
47
fae2120b
TT
482021-03-20 Tom Tromey <tom@tromey.com>
49
50 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
51 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
52 bool.
53 * symfile-debug.c (debug_qf_has_symbols): Return bool.
54 * psymtab.c (psym_has_symbols): Return bool.
55 * objfiles.c (objfile::has_partial_symbols): Return bool.
56 * dwarf2/read.c (dw2_has_symbols): Return bool.
57
a8ad4f3c
TT
582021-03-20 Tom Tromey <tom@tromey.com>
59
60 * symfile.c (read_symbols): Update.
61 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
62 (objfile_has_partial_symbols): Don't declare.
63 * objfiles.c (objfile::has_partial_symbols): Rename from
64 objfile_has_partial_symbols.
65 (objfile_has_symbols, have_partial_symbols): Update.
66 * elfread.c (elf_symfile_read): Update.
67 * dwarf2/read.c (dwarf2_has_info): Update.
68 * coffread.c (coff_symfile_read): Update.
69
70182375
TT
702021-03-20 Tom Tromey <tom@tromey.com>
71
72 * coffread.c: Include dwarf2/public.h.
73 * dwarf2/frame.c: Include dwarf2/public.h.
74 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
75 * dwarf2/public.h: New file.
76 * dwarf2/read.c: Include dwarf2/public.h.
77 * elfread.c: Include dwarf2/public.h.
78 * machoread.c: Include dwarf2/public.h.
79 * symfile.h (dwarf2_has_info, enum dw_index_kind)
80 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
81 (dwarf2_build_frame_info): Move to dwarf2/public.h.
82 * xcoffread.c: Include dwarf2/public.h.
83
18038e63
TT
842021-03-20 Tom Tromey <tom@tromey.com>
85
86 * symfile.h (enum dwarf2_section_enum)
87 (dwarf2_get_section_info): Move to dwarf2/read.h.
88 * dwarf2/read.h (enum dwarf2_section_enum)
89 (dwarf2_get_section_info): Move from symfile.h.
90
219f56b4
PA
912021-03-19 Pedro Alves <pedro@palves.net>
92
93 * thread.c (any_thread_of_inferior): Check if there's a selected
94 thread before calling inferior_thread().
95
15310fd4
TT
962021-03-18 Tom Tromey <tromey@adacore.com>
97
98 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
99 get_DW_UT_name.
100 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
101 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
102
763b8efd
AB
1032021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
104
105 * python/py-param.c (get_set_value): Update header comment.
106
f058c521
SM
1072021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * infrun.c (check_multi_target_resumption): Remove argument to
110 all_non_exited_inferiors.
111
383228bc
CB
1122021-03-16 Christian Biesinger <cbiesinger@google.com>
113
114 * windows-nat.c (windows_init_thread_list): Add message to
115 debug log.
116
7807d76a
AB
1172021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
118
119 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
120 well as PyLong_Check for Python 2.
121
675da9a5
TT
1222021-03-15 Tom Tromey <tromey@adacore.com>
123
124 PR build/27579:
125 * rust-exp.y (maker_map): Use gdb::hash_enum.
126 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
127
4800761a
SM
1282021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
129
130 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
131 end of debug print.
132
eb5dd737
SM
1332021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
134
135 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
136 parameter, adjust caller.
137
6813ceb0
TT
1382021-03-15 Tom Tromey <tromey@adacore.com>
139
140 * ada-exp.y (simple_exp): Always push a result for unary '+'.
141
3b5c4de0
TT
1422021-03-15 Tom Tromey <tromey@adacore.com>
143
144 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
145 ada_ensure_varsize_limit.
146
c04da66c
TT
1472021-03-15 Tom Tromey <tromey@adacore.com>
148
149 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
150 fixed-point.
151 * ada-exp.y (maybe_overload): New function.
152 (ada_wrap_overload): New function.
153 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
154 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
155 (or_else_exp, xor_exp, primary): Update.
156
9863c3b5
TT
1572021-03-15 Tom Tromey <tromey@adacore.com>
158
159 PR ada/27545:
160 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
161 call for tagged type.
162
1ac74522
TT
1632021-03-15 Tom Tromey <tromey@adacore.com>
164
165 * ada-exp.y (exp1): Handle resolution of the right hand side of an
166 assignment.
167
207582c0
TT
1682021-03-15 Tom Tromey <tromey@adacore.com>
169
170 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
171 container.
172 (ada_assign_operation::evaluate): Update.
173 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
174 Change return type.
175
8d624a9d
FW
1762021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
177
178 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
179
ba6a0ef3
AB
1802021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
181
182 * python/python.c (gdbpy_source_objfile_script): Use
183 make_scoped_restore to restore gdbpy_current_objfile.
184 (gdbpy_execute_objfile_script): Likewise.
185
7c290a04
TT
1862021-03-14 Tom Tromey <tom@tromey.com>
187
188 * dwarf2/read.c (read_attribute_value): Use cu_header
189 consistently.
190
0280fdcc
TT
1912021-03-14 Tom Tromey <tom@tromey.com>
192
193 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
194 (peek_die_abbrev): Use reader.abfd.
195
a9f172c6
TT
1962021-03-14 Tom Tromey <tom@tromey.com>
197
198 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
199 m_header_read_in.
200
7c32eebb
TT
2012021-03-13 Tom Tromey <tom@tromey.com>
202
203 * dwarf2/read.c (struct partial_die_info): Update.
204 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
205 (load_partial_dies, partial_die_info::partial_die_info): Update.
206 * dwarf2/abbrev.h (lookup_abbrev): Constify.
207
27012aba
TT
2082021-03-13 Tom Tromey <tom@tromey.com>
209
210 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
211
fece451c
CB
2122021-03-12 Christian Biesinger <cbiesinger@google.com>
213
214 PR threads/27239
215 * cp-support.c: Use scoped_segv_handler_restore.
216 * event-top.c (thread_local_segv_handler): Made static.
217 (scoped_segv_handler_restore::scoped_segv_handler_restore):
218 New function.
219 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
220 function.
221 * event-top.h (class scoped_segv_handler_restore): New class.
222 (thread_local_segv_handler): Removed.
223
7056f312
TT
2242021-03-10 Tom Tromey <tromey@adacore.com>
225
226 * parser-defs.h (parser_state): Change completion to bool.
227 <parse_completion>: Likewise.
228 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
229 (ada_resolve_variable, ada_resolve_function): Update.
230 * ada-lang.c (ada_find_operator_symbol): Change
231 parse_completion to bool.
232 (ada_resolve_funcall, ada_resolve_variable)
233 (ada_resolve_function): Likewise.
234
ccdc02ed
TT
2352021-03-09 Tom Tromey <tromey@adacore.com>
236
237 * eval.c (operation::evaluate_funcall): Use function formal
238 parameter types when evaluating.
239
fbb1aace
AB
2402021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
241
242 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
243 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
244 and owner to m_owner.
245
611aa09d
FW
2462021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
247
248 * f-exp.h (eval_op_f_loc): Declare.
249 (expr::fortran_loc_operation): New typedef.
250 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
251 UNOP_INTRINSIC.
252 (f77_keywords): Add LOC keyword.
253 * f-lang.c (eval_op_f_loc): New function.
254 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
255
eef32f59
AB
2562021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
257
258 * f-exp.h (eval_op_f_array_shape): Declare.
259 (fortran_array_shape_operation): New type.
260 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
261 UNOP_INTRINSIC.
262 (f77_keywords): Add "shape" keyword.
263 * f-lang.c (fortran_array_shape): New function.
264 (eval_op_f_array_shape): New function.
265 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
266
7ba155b3
AB
2672021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
270 of this function.
271 (expr::fortran_array_size_1arg): New type.
272 (expr::fortran_array_size_2arg): Likewise.
273 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
274 UNOP_OR_BINOP_INTRINSIC.
275 (f77_keywords): Add "size" keyword.
276 * f-lang.c (fortran_array_size): New function.
277 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
278 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
279
e14816a8
AB
2802021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
281
282 * f-exp.h (eval_op_f_rank): Declare.
283 (expr::fortran_rank_operation): New typedef.
284 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
285 UNOP_INTRINSIC.
286 (f77_keywords): Add "rank" keyword.
287 * f-lang.c (eval_op_f_rank): New function.
288 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
289
3dd93bf8
TT
2902021-03-08 Tom Tromey <tom@tromey.com>
291
292 * printcmd.c (set_command): Remove null check.
293 * value.c (init_if_undefined_command): Remove null check.
294
9c79936b
TT
2952021-03-08 Tom Tromey <tom@tromey.com>
296
297 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
298 Update.
299 * p-exp.y (variable): Update.
300 * go-exp.y (variable): Update.
301 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
302 Remove overload for objfile.
303 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
304 parameter.
305 (check_objfile): Likewise.
306 (dump_for_expression): Likewise. Remove overload for objfile.
307 (class var_msym_value_operation): Use bound_minimal_symbol.
308 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
309 parameter.
310 (var_msym_value_operation::evaluate_for_address)
311 (var_msym_value_operation::evaluate_for_sizeof)
312 (var_msym_value_operation::evaluate_for_cast): Update.
313 * d-exp.y (PrimaryExpression): Update.
314 * c-exp.y (variable): Update.
315 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
316 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
317 Update.
318 * ada-exp.y (write_var_or_type): Update.
319
40d07d07
TT
3202021-03-08 Tom Tromey <tom@tromey.com>
321
322 * parser-defs.h (exp_uses_objfile): Return bool.
323 * parse.c (exp_uses_objfile): Return bool.
324
0b2b0b82
TT
3252021-03-08 Tom Tromey <tom@tromey.com>
326
327 * value.h (eval_skip_value): Don't declare.
328 * opencl-lang.c (eval_opencl_assign): Update.
329 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
330 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
331 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
332 * expression.h (enum noside) <EVAL_SKIP>: Remove.
333 * expop.h (typeof_operation::evaluate)
334 (decltype_operation::evaluate, unop_addr_operation::evaluate)
335 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
336 (cxx_cast_operation::evaluate): Update.
337 * eval.c (eval_skip_value): Remove.
338 (eval_op_scope, eval_op_var_entry_value)
339 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
340 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
341 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
342 (eval_op_binary, eval_op_subscript, eval_op_equal)
343 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
344 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
345 (eval_op_complement, eval_op_lognot, eval_op_ind)
346 (eval_op_memval, eval_op_preinc, eval_op_predec)
347 (eval_op_postinc, eval_op_postdec, eval_op_type)
348 (eval_binop_assign_modify, eval_op_objc_msgcall)
349 (eval_multi_subscript, logical_and_operation::evaluate)
350 (logical_or_operation::evaluate, array_operation::evaluate)
351 (operation::evaluate_for_cast)
352 (var_msym_value_operation::evaluate_for_cast)
353 (var_value_operation::evaluate_for_cast): Update.
354 * c-lang.c (c_string_operation::evaluate): Update.
355 * c-exp.h (objc_nsstring_operation::evaluate)
356 (objc_selector_operation::evaluate): Update.
357 * ada-lang.c (ada_assign_operation::evaluate)
358 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
359 (ada_atr_size): Update.
360
96db551d
TT
3612021-03-08 Tom Tromey <tom@tromey.com>
362
363 * eval.c: Merge "namespace" scopes.
364
ce284361
TT
3652021-03-08 Tom Tromey <tom@tromey.com>
366
367 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
368 <release>: Inline.
369 * parse.c (expr_builder::expr_builder, expr_builder::release):
370 Remove.
371
b9d06571
TT
3722021-03-08 Tom Tromey <tom@tromey.com>
373
374 * parse.c (expression::expression, expression::~expression):
375 Remove.
376 * expression.h (struct expression): Inline constructor. Remove
377 destructor.
378
79ab486e
TT
3792021-03-08 Tom Tromey <tom@tromey.com>
380
381 * std-operator.def (BINOP_END): Remove.
382 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
383 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
384 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
385 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
386 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
387 BINOP_END.
388
48fa6f23
TT
3892021-03-08 Tom Tromey <tom@tromey.com>
390
391 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
392
43f542e3
TT
3932021-03-08 Tom Tromey <tom@tromey.com>
394
395 * std-operator.def (OP_EXTENDED0): Remove.
396
5d9ba982
TT
3972021-03-08 Tom Tromey <tom@tromey.com>
398
399 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
400 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
401 Remove.
402
d357570d
TT
4032021-03-08 Tom Tromey <tom@tromey.com>
404
405 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
406 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
407
0922dc84
TT
4082021-03-08 Tom Tromey <tom@tromey.com>
409
410 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
411 * ada-lang.c (ada_binop_minmax): Update.
412 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
413 Use BINOP_MIN and BINOP_MAX.
414
1eaebe02
TT
4152021-03-08 Tom Tromey <tom@tromey.com>
416
417 * value.h (evaluate_subexp_with_coercion): Don't declare.
418 * parse.c (exp_descriptor_standard): Remove.
419 (expr_builder::expr_builder, expr_builder::release): Update.
420 (expression::expression): Remove size_t parameter.
421 (expression::~expression): Simplify.
422 (expression::resize): Remove.
423 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
424 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
425 (write_exp_elt_longcst, write_exp_elt_floatcst)
426 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
427 (write_exp_string_vector, write_exp_bitstring): Remove.
428 * p-lang.h (class pascal_language) <opcode_print_table,
429 op_print_tab>: Remove.
430 * p-lang.c (pascal_language::op_print_tab): Remove.
431 * opencl-lang.c (class opencl_language) <opcode_print_table>:
432 Remove.
433 * objc-lang.c (objc_op_print_tab): Remove.
434 (class objc_language) <opcode_print_table>: Remove.
435 * m2-lang.h (class m2_language) <opcode_print_table,
436 op_print_tab>: Remove.
437 * m2-lang.c (m2_language::op_print_tab): Remove.
438 * language.h (struct language_defn) <post_parser, expression_ops,
439 opcode_print_table>: Remove.
440 * language.c (language_defn::expression_ops)
441 (auto_or_unknown_language::opcode_print_table): Remove.
442 * go-lang.h (class go_language) <opcode_print_table,
443 op_print_tab>: Remove.
444 * go-lang.c (go_language::op_print_tab): Remove.
445 * f-lang.h (class f_language) <opcode_print_table>: Remove
446 <op_print_tab>: Remove.
447 * f-lang.c (f_language::op_print_tab): Remove.
448 * expression.h (union exp_element): Remove.
449 (struct expression): Remove size_t parameter from constructor.
450 <resize>: Remove.
451 <first_opcode>: Update.
452 <nelts, elts>: Remove.
453 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
454 (evaluate_subexp_standard, print_expression, op_string)
455 (dump_raw_expression): Don't declare.
456 * expprint.c (print_expression, print_subexp)
457 (print_subexp_funcall, print_subexp_standard, op_string)
458 (dump_raw_expression, dump_subexp, dump_subexp_body)
459 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
460 (dump_prefix_expression): Update.
461 * eval.c (evaluate_subexp): Remove.
462 (evaluate_expression, evaluate_type): Update.
463 (evaluate_subexpression_type): Remove.
464 (fetch_subexp_value): Remove "pc" parameter. Update.
465 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
466 (evaluate_subexp_standard, evaluate_subexp_for_address)
467 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
468 (evaluate_subexp_for_cast): Remove.
469 (parse_and_eval_type): Update.
470 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
471 * d-lang.c (d_op_print_tab): Remove.
472 (class d_language) <opcode_print_table>: Remove.
473 * c-lang.h (c_op_print_tab): Don't declare.
474 * c-lang.c (c_op_print_tab): Remove.
475 (class c_language, class cplus_language, class asm_language, class
476 minimal_language) <opcode_print_table>: Remove.
477 * breakpoint.c (update_watchpoint, watchpoint_check)
478 (watchpoint_exp_is_const, watch_command_1): Update.
479 * ax-gdb.h (union exp_element): Don't declare.
480 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
481 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
482 (gen_expr_binop_rest): Remove.
483 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
484 * ada-lang.c (ada_op_print_tab): Remove.
485 (class ada_language) <post_parser, opcode_print_table>: Remove.
486
f2a98603
TT
4872021-03-08 Tom Tromey <tom@tromey.com>
488
489 * go-lang.c (go_language::expression_ops): Don't declare.
490 * go-lang.h (class go_language) <expression_ops>: Remove.
491 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
492 Remove.
493 (class opencl_language) <expression_ops>: Remove.
494 * d-lang.c (class d_language) <expression_ops>: Remove.
495 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
496 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
497 (class c_language, class cplus_language, class asm_language)
498 (class minimal_language) <expression_ops>: Remove.
499
d3c54a1c
TT
5002021-03-08 Tom Tromey <tom@tromey.com>
501
502 * ada-lang.c (resolve_subexp, replace_operator_with_call)
503 (evaluate_subexp_type, assign_aggregate)
504 (aggregate_assign_positional, aggregate_assign_from_choices)
505 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
506 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
507 (ada_operator_check, ada_forward_operator_length)
508 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
509 Remove.
510 (post_parser): Update.
511 (class ada_language) <expresssion_ops>: Remove.
512
5871f0a3
TT
5132021-03-08 Tom Tromey <tom@tromey.com>
514
515 * m2-lang.h (class m2_language) <expresssion_ops,
516 exp_descriptor_modula2>: Remove.
517 * m2-lang.c (evaluate_subexp_modula2)
518 (m2_language::exp_descriptor_modula2): Remove.
519
a99be8c1
TT
5202021-03-08 Tom Tromey <tom@tromey.com>
521
522 * f-lang.h (class f_language) <expresssion_ops>: Remove.
523 <exp_descriptor_tab>: Remove.
524 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
525 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
526 (print_subexp_f, dump_subexp_body_f, operator_check_f)
527 (f_language::exp_descriptor_tab, fortran_prepare_argument):
528 Remove.
529
aa1da9ed
TT
5302021-03-08 Tom Tromey <tom@tromey.com>
531
532 * rust-lang.h (class rust_language) <expression_ops,
533 exp_descriptor_tab>: Remove.
534 * rust-lang.c (rust_evaluate_funcall): Remove.
535 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
536 EVAL_SKIP.
537 (rust_evaluate_subexp): Remove.
538 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
539 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
540 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
541
08a057e6
TT
5422021-03-08 Tom Tromey <tom@tromey.com>
543
544 * ada-exp.y: Create operations.
545 (empty_stoken): Remove.
546 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
547 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
548 (components): New global.
549 (push_component, choice_component, pop_component, pop_components):
550 New functions.
551 (associations): New global
552 (push_association, pop_association, pop_associations): New
553 functions.
554 (ada_parse): Update.
555 (write_var_from_sym, write_int): Create operations.
556 (write_exp_op_with_string): Remove.
557 (write_object_renaming, write_selectors, write_ambiguous_var)
558 (write_var_or_type, write_name_assoc): Create operations.
559 * ada-lang.h (ada_index_type): Declare.
560 * ada-lang.c (ada_index_type): No longer static.
561
d308ba78
TT
5622021-03-08 Tom Tromey <tom@tromey.com>
563
564 * f-exp.y: Create operations.
565 (f_language::parser): Update.
566
f1b8ceef
TT
5672021-03-08 Tom Tromey <tom@tromey.com>
568
569 * m2-exp.y: Create operations.
570 (m2_language::parser): Update.
571
3163898e
TT
5722021-03-08 Tom Tromey <tom@tromey.com>
573
574 * p-exp.y: Create operations.
575 (pascal_language::parser): Update.
576
9412fdcc
TT
5772021-03-08 Tom Tromey <tom@tromey.com>
578
579 * d-exp.y: Create operations.
580 (d_parse): Update.
581
bb4e0574
TT
5822021-03-08 Tom Tromey <tom@tromey.com>
583
584 * go-exp.y: Create operations.
585 (go_language::parser): Update.
586
d182f279
TT
5872021-03-08 Tom Tromey <tom@tromey.com>
588
589 * objc-lang.c (end_msglist): Create operations.
590 * c-exp.y: Change parser to create operations.
591 (write_destructor_name): Remove.
592 (c_parse): Update.
593
c1299a23
TT
5942021-03-08 Tom Tromey <tom@tromey.com>
595
596 * rust-exp.y: Create operations.
597 (rust_parser::convert_params_to_expression): Change return type.
598 (binop_maker_ftype): New typedef.
599 (maker_map): New global.
600 (rust_parser::convert_ast_to_expression): Change return type.
601 (rust_language::parser): Update.
602 (_initialize_rust_exp): Initialize maker_map.
603
4c5e7a93
TT
6042021-03-08 Tom Tromey <tom@tromey.com>
605
606 * stap-probe.c (binop_maker_ftype): New typedef.
607 (stap_maker_map): New global.
608 (stap_make_binop): New function.
609 (stap_parse_register_operand): Return operation_up.
610 (stap_parse_single_operand, stap_parse_argument_conditionally)
611 (stap_parse_argument_1): Likewise.
612 (stap_parse_argument): Create operations.
613 (stap_probe::parse_arguments): Update.
614 (_initialize_stap_probe): Initialize stap_maker_map.
615 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
616 type.
617 * i386-tdep.h (i386_stap_parse_special_token): Change return
618 type.
619 * i386-tdep.c (i386_stap_parse_special_token_triplet)
620 (i386_stap_parse_special_token_three_arg_disp)
621 (i386_stap_parse_special_token): Change return type.
622 * gdbarch.sh (stap_parse_special_token): Change return type.
623 * gdbarch.c: Rebuild.
624 * gdbarch.h: Rebuild.
625 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
626 type.
627 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
628 return type.
629
482ddd69
TT
6302021-03-08 Tom Tromey <tom@tromey.com>
631
632 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
633 * gdbarch.h: Rebuild.
634 * gdbarch.c: Rebuild.
635 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
636 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
637 return type.
638 (amd64_dtrace_parse_probe_argument): Update.
639
8227d9e2
TT
6402021-03-08 Tom Tromey <tom@tromey.com>
641
642 * parser-defs.h (struct parser_state) <push, push_new,
643 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
644 wrap2>: New methods.
645 <m_operations>: New member.
646 * parse.c (parser_state::push_c_string)
647 (parser_state::push_symbol, parser_state::push_dollar): New
648 methods.
649
4933522d
TT
6502021-03-08 Tom Tromey <tom@tromey.com>
651
652 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
653 New member.
654 (struct parser_state) <mark_struct_expression>: New method.
655 * parse.c (parser_state::mark_struct_expression): Update assert.
656 (parser_state::mark_struct_expression): New method.
657 (parser_state::mark_completion_tag): Update assert.
658 (parse_expression_for_completion): Handle expout_last_op.
659
413403fc
TT
6602021-03-08 Tom Tromey <tom@tromey.com>
661
662 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
663 now in superclass.
664 * value.h (fetch_subexp_value): Add "op" parameter.
665 * value.c (init_if_undefined_command): Update.
666 * tracepoint.c (validate_actionline, encode_actions_1): Update.
667 * stap-probe.c (stap_probe::compile_to_ax): Update.
668 * printcmd.c (set_command): Update.
669 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
670 Update.
671 * parser-defs.h (struct expr_builder) <set_operation>: New
672 method.
673 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
674 * expression.h (struct expression) <first_opcode>: Update.
675 <op>: New member.
676 * expprint.c (dump_raw_expression, dump_prefix_expression):
677 Update.
678 * expop.h (class var_value_operation) <get_symbol>: New method.
679 (class register_operation) <get_name>: New method.
680 (class equal_operation): No longer a typedef, now a subclass.
681 (class unop_memval_operation) <get_type>: New method.
682 (class assign_operation) <get_lhs>: New method.
683 (class unop_cast_operation) <get_type>: New method.
684 * eval.c (evaluate_expression, evaluate_type)
685 (evaluate_subexpression_type): Update.
686 (fetch_subexp_value): Add "op" parameter.
687 (parse_and_eval_type): Update.
688 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
689 * breakpoint.c (update_watchpoint, watchpoint_check)
690 (watchpoint_exp_is_const, watch_command_1): Update.
691 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
692 Update.
693
b0f9164c
TT
6942021-03-08 Tom Tromey <tom@tromey.com>
695
696 * ada-lang.c (ada_value_binop): Do not use op_string.
697
a88c4354
TT
6982021-03-08 Tom Tromey <tom@tromey.com>
699
700 * expprint.c (dump_for_expression): New overload.
701 * expop.h (check_objfile, dump_for_expression): Declare new
702 overloads.
703 * ada-lang.c (check_objfile): New overload.
704 (assign_component, ada_aggregate_component::uses_objfile)
705 (ada_aggregate_component::dump, ada_aggregate_component::assign)
706 (ada_aggregate_component::assign_aggregate)
707 (ada_positional_component::uses_objfile)
708 (ada_positional_component::dump, ada_positional_component::assign)
709 (ada_discrete_range_association::uses_objfile)
710 (ada_discrete_range_association::dump)
711 (ada_discrete_range_association::assign)
712 (ada_name_association::uses_objfile, ada_name_association::dump)
713 (ada_name_association::assign)
714 (ada_choices_component::uses_objfile, ada_choices_component::dump)
715 (ada_choices_component::assign)
716 (ada_others_component::uses_objfile, ada_others_component::dump)
717 (ada_others_component::assign, ada_assign_operation::evaluate):
718 New methods.
719 * ada-exp.h (ada_string_operation) <get_name>: New method.
720 (class ada_assign_operation): New.
721 (class ada_component): New.
722 (ada_component_up): New typedef.
723 (class ada_aggregate_operation, class ada_aggregate_component)
724 (class ada_positional_component, class ada_others_component)
725 (class ada_association): New.
726 (ada_association_up): New typedef.
727 (class ada_choices_component)
728 (class ada_discrete_range_association)
729 (class ada_name_association): New.
730
d8a4ed8a
TT
7312021-03-08 Tom Tromey <tom@tromey.com>
732
733 * ada-lang.c (ada_var_value_operation::resolve)
734 (ada_funcall_operation::resolve)
735 (ada_ternop_slice_operation::resolve): New methods.
736 * ada-exp.h (struct ada_resolvable): New.
737 (class ada_var_value_operation): Derive from ada_resolvable.
738 <get_block, resolve>: New methods.
739 (class ada_funcall_operation): Derive from ada_resolvable.
740 <resolve>: New method.
741 (class ada_ternop_slice_operation): Derive from ada_resolvable.
742 <resolve>: New method.
743
efe3af2f
TT
7442021-03-08 Tom Tromey <tom@tromey.com>
745
746 * ada-lang.c (ada_funcall_operation::evaluate): New method.
747 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
748 method.
749 (class ada_funcall_operation): New.
750
ebc06ad8
TT
7512021-03-08 Tom Tromey <tom@tromey.com>
752
753 * ada-lang.c (ada_structop_operation::evaluate): New method.
754 * ada-exp.h (class ada_structop_operation): New.
755
e8c33fa1
TT
7562021-03-08 Tom Tromey <tom@tromey.com>
757
758 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
759 * ada-exp.h (class ada_unop_ind_operation): New.
760
065ec826
TT
7612021-03-08 Tom Tromey <tom@tromey.com>
762
763 * ada-lang.c (ada_binop_exp): No longer static.
764 * ada-exp.h (ada_binop_exp_operation): New typedef.
765
9e99f48f
TT
7662021-03-08 Tom Tromey <tom@tromey.com>
767
768 * ada-lang.c (ada_val_atr): No longer static.
769 (ada_atr_val_operation::evaluate): New method.
770 * ada-exp.h (class ada_atr_val_operation): New.
771
7631cf6c
TT
7722021-03-08 Tom Tromey <tom@tromey.com>
773
774 * ada-lang.c (ada_pos_atr): No longer static.
775 * ada-exp.h (ada_pos_operation): New typedef.
776
7992accc
TT
7772021-03-08 Tom Tromey <tom@tromey.com>
778
779 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
780 parameters.
781 (ada_evaluate_subexp): Use it.
782
6ad3b8bf
TT
7832021-03-08 Tom Tromey <tom@tromey.com>
784
785 * ada-lang.c (ada_binop_minmax): No longer static.
786 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
787 New typedefs.
788
3f4a0053
TT
7892021-03-08 Tom Tromey <tom@tromey.com>
790
791 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
792 New method.
793 * ada-exp.h (class ada_var_msym_value_operation): New.
794
99a3b1e7
TT
7952021-03-08 Tom Tromey <tom@tromey.com>
796
797 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
798 (ada_var_value_operation::evaluate): New methods.
799 * ada-exp.h (class ada_var_value_operation): New.
800
60fa02ca
TT
8012021-03-08 Tom Tromey <tom@tromey.com>
802
803 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
804 * ada-exp.h (class ada_unop_atr_operation): New.
805
82c3886e
TT
8062021-03-08 Tom Tromey <tom@tromey.com>
807
808 * ada-lang.c (ada_binop_in_bounds): No longer static.
809 * ada-exp.h (class ada_binop_in_bounds_operation): New.
810
1b1ebfab
TT
8112021-03-08 Tom Tromey <tom@tromey.com>
812
813 * ada-lang.c (ada_ternop_slice): No longer static.
814 * ada-exp.h (class ada_ternop_slice_operation): New.
815
039e4b76
TT
8162021-03-08 Tom Tromey <tom@tromey.com>
817
818 * ada-exp.h (ada_bitwise_operation): New template class.
819 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
820 (ada_bitwise_xor_operation): New typedefs.
821
6e8fb7b7
TT
8222021-03-08 Tom Tromey <tom@tromey.com>
823
824 * ada-lang.c (ada_equal_binop): No longer static.
825 * ada-exp.h (class ada_binop_equal_operation): New.
826
d9e7db06
TT
8272021-03-08 Tom Tromey <tom@tromey.com>
828
829 * ada-lang.c (ada_mult_binop): No longer static.
830 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
831 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
832
73796c73
TT
8332021-03-08 Tom Tromey <tom@tromey.com>
834
835 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
836 * ada-exp.h (class ada_binop_addsub_operation): New.
837
cd9a3148
TT
8382021-03-08 Tom Tromey <tom@tromey.com>
839
840 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
841 (ada_resolve_variable): Declare.
842 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
843 (ada_resolve_variable): New functions.
844 (resolve_subexp): Update.
845
cf12b17f
TT
8462021-03-08 Tom Tromey <tom@tromey.com>
847
848 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
849 method.
850 * c-exp.h (class opencl_ternop_cond_operation): New.
851
944fd3b8
TT
8522021-03-08 Tom Tromey <tom@tromey.com>
853
854 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
855 method.
856 * c-exp.h (class opencl_logical_binop_operation): New.
857
33b79214
TT
8582021-03-08 Tom Tromey <tom@tromey.com>
859
860 * opencl-lang.c (opencl_structop_operation::evaluate): New
861 method.
862 * c-exp.h (class opencl_structop_operation): New.
863
2492ba36
TT
8642021-03-08 Tom Tromey <tom@tromey.com>
865
866 * opencl-lang.c (opencl_logical_not): No longer static. Change
867 parameters.
868 (evaluate_subexp_opencl): Update.
869 * c-exp.h (opencl_notequal_operation): New typedef.
870
a88c3c8d
TT
8712021-03-08 Tom Tromey <tom@tromey.com>
872
873 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
874 static. Change parameters.
875 (eval_opencl_assign): No longer static. Add "op" parameter.
876 (evaluate_subexp_opencl): Update.
877 * c-exp.h (opencl_binop_operation): New template class.
878 (opencl_assign_operation, opencl_equal_operation)
879 (opencl_notequal_operation, opencl_less_operation)
880 (opencl_gtr_operation, opencl_geq_operation)
881 (opencl_leq_operation): New typedefs.
882
e9677704
TT
8832021-03-08 Tom Tromey <tom@tromey.com>
884
885 * opencl-lang.c (opencl_value_cast): No longer static.
886 * c-exp.h (opencl_cast_type_operation): New typedef.
887
f403a4e4
TT
8882021-03-08 Tom Tromey <tom@tromey.com>
889
890 * f-exp.h (eval_op_f_allocated): Declare.
891 (fortran_allocated_operation): New typedef.
892 * f-lang.c (eval_op_f_allocated): No longer static.
893
eb4c9271
TT
8942021-03-08 Tom Tromey <tom@tromey.com>
895
896 * f-lang.c (eval_op_f_associated): New functions.
897 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
898 typedefs.
899
58a76c72
TT
9002021-03-08 Tom Tromey <tom@tromey.com>
901
902 * f-lang.c (fortran_bound_1arg::evaluate)
903 (fortran_bound_2arg::evaluate): New methods.
904 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
905 New.
906
2f98abe1
TT
9072021-03-08 Tom Tromey <tom@tromey.com>
908
909 * expop.h (class unop_addr_operation) <get_expression>: New
910 method.
911 * f-lang.c (fortran_undetermined::value_subarray)
912 (fortran_undetermined::evaluate): New methods.
913 (fortran_prepare_argument): New overload.
914 * f-exp.h (class fortran_range_operation)
915 (class fortran_undetermined): New classes.
916
638fd74a
TT
9172021-03-08 Tom Tromey <tom@tromey.com>
918
919 * rust-lang.c (rust_structop::evaluate_funcall): New method.
920 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
921 method.
922
a00b7254
TT
9232021-03-08 Tom Tromey <tom@tromey.com>
924
925 * expression.h (class operation) <evaluate_funcall>: New methods.
926 * expop.h (class scope_operation) <evaluate_funcall>: New method.
927 (class var_value_operation) <evaluate_funcall>: New method.
928 (class structop_base_operation) <evaluate_funcall>: New method.
929 (class var_msym_value_operation) <evaluate_funcall>: New method.
930 (class structop_member_base): New class.
931 (class structop_member_operation): Derive from
932 structop_member_base.
933 (class structop_mptr_operation): Derive from
934 structop_member_base.
935 (class funcall_operation): New class.
936 * eval.c (operation::evaluate_funcall)
937 (var_value_operation::evaluate_funcall)
938 (scope_operation::evaluate_funcall)
939 (structop_member_base::evaluate_funcall)
940 (structop_base_operation::evaluate_funcall): New methods.
941
1c02eb30
TT
9422021-03-08 Tom Tromey <tom@tromey.com>
943
944 * expop.h (class array_operation): New.
945 * eval.c (array_operation::evaluate_struct_tuple)
946 (array_operation::evaluate): New methods.
947
e4479080
TT
9482021-03-08 Tom Tromey <tom@tromey.com>
949
950 * expop.h (class adl_func_operation): New.
951 * eval.c (adl_func_operation::evaluate): New method.
952
95d49dfb
TT
9532021-03-08 Tom Tromey <tom@tromey.com>
954
955 * ada-lang.c (ada_unop_in_range): No longer static.
956 * ada-exp.h (class ada_unop_range_operation): New.
957
7c15d377
TT
9582021-03-08 Tom Tromey <tom@tromey.com>
959
960 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
961 No longer static.
962 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
963 (ada_atr_size_operation, ada_abs_operation): New typedefs.
964
5019124b
TT
9652021-03-08 Tom Tromey <tom@tromey.com>
966
967 * expop.h (class logical_and_operation)
968 (class logical_or_operation): New.
969 * eval.c (logical_and_operation::evaluate)
970 (logical_or_operation::evaluate): New methods.
971 * ax-gdb.c (logical_and_operation::do_generate_ax)
972 (logical_or_operation::do_generate_ax): New methods.
973
2bc9b40c
TT
9742021-03-08 Tom Tromey <tom@tromey.com>
975
976 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
977 static.
978 * m2-exp.h: New file.
979
5947d337
TT
9802021-03-08 Tom Tromey <tom@tromey.com>
981
982 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
983 * rust-exp.h (class rust_aggregate_operation): New.
984
e4407a20
TT
9852021-03-08 Tom Tromey <tom@tromey.com>
986
987 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
988 No longer static.
989 * rust-exp.h (class rust_struct_anon): New.
990 (class rust_structop): New.
991
9db6b6dd
TT
9922021-03-08 Tom Tromey <tom@tromey.com>
993
994 * rust-lang.c (rust_range): No longer static.
995 * rust-exp.h (class rust_range_operation): New.
996
6ce1ad67
TT
9972021-03-08 Tom Tromey <tom@tromey.com>
998
999 * rust-lang.c (rust_subscript): No longer static.
1000 * rust-exp.h (class rust_subscript_operation): New.
1001
11dd3dce
TT
10022021-03-08 Tom Tromey <tom@tromey.com>
1003
1004 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1005 parameter.
1006 (rust_evaluate_subexp): Update.
1007 * rust-exp.h (class rust_unop_ind_operation): New.
1008
6fab4359
TT
10092021-03-08 Tom Tromey <tom@tromey.com>
1010
1011 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1012 longer static. Add "opcode" parameter.
1013 (rust_evaluate_subexp): Update.
1014 * rust-exp.h: New file.
1015
9dcd3e29
TT
10162021-03-08 Tom Tromey <tom@tromey.com>
1017
1018 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1019 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1020 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1021 (evaluate_subexp_f): Update.
1022 * f-exp.h: New file.
1023
fc715eb2
TT
10242021-03-08 Tom Tromey <tom@tromey.com>
1025
1026 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1027 * ada-exp.h (class ada_ternop_range_operation): New.
1028
cc6bd32e
TT
10292021-03-08 Tom Tromey <tom@tromey.com>
1030
1031 * ada-lang.c (ada_qual_operation::evaluate): New method.
1032 * ada-exp.h (class ada_qual_operation): New.
1033
42fecb61
TT
10342021-03-08 Tom Tromey <tom@tromey.com>
1035
1036 * ada-lang.c (ada_string_operation::evaluate): New method.
1037 * ada-exp.h (class ada_string_operation): New.
1038
03070ee9
TT
10392021-03-08 Tom Tromey <tom@tromey.com>
1040
1041 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
1042 * ada-exp.h: New file.
1043
821e72d7
TT
10442021-03-08 Tom Tromey <tom@tromey.com>
1045
1046 * expop.h (class multi_subscript_operation): New.
1047 * eval.c (multi_subscript_operation::evaluate): New method.
1048
085734dd
TT
10492021-03-08 Tom Tromey <tom@tromey.com>
1050
1051 * eval.c (objc_msgcall_operation::evaluate): New method.
1052 * c-exp.h (class objc_msgcall_operation): New.
1053
e82a5afc
TT
10542021-03-08 Tom Tromey <tom@tromey.com>
1055
1056 * expop.h (class var_value_operation): New.
1057 * eval.c (var_value_operation::evaluate)
1058 (var_value_operation::evaluate_for_address)
1059 (var_value_operation::evaluate_with_coercion)
1060 (var_value_operation::evaluate_for_sizeof)
1061 (var_value_operation::evaluate_for_cast): New methods.
1062 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
1063
d9ad79d8
TT
10642021-03-08 Tom Tromey <tom@tromey.com>
1065
1066 * expop.h (cxx_cast_ftype): New typedef.
1067 (cxx_cast_operation): New template.
1068 (dynamic_cast_operation, reinterpret_cast_operation): New
1069 typedefs.
1070
292382f4
TT
10712021-03-08 Tom Tromey <tom@tromey.com>
1072
1073 * expop.h (class unop_cast_type_operation): New.
1074 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
1075 method.
1076
165a813a
TT
10772021-03-08 Tom Tromey <tom@tromey.com>
1078
1079 * expop.h (class unop_cast_operation): New.
1080 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
1081
e5946e16
TT
10822021-03-08 Tom Tromey <tom@tromey.com>
1083
1084 * expop.h (class assign_modify_operation): New.
1085 * eval.c (eval_binop_assign_modify): No longer static.
1086 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1087
40786782
TT
10882021-03-08 Tom Tromey <tom@tromey.com>
1089
1090 * expop.h (class assign_operation): New.
1091 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1092
44b675c8
TT
10932021-03-08 Tom Tromey <tom@tromey.com>
1094
1095 * expop.h (class type_instance_operation): New.
1096 * eval.c (type_instance_operation::evaluate): New method.
1097
f6b42326
TT
10982021-03-08 Tom Tromey <tom@tromey.com>
1099
1100 * expop.h (class op_this_operation): New.
1101 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1102
cbc18219
TT
11032021-03-08 Tom Tromey <tom@tromey.com>
1104
1105 * expop.h (class unop_memval_operation)
1106 (class unop_memval_type_operation): New.
1107 * eval.c (eval_op_memval): No longer static.
1108 (unop_memval_operation::evaluate_for_address)
1109 (unop_memval_type_operation::evaluate_for_address)
1110 (unop_memval_operation::evaluate_for_sizeof)
1111 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1112 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1113 (unop_memval_type_operation::do_generate_ax): New methods.
1114
ae4bb61e
TT
11152021-03-08 Tom Tromey <tom@tromey.com>
1116
1117 * expop.h (class unop_alignof_operation): New.
1118 * eval.c (eval_op_alignof): No longer static.
1119
85d23bda
TT
11202021-03-08 Tom Tromey <tom@tromey.com>
1121
1122 * expop.h (class unop_sizeof_operation): New.
1123 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1124
14aff815
TT
11252021-03-08 Tom Tromey <tom@tromey.com>
1126
1127 * expop.h (class unop_addr_operation): New.
1128 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1129
929f3aa7
TT
11302021-03-08 Tom Tromey <tom@tromey.com>
1131
1132 * expop.h (class typeid_operation): New.
1133
0af8829e
TT
11342021-03-08 Tom Tromey <tom@tromey.com>
1135
1136 * expop.h (class decltype_operation): New.
1137
4efc574c
TT
11382021-03-08 Tom Tromey <tom@tromey.com>
1139
1140 * expop.h (class typeof_operation): New.
1141
5b5f5140
TT
11422021-03-08 Tom Tromey <tom@tromey.com>
1143
1144 * expop.h (class type_operation): New.
1145 * eval.c (eval_op_type): No longer static.
1146
876469ff
TT
11472021-03-08 Tom Tromey <tom@tromey.com>
1148
1149 * expop.h (class unop_ind_base_operation)
1150 (class unop_ind_operation): New.
1151 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1152 (unop_ind_base_operation::evaluate_for_address)
1153 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1154 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1155
6d89e296
TT
11562021-03-08 Tom Tromey <tom@tromey.com>
1157
1158 * expop.h (unop_incr_operation): New template.
1159 (preinc_operation, predec_operation, postinc_operation)
1160 (postdec_operation): New typedefs.
1161 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1162 (eval_op_postdec): No longer static.
1163
9307d17b
TT
11642021-03-08 Tom Tromey <tom@tromey.com>
1165
1166 * expop.h (unary_ftype): New typedef.
1167 (unop_operation, usual_ax_binop_operation): New templates.
1168 (unary_plus_operation, unary_neg_operation)
1169 (unary_complement_operation, unary_logical_not_operation): New
1170 typedefs.
1171 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1172 (eval_op_lognot): No longer static.
1173 * ax-gdb.c (gen_expr_unop): New function.
1174
ae64ba58
TT
11752021-03-08 Tom Tromey <tom@tromey.com>
1176
1177 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1178
d4eff4c1
TT
11792021-03-08 Tom Tromey <tom@tromey.com>
1180
1181 * expop.h (class repeat_operation): New.
1182 * eval.c (eval_op_repeat): No longer static. Remove "op"
1183 parameter.
1184 (evaluate_subexp_standard): Update.
1185 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1186
46916f2b
TT
11872021-03-08 Tom Tromey <tom@tromey.com>
1188
1189 * expop.h (class comparison_operation): New.
1190 (equal_operation, notequal_operation, less_operation)
1191 (gtr_operation, geq_operation, leq_operation): New typedefs.
1192 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1193 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1194
224d6424
TT
11952021-03-08 Tom Tromey <tom@tromey.com>
1196
1197 * expop.h (class subscript_operation): New.
1198 * eval.c (eval_op_subscript): No longer static.
1199
373907ff
TT
12002021-03-08 Tom Tromey <tom@tromey.com>
1201
1202 * expop.h (class binop_operation, class usual_ax_binop_operation):
1203 New.
1204 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1205 (div_operation, rem_operation, lsh_operation, rsh_operation)
1206 (bitwise_and_operation, bitwise_ior_operation)
1207 (bitwise_xor_operation): New typedefs.
1208 * eval.c (eval_op_binary): No longer static.
1209
5133d78b
TT
12102021-03-08 Tom Tromey <tom@tromey.com>
1211
1212 * expop.h (class sub_operation): New.
1213 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1214 (evaluate_subexp_standard): Update.
1215
a94323b6
TT
12162021-03-08 Tom Tromey <tom@tromey.com>
1217
1218 * expop.h (class add_operation): New.
1219 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1220 (evaluate_subexp_standard): Update.
1221
e51e26a0
TT
12222021-03-08 Tom Tromey <tom@tromey.com>
1223
1224 * expop.h (class concat_operation): New.
1225 * eval.c (eval_op_concat): No longer static. Remove "op"
1226 parameter.
1227 (evaluate_subexp_standard): Update.
1228
07f724a8
TT
12292021-03-08 Tom Tromey <tom@tromey.com>
1230
1231 * expop.h (class structop_member_operation)
1232 (class structop_mptr_operation): New.
1233 * eval.c (eval_op_member): No longer static.
1234
ab0609be
TT
12352021-03-08 Tom Tromey <tom@tromey.com>
1236
1237 * expop.h (class structop_ptr_operation): New.
1238 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1239 parameter.
1240
808b22cf
TT
12412021-03-08 Tom Tromey <tom@tromey.com>
1242
1243 * expop.h (class structop_base_operation)
1244 (class structop_operation): New.
1245 * eval.c (eval_op_structop_struct): No longer static.
1246
8cfd3e95
TT
12472021-03-08 Tom Tromey <tom@tromey.com>
1248
1249 * expop.h (class complex_operation): New.
1250
09db3700
TT
12512021-03-08 Tom Tromey <tom@tromey.com>
1252
1253 * eval.c (eval_op_objc_selector): No longer static.
1254 * c-exp.h (class objc_selector_operation): New.
1255
06dc61b9
TT
12562021-03-08 Tom Tromey <tom@tromey.com>
1257
1258 * eval.c: Include c-exp.h.
1259 * c-exp.h (class objc_nsstring_operation): New.
1260
72d0a711
TT
12612021-03-08 Tom Tromey <tom@tromey.com>
1262
1263 * c-lang.c (c_string_operation::evaluate): New method.
1264 * c-exp.h: New file.
1265
9186293f
TT
12662021-03-08 Tom Tromey <tom@tromey.com>
1267
1268 * expop.h (class ternop_cond_operation): New.
1269 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1270
1594e0bb
TT
12712021-03-08 Tom Tromey <tom@tromey.com>
1272
1273 * expop.h (class ternop_slice_operation): New.
1274 * eval.c (eval_op_ternop): No longer static.
1275
b50db09f
TT
12762021-03-08 Tom Tromey <tom@tromey.com>
1277
1278 * expop.h (class string_operation): New.
1279 * eval.c (eval_op_string): No longer static.
1280
e6e01e16
TT
12812021-03-08 Tom Tromey <tom@tromey.com>
1282
1283 * expop.h (class internalvar_operation): New.
1284 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1285
e6985c5e
TT
12862021-03-08 Tom Tromey <tom@tromey.com>
1287
1288 * expop.h (class bool_operation): New.
1289
55bdbff8
TT
12902021-03-08 Tom Tromey <tom@tromey.com>
1291
1292 * expop.h (class register_operation): New.
1293 * eval.c (eval_op_register): No longer static.
1294 * ax-gdb.c (register_operation::do_generate_ax): New method.
1295
247d935b
TT
12962021-03-08 Tom Tromey <tom@tromey.com>
1297
1298 * expop.h (class last_operation): New.
1299
17679395
TT
13002021-03-08 Tom Tromey <tom@tromey.com>
1301
1302 * expop.h (class func_static_var_operation): New.
1303 * eval.c (eval_op_func_static_var): No longer static.
1304
b5cc3923
TT
13052021-03-08 Tom Tromey <tom@tromey.com>
1306
1307 * expop.h (class var_entry_value_operation): New.
1308 * eval.c (eval_op_var_entry_value): No longer static.
1309
0c8effa3
TT
13102021-03-08 Tom Tromey <tom@tromey.com>
1311
1312 * expression.h (class operation) <set_outermost>: New method.
1313 * expop.h (class var_msym_value_operation): New.
1314 * eval.c (eval_op_var_msym_value): No longer static.
1315 (var_msym_value_operation::evaluate_for_address)
1316 (var_msym_value_operation::evaluate_for_sizeof)
1317 (var_msym_value_operation::evaluate_for_cast): New methods.
1318 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1319 method.
1320
d336c29e
TT
13212021-03-08 Tom Tromey <tom@tromey.com>
1322
1323 * expop.h (class long_const_operation): New.
1324 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1325
d5ab122c
TT
13262021-03-08 Tom Tromey <tom@tromey.com>
1327
1328 * expop.h (class scope_operation): New.
1329 * eval.c (eval_op_scope): No longer static.
1330 (scope_operation::evaluate_for_address): New method.
1331 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1332
cae26a0c
TT
13332021-03-08 Tom Tromey <tom@tromey.com>
1334
1335 * expprint.c (float_const_operation::dump): New method.
1336 * expop.h (float_data): New typedef.
1337 (class float_const_operation): New.
1338
75f9892d
TT
13392021-03-08 Tom Tromey <tom@tromey.com>
1340
1341 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1342 * ax-gdb.c (gen_expr_binop): New function.
1343 (gen_expr_structop): Likewise.
1344
de401988
TT
13452021-03-08 Tom Tromey <tom@tromey.com>
1346
1347 * expprint.c (expr::dump_for_expression): New functions.
1348 * expop.h (dump_for_expression): New overloads.
1349 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1350 Update.
1351
e2803273
TT
13522021-03-08 Tom Tromey <tom@tromey.com>
1353
1354 * expression.h (expr::operation): New class.
1355 (expr::make_operation): New function.
1356 (expr::operation_up): New typedef.
1357 * expop.h: New file.
1358 * eval.c (operation::evaluate_for_cast)
1359 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1360 New methods.
1361 * ax-gdb.c (operation::generate_ax): New method.
1362
e18c58f2
TT
13632021-03-08 Tom Tromey <tom@tromey.com>
1364
1365 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1366 (gen_expr_binop_rest): New overload.
1367
c0d7ed8c
TT
13682021-03-08 Tom Tromey <tom@tromey.com>
1369
1370 * eval.c (eval_multi_subscript): New function.
1371 (evaluate_subexp_standard): Use it.
1372
dd5fd283
TT
13732021-03-08 Tom Tromey <tom@tromey.com>
1374
1375 * ada-lang.c (ada_binop_exp): New function.
1376 (ada_evaluate_subexp): Use it.
1377
3848abd6
TT
13782021-03-08 Tom Tromey <tom@tromey.com>
1379
1380 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1381 parameters.
1382 (ada_evaluate_subexp): Use it.
1383
38dc70cf
TT
13842021-03-08 Tom Tromey <tom@tromey.com>
1385
1386 * ada-lang.c (ada_binop_minmax): New function.
1387 (ada_evaluate_subexp): Use it.
1388
b84564fc
TT
13892021-03-08 Tom Tromey <tom@tromey.com>
1390
1391 * ada-lang.c (ada_unop_atr): New function.
1392 (ada_evaluate_subexp): Use it.
1393
b467efaa
TT
13942021-03-08 Tom Tromey <tom@tromey.com>
1395
1396 * ada-lang.c (ada_binop_in_bounds): New function.
1397 (ada_evaluate_subexp): Use it.
1398
5ce19db8
TT
13992021-03-08 Tom Tromey <tom@tromey.com>
1400
1401 * ada-lang.c (ada_ternop_slice): New function.
1402 (ada_evaluate_subexp): Use it.
1403
214b13ac
TT
14042021-03-08 Tom Tromey <tom@tromey.com>
1405
1406 * ada-lang.c (ada_equal_binop): New function.
1407 (ada_evaluate_subexp): Use it.
1408
faa1dfd7
TT
14092021-03-08 Tom Tromey <tom@tromey.com>
1410
1411 * ada-lang.c (ada_mult_binop): New function.
1412 (ada_evaluate_subexp): Use it.
1413
d05e24e6
TT
14142021-03-08 Tom Tromey <tom@tromey.com>
1415
1416 * ada-lang.c (ada_abs): New function.
1417 (ada_evaluate_subexp): Use it.
1418
68c75735
TT
14192021-03-08 Tom Tromey <tom@tromey.com>
1420
1421 * ada-lang.c (ada_atr_size): New function.
1422 (ada_evaluate_subexp): Use it.
1423
020dbabe
TT
14242021-03-08 Tom Tromey <tom@tromey.com>
1425
1426 * ada-lang.c (ada_atr_tag): New function.
1427 (ada_evaluate_subexp): Use it.
1428
7efc87ff
TT
14292021-03-08 Tom Tromey <tom@tromey.com>
1430
1431 * ada-lang.c (ada_unop_in_range): New function.
1432 (ada_evaluate_subexp): Use it.
1433
82390ab8
TT
14342021-03-08 Tom Tromey <tom@tromey.com>
1435
1436 * ada-lang.c (ada_unop_neg): New function.
1437 (ada_evaluate_subexp): Use it.
1438
62d4bd94
TT
14392021-03-08 Tom Tromey <tom@tromey.com>
1440
1441 * ada-lang.c (eval_ternop_in_range): New function.
1442 (ada_evaluate_subexp): Use it.
1443
3634f669
TT
14442021-03-08 Tom Tromey <tom@tromey.com>
1445
1446 * opencl-lang.c (eval_opencl_assign): New function.
1447 (evaluate_subexp_opencl): Use it.
1448
5e80600e
TT
14492021-03-08 Tom Tromey <tom@tromey.com>
1450
1451 * eval.c (eval_op_objc_msgcall): New function.
1452 (evaluate_subexp_standard): Use it.
1453
fb5ba2ab
TT
14542021-03-08 Tom Tromey <tom@tromey.com>
1455
1456 * eval.c (eval_binop_assign_modify): New function.
1457 (evaluate_subexp_standard): Use it.
1458
a49881f7
TT
14592021-03-08 Tom Tromey <tom@tromey.com>
1460
1461 * m2-lang.c (eval_op_m2_subscript): New function.
1462 (evaluate_subexp_modula2): Use it.
1463
41bdced5
TT
14642021-03-08 Tom Tromey <tom@tromey.com>
1465
1466 * m2-lang.c (eval_op_m2_high): New function.
1467 (evaluate_subexp_modula2): Use it.
1468
13ea014a
TT
14692021-03-08 Tom Tromey <tom@tromey.com>
1470
1471 * eval.c (evaluate_subexp_for_address_base): New function.
1472 (evaluate_subexp_for_address): Use it.
1473 (evaluate_subexp_for_sizeof_base): New function.
1474 (evaluate_subexp_for_sizeof): Use it.
1475
1fa41fc7
TT
14762021-03-08 Tom Tromey <tom@tromey.com>
1477
1478 * rust-lang.c (eval_op_rust_structop): New function.
1479 (rust_evaluate_subexp): Use it.
1480
575cae23
TT
14812021-03-08 Tom Tromey <tom@tromey.com>
1482
1483 * rust-lang.c (eval_op_rust_struct_anon): New function.
1484 (rust_evaluate_subexp): Use it.
1485
05104233
TT
14862021-03-08 Tom Tromey <tom@tromey.com>
1487
1488 * rust-lang.c (eval_op_rust_array): New function.
1489 (rust_evaluate_subexp): Use it.
1490
6fa9831f
TT
14912021-03-08 Tom Tromey <tom@tromey.com>
1492
1493 * rust-lang.c (eval_op_rust_complement): New function.
1494 (rust_evaluate_subexp): Use it.
1495
d123f9e4
TT
14962021-03-08 Tom Tromey <tom@tromey.com>
1497
1498 * rust-lang.c (eval_op_rust_ind): New function.
1499 (rust_evaluate_subexp): Use it.
1500
984af2cb
TT
15012021-03-08 Tom Tromey <tom@tromey.com>
1502
1503 * rust-lang.c (rust_subscript): Change parameters.
1504 (rust_evaluate_subexp): Update.
1505
d148f803
TT
15062021-03-08 Tom Tromey <tom@tromey.com>
1507
1508 * rust-lang.c (rust_range): Change parameters.
1509 (rust_evaluate_subexp): Update.
1510
9cbd1c20
TT
15112021-03-08 Tom Tromey <tom@tromey.com>
1512
1513 * f-lang.c (eval_op_f_allocated): New function.
1514 (evaluate_subexp_f): Use it.
1515
3c18c49c
TT
15162021-03-08 Tom Tromey <tom@tromey.com>
1517
1518 * f-lang.c (fortran_require_array): New function.
1519 (evaluate_subexp_f): Use it.
1520
216f6fcb
TT
15212021-03-08 Tom Tromey <tom@tromey.com>
1522
1523 * f-lang.c (eval_op_f_kind): New function.
1524 (evaluate_subexp_f): Use it.
1525
00f2db6f
TT
15262021-03-08 Tom Tromey <tom@tromey.com>
1527
1528 * f-lang.c (eval_op_f_cmplx): New function.
1529 (evaluate_subexp_f): Use it.
1530
93b2b5fa
TT
15312021-03-08 Tom Tromey <tom@tromey.com>
1532
1533 * f-lang.c (eval_op_f_modulo): New function.
1534 (evaluate_subexp_f): Use it.
1535
9f1a1f3c
TT
15362021-03-08 Tom Tromey <tom@tromey.com>
1537
1538 * f-lang.c (eval_op_f_floor): New function.
1539 (evaluate_subexp_f): Use it.
1540
3dc41f3c
TT
15412021-03-08 Tom Tromey <tom@tromey.com>
1542
1543 * f-lang.c (eval_op_f_ceil): New function.
1544 (evaluate_subexp_f): Use it.
1545
e08109f2
TT
15462021-03-08 Tom Tromey <tom@tromey.com>
1547
1548 * f-lang.c (eval_op_f_mod): New function.
1549 (evaluate_subexp_f): Use it.
1550
cc05c68e
TT
15512021-03-08 Tom Tromey <tom@tromey.com>
1552
1553 * f-lang.c (eval_op_f_abs): New function.
1554 (evaluate_subexp_f): Use it.
1555
aec95807
TT
15562021-03-08 Tom Tromey <tom@tromey.com>
1557
1558 * eval.c (eval_op_type): New function.
1559 (evaluate_subexp_standard): Use it.
1560
a220ead5
TT
15612021-03-08 Tom Tromey <tom@tromey.com>
1562
1563 * eval.c (eval_op_postdec): New function.
1564 (evaluate_subexp_standard): Use it.
1565
abffe116
TT
15662021-03-08 Tom Tromey <tom@tromey.com>
1567
1568 * eval.c (eval_op_postinc): New function.
1569 (evaluate_subexp_standard): Use it.
1570
9e1361b7
TT
15712021-03-08 Tom Tromey <tom@tromey.com>
1572
1573 * eval.c (eval_op_predec): New file.
1574 (evaluate_subexp_standard): Use it.
1575
00f50884
TT
15762021-03-08 Tom Tromey <tom@tromey.com>
1577
1578 * eval.c (eval_op_preinc): New function.
1579 (evaluate_subexp_standard): Use it.
1580
3aef2a07
TT
15812021-03-08 Tom Tromey <tom@tromey.com>
1582
1583 * eval.c (eval_op_memval): New function.
1584 (evaluate_subexp_standard): Use it.
1585
acee9468
TT
15862021-03-08 Tom Tromey <tom@tromey.com>
1587
1588 * eval.c (eval_op_alignof): New function.
1589 (evaluate_subexp_standard): Use it.
1590
786f70ee
TT
15912021-03-08 Tom Tromey <tom@tromey.com>
1592
1593 * eval.c (eval_op_ind): New function.
1594 (evaluate_subexp_standard): Use it.
1595
24338fb9
TT
15962021-03-08 Tom Tromey <tom@tromey.com>
1597
1598 * eval.c (eval_op_lognot): New function.
1599 (evaluate_subexp_standard): Use it.
1600
1f09ec81
TT
16012021-03-08 Tom Tromey <tom@tromey.com>
1602
1603 * eval.c (eval_op_complement): New function.
1604 (evaluate_subexp_standard): Use it.
1605
606d105f
TT
16062021-03-08 Tom Tromey <tom@tromey.com>
1607
1608 * eval.c (eval_op_neg): New function.
1609 (evaluate_subexp_standard): Use it.
1610
39f288be
TT
16112021-03-08 Tom Tromey <tom@tromey.com>
1612
1613 * eval.c (eval_op_plus): New function.
1614 (evaluate_subexp_standard): Use it.
1615
eed70b1c
TT
16162021-03-08 Tom Tromey <tom@tromey.com>
1617
1618 * eval.c (eval_op_repeat): New function.
1619 (evaluate_subexp_standard): Use it.
1620
60cdd487
TT
16212021-03-08 Tom Tromey <tom@tromey.com>
1622
1623 * eval.c (eval_op_leq): New function.
1624 (evaluate_subexp_standard): Use it.
1625
96e3efd9
TT
16262021-03-08 Tom Tromey <tom@tromey.com>
1627
1628 * eval.c (eval_op_geq): New function.
1629 (evaluate_subexp_standard): Use it.
1630
1f78d732
TT
16312021-03-08 Tom Tromey <tom@tromey.com>
1632
1633 * eval.c (eval_op_gtr): New function.
1634 (evaluate_subexp_standard): Use it.
1635
6cad1349
TT
16362021-03-08 Tom Tromey <tom@tromey.com>
1637
1638 * eval.c (eval_op_less): New function.
1639 (evaluate_subexp_standard): Use it.
1640
1fcb3559
TT
16412021-03-08 Tom Tromey <tom@tromey.com>
1642
1643 * eval.c (eval_op_notequal): New function.
1644 (evaluate_subexp_standard): Use it.
1645
0cc96de8
TT
16462021-03-08 Tom Tromey <tom@tromey.com>
1647
1648 * eval.c (eval_op_equal): New function.
1649 (evaluate_subexp_standard): Use it.
1650
288d26bc
TT
16512021-03-08 Tom Tromey <tom@tromey.com>
1652
1653 * eval.c (eval_op_subscript): New function.
1654 (evaluate_subexp_standard): Use it.
1655
7cdcdd02
TT
16562021-03-08 Tom Tromey <tom@tromey.com>
1657
1658 * eval.c (eval_op_binary): New function.
1659 (evaluate_subexp_standard): Use it.
1660
d9790e22
TT
16612021-03-08 Tom Tromey <tom@tromey.com>
1662
1663 * eval.c (eval_op_sub): New function.
1664 (evaluate_subexp_standard): Use it.
1665
aedaf9ac
TT
16662021-03-08 Tom Tromey <tom@tromey.com>
1667
1668 * eval.c (eval_op_add): New function.
1669 (evaluate_subexp_standard): Use it.
1670
b7a96ed2
TT
16712021-03-08 Tom Tromey <tom@tromey.com>
1672
1673 * eval.c (eval_op_member): New function.
1674 (evaluate_subexp_standard): Use it.
1675
fb461aa3
TT
16762021-03-08 Tom Tromey <tom@tromey.com>
1677
1678 * eval.c (eval_op_structop_ptr): New function.
1679 (evaluate_subexp_standard): Use it.
1680
3e96c4fc
TT
16812021-03-08 Tom Tromey <tom@tromey.com>
1682
1683 * eval.c (eval_op_structop_struct): New function.
1684 (evaluate_subexp_standard): Use it.
1685
f960a617
TT
16862021-03-08 Tom Tromey <tom@tromey.com>
1687
1688 * eval.c (eval_op_ternop): New function.
1689 (evaluate_subexp_standard): Use it.
1690
5c2f201e
TT
16912021-03-08 Tom Tromey <tom@tromey.com>
1692
1693 * eval.c (eval_op_concat): New function.
1694 (evaluate_subexp_standard): Use it.
1695
f871bae1
TT
16962021-03-08 Tom Tromey <tom@tromey.com>
1697
1698 * eval.c (eval_op_objc_selector): New function.
1699 (evaluate_subexp_standard): Use it.
1700
14a1c64a
TT
17012021-03-08 Tom Tromey <tom@tromey.com>
1702
1703 * eval.c (eval_op_string): New function.
1704 (evaluate_subexp_standard): Use it.
1705
ffff730b
TT
17062021-03-08 Tom Tromey <tom@tromey.com>
1707
1708 * eval.c (eval_op_register): New function.
1709 (evaluate_subexp_standard): Use it.
1710
9b1d8af6
TT
17112021-03-08 Tom Tromey <tom@tromey.com>
1712
1713 * eval.c (eval_op_func_static_var): New function.
1714 (evaluate_subexp_standard): Use it.
1715
c0df9289
TT
17162021-03-08 Tom Tromey <tom@tromey.com>
1717
1718 * eval.c (eval_op_var_msym_value): New function.
1719 (evaluate_subexp_standard): Use it.
1720
50b98adc
TT
17212021-03-08 Tom Tromey <tom@tromey.com>
1722
1723 * eval.c (eval_op_var_entry_value): New function.
1724 (evaluate_subexp_standard): Use it.
1725
ea2d29f7
TT
17262021-03-08 Tom Tromey <tom@tromey.com>
1727
1728 * eval.c (eval_op_scope): New function.
1729 (evaluate_subexp_standard): Use it.
1730
01573d73
TT
17312021-03-06 Chernov Sergey <klen_s@mail.ru>
1732
1733 PR gdb/27528:
1734 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1735
9938d15a
TT
17362021-03-06 Tom Tromey <tom@tromey.com>
1737
1738 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1739 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1740 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1741 (locate_dwz_sections, dwz_search_other_debugdirs)
1742 (dwarf2_get_dwz_file): Move to dwz.c.
1743 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1744 read.h.
1745 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1746 (dwarf2_get_dwz_file): Move from read.c.
1747
18035655
TT
17482021-03-06 Tom Tromey <tom@tromey.com>
1749
1750 * debuginfod-support.h: Include scoped_fd.h.
1751
a7308ce0
TT
17522021-03-06 Tom Tromey <tom@tromey.com>
1753
1754 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1755 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1756 (get_abbrev_section_for_cu, read_attribute_value)
1757 (get_debug_line_section): Update.
1758 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1759
fbedd546
TT
17602021-03-06 Tom Tromey <tom@tromey.com>
1761
1762 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1763 method.
1764 * dwarf2/read.c (section_is_p): Remove.
1765 (dwarf2_per_bfd::locate_sections)
1766 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1767 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1768 (dwarf2_locate_common_dwp_sections)
1769 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1770 Update.
1771
c2a62a3d
TT
17722021-03-06 Tom Tromey <tom@tromey.com>
1773
1774 * xcoffread.c: Include sect-names.h.
1775 * symfile.h (struct dwarf2_section_names, struct
1776 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1777 * dwarf2/sect-names.h: New file, from symfile.h.
1778 * dwarf2/read.c: Include sect-names.h.
1779
4444f407
TT
17802021-03-06 Tom Tromey <tom@tromey.com>
1781
1782 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1783 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1784 (abbrev_table::read): Update.
1785 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1786 (struct abbrev_info): Reformat.
1787 <attrs>: Now an array.
1788 (struct abbrev_table) <alloc_abbrev>: Remove.
1789
dd99cf0c
WP
17902021-03-06 Weimin Pan <weimin.pan@oracle.com>
1791
1792 * ctfread.c (ctf_psymtab_add_enums): New function.
1793 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1794
844be3f2
WP
17952021-03-06 Weimin Pan <weimin.pan@oracle.com>
1796
1797 * ctfread.c (read_func_kind_type): Set up function arguments.
1798
b2668f28
AB
17992021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1800 Andrew Burgess <andrew.burgess@embecosm.com>
1801
1802 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1803 includes.
1804 (riscv_csrset): New static global.
1805 (riscv_update_csrmap): New function.
1806 (riscv_iterate_over_regset_sections): Process CSRs.
1807
d782d24b
AB
18082021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * riscv-tdep.c (riscv_feature_name_csr): Define.
1811 (riscv_feature_name_cpu): Define.
1812 (riscv_feature_name_fpu): Define.
1813 (riscv_feature_name_virtual): Define.
1814 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1815 (riscv_freg_feature): Use riscv_feature_name_fpu.
1816 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1817 (riscv_csr_feature): Use riscv_feature_name_csr.
1818 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1819
fb8f3fc0
AB
18202021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1821 Craig Blackmore <craig.blackmore@embecosm.com>
1822
1823 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1824 (ALLDEPFILES): Add riscv-none-tdep.c.
1825 * configure: Regenerate.
1826 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1827 support.
1828 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1829 * elf-none-tdep.c: New file.
1830 * elf-none-tdep.h: New file.
1831 * riscv-none-tdep.c: New file.
1832
95ce627a
AB
18332021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1834 Andrew Burgess <andrew.burgess@embecosm.com>
1835
1836 * corelow.c: Add 'xml-tdesc.h' include.
1837 (core_target::read_description): Load the target description from
1838 the core file when possible.
1839 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1840 note.
1841 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1842 (gcore_elf_make_tdesc_note): New function.
1843 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1844 * linux-tdep.c (linux_make_corefile_notes): Add target description
1845 note.
1846
f3a5df7b
AB
18472021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1848
1849 * Makefile.in (SFILES): Add gcore-elf.c.
1850 (HFILES_NO_SRCDIR): Add gcore-elf.h
1851 * configure: Regenerate.
1852 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1853 support.
1854 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1855 (struct fbsd_collect_regset_section_cb_data): Delete.
1856 (fbsd_collect_regset_section_cb): Delete.
1857 (fbsd_collect_thread_registers): Delete.
1858 (struct fbsd_corefile_thread_data): Delete.
1859 (fbsd_corefile_thread): Delete.
1860 (fbsd_make_corefile_notes): Call
1861 gcore_elf_build_thread_register_notes instead of the now deleted
1862 FreeBSD code.
1863 * gcore-elf.c: New file, the content was moved here from
1864 linux-tdep.c, functions were renamed and given minor cleanup.
1865 * gcore-elf.h: New file.
1866 * gcore.c (gcore_find_signalled_thread): Moved here from
1867 linux-tdep.c and given a new name. Minor cleanups.
1868 * gcore.h (gcore_find_signalled_thread): Declare.
1869 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1870 (struct linux_collect_regset_section_cb_data): Delete.
1871 (linux_collect_regset_section_cb): Delete.
1872 (linux_collect_thread_registers): Delete.
1873 (linux_corefile_thread): Call
1874 gcore_elf_build_thread_register_notes.
1875 (find_signalled_thread): Delete.
1876 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1877
d1e93af6
SM
18782021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1879
1880 PR gdb/27147
1881 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1882 process_stratum_target parameter,
1883 sparc_store_inferior_registers): update callers.
1884 * sparc-nat.c (sparc_fetch_inferior_registers,
1885 sparc_store_inferior_registers): Add process_stratum_target
1886 parameter. Switch current thread before calling
1887 sparc_supply_gregset / sparc_collect_rwindow.
1888 (sparc_store_inferior_registers): Likewise.
1889 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1890 (sparc32obsd_collect_uthread): Likewise.
1891 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1892 Add assertion.
1893 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1894 sparc64obsd_supply_uthread): Add assertion.
1895
1178743e
TT
18962021-03-04 Tom Tromey <tromey@adacore.com>
1897
1898 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1899 (aux_add_nonlocal_symbols): Update.
1900 (ada_add_block_symbols): Change "found_sym" to bool.
1901
1bfa81ac
TT
19022021-03-03 Tom Tromey <tromey@adacore.com>
1903
1904 * ada-lang.c (ada_resolve_function): Update comment.
1905 (is_nonfunction, add_symbols_from_enclosing_procs)
1906 (remove_extra_symbols): Likewise.
1907 (struct match_data): Add constructor, initializers.
1908 (add_nonlocal_symbols): Remove memset.
1909 (aux_add_nonlocal_symbols): Update comment.
1910 (ada_add_block_renamings, add_nonlocal_symbols)
1911 (ada_add_all_symbols): Likewise.
1912 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1913
bbcdf9ab
TT
19142021-03-02 Tom Tromey <tromey@adacore.com>
1915
1916 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1917 (cast_to_gnat_encoded_fixed_point_type): Remove.
1918 (ada_value_cast, ada_evaluate_subexp): Update.
1919 (gnat_encoded_fixed_point_type_info)
1920 (ada_is_gnat_encoded_fixed_point_type)
1921 (gnat_encoded_fixed_point_delta)
1922 (gnat_encoded_fixed_point_scaling_factor): Remove.
1923 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1924 (gnat_encoded_fixed_point_delta)
1925 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1926 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1927 (ada_print_type): Update.
1928 * ada-valprint.c (ada_value_print_num): Update.
1929 * dwarf2/read.c (ada_get_gnat_encoded_number)
1930 (ada_get_gnat_encoded_ratio): New functions.
1931 (finish_fixed_point_type): Use them. Add parameters.
1932 (GNAT_FIXED_POINT_SUFFIX): New define.
1933 (gnat_encoded_fixed_point_type_info): New function.
1934 (read_base_type): Handle gnat encodings.
1935
5f9febe0
TT
19362021-03-02 Tom Tromey <tromey@adacore.com>
1937
1938 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1939 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1940 std::string.
1941 (GROW_VECT): Remove.
1942 (grow_vect): Remove.
1943
d1183b06
TT
19442021-03-02 Tom Tromey <tromey@adacore.com>
1945
1946 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1947 * ada-lang.c (resolve_subexp): Update.
1948 (ada_resolve_function): Accept a vector.
1949 (is_nonfunction, add_defn_to_vec)
1950 (add_symbols_from_enclosing_procs): Likewise.
1951 (num_defns_collected, defns_collected): Remove.
1952 (remove_extra_symbols): Return a vector.
1953 (remove_irrelevant_renamings): Return void.
1954 (ada_add_local_symbols): Accept a vector.
1955 (struct match_data) <obstackp>: Remove.
1956 <resultp>: New member.
1957 (aux_add_nonlocal_symbols): Update.
1958 (ada_add_block_renamings, add_nonlocal_symbols)
1959 (ada_add_all_symbols): Accept a vector.
1960 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1961 vector.
1962 (ada_lookup_symbol): Update.
1963 (ada_add_block_symbols): Accept a vector.
1964 (get_var_value, iterate_over_symbols): Update.
1965 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1966 Update.
1967
886d459f
TT
19682021-03-02 Tom Tromey <tromey@adacore.com>
1969
1970 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1971
bdcccc56
TT
19722021-03-02 Tom Tromey <tromey@adacore.com>
1973
1974 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1975 auto_obstack.
1976 <root>: Initialize.
1977 (ada_pspace_data): Remove destructor.
1978 <sym_cache>: Now a unique_ptr.
1979 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1980 (ada_get_symbol_cache): Use 'new'.
1981 (ada_clear_symbol_cache): Rewrite.
1982
1228719f
TT
19832021-03-02 Tom Tromey <tromey@adacore.com>
1984
1985 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1986 is null.
1987
bb3a4efe
LS
19882021-02-27 Lancelot Six <lsix@lancelotsix.com>
1989
1990 PR gdb/27393
1991 * source.c (add_path): Skip empty dirnames.
1992
26b43ca6 19932021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1994
1995 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1996 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1997
dffdd8b5
SM
19982021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1999
2000 PR gdb/26861
2001 * target.c (target_mourn_inferior): Only compare pids in
2002 target_mourn_inferior.
2003
64d38fdd
JM
20042021-02-25 Jan Matyas <jmatyas@codasip.com>
2005
2006 PR gdb/26819
2007 * remote.c (remote_target::start_remote): Ensure the single
2008 thread, automatically added for remote targets without the
2009 concept of threading, is initially in set to the "resumed"
2010 state.
2011 * remote.c (remote_target::add_current_inferior_and_thread):
2012 Add return value - return the main thread.
2013
2450ad54
JV
20142021-02-25 Jan Vrany <jan.vrany@labware.com>
2015
2016 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2017 (mi_tsv_created): Likewise.
2018 (mi_tsv_deleted): Likewise.
2019
30c80d88
TV
20202021-02-25 Tom de Vries <tdevries@suse.de>
2021
2022 PR symtab/27354
2023 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2024 section_kind for &dwo_file->sections.info.
2025
68337b8b
AB
20262021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2027
2028 PR fortran/26155
2029 * f-lang.c (fortran_argument_convert): Delete declaration.
2030 (fortran_prepare_argument): New function.
2031 (evaluate_subexp_f): Move logic to new function
2032 fortran_prepare_argument.
2033
faeb9f13
AB
20342021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2035
2036 * f-exp.y (f77_keywords): Add 'associated'.
2037 * f-lang.c (fortran_associated): New function.
2038 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
2039 (operator_length_f): Likewise.
2040 (print_unop_or_binop_subexp_f): New function.
2041 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
2042 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
2043 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
2044 (operator_check_f): Likewise.
2045 * std-operator.def: Add FORTRAN_ASSOCIATED.
2046
170f4b23
AB
20472021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2048
2049 * f-exp.y (fortran_operators): Add ".xor.".
2050
aa659cfa
TV
20512021-02-24 Tom de Vries <tdevries@suse.de>
2052
2053 PR symtab/27336
2054 * dwarf2/attribute.c (attribute::form_is_signed): New function
2055 factored out of ...
2056 * dwarf2/attribute.h (attribute::as_signed): ... here.
2057 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
2058 (attribute::form_is_signed): Declare.
2059 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
2060 for DW_AT_decl_file.
2061
268c77c1
KB
20622021-02-24 Kevin Buettner <kevinb@redhat.com>
2063
2064 * nat/aarch64-linux-hw-point.c: Add comment regarding include
2065 order for <sys/ptrace.h> and <asm/ptrace.h>.
2066
665af52e
KB
20672021-02-24 Kevin Buettner <kevinb@redhat.com>
2068
2069 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
2070 <sys/ptrace.h>.
2071
dd80d750
AB
20722021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2073
2074 * exec.c (set_section_command): Move variable declarations into
2075 the function body, and use std::string instead of a fixed size
2076 buffer.
2077
336aa7b7
AB
20782021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2079
2080 * exec.c (exec_target::get_section_table): Delete member function.
2081 (section_table_read_available_memory): Use current_top_target, not
2082 just the exec_ops target.
2083 * target-delegates.c: Regenerate.
2084 * target.c (default_get_section_table): New function.
2085 * target.h (target_ops::get_section_table): Change default
2086 behaviour to call default_get_section_table.
2087 (default_get_section_table): Declare.
2088
02f7d26b
AB
20892021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2090
2091 * exec.c (exec_target::close): Call new clear_target_sections
2092 function.
2093 (program_space::add_target_sections): Update name of member
2094 variable.
2095 (program_space::add_target_sections): Update name of member
2096 variable.
2097 (program_space::remove_target_sections): Likewise.
2098 (exec_one_fork): Use new target_sections member function.
2099 (exec_target::get_section_table): Likewise.
2100 (exec_target::files_info): Likewise.
2101 (set_section_command): Likewise.
2102 (exec_set_section_address): Likewise.
2103 (exec_target::has_memory): Use new target_sections member
2104 function.
2105 * progspace.h (program_space::clear_target_sections): New member
2106 function.
2107 (program_space::target_sections): Rename member variable to
2108 m_target_sections, replace with a new member function.
2109 (program_space::m_target_sections): New member variable.
2110 * solib-dsbt.c (scan_dyntag): Use new member function.
2111 * solib-svr4.c (scan_dyntag): Likewise.
2112
19cf757a
AB
21132021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2116 return type const.
2117 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2118 (section_table_read_available_memory): Make local const.
2119 (exec_target::xfer_partial): Make local const.
2120 (print_section_info): Make parameter const.
2121 * gdb/exec.h (print_section_info): Likewise.
2122 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2123 const.
2124 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2125 Likewise.
2126 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2127 Likewise.
2128 * gdb/s390-tdep.c (s390_load): Likewise.
2129 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2130 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2131 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2132 Rename to...
2133 (target_debug_print_const_target_section_table_p): ...this.
2134 * gdb/target-delegates.c: Regenerate.
2135 * gdb/target.c (target_get_section_table): Make return type const.
2136 (target_section_by_addr): Likewise. Also make some locals const.
2137 (memory_xfer_partial_1): Make some locals const.
2138 * gdb/target.h (struct target_ops) <get_section_table>: Make
2139 return type const.
2140 (target_section_by_addr): Likewise.
2141 (target_get_section_table): Likewise.
2142
02a79309
AB
21432021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2144
2145 * NEWS: Mention new 'maint info target-sections' command.
2146 * maint.c (maintenance_info_target_sections): New function.
2147 (_initialize_maint_cmds): Register new command.
2148
895b7b4e
AB
21492021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2150
2151 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2152 (riscv_features_from_bfd): ...this. Change parameter type to
2153 'bfd*', and update as required.
2154 (riscv_find_default_target_description): Update call to
2155 riscv_features_from_bfd. Select a default xlen based on
2156 info.bfd_arch_info.
2157 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2158
bc3c0632
AB
21592021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2160
2161 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2162 dynamic types in UNOP_IND.
2163
08ac5771
SM
21642021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2165
2166 PR gdb/26828
2167 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2168 Instantiate queue.
2169 (~dwarf2_queue_guard): Clear queue.
2170 (queue_comp_unit): Assert that queue is
2171 instantiated.
2172 (process_queue): Adjust.
2173 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2174
616c069a
SM
21752021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2176
2177 PR gdb/26828
2178 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2179 to decide whether or not to enqueue it for expansion.
2180 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2181 after calling maybe_queue_comp_unit.
2182
897608ed
SM
21832021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * linux-nat.c (linux_nat_filter_event): Return void.
2186
15908a11
TT
21872021-02-22 Tom Tromey <tromey@adacore.com>
2188
2189 * solib-svr4.c (enable_break): Update.
2190 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2191 type.
2192 (target_bfd_reopen): Change parameter type.
2193 * bfd-target.h (target_bfd_reopen): Change parameter type.
2194
f53fc427
SM
21952021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2196
2197 * thread.c (add_thread_silent): Add assert.
2198 (find_thread_ptid): Add assert.
2199
de146e19
SM
22002021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2201
2202 PR gdb/27435
2203 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2204 (target_unpush_up): Likewise.
2205 * procfs.c (procfs_target::attach): Push target early. Use
2206 target_unpush_up to unpush target in case of error.
2207 * target.h (struct target_unpusher): Move here.
2208 (target_unpush_up): Likewise.
2209
8488c357
KB
22102021-02-19 Kevin Buettner <kevinb@redhat.com>
2211
2212 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2213 (which in turn includes <gnulib/config.h>) before include
2214 of <signal.h>.
2215
5a9f5403
NC
22162021-02-19 Nelson Chu <nelson.chu@sifive.com>
2217
2218 PR 27158
2219 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2220 (decode_j_type_insn): Likewise.
2221 (decode_cj_type_insn): Likewise.
2222 (decode_b_type_insn): Likewise.
2223 (decode): Likewise.
2224
26f53cd3
TT
22252021-02-18 Tom Tromey <tom@tromey.com>
2226
2227 * expression.h (struct expression) <evaluate>: Declare method.
2228 * eval.c (evaluate_subexp): Simplify.
2229 (expression::evaluate): New method.
2230 (evaluate_expression, evaluate_type): Use expression::evaluate.
2231
6a780b67
KB
22322021-02-17 Kevin Buettner <kevinb@redhat.com>
2233
2234 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2235 to accessing it.
2236 (ada_lookup_name_info): Likewise.
2237
adeab0c5
MF
22382021-02-13 Mike Frysinger <vapier@gentoo.org>
2239
2240 * aclocal.m4: Regenerate.
2241
089436f7
TV
22422021-02-12 Tom de Vries <tdevries@suse.de>
2243
2244 PR threads/26228
2245 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2246 (lin_thread_signals): New static var.
2247 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2248 New function.
2249 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2250 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2251 Declare.
2252 * linux-thread-db.c (check_thread_signals): Use
2253 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2254
96df3e28
AB
22552021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * f-exp.y (f77_keywords): Add allocated.
2258 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2259 (operator_length_f): Likewise.
2260 (print_subexp_f): Likewise.
2261 (dump_subexp_body_f): Likewise.
2262 (operator_check_f): Likewise.
2263 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2264
05f68f52
TV
22652021-02-11 Tom de Vries <tdevries@suse.de>
2266
2267 PR symtab/27353
2268 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2269 Return true for DW_FORM_strx.
2270
b260f8d6
TT
22712021-02-11 Tom Tromey <tromey@adacore.com>
2272
2273 PR gdb/27383:
2274 * parse.c (write_exp_symbol_reference): Write sym.block.
2275
bf3386f0
AB
22762021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2277
2278 * NEWS: Mention changes to 'maint info sections'.
2279 * maint.c (match_substring): Return a bool, fix whitespace issue.
2280 (struct single_bfd_flag_info): New struct.
2281 (bfd_flag_info): New static global.
2282 (match_bfd_flags): Return a bool, use bfd_flag_info.
2283 (print_bfd_flags): Use bfd_flag_info.
2284 (maint_print_section_info): Delete trailing whitespace.
2285 (struct maint_info_sections_opts): New struct.
2286 (maint_info_sections_option_defs): New static global.
2287 (maint_info_sections_completer): New function.
2288 (maintenance_info_sections): Use option parsing mechanism.
2289 (_initialize_maint_cmds): Update command help text for 'maint info
2290 sections' and register a command completer.
2291
4790db14
AB
22922021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2293
2294 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2295 functionality merged into...
2296 (maint_print_all_sections): ...this new function.
2297 (maintenance_info_sections): Make use of maint_print_all_sections,
2298 allow all objects to be printed even where there's no executable.
2299
1db66e34
AB
23002021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2301
2302 * breakpoint.c (resolve_sal_pc): Make use of
2303 bound_minimal_symbol::obj_section.
2304 * maint.c (maintenance_translate_address): Likewise.
2305 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2306 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2307 member function.
2308 * printcmd.c (info_address_command): Make use of
2309 bound_minimal_symbol::obj_section.
2310
18b8df43
AM
23112021-02-11 Alan Modra <amodra@gmail.com>
2312
2313 * arm-symbian-tdep.c: Delete.
2314 * NEWS: Mention arm-symbian removal.
2315 * Makefile.in: Remove arm-symbian-tdep entries.
2316 * configure.tgt: Remove arm*-*-symbianelf*.
2317 * doc/gdb.texinfo: Remove mention of SymbianOS.
2318 * osabi.c (gdb_osabi_names): Remove "Symbian".
2319 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2320 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2321 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2322 handling.
2323 * testsuite/gdb.base/dup-sect.exp: Likewise.
2324 * testsuite/gdb.base/long_long.exp: Likewise.
2325 * testsuite/gdb.base/solib-weak.exp: Likewise.
2326 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2327 * testsuite/gdb.python/py-section-script.exp: Likewise.
2328 * testsuite/lib/dwarf.exp: Likewise.
2329 * testsuite/lib/gdb.exp: Likewise.
2330
e92c8eb8
AB
23312021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2332
2333 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2334 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2335 (one_or_two_args): New pattern.
2336 (f77_keywords): Add lbound and ubound.
2337 * f-lang.c (fortran_bounds_all_dims): New function.
2338 (fortran_bounds_for_dimension): New function.
2339 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2340 (operator_length_f): Likewise.
2341 (print_subexp_f): Likewise.
2342 (dump_subexp_body_f): Likewise.
2343 (operator_check_f): Likewise.
2344 * std-operator.def (FORTRAN_LBOUND): Define.
2345 (FORTRAN_UBOUND): Define.
2346
a52d653e
AB
23472021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2350 and set_section_index member functions where appropriate.
2351 * coffread.c (coff_symtab_read): Likewise.
2352 (process_coff_symbol): Likewise.
2353 * ctfread.c (set_symbol_address): Likewise.
2354 * dwarf2/read.c (add_partial_symbol): Likewise.
2355 (var_decode_location): Likewise.
2356 * language.c: Likewise.
2357 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2358 (compact_minimal_symbols): Likewise.
2359 (minimal_symbol_upper_bound): Likewise.
2360 * objfiles.c (relocate_one_symbol): Likewise.
2361 * psympriv.h (partial_symbol::obj_section): Likewise.
2362 (partial_symbol::address): Likewise.
2363 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2364 * stabsread.c (scan_file_globals): Likewise.
2365 * symmisc.c (dump_msymbols): Likewise.
2366 * symtab.c (general_symbol_info::obj_section): Likewise.
2367 (fixup_section): Likewise.
2368 (get_msymbol_address): Likewise.
2369 * symtab.h (general_symbol_info::section): Rename to...
2370 (general_symbol_info::m_section): ...this.
2371 (general_symbol_info::set_section_index): New member function.
2372 (general_symbol_info::section_index): Likewise.
2373 (SYMBOL_SECTION): Delete.
2374 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2375 set_section_index member functions where appropriate.
2376 (MSYMBOL_SECTION): Delete.
2377 (symbol::symbol): Update to initialize 'm_section'.
2378 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2379 (process_xcoff_symbol): Likewise.
2380
ebbc3a7d
AB
23812021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2382
2383 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2384 MSYMBOL_OBJ_SECTION.
2385 * findvar.c (language_defn::read_var_value): Likewise.
2386 * infcmd.c (jump_command): Likewise.
2387 * linespec.c (minsym_found): Likewise.
2388 * maint.c (maintenance_translate_address): Likewise.
2389 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2390 (minimal_symbol_upper_bound): Likewise.
2391 * parse.c (find_minsym_type_and_address): Likewise.
2392 (operator_check_standard): Likewise.
2393 * printcmd.c (info_address_command): Likewise.
2394 * symmisc.c (dump_msymbols): Likewise.
2395 (print_symbol): Likewise.
2396 * symtab.c (general_symbol_info::obj_section): Define new
2397 function.
2398 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2399 (find_pc_sect_compunit_symtab): Likewise.
2400 (find_function_start_sal): Likewise.
2401 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2402 MSYMBOL_OBJ_SECTION.
2403 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2404 function.
2405 (SYMBOL_OBJ_SECTION): Delete.
2406 (MSYMBOL_OBJ_SECTION): Delete.
2407
9bb305b3
TT
24082021-02-09 Tom Tromey <tom@tromey.com>
2409
2410 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2411
cf2b2075
TV
24122021-02-09 Tom de Vries <tdevries@suse.de>
2413
2414 PR symtab/27341
2415 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2416 construct an array type. Add assert to ensure that element_type is
2417 not being modified.
2418
03642b71
AB
24192021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2422 (gcore_collect_regset_section_cb): Delete.
2423 (gcore_collect_thread_registers): Delete.
2424 (gcore_build_thread_register_notes): Delete.
2425 (gcore_find_signalled_thread): Delete.
2426 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2427 'gdbarch' and 'thread_info' declarations.
2428 (gcore_build_thread_register_notes): Delete declaration.
2429 (gcore_find_signalled_thread): Likewise.
2430 * fbsd-tdep.c: Remove 'gcore.h' include.
2431 (struct fbsd_collect_regset_section_cb_data): New struct.
2432 (fbsd_collect_regset_section_cb): New function.
2433 (fbsd_collect_thread_registers): New function.
2434 (struct fbsd_corefile_thread_data): New struct.
2435 (fbsd_corefile_thread): New function.
2436 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2437 * linux-tdep.c: Remove 'gcore.h' include.
2438 (struct linux_collect_regset_section_cb_data): New struct.
2439 (linux_collect_regset_section_cb): New function.
2440 (linux_collect_thread_registers): New function.
2441 (linux_corefile_thread): Call Linux specific code.
2442 (find_signalled_thread): New function.
2443 (linux_make_corefile_notes): Call find_signalled_thread.
2444
f73e424f
TT
24452021-02-09 Tom Tromey <tromey@adacore.com>
2446
2447 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2448 not_lval value.
2449 * value.c (value_contents_copy_raw): Now static.
2450 * value.h (value_contents_copy_raw): Don't declare.
2451
a4f0544b
TT
24522021-02-09 Tom Tromey <tromey@adacore.com>
2453
2454 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2455 fields.
2456
9b3e4b5d
SV
24572021-02-08 Shahab Vahedi <shahab@synopsys.com>
2458
2459 PR tdep/27369
2460 * arc-linux-tdep.c (handle_atomic_sequence): New.
2461 (arc_linux_software_single_step): Call handle_atomic_sequence().
2462
29db1eb3
AB
24632021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2464
2465 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2466 function.
2467 (REQUIRE_WINDOW): Call is_valid member function.
2468 (REQUIRE_WINDOW_FOR_SETTER): New define.
2469 (gdbpy_tui_is_valid): Call is_valid member function.
2470 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2471 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2472 tui_active too.
2473 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2474 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2475 the function.
2476
e0c23e11
AB
24772021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2478
2479 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2480 for the title is not nullptr.
2481
1cf23996
AB
24822021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * tui-layout.c (saved_tui_windows): Delete.
2485 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2486 call new get_windows member function instead.
2487 (tui_get_window_by_name): Check in tui_windows.
2488 (tui_layout_window::apply): Don't add to tui_windows.
2489 * tui-layout.h (tui_layout_base::get_windows): New member function.
2490 (tui_layout_window::get_windows): Likewise.
2491 (tui_layout_split::get_windows): Likewise.
2492
a53a2657
AB
24932021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2494
2495 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2496 of the window objects.
2497
2708dbbd
AB
24982021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 * python/python.c (gdbpy_print_stack): Reformat an error message.
2501
cd074e04
AB
25022021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2503
2504 * tui/tui-interp.c (tui_command_line_handler): New function.
2505 (tui_interp::resume): Register tui_command_line_handler as the
2506 input_handler.
2507 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2508 function.
2509 (tui_getc_1): Delete handling of '\n' and '\r'.
2510 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2511
4cf28e91
HD
25122021-02-07 Hannes Domani <ssbssa@yahoo.de>
2513
2514 * tui/tui-regs.c (tui_data_window::display_registers_from):
2515 Mark invisible register sub windows.
2516 (tui_data_window::check_register_values): Ignore invisible
2517 register sub windows.
2518
3537bc23
HD
25192021-02-07 Hannes Domani <ssbssa@yahoo.de>
2520
2521 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2522 n_spaces with a negative value.
2523
5fc2d6aa
HD
25242021-02-07 Hannes Domani <ssbssa@yahoo.de>
2525
2526 * tui/tui-regs.c (tui_data_window::display_registers_from):
2527 Add refresh_window call.
2528
83962f83
HD
25292021-02-07 Hannes Domani <ssbssa@yahoo.de>
2530
2531 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2532
0110ec82
SM
25332021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2534
2535 * symmisc.c (std_in, std_out, std_err): Remove.
2536 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2537
7c6944ab
TV
25382021-02-05 Tom de Vries <tdevries@suse.de>
2539
2540 PR breakpoints/27330
2541 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2542 glibc object file has debug info.
2543
e77b0004
TV
25442021-02-05 Tom de Vries <tdevries@suse.de>
2545
2546 PR symtab/27333
2547 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2548
0e857c82
TV
25492021-02-05 Tom de Vries <tdevries@suse.de>
2550
2551 PR breakpoints/27313
2552 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2553 syscall numbers.
2554
bdfea17e
TT
25552021-02-05 Tom Tromey <tom@tromey.com>
2556
2557 * compile/compile-c-support.c (get_compile_context)
2558 (c_get_compile_context, cplus_get_compile_context): Change return
2559 type.
2560 * language.c (language_defn::get_compile_instance): New method.
2561 * language.h (language_defn::get_compile_instance): Change return
2562 type. No longer inline.
2563 * c-lang.c (c_language::get_compile_instance): Change return type.
2564 (cplus_language::get_compile_instance): Change return type.
2565 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2566 Change return type.
2567 * compile/compile.c (compile_to_object): Update.
2568
1b30f421
TT
25692021-02-05 Tom Tromey <tom@tromey.com>
2570
2571 * parser-defs.h (write_exp_symbol_reference): Declare.
2572 * parse.c (write_exp_symbol_reference): New function.
2573 * p-exp.y (variable): Use write_exp_symbol_reference.
2574 * m2-exp.y (variable): Use write_exp_symbol_reference.
2575 * f-exp.y (variable): Use write_exp_symbol_reference.
2576 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2577 * c-exp.y (variable): Use write_exp_symbol_reference.
2578
ae710496
TV
25792021-02-05 Tom de Vries <tdevries@suse.de>
2580
2581 PR exp/27265
2582 * valarith.c (complex_binop): Throw an error if complex type can't
2583 be created.
2584
d3b54e63
TV
25852021-02-05 Tom de Vries <tdevries@suse.de>
2586
2587 PR symtab/27307
2588 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2589 return.
2590
fc9a13fb
TV
25912021-02-05 Tom de Vries <tdevries@suse.de>
2592
2593 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2594
04b4939b
MF
25952021-02-04 Mike Frysinger <vapier@gentoo.org>
2596
2597 * configure.tgt (riscv*-*-*): Set gdb_sim.
2598
6ff267e1
SM
25992021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2600
2601 * target.c (target_is_non_stop_p): Return bool.
2602 * target.h (target_is_non_stop_p): Return bool.
2603
fdbc5215
SM
26042021-02-04 Simon Marchi <simon.marchi@efficios.com>
2605
2606 * record-full.c (record_full_async_inferior_event_handler):
2607 Don't clear async event handler.
2608 (record_full_base_target::wait): Clear async event handler at
2609 beginning.
2610
85d3ad8e
SM
26112021-02-04 Simon Marchi <simon.marchi@efficios.com>
2612
2613 * record-btrace.c (record_btrace_handle_async_inferior_event):
2614 Don't clear async event handler.
2615 (record_btrace_target::wait): Clear async event handler at
2616 beginning.
2617
baa8575b
SM
26182021-02-04 Simon Marchi <simon.marchi@efficios.com>
2619
2620 * remote.c (remote_target::wait): Clear async event handler at
2621 beginning, mark if needed at the end.
2622 (remote_async_inferior_event_handler): Don't set or clear async
2623 event handler.
2624
6b36ddeb
SM
26252021-02-04 Simon Marchi <simon.marchi@efficios.com>
2626
2627 * async-event.h (async_event_handler_func): Add documentation.
2628 * async-event.c (check_async_event_handlers): Don't clear
2629 async_event_handler ready flag.
2630 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2631 flag.
2632 * record-btrace.c (record_btrace_handle_async_inferior_event):
2633 Likewise.
2634 * record-full.c (record_full_async_inferior_event_handler):
2635 Likewise.
2636 * remote-notif.c (remote_async_get_pending_events_handler):
2637 Likewise.
2638 * remote.c (remote_async_inferior_event_handler): Likewise.
2639
72d383bb
SM
26402021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2641
2642 * infrun.c (handle_inferior_event): Move stop_soon variable to
2643 inner scope.
2644
408f6686
PA
26452021-02-03 Pedro Alves <pedro@palves.net>
2646
2647 * infcmd.c (detach_command): Hold strong reference to target, and
2648 if all-stop on entry, restart threads on exit.
2649 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2650 (restart_stepped_thread): ... this new function. Also handle
2651 trap_expected.
2652 (restart_after_all_stop_detach): New function.
2653 * infrun.h (restart_after_all_stop_detach): Declare.
2654
ac7d717c
PA
26552021-02-03 Pedro Alves <pedro@palves.net>
2656
2657 * infrun.c (struct step_over_info): Initialize fields.
2658 (prepare_for_detach): Handle ongoing in-line step over.
2659
e87f0fe8
PA
26602021-02-03 Pedro Alves <pedro@palves.net>
2661
2662 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2663 here...
2664 * remote.c (remote_target::remote_detach_1): ... and here ...
2665 * target.c (target_detach): ... instead of here.
2666 * target.h (target_ops::detach): Add comment.
2667
8ff53139
PA
26682021-02-03 Pedro Alves <pedro@palves.net>
2669
2670 * infrun.c (struct wait_one_event): Move higher up.
2671 (prepare_for_detach): Abort in-progress displaced steps instead of
2672 letting them complete.
2673 (handle_one): If the inferior is detaching, don't add the thread
2674 back to the global step-over chain.
2675 (restart_threads): Don't restart threads if detaching.
2676 (handle_signal_stop): Remove inferior::detaching reference.
2677
91475068
PA
26782021-02-03 Pedro Alves <pedro@palves.net>
2679
2680 * infrun.c (prepare_for_detach): Don't release scoped_restore
2681 before returning.
2682
d758e62c
PA
26832021-02-03 Pedro Alves <pedro@palves.net>
2684
2685 * infrun.c (handle_one): New function, factored out from ...
2686 (stop_all_threads): ... here.
2687
b0083dd7
PA
26882021-02-03 Pedro Alves <pedro@palves.net>
2689
2690 * remote.c (remote_notif_stop_ack): Don't error out on
2691 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2692 (remote_target::discard_pending_stop_replies): Don't delete
2693 in-flight notification; instead, clear its contents.
2694
621cc310
PA
26952021-02-03 Pedro Alves <pedro@palves.net>
2696
2697 * remote.c (extended_remote_target::attach): Set target async in
2698 the target-non-stop path too.
2699
2ab76a18
PA
27002021-02-03 Pedro Alves <pedro@palves.net>
2701
2702 PR gdb/27055
2703 * infrun.c (handle_signal_stop): Move main context_switch call
2704 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2705
2e3773ff
LS
27062021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2707
2708 * NEWS (Changed commands): Add entry for the behavior change of
2709 the inferior command.
2710 * inferior.c (inferior_command): When no argument is given to the
2711 inferior command, display info about the currently selected
2712 inferior.
2713
e57933dc
SM
27142021-02-02 Simon Marchi <simon.marchi@efficios.com>
2715
2716 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2717 a sect_offset.
2718 (read_attribute_reprocess): Adjust.
2719
2b0c7f41
SM
27202021-02-02 Simon Marchi <simon.marchi@efficios.com>
2721
2722 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2723 <gnu_ranges_base>: ... this...
2724 <rnglists_base>: ... and this.
2725 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2726 <gnu_ranges_base>: ... this...
2727 <rnglists_base>: ... and this.
2728 (read_cutu_die_from_dwo): Adjust
2729 (dwarf2_get_pc_bounds): Adjust
2730 (dwarf2_record_block_ranges): Adjust.
2731 (read_full_die_1): Adjust
2732 (partial_die_info::read): Adjust.
2733 (read_rnglist_index): Adjust.
2734
a1c40103
SM
27352021-02-02 Simon Marchi <simon.marchi@efficios.com>
2736
2737 PR gdb/26813
2738 * dwarf2/read.c (read_loclists_rnglists_header): Add
2739 header_offset parameter and use it.
2740 (read_loclist_index): Read header of the current contribution,
2741 not the one at the beginning of the section.
2742 (read_rnglist_index): Likewise.
2743
b1829e1b
SM
27442021-02-02 Simon Marchi <simon.marchi@efficios.com>
2745
2746 PR gdb/26813
2747 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2748 requires_reprocessing flag.
2749 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2750 DW_FORM_loclistx.
2751 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2752 and DW_FORM_loclistx.
2753 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2754 instead of set_address for DW_FORM_loclistx and
2755 DW_FORM_rnglistx.
2756
0c800c6e
SM
27572021-02-02 Simon Marchi <simon.marchi@efficios.com>
2758
2759 * dwarf2/read.c (read_loclist_index): Remove bound check for
2760 start of offset.
2761 (read_rnglist_index): Likewise.
2762
05787bad
SM
27632021-02-02 Simon Marchi <simon.marchi@efficios.com>
2764
2765 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2766 of the offset.
2767
5e4d9bbc
SM
27682021-02-02 Simon Marchi <simon.marchi@efficios.com>
2769
2770 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2771
a0c1eeba
SM
27722021-02-02 Simon Marchi <simon.marchi@efficios.com>
2773
2774 * dwarf2/read.c (read_loclist_index): Change complaints into
2775 errors.
2776
2bd3e4b8
TV
27772021-02-02 Tom de Vries <tdevries@suse.de>
2778
2779 PR symtab/24620
2780 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2781 psymtab == nullptr.
2782
82a1fd3a
AB
27832021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2784
2785 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2786 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2787 here from linux-tdep.c and given a new name. Minor cleanups.
2788 (gcore_collect_regset_section_cb): Likewise.
2789 (gcore_collect_thread_registers): Likewise.
2790 (gcore_build_thread_register_notes): Likewise.
2791 (gcore_find_signalled_thread): Likewise.
2792 * gcore.h (gcore_build_thread_register_notes): Declare.
2793 (gcore_find_signalled_thread): Declare.
2794 * fbsd-tdep.c: Add 'gcore.h' include.
2795 (struct fbsd_collect_regset_section_cb_data): Delete.
2796 (fbsd_collect_regset_section_cb): Delete.
2797 (fbsd_collect_thread_registers): Delete.
2798 (struct fbsd_corefile_thread_data): Delete.
2799 (fbsd_corefile_thread): Delete.
2800 (fbsd_make_corefile_notes): Call
2801 gcore_build_thread_register_notes instead of the now deleted
2802 FreeBSD code.
2803 * linux-tdep.c: Add 'gcore.h' include.
2804 (struct linux_collect_regset_section_cb_data): Delete.
2805 (linux_collect_regset_section_cb): Delete.
2806 (linux_collect_thread_registers): Delete.
2807 (linux_corefile_thread): Call
2808 gcore_build_thread_register_notes.
2809 (find_signalled_thread): Delete.
2810 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2811
ebde6f2d
TV
28122021-01-29 Tom de Vries <tdevries@suse.de>
2813
2814 PR breakpoints/26063
2815 * infrun.c (process_event_stop_test): Reset
2816 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2817 changed.
2818
0f93c3a2
AB
28192021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2820
2821 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2822 assert. Extend the header comment.
2823
f237f998
AB
28242021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2825
2826 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2827 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2828 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2829 (tui_locator_win_info_ptr): Delete declaration.
2830 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2831 (tui_disasm_window::set_contents): Fetch state from tui_location
2832 global.
2833 (tui_get_begin_asm_address): Likewise.
2834 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2835 for locator window.
2836 (get_locator_window): Delete.
2837 (initialize_known_windows): Treat locator window just like all the
2838 rest.
2839 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2840 (tui_source_window::set_contents): Fetch state from tui_location
2841 global.
2842 (tui_source_window::showing_source_p): Likewise.
2843 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2844 (_locator): Delete.
2845 (tui_locator_win_info_ptr): Delete.
2846 (tui_locator_window::make_status_line): Fetch state from
2847 tui_location global.
2848 (tui_locator_window::rerender): Remove check of 'handle',
2849 reindent function body.
2850 (tui_locator_window::set_locator_fullname): Delete.
2851 (tui_locator_window::set_locator_info): Delete.
2852 (tui_update_locator_fullname): Delete.
2853 (tui_show_frame_info): Likewise.
2854 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2855 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2856 tui/tui-location.h and renamed to
2857 tui_location_tracker::set_location.
2858 (tui_locator_window::set_locator_fullname): Moved to
2859 tui/tui-location.h and renamed to
2860 tui_location_tracker::set_fullname.
2861 (tui_locator_window::full_name): Delete.
2862 (tui_locator_window::proc_name): Delete.
2863 (tui_locator_window::line_no): Delete.
2864 (tui_locator_window::addr): Delete.
2865 (tui_locator_window::gdbarch): Delete.
2866 (tui_update_locator_fullname): Delete declaration.
2867 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2868 for locator window.
2869 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2870 (tui_display_main): Call function on tui_location directly.
2871 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2872 * tui/tui-location.c: New file.
2873 * tui/tui-location.h: New file.
2874
8ee511af
SM
28752021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2876
2877 * gdbtypes.h (get_type_arch): Rename to...
2878 (struct type) <arch>: ... this, update all users.
2879
6ac37371
SM
28802021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2881
2882 * gdbtypes.h (struct type) <arch>: Rename to...
2883 <arch_owner>: ... this, update all users.
2884 <objfile>: Rename to...
2885 <objfile_owner>: ... this, update all users.
2886
24cf6389
AB
28872021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2888
2889 * gdbcmd.h (execute_command_to_string): Update comment.
2890 * top.c (execute_command_to_string): Update header comment.
2891
2a7f6487
TV
28922021-01-28 Tom de Vries <tdevries@suse.de>
2893
2894 PR breakpoints/27205
2895 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2896 (create_longjmp_master_breakpoint_names): New function, factored out
2897 of ...
2898 (create_longjmp_master_breakpoint): ... here. Only try to install
2899 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2900 breakpoint in libc.so failed.
2901
59b59f08
LS
29022021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2903
2904 PR gdb/27133
2905 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2906 unique_ptr is released when the wrapped pointer is kept for later
2907 use.
2908
807f647c
MM
29092021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2910
2911 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2912 BLR and BR instructions.
2913 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2914 (enum aarch64_masks): New.
2915
4ef367bf
TT
29162021-01-26 Tom Tromey <tromey@adacore.com>
2917
2918 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2919 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2920 (windows_init_thread_list, windows_nat::handle_load_dll)
2921 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2922 (windows_nat_target::resume)
2923 (windows_nat_target::get_windows_debug_event)
2924 (windows_nat_target::interrupt, windows_xfer_memory)
2925 (windows_nat_target::close): Update.
2926 * nat/windows-nat.c (DEBUG_EVENTS): Use
2927 debug_prefixed_printf_cond.
2928 (matching_pending_stop, fetch_pending_stop)
2929 (continue_last_debug_event): Update.
2930
4cb1265b
MS
29312020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2932
2933 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2934 elfcore_write_file_note.
2935
d0cc52bd
SV
29362021-01-26 Shahab Vahedi <shahab@synopsys.com>
2937
2938 * arc-tdep.c (arc_add_reggroups): New function.
2939 (arc_gdbarch_init): Call arc_add_reggroups.
2940
ac3571d9 29412021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
2942
2943 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2944
9f6c202e
TV
29452021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2946 Simon Marchi <simon.marchi@polymtl.ca>
2947 Tom de Vries <tdevries@suse.de>
2948
2949 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2950 DW_AT_ranges.
2951
a625a8c9
TT
29522021-01-25 Tom Tromey <tromey@adacore.com>
2953
2954 * dwarf2/read.c (get_mpz): New function.
2955 (get_dwarf2_rational_constant): Use it.
2956
19184910
TT
29572021-01-25 Tom Tromey <tromey@adacore.com>
2958
2959 * ada-lang.c (resolve_subexp): Handle array context.
2960
b10bae18
TT
29612021-01-23 Tom Tromey <tom@tromey.com>
2962
2963 PR compile/25575
2964 * compile/compile-loc2c.c (note_register): New function.
2965 (pushf_register_address, pushf_register): Use it.
2966
3637a558
TT
29672021-01-23 Tom Tromey <tom@tromey.com>
2968
2969 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2970 Change type of "registers_used".
2971 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2972 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2973 (locexpr_generate_c_location, loclist_generate_c_location): Change
2974 type of "registers_used".
2975 * compile/compile.h (compile_dwarf_expr_to_c)
2976 (compile_dwarf_bounds_to_c): Update.
2977 * compile/compile-loc2c.c (pushf_register_address)
2978 (pushf_register, do_compile_dwarf_expr_to_c)
2979 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2980 of "registers_used".
2981 * compile/compile-c.h (generate_c_for_variable_locations):
2982 Update.
2983 * compile/compile-c-symbols.c (generate_vla_size)
2984 (generate_c_for_for_one_variable): Change type of
2985 "registers_used".
2986 (generate_c_for_variable_locations): Return std::vector.
2987 * compile/compile-c-support.c (generate_register_struct): Change
2988 type of "registers_used".
2989 (compute): Update.
2990
9f7f6cb8
TT
29912021-01-23 Tom Tromey <tom@tromey.com>
2992
2993 * compile/compile-internal.h (class compile_instance)
2994 <set_arguments>: Change return type.
2995 * compile/compile.c (compile_to_object): Remove call to reset.
2996 (compile_instance::set_arguments): Change return type.
2997
dd5ca05f
SM
29982021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2999
3000 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3001 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3002
d3ee35db
LS
30032021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3004
3005 * Makefile.in (SELFTESTS_SRCS): Add
3006 unittests/gdb_tilde_expand-selftests.c.
3007 * unittests/gdb_tilde_expand-selftests.c: New file.
3008
9d2d8a16
AB
30092021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3010
3011 PR cli/25956
3012 * NEWS: Mention new command.
3013 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3014 (version_style): Define.
3015 (cli_style_option::cli_style_option): Add intensity parameter, and
3016 use as appropriate.
3017 (_initialize_cli_style): Register version style set/show commands.
3018 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3019 (version_style): Declare.
3020 * top.c (print_gdb_version): Use version_stype, and styled_string
3021 to print the GDB version string.
3022
e7b43072
AB
30232021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3024
3025 * utils.c (emit_style_escape): Only emit an escape sequence if the
3026 requested style is different than the current applied style.
3027 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3028 current applied_style.
3029 (fputs_styled): Remove is_default check.
3030 (fputs_styled_unfiltered): Likewise.
3031 (vfprintf_styled_no_gdbfmt): Likewise.
3032
2189c312
SM
30332021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3034
3035 * remote.h (remote_debug_printf): New.
3036 (remote_debug_printf_nofunc): New.
3037 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
3038 * remote.c: Use above macros throughout file.
3039
02349803
SM
30402021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3041
3042 * remote.h (remote_debug): Change to bool.
3043 * remote.c (remote_debug): Change to bool.
3044 (_initialize_remote): Adjust.
3045
cda09ec9
SM
30462021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3047
3048 * target.h (remote_debug): Move to...
3049 * remote.h (remote_debug): ... here.
3050 * top.c (remote_debug): Move to...
3051 * remote.c (remote_debug): ... here.
3052 * remote-sim.c: Include remote.h.
3053
baf2b57f
SM
30542021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3055
3056 * cli/cli-cmds.c (show_remote_debug): Remove.
3057 (show_remote_timeout): Remove.
3058 (_initialize_cli_cmds): Don't register commands.
3059 * remote.c (show_remote_debug): Move here.
3060 (show_remote_timeout): Move here.
3061 (_initialize_remote): Register commands.
3062
344e9841
SM
30632021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3064
3065 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
3066 type::objfile method instead.
3067
30625020
SM
30682021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3069
3070 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
3071 use the type::is_objfile_owned method.
3072
5b7d941b
SM
30732021-01-22 Simon Marchi <simon.marchi@efficios.com>
3074
3075 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
3076 (TYPE_OWNER): Remove.
3077 (TYPE_OBJFILE): Adjust.
3078 (struct main_type) <flag_objfile_owned>: Rename to...
3079 <m_flag_objfile_owned>: ... this.
3080 <owner>: Rename to...
3081 <m_owner>: ... this.
3082 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3083 methods.
3084 (TYPE_ALLOC): Adjust.
3085 * gdbtypes.c (alloc_type): Adjust.
3086 (alloc_type_arch): Adjust.
3087 (alloc_type_copy): Adjust.
3088 (get_type_arch): Adjust.
3089 (smash_type): Adjust.
3090 (lookup_array_range_type): Adjust.
3091 (recursive_dump_type): Adjust.
3092 (copy_type_recursive): Adjust.
3093 * compile/compile-c-types.c (convert_func): Adjust.
3094 (convert_type_basic): Adjust.
3095 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3096 Adjust.
3097 * language.c
3098 (language_arch_info::type_and_symbol::alloc_type_symbol):
3099 Adjust.
3100
d5d24e12
LM
31012021-01-21 Luis Machado <luis.machado@linaro.org>
3102
3103 * coffread.c (enter_linenos): Passing string to complaint.
3104 * valops.c (value_assign): Make array view.
3105
a59902a7
SM
31062021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3107
3108 * auto-load.h (debug_auto_load): Move here.
3109 (auto_load_debug_printf): New.
3110 * auto-load.c: Use auto_load_debug_printf.
3111 (debug_auto_load): Move to header.
3112 * linux-thread-db.c (try_thread_db_load): Use
3113 auto_load_debug_printf.
3114 * main.c (captured_main_1): Likewise.
3115
d3abc0ce
SM
31162021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3117
3118 * f-valprint.c (f77_array_offset_tbl): Remove.
3119
1e15fcac
SM
31202021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3121
3122 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3123
439706e6
SM
31242021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3125
3126 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3127 of gdb_select.
3128
325d39e4
HD
31292021-01-21 Hannes Domani <ssbssa@yahoo.de>
3130
3131 PR python/19151
3132 * python/py-breakpoint.c (bppy_get_location): Handle
3133 bp_hardware_breakpoint.
3134 (bppy_init): Likewise.
3135 (gdbpy_breakpoint_created): Likewise.
3136
7cb6d92a
SM
31372021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3138
3139 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3140
d4dd4fca
SM
31412021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3142
3143 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3144 (_initialize_gdb_bfd): Adjust.
3145
de53369b
SM
31462021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3147
3148 PR gdb/26828
3149 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3150
17e593e9
SM
31512021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3152
3153 * dwarf2/read.c (follow_die_offset): Add logging.
3154 (dwarf2_per_objfile::age_comp_units): Add logging.
3155
6bd434d6
SM
31562021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3157
3158 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3159 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3160 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3161 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3162 * arm-tdep.c (struct frame_unwind): Make static.
3163 * auto-load.c (auto_load_safe_path_vec): Make static.
3164 * csky-tdep.c (csky_stub_unwind): Make static.
3165 * gdbarch.c (gdbarch_data_registry): Make static.
3166 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3167 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3168 * i386-tdep.c (i386_frame_setup_skip_insns,
3169 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3170 Make static.
3171 * infrun.c (observer_mode): Make static.
3172 * linux-nat.c (sigchld_action): Make static.
3173 * linux-thread-db.c (thread_db_list): Make static.
3174 * maint-test-options.c (maintenance_test_options_list):
3175 * mep-tdep.c (mep_csr_registers): Make static.
3176 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3177 (stats): Make static.
3178 * nat/linux-osdata.c (struct osdata_type): Make static.
3179 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3180 * progspace.c (last_program_space_num): Make static.
3181 * python/py-param.c (struct parm_constant): Remove struct type
3182 name.
3183 (parm_constants): Make static.
3184 * python/py-record-btrace.c (btpy_list_methods): Make static.
3185 * python/py-record.c (recpy_gap_type): Make static.
3186 * record.c (record_goto_cmdlist): Make static.
3187 * regcache.c (regcache_descr_handle): Make static.
3188 * registry.h (DEFINE_REGISTRY): Make definition static.
3189 * symmisc.c (std_in, std_out, std_err): Make static.
3190 * top.c (previous_saved_command_line): Make static.
3191 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3192 static.
3193 * unittests/command-def-selftests.c (nr_duplicates,
3194 nr_invalid_prefixcmd, lists): Make static.
3195 * unittests/observable-selftests.c (test_notification): Make
3196 static.
3197 * unittests/optional/assignment/1.cc (counter): Make static.
3198 * unittests/optional/assignment/2.cc (counter): Make static.
3199 * unittests/optional/assignment/3.cc (counter): Make static.
3200 * unittests/optional/assignment/4.cc (counter): Make static.
3201 * unittests/optional/assignment/5.cc (counter): Make static.
3202 * unittests/optional/assignment/6.cc (counter): Make static.
3203
a6c11cbb
JS
32042021-01-20 Joel Sherrill <joel@rtems.org>
3205
3206 PR gdb/27219
3207 * remote.c (struct remote_thread_info) <resume_state>: Rename
3208 to...
3209 <get_resume_state>: ... this.
3210 (remote_target::resume): Adjust.
3211 (remote_target::commit_resume): Adjust.
3212 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3213
6f52fdf4
SDJ
32142021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3215 Tom Tromey <tom@tromey.com>
3216
3217 * stap-probe.c (stap_parse_single_operand): Handle '!'
3218 operator.
3219 (stap_parse_argument_conditionally): Likewise.
3220 Skip spaces after processing open-parenthesis sub-expression.
3221 (stap_parse_argument_1): Skip spaces after call to
3222 stap_parse_argument_conditionally.
3223 Handle case when right-side expression is a parenthesized
3224 sub-expression.
3225 Skip spaces after call to stap_parse_argument_1.
3226
1c3b85ad
LS
32272021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3228
3229 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3230
a9a87d35
LM
32312021-01-19 Luis Machado <luis.machado@linaro.org>
3232
3233 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3234 memory and save data.
3235 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3236 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3237 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3238 (trad_frame_value_bytes_p): Remove.
3239 (trad_frame_reset_saved_regs): Adjust documentation.
3240 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3241 constructor and reset the state of the registers.
3242 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3243 (trad_frame_value_bytes_p, trad_frame_set_value)
3244 (trad_frame_set_realreg, trad_frame_set_addr)
3245 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3246 (trad_frame_set_reg_realreg): Update to call member function.
3247 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3248 (trad_frame_get_prev_register): Likewise.
3249
3250 * aarch64-tdep.c (aarch64_analyze_prologue)
3251 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3252 (aarch64_prologue_prev_register): Update to use member functions.
3253 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3254 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3255 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3256 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3257 (arm_make_epilogue_frame_cache): Likewise.
3258 * avr-tdep.c (avr_frame_unwind_cache)
3259 (avr_frame_prev_register): Likewise.
3260 * cris-tdep.c (cris_scan_prologue): Likewise.
3261 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3262 * frv-tdep.c (frv_analyze_prologue): Likewise.
3263 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3264 * lm32-tdep.c (lm32_frame_cache): Likewise.
3265 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3266 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3267 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3268 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3269 (reset_saved_regs): Adjust to set realreg.
3270 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3271 call member functions.
3272 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3273 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3274 (s390_backchain_frame_unwind_cache): Likewise.
3275 * score-tdep.c (score7_analyze_prologue)
3276 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3277 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3278 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3279 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3280 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3281 * tilegx-tdep.c (tilegx_analyze_prologue)
3282 (tilegx_frame_cache): Likewise.
3283 * v850-tdep.c (v850_frame_cache): Likewise.
3284 * vax-tdep.c (vax_frame_cache): Likewise.
3285
bdec2917
LM
32862021-01-19 Luis Machado <luis.machado@linaro.org>
3287
3288 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3289 of buffer + length.
3290 (put_frame_register_bytes): Likewise.
3291 Adjust documentation.
3292 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3293 (safe_frame_unwind_memory): Likewise.
3294 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3295 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3296 gdb::array_view.
3297 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3298 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3299 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3300 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3301 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3302 * dwarf2/loc.c (rw_pieced_value): Likewise.
3303 * hppa-tdep.c (hppa_frame_cache): Likewise.
3304 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3305 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3306 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3307 (i386_linux_rt_sigtramp_start): Likewise.
3308 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3309 * i386-tdep.c (i386_register_to_value): Likewise.
3310 * i387-tdep.c (i387_register_to_value): Likewise.
3311 * ia64-tdep.c (ia64_register_to_value): Likewise.
3312 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3313 (m32r_linux_rt_sigtramp_start): Likewise.
3314 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3315 * m68k-tdep.c (m68k_register_to_value): Likewise.
3316 * mips-tdep.c (mips_register_to_value)
3317 (mips_value_to_register): Likewise.
3318 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3319 (ppcfbsd_sigtramp_frame_cache): Likewise.
3320 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3321 (ppcobsd_sigtramp_frame_cache): Likewise.
3322 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3323 (rs6000_register_to_value): Likewise.
3324 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3325 * tramp-frame.c (tramp_frame_start): Likewise.
3326 * valops.c (value_assign): Likewise.
3327
ccbe4c82
LM
33282021-01-19 Luis Machado <luis.machado@linaro.org>
3329
3330 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3331 array_view.
3332 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3333 instead of buffer and size.
3334 (trad_frame_set_reg_value_bytes): Likewise.
3335 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3336 (trad_frame_set_value_bytes): Likewise.
3337
0e7620dc
MF
33382021-01-18 Mike Frysinger <vapier@gentoo.org>
3339
3340 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3341
6a9ad81c
AB
33422021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3343
3344 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3345 (riscv_fbsd_gregset): Use riscv_supply_regset.
3346 (riscv_fbsd_fpregset): Likewise.
3347 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3348 (riscv_linux_fregset): Likewise.
3349 * riscv-tdep.c (riscv_supply_regset): Define new function.
3350 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3351
d3d7d1ba
TV
33522021-01-18 Tom de Vries <tdevries@suse.de>
3353
3354 PR tdep/27172
3355 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3356 New macro.
3357 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3358 for SEGV_BNDERR.
3359
aa2838cc
SM
33602021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3361
3362 * remote.c (class remote_target) <remote_hostio_send_command,
3363 remote_hostio_parse_result>: Constify parameter.
3364 (remote_hostio_parse_result): Likewise.
3365 (remote_target::remote_hostio_send_command): Adjust.
3366 (remote_target::remote_hostio_pread_vFile): Adjust.
3367 (remote_target::fileio_readlink): Adjust.
3368 (remote_target::fileio_fstat): Adjust.
3369
b5c8f22d
SM
33702021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3371
3372 * remote.c (remote_target::start_remote): Move wait_status to
3373 narrower scope.
3374
e3b2741b
SM
33752021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3376
3377 * remote.c (class remote_target):
3378 <add_current_inferior_and_thread>: Constify parameter.
3379 (stop_reply_extract_thread): Likewise.
3380 (remote_target::get_current_thread): Likewise.
3381 (remote_target::add_current_inferior_and_thread): Likewise.
3382
cecb1912
SM
33832021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3384
3385 * remote.c (class remote_target)
3386 <remote_unpack_thread_info_response,
3387 parse_threadlist_response>: Constify parameter and/or return
3388 value and or local variable.
3389 (stub_unpack_int): Likewise.
3390 (unpack_nibble): Likewise.
3391 (unpack_byte): Likewise.
3392 (unpack_int): Likewise.
3393 (unpack_string): Likewise.
3394 (unpack_threadid): Likewise.
3395 (remote_target::remote_unpack_thread_info_response): Likewise.
3396 (remote_target::parse_threadlist_response): Likewise.
3397
5a11fff0
AB
33982021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3399
3400 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3401
17e89137
LS
34022021-01-14 Lancelot Six <lsix@lancelotsix.com>
3403
3404 * MAINTAINERS (Write After Approval): Add myself.
3405
58eadc4b
BE
34062021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3407
3408 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3409 because is_trivially_default_constructible was first implemented with
3410 gcc-5.
3411
5fae2a2c
TV
34122021-01-14 Tom de Vries <tdevries@suse.de>
3413
3414 PR breakpoints/27151
3415 * objfiles.h (in_plt_section): Handle .plt.sec.
3416
8f66807b
AB
34172021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3418
3419 PR gdb/26819
3420 * remote.c
3421 (remote_target::select_thread_for_ambiguous_stop_reply): New
3422 member function.
3423 (remote_target::process_stop_reply): Call
3424 select_thread_for_ambiguous_stop_reply.
3425
bd497355
SM
34262021-01-13 Simon Marchi <simon.marchi@efficios.com>
3427
3428 * record-btrace.c (class record_btrace_target): Remove.
3429 (record_btrace_target::commit_resume): Remove.
3430 * record-full.c (class record_full_target): Remove.
3431 (record_full_target::commit_resume): Remove.
3432
c9d22089
SM
34332021-01-13 Simon Marchi <simon.marchi@efficios.com>
3434
3435 * remote.c (enum class resume_state): New.
3436 (struct resumed_pending_vcont_info): New.
3437 (struct remote_thread_info) <resume_state, set_not_resumed,
3438 set_resumed_pending_vcont, resumed_pending_vcont_info,
3439 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3440 New.
3441 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3442 (remote_target::remote_add_thread): Adjust.
3443 (remote_target::process_initial_stop_replies): Adjust.
3444 (remote_target::resume): Adjust.
3445 (remote_target::commit_resume): Rely on state in
3446 remote_thread_info and not on tp->executing.
3447 (remote_target::process_stop_reply): Adjust.
3448
d8d1feb4
SM
34492021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3450
3451 * arc-tdep.h (arc_debug_printf): New.
3452 * arc-tdep.c: Use arc_debug_printf.
3453 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3454 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3455 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3456
fb0f5031
SM
34572021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3458
3459 * arc-tdep.h (arc_debug): Change type to bool.
3460 * arc-tdep.c (arc_debug): Change type to bool.
3461 (arc_analyze_prologue): Adjust.
3462 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3463 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3464
5bf7e91b
SM
34652021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3466
3467 * auto-load.c (auto_load_objfile_script_1): Use bool.
3468 (execute_script_contents): Use bool.
3469
db972fce
SM
34702021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3471
3472 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3473 comment here.
3474 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3475 comment to header.
3476 * extension-priv.h (struct extension_language_script_ops)
3477 <auto_load_enabled>: Return bool.
3478 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3479 comment here.
3480 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3481 comment to header.
3482 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3483 move comment here.
3484 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3485 move comment to header.
3486 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3487 move comment here.
3488 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3489 move comment to header.
3490
5e12f48f
SM
34912021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3492
3493 * auto-load.h (file_is_auto_load_safe): Change return type to
3494 bool, move comment here.
3495 * auto-load.c (file_is_auto_load_safe): Change return type and
3496 advice_printed to bool. Move comment to header.
3497
54ca9002
SM
34982021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3499
3500 * jit.c (jit_debug_printf): New, use throughout file.
3501
24a7f1b5
SM
35022021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3503
3504 * infrun.c (normal_stop): Fix indentation.
3505
fe7a351a
SM
35062021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3507
3508 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3509 declarations to ...
3510 * symfile.h: ... here.
3511 * symfile.c: Update doc.
3512
16e9019e
SM
35132021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3514
3515 * target.h (baud_rate, serial_parity): Move declarations...
3516 * serial.h: ... here.
3517 * main.c: Include serial.h.
3518 * serial.c (baud_rate, serial_parity): Update doc.
3519
b2f2ae0d
SM
35202021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3521
3522 * top.c (pre_init_ui_hook): Remove.
3523
5291fe3c
SP
35242021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3525
3526 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3527 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3528 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3529 * features/aarch64-fpu.xml: Add bfloat16 type.
3530
ce38f5ed
AB
35312021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3532
3533 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3534
7c654b71
AB
35352021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3536
3537 * f-exp.y (dot_ops): Rename to...
3538 (fortran_operators): ...this. Add a header comment. Add symbol
3539 based operators.
3540 (yylex): Update to use fortran_operators not dot_ops. Remove
3541 special handling for '**', this is now included in
3542 fortran_operators.
3543
c6185dce
SM
35442021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3545
3546 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3547 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3548 * aarch64-tdep.c: Use aarch64_debug_printf.
3549
eef401dc
SM
35502021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3551
3552 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3553 file.
3554
062eaacb
SM
35552021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3556
3557 * jit.c (jit_debug): Change type to bool.
3558 (_initialize_jit): Adjust.
3559
54585eee
TT
35602021-01-09 Tom Tromey <tom@tromey.com>
3561
3562 PR compile/23672
3563 * compile/compile.c (compile_to_object): Avoid crash when
3564 osabi_triplet_regexp returns NULL.
3565
bc167b6b
TT
35662021-01-09 Tom Tromey <tom@tromey.com>
3567
3568 * tracepoint.h (class collection_list) <append_exp>: Take a
3569 std::string.
3570 * tracepoint.c (collection_list::append_exp): Take a std::string.
3571 (encode_actions_1): Update.
3572
8fc48b79
TT
35732021-01-08 Tom Tromey <tromey@adacore.com>
3574
3575 * parse.c (parse_expression): Add void_context_p parameter. Use
3576 parse_exp_in_context.
3577 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3578 parse_expression.
3579 (print_command, call_command): Update.
3580 * expression.h (parse_expression): Add void_context_p parameter.
3581
3c8c6de2
AB
35822021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3583
3584 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3585 for internalvar components that have a dynamic location.
3586
1940319c
TV
35872021-01-08 Tom de Vries <tdevries@suse.de>
3588
3589 PR gdb/26881
3590 * breakpoint.c (create_exception_master_breakpoint_probe)
3591 (create_exception_master_breakpoint_hook): Factor out
3592 of ...
3593 (create_exception_master_breakpoint): ... here. Only try to install
3594 the master exception breakpoint in objfile.debug using the
3595 _Unwind_DebugHook method, if the install using probes in objfile
3596 failed.
3597
e3436813
AB
35982021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3599
3600 * f-lang.c (fortran_value_subarray): Call value_from_component.
3601
e904f56d
MF
36022021-01-07 Mike Frysinger <vapier@gentoo.org>
3603
3604 * remote-sim.c: Include memory-map.h.
3605 (gdbsim_target): Define memory_map override.
3606 (gdbsim_target::memory_map): Define.
3607
959d6a67
TT
36082021-01-07 Tom Tromey <tromey@adacore.com>
3609
3610 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3611
d4813f10
TT
36122021-01-07 Tom Tromey <tromey@adacore.com>
3613
3614 * ada-lang.c (add_component_interval): Start loop using vector's
3615 updated size.
3616
b49180ac
TT
36172021-01-06 Tom Tromey <tromey@adacore.com>
3618
3619 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3620 Do not cast result.
3621 * valarith.c (fixed_point_binop): Handle multiplication
3622 and division specially.
3623 * valops.c (value_to_gdb_mpq): New function.
3624 (value_cast_to_fixed_point): Use it.
3625
55195361
HD
36262021-01-05 Hannes Domani <ssbssa@yahoo.de>
3627
3628 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3629 Call wnoutrefresh instead of tui_win_info::refresh_window.
3630
1b6d4bb2
HD
36312021-01-05 Hannes Domani <ssbssa@yahoo.de>
3632
3633 * tui/tui-source.c (tui_source_window::show_line_number):
3634 Redraw second space after line number.
3635
b5ff370e
HD
36362021-01-05 Hannes Domani <ssbssa@yahoo.de>
3637
3638 PR tui/26927
3639 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3640 Fix source pad size in prefresh.
3641 (tui_source_window_base::show_source_content): Grow source pad
3642 if necessary.
3643
c68ea49f
MF
36442021-01-04 Mike Frysinger <vapier@gentoo.org>
3645
3646 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3647 (bfin_frame_align): Use align_down.
3648
e4ad960a
TV
36492021-01-04 Tom de Vries <tdevries@suse.de>
3650
3651 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3652 terminators that do not terminate anything.
3653
3ec3145c
SM
36542021-01-04 Simon Marchi <simon.marchi@efficios.com>
3655
3656 * debug.c (debug_print_depth): New.
3657 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3658 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3659 * infrun.c (start_step_over): Use
3660 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3661 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3662 INFRUN_SCOPED_DEBUG_START_END.
3663 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3664
e71daf80
SM
36652021-01-04 Simon Marchi <simon.marchi@efficios.com>
3666
3667 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3668
335709bc
SM
36692021-01-04 Simon Marchi <simon.marchi@efficios.com>
3670
3671 * utils.c (vfprintf_unfiltered): Print timestamp only when
3672 previous debug output ended with a newline.
3673
098caef4
LM
36742021-01-04 Luis Machado <luis.machado@linaro.org>
3675
3676 Update all users of trad_frame_saved_reg to use the new member
3677 functions.
3678
3679 Remote all struct keywords from declarations of trad_frame_saved_reg
3680 types, except on forward declarations.
3681
3682 * aarch64-tdep.c: Update.
3683 * alpha-mdebug-tdep.c: Update.
3684 * alpha-tdep.c: Update.
3685 * arc-tdep.c: Update.
3686 * arm-tdep.c: Update.
3687 * avr-tdep.c: Update.
3688 * cris-tdep.c: Update.
3689 * csky-tdep.c: Update.
3690 * frv-tdep.c: Update.
3691 * hppa-linux-tdep.c: Update.
3692 * hppa-tdep.c: Update.
3693 * hppa-tdep.h: Update.
3694 * lm32-tdep.c: Update.
3695 * m32r-linux-tdep.c: Update.
3696 * m32r-tdep.c: Update.
3697 * m68hc11-tdep.c: Update.
3698 * mips-tdep.c: Update.
3699 * moxie-tdep.c: Update.
3700 * riscv-tdep.c: Update.
3701 * rs6000-tdep.c: Update.
3702 * s390-linux-tdep.c: Update.
3703 * s390-tdep.c: Update.
3704 * score-tdep.c: Update.
3705 * sparc-netbsd-tdep.c: Update.
3706 * sparc-sol2-tdep.c: Update.
3707 * sparc64-fbsd-tdep.c: Update.
3708 * sparc64-netbsd-tdep.c: Update.
3709 * sparc64-obsd-tdep.c: Update.
3710 * sparc64-sol2-tdep.c: Update.
3711 * tilegx-tdep.c: Update.
3712 * v850-tdep.c: Update.
3713 * vax-tdep.c: Update.
3714
3715 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3716 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3717
3718 * trad-frame.c: Update.
3719 Remove TF_REG_* enum.
3720 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3721 a trivially-constructible struct.
3722 (trad_frame_reset_saved_regs): Adjust to use member function.
3723 (trad_frame_value_p): Likewise.
3724 (trad_frame_addr_p): Likewise.
3725 (trad_frame_realreg_p): Likewise.
3726 (trad_frame_value_bytes_p): Likewise.
3727 (trad_frame_set_value): Likewise.
3728 (trad_frame_set_realreg): Likewise.
3729 (trad_frame_set_addr): Likewise.
3730 (trad_frame_set_unknown): Likewise.
3731 (trad_frame_set_value_bytes): Likewise.
3732 (trad_frame_get_prev_register): Likewise.
3733 * trad-frame.h: Update.
3734 (trad_frame_saved_reg_kind): New enum.
3735 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3736 <m_kind, m_reg>: New member fields.
3737 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3738 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3739 <is_addr, is_unknown, is_value_bytes>: New member functions.
3740
9898e882
SM
37412021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3742
3743 * target-float.c: Fix typos.
3744
b66b4e65
HD
37452021-01-02 Hannes Domani <ssbssa@yahoo.de>
3746
3747 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3748
b5b5650a
JB
37492021-01-01 Joel Brobecker <brobecker@adacore.com>
3750
3751 * gdbarch.sh: Update copyright year range.
3752
3666a048
JB
37532021-01-01 Joel Brobecker <brobecker@adacore.com>
3754
3755 Update copyright year range in copyright header of all GDB files.
3756
ff7e39b6
JB
37572021-01-01 Joel Brobecker <brobecker@adacore.com>
3758
3759 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3760 to the list of directories to update.
3761
2b47c078
JB
37622021-01-01 Joel Brobecker <brobecker@adacore.com>
3763
3764 * top.c (print_gdb_version): Update copyright year.
3765
476923f1 37662021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 3767
476923f1 3768 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 3769
476923f1 3770For older changes see ChangeLog-2020.
c906108c
SS
3771\f
3772Local Variables:
3773mode: change-log
3774left-margin: 8
3775fill-column: 74
3776version-control: never
57da7796 3777coding: utf-8
c906108c 3778End:
This page took 3.173722 seconds and 4 git commands to generate.