gdb/doc: fix the example for get_set_string in Python API docs
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
763b8efd
AB
12021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * python/py-param.c (get_set_value): Update header comment.
4
f058c521
SM
52021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * infrun.c (check_multi_target_resumption): Remove argument to
8 all_non_exited_inferiors.
9
383228bc
CB
102021-03-16 Christian Biesinger <cbiesinger@google.com>
11
12 * windows-nat.c (windows_init_thread_list): Add message to
13 debug log.
14
7807d76a
AB
152021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
16
17 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
18 well as PyLong_Check for Python 2.
19
675da9a5
TT
202021-03-15 Tom Tromey <tromey@adacore.com>
21
22 PR build/27579:
23 * rust-exp.y (maker_map): Use gdb::hash_enum.
24 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
25
4800761a
SM
262021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
27
28 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
29 end of debug print.
30
eb5dd737
SM
312021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
32
33 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
34 parameter, adjust caller.
35
6813ceb0
TT
362021-03-15 Tom Tromey <tromey@adacore.com>
37
38 * ada-exp.y (simple_exp): Always push a result for unary '+'.
39
3b5c4de0
TT
402021-03-15 Tom Tromey <tromey@adacore.com>
41
42 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
43 ada_ensure_varsize_limit.
44
c04da66c
TT
452021-03-15 Tom Tromey <tromey@adacore.com>
46
47 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
48 fixed-point.
49 * ada-exp.y (maybe_overload): New function.
50 (ada_wrap_overload): New function.
51 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
52 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
53 (or_else_exp, xor_exp, primary): Update.
54
9863c3b5
TT
552021-03-15 Tom Tromey <tromey@adacore.com>
56
57 PR ada/27545:
58 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
59 call for tagged type.
60
1ac74522
TT
612021-03-15 Tom Tromey <tromey@adacore.com>
62
63 * ada-exp.y (exp1): Handle resolution of the right hand side of an
64 assignment.
65
207582c0
TT
662021-03-15 Tom Tromey <tromey@adacore.com>
67
68 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
69 container.
70 (ada_assign_operation::evaluate): Update.
71 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
72 Change return type.
73
8d624a9d
FW
742021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
75
76 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
77
ba6a0ef3
AB
782021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
79
80 * python/python.c (gdbpy_source_objfile_script): Use
81 make_scoped_restore to restore gdbpy_current_objfile.
82 (gdbpy_execute_objfile_script): Likewise.
83
7c290a04
TT
842021-03-14 Tom Tromey <tom@tromey.com>
85
86 * dwarf2/read.c (read_attribute_value): Use cu_header
87 consistently.
88
0280fdcc
TT
892021-03-14 Tom Tromey <tom@tromey.com>
90
91 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
92 (peek_die_abbrev): Use reader.abfd.
93
a9f172c6
TT
942021-03-14 Tom Tromey <tom@tromey.com>
95
96 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
97 m_header_read_in.
98
7c32eebb
TT
992021-03-13 Tom Tromey <tom@tromey.com>
100
101 * dwarf2/read.c (struct partial_die_info): Update.
102 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
103 (load_partial_dies, partial_die_info::partial_die_info): Update.
104 * dwarf2/abbrev.h (lookup_abbrev): Constify.
105
27012aba
TT
1062021-03-13 Tom Tromey <tom@tromey.com>
107
108 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
109
fece451c
CB
1102021-03-12 Christian Biesinger <cbiesinger@google.com>
111
112 PR threads/27239
113 * cp-support.c: Use scoped_segv_handler_restore.
114 * event-top.c (thread_local_segv_handler): Made static.
115 (scoped_segv_handler_restore::scoped_segv_handler_restore):
116 New function.
117 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
118 function.
119 * event-top.h (class scoped_segv_handler_restore): New class.
120 (thread_local_segv_handler): Removed.
121
7056f312
TT
1222021-03-10 Tom Tromey <tromey@adacore.com>
123
124 * parser-defs.h (parser_state): Change completion to bool.
125 <parse_completion>: Likewise.
126 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
127 (ada_resolve_variable, ada_resolve_function): Update.
128 * ada-lang.c (ada_find_operator_symbol): Change
129 parse_completion to bool.
130 (ada_resolve_funcall, ada_resolve_variable)
131 (ada_resolve_function): Likewise.
132
ccdc02ed
TT
1332021-03-09 Tom Tromey <tromey@adacore.com>
134
135 * eval.c (operation::evaluate_funcall): Use function formal
136 parameter types when evaluating.
137
fbb1aace
AB
1382021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
139
140 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
141 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
142 and owner to m_owner.
143
611aa09d
FW
1442021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
145
146 * f-exp.h (eval_op_f_loc): Declare.
147 (expr::fortran_loc_operation): New typedef.
148 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
149 UNOP_INTRINSIC.
150 (f77_keywords): Add LOC keyword.
151 * f-lang.c (eval_op_f_loc): New function.
152 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
153
eef32f59
AB
1542021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
155
156 * f-exp.h (eval_op_f_array_shape): Declare.
157 (fortran_array_shape_operation): New type.
158 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
159 UNOP_INTRINSIC.
160 (f77_keywords): Add "shape" keyword.
161 * f-lang.c (fortran_array_shape): New function.
162 (eval_op_f_array_shape): New function.
163 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
164
7ba155b3
AB
1652021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
166
167 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
168 of this function.
169 (expr::fortran_array_size_1arg): New type.
170 (expr::fortran_array_size_2arg): Likewise.
171 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
172 UNOP_OR_BINOP_INTRINSIC.
173 (f77_keywords): Add "size" keyword.
174 * f-lang.c (fortran_array_size): New function.
175 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
176 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
177
e14816a8
AB
1782021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
179
180 * f-exp.h (eval_op_f_rank): Declare.
181 (expr::fortran_rank_operation): New typedef.
182 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
183 UNOP_INTRINSIC.
184 (f77_keywords): Add "rank" keyword.
185 * f-lang.c (eval_op_f_rank): New function.
186 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
187
3dd93bf8
TT
1882021-03-08 Tom Tromey <tom@tromey.com>
189
190 * printcmd.c (set_command): Remove null check.
191 * value.c (init_if_undefined_command): Remove null check.
192
9c79936b
TT
1932021-03-08 Tom Tromey <tom@tromey.com>
194
195 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
196 Update.
197 * p-exp.y (variable): Update.
198 * go-exp.y (variable): Update.
199 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
200 Remove overload for objfile.
201 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
202 parameter.
203 (check_objfile): Likewise.
204 (dump_for_expression): Likewise. Remove overload for objfile.
205 (class var_msym_value_operation): Use bound_minimal_symbol.
206 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
207 parameter.
208 (var_msym_value_operation::evaluate_for_address)
209 (var_msym_value_operation::evaluate_for_sizeof)
210 (var_msym_value_operation::evaluate_for_cast): Update.
211 * d-exp.y (PrimaryExpression): Update.
212 * c-exp.y (variable): Update.
213 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
214 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
215 Update.
216 * ada-exp.y (write_var_or_type): Update.
217
40d07d07
TT
2182021-03-08 Tom Tromey <tom@tromey.com>
219
220 * parser-defs.h (exp_uses_objfile): Return bool.
221 * parse.c (exp_uses_objfile): Return bool.
222
0b2b0b82
TT
2232021-03-08 Tom Tromey <tom@tromey.com>
224
225 * value.h (eval_skip_value): Don't declare.
226 * opencl-lang.c (eval_opencl_assign): Update.
227 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
228 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
229 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
230 * expression.h (enum noside) <EVAL_SKIP>: Remove.
231 * expop.h (typeof_operation::evaluate)
232 (decltype_operation::evaluate, unop_addr_operation::evaluate)
233 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
234 (cxx_cast_operation::evaluate): Update.
235 * eval.c (eval_skip_value): Remove.
236 (eval_op_scope, eval_op_var_entry_value)
237 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
238 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
239 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
240 (eval_op_binary, eval_op_subscript, eval_op_equal)
241 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
242 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
243 (eval_op_complement, eval_op_lognot, eval_op_ind)
244 (eval_op_memval, eval_op_preinc, eval_op_predec)
245 (eval_op_postinc, eval_op_postdec, eval_op_type)
246 (eval_binop_assign_modify, eval_op_objc_msgcall)
247 (eval_multi_subscript, logical_and_operation::evaluate)
248 (logical_or_operation::evaluate, array_operation::evaluate)
249 (operation::evaluate_for_cast)
250 (var_msym_value_operation::evaluate_for_cast)
251 (var_value_operation::evaluate_for_cast): Update.
252 * c-lang.c (c_string_operation::evaluate): Update.
253 * c-exp.h (objc_nsstring_operation::evaluate)
254 (objc_selector_operation::evaluate): Update.
255 * ada-lang.c (ada_assign_operation::evaluate)
256 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
257 (ada_atr_size): Update.
258
96db551d
TT
2592021-03-08 Tom Tromey <tom@tromey.com>
260
261 * eval.c: Merge "namespace" scopes.
262
ce284361
TT
2632021-03-08 Tom Tromey <tom@tromey.com>
264
265 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
266 <release>: Inline.
267 * parse.c (expr_builder::expr_builder, expr_builder::release):
268 Remove.
269
b9d06571
TT
2702021-03-08 Tom Tromey <tom@tromey.com>
271
272 * parse.c (expression::expression, expression::~expression):
273 Remove.
274 * expression.h (struct expression): Inline constructor. Remove
275 destructor.
276
79ab486e
TT
2772021-03-08 Tom Tromey <tom@tromey.com>
278
279 * std-operator.def (BINOP_END): Remove.
280 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
281 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
282 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
283 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
284 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
285 BINOP_END.
286
48fa6f23
TT
2872021-03-08 Tom Tromey <tom@tromey.com>
288
289 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
290
43f542e3
TT
2912021-03-08 Tom Tromey <tom@tromey.com>
292
293 * std-operator.def (OP_EXTENDED0): Remove.
294
5d9ba982
TT
2952021-03-08 Tom Tromey <tom@tromey.com>
296
297 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
298 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
299 Remove.
300
d357570d
TT
3012021-03-08 Tom Tromey <tom@tromey.com>
302
303 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
304 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
305
0922dc84
TT
3062021-03-08 Tom Tromey <tom@tromey.com>
307
308 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
309 * ada-lang.c (ada_binop_minmax): Update.
310 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
311 Use BINOP_MIN and BINOP_MAX.
312
1eaebe02
TT
3132021-03-08 Tom Tromey <tom@tromey.com>
314
315 * value.h (evaluate_subexp_with_coercion): Don't declare.
316 * parse.c (exp_descriptor_standard): Remove.
317 (expr_builder::expr_builder, expr_builder::release): Update.
318 (expression::expression): Remove size_t parameter.
319 (expression::~expression): Simplify.
320 (expression::resize): Remove.
321 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
322 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
323 (write_exp_elt_longcst, write_exp_elt_floatcst)
324 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
325 (write_exp_string_vector, write_exp_bitstring): Remove.
326 * p-lang.h (class pascal_language) <opcode_print_table,
327 op_print_tab>: Remove.
328 * p-lang.c (pascal_language::op_print_tab): Remove.
329 * opencl-lang.c (class opencl_language) <opcode_print_table>:
330 Remove.
331 * objc-lang.c (objc_op_print_tab): Remove.
332 (class objc_language) <opcode_print_table>: Remove.
333 * m2-lang.h (class m2_language) <opcode_print_table,
334 op_print_tab>: Remove.
335 * m2-lang.c (m2_language::op_print_tab): Remove.
336 * language.h (struct language_defn) <post_parser, expression_ops,
337 opcode_print_table>: Remove.
338 * language.c (language_defn::expression_ops)
339 (auto_or_unknown_language::opcode_print_table): Remove.
340 * go-lang.h (class go_language) <opcode_print_table,
341 op_print_tab>: Remove.
342 * go-lang.c (go_language::op_print_tab): Remove.
343 * f-lang.h (class f_language) <opcode_print_table>: Remove
344 <op_print_tab>: Remove.
345 * f-lang.c (f_language::op_print_tab): Remove.
346 * expression.h (union exp_element): Remove.
347 (struct expression): Remove size_t parameter from constructor.
348 <resize>: Remove.
349 <first_opcode>: Update.
350 <nelts, elts>: Remove.
351 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
352 (evaluate_subexp_standard, print_expression, op_string)
353 (dump_raw_expression): Don't declare.
354 * expprint.c (print_expression, print_subexp)
355 (print_subexp_funcall, print_subexp_standard, op_string)
356 (dump_raw_expression, dump_subexp, dump_subexp_body)
357 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
358 (dump_prefix_expression): Update.
359 * eval.c (evaluate_subexp): Remove.
360 (evaluate_expression, evaluate_type): Update.
361 (evaluate_subexpression_type): Remove.
362 (fetch_subexp_value): Remove "pc" parameter. Update.
363 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
364 (evaluate_subexp_standard, evaluate_subexp_for_address)
365 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
366 (evaluate_subexp_for_cast): Remove.
367 (parse_and_eval_type): Update.
368 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
369 * d-lang.c (d_op_print_tab): Remove.
370 (class d_language) <opcode_print_table>: Remove.
371 * c-lang.h (c_op_print_tab): Don't declare.
372 * c-lang.c (c_op_print_tab): Remove.
373 (class c_language, class cplus_language, class asm_language, class
374 minimal_language) <opcode_print_table>: Remove.
375 * breakpoint.c (update_watchpoint, watchpoint_check)
376 (watchpoint_exp_is_const, watch_command_1): Update.
377 * ax-gdb.h (union exp_element): Don't declare.
378 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
379 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
380 (gen_expr_binop_rest): Remove.
381 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
382 * ada-lang.c (ada_op_print_tab): Remove.
383 (class ada_language) <post_parser, opcode_print_table>: Remove.
384
f2a98603
TT
3852021-03-08 Tom Tromey <tom@tromey.com>
386
387 * go-lang.c (go_language::expression_ops): Don't declare.
388 * go-lang.h (class go_language) <expression_ops>: Remove.
389 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
390 Remove.
391 (class opencl_language) <expression_ops>: Remove.
392 * d-lang.c (class d_language) <expression_ops>: Remove.
393 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
394 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
395 (class c_language, class cplus_language, class asm_language)
396 (class minimal_language) <expression_ops>: Remove.
397
d3c54a1c
TT
3982021-03-08 Tom Tromey <tom@tromey.com>
399
400 * ada-lang.c (resolve_subexp, replace_operator_with_call)
401 (evaluate_subexp_type, assign_aggregate)
402 (aggregate_assign_positional, aggregate_assign_from_choices)
403 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
404 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
405 (ada_operator_check, ada_forward_operator_length)
406 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
407 Remove.
408 (post_parser): Update.
409 (class ada_language) <expresssion_ops>: Remove.
410
5871f0a3
TT
4112021-03-08 Tom Tromey <tom@tromey.com>
412
413 * m2-lang.h (class m2_language) <expresssion_ops,
414 exp_descriptor_modula2>: Remove.
415 * m2-lang.c (evaluate_subexp_modula2)
416 (m2_language::exp_descriptor_modula2): Remove.
417
a99be8c1
TT
4182021-03-08 Tom Tromey <tom@tromey.com>
419
420 * f-lang.h (class f_language) <expresssion_ops>: Remove.
421 <exp_descriptor_tab>: Remove.
422 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
423 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
424 (print_subexp_f, dump_subexp_body_f, operator_check_f)
425 (f_language::exp_descriptor_tab, fortran_prepare_argument):
426 Remove.
427
aa1da9ed
TT
4282021-03-08 Tom Tromey <tom@tromey.com>
429
430 * rust-lang.h (class rust_language) <expression_ops,
431 exp_descriptor_tab>: Remove.
432 * rust-lang.c (rust_evaluate_funcall): Remove.
433 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
434 EVAL_SKIP.
435 (rust_evaluate_subexp): Remove.
436 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
437 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
438 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
439
08a057e6
TT
4402021-03-08 Tom Tromey <tom@tromey.com>
441
442 * ada-exp.y: Create operations.
443 (empty_stoken): Remove.
444 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
445 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
446 (components): New global.
447 (push_component, choice_component, pop_component, pop_components):
448 New functions.
449 (associations): New global
450 (push_association, pop_association, pop_associations): New
451 functions.
452 (ada_parse): Update.
453 (write_var_from_sym, write_int): Create operations.
454 (write_exp_op_with_string): Remove.
455 (write_object_renaming, write_selectors, write_ambiguous_var)
456 (write_var_or_type, write_name_assoc): Create operations.
457 * ada-lang.h (ada_index_type): Declare.
458 * ada-lang.c (ada_index_type): No longer static.
459
d308ba78
TT
4602021-03-08 Tom Tromey <tom@tromey.com>
461
462 * f-exp.y: Create operations.
463 (f_language::parser): Update.
464
f1b8ceef
TT
4652021-03-08 Tom Tromey <tom@tromey.com>
466
467 * m2-exp.y: Create operations.
468 (m2_language::parser): Update.
469
3163898e
TT
4702021-03-08 Tom Tromey <tom@tromey.com>
471
472 * p-exp.y: Create operations.
473 (pascal_language::parser): Update.
474
9412fdcc
TT
4752021-03-08 Tom Tromey <tom@tromey.com>
476
477 * d-exp.y: Create operations.
478 (d_parse): Update.
479
bb4e0574
TT
4802021-03-08 Tom Tromey <tom@tromey.com>
481
482 * go-exp.y: Create operations.
483 (go_language::parser): Update.
484
d182f279
TT
4852021-03-08 Tom Tromey <tom@tromey.com>
486
487 * objc-lang.c (end_msglist): Create operations.
488 * c-exp.y: Change parser to create operations.
489 (write_destructor_name): Remove.
490 (c_parse): Update.
491
c1299a23
TT
4922021-03-08 Tom Tromey <tom@tromey.com>
493
494 * rust-exp.y: Create operations.
495 (rust_parser::convert_params_to_expression): Change return type.
496 (binop_maker_ftype): New typedef.
497 (maker_map): New global.
498 (rust_parser::convert_ast_to_expression): Change return type.
499 (rust_language::parser): Update.
500 (_initialize_rust_exp): Initialize maker_map.
501
4c5e7a93
TT
5022021-03-08 Tom Tromey <tom@tromey.com>
503
504 * stap-probe.c (binop_maker_ftype): New typedef.
505 (stap_maker_map): New global.
506 (stap_make_binop): New function.
507 (stap_parse_register_operand): Return operation_up.
508 (stap_parse_single_operand, stap_parse_argument_conditionally)
509 (stap_parse_argument_1): Likewise.
510 (stap_parse_argument): Create operations.
511 (stap_probe::parse_arguments): Update.
512 (_initialize_stap_probe): Initialize stap_maker_map.
513 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
514 type.
515 * i386-tdep.h (i386_stap_parse_special_token): Change return
516 type.
517 * i386-tdep.c (i386_stap_parse_special_token_triplet)
518 (i386_stap_parse_special_token_three_arg_disp)
519 (i386_stap_parse_special_token): Change return type.
520 * gdbarch.sh (stap_parse_special_token): Change return type.
521 * gdbarch.c: Rebuild.
522 * gdbarch.h: Rebuild.
523 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
524 type.
525 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
526 return type.
527
482ddd69
TT
5282021-03-08 Tom Tromey <tom@tromey.com>
529
530 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
531 * gdbarch.h: Rebuild.
532 * gdbarch.c: Rebuild.
533 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
534 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
535 return type.
536 (amd64_dtrace_parse_probe_argument): Update.
537
8227d9e2
TT
5382021-03-08 Tom Tromey <tom@tromey.com>
539
540 * parser-defs.h (struct parser_state) <push, push_new,
541 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
542 wrap2>: New methods.
543 <m_operations>: New member.
544 * parse.c (parser_state::push_c_string)
545 (parser_state::push_symbol, parser_state::push_dollar): New
546 methods.
547
4933522d
TT
5482021-03-08 Tom Tromey <tom@tromey.com>
549
550 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
551 New member.
552 (struct parser_state) <mark_struct_expression>: New method.
553 * parse.c (parser_state::mark_struct_expression): Update assert.
554 (parser_state::mark_struct_expression): New method.
555 (parser_state::mark_completion_tag): Update assert.
556 (parse_expression_for_completion): Handle expout_last_op.
557
413403fc
TT
5582021-03-08 Tom Tromey <tom@tromey.com>
559
560 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
561 now in superclass.
562 * value.h (fetch_subexp_value): Add "op" parameter.
563 * value.c (init_if_undefined_command): Update.
564 * tracepoint.c (validate_actionline, encode_actions_1): Update.
565 * stap-probe.c (stap_probe::compile_to_ax): Update.
566 * printcmd.c (set_command): Update.
567 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
568 Update.
569 * parser-defs.h (struct expr_builder) <set_operation>: New
570 method.
571 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
572 * expression.h (struct expression) <first_opcode>: Update.
573 <op>: New member.
574 * expprint.c (dump_raw_expression, dump_prefix_expression):
575 Update.
576 * expop.h (class var_value_operation) <get_symbol>: New method.
577 (class register_operation) <get_name>: New method.
578 (class equal_operation): No longer a typedef, now a subclass.
579 (class unop_memval_operation) <get_type>: New method.
580 (class assign_operation) <get_lhs>: New method.
581 (class unop_cast_operation) <get_type>: New method.
582 * eval.c (evaluate_expression, evaluate_type)
583 (evaluate_subexpression_type): Update.
584 (fetch_subexp_value): Add "op" parameter.
585 (parse_and_eval_type): Update.
586 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
587 * breakpoint.c (update_watchpoint, watchpoint_check)
588 (watchpoint_exp_is_const, watch_command_1): Update.
589 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
590 Update.
591
b0f9164c
TT
5922021-03-08 Tom Tromey <tom@tromey.com>
593
594 * ada-lang.c (ada_value_binop): Do not use op_string.
595
a88c4354
TT
5962021-03-08 Tom Tromey <tom@tromey.com>
597
598 * expprint.c (dump_for_expression): New overload.
599 * expop.h (check_objfile, dump_for_expression): Declare new
600 overloads.
601 * ada-lang.c (check_objfile): New overload.
602 (assign_component, ada_aggregate_component::uses_objfile)
603 (ada_aggregate_component::dump, ada_aggregate_component::assign)
604 (ada_aggregate_component::assign_aggregate)
605 (ada_positional_component::uses_objfile)
606 (ada_positional_component::dump, ada_positional_component::assign)
607 (ada_discrete_range_association::uses_objfile)
608 (ada_discrete_range_association::dump)
609 (ada_discrete_range_association::assign)
610 (ada_name_association::uses_objfile, ada_name_association::dump)
611 (ada_name_association::assign)
612 (ada_choices_component::uses_objfile, ada_choices_component::dump)
613 (ada_choices_component::assign)
614 (ada_others_component::uses_objfile, ada_others_component::dump)
615 (ada_others_component::assign, ada_assign_operation::evaluate):
616 New methods.
617 * ada-exp.h (ada_string_operation) <get_name>: New method.
618 (class ada_assign_operation): New.
619 (class ada_component): New.
620 (ada_component_up): New typedef.
621 (class ada_aggregate_operation, class ada_aggregate_component)
622 (class ada_positional_component, class ada_others_component)
623 (class ada_association): New.
624 (ada_association_up): New typedef.
625 (class ada_choices_component)
626 (class ada_discrete_range_association)
627 (class ada_name_association): New.
628
d8a4ed8a
TT
6292021-03-08 Tom Tromey <tom@tromey.com>
630
631 * ada-lang.c (ada_var_value_operation::resolve)
632 (ada_funcall_operation::resolve)
633 (ada_ternop_slice_operation::resolve): New methods.
634 * ada-exp.h (struct ada_resolvable): New.
635 (class ada_var_value_operation): Derive from ada_resolvable.
636 <get_block, resolve>: New methods.
637 (class ada_funcall_operation): Derive from ada_resolvable.
638 <resolve>: New method.
639 (class ada_ternop_slice_operation): Derive from ada_resolvable.
640 <resolve>: New method.
641
efe3af2f
TT
6422021-03-08 Tom Tromey <tom@tromey.com>
643
644 * ada-lang.c (ada_funcall_operation::evaluate): New method.
645 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
646 method.
647 (class ada_funcall_operation): New.
648
ebc06ad8
TT
6492021-03-08 Tom Tromey <tom@tromey.com>
650
651 * ada-lang.c (ada_structop_operation::evaluate): New method.
652 * ada-exp.h (class ada_structop_operation): New.
653
e8c33fa1
TT
6542021-03-08 Tom Tromey <tom@tromey.com>
655
656 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
657 * ada-exp.h (class ada_unop_ind_operation): New.
658
065ec826
TT
6592021-03-08 Tom Tromey <tom@tromey.com>
660
661 * ada-lang.c (ada_binop_exp): No longer static.
662 * ada-exp.h (ada_binop_exp_operation): New typedef.
663
9e99f48f
TT
6642021-03-08 Tom Tromey <tom@tromey.com>
665
666 * ada-lang.c (ada_val_atr): No longer static.
667 (ada_atr_val_operation::evaluate): New method.
668 * ada-exp.h (class ada_atr_val_operation): New.
669
7631cf6c
TT
6702021-03-08 Tom Tromey <tom@tromey.com>
671
672 * ada-lang.c (ada_pos_atr): No longer static.
673 * ada-exp.h (ada_pos_operation): New typedef.
674
7992accc
TT
6752021-03-08 Tom Tromey <tom@tromey.com>
676
677 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
678 parameters.
679 (ada_evaluate_subexp): Use it.
680
6ad3b8bf
TT
6812021-03-08 Tom Tromey <tom@tromey.com>
682
683 * ada-lang.c (ada_binop_minmax): No longer static.
684 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
685 New typedefs.
686
3f4a0053
TT
6872021-03-08 Tom Tromey <tom@tromey.com>
688
689 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
690 New method.
691 * ada-exp.h (class ada_var_msym_value_operation): New.
692
99a3b1e7
TT
6932021-03-08 Tom Tromey <tom@tromey.com>
694
695 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
696 (ada_var_value_operation::evaluate): New methods.
697 * ada-exp.h (class ada_var_value_operation): New.
698
60fa02ca
TT
6992021-03-08 Tom Tromey <tom@tromey.com>
700
701 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
702 * ada-exp.h (class ada_unop_atr_operation): New.
703
82c3886e
TT
7042021-03-08 Tom Tromey <tom@tromey.com>
705
706 * ada-lang.c (ada_binop_in_bounds): No longer static.
707 * ada-exp.h (class ada_binop_in_bounds_operation): New.
708
1b1ebfab
TT
7092021-03-08 Tom Tromey <tom@tromey.com>
710
711 * ada-lang.c (ada_ternop_slice): No longer static.
712 * ada-exp.h (class ada_ternop_slice_operation): New.
713
039e4b76
TT
7142021-03-08 Tom Tromey <tom@tromey.com>
715
716 * ada-exp.h (ada_bitwise_operation): New template class.
717 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
718 (ada_bitwise_xor_operation): New typedefs.
719
6e8fb7b7
TT
7202021-03-08 Tom Tromey <tom@tromey.com>
721
722 * ada-lang.c (ada_equal_binop): No longer static.
723 * ada-exp.h (class ada_binop_equal_operation): New.
724
d9e7db06
TT
7252021-03-08 Tom Tromey <tom@tromey.com>
726
727 * ada-lang.c (ada_mult_binop): No longer static.
728 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
729 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
730
73796c73
TT
7312021-03-08 Tom Tromey <tom@tromey.com>
732
733 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
734 * ada-exp.h (class ada_binop_addsub_operation): New.
735
cd9a3148
TT
7362021-03-08 Tom Tromey <tom@tromey.com>
737
738 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
739 (ada_resolve_variable): Declare.
740 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
741 (ada_resolve_variable): New functions.
742 (resolve_subexp): Update.
743
cf12b17f
TT
7442021-03-08 Tom Tromey <tom@tromey.com>
745
746 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
747 method.
748 * c-exp.h (class opencl_ternop_cond_operation): New.
749
944fd3b8
TT
7502021-03-08 Tom Tromey <tom@tromey.com>
751
752 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
753 method.
754 * c-exp.h (class opencl_logical_binop_operation): New.
755
33b79214
TT
7562021-03-08 Tom Tromey <tom@tromey.com>
757
758 * opencl-lang.c (opencl_structop_operation::evaluate): New
759 method.
760 * c-exp.h (class opencl_structop_operation): New.
761
2492ba36
TT
7622021-03-08 Tom Tromey <tom@tromey.com>
763
764 * opencl-lang.c (opencl_logical_not): No longer static. Change
765 parameters.
766 (evaluate_subexp_opencl): Update.
767 * c-exp.h (opencl_notequal_operation): New typedef.
768
a88c3c8d
TT
7692021-03-08 Tom Tromey <tom@tromey.com>
770
771 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
772 static. Change parameters.
773 (eval_opencl_assign): No longer static. Add "op" parameter.
774 (evaluate_subexp_opencl): Update.
775 * c-exp.h (opencl_binop_operation): New template class.
776 (opencl_assign_operation, opencl_equal_operation)
777 (opencl_notequal_operation, opencl_less_operation)
778 (opencl_gtr_operation, opencl_geq_operation)
779 (opencl_leq_operation): New typedefs.
780
e9677704
TT
7812021-03-08 Tom Tromey <tom@tromey.com>
782
783 * opencl-lang.c (opencl_value_cast): No longer static.
784 * c-exp.h (opencl_cast_type_operation): New typedef.
785
f403a4e4
TT
7862021-03-08 Tom Tromey <tom@tromey.com>
787
788 * f-exp.h (eval_op_f_allocated): Declare.
789 (fortran_allocated_operation): New typedef.
790 * f-lang.c (eval_op_f_allocated): No longer static.
791
eb4c9271
TT
7922021-03-08 Tom Tromey <tom@tromey.com>
793
794 * f-lang.c (eval_op_f_associated): New functions.
795 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
796 typedefs.
797
58a76c72
TT
7982021-03-08 Tom Tromey <tom@tromey.com>
799
800 * f-lang.c (fortran_bound_1arg::evaluate)
801 (fortran_bound_2arg::evaluate): New methods.
802 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
803 New.
804
2f98abe1
TT
8052021-03-08 Tom Tromey <tom@tromey.com>
806
807 * expop.h (class unop_addr_operation) <get_expression>: New
808 method.
809 * f-lang.c (fortran_undetermined::value_subarray)
810 (fortran_undetermined::evaluate): New methods.
811 (fortran_prepare_argument): New overload.
812 * f-exp.h (class fortran_range_operation)
813 (class fortran_undetermined): New classes.
814
638fd74a
TT
8152021-03-08 Tom Tromey <tom@tromey.com>
816
817 * rust-lang.c (rust_structop::evaluate_funcall): New method.
818 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
819 method.
820
a00b7254
TT
8212021-03-08 Tom Tromey <tom@tromey.com>
822
823 * expression.h (class operation) <evaluate_funcall>: New methods.
824 * expop.h (class scope_operation) <evaluate_funcall>: New method.
825 (class var_value_operation) <evaluate_funcall>: New method.
826 (class structop_base_operation) <evaluate_funcall>: New method.
827 (class var_msym_value_operation) <evaluate_funcall>: New method.
828 (class structop_member_base): New class.
829 (class structop_member_operation): Derive from
830 structop_member_base.
831 (class structop_mptr_operation): Derive from
832 structop_member_base.
833 (class funcall_operation): New class.
834 * eval.c (operation::evaluate_funcall)
835 (var_value_operation::evaluate_funcall)
836 (scope_operation::evaluate_funcall)
837 (structop_member_base::evaluate_funcall)
838 (structop_base_operation::evaluate_funcall): New methods.
839
1c02eb30
TT
8402021-03-08 Tom Tromey <tom@tromey.com>
841
842 * expop.h (class array_operation): New.
843 * eval.c (array_operation::evaluate_struct_tuple)
844 (array_operation::evaluate): New methods.
845
e4479080
TT
8462021-03-08 Tom Tromey <tom@tromey.com>
847
848 * expop.h (class adl_func_operation): New.
849 * eval.c (adl_func_operation::evaluate): New method.
850
95d49dfb
TT
8512021-03-08 Tom Tromey <tom@tromey.com>
852
853 * ada-lang.c (ada_unop_in_range): No longer static.
854 * ada-exp.h (class ada_unop_range_operation): New.
855
7c15d377
TT
8562021-03-08 Tom Tromey <tom@tromey.com>
857
858 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
859 No longer static.
860 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
861 (ada_atr_size_operation, ada_abs_operation): New typedefs.
862
5019124b
TT
8632021-03-08 Tom Tromey <tom@tromey.com>
864
865 * expop.h (class logical_and_operation)
866 (class logical_or_operation): New.
867 * eval.c (logical_and_operation::evaluate)
868 (logical_or_operation::evaluate): New methods.
869 * ax-gdb.c (logical_and_operation::do_generate_ax)
870 (logical_or_operation::do_generate_ax): New methods.
871
2bc9b40c
TT
8722021-03-08 Tom Tromey <tom@tromey.com>
873
874 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
875 static.
876 * m2-exp.h: New file.
877
5947d337
TT
8782021-03-08 Tom Tromey <tom@tromey.com>
879
880 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
881 * rust-exp.h (class rust_aggregate_operation): New.
882
e4407a20
TT
8832021-03-08 Tom Tromey <tom@tromey.com>
884
885 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
886 No longer static.
887 * rust-exp.h (class rust_struct_anon): New.
888 (class rust_structop): New.
889
9db6b6dd
TT
8902021-03-08 Tom Tromey <tom@tromey.com>
891
892 * rust-lang.c (rust_range): No longer static.
893 * rust-exp.h (class rust_range_operation): New.
894
6ce1ad67
TT
8952021-03-08 Tom Tromey <tom@tromey.com>
896
897 * rust-lang.c (rust_subscript): No longer static.
898 * rust-exp.h (class rust_subscript_operation): New.
899
11dd3dce
TT
9002021-03-08 Tom Tromey <tom@tromey.com>
901
902 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
903 parameter.
904 (rust_evaluate_subexp): Update.
905 * rust-exp.h (class rust_unop_ind_operation): New.
906
6fab4359
TT
9072021-03-08 Tom Tromey <tom@tromey.com>
908
909 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
910 longer static. Add "opcode" parameter.
911 (rust_evaluate_subexp): Update.
912 * rust-exp.h: New file.
913
9dcd3e29
TT
9142021-03-08 Tom Tromey <tom@tromey.com>
915
916 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
917 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
918 (eval_op_f_kind): No longer static. Add "opcode" parameter.
919 (evaluate_subexp_f): Update.
920 * f-exp.h: New file.
921
fc715eb2
TT
9222021-03-08 Tom Tromey <tom@tromey.com>
923
924 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
925 * ada-exp.h (class ada_ternop_range_operation): New.
926
cc6bd32e
TT
9272021-03-08 Tom Tromey <tom@tromey.com>
928
929 * ada-lang.c (ada_qual_operation::evaluate): New method.
930 * ada-exp.h (class ada_qual_operation): New.
931
42fecb61
TT
9322021-03-08 Tom Tromey <tom@tromey.com>
933
934 * ada-lang.c (ada_string_operation::evaluate): New method.
935 * ada-exp.h (class ada_string_operation): New.
936
03070ee9
TT
9372021-03-08 Tom Tromey <tom@tromey.com>
938
939 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
940 * ada-exp.h: New file.
941
821e72d7
TT
9422021-03-08 Tom Tromey <tom@tromey.com>
943
944 * expop.h (class multi_subscript_operation): New.
945 * eval.c (multi_subscript_operation::evaluate): New method.
946
085734dd
TT
9472021-03-08 Tom Tromey <tom@tromey.com>
948
949 * eval.c (objc_msgcall_operation::evaluate): New method.
950 * c-exp.h (class objc_msgcall_operation): New.
951
e82a5afc
TT
9522021-03-08 Tom Tromey <tom@tromey.com>
953
954 * expop.h (class var_value_operation): New.
955 * eval.c (var_value_operation::evaluate)
956 (var_value_operation::evaluate_for_address)
957 (var_value_operation::evaluate_with_coercion)
958 (var_value_operation::evaluate_for_sizeof)
959 (var_value_operation::evaluate_for_cast): New methods.
960 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
961
d9ad79d8
TT
9622021-03-08 Tom Tromey <tom@tromey.com>
963
964 * expop.h (cxx_cast_ftype): New typedef.
965 (cxx_cast_operation): New template.
966 (dynamic_cast_operation, reinterpret_cast_operation): New
967 typedefs.
968
292382f4
TT
9692021-03-08 Tom Tromey <tom@tromey.com>
970
971 * expop.h (class unop_cast_type_operation): New.
972 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
973 method.
974
165a813a
TT
9752021-03-08 Tom Tromey <tom@tromey.com>
976
977 * expop.h (class unop_cast_operation): New.
978 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
979
e5946e16
TT
9802021-03-08 Tom Tromey <tom@tromey.com>
981
982 * expop.h (class assign_modify_operation): New.
983 * eval.c (eval_binop_assign_modify): No longer static.
984 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
985
40786782
TT
9862021-03-08 Tom Tromey <tom@tromey.com>
987
988 * expop.h (class assign_operation): New.
989 * ax-gdb.c (assign_operation::do_generate_ax): New method.
990
44b675c8
TT
9912021-03-08 Tom Tromey <tom@tromey.com>
992
993 * expop.h (class type_instance_operation): New.
994 * eval.c (type_instance_operation::evaluate): New method.
995
f6b42326
TT
9962021-03-08 Tom Tromey <tom@tromey.com>
997
998 * expop.h (class op_this_operation): New.
999 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1000
cbc18219
TT
10012021-03-08 Tom Tromey <tom@tromey.com>
1002
1003 * expop.h (class unop_memval_operation)
1004 (class unop_memval_type_operation): New.
1005 * eval.c (eval_op_memval): No longer static.
1006 (unop_memval_operation::evaluate_for_address)
1007 (unop_memval_type_operation::evaluate_for_address)
1008 (unop_memval_operation::evaluate_for_sizeof)
1009 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1010 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1011 (unop_memval_type_operation::do_generate_ax): New methods.
1012
ae4bb61e
TT
10132021-03-08 Tom Tromey <tom@tromey.com>
1014
1015 * expop.h (class unop_alignof_operation): New.
1016 * eval.c (eval_op_alignof): No longer static.
1017
85d23bda
TT
10182021-03-08 Tom Tromey <tom@tromey.com>
1019
1020 * expop.h (class unop_sizeof_operation): New.
1021 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1022
14aff815
TT
10232021-03-08 Tom Tromey <tom@tromey.com>
1024
1025 * expop.h (class unop_addr_operation): New.
1026 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1027
929f3aa7
TT
10282021-03-08 Tom Tromey <tom@tromey.com>
1029
1030 * expop.h (class typeid_operation): New.
1031
0af8829e
TT
10322021-03-08 Tom Tromey <tom@tromey.com>
1033
1034 * expop.h (class decltype_operation): New.
1035
4efc574c
TT
10362021-03-08 Tom Tromey <tom@tromey.com>
1037
1038 * expop.h (class typeof_operation): New.
1039
5b5f5140
TT
10402021-03-08 Tom Tromey <tom@tromey.com>
1041
1042 * expop.h (class type_operation): New.
1043 * eval.c (eval_op_type): No longer static.
1044
876469ff
TT
10452021-03-08 Tom Tromey <tom@tromey.com>
1046
1047 * expop.h (class unop_ind_base_operation)
1048 (class unop_ind_operation): New.
1049 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1050 (unop_ind_base_operation::evaluate_for_address)
1051 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1052 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1053
6d89e296
TT
10542021-03-08 Tom Tromey <tom@tromey.com>
1055
1056 * expop.h (unop_incr_operation): New template.
1057 (preinc_operation, predec_operation, postinc_operation)
1058 (postdec_operation): New typedefs.
1059 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1060 (eval_op_postdec): No longer static.
1061
9307d17b
TT
10622021-03-08 Tom Tromey <tom@tromey.com>
1063
1064 * expop.h (unary_ftype): New typedef.
1065 (unop_operation, usual_ax_binop_operation): New templates.
1066 (unary_plus_operation, unary_neg_operation)
1067 (unary_complement_operation, unary_logical_not_operation): New
1068 typedefs.
1069 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1070 (eval_op_lognot): No longer static.
1071 * ax-gdb.c (gen_expr_unop): New function.
1072
ae64ba58
TT
10732021-03-08 Tom Tromey <tom@tromey.com>
1074
1075 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1076
d4eff4c1
TT
10772021-03-08 Tom Tromey <tom@tromey.com>
1078
1079 * expop.h (class repeat_operation): New.
1080 * eval.c (eval_op_repeat): No longer static. Remove "op"
1081 parameter.
1082 (evaluate_subexp_standard): Update.
1083 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1084
46916f2b
TT
10852021-03-08 Tom Tromey <tom@tromey.com>
1086
1087 * expop.h (class comparison_operation): New.
1088 (equal_operation, notequal_operation, less_operation)
1089 (gtr_operation, geq_operation, leq_operation): New typedefs.
1090 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1091 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1092
224d6424
TT
10932021-03-08 Tom Tromey <tom@tromey.com>
1094
1095 * expop.h (class subscript_operation): New.
1096 * eval.c (eval_op_subscript): No longer static.
1097
373907ff
TT
10982021-03-08 Tom Tromey <tom@tromey.com>
1099
1100 * expop.h (class binop_operation, class usual_ax_binop_operation):
1101 New.
1102 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1103 (div_operation, rem_operation, lsh_operation, rsh_operation)
1104 (bitwise_and_operation, bitwise_ior_operation)
1105 (bitwise_xor_operation): New typedefs.
1106 * eval.c (eval_op_binary): No longer static.
1107
5133d78b
TT
11082021-03-08 Tom Tromey <tom@tromey.com>
1109
1110 * expop.h (class sub_operation): New.
1111 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1112 (evaluate_subexp_standard): Update.
1113
a94323b6
TT
11142021-03-08 Tom Tromey <tom@tromey.com>
1115
1116 * expop.h (class add_operation): New.
1117 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1118 (evaluate_subexp_standard): Update.
1119
e51e26a0
TT
11202021-03-08 Tom Tromey <tom@tromey.com>
1121
1122 * expop.h (class concat_operation): New.
1123 * eval.c (eval_op_concat): No longer static. Remove "op"
1124 parameter.
1125 (evaluate_subexp_standard): Update.
1126
07f724a8
TT
11272021-03-08 Tom Tromey <tom@tromey.com>
1128
1129 * expop.h (class structop_member_operation)
1130 (class structop_mptr_operation): New.
1131 * eval.c (eval_op_member): No longer static.
1132
ab0609be
TT
11332021-03-08 Tom Tromey <tom@tromey.com>
1134
1135 * expop.h (class structop_ptr_operation): New.
1136 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1137 parameter.
1138
808b22cf
TT
11392021-03-08 Tom Tromey <tom@tromey.com>
1140
1141 * expop.h (class structop_base_operation)
1142 (class structop_operation): New.
1143 * eval.c (eval_op_structop_struct): No longer static.
1144
8cfd3e95
TT
11452021-03-08 Tom Tromey <tom@tromey.com>
1146
1147 * expop.h (class complex_operation): New.
1148
09db3700
TT
11492021-03-08 Tom Tromey <tom@tromey.com>
1150
1151 * eval.c (eval_op_objc_selector): No longer static.
1152 * c-exp.h (class objc_selector_operation): New.
1153
06dc61b9
TT
11542021-03-08 Tom Tromey <tom@tromey.com>
1155
1156 * eval.c: Include c-exp.h.
1157 * c-exp.h (class objc_nsstring_operation): New.
1158
72d0a711
TT
11592021-03-08 Tom Tromey <tom@tromey.com>
1160
1161 * c-lang.c (c_string_operation::evaluate): New method.
1162 * c-exp.h: New file.
1163
9186293f
TT
11642021-03-08 Tom Tromey <tom@tromey.com>
1165
1166 * expop.h (class ternop_cond_operation): New.
1167 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1168
1594e0bb
TT
11692021-03-08 Tom Tromey <tom@tromey.com>
1170
1171 * expop.h (class ternop_slice_operation): New.
1172 * eval.c (eval_op_ternop): No longer static.
1173
b50db09f
TT
11742021-03-08 Tom Tromey <tom@tromey.com>
1175
1176 * expop.h (class string_operation): New.
1177 * eval.c (eval_op_string): No longer static.
1178
e6e01e16
TT
11792021-03-08 Tom Tromey <tom@tromey.com>
1180
1181 * expop.h (class internalvar_operation): New.
1182 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1183
e6985c5e
TT
11842021-03-08 Tom Tromey <tom@tromey.com>
1185
1186 * expop.h (class bool_operation): New.
1187
55bdbff8
TT
11882021-03-08 Tom Tromey <tom@tromey.com>
1189
1190 * expop.h (class register_operation): New.
1191 * eval.c (eval_op_register): No longer static.
1192 * ax-gdb.c (register_operation::do_generate_ax): New method.
1193
247d935b
TT
11942021-03-08 Tom Tromey <tom@tromey.com>
1195
1196 * expop.h (class last_operation): New.
1197
17679395
TT
11982021-03-08 Tom Tromey <tom@tromey.com>
1199
1200 * expop.h (class func_static_var_operation): New.
1201 * eval.c (eval_op_func_static_var): No longer static.
1202
b5cc3923
TT
12032021-03-08 Tom Tromey <tom@tromey.com>
1204
1205 * expop.h (class var_entry_value_operation): New.
1206 * eval.c (eval_op_var_entry_value): No longer static.
1207
0c8effa3
TT
12082021-03-08 Tom Tromey <tom@tromey.com>
1209
1210 * expression.h (class operation) <set_outermost>: New method.
1211 * expop.h (class var_msym_value_operation): New.
1212 * eval.c (eval_op_var_msym_value): No longer static.
1213 (var_msym_value_operation::evaluate_for_address)
1214 (var_msym_value_operation::evaluate_for_sizeof)
1215 (var_msym_value_operation::evaluate_for_cast): New methods.
1216 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1217 method.
1218
d336c29e
TT
12192021-03-08 Tom Tromey <tom@tromey.com>
1220
1221 * expop.h (class long_const_operation): New.
1222 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1223
d5ab122c
TT
12242021-03-08 Tom Tromey <tom@tromey.com>
1225
1226 * expop.h (class scope_operation): New.
1227 * eval.c (eval_op_scope): No longer static.
1228 (scope_operation::evaluate_for_address): New method.
1229 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1230
cae26a0c
TT
12312021-03-08 Tom Tromey <tom@tromey.com>
1232
1233 * expprint.c (float_const_operation::dump): New method.
1234 * expop.h (float_data): New typedef.
1235 (class float_const_operation): New.
1236
75f9892d
TT
12372021-03-08 Tom Tromey <tom@tromey.com>
1238
1239 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1240 * ax-gdb.c (gen_expr_binop): New function.
1241 (gen_expr_structop): Likewise.
1242
de401988
TT
12432021-03-08 Tom Tromey <tom@tromey.com>
1244
1245 * expprint.c (expr::dump_for_expression): New functions.
1246 * expop.h (dump_for_expression): New overloads.
1247 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1248 Update.
1249
e2803273
TT
12502021-03-08 Tom Tromey <tom@tromey.com>
1251
1252 * expression.h (expr::operation): New class.
1253 (expr::make_operation): New function.
1254 (expr::operation_up): New typedef.
1255 * expop.h: New file.
1256 * eval.c (operation::evaluate_for_cast)
1257 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1258 New methods.
1259 * ax-gdb.c (operation::generate_ax): New method.
1260
e18c58f2
TT
12612021-03-08 Tom Tromey <tom@tromey.com>
1262
1263 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1264 (gen_expr_binop_rest): New overload.
1265
c0d7ed8c
TT
12662021-03-08 Tom Tromey <tom@tromey.com>
1267
1268 * eval.c (eval_multi_subscript): New function.
1269 (evaluate_subexp_standard): Use it.
1270
dd5fd283
TT
12712021-03-08 Tom Tromey <tom@tromey.com>
1272
1273 * ada-lang.c (ada_binop_exp): New function.
1274 (ada_evaluate_subexp): Use it.
1275
3848abd6
TT
12762021-03-08 Tom Tromey <tom@tromey.com>
1277
1278 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1279 parameters.
1280 (ada_evaluate_subexp): Use it.
1281
38dc70cf
TT
12822021-03-08 Tom Tromey <tom@tromey.com>
1283
1284 * ada-lang.c (ada_binop_minmax): New function.
1285 (ada_evaluate_subexp): Use it.
1286
b84564fc
TT
12872021-03-08 Tom Tromey <tom@tromey.com>
1288
1289 * ada-lang.c (ada_unop_atr): New function.
1290 (ada_evaluate_subexp): Use it.
1291
b467efaa
TT
12922021-03-08 Tom Tromey <tom@tromey.com>
1293
1294 * ada-lang.c (ada_binop_in_bounds): New function.
1295 (ada_evaluate_subexp): Use it.
1296
5ce19db8
TT
12972021-03-08 Tom Tromey <tom@tromey.com>
1298
1299 * ada-lang.c (ada_ternop_slice): New function.
1300 (ada_evaluate_subexp): Use it.
1301
214b13ac
TT
13022021-03-08 Tom Tromey <tom@tromey.com>
1303
1304 * ada-lang.c (ada_equal_binop): New function.
1305 (ada_evaluate_subexp): Use it.
1306
faa1dfd7
TT
13072021-03-08 Tom Tromey <tom@tromey.com>
1308
1309 * ada-lang.c (ada_mult_binop): New function.
1310 (ada_evaluate_subexp): Use it.
1311
d05e24e6
TT
13122021-03-08 Tom Tromey <tom@tromey.com>
1313
1314 * ada-lang.c (ada_abs): New function.
1315 (ada_evaluate_subexp): Use it.
1316
68c75735
TT
13172021-03-08 Tom Tromey <tom@tromey.com>
1318
1319 * ada-lang.c (ada_atr_size): New function.
1320 (ada_evaluate_subexp): Use it.
1321
020dbabe
TT
13222021-03-08 Tom Tromey <tom@tromey.com>
1323
1324 * ada-lang.c (ada_atr_tag): New function.
1325 (ada_evaluate_subexp): Use it.
1326
7efc87ff
TT
13272021-03-08 Tom Tromey <tom@tromey.com>
1328
1329 * ada-lang.c (ada_unop_in_range): New function.
1330 (ada_evaluate_subexp): Use it.
1331
82390ab8
TT
13322021-03-08 Tom Tromey <tom@tromey.com>
1333
1334 * ada-lang.c (ada_unop_neg): New function.
1335 (ada_evaluate_subexp): Use it.
1336
62d4bd94
TT
13372021-03-08 Tom Tromey <tom@tromey.com>
1338
1339 * ada-lang.c (eval_ternop_in_range): New function.
1340 (ada_evaluate_subexp): Use it.
1341
3634f669
TT
13422021-03-08 Tom Tromey <tom@tromey.com>
1343
1344 * opencl-lang.c (eval_opencl_assign): New function.
1345 (evaluate_subexp_opencl): Use it.
1346
5e80600e
TT
13472021-03-08 Tom Tromey <tom@tromey.com>
1348
1349 * eval.c (eval_op_objc_msgcall): New function.
1350 (evaluate_subexp_standard): Use it.
1351
fb5ba2ab
TT
13522021-03-08 Tom Tromey <tom@tromey.com>
1353
1354 * eval.c (eval_binop_assign_modify): New function.
1355 (evaluate_subexp_standard): Use it.
1356
a49881f7
TT
13572021-03-08 Tom Tromey <tom@tromey.com>
1358
1359 * m2-lang.c (eval_op_m2_subscript): New function.
1360 (evaluate_subexp_modula2): Use it.
1361
41bdced5
TT
13622021-03-08 Tom Tromey <tom@tromey.com>
1363
1364 * m2-lang.c (eval_op_m2_high): New function.
1365 (evaluate_subexp_modula2): Use it.
1366
13ea014a
TT
13672021-03-08 Tom Tromey <tom@tromey.com>
1368
1369 * eval.c (evaluate_subexp_for_address_base): New function.
1370 (evaluate_subexp_for_address): Use it.
1371 (evaluate_subexp_for_sizeof_base): New function.
1372 (evaluate_subexp_for_sizeof): Use it.
1373
1fa41fc7
TT
13742021-03-08 Tom Tromey <tom@tromey.com>
1375
1376 * rust-lang.c (eval_op_rust_structop): New function.
1377 (rust_evaluate_subexp): Use it.
1378
575cae23
TT
13792021-03-08 Tom Tromey <tom@tromey.com>
1380
1381 * rust-lang.c (eval_op_rust_struct_anon): New function.
1382 (rust_evaluate_subexp): Use it.
1383
05104233
TT
13842021-03-08 Tom Tromey <tom@tromey.com>
1385
1386 * rust-lang.c (eval_op_rust_array): New function.
1387 (rust_evaluate_subexp): Use it.
1388
6fa9831f
TT
13892021-03-08 Tom Tromey <tom@tromey.com>
1390
1391 * rust-lang.c (eval_op_rust_complement): New function.
1392 (rust_evaluate_subexp): Use it.
1393
d123f9e4
TT
13942021-03-08 Tom Tromey <tom@tromey.com>
1395
1396 * rust-lang.c (eval_op_rust_ind): New function.
1397 (rust_evaluate_subexp): Use it.
1398
984af2cb
TT
13992021-03-08 Tom Tromey <tom@tromey.com>
1400
1401 * rust-lang.c (rust_subscript): Change parameters.
1402 (rust_evaluate_subexp): Update.
1403
d148f803
TT
14042021-03-08 Tom Tromey <tom@tromey.com>
1405
1406 * rust-lang.c (rust_range): Change parameters.
1407 (rust_evaluate_subexp): Update.
1408
9cbd1c20
TT
14092021-03-08 Tom Tromey <tom@tromey.com>
1410
1411 * f-lang.c (eval_op_f_allocated): New function.
1412 (evaluate_subexp_f): Use it.
1413
3c18c49c
TT
14142021-03-08 Tom Tromey <tom@tromey.com>
1415
1416 * f-lang.c (fortran_require_array): New function.
1417 (evaluate_subexp_f): Use it.
1418
216f6fcb
TT
14192021-03-08 Tom Tromey <tom@tromey.com>
1420
1421 * f-lang.c (eval_op_f_kind): New function.
1422 (evaluate_subexp_f): Use it.
1423
00f2db6f
TT
14242021-03-08 Tom Tromey <tom@tromey.com>
1425
1426 * f-lang.c (eval_op_f_cmplx): New function.
1427 (evaluate_subexp_f): Use it.
1428
93b2b5fa
TT
14292021-03-08 Tom Tromey <tom@tromey.com>
1430
1431 * f-lang.c (eval_op_f_modulo): New function.
1432 (evaluate_subexp_f): Use it.
1433
9f1a1f3c
TT
14342021-03-08 Tom Tromey <tom@tromey.com>
1435
1436 * f-lang.c (eval_op_f_floor): New function.
1437 (evaluate_subexp_f): Use it.
1438
3dc41f3c
TT
14392021-03-08 Tom Tromey <tom@tromey.com>
1440
1441 * f-lang.c (eval_op_f_ceil): New function.
1442 (evaluate_subexp_f): Use it.
1443
e08109f2
TT
14442021-03-08 Tom Tromey <tom@tromey.com>
1445
1446 * f-lang.c (eval_op_f_mod): New function.
1447 (evaluate_subexp_f): Use it.
1448
cc05c68e
TT
14492021-03-08 Tom Tromey <tom@tromey.com>
1450
1451 * f-lang.c (eval_op_f_abs): New function.
1452 (evaluate_subexp_f): Use it.
1453
aec95807
TT
14542021-03-08 Tom Tromey <tom@tromey.com>
1455
1456 * eval.c (eval_op_type): New function.
1457 (evaluate_subexp_standard): Use it.
1458
a220ead5
TT
14592021-03-08 Tom Tromey <tom@tromey.com>
1460
1461 * eval.c (eval_op_postdec): New function.
1462 (evaluate_subexp_standard): Use it.
1463
abffe116
TT
14642021-03-08 Tom Tromey <tom@tromey.com>
1465
1466 * eval.c (eval_op_postinc): New function.
1467 (evaluate_subexp_standard): Use it.
1468
9e1361b7
TT
14692021-03-08 Tom Tromey <tom@tromey.com>
1470
1471 * eval.c (eval_op_predec): New file.
1472 (evaluate_subexp_standard): Use it.
1473
00f50884
TT
14742021-03-08 Tom Tromey <tom@tromey.com>
1475
1476 * eval.c (eval_op_preinc): New function.
1477 (evaluate_subexp_standard): Use it.
1478
3aef2a07
TT
14792021-03-08 Tom Tromey <tom@tromey.com>
1480
1481 * eval.c (eval_op_memval): New function.
1482 (evaluate_subexp_standard): Use it.
1483
acee9468
TT
14842021-03-08 Tom Tromey <tom@tromey.com>
1485
1486 * eval.c (eval_op_alignof): New function.
1487 (evaluate_subexp_standard): Use it.
1488
786f70ee
TT
14892021-03-08 Tom Tromey <tom@tromey.com>
1490
1491 * eval.c (eval_op_ind): New function.
1492 (evaluate_subexp_standard): Use it.
1493
24338fb9
TT
14942021-03-08 Tom Tromey <tom@tromey.com>
1495
1496 * eval.c (eval_op_lognot): New function.
1497 (evaluate_subexp_standard): Use it.
1498
1f09ec81
TT
14992021-03-08 Tom Tromey <tom@tromey.com>
1500
1501 * eval.c (eval_op_complement): New function.
1502 (evaluate_subexp_standard): Use it.
1503
606d105f
TT
15042021-03-08 Tom Tromey <tom@tromey.com>
1505
1506 * eval.c (eval_op_neg): New function.
1507 (evaluate_subexp_standard): Use it.
1508
39f288be
TT
15092021-03-08 Tom Tromey <tom@tromey.com>
1510
1511 * eval.c (eval_op_plus): New function.
1512 (evaluate_subexp_standard): Use it.
1513
eed70b1c
TT
15142021-03-08 Tom Tromey <tom@tromey.com>
1515
1516 * eval.c (eval_op_repeat): New function.
1517 (evaluate_subexp_standard): Use it.
1518
60cdd487
TT
15192021-03-08 Tom Tromey <tom@tromey.com>
1520
1521 * eval.c (eval_op_leq): New function.
1522 (evaluate_subexp_standard): Use it.
1523
96e3efd9
TT
15242021-03-08 Tom Tromey <tom@tromey.com>
1525
1526 * eval.c (eval_op_geq): New function.
1527 (evaluate_subexp_standard): Use it.
1528
1f78d732
TT
15292021-03-08 Tom Tromey <tom@tromey.com>
1530
1531 * eval.c (eval_op_gtr): New function.
1532 (evaluate_subexp_standard): Use it.
1533
6cad1349
TT
15342021-03-08 Tom Tromey <tom@tromey.com>
1535
1536 * eval.c (eval_op_less): New function.
1537 (evaluate_subexp_standard): Use it.
1538
1fcb3559
TT
15392021-03-08 Tom Tromey <tom@tromey.com>
1540
1541 * eval.c (eval_op_notequal): New function.
1542 (evaluate_subexp_standard): Use it.
1543
0cc96de8
TT
15442021-03-08 Tom Tromey <tom@tromey.com>
1545
1546 * eval.c (eval_op_equal): New function.
1547 (evaluate_subexp_standard): Use it.
1548
288d26bc
TT
15492021-03-08 Tom Tromey <tom@tromey.com>
1550
1551 * eval.c (eval_op_subscript): New function.
1552 (evaluate_subexp_standard): Use it.
1553
7cdcdd02
TT
15542021-03-08 Tom Tromey <tom@tromey.com>
1555
1556 * eval.c (eval_op_binary): New function.
1557 (evaluate_subexp_standard): Use it.
1558
d9790e22
TT
15592021-03-08 Tom Tromey <tom@tromey.com>
1560
1561 * eval.c (eval_op_sub): New function.
1562 (evaluate_subexp_standard): Use it.
1563
aedaf9ac
TT
15642021-03-08 Tom Tromey <tom@tromey.com>
1565
1566 * eval.c (eval_op_add): New function.
1567 (evaluate_subexp_standard): Use it.
1568
b7a96ed2
TT
15692021-03-08 Tom Tromey <tom@tromey.com>
1570
1571 * eval.c (eval_op_member): New function.
1572 (evaluate_subexp_standard): Use it.
1573
fb461aa3
TT
15742021-03-08 Tom Tromey <tom@tromey.com>
1575
1576 * eval.c (eval_op_structop_ptr): New function.
1577 (evaluate_subexp_standard): Use it.
1578
3e96c4fc
TT
15792021-03-08 Tom Tromey <tom@tromey.com>
1580
1581 * eval.c (eval_op_structop_struct): New function.
1582 (evaluate_subexp_standard): Use it.
1583
f960a617
TT
15842021-03-08 Tom Tromey <tom@tromey.com>
1585
1586 * eval.c (eval_op_ternop): New function.
1587 (evaluate_subexp_standard): Use it.
1588
5c2f201e
TT
15892021-03-08 Tom Tromey <tom@tromey.com>
1590
1591 * eval.c (eval_op_concat): New function.
1592 (evaluate_subexp_standard): Use it.
1593
f871bae1
TT
15942021-03-08 Tom Tromey <tom@tromey.com>
1595
1596 * eval.c (eval_op_objc_selector): New function.
1597 (evaluate_subexp_standard): Use it.
1598
14a1c64a
TT
15992021-03-08 Tom Tromey <tom@tromey.com>
1600
1601 * eval.c (eval_op_string): New function.
1602 (evaluate_subexp_standard): Use it.
1603
ffff730b
TT
16042021-03-08 Tom Tromey <tom@tromey.com>
1605
1606 * eval.c (eval_op_register): New function.
1607 (evaluate_subexp_standard): Use it.
1608
9b1d8af6
TT
16092021-03-08 Tom Tromey <tom@tromey.com>
1610
1611 * eval.c (eval_op_func_static_var): New function.
1612 (evaluate_subexp_standard): Use it.
1613
c0df9289
TT
16142021-03-08 Tom Tromey <tom@tromey.com>
1615
1616 * eval.c (eval_op_var_msym_value): New function.
1617 (evaluate_subexp_standard): Use it.
1618
50b98adc
TT
16192021-03-08 Tom Tromey <tom@tromey.com>
1620
1621 * eval.c (eval_op_var_entry_value): New function.
1622 (evaluate_subexp_standard): Use it.
1623
ea2d29f7
TT
16242021-03-08 Tom Tromey <tom@tromey.com>
1625
1626 * eval.c (eval_op_scope): New function.
1627 (evaluate_subexp_standard): Use it.
1628
01573d73
TT
16292021-03-06 Chernov Sergey <klen_s@mail.ru>
1630
1631 PR gdb/27528:
1632 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1633
9938d15a
TT
16342021-03-06 Tom Tromey <tom@tromey.com>
1635
1636 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1637 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1638 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1639 (locate_dwz_sections, dwz_search_other_debugdirs)
1640 (dwarf2_get_dwz_file): Move to dwz.c.
1641 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1642 read.h.
1643 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1644 (dwarf2_get_dwz_file): Move from read.c.
1645
18035655
TT
16462021-03-06 Tom Tromey <tom@tromey.com>
1647
1648 * debuginfod-support.h: Include scoped_fd.h.
1649
a7308ce0
TT
16502021-03-06 Tom Tromey <tom@tromey.com>
1651
1652 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1653 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1654 (get_abbrev_section_for_cu, read_attribute_value)
1655 (get_debug_line_section): Update.
1656 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1657
fbedd546
TT
16582021-03-06 Tom Tromey <tom@tromey.com>
1659
1660 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1661 method.
1662 * dwarf2/read.c (section_is_p): Remove.
1663 (dwarf2_per_bfd::locate_sections)
1664 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1665 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1666 (dwarf2_locate_common_dwp_sections)
1667 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1668 Update.
1669
c2a62a3d
TT
16702021-03-06 Tom Tromey <tom@tromey.com>
1671
1672 * xcoffread.c: Include sect-names.h.
1673 * symfile.h (struct dwarf2_section_names, struct
1674 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1675 * dwarf2/sect-names.h: New file, from symfile.h.
1676 * dwarf2/read.c: Include sect-names.h.
1677
4444f407
TT
16782021-03-06 Tom Tromey <tom@tromey.com>
1679
1680 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1681 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1682 (abbrev_table::read): Update.
1683 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1684 (struct abbrev_info): Reformat.
1685 <attrs>: Now an array.
1686 (struct abbrev_table) <alloc_abbrev>: Remove.
1687
dd99cf0c
WP
16882021-03-06 Weimin Pan <weimin.pan@oracle.com>
1689
1690 * ctfread.c (ctf_psymtab_add_enums): New function.
1691 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1692
844be3f2
WP
16932021-03-06 Weimin Pan <weimin.pan@oracle.com>
1694
1695 * ctfread.c (read_func_kind_type): Set up function arguments.
1696
b2668f28
AB
16972021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1698 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1701 includes.
1702 (riscv_csrset): New static global.
1703 (riscv_update_csrmap): New function.
1704 (riscv_iterate_over_regset_sections): Process CSRs.
1705
d782d24b
AB
17062021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1707
1708 * riscv-tdep.c (riscv_feature_name_csr): Define.
1709 (riscv_feature_name_cpu): Define.
1710 (riscv_feature_name_fpu): Define.
1711 (riscv_feature_name_virtual): Define.
1712 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1713 (riscv_freg_feature): Use riscv_feature_name_fpu.
1714 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1715 (riscv_csr_feature): Use riscv_feature_name_csr.
1716 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1717
fb8f3fc0
AB
17182021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1719 Craig Blackmore <craig.blackmore@embecosm.com>
1720
1721 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1722 (ALLDEPFILES): Add riscv-none-tdep.c.
1723 * configure: Regenerate.
1724 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1725 support.
1726 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1727 * elf-none-tdep.c: New file.
1728 * elf-none-tdep.h: New file.
1729 * riscv-none-tdep.c: New file.
1730
95ce627a
AB
17312021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1732 Andrew Burgess <andrew.burgess@embecosm.com>
1733
1734 * corelow.c: Add 'xml-tdesc.h' include.
1735 (core_target::read_description): Load the target description from
1736 the core file when possible.
1737 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1738 note.
1739 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1740 (gcore_elf_make_tdesc_note): New function.
1741 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1742 * linux-tdep.c (linux_make_corefile_notes): Add target description
1743 note.
1744
f3a5df7b
AB
17452021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1746
1747 * Makefile.in (SFILES): Add gcore-elf.c.
1748 (HFILES_NO_SRCDIR): Add gcore-elf.h
1749 * configure: Regenerate.
1750 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1751 support.
1752 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1753 (struct fbsd_collect_regset_section_cb_data): Delete.
1754 (fbsd_collect_regset_section_cb): Delete.
1755 (fbsd_collect_thread_registers): Delete.
1756 (struct fbsd_corefile_thread_data): Delete.
1757 (fbsd_corefile_thread): Delete.
1758 (fbsd_make_corefile_notes): Call
1759 gcore_elf_build_thread_register_notes instead of the now deleted
1760 FreeBSD code.
1761 * gcore-elf.c: New file, the content was moved here from
1762 linux-tdep.c, functions were renamed and given minor cleanup.
1763 * gcore-elf.h: New file.
1764 * gcore.c (gcore_find_signalled_thread): Moved here from
1765 linux-tdep.c and given a new name. Minor cleanups.
1766 * gcore.h (gcore_find_signalled_thread): Declare.
1767 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1768 (struct linux_collect_regset_section_cb_data): Delete.
1769 (linux_collect_regset_section_cb): Delete.
1770 (linux_collect_thread_registers): Delete.
1771 (linux_corefile_thread): Call
1772 gcore_elf_build_thread_register_notes.
1773 (find_signalled_thread): Delete.
1774 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1775
d1e93af6
SM
17762021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1777
1778 PR gdb/27147
1779 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1780 process_stratum_target parameter,
1781 sparc_store_inferior_registers): update callers.
1782 * sparc-nat.c (sparc_fetch_inferior_registers,
1783 sparc_store_inferior_registers): Add process_stratum_target
1784 parameter. Switch current thread before calling
1785 sparc_supply_gregset / sparc_collect_rwindow.
1786 (sparc_store_inferior_registers): Likewise.
1787 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1788 (sparc32obsd_collect_uthread): Likewise.
1789 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1790 Add assertion.
1791 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1792 sparc64obsd_supply_uthread): Add assertion.
1793
1178743e
TT
17942021-03-04 Tom Tromey <tromey@adacore.com>
1795
1796 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1797 (aux_add_nonlocal_symbols): Update.
1798 (ada_add_block_symbols): Change "found_sym" to bool.
1799
1bfa81ac
TT
18002021-03-03 Tom Tromey <tromey@adacore.com>
1801
1802 * ada-lang.c (ada_resolve_function): Update comment.
1803 (is_nonfunction, add_symbols_from_enclosing_procs)
1804 (remove_extra_symbols): Likewise.
1805 (struct match_data): Add constructor, initializers.
1806 (add_nonlocal_symbols): Remove memset.
1807 (aux_add_nonlocal_symbols): Update comment.
1808 (ada_add_block_renamings, add_nonlocal_symbols)
1809 (ada_add_all_symbols): Likewise.
1810 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1811
bbcdf9ab
TT
18122021-03-02 Tom Tromey <tromey@adacore.com>
1813
1814 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1815 (cast_to_gnat_encoded_fixed_point_type): Remove.
1816 (ada_value_cast, ada_evaluate_subexp): Update.
1817 (gnat_encoded_fixed_point_type_info)
1818 (ada_is_gnat_encoded_fixed_point_type)
1819 (gnat_encoded_fixed_point_delta)
1820 (gnat_encoded_fixed_point_scaling_factor): Remove.
1821 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1822 (gnat_encoded_fixed_point_delta)
1823 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1824 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1825 (ada_print_type): Update.
1826 * ada-valprint.c (ada_value_print_num): Update.
1827 * dwarf2/read.c (ada_get_gnat_encoded_number)
1828 (ada_get_gnat_encoded_ratio): New functions.
1829 (finish_fixed_point_type): Use them. Add parameters.
1830 (GNAT_FIXED_POINT_SUFFIX): New define.
1831 (gnat_encoded_fixed_point_type_info): New function.
1832 (read_base_type): Handle gnat encodings.
1833
5f9febe0
TT
18342021-03-02 Tom Tromey <tromey@adacore.com>
1835
1836 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1837 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1838 std::string.
1839 (GROW_VECT): Remove.
1840 (grow_vect): Remove.
1841
d1183b06
TT
18422021-03-02 Tom Tromey <tromey@adacore.com>
1843
1844 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1845 * ada-lang.c (resolve_subexp): Update.
1846 (ada_resolve_function): Accept a vector.
1847 (is_nonfunction, add_defn_to_vec)
1848 (add_symbols_from_enclosing_procs): Likewise.
1849 (num_defns_collected, defns_collected): Remove.
1850 (remove_extra_symbols): Return a vector.
1851 (remove_irrelevant_renamings): Return void.
1852 (ada_add_local_symbols): Accept a vector.
1853 (struct match_data) <obstackp>: Remove.
1854 <resultp>: New member.
1855 (aux_add_nonlocal_symbols): Update.
1856 (ada_add_block_renamings, add_nonlocal_symbols)
1857 (ada_add_all_symbols): Accept a vector.
1858 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1859 vector.
1860 (ada_lookup_symbol): Update.
1861 (ada_add_block_symbols): Accept a vector.
1862 (get_var_value, iterate_over_symbols): Update.
1863 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1864 Update.
1865
886d459f
TT
18662021-03-02 Tom Tromey <tromey@adacore.com>
1867
1868 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1869
bdcccc56
TT
18702021-03-02 Tom Tromey <tromey@adacore.com>
1871
1872 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1873 auto_obstack.
1874 <root>: Initialize.
1875 (ada_pspace_data): Remove destructor.
1876 <sym_cache>: Now a unique_ptr.
1877 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1878 (ada_get_symbol_cache): Use 'new'.
1879 (ada_clear_symbol_cache): Rewrite.
1880
1228719f
TT
18812021-03-02 Tom Tromey <tromey@adacore.com>
1882
1883 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1884 is null.
1885
bb3a4efe
LS
18862021-02-27 Lancelot Six <lsix@lancelotsix.com>
1887
1888 PR gdb/27393
1889 * source.c (add_path): Skip empty dirnames.
1890
26b43ca6 18912021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1892
1893 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1894 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1895
dffdd8b5
SM
18962021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1897
1898 PR gdb/26861
1899 * target.c (target_mourn_inferior): Only compare pids in
1900 target_mourn_inferior.
1901
64d38fdd
JM
19022021-02-25 Jan Matyas <jmatyas@codasip.com>
1903
1904 PR gdb/26819
1905 * remote.c (remote_target::start_remote): Ensure the single
1906 thread, automatically added for remote targets without the
1907 concept of threading, is initially in set to the "resumed"
1908 state.
1909 * remote.c (remote_target::add_current_inferior_and_thread):
1910 Add return value - return the main thread.
1911
2450ad54
JV
19122021-02-25 Jan Vrany <jan.vrany@labware.com>
1913
1914 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1915 (mi_tsv_created): Likewise.
1916 (mi_tsv_deleted): Likewise.
1917
30c80d88
TV
19182021-02-25 Tom de Vries <tdevries@suse.de>
1919
1920 PR symtab/27354
1921 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1922 section_kind for &dwo_file->sections.info.
1923
68337b8b
AB
19242021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1925
1926 PR fortran/26155
1927 * f-lang.c (fortran_argument_convert): Delete declaration.
1928 (fortran_prepare_argument): New function.
1929 (evaluate_subexp_f): Move logic to new function
1930 fortran_prepare_argument.
1931
faeb9f13
AB
19322021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1933
1934 * f-exp.y (f77_keywords): Add 'associated'.
1935 * f-lang.c (fortran_associated): New function.
1936 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1937 (operator_length_f): Likewise.
1938 (print_unop_or_binop_subexp_f): New function.
1939 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1940 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1941 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1942 (operator_check_f): Likewise.
1943 * std-operator.def: Add FORTRAN_ASSOCIATED.
1944
170f4b23
AB
19452021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1946
1947 * f-exp.y (fortran_operators): Add ".xor.".
1948
aa659cfa
TV
19492021-02-24 Tom de Vries <tdevries@suse.de>
1950
1951 PR symtab/27336
1952 * dwarf2/attribute.c (attribute::form_is_signed): New function
1953 factored out of ...
1954 * dwarf2/attribute.h (attribute::as_signed): ... here.
1955 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1956 (attribute::form_is_signed): Declare.
1957 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1958 for DW_AT_decl_file.
1959
268c77c1
KB
19602021-02-24 Kevin Buettner <kevinb@redhat.com>
1961
1962 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1963 order for <sys/ptrace.h> and <asm/ptrace.h>.
1964
665af52e
KB
19652021-02-24 Kevin Buettner <kevinb@redhat.com>
1966
1967 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1968 <sys/ptrace.h>.
1969
dd80d750
AB
19702021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * exec.c (set_section_command): Move variable declarations into
1973 the function body, and use std::string instead of a fixed size
1974 buffer.
1975
336aa7b7
AB
19762021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1977
1978 * exec.c (exec_target::get_section_table): Delete member function.
1979 (section_table_read_available_memory): Use current_top_target, not
1980 just the exec_ops target.
1981 * target-delegates.c: Regenerate.
1982 * target.c (default_get_section_table): New function.
1983 * target.h (target_ops::get_section_table): Change default
1984 behaviour to call default_get_section_table.
1985 (default_get_section_table): Declare.
1986
02f7d26b
AB
19872021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1988
1989 * exec.c (exec_target::close): Call new clear_target_sections
1990 function.
1991 (program_space::add_target_sections): Update name of member
1992 variable.
1993 (program_space::add_target_sections): Update name of member
1994 variable.
1995 (program_space::remove_target_sections): Likewise.
1996 (exec_one_fork): Use new target_sections member function.
1997 (exec_target::get_section_table): Likewise.
1998 (exec_target::files_info): Likewise.
1999 (set_section_command): Likewise.
2000 (exec_set_section_address): Likewise.
2001 (exec_target::has_memory): Use new target_sections member
2002 function.
2003 * progspace.h (program_space::clear_target_sections): New member
2004 function.
2005 (program_space::target_sections): Rename member variable to
2006 m_target_sections, replace with a new member function.
2007 (program_space::m_target_sections): New member variable.
2008 * solib-dsbt.c (scan_dyntag): Use new member function.
2009 * solib-svr4.c (scan_dyntag): Likewise.
2010
19cf757a
AB
20112021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2012
2013 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2014 return type const.
2015 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2016 (section_table_read_available_memory): Make local const.
2017 (exec_target::xfer_partial): Make local const.
2018 (print_section_info): Make parameter const.
2019 * gdb/exec.h (print_section_info): Likewise.
2020 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2021 const.
2022 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2023 Likewise.
2024 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2025 Likewise.
2026 * gdb/s390-tdep.c (s390_load): Likewise.
2027 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2028 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2029 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2030 Rename to...
2031 (target_debug_print_const_target_section_table_p): ...this.
2032 * gdb/target-delegates.c: Regenerate.
2033 * gdb/target.c (target_get_section_table): Make return type const.
2034 (target_section_by_addr): Likewise. Also make some locals const.
2035 (memory_xfer_partial_1): Make some locals const.
2036 * gdb/target.h (struct target_ops) <get_section_table>: Make
2037 return type const.
2038 (target_section_by_addr): Likewise.
2039 (target_get_section_table): Likewise.
2040
02a79309
AB
20412021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2042
2043 * NEWS: Mention new 'maint info target-sections' command.
2044 * maint.c (maintenance_info_target_sections): New function.
2045 (_initialize_maint_cmds): Register new command.
2046
895b7b4e
AB
20472021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2048
2049 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2050 (riscv_features_from_bfd): ...this. Change parameter type to
2051 'bfd*', and update as required.
2052 (riscv_find_default_target_description): Update call to
2053 riscv_features_from_bfd. Select a default xlen based on
2054 info.bfd_arch_info.
2055 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2056
bc3c0632
AB
20572021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2058
2059 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2060 dynamic types in UNOP_IND.
2061
08ac5771
SM
20622021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2063
2064 PR gdb/26828
2065 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2066 Instantiate queue.
2067 (~dwarf2_queue_guard): Clear queue.
2068 (queue_comp_unit): Assert that queue is
2069 instantiated.
2070 (process_queue): Adjust.
2071 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2072
616c069a
SM
20732021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2074
2075 PR gdb/26828
2076 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2077 to decide whether or not to enqueue it for expansion.
2078 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2079 after calling maybe_queue_comp_unit.
2080
897608ed
SM
20812021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2082
2083 * linux-nat.c (linux_nat_filter_event): Return void.
2084
15908a11
TT
20852021-02-22 Tom Tromey <tromey@adacore.com>
2086
2087 * solib-svr4.c (enable_break): Update.
2088 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2089 type.
2090 (target_bfd_reopen): Change parameter type.
2091 * bfd-target.h (target_bfd_reopen): Change parameter type.
2092
f53fc427
SM
20932021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 * thread.c (add_thread_silent): Add assert.
2096 (find_thread_ptid): Add assert.
2097
de146e19
SM
20982021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2099
2100 PR gdb/27435
2101 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2102 (target_unpush_up): Likewise.
2103 * procfs.c (procfs_target::attach): Push target early. Use
2104 target_unpush_up to unpush target in case of error.
2105 * target.h (struct target_unpusher): Move here.
2106 (target_unpush_up): Likewise.
2107
8488c357
KB
21082021-02-19 Kevin Buettner <kevinb@redhat.com>
2109
2110 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2111 (which in turn includes <gnulib/config.h>) before include
2112 of <signal.h>.
2113
5a9f5403
NC
21142021-02-19 Nelson Chu <nelson.chu@sifive.com>
2115
2116 PR 27158
2117 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2118 (decode_j_type_insn): Likewise.
2119 (decode_cj_type_insn): Likewise.
2120 (decode_b_type_insn): Likewise.
2121 (decode): Likewise.
2122
26f53cd3
TT
21232021-02-18 Tom Tromey <tom@tromey.com>
2124
2125 * expression.h (struct expression) <evaluate>: Declare method.
2126 * eval.c (evaluate_subexp): Simplify.
2127 (expression::evaluate): New method.
2128 (evaluate_expression, evaluate_type): Use expression::evaluate.
2129
6a780b67
KB
21302021-02-17 Kevin Buettner <kevinb@redhat.com>
2131
2132 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2133 to accessing it.
2134 (ada_lookup_name_info): Likewise.
2135
adeab0c5
MF
21362021-02-13 Mike Frysinger <vapier@gentoo.org>
2137
2138 * aclocal.m4: Regenerate.
2139
089436f7
TV
21402021-02-12 Tom de Vries <tdevries@suse.de>
2141
2142 PR threads/26228
2143 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2144 (lin_thread_signals): New static var.
2145 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2146 New function.
2147 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2148 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2149 Declare.
2150 * linux-thread-db.c (check_thread_signals): Use
2151 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2152
96df3e28
AB
21532021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2154
2155 * f-exp.y (f77_keywords): Add allocated.
2156 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2157 (operator_length_f): Likewise.
2158 (print_subexp_f): Likewise.
2159 (dump_subexp_body_f): Likewise.
2160 (operator_check_f): Likewise.
2161 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2162
05f68f52
TV
21632021-02-11 Tom de Vries <tdevries@suse.de>
2164
2165 PR symtab/27353
2166 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2167 Return true for DW_FORM_strx.
2168
b260f8d6
TT
21692021-02-11 Tom Tromey <tromey@adacore.com>
2170
2171 PR gdb/27383:
2172 * parse.c (write_exp_symbol_reference): Write sym.block.
2173
bf3386f0
AB
21742021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2175
2176 * NEWS: Mention changes to 'maint info sections'.
2177 * maint.c (match_substring): Return a bool, fix whitespace issue.
2178 (struct single_bfd_flag_info): New struct.
2179 (bfd_flag_info): New static global.
2180 (match_bfd_flags): Return a bool, use bfd_flag_info.
2181 (print_bfd_flags): Use bfd_flag_info.
2182 (maint_print_section_info): Delete trailing whitespace.
2183 (struct maint_info_sections_opts): New struct.
2184 (maint_info_sections_option_defs): New static global.
2185 (maint_info_sections_completer): New function.
2186 (maintenance_info_sections): Use option parsing mechanism.
2187 (_initialize_maint_cmds): Update command help text for 'maint info
2188 sections' and register a command completer.
2189
4790db14
AB
21902021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2191
2192 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2193 functionality merged into...
2194 (maint_print_all_sections): ...this new function.
2195 (maintenance_info_sections): Make use of maint_print_all_sections,
2196 allow all objects to be printed even where there's no executable.
2197
1db66e34
AB
21982021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 * breakpoint.c (resolve_sal_pc): Make use of
2201 bound_minimal_symbol::obj_section.
2202 * maint.c (maintenance_translate_address): Likewise.
2203 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2204 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2205 member function.
2206 * printcmd.c (info_address_command): Make use of
2207 bound_minimal_symbol::obj_section.
2208
18b8df43
AM
22092021-02-11 Alan Modra <amodra@gmail.com>
2210
2211 * arm-symbian-tdep.c: Delete.
2212 * NEWS: Mention arm-symbian removal.
2213 * Makefile.in: Remove arm-symbian-tdep entries.
2214 * configure.tgt: Remove arm*-*-symbianelf*.
2215 * doc/gdb.texinfo: Remove mention of SymbianOS.
2216 * osabi.c (gdb_osabi_names): Remove "Symbian".
2217 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2218 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2219 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2220 handling.
2221 * testsuite/gdb.base/dup-sect.exp: Likewise.
2222 * testsuite/gdb.base/long_long.exp: Likewise.
2223 * testsuite/gdb.base/solib-weak.exp: Likewise.
2224 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2225 * testsuite/gdb.python/py-section-script.exp: Likewise.
2226 * testsuite/lib/dwarf.exp: Likewise.
2227 * testsuite/lib/gdb.exp: Likewise.
2228
e92c8eb8
AB
22292021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2230
2231 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2232 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2233 (one_or_two_args): New pattern.
2234 (f77_keywords): Add lbound and ubound.
2235 * f-lang.c (fortran_bounds_all_dims): New function.
2236 (fortran_bounds_for_dimension): New function.
2237 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2238 (operator_length_f): Likewise.
2239 (print_subexp_f): Likewise.
2240 (dump_subexp_body_f): Likewise.
2241 (operator_check_f): Likewise.
2242 * std-operator.def (FORTRAN_LBOUND): Define.
2243 (FORTRAN_UBOUND): Define.
2244
a52d653e
AB
22452021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2246
2247 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2248 and set_section_index member functions where appropriate.
2249 * coffread.c (coff_symtab_read): Likewise.
2250 (process_coff_symbol): Likewise.
2251 * ctfread.c (set_symbol_address): Likewise.
2252 * dwarf2/read.c (add_partial_symbol): Likewise.
2253 (var_decode_location): Likewise.
2254 * language.c: Likewise.
2255 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2256 (compact_minimal_symbols): Likewise.
2257 (minimal_symbol_upper_bound): Likewise.
2258 * objfiles.c (relocate_one_symbol): Likewise.
2259 * psympriv.h (partial_symbol::obj_section): Likewise.
2260 (partial_symbol::address): Likewise.
2261 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2262 * stabsread.c (scan_file_globals): Likewise.
2263 * symmisc.c (dump_msymbols): Likewise.
2264 * symtab.c (general_symbol_info::obj_section): Likewise.
2265 (fixup_section): Likewise.
2266 (get_msymbol_address): Likewise.
2267 * symtab.h (general_symbol_info::section): Rename to...
2268 (general_symbol_info::m_section): ...this.
2269 (general_symbol_info::set_section_index): New member function.
2270 (general_symbol_info::section_index): Likewise.
2271 (SYMBOL_SECTION): Delete.
2272 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2273 set_section_index member functions where appropriate.
2274 (MSYMBOL_SECTION): Delete.
2275 (symbol::symbol): Update to initialize 'm_section'.
2276 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2277 (process_xcoff_symbol): Likewise.
2278
ebbc3a7d
AB
22792021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2280
2281 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2282 MSYMBOL_OBJ_SECTION.
2283 * findvar.c (language_defn::read_var_value): Likewise.
2284 * infcmd.c (jump_command): Likewise.
2285 * linespec.c (minsym_found): Likewise.
2286 * maint.c (maintenance_translate_address): Likewise.
2287 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2288 (minimal_symbol_upper_bound): Likewise.
2289 * parse.c (find_minsym_type_and_address): Likewise.
2290 (operator_check_standard): Likewise.
2291 * printcmd.c (info_address_command): Likewise.
2292 * symmisc.c (dump_msymbols): Likewise.
2293 (print_symbol): Likewise.
2294 * symtab.c (general_symbol_info::obj_section): Define new
2295 function.
2296 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2297 (find_pc_sect_compunit_symtab): Likewise.
2298 (find_function_start_sal): Likewise.
2299 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2300 MSYMBOL_OBJ_SECTION.
2301 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2302 function.
2303 (SYMBOL_OBJ_SECTION): Delete.
2304 (MSYMBOL_OBJ_SECTION): Delete.
2305
9bb305b3
TT
23062021-02-09 Tom Tromey <tom@tromey.com>
2307
2308 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2309
cf2b2075
TV
23102021-02-09 Tom de Vries <tdevries@suse.de>
2311
2312 PR symtab/27341
2313 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2314 construct an array type. Add assert to ensure that element_type is
2315 not being modified.
2316
03642b71
AB
23172021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2320 (gcore_collect_regset_section_cb): Delete.
2321 (gcore_collect_thread_registers): Delete.
2322 (gcore_build_thread_register_notes): Delete.
2323 (gcore_find_signalled_thread): Delete.
2324 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2325 'gdbarch' and 'thread_info' declarations.
2326 (gcore_build_thread_register_notes): Delete declaration.
2327 (gcore_find_signalled_thread): Likewise.
2328 * fbsd-tdep.c: Remove 'gcore.h' include.
2329 (struct fbsd_collect_regset_section_cb_data): New struct.
2330 (fbsd_collect_regset_section_cb): New function.
2331 (fbsd_collect_thread_registers): New function.
2332 (struct fbsd_corefile_thread_data): New struct.
2333 (fbsd_corefile_thread): New function.
2334 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2335 * linux-tdep.c: Remove 'gcore.h' include.
2336 (struct linux_collect_regset_section_cb_data): New struct.
2337 (linux_collect_regset_section_cb): New function.
2338 (linux_collect_thread_registers): New function.
2339 (linux_corefile_thread): Call Linux specific code.
2340 (find_signalled_thread): New function.
2341 (linux_make_corefile_notes): Call find_signalled_thread.
2342
f73e424f
TT
23432021-02-09 Tom Tromey <tromey@adacore.com>
2344
2345 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2346 not_lval value.
2347 * value.c (value_contents_copy_raw): Now static.
2348 * value.h (value_contents_copy_raw): Don't declare.
2349
a4f0544b
TT
23502021-02-09 Tom Tromey <tromey@adacore.com>
2351
2352 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2353 fields.
2354
9b3e4b5d
SV
23552021-02-08 Shahab Vahedi <shahab@synopsys.com>
2356
2357 PR tdep/27369
2358 * arc-linux-tdep.c (handle_atomic_sequence): New.
2359 (arc_linux_software_single_step): Call handle_atomic_sequence().
2360
29db1eb3
AB
23612021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2362
2363 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2364 function.
2365 (REQUIRE_WINDOW): Call is_valid member function.
2366 (REQUIRE_WINDOW_FOR_SETTER): New define.
2367 (gdbpy_tui_is_valid): Call is_valid member function.
2368 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2369 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2370 tui_active too.
2371 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2372 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2373 the function.
2374
e0c23e11
AB
23752021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2378 for the title is not nullptr.
2379
1cf23996
AB
23802021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2381
2382 * tui-layout.c (saved_tui_windows): Delete.
2383 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2384 call new get_windows member function instead.
2385 (tui_get_window_by_name): Check in tui_windows.
2386 (tui_layout_window::apply): Don't add to tui_windows.
2387 * tui-layout.h (tui_layout_base::get_windows): New member function.
2388 (tui_layout_window::get_windows): Likewise.
2389 (tui_layout_split::get_windows): Likewise.
2390
a53a2657
AB
23912021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2392
2393 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2394 of the window objects.
2395
2708dbbd
AB
23962021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2397
2398 * python/python.c (gdbpy_print_stack): Reformat an error message.
2399
cd074e04
AB
24002021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2401
2402 * tui/tui-interp.c (tui_command_line_handler): New function.
2403 (tui_interp::resume): Register tui_command_line_handler as the
2404 input_handler.
2405 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2406 function.
2407 (tui_getc_1): Delete handling of '\n' and '\r'.
2408 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2409
4cf28e91
HD
24102021-02-07 Hannes Domani <ssbssa@yahoo.de>
2411
2412 * tui/tui-regs.c (tui_data_window::display_registers_from):
2413 Mark invisible register sub windows.
2414 (tui_data_window::check_register_values): Ignore invisible
2415 register sub windows.
2416
3537bc23
HD
24172021-02-07 Hannes Domani <ssbssa@yahoo.de>
2418
2419 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2420 n_spaces with a negative value.
2421
5fc2d6aa
HD
24222021-02-07 Hannes Domani <ssbssa@yahoo.de>
2423
2424 * tui/tui-regs.c (tui_data_window::display_registers_from):
2425 Add refresh_window call.
2426
83962f83
HD
24272021-02-07 Hannes Domani <ssbssa@yahoo.de>
2428
2429 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2430
0110ec82
SM
24312021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2432
2433 * symmisc.c (std_in, std_out, std_err): Remove.
2434 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2435
7c6944ab
TV
24362021-02-05 Tom de Vries <tdevries@suse.de>
2437
2438 PR breakpoints/27330
2439 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2440 glibc object file has debug info.
2441
e77b0004
TV
24422021-02-05 Tom de Vries <tdevries@suse.de>
2443
2444 PR symtab/27333
2445 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2446
0e857c82
TV
24472021-02-05 Tom de Vries <tdevries@suse.de>
2448
2449 PR breakpoints/27313
2450 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2451 syscall numbers.
2452
bdfea17e
TT
24532021-02-05 Tom Tromey <tom@tromey.com>
2454
2455 * compile/compile-c-support.c (get_compile_context)
2456 (c_get_compile_context, cplus_get_compile_context): Change return
2457 type.
2458 * language.c (language_defn::get_compile_instance): New method.
2459 * language.h (language_defn::get_compile_instance): Change return
2460 type. No longer inline.
2461 * c-lang.c (c_language::get_compile_instance): Change return type.
2462 (cplus_language::get_compile_instance): Change return type.
2463 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2464 Change return type.
2465 * compile/compile.c (compile_to_object): Update.
2466
1b30f421
TT
24672021-02-05 Tom Tromey <tom@tromey.com>
2468
2469 * parser-defs.h (write_exp_symbol_reference): Declare.
2470 * parse.c (write_exp_symbol_reference): New function.
2471 * p-exp.y (variable): Use write_exp_symbol_reference.
2472 * m2-exp.y (variable): Use write_exp_symbol_reference.
2473 * f-exp.y (variable): Use write_exp_symbol_reference.
2474 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2475 * c-exp.y (variable): Use write_exp_symbol_reference.
2476
ae710496
TV
24772021-02-05 Tom de Vries <tdevries@suse.de>
2478
2479 PR exp/27265
2480 * valarith.c (complex_binop): Throw an error if complex type can't
2481 be created.
2482
d3b54e63
TV
24832021-02-05 Tom de Vries <tdevries@suse.de>
2484
2485 PR symtab/27307
2486 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2487 return.
2488
fc9a13fb
TV
24892021-02-05 Tom de Vries <tdevries@suse.de>
2490
2491 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2492
04b4939b
MF
24932021-02-04 Mike Frysinger <vapier@gentoo.org>
2494
2495 * configure.tgt (riscv*-*-*): Set gdb_sim.
2496
6ff267e1
SM
24972021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2498
2499 * target.c (target_is_non_stop_p): Return bool.
2500 * target.h (target_is_non_stop_p): Return bool.
2501
fdbc5215
SM
25022021-02-04 Simon Marchi <simon.marchi@efficios.com>
2503
2504 * record-full.c (record_full_async_inferior_event_handler):
2505 Don't clear async event handler.
2506 (record_full_base_target::wait): Clear async event handler at
2507 beginning.
2508
85d3ad8e
SM
25092021-02-04 Simon Marchi <simon.marchi@efficios.com>
2510
2511 * record-btrace.c (record_btrace_handle_async_inferior_event):
2512 Don't clear async event handler.
2513 (record_btrace_target::wait): Clear async event handler at
2514 beginning.
2515
baa8575b
SM
25162021-02-04 Simon Marchi <simon.marchi@efficios.com>
2517
2518 * remote.c (remote_target::wait): Clear async event handler at
2519 beginning, mark if needed at the end.
2520 (remote_async_inferior_event_handler): Don't set or clear async
2521 event handler.
2522
6b36ddeb
SM
25232021-02-04 Simon Marchi <simon.marchi@efficios.com>
2524
2525 * async-event.h (async_event_handler_func): Add documentation.
2526 * async-event.c (check_async_event_handlers): Don't clear
2527 async_event_handler ready flag.
2528 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2529 flag.
2530 * record-btrace.c (record_btrace_handle_async_inferior_event):
2531 Likewise.
2532 * record-full.c (record_full_async_inferior_event_handler):
2533 Likewise.
2534 * remote-notif.c (remote_async_get_pending_events_handler):
2535 Likewise.
2536 * remote.c (remote_async_inferior_event_handler): Likewise.
2537
72d383bb
SM
25382021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2539
2540 * infrun.c (handle_inferior_event): Move stop_soon variable to
2541 inner scope.
2542
408f6686
PA
25432021-02-03 Pedro Alves <pedro@palves.net>
2544
2545 * infcmd.c (detach_command): Hold strong reference to target, and
2546 if all-stop on entry, restart threads on exit.
2547 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2548 (restart_stepped_thread): ... this new function. Also handle
2549 trap_expected.
2550 (restart_after_all_stop_detach): New function.
2551 * infrun.h (restart_after_all_stop_detach): Declare.
2552
ac7d717c
PA
25532021-02-03 Pedro Alves <pedro@palves.net>
2554
2555 * infrun.c (struct step_over_info): Initialize fields.
2556 (prepare_for_detach): Handle ongoing in-line step over.
2557
e87f0fe8
PA
25582021-02-03 Pedro Alves <pedro@palves.net>
2559
2560 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2561 here...
2562 * remote.c (remote_target::remote_detach_1): ... and here ...
2563 * target.c (target_detach): ... instead of here.
2564 * target.h (target_ops::detach): Add comment.
2565
8ff53139
PA
25662021-02-03 Pedro Alves <pedro@palves.net>
2567
2568 * infrun.c (struct wait_one_event): Move higher up.
2569 (prepare_for_detach): Abort in-progress displaced steps instead of
2570 letting them complete.
2571 (handle_one): If the inferior is detaching, don't add the thread
2572 back to the global step-over chain.
2573 (restart_threads): Don't restart threads if detaching.
2574 (handle_signal_stop): Remove inferior::detaching reference.
2575
91475068
PA
25762021-02-03 Pedro Alves <pedro@palves.net>
2577
2578 * infrun.c (prepare_for_detach): Don't release scoped_restore
2579 before returning.
2580
d758e62c
PA
25812021-02-03 Pedro Alves <pedro@palves.net>
2582
2583 * infrun.c (handle_one): New function, factored out from ...
2584 (stop_all_threads): ... here.
2585
b0083dd7
PA
25862021-02-03 Pedro Alves <pedro@palves.net>
2587
2588 * remote.c (remote_notif_stop_ack): Don't error out on
2589 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2590 (remote_target::discard_pending_stop_replies): Don't delete
2591 in-flight notification; instead, clear its contents.
2592
621cc310
PA
25932021-02-03 Pedro Alves <pedro@palves.net>
2594
2595 * remote.c (extended_remote_target::attach): Set target async in
2596 the target-non-stop path too.
2597
2ab76a18
PA
25982021-02-03 Pedro Alves <pedro@palves.net>
2599
2600 PR gdb/27055
2601 * infrun.c (handle_signal_stop): Move main context_switch call
2602 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2603
2e3773ff
LS
26042021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2605
2606 * NEWS (Changed commands): Add entry for the behavior change of
2607 the inferior command.
2608 * inferior.c (inferior_command): When no argument is given to the
2609 inferior command, display info about the currently selected
2610 inferior.
2611
e57933dc
SM
26122021-02-02 Simon Marchi <simon.marchi@efficios.com>
2613
2614 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2615 a sect_offset.
2616 (read_attribute_reprocess): Adjust.
2617
2b0c7f41
SM
26182021-02-02 Simon Marchi <simon.marchi@efficios.com>
2619
2620 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2621 <gnu_ranges_base>: ... this...
2622 <rnglists_base>: ... and this.
2623 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2624 <gnu_ranges_base>: ... this...
2625 <rnglists_base>: ... and this.
2626 (read_cutu_die_from_dwo): Adjust
2627 (dwarf2_get_pc_bounds): Adjust
2628 (dwarf2_record_block_ranges): Adjust.
2629 (read_full_die_1): Adjust
2630 (partial_die_info::read): Adjust.
2631 (read_rnglist_index): Adjust.
2632
a1c40103
SM
26332021-02-02 Simon Marchi <simon.marchi@efficios.com>
2634
2635 PR gdb/26813
2636 * dwarf2/read.c (read_loclists_rnglists_header): Add
2637 header_offset parameter and use it.
2638 (read_loclist_index): Read header of the current contribution,
2639 not the one at the beginning of the section.
2640 (read_rnglist_index): Likewise.
2641
b1829e1b
SM
26422021-02-02 Simon Marchi <simon.marchi@efficios.com>
2643
2644 PR gdb/26813
2645 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2646 requires_reprocessing flag.
2647 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2648 DW_FORM_loclistx.
2649 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2650 and DW_FORM_loclistx.
2651 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2652 instead of set_address for DW_FORM_loclistx and
2653 DW_FORM_rnglistx.
2654
0c800c6e
SM
26552021-02-02 Simon Marchi <simon.marchi@efficios.com>
2656
2657 * dwarf2/read.c (read_loclist_index): Remove bound check for
2658 start of offset.
2659 (read_rnglist_index): Likewise.
2660
05787bad
SM
26612021-02-02 Simon Marchi <simon.marchi@efficios.com>
2662
2663 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2664 of the offset.
2665
5e4d9bbc
SM
26662021-02-02 Simon Marchi <simon.marchi@efficios.com>
2667
2668 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2669
a0c1eeba
SM
26702021-02-02 Simon Marchi <simon.marchi@efficios.com>
2671
2672 * dwarf2/read.c (read_loclist_index): Change complaints into
2673 errors.
2674
2bd3e4b8
TV
26752021-02-02 Tom de Vries <tdevries@suse.de>
2676
2677 PR symtab/24620
2678 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2679 psymtab == nullptr.
2680
82a1fd3a
AB
26812021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2682
2683 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2684 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2685 here from linux-tdep.c and given a new name. Minor cleanups.
2686 (gcore_collect_regset_section_cb): Likewise.
2687 (gcore_collect_thread_registers): Likewise.
2688 (gcore_build_thread_register_notes): Likewise.
2689 (gcore_find_signalled_thread): Likewise.
2690 * gcore.h (gcore_build_thread_register_notes): Declare.
2691 (gcore_find_signalled_thread): Declare.
2692 * fbsd-tdep.c: Add 'gcore.h' include.
2693 (struct fbsd_collect_regset_section_cb_data): Delete.
2694 (fbsd_collect_regset_section_cb): Delete.
2695 (fbsd_collect_thread_registers): Delete.
2696 (struct fbsd_corefile_thread_data): Delete.
2697 (fbsd_corefile_thread): Delete.
2698 (fbsd_make_corefile_notes): Call
2699 gcore_build_thread_register_notes instead of the now deleted
2700 FreeBSD code.
2701 * linux-tdep.c: Add 'gcore.h' include.
2702 (struct linux_collect_regset_section_cb_data): Delete.
2703 (linux_collect_regset_section_cb): Delete.
2704 (linux_collect_thread_registers): Delete.
2705 (linux_corefile_thread): Call
2706 gcore_build_thread_register_notes.
2707 (find_signalled_thread): Delete.
2708 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2709
ebde6f2d
TV
27102021-01-29 Tom de Vries <tdevries@suse.de>
2711
2712 PR breakpoints/26063
2713 * infrun.c (process_event_stop_test): Reset
2714 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2715 changed.
2716
0f93c3a2
AB
27172021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2718
2719 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2720 assert. Extend the header comment.
2721
f237f998
AB
27222021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2723
2724 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2725 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2726 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2727 (tui_locator_win_info_ptr): Delete declaration.
2728 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2729 (tui_disasm_window::set_contents): Fetch state from tui_location
2730 global.
2731 (tui_get_begin_asm_address): Likewise.
2732 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2733 for locator window.
2734 (get_locator_window): Delete.
2735 (initialize_known_windows): Treat locator window just like all the
2736 rest.
2737 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2738 (tui_source_window::set_contents): Fetch state from tui_location
2739 global.
2740 (tui_source_window::showing_source_p): Likewise.
2741 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2742 (_locator): Delete.
2743 (tui_locator_win_info_ptr): Delete.
2744 (tui_locator_window::make_status_line): Fetch state from
2745 tui_location global.
2746 (tui_locator_window::rerender): Remove check of 'handle',
2747 reindent function body.
2748 (tui_locator_window::set_locator_fullname): Delete.
2749 (tui_locator_window::set_locator_info): Delete.
2750 (tui_update_locator_fullname): Delete.
2751 (tui_show_frame_info): Likewise.
2752 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2753 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2754 tui/tui-location.h and renamed to
2755 tui_location_tracker::set_location.
2756 (tui_locator_window::set_locator_fullname): Moved to
2757 tui/tui-location.h and renamed to
2758 tui_location_tracker::set_fullname.
2759 (tui_locator_window::full_name): Delete.
2760 (tui_locator_window::proc_name): Delete.
2761 (tui_locator_window::line_no): Delete.
2762 (tui_locator_window::addr): Delete.
2763 (tui_locator_window::gdbarch): Delete.
2764 (tui_update_locator_fullname): Delete declaration.
2765 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2766 for locator window.
2767 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2768 (tui_display_main): Call function on tui_location directly.
2769 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2770 * tui/tui-location.c: New file.
2771 * tui/tui-location.h: New file.
2772
8ee511af
SM
27732021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2774
2775 * gdbtypes.h (get_type_arch): Rename to...
2776 (struct type) <arch>: ... this, update all users.
2777
6ac37371
SM
27782021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2779
2780 * gdbtypes.h (struct type) <arch>: Rename to...
2781 <arch_owner>: ... this, update all users.
2782 <objfile>: Rename to...
2783 <objfile_owner>: ... this, update all users.
2784
24cf6389
AB
27852021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2786
2787 * gdbcmd.h (execute_command_to_string): Update comment.
2788 * top.c (execute_command_to_string): Update header comment.
2789
2a7f6487
TV
27902021-01-28 Tom de Vries <tdevries@suse.de>
2791
2792 PR breakpoints/27205
2793 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2794 (create_longjmp_master_breakpoint_names): New function, factored out
2795 of ...
2796 (create_longjmp_master_breakpoint): ... here. Only try to install
2797 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2798 breakpoint in libc.so failed.
2799
59b59f08
LS
28002021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2801
2802 PR gdb/27133
2803 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2804 unique_ptr is released when the wrapped pointer is kept for later
2805 use.
2806
807f647c
MM
28072021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2808
2809 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2810 BLR and BR instructions.
2811 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2812 (enum aarch64_masks): New.
2813
4ef367bf
TT
28142021-01-26 Tom Tromey <tromey@adacore.com>
2815
2816 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2817 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2818 (windows_init_thread_list, windows_nat::handle_load_dll)
2819 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2820 (windows_nat_target::resume)
2821 (windows_nat_target::get_windows_debug_event)
2822 (windows_nat_target::interrupt, windows_xfer_memory)
2823 (windows_nat_target::close): Update.
2824 * nat/windows-nat.c (DEBUG_EVENTS): Use
2825 debug_prefixed_printf_cond.
2826 (matching_pending_stop, fetch_pending_stop)
2827 (continue_last_debug_event): Update.
2828
4cb1265b
MS
28292020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2830
2831 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2832 elfcore_write_file_note.
2833
d0cc52bd
SV
28342021-01-26 Shahab Vahedi <shahab@synopsys.com>
2835
2836 * arc-tdep.c (arc_add_reggroups): New function.
2837 (arc_gdbarch_init): Call arc_add_reggroups.
2838
ac3571d9 28392021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
2840
2841 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2842
9f6c202e
TV
28432021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2844 Simon Marchi <simon.marchi@polymtl.ca>
2845 Tom de Vries <tdevries@suse.de>
2846
2847 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2848 DW_AT_ranges.
2849
a625a8c9
TT
28502021-01-25 Tom Tromey <tromey@adacore.com>
2851
2852 * dwarf2/read.c (get_mpz): New function.
2853 (get_dwarf2_rational_constant): Use it.
2854
19184910
TT
28552021-01-25 Tom Tromey <tromey@adacore.com>
2856
2857 * ada-lang.c (resolve_subexp): Handle array context.
2858
b10bae18
TT
28592021-01-23 Tom Tromey <tom@tromey.com>
2860
2861 PR compile/25575
2862 * compile/compile-loc2c.c (note_register): New function.
2863 (pushf_register_address, pushf_register): Use it.
2864
3637a558
TT
28652021-01-23 Tom Tromey <tom@tromey.com>
2866
2867 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2868 Change type of "registers_used".
2869 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2870 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2871 (locexpr_generate_c_location, loclist_generate_c_location): Change
2872 type of "registers_used".
2873 * compile/compile.h (compile_dwarf_expr_to_c)
2874 (compile_dwarf_bounds_to_c): Update.
2875 * compile/compile-loc2c.c (pushf_register_address)
2876 (pushf_register, do_compile_dwarf_expr_to_c)
2877 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2878 of "registers_used".
2879 * compile/compile-c.h (generate_c_for_variable_locations):
2880 Update.
2881 * compile/compile-c-symbols.c (generate_vla_size)
2882 (generate_c_for_for_one_variable): Change type of
2883 "registers_used".
2884 (generate_c_for_variable_locations): Return std::vector.
2885 * compile/compile-c-support.c (generate_register_struct): Change
2886 type of "registers_used".
2887 (compute): Update.
2888
9f7f6cb8
TT
28892021-01-23 Tom Tromey <tom@tromey.com>
2890
2891 * compile/compile-internal.h (class compile_instance)
2892 <set_arguments>: Change return type.
2893 * compile/compile.c (compile_to_object): Remove call to reset.
2894 (compile_instance::set_arguments): Change return type.
2895
dd5ca05f
SM
28962021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2897
2898 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2899 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2900
d3ee35db
LS
29012021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2902
2903 * Makefile.in (SELFTESTS_SRCS): Add
2904 unittests/gdb_tilde_expand-selftests.c.
2905 * unittests/gdb_tilde_expand-selftests.c: New file.
2906
9d2d8a16
AB
29072021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2908
2909 PR cli/25956
2910 * NEWS: Mention new command.
2911 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2912 (version_style): Define.
2913 (cli_style_option::cli_style_option): Add intensity parameter, and
2914 use as appropriate.
2915 (_initialize_cli_style): Register version style set/show commands.
2916 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2917 (version_style): Declare.
2918 * top.c (print_gdb_version): Use version_stype, and styled_string
2919 to print the GDB version string.
2920
e7b43072
AB
29212021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2922
2923 * utils.c (emit_style_escape): Only emit an escape sequence if the
2924 requested style is different than the current applied style.
2925 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2926 current applied_style.
2927 (fputs_styled): Remove is_default check.
2928 (fputs_styled_unfiltered): Likewise.
2929 (vfprintf_styled_no_gdbfmt): Likewise.
2930
2189c312
SM
29312021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2932
2933 * remote.h (remote_debug_printf): New.
2934 (remote_debug_printf_nofunc): New.
2935 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2936 * remote.c: Use above macros throughout file.
2937
02349803
SM
29382021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2939
2940 * remote.h (remote_debug): Change to bool.
2941 * remote.c (remote_debug): Change to bool.
2942 (_initialize_remote): Adjust.
2943
cda09ec9
SM
29442021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2945
2946 * target.h (remote_debug): Move to...
2947 * remote.h (remote_debug): ... here.
2948 * top.c (remote_debug): Move to...
2949 * remote.c (remote_debug): ... here.
2950 * remote-sim.c: Include remote.h.
2951
baf2b57f
SM
29522021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2953
2954 * cli/cli-cmds.c (show_remote_debug): Remove.
2955 (show_remote_timeout): Remove.
2956 (_initialize_cli_cmds): Don't register commands.
2957 * remote.c (show_remote_debug): Move here.
2958 (show_remote_timeout): Move here.
2959 (_initialize_remote): Register commands.
2960
344e9841
SM
29612021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2962
2963 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2964 type::objfile method instead.
2965
30625020
SM
29662021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2967
2968 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2969 use the type::is_objfile_owned method.
2970
5b7d941b
SM
29712021-01-22 Simon Marchi <simon.marchi@efficios.com>
2972
2973 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2974 (TYPE_OWNER): Remove.
2975 (TYPE_OBJFILE): Adjust.
2976 (struct main_type) <flag_objfile_owned>: Rename to...
2977 <m_flag_objfile_owned>: ... this.
2978 <owner>: Rename to...
2979 <m_owner>: ... this.
2980 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2981 methods.
2982 (TYPE_ALLOC): Adjust.
2983 * gdbtypes.c (alloc_type): Adjust.
2984 (alloc_type_arch): Adjust.
2985 (alloc_type_copy): Adjust.
2986 (get_type_arch): Adjust.
2987 (smash_type): Adjust.
2988 (lookup_array_range_type): Adjust.
2989 (recursive_dump_type): Adjust.
2990 (copy_type_recursive): Adjust.
2991 * compile/compile-c-types.c (convert_func): Adjust.
2992 (convert_type_basic): Adjust.
2993 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2994 Adjust.
2995 * language.c
2996 (language_arch_info::type_and_symbol::alloc_type_symbol):
2997 Adjust.
2998
d5d24e12
LM
29992021-01-21 Luis Machado <luis.machado@linaro.org>
3000
3001 * coffread.c (enter_linenos): Passing string to complaint.
3002 * valops.c (value_assign): Make array view.
3003
a59902a7
SM
30042021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3005
3006 * auto-load.h (debug_auto_load): Move here.
3007 (auto_load_debug_printf): New.
3008 * auto-load.c: Use auto_load_debug_printf.
3009 (debug_auto_load): Move to header.
3010 * linux-thread-db.c (try_thread_db_load): Use
3011 auto_load_debug_printf.
3012 * main.c (captured_main_1): Likewise.
3013
d3abc0ce
SM
30142021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3015
3016 * f-valprint.c (f77_array_offset_tbl): Remove.
3017
1e15fcac
SM
30182021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3019
3020 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3021
439706e6
SM
30222021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3023
3024 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3025 of gdb_select.
3026
325d39e4
HD
30272021-01-21 Hannes Domani <ssbssa@yahoo.de>
3028
3029 PR python/19151
3030 * python/py-breakpoint.c (bppy_get_location): Handle
3031 bp_hardware_breakpoint.
3032 (bppy_init): Likewise.
3033 (gdbpy_breakpoint_created): Likewise.
3034
7cb6d92a
SM
30352021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3036
3037 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3038
d4dd4fca
SM
30392021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3040
3041 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3042 (_initialize_gdb_bfd): Adjust.
3043
de53369b
SM
30442021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3045
3046 PR gdb/26828
3047 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3048
17e593e9
SM
30492021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3050
3051 * dwarf2/read.c (follow_die_offset): Add logging.
3052 (dwarf2_per_objfile::age_comp_units): Add logging.
3053
6bd434d6
SM
30542021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3055
3056 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3057 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3058 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3059 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3060 * arm-tdep.c (struct frame_unwind): Make static.
3061 * auto-load.c (auto_load_safe_path_vec): Make static.
3062 * csky-tdep.c (csky_stub_unwind): Make static.
3063 * gdbarch.c (gdbarch_data_registry): Make static.
3064 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3065 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3066 * i386-tdep.c (i386_frame_setup_skip_insns,
3067 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3068 Make static.
3069 * infrun.c (observer_mode): Make static.
3070 * linux-nat.c (sigchld_action): Make static.
3071 * linux-thread-db.c (thread_db_list): Make static.
3072 * maint-test-options.c (maintenance_test_options_list):
3073 * mep-tdep.c (mep_csr_registers): Make static.
3074 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3075 (stats): Make static.
3076 * nat/linux-osdata.c (struct osdata_type): Make static.
3077 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3078 * progspace.c (last_program_space_num): Make static.
3079 * python/py-param.c (struct parm_constant): Remove struct type
3080 name.
3081 (parm_constants): Make static.
3082 * python/py-record-btrace.c (btpy_list_methods): Make static.
3083 * python/py-record.c (recpy_gap_type): Make static.
3084 * record.c (record_goto_cmdlist): Make static.
3085 * regcache.c (regcache_descr_handle): Make static.
3086 * registry.h (DEFINE_REGISTRY): Make definition static.
3087 * symmisc.c (std_in, std_out, std_err): Make static.
3088 * top.c (previous_saved_command_line): Make static.
3089 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3090 static.
3091 * unittests/command-def-selftests.c (nr_duplicates,
3092 nr_invalid_prefixcmd, lists): Make static.
3093 * unittests/observable-selftests.c (test_notification): Make
3094 static.
3095 * unittests/optional/assignment/1.cc (counter): Make static.
3096 * unittests/optional/assignment/2.cc (counter): Make static.
3097 * unittests/optional/assignment/3.cc (counter): Make static.
3098 * unittests/optional/assignment/4.cc (counter): Make static.
3099 * unittests/optional/assignment/5.cc (counter): Make static.
3100 * unittests/optional/assignment/6.cc (counter): Make static.
3101
a6c11cbb
JS
31022021-01-20 Joel Sherrill <joel@rtems.org>
3103
3104 PR gdb/27219
3105 * remote.c (struct remote_thread_info) <resume_state>: Rename
3106 to...
3107 <get_resume_state>: ... this.
3108 (remote_target::resume): Adjust.
3109 (remote_target::commit_resume): Adjust.
3110 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3111
6f52fdf4
SDJ
31122021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3113 Tom Tromey <tom@tromey.com>
3114
3115 * stap-probe.c (stap_parse_single_operand): Handle '!'
3116 operator.
3117 (stap_parse_argument_conditionally): Likewise.
3118 Skip spaces after processing open-parenthesis sub-expression.
3119 (stap_parse_argument_1): Skip spaces after call to
3120 stap_parse_argument_conditionally.
3121 Handle case when right-side expression is a parenthesized
3122 sub-expression.
3123 Skip spaces after call to stap_parse_argument_1.
3124
1c3b85ad
LS
31252021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3126
3127 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3128
a9a87d35
LM
31292021-01-19 Luis Machado <luis.machado@linaro.org>
3130
3131 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3132 memory and save data.
3133 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3134 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3135 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3136 (trad_frame_value_bytes_p): Remove.
3137 (trad_frame_reset_saved_regs): Adjust documentation.
3138 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3139 constructor and reset the state of the registers.
3140 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3141 (trad_frame_value_bytes_p, trad_frame_set_value)
3142 (trad_frame_set_realreg, trad_frame_set_addr)
3143 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3144 (trad_frame_set_reg_realreg): Update to call member function.
3145 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3146 (trad_frame_get_prev_register): Likewise.
3147
3148 * aarch64-tdep.c (aarch64_analyze_prologue)
3149 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3150 (aarch64_prologue_prev_register): Update to use member functions.
3151 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3152 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3153 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3154 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3155 (arm_make_epilogue_frame_cache): Likewise.
3156 * avr-tdep.c (avr_frame_unwind_cache)
3157 (avr_frame_prev_register): Likewise.
3158 * cris-tdep.c (cris_scan_prologue): Likewise.
3159 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3160 * frv-tdep.c (frv_analyze_prologue): Likewise.
3161 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3162 * lm32-tdep.c (lm32_frame_cache): Likewise.
3163 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3164 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3165 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3166 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3167 (reset_saved_regs): Adjust to set realreg.
3168 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3169 call member functions.
3170 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3171 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3172 (s390_backchain_frame_unwind_cache): Likewise.
3173 * score-tdep.c (score7_analyze_prologue)
3174 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3175 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3176 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3177 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3178 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3179 * tilegx-tdep.c (tilegx_analyze_prologue)
3180 (tilegx_frame_cache): Likewise.
3181 * v850-tdep.c (v850_frame_cache): Likewise.
3182 * vax-tdep.c (vax_frame_cache): Likewise.
3183
bdec2917
LM
31842021-01-19 Luis Machado <luis.machado@linaro.org>
3185
3186 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3187 of buffer + length.
3188 (put_frame_register_bytes): Likewise.
3189 Adjust documentation.
3190 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3191 (safe_frame_unwind_memory): Likewise.
3192 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3193 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3194 gdb::array_view.
3195 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3196 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3197 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3198 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3199 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3200 * dwarf2/loc.c (rw_pieced_value): Likewise.
3201 * hppa-tdep.c (hppa_frame_cache): Likewise.
3202 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3203 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3204 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3205 (i386_linux_rt_sigtramp_start): Likewise.
3206 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3207 * i386-tdep.c (i386_register_to_value): Likewise.
3208 * i387-tdep.c (i387_register_to_value): Likewise.
3209 * ia64-tdep.c (ia64_register_to_value): Likewise.
3210 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3211 (m32r_linux_rt_sigtramp_start): Likewise.
3212 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3213 * m68k-tdep.c (m68k_register_to_value): Likewise.
3214 * mips-tdep.c (mips_register_to_value)
3215 (mips_value_to_register): Likewise.
3216 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3217 (ppcfbsd_sigtramp_frame_cache): Likewise.
3218 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3219 (ppcobsd_sigtramp_frame_cache): Likewise.
3220 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3221 (rs6000_register_to_value): Likewise.
3222 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3223 * tramp-frame.c (tramp_frame_start): Likewise.
3224 * valops.c (value_assign): Likewise.
3225
ccbe4c82
LM
32262021-01-19 Luis Machado <luis.machado@linaro.org>
3227
3228 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3229 array_view.
3230 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3231 instead of buffer and size.
3232 (trad_frame_set_reg_value_bytes): Likewise.
3233 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3234 (trad_frame_set_value_bytes): Likewise.
3235
0e7620dc
MF
32362021-01-18 Mike Frysinger <vapier@gentoo.org>
3237
3238 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3239
6a9ad81c
AB
32402021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3241
3242 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3243 (riscv_fbsd_gregset): Use riscv_supply_regset.
3244 (riscv_fbsd_fpregset): Likewise.
3245 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3246 (riscv_linux_fregset): Likewise.
3247 * riscv-tdep.c (riscv_supply_regset): Define new function.
3248 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3249
d3d7d1ba
TV
32502021-01-18 Tom de Vries <tdevries@suse.de>
3251
3252 PR tdep/27172
3253 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3254 New macro.
3255 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3256 for SEGV_BNDERR.
3257
aa2838cc
SM
32582021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3259
3260 * remote.c (class remote_target) <remote_hostio_send_command,
3261 remote_hostio_parse_result>: Constify parameter.
3262 (remote_hostio_parse_result): Likewise.
3263 (remote_target::remote_hostio_send_command): Adjust.
3264 (remote_target::remote_hostio_pread_vFile): Adjust.
3265 (remote_target::fileio_readlink): Adjust.
3266 (remote_target::fileio_fstat): Adjust.
3267
b5c8f22d
SM
32682021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3269
3270 * remote.c (remote_target::start_remote): Move wait_status to
3271 narrower scope.
3272
e3b2741b
SM
32732021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3274
3275 * remote.c (class remote_target):
3276 <add_current_inferior_and_thread>: Constify parameter.
3277 (stop_reply_extract_thread): Likewise.
3278 (remote_target::get_current_thread): Likewise.
3279 (remote_target::add_current_inferior_and_thread): Likewise.
3280
cecb1912
SM
32812021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3282
3283 * remote.c (class remote_target)
3284 <remote_unpack_thread_info_response,
3285 parse_threadlist_response>: Constify parameter and/or return
3286 value and or local variable.
3287 (stub_unpack_int): Likewise.
3288 (unpack_nibble): Likewise.
3289 (unpack_byte): Likewise.
3290 (unpack_int): Likewise.
3291 (unpack_string): Likewise.
3292 (unpack_threadid): Likewise.
3293 (remote_target::remote_unpack_thread_info_response): Likewise.
3294 (remote_target::parse_threadlist_response): Likewise.
3295
5a11fff0
AB
32962021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3297
3298 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3299
17e89137
LS
33002021-01-14 Lancelot Six <lsix@lancelotsix.com>
3301
3302 * MAINTAINERS (Write After Approval): Add myself.
3303
58eadc4b
BE
33042021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3305
3306 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3307 because is_trivially_default_constructible was first implemented with
3308 gcc-5.
3309
5fae2a2c
TV
33102021-01-14 Tom de Vries <tdevries@suse.de>
3311
3312 PR breakpoints/27151
3313 * objfiles.h (in_plt_section): Handle .plt.sec.
3314
8f66807b
AB
33152021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3316
3317 PR gdb/26819
3318 * remote.c
3319 (remote_target::select_thread_for_ambiguous_stop_reply): New
3320 member function.
3321 (remote_target::process_stop_reply): Call
3322 select_thread_for_ambiguous_stop_reply.
3323
bd497355
SM
33242021-01-13 Simon Marchi <simon.marchi@efficios.com>
3325
3326 * record-btrace.c (class record_btrace_target): Remove.
3327 (record_btrace_target::commit_resume): Remove.
3328 * record-full.c (class record_full_target): Remove.
3329 (record_full_target::commit_resume): Remove.
3330
c9d22089
SM
33312021-01-13 Simon Marchi <simon.marchi@efficios.com>
3332
3333 * remote.c (enum class resume_state): New.
3334 (struct resumed_pending_vcont_info): New.
3335 (struct remote_thread_info) <resume_state, set_not_resumed,
3336 set_resumed_pending_vcont, resumed_pending_vcont_info,
3337 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3338 New.
3339 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3340 (remote_target::remote_add_thread): Adjust.
3341 (remote_target::process_initial_stop_replies): Adjust.
3342 (remote_target::resume): Adjust.
3343 (remote_target::commit_resume): Rely on state in
3344 remote_thread_info and not on tp->executing.
3345 (remote_target::process_stop_reply): Adjust.
3346
d8d1feb4
SM
33472021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3348
3349 * arc-tdep.h (arc_debug_printf): New.
3350 * arc-tdep.c: Use arc_debug_printf.
3351 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3352 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3353 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3354
fb0f5031
SM
33552021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3356
3357 * arc-tdep.h (arc_debug): Change type to bool.
3358 * arc-tdep.c (arc_debug): Change type to bool.
3359 (arc_analyze_prologue): Adjust.
3360 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3361 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3362
5bf7e91b
SM
33632021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3364
3365 * auto-load.c (auto_load_objfile_script_1): Use bool.
3366 (execute_script_contents): Use bool.
3367
db972fce
SM
33682021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3369
3370 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3371 comment here.
3372 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3373 comment to header.
3374 * extension-priv.h (struct extension_language_script_ops)
3375 <auto_load_enabled>: Return bool.
3376 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3377 comment here.
3378 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3379 comment to header.
3380 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3381 move comment here.
3382 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3383 move comment to header.
3384 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3385 move comment here.
3386 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3387 move comment to header.
3388
5e12f48f
SM
33892021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3390
3391 * auto-load.h (file_is_auto_load_safe): Change return type to
3392 bool, move comment here.
3393 * auto-load.c (file_is_auto_load_safe): Change return type and
3394 advice_printed to bool. Move comment to header.
3395
54ca9002
SM
33962021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3397
3398 * jit.c (jit_debug_printf): New, use throughout file.
3399
24a7f1b5
SM
34002021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3401
3402 * infrun.c (normal_stop): Fix indentation.
3403
fe7a351a
SM
34042021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3405
3406 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3407 declarations to ...
3408 * symfile.h: ... here.
3409 * symfile.c: Update doc.
3410
16e9019e
SM
34112021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3412
3413 * target.h (baud_rate, serial_parity): Move declarations...
3414 * serial.h: ... here.
3415 * main.c: Include serial.h.
3416 * serial.c (baud_rate, serial_parity): Update doc.
3417
b2f2ae0d
SM
34182021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3419
3420 * top.c (pre_init_ui_hook): Remove.
3421
5291fe3c
SP
34222021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3423
3424 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3425 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3426 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3427 * features/aarch64-fpu.xml: Add bfloat16 type.
3428
ce38f5ed
AB
34292021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3432
7c654b71
AB
34332021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3434
3435 * f-exp.y (dot_ops): Rename to...
3436 (fortran_operators): ...this. Add a header comment. Add symbol
3437 based operators.
3438 (yylex): Update to use fortran_operators not dot_ops. Remove
3439 special handling for '**', this is now included in
3440 fortran_operators.
3441
c6185dce
SM
34422021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3443
3444 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3445 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3446 * aarch64-tdep.c: Use aarch64_debug_printf.
3447
eef401dc
SM
34482021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3449
3450 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3451 file.
3452
062eaacb
SM
34532021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3454
3455 * jit.c (jit_debug): Change type to bool.
3456 (_initialize_jit): Adjust.
3457
54585eee
TT
34582021-01-09 Tom Tromey <tom@tromey.com>
3459
3460 PR compile/23672
3461 * compile/compile.c (compile_to_object): Avoid crash when
3462 osabi_triplet_regexp returns NULL.
3463
bc167b6b
TT
34642021-01-09 Tom Tromey <tom@tromey.com>
3465
3466 * tracepoint.h (class collection_list) <append_exp>: Take a
3467 std::string.
3468 * tracepoint.c (collection_list::append_exp): Take a std::string.
3469 (encode_actions_1): Update.
3470
8fc48b79
TT
34712021-01-08 Tom Tromey <tromey@adacore.com>
3472
3473 * parse.c (parse_expression): Add void_context_p parameter. Use
3474 parse_exp_in_context.
3475 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3476 parse_expression.
3477 (print_command, call_command): Update.
3478 * expression.h (parse_expression): Add void_context_p parameter.
3479
3c8c6de2
AB
34802021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3481
3482 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3483 for internalvar components that have a dynamic location.
3484
1940319c
TV
34852021-01-08 Tom de Vries <tdevries@suse.de>
3486
3487 PR gdb/26881
3488 * breakpoint.c (create_exception_master_breakpoint_probe)
3489 (create_exception_master_breakpoint_hook): Factor out
3490 of ...
3491 (create_exception_master_breakpoint): ... here. Only try to install
3492 the master exception breakpoint in objfile.debug using the
3493 _Unwind_DebugHook method, if the install using probes in objfile
3494 failed.
3495
e3436813
AB
34962021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3497
3498 * f-lang.c (fortran_value_subarray): Call value_from_component.
3499
e904f56d
MF
35002021-01-07 Mike Frysinger <vapier@gentoo.org>
3501
3502 * remote-sim.c: Include memory-map.h.
3503 (gdbsim_target): Define memory_map override.
3504 (gdbsim_target::memory_map): Define.
3505
959d6a67
TT
35062021-01-07 Tom Tromey <tromey@adacore.com>
3507
3508 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3509
d4813f10
TT
35102021-01-07 Tom Tromey <tromey@adacore.com>
3511
3512 * ada-lang.c (add_component_interval): Start loop using vector's
3513 updated size.
3514
b49180ac
TT
35152021-01-06 Tom Tromey <tromey@adacore.com>
3516
3517 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3518 Do not cast result.
3519 * valarith.c (fixed_point_binop): Handle multiplication
3520 and division specially.
3521 * valops.c (value_to_gdb_mpq): New function.
3522 (value_cast_to_fixed_point): Use it.
3523
55195361
HD
35242021-01-05 Hannes Domani <ssbssa@yahoo.de>
3525
3526 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3527 Call wnoutrefresh instead of tui_win_info::refresh_window.
3528
1b6d4bb2
HD
35292021-01-05 Hannes Domani <ssbssa@yahoo.de>
3530
3531 * tui/tui-source.c (tui_source_window::show_line_number):
3532 Redraw second space after line number.
3533
b5ff370e
HD
35342021-01-05 Hannes Domani <ssbssa@yahoo.de>
3535
3536 PR tui/26927
3537 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3538 Fix source pad size in prefresh.
3539 (tui_source_window_base::show_source_content): Grow source pad
3540 if necessary.
3541
c68ea49f
MF
35422021-01-04 Mike Frysinger <vapier@gentoo.org>
3543
3544 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3545 (bfin_frame_align): Use align_down.
3546
e4ad960a
TV
35472021-01-04 Tom de Vries <tdevries@suse.de>
3548
3549 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3550 terminators that do not terminate anything.
3551
3ec3145c
SM
35522021-01-04 Simon Marchi <simon.marchi@efficios.com>
3553
3554 * debug.c (debug_print_depth): New.
3555 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3556 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3557 * infrun.c (start_step_over): Use
3558 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3559 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3560 INFRUN_SCOPED_DEBUG_START_END.
3561 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3562
e71daf80
SM
35632021-01-04 Simon Marchi <simon.marchi@efficios.com>
3564
3565 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3566
335709bc
SM
35672021-01-04 Simon Marchi <simon.marchi@efficios.com>
3568
3569 * utils.c (vfprintf_unfiltered): Print timestamp only when
3570 previous debug output ended with a newline.
3571
098caef4
LM
35722021-01-04 Luis Machado <luis.machado@linaro.org>
3573
3574 Update all users of trad_frame_saved_reg to use the new member
3575 functions.
3576
3577 Remote all struct keywords from declarations of trad_frame_saved_reg
3578 types, except on forward declarations.
3579
3580 * aarch64-tdep.c: Update.
3581 * alpha-mdebug-tdep.c: Update.
3582 * alpha-tdep.c: Update.
3583 * arc-tdep.c: Update.
3584 * arm-tdep.c: Update.
3585 * avr-tdep.c: Update.
3586 * cris-tdep.c: Update.
3587 * csky-tdep.c: Update.
3588 * frv-tdep.c: Update.
3589 * hppa-linux-tdep.c: Update.
3590 * hppa-tdep.c: Update.
3591 * hppa-tdep.h: Update.
3592 * lm32-tdep.c: Update.
3593 * m32r-linux-tdep.c: Update.
3594 * m32r-tdep.c: Update.
3595 * m68hc11-tdep.c: Update.
3596 * mips-tdep.c: Update.
3597 * moxie-tdep.c: Update.
3598 * riscv-tdep.c: Update.
3599 * rs6000-tdep.c: Update.
3600 * s390-linux-tdep.c: Update.
3601 * s390-tdep.c: Update.
3602 * score-tdep.c: Update.
3603 * sparc-netbsd-tdep.c: Update.
3604 * sparc-sol2-tdep.c: Update.
3605 * sparc64-fbsd-tdep.c: Update.
3606 * sparc64-netbsd-tdep.c: Update.
3607 * sparc64-obsd-tdep.c: Update.
3608 * sparc64-sol2-tdep.c: Update.
3609 * tilegx-tdep.c: Update.
3610 * v850-tdep.c: Update.
3611 * vax-tdep.c: Update.
3612
3613 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3614 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3615
3616 * trad-frame.c: Update.
3617 Remove TF_REG_* enum.
3618 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3619 a trivially-constructible struct.
3620 (trad_frame_reset_saved_regs): Adjust to use member function.
3621 (trad_frame_value_p): Likewise.
3622 (trad_frame_addr_p): Likewise.
3623 (trad_frame_realreg_p): Likewise.
3624 (trad_frame_value_bytes_p): Likewise.
3625 (trad_frame_set_value): Likewise.
3626 (trad_frame_set_realreg): Likewise.
3627 (trad_frame_set_addr): Likewise.
3628 (trad_frame_set_unknown): Likewise.
3629 (trad_frame_set_value_bytes): Likewise.
3630 (trad_frame_get_prev_register): Likewise.
3631 * trad-frame.h: Update.
3632 (trad_frame_saved_reg_kind): New enum.
3633 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3634 <m_kind, m_reg>: New member fields.
3635 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3636 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3637 <is_addr, is_unknown, is_value_bytes>: New member functions.
3638
9898e882
SM
36392021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3640
3641 * target-float.c: Fix typos.
3642
b66b4e65
HD
36432021-01-02 Hannes Domani <ssbssa@yahoo.de>
3644
3645 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3646
b5b5650a
JB
36472021-01-01 Joel Brobecker <brobecker@adacore.com>
3648
3649 * gdbarch.sh: Update copyright year range.
3650
3666a048
JB
36512021-01-01 Joel Brobecker <brobecker@adacore.com>
3652
3653 Update copyright year range in copyright header of all GDB files.
3654
ff7e39b6
JB
36552021-01-01 Joel Brobecker <brobecker@adacore.com>
3656
3657 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3658 to the list of directories to update.
3659
2b47c078
JB
36602021-01-01 Joel Brobecker <brobecker@adacore.com>
3661
3662 * top.c (print_gdb_version): Update copyright year.
3663
476923f1 36642021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 3665
476923f1 3666 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 3667
476923f1 3668For older changes see ChangeLog-2020.
c906108c
SS
3669\f
3670Local Variables:
3671mode: change-log
3672left-margin: 8
3673fill-column: 74
3674version-control: never
57da7796 3675coding: utf-8
c906108c 3676End:
This page took 2.974021 seconds and 4 git commands to generate.