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