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