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