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