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