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