Commit | Line | Data |
---|---|---|
fe830662 TT |
1 | 2020-09-16 Tom Tromey <tromey@adacore.com> |
2 | ||
3 | PR gdb/26598: | |
4 | * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym. | |
5 | ||
fe5ddfc3 JB |
6 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
7 | ||
8 | * fbsd-nat.c (fbsd_nat_target::wait): Always check for | |
9 | PL_FLAG_EXEC. | |
10 | (fbsd_nat_target::insert_exec_catchpoint) | |
11 | (fbsd_nat_target::remove_exec_catchpoint): Always define. | |
12 | * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint) | |
13 | (fbsd_nat_target::remove_exec_catchpoint): Always declare. | |
14 | ||
e911c666 JB |
15 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
16 | ||
17 | * configure.ac: Remove check for kinfo_getvmmap(). | |
18 | * configure, config.in: Regenerate. | |
19 | * fbsd-nat.c (fbsd_read_mapping): Remove | |
20 | (fbsd_nat_target::find_memory_regions): Remove the procfs version. | |
21 | (fbsd_nat_target::info_proc): Assume kinfo_getfile() and | |
22 | kinfo_get_vmmap() are always present. | |
23 | ||
1f17d372 JB |
24 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
25 | ||
26 | * fbsd-nat.c: Always include support for | |
27 | TARGET_OBJECT_SIGNAL_INFO. | |
28 | ||
bcb1da7f JB |
29 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
30 | ||
31 | * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use | |
32 | sysctl and remove procfs fallback. | |
33 | ||
5515f729 JB |
34 | 2020-09-16 John Baldwin <jhb@FreeBSD.org> |
35 | ||
36 | * fbsd-nat.c: Assume PT_LWPINFO is always defined. | |
37 | * fbsd-nat.h: Likewise. | |
38 | ||
da1df1db TBA |
39 | 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
40 | ||
41 | * breakpoint.c (commands_command_1): Make a copy of the 'arg' | |
42 | argument. | |
43 | ||
0e25e767 AB |
44 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
45 | ||
46 | * ada-lang.c (ada_language_data): Delete. | |
47 | (ada_language): Remove references to ada_language_data. | |
48 | * c-lang.c (c_language_data): Delete. | |
49 | (c_language): Remove references to c_language_data. | |
50 | (cplus_language_data): Delete. | |
51 | (cplus_language): Remove references to cplus_language_data. | |
52 | (asm_language_data): Delete. | |
53 | (asm_language): Remove references to asm_language_data. | |
54 | (minimal_language_data): Delete. | |
55 | (minimal_language): Remove references to minimal_language_data. | |
56 | * d-lang.c (d_language_data): Delete. | |
57 | (d_language): Remove references to d_language_data. | |
58 | * f-lang.c (f_language_data): Delete. | |
59 | (f_language): Remove references to f_language_data. | |
60 | * go-lang.c (go_language_data): Delete. | |
61 | (go_language): Remove references to go_language_data. | |
62 | * language.c (unknown_language_data): Delete. | |
63 | (unknown_language): Remove references to unknown_language_data. | |
64 | (auto_language_data): Delete. | |
65 | (auto_language): Remove references to auto_language_data. | |
66 | * language.h (language_data): Delete struct. | |
67 | (language_defn): No longer inherit from language_data. | |
68 | * m2-lang.c (m2_language_data): Delete. | |
69 | (m2_language): Remove references to m2_language_data. | |
70 | * objc-lang.c (objc_language_data): Delete. | |
71 | (objc_language): Remove references to objc_language_data. | |
72 | * opencl-lang.c (opencl_language_data): Delete. | |
73 | (opencl_language): Remove references to opencl_language_data. | |
74 | * p-lang.c (pascal_language_data): Delete. | |
75 | (pascal_language): Remove references to pascal_language_data. | |
76 | * rust-lang.c (rust_language_data): Delete. | |
77 | (rust_language): Remove references to rust_language_data. | |
78 | ||
b7c6e27d AB |
79 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
80 | ||
81 | * ada-lang.c (ada_language_data): Remove la_op_print_tab | |
82 | initializer. | |
83 | (ada_language::opcode_print_table): New member function. | |
84 | * c-lang.c (c_language_data): Remove la_op_print_tab initializer. | |
85 | (c_language::opcode_print_table): New member function. | |
86 | (cplus_language_data): Remove la_op_print_tab initializer. | |
87 | (cplus_language::opcode_print_table): New member function. | |
88 | (asm_language_data): Remove la_op_print_tab initializer. | |
89 | (asm_language::opcode_print_table): New member function. | |
90 | (minimal_language_data): Remove la_op_print_tab initializer. | |
91 | (minimal_language::opcode_print_table): New member function. | |
92 | * d-lang.c (d_language_data): Remove la_op_print_tab initializer. | |
93 | (d_language::opcode_print_table): New member function. | |
94 | * expprint.c (print_subexp_standard): Update call to | |
95 | opcode_print_table. | |
96 | (op_string): Likewise. | |
97 | * f-lang.c (f_language_data): Remove la_op_print_tab initializer. | |
98 | (f_language::opcode_print_table): New member function. | |
99 | * go-lang.c (go_language_data): Remove la_op_print_tab | |
100 | initializer. | |
101 | (go_language::opcode_print_table): New member function. | |
102 | * language.c (unknown_language_data): Remove la_op_print_tab | |
103 | initializer. | |
104 | (unknown_language::opcode_print_table): New member function. | |
105 | (auto_language_data): Remove la_op_print_tab initializer. | |
106 | (auto_language::opcode_print_table): New member function. | |
107 | * language.h (language_data): Remove la_op_print_tab field. | |
108 | (language_defn::opcode_print_table): Declare new member function. | |
109 | * m2-lang.c (m2_language_data): Remove la_op_print_tab | |
110 | initializer. | |
111 | (m2_language::opcode_print_table): New member function. | |
112 | * objc-lang.c (objc_language_data): Remove la_op_print_tab | |
113 | initializer. | |
114 | (objc_language::opcode_print_table): New member function. | |
115 | * opencl-lang.c (opencl_language_data): Remove la_op_print_tab | |
116 | initializer. | |
117 | (opencl_language::opcode_print_table): New member function. | |
118 | * p-lang.c (pascal_language_data): Remove la_op_print_tab | |
119 | initializer. | |
120 | (pascal_language::opcode_print_table): New member function. | |
121 | * rust-lang.c (rust_language_data): Remove la_op_print_tab | |
122 | initializer. | |
123 | (rust_language::opcode_print_table): New member function. | |
124 | ||
5aba6ebe AB |
125 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
126 | ||
127 | * ada-lang.c (ada_language_data): Remove la_exp_desc initializer. | |
128 | (ada_language::expression_ops): New member function. | |
129 | * c-lang.c (c_language_data): Remove la_exp_desc initializer. | |
130 | (c_language::expression_ops): New member function. | |
131 | (cplus_language_data): Remove la_exp_desc initializer. | |
132 | (cplus_language::expression_ops): New member function. | |
133 | (asm_language_data): Remove la_exp_desc initializer. | |
134 | (asm_language::expression_ops): New member function. | |
135 | (minimal_language_data): Remove la_exp_desc initializer. | |
136 | (minimal_language::expression_ops): New member function. | |
137 | * d-lang.c (d_language_data): Remove la_exp_desc initializer. | |
138 | (d_language::expression_ops): New member function. | |
139 | * eval.c (evaluate_subexp): Update call to expression_ops. | |
140 | * expprint.c (print_subexp): Likewise. | |
141 | (op_name): Likewise. | |
142 | (dump_subexp_body): Likewise. | |
143 | * f-lang.c (f_language_data): Remove la_exp_desc initializer. | |
144 | (f_language::expression_ops): New member function. | |
145 | * go-lang.c (go_language_data): Remove la_exp_desc initializer. | |
146 | (go_language::expression_ops): New member function. | |
147 | * language.c (language_defn::expression_ops): New function. | |
148 | (unknown_language_data): Remove la_exp_desc initializer. | |
149 | (auto_language_data): Likewise. | |
150 | * language.h (language_data): Remove la_exp_desc field. | |
151 | (language_defn::expression_ops): Declare new member function. | |
152 | * m2-lang.c (m2_language_data): Remove la_exp_desc initializer. | |
153 | (m2_language::expression_ops): New member function. | |
154 | * objc-lang.c (objc_language_data): Remove la_exp_desc | |
155 | initializer. | |
156 | * opencl-lang.c (opencl_language_data): Remove la_exp_desc | |
157 | initializer. | |
158 | (opencl_language::expression_ops): New member function. | |
159 | * p-lang.c (pascal_language_data): Remove la_exp_desc initializer. | |
160 | * parse.c (operator_length): Update call to expression_ops. | |
161 | (exp_iterate): Likewise. | |
162 | * rust-lang.c (rust_language_data): Remove la_exp_desc | |
163 | initializer. | |
164 | (ruse_language::expression_ops): New member function. | |
165 | ||
b63a3f3f AB |
166 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
167 | ||
168 | * ada-lang.c (ada_language_data): Remove la_varobj_ops | |
169 | initializer. | |
170 | (ada_language::varobj_ops): New member function. | |
171 | * c-lang.c (c_language_data): Remove la_varobj_ops | |
172 | initializer. | |
173 | (cplus_language_data): Likewise. | |
174 | (cplus_language::varobj_ops): New member function. | |
175 | (asm_language_data): Remove la_varobj_ops initializer. | |
176 | (minimal_language_data): Likewise. | |
177 | * d-lang.c (d_language_data): Likewise. | |
178 | * f-lang.c (f_language_data): Likewise. | |
179 | * go-lang.c (go_language_data): Likewise. | |
180 | * language.c (language_defn::varobj_ops): New function. | |
181 | (unknown_language_data): Remove la_varobj_ops | |
182 | initializer. | |
183 | (auto_language_data): Likewise. | |
184 | * language.h (language_data): Remove la_varobj_ops field. | |
185 | (language_defn::varobj_ops): Declare new member function. | |
186 | * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer. | |
187 | * objc-lang.c (objc_language_data): Likewise. | |
188 | * opencl-lang.c (opencl_language_data): Likewise. | |
189 | * p-lang.c (pascal_language_data): Likewise. | |
190 | * rust-lang.c (rust_language_data): Likewise. | |
191 | * varobj.c (varobj_create): Update call to varobj_ops. | |
192 | * varobj.h (default_varobj_ops): Delete define. | |
193 | ||
1ac14a04 AB |
194 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
195 | ||
196 | * ada-lang.c (ada_language_data): Remove la_macro_expansion | |
197 | initializer. | |
198 | * c-lang.c (c_language_data): Likewise. | |
199 | (c_language::macro_expansion): New member function. | |
200 | (cplus_language_data): Likewise. | |
201 | (cplus_language::macro_expansion): New member function. | |
202 | (asm_language_data): Likewise. | |
203 | (asm_language::macro_expansion): New member function. | |
204 | (minimal_language_data): Likewise. | |
205 | (minimal_language::macro_expansion): New member function. | |
206 | * d-lang.c (d_language_data): Remove la_macro_expansion | |
207 | initializer. | |
208 | * f-lang.c (f_language_data): Likewise. | |
209 | * go-lang.c (go_language_data): Likewise. | |
210 | * language.c (unknown_language_data): Likewise. | |
211 | (auto_language_data): Likewise. | |
212 | * language.h (language_data): Remove la_macro_expansion field. | |
213 | (language_defn::macro_expansion): New member function. | |
214 | * m2-lang.c (m2_language_data): Remove la_macro_expansion | |
215 | initializer. | |
216 | * objc-lang.c (objc_language_data): Likewise. | |
217 | (objc_language::macro_expansion): New member function. | |
218 | * opencl-lang.c (opencl_language_data): Likewise. | |
219 | (opencl_language::macro_expansion): New member function. | |
220 | * p-lang.c (pascal_language_data): Remove la_macro_expansion | |
221 | initializer. | |
222 | * rust-lang.c (rust_language_data): Likewise. | |
223 | * symtab.c (default_collect_symbol_completion_matches_break_on): | |
224 | Update call to macro_expansion. | |
225 | ||
3a3440fb AB |
226 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
227 | ||
228 | * ada-lang.c (ada_language_data): Remove la_array_ordering | |
229 | initializer. | |
230 | * c-lang.c (c_language_data): Likewise. | |
231 | (cplus_language_data): Likewise. | |
232 | (asm_language_data): Likewise. | |
233 | (minimal_language_data): Likewise. | |
234 | * d-lang.c (d_language_data): Likewise. | |
235 | * dwarf2/read.c (read_array_order): Update for call to | |
236 | array_ordering. | |
237 | * f-lang.c (f_language_data): Remove la_array_ordering | |
238 | initializer. | |
239 | (f_language::array_ordering): New member function. | |
240 | * go-lang.c (go_language_data): Remove la_array_ordering | |
241 | initializer. | |
242 | * language.c (unknown_language_data): Likewise. | |
243 | (auto_language_data): Likewise. | |
244 | * language.h (language_data): Delete la_array_ordering field. | |
245 | (language_defn::array_ordering): New member function. | |
246 | * m2-lang.c (m2_language_data): Remove la_array_ordering | |
247 | initializer. | |
248 | * objc-lang.c (objc_language_data): Likewise. | |
249 | * opencl-lang.c (opencl_language_data): Likewise. | |
250 | * p-lang.c (pascal_language_data): Likewise. | |
251 | * rust-lang.c (rust_language_data): Likewise. | |
252 | ||
0d201fa4 AB |
253 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
254 | ||
255 | * ada-lang.c (ada_language_data): Remove la_case_sensitivity | |
256 | initializer. | |
257 | * c-lang.c (c_language_data): Likewise. | |
258 | (cplus_language_data): Likewise. | |
259 | (asm_language_data): Likewise. | |
260 | (minimal_language_data): Likewise. | |
261 | * d-lang.c (d_language_data): Likewise. | |
262 | * f-lang.c (f_language_data): Likewise. | |
263 | (f_language::case_sensitivity): New member function. | |
264 | * go-lang.c (go_language_data): Remove la_case_sensitivity | |
265 | initializer. | |
266 | * language.c (enum case_mode): Moved here from language.h. | |
267 | (case_mode): Make static. | |
268 | (show_case_command): Update for case_sensitivity being a method. | |
269 | (set_case_command): Likewise. | |
270 | (set_range_case): Likewise. | |
271 | (unknown_language_data): Remove la_case_sensitivity initializer. | |
272 | (auto_language_data): Likewise. | |
273 | * language.h (case_mode): Delete, move enum declaration to | |
274 | language.c. | |
275 | (language_data): Delete la_case_sensitivity field. | |
276 | (language_defn::case_sensitivity): New member function. | |
277 | * m2-lang.c (m2_language_data): Remove la_case_sensitivity | |
278 | initializer. | |
279 | * objc-lang.c (objc_language_data): Likewise. | |
280 | * opencl-lang.c (opencl_language_data): Likewise. | |
281 | * p-lang.c (pascal_language_data): Likewise. | |
282 | * rust-lang.c (rust_language_data): Likewise. | |
283 | ||
efdf6a73 AB |
284 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
285 | ||
286 | * ada-lang.c (ada_language_data): Remove la_range_check | |
287 | initializer. | |
288 | * c-lang.c (c_language_data): Likewise. | |
289 | (cplus_language_data): Likewise. | |
290 | (asm_language_data): Likewise. | |
291 | (minimal_language_data): Likewise. | |
292 | * d-lang.c (d_language_data): Likewise. | |
293 | * f-lang.c (f_language_data): Likewise. | |
294 | (f_language::range_checking_on_by_default): New member function. | |
295 | * go-lang.c (go_language_data): Remove la_range_check initializer. | |
296 | * language.c (enum range_mode): Moved here from language.h. | |
297 | (range_mode): Made static. | |
298 | (show_range_command): Update to use | |
299 | range_checking_on_by_default. | |
300 | (set_range_command): Likewise. | |
301 | (set_range_case): Likewise. | |
302 | (unknown_language_data): Remove la_range_check initializer. | |
303 | (auto_language_data): Likewise. | |
304 | * language.h (range_mode): Delete. Enum definition moved to | |
305 | language.c. | |
306 | (language_data): Remove la_range_check field. | |
307 | (language_defn::range_checking_on_by_default): New member | |
308 | function. | |
309 | * m2-lang.c (m2_language_data): Remove la_range_check initializer. | |
310 | (m2_language::range_checking_on_by_default): New member function. | |
311 | * objc-lang.c (objc_language_data): Remove la_range_check | |
312 | initializer. | |
313 | * opencl-lang.c (opencl_language_data): Likewise. | |
314 | * p-lang.c (pascal_language_data): Likewise. | |
315 | (pascal_language::range_checking_on_by_default): New member | |
316 | function. | |
317 | * rust-lang.c (rust_language_data): Remove la_range_check | |
318 | initializer. | |
319 | (rust_language::range_checking_on_by_default): New member | |
320 | function. | |
321 | ||
bf92aec5 AB |
322 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
323 | ||
324 | * dwarf2/read.c (dwarf2_physname): Remove special case for | |
325 | language_go. | |
326 | * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New | |
327 | member function. | |
328 | ||
d3355e4d AB |
329 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
330 | ||
331 | * ada-lang.c (ada_language_data): Remove | |
332 | la_store_sym_names_in_linkage_form_p initializer. | |
333 | (ada_language::store_sym_names_in_linkage_form_p): New member | |
334 | function. | |
335 | * c-lang.c (c_language_data): Remove | |
336 | la_store_sym_names_in_linkage_form_p initializer. | |
337 | (c_language::store_sym_names_in_linkage_form_p): New member | |
338 | function. | |
339 | (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p | |
340 | initializer. | |
341 | (asm_language_data): Likewise. | |
342 | (asm_language::store_sym_names_in_linkage_form_p): New member | |
343 | function. | |
344 | (minimal_language_data): Remove | |
345 | la_store_sym_names_in_linkage_form_p initializer. | |
346 | (minimal_language::store_sym_names_in_linkage_form_p): New member | |
347 | function. | |
348 | * d-lang.c (d_language_data): Remove | |
349 | la_store_sym_names_in_linkage_form_p initializer. | |
350 | * dwarf2/read.c (dwarf2_physname): Update call to | |
351 | store_sym_names_in_linkage_form_p. | |
352 | * f-lang.c (f_language_data): Remove | |
353 | la_store_sym_names_in_linkage_form_p initializer. | |
354 | * go-lang.c (go_language_data): Remove | |
355 | la_store_sym_names_in_linkage_form_p initializer. | |
356 | * language.c (unknown_language_data): Remove | |
357 | la_store_sym_names_in_linkage_form_p initializer. | |
358 | (unknown_language::store_sym_names_in_linkage_form_p): New member | |
359 | function. | |
360 | (auto_language_data): Remove la_store_sym_names_in_linkage_form_p | |
361 | initializer. | |
362 | (auto_language::store_sym_names_in_linkage_form_p): New member | |
363 | function. | |
364 | * language.h (language_data): Remove | |
365 | la_store_sym_names_in_linkage_form_p member variable. | |
366 | (language_defn::store_sym_names_in_linkage_form_p): New member | |
367 | function. | |
368 | * m2-lang.c (m2_language_data): Remove | |
369 | la_store_sym_names_in_linkage_form_p initializer. | |
370 | * objc-lang.c (objc_language_data): Likewise. | |
371 | * opencl-lang.c (opencl_language_data): Likewise. | |
372 | * p-lang.c (pascal_language_data): Likewise. | |
373 | * rust-lang.c (rust_language_data): Likewise. | |
374 | ||
22c12a6c AB |
375 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
376 | ||
377 | * ada-lang.c (ada_language_data): Remove string_lower_bound | |
378 | initializer. | |
379 | * c-lang.c (c_language_data): Likewise. | |
380 | (cplus_language_data): Likewise. | |
381 | (asm_language_data): Likewise. | |
382 | (minimal_language_data): Likewise. | |
383 | * d-lang.c (d_language_data): Likewise. | |
384 | * f-lang.c (f_language_data): Likewise. | |
385 | * go-lang.c (go_language_data): Likewise. | |
386 | * language.c (unknown_language_data): Likewise. | |
387 | (auto_language_data): Likewise. | |
388 | * language.h (language_data): Remove string_lower_bound field. | |
389 | (language_defn::string_lower_bound): New member function. | |
390 | * m2-lang.c (m2_language_data): Remove string_lower_bound | |
391 | initializer. | |
392 | (m2_language::string_lower_bound): New member function. | |
393 | * objc-lang.c (objc_language_data): Remove string_lower_bound | |
394 | initializer. | |
395 | * opencl-lang.c (opencl_language_data): Likewise. | |
396 | * p-lang.c (pascal_language_data): Likewise. | |
397 | * rust-lang.c (rust_language_data): Likewise. | |
398 | * valops.c (value_cstring): Update call to string_lower_bound. | |
399 | (value_string): Likewise. | |
400 | * value.c (allocate_repeated_value): Likewise. | |
401 | ||
1c236ddd AB |
402 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
403 | ||
404 | * valops.c (value_repeat): Fix incorrect argument name in comment. | |
405 | ||
67bd3fd5 AB |
406 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
407 | ||
408 | * ada-lang.c (ada_language_data): Remove c_style_arrays | |
409 | initializer. | |
410 | (ada_language::c_style_arrays_p): New member fuction. | |
411 | * c-lang.c (c_language_data): Remove c_style_arrays | |
412 | initializer. | |
413 | (cplus_language_data): Likewise. | |
414 | (asm_language_data): Likewise. | |
415 | (minimal_language_data): Likewise. | |
416 | * d-lang.c (d_language_data): Likewise. | |
417 | * eval.c (ptrmath_type_p): Update call to c_style_arrays_p. | |
418 | * f-lang.c (f_language_data): Remove c_style_arrays initializer. | |
419 | (f_language::c_style_arrays_p): New member function. | |
420 | * go-lang.c (go_language_data): Remove c_style_arrays initializer. | |
421 | * infcall.c (value_arg_coerce): Update call to c_style_arrays_p. | |
422 | * language.c (unknown_language_data): Remove c_style_arrays | |
423 | initializer. | |
424 | (auto_language_data): Likewise. | |
425 | * language.h (language_data): Remove c_style_arrays field. | |
426 | (language_defn::c_style_arrays_p): New member function. | |
427 | * m2-lang.c (m2_language_data): Remove c_style_arrays initializer. | |
428 | (m2_language::c_style_arrays_p): New member function. | |
429 | * objc-lang.c (objc_language_data): Remove c_style_arrays | |
430 | initializer. | |
431 | * opencl-lang.c (opencl_language_data): Likewise. | |
432 | * p-lang.c (pascal_language_data): Likewise. | |
433 | * rust-lang.c (rust_language_data): Likewise. | |
434 | * valarith.c (value_subscript): Update call to c_style_arrays_p, | |
435 | and update local variable to a bool. | |
436 | * valops.c (value_cast): Update call to c_style_arrays_p. | |
437 | (value_array): Likewise. | |
438 | * value.c (coerce_array): Likewise. | |
439 | ||
85967615 AB |
440 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
441 | ||
442 | * ada-lang.c (ada_language_data): Remove la_language initializer. | |
443 | * c-lang.c (c_language_data): Likewise. | |
444 | (cplus_language_data): Likewise. | |
445 | (asm_language_data): Likewise. | |
446 | (minimal_language_data): Likewise. | |
447 | * d-lang.c (d_language_data): Likewise. | |
448 | * f-lang.c (f_language_data): Likewise. | |
449 | * go-lang.c (go_language_data): Likewise. | |
450 | * language.c (unknown_language_data): Likewise. | |
451 | (auto_language_data): Likewise. | |
452 | * language.h (language_data): Remove la_language field. | |
453 | (language_defn::language_defn): Initialise la_language field. | |
454 | (language_defn::la_language): New member variable. | |
455 | * m2-lang.c (m2_language_data): Remove la_language field. | |
456 | * objc-lang.c (objc_language_data): Likewise. | |
457 | * opencl-lang.c (opencl_language_data): Likewise. | |
458 | * p-lang.c (pascal_language_data): Likewise. | |
459 | * rust-lang.c (rust_language_data): Likewise. | |
460 | ||
e171d6f1 AB |
461 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
462 | ||
463 | * ada-lang.c (ada_extensions): Delete, moved into | |
464 | ada_language::filename_extensions. | |
465 | (ada_language_data): Remove la_filename_extensions initializer. | |
466 | (ada_language::filename_extensions): New member function. | |
467 | * c-lang.c (c_extensions): Delete, moved into | |
468 | c_language::filename_extensions. | |
469 | (c_language_data): Remove la_filename_extensions initializer. | |
470 | (c_language::filename_extensions): New member function. | |
471 | (cplus_extensions): Delete, moved into | |
472 | cplus_language::filename_extensions. | |
473 | (cplus_language_data): Remove la_filename_extensions initializer. | |
474 | (cplus_language::filename_extensions): New member function. | |
475 | (asm_extensions): Delete, moved into | |
476 | asm_language::filename_extensions. | |
477 | (asm_language_data): Remove la_filename_extensions initializer. | |
478 | (asm_language::filename_extensions): New member function. | |
479 | (minimal_language_data): Remove la_filename_extensions | |
480 | initializer. | |
481 | * d-lang.c (d_extensions): Delete, moved into | |
482 | d_language::filename_extensions. | |
483 | (d_language_data): Remove la_filename_extensions initializer. | |
484 | (d_language::filename_extensions): New member function. | |
485 | * f-lang.c (f_extensions): Delete, moved into | |
486 | f_language::filename_extensions. | |
487 | (f_language_data): Remove la_filename_extensions initializer. | |
488 | (f_language::filename_extensions): New member function. | |
489 | * go-lang.c (go_language_data): Remove la_filename_extensions | |
490 | initializer. | |
491 | * language.c (add_set_language_command): Update now that | |
492 | filename_extensions returns a vector. | |
493 | (unknown_language_data): Remove la_filename_extensions | |
494 | initializer. | |
495 | (auto_language_data): Likewise. | |
496 | * language.h (language_data): Remove la_filename_extensions field. | |
497 | (language_defn::filename_extensions): New member function. | |
498 | * m2-lang.c (m2_language_data): Remove la_filename_extensions | |
499 | initializer. | |
500 | * objc-lang.c (objc_extensions): Delete, moved into | |
501 | objc_language::filename_extensions. | |
502 | (objc_language_data): Remove la_filename_extensions initializer. | |
503 | (objc_language::filename_extensions): New member function. | |
504 | * opencl-lang.c (opencl_language_data): Remove | |
505 | la_filename_extensions initializer. | |
506 | * p-lang.c (pascal_extensions): Delete, moved into | |
507 | pascal_language::filename_extensions. | |
508 | (pascal_language_data): Remove la_filename_extensions initializer. | |
509 | (pascal_language::filename_extensions): New member function. | |
510 | * rust-lang.c (rust_extensions): Delete, moved into | |
511 | rust_language::filename_extensions. | |
512 | (rust_language_data): Remove la_filename_extensions initializer. | |
513 | (rust_language::filename_extensions): New member function. | |
514 | * symfile.c (add_filename_language): Add new assert. | |
515 | ||
6f7664a9 AB |
516 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
517 | ||
518 | * ada-lang.c (ada_language_data): Remove la_name and | |
519 | la_natural_name initializers. | |
520 | (ada_language::name): New member function. | |
521 | (ada_language::natural_name): New member function. | |
522 | * c-lang.c (c_language_data): Remove la_name and | |
523 | la_natural_name initializers. | |
524 | (c_language::name): New member function. | |
525 | (c_language::natural_name): New member function. | |
526 | (cplus_language_data): Remove la_name and | |
527 | la_natural_name initializers. | |
528 | (cplus_language::name): New member function. | |
529 | (cplus_language::natural_name): New member function. | |
530 | (asm_language_data): Remove la_name and | |
531 | la_natural_name initializers. | |
532 | (asm_language::name): New member function. | |
533 | (asm_language::natural_name): New member function. | |
534 | (minimal_language_data): Remove la_name and | |
535 | la_natural_name initializers. | |
536 | (minimal_language::name): New member function. | |
537 | (minimal_language::natural_name): New member function. | |
538 | * compile/compile.c (compile_to_object): Update call to | |
539 | lanugage_defn::name. | |
540 | * d-lang.c (d_language_data): Remove la_name and | |
541 | la_natural_name initializers. | |
542 | (d_language::name): New member function. | |
543 | (d_language::natural_name): New member function. | |
544 | * expprint.c (print_subexp_standard): Update call to | |
545 | language_defn::name. | |
546 | (dump_raw_expression): Likewise | |
547 | (dump_prefix_expression): Likewise. | |
548 | * f-lang.c (f_language_data): Remove la_name and | |
549 | la_natural_name initializers. | |
550 | (f_language::name): New member function. | |
551 | (f_language::natural_name): New member function. | |
552 | * go-lang.c (go_language_data): Remove la_name and | |
553 | la_natural_name initializers. | |
554 | (go_language::name): New member function. | |
555 | (go_language::natural_name): New member function. | |
556 | * language.c (show_language_command): Update call to | |
557 | language_defn::name. | |
558 | (set_language_command): Likewise. | |
559 | (language_enum): Likewise. | |
560 | (language_str): Likewise. | |
561 | (add_set_language_command): Likewise, use | |
562 | language_defn::natural_name in the doc string. | |
563 | (unknown_language_data): Remove la_name and | |
564 | la_natural_name initializers. | |
565 | (unknown_language::name): New member function. | |
566 | (unknown_language::natural_name): New member function. | |
567 | (auto_language_data): Remove la_name and | |
568 | la_natural_name initializers. | |
569 | (auto_language::name): New member function. | |
570 | (auto_language::natural_name): New member function. | |
571 | (language_lookup_primitive_type_as_symbol): Update call to | |
572 | language_defn::name. | |
573 | * language.h (language_data): Remove la_name and la_natural_name | |
574 | member variables. | |
575 | (language_defn::name): New member function. | |
576 | (language_defn::natural_name): New member function. | |
577 | * m2-lang.c (m2_language_data): Remove la_name and | |
578 | la_natural_name initializers. | |
579 | (m2_language::name): New member function. | |
580 | (m2_language::natural_name): New member function. | |
581 | * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to | |
582 | language_defn::natural_name. | |
583 | * objc-lang.c (objc_language_data): Remove la_name and | |
584 | la_natural_name initializers. | |
585 | (objc_language::name): New member function. | |
586 | (objc_language::natural_name): New member function. | |
587 | * opencl-lang.c (opencl_language_data): Remove la_name and | |
588 | la_natural_name initializers. | |
589 | (opencl_language::name): New member function. | |
590 | (opencl_language::natural_name): New member function. | |
591 | * p-lang.c (pascal_language_data): Remove la_name and | |
592 | la_natural_name initializers. | |
593 | (pascal_language::name): New member function. | |
594 | (pascal_language::natural_name): New member function. | |
595 | * rust-lang.c (rust_language_data): Remove la_name and | |
596 | la_natural_name initializers. | |
597 | (rust_language::name): New member function. | |
598 | (rust_language::natural_name): New member function. | |
599 | * symtab.c (lookup_language_this): Update call to | |
600 | language_defn::name. | |
601 | ||
5bae7c4e AB |
602 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
603 | ||
604 | * ada-lang.c (ada_language_data): Remove la_name_of_this | |
605 | initializer. | |
606 | * ax-gdb.c (gen_expr): Update call to name_of_this. | |
607 | * c-exp.y (classify_name): Likewise. | |
608 | * c-lang.c (c_language_data): Remove la_name_of_this initializer. | |
609 | (cplus_language_data): Likewise. | |
610 | (cplus_language::name_of_this): New member function. | |
611 | (asm_language_data): Remove la_name_of_this initializer. | |
612 | (minimal_language_data): Likewise. | |
613 | * d-lang.c (d_language_data): Likewise. | |
614 | (d_language::name_of_this): New member function. | |
615 | * expprint.c (print_subexp_standard): Update call to name_of_this. | |
616 | * f-lang.c (f_language_data): Remove la_name_of_this initializer. | |
617 | * go-lang.c (go_language_data): Likewise. | |
618 | * language.c (unknown_language_data): Likewise. | |
619 | (unknown_language::name_of_this): New member function. | |
620 | (auto_language_data): Remove la_name_of_this initializer. | |
621 | (auto_language::name_of_this): New member function. | |
622 | * language.h (language_data): Delete la_name_of_this member | |
623 | variable. | |
624 | (language_defn::name_of_this): New member function. | |
625 | * m2-lang.c (m2_language_data): Remove la_name_of_this | |
626 | initializer. | |
627 | * objc-lang.c (objc_language_data): Likewise. | |
628 | (objc_language::name_of_this): New member function. | |
629 | * opencl-lang.c (opencl_language_data): Remove la_name_of_this | |
630 | initializer. | |
631 | * p-lang.c (pascal_language_data): Likewise. | |
632 | (pascal_language::name_of_this): New member function. | |
633 | * rust-lang.c (rust_language_data): Remove la_name_of_this | |
634 | initializer. | |
635 | * symtab.c (lookup_language_this): Update call to name_of_this. | |
636 | (lookup_symbol_aux): Likewise. | |
637 | * valops.c (value_of_this): Likewise. | |
638 | ||
22e3f3ed AB |
639 | 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com> |
640 | ||
641 | * ada-lang.c (ada_language_data): Remove | |
642 | la_struct_too_deep_ellipsis initializer. | |
643 | (ada_language::struct_too_deep_ellipsis): New member function. | |
644 | * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis | |
645 | initializer. | |
646 | (cplus_language_data): Likewise. | |
647 | (asm_language_data): Likewise. | |
648 | (minimal_language_data): Likewise. | |
649 | * cp-valprint.c (cp_print_value): Update call to | |
650 | struct_too_deep_ellipsis. | |
651 | * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis | |
652 | initializer. | |
653 | * f-lang.c (f_language_data): Likewise. | |
654 | (f_language::struct_too_deep_ellipsis): New member function. | |
655 | * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis | |
656 | initializer. | |
657 | * language.c (unknown_language_data): Likewise. | |
658 | (auto_language_data): Likewise. | |
659 | * language.h (language_data): Delete la_struct_too_deep_ellipsis | |
660 | member variable. | |
661 | (language_defn::struct_too_deep_ellipsis): New member function. | |
662 | * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis | |
663 | initializer.Q | |
664 | * objc-lang.c (objc_language_data): Likewise. | |
665 | * opencl-lang.c (opencl_language_data): Likewise. | |
666 | * p-lang.c (pascal_language_data): Likewise. | |
667 | * rust-lang.c (rust_language_data): Likewise. | |
668 | * valprint.c (val_print_check_max_depth): Update call to | |
669 | struct_too_deep_ellipsis. | |
670 | ||
ed29e1c7 FW |
671 | 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com> |
672 | ||
673 | * MAINTAINERS (Write After Approval): Add myself. | |
674 | ||
12d8f940 TT |
675 | 2020-09-15 Tom Tromey <tom@tromey.com> |
676 | ||
677 | * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>: | |
678 | Remove. | |
679 | ||
6b5a7bc7 TT |
680 | 2020-09-15 Tom Tromey <tom@tromey.com> |
681 | ||
682 | * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR | |
683 | and TYPE_CODE_METHODPTR cases. | |
684 | * c-valprint.c (c_value_print_memberptr): Move to valprint.c. | |
685 | (c_value_print_inner): Update. | |
686 | * valprint.c (generic_value_print_memberptr): New function, from | |
687 | c_value_print_memberptr. | |
688 | (generic_value_print): Use it. Call cplus_print_method_ptr. | |
689 | ||
47f0e2ff TT |
690 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
691 | ||
692 | * python/python-internal.h (PyInt_FromLong): Remove define. | |
693 | * python/py-value.c (convert_value_from_python): Use | |
694 | gdb_py_object_from_longest. | |
695 | * python/py-type.c (typy_get_code): Use | |
696 | gdb_py_object_from_longest. | |
697 | * python/py-symtab.c (salpy_get_line): Use | |
698 | gdb_py_object_from_longest. | |
699 | * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use | |
700 | gdb_py_object_from_longest. | |
701 | * python/py-record.c (recpy_gap_reason_code): Use | |
702 | gdb_py_object_from_longest. | |
703 | * python/py-record-btrace.c (recpy_bt_insn_size) | |
704 | (recpy_bt_func_level, btpy_list_count): Use | |
705 | gdb_py_object_from_longest. | |
706 | * python/py-infthread.c (gdbpy_create_ptid_object): Use | |
707 | gdb_py_object_from_longest. Fix error handling. | |
708 | * python/py-framefilter.c (bootstrap_python_frame_filters): Use | |
709 | gdb_py_object_from_longest. | |
710 | * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use | |
711 | gdb_py_object_from_longest. | |
712 | * python/py-breakpoint.c (bppy_get_type, bppy_get_number) | |
713 | (bppy_get_thread, bppy_get_task, bppy_get_hit_count) | |
714 | (bppy_get_ignore_count): Use gdb_py_object_from_longest. | |
715 | ||
512116ce TT |
716 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
717 | ||
718 | * python/python.c (gdbpy_parameter_value): Use | |
719 | gdb_py_object_from_ulongest. | |
720 | ||
4ab1029c TT |
721 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
722 | ||
723 | * python/py-infevents.c (create_register_changed_event_object): | |
724 | Use gdb_py_object_from_longest. | |
725 | * python/py-exitedevent.c (create_exited_event_object): Use | |
726 | gdb_py_object_from_longest. | |
727 | ||
062534d4 TT |
728 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
729 | ||
730 | * python/python.c (gdbpy_parameter_value): Use | |
731 | gdb_py_object_from_longest. | |
732 | * python/py-type.c (convert_field, typy_range): Use | |
733 | gdb_py_object_from_longest. | |
734 | * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use | |
735 | gdb_py_object_from_longest. | |
736 | * python/py-lazy-string.c (stpy_get_length): Use | |
737 | gdb_py_object_from_longest. | |
738 | * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use | |
739 | gdb_py_object_from_longest. | |
740 | * python/py-infevents.c (create_memory_changed_event_object): Use | |
741 | gdb_py_object_from_longest. | |
742 | * python/py-inferior.c (infpy_get_num): Use | |
743 | gdb_py_object_from_longest. | |
744 | (infpy_get_pid): Likewise. | |
745 | ||
d1cab987 TT |
746 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
747 | ||
748 | * python/python-internal.h (gdb_py_long_from_ulongest): Remove | |
749 | defines. | |
750 | * python/py-value.c (valpy_long): Use | |
751 | gdb_py_object_from_ulongest. | |
752 | * python/py-symtab.c (salpy_get_pc): Use | |
753 | gdb_py_object_from_ulongest. | |
754 | (salpy_get_last): Likewise. | |
755 | * python/py-record-btrace.c (recpy_bt_insn_pc): Use | |
756 | gdb_py_object_from_ulongest. | |
757 | * python/py-lazy-string.c (stpy_get_address): Use | |
758 | gdb_py_object_from_ulongest. | |
759 | * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest. | |
760 | * python/py-arch.c (archpy_disassemble): Use | |
761 | gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix | |
762 | error handling. | |
763 | ||
4bde49dc TT |
764 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
765 | ||
766 | * python/python-internal.h (gdb_py_long_from_longest): Remove | |
767 | defines. | |
768 | * python/py-value.c (valpy_long): Use gdb_py_object_from_longest. | |
769 | * python/py-type.c (convert_field, typy_get_sizeof): Use | |
770 | gdb_py_object_from_longest. | |
771 | * python/py-record-btrace.c (btpy_list_index): Use | |
772 | gdb_py_object_from_longest. | |
773 | ||
37431074 TT |
774 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
775 | ||
776 | * python/python-internal.h (PyInt_FromSsize_t): Remove define. | |
777 | * python/py-record.c (recpy_element_number): Use | |
778 | gdb_py_object_from_longest. | |
779 | (recpy_gap_number): Likewise. | |
780 | ||
cbe25684 TT |
781 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
782 | ||
783 | * top.c (ui::ui): Update. | |
784 | (highest_ui_num): Remove. | |
785 | * top.h (struct ui) <num>: Remove. | |
786 | ||
db92ac45 TT |
787 | 2020-09-15 Tom Tromey <tromey@adacore.com> |
788 | ||
789 | * unittests/memory-map-selftests.c (valid_mem_map): Now array. | |
790 | * ui-style.c (ansi_regex_text): Now array. | |
791 | * rust-exp.y (number_regex_text): Now array. | |
792 | * linespec.c (linespec_quote_characters): Now array. | |
793 | * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym): | |
794 | Now arrays. | |
795 | ||
d2b31b67 SM |
796 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
797 | ||
798 | * debuginfod-support.c (debuginfod_client_deleter): New. | |
799 | (debuginfod_client_up): New. | |
800 | (debuginfod_init): Return debuginfod_client_up. | |
801 | (debuginfod_source_query): Adjust. | |
802 | (debuginfod_debuginfo_query): Adjust. | |
803 | ||
3246bd8e SM |
804 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
805 | ||
806 | * debuginfod-support.c (debuginfod_source_query): Use | |
807 | make_unique_xstrdup. | |
808 | ||
10242f36 SM |
809 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
810 | ||
811 | * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses | |
812 | with `type::instance_flags`. | |
813 | ||
e1044e6a MM |
814 | 2020-09-14 Michael Mullin <masmullin@gmail.com> |
815 | ||
816 | * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml): | |
817 | Remove baton parameter. | |
818 | ||
04902b09 PA |
819 | 2020-09-14 Pedro Alves <pedro@palves.net> |
820 | ||
821 | * Makefile.in (SELFTESTS_SRCS): Add | |
822 | unittests/enum-flags-selftests.c. | |
823 | * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use | |
824 | btrace_function_flags instead of enum btrace_function_flag. | |
825 | * compile/compile-c-types.c (convert_qualified): Use | |
826 | enum_flags::raw. | |
827 | * compile/compile-cplus-symbols.c (convert_one_symbol) | |
828 | (convert_symbol_bmsym): | |
829 | * compile/compile-cplus-types.c (compile_cplus_convert_method) | |
830 | (compile_cplus_convert_struct_or_union_methods) | |
831 | (compile_cplus_instance::convert_qualified_base): | |
832 | * go-exp.y (parse_string_or_char): Add cast to int. | |
833 | * unittests/enum-flags-selftests.c: New file. | |
834 | * record-btrace.c (btrace_thread_flag_to_str): Change parameter's | |
835 | type to btrace_thread_flags from btrace_thread_flag. | |
836 | (record_btrace_cancel_resume, record_btrace_step_thread): Change | |
837 | local's type to btrace_thread_flags from btrace_thread_flag. Add | |
838 | cast in DEBUG call. | |
839 | ||
69896a2c PA |
840 | 2020-09-14 Pedro Alves <pedro@palves.net> |
841 | ||
842 | * c-typeprint.c (c_type_print_modifier): Adjust to rename. | |
843 | * gdbtypes.c (address_space_name_to_int): Rename to ... | |
844 | (address_space_name_to_type_instance_flags): ... this. | |
845 | (address_space_int_to_name): Rename to ... | |
846 | (address_space_type_instance_flags_to_name): ... this. | |
847 | * gdbtypes.h (address_space_name_to_int): Rename to ... | |
848 | (address_space_name_to_type_instance_flags): ... this. | |
849 | (address_space_int_to_name): Rename to ... | |
850 | (address_space_type_instance_flags_to_name): ... this. | |
851 | * type-stack.c (type_stack::insert): Adjust to rename. | |
852 | * type-stack.h (type_stack::insert): Likewise. | |
853 | ||
314ad88d PA |
854 | 2020-09-14 Pedro Alves <pedro@palves.net> |
855 | Andrew Burgess <andrew.burgess@embecosm.com> | |
856 | ||
857 | * avr-tdep.c (avr_address_class_type_flags): Return | |
858 | type_instance_flags. | |
859 | (avr_address_class_type_flags_to_name): Take a | |
860 | type_instance_flags. | |
861 | (avr_address_class_name_to_type_flags): Return bool and take a | |
862 | type_instance_flags. | |
863 | * d-lang.c (build_d_types): Use type::set_instance_flags. | |
864 | * ft32-tdep.c (ft32_address_class_type_flags): Return | |
865 | type_instance_flags. | |
866 | (ft32_address_class_type_flags_to_name): Take a | |
867 | type_instance_flags. | |
868 | (ft32_address_class_name_to_type_flags): Return bool and take a | |
869 | type_instance_flags. | |
870 | (ft32_gdbarch_init): Use type::set_instance_flags. | |
871 | * eval.c (fake_method::fake_method): Use type::set_instance_flags. | |
872 | * gdbarch.h, gdbarch.c: Regenerate. | |
873 | * gdbarch.sh (address_class_type_flags): Use type_instance_flags. | |
874 | (address_class_name_to_type_flags): Use type_instance_flags and | |
875 | bool. | |
876 | * gdbtypes.c (address_space_name_to_int) | |
877 | (address_space_int_to_name, make_qualified_type): Use | |
878 | type_instance_flags. | |
879 | (make_qualified_type): Use type_instance_flags and | |
880 | type::set_instance_flags. | |
881 | (make_type_with_address_space, make_cv_type, make_vector_type) | |
882 | (check_typedef): Use type_instance_flags. | |
883 | (recursive_dump_type): Cast type_instance_flags to unsigned for | |
884 | printing. | |
885 | (copy_type_recursive): Use type::set_instance_flags. | |
886 | (gdbtypes_post_init): Use type::set_instance_flags. | |
887 | * gdbtypes.h (struct type) <instance_flags>: Rename to ... | |
888 | <m_instance_flags>: ... this. | |
889 | <instance_flags, set_instance_flags>: New methods. | |
890 | (TYPE_INSTANCE_FLAGS): Use the instance_flags method. | |
891 | (SET_TYPE_INSTANCE_FLAGS): New. | |
892 | (address_space_name_to_int, address_space_int_to_name) | |
893 | (make_type_with_address_space): Pass flags using | |
894 | type_instance_flags instead of int. | |
895 | * stabsread.c (cleanup_undefined_types_noname): Use | |
896 | type::set_instance_flags. | |
897 | * s390-tdep.c (s390_address_class_type_flags): Return | |
898 | type_instance_flags. | |
899 | (s390_address_class_type_flags_to_name): Take a | |
900 | type_instance_flags. | |
901 | (s390_address_class_name_to_type_flags): Return bool and take a | |
902 | type_instance_flags. | |
903 | * type-stack.c (type_stack::follow_types): Use | |
904 | type_instance_flags. | |
905 | * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags. | |
906 | ||
27087b7f TT |
907 | 2020-09-14 Tom Tromey <tromey@adacore.com> |
908 | ||
909 | * x86-tdep.h (x86_in_indirect_branch_thunk): Update. | |
910 | * x86-tdep.c (x86_is_thunk_register_name) | |
911 | (x86_in_indirect_branch_thunk): Update. | |
912 | * sparc64-tdep.c (sparc64_fpu_register_names) | |
913 | (sparc64_cp0_register_names, sparc64_register_names) | |
914 | (sparc64_pseudo_register_names): Now const. | |
915 | * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names, | |
916 | cp0_registers_num>: Now const. | |
917 | * sparc-tdep.c (sparc_core_register_names) | |
918 | (sparc32_fpu_register_names, sparc32_cp0_register_names) | |
919 | (sparc32_pseudo_register_names): Now const. | |
920 | (validate_tdesc_registers): Update. | |
921 | * rust-lang.c (rust_extensions): Now const. | |
922 | * p-lang.c (p_extensions): Now const. | |
923 | * objc-lang.c (objc_extensions): Now const. | |
924 | * nto-tdep.c (nto_thread_state_str): Now const. | |
925 | * moxie-tdep.c (moxie_register_names): Now const. | |
926 | * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>: | |
927 | Now const. | |
928 | * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names) | |
929 | (mips_linux_reg_names): Now const. | |
930 | (mips_gdbarch_init): Update. | |
931 | * microblaze-tdep.c (microblaze_register_names): Now const. | |
932 | * m68k-tdep.c (m68k_register_names): Now const. | |
933 | * m32r-tdep.c (m32r_register_names): Now const. | |
934 | * ia64-tdep.c (ia64_register_names): Now const. | |
935 | * i386-tdep.h (struct gdbarch_tdep) <register_names, | |
936 | ymmh_register_names, ymm16h_regnum, mpx_register_names, | |
937 | k_register_names, zmmh_register_names, xmm_avx512_register_names, | |
938 | ymm_avx512_register_names, pkeys_register_names>: Now const. | |
939 | * i386-tdep.c (i386_register_names, i386_zmm_names) | |
940 | (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names) | |
941 | (i386_mpx_names, i386_pkeys_names, i386_bnd_names) | |
942 | (i386_mmx_names, i386_byte_names, i386_word_names): Now const. | |
943 | * f-lang.c (f_extensions): Now const. | |
944 | * d-lang.c (d_extensions): Now const. | |
945 | * csky-tdep.c (csky_register_names): Now const. | |
946 | * charset.c (default_charset_names, charset_enum): Now const. | |
947 | (_initialize_charset): Update. | |
948 | * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now | |
949 | const. | |
950 | * bsd-uthread.c (bsd_uthread_solib_names): Now const. | |
951 | (bsd_uthread_solib_loaded): Update. | |
952 | (bsd_uthread_state): Now const. | |
953 | * amd64-tdep.c (amd64_register_names, amd64_ymm_names) | |
954 | (amd64_ymm_avx512_names, amd64_ymmh_names) | |
955 | (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names) | |
956 | (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names) | |
957 | (amd64_pkeys_names, amd64_byte_names, amd64_word_names) | |
958 | (amd64_dword_names): Now const. | |
959 | * agent.c (can_use_agent_enum): Now const. | |
960 | * ada-tasks.c (task_states, long_task_states): Now const. | |
961 | * ada-lang.c (known_runtime_file_name_patterns) | |
962 | (known_auxiliary_function_name_patterns, attribute_names) | |
963 | (standard_exc, ada_extensions): Now const. | |
964 | ||
89806626 SM |
965 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
966 | ||
967 | * bcache.h (struct bcache) <bcache>: Remove constructor. | |
968 | <m_hash_function, m_compare_function>: Remove. | |
969 | <~bcache>: Make virtual. | |
970 | <compare>: Remove static method, introduce virtual method. | |
971 | <default_hash>: Remove. | |
972 | <hash>: New virtual method. | |
973 | * bcache.c (bcache::expand_hash_table): Update. | |
974 | (bcache::insert): Update. | |
975 | (bcache::hash): New. | |
976 | (bcache::compare): Update comment and parameter names. | |
977 | * gdbtypes.c (types_deeply_equal): Update. | |
978 | * psymtab.h (struct psymbol_bcache): New struct. | |
979 | (class psymtab_storage) <psymtab_storage>: Make default. | |
980 | <psymbol_cache>: Change type to psymbol_bcache. | |
981 | * psymtab.c (psymtab_storage::psymtab_storage): Remove. | |
982 | (psymbol_hash): Change to... | |
983 | (psymbol_bcache::hash): ... this. | |
984 | (psymbol_compare): Change to... | |
985 | (psymbol_bcache::compare): ... this. | |
986 | ||
677c92fe SM |
987 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
988 | ||
989 | * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when | |
990 | checking for initial lwp. | |
991 | ||
3eba3a01 TT |
992 | 2020-09-14 Tom Tromey <tromey@adacore.com> |
993 | ||
994 | * m68k-tdep.c (m68k_extract_return_value): Use | |
995 | pointer_result_regnum. | |
996 | (m68k_store_return_value): Likewise. | |
997 | (m68k_reg_struct_return_p): Handle vectors and arrays. | |
998 | (m68k_return_value): Handle arrays. | |
999 | (m68k_svr4_return_value): Fix single-element aggregate handling. | |
1000 | Handle long double. Adjust for embedded ABI. | |
1001 | (m68k_svr4_init_abi): Set pointer_result_regnum. | |
1002 | (m68k_embedded_init_abi): New function. | |
1003 | (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP. | |
1004 | (m68k_osabi_sniffer): New function. | |
1005 | (_initialize_m68k_tdep): Register osabi sniffer. | |
1006 | * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New | |
1007 | member. | |
1008 | ||
33f4dd48 SM |
1009 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
1010 | ||
1011 | * xml-support.c (xml_fetch_content_from_file): Replace xfree | |
1012 | with gdb::unique_xmalloc_ptr<char>. | |
1013 | ||
8400a90d SM |
1014 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
1015 | ||
1016 | * xml-support.h (xml_fetch_another): Change type to be a | |
1017 | function_view. | |
1018 | (xml_process_xincludes): Remove baton parameter. | |
1019 | (xml_fetch_content_from_file): Change baton parameter to | |
1020 | dirname. | |
1021 | * xml-support.c (struct xinclude_parsing_data) | |
1022 | <xinclude_parsing_data>: Remove baton parameter. | |
1023 | <fetcher_baton>: Remove. | |
1024 | (xinclude_start_include): Adjust. | |
1025 | (xml_process_xincludes): Adjust. | |
1026 | (xml_fetch_content_from_file): Replace baton parameter with | |
1027 | dirname. | |
1028 | * xml-syscall.c (syscall_parse_xml): Remove baton parameter. | |
1029 | (xml_init_syscalls_info): Use a lambda. | |
1030 | * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter. | |
1031 | (file_read_description_xml): Use a lambda. | |
1032 | (fetch_available_features_from_target): Change baton parameter | |
1033 | to target_ops. | |
1034 | (target_read_description_xml): Use a lambda. | |
1035 | (target_fetch_description_xml): Use a lambda. | |
1036 | (string_read_description_xml): Update. | |
1037 | ||
04f5bab2 SM |
1038 | 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca> |
1039 | ||
1040 | * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all | |
1041 | uses with type::endianity_is_not_default. | |
1042 | ||
db558e34 SM |
1043 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1044 | ||
1045 | * gdbtypes.h (struct type) <endianity_is_not_default, | |
1046 | set_endianity_is_not_default>: New methods. | |
1047 | (TYPE_ENDIANITY_NOT_DEFAULT): Use | |
1048 | type::endianity_is_not_default, change all write call sites to | |
1049 | use type::set_endianity_is_not_default. | |
1050 | ||
22c4c60c SM |
1051 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1052 | ||
1053 | * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all | |
1054 | uses with type::is_fixed_instance. | |
1055 | ||
9cdd0d12 SM |
1056 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1057 | ||
1058 | * gdbtypes.h (struct type) <is_fixed_instance, | |
1059 | set_is_fixed_instance>: New methods. | |
1060 | (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all | |
1061 | write call sites to use type::set_is_fixed_instance. | |
1062 | ||
0becda7a SM |
1063 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1064 | ||
1065 | * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all | |
1066 | uses with type::is_gnu_ifunc. | |
1067 | ||
03cc7249 SM |
1068 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1069 | ||
1070 | * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods. | |
1071 | (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to | |
1072 | use type::set_is_gnu_ifunc. | |
1073 | ||
3f46044c SM |
1074 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1075 | ||
1076 | * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all | |
1077 | uses with type::stub_is_supported. | |
1078 | ||
9baccff6 SM |
1079 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1080 | ||
1081 | * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods. | |
1082 | (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to | |
1083 | use type::set_stub_is_supported. | |
1084 | ||
bd63c870 SM |
1085 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1086 | ||
1087 | * gdbtypes.h (TYPE_VECTOR): Remove, replace all | |
1088 | uses with type::is_vector. | |
1089 | ||
2062087b SM |
1090 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1091 | ||
1092 | * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods. | |
1093 | (TYPE_VECTOR): Use type::is_vector, change all write call sites to | |
1094 | use type::set_is_vector. | |
1095 | ||
a409645d SM |
1096 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1097 | ||
1098 | * gdbtypes.h (TYPE_VARARGS): Remove, replace all | |
1099 | uses with type::has_varargs. | |
1100 | ||
1d6286ed SM |
1101 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1102 | ||
1103 | * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods. | |
1104 | (TYPE_VARARGS): Use type::has_varargs, change all write call sites to | |
1105 | use type::set_has_varargs. | |
1106 | ||
7f9f399b SM |
1107 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1108 | ||
1109 | * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all | |
1110 | uses with type::is_prototyped. | |
1111 | ||
27e69b7a SM |
1112 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1113 | ||
1114 | * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>: | |
1115 | New methods. | |
1116 | (TYPE_PROTOTYPED): Use type::is_prototyped, change all write | |
1117 | call sites to use type::set_is_prototyped. | |
1118 | ||
d2183968 SM |
1119 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1120 | ||
1121 | * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all | |
1122 | uses with type::target_is_stub. | |
1123 | ||
8f53807e SM |
1124 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1125 | ||
1126 | * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>: | |
1127 | New methods. | |
1128 | (TYPE_TARGET_STUB): Use type::is_stub, change all write call | |
1129 | sites to use type::set_target_is_stub. | |
1130 | ||
e46d3488 SM |
1131 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1132 | ||
1133 | * gdbtypes.h (TYPE_STUB): Remove, replace all | |
1134 | uses with type::is_stub. | |
1135 | ||
b4b73759 SM |
1136 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1137 | ||
1138 | * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods. | |
1139 | (TYPE_STUB): Use type::is_stub, change all write call sites to | |
1140 | use type::set_is_stub. | |
1141 | ||
20ce4123 SM |
1142 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1143 | ||
1144 | * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with | |
1145 | type::has_no_signedness. | |
1146 | ||
15152a54 SM |
1147 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1148 | ||
1149 | * gdbtypes.h (struct type) <has_no_signedness, | |
1150 | set_has_no_signedness>: New methods. | |
1151 | (TYPE_NOSIGN): Use type::has_no_signedness, change all write | |
1152 | call sites to use type::set_has_no_signedness. | |
1153 | ||
c6d940a9 SM |
1154 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1155 | ||
1156 | * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with | |
1157 | type::is_unsigned. | |
1158 | ||
653223d3 SM |
1159 | 2020-09-14 Simon Marchi <simon.marchi@efficios.com> |
1160 | ||
1161 | * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New | |
1162 | methods. | |
1163 | (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call | |
1164 | sites to use type::set_is_unsigned. | |
1165 | ||
55ea94da FH |
1166 | 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com> |
1167 | Adam Renquinha <arenquinha@cimeq.qc.ca> | |
1168 | ||
1169 | * arm-tdep.c (arm_m_exception_cache): Try use correct stack | |
1170 | pointer and stack frame offset when unwinding. | |
1171 | ||
6791b117 PA |
1172 | 2020-09-13 Pedro Alves <pedro@palves.net> |
1173 | ||
1174 | * NEWS: Document "-break-insert --qualified". | |
1175 | * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified". | |
1176 | ||
77f2120b PA |
1177 | 2020-09-13 Pedro Alves <pedro@palves.net> |
1178 | ||
1179 | * linespec.c (classify_mtype, compare_msyms): Delete. | |
1180 | (search_minsyms_for_name): Remove classification logic. Instead | |
1181 | filter out trampoline symbols if we also found an external | |
1182 | function of the same name. | |
1183 | ||
ed6a896c JB |
1184 | 2020-09-13 Joel Brobecker <brobecker@adacore.com> |
1185 | ||
1186 | * NEWS: Create a new section for the next release branch. | |
1187 | Rename the section of the current branch, now that it has | |
1188 | been cut. | |
1189 | ||
32aea73e JB |
1190 | 2020-09-13 Joel Brobecker <brobecker@adacore.com> |
1191 | ||
1192 | GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59): | |
1193 | * version.in: Bump version to 11.0.50.DATE-git. | |
1194 | ||
8087c3fa JB |
1195 | 2020-09-12 Joel Brobecker <brobecker@adacore.com> |
1196 | ||
1197 | * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST. | |
1198 | ||
2a67f09d FW |
1199 | 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com> |
1200 | Felix Willgerodt <Felix.Willgerodt@intel.com> | |
1201 | ||
1202 | * gdbarch.sh: Added bfloat16 type. | |
1203 | * gdbarch.c: Regenerated. | |
1204 | * gdbarch.h: Regenerated. | |
1205 | * gdbtypes.c (floatformats_bfloat16): New struct. | |
1206 | (gdbtypes_post_init): Add builtin_bfloat16. | |
1207 | * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member. | |
1208 | (floatformats_bfloat16): New struct. | |
1209 | * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16" | |
1210 | (i386_ymm_type): Add field "v16_bfloat16" | |
1211 | (i386_gdbarch_init): Add set_gdbarch_bfloat16_format. | |
1212 | * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16. | |
1213 | * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16. | |
1214 | * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16. | |
1215 | * features/i386/64bit-avx512.xml: Add bfloat16 type. | |
1216 | * features/i386/64bit-avx512.c: Regenerated. | |
1217 | * features/i386/64bit-sse.xml: Add bfloat16 type. | |
1218 | * features/i386/64bit-sse.c: Regenerated. | |
1219 | ||
1347d111 FW |
1220 | 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com> |
1221 | ||
1222 | * i386-tdep.c (i386_zmm_type): Fix field names. | |
1223 | (i386_ymm_type): Fix field names. | |
1224 | ||
7a4e8e7d TBA |
1225 | 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1226 | ||
1227 | * breakpoint.c: Fix typo in the help message of the | |
1228 | "set breakpoint condition-evaluation" command. | |
1229 | ||
cf4ac4be KR |
1230 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
1231 | ||
1232 | * nbsd-nat.c: Include "nat/netbsd-nat.h". | |
1233 | * (nbsd_nat_target::pid_to_exec_file) | |
1234 | (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name) | |
1235 | (nbsd_nat_target::post_startup_inferior) | |
1236 | (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial) | |
1237 | (nbsd_add_threads): Switch local code to common gdb/nat functions. | |
1238 | * (nbsd_pid_to_cmdline): Call sysctl from the global namespace. | |
1239 | * (nbsd_thread_lister): Remove. | |
1240 | ||
f404573e KR |
1241 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
1242 | ||
1243 | * fork-inferior.c (startup_inferior): Avoid double free. | |
1244 | ||
1ccb2c17 KR |
1245 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
1246 | ||
1247 | * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add. | |
1248 | * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise. | |
1249 | ||
feedfcc7 KR |
1250 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
1251 | ||
1252 | * netbsd-nat.h (netbsd_nat::enable_proc_events): Add. | |
1253 | * netbsd-nat.c: Include <sys/ptrace.h>. | |
1254 | * (netbsd_nat::enable_proc_events): Add. | |
1255 | ||
c489f8c6 KR |
1256 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
1257 | ||
1258 | * netbsd-nat.h: Include "gdbsupport/function-view.h". | |
1259 | * (netbsd_nat::thread_alive, netbsd_nat::thread_name) | |
1260 | (netbsd_nat::for_each_thread): Add. | |
1261 | * netbsd-nat.c: Include "gdbsupport/common-defs.h" and | |
1262 | "gdbsupport/common-debug.h". | |
1263 | * (netbsd_nat::netbsd_thread_lister) | |
1264 | (netbsd_nat::thread_alive, netbsd_nat::thread_name) | |
1265 | (netbsd_nat::for_each_thread): Add. | |
1266 | ||
330662f6 KR |
1267 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
1268 | ||
1269 | * netbsd-nat.h: Include <unistd.h>. | |
1270 | * (netbsd_nat::pid_to_exec_file): Add. | |
1271 | * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>. | |
1272 | * (netbsd_nat::pid_to_exec_file) Add. | |
1273 | ||
70b67307 KR |
1274 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
1275 | ||
1276 | * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed. | |
1277 | ||
99cf6da6 KR |
1278 | 2020-09-10 Kamil Rytarowski <n54@gmx.com> |
1279 | ||
1280 | * netbsd-nat.h: New file. | |
1281 | * netbsd-nat.c: Likewise. | |
1282 | ||
1b788fb6 TT |
1283 | 2020-09-09 Tom Tromey <tromey@adacore.com> |
1284 | ||
1285 | * ada-lang.c (remove_extra_symbols): Do not increment when | |
1286 | removing an element | |
1287 | ||
03b0a45f TT |
1288 | 2020-09-08 Tom Tromey <tromey@adacore.com> |
1289 | ||
1290 | * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails. | |
1291 | ||
3cae4447 TT |
1292 | 2020-09-08 Tom Tromey <tromey@adacore.com> |
1293 | ||
1294 | PR win32/25302: | |
1295 | * gdb_bfd.c (gdb_bfd_data): Add "st" parameter. | |
1296 | (gdb_bfd_init_data): New function. | |
1297 | (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data. | |
1298 | ||
7f08fd51 TBA |
1299 | 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1300 | ||
1301 | * infrun.c (fetch_inferior_event): Use | |
1302 | `switch_to_target_no_thread` to switch the target. | |
1303 | ||
3e6ff933 TT |
1304 | 2020-09-06 Tom Tromey <tom@tromey.com> |
1305 | ||
1306 | * symfile.h (dwarf2_free_objfile): Don't declare. | |
1307 | ||
e56798df AKS |
1308 | 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
1309 | ||
1310 | * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions | |
1311 | to match 16 byte real/complex type generated by Flang compiler. | |
1312 | ||
8f5c6526 TV |
1313 | 2020-09-03 Tom de Vries <tdevries@suse.de> |
1314 | ||
1315 | PR breakpoint/26546 | |
1316 | * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as | |
1317 | LOC_OPTIMIZED_OUT instead of LOC_LABEL. | |
1318 | ||
c5065df0 SM |
1319 | 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca> |
1320 | ||
1321 | * maint.c (index_digits): New function. | |
1322 | (struct maint_print_section_data): Remove. | |
1323 | (print_bfd_section_info): Remove print_data parameter, add arg | |
1324 | and index_digits. | |
1325 | (print_objfile_section_info): Likewise. | |
1326 | (print_bfd_section_info_maybe_relocated): Likewise (plus | |
1327 | objfile). | |
1328 | (maintenance_info_sections): Adjust calls. | |
1329 | ||
02c6f3f1 TT |
1330 | 2020-09-02 Tom Tromey <tromey@adacore.com> |
1331 | ||
1332 | * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0 | |
1333 | for null pointers. | |
1334 | (ada_varobj_adjust_for_child_access): Special-case null pointers. | |
1335 | ||
ef5e5b0b SM |
1336 | 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca> |
1337 | ||
1338 | * bcache.h (struct bcache) <insert>: Change type of `added` to | |
1339 | pointer to bool. | |
1340 | * bcache.c (bcache::insert): Likewise. | |
1341 | * gdbtypes.c (check_types_worklist): Adjust. | |
1342 | * psymtab.c (add_psymbol_to_bcache): Adjust. | |
1343 | ||
973695d6 KB |
1344 | 2020-08-31 Kevin Buettner <kevinb@redhat.com> |
1345 | ||
1346 | * corelow.c (unordered_set): Include. | |
1347 | (class core_target): Add field 'm_core_unavailable_mappings'. | |
1348 | (core_target::build_file_mappings): Print only one warning | |
1349 | per inaccessible file. Add unavailable/broken mappings | |
1350 | to m_core_unavailable_mappings. | |
1351 | (core_target::xfer_partial): Call... | |
1352 | (core_target::xfer_memory_via_mappings): New method. | |
1353 | ||
264fc0e2 SM |
1354 | 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca> |
1355 | ||
1356 | * dwarf2/read.c (struct field_info) <non_public_fields>: Change | |
1357 | type to bool. | |
1358 | ||
2de01bdb SM |
1359 | 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca> |
1360 | ||
1361 | * dwarf2/read.c (struct field_info): Fix indentation. | |
1362 | ||
f3bd50f1 SM |
1363 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
1364 | ||
1365 | * frame-unwind.h (frame_prev_register_ftype): Fix adjective | |
1366 | ordering in comment. | |
1367 | * frame.c (frame_id_eq): Fix indentation. | |
1368 | ||
22b9b4b0 SL |
1369 | 2020-08-31 Scott Linder <scott@scottlinder.com> |
1370 | Simon Marchi <simon.marchi@efficios.com> | |
1371 | ||
1372 | * inline-frame.c (inline_frame_this_id): Remove assert that prevents | |
1373 | inline frame ids in outer frame. | |
1374 | ||
84154d16 SM |
1375 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
1376 | ||
1377 | * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New. | |
1378 | * frame.c (fprint_frame_id): Handle FID_STACK_OUTER. | |
1379 | (outer_frame_id): Use FID_STACK_OUTER instead of | |
1380 | FID_STACK_INVALID. | |
1381 | (frame_id_p): Don't check for outer_frame_id. | |
1382 | ||
8efaf6b3 SM |
1383 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
1384 | ||
1385 | * frame-unwind.c (frame_unwind_got_optimized): Don't set | |
1386 | regnum/frame in value. Call allocate_value_lazy. | |
1387 | * frame.c (frame_unwind_register_value): Use | |
1388 | val_print_not_saved. | |
1389 | ||
fe1fe7ea SM |
1390 | 2020-08-31 Simon Marchi <simon.marchi@efficios.com> |
1391 | ||
1392 | * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr. | |
1393 | ||
f7c7700d PA |
1394 | 2020-08-29 Pedro Alves <pedro@palves.net> |
1395 | ||
1396 | * progspace.c (print_program_space): Use all_inferiors. Switch to | |
1397 | the inferior before calling target_pid_to_str. | |
1398 | ||
e0814aae TT |
1399 | 2020-08-28 Tom Tromey <tom@tromey.com> |
1400 | ||
1401 | * xcoffread.c (xcoff_end_psymtab): Update comment. | |
1402 | * dbxread.c (dbx_end_psymtab): Update comment. | |
1403 | ||
626d2320 TV |
1404 | 2020-08-28 Tom de Vries <tdevries@suse.de> |
1405 | ||
1406 | PR breakpoint/26544 | |
1407 | * breakpoint.c (parse_breakpoint_sals): Remove const from struct | |
1408 | event_location. | |
1409 | (create_breakpoint): Same. | |
1410 | (base_breakpoint_decode_location): Same. | |
1411 | (bkpt_create_sals_from_location): Same. | |
1412 | (bkpt_decode_location): Same. | |
1413 | (bkpt_probe_create_sals_from_location): Same. | |
1414 | (bkpt_probe_decode_location): Same. | |
1415 | (tracepoint_create_sals_from_location): Same. | |
1416 | (tracepoint_decode_location): Same. | |
1417 | (tracepoint_probe_decode_location): Same. | |
1418 | (strace_marker_create_sals_from_location): Same. | |
1419 | (strace_marker_decode_location): Same. | |
1420 | (create_sals_from_location_default): Same. | |
1421 | (decode_location_default): Same. | |
1422 | * breakpoint.h (struct breakpoint_ops): Same. | |
1423 | (create_breakpoint): Same. | |
1424 | * linespec.h (decode_line_full): Same. | |
1425 | * linespec.c (decode_line_full): Same. Throw error if | |
1426 | result.size () == 0. | |
1427 | ||
df631783 PA |
1428 | 2020-08-27 Pedro Alves <pedro@palves.net> |
1429 | ||
1430 | PR gdb/26524 | |
1431 | * breakpoint.c (until_break_fsm) <location_breakpoint, | |
1432 | caller_breakpoint>: Delete fields. | |
1433 | <breakpoints>: New field. | |
1434 | <until_break_fsm>: Adjust to save a breakpoint vector instead of | |
1435 | two individual breakpoints. | |
1436 | (until_break_fsm::should_stop): Loop over breakpoints in the | |
1437 | breakpoint vector. | |
1438 | (until_break_fsm::clean_up): Adjust to clear the breakpoints | |
1439 | vector. | |
1440 | (until_break_command): Handle location expanding into multiple | |
1441 | sals. | |
1442 | ||
b2b38aa4 PA |
1443 | 2020-08-27 Pedro Alves <pedro@palves.net> |
1444 | ||
1445 | PR gdb/26523 | |
1446 | * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider | |
1447 | bp_until breakpoints user-specified locations. Update intro | |
1448 | comment. | |
1449 | ||
b886559f SM |
1450 | 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca> |
1451 | ||
1452 | * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range, | |
1453 | gdb_bfd_sections): New. | |
1454 | * maint.c (print_bfd_section_info): Change param type to | |
1455 | maint_print_section_data. | |
1456 | (print_objfile_section_info): Likewise. | |
1457 | (print_bfd_section_info_maybe_relocated): Likewise. | |
1458 | (maintenance_info_sections): Use gdb_bfd_sections. | |
1459 | ||
4c6e63bf SV |
1460 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
1461 | ||
1462 | * MAINTAINERS: Add ARC target and maintainer. | |
1463 | ||
8d7f0635 AK |
1464 | 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com> |
1465 | ||
1466 | * configure.tgt: ARC support for GNU/Linux. | |
1467 | * Makefile.in (ALL_TARGET_OBJS): Likewise. | |
1468 | * arc-linux-tdep.c: New file. | |
1469 | * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare. | |
1470 | * arc-tdep.c (arc_write_pc): Use it. | |
1471 | ||
fdd8731b SV |
1472 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
1473 | ||
1474 | * arc-tdep.c (arc_check_for_hardware_loop): New. | |
1475 | * arc-tdep.h (gdbarch_tdep): New field has_hw_loops. | |
1476 | ||
22459524 SV |
1477 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
1478 | ||
1479 | * arc-tdep.h: Include "gdbarch.h". | |
1480 | ||
995d3a19 SV |
1481 | 2020-08-25 Shahab Vahedi <shahab@synopsys.com> |
1482 | ||
1483 | * arch/arc.h | |
1484 | (arc_gdbarch_features): New class to stir the selection of target XML. | |
1485 | (arc_create_target_description): Use FEATURES to choose XML target. | |
1486 | (arc_lookup_target_description): Use arc_create_target_description | |
1487 | to create _new_ target descriptions or return the already created | |
1488 | ones if the FEATURES is the same. | |
1489 | * arch/arc.c: Implementation of prototypes described above. | |
1490 | * gdb/arc-tdep.h (arc_regnum enum): Add more registers. | |
1491 | (arc_gdbarch_features_init): Initialize the FEATURES struct. | |
1492 | * arc-tdep.c (*_feature_name): Make feature names consistent. | |
1493 | (arc_register_feature): A new struct to hold information about | |
1494 | registers of a particular target/feature. | |
1495 | (arc_check_tdesc_feature): Check if XML provides registers in | |
1496 | compliance with ARC_REGISTER_FEATURE structs. | |
1497 | (arc_update_acc_reg_names): Add aliases for r58 and r59. | |
1498 | (determine_*_reg_feature_set): Which feature name to look for. | |
1499 | (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES. | |
1500 | (mach_type_to_arc_isa): Convert from a set of binutils machine types | |
1501 | to expected ISA enums to be used in arc_gdbarch_features structs. | |
1502 | * features/Makefile (FEATURE_XMLFILES): Add new files. | |
1503 | * gdb/features/arc/v1-aux.c: New file. | |
1504 | * gdb/features/arc/v1-aux.xml: Likewise. | |
1505 | * gdb/features/arc/v1-core.c: Likewise. | |
1506 | * gdb/features/arc/v1-core.xml: Likewise. | |
1507 | * gdb/features/arc/v2-aux.c: Likewise. | |
1508 | * gdb/features/arc/v2-aux.xml: Likewise. | |
1509 | * gdb/features/arc/v2-core.c: Likewise. | |
1510 | * gdb/features/arc/v2-core.xml: Likewise. | |
1511 | * NEWS (Changes since GDB 9): Announce obsolence of old feature names. | |
1512 | ||
3945d2d7 GM |
1513 | 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com> |
1514 | Andrew Burgess <andrew.burgess@embecosm.com> | |
1515 | ||
1516 | PR m2/26372 | |
fc5d6901 | 1517 | * m2-exp.y (exp): Improve comment for non_empty_arglist case, add |
3945d2d7 GM |
1518 | an assert. Remove single element array indexing pattern as the |
1519 | MULTI_SUBSCRIPT support will handle this case too. | |
1520 | ||
2677f2d3 SM |
1521 | 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca> |
1522 | ||
1523 | * value.h (valprint_check_validity): Move declaration from | |
1524 | here... | |
1525 | * valprint.h (valprint_check_validity): ... to here. | |
1526 | ||
c426fddb SM |
1527 | 2020-08-24 Simon Marchi <simon.marchi@efficios.com> |
1528 | ||
1529 | * debug.h: New file. | |
1530 | * debug.c (debug_prefixed_vprintf): New function. | |
1531 | * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf. | |
1532 | * linux-nat.c (linux_nat_debug_printf_1): Likewise. | |
1533 | ||
1eb8556f SM |
1534 | 2020-08-24 Simon Marchi <simon.marchi@efficios.com> |
1535 | ||
1536 | * infrun.h (infrun_debug_printf_1): New function declaration. | |
1537 | (infrun_debug_printf): New macro. | |
1538 | * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf | |
1539 | throughout. | |
1540 | (infrun_debug_printf): New function. | |
1541 | * breakpoint.c (should_be_inserted): Use infrun_debug_printf. | |
1542 | (handle_jit_event): Likewise. | |
1543 | ||
b8fff44e MW |
1544 | 2020-08-21 Mark Wielaard <mark@klomp.org> |
1545 | ||
1546 | * ada-lex.l: Extend register warnings diagnostics comment for g++. | |
1547 | ||
d19c3068 SM |
1548 | 2020-08-22 Simon Marchi <simon.marchi@efficios.com> |
1549 | ||
1550 | * frame.c (enum class frame_id_status): New. | |
1551 | (struct frame_info) <this_id::p>: Change type to frame_id_status. | |
1552 | (fprintf_frame): Update. | |
1553 | (compute_frame_id): Set frame id status to "computing" on entry. | |
1554 | Set it back to "not_computed" on failure and to "computed" on | |
1555 | success. | |
1556 | (get_frame_id): Assert the frame id is not being computed. | |
1557 | (create_sentinel_frame): Use frame_id_status::COMPUTED. | |
1558 | (create_new_frame): Likewise. | |
1559 | (frame_cleanup_after_sniffer): Update assert. | |
1560 | ||
b70e516e SM |
1561 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
1562 | ||
1563 | * regcache.c (pid_ptid_regcache_map): New type. | |
1564 | (target_ptid_regcache_map): Remove. | |
1565 | (target_pid_ptid_regcache_map): New type. | |
1566 | (regcaches): Change type to target_pid_ptid_regcache_map. | |
1567 | (get_thread_arch_aspace_regcache): Update. | |
1568 | (regcache_thread_ptid_changed): Update, handle pid-like ptid | |
1569 | case. | |
1570 | (regcaches_size): Update. | |
1571 | (regcache_count): Update. | |
1572 | (registers_changed_ptid_target_pid_test): New. | |
1573 | (_initialize_regcache): Register new test. | |
1574 | ||
cdd9148a SM |
1575 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
1576 | ||
1577 | * regcache.c (regcache_count): New. | |
1578 | (struct regcache_test_data): New. | |
1579 | (regcache_test_data_up): New. | |
1580 | (populate_regcaches_for_test): New. | |
1581 | (regcaches_test): Remove. | |
1582 | (get_thread_arch_aspace_regcache_test): New. | |
1583 | (registers_changed_ptid_all_test): New. | |
1584 | (registers_changed_ptid_target_test): New. | |
1585 | (registers_changed_ptid_target_ptid_test): New. | |
1586 | (regcache_thread_ptid_changed): Remove regcache_count lambda. | |
1587 | (_initialize_regcache): Register new tests. | |
1588 | ||
dd125343 SM |
1589 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
1590 | ||
1591 | * regcache.c (test_get_thread_arch_aspace_regcache): Rename to... | |
1592 | (get_thread_arch_aspace_regcache_and_check): ... this. Remove | |
1593 | gdbarch and aspace parameter. Use current inferior's aspace. | |
1594 | Validate regcache's arch value. | |
1595 | (regcaches_test): Update. | |
1596 | ||
3ee93972 SM |
1597 | 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca> |
1598 | ||
1599 | * regcache.c (regcaches_test): Call registers_changed. | |
1600 | ||
33bf4c5c TBA |
1601 | 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
1602 | ||
1603 | * infrun.c (process_event_stop_test): Fix typo "breapoint". | |
1604 | ||
c2fd7fae AKS |
1605 | 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
1606 | ||
1607 | * amd64-tdep.c (amd64_skip_prologue): Using symbol table | |
1608 | to find the end of prologue for flang compiled binaries. | |
1609 | * arm-tdep.c (arm_skip_prologue): Likewise. | |
1610 | * i386-tdep.c (i386_skip_prologue): Likewise. | |
1611 | * producer.c (producer_is_llvm): New function. | |
1612 | (producer_parsing_tests): Added new tests for clang/flang. | |
1613 | * producer.h (producer_is_llvm): New declaration. | |
1614 | ||
9327494e SM |
1615 | 2020-08-18 Simon Marchi <simon.marchi@efficios.com> |
1616 | ||
1617 | * linux-nat.c (linux_nat_debug_printf): New function. | |
1618 | (linux_nat_debug_printf_1): New macro. Use throughout the file. | |
1619 | ||
d138725a AM |
1620 | 2020-08-18 Aaron Merey <amerey@redhat.com> |
1621 | ||
1622 | * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables. | |
1623 | (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS. | |
1624 | (CLIBS): Add DEBUGINFOD_LIBS. | |
1625 | ||
f9b11e6b ST |
1626 | 2020-08-17 Sergei Trofimovich <siarheit@google.com> |
1627 | ||
1628 | * ia64-linux-nat.c: Include "gdbarch.h" to declare used | |
1629 | 'gdbarch_num_regs'. | |
1630 | ||
3ae7ab99 TT |
1631 | 2020-08-17 Tom Tromey <tromey@adacore.com> |
1632 | ||
1633 | * ada-varobj.c (ada_varobj_decode_var): Handle case where | |
1634 | ada_get_decoded_value returns NULL. | |
1635 | ||
b017825f TT |
1636 | 2020-08-17 Tom Tromey <tromey@adacore.com> |
1637 | ||
1638 | * python/py-inferior.c (infpy_search_memory): Use | |
1639 | gdb_py_object_from_ulongest. | |
1640 | * python/py-infevents.c (create_inferior_call_event_object) | |
1641 | (create_memory_changed_event_object): Use | |
1642 | gdb_py_object_from_ulongest. | |
1643 | * python/py-linetable.c (ltpy_entry_get_pc): Use | |
1644 | gdb_py_object_from_ulongest. | |
1645 | ||
7635cf79 SM |
1646 | 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca> |
1647 | ||
1648 | * loc.c (class symbol_needs_eval_context): Fix indentation. | |
1649 | ||
f54be24b SM |
1650 | 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca> |
1651 | ||
1652 | * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use | |
1653 | bool. | |
1654 | ||
53d5a2a5 TV |
1655 | 2020-08-17 Tom de Vries <tdevries@suse.de> |
1656 | ||
1657 | PR gdb/26393 | |
1658 | * gdbtypes.c (dump_dynamic_prop): New function. | |
1659 | (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE. | |
1660 | ||
547ce8f0 TV |
1661 | 2020-08-15 Tom de Vries <tdevries@suse.de> |
1662 | ||
1663 | PR backtrace/26390 | |
1664 | * stack.c (print_frame_args): Temporarily set the selected | |
1665 | frame to FRAME while printing the frame's arguments. | |
1666 | ||
6ea815e7 PFC |
1667 | 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
1668 | ||
1669 | PR breakpoints/26385 | |
1670 | * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume): | |
1671 | Always clear watchpoint with PTRACE_SET_DEBUGREG. | |
1672 | ||
6e562fa3 PFC |
1673 | 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
1674 | ||
1675 | * ppc-linux-nat.c (ppc_linux_dreg_interface::detect) | |
1676 | (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0 | |
1677 | and >= to check return value instead of == -1 and != -1. | |
1678 | ||
d369b608 SM |
1679 | 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca> |
1680 | ||
1681 | * utils.h (class gdb_argv) <as_array_view>: New method. | |
1682 | * utils.c (gdb_argv_as_array_view_test): New. | |
1683 | (_initialize_utils): Register selftest. | |
1684 | * maint.c (maintenance_selftest): Use the new method. | |
1685 | ||
b31488a3 KR |
1686 | 2020-08-13 Kamil Rytarowski <n54@gmx.com> |
1687 | ||
1688 | * target.h (supports_dumpcore, dumpcore): New | |
1689 | function declarations. | |
1690 | * target.c (supports_dumpcore, dumpcore): New | |
1691 | functions. | |
1692 | * target-delegates.c: Rebuild. | |
1693 | * gcore.c (gcore_command): Use target_supports_dumpcore () | |
1694 | and target_dumpcore (). | |
1695 | ||
002a3166 AM |
1696 | 2020-08-13 Aaron Merey <amerey@redhat.com> |
1697 | ||
1698 | * debuginfod-support.c: Replace global variables with user_data. | |
1699 | ||
ece5bc8a SM |
1700 | 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca> |
1701 | ||
1702 | * maint.c (maintenance_selftest): Split args and pass array_view | |
1703 | to run_tests. | |
1704 | ||
6d8a0a5e LM |
1705 | 2020-08-12 Luis Machado <luis.machado@linaro.org> |
1706 | ||
1707 | * value.c (check_type_length_before_alloc): Use ULONGEST to store a | |
1708 | type's length. | |
1709 | Use %s and pulongest to print the length. | |
1710 | ||
7cf663a9 PA |
1711 | 2020-08-12 Pedro Alves <palves@redhat.com> |
1712 | ||
1713 | * NEWS: Move "Multi-target debugging support" item to the | |
1714 | "Changes since GDB 9" section. | |
1715 | ||
27c7b875 PA |
1716 | 2020-08-12 Pedro Alves <palves@redhat.com> |
1717 | ||
1718 | PR gdb/26336 | |
1719 | * progspace.c (program_space::remove_objfile): Invalidate the | |
1720 | frame cache. | |
1721 | ||
1796a2a1 TV |
1722 | 2020-08-11 Tom de Vries <tdevries@suse.de> |
1723 | ||
1724 | * MAINTAINERS: Mark ms1 as deleted. | |
1725 | ||
f8e3fe0d LM |
1726 | 2020-08-10 Luis Machado <luis.machado@linaro.org> |
1727 | ||
1728 | PR gdb/26310 | |
1729 | ||
1730 | * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and | |
1731 | act accordingly. | |
1732 | (aarch64_analyze_prologue_test): Add more unit tests to exercise | |
1733 | movz/str/stur/stp skipping behavior. | |
1734 | ||
cc308722 LM |
1735 | 2020-08-10 Luis Machado <luis.machado@linaro.org> |
1736 | ||
1737 | * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use | |
1738 | struct user_sve_header instead of struct sve_context. | |
1739 | ||
041d9819 SM |
1740 | 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca> |
1741 | ||
1742 | * read.h (dwarf2_fetch_die_loc_sect_off, | |
1743 | dwarf2_fetch_die_loc_cu_off): Replace function pointer + | |
1744 | `void *` parameter with function_view. | |
1745 | * read.c (dwarf2_fetch_die_loc_sect_off, | |
1746 | dwarf2_fetch_die_loc_cu_off): Likewise. | |
1747 | * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove. | |
1748 | (per_cu_dwarf_call): Adjust. | |
1749 | (get_frame_address_in_block_wrapper): Remove. | |
1750 | (indirect_synthetic_pointer): Adjust. | |
1751 | (get_ax_pc): Remove. | |
1752 | (dwarf2_compile_expr_to_ax): Adjust. | |
1753 | ||
38f8aa06 TV |
1754 | 2020-08-08 Tom de Vries <tdevries@suse.de> |
1755 | ||
1756 | PR build/26344 | |
1757 | * arch/riscv.c (riscv_lookup_target_description): Use an explicit | |
1758 | constructor. | |
1759 | * regcache.c (get_thread_arch_aspace_regcache): Same. | |
1760 | ||
a52b3ae2 TT |
1761 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
1762 | ||
1763 | * ravenscar-thread.c | |
1764 | (ravenscar_thread_target::set_base_thread_from_ravenscar_task): | |
1765 | New method. | |
1766 | (ravenscar_thread_target::wait): Check | |
1767 | runtime_initialized. | |
1768 | (ravenscar_thread_target::prepare_to_store) | |
1769 | (ravenscar_thread_target::stopped_by_sw_breakpoint) | |
1770 | (ravenscar_thread_target::stopped_by_hw_breakpoint) | |
1771 | (ravenscar_thread_target::stopped_by_watchpoint) | |
1772 | (ravenscar_thread_target::stopped_data_address) | |
1773 | (ravenscar_thread_target::core_of_thread): Use | |
1774 | scoped_restore_current_thread and | |
1775 | set_base_thread_from_ravenscar_task. | |
1776 | ||
0e29517d TT |
1777 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
1778 | ||
1779 | * ravenscar-thread.c (update_thread_list): Set inferior_ptid. | |
1780 | ||
592f9bd7 TT |
1781 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
1782 | ||
1783 | * ravenscar-thread.c (ravenscar_thread_target::wait): Call | |
1784 | update_inferior_ptid before update_thread_list. | |
1785 | (temporarily_change_regcache_ptid): New class. | |
1786 | (ravenscar_thread_target::fetch_registers) | |
1787 | (ravenscar_thread_target::store_registers) | |
1788 | (ravenscar_thread_target::prepare_to_store): Use base thread when | |
1789 | forwarding operation. | |
1790 | ||
39e2018a TT |
1791 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
1792 | ||
1793 | * ravenscar-thread.c (ravenscar_thread_target::resume): Handle | |
1794 | "is_pid" case. | |
1795 | ||
2080266b TT |
1796 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
1797 | ||
1798 | * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread): | |
1799 | New methods. | |
1800 | (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map | |
1801 | first. | |
1802 | (ravenscar_thread_target::add_thread): Rename from | |
1803 | ravenscar_add_thread. | |
1804 | (ravenscar_thread_target::update_thread_list): Use a lambda. | |
1805 | (ravenscar_thread_target::xfer_partial): New method. | |
1806 | ||
78c02f21 TT |
1807 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
1808 | ||
1809 | * ada-lang.h (ada_task_list_iterator_ftype): Now a | |
1810 | gdb::function_view. | |
1811 | (iterate_over_live_ada_tasks): Change type of argument. | |
1812 | * ada-tasks.c (iterate_over_live_ada_tasks): Change type | |
1813 | of argument. | |
1814 | ||
d5d833af TT |
1815 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
1816 | ||
1817 | * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>: | |
1818 | Remove. | |
1819 | (ravenscar_thread_target::extra_thread_info): Remove. | |
1820 | (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result; | |
1821 | defer to target beneath for non-Ravenscar threads. | |
1822 | ||
a8ac85bb TT |
1823 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
1824 | ||
1825 | * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu, | |
1826 | get_base_thread_from_ravenscar_task>: Now methods. | |
1827 | <m_cpu_map>: New member. | |
1828 | (ravenscar_thread_target::get_thread_base_cpu): Rename from | |
1829 | ravenscar_get_thread_base_cpu. Check m_cpu_map. | |
1830 | (ravenscar_thread_target::task_is_currently_active): Update. | |
1831 | (ravenscar_thread_target::get_base_thread_from_ravenscar_task): | |
1832 | Now a method. | |
1833 | (ravenscar_thread_target::add_active_thread): Put initial thread | |
1834 | into the m_cpu_map. | |
1835 | ||
550ab58d TT |
1836 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
1837 | ||
1838 | * ravenscar-thread.c (ravenscar_thread_target::wait): Return | |
1839 | event_ptid. | |
1840 | ||
e9546579 TT |
1841 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
1842 | ||
1843 | * ravenscar-thread.c (ravenscar_thread_target::wait): Check | |
1844 | runtime_initialized. | |
1845 | ||
3d4470e5 TT |
1846 | 2020-08-07 Tom Tromey <tromey@adacore.com> |
1847 | ||
1848 | * ravenscar-thread.c (ravenscar_thread_target): Don't call | |
1849 | add_active_thread. | |
1850 | (ravenscar_thread_target::add_active_thread): Now public. | |
1851 | (ravenscar_inferior_created): Call add_active_thread after pushing | |
1852 | the target. | |
1853 | ||
888bdb2b SM |
1854 | 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca> |
1855 | ||
1856 | * regcache.c (ptid_regcache_map): New type. | |
1857 | (target_ptid_regcache_map): New type. | |
1858 | (regcaches): Change type to target_ptid_regcache_map. | |
1859 | (get_thread_arch_aspace_regcache): Update to regcaches' new | |
1860 | type. | |
1861 | (regcache_thread_ptid_changed): Likewise. | |
1862 | (registers_changed_ptid): Likewise. | |
1863 | (regcaches_size): Likewise. | |
1864 | (regcaches_test): Update. | |
1865 | (regcache_thread_ptid_changed): Update. | |
1866 | * regcache.h (regcache_up): New type. | |
1867 | * gdbsupport/ptid.h (hash_ptid): New struct. | |
1868 | ||
b161a60d SM |
1869 | 2020-08-07 Simon Marchi <simon.marchi@efficios.com> |
1870 | ||
1871 | * observable.h (thread_ptid_changed): Add parameter | |
1872 | `process_stratum_target *`. | |
1873 | * infrun.c (infrun_thread_ptid_changed): Add parameter | |
1874 | `process_stratum_target *` and use it. | |
1875 | (selftests): New namespace. | |
1876 | (infrun_thread_ptid_changed): New function. | |
1877 | (_initialize_infrun): Register selftest. | |
1878 | * regcache.c (regcache_thread_ptid_changed): Add parameter | |
1879 | `process_stratum_target *` and use it. | |
1880 | (regcache_thread_ptid_changed): New function. | |
1881 | (_initialize_regcache): Register selftest. | |
1882 | * thread.c (thread_change_ptid): Pass target to | |
1883 | thread_ptid_changed observable. | |
1884 | ||
d2854d8d CT |
1885 | 2020-08-06 Caroline Tice <cmtice@google.com> |
1886 | ||
fe4c3d43 SM |
1887 | * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field. |
1888 | (struct dwp_sections): Update field comments. Add loclists and | |
1889 | rnglists fields. | |
1890 | (struct virtual_v2_dwo_sections): Rename struct to | |
1891 | 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add | |
1892 | size & offset fields for loclists and rnglists. | |
1893 | (struct dwp_hash_table): Add a 'v5' struct field to the union section. | |
1894 | (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for | |
1895 | skipping dummy type units. | |
1896 | (create_dwp_hash_table): Update the large comment above the function to | |
1897 | discuss Version 5 DWP files as well, with references. Update all the | |
1898 | version checks in the function to check for version 5 as well. Add new | |
1899 | section at the end to create dwp hash table for version 5. | |
1900 | (create_dwp_v2_section): Rename function to | |
1901 | 'create_dwp_v2_or_v5_section'. Update function comment appropriately. | |
1902 | Add V5 to error message text. | |
1903 | (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section | |
1904 | into calls to create_dwp_v2_or_v5_section. | |
1905 | (create_dwo_unit_in_dwp_v5): New function. | |
1906 | (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly | |
1907 | check for version2; add else clause to handle version 5. | |
1908 | (open_and_init_dwo_file): Add code to check dwarf version & only call | |
1909 | create_debug_types_hash_table (with sections.types) if version is not 5; | |
1910 | else call create_debug_type_hash_table, with sections.info. | |
1911 | (dwarf2_locate_v2_dwp_sections): Update function comment to mention | |
1912 | version 5. | |
1913 | (dwarf2_locate_v5_dwp_sections): New function. | |
1914 | (open_and_init_dwp_file): Add else-if clause for version 5 to call | |
1915 | bfd_map_over_sections with dwarf2_locate_v5_dwp_sections. | |
d2854d8d | 1916 | |
159ed7d9 SM |
1917 | 2020-08-06 Simon Marchi <simon.marchi@efficios.com> |
1918 | ||
1919 | * regcache.h (class regcache): Remove friend | |
1920 | registers_changed_ptid. | |
1921 | <regcache_thread_ptid_changed>: Remove. | |
1922 | <regcaches>: Remove. | |
1923 | * regcache.c (regcache::regcaches): Rename to... | |
1924 | (regcaches): ... this. Make static. | |
1925 | (get_thread_arch_aspace_regcache): Update. | |
1926 | (regcache::regcache_thread_ptid_changed): Rename to... | |
1927 | (regcache_thread_ptid_changed): ... this. Update. | |
1928 | (class regcache_access): Remove. | |
1929 | (regcaches_test): Update. | |
1930 | (_initialize_regcache): Update. | |
1931 | * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include | |
1932 | <forward_list>. | |
1933 | ||
174981ae SM |
1934 | 2020-08-06 Simon Marchi <simon.marchi@efficios.com> |
1935 | ||
1936 | * regcache.h (class regcache) <current_regcache>: Rename to... | |
1937 | <regcaches>: ... this. Move doc here. | |
1938 | * regcache.c (regcache::current_regcache) Rename to... | |
1939 | (regcache::regcaches): ... this. Move doc to header. | |
1940 | (get_thread_arch_aspace_regcache): Update. | |
1941 | (regcache::regcache_thread_ptid_changed): Update. | |
1942 | (registers_changed_ptid): Update. | |
1943 | (class regcache_access) <current_regcache_size>: Rename to... | |
1944 | <regcaches_size>: ... this. | |
1945 | (current_regcache_test): Rename to... | |
1946 | (regcaches_test): ... this. | |
1947 | (_initialize_regcache): Update. | |
1948 | ||
ed908db6 VC |
1949 | 2020-08-06 Victor Collod <vcollod@nvidia.com> |
1950 | ||
1951 | * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment. | |
1952 | ||
b5582ab7 KB |
1953 | 2020-08-05 Kevin Buettner <kevinb@redhat.com> |
1954 | ||
1955 | * corelow.c (core_target::build_file_mappings): Don't output | |
1956 | null pathname in warning. | |
1957 | ||
ea946b86 SM |
1958 | 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca> |
1959 | ||
1960 | * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp, | |
1961 | gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp, | |
1962 | gdb.dwarf2/dw2-single-line-discriminators.exp, | |
1963 | dw2-undefined-ret-addr.exp: Pass nopie to compilation options. | |
1964 | ||
57d02173 TT |
1965 | 2020-08-05 Tom Tromey <tromey@adacore.com> |
1966 | ||
1967 | PR rust/26197: | |
1968 | * dwarf2/read.c (alloc_rust_variant): Handle univariant case. | |
1969 | (quirk_rust_enum): Call alloc_rust_variant for univariant case. | |
1970 | Fix off-by-one and type size errors in ordinary case. | |
1971 | ||
5555c86d TV |
1972 | 2020-08-05 Tom de Vries <tdevries@suse.de> |
1973 | ||
1974 | * gdbtypes.c (type_not_allocated, type_not_associated): Use | |
1975 | "prop->const_val () == 0" instead of "prop->const_val () != 0". | |
1976 | ||
97916bfe SM |
1977 | 2020-08-04 Simon Marchi <simon.marchi@efficios.com> |
1978 | ||
1979 | * frame.h (frame_id_p): Return bool. | |
1980 | (frame_id_artificial_p): Return bool. | |
1981 | (frame_id_eq): Return bool. | |
1982 | (has_stack_frames): Return bool. | |
1983 | (get_selected_frame): Fix typo in comment. | |
1984 | (get_frame_pc_if_available): Return bool. | |
1985 | (get_frame_address_in_block_if_available): Return bool. | |
1986 | (get_frame_func_if_available): Return bool. | |
1987 | (read_frame_register_unsigned): Return bool. | |
1988 | (get_frame_register_bytes): Return bool. | |
1989 | (safe_frame_unwind_memory): Return bool. | |
1990 | (deprecated_frame_register_read): Return bool. | |
1991 | (frame_unwinder_is): Return bool. | |
1992 | * frame.c (struct frame_info) <prev_arch::p>: Change type to | |
1993 | bool. | |
1994 | <this_id::p>: Likewise. | |
1995 | <prev_p>: Likewise. | |
1996 | (frame_stash_add): Return bool. | |
1997 | (get_frame_id): Use bool. | |
1998 | (frame_id_build_special) Use bool. | |
1999 | (frame_id_build_unavailable_stack): Use bool. | |
2000 | (frame_id_build): Use bool. | |
2001 | (frame_id_p): Return bool, use true/false instead of 1/0. | |
2002 | (frame_id_artificial_p): Likewise. | |
2003 | (frame_id_eq): Likewise. | |
2004 | (frame_id_inner): Likewise. | |
2005 | (get_frame_func_if_available): Likewise. | |
2006 | (read_frame_register_unsigned): Likewise. | |
2007 | (deprecated_frame_register_read): Likewise. | |
2008 | (get_frame_register_bytes): Likewise. | |
2009 | (has_stack_frames): Likewise. | |
2010 | (inside_main_func): Likewise. | |
2011 | (inside_entry_func): Likewise. | |
2012 | (get_frame_pc_if_available): Likewise. | |
2013 | (get_frame_address_in_block_if_available): Likewise. | |
2014 | (frame_unwinder_is): Likewise. | |
2015 | (safe_frame_unwind_memory): Likewise. | |
2016 | (frame_unwind_arch): Likewise. | |
2017 | ||
fedfee88 SM |
2018 | 2020-08-04 Simon Marchi <simon.marchi@efficios.com> |
2019 | ||
2020 | * frame.c (frame_info) <prev_func> <p>: Rename to status, change | |
2021 | type to cached_copy_status. | |
2022 | (fprintf_frame): Adjust. | |
2023 | (get_frame_func_if_available): Adjust. | |
2024 | (frame_cleanup_after_sniffer): Adjust. | |
2025 | ||
6cfa9b59 MW |
2026 | 2020-08-04 Mark Wielaard <mark@klomp.org> |
2027 | ||
2028 | * MAINTAINERS (Write After Approval): Update email address. | |
2029 | ||
66d6346b SM |
2030 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
2031 | ||
2032 | * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with | |
2033 | dynamic_prop::const_val. | |
2034 | ||
8a6d5e35 SM |
2035 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
2036 | ||
2037 | * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with | |
2038 | dynamic_prop::kind. | |
2039 | ||
51d6067d SM |
2040 | 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca> |
2041 | ||
2042 | * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove. | |
2043 | ||
b26e2ae7 JM |
2044 | 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com> |
2045 | ||
2046 | * configure.tgt: Set gdb_sim for bpf-*-* targets. | |
2047 | ||
39791af2 JM |
2048 | 2020-08-04 Weimin Pan <weimin.pan@oracle.com> |
2049 | Jose E. Marchesi <jose.marchesi@oracle.com> | |
2050 | ||
2051 | * configure.tgt: Add entry for bpf-*-*. | |
2052 | * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o | |
2053 | (ALLDEPFILES): Add bpf-tdep.c. | |
2054 | * bpf-tdep.c: New file. | |
2055 | * MAINTAINERS: Add bpf target and maintainer. | |
2056 | * NEWS: Mention the support for the new target. | |
2057 | ||
521894aa TV |
2058 | 2020-08-04 Tom de Vries <tdevries@suse.de> |
2059 | ||
2060 | PR symtab/23270 | |
2061 | * dwarf2/read.c (find_partial_die): Change internal error into Dwarf | |
2062 | Error. | |
2063 | ||
5d6356e9 JB |
2064 | 2020-08-03 John Baldwin <jhb@FreeBSD.org> |
2065 | ||
2066 | * syscalls/freebsd.xml: Regenerate. | |
2067 | ||
0cf82b81 JB |
2068 | 2020-08-03 John Baldwin <jhb@FreeBSD.org> |
2069 | ||
2070 | * syscalls/update-freebsd.sh: Fix usage and year range. | |
2071 | ||
8f34b746 TV |
2072 | 2020-08-03 Tom de Vries <tdevries@suse.de> |
2073 | ||
2074 | PR symtab/26333 | |
2075 | * dwarf2/read.c (dwarf_decode_lines_1): Ignore | |
2076 | DW_LNE_lo_user/DW_LNE_hi_user range. | |
2077 | ||
5e500d33 SM |
2078 | 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca> |
2079 | ||
2080 | PR ada/26318 | |
2081 | * ada-lang.c (ada_modulus): Return 0 if property is not of const | |
2082 | kind. | |
2083 | ||
78319c15 TBA |
2084 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2085 | ||
2086 | * breakpoint.c (set_breakpoint_condition): Do minor refactoring. | |
2087 | ||
4c55e970 TBA |
2088 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2089 | ||
2090 | * breakpoint.c (set_breakpoint_condition): Update the condition | |
2091 | expressions after checking that the input condition string parses | |
2092 | successfully and does not contain junk at the end. | |
2093 | ||
1e620590 TBA |
2094 | 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2095 | ||
2096 | * breakpoint.c (set_breakpoint_condition): Update the | |
2097 | condition string after parsing the new condition successfully. | |
2098 | ||
c8693053 RO |
2099 | 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
2100 | ||
2101 | * proc-api.c (_STRUCTURED_PROC): Don't define. | |
2102 | * proc-events.c: Likewise. | |
2103 | * proc-flags.c: Likewise. | |
2104 | * proc-why.c: Likewise. | |
2105 | * procfs.c: Likewise. | |
2106 | ||
2107 | * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS. | |
2108 | * configure, config.in: Regenerate. | |
2109 | ||
5a99adb8 TV |
2110 | 2020-07-30 Tom de Vries <tdevries@suse.de> |
2111 | ||
2112 | PR build/26320 | |
2113 | * ui-style.h (struct ui_file_style::color): Wrap m_value and | |
2114 | m_red/m_green/m_blue in a union. | |
2115 | ||
8ba83e91 TV |
2116 | 2020-07-29 Tom de Vries <tdevries@suse.de> |
2117 | ||
2118 | PR tdep/26280 | |
2119 | * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized. | |
2120 | ||
f75a0693 AB |
2121 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
2122 | ||
2123 | PR symtab/26270: | |
2124 | * symtab.h (find_pc_partial_function_sym): Declare. | |
2125 | * cli/cli-cmds.c (disassemble_command): Use | |
2126 | find_pc_partial_function_sym. Check asm_demangle. | |
2127 | * blockframe.c (cache_pc_function_sym): New global. | |
2128 | (cache_pc_function_name): Remove. | |
2129 | (clear_pc_function_cache): Update. | |
2130 | (find_pc_partial_function_sym): New function, from | |
2131 | find_pc_partial_function. | |
2132 | (find_pc_partial_function): Rewrite using | |
2133 | find_pc_partial_function_sym. | |
2134 | ||
16f3242c TT |
2135 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
2136 | ||
2137 | * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble" | |
2138 | help. Add usage. | |
2139 | ||
4888741a TT |
2140 | 2020-07-28 Tom Tromey <tromey@adacore.com> |
2141 | ||
2142 | * dwarf2/expr.c (dwarf_expr_context::execute_stack_op) | |
2143 | <DW_OP_GNU_variable_value>: Cast to address type. | |
2144 | ||
4d46f402 KR |
2145 | 2020-07-28 Kamil Rytarowski <n54@gmx.com> |
2146 | ||
2147 | * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration. | |
2148 | * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function. | |
2149 | * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data) | |
2150 | (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data) | |
2151 | (nbsd_get_siginfo_type): New. | |
2152 | (nbsd_init_abi): Install gdbarch "get_siginfo_type" method. | |
2153 | (_initialize_nbsd_tdep): New. | |
2154 | ||
d70f978b L |
2155 | 2020-07-28 H.J. Lu <hongjiu.lu@intel.com> |
2156 | ||
2157 | PR binutils/26301 | |
2158 | * configure: Regenerated. | |
2159 | ||
377170fa L |
2160 | 2020-07-28 H.J. Lu <hongjiu.lu@intel.com> |
2161 | ||
2162 | PR binutils/26301 | |
2163 | * configure: Regenerated. | |
2164 | ||
43d5901d AB |
2165 | 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com> |
2166 | ||
2167 | * python/py-frame.c: Remove 'user-regs.h' include. | |
2168 | (frapy_read_register): Rewrite to make use of | |
2169 | gdbpy_parse_register_id. | |
2170 | * python/py-registers.c (gdbpy_parse_register_id): New function, | |
2171 | moved here from python/py-unwind.c. Updated the return type, and | |
2172 | also accepts register descriptor objects. | |
2173 | * python/py-unwind.c: Remove 'user-regs.h' include. | |
2174 | (pyuw_parse_register_id): Moved to python/py-registers.c. | |
2175 | (unwind_infopy_add_saved_register): Update to use | |
2176 | gdbpy_parse_register_id. | |
2177 | (pending_framepy_read_register): Likewise. | |
2178 | * python/python-internal.h (gdbpy_parse_register_id): Declare. | |
2179 | ||
14fa8fb3 AB |
2180 | 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com> |
2181 | ||
2182 | * python/py-registers.c: Add 'user-regs.h' include. | |
2183 | (register_descriptor_iter_find): New function. | |
2184 | (register_descriptor_iterator_object_methods): New static global | |
2185 | methods array. | |
2186 | (register_descriptor_iterator_object_type): Add pointer to methods | |
2187 | array. | |
2188 | ||
ddce1758 JB |
2189 | 2020-07-27 John Baldwin <jhb@FreeBSD.org> |
2190 | ||
2191 | * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO | |
2192 | for all architectures on FreeBSD 11.3 and later. | |
2193 | ||
a4089f52 TT |
2194 | 2020-07-27 Tom Tromey <tromey@adacore.com> |
2195 | ||
2196 | * gcore.h (load_corefile): Don't declare. | |
2197 | ||
95420d30 TV |
2198 | 2020-07-27 Tom de Vries <tdevries@suse.de> |
2199 | ||
2200 | * configure.ac: Fix sys/sockets.h -> sys/socket.h typo. | |
2201 | * config.in: Regenerate. | |
2202 | * configure: Regenerate. | |
2203 | ||
05a6b8c2 EZ |
2204 | 2020-07-26 Eli Zaretskii <eliz@gnu.org> |
2205 | ||
2206 | * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and | |
2207 | ws2tcpip.h. When checking whether socklen_t type is defined, use | |
2208 | ws2tcpip.h if it is available and sys/socket.h isn't. | |
2209 | * configure: Regenerate. | |
2210 | * config.in: Regenerate. | |
2211 | ||
e79eb02f AB |
2212 | 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com> |
2213 | ||
2214 | PR fortran/23051 | |
2215 | PR fortran/26139 | |
2216 | * valops.c (value_ind): Pass address to | |
2217 | readjust_indirect_value_type. | |
2218 | * value.c (readjust_indirect_value_type): Make parameter | |
2219 | non-const, and add extra address parameter. Resolve original type | |
2220 | before using it. | |
2221 | * value.h (readjust_indirect_value_type): Update function | |
2222 | signature and comment. | |
2223 | ||
876518dd TV |
2224 | 2020-07-25 Tom de Vries <tdevries@suse.de> |
2225 | ||
2226 | PR symtab/26243 | |
2227 | * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line | |
2228 | entries. | |
2229 | ||
f6720b1c AM |
2230 | 2020-07-24 Aaron Merey <amerey@redhat.com> |
2231 | ||
2232 | * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS. | |
2233 | * configure: Rebuild. | |
2234 | ||
513487e1 KB |
2235 | 2020-07-23 Kevin Buettner <kevinb@redhat.com> |
2236 | ||
2237 | PR corefiles/26294 | |
2238 | * corelow.c (_initialize_corelow): Add period to help text | |
2239 | for "maintenance print core-file-backed-mappings". | |
2240 | ||
e7bc9db8 PA |
2241 | 2020-07-23 Pedro Alves <pedro@palves.net> |
2242 | ||
2243 | * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't | |
2244 | touch THIS_CACHE/THIS_FRAME if the frame cache was cleared | |
2245 | meanwhile. | |
2246 | * frame.c (frame_cache_generation, get_frame_cache_generation): | |
2247 | New. | |
2248 | (reinit_frame_cache): Increment FRAME_CACHE_GENERATION. | |
2249 | (get_prev_frame_if_no_cycle): On exception, don't touch | |
2250 | PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile. | |
2251 | * frame.h (get_frame_cache_generation): Declare. | |
2252 | ||
90fcc466 TV |
2253 | 2020-07-23 Tom de Vries <tdevries@suse.de> |
2254 | ||
2255 | PR tui/26282 | |
2256 | * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows): | |
2257 | New default constructor. | |
2258 | ||
78344df7 AB |
2259 | 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com> |
2260 | ||
2261 | * disasm.c (do_mixed_source_and_assembly_deprecated): Don't | |
2262 | exclude non-statement entries. | |
2263 | ||
b089853a KB |
2264 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
2265 | ||
2266 | * NEWS (New commands): Mention new command | |
2267 | "maintenance print core-file-backed-mappings". | |
2268 | ||
09c2f5d4 KB |
2269 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
2270 | ||
2271 | * corelow.c (gdbcmd.h): Include. | |
2272 | (core_target::info_proc_mappings): New method. | |
2273 | (get_current_core_target): New function. | |
2274 | (maintenance_print_core_file_backed_mappings): New function. | |
2275 | (_initialize_corelow): Add core-file-backed-mappings to | |
2276 | "maint print" commands. | |
2277 | ||
9c5ec5c2 | 2278 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
fe4c3d43 | 2279 | |
9c5ec5c2 KB |
2280 | * linux-tdep.c (dump_note_entry_p): New function. |
2281 | (linux_dump_mapping_p_ftype): New typedef. | |
2282 | (linux_find_memory_regions_full): Add new parameter, | |
2283 | should_dump_mapping_p. | |
2284 | (linux_find_memory_regions): Adjust call to | |
2285 | linux_find_memory_regions_full. | |
2286 | (linux_make_mappings_core_file_notes): Use dump_note_entry_p in | |
2287 | call to linux_find_memory_regions_full. | |
2288 | ||
db082f59 KB |
2289 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
2290 | ||
2291 | * corelow.c (solist.h, unordered_map): Include. | |
2292 | (class core_target): Add field m_core_file_mappings and | |
2293 | method build_file_mappings. | |
2294 | (core_target::core_target): Call build_file_mappings. | |
2295 | (core_target::~core_target): Free memory associated with | |
2296 | m_core_file_mappings. | |
2297 | (core_target::build_file_mappings): New method. | |
2298 | (core_target::xfer_partial): Use m_core_file_mappings | |
2299 | for memory transfers. | |
2300 | * linux-tdep.c (linux_read_core_file_mappings): New | |
2301 | function. | |
2302 | (linux_core_info_proc_mappings): Rewrite to use | |
2303 | linux_read_core_file_mappings. | |
2304 | (linux_init_abi): Register linux_read_core_file_mappings. | |
2305 | ||
7e183d27 KB |
2306 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
2307 | ||
2308 | * arch-utils.c (default_read_core_file_mappings): New function. | |
2309 | * arch-utils.c (default_read_core_file_mappings): Declare. | |
2310 | * gdbarch.sh (read_core_file_mappings): New gdbarch method. | |
2311 | * gdbarch.h, gdbarch.c: Regenerate. | |
2312 | ||
2735d421 KB |
2313 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
2314 | ||
2315 | PR corefiles/25631 | |
2316 | * corelow.c (core_target:xfer_partial): Revise | |
2317 | TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS | |
2318 | case after first checking the stratum beneath the core | |
2319 | target. | |
2320 | (has_all_memory): Return true. | |
2321 | * target.c (raw_memory_xfer_partial): Revise comment | |
2322 | regarding use of has_all_memory. | |
2323 | ||
e56cb451 KB |
2324 | 2020-07-22 Kevin Buettner <kevinb@redhat.com> |
2325 | ||
2326 | * exec.h (section_table_xfer_memory): Revise declaration, | |
2327 | replacing section name parameter with an optional callback | |
2328 | predicate. | |
2329 | * exec.c (section_table_xfer_memory): Likewise. | |
2330 | * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers | |
2331 | of section_table_xfer_memory. | |
2332 | ||
32fa152e TT |
2333 | 2020-07-22 Tom Tromey <tromey@adacore.com> |
2334 | ||
2335 | * mi/mi-cmd-stack.c (list_args_or_locals): Use | |
2336 | lookup_symbol_search_name. | |
2337 | ||
a67a1c41 AB |
2338 | 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com> |
2339 | ||
2340 | * python/py-registers.c (gdbpy_register_object_data_init): Remove | |
2341 | redundant local variable. | |
2342 | (gdbpy_get_register_descriptor): Extract descriptor vector as a | |
2343 | reference, not pointer, update code accordingly. | |
2344 | ||
a7b4ff4f SM |
2345 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
2346 | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
2347 | ||
2348 | * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field. | |
2349 | * jit.c (jit_breakpoint_re_set_internal): Use the | |
2350 | `skip_jit_symbol_lookup` field. | |
2351 | ||
2340e834 SM |
2352 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
2353 | Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> | |
2354 | ||
2355 | * jit.c (jit_read_descriptor): Define the descriptor address once, | |
2356 | use twice. | |
2357 | (jit_breakpoint_deleted): Move the declaration of the loop variable | |
2358 | `iter` into the loop header. | |
2359 | (jit_breakpoint_re_set_internal): Move the declaration of the local | |
2360 | variable `objf_data` to the first point of definition. | |
2361 | (jit_event_handler): Move the declaration of local variables | |
2362 | `code_entry`, `entry_addr`, and `objf` to their first point of use. | |
2363 | Rename `objf` to `jited`. | |
2364 | ||
c1072906 SM |
2365 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
2366 | ||
2367 | * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>: | |
2368 | Remove. | |
2369 | * jit.c (get_jiter_objfile_data): Update. | |
2370 | ||
c8474dc3 TBA |
2371 | 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2372 | Simon Marchi <simon.marchi@polymtl.ca> | |
2373 | ||
2374 | * jit.c (struct jit_program_space_data): Remove. | |
2375 | (jit_program_space_key): Remove. | |
2376 | (jiter_objfile_data::~jiter_objfile_data): Remove program space | |
2377 | stuff. | |
2378 | (get_jit_program_space_data): Remove. | |
2379 | (jit_breakpoint_deleted): Iterate on all of the program space's | |
2380 | objfiles. | |
2381 | (jit_inferior_init): Likewise. | |
2382 | (jit_breakpoint_re_set_internal): Likewise. Also change return | |
2383 | type to void. | |
2384 | (jit_breakpoint_re_set): Pass current_program_space to | |
2385 | jit_breakpoint_re_set_internal. | |
2386 | ||
77208eb7 SM |
2387 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
2388 | ||
2389 | * jit.h (struct jiter_objfile_data) <cached_code_address, | |
2390 | jit_breakpoint>: Move to here from ... | |
2391 | * jit.c (jit_program_space_data): ... here. | |
2392 | (jiter_objfile_data::~jiter_objfile_data): Update. | |
2393 | (jit_breakpoint_deleted): Update. | |
2394 | (jit_breakpoint_re_set_internal): Update. | |
2395 | ||
8c1c720f SM |
2396 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
2397 | ||
2398 | * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some | |
2399 | checks. | |
2400 | (jit_read_descriptor): Remove NULL check. | |
2401 | (jit_event_handler): Add an assertion. | |
2402 | ||
0e74a041 SM |
2403 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
2404 | ||
2405 | * jit.h (struct jit_objfile_data): Split into... | |
2406 | (struct jiter_objfile_data): ... this ... | |
2407 | (struct jited_objfile_data): ... and this. | |
2408 | * objfiles.h (struct objfile) <jit_data>: Remove. | |
2409 | <jiter_data, jited_data>: New fields. | |
2410 | * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ... | |
2411 | (jiter_objfile_data::~jiter_objfile_data): ... this. | |
2412 | (get_jit_objfile_data): Rename to ... | |
2413 | (get_jiter_objfile_data): ... this. | |
2414 | (add_objfile_entry): Update. | |
2415 | (jit_read_descriptor): Use get_jiter_objfile_data. | |
2416 | (jit_find_objf_with_entry_addr): Use objfile's jited_data field. | |
2417 | (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data. | |
2418 | (jit_inferior_exit_hook): Use objfile's jited_data field. | |
2419 | ||
238b5c9f SM |
2420 | 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca> |
2421 | ||
2422 | * jit.h: Forward-declare `struct minimal_symbol`. | |
2423 | (struct jit_objfile_data): Migrate to here from jit.c; also add a | |
2424 | constructor, destructor, and an objfile* field. | |
2425 | * jit.c (jit_objfile_data): Remove. | |
2426 | (struct jit_objfile_data): Migrate from here to jit.h. | |
2427 | (jit_objfile_data::~jit_objfile_data): New destructor | |
2428 | implementation with code moved from free_objfile_data. | |
2429 | (free_objfile_data): Delete. | |
2430 | (get_jit_objfile_data): Update to use the jit_data field of objfile. | |
2431 | (jit_find_objf_with_entry_addr): Ditto. | |
2432 | (jit_inferior_exit_hook): Ditto. | |
2433 | (_initialize_jit): Remove the call to | |
2434 | register_objfile_data_with_cleanup. | |
2435 | * objfiles.h (struct objfile) <jit_data>: New field. | |
2436 | ||
fe053b9e TBA |
2437 | 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2438 | ||
2439 | * jit.h: Forward-declare `struct objfile`. | |
2440 | (jit_event_handler): Add a second parameter, the JITer objfile. | |
2441 | * jit.c (jit_read_descriptor): Change the signature to take the | |
2442 | JITer objfile as an argument instead of the jit_program_space_data. | |
2443 | (jit_inferior_init): Update the call to jit_read_descriptor. | |
2444 | (jit_event_handler): Use the new JITer objfile argument when calling | |
2445 | jit_read_descriptor. | |
2446 | * breakpoint.c (handle_jit_event): Update the call to | |
2447 | jit_event_handler to pass the JITer objfile. | |
2448 | ||
4cec0c66 JB |
2449 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
2450 | ||
2451 | * gdbarch.c: Regenerate. | |
2452 | * gdbarch.h: Regenerate. | |
2453 | * gdbarch.sh (handle_segmentation_fault): Remove method. | |
2454 | * infrun.c (handle_segmentation_fault): Remove. | |
2455 | (print_signal_received_reason): Remove call to | |
2456 | handle_segmentation_fault. | |
2457 | ||
0e42f66a JB |
2458 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
2459 | ||
2460 | * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault): | |
2461 | Rename to sparc64_linux_report_signal_info and add siggnal | |
2462 | argument. | |
2463 | (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info | |
2464 | instead of sparc64_linux_handle_segmentation_fault. | |
2465 | ||
77bdfeb2 JB |
2466 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
2467 | ||
2468 | * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use | |
2469 | i386_linux_report_signal_info instead of | |
2470 | i386_linux_handle_segmentation_fault. | |
2471 | * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename | |
2472 | to i386_linux_report_signal_info and add siggnal argument. | |
2473 | (i386_linux_init_abi): Use i386_linux_report_signal_info instead | |
2474 | of i386_linux_handle_segmentation_fault. | |
2475 | * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename | |
2476 | to i386_linux_report_signal_info and add siggnal argument. | |
2477 | ||
ad97bfc5 JB |
2478 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
2479 | ||
2480 | * corelow.c (core_target_open): Invoke gdbarch report_signal_info | |
2481 | hook if present. | |
2482 | ||
272bb05c JB |
2483 | 2020-07-21 John Baldwin <jhb@FreeBSD.org> |
2484 | ||
2485 | * gdbarch.c: Regenerate. | |
2486 | * gdbarch.h: Regenerate. | |
2487 | * gdbarch.sh (report_signal_info): New method. | |
2488 | * infrun.c (print_signal_received_reason): Invoke gdbarch | |
2489 | report_signal_info hook if present. | |
2490 | ||
baf8791e AB |
2491 | 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com> |
2492 | ||
2493 | * python/py-registers.c : Add 'unordered_map' include. | |
2494 | (gdbpy_new_reggroup): Renamed to... | |
2495 | (gdbpy_get_reggroup): ...this. Update to only create register | |
2496 | group descriptors when needed. | |
2497 | (gdbpy_reggroup_iter_next): Update. | |
2498 | ||
f7306dac AB |
2499 | 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com> |
2500 | ||
2501 | * python/py-registers.c (gdbpy_register_object_data): New static | |
2502 | global. | |
2503 | (gdbpy_register_object_data_init): New function. | |
2504 | (gdbpy_new_register_descriptor): Renamed to... | |
2505 | (gdbpy_get_register_descriptor): ...this, and update to reuse | |
2506 | existing register descriptors where possible. | |
2507 | (gdbpy_register_descriptor_iter_next): Update. | |
2508 | (gdbpy_initialize_registers): Register new gdbarch data. | |
2509 | ||
05c309a8 SM |
2510 | 2020-07-21 Simon Marchi <simon.marchi@efficios.com> |
2511 | ||
2512 | * linux-nat.c (stopped_pids): Make static. | |
2513 | ||
d1fd641e SM |
2514 | 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca> |
2515 | ||
2516 | PR ada/26235 | |
2517 | * gdbtypes.c (ada_discrete_type_low_bound, | |
2518 | ada_discrete_type_high_bound): Handle undefined bounds. | |
2519 | ||
1de14d77 KR |
2520 | 2020-07-21 Kamil Rytarowski <n54@gmx.com> |
2521 | ||
2522 | * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New | |
2523 | declaration. | |
2524 | * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New | |
2525 | function. | |
2526 | ||
ed810cc7 JB |
2527 | 2020-07-20 John Baldwin <jhb@FreeBSD.org> |
2528 | ||
2529 | * fbsd-tdep.c (fbsd_skip_solib_resolver): New function. | |
2530 | (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method. | |
2531 | * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype. | |
2532 | * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function. | |
2533 | (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver" | |
2534 | method. | |
2535 | ||
ae5369e7 LC |
2536 | 2020-07-20 Ludovic Courtès <ludo@gnu.org> |
2537 | ||
2538 | * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t' | |
2539 | and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax', | |
2540 | which are deprecated in Guile 3.0. | |
2541 | * configure.ac (try_guile_versions): Add "guile-3.0". | |
2542 | * configure (try_guile_versions): Regenerate. | |
2543 | * NEWS: Update entry. | |
2544 | ||
68cf161c LC |
2545 | 2020-07-20 Ludovic Courtès <ludo@gnu.org> |
2546 | Doug Evans <dje@google.com> | |
2547 | ||
2548 | PR gdb/21104 | |
2549 | * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro. | |
2550 | (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if | |
2551 | USING_GUILE_BEFORE_2_2. | |
2552 | (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]: | |
2553 | Change type to 'scm_t_port_type *'. | |
2554 | (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable. | |
2555 | (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream' | |
2556 | parameter and honor it. Update callers. | |
2557 | (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function. | |
2558 | (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New | |
2559 | functions. | |
2560 | (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if | |
2561 | USING_GUILE_BEFORE_2_2. | |
2562 | (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use | |
2563 | 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'. | |
2564 | (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function. | |
2565 | (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP' | |
2566 | and 'SCM_PORT_TYPE'. | |
2567 | (gdbscm_memory_port_end_input, gdbscm_memory_port_seek) | |
2568 | (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2. | |
2569 | (gdbscm_memory_port_read, gdbscm_memory_port_write) | |
2570 | (gdbscm_memory_port_seek, gdbscm_memory_port_close) | |
2571 | [!USING_GUILE_BEFORE_2_2]: New functions. | |
2572 | (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'. | |
2573 | (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use | |
2574 | 'gdbscm_memory_port_read'. | |
2575 | Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and | |
2576 | 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2. | |
2577 | (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New | |
2578 | function. | |
2579 | (ioscm_init_memory_port): Remove. | |
2580 | (ioscm_init_memory_port_stream): New function | |
2581 | (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New | |
2582 | function. | |
2583 | (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]: | |
2584 | Return scm_from_uint (0). | |
2585 | (gdbscm_set_memory_port_read_buffer_size_x) | |
2586 | [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'. | |
2587 | (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]: | |
2588 | Return scm_from_uint (0). | |
2589 | (gdbscm_set_memory_port_write_buffer_size_x) | |
2590 | [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'. | |
2591 | * configure.ac (try_guile_versions): Add "guile-2.2". | |
2592 | * configure: Regenerate. | |
2593 | * NEWS: Add entry. | |
2594 | ||
aee91db3 TT |
2595 | 2020-07-18 Tom Tromey <tom@tromey.com> |
2596 | ||
2597 | * linux-nat.c (linux_multi_process): Remove. | |
2598 | (linux_nat_target::supports_multi_process): Return true. | |
2599 | ||
0e267416 AB |
2600 | 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com> |
2601 | ||
2602 | * arch/riscv.c (riscv_tdesc_cache): Change map type. | |
2603 | (riscv_lookup_target_description): Return pointer out of | |
2604 | unique_ptr. | |
2605 | * target-descriptions.c (allocate_target_description): Add | |
2606 | comment. | |
2607 | (target_desc_deleter::operator()): Likewise. | |
2608 | * target-descriptions.h (struct target_desc_deleter): Moved to | |
2609 | gdbsupport/tdesc.h. | |
2610 | (target_desc_up): Likewise. | |
2611 | ||
f80c8ec4 TT |
2612 | 2020-07-17 Tom Tromey <tromey@adacore.com> |
2613 | ||
2614 | * linux-nat.c (linux_nat_target::supports_non_stop) | |
2615 | (linux_nat_target::always_non_stop_p): Use "true". | |
2616 | (linux_nat_target::supports_disable_randomization): Use "true" and | |
2617 | "false". | |
2618 | ||
d0ce17d8 CT |
2619 | 2020-07-16 Caroline Tice <cmtice@google.com> |
2620 | ||
2621 | * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition. | |
2622 | (RNGLIST_HEADER_SIZE64): New constant definition. | |
2623 | (struct dwop_section_names): Add rnglists_dwo. | |
2624 | (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo. | |
2625 | (struct loclist_header): Rename to 'loclists_rnglists_header'. | |
2626 | (struct dwo_sections): Add rnglists field. | |
2627 | (read_attribut_reprocess): Add tag parameter. | |
2628 | (dwarf2_ranges_read): Add tag parameter & remove forward function decl. | |
2629 | (cu_debug_rnglists_section): New function (decl & definition). | |
2630 | (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section. | |
2631 | (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of | |
2632 | die whose range is being checked; get rnglist section from | |
2633 | cu_debug_rnglists_section, to get from either objfile or dwo file as | |
2634 | appropriate. Add cases for DW_RLE_base_addressx, | |
2635 | DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add | |
2636 | the base address to DW_RLE_offset_pairs (not to all ranges), moving | |
2637 | test inside if-condition and updating complaint message. | |
2638 | (dwarf2_ranges_process): Add dwarf tag parameter and pass it to | |
2639 | dwarf2_rnglists_process. | |
2640 | (dwarf2_ranges_read): Add dwarf tag parameter and pass it to | |
2641 | dwarf2_ranges_process. | |
2642 | (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting | |
2643 | need_ranges_base and update comment appropriately. Also pass die tag | |
2644 | to dwarf2_ranges_read. | |
2645 | (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting | |
2646 | need_ranges_base and update comment appropriately. Also pass die tag | |
2647 | to dwarf2_ranges_process. | |
2648 | (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to | |
2649 | cu->ranges_base. Also pass die tag to read_attribute_reprocess. | |
2650 | (partial_die_info::read): Check for DW_FORM_rnglistx when setting | |
2651 | need_ranges_base and update comment appropriately. Also pass die tag | |
2652 | to read_attribute_reprocess and dwarf2_ranges_read. | |
2653 | (read_loclist_header): Rename function to read_loclists_rnglists_header, | |
2654 | and update function comment appropriately. | |
2655 | (read_loclist_index): Call read_loclists_rnglists_header instead of | |
2656 | read_loclist_header. | |
2657 | (read_rnglist_index): New function. | |
2658 | (read_attribute_reprocess): Add tag parameter. Add code for | |
2659 | DW_FORM_rnglistx, passing tag to read_rnglist_index. | |
2660 | (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess. | |
2661 | ||
3dcc261c AB |
2662 | 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com> |
2663 | ||
2664 | * f-typeprint.c (f_type_print_base): Allow for dynamic types not | |
2665 | being resolved. | |
2666 | ||
ccb9eba6 AB |
2667 | 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com> |
2668 | ||
2669 | * arch-utils.c (show_architecture): Update formatting of messages. | |
2670 | ||
cf88be68 SM |
2671 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
2672 | ||
2673 | * gdbtypes.h (struct type) <bounds>: Handle array and string | |
2674 | types. | |
2675 | * ada-lang.c (assign_aggregate): Use type::bounds on | |
2676 | array/string type. | |
2677 | * c-typeprint.c (c_type_print_varspec_suffix): Likewise. | |
2678 | * c-varobj.c (c_number_of_children): Likewise. | |
2679 | (c_describe_child): Likewise. | |
2680 | * eval.c (evaluate_subexp_for_sizeof): Likewise. | |
2681 | * f-typeprint.c (f_type_print_varspec_suffix): Likewise. | |
2682 | (f_type_print_base): Likewise. | |
2683 | * f-valprint.c (f77_array_offset_tbl): Likewise. | |
2684 | (f77_get_upperbound): Likewise. | |
2685 | (f77_print_array_1): Likewise. | |
2686 | * guile/scm-type.c (gdbscm_type_range): Likewise. | |
2687 | * m2-typeprint.c (m2_array): Likewise. | |
2688 | (m2_is_long_set_of_type): Likewise. | |
2689 | * m2-valprint.c (get_long_set_bounds): Likewise. | |
2690 | * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise. | |
2691 | * python/py-type.c (typy_range): Likewise. | |
2692 | * rust-lang.c (rust_internal_print_type): Likewise. | |
2693 | * type-stack.c (type_stack::follow_types): Likewise. | |
2694 | * valarith.c (value_subscripted_rvalue): Likewise. | |
2695 | * valops.c (value_cast): Likewise. | |
2696 | ||
509971ae SM |
2697 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
2698 | ||
2699 | * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all | |
2700 | callers to use the equivalent accessor methods. | |
2701 | ||
107406b7 SM |
2702 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
2703 | ||
2704 | * gdbtypes.h (struct range_bounds) <bit_stride>: New method. | |
2705 | (struct type) <bit_stride>: New method. | |
2706 | (TYPE_BIT_STRIDE): Remove. | |
2707 | * gdbtypes.c (update_static_array_size): Use type::bit_stride. | |
2708 | ||
bb789949 SM |
2709 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
2710 | ||
2711 | * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE, | |
2712 | TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all | |
2713 | callers to use the equivalent accessor methods instead. | |
2714 | ||
39498edb SM |
2715 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
2716 | ||
2717 | * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED, | |
2718 | TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all | |
2719 | callers to use the equivalent accessor methods instead. | |
2720 | ||
3b606f38 SM |
2721 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
2722 | ||
2723 | * gdbtypes.h (TYPE_LOW_BOUND_KIND, | |
2724 | TYPE_HIGH_BOUND_KIND): Remove. Update all callers | |
2725 | to use dynamic_prop::kind. | |
2726 | ||
064d9cb9 SM |
2727 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
2728 | ||
2729 | * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED, | |
2730 | TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers | |
2731 | to get the bound property's kind and check against | |
2732 | PROP_UNDEFINED. | |
2733 | ||
5537ddd0 SM |
2734 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
2735 | ||
2736 | * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update | |
2737 | all callers to use type::range_bounds followed by | |
2738 | dynamic_prop::{low,high}. | |
2739 | ||
8c2e4e06 SM |
2740 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> |
2741 | ||
2742 | * gdbtypes.h (struct dynamic_prop) <kind, set_undefined, | |
2743 | const_val, set_const_val, baton, set_locexpr, set_loclist, | |
2744 | set_addr_offset, variant_parts, set_variant_parts, | |
2745 | original_type, set_original_type>: New methods. | |
2746 | <kind>: Rename to... | |
2747 | <m_kind>: ... this. Update all users to use the new methods | |
2748 | instead. | |
2749 | <data>: Rename to... | |
2750 | <m_data>: ... this. Update all users to use the new methods | |
2751 | instead. | |
2752 | ||
7c6f2712 SM |
2753 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
2754 | ||
2755 | * gdbtypes.c (get_discrete_bounds): Return failure if | |
2756 | the range type's bounds are not both defined and constant | |
2757 | values. | |
2758 | (get_array_bounds): Update comment. Remove undefined bound check. | |
2759 | ||
599088e3 SM |
2760 | 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca> |
2761 | ||
2762 | * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use | |
2763 | the type::bounds method directly. | |
2764 | ||
c4dfcb36 SM |
2765 | 2020-07-12 Simon Marchi <simon.marchi@efficios.com> |
2766 | ||
2767 | * gdbtypes.h (struct type) <bounds, set_bounds>: New methods. | |
2768 | (TYPE_RANGE_DATA): Use type::bounds. Change all uses that | |
2769 | are used to set the range type's bounds to use set_bounds. | |
2770 | ||
0a278aa7 PW |
2771 | 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
2772 | ||
2773 | * exec.c (_initialize_exec): Update exec-file-mismatch help. | |
2774 | ||
cce20f10 PA |
2775 | 2020-07-10 Pedro Alves <pedro@palves.net> |
2776 | ||
2777 | * gdbthread.h (inferior_ref): Define. | |
2778 | (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref. | |
2779 | (scoped_restore_current_thread) <m_inf>: Now an inferior_ref. | |
2780 | * thread.c | |
2781 | (scoped_restore_current_thread::restore): | |
2782 | Adjust to gdb::ref_ptr. | |
2783 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
2784 | Remove manual decref handling. | |
2785 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
2786 | Adjust to use | |
2787 | inferior_ref::new_reference/thread_info_ref::new_reference. | |
2788 | Incref the thread before calling get_frame_id instead of after. | |
2789 | Let TARGET_CLOSE_ERROR propagate. | |
2790 | ||
6d7aa592 PA |
2791 | 2020-07-10 Pedro Alves <pedro@palves.net> |
2792 | ||
2793 | * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow | |
2794 | NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR / | |
2795 | NOT_AVAILABLE_ERROR. | |
2796 | * value.c (value_optimized_out): Only swallow MEMORY_ERROR / | |
2797 | OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR. | |
2798 | ||
b3e3a4c1 SM |
2799 | 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca> |
2800 | Pedro Alves <pedro@palves.net> | |
2801 | ||
2802 | PR gdb/26199 | |
2803 | * infrun.c (threads_are_resumed_pending_p): Delete. | |
2804 | (do_target_wait): Remove threads_are_executing and | |
2805 | threads_are_resumed_pending_p checks from the inferior_matches | |
2806 | lambda. Update comments. | |
2807 | ||
d6cc5d98 PA |
2808 | 2020-07-10 Pedro Alves <pedro@palves.net> |
2809 | ||
2810 | PR gdb/26199 | |
2811 | * infrun.c (handle_no_resumed): Transfer terminal to inferior with | |
2812 | executing threads. | |
2813 | ||
7d3badc6 PA |
2814 | 2020-07-10 Pedro Alves <pedro@palves.net> |
2815 | ||
2816 | PR gdb/26199 | |
2817 | * infrun.c (handle_no_resumed): Handle multiple targets. | |
2818 | ||
42bd97a6 PA |
2819 | 2020-07-10 Pedro Alves <pedro@palves.net> |
2820 | ||
2821 | PR gdb/26199 | |
2822 | * infrun.c (prepare_to_wait): Check target_can_async_p instead of | |
2823 | target_is_async_p. | |
2824 | ||
43667cc6 PA |
2825 | 2020-07-10 Pedro Alves <pedro@palves.net> |
2826 | ||
2827 | PR gdb/26199 | |
2828 | * target.c (target_pass_ctrlc): Look at the inferior's non-exited | |
2829 | threads, not all threads. | |
2830 | ||
96118d11 PA |
2831 | 2020-07-10 Pedro Alves <pedro@palves.net> |
2832 | ||
2833 | PR gdb/26199 | |
2834 | * remote.c (remote_target::open_1): Pass remote target pointer as | |
2835 | data to create_async_event_handler. | |
2836 | (remote_async_inferior_event_handler): Mark async event handler | |
2837 | before returning if the remote target still has either pending | |
2838 | events or unacknowledged notifications. | |
2839 | ||
54904d81 JB |
2840 | 2020-07-10 John Baldwin <jhb@FreeBSD.org> |
2841 | ||
2842 | * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New | |
2843 | declaration. | |
2844 | * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New | |
2845 | function. | |
2846 | ||
f37e5866 JB |
2847 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> |
2848 | ||
2849 | * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against | |
2850 | inferior_ptid. | |
2851 | ||
fc238d4a JB |
2852 | 2020-07-09 John Baldwin <jhb@FreeBSD.org> |
2853 | ||
2854 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC, | |
2855 | AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV, | |
2856 | AT_FREEBSD_PS_STRINGS. | |
2857 | ||
6e2469ff HD |
2858 | 2020-07-08 Hannes Domani <ssbssa@yahoo.de> |
2859 | ||
2860 | * auto-load.c (auto_load_objfile_script_1): Convert drive part | |
2861 | of debugfile path on Windows. | |
2862 | ||
d1076c41 JB |
2863 | 2020-07-08 John Baldwin <jhb@FreeBSD.org> |
2864 | ||
2865 | * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd' | |
2866 | argument to 'data'. | |
2867 | ||
15f3b077 TT |
2868 | 2020-07-08 Tom Tromey <tromey@adacore.com> |
2869 | ||
2870 | * ada-lang.c (ada_exception_message_1): Use read_memory. | |
2871 | ||
9fc501fd AB |
2872 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2873 | ||
2874 | PR python/22748 | |
2875 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove | |
2876 | special handling for inline frames. | |
2877 | * findvar.c (value_of_register_lazy): Skip inline frames when | |
2878 | creating lazy register values. | |
2879 | * frame.c (frame_id_computed_p): Delete definition. | |
2880 | * frame.h (frame_id_computed_p): Delete declaration. | |
2881 | ||
64cb3757 AB |
2882 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2883 | ||
2884 | * NEWS: Mention additions to Python API. | |
2885 | * python/py-arch.c (archpy_register_groups): New function. | |
2886 | (arch_object_methods): Add 'register_groups' method. | |
2887 | * python/py-registers.c (reggroup_iterator_object): New struct. | |
2888 | (reggroup_object): New struct. | |
2889 | (gdbpy_new_reggroup): New function. | |
2890 | (gdbpy_reggroup_to_string): New function. | |
2891 | (gdbpy_reggroup_name): New function. | |
2892 | (gdbpy_reggroup_iter): New function. | |
2893 | (gdbpy_reggroup_iter_next): New function. | |
2894 | (gdbpy_new_reggroup_iterator): New function | |
2895 | (gdbpy_initialize_registers): Register new types. | |
2896 | (reggroup_iterator_object_type): Define new Python type. | |
2897 | (gdbpy_reggroup_getset): New static global. | |
2898 | (reggroup_object_type): Define new Python type. | |
2899 | * python/python-internal.h | |
2900 | ||
0f767f94 AB |
2901 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2902 | ||
2903 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c | |
2904 | * python/py-arch.c (archpy_registers): New function. | |
2905 | (arch_object_methods): Add 'registers' method. | |
2906 | * python/py-registers.c: New file. | |
2907 | * python/python-internal.h | |
2908 | (gdbpy_new_register_descriptor_iterator): Declare. | |
2909 | (gdbpy_initialize_registers): Declare. | |
2910 | * python/python.c (do_start_initialization): Call | |
2911 | gdbpy_initialize_registers. | |
2912 | * NEWS: Mention additions to the Python API. | |
2913 | ||
87dbc774 AB |
2914 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2915 | ||
2916 | * NEWS: Mention new Python API method. | |
2917 | * python/py-unwind.c (pending_framepy_architecture): New function. | |
2918 | (pending_frame_object_methods): Add architecture method. | |
2919 | ||
3bc98c0c AB |
2920 | 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2921 | ||
2922 | * gdbarch.c: Regenerate. | |
2923 | * gdbarch.h: Regenerate. | |
2924 | * gdbarch.sh (deprecated_set_gdbarch_data): Delete. | |
2925 | (gdbarch_data): Use internal_error for the case where | |
2926 | deprecated_set_gdbarch_data was originally needed. | |
2927 | * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters, | |
2928 | and use passed in obstack. | |
2929 | (libunwind_frame_set_descr): Should no longer get back NULL from | |
2930 | gdbarch_data. | |
2931 | (_initialize_libunwind_frame): Register as a pre-init gdbarch data | |
2932 | type. | |
2933 | * user-regs.c (user_regs_init): Update parameters, and use passed | |
2934 | in obstack. | |
2935 | (user_reg_add): Should no longer get back NULL from gdbarch_data. | |
2936 | (_initialize_user_regs): Register as a pre-init gdbarch data type. | |
2937 | ||
d8cc8af6 TV |
2938 | 2020-07-06 Tom de Vries <tdevries@suse.de> |
2939 | ||
2940 | * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle | |
2941 | End-Of-Sequence in lte_is_less_than. | |
2942 | * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313 | |
2943 | "gdb: Don't reorder line table entries too much when sorting". | |
2944 | ||
947f7597 TV |
2945 | 2020-07-06 Tom de Vries <tdevries@suse.de> |
2946 | ||
2947 | PR tui/26205 | |
2948 | * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name. | |
2949 | ||
1e7c1b22 TV |
2950 | 2020-07-05 Tom de Vries <tdevries@suse.de> |
2951 | ||
2952 | PR build/26187 | |
2953 | * inferior.h (struct infcall_suspend_state_deleter): If available, use | |
2954 | std::uncaught_exceptions instead of deprecated | |
2955 | std::uncaught_exception. | |
2956 | ||
a36158ec SM |
2957 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
2958 | ||
2959 | * macroexp.h (macro_stringify): Return | |
2960 | gdb::unique_xmalloc_ptr<char>. | |
2961 | * macroexp.c (macro_stringify): Likewise. | |
2962 | * macrotab.c (fixup_definition): Update. | |
2963 | ||
14d960c8 SM |
2964 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
2965 | ||
2966 | * c-exp.y (scan_macro_expansion): Don't free `expansion`. | |
2967 | (lex_one_token): Update. | |
2968 | * macroexp.c (struct macro_buffer) <release>: Return | |
2969 | gdb::unique_xmalloc_ptr<char>. | |
2970 | (macro_stringify): Update. | |
2971 | (macro_expand): Update. | |
2972 | (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>. | |
2973 | * macroexp.h (macro_expand_next): Likewise. | |
2974 | ||
211d5b1c SM |
2975 | 2020-07-02 Simon Marchi <simon.marchi@efficios.com> |
2976 | ||
2977 | * macroexp.h (macro_lookup_ftype): Remove. | |
2978 | (macro_expand, macro_expand_once, macro_expand_next): Remove | |
2979 | lookup function parameters, add scope parameter. | |
2980 | * macroexp.c (scan, substitute_args, expand, maybe_expand, | |
2981 | macro_expand, macro_expand_once, macro_expand_next): Likewise. | |
2982 | * macroscope.h (standard_macro_lookup): Change parameter type | |
2983 | to macro_scope. | |
2984 | * macroscope.c (standard_macro_lookup): Likewise. | |
2985 | * c-exp.y (lex_one_token): Update. | |
2986 | * macrocmd.c (macro_expand_command): Likewise. | |
2987 | (macro_expand_once_command): Likewise. | |
2988 | ||
b1a35af2 SM |
2989 | 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca> |
2990 | ||
2991 | * inf-loop.c (inferior_event_handler): Remove client_data param. | |
2992 | * inf-loop.h (inferior_event_handler): Likewise. | |
2993 | * infcmd.c (step_1): Adjust. | |
2994 | * infrun.c (proceed): Adjust. | |
2995 | (fetch_inferior_event): Remove client_data param. | |
2996 | (infrun_async_inferior_event_handler): Adjust. | |
2997 | * infrun.h (fetch_inferior_event): Remove `void *` param. | |
2998 | * linux-nat.c (handle_target_event): Adjust. | |
2999 | * record-btrace.c (record_btrace_handle_async_inferior_event): | |
3000 | Adjust. | |
3001 | * record-full.c (record_full_async_inferior_event_handler): | |
3002 | Adjust. | |
3003 | * remote.c (remote_async_inferior_event_handler): Adjust. | |
3004 | ||
1cdf9e33 TT |
3005 | 2020-07-01 Tom Tromey <tom@tromey.com> |
3006 | ||
3007 | * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual. | |
3008 | * tui/tui-stack.h (struct tui_locator_window) <name>: New method. | |
3009 | ||
32c1e210 TT |
3010 | 2020-07-01 Tom Tromey <tom@tromey.com> |
3011 | ||
3012 | * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from | |
3013 | tui_gen_win_info. | |
3014 | (tui_win_info::make_window): Merge with | |
3015 | tui_gen_win_info::make_window. | |
3016 | (tui_win_info::make_visible): Move from tui_gen_win_info. | |
3017 | * tui/tui-win.c (tui_win_info::max_width): Move from | |
3018 | tui_gen_win_info. | |
3019 | * tui/tui-layout.h (class tui_layout_window) <m_window>: Change | |
3020 | type. | |
3021 | <window_factory>: Likewise. | |
3022 | * tui/tui-layout.c (tui_win_info::resize): Move from | |
3023 | tui_gen_win_info. | |
3024 | (make_standard_window): Change return type. | |
3025 | (get_locator_window, tui_get_window_by_name): Likewise. | |
3026 | (tui_layout_window::apply): Remove a cast. | |
3027 | * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier. | |
3028 | (struct tui_win_info): Merge with tui_gen_win_info. | |
3029 | (struct tui_gen_win_info): Remove. | |
3030 | ||
a30cb6da TT |
3031 | 2020-07-01 Tom Tromey <tom@tromey.com> |
3032 | ||
3033 | * tui/tui-stack.h (struct tui_locator_window): Derive from | |
3034 | tui_win_info. | |
3035 | <do_scroll_horizontal, do_scroll_vertical>: New methods. | |
3036 | <can_box>: New method. | |
3037 | ||
1eb2161f TT |
3038 | 2020-07-01 Tom Tromey <tom@tromey.com> |
3039 | ||
3040 | * tui/tui-stack.h (struct tui_locator_window): Remove body. | |
3041 | ||
7134f2eb TT |
3042 | 2020-07-01 Tom Tromey <tom@tromey.com> |
3043 | ||
3044 | * tui/tui-regs.c (tui_data_window::display_registers_from) | |
3045 | (tui_data_window::display_registers_from) | |
3046 | (tui_data_window::first_data_item_displayed) | |
3047 | (tui_data_window::delete_data_content_windows): Update. | |
3048 | (tui_data_window::refresh_window, tui_data_window::no_refresh): | |
3049 | Remove. | |
3050 | (tui_data_window::check_register_values): Update. | |
3051 | (tui_data_item_window::rerender): Add parameters. Update. | |
3052 | (tui_data_item_window::refresh_window): Remove. | |
3053 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer | |
3054 | virtual. | |
3055 | * tui/tui-regs.h (struct tui_data_item_window): Don't derive from | |
3056 | tui_gen_win_info. | |
3057 | <refresh_window, max_height, min_height>: Remove. | |
3058 | <rerender>: Add parameters. | |
3059 | <x, y, visible>: New members. | |
3060 | (struct tui_data_window) <refresh_window, no_refresh>: Remove. | |
3061 | <m_item_width>: New member. | |
3062 | ||
22b7b041 TT |
3063 | 2020-07-01 Tom Tromey <tom@tromey.com> |
3064 | ||
3065 | * tui/tui-regs.c (tui_data_window::show_register_group) | |
3066 | (tui_data_window::check_register_values): Update. | |
3067 | * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename | |
3068 | from item_no. | |
3069 | ||
c9753adb TT |
3070 | 2020-07-01 Tom Tromey <tom@tromey.com> |
3071 | ||
3072 | * tui/tui-regs.c (tui_data_window::show_register_group): Remove | |
3073 | useless "if". | |
3074 | ||
9ab26b4a TT |
3075 | 2020-07-01 Tom Tromey <tom@tromey.com> |
3076 | ||
3077 | * tui/tui-regs.c (tui_data_window::show_register_group): Update. | |
3078 | * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove. | |
3079 | ||
e555083f TT |
3080 | 2020-07-01 Tom Tromey <tom@tromey.com> |
3081 | ||
3082 | * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h | |
3083 | * tui/tui-winsource.h (enum tui_line_or_address_kind) | |
3084 | (struct tui_line_or_address): Move from tui-data.h. | |
3085 | * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h. | |
3086 | * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c. | |
3087 | (tui_cmd_window, tui_source_window_base, tui_source_window) | |
3088 | (tui_disasm_window): Don't declare. | |
3089 | (enum tui_line_or_address_kind, struct tui_line_or_address): Move | |
3090 | to tui-winsource.h. | |
3091 | (SINGLE_KEY): Move to tui-stack.c. | |
3092 | ||
7a02bab7 TT |
3093 | 2020-07-01 Tom Tromey <tom@tromey.com> |
3094 | ||
3095 | * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a | |
3096 | std::string. | |
3097 | * tui/tui-regs.c (class tab_expansion_file): New. | |
3098 | (tab_expansion_file::write): New method. | |
3099 | (tui_register_format): Change return type. Use | |
3100 | tab_expansion_file. | |
3101 | (tui_get_register, tui_data_window::display_registers_from) | |
3102 | (tui_data_item_window::rerender): Update. | |
3103 | * tui/tui-io.h (tui_expand_tabs): Don't declare. | |
3104 | * tui/tui-io.c (tui_expand_tabs): Remove. | |
3105 | ||
ea68593b TT |
3106 | 2020-07-01 Tom Tromey <tom@tromey.com> |
3107 | ||
3108 | * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum. | |
3109 | ||
a8caed5d FS |
3110 | 2020-07-01 Fangrui Song <maskray@google.com> |
3111 | ||
3112 | * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1. | |
3113 | ||
9cdf9820 AKS |
3114 | 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
3115 | ||
3116 | * dwarf2/read.c (set_die_type): Removed conditions to restrict | |
3117 | forms for DW_AT_associated and DW_AT_allocated attributes, | |
3118 | which is already checked in function attr_to_dynamic_prop. | |
3119 | ||
a1520ad8 TT |
3120 | 2020-06-30 Tom Tromey <tromey@adacore.com> |
3121 | ||
3122 | * dwarf2/read.c (quirk_rust_enum): Correctly call | |
3123 | alloc_rust_variant for default-less enum. | |
3124 | ||
5ac58899 TT |
3125 | 2020-06-30 Tom Tromey <tromey@adacore.com> |
3126 | ||
3127 | PR build/26183: | |
3128 | * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use | |
3129 | gdb::to_string. | |
3130 | ||
19b187a9 SM |
3131 | 2020-06-29 Simon Marchi <simon.marchi@efficios.com> |
3132 | ||
3133 | * gdbarch.sh (displaced_step_copy_insn): Update doc. | |
3134 | * gdbarch.h: Re-generate. | |
3135 | ||
cd4c4c07 TT |
3136 | 2020-06-28 Tom Tromey <tom@tromey.com> |
3137 | ||
3138 | * command.h (cmd_types): Remove. | |
3139 | (cmd_type): Don't declare. | |
3140 | * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a | |
3141 | typedef. | |
3142 | * cli/cli-cmds.c (setting_cmd): Use cmd->type directly. | |
3143 | * cli/cli-decode.c (cmd_type): Remove. | |
3144 | ||
05779d57 PA |
3145 | 2020-06-27 Pedro Alves <palves@redhat.com> |
3146 | ||
3147 | * fork-child.c (prefork_hook): Adjust. | |
3148 | * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal): | |
3149 | Delete. | |
3150 | (set_inferior_tty_command, show_inferior_tty_command): Adjust. | |
3151 | * inferior.c (inferior::set_tty, inferior::tty): New methods. | |
3152 | * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal): | |
3153 | Remove declarations. | |
3154 | (struct inferior) <set_tty, tty>: New methods. | |
3155 | (struct inferior) <terminal>: Rename to ... | |
3156 | (struct inferior) <m_terminal>: ... this and make private. | |
3157 | * main.c (captured_main_1): Adjust. | |
3158 | * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust. | |
3159 | (mi_cmd_inferior_tty_show): Adjust. | |
3160 | * nto-procfs.c (nto_procfs_target::create_inferior): Adjust. | |
3161 | * windows-nat.c (windows_nat_target::create_inferior): Adjust. | |
3162 | ||
1776e3e5 NA |
3163 | 2020-06-26 Nick Alcock <nick.alcock@oracle.com> |
3164 | ||
3165 | * configure.ac: Add --enable-libctf: handle --disable-static | |
3166 | properly. | |
3167 | * acinclude.m4: sinclude ../config/enable.m4. | |
3168 | * Makefile.in (aclocal_m4_deps): Adjust accordingly. | |
3169 | (LIBCTF): Substitute in. | |
3170 | (CTF_DEPS): New, likewise. | |
3171 | (CLIBS): libctf needs symbols from libbfd: move earlier. | |
3172 | (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath | |
3173 | flags. | |
3174 | * ctfread.c: Surround in ENABLE_LIBCTF. | |
3175 | (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub. | |
3176 | * configure: Regenerate. | |
3177 | * config.in: Likewise. | |
3178 | ||
58373b80 SM |
3179 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> |
3180 | ||
3181 | * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup. | |
3182 | ||
277474ee SM |
3183 | 2020-06-25 Simon Marchi <simon.marchi@efficios.com> |
3184 | ||
3185 | * inferior.h (struct inferior) <terminal>: Change type to | |
3186 | gdb::unique_xmalloc_ptr<char>. | |
3187 | * inferior.c (inferior::~inferior): Don't free inf->terminal. | |
3188 | * infcmd.c (set_inferior_io_terminal): Don't free terminal | |
3189 | field, adjust to unique pointer. | |
3190 | (get_inferior_io_terminal): Adjust to unique pointer. | |
3191 | ||
6d74da72 AB |
3192 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
3193 | ||
3194 | * riscv-tdep.c (riscv_print_registers_info): Loop over all | |
3195 | registers, not just the known core set of registers. | |
3196 | ||
2e52d038 AB |
3197 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
3198 | ||
3199 | * riscv-tdep.c (riscv_register_name): Return NULL for duplicate | |
3200 | fflags, frm, and fcsr registers. | |
3201 | (riscv_register_reggroup_p): Remove unknown CSRs from save and | |
3202 | restore groups. | |
3203 | (riscv_tdesc_unknown_reg): New function. | |
3204 | (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to | |
3205 | tdesc_use_registers. | |
3206 | * riscv-tdep.h (struct gdbarch_tdep): Add | |
3207 | unknown_csrs_first_regnum, unknown_csrs_count, | |
3208 | duplicate_fflags_regnum, duplicate_frm_regnum, and | |
3209 | duplicate_fcsr_regnum fields. | |
3210 | ||
be64fd07 AB |
3211 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
3212 | ||
3213 | * target-descriptions.c (tdesc_use_registers): Add new parameter a | |
3214 | callback, use the callback (when not null) to help number unknown | |
3215 | registers. | |
3216 | * target-descriptions.h (tdesc_unknown_register_ftype): New typedef. | |
3217 | (tdesc_use_registers): Add extra parameter to declaration. | |
3218 | ||
3b9fce96 AB |
3219 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
3220 | ||
3221 | * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later | |
3222 | in the file. | |
3223 | (class riscv_pending_register_alias): Likewise. | |
3224 | (riscv_register_feature::register_info): Change 'required_p' field | |
3225 | to 'required', and change its type. Add 'check' member function. | |
3226 | (riscv_register_feature::register_info::check): Define new member | |
3227 | function. | |
3228 | (riscv_xreg_feature): Change initialisation of 'required' field. | |
3229 | (riscv_freg_feature): Likewise. | |
3230 | (riscv_virtual_feature): Likewise. | |
3231 | (riscv_csr_feature): Likewise. | |
3232 | (riscv_check_tdesc_feature): Take extra parameter, the csr | |
3233 | tdesc_feature, rewrite the function to use the new | |
3234 | riscv_register_feature::register_info::check function. | |
3235 | (riscv_gdbarch_init): Pass the csr tdesc_feature where needed. | |
3236 | ||
865bad26 AB |
3237 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
3238 | ||
3239 | * features/Makefile: Remove all references to the deleted files | |
3240 | below. | |
3241 | * features/riscv/32bit-csr.c: Deleted. | |
3242 | * features/riscv/32bit-csr.xml: Deleted. | |
3243 | * features/riscv/64bit-csr.c: Deleted. | |
3244 | * features/riscv/64bit-csr.xml: Deleted. | |
3245 | * features/riscv/rebuild-csr-xml.sh: Deleted. | |
3246 | ||
ed69cbc8 AB |
3247 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
3248 | ||
3249 | * riscv-tdep.c (struct riscv_register_feature::register_info): Fix | |
3250 | whitespace error for declaration of names member variable. | |
3251 | (struct riscv_register_feature): Add new prefer_first_name member | |
3252 | variable, and fix whitespace error in declaration of registers. | |
3253 | (riscv_xreg_feature): Initialize prefer_first_name field. | |
3254 | (riscv_freg_feature): Likewise. | |
3255 | (riscv_virtual_feature): Likewise. | |
3256 | (riscv_csr_feature): Likewise. | |
3257 | (riscv_register_name): Expand on comments. Remove register name | |
3258 | modifications for CSR and virtual registers. | |
3259 | ||
4445e8f5 AB |
3260 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
3261 | ||
3262 | * riscv-tdep.c (struct riscv_register_feature): Fix whitespace | |
3263 | errors. | |
3264 | ||
767a879e AB |
3265 | 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com> |
3266 | ||
3267 | * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from | |
3268 | riscv-opc.h. | |
3269 | (class riscv_pending_register_alias): New class. | |
3270 | (riscv_check_tdesc_feature): Take vector of pending aliases and | |
3271 | populate it as appropriate. | |
3272 | (riscv_setup_register_aliases): Delete. | |
3273 | (riscv_gdbarch_init): Create vector of pending aliases and pass it | |
3274 | to riscv_check_tdesc_feature in all cases. Use the vector to | |
3275 | create the register aliases. | |
3276 | ||
bb6e55f3 RO |
3277 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3278 | ||
3279 | * sol2-tdep.c (sol2_static_transform_name): Remove. | |
3280 | (sol2_init_abi): Don't register it. | |
3281 | * gdbarch.sh (static_transform_name): Remove. | |
3282 | * gdbarch.c, gdbarch.h: Regenerate. | |
3283 | ||
3284 | * dbxread.c (read_dbx_symtab) <'S'>: Remove call to | |
3285 | gdbarch_static_transform_name. | |
3286 | * mdebugread.c (parse_partial_symbols) <'S'>: Likewise. | |
3287 | * stabsread.c (define_symbol) <'X'>: Remove. | |
3288 | (define_symbol) <'S'>: Remove gdbarch_static_transform_name | |
3289 | handling. | |
3290 | <'V'>: Likewise. | |
3291 | * xcoffread.c (scan_xcoff_symtab): Remove gdbarch. | |
3292 | <'S'>: Remove call to gdbarch_static_transform_name. | |
3293 | ||
c6d36836 RO |
3294 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3295 | ||
3296 | * procfs.c (procfs_pre_trace): New function. | |
3297 | (procfs_target::create_inferior): Pass it to fork_inferior. | |
3298 | ||
a7e6196b RO |
3299 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3300 | ||
3301 | * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove | |
3302 | sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o. | |
3303 | <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o, | |
3304 | sol2-tdep.o, sparc-sol2-tdep.o. | |
3305 | * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static. | |
3306 | * sparc-tdep.h (sparc32_sol2_init_abi): Remove. | |
3307 | * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static. | |
3308 | * sparc64-tdep.h (sparc64_sol2_init_abi): Remove. | |
3309 | ||
d412e696 RO |
3310 | 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3311 | ||
3312 | * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove. | |
3313 | (amd64_sol2_init_abi): Use sol2_sigtramp_p. | |
3314 | Call sol2_init_abi. | |
3315 | Remove calls to set_gdbarch_skip_solib_resolver, | |
3316 | set_gdbarch_core_pid_to_str. | |
3317 | * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove. | |
3318 | (i386_sol2_static_transform_name): Remove. | |
3319 | (i386_sol2_init_abi): Call sol2_init_abi. | |
3320 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
3321 | set_gdbarch_static_transform_name, | |
3322 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
3323 | Use sol2_sigtramp_p. | |
3324 | * sol2-tdep.c (sol2_pc_in_sigtramp): New function. | |
3325 | (sol2_sigtramp_p): New function. | |
3326 | (sol2_static_transform_name): New function. | |
3327 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static. | |
3328 | (sol2_init_abi): New function. | |
3329 | * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare. | |
3330 | (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove. | |
3331 | * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove. | |
3332 | (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p. | |
3333 | (sparc_sol2_static_transform_name): Remove. | |
3334 | (sparc32_sol2_init_abi): Call sol2_init_abi. | |
3335 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
3336 | set_gdbarch_static_transform_name, | |
3337 | set_gdbarch_skip_solib_resolver, | |
3338 | set_gdbarch_core_pid_to_str. | |
3339 | * sparc-tdep.h (sparc_sol2_pc_in_sigtramp) | |
3340 | (sparc_sol2_static_transform_name): Remove | |
3341 | * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just | |
3342 | call sol2_sigtramp_p. | |
3343 | (sparc64_sol2_init_abi): Call sol2_init_abi. | |
3344 | Remove calls to set_gdbarch_sofun_address_maybe_missing, | |
3345 | set_gdbarch_static_transform_name, | |
3346 | set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str. | |
3347 | ||
a8654e7d PW |
3348 | 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3349 | ||
3350 | * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM. | |
3351 | * exec.c (validate_exec_file): If from_tty, set both | |
3352 | SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM. | |
3353 | * symfile.c (symbol_file_add_with_addrs): if always_confirm | |
3354 | and from_tty, unconditionally ask a confirmation. | |
3355 | ||
caa7fd04 AB |
3356 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
3357 | ||
3358 | * target-descriptions.c (tdesc_architecture_name): Protect against | |
3359 | NULL pointer dereference. | |
3360 | (maint_print_xml_tdesc_cmd): New function. | |
3361 | (_initialize_target_descriptions): Register new 'maint print | |
3362 | xml-tdesc' command and give it the filename completer. | |
3363 | * NEWS: Mention new 'maint print xml-tdesc' command. | |
3364 | ||
fbf42f4e AB |
3365 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
3366 | ||
3367 | * target-descriptions.c (class tdesc_compatible_info): New class. | |
3368 | (struct target_desc): Change type of compatible vector. | |
3369 | (tdesc_compatible_p): Update for change in type of | |
3370 | target_desc::compatible. | |
3371 | (tdesc_compatible_info_list): New function. | |
3372 | (tdesc_compatible_info_arch_name): New function. | |
3373 | (tdesc_add_compatible): Update for change in type of | |
3374 | target_desc::compatible. | |
3375 | (print_c_tdesc::visit_pre): Likewise. | |
3376 | ||
20821f4e AB |
3377 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
3378 | ||
3379 | * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change | |
3380 | whitespace to underscore. | |
3381 | (maint_print_c_tdesc_cmd): Use fake filename for target | |
3382 | descriptions that came from the target. | |
3383 | (_initialize_target_descriptions): Add filename command completion | |
3384 | for 'maint print c-tdesc'. | |
3385 | ||
1fb5ee62 SM |
3386 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
3387 | ||
3388 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty | |
3389 | lines. | |
3390 | ||
fc3ecb3e SM |
3391 | 2020-06-23 Simon Marchi <simon.marchi@efficios.com> |
3392 | ||
3393 | * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty | |
3394 | lines. | |
3395 | (dwarf2_find_location_expression): Likewise. | |
3396 | (call_site_parameter_matches): Likewise. | |
3397 | (dwarf2_compile_expr_to_ax): Likewise. | |
3398 | (disassemble_dwarf_expression): Likewise. | |
3399 | (loclist_describe_location): Likewise. | |
3400 | ||
236ef034 PA |
3401 | 2020-06-23 Pedro Alves <palves@redhat.com> |
3402 | ||
3403 | * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or | |
3404 | progspace-and-thread.h. Include scoped-mock-context.h instead. | |
3405 | (register_to_value_test): Use scoped_mock_context. | |
3406 | * regcache.c: Include "scoped-mock-context.h". | |
3407 | (cooked_read_test): Don't error out if a target is already pushed. | |
3408 | Use scoped_mock_context. Adjust. | |
3409 | * scoped-mock-context.h: New file. | |
3410 | ||
39e7ecca AB |
3411 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
3412 | ||
3413 | * ada-lang.c (ada_language_data): Delete la_is_string_type_p | |
3414 | initializer. | |
3415 | (ada_language::is_string_type_p): New member function. | |
3416 | * c-lang.c (c_language_data): Delete la_is_string_type_p | |
3417 | initializer. | |
3418 | (cplus_language_data): Likewise. | |
3419 | (asm_language_data): Likewise. | |
3420 | (minimal_language_data): Likewise. | |
3421 | * d-lang.c (d_language_data): Likewise. | |
3422 | * f-lang.c (f_is_string_type_p): Delete function, implementation | |
3423 | moved to f_language::is_string_type_p. | |
3424 | (f_language_data): Delete la_is_string_type_p initializer. | |
3425 | (f_language::is_string_type_p): New member function, | |
3426 | implementation from f_is_string_type_p. | |
3427 | * go-lang.c (go_is_string_type_p): Delete function, implementation | |
3428 | moved to go_language::is_string_type_p. | |
3429 | (go_language_data): Delete la_is_string_type_p initializer. | |
3430 | (go_language::is_string_type_p): New member function, | |
3431 | implementation from go_is_string_type_p. | |
3432 | * language.c (language_defn::is_string_type_p): Define new member | |
3433 | function. | |
3434 | (default_is_string_type_p): Make static, add comment copied from | |
3435 | header file. | |
3436 | (unknown_language_data): Delete la_is_string_type_p initializer. | |
3437 | (unknown_language::is_string_type_p): New member function. | |
3438 | (auto_language_data): Delete la_is_string_type_p initializer. | |
3439 | (auto_language::is_string_type_p): New member function. | |
3440 | * language.h (language_data): Delete la_is_string_type_p field. | |
3441 | (language_defn::is_string_type_p): Declare new function. | |
3442 | (default_is_string_type_p): Delete desclaration, move comment to | |
3443 | definition. | |
3444 | * m2-lang.c (m2_is_string_type_p): Delete function, implementation | |
3445 | moved to m2_language::is_string_type_p. | |
3446 | (m2_language_data): Delete la_is_string_type_p initializer. | |
3447 | (m2_language::is_string_type_p): New member function, | |
3448 | implementation from m2_is_string_type_p. | |
3449 | * objc-lang.c (objc_language_data): Delete la_is_string_type_p | |
3450 | initializer. | |
3451 | * opencl-lang.c (opencl_language_data): Likewise. | |
3452 | * p-lang.c (pascal_is_string_type_p): Delete function, | |
3453 | implementation moved to pascal_language::is_string_type_p. | |
3454 | (pascal_language_data): Delete la_is_string_type_p initializer. | |
3455 | (pascal_language::is_string_type_p): New member function, | |
3456 | implementation from pascal_is_string_type_p. | |
3457 | * rust-lang.c (rust_is_string_type_p): Delete function, | |
3458 | implementation moved to rust_language::is_string_type_p. | |
3459 | (rust_language_data): Delete la_is_string_type_p initializer. | |
3460 | (rust_language::is_string_type_p): New member function, | |
3461 | implementation from rust_is_string_type_p. | |
3462 | * valprint.c (val_print_scalar_or_string_type_p): Update call to | |
3463 | is_string_type_p. | |
3464 | ||
4ffc13fb AB |
3465 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
3466 | ||
3467 | * ada-lang.c (ada_language_data): Delete la_print_typedef | |
3468 | initializer. | |
3469 | (ada_language::print_typedef): New member function. | |
3470 | * c-lang.c (c_language_data): Delete la_print_typedef initializer. | |
3471 | (cplus_language_data): Likewise. | |
3472 | (asm_language_data): Likewise. | |
3473 | (minimal_language_data): Likewise. | |
3474 | * d-lang.c (d_language_data): Likewise. | |
3475 | * f-lang.c (f_language_data): Likewise. | |
3476 | (f_language::print_typedef): New member function. | |
3477 | * go-lang.c (go_language_data): Delete la_print_typedef | |
3478 | initializer. | |
3479 | * language.c (language_defn::print_typedef): Define member | |
3480 | function. | |
3481 | (unknown_language_data): Delete la_print_typedef initializer. | |
3482 | (unknown_language::print_typedef): New member function. | |
3483 | (auto_language_data): Delete la_print_typedef initializer. | |
3484 | (auto_language::print_typedef): New member function. | |
3485 | * language.h (language_data): Delete la_print_typedef field. | |
3486 | (language_defn::print_typedef): Declare new member function. | |
3487 | (LA_PRINT_TYPEDEF): Update call to print_typedef. | |
3488 | (default_print_typedef): Delete declaration. | |
3489 | * m2-lang.c (m2_language_data): Delete la_print_typedef | |
3490 | initializer. | |
3491 | (m2_language::print_typedef): New member function. | |
3492 | * objc-lang.c (objc_language_data): Delete la_print_typedef | |
3493 | initializer. | |
3494 | * opencl-lang.c (opencl_language_data): Likewise. | |
3495 | * p-lang.c (pascal_language_data): Likewise. | |
3496 | (pascal_language::print_typedef): New member function. | |
3497 | * rust-lang.c (rust_print_typedef): Delete function, | |
3498 | implementation moved to rust_language::print_typedef. | |
3499 | (rust_language): Delete la_print_typedef initializer. | |
3500 | (rust_language::print_typedef): New member function, | |
3501 | implementation from rust_print_typedef. | |
3502 | * typeprint.c (default_print_typedef): Delete. | |
3503 | ||
d711ee67 AB |
3504 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
3505 | ||
3506 | * ada-lang.c (ada_language_data): Delete la_printstr initializer. | |
3507 | (ada_language::printstr): New member function. | |
3508 | * c-lang.c (c_language_data): Delete la_printstr initializer. | |
3509 | (cplus_language_data): Likewise. | |
3510 | (asm_language_data): Likewise. | |
3511 | (minimal_language_data): Likewise. | |
3512 | * d-lang.c (d_language_data): Likewise. | |
3513 | * f-lang.c (f_printstr): Rename to f_language::printstr. | |
3514 | (f_language_data): Delete la_printstr initializer. | |
3515 | (f_language::printstr): New member function, implementation from | |
3516 | f_printstr. | |
3517 | * go-lang.c (go_language_data): Delete la_printstr initializer. | |
3518 | * language.c (language_defn::printstr): Define new member | |
3519 | function. | |
3520 | (unk_lang_printstr): Delete. | |
3521 | (unknown_language_data): Delete la_printstr initializer. | |
3522 | (unknown_language::printstr): New member function. | |
3523 | (auto_language_data): Delete la_printstr initializer. | |
3524 | (auto_language::printstr): New member function. | |
3525 | * language.h (language_data): Delete la_printstr field. | |
3526 | (language_defn::printstr): Declare new member function. | |
3527 | (LA_PRINT_STRING): Update call to printstr. | |
3528 | * m2-lang.c (m2_printstr): Rename to m2_language::printstr. | |
3529 | (m2_language_data): Delete la_printstr initializer. | |
3530 | (m2_language::printstr): New member function, implementation from | |
3531 | m2_printstr. | |
3532 | * objc-lang.c (objc_language_data): Delete la_printstr | |
3533 | initializer. | |
3534 | * opencl-lang.c (opencl_language_data): Likewise. | |
3535 | * p-lang.c (pascal_printstr): Rename to pascal_language::printstr. | |
3536 | (pascal_language_data): Delete la_printstr initializer. | |
3537 | (pascal_language::printstr): New member function, implementation | |
3538 | from pascal_printstr. | |
3539 | * p-lang.h (pascal_printstr): Delete declaration. | |
3540 | * rust-lang.c (rust_printstr): Update header comment. | |
3541 | (rust_language_data): Delete la_printstr initializer. | |
3542 | (rust_language::printstr): New member function. | |
3543 | ||
52b50f2c AB |
3544 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
3545 | ||
3546 | * ada-lang.c (ada_language_data): Delete la_printchar initializer. | |
3547 | (ada_language::printchar): New member function. | |
3548 | * c-lang.c (c_language_data): Delete la_printchar initializer. | |
3549 | (cplus_language_data): Likewise. | |
3550 | (asm_language_data): Likewise. | |
3551 | (minimal_language_data): Likewise. | |
3552 | * d-lang.c (d_language_data): Likewise. | |
3553 | * f-lang.c (f_printchar): Rename to f_language::printchar. | |
3554 | (f_language_data): Delete la_printchar initializer. | |
3555 | (f_language::printchar): New member function, implementation from | |
3556 | f_printchar. | |
3557 | * go-lang.c (go_language_data): Delete la_printchar initializer. | |
3558 | * language.c (unk_lang_printchar): Delete. | |
3559 | (language_defn::printchar): Define new member function. | |
3560 | (unknown_language_data): Delete la_printchar initializer. | |
3561 | (unknown_language::printchar): New member function. | |
3562 | (auto_language_data): Delete la_printchar initializer. | |
3563 | (auto_language::printchar): New member function. | |
3564 | * language.h (language_data): Delete la_printchar field. | |
3565 | (language_defn::printchar): Declare new member function. | |
3566 | (LA_PRINT_CHAR): Update call to printchar. | |
3567 | * m2-lang.c (m2_language_data): Delete la_printchar initializer. | |
3568 | (m2_language::printchar): New member function. | |
3569 | * objc-lang.c (objc_language_data): Delete la_printchar | |
3570 | initializer. | |
3571 | * opencl-lang.c (opencl_language_data): Likewise. | |
3572 | * p-lang.c (pascal_language_data): Delete la_printchar | |
3573 | initializer. | |
3574 | (pascal_language::printchar): New member function. | |
3575 | * rust-lang.c (rust_printchar): Rename to | |
3576 | rust_language::printchar. | |
3577 | (rust_language_data): Delete la_printchar initializer. | |
3578 | (rust_language::printchar): New member function, implementation | |
3579 | from rust_printchar. | |
3580 | ||
ec8cec5b AB |
3581 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
3582 | ||
3583 | * ada-lang.c (emit_char): Renamed to ada_language::emitchar. | |
3584 | (ada_language_data): Delete la_emitchar initializer. | |
3585 | (ada_language::emitchar): New member function, implementation from | |
3586 | emit_char. | |
3587 | * c-lang.c (c_language_data): Delete la_emitchar initializer. | |
3588 | (cplus_language_data): Likewise. | |
3589 | (asm_language_data): Likewise. | |
3590 | (minimal_language_data): Likewise. | |
3591 | * d-lang.c (d_language_data): Likewise. | |
3592 | * f-lang.c (f_emit_char): Rename to f_language::emitchar. | |
3593 | (f_language_data): Delete la_emitchar initializer. | |
3594 | (f_language::emitchar): New member function, implementation from | |
3595 | f_emit_char. | |
3596 | * go-lang.c (go_language_data): Delete la_emitchar initializer. | |
3597 | * language.c (unk_lang_emit_char): Delete. | |
3598 | (language_defn::emitchar): New member function definition. | |
3599 | (unknown_language_data): Delete la_emitchar initializer. | |
3600 | (unknown_language::emitchar): New member function. | |
3601 | (auto_language_data): Delete la_emitchar initializer. | |
3602 | (auto_language::emitchar): New member function. | |
3603 | * language.h (language_data): Delete la_emitchar field. | |
3604 | (language_defn::emitchar): New member field declaration. | |
3605 | (LA_EMIT_CHAR): Update call to emitchar. | |
3606 | * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar. | |
3607 | (m2_language_data): Delete la_emitchar initializer. | |
3608 | (m2_language::emitchar): New member function, implementation from | |
3609 | m2_emit_char. | |
3610 | * objc-lang.c (objc_language_data): Delete la_emitchar | |
3611 | initializer. | |
3612 | * opencl-lang.c (opencl_language_data): Likewise. | |
3613 | * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar. | |
3614 | (pascal_language_data): Delete la_emitchar initializer. | |
3615 | (pascal_language::emitchar): New member function, implementation | |
3616 | from pascal_emit_char. | |
3617 | * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar. | |
3618 | (rust_language_data): Delete la_emitchar initializer. | |
3619 | (rust_language::emitchar): New member function, implementation | |
3620 | from rust_emitchar. | |
3621 | ||
1bf9c363 AB |
3622 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
3623 | ||
3624 | * ada-lang.c (resolve): Rename to ada_language::post_parser. | |
3625 | (ada_language_data): Delete la_post_parser initializer. | |
3626 | (ada_language::post_parser): New member function. | |
3627 | * c-lang.c (c_language_data): Delete la_post_parser initializer. | |
3628 | (cplus_language_data): Likewise. | |
3629 | (asm_language_data): Likewise. | |
3630 | (minimal_language_data): Likewise. | |
3631 | * d-lang.c (d_language_data): Likewise. | |
3632 | * f-lang.c (f_language_data): Likewise. | |
3633 | * go-lang.c (go_language_data): Likewise. | |
3634 | * language.c (unknown_language_data): Likewise. | |
3635 | (auto_language_data): Likewise. | |
3636 | * language.h (language_data): Delete la_post_parser field. | |
3637 | (language_defn::post_parser): New member function. | |
3638 | * m2-lang.c (m2_language_data): Delete la_post_parser initializer. | |
3639 | * objc-lang.c (objc_language_data): Likewise. | |
3640 | * opencl-lang.c (opencl_language_data): Likewise. | |
3641 | * p-lang.c (pascal_language_data): Likewise. | |
3642 | * parse.c (parse_exp_in_context): Update call to post_parser. | |
3643 | (null_post_parser): Delete definition. | |
3644 | * parser-defs.h (null_post_parser): Delete declaration. | |
3645 | * rust-lang.c (rust_language_data): Delete la_post_parser | |
3646 | initializer. | |
3647 | ||
87afa652 AB |
3648 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
3649 | ||
3650 | * ada-lang.c (parse): Rename to ada_language::parser. | |
3651 | (ada_language_data): Delete la_parser initializer. | |
3652 | (ada_language::parser): New member function, implementation from | |
3653 | parse. | |
3654 | * c-lang.c (c_language_data): Delete la_parser initializer. | |
3655 | (cplus_language_data): Likewise. | |
3656 | (asm_language_data): Likewise. | |
3657 | (minimal_language_data): Likewise. | |
3658 | * d-lang.c (d_language_data): Likewise. | |
3659 | (d_language::parser): New member function. | |
3660 | * f-lang.c (f_language_data): Delete la_parser initializer. | |
3661 | (f_language::parser): New member function. | |
3662 | * go-lang.c (go_language_data): Delete la_parser initializer. | |
3663 | (go_language::parser): New member function. | |
3664 | * language.c (unk_lang_parser): Delete. | |
3665 | (language_defn::parser): Define new member function. | |
3666 | (unknown_language_data): Delete la_parser initializer. | |
3667 | (unknown_language::parser): New member function. | |
3668 | (auto_language_data): Delete la_parser initializer. | |
3669 | (auto_language::parser): New member function. | |
3670 | * language.h (language_data): Delete la_parser field. | |
3671 | (language_defn::parser): Declare new member function. | |
3672 | * m2-lang.c (m2_language_data): Delete la_parser initializer. | |
3673 | (m2_language::parser): New member function. | |
3674 | * objc-lang.c (objc_language_data): Delete la_parser initializer. | |
3675 | * opencl-lang.c (opencl_language_data): Likewise. | |
3676 | * p-lang.c (pascal_language_data): Likewise. | |
3677 | (pascal_language::parser): New member function. | |
3678 | * parse.c (parse_exp_in_context): Update call to parser. | |
3679 | * rust-lang.c (rust_language_data): Delete la_parser initializer. | |
3680 | (rust_language::parser): New member function. | |
3681 | ||
37825800 AB |
3682 | 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com> |
3683 | ||
3684 | * top.c (print_gdb_configuration): Print --with-python-libdir | |
3685 | configuration value. | |
3686 | ||
5b860c93 PW |
3687 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3688 | ||
3689 | * NEWS: Mention change to the alias command. | |
3690 | ||
cf00cd6f PW |
3691 | 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3692 | ||
3693 | * cli/cli-cmds.c (lookup_cmd_for_default_args) | |
3694 | (alias_command_completer) | |
3695 | (make_alias_options_def_group): New functions. | |
3696 | (alias_opts, alias_option_defs): New struct and array. | |
3697 | (alias_usage_error): Update usage. | |
3698 | (alias_command): Handles optional DEFAULT-ARGS... arguments. | |
3699 | Use option framework. | |
3700 | (_initialize_cli_cmds): Update alias command help. | |
3701 | Update aliases command help. | |
3702 | (show_user): | |
3703 | Add NULL for new default_args lookup_cmd argument. | |
3704 | (valid_command_p): Rename to validate_aliased_command. | |
3705 | Add NULL for new default_args lookup_cmd argument. Verify that the | |
3706 | aliased_command has no default args. | |
3707 | * cli/cli-decode.c (help_cmd): Show aliases definitions. | |
3708 | (lookup_cmd_1, lookup_cmd): New argument default_args. | |
3709 | (add_alias_cmd): | |
3710 | Add NULL for new default_args lookup_cmd argument. | |
3711 | (print_help_for_command): Show default args under the layout | |
3712 | alias some_alias = some_aliased_cmd some_alias_default_arg. | |
3713 | * cli/cli-decode.h (struct cmd_list_element): New member default_args. | |
3714 | xfree default_args in destructor. | |
3715 | * cli/cli-script.c (process_next_line, do_define_command): | |
3716 | Add NULL for new default_args lookup_cmd argument. | |
3717 | * command.h: Declare new default_args argument in lookup_cmd | |
3718 | and lookup_cmd_1. | |
3719 | * completer.c (complete_line_internal_1): | |
3720 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
3721 | * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise. | |
3722 | * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p): | |
3723 | Likewise. | |
3724 | * infcmd.c (_initialize_infcmd): Likewise. | |
3725 | * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise. | |
3726 | * python/py-cmd.c (gdbpy_parse_command_name): Likewise. | |
3727 | * python/py-param.c (add_setshow_generic): Likewise. | |
3728 | * remote.c (_initialize_remote): Likewise. | |
3729 | * top.c (execute_command): Prepend default_args if command has some. | |
3730 | (set_verbose): | |
3731 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
3732 | * tracepoint.c (validate_actionline, encode_actions_1): | |
3733 | Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument. | |
3734 | ||
bd920864 TBA |
3735 | 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
3736 | ||
3737 | * jit.c (jit_read_descriptor): Use bool as the return type. | |
3738 | (jit_breakpoint_re_set_internal): Use bool as the return type. | |
3739 | Invert the return value logic; return true if the jit breakpoint | |
3740 | has been successfully initialized. | |
3741 | (jit_inferior_init): Update the call to | |
3742 | jit_breakpoint_re_set_internal. | |
3743 | ||
f8098322 PA |
3744 | 2020-06-22 Pedro Alves <palves@redhat.com> |
3745 | ||
3746 | PR gdb/25939 | |
3747 | * procfs.c (procfs_target::wait): Don't reference inferior_ptid. | |
3748 | Use the current inferior instead. Don't return | |
3749 | TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and | |
3750 | wait again. | |
3751 | * sol-thread.c (sol_thread_target::wait): Don't reference | |
3752 | inferior_ptid. | |
3753 | (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs) | |
3754 | (sol_update_thread_list_callback): Use the current inferior's pid | |
3755 | instead of inferior_ptid. | |
3756 | ||
196535a6 RO |
3757 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3758 | ||
3759 | * procfs.c: Cleanup many comments. | |
3760 | ||
3761 | (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG) | |
3762 | (AFTER_WATCHFLAG): Replace by value. | |
3763 | ||
3764 | (MAIN_PROC_NAME_FORMAT): Inline ... | |
3765 | (create_procinfo): ... here. | |
3766 | ||
3767 | (procfs_debug_inferior): Remove SYS_exec handling. | |
3768 | (syscall_is_exec): Likewise. | |
3769 | (procfs_set_exec_trap): Likewise. | |
3770 | ||
3771 | (syscall_is_lwp_exit): Inline in callers. | |
3772 | (syscall_is_exit): Likewise. | |
3773 | (syscall_is_exec): Likewise. | |
3774 | (syscall_is_lwp_create): Likewise. | |
3775 | ||
3776 | (invalidate_cache): Remove #if 0 code. | |
3777 | ||
3778 | (make_signal_thread_runnable): Remove. | |
3779 | (procfs_target::resume): Remove #if 0 code. | |
3780 | ||
cf6f3e86 RO |
3781 | 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
3782 | ||
3783 | PR gdb/25939 | |
3784 | * procfs.c (procfs_target::procfs_init_inferior): Move push_target | |
3785 | call ... | |
3786 | (procfs_target::create_inferior): ... here. | |
3787 | ||
48e9cc84 PW |
3788 | 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3789 | ||
3790 | * exec.c (validate_exec_file): Ensure the build-id is up to | |
3791 | date by calling reopen_exec_file (that checks file timestamp | |
3792 | to decide to re-read the file). | |
3793 | ||
3922b302 PA |
3794 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3795 | ||
3796 | PR gdb/25412 | |
3797 | * gdbthread.h (delete_thread, delete_thread_silent) | |
3798 | (find_thread_ptid): Update comments. | |
3799 | * thread.c (current_thread_): New global. | |
3800 | (is_current_thread): Move higher, and reimplement. | |
3801 | (inferior_thread): Reimplement. | |
3802 | (set_thread_exited): Use bool. Add assertions. | |
3803 | (add_thread_silent): Simplify thread-reuse handling by always | |
3804 | calling delete_thread. | |
3805 | (delete_thread): Remove intro comment. | |
3806 | (find_thread_ptid): Skip exited threads. | |
3807 | (switch_to_thread_no_regs): Write to current_thread_. | |
3808 | (switch_to_no_thread): Check CURRENT_THREAD_ instead of | |
3809 | INFERIOR_PTID. Clear current_thread_. | |
3810 | ||
6dbdab44 PA |
3811 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3812 | ||
3813 | * aix-thread.c (pd_update): Use switch_to_thread. | |
3814 | ||
2da4b788 PA |
3815 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3816 | ||
3817 | * ravenscar-thread.c (ravenscar_thread_target): Update. | |
3818 | (ravenscar_thread_target::update_inferior_ptid): Rename to ... | |
3819 | (ravenscar_thread_target::add_active_thread): ... this. Don't | |
3820 | set m_base_ptid here. Update to avoid referencing inferior_ptid. | |
3821 | (ravenscar_thread_target::wait): Don't write to inferior_ptid. | |
3822 | ||
50838d1b PA |
3823 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3824 | ||
3825 | * nat/windows-nat.c (current_windows_thread): Remove. | |
3826 | * nat/windows-nat.h (current_windows_thread): Remove. | |
3827 | * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint): | |
3828 | Adjust. | |
3829 | (display_selectors): Adjust to fetch the current | |
3830 | windows_thread_info based on inferior_ptid. | |
3831 | (fake_create_process): No longer write to current_windows_thread. | |
3832 | (windows_nat_target::get_windows_debug_event): | |
3833 | Don't set inferior_ptid or current_windows_thread. | |
3834 | (windows_nat_target::wait): Adjust to not rely on | |
3835 | current_windows_thread. | |
3836 | (do_initial_windows_stuff): Now a method of windows_nat_target. | |
3837 | Switch to the last_ptid thread. | |
3838 | (windows_nat_target::attach): Adjust. | |
3839 | (windows_nat_target::detach): Use switch_to_no_thread instead of | |
3840 | writing to inferior_ptid directly. | |
3841 | (windows_nat_target::create_inferior): Adjust. | |
3842 | ||
31ce04e9 PA |
3843 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3844 | ||
3845 | * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid. | |
3846 | ||
1ee1a363 PA |
3847 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3848 | ||
3849 | * go32-nat.c (go32_nat_target::create_inferior): Switch to thread | |
3850 | after creating it, instead of writing to inferior_ptid. Don't | |
3851 | write to inferior_ptid. | |
3852 | ||
6d350754 PA |
3853 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3854 | ||
3855 | * fork-child.c (postfork_hook): Don't write to inferior_ptid. | |
3856 | ||
5d971d48 PA |
3857 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3858 | ||
3859 | * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding | |
3860 | it, instead of writing to inferior_ptid. | |
3861 | ||
86e57d1b PA |
3862 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3863 | ||
3864 | * btrace.c (btrace_fetch): Use switch_to_thread instead of writing | |
3865 | to inferior_ptid. | |
3866 | ||
f2e1c129 PA |
3867 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3868 | ||
3869 | * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread | |
3870 | instead of writing to inferior_ptid directly. | |
3871 | ||
60db1b85 PA |
3872 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3873 | ||
3874 | * corelow.c (core_target::close): Use switch_to_no_thread instead | |
3875 | of writing to inferior_ptid directly. | |
3876 | (add_to_thread_list, core_target_open): Use switch_to_thread | |
3877 | instead of writing to inferior_ptid directly. | |
3878 | ||
fe7d6a8d PA |
3879 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3880 | ||
3881 | * darwin-nat.c (darwin_nat_target::decode_message): Don't write to | |
3882 | inferior_ptid. | |
3883 | (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid | |
3884 | inferior_ptid. | |
3885 | (darwin_attach_pid): Use switch_to_no_thread instead of writing to | |
3886 | inferior_ptid directly. | |
3887 | (darwin_nat_target::init_thread_list): Switch to thread, instead | |
3888 | of writing to inferior_ptid. | |
3889 | (darwin_nat_target::attach): Don't write to inferior_ptid. | |
3890 | (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid. | |
3891 | ||
975f8708 PA |
3892 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3893 | ||
3894 | * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added | |
3895 | thread. | |
3896 | (gnu_nat_target::attach): Don't write to inferior_ptid directly. | |
3897 | Instead use switch_to_thread. | |
3898 | (gnu_nat_target::detach): Use switch_to_no_thread | |
3899 | instead of writing to inferior_ptid directly. Used passed-in | |
3900 | inferior instead of looking up the inferior by pid. | |
3901 | ||
1a204730 PA |
3902 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3903 | ||
3904 | * go32-nat.c (go32_nat_target::create_inferior): Don't write to | |
3905 | inferior_ptid. | |
3906 | ||
ebe84f23 PA |
3907 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3908 | ||
3909 | * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid | |
3910 | inferior_ptid. | |
3911 | (nto_procfs_target::attach): Avoid inferior_ptid. Switch to | |
3912 | thread. | |
3913 | (nto_procfs_target::detach): Avoid referencing | |
3914 | inferior_ptid. Use switch_to_no_thread instead of writing to | |
3915 | inferior_ptid directly. | |
3916 | (nto_procfs_target::mourn_inferior): Use switch_to_no_thread | |
3917 | instead of writing to inferior_ptid directly. | |
3918 | (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch | |
3919 | to thread. | |
3920 | ||
191f02e5 PA |
3921 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3922 | ||
3923 | * remote-sim.c (gdbsim_target::create_inferior): Switch to thread | |
3924 | after creating it, instead of writing to inferior_ptid. | |
3925 | (gdbsim_target_open): Use switch_to_no_thread instead of writing | |
3926 | to inferior_ptid directly. | |
3927 | (gdbsim_target::wait): Don't write to inferior_ptid. | |
3928 | ||
0ac55310 PA |
3929 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3930 | ||
3931 | * remote.c (remote_target::remote_notice_new_inferior): Use | |
3932 | switch_to_thread instead of writing to inferior_ptid directly. | |
3933 | (remote_target::add_current_inferior_and_thread): Use | |
3934 | switch_to_no_thread instead of writing to inferior_ptid directly. | |
3935 | (extended_remote_target::attach): Use switch_to_inferior_no_thread | |
3936 | and switch_to_thread instead of using set_current_inferior or | |
3937 | writing to inferior_ptid directly. | |
3938 | ||
5233f39b PA |
3939 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3940 | ||
3941 | * tracectf.c (ctf_target_open): Switch to added thread instead of | |
3942 | writing to inferior_ptid directly. | |
3943 | (ctf_target::close): Use switch_to_no_thread instead of writing to | |
3944 | inferior_ptid directly. | |
3945 | ||
087e161b PA |
3946 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3947 | ||
3948 | * tracefile-tfile.c (tfile_target_open): Don't write to | |
3949 | inferior_ptid directly, instead switch to added thread. | |
3950 | (tfile_target::close): Use switch_to_no_thread instead of writing | |
3951 | to inferior_ptid directly. | |
3952 | ||
7fb43e53 PA |
3953 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3954 | ||
3955 | * procfs.c (procfs_target::attach): Don't write to inferior_ptid. | |
3956 | (procfs_target::detach): Use switch_to_no_thread | |
3957 | instead of writing to inferior_ptid directly. | |
3958 | (do_attach): Change return type to void. Switch to the added | |
3959 | thread. | |
3960 | (procfs_target::create_inferior): Switch to the added thread. | |
3961 | (procfs_do_thread_registers): Don't write to inferior_ptid. | |
3962 | ||
18493a00 PA |
3963 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3964 | ||
3965 | * infrun.c (generic_mourn_inferior): Use switch_to_thread instead | |
3966 | of writing to inferior_ptid. | |
3967 | (scoped_restore_exited_inferior): Delete. | |
3968 | (handle_vfork_child_exec_or_exit): Simplify using | |
3969 | scoped_restore_current_pspace_and_thread. Use switch_to_thread | |
3970 | instead of writing to inferior_ptid. | |
3971 | (THREAD_STOPPED_BY): Delete. | |
3972 | (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint) | |
3973 | (thread_stopped_by_hw_breakpoint): Delete. | |
3974 | (save_waitstatus): Use | |
3975 | scoped_restore_current_thread+switch_to_thread, and call | |
3976 | target_stopped_by_watchpoint instead of | |
3977 | thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint | |
3978 | instead of thread_stopped_by_sw_breakpoint, and | |
3979 | target_stopped_by_hw_breakpoint instead of | |
3980 | thread_stopped_by_hw_breakpoint. | |
3981 | (handle_inferior_event) | |
3982 | <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to | |
3983 | inferior_ptid directly, nor | |
3984 | set_current_inferior/set_current_program_space. Use | |
3985 | switch_to_thread / switch_to_inferior_no_thread instead. | |
3986 | ||
a0776b13 PA |
3987 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3988 | ||
3989 | * target.c (generic_mourn_inferior): Use switch_to_no_thread | |
3990 | instead of writing to inferior_ptid. | |
3991 | ||
6155c136 PA |
3992 | 2020-06-18 Pedro Alves <palves@redhat.com> |
3993 | ||
3994 | * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the | |
3995 | added thread. | |
3996 | (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch | |
3997 | to the added thread. | |
3998 | (inf_ptrace_target::detach_success): Use switch_to_no_thread | |
3999 | instead of writing to inferior_ptid. | |
4000 | ||
c5316fc6 PA |
4001 | 2020-06-18 Pedro Alves <palves@redhat.com> |
4002 | ||
4003 | * gdbarch-selftests.c: Include "progspace-and-thread.h". | |
4004 | (register_to_value_test): Mock a program_space too. Heap-allocate | |
4005 | the address space. Don't write to inferior_ptid. Use | |
4006 | switch_to_thread instead. | |
4007 | ||
8df01799 PA |
4008 | 2020-06-18 Pedro Alves <palves@redhat.com> |
4009 | ||
4010 | * linux-tdep.c (find_signalled_thread(thread_info *,void *)): | |
4011 | Delete. | |
4012 | (find_signalled_thread()): New, factored out from | |
4013 | linux_make_corefile_notes and adjusted to handle exited threads. | |
4014 | (linux_make_corefile_notes): Adjust to use the new | |
4015 | find_signalled_thread. | |
4016 | ||
41792d68 PA |
4017 | 2020-06-18 Pedro Alves <palves@redhat.com> |
4018 | ||
4019 | * linux-tdep.c (btrace_fetch): Save/restore current thread instead | |
4020 | of saving/restoring inferior_ptid. | |
4021 | ||
612f258a TT |
4022 | 2020-06-17 Tom Tromey <tom@tromey.com> |
4023 | ||
4024 | * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward) | |
4025 | (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't | |
4026 | declare. | |
4027 | * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove. | |
4028 | ||
efb763a5 SM |
4029 | 2020-06-15 Simon Marchi <simon.marchi@efficios.com> |
4030 | ||
4031 | * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence | |
4032 | of partial symtabs. | |
4033 | ||
2951f6c0 SM |
4034 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
4035 | ||
4036 | * regformats/reg-arm.dat: Remove. | |
4037 | * regformats/reg-bfin.dat: Remove. | |
4038 | * regformats/reg-cris.dat: Remove. | |
4039 | * regformats/reg-crisv32.dat: Remove. | |
4040 | * regformats/reg-m32r.dat: Remove. | |
4041 | * regformats/reg-tilegx.dat: Remove. | |
4042 | * regformats/reg-tilegx32.dat: Remove. | |
4043 | ||
7d458ea5 SM |
4044 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
4045 | ||
4046 | * features/Makefile (WHICH): Remove arm files. | |
4047 | * regformats/arm/arm-with-iwmmxt.dat: Remove. | |
4048 | * regformats/arm/arm-with-neon.dat: Remove. | |
4049 | * regformats/arm/arm-with-vfpv2.dat: Remove. | |
4050 | * regformats/arm/arm-with-vfpv3.dat: Remove. | |
4051 | ||
3af96c0d SM |
4052 | 2020-06-17 Simon Marchi <simon.marchi@efficios.com> |
4053 | ||
4054 | * features/Makefile (XMLTOC): Remove rx.xml. | |
4055 | ||
b25e22fd PA |
4056 | 2020-06-17 Pedro Alves <palves@redhat.com> |
4057 | ||
4058 | * gdbthread.h (thread_control_state) <trap_expected> Update | |
4059 | comments. | |
4060 | ||
a78a19b1 AB |
4061 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
4062 | ||
4063 | * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to | |
4064 | ada_language::lookup_symbol_nonlocal. | |
4065 | (ada_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
4066 | (ada_language::lookup_symbol_nonlocal): New member function, | |
4067 | implementation from ada_lookup_symbol_nonlocal. | |
4068 | * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal | |
4069 | initializer. | |
4070 | (cplus_language_data): Delete la_lookup_symbol_nonlocal | |
4071 | initializer. | |
4072 | (cplus_language::lookup_symbol_nonlocal): New member function. | |
4073 | (asm_language_data): Delete la_lookup_symbol_nonlocal initializer. | |
4074 | (minimal_language_data) Likewise. | |
4075 | * cp-namespace.c (cp_lookup_nested_symbol): Update comment. | |
4076 | * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal | |
4077 | initializer. | |
4078 | (d_language::lookup_symbol_nonlocal): New member function. | |
4079 | * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal | |
4080 | initializer. | |
4081 | (f_language::lookup_symbol_nonlocal): New member function. | |
4082 | * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal | |
4083 | initializer. | |
4084 | * language.c (unknown_language_data): Likewise. | |
4085 | (auto_language_data): Likewise. | |
4086 | * language.h (language_data): Delete la_lookup_symbol_nonlocal | |
4087 | field. | |
4088 | (language_defn::lookup_symbol_nonlocal): New member function. | |
4089 | * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal | |
4090 | initializer. | |
4091 | * objc-lang.c (objc_language_data): Likewise. | |
4092 | * opencl-lang.c (opencl_language_data): Likewise. | |
4093 | * p-lang.c (pascal_language_data): Likewise. | |
4094 | * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to | |
4095 | rust_language::lookup_symbol_nonlocal. | |
4096 | (rust_language_data): Delete la_lookup_symbol_nonlocal | |
4097 | initializer. | |
4098 | (rust_language::lookup_symbol_nonlocal): New member function, | |
4099 | implementation from rust_lookup_symbol_nonlocal. | |
4100 | * symtab.c (lookup_symbol_aux): Update call to | |
4101 | lookup_symbol_nonlocal. | |
4102 | (basic_lookup_symbol_nonlocal): Rename to... | |
4103 | (language_defn::lookup_symbol_nonlocal): ...this, and update | |
4104 | header comment. Remove language_defn parameter, and replace with | |
4105 | uses of `this'. | |
4106 | * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration. | |
4107 | ||
ebe2334e AB |
4108 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
4109 | ||
4110 | * ada-lang.c (ada_language_data): Delete la_value_print_inner | |
4111 | initializer. | |
4112 | (ada_language::value_print_inner): New member function. | |
4113 | * c-lang.c (c_language_data): Delete la_value_print_inner | |
4114 | initializer. | |
4115 | (cplus_language_data): Likewise. | |
4116 | (asm_language_data): Likewise. | |
4117 | (minimal_language_data): Likewise. | |
4118 | * d-lang.c (d_language_data): Likewise. | |
4119 | (d_language::value_print_inner): New member function. | |
4120 | * f-lang.c (f_language_data): Delete la_value_print_inner | |
4121 | initializer. | |
4122 | (f_language::value_print_inner): New member function. | |
4123 | * f-lang.h (f_value_print_innner): Rename to... | |
4124 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
4125 | * f-valprint.c (f_value_print_innner): Rename to... | |
4126 | (f_value_print_inner): ...this (note spelling of 'inner'). | |
4127 | * go-lang.c (go_language_data): Delete la_value_print_inner | |
4128 | initializer. | |
4129 | (go_language::value_print_inner): New member function. | |
4130 | * language.c (language_defn::value_print_inner): Define new member | |
4131 | function. | |
4132 | (unk_lang_value_print_inner): Delete. | |
4133 | (unknown_language_data): Delete la_value_print_inner initializer. | |
4134 | (unknown_language::value_print_inner): New member function. | |
4135 | (auto_language_data): Delete la_value_print_inner initializer. | |
4136 | (auto_language::value_print_inner): New member function. | |
4137 | * language.h (language_data): Delete la_value_print_inner field. | |
4138 | (language_defn::value_print_inner): Delcare new member function. | |
4139 | * m2-lang.c (m2_language_data): Delete la_value_print_inner | |
4140 | initializer. | |
4141 | (m2_language::value_print_inner): New member function. | |
4142 | * objc-lang.c (objc_language_data): Delete la_value_print_inner | |
4143 | initializer. | |
4144 | * opencl-lang.c (opencl_language_data): Likewise. | |
4145 | * p-lang.c (pascal_language_data): Likewise. | |
4146 | (pascal_language::value_print_inner): New member function. | |
4147 | * rust-lang.c (rust_language_data): Delete la_value_print_inner | |
4148 | initializer. | |
4149 | (rust_language::value_print_inner): New member function. | |
4150 | * valprint.c (do_val_print): Update call to value_print_inner. | |
4151 | ||
a1d1fa3e AB |
4152 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
4153 | ||
4154 | * ada-lang.c (ada_language_data): Delete la_value_print | |
4155 | initializer. | |
4156 | (ada_language::value_print): New member function. | |
4157 | * c-lang.c (c_language_data): Delete la_value_print initializer. | |
4158 | (cplus_language_data): Likewise. | |
4159 | (asm_language_data): Likewise. | |
4160 | (minimal_language_data): Likewise. | |
4161 | * d-lang.c (d_language_data): Likewise. | |
4162 | * f-lang.c (f_language_data): Likewise. | |
4163 | * go-lang.c (go_language_data): Likewise. | |
4164 | * language.c (unk_lang_value_print): Delete. | |
4165 | (language_defn::value_print): Define new member function. | |
4166 | (unknown_language_data): Delete la_value_print initializer. | |
4167 | (unknown_language::value_print): New member function. | |
4168 | (auto_language_data): Delete la_value_print initializer. | |
4169 | (auto_language::value_print): New member function. | |
4170 | * language.h (language_data): Delete la_value_print field. | |
4171 | (language_defn::value_print): Declare new member function. | |
4172 | (LA_VALUE_PRINT): Update call to value_print. | |
4173 | * m2-lang.c (m2_language_data): Delete la_value_print initializer. | |
4174 | * objc-lang.c (objc_language_data): Likewise. | |
4175 | * opencl-lang.c (opencl_language_data): Likewise. | |
4176 | * p-lang.c (pascal_language_data): Likewise. | |
4177 | (pascal_language::value_print): New member function. | |
4178 | * rust-lang.c (rust_language_data): Delete la_value_print | |
4179 | initializer. | |
4180 | ||
f16a9f57 AB |
4181 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
4182 | ||
4183 | * ada-lang.c (ada_watch_location_expression): Rename to | |
4184 | ada_language::watch_location_expression. | |
4185 | (ada_language_data): Delete la_watch_location_expression | |
4186 | initializer. | |
4187 | (ada_language::watch_location_expression): New member function, | |
4188 | implementation from ada_watch_location_expression. | |
4189 | * breakpoint.c (watch_command_1): Update call to | |
4190 | watch_location_expression. | |
4191 | * c-lang.c (c_watch_location_expression): Rename to | |
4192 | language_defn::watch_location_expression. | |
4193 | (c_language_data): Delete la_watch_location_expression | |
4194 | initializer. | |
4195 | (cplus_language_data): Likewise. | |
4196 | (asm_language_data): Likewise. | |
4197 | (minimal_language_data): Likewise. | |
4198 | * c-lang.h (c_watch_location_expression): Delete declaration. | |
4199 | * d-lang.c (d_language_data): Delete la_watch_location_expression | |
4200 | initializer. | |
4201 | * f-lang.c (f_language_data): Likewise. | |
4202 | * go-lang.c (go_language_data): Likewise. | |
4203 | * language.c (language_defn::watch_location_expression): Member | |
4204 | function implementation from c_watch_location_expression. | |
4205 | (unknown_language_data): Delete la_watch_location_expression | |
4206 | initializer. | |
4207 | (auto_language_data): Likewise. | |
4208 | * language.h (language_data): Delete la_watch_location_expression | |
4209 | field. | |
4210 | (language_defn::watch_location_expression): Declare new member | |
4211 | function. | |
4212 | * m2-lang.c (m2_language_data): Delete | |
4213 | la_watch_location_expression initializer. | |
4214 | * objc-lang.c (objc_language_data): Likewise. | |
4215 | * opencl-lang.c (opencl_language_data): Likewise. | |
4216 | * p-lang.c (pascal_language_data): Likewise. | |
4217 | * rust-lang.c (rust_watch_location_expression): Rename to | |
4218 | rust_language::watch_location_expression. | |
4219 | (rust_language_data): Delete la_watch_location_expression | |
4220 | initializer. | |
4221 | (rust_language::watch_location_expression): New member function, | |
4222 | implementation from rust_watch_location_expression. | |
4223 | ||
7e56227d AB |
4224 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
4225 | ||
4226 | * ada-lang.c (ada_collect_symbol_completion_matches): Rename to | |
4227 | ada_language::collect_symbol_completion_matches. | |
4228 | (ada_language_data): Delete la_collect_symbol_completion_matches | |
4229 | initializer. | |
4230 | (ada_language::collect_symbol_completion_matches): New member | |
4231 | function, implementation from | |
4232 | ada_collect_symbol_completion_matches. | |
4233 | * c-lang.c (c_language_data): Delete | |
4234 | la_collect_symbol_completion_matches initializer. | |
4235 | (cplus_language_data): Likewise. | |
4236 | (asm_language_data): Likewise. | |
4237 | (minimal_language_data): Likewise. | |
4238 | * d-lang.c (d_language_data): Likewise. | |
4239 | * f-lang.c (f_collect_symbol_completion_matches): Rename to | |
4240 | f_language::collect_symbol_completion_matches. | |
4241 | (f_language_data): Delete la_collect_symbol_completion_matches | |
4242 | initializer. | |
4243 | (f_language::collect_symbol_completion_matches) New member | |
4244 | function, implementation from f_collect_symbol_completion_matches. | |
4245 | * go-lang.c (go_language_data): Delete | |
4246 | la_collect_symbol_completion_matches initializer. | |
4247 | * language.c (unknown_language_data): Likewise. | |
4248 | (auto_language_data): Likewise. | |
4249 | * language.h (language_data): Delete | |
4250 | la_collect_symbol_completion_matches field. | |
4251 | (language_defn::collect_symbol_completion_matches): New member | |
4252 | function. | |
4253 | * m2-lang.c (m2_language_data): Delete | |
4254 | la_collect_symbol_completion_matches initializer. | |
4255 | * objc-lang.c (objc_language_data): Likewise. | |
4256 | * opencl-lang.c (opencl_language_data): Likewise. | |
4257 | * p-lang.c (pascal_language_data): Likewise. | |
4258 | * rust-lang.c (rust_language_data): Likewise. | |
4259 | * symtab.c (default_collect_symbol_completion_matches): Delete. | |
4260 | (collect_symbol_completion_matches): Update call to | |
4261 | collect_symbol_completion_matches. | |
4262 | (collect_symbol_completion_matches_type): Likewise. | |
4263 | * symtab.h (default_collect_symbol_completion_matches): Delete | |
4264 | declaration. | |
4265 | ||
53fc67f8 AB |
4266 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
4267 | ||
4268 | * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete. | |
4269 | (ada_language_data): Delete la_word_break_characters initializer. | |
4270 | (ada_language::word_break_characters): New member function. | |
4271 | * c-lang.c (c_language_data): Delete la_word_break_characters | |
4272 | initializer. | |
4273 | (cplus_language_data): Likewise. | |
4274 | (asm_language_data): Likewise. | |
4275 | (minimal_language_data): Likewise. | |
4276 | * completer.c: Update global comment. | |
4277 | (advance_to_expression_complete_word_point): Update call to | |
4278 | word_break_characters. | |
4279 | (complete_files_symbols): Likewise. | |
4280 | (complete_line_internal_1): Likewise. | |
4281 | (default_completer_handle_brkchars): Likewise. | |
4282 | (skip_quoted_chars): Likewise. | |
4283 | * d-lang.c (d_language_data): Delete la_word_break_characters | |
4284 | initializer. | |
4285 | * f-lang.c (f_word_break_characters): Delete. | |
4286 | (f_language_data): Delete la_word_break_characters initializer. | |
4287 | (f_language::word_break_characters): New member function. | |
4288 | * go-lang.c (go_language_data): Delete la_word_break_characters | |
4289 | initializer. | |
4290 | * language.c (unknown_language_data): Likewise. | |
4291 | (auto_language_data): Likewise. | |
4292 | * language.h (default_word_break_characters): Move declaration to | |
4293 | earlier in the file. | |
4294 | (language_data): Delete la_word_break_characters field. | |
4295 | (language_defn::word_break_characters): New member function. | |
4296 | * m2-lang.c (m2_language_data): Delete la_word_break_characters | |
4297 | initializer. | |
4298 | * objc-lang.c (objc_language_data): Likewise. | |
4299 | * opencl-lang.c (opencl_language_data): Likewise. | |
4300 | * p-lang.c (pascal_language_data): Likewise. | |
4301 | * rust-lang.c (rust_language_data): Likewise. | |
4302 | ||
c9debfb9 AB |
4303 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
4304 | ||
4305 | * ada-lang.c (ada_get_symbol_name_matcher): Update header comment. | |
4306 | (ada_language_data): Delete la_get_symbol_name_matcher | |
4307 | initializer. | |
4308 | (language_defn::get_symbol_name_matcher_inner): New member | |
4309 | function. | |
4310 | * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher | |
4311 | initializer. | |
4312 | (cplus_language_data): Likewise. | |
4313 | (cplus_language::get_symbol_name_matcher_inner): New member | |
4314 | function. | |
4315 | (asm_language_data): Delete la_get_symbol_name_matcher initializer. | |
4316 | (minimal_language_data): Likewise. | |
4317 | * cp-support.h (cp_get_symbol_name_matcher): Update header comment. | |
4318 | * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher | |
4319 | initializer. | |
4320 | * dictionary.c (iter_match_first_hashed): Update call to | |
4321 | get_symbol_name_matcher. | |
4322 | (iter_match_next_hashed): Likewise. | |
4323 | (iter_match_next_linear): Likewise. | |
4324 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise. | |
4325 | * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher | |
4326 | initializer. | |
4327 | (f_language::get_symbol_name_matcher_inner): New member function. | |
4328 | * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher | |
4329 | initializer. | |
4330 | * language.c (default_symbol_name_matcher): Update header comment, | |
4331 | make static. | |
4332 | (language_defn::get_symbol_name_matcher): New definition. | |
4333 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
4334 | (get_symbol_name_matcher): Delete. | |
4335 | (unknown_language_data): Delete la_get_symbol_name_matcher | |
4336 | initializer. | |
4337 | (auto_language_data): Likewise. | |
4338 | * language.h (language_data): Delete la_get_symbol_name_matcher | |
4339 | field. | |
4340 | (language_defn::get_symbol_name_matcher): New member function. | |
4341 | (language_defn::get_symbol_name_matcher_inner): Likewise. | |
4342 | (default_symbol_name_matcher): Delete declaration. | |
4343 | * linespec.c (find_methods): Update call to | |
4344 | get_symbol_name_matcher. | |
4345 | * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher | |
4346 | initializer. | |
4347 | * minsyms.c (lookup_minimal_symbol): Update call to | |
4348 | get_symbol_name_matcher. | |
4349 | (iterate_over_minimal_symbols): Likewise. | |
4350 | * objc-lang.c (objc_language_data): Delete | |
4351 | la_get_symbol_name_matcher initializer. | |
4352 | * opencl-lang.c (opencl_language_data): Likewise. | |
4353 | * p-lang.c (pascal_language_data): Likewise. | |
4354 | * psymtab.c (psymbol_name_matches): Update call to | |
4355 | get_symbol_name_matcher. | |
4356 | * rust-lang.c (rust_language_data): Delete | |
4357 | la_get_symbol_name_matcher initializer. | |
4358 | * symtab.c (symbol_matches_search_name): Update call to | |
4359 | get_symbol_name_matcher. | |
4360 | (compare_symbol_name): Likewise. | |
4361 | ||
9a49ad8c AB |
4362 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
4363 | ||
4364 | * ada-lang.c (ada_language_data): Delete la_compute_program | |
4365 | initializer. | |
4366 | * c-lang.c (c_language_data): Likewise. | |
4367 | (c_language::compute_program): New member function. | |
4368 | (cplus_language_data): Delete la_compute_program initializer. | |
4369 | (cplus_language::compute_program): New member function. | |
4370 | (asm_language_data): Delete la_compute_program initializer. | |
4371 | (minimal_language_data): Likewise. | |
4372 | * c-lang.h (c_compute_program): Update comment. | |
4373 | (cplus_compute_program): Likewise. | |
4374 | * compile/compile-c-support.c (c_compute_program): Likewise. | |
4375 | (cplus_compute_program): Likewise. | |
4376 | * compile/compile.c (compile_to_object): Update call to | |
4377 | la_compute_program. | |
4378 | * d-lang.c (d_language_data): Delete la_compute_program | |
4379 | initializer. | |
4380 | * f-lang.c (f_language_data): Likewise. | |
4381 | * go-lang.c (go_language_data): Likewise. | |
4382 | * language.c (unknown_language_data): Likewise. | |
4383 | (auto_language_data): Likewise. | |
4384 | * language.h (language_data): Delete la_compute_program field. | |
4385 | (language_defn::compute_program): New member function. | |
4386 | * m2-lang.c (m2_language_data): Delete la_compute_program | |
4387 | initializer. | |
4388 | * objc-lang.c (objc_language_data): Likewise. | |
4389 | * opencl-lang.c (opencl_language_data): Likewise. | |
4390 | * p-lang.c (pascal_language_data): Likewise. | |
4391 | * rust-lang.c (rust_language_data): Likewise. | |
4392 | ||
eff93b4d AB |
4393 | 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com> |
4394 | ||
4395 | * ada-lang.c (ada_language_data) Delete | |
4396 | la_class_name_from_physname initializer. | |
4397 | * c-lang.c (c_language_data): Likewise. | |
4398 | (cplus_language_data): Likewise. | |
4399 | (cplus_language::class_name_from_physname): New member function. | |
4400 | (asm_language_data): Delete la_class_name_from_physname | |
4401 | initializer. | |
4402 | (minimal_language_data): Likewise. | |
4403 | * d-lang.c (d_language_data): Likewise. | |
4404 | * dwarf2/read.c (guess_partial_die_structure_name): Update to call | |
4405 | method on language_defn class. | |
4406 | (guess_full_die_structure_name): Likewise. | |
4407 | * f-lang.c (f_language_data): Delete la_class_name_from_physname | |
4408 | initializer. | |
4409 | * go-lang.c (go_language_data): Likewise. | |
4410 | * language.c (language_class_name_from_physname): Delete. | |
4411 | (unk_lang_class_name): Delete. | |
4412 | (unknown_language_data): Delete la_class_name_from_physname | |
4413 | initializer. | |
4414 | (auto_language_data): Likewise. | |
4415 | * language.h (language_data): Delete la_class_name_from_physname | |
4416 | field. | |
4417 | (language_defn::class_name_from_physname): New function. | |
4418 | (language_class_name_from_physname): Delete declaration. | |
4419 | * m2-lang.c (m2_language_data): Delete la_class_name_from_physname | |
4420 | initializer. | |
4421 | * objc-lang.c (objc_language_data): Likewise. | |
4422 | * opencl-lang.c (opencl_language_data): Likewise. | |
4423 | * p-lang.c (pascal_language_data): Likewise. | |
4424 | * rust-lang.c (rust_language_data): Likewise. | |
4425 | ||
de543742 TT |
4426 | 2020-06-16 Tom Tromey <tom@tromey.com> |
4427 | ||
4428 | * tui/tui-data.h (STATUS_NAME): New macro. | |
4429 | * tui/tui-layout.c (tui_remove_some_windows) | |
4430 | (initialize_known_windows, tui_register_window) | |
4431 | (tui_layout_split::remove_windows, initialize_layouts) | |
4432 | (tui_new_layout_command): Don't use hard-coded window names. | |
4433 | ||
a350efd4 TT |
4434 | 2020-06-16 Tom Tromey <tom@tromey.com> |
4435 | ||
4436 | PR tui/25348: | |
4437 | * tui/tui.c (tui_ensure_readline_initialized): Rename from | |
4438 | tui_initialize_readline. Only run once. Call rl_initialize. | |
4439 | * tui/tui.h (tui_ensure_readline_initialized): Rename from | |
4440 | tui_initialize_readline. | |
4441 | * tui/tui-io.c (tui_setup_io): Call | |
4442 | tui_ensure_readline_initialized. | |
4443 | * tui/tui-interp.c (tui_interp::init): Update. | |
4444 | ||
39ec0490 TT |
4445 | 2020-06-16 Tom Tromey <tom@tromey.com> |
4446 | ||
4447 | * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic. | |
4448 | Also preserve the status window. | |
4449 | ||
d2d1ea20 TT |
4450 | 2020-06-16 Tom Tromey <tom@tromey.com> |
4451 | ||
4452 | * python/py-tui.c (tui_py_window::~tui_py_window): Handle case | |
4453 | where m_window==nullptr. | |
4454 | ||
66920317 TT |
4455 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
4456 | ||
4457 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
4458 | Update. | |
4459 | (windows_nat::handle_ms_vc_exception): Update. | |
4460 | * target.h (target_read_string): Change API. | |
4461 | * target.c (target_read_string): Change API. | |
4462 | * solib-svr4.c (open_symbol_file_object, svr4_read_so_list): | |
4463 | Update. | |
4464 | * solib-frv.c (frv_current_sos): Update. | |
4465 | * solib-dsbt.c (dsbt_current_sos): Update. | |
4466 | * solib-darwin.c (darwin_current_sos): Update. | |
4467 | * linux-thread-db.c (inferior_has_bug): Update. | |
4468 | * expprint.c (print_subexp_standard): Update. | |
4469 | * ada-lang.c (ada_main_name, ada_tag_name_from_tsd) | |
4470 | (ada_exception_message_1): Update. | |
4471 | ||
a5d871dd TT |
4472 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
4473 | ||
4474 | * linux-tdep.c (dump_mapping_p): Use target_read_memory. | |
4475 | ||
670e35fa TT |
4476 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
4477 | ||
4478 | * valprint.c (read_string): Update comment. | |
4479 | * target.c (MIN): Remove. | |
4480 | (target_read_string): Rewrite. | |
4481 | ||
f5272a3b TT |
4482 | 2020-06-15 Tom Tromey <tromey@adacore.com> |
4483 | ||
4484 | * corefile.c (read_memory_string): Remove. | |
4485 | * ada-valprint.c (ada_value_print_ptr): Update. | |
4486 | * ada-lang.h (ada_tag_name): Change return type. | |
4487 | * ada-lang.c (type_from_tag): Update. | |
4488 | (ada_tag_name_from_tsd): Change return type. Use | |
4489 | target_read_string. | |
4490 | (ada_tag_name): Likewise. | |
4491 | * gdbcore.h (read_memory_string): Don't declare. | |
4492 | ||
2c074f49 HD |
4493 | 2020-06-14 Hannes Domani <ssbssa@yahoo.de> |
4494 | ||
4495 | * symtab.c (rbreak_command): Ignore Windows drive colon. | |
4496 | ||
6a17d503 SM |
4497 | 2020-06-12 Simon Marchi <simon.marchi@efficios.com> |
4498 | ||
4499 | * NEWS: Mention removed GDBserver host support. | |
4500 | ||
453c733f NC |
4501 | 2020-06-12 Nelson Chu <nelson.chu@sifive.com> |
4502 | ||
4503 | * features/riscv/rebuild-csr-xml.sh: Updated. | |
4504 | ||
2b4e6a3f TT |
4505 | 2020-06-11 Tom Tromey <tom@tromey.com> |
4506 | ||
4507 | PR gdb/18318: | |
4508 | * c-exp.y (lex_one_token): Handle 'p' like 'e'. | |
4509 | ||
4412332f JG |
4510 | 2020-06-09 Jonny Grant <jg@jguk.org> |
4511 | 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca> | |
4512 | ||
4513 | * main.c (captured_main_1): Don't print new line after help. | |
4514 | (print_gdb_help): add mailing list and IRC channel information | |
4515 | to --help. Add new lines between items in the footer. Remove | |
4516 | quotes around bug url. | |
4517 | ||
2f33032a KS |
4518 | 2020-06-11 Keith Seitz <keiths@redhat.com> |
4519 | ||
4520 | PR gdb/21356 | |
4521 | * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct): | |
4522 | Resolve typedefs for type length calculations. | |
4523 | ||
7ab96794 TV |
4524 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
4525 | ||
4526 | PR ada/24713 | |
4527 | * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack. | |
4528 | (write_psymbols): Enable .gdb_index for ada. | |
4529 | * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for | |
4530 | ada. | |
4531 | ||
e5f3ece2 TV |
4532 | 2020-06-10 Tom de Vries <tdevries@suse.de> |
4533 | ||
4534 | * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ... | |
4535 | (dw2_symtab_iter_init): ... here. Add variant with "offset_type | |
4536 | namei" instead of "const char *name" argument. | |
4537 | (dw2_map_matching_symbols): Use "offset_type namei" variant of | |
4538 | dw2_symtab_iter_init. | |
4539 | ||
940da03e SM |
4540 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
4541 | ||
4542 | * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites | |
4543 | to use type::field and field::type instead. | |
4544 | ||
b6cdac4b SM |
4545 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
4546 | ||
4547 | * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites | |
4548 | to use field::type instead. | |
4549 | ||
5d14b6e5 SM |
4550 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
4551 | ||
4552 | * gdbtypes.h (struct field) <type, set_type>: New methods. | |
4553 | Rename `type` field to... | |
4554 | <m_type>: ... this. Change references throughout to use type or | |
4555 | set_type methods. | |
4556 | (FIELD_TYPE): Use field::type. Change call sites that modify | |
4557 | the field's type to use field::set_type instead. | |
4558 | ||
3d967001 SM |
4559 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
4560 | ||
4561 | * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites | |
4562 | to use type::index_type instead. | |
4563 | ||
262abc0d SM |
4564 | 2020-06-08 Simon Marchi <simon.marchi@efficios.com> |
4565 | ||
4566 | * gdbtypes.h (struct type) <index_type, set_index_type>: New | |
4567 | methods. | |
4568 | (TYPE_INDEX_TYPE): Use type::index_type. | |
4569 | * gdbtypes.c (create_array_type_with_stride): Likewise. | |
4570 | ||
82836c92 TT |
4571 | 2020-06-07 Tom Tromey <tom@tromey.com> |
4572 | ||
4573 | * valprint.c (generic_val_print_float): Remove "embedded_offset" | |
4574 | parameter. | |
4575 | (generic_value_print): Update. | |
4576 | ||
940dace9 AB |
4577 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
4578 | ||
4579 | Revert commit 982a38f60b0. | |
4580 | * python/py-tui.c (gdbpy_tui_set_title): Restore use of get. | |
4581 | ||
982a38f6 AB |
4582 | 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com> |
4583 | ||
4584 | * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to | |
4585 | avoid use after free. | |
4586 | ||
82f06518 TV |
4587 | 2020-06-05 Tom de Vries <tdevries@suse.de> |
4588 | ||
4589 | * NEWS: Fix typos. | |
4590 | ||
f8c41851 SM |
4591 | 2020-06-04 Simon Marchi <simon.marchi@efficios.com> |
4592 | ||
4593 | * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in | |
4594 | the per_bfd object. | |
4595 | (dwarf2_read_debug_names): Likewise. | |
4596 | (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd | |
4597 | object when re-using a per_bfd object with an index. | |
4598 | ||
f9b5d5ea TV |
4599 | 2020-06-03 Tom de Vries <tdevries@suse.de> |
4600 | ||
4601 | PR symtab/26046 | |
4602 | * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram | |
4603 | children for C++. | |
4604 | (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of | |
4605 | DW_TAG_subprogram. | |
4606 | ||
f6eee2d0 AB |
4607 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4608 | ||
4609 | * ada-lang.c (ada_language_data): Delete skip_trampoline | |
4610 | initializer. | |
4611 | * c-lang.c (c_language_data): Likewise. | |
4612 | (cplus_language_data): Likewise. | |
4613 | (cplus_language::skip_trampoline): New member function. | |
4614 | (asm_language_data): Delete skip_trampoline initializer. | |
4615 | (minimal_language_data): Likewise. | |
4616 | * d-lang.c (d_language_data): Likewise. | |
4617 | * f-lang.c (f_language_data): Likewise. | |
4618 | * go-lang.c (go_language_data): Likewise. | |
4619 | * language.c (unk_lang_trampoline): Delete function. | |
4620 | (skip_language_trampoline): Update. | |
4621 | (unknown_language_data): Delete skip_trampoline initializer. | |
4622 | (auto_language_data): Likewise. | |
4623 | * language.h (language_data): Delete skip_trampoline field. | |
4624 | (language_defn::skip_trampoline): New function. | |
4625 | * m2-lang.c (m2_language_data): Delete skip_trampoline | |
4626 | initializer. | |
4627 | * objc-lang.c (objc_skip_trampoline): Delete function, move | |
4628 | implementation to objc_language::skip_trampoline. | |
4629 | (objc_language_data): Delete skip_trampoline initializer. | |
4630 | (objc_language::skip_trampoline): New member function with | |
4631 | implementation from objc_skip_trampoline. | |
4632 | * opencl-lang.c (opencl_language_data): Delete skip_trampoline | |
4633 | initializer. | |
4634 | * p-lang.c (pascal_language_data): Likewise. | |
4635 | * rust-lang.c (rust_language_data): Likewise. | |
4636 | ||
0a50df5d AB |
4637 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4638 | ||
4639 | * ada-lang.c (ada_language_data): Delete la_demangle initializer. | |
4640 | (ada_language::demangle): New member function. | |
4641 | * c-lang.c (c_language_data): Delete la_demangle initializer. | |
4642 | (cplus_language_data): Delete la_demangle initializer. | |
4643 | (cplus_language::demangle): New member function. | |
4644 | (asm_language_data): Delete la_demangle initializer. | |
4645 | (minimal_language_data): Delete la_demangle initializer. | |
4646 | * d-lang.c (d_language_data): Delete la_demangle initializer. | |
4647 | (d_language::demangle): New member function. | |
4648 | * f-lang.c (f_language_data): Delete la_demangle initializer. | |
4649 | (f_language::demangle): New member function. | |
4650 | * go-lang.c (go_language_data): Delete la_demangle initializer. | |
4651 | (go_language::demangle): New member function. | |
4652 | * language.c (language_demangle): Update. | |
4653 | (unk_lang_demangle): Delete. | |
4654 | (unknown_language_data): Delete la_demangle initializer. | |
4655 | (unknown_language::demangle): New member function. | |
4656 | (auto_language_data): Delete la_demangle initializer. | |
4657 | (auto_language::demangle): New member function. | |
4658 | * language.h (language_data): Delete la_demangle field. | |
4659 | (language_defn::demangle): New function. | |
4660 | * m2-lang.c (m2_language_data): Delete la_demangle initializer. | |
4661 | * objc-lang.c (objc_language_data): Delete la_demangle | |
4662 | initializer. | |
4663 | (objc_language::demangle): New member function. | |
4664 | * opencl-lang.c (opencl_language_data): Delete la_demangle | |
4665 | initializer. | |
4666 | * p-lang.c (pascal_language_data): Likewise. | |
4667 | * rust-lang.c (rust_language_data): Likewise. | |
4668 | (rust_language::demangle): New member function. | |
4669 | ||
fbfb0a46 AB |
4670 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4671 | ||
4672 | * ada-lang.c (ada_language_data): Delete la_print_type | |
4673 | initializer. | |
4674 | (ada_language::print_type): New member function. | |
4675 | * c-lang.c (c_language_data): Delete la_print_type initializer. | |
4676 | (c_language::print_type): New member function. | |
4677 | (cplus_language_data): Delete la_print_type initializer. | |
4678 | (cplus_language::print_type): New member function. | |
4679 | (asm_language_data): Delete la_print_type initializer. | |
4680 | (asm_language::print_type): New member function. | |
4681 | (minimal_language_data): Delete la_print_type initializer. | |
4682 | (minimal_language::print_type): New member function. | |
4683 | * d-lang.c (d_language_data): Delete la_print_type initializer. | |
4684 | (d_language::print_type): New member function. | |
4685 | * f-lang.c (f_language_data): Delete la_print_type initializer. | |
4686 | (f_language::print_type): New member function. | |
4687 | * go-lang.c (go_language_data): Delete la_print_type initializer. | |
4688 | (go_language::print_type): New member function. | |
4689 | * language.c (unk_lang_print_type): Delete. | |
4690 | (unknown_language_data): Delete la_print_type initializer. | |
4691 | (unknown_language::print_type): New member function. | |
4692 | (auto_language_data): Delete la_print_type initializer. | |
4693 | (auto_language::print_type): New member function. | |
4694 | * language.h (language_data): Delete la_print_type field. | |
4695 | (language_defn::print_type): New function. | |
4696 | (LA_PRINT_TYPE): Update. | |
4697 | * m2-lang.c (m2_language_data): Delete la_print_type initializer. | |
4698 | (m2_language::print_type): New member function. | |
4699 | * objc-lang.c (objc_language_data): Delete la_print_type | |
4700 | initializer. | |
4701 | (objc_language::print_type): New member function. | |
4702 | * opencl-lang.c (opencl_print_type): Delete, implementation moved | |
4703 | to opencl_language::print_type. | |
4704 | (opencl_language_data): Delete la_print_type initializer. | |
4705 | (opencl_language::print_type): New member function, implementation | |
4706 | from opencl_print_type. | |
4707 | * p-lang.c (pascal_language_data): Delete la_print_type | |
4708 | initializer. | |
4709 | (pascal_language::print_type): New member function. | |
4710 | * rust-lang.c (rust_print_type): Delete, implementation moved to | |
4711 | rust_language::print_type. | |
4712 | (rust_language_data): Delete la_print_type initializer. | |
4713 | (rust_language::print_type): New member function, implementation | |
4714 | from rust_print_type. | |
4715 | ||
6f827019 AB |
4716 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4717 | ||
4718 | * ada-lang.c (ada_sniff_from_mangled_name): Delete function, | |
4719 | implementation moves to... | |
4720 | (ada_language::sniff_from_mangled_name): ...here. Update return | |
4721 | type. | |
4722 | (ada_language_data): Delete la_sniff_from_mangled_name | |
4723 | initializer. | |
4724 | * c-lang.c (c_language_data): Likewise. | |
4725 | (cplus_language_data): Likewise. | |
4726 | (cplus_language::sniff_from_mangled_name): New member function, | |
4727 | implementation taken from gdb_sniff_from_mangled_name. | |
4728 | (asm_language_data): Delete la_sniff_from_mangled_name | |
4729 | initializer. | |
4730 | (minimal_language_data): Likewise. | |
4731 | * cp-support.c (gdb_sniff_from_mangled_name): Delete, | |
4732 | implementation moves to cplus_language::sniff_from_mangled_name. | |
4733 | * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration. | |
4734 | * d-lang.c (d_sniff_from_mangled_name): Delete, implementation | |
4735 | moves to... | |
4736 | (d_language::sniff_from_mangled_name): ...here. | |
4737 | (d_language_data): Delete la_sniff_from_mangled_name initializer. | |
4738 | * f-lang.c (f_language_data): Likewise. | |
4739 | * go-lang.c (go_sniff_from_mangled_name): Delete, implementation | |
4740 | moves to... | |
4741 | (go_language::sniff_from_mangled_name): ...here. | |
4742 | (go_language_data): Delete la_sniff_from_mangled_name initializer. | |
4743 | * language.c (language_sniff_from_mangled_name): Delete. | |
4744 | (unknown_language_data): Delete la_sniff_from_mangled_name | |
4745 | initializer. | |
4746 | (auto_language_data): Likewise. | |
4747 | * language.h (language_data): Delete la_sniff_from_mangled_name | |
4748 | field. | |
4749 | (language_defn::sniff_from_mangled_name): New function. | |
4750 | (language_sniff_from_mangled_name): Delete declaration. | |
4751 | * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name | |
4752 | field. | |
4753 | * objc-lang.c (objc_sniff_from_mangled_name): Delete, | |
4754 | implementation moves to... | |
4755 | (objc_language::sniff_from_mangled_name): ...here. | |
4756 | (objc_language_data): Delete la_sniff_from_mangled_name initializer. | |
4757 | * opencl-lang.c (opencl_language_data): Likewise. | |
4758 | * p-lang.c (pascal_language_data): Likewise. | |
4759 | * rust-lang.c (rust_sniff_from_mangled_name): Delete, | |
4760 | implementation moves to... | |
4761 | (rust_language::sniff_from_mangled_name): ...here. | |
4762 | (rust_language_data): Delete la_sniff_from_mangled_name | |
4763 | initializer. | |
4764 | * symtab.c (symbol_find_demangled_name): Call | |
4765 | sniff_from_mangled_name member function. | |
4766 | ||
fb8006fd AB |
4767 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4768 | ||
4769 | * ada-lang.c (ada_language_data): Delete la_search_name_hash | |
4770 | initializer. | |
4771 | * c-lang.c (c_language_data): Likewise. | |
4772 | (cplus_language_data): Likewise. | |
4773 | (cplus_language::search_name_hash): New member function. | |
4774 | (asm_language_data): Delete la_search_name_hash initializer. | |
4775 | (minimal_language_data): Likewise. | |
4776 | * d-lang.c (d_language_data): Likewise. | |
4777 | * dictionary.c (default_search_name_hash): Rename to... | |
4778 | (language_defn::search_name_hash): ...this. | |
4779 | * f-lang.c (f_language_data): Likewise. | |
4780 | (f_language::search_name_hash): New member function. | |
4781 | * go-lang.c (go_language_data): Delete la_search_name_hash | |
4782 | initializer. | |
4783 | * language.c (unknown_language_data): Likewise. | |
4784 | (auto_language_data): Likewise. | |
4785 | * language.h (struct language_data): Delete la_search_name_hash | |
4786 | field. | |
4787 | (language_defn::search_name_hash): Declare new member function. | |
4788 | (default_search_name_hash): Delete declaration. | |
4789 | * m2-lang.c (m2_language_data): Delete la_search_name_hash | |
4790 | initializer. | |
4791 | * objc-lang.c (objc_language_data): Likewise. | |
4792 | * opencl-lang.c (opencl_language_data): Likewise. | |
4793 | * p-lang.c (pascal_language_data): Likewise. | |
4794 | * rust-lang.c (rust_language_data): Likewise. | |
4795 | * symtab.c (search_name_hash): Update call. | |
4796 | ||
8e25bafe AB |
4797 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4798 | ||
4799 | * ada-lang.c (ada_language_data): Delete la_get_compile_instance | |
4800 | initializer. | |
4801 | * c-lang.c (class compile_instance): Declare. | |
4802 | (c_language_data): Delete la_get_compile_instance initializer. | |
4803 | (c_language::get_compile_instance): New member function. | |
4804 | (cplus_language_data): Delete la_get_compile_instance initializer. | |
4805 | (cplus_language::get_compile_instance): New member function. | |
4806 | (asm_language_data): Delete la_get_compile_instance initializer. | |
4807 | (minimal_language_data): Likewise. | |
4808 | * c-lang.h (c_get_compile_context): Update comment. | |
4809 | (cplus_get_compile_context): Update comment. | |
4810 | * compile/compile.c (compile_to_object): Update calls, don't rely | |
4811 | on function pointer being NULL. | |
4812 | * d-lang.c (d_language_data): Delete la_get_compile_instance | |
4813 | initializer. | |
4814 | * f-lang.c (f_language_data): Likewise. | |
4815 | * go-lang.c (go_language_data): Likewise. | |
4816 | * language.c (unknown_language_data): Likewise. | |
4817 | (auto_language_data): Likewise. | |
4818 | * language.h (language_data): Delete la_get_compile_instance field. | |
4819 | (language_defn::get_compile_instance): New member function. | |
4820 | * m2-lang.c (m2_language_data): Delete la_get_compile_instance | |
4821 | initializer. | |
4822 | * objc-lang.c (objc_language_data): Likewise. | |
4823 | * opencl-lang.c (opencl_language_data): Likewise. | |
4824 | * p-lang.c (pascal_language_data): Likewise. | |
4825 | * rust-lang.c (rust_language_data): Likewise. | |
4826 | ||
4009ee92 AB |
4827 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4828 | ||
4829 | * ada-lang.c (ada_add_all_symbols): Update comment. | |
4830 | (ada_iterate_over_symbols): Delete, move implementation to... | |
4831 | (ada_language::iterate_over_symbols): ...here, a new member | |
4832 | function, rewrite to use range based for loop. | |
4833 | (ada_language_data): Delete la_iterate_over_symbols initializer. | |
4834 | * c-lang.c (c_language_data): Likewise. | |
4835 | (cplus_language_data): Likewise. | |
4836 | (asm_language_data): Likewise. | |
4837 | (minimal_language_data): Likewise. | |
4838 | * d-lang.c (d_language_data): Likewise. | |
4839 | * f-lang.c (f_language_data): Likewise. | |
4840 | * go-lang.c (go_language_data): Likewise. | |
4841 | * language.c (unknown_language_data): Likewise. | |
4842 | (auto_language_data): Likewise. | |
4843 | * language.h (language_data): Delete la_iterate_over_symbols field. | |
4844 | (language_defn::iterate_over_symbols): New member function. | |
4845 | (LA_ITERATE_OVER_SYMBOLS): Update. | |
4846 | * linespec.c (iterate_over_all_matching_symtabs): Update. | |
4847 | * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols | |
4848 | initializer. | |
4849 | * objc-lang.c (objc_language_data): Likewise. | |
4850 | * opencl-lang.c (opencl_language_data): Likewise. | |
4851 | * p-lang.c (pascal_language_data): Likewise. | |
4852 | * rust-lang.c (rust_language_data): Likewise. | |
4853 | ||
54f4ca46 AB |
4854 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4855 | ||
4856 | * ada-lang.c (ada_language_data): Delete | |
4857 | la_lookup_transparent_type initializer. | |
4858 | * c-lang.c (c_language_data): Likewise. | |
4859 | (cplus_language_data): Likewise. | |
4860 | (cplus_language::lookup_transparent_type): New member function. | |
4861 | (asm_language_data): Delete la_lookup_transparent_type | |
4862 | initializer. | |
4863 | (minimal_language_data): Likewise. | |
4864 | * d-lang.c (d_language_data): Likewise. | |
4865 | * f-lang.c (f_language_data): Likewise. | |
4866 | * go-lang.c (go_language_data): Likewise. | |
4867 | * language.c (unknown_language_data): Likewise. | |
4868 | (auto_language_data): Likewise. | |
4869 | * language.h (struct language_data): Delete | |
4870 | la_lookup_transparent_type field. | |
4871 | (language_defn::lookup_transparent_type): New member function. | |
4872 | * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type | |
4873 | initializer. | |
4874 | * objc-lang.c (objc_language_data): Likewise. | |
4875 | * opencl-lang.c (opencl_language_data): Likewise. | |
4876 | * p-lang.c (pascal_language_data): Likewise. | |
4877 | * rust-lang.c (rust_language_data): Likewise. | |
4878 | * symtab.c (symbol_matches_domain): Update call. | |
4879 | ||
1fb314aa AB |
4880 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4881 | ||
4882 | * ada-lang.c (ada_language_arch_info): Delete function, move | |
4883 | implementation to... | |
4884 | (ada_language::language_arch_info): ...here, a new member | |
4885 | function. | |
4886 | (ada_language_data): Delete la_language_arch_info. | |
4887 | * c-lang.c (c_language_data): Likewise. | |
4888 | (c_language::language_arch_info): New member function. | |
4889 | (cplus_language_arch_info): Delete function, move | |
4890 | implementation to... | |
4891 | (cplus_language::language_arch_info): ...here, a new member | |
4892 | function. | |
4893 | (cplus_language_data): Delete la_language_arch_info. | |
4894 | (asm_language_data): Likewise. | |
4895 | (asm_language::language_arch_info): New member function. | |
4896 | (minimal_language_data): Delete la_language_arch_info. | |
4897 | (minimal_language::language_arch_info): New member function. | |
4898 | * d-lang.c (d_language_arch_info): Delete function, move | |
4899 | implementation to... | |
4900 | (d_language::language_arch_info): ...here, a new member | |
4901 | function. | |
4902 | (d_language_data): Delete la_language_arch_info. | |
4903 | * f-lang.c (f_language_arch_info): Delete function, move | |
4904 | implementation to... | |
4905 | (f_language::language_arch_info): ...here, a new member | |
4906 | function. | |
4907 | (f_language_data): Delete la_language_arch_info. | |
4908 | * go-lang.c (go_language_arch_info): Delete function, move | |
4909 | implementation to... | |
4910 | (go_language::language_arch_info): ...here, a new member | |
4911 | function. | |
4912 | (go_language_data): Delete la_language_arch_info. | |
4913 | * language.c (unknown_language_data): Likewise. | |
4914 | (unknown_language::language_arch_info): New member function. | |
4915 | (auto_language_data): Delete la_language_arch_info. | |
4916 | (auto_language::language_arch_info): New member function. | |
4917 | (language_gdbarch_post_init): Update call to | |
4918 | la_language_arch_info. | |
4919 | * language.h (language_data): Delete la_language_arch_info | |
4920 | function pointer. | |
4921 | (language_defn::language_arch_info): New function. | |
4922 | * m2-lang.c (m2_language_arch_info): Delete function, move | |
4923 | implementation to... | |
4924 | (m2_language::language_arch_info): ...here, a new member | |
4925 | function. | |
4926 | (m2_language_data): Delete la_language_arch_info. | |
4927 | * objc-lang.c (objc_language_arch_info): Delete function, move | |
4928 | implementation to... | |
4929 | (objc_language::language_arch_info): ...here, a new member | |
4930 | function. | |
4931 | (objc_language_data): Delete la_language_arch_info. | |
4932 | * opencl-lang.c (opencl_language_arch_info): Delete function, move | |
4933 | implementation to... | |
4934 | (opencl_language::language_arch_info): ...here, a new member | |
4935 | function. | |
4936 | (opencl_language_data): Delete la_language_arch_info. | |
4937 | * p-lang.c (pascal_language_arch_info): Delete function, move | |
4938 | implementation to... | |
4939 | (pascal_language::language_arch_info): ...here, a new member | |
4940 | function. | |
4941 | (pascal_language_data): Delete la_language_arch_info. | |
4942 | * rust-lang.c (rust_language_arch_info): Delete function, move | |
4943 | implementation to... | |
4944 | (rust_language::language_arch_info): ...here, a new member | |
4945 | function. | |
4946 | (rust_language_data): Delete la_language_arch_info. | |
4947 | ||
48448202 AB |
4948 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4949 | ||
4950 | * ada-lang.c (ada_language_data): Delete la_pass_by_reference | |
4951 | initializer. | |
4952 | * c-lang.c (c_language_data): Likewise. | |
4953 | (cplus_language_data): Likewise. | |
4954 | (cplus_language::pass_by_reference_info): New method. | |
4955 | (asm_language_data): Delete la_pass_by_reference initializer. | |
4956 | (minimal_language_data): Likewise. | |
4957 | * cp-abi.c (cp_pass_by_reference): Remove use of | |
4958 | default_pass_by_reference. | |
4959 | * d-lang.c (d_language_data): Likewise. | |
4960 | * f-lang.c (f_language_data): Likewise. | |
4961 | * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of | |
4962 | default_pass_by_reference. | |
4963 | * go-lang.c (go_language_data): Likewise. | |
4964 | * language.c (language_pass_by_reference): Update. | |
4965 | (default_pass_by_reference): Delete. | |
4966 | (unknown_language_data): Delete la_pass_by_reference | |
4967 | initializer. | |
4968 | (auto_language_data): Likewise. | |
4969 | * language.h (struct language_data): Delete la_pass_by_reference | |
4970 | field. | |
4971 | (language_defn::pass_by_reference_info): New member function. | |
4972 | (default_pass_by_reference): Delete declaration. | |
4973 | * m2-lang.c (m2_language_data): Delete la_pass_by_reference | |
4974 | initializer. | |
4975 | * objc-lang.c (objc_language_data): Likewise. | |
4976 | * opencl-lang.c (opencl_language_data): Likewise. | |
4977 | * p-lang.c (pascal_language_data): Likewise. | |
4978 | * rust-lang.c (rust_language_data): Likewise. | |
4979 | ||
15e5fd35 AB |
4980 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
4981 | ||
4982 | * ada-lang.c (ada_read_var_value): Delete function, move | |
4983 | implementation to... | |
4984 | (ada_language::read_var_value): ...here. | |
4985 | (ada_language_data): Delete la_read_var_value initializer. | |
4986 | * c-lang.c (c_language_data): Likewise. | |
4987 | (cplus_language_data): Likewise. | |
4988 | (minimal_language_data): Likewise. | |
4989 | * d-lang.c (d_language_data): Likewise. | |
4990 | * f-lang.c (f_language_data): Likewise. | |
4991 | * findvar.c (default_read_var_value): Rename to... | |
4992 | (language_defn::read_var_value): ...this. | |
4993 | * findvar.c (read_var_value): Update header comment, and change to | |
4994 | call member function instead of function pointer. | |
4995 | * go-lang.c (go_language_data): Likewise. | |
4996 | * language.c (unknown_language_data): Delete la_read_var_value | |
4997 | initializer. | |
4998 | (auto_language_data): Likewise. | |
4999 | * language.h (struct language_data): Delete la_read_var_value | |
5000 | field. | |
5001 | (language_defn::read_var_value): New member function. | |
5002 | (default_read_var_value): Delete declaration. | |
5003 | * m2-lang.c (m2_language_data): Delete la_read_var_value | |
5004 | initializer. | |
5005 | * objc-lang.c (objc_language_data): Likewise. | |
5006 | * opencl-lang.c (opencl_language_data): Likewise. | |
5007 | * p-lang.c (pascal_language_data): Likewise. | |
5008 | * rust-lang.c (rust_language_data): Likewise. | |
5009 | * value.h (default_read_var_value): Delete declaration. | |
5010 | ||
5bd40f2a AB |
5011 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
5012 | ||
5013 | * ada-lang.c (ada_print_array_index): Delete function, move | |
5014 | implementation to... | |
5015 | (ada_language::print_array_index): ...here. | |
5016 | (ada_language_data): Delete la_print_array_index initializer. | |
5017 | * c-lang.c (c_language_data): Likewise. | |
5018 | (cplus_language_data): Likewise. | |
5019 | (minimal_language_data): Likewise. | |
5020 | * d-lang.c (d_language_data): Likewise. | |
5021 | * f-lang.c (f_language_data): Likewise. | |
5022 | * go-lang.c (go_language_data): Likewise. | |
5023 | * language.c (default_print_array_index): Delete function, move | |
5024 | implementation to... | |
5025 | (language_defn::print_array_index): ...here. | |
5026 | (unknown_language_data): Delete la_print_array_index initializer. | |
5027 | (auto_language_data): Likewise. | |
5028 | * language.h (struct language_data): Delete la_print_array_index | |
5029 | field. | |
5030 | (language_defn::print_array_index): New member function. | |
5031 | (LA_PRINT_ARRAY_INDEX): Update. | |
5032 | (default_print_array_index): Delete declaration. | |
5033 | * m2-lang.c (m2_language_data): Delete la_print_array_index | |
5034 | initializer. | |
5035 | * objc-lang.c (objc_language_data): Likewise. | |
5036 | * opencl-lang.c (opencl_language_data): Likewise. | |
5037 | * p-lang.c (pascal_language_data): Likewise. | |
5038 | * rust-lang.c (rust_language_data): Likewise. | |
5039 | ||
0874fd07 AB |
5040 | 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com> |
5041 | ||
5042 | * gdb/ada-lang.c (ada_language_defn): Convert to... | |
5043 | (ada_language_data): ...this. | |
5044 | (class ada_language): New class. | |
5045 | (ada_language_defn): New static global. | |
5046 | * gdb/c-lang.c (c_language_defn): Convert to... | |
5047 | (c_language_data): ...this. | |
5048 | (class c_language): New class. | |
5049 | (c_language_defn): New static global. | |
5050 | (cplus_language_defn): Convert to... | |
5051 | (cplus_language_data): ...this. | |
5052 | (class cplus_language): New class. | |
5053 | (cplus_language_defn): New static global. | |
5054 | (asm_language_defn): Convert to... | |
5055 | (asm_language_data): ...this. | |
5056 | (class asm_language): New class. | |
5057 | (asm_language_defn): New static global. | |
5058 | (minimal_language_defn): Convert to... | |
5059 | (minimal_language_data): ...this. | |
5060 | (class minimal_language): New class. | |
5061 | (minimal_language_defn): New static global. | |
5062 | * gdb/d-lang.c (d_language_defn): Convert to... | |
5063 | (d_language_data): ...this. | |
5064 | (class d_language): New class. | |
5065 | (d_language_defn): New static global. | |
5066 | * gdb/f-lang.c (f_language_defn): Convert to... | |
5067 | (f_language_data): ...this. | |
5068 | (class f_language): New class. | |
5069 | (f_language_defn): New static global. | |
5070 | * gdb/go-lang.c (go_language_defn): Convert to... | |
5071 | (go_language_data): ...this. | |
5072 | (class go_language): New class. | |
5073 | (go_language_defn): New static global. | |
5074 | * gdb/language.c (unknown_language_defn): Remove declaration. | |
5075 | (current_language): Initialize to nullptr, real initialization is | |
5076 | moved to _initialize_language. | |
5077 | (languages): Delete global. | |
5078 | (language_defn::languages): Define. | |
5079 | (set_language_command): Use language_defn::languages. | |
5080 | (set_language): Likewise. | |
5081 | (range_error): Likewise. | |
5082 | (language_enum): Likewise. | |
5083 | (language_def): Likewise. | |
5084 | (add_set_language_command): Use language_def::languages for the | |
5085 | language list, and language_def to lookup language pointers. | |
5086 | (skip_language_trampoline): Use language_defn::languages. | |
5087 | (unknown_language_defn): Convert to... | |
5088 | (unknown_language_data): ...this. | |
5089 | (class unknown_language): New class. | |
5090 | (unknown_language_defn): New static global. | |
5091 | (auto_language_defn): Convert to... | |
5092 | (auto_language_data): ...this. | |
5093 | (class auto_language): New class. | |
5094 | (auto_language_defn): New static global. | |
5095 | (language_gdbarch_post_init): Use language_defn::languages. | |
5096 | (_initialize_language): Initialize current_language. | |
5097 | * gdb/language.h (struct language_defn): Rename to... | |
5098 | (struct language_data): ...this. | |
5099 | (struct language_defn): New. | |
5100 | (auto_language_defn): Delete. | |
5101 | (unknown_language_defn): Delete. | |
5102 | (minimal_language_defn): Delete. | |
5103 | (ada_language_defn): Delete. | |
5104 | (asm_language_defn): Delete. | |
5105 | (c_language_defn): Delete. | |
5106 | (cplus_language_defn): Delete. | |
5107 | (d_language_defn): Delete. | |
5108 | (f_language_defn): Delete. | |
5109 | (go_language_defn): Delete. | |
5110 | (m2_language_defn): Delete. | |
5111 | (objc_language_defn): Delete. | |
5112 | (opencl_language_defn): Delete. | |
5113 | (pascal_language_defn): Delete. | |
5114 | (rust_language_defn): Delete. | |
5115 | * gdb/m2-lang.c (m2_language_defn): Convert to... | |
5116 | (m2_language_data): ...this. | |
5117 | (class m2_language): New class. | |
5118 | (m2_language_defn): New static global. | |
5119 | * gdb/objc-lang.c (objc_language_defn): Convert to... | |
5120 | (objc_language_data): ...this. | |
5121 | (class objc_language): New class. | |
5122 | (objc_language_defn): New static global. | |
5123 | * gdb/opencl-lang.c (opencl_language_defn): Convert to... | |
5124 | (opencl_language_data): ...this. | |
5125 | (class opencl_language): New class. | |
5126 | (opencl_language_defn): New static global. | |
5127 | * gdb/p-lang.c (pascal_language_defn): Convert to... | |
5128 | (pascal_language_data): ...this. | |
5129 | (class pascal_language): New class. | |
5130 | (pascal_language_defn): New static global. | |
5131 | * gdb/rust-exp.y (rust_lex_tests): Use language_def to find | |
5132 | language pointer, update comment format. | |
5133 | * gdb/rust-lang.c (rust_language_defn): Convert to... | |
5134 | (rust_language_data): ...this. | |
5135 | (class rust_language): New class. | |
5136 | (rust_language_defn): New static global. | |
5137 | ||
1313c56e AB |
5138 | 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com> |
5139 | ||
5140 | * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New | |
5141 | member variable. | |
5142 | <m_stmt_at_address>: New member variable. | |
5143 | (lnp_state_machine::record_line): Don't record some lines, update | |
5144 | tracking of is_stmt at the same address. | |
5145 | (lnp_state_machine::lnp_state_machine): Initialise new member | |
5146 | variables. | |
5147 | ||
b7ed9f3d ST |
5148 | 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org> |
5149 | ||
5150 | * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add | |
5151 | "-include gnu-nat-mig.h". | |
5152 | * gnu-nat-mig.h: New file. | |
5153 | * gnu-nat.c: Include "gnu-nat-mig.h". | |
5154 | (exc_server, msg_reply_server, notify_server, | |
5155 | process_reply_server): Remove declarations. | |
5156 | ||
14a8ad62 ST |
5157 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
5158 | ||
5159 | * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced, | |
5160 | steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup, | |
5161 | inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports, | |
5162 | inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports, | |
5163 | inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread, | |
5164 | inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal, | |
5165 | inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc, | |
5166 | proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port, | |
5167 | proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions | |
5168 | to gnu_nat_target class. | |
5169 | * gnu-nat.c: Likewise. | |
5170 | (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd, | |
5171 | set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd, | |
5172 | set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target | |
5173 | object. | |
5174 | (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this' | |
5175 | instead of `gnu_target'. | |
5176 | ||
0af5e106 ST |
5177 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
5178 | ||
5179 | * i386-gnu-tdep.c: Include "gdbcore.h" | |
5180 | (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays. | |
5181 | (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL, | |
5182 | I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros | |
5183 | (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p, | |
5184 | i386_gnu_sigcontext_addr): New functions | |
5185 | (i386gnu_init_abi): Register i386_gnu_sigtramp_p, | |
5186 | i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch | |
5187 | tdep. | |
5188 | ||
078f2fc9 ST |
5189 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
5190 | ||
5191 | * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call | |
5192 | before fork_inferior call. Avoid calling it if target_is_pushed returns | |
5193 | true. | |
5194 | ||
53dff92c ST |
5195 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
5196 | ||
5197 | * gnu-nat.h (gnu_target): New variable declaration. | |
5198 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize | |
5199 | gnu_target. | |
5200 | * gnu-nat.c (gnu_target): New variable. | |
5201 | (inf_validate_procs): Pass gnu_target to thread_change_ptid, | |
5202 | add_thread_silent, and add_thread calls. | |
5203 | (gnu_nat_target::create_inferior): Pass gnu_target to | |
5204 | add_thread_silent, thread_change_ptid call. | |
5205 | (gnu_nat_target::detach): Pass gnu_target to detach_inferior | |
5206 | call. | |
5207 | ||
5a8b8627 ST |
5208 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
5209 | ||
5210 | * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable. | |
5211 | (gnu_nat_target::find_memory_regions): Remove unused | |
5212 | `old_address' variable. | |
5213 | ||
366f550a ST |
5214 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
5215 | ||
5216 | * gnu-nat.c: Include "gdbarch.h". | |
5217 | ||
f14871bf ST |
5218 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
5219 | ||
5220 | * reply_mig_hack.awk (Error return): Cast function through | |
5221 | void *, to bypass compiler function call check. | |
5222 | ||
c6887cfb ST |
5223 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
5224 | ||
5225 | * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on | |
5226 | $(srcdir)/reply_mig_hack.awk. | |
5227 | ||
6930bffe ST |
5228 | 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org> |
5229 | ||
5230 | * gnu-nat.h (gnu_debug_flag): Set type to bool. | |
5231 | ||
112c22ed JG |
5232 | 2020-05-30 Jonny Grant <jg@jguk.org> |
5233 | ||
5234 | * configure.ac (ACX_BUGURL): change bug URL to https. | |
5235 | ||
f68f85b5 PA |
5236 | 2020-05-30 Pedro Alves <palves@redhat.com> |
5237 | ||
5238 | * cp-support.c (replace_typedefs_template): New. | |
5239 | (replace_typedefs_qualified_name): Handle | |
5240 | DEMANGLE_COMPONENT_TEMPLATE. | |
5241 | ||
976ca316 SM |
5242 | 2020-05-29 Simon Marchi <simon.marchi@efficios.com> |
5243 | ||
5244 | * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c, | |
5245 | dwarf2/index-cache.h, dwarf2/index-write.c, | |
5246 | dwarf2/index-write.h, dwarf2/line-header.c, | |
5247 | dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h, | |
5248 | dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile | |
5249 | variables and fields from `dwarf2_per_objfile` to just | |
5250 | `per_objfile` throughout. | |
5251 | ||
989ade05 SM |
5252 | 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca> |
5253 | ||
5254 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
5255 | <push_dwarf_reg_entry_value>: Add comment. | |
5256 | ||
c47bae85 KB |
5257 | 2020-05-28 Kevin Buettner <kevinb@redhat.com> |
5258 | Keith Seitz <keiths@redhat.com> | |
5259 | ||
5260 | * python/python.c (do_start_initialization): Call PyEval_SaveThread | |
5261 | instead of PyEval_ReleaseLock. | |
5262 | (class gdbpy_gil): Move to earlier in file. | |
5263 | (finalize_python): Set gdb_python_initialized. | |
5264 | (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early | |
5265 | when not initialized. | |
5266 | ||
44486dcf SM |
5267 | 2020-05-28 Simon Marchi <simon.marchi@efficios.com> |
5268 | ||
5269 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
5270 | <push_dwarf_reg_entry_value>: Remove assert. Override | |
5271 | per_objfile with caller_per_objfile. | |
5272 | ||
f030440d TV |
5273 | 2020-05-28 Tom de Vries <tdevries@suse.de> |
5274 | ||
5275 | * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit | |
5276 | PR gold/15646 workaround to symbol kind "type". | |
5277 | ||
f0fbb768 TT |
5278 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
5279 | ||
5280 | * dwarf2/read.c (load_partial_dies): Use add_partial_symbol. | |
5281 | ||
af0b2a3e TT |
5282 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
5283 | ||
5284 | * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline. | |
5285 | Use htab_find_with_hash. | |
5286 | <add_abbrev>: Remove "abbrev_number" parameter. | |
5287 | * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove | |
5288 | "abbrev_number" parameter. Use htab_find_slot_with_hash. | |
5289 | (hash_abbrev): Add comment. | |
5290 | (abbrev_table::lookup_abbrev): Move to header file. | |
5291 | (abbrev_table::read): Update. | |
5292 | ||
7d00ffec TT |
5293 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
5294 | ||
5295 | * dwarf2/read.c (struct partial_die_info) <name>: Declare new | |
5296 | method. | |
5297 | <canonical_name>: New member. | |
5298 | <raw_name>: Rename from "name". | |
5299 | (partial_die_info): Initialize canonical_name. | |
5300 | (scan_partial_symbols): Check raw_name. | |
5301 | (partial_die_parent_scope, partial_die_full_name) | |
5302 | (add_partial_symbol, add_partial_subprogram) | |
5303 | (add_partial_enumeration, load_partial_dies): Use "name" method. | |
5304 | (partial_die_info::name): New method. | |
5305 | (partial_die_info::read, guess_partial_die_structure_name) | |
5306 | (partial_die_info::fixup): Update. | |
5307 | ||
697bba18 TT |
5308 | 2020-05-27 Tom Tromey <tromey@adacore.com> |
5309 | ||
5310 | * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline. | |
5311 | <get_ref_die_offset>: Inline. | |
5312 | <get_ref_die_offset_complaint>: New method. | |
5313 | * dwarf2/attribute.c (attribute::form_is_ref): Move to header. | |
5314 | (attribute::get_ref_die_offset_complaint): Rename from | |
5315 | get_ref_die_offset. Just issue complaint. | |
5316 | ||
c17ace43 HD |
5317 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
5318 | ||
5319 | * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars. | |
5320 | ||
96445f0b HD |
5321 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
5322 | ||
5323 | * exec.c (exec_file_attach): Use errno value of first openp failure. | |
5324 | ||
ac637ec3 HD |
5325 | 2020-05-27 Hannes Domani <ssbssa@yahoo.de> |
5326 | ||
5327 | * nat/windows-nat.c (windows_thread_info::~windows_thread_info): | |
5328 | Don't close thread handle. | |
5329 | ||
17ee85fc TT |
5330 | 2020-05-27 Tom Tromey <tom@tromey.com> |
5331 | Simon Marchi <simon.marchi@efficios.com> | |
5332 | ||
5333 | * objfiles.h (struct objfile) <partial_symtabs>: Now a | |
5334 | shared_ptr. | |
5335 | * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New | |
5336 | member. | |
5337 | * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key, | |
5338 | dwarf2_per_bfd_objfile_data_key>: New globals. | |
5339 | (dwarf2_has_info): Use shared dwarf2_per_bfd if possible. | |
5340 | (dwarf2_get_section_info): Use get_dwarf2_per_objfile. | |
5341 | (dwarf2_initialize_objfile): Consider cases where per_bfd can be | |
5342 | shared. | |
5343 | (dwarf2_build_psymtabs): Set objfile::partial_symtabs and | |
5344 | short-circuit when sharing. | |
5345 | (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs. | |
5346 | (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units. | |
5347 | ||
39b16f87 SM |
5348 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5349 | ||
5350 | * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move | |
5351 | to... | |
5352 | (struct dwarf2_per_objfile) <line_header_hash>: ... here. | |
5353 | * dwarf2/read.c (handle_DW_AT_stmt_list): Update. | |
5354 | ||
fcf23d5b SM |
5355 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5356 | ||
5357 | * dwarf2/read.c (struct mapped_index_base) <symbol_name_at, | |
5358 | build_name_components, find_name_components_bounds>: | |
5359 | Add per_objfile parameter. | |
5360 | (struct mapped_index) <symbol_name_at>: Likewise. | |
5361 | (struct mapped_debug_names): Remove constructor. | |
5362 | <dwarf2_per_objfile>: Remove field. | |
5363 | <namei_to_name, symbol_name_at>: Add per_objfile parameter. | |
5364 | (mapped_index_base::find_name_components_bounds, | |
5365 | mapped_index_base::build_name_components, | |
5366 | dw2_expand_symtabs_matching_symbol): Likewise. | |
5367 | (class mock_mapped_index) <symbol_name_at>: Likewise. | |
5368 | (check_match): Likewise. | |
5369 | (check_find_bounds_finds): Likewise. | |
5370 | (test_mapped_index_find_name_component_bounds): Update. | |
5371 | (CHECK_MATCH): Update. | |
5372 | (dw2_expand_symtabs_matching): Update. | |
5373 | (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add | |
5374 | per_objfile parameter. | |
5375 | <find_vec_in_debug_names>: Likewise. | |
5376 | <m_per_objfile>: New field. | |
5377 | (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile | |
5378 | parameter. | |
5379 | (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise. | |
5380 | (dw2_debug_names_iterator::next): Update. | |
5381 | (dw2_debug_names_lookup_symbol): Update. | |
5382 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
5383 | (dw2_debug_names_map_matching_symbols): Update. | |
5384 | (dw2_debug_names_expand_symtabs_matching): Update. | |
5385 | (dwarf2_read_debug_names): Update. | |
5386 | ||
7188ed02 SM |
5387 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5388 | ||
5389 | * dwarf2/read.h (struct dwarf2_cu): Forward-declare. | |
5390 | (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove, | |
5391 | move to dwarf2_per_objfile. | |
5392 | <read_in_chain>: Remove. | |
5393 | (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu, | |
5394 | remove_all_cus, age_comp_units>: New methods. | |
5395 | <m_dwarf2_cus>: New member. | |
5396 | (struct dwarf2_per_cu_data) <cu>: Remove. | |
5397 | * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove. | |
5398 | (age_cached_comp_units, free_one_cached_comp_unit): Remove, | |
5399 | moved to methods of dwarf2_per_objfile. | |
5400 | (dwarf2_clear_marks): Remove. | |
5401 | (dwarf2_queue_item::~dwarf2_queue_item): Update. | |
5402 | (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus. | |
5403 | (dwarf2_per_bfd::free_cached_comp_units): Remove. | |
5404 | (dwarf2_per_objfile::remove_all_cus): New. | |
5405 | (class free_cached_comp_units) <~free_cached_comp_units>: | |
5406 | Update. | |
5407 | (load_cu): Update. | |
5408 | (dw2_do_instantiate_symtab): Adjust. | |
5409 | (fill_in_sig_entry_from_dwo_entry): Adjust. | |
5410 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
5411 | (cutu_reader::cutu_reader): Likewise. | |
5412 | (cutu_reader::keep): Use dwarf2_per_objfile::set_cu. | |
5413 | (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu. | |
5414 | (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu | |
5415 | and dwarf2_per_objfile::age_comp_units. | |
5416 | (load_partial_comp_unit): Update. | |
5417 | (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu. | |
5418 | (process_queue): Likewise. | |
5419 | (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu | |
5420 | backlink. | |
5421 | (dwarf2_read_addr_index): Likewise. | |
5422 | (follow_die_offset): Likewise. | |
5423 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
5424 | (dwarf2_fetch_constant_bytes): Likewise. | |
5425 | (dwarf2_fetch_die_type_sect_off): Likewise. | |
5426 | (follow_die_sig_1): Likewise. | |
5427 | (load_full_type_unit): Likewise. | |
5428 | (read_signatured_type): Likewise. | |
5429 | (dwarf2_cu::dwarf2_cu): Don't set cu field. | |
5430 | (dwarf2_cu::~dwarf2_cu): Remove. | |
5431 | (dwarf2_per_objfile::get_cu): New. | |
5432 | (dwarf2_per_objfile::set_cu): New. | |
5433 | (age_cached_comp_units): Rename to... | |
5434 | (dwarf2_per_objfile::age_comp_units): ... this. Adjust | |
5435 | to std::unordered_map. | |
5436 | (free_one_cached_comp_unit): Rename to... | |
5437 | (dwarf2_per_objfile::remove_cu): ... this. Adjust | |
5438 | to std::unordered_map. | |
5439 | (dwarf2_per_objfile::~dwarf2_per_objfile): New. | |
5440 | (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect | |
5441 | a dwarf2_per_objfile in data. | |
5442 | (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse. | |
5443 | (dwarf2_clear_marks): Remove. | |
5444 | ||
2e671100 SM |
5445 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5446 | ||
5447 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace | |
5448 | `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`. | |
5449 | (init_tu_and_read_dwo_dies): Likewise. | |
5450 | (cutu_reader::init_tu_and_read_dwo_dies): Likewise. | |
5451 | (cutu_reader::cutu_reader): Likewise. | |
5452 | (load_partial_comp_unit): Likewise. | |
5453 | (process_psymtab_comp_unit): Update. | |
5454 | (build_type_psymtabs_1): Update. | |
5455 | (process_skeletonless_type_unit): Update. | |
5456 | (load_full_comp_unit): Update. | |
5457 | (find_partial_die): Update. | |
5458 | (dwarf2_read_addr_index): Update. | |
5459 | (read_signatured_type): Update. | |
5460 | ||
2e6a9f79 SM |
5461 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
5462 | ||
5463 | * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header, | |
5464 | m_header_read_in>: New fields. | |
5465 | <get_header>: New method. | |
5466 | * dwarf2/read.c (per_cu_header_read_in): Remove. | |
5467 | (dwarf2_per_cu_data::get_header): New. | |
5468 | (dwarf2_per_cu_data::addr_size): Update. | |
5469 | (dwarf2_per_cu_data::offset_size): Update. | |
5470 | (dwarf2_per_cu_data::ref_addr_size): Update. | |
5471 | ||
1b555f17 SM |
5472 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
5473 | ||
5474 | * dwarf2/read.c (load_cu): Return dwarf2_cu. | |
5475 | (dw2_do_instantiate_symtab): Update. | |
5476 | (queue_and_load_all_dwo_tus): Change parameter from | |
5477 | dwarf2_per_cu_data to dwarf2_cu. | |
5478 | (dwarf2_fetch_die_loc_sect_off): Update. | |
5479 | (dwarf2_fetch_constant_bytes): Update. | |
5480 | (dwarf2_fetch_die_type_sect_off): Update. | |
5481 | ||
8fc0b21d SM |
5482 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
5483 | ||
5484 | * dwarf2/read.c (process_full_comp_unit, | |
5485 | process_full_type_unit): Remove per_cu, per_objfile paramters. | |
5486 | Add dwarf2_cu parameter. | |
5487 | (process_queue): Update. | |
5488 | ||
168c9250 SM |
5489 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
5490 | ||
5491 | * dwarf2/read.c (create_cu_from_index_list): Replace | |
5492 | dwarf2_per_objfile parameter with dwarf2_per_bfd. | |
5493 | (create_cus_from_index_list): Likewise. | |
5494 | (create_cus_from_index): Likewise. | |
5495 | (create_signatured_type_table_from_index): Likewise. | |
5496 | (create_cus_from_debug_names_list): Likewise. | |
5497 | (create_cus_from_debug_names): Likewise. | |
5498 | (dwarf2_read_gdb_index): Update. | |
5499 | (dwarf2_read_debug_names): Update. | |
5500 | ||
e286671b TT |
5501 | 2020-05-27 Tom Tromey <tom@tromey.com> |
5502 | Simon Marchi <simon.marchi@efficios.com> | |
5503 | ||
5504 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
5505 | <get_type_for_signatured_type, set_type_for_signatured_type>: | |
5506 | New methods. | |
5507 | <m_type_map>: New member. | |
5508 | (struct signatured_type) <type>: Remove. | |
5509 | * dwarf2/read.c | |
5510 | (dwarf2_per_objfile::get_type_for_signatured_type, | |
5511 | dwarf2_per_objfile::set_type_for_signatured_type): New. | |
5512 | (get_signatured_type): Use new methods. | |
5513 | ||
8adb8487 TT |
5514 | 2020-05-27 Tom Tromey <tom@tromey.com> |
5515 | Simon Marchi <simon.marchi@efficios.com> | |
5516 | ||
5517 | * dwarf2/read.h (struct type_unit_group_unshareable): New. | |
5518 | (struct dwarf2_per_objfile) <type_units>: New member. | |
5519 | <get_type_unit_group_unshareable>: New method. | |
5520 | * dwarf2/read.c (struct type_unit_group) <compunit_symtab, | |
5521 | num_symtabs, symtabs>: Remove; move to | |
5522 | type_unit_group_unshareable. | |
5523 | (dwarf2_per_objfile::get_type_unit_group_unshareable): New. | |
5524 | (process_full_type_unit, dwarf2_cu::setup_type_unit_groups) | |
5525 | (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable. | |
5526 | ||
127bbf4b SM |
5527 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5528 | ||
5529 | * dwarf2/read.h (struct dwarf2_per_cu_data): | |
5530 | <dwarf2_per_objfile>: Remove. | |
5531 | * dwarf2/read.c (create_cu_from_index_list): Don't assign | |
5532 | dwarf2_per_objfile. | |
5533 | (create_signatured_type_table_from_index): Likewise. | |
5534 | (create_signatured_type_table_from_debug_names): Likewise. | |
5535 | (create_debug_type_hash_table): Likewise. | |
5536 | (fill_in_sig_entry_from_dwo_entry): Likewise. | |
5537 | (create_type_unit_group): Likewise. | |
5538 | (read_comp_units_from_section): Likewise. | |
5539 | (create_cus_hash_table): Likewise. | |
5540 | ||
f6e649dd SM |
5541 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5542 | ||
5543 | * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to | |
5544 | dwarf2_per_cu_data::dwarf2_per_objfile. | |
5545 | (compute_compunit_symtab_includes): Likewise. | |
5546 | (dwarf2_cu::start_symtab): Likewise. | |
5547 | ||
aa66c379 SM |
5548 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
5549 | ||
5550 | * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile | |
5551 | parameter. | |
5552 | * dwarf2/read.c (get_die_type_at_offset): Likewise. | |
5553 | (read_namespace_alias): Update. | |
5554 | (lookup_die_type): Update. | |
5555 | (dwarf2_get_die_type): Add dwarf2_per_objfile parameter. | |
5556 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>: | |
5557 | Update. | |
5558 | (disassemble_dwarf_expression): Update. | |
5559 | ||
120ce1b5 SM |
5560 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5561 | ||
5562 | * dwarf2/read.h (struct dwarf2_queue_item): Add | |
5563 | dwarf2_per_objfile parameter, assign new parameter. | |
5564 | <per_objfile>: New field. | |
5565 | * dwarf2/read.c (free_one_cached_comp_unit): Add | |
5566 | dwarf2_per_objfile parameter. | |
5567 | (queue_comp_unit): Likewise. | |
5568 | (dw2_do_instantiate_symtab): Update. | |
5569 | (process_psymtab_comp_unit): Update. | |
5570 | (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter. | |
5571 | (process_imported_unit_die): Update. | |
5572 | (queue_and_load_dwo_tu): Update. | |
5573 | (follow_die_offset): Update. | |
5574 | (follow_die_sig_1): Update. | |
5575 | ||
9f47c707 SM |
5576 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5577 | ||
5578 | * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove. | |
5579 | * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down. | |
5580 | (read_call_site_scope): Assign per_objfile. | |
5581 | (dwarf2_per_cu_data::objfile): Remove. | |
5582 | * gdbtypes.h (struct call_site) <per_objfile>: New member. | |
5583 | * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add | |
5584 | dwarf2_per_objfile parameter. | |
5585 | * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add | |
5586 | dwarf2_per_objfile parameter. | |
5587 | (dwarf_expr_reg_to_entry_parameter): Add output | |
5588 | dwarf2_per_objfile parameter. | |
5589 | (locexpr_get_frame_base): Update. | |
5590 | (class dwarf_evaluate_loc_desc) <get_tls_address>: Update. | |
5591 | <push_dwarf_reg_entry_value>: Update. | |
5592 | <call_site_to_target_addr>: Update. | |
5593 | (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile | |
5594 | parameter. | |
5595 | (value_of_dwarf_reg_entry): Update. | |
5596 | (rw_pieced_value): Update. | |
5597 | (indirect_synthetic_pointer): Update. | |
5598 | (dwarf2_evaluate_property): Update. | |
5599 | (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile | |
5600 | parameter. | |
5601 | (locexpr_read_variable): Update. | |
5602 | (locexpr_get_symbol_read_needs): Update. | |
5603 | (loclist_read_variable): Update. | |
5604 | ||
14095eb3 SM |
5605 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5606 | ||
5607 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
5608 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
5609 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
5610 | parameter. | |
5611 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
5612 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
5613 | dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile | |
5614 | parameter. | |
5615 | * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call, | |
5616 | sect_variable_value): Add dwarf2_per_objfile parameter. | |
5617 | (class dwarf_evaluate_loc_desc) <dwarf_call, | |
5618 | dwarf_variable_value>: Update. | |
5619 | (fetch_const_value_from_synthetic_pointer): Add | |
5620 | dwarf2_per_objfile parameter. | |
5621 | (fetch_const_value_from_synthetic_pointer): Update. | |
5622 | (coerced_pieced_ref): Update. | |
5623 | (class symbol_needs_eval_context) <dwarf_call, | |
5624 | dwarf_variable_value>: Update. | |
5625 | (dwarf2_compile_expr_to_ax): Update. | |
5626 | ||
3c3cd3d4 SM |
5627 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5628 | ||
5629 | * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile | |
5630 | parameter. | |
5631 | (dwarf2_evaluate_loc_desc_full): Update. | |
5632 | ||
82ca3f51 SM |
5633 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5634 | ||
5635 | * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile | |
5636 | parameter. | |
5637 | * dwarf2/read.c (dwarf2_read_addr_index): Likewise. | |
5638 | * dwarf2/loc.c (decode_debug_loclists_addresses): Add | |
5639 | dwarf2_per_objfile parameter. | |
5640 | (decode_debug_loc_dwo_addresses): Likewise. | |
5641 | (dwarf2_find_location_expression): Update. | |
5642 | (class dwarf_evaluate_loc_desc) <get_addr_index>: Update. | |
5643 | (locexpr_describe_location_piece): Add dwarf2_per_objfile | |
5644 | parameter. | |
5645 | (disassemble_dwarf_expression): Add dwarf2_per_objfile | |
5646 | parameter. | |
5647 | (locexpr_describe_location_1): Likewise. | |
5648 | (locexpr_describe_location): Update. | |
5649 | ||
4b167ea1 SM |
5650 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5651 | ||
5652 | * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>: | |
5653 | Remove. | |
5654 | * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove. | |
5655 | * dwarf2/loc.c (dwarf2_find_location_expression): Update. | |
5656 | (dwarf2_compile_property_to_c): Update. | |
5657 | (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter, | |
5658 | use text offset from objfile. | |
5659 | (locexpr_tracepoint_var_ref): Update. | |
5660 | (locexpr_generate_c_location): Update. | |
5661 | (loclist_describe_location): Update. | |
5662 | (loclist_tracepoint_var_ref): Update. | |
5663 | * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add | |
5664 | dwarf2_per_objfile parameter. | |
5665 | * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise, | |
5666 | use text offset from objfile. | |
5667 | (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter. | |
5668 | ||
89b07335 SM |
5669 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5670 | ||
5671 | * dwarf2/expr.h (struct dwarf_expr_context) | |
5672 | <dwarf_expr_context>: Add dwarf2_per_objfile parameter. | |
5673 | <offset>: Remove. | |
5674 | <per_objfile>: New member. | |
5675 | * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add | |
5676 | dwarf2_per_objfile parameter. Don't set offset, set | |
5677 | per_objfile. | |
5678 | (dwarf_expr_context::execute_stack_op): Use offset from objfile. | |
5679 | * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter) | |
5680 | a dwarf2_per_objfile object instead of an offset. | |
5681 | (class dwarf_expr_executor) <dwarf_expr_executor>: Add | |
5682 | constructor. | |
5683 | (execute_stack_op): Add dwarf2_per_objfile parameter, pass it | |
5684 | to dwarf2_expr_executor constructor. Don't set offset. | |
5685 | (dwarf2_fetch_cfa_info): Update. | |
5686 | (struct dwarf2_frame_cache) <text_offset>: Remove. | |
5687 | <per_objfile>: New field. | |
5688 | (dwarf2_frame_cache): Update. | |
5689 | (dwarf2_frame_prev_register): Update. | |
5690 | * dwarf2/loc.c (class dwarf_evaluate_loc_desc) | |
5691 | <dwarf_evaluate_loc_desc>: Add constructor. | |
5692 | (dwarf2_evaluate_loc_desc_full): Update. | |
5693 | (dwarf2_locexpr_baton_eval): Update. | |
5694 | (class symbol_needs_eval_context) <symbol_needs_eval_context>: | |
5695 | Add constructor. | |
5696 | (dwarf2_loc_desc_get_symbol_read_needs): Update. | |
5697 | ||
293e7e51 SM |
5698 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5699 | ||
5700 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type, | |
5701 | addr_sized_int_type>: Move to dwarf2_cu. | |
5702 | <int_type>: Move to dwarf2_per_objfile. | |
5703 | (struct dwarf2_per_objfile) <int_type>: Move here. | |
5704 | * dwarf2/read.c (struct dwarf2_cu) <addr_type, | |
5705 | addr_sized_int_type>: Move here. | |
5706 | (read_func_scope): Update. | |
5707 | (read_array_type): Update. | |
5708 | (read_tag_string_type): Update. | |
5709 | (attr_to_dynamic_prop): Update. | |
5710 | (dwarf2_per_cu_data::int_type): Rename to... | |
5711 | (dwarf2_per_objfile::int_type): ... this. | |
5712 | (dwarf2_per_cu_data::addr_sized_int_type): Rename to... | |
5713 | (dwarf2_cu::addr_sized_int_type): ... this. | |
5714 | (read_subrange_type): Update. | |
5715 | (dwarf2_per_cu_data::addr_type): Rename to... | |
5716 | (dwarf2_cu::addr_type): ... this. | |
5717 | (set_die_type): Update. | |
5718 | ||
64874a40 SM |
5719 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5720 | ||
5721 | * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile | |
5722 | data through per_cu->cu. | |
5723 | ||
4ab09049 SM |
5724 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5725 | ||
5726 | * dwarf2/read.c (lookup_dwo_comp_unit): Change | |
5727 | dwarf2_per_cu_data parameter fo dwarf2_cu. | |
5728 | (lookup_dwo_type_unit): Likewise. | |
5729 | (read_cutu_die_from_dwo): Likewise. | |
5730 | (lookup_dwo_unit): Likewise. | |
5731 | (open_and_init_dwo_file): Likewise. | |
5732 | (lookup_dwo_cutu): Likewise. | |
5733 | (lookup_dwo_comp_unit): Likewise. | |
5734 | (lookup_dwo_type_unit): Likewise. | |
5735 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
5736 | (cutu_reader::cutu_reader): Update. | |
5737 | ||
47b14e86 SM |
5738 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5739 | ||
5740 | * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile | |
5741 | parameter. | |
5742 | (process_full_type_unit): Likewise. | |
5743 | (process_queue): Update. | |
5744 | ||
43182c09 SM |
5745 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5746 | ||
5747 | * dwarf2/read.c (recursively_compute_inclusions): Add | |
5748 | dwarf2_per_objfile parameter. | |
5749 | (compute_compunit_symtab_includes): Likewise. | |
5750 | (process_cu_includes): Update. | |
5751 | ||
7aa104c4 SM |
5752 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5753 | ||
5754 | * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile | |
5755 | parameter. | |
5756 | (create_type_unit_group): Update. | |
5757 | (process_psymtab_comp_unit_reader): Update. | |
5758 | (build_type_psymtabs_reader): Update. | |
5759 | ||
e3beb21d SM |
5760 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5761 | ||
5762 | * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile | |
5763 | object through m_this_cu->cu. | |
5764 | ||
d460f660 SM |
5765 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
5766 | ||
5767 | * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as | |
5768 | the info parameter. | |
5769 | (queue_and_load_all_dwo_tus): Pass per_cu->cu. | |
5770 | ||
ab432490 SM |
5771 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
5772 | ||
5773 | * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add | |
5774 | per_objfile parameter. | |
5775 | (load_full_type_unit): Add per_objfile parameter. | |
5776 | (read_signatured_type): Likewise. | |
5777 | (load_full_comp_unit): Likewise. | |
5778 | (load_cu): Likewise. | |
5779 | (dw2_do_instantiate_symtab): Likewise. | |
5780 | (dw2_get_file_names): Likewise. | |
5781 | (dw2_map_symtabs_matching_filename): Update. | |
5782 | (dw_expand_symtabs_matching_file_matcher): Update. | |
5783 | (dw2_map_symbol_filenames): Update. | |
5784 | (process_psymtab_comp_unit): Add per_objfile parameter. | |
5785 | (build_type_psymtabs_1): Update. | |
5786 | (process_skeletonless_type_unit): Update. | |
5787 | (dwarf2_build_psymtabs_hard): Update. | |
5788 | (load_partial_comp_unit): Add per_objfile parameter. | |
5789 | (scan_partial_symbols): Update. | |
5790 | (load_full_comp_unit): Add per_objfile parameter. | |
5791 | (process_imported_unit_die): Update. | |
5792 | (create_cus_hash_table): Update. | |
5793 | (find_partial_die): Update. | |
5794 | (dwarf2_read_addr_index): Update. | |
5795 | (follow_die_offset): Update. | |
5796 | (dwarf2_fetch_die_loc_sect_off): Update. | |
5797 | (dwarf2_fetch_constant_bytes): Update. | |
5798 | (dwarf2_fetch_die_type_sect_off): Update. | |
5799 | (follow_die_sig_1): Update. | |
5800 | (load_full_type_unit): Add per_objfile parameter. | |
5801 | (read_signatured_type): Likewise. | |
5802 | ||
313bad1b SM |
5803 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5804 | ||
5805 | * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead | |
5806 | of objfile_name. | |
5807 | ||
c3699833 SM |
5808 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
5809 | ||
5810 | * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member. | |
5811 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
5812 | * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd | |
5813 | field. | |
5814 | (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd. | |
5815 | (create_cus_from_index): Update. | |
5816 | (dwarf2_read_gdb_index): Update. | |
5817 | (create_cus_from_debug_names): Update. | |
5818 | (dwarf2_read_debug_names): Update. | |
5819 | (get_abbrev_section_for_cu): Update. | |
5820 | (create_all_comp_units): Update. | |
5821 | (read_attribute_value): Update. | |
5822 | (get_debug_line_section): Update. | |
5823 | * dwarf2/index-cache.c (index_cache::store): Update. | |
5824 | * dwarf2/index-write.c (save_gdb_index_command): Update. | |
5825 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Update. | |
5826 | ||
1859c670 SM |
5827 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
5828 | ||
5829 | * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New | |
5830 | member. | |
5831 | * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize | |
5832 | dwarf2_per_cu_data::per_bfd. | |
5833 | (dwarf2_per_bfd::allocate_signatured_type): Likewise. | |
5834 | (create_type_unit_group): Likewise. | |
5835 | (queue_comp_unit): Remove reference to | |
5836 | per_cu->dwarf2_per_objfile. | |
5837 | (maybe_queue_comp_unit): Likewise. | |
5838 | (fill_in_sig_entry_from_dwo_entry): Assign new field. | |
5839 | (create_cus_hash_table): Assign new field. | |
5840 | ||
5e22e966 SM |
5841 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5842 | ||
5843 | * dwarf2/read.c: Replace | |
5844 | dwarf2_cu->per_cu->dwarf2_per_objfile references with | |
5845 | dwarf2_cu->per_objfile throughout. | |
5846 | ||
97a1449a SM |
5847 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5848 | ||
5849 | * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile | |
5850 | parameter, don't use per_cu->dwarf2_per_objfile. | |
5851 | (dw2_instantiate_symtab): Likewise. | |
5852 | (dw2_find_last_source_symtab): Update. | |
5853 | (dw2_map_expand_apply): Update. | |
5854 | (dw2_lookup_symbol): Update. | |
5855 | (dw2_expand_symtabs_for_function): Update. | |
5856 | (dw2_expand_all_symtabs): Update. | |
5857 | (dw2_expand_symtabs_with_fullname): Update. | |
5858 | (dw2_expand_symtabs_matching_one): Add per_objfile parameter, | |
5859 | don't use per_cu->dwarf2_per_objfile. | |
5860 | (dw2_expand_marked_cus): Update. | |
5861 | (dw2_find_pc_sect_compunit_symtab): Update. | |
5862 | (dw2_debug_names_lookup_symbol): Update. | |
5863 | (dw2_debug_names_expand_symtabs_for_function): Update. | |
5864 | (dw2_debug_names_map_matching_symbols): Update. | |
5865 | (dwarf2_psymtab::expand_psymtab): Update. | |
5866 | ||
9e021579 SM |
5867 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5868 | ||
5869 | * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter. | |
5870 | <per_objfile>: New member. | |
5871 | (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter. | |
5872 | (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update | |
5873 | call to dwarf2_cu. | |
5874 | (cutu_reader::cutu_reader): Update. | |
5875 | (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile. | |
5876 | ||
ae090bdb SM |
5877 | 2020-05-27 Simon Marchi <simon.marchi@efficios.com> |
5878 | ||
5879 | * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to | |
5880 | struct dwarf2_per_objfile. | |
5881 | (struct dwarf2_per_objfile) <die_type_hash>: Move from struct | |
5882 | dwarf2_per_bfd. | |
5883 | * dwarf2/read.c (set_die_type): Update. | |
5884 | (get_die_type_at_offset): Update. | |
5885 | ||
af758d11 SM |
5886 | 2020-05-27 Tom Tromey <tom@tromey.com> |
5887 | Simon Marchi <simon.marchi@efficios.com> | |
5888 | ||
5889 | * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New | |
5890 | method. | |
5891 | (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p, | |
5892 | get_symtab, set_symtab>: New methods. | |
5893 | <m_symtabs>: New field. | |
5894 | (struct dwarf2_psymtab): Derive from partial_symtab. | |
5895 | <readin_p, get_compunit_symtab>: Declare methods. | |
5896 | * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p, | |
5897 | dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab): | |
5898 | New methods. | |
5899 | (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove. | |
5900 | (dw2_do_instantiate_symtab, dw2_instantiate_symtab) | |
5901 | (dw2_map_expand_apply, dw2_map_symtabs_matching_filename) | |
5902 | (dw2_symtab_iter_next, dw2_print_stats) | |
5903 | (dw2_expand_symtabs_with_fullname) | |
5904 | (dw2_expand_symtabs_matching_one) | |
5905 | (dw_expand_symtabs_matching_file_matcher) | |
5906 | (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames) | |
5907 | (dw2_debug_names_iterator::next) | |
5908 | (dw2_debug_names_map_matching_symbols) | |
5909 | (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab) | |
5910 | (process_queue, dwarf2_psymtab::expand_psymtab): Update. | |
5911 | (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab): | |
5912 | New methods. | |
5913 | (get_compunit_symtab, process_full_comp_unit) | |
5914 | (process_full_type_unit): Update. | |
5915 | (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call | |
5916 | ||
5989a64e SM |
5917 | 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca> |
5918 | ||
5919 | * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd, | |
5920 | then introduce a new dwarf2_per_objfile type. | |
5921 | <read_line_string>: Move to the new dwarf2_per_objfile type. | |
5922 | <objfile>: Likewise. | |
5923 | (dwarf2_per_bfd): Rename dwarf2_per_objfile to this. | |
5924 | * dwarf2/read.c: Replace references to dwarf2_per_objfile with | |
5925 | dwarf2_per_objfile->per_bfd. | |
5926 | (dwarf2_per_objfile::dwarf2_per_objfile): Rename to... | |
5927 | (dwarf2_per_bfd::dwarf2_per_bfd): ... this. | |
5928 | (dwarf2_per_objfile::free_cached_comp_units): Rename to... | |
5929 | (dwarf2_per_bfd::free_cached_comp_units): ... this. | |
5930 | (dwarf2_has_info): Allocate dwarf2_per_bfd. | |
5931 | (dwarf2_per_objfile::locate_sections): Rename to... | |
5932 | (dwarf2_per_bfd::locate_sections): ... this. | |
5933 | (dwarf2_per_objfile::get_cutu): Rename to... | |
5934 | (dwarf2_per_bfd::get_cutu): ... this. | |
5935 | (dwarf2_per_objfile::get_cu): Rename to... | |
5936 | (dwarf2_per_bfd::get_cu): ... this. | |
5937 | (dwarf2_per_objfile::get_tu): Rename to... | |
5938 | (dwarf2_per_bfd::get_tu): ... this. | |
5939 | (dwarf2_per_objfile::allocate_per_cu): Rename to... | |
5940 | (dwarf2_per_bfd::allocate_per_cu): ... this. | |
5941 | (dwarf2_per_objfile::allocate_signatured_type): Rename to... | |
5942 | (dwarf2_per_bfd::allocate_signatured_type): ... this. | |
5943 | (get_gdb_index_contents_ftype): Change parameter from | |
5944 | dwarf2_per_objfile to dwarf2_per_bfd. | |
5945 | * dwarf2/macro.c, dwarf2/index-write.c: Replace references to | |
5946 | dwarf2_per_objfile with dwarf2_per_objfile->per_bfd. | |
5947 | ||
a50264ba TT |
5948 | 2020-05-27 Tom Tromey <tom@tromey.com> |
5949 | Simon Marchi <simon.marchi@efficios.com> | |
5950 | ||
5951 | * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member. | |
5952 | (allocate_piece_closure): Set "per_objfile" member. | |
5953 | (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval) | |
5954 | (locexpr_describe_location, loclist_describe_location): Use new | |
5955 | member. | |
5956 | * dwarf2/read.c (read_call_site_scope) | |
5957 | (mark_common_block_symbol_computed, attr_to_dynamic_prop) | |
5958 | (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off) | |
5959 | (fill_in_loclist_baton, dwarf2_symbol_mark_computed, | |
5960 | handle_data_member_location): Set per_objfile member. | |
5961 | * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New | |
5962 | member. | |
5963 | (struct dwarf2_loclist_baton) <per_objfile>: New member. | |
5964 | ||
d3473f0c TT |
5965 | 2020-05-27 Tom Tromey <tom@tromey.com> |
5966 | ||
5967 | * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu, | |
5968 | allocate_signatured_type>: Declare new methods. | |
5969 | <m_num_psymtabs>: New member. | |
5970 | (struct dwarf2_per_cu_data) <index>: New member. | |
5971 | * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu) | |
5972 | (dwarf2_per_objfile::allocate_signatured_type): New methods. | |
5973 | (create_cu_from_index_list): Use allocate_per_cu. | |
5974 | (create_signatured_type_table_from_index) | |
5975 | (create_signatured_type_table_from_debug_names) | |
5976 | (create_debug_type_hash_table, add_type_unit) | |
5977 | (read_comp_units_from_section): Use allocate_signatured_type. | |
5978 | ||
5717c425 TT |
5979 | 2020-05-27 Tom Tromey <tom@tromey.com> |
5980 | ||
5981 | * psymtab.c (partial_map_expand_apply) | |
5982 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
5983 | (psym_lookup_global_symbol_language) | |
5984 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
5985 | (psym_print_stats, psym_expand_symtabs_for_function) | |
5986 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
5987 | (psym_expand_symtabs_matching) | |
5988 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
5989 | (maintenance_check_psymtabs): Update. | |
5990 | * psympriv.h (struct partial_symtab) <readin_p, | |
5991 | get_compunit_symtab>: Add objfile parameter. | |
5992 | (struct standard_psymtab) <readin_p, get_compunit_symtab>: | |
5993 | Likewise. | |
5994 | * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p, | |
5995 | get_compunit_symtab>: Likewise. | |
5996 | (dwarf2_psymtab::expand_psymtab): Pass objfile argument. | |
5997 | ||
45940949 TT |
5998 | 2020-05-27 Tom Tromey <tom@tromey.com> |
5999 | ||
6000 | * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New | |
6001 | member. | |
6002 | * dwarf2/read.c (delete_file_name_entry): Fix comment. | |
6003 | (create_cu_from_index_list) | |
6004 | (create_signatured_type_table_from_index) | |
6005 | (create_signatured_type_table_from_debug_names) | |
6006 | (dw2_get_file_names_reader, dwarf2_initialize_objfile) | |
6007 | (dwarf2_create_include_psymtab) | |
6008 | (create_debug_type_hash_table, add_type_unit) | |
6009 | (create_type_unit_group, read_comp_units_from_section) | |
6010 | (dwarf2_compute_name, create_cus_hash_table) | |
6011 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
6012 | (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new | |
6013 | obstack. | |
6014 | (dw2_get_real_path): Likewise. Change argument to | |
6015 | dwarf2_per_objfile. | |
6016 | ||
f8c6d152 LM |
6017 | 2020-05-27 Luis Machado <luis.machado@linaro.org> |
6018 | ||
6019 | PR tdep/26000 | |
6020 | * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching | |
6021 | for ldrd (immediate). | |
6022 | ||
e98d2e6d PW |
6023 | 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6024 | ||
6025 | * command.h: Add comment giving the name of class_tui. | |
6026 | * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined, | |
6027 | create the fake command for the help for class_tui. | |
6028 | ||
53a47a3e TT |
6029 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
6030 | ||
6031 | * ada-lang.c (ada_print_array_index): Change type. Call val_atr. | |
6032 | (ada_value_ptr_subscript): Don't call pos_atr on the lower bound. | |
6033 | (val_atr): New function. | |
6034 | (value_val_atr): Use it. | |
6035 | * ada-valprint.c (print_optional_low_bound): Change low bound | |
6036 | handling for enums. | |
6037 | (val_print_packed_array_elements): Don't call discrete_position. | |
6038 | * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call | |
6039 | discrete_position for enum types. | |
6040 | * language.c (default_print_array_index): Change type. | |
6041 | * language.h (struct language_defn) <la_print_array_index>: Add | |
6042 | index_type parameter, change type of index_value. | |
6043 | (LA_PRINT_ARRAY_INDEX): Add index_type parameter. | |
6044 | (default_print_array_index): Update. | |
6045 | * valprint.c (maybe_print_array_index): Don't call | |
6046 | value_from_longest. Update. | |
6047 | (value_print_array_elements): Don't call discrete_position. | |
6048 | ||
0bc2354b TT |
6049 | 2020-05-26 Tom Tromey <tromey@adacore.com> |
6050 | ||
6051 | * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE. | |
6052 | * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE. | |
6053 | ||
1218a4bf CDA |
6054 | 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com> |
6055 | ||
6056 | PR gdb/13519 | |
6057 | * avr-tdep.c (avr_integer_to_address): Return data or code | |
6058 | address accordingly to the second 'type' argument of the | |
6059 | function. | |
6060 | ||
92651b1d MW |
6061 | 2020-05-25 Michael Weghorn <m.weghorn@posteo.de> |
6062 | ||
6063 | * infcmd.c, inferior.h: (construct_inferior_arguments): | |
6064 | Moved function from here to gdbsupport/common-inferior.{h,cc} | |
6065 | ||
0a4f5f8c TT |
6066 | 2020-05-23 Tom Tromey <tom@tromey.com> |
6067 | ||
6068 | Revert commit eca1f90c: | |
6069 | * NEWS: Remove entry for completion styling. | |
6070 | * completer.c (_rl_completion_prefix_display_length): Move | |
6071 | declaration later. | |
6072 | (gdb_fnprint): Revert. | |
6073 | (gdb_display_match_list_1): Likewise. | |
6074 | * cli/cli-style.c (completion_prefix_style) | |
6075 | (completion_difference_style, completion_suffix_style): Remove. | |
6076 | (_initialize_cli_style): Revert. | |
6077 | * cli/cli-style.h (completion_prefix_style) | |
6078 | (completion_difference_style, completion_suffix_style): Don't | |
6079 | declare. | |
6080 | ||
e08bd6c5 PA |
6081 | 2020-05-24 Pedro Alves <palves@redhat.com> |
6082 | ||
6083 | * symtab.c (completion_list_add_name): Return boolean indication | |
6084 | of whether the symbol matched. | |
6085 | (completion_list_add_symbol): Don't try to remove C++ aliases if | |
6086 | the symbol didn't match in the first place. | |
6087 | * symtab.h (completion_list_add_name): Return bool. | |
6088 | ||
ceacbf6e SM |
6089 | 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca> |
6090 | ||
6091 | * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with | |
6092 | type::field. | |
6093 | ||
26f16254 JB |
6094 | 2020-05-23 Joel Brobecker <brobecker@adacore.com> |
6095 | ||
6096 | GDB 9.2 released. | |
6097 | ||
eca1f90c TT |
6098 | 2020-05-23 Tom Tromey <tom@tromey.com> |
6099 | ||
6100 | * NEWS: Add entry for completion styling. | |
6101 | * completer.c (_rl_completion_prefix_display_length): Move | |
6102 | declaration earlier. | |
6103 | (gdb_fnprint): Use completion_style. | |
6104 | (gdb_display_match_list_1): Likewise. | |
6105 | * cli/cli-style.c (completion_prefix_style) | |
6106 | (completion_difference_style, completion_suffix_style): New | |
6107 | globals. | |
6108 | (_initialize_cli_style): Register new globals. | |
6109 | * cli/cli-style.h (completion_prefix_style) | |
6110 | (completion_difference_style, completion_suffix_style): Declare. | |
6111 | ||
51e2cfa2 PA |
6112 | 2020-05-23 Pedro Alves <palves@redhat.com> |
6113 | ||
6114 | * utils.c: Include "gdbsupport/gdb-safe-ctype.h". | |
6115 | (parse_escape): Use ISDIGIT instead of isdigit. | |
6116 | (puts_debug): Use gdb_isprint instead of isprint. | |
6117 | (fprintf_symbol_filtered): Use ISALNUM instead of isalnum. | |
6118 | (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use | |
6119 | ISSPACE instead of isspace. | |
6120 | (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE | |
6121 | instead of isspace. | |
6122 | (strcmp_iw_ordered): Use ISSPACE instead of isspace. | |
6123 | (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT | |
6124 | instead of isxdigit and ISDIGIT instead of isdigit. | |
6125 | ||
80fc5e77 SM |
6126 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
6127 | ||
6128 | * gdbtypes.h (struct type) <field>: New method. | |
6129 | (TYPE_FIELDS): Remove, replace all uses with either type::fields | |
6130 | or type::field. | |
6131 | ||
3cabb6b0 SM |
6132 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
6133 | ||
6134 | * gdbtypes.h (struct type) <fields, set_fields>: New methods. | |
6135 | (TYPE_FIELDS): Use type::fields. Change all call sites that | |
6136 | modify the propery to use type::set_fields instead. | |
6137 | ||
1f704f76 SM |
6138 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
6139 | ||
6140 | * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use | |
6141 | type::num_fields instead. | |
6142 | ||
5e33d5f4 SM |
6143 | 2020-05-22 Simon Marchi <simon.marchi@efficios.com> |
6144 | ||
6145 | * gdbtypes.h (struct type) <num_fields, set_num_fields>: New | |
6146 | methods. | |
6147 | (TYPE_NFIELDS): Use type::num_fields. Change all call sites | |
6148 | that modify the number of fields to use type::set_num_fields | |
6149 | instead. | |
6150 | ||
9392ebb3 TT |
6151 | 2020-05-22 Tom Tromey <tromey@adacore.com> |
6152 | ||
6153 | * compile/compile-object-load.h (munmap_list_free): Don't | |
6154 | declare. | |
6155 | ||
7c13f4e8 AB |
6156 | 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com> |
6157 | ||
6158 | * annotate.c (annotate_source_line): Update return type, add call | |
6159 | to update current symtab and line. | |
6160 | * annotate.h (annotate_source_line): Update return type, and | |
6161 | extend header comment. | |
6162 | * source.c (info_line_command): Check annotation_level before | |
6163 | calling annotate_source_line. | |
6164 | * stack.c (print_frame_info): If calling annotate_source_line | |
6165 | returns true, then don't print any other source line information. | |
6166 | ||
aa370940 SM |
6167 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
6168 | ||
6169 | * lm32-tdep.c (lm32_register_reggroup_p): Fix condition. | |
6170 | ||
84d53fa9 SM |
6171 | 2020-05-21 Simon Marchi <simon.marchi@efficios.com> |
6172 | ||
6173 | * coffread.c (patch_type): Remove NULL check before xfree. | |
6174 | * corefile.c (set_gnutarget): Likewise. | |
6175 | * cp-abi.c (set_cp_abi_as_auto_default): Likewise. | |
6176 | * exec.c (build_section_table): Likewise. | |
6177 | * remote.c (remote_target::pass_signals): Likewise. | |
6178 | * utils.c (n_spaces): Likewise. | |
6179 | * cli/cli-script.c (document_command): Likewise. | |
6180 | * i386-windows-tdep.c (core_process_module_section): Likewise. | |
6181 | * linux-fork.c (struct fork_info) <~fork_info>: Likewise. | |
6182 | ||
9d428aae SM |
6183 | 2020-05-20 Simon Marchi <simon.marchi@efficios.com> |
6184 | ||
6185 | * symfile.c (reread_symbols): Clear objfile's section_offsets | |
6186 | vector and section indices, re-compute them by calling | |
6187 | sym_offsets. | |
6188 | ||
250106a7 TT |
6189 | 2020-05-20 Tom Tromey <tromey@adacore.com> |
6190 | ||
6191 | * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove. | |
ec16513e | 6192 | (desc_one_bound, desc_index_type): Compute field name. |
250106a7 | 6193 | |
9a0bacfb TV |
6194 | 2020-05-20 Tom de Vries <tdevries@suse.de> |
6195 | ||
6196 | PR symtab/25833 | |
6197 | * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index. | |
6198 | ||
7b958a48 AM |
6199 | 2020-05-20 Alan Modra <amodra@gmail.com> |
6200 | ||
6201 | PR 25993 | |
6202 | * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for | |
6203 | bfd_set_filename. | |
6204 | * solib-aix.c (solib_aix_bfd_open): Use std::string for name | |
6205 | passed to bfd_set_filename. | |
6206 | * symfile-mem.c (add_vsyscall_page): Likewise for string | |
6207 | passed to symbol_file_add_from_memory. | |
6208 | (symbol_file_add_from_memory): Make name param a const char* and | |
6209 | don't strdup. | |
6210 | ||
c7e97679 AM |
6211 | 2020-05-20 Alan Modra <amodra@gmail.com> |
6212 | ||
6213 | * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename | |
6214 | rather than accessing bfd->filename directly. | |
6215 | * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise, | |
6216 | and use bfd_section_name. | |
6217 | * dwarf2/frame.c (decode_frame_entry): Likewise. | |
6218 | * exec.c (exec_set_section_address): Likewise. | |
6219 | * solib-aix.c (solib_aix_bfd_open): Likewise. | |
6220 | * stap-probe.c (get_stap_base_address): Likewise. | |
6221 | * symfile.c (reread_symbols): Likewise. | |
6222 | ||
563c591b TT |
6223 | 2020-05-19 Tom Tromey <tromey@adacore.com> |
6224 | ||
6225 | * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open. | |
6226 | ||
f408d82c SM |
6227 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
6228 | ||
6229 | * dwarf2/read.c (quirk_rust_enum): Allocate enough fields. | |
6230 | ||
98c59b52 PA |
6231 | 2020-05-19 Pedro Alves <palves@redhat.com> |
6232 | ||
6233 | * NEWS (set exec-file-mismatch): Adjust entry. | |
6234 | * exec.c: Include "build-id.h". | |
6235 | (validate_exec_file): Try to match build IDs instead of filenames. | |
6236 | * gdb_bfd.c (struct gdb_bfd_open_closure): New. | |
6237 | (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure | |
6238 | and pass down 'warn_if_slow'. | |
6239 | (gdb_bfd_open): Add 'warn_if_slow' parameter. Use | |
6240 | gdb_bfd_open_closure to pass it down. | |
6241 | * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter. | |
6242 | ||
4111f652 PA |
6243 | 2020-05-19 Pedro Alves <palves@redhat.com> |
6244 | ||
6245 | * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust. | |
6246 | * target.c (target_fileio_open_1): Rename to target_fileio_open | |
6247 | and make extern. Use bool. | |
6248 | (target_fileio_open, target_fileio_open_warn_if_slow): Delete. | |
6249 | (target_fileio_read_alloc_1): Adjust. | |
6250 | * target.h (target_fileio_open): Add 'warn_if_slow' parameter. | |
6251 | (target_fileio_open_warn_if_slow): Delete declaration. | |
6252 | ||
ad80db5b PA |
6253 | 2020-05-19 Pedro Alves <palves@redhat.com> |
6254 | ||
6255 | * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1. | |
6256 | Adjust all callers. | |
6257 | ||
1d6ce4d3 YS |
6258 | 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp> |
6259 | ||
6260 | * h8300-tdep.c (h8300_is_argument_spill): Change how we check | |
6261 | whether disp is negative. | |
6262 | ||
9005fbbb SM |
6263 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
6264 | ||
6265 | * symfile.h (struct symfile_segment_data) | |
6266 | <~symfile_segment_data>: Remove. | |
6267 | <segment_info>: Change to std::vector. | |
6268 | * symfile.c (default_symfile_segments): Update. | |
6269 | * elfread.c (elf_symfile_segments): Update. | |
6270 | ||
68b888ff SM |
6271 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
6272 | ||
6273 | * symfile.h (struct symfile_segment_data) <struct segment>: New. | |
6274 | <segments>: New. | |
6275 | <segment_bases, segment_sizes>: Remove. | |
6276 | * symfile.c (default_symfile_segments): Update. | |
6277 | * elfread.c (elf_symfile_segments): Update. | |
6278 | * remote.c (remote_target::get_offsets): Update. | |
6279 | * solib-target.c (solib_target_relocate_section_addresses): | |
6280 | Update. | |
6281 | ||
62982abd SM |
6282 | 2020-05-19 Simon Marchi <simon.marchi@efficios.com> |
6283 | ||
6284 | * symfile.h (struct symfile_segment_data): Initialize fields. | |
6285 | <~symfile_segment_data>: Add. | |
6286 | (symfile_segment_data_up): New. | |
6287 | (struct sym_fns) <sym_segments>: Return a | |
6288 | symfile_segment_data_up. | |
6289 | (default_symfile_segments): Return a symfile_segment_data_up. | |
6290 | (free_symfile_segment_data): Remove. | |
6291 | (get_symfile_segment_data): Return a symfile_segment_data_up. | |
6292 | * symfile.c (default_symfile_segments): Likewise. | |
6293 | (get_symfile_segment_data): Likewise. | |
6294 | (free_symfile_segment_data): Remove. | |
6295 | (symfile_find_segment_sections): Update. | |
6296 | * elfread.c (elf_symfile_segments): Return a | |
6297 | symfile_segment_data_up. | |
6298 | * remote.c (remote_target::get_offsets): Update. | |
6299 | * solib-target.c (solib_target_relocate_section_addresses): | |
6300 | Update. | |
6301 | * symfile-debug.c (debug_sym_segments): Return a | |
6302 | symfile_segment_data_up. | |
6303 | ||
7f204339 RO |
6304 | 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
6305 | ||
e52a0f1b RO |
6306 | PR build/25981 |
6307 | * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap): | |
6308 | Hardcode register numbers. | |
6309 | ||
7f204339 RO |
6310 | PR build/25981 |
6311 | * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry, | |
6312 | procfs_find_LDT_entry): Remove. | |
6313 | * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd, | |
6314 | procfs_find_LDT_entry): Remove. | |
6315 | * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT): | |
6316 | Remove. | |
6317 | ||
7f32a4d5 PA |
6318 | 2020-05-17 Pedro Alves <palves@redhat.com> |
6319 | Andrew Burgess <andrew.burgess@embecosm.com> | |
6320 | Keno Fischer <keno@juliacomputing.com> | |
6321 | ||
6322 | PR gdb/25741 | |
6323 | * breakpoint.c (build_target_condition_list): Update comments. | |
6324 | (build_target_command_list): Update comments and skip matching | |
6325 | locations. | |
6326 | (insert_bp_location): Move "set breakpoint auto-hw on" handling to | |
6327 | a separate function. Simplify "set breakpoint auto-hw off" | |
6328 | handling. | |
6329 | (insert_breakpoints): Update comment. | |
6330 | (tracepoint_locations_match): New parameter. For breakpoints, | |
6331 | compare location types too, if the caller wants to. | |
6332 | (handle_automatic_hardware_breakpoints): New functions. | |
6333 | (bp_location_is_less_than): Also sort by location type and | |
6334 | hardware breakpoint length. | |
6335 | (update_global_location_list): Handle "set breakpoint auto-hw on" | |
6336 | here. | |
6337 | (update_breakpoint_locations): Ask breakpoint_locations_match to | |
6338 | ignore location types. | |
6339 | ||
7d93a1e0 SM |
6340 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
6341 | ||
6342 | * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use | |
6343 | type::name instead. | |
6344 | ||
d0e39ea2 SM |
6345 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
6346 | ||
6347 | * gdbtypes.h (struct type) <name, set_name>: New methods. | |
6348 | (TYPE_CODE): Use type::name. Change all call sites used to set | |
6349 | the name to use type::set_name instead. | |
6350 | ||
2dab0c7b TT |
6351 | 2020-05-16 Tom Tromey <tom@tromey.com> |
6352 | ||
6353 | * top.c (quit_force): Update. | |
6354 | * infrun.c (handle_no_resumed): Update. | |
6355 | * top.h (all_uis): New function. | |
6356 | (ALL_UIS): Remove. | |
6357 | ||
59f7bd8d SM |
6358 | 2020-05-16 Simon Marchi <simon.marchi@efficios.com> |
6359 | ||
6360 | * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition. | |
6361 | ||
9bf058f0 PA |
6362 | 2020-05-16 Pedro Alves <palves@redhat.com> |
6363 | ||
6364 | * ia64-linux-nat.c | |
6365 | (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>: | |
6366 | Declare method. | |
6367 | (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target. | |
6368 | ||
8f86ae1a SM |
6369 | 2020-05-15 Simon Marchi <simon.marchi@efficios.com> |
6370 | ||
6371 | * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct). | |
6372 | (sparc64_adi_info): Likewise. | |
6373 | ||
d6bc0792 TT |
6374 | 2020-05-15 Tom Tromey <tom@tromey.com> |
6375 | ||
6376 | * symtab.c (lookup_language_this, lookup_symbol_aux): Use | |
6377 | block_objfile. | |
6378 | (lookup_objfile_from_block): Remove. | |
6379 | (lookup_symbol_in_block, lookup_symbol_in_static_block) | |
6380 | (lookup_global_symbol): Use block_objfile. | |
6381 | * symtab.h (lookup_objfile_from_block): Don't declare. | |
6382 | * printcmd.c (clear_dangling_display_expressions): Use | |
6383 | block_objfile. | |
6384 | * parse.c (operator_check_standard): Use block_objfile. | |
6385 | ||
8c14c3a3 TT |
6386 | 2020-05-15 Tom Tromey <tom@tromey.com> |
6387 | ||
6388 | * language.c (language_alloc_type_symbol): Set | |
6389 | SYMBOL_SECTION. | |
6390 | * symtab.c (initialize_objfile_symbol): Remove. | |
6391 | (allocate_symbol): Remove. | |
6392 | (allocate_template_symbol): Remove. | |
6393 | * dwarf2/read.c (fixup_go_packaging): Use "new". | |
6394 | (new_symbol): Use "new". | |
6395 | (read_variable): Don't call initialize_objfile_symbol. Use | |
6396 | "new". | |
6397 | (read_func_scope): Use "new". | |
6398 | * xcoffread.c (process_xcoff_symbol): Don't call | |
6399 | initialize_objfile_symbol. | |
6400 | (SYMBOL_DUP): Remove. | |
6401 | * coffread.c (process_coff_symbol, coff_read_enum_type): Use | |
6402 | "new". | |
6403 | * symtab.h (allocate_symbol, initialize_objfile_symbol) | |
6404 | (allocate_template_symbol): Don't declare. | |
6405 | (struct symbol): Add copy constructor. Change defaults. | |
6406 | * jit.c (finalize_symtab): Use "new". | |
6407 | * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb): | |
6408 | Use "new". | |
6409 | * stabsread.c (patch_block_stabs, define_symbol, read_enum_type) | |
6410 | (common_block_end): Use "new". | |
6411 | * mdebugread.c (parse_symbol): Use "new". | |
6412 | (new_symbol): Likewise. | |
6413 | ||
5b4a1a8d PW |
6414 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6415 | ||
6416 | * NEWS: Mention changes to help and apropos. | |
6417 | ||
57b4f16e PW |
6418 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6419 | ||
6420 | * command.h (enum command_class): Improve comments, document | |
6421 | that class_alias is for user-defined aliases, give the class | |
6422 | name for each class, remove unused class_xdb. | |
6423 | * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage. | |
6424 | * breakpoint.c (_initialize_breakpoint): Replace class_alias | |
6425 | by a precise class. | |
6426 | * infcmd.c (_initialize_infcmd): Likewise. | |
6427 | * reverse.c (_initialize_reverse): Likewise. | |
6428 | * stack.c (_initialize_stack): Likewise. | |
6429 | * symfile.c (_initialize_symfile): Likewise. | |
6430 | * tracepoint.c (_initialize_tracepoint): Likewise. | |
6431 | ||
7c05caf7 PW |
6432 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6433 | ||
6434 | * cli/cli-decode.c (apropos_cmd): Produce output for aliases | |
6435 | when their aliased command is traversed. | |
6436 | (help_cmd): Add fput_command_names_styled call to | |
6437 | output command name and aliases when command has an alias. | |
6438 | ||
3b3aaacb PW |
6439 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6440 | ||
6441 | * cli/cli-decode.h (help_cmd_list): Remove declaration. | |
6442 | * cli/cli-decode.c (help_cmd_list): Declare as static, | |
6443 | remove prefix argument, use bool for recurse arg, rework to show the aliases of | |
6444 | a command together with the command. | |
6445 | (fput_command_name_styled, fput_command_names_styled): New functions. | |
6446 | (print_help_for_command): Remove prefix arg, use bool for recurse arg, use | |
6447 | fput_command_name_styled. | |
6448 | (help_list, help_all): Update callers to remove prefix arg and use bool recurse. | |
6449 | * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc. | |
6450 | ||
7aa1b46f PW |
6451 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6452 | ||
6453 | * cli/cli-setshow.h (cmd_show_list): Remove prefix argument. | |
6454 | * cli/cli-decode.c (do_show_prefix_cmd): Likewise. | |
6455 | * command.h (cmd_show_list): Likewise. | |
6456 | * dwarf2/index-cache.c (show_index_cache_command): Likewise. | |
6457 | * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases. | |
6458 | ||
89bcba74 PW |
6459 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6460 | ||
6461 | * unittests/command-def-selftests.c (traverse_command_structure): | |
6462 | Verify all commands of a list have the same prefix command and | |
6463 | that only the top cmdlist commands have a null prefix. | |
6464 | ||
3f4d92eb PW |
6465 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6466 | ||
6467 | * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command | |
6468 | as prefix, not one of its aliases. | |
6469 | (set_cmd_prefix): Remove. | |
6470 | (do_add_cmd): Centralize the setting of the prefix of a command, when | |
6471 | command is defined after its full chain of prefix commands. | |
6472 | (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it. | |
6473 | (add_setshow_cmd_full): Likewise. | |
6474 | (update_prefix_field_of_prefixed_commands): New function. | |
6475 | (add_prefix_cmd): Replace non working call to set_cmd_prefix by | |
6476 | update_prefix_field_of_prefixed_commands. | |
6477 | * gdb/remote-fileio.c (initialize_remote_fileio): Use the real | |
6478 | addresses of remote_set_cmdlist and remote_show_cmdlist given | |
6479 | as argument, not the address of an argument. | |
6480 | * gdb/remote-fileio.h (initialize_remote_fileio): Likewise. | |
6481 | * gdb/remote.c (_initialize_remote): Likewise. | |
6482 | ||
0605465f PW |
6483 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6484 | ||
6485 | * cli/cli-cmds.c (alias_command): Check for an existing alias | |
6486 | using lookup_cmd_composition, as valid_command_p is too strict | |
6487 | and forbids aliases that are the prefix of an existing alias | |
6488 | or command. | |
6489 | * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix | |
6490 | command is properly recognised as a valid command. | |
6491 | ||
58e6ac70 PW |
6492 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6493 | ||
6494 | * unittests/help-doc-selftests.c: Rename to | |
6495 | unittests/command-def-selftests.c | |
6496 | * unittests/command-def-selftests.c (help_doc_tests): Update some | |
6497 | comments. | |
6498 | (command_structure_tests, traverse_command_structure): New namespace | |
6499 | and function. | |
6500 | (command_structure_invariants_tests): New function. | |
6501 | (_initialize_command_def_selftests) Renamed from | |
6502 | _initialize_help_doc_selftests, register command_structure_invariants | |
6503 | selftest. | |
6504 | ||
a7b9ceb8 PW |
6505 | 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6506 | ||
6507 | * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as | |
6508 | an alias of 'show'. | |
6509 | ||
b2188a06 JB |
6510 | 2020-05-15 Joel Brobecker <brobecker@adacore.com> |
6511 | ||
6512 | * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames | |
6513 | ada_is_fixed_point_type. Update all callers. | |
6514 | (gnat_encoded_fixed_point_delta): Renames ada_delta. Update | |
6515 | all callers. | |
6516 | * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info. | |
6517 | Update all callers. | |
6518 | * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames | |
6519 | print_fixed_point_type. Update all callers. | |
6520 | * ada-valprint.c (ada_value_print_num): Replace call to | |
6521 | ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type. | |
6522 | ||
a51951c2 KB |
6523 | 2020-05-14 Kevin Buettner <kevinb@redhat.com> |
6524 | ||
6525 | * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD | |
6526 | processors. | |
6527 | (cpu_supports_bts): Add CV_AMD case. | |
6528 | ||
29d6859f LM |
6529 | 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com> |
6530 | Simon Marchi <simon.marchi@efficios.com> | |
6531 | ||
6532 | * infrun.c (stop_all_threads): Collect multiple wait events at | |
6533 | each pass. | |
6534 | ||
78134374 SM |
6535 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
6536 | ||
6537 | * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use | |
6538 | type::code instead. | |
6539 | ||
67607e24 SM |
6540 | 2020-05-14 Simon Marchi <simon.marchi@efficios.com> |
6541 | ||
6542 | * gdbtypes.h (struct type) <code, set_code>: New methods. | |
6543 | (TYPE_CODE): Use type::code. Change all call sites used to set | |
6544 | the code to use type::set_code instead. | |
6545 | ||
a05575d3 TBA |
6546 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6547 | Tom de Vries <tdevries@suse.de> | |
6548 | Pedro Alves <palves@redhat.com> | |
6549 | ||
6550 | PR threads/25478 | |
6551 | * infrun.c (stop_all_threads): Do NOT ignore | |
6552 | TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED, | |
6553 | TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses | |
6554 | received. | |
6555 | (handle_no_resumed): Remove code handling a live inferior with no | |
6556 | threads. | |
6557 | * remote.c (has_single_non_exited_thread): New. | |
6558 | (remote_target::update_thread_list): Do not delete a thread if is | |
6559 | the last thread of the process. | |
6560 | * thread.c (thread_select): Call delete_exited_threads instead of | |
6561 | prune_threads. | |
6562 | ||
6ad82919 TBA |
6563 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6564 | ||
6565 | * infrun.c (stop_all_threads): Enable/disable thread events of all | |
6566 | targets. Move a debug message denoting the end of the function | |
6567 | into the SCOPED_EXIT block. | |
6568 | ||
d890404b TBA |
6569 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6570 | ||
6571 | * process-stratum-target.h: Include <set>. | |
6572 | (all_non_exited_process_targets, switch_to_target_no_thread): New | |
6573 | function declarations. | |
6574 | * process-stratum-target.c (all_non_exited_process_targets) | |
6575 | (switch_to_target_no_thread): New function implementations. | |
6576 | ||
293b3ebc TBA |
6577 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6578 | ||
6579 | * infrun.c (handle_inferior_event): Extract out a piece of code | |
6580 | into... | |
6581 | (mark_non_executing_threads): ...this new function. | |
6582 | ||
7ca9b62a TBA |
6583 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6584 | ||
6585 | * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first | |
6586 | use. | |
6587 | ||
fc75c28b TBA |
6588 | 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6589 | ||
6590 | * regcache.c (regcache_read_pc_protected): New function | |
6591 | implementation that returns 0 if the PC cannot read via | |
6592 | 'regcache_read_pc'. | |
6593 | * infrun.c (proceed): Call 'regcache_read_pc_protected' | |
6594 | instead of 'regcache_read_pc'. | |
6595 | (keep_going_pass_signal): Ditto. | |
6596 | ||
a89febbd TT |
6597 | 2020-05-13 Tom Tromey <tromey@adacore.com> |
6598 | ||
6599 | * ada-lang.c (align_value): Remove. | |
6600 | (ada_template_to_fixed_record_type_1): Use align_up. | |
6601 | ||
f7e23710 TBA |
6602 | 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
6603 | ||
6604 | * async-event.c: Update the copyright year. | |
6605 | * async-event.h: Update the copyright year. | |
6606 | ||
02ff80c2 SM |
6607 | 2020-05-12 Simon Marchi <simon.marchi@efficios.com> |
6608 | ||
6609 | * objfiles.h (is_addr_in_objfile, | |
6610 | shared_objfile_contains_address_p): Return bool. | |
6611 | * objfile.c (is_addr_in_objfile, | |
6612 | shared_objfile_contains_address_p): Return bool. | |
6613 | ||
4fd6c7e8 TT |
6614 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
6615 | ||
6616 | * cli/cli-cmds.c (info_command): Restore. | |
6617 | (_initialize_cli_cmds): Use add_prefix_command for "info". | |
6618 | * gdb-gdb.gdb.in: Restore breakpoint on info_command. | |
6619 | ||
5eb68a39 TT |
6620 | 2020-05-11 Tom Tromey <tromey@adacore.com> |
6621 | ||
6622 | * ada-lang.c (ada_value_primitive_field): Now public. | |
6623 | * ada-lang.h (ada_value_primitive_field): Declare. | |
6624 | * ada-valprint.c (print_field_values): Use | |
6625 | ada_value_primitive_field for wrapper fields. | |
6626 | ||
7666722f TV |
6627 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
6628 | ||
6629 | * dwarf2/index-write.c (debug_names::psymbol_tag): Handle | |
6630 | MODULE_DOMAIN. | |
6631 | ||
3ee6bb11 TV |
6632 | 2020-05-11 Tom de Vries <tdevries@suse.de> |
6633 | ||
6634 | PR symtab/25941 | |
6635 | * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs | |
6636 | with length 0, if not gdb-produced. | |
6637 | (cutu_reader::cutu_reader): Set CU length to actual length if 0. | |
6638 | ||
43434996 TV |
6639 | 2020-05-09 Tom de Vries <tdevries@suse.de> |
6640 | ||
6641 | PR gdb/25955 | |
6642 | * break-catch-throw.c (check_status_exception_catchpoint): Fix name | |
6643 | calculation. | |
6644 | ||
2f78cffc TT |
6645 | 2020-05-09 Tom Tromey <tom@tromey.com> |
6646 | ||
6647 | * top.c (server_command): Now bool. | |
6648 | * top.h (server_command): Now bool. | |
6649 | ||
4f7bc5ed TT |
6650 | 2020-05-08 Tom Tromey <tromey@adacore.com> |
6651 | ||
6652 | * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE | |
6653 | already being processed. | |
6654 | ||
8be4b118 TT |
6655 | 2020-05-08 Tom Tromey <tom@tromey.com> |
6656 | ||
6657 | * printcmd.c (struct display) <next>: Remove. | |
6658 | <display>: New constructor. | |
6659 | <exp_string>: Now a std::string. | |
6660 | <enabled_p>: Now a bool. | |
6661 | (display_number): Move definition earlier. | |
6662 | (displays): Rename from display_chain. Now a std::vector. | |
6663 | (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove. | |
6664 | (display_command): Update. | |
6665 | (do_one_display, disable_display) | |
6666 | (enable_disable_display_command, do_enable_disable_display): | |
6667 | Update. | |
6668 | (free_display): Remove. | |
6669 | (clear_displays): Rewrite. | |
6670 | (delete_display): Update. | |
6671 | (map_display_numbers): Use function_view. Remove "data" | |
6672 | parameter. Update. | |
6673 | (do_delete_display): Remove. | |
6674 | (undisplay_command): Update. | |
6675 | (do_one_display, do_displays, disable_display) | |
6676 | (info_display_command): Update. | |
6677 | (do_enable_disable_display): Remove. | |
6678 | (enable_disable_display_command) | |
6679 | (clear_dangling_display_expressions): Update. | |
6680 | ||
94c93c35 TT |
6681 | 2020-05-08 Tom Tromey <tom@tromey.com> |
6682 | ||
6683 | * symtab.c (set_symbol_cache_size) | |
6684 | (maintenance_print_symbol_cache, maintenance_flush_symbol_cache) | |
6685 | (maintenance_print_symbol_cache_statistics): Update. | |
6686 | * symmisc.c (print_symbol_bcache_statistics) | |
6687 | (print_objfile_statistics, maintenance_print_objfiles) | |
6688 | (maintenance_info_symtabs, maintenance_check_symtabs) | |
6689 | (maintenance_expand_symtabs, maintenance_info_line_tables): | |
6690 | Update. | |
6691 | * symfile-debug.c (set_debug_symfile): Update. | |
6692 | * source.c (forget_cached_source_info): Update. | |
6693 | * python/python.c (gdbpy_progspaces): Update. | |
6694 | * psymtab.c (maintenance_info_psymtabs): Update. | |
6695 | * probe.c (parse_probes): Update. | |
6696 | * linespec.c (iterate_over_all_matching_symtabs) | |
6697 | (collect_symtabs_from_filename, search_minsyms_for_name): Update. | |
6698 | * guile/scm-progspace.c (gdbscm_progspaces): Update. | |
6699 | * exec.c (exec_target::close): Update. | |
6700 | * ada-tasks.c (ada_tasks_new_objfile_observer): Update. | |
6701 | * breakpoint.c (print_one_breakpoint_location) | |
6702 | (create_longjmp_master_breakpoint) | |
6703 | (create_std_terminate_master_breakpoint): Update. | |
6704 | * progspace.c (program_spaces): Now a std::vector. | |
6705 | (maybe_new_address_space): Update. | |
6706 | (add_program_space): Remove. | |
6707 | (program_space::program_space): Update. | |
6708 | (remove_program_space): Update. | |
6709 | (number_of_program_spaces): Remove. | |
6710 | (print_program_space, update_address_spaces): Update. | |
6711 | * progspace.h (program_spaces): Change type. | |
6712 | (ALL_PSPACES): Remove. | |
6713 | (number_of_program_spaces): Don't declare. | |
6714 | (struct program_space) <next>: Remove. | |
6715 | ||
a1fd1ac9 TT |
6716 | 2020-05-08 Tom Tromey <tom@tromey.com> |
6717 | ||
6718 | * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update. | |
6719 | * solib-svr4.c (svr4_fetch_objfile_link_map): Update. | |
6720 | (enable_break): Update. | |
6721 | * solib-frv.c (frv_fdpic_find_global_pointer): Update. | |
6722 | (frv_fdpic_find_canonical_descriptor): Update. | |
6723 | (frv_fetch_objfile_link_map): Update. | |
6724 | * progspace.c (program_space::free_all_objfiles): Update. | |
6725 | (program_space::solibs): New method. | |
6726 | * progspace.h (struct program_space) <solibs>: New method. | |
6727 | * solist.h (master_so_list): Don't declare. | |
6728 | (ALL_SO_LIBS): Remove. | |
6729 | * solib.h (so_list_head): Remove. | |
6730 | (update_solib_list): Update comment. | |
6731 | * solib.c (master_so_list): Remove. | |
6732 | (solib_used, update_solib_list, solib_add) | |
6733 | (info_sharedlibrary_command, clear_solib) | |
6734 | (reload_shared_libraries_1, remove_user_added_objfile): Update. | |
6735 | ||
38eae084 TT |
6736 | 2020-05-08 Tom Tromey <tom@tromey.com> |
6737 | ||
6738 | * extension.c (extension_languages): Now a std::array. | |
6739 | (ALL_EXTENSION_LANGUAGES): Remove. | |
6740 | (get_ext_lang_defn, get_ext_lang_of_file) | |
6741 | (eval_ext_lang_from_control_command): Update. | |
6742 | (finish_ext_lang_initialization) | |
6743 | (auto_load_ext_lang_scripts_for_objfile) | |
6744 | (ext_lang_type_printers::ext_lang_type_printers) | |
6745 | (apply_ext_lang_type_printers) | |
6746 | (ext_lang_type_printers::~ext_lang_type_printers) | |
6747 | (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter) | |
6748 | (preserve_ext_lang_values, get_breakpoint_cond_ext_lang) | |
6749 | (breakpoint_ext_lang_cond_says_stop, check_quit_flag) | |
6750 | (get_matching_xmethod_workers, ext_lang_colorize) | |
6751 | (ext_lang_before_prompt): Update. | |
6752 | (ALL_ENABLED_EXTENSION_LANGUAGES): Remove. | |
6753 | ||
596dc4ad TT |
6754 | 2020-05-08 Tom Tromey <tom@tromey.com> |
6755 | ||
6756 | * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New | |
6757 | overload. | |
6758 | <swap_string, m_string>: Remove. | |
6759 | * symtab.c (demangle_for_lookup, completion_list_add_symbol): | |
6760 | Update. | |
6761 | * stabsread.c (define_symbol, read_type): Update. | |
6762 | * linespec.c (find_linespec_symbols): Update. | |
6763 | * gnu-v3-abi.c (gnuv3_get_typeid): Update. | |
6764 | * dwarf2/read.c (dwarf2_canonicalize_name): Update. | |
6765 | * dbxread.c (read_dbx_symtab): Update. | |
6766 | * cp-support.h (cp_canonicalize_string_full) | |
6767 | (cp_canonicalize_string, cp_canonicalize_string_no_typedefs): | |
6768 | Return unique_xmalloc_ptr. | |
6769 | * cp-support.c (inspect_type): Update. | |
6770 | (cp_canonicalize_string_full): Return unique_xmalloc_ptr. | |
6771 | (cp_canonicalize_string_no_typedefs, cp_canonicalize_string): | |
6772 | Likewise. | |
6773 | * c-typeprint.c (print_name_maybe_canonical): Update. | |
6774 | * break-catch-throw.c (check_status_exception_catchpoint): | |
6775 | Update. | |
6776 | ||
bf4cb9be TV |
6777 | 2020-05-08 Tom de Vries <tdevries@suse.de> |
6778 | ||
6779 | * infrun.c (follow_fork): Copy current_line and current_symtab to | |
6780 | child thread. | |
6781 | ||
a1b68f28 SM |
6782 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
6783 | ||
6784 | * async-event.c (struct async_signal_handler, struct | |
6785 | async_event_handler): Reformat, remove typedef. | |
6786 | ||
98d48915 SM |
6787 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
6788 | ||
6789 | * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users | |
6790 | access thistype->main_type->dyn_prop_list directly. | |
6791 | ||
7aa91313 SM |
6792 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
6793 | ||
6794 | * gdbtypes.h (struct type) <remove_dyn_prop>: New method. | |
6795 | (remove_dyn_prop): Remove. Update all users to use | |
6796 | type::remove_dyn_prop. | |
6797 | * gdbtypes.c (remove_dyn_prop): Rename to... | |
6798 | (type::remove_dyn_prop): ... this. | |
6799 | ||
5c54719c SM |
6800 | 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> |
6801 | ||
6802 | * gdbtypes.h (struct type) <add_dyn_prop>: New method. | |
6803 | (add_dyn_prop): Remove. Update all users to use | |
6804 | type::add_dyn_prop. | |
6805 | * gdbtypes.c (add_dyn_prop): Rename to... | |
6806 | (type::add_dyn_prop): ... this. | |
6807 | ||
24e99c6c SM |
6808 | 2020-05-07 Simon Marchi <simon.marchi@efficios.com> |
6809 | ||
6810 | * gdbtypes.h (struct type) <get_dyn_prop>: New method. | |
6811 | (get_dyn_prop): Remove. Update all users to use | |
6812 | type::dyn_prop. | |
6813 | * gdbtypes.c (get_dyn_prop): Rename to... | |
6814 | (type::dyn_prop): ... this. | |
6815 | ||
0d4bf016 SM |
6816 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
6817 | ||
6818 | * gdbtypes.h (struct main_type) <flag_static>: Remove. | |
6819 | ||
ac4a4f1c SM |
6820 | 2020-05-06 Simon Marchi <simon.marchi@efficios.com> |
6821 | ||
6822 | * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64` | |
6823 | instruction, skip it if it's there. | |
6824 | ||
a3bbacc1 SM |
6825 | 2020-05-05 Simon Marchi <simon.marchi@efficios.com> |
6826 | ||
6827 | * gdbtypes.h (struct main_type) <flag_incomplete>: Remove. | |
6828 | ||
c3236f84 SM |
6829 | 2020-05-04 Simon Marchi <simon.marchi@efficios.com> |
6830 | ||
6831 | * gdbtypes.h (TYPE_INCOMPLETE): Remove. | |
6832 | * gdbtypes.c (recursive_dump_type): Remove use of | |
6833 | TYPE_INCOMPLETE. | |
6834 | ||
3b6acaee TT |
6835 | 2020-05-03 Tom Tromey <tom@tromey.com> |
6836 | ||
6837 | * breakpoint.c (catch_command, tcatch_command): Remove. | |
6838 | (_initialize_breakpoint): Use add_basic_prefix_cmd, | |
6839 | add_show_prefix_cmd. | |
6840 | (set_breakpoint_cmd, show_breakpoint_cmd): Remove | |
6841 | * utils.c (set_internal_problem_cmd, show_internal_problem_cmd): | |
6842 | Remove. | |
6843 | (add_internal_problem_command): Use add_basic_prefix_cmd, | |
6844 | add_show_prefix_cmd. | |
6845 | * mips-tdep.c (set_mipsfpu_command): Remove. | |
6846 | (_initialize_mips_tdep): Use add_basic_prefix_cmd. | |
6847 | * dwarf2/index-cache.c (set_index_cache_command): Remove. | |
6848 | (_initialize_index_cache): Use add_basic_prefix_cmd. | |
6849 | * memattr.c (dummy_cmd): Remove. | |
6850 | (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd. | |
6851 | * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove. | |
6852 | (_initialize_tui_win): Use add_basic_prefix_cmd, | |
6853 | add_show_prefix_cmd. | |
6854 | * cli/cli-logging.c (set_logging_command): Remove. | |
6855 | (_initialize_cli_logging): Use add_basic_prefix_cmd, | |
6856 | add_show_prefix_cmd. | |
6857 | (show_logging_command): Remove. | |
6858 | * target.c (target_command): Remove. | |
6859 | (add_target): Use add_basic_prefix_cmd. | |
6860 | ||
a51119cd HD |
6861 | 2020-05-02 Hannes Domani <ssbssa@yahoo.de> |
6862 | ||
6863 | * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo. | |
6864 | ||
652fc23a | 6865 | 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 6866 | |
652fc23a PW |
6867 | * gdb-gdb.gdb-in: Remove breakpoint on disappeared function |
6868 | info_command. | |
6869 | ||
117539e6 KR |
6870 | 2020-04-30 Kamil Rytarowski <n54@gmx.com> |
6871 | ||
6872 | * nbsd-nat.c (nbsd_enable_proc_events) | |
6873 | (nbsd_nat_target::post_startup_inferior): Add. | |
6874 | (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'. | |
6875 | (nbsd_nat_target::update_thread_list): Rewrite. | |
6876 | (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and | |
6877 | "PTRACE_LWP_CREATE". | |
6878 | * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add. | |
6879 | ||
102e38eb | 6880 | 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
6a6ea76a | 6881 | |
102e38eb PW |
6882 | * stack.c (_initialize_stack): Remove duplicated creation |
6883 | of "frame" command and "f" alias. | |
6884 | ||
ee9d1e5f HD |
6885 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
6886 | ||
6887 | PR gdb/18706 | |
6888 | * gdbtypes.c (check_typedef): Calculate size of array of | |
6889 | stubbed type. | |
6890 | ||
627c7fb8 HD |
6891 | 2020-04-30 Hannes Domani <ssbssa@yahoo.de> |
6892 | ||
6893 | PR gdb/15559 | |
6894 | * i386-tdep.c (i386_push_dummy_call): Call | |
6895 | i386_thiscall_push_dummy_call. | |
6896 | (i386_thiscall_push_dummy_call): New function. | |
6897 | * i386-tdep.h (i386_thiscall_push_dummy_call): Declare. | |
6898 | * i386-windows-tdep.c (i386_windows_push_dummy_call): New function. | |
6899 | (i386_windows_init_abi): Call set_gdbarch_push_dummy_call. | |
6900 | ||
ffc2844e SM |
6901 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
6902 | ||
6903 | * gdbarch.sh (do_read): Add shellcheck disable directive for | |
6904 | warning SC2162. | |
6905 | ||
1207375d SM |
6906 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
6907 | ||
6908 | * gdbarch.sh: Use ${foo:-} where shellcheck would report a | |
6909 | "referenced but not assigned" warning. | |
6910 | ||
9fdb2916 SM |
6911 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
6912 | ||
6913 | * gdbarch.sh: Remove code that sets fallbackdefault. | |
6914 | ||
759cea5e SM |
6915 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
6916 | ||
6917 | * gdbarch.sh: Use shell operators && and || instead of | |
6918 | -a and -o. | |
6919 | ||
cb02ab24 SM |
6920 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
6921 | ||
6922 | * gdbarch.sh: Use $(...) instead of `...`. | |
6923 | ||
a6fc5ffc SM |
6924 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
6925 | ||
6926 | * gdbarch.sh: Use double quotes around variables. | |
6927 | ||
8d113d13 SM |
6928 | 2020-04-29 Simon Marchi <simon.marchi@efficios.com> |
6929 | ||
6930 | * gdbarch.sh: Use %s with printf, instead of variables in the | |
6931 | format string. | |
6932 | ||
ed6acedd TT |
6933 | 2020-04-29 Tom Tromey <tromey@adacore.com> |
6934 | ||
6935 | PR ada/25875: | |
6936 | * dwarf2/read.c (update_enumeration_type_from_children): Compute | |
6937 | type fields here. | |
6938 | (read_enumeration_type): Call | |
6939 | update_enumeration_type_from_children later. Update comments. | |
6940 | (process_enumeration_scope): Don't create type fields. | |
6941 | ||
b68b1b58 KR |
6942 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
6943 | ||
6944 | * nbsd-tdep.c: Include "xml-syscall.h". | |
6945 | (nbsd_init_abi): Call `set_xml_syscall_file_name'. | |
6946 | ||
f94b2e03 KR |
6947 | 2020-04-29 Kamil Rytarowski <n54@gmx.com> |
6948 | ||
6949 | * nbsd-nat.c: Include "sys/wait.h". | |
6950 | (nbsd_resume, nbsd_nat_target::resume, nbsd_wait) | |
6951 | (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint) | |
6952 | (nbsd_nat_target::remove_exec_catchpoint) | |
6953 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
6954 | * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait) | |
6955 | (nbsd_nat_target::insert_exec_catchpoint) | |
6956 | (nbsd_nat_target::remove_exec_catchpoint) | |
6957 | (nbsd_nat_target::set_syscall_catchpoint): Add. | |
6958 | * nbsd-tdep.c (nbsd_get_syscall_number): Add. | |
6959 | (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass | |
6960 | `nbsd_get_syscall_number'. | |
6961 | ||
fc49bc72 TT |
6962 | 2020-04-29 Tom Tromey <tom@tromey.com> |
6963 | ||
6964 | * stack.c (print_block_frame_labels): Remove. | |
6965 | ||
d642b692 HD |
6966 | 2020-04-29 Hannes Domani <ssbssa@yahoo.de> |
6967 | ||
6968 | PR gdb/17320 | |
6969 | * ada-valprint.c (val_print_packed_array_elements): Move array | |
6970 | end bracket to new line. | |
6971 | (ada_val_print_string): Remove extra spaces before first array | |
6972 | element. | |
6973 | * c-valprint.c (c_value_print_array): Likewise. | |
6974 | * m2-valprint.c (m2_print_array_contents): Likewise. | |
6975 | (m2_value_print_inner): Likewise. | |
6976 | * p-valprint.c (pascal_value_print_inner): Likewise. | |
6977 | * valprint.c (generic_val_print_array): Likewise. | |
6978 | (value_print_array_elements): Move first array element and array | |
6979 | end bracket to new line. | |
6980 | ||
ea90f227 TV |
6981 | 2020-04-29 Tom de Vries <tdevries@suse.de> |
6982 | ||
6983 | PR symtab/25889 | |
6984 | * linespec.c (find_method): Fix ix calculation. | |
6985 | ||
4498ef4f KR |
6986 | 2020-04-28 Kamil Rytarowski <n54@gmx.com> |
6987 | ||
6988 | * syscalls/update-netbsd.sh: New file. | |
6989 | * syscalls/netbsd.xml: Regenerate. | |
6990 | * data-directory/Makefile.in: Register `netbsd.xml' in | |
6991 | `SYSCALLS_FILES'. | |
6992 | ||
a55e30b5 SM |
6993 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
6994 | ||
6995 | * syscalls/update-freebsd.sh: Add double quotes. | |
6996 | ||
2b2fbab8 TT |
6997 | 2020-04-28 Tom Tromey <tom@tromey.com> |
6998 | ||
6999 | * NEWS: Update. | |
7000 | * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI. | |
7001 | (cmdpy_init): Allow class_tui. | |
7002 | ||
a65189c9 TV |
7003 | 2020-04-28 Mark Williams <mark@myosotissp.com> |
7004 | ||
7005 | PR gdb/24480 | |
7006 | * dwarf2read.c: Add missing assingments to list_in_scope when | |
7007 | start_symtab was already called. | |
7008 | ||
1b95cdb7 SM |
7009 | 2020-04-28 Simon Marchi <simon.marchi@efficios.com> |
7010 | ||
7011 | PR gdb/25881 | |
7012 | * dwarf2/read.c (offset_map_type): Use | |
7013 | gdb:hash_enum<sect_offset> as hash function. | |
7014 | ||
15cd93d0 TV |
7015 | 2020-04-28 Tom de Vries <tdevries@suse.de> |
7016 | ||
7017 | * dwarf2/read.c (process_structure_scope): Add symbol for struct decl | |
7018 | with DW_AT_signature. | |
7019 | ||
1eb39914 SM |
7020 | 2020-04-27 Simon Marchi <simon.marchi@efficios.com> |
7021 | ||
7022 | * configure.ac: Remove check for fs_base/gs_base in | |
7023 | user_regs_struct. | |
7024 | * configure: Re-generate. | |
7025 | * config.in: Re-generate. | |
7026 | * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust. | |
7027 | * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers, | |
7028 | amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust. | |
7029 | ||
991a3e2e LM |
7030 | 2020-04-27 Luis Machado <luis.machado@linaro.org> |
7031 | ||
7032 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle | |
7033 | problematic inline frame unwinding situation. | |
7034 | * frame.c (frame_id_computed_p): New function. | |
7035 | * frame.h (frame_id_computed_p): New prototype. | |
7036 | ||
361ba0e8 TT |
7037 | 2020-04-26 Tom Tromey <tom@tromey.com> |
7038 | ||
7039 | * command.h (enum command_class) <class_pseudo>: Remove. | |
7040 | ||
bc3609fd PW |
7041 | 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
7042 | ||
7043 | * cli/cli-decode.c (lookup_cmd_composition): Fix comments | |
7044 | and whitespace. | |
7045 | ||
b9771db7 KR |
7046 | 2020-04-25 Kamil Rytarowski <n54@gmx.com> |
7047 | ||
ec16513e SM |
7048 | * inf-ptrace.c (inf_ptrace_target::wait): Remove |
7049 | `PT_GET_PROCESS_STATE' block. | |
b9771db7 | 7050 | |
7151c1af TT |
7051 | 2020-04-24 Tom Tromey <tom@tromey.com> |
7052 | ||
7053 | * symtab.h (symbol_get_demangled_name): Don't declare. | |
7054 | * symtab.c (symbol_get_demangled_name): Remove. | |
7055 | (general_symbol_info::natural_name) | |
7056 | (general_symbol_info::demangled_name): Update. | |
7057 | ||
906bb4c5 TT |
7058 | 2020-04-24 Tom Tromey <tom@tromey.com> |
7059 | ||
7060 | PR rust/25025: | |
7061 | * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust. | |
7062 | ||
bcfe6157 TT |
7063 | 2020-04-24 Tom Tromey <tom@tromey.com> |
7064 | ||
7065 | PR symtab/12707: | |
7066 | * dwarf2/read.c (add_partial_symbol): Use the linkage name if it | |
7067 | exists. | |
7068 | (new_symbol): Likewise. | |
7069 | * compile/compile-object-load.c (get_out_value_type): Use | |
7070 | symbol_matches_search_name. | |
7071 | ||
f049a313 TT |
7072 | 2020-04-24 Tom Tromey <tom@tromey.com> |
7073 | ||
7074 | * dwarf2/read.c (add_partial_symbol): Do not call | |
7075 | compute_and_set_names. | |
7076 | ||
76e288d1 TT |
7077 | 2020-04-24 Tom Tromey <tom@tromey.com> |
7078 | ||
7079 | * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list | |
7080 | overload. | |
7081 | ||
2467f4f6 TT |
7082 | 2020-04-24 Tom Tromey <tom@tromey.com> |
7083 | ||
7084 | * psymtab.c (add_psymbol_to_bcache): Simplify calling convention. | |
7085 | (add_psymbol_to_list): New overload. Make old overload call new | |
7086 | one. | |
7087 | * psympriv.h (add_psymbol_to_list): New overload. | |
7088 | ||
e61108c9 TT |
7089 | 2020-04-24 Tom Tromey <tom@tromey.com> |
7090 | ||
7091 | * dwarf2/read.c (partial_die_info::read) <case | |
7092 | DW_AT_linkage_name>: Use value_as_string. | |
7093 | (dwarf2_string_attr): Use value_as_string. | |
7094 | * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare | |
7095 | method. | |
7096 | * dwarf2/attribute.c (attribute::value_as_string): New method. | |
7097 | ||
8c87a452 TT |
7098 | 2020-04-24 Tom Tromey <tom@tromey.com> |
7099 | ||
7100 | * symtab.c (general_symbol_info::natural_name) | |
7101 | (general_symbol_info::demangled_name): Check for language_rust. | |
7102 | ||
787de330 TT |
7103 | 2020-04-24 Tom Tromey <tom@tromey.com> |
7104 | ||
7105 | * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here... | |
7106 | (dwarf2_physname): ... from here. | |
7107 | (partial_die_info::read): Add Rust "{" hack. | |
7108 | ||
ff985671 TT |
7109 | 2020-04-24 Tom Tromey <tom@tromey.com> |
7110 | ||
7111 | * symtab.h (struct general_symbol_info) <set_demangled_name>: New | |
7112 | method. | |
7113 | (symbol_set_demangled_name): Don't declare. | |
7114 | * symtab.c (general_symbol_info::set_demangled_name): Rename from | |
7115 | symbol_set_demangled_name. | |
7116 | (general_symbol_info::set_language) | |
7117 | (general_symbol_info::compute_and_set_names): Update. | |
7118 | * minsyms.c (minimal_symbol_reader::install): Update. | |
7119 | * dwarf2/read.c (new_symbol): Update. | |
7120 | ||
1acda803 TT |
7121 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
7122 | ||
7123 | PR python/23662: | |
7124 | * python/py-type.c (convert_field): Handle | |
7125 | FIELD_LOC_KIND_DWARF_BLOCK. | |
7126 | (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH. | |
7127 | (typy_get_dynamic): Nw function. | |
7128 | (type_object_getset): Add "dynamic". | |
7129 | * NEWS: Add entry. | |
7130 | ||
d656f129 TT |
7131 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
7132 | ||
7133 | * ada-typeprint.c (print_choices, print_variant_part) | |
7134 | (print_record_field_types_dynamic): New functions. | |
7135 | (print_record_field_types): Use print_record_field_types_dynamic. | |
7136 | ||
7d79de9a TT |
7137 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
7138 | ||
7139 | * dwarf2/read.c (handle_data_member_location): New overload. | |
7140 | (dwarf2_add_field): Use it. | |
7141 | (decode_locdesc): Add "computed" parameter. Update comment. | |
7142 | * gdbtypes.c (is_dynamic_type_internal): Also look for | |
7143 | FIELD_LOC_KIND_DWARF_BLOCK. | |
7144 | (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK. | |
7145 | * gdbtypes.c (is_dynamic_type_internal): Add special case for C++ | |
7146 | virtual base classes. | |
7147 | * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle | |
7148 | FIELD_LOC_KIND_DWARF_BLOCK. | |
7149 | ||
f8e89861 TT |
7150 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
7151 | ||
7152 | * dwarf2/read.c (read_structure_type): Handle dynamic length. | |
7153 | * gdbtypes.c (is_dynamic_type_internal): Check | |
7154 | TYPE_HAS_DYNAMIC_LENGTH. | |
7155 | (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH. | |
7156 | * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH): | |
7157 | New macros. | |
7158 | (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New | |
7159 | constant. | |
7160 | ||
9c6a1327 TT |
7161 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
7162 | ||
7163 | * dwarf2/read.c (struct variant_field): Rewrite. | |
7164 | (struct variant_part_builder): New. | |
7165 | (struct nextfield): Remove "variant" field. Add "offset". | |
7166 | (struct field_info): Add "current_variant_part" and | |
7167 | "variant_parts". | |
7168 | (alloc_discriminant_info): Remove. | |
7169 | (alloc_rust_variant): New function. | |
7170 | (quirk_rust_enum): Update. | |
7171 | (dwarf2_add_field): Set "offset" member. Don't handle | |
7172 | DW_TAG_variant_part. | |
7173 | (offset_map_type): New typedef. | |
7174 | (convert_variant_range, create_one_variant) | |
7175 | (create_one_variant_part, create_variant_parts) | |
7176 | (add_variant_property): New functions. | |
7177 | (dwarf2_attach_fields_to_type): Call add_variant_property. | |
7178 | (read_structure_type): Don't handle DW_TAG_variant_part. | |
7179 | (handle_variant_part, handle_variant): New functions. | |
7180 | (handle_struct_member_die): Use them. | |
7181 | (process_structure_scope): Don't handle variant parts. | |
7182 | * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove. | |
7183 | (struct discriminant_info): Remove. | |
7184 | (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove. | |
7185 | (struct main_type) <flag_discriminated_union>: Remove. | |
7186 | * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite. | |
7187 | (rust_enum_variant): Return int. Remove "contents". Rewrite. | |
7188 | (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp): | |
7189 | Update. | |
7190 | * valops.c (value_union_variant): Remove. | |
7191 | * value.h (value_union_variant): Don't declare. | |
7192 | ||
b249d2c2 TT |
7193 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
7194 | ||
7195 | * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low) | |
7196 | (ada_value_primitive_packed_val): Update. | |
7197 | * ada-valprint.c (ada_value_print_1): Update. | |
7198 | * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct. | |
7199 | (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than | |
7200 | just an address. Use evaluate_for_locexpr_baton. | |
7201 | (dwarf2_evaluate_property): Update. | |
7202 | * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an | |
7203 | array_view. | |
7204 | * findvar.c (default_read_var_value): Update. | |
7205 | * gdbtypes.c (compute_variant_fields_inner) | |
7206 | (resolve_dynamic_type_internal): Update. | |
7207 | (resolve_dynamic_type): Change type of valaddr parameter. | |
7208 | * gdbtypes.h (resolve_dynamic_type): Update. | |
7209 | * valarith.c (value_subscripted_rvalue): Update. | |
7210 | * value.c (value_from_contents_and_address): Update. | |
7211 | ||
61122aa9 TT |
7212 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
7213 | ||
7214 | * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add | |
7215 | "push_initial_value" parameter. | |
7216 | (dwarf2_evaluate_property): Likewise. | |
7217 | * dwarf2/loc.h (dwarf2_evaluate_property): Update. | |
7218 | ||
ef83a141 TT |
7219 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
7220 | ||
7221 | * gdbtypes.c (is_dynamic_type_internal): Check for variant parts. | |
7222 | (variant::matches, compute_variant_fields_recurse) | |
7223 | (compute_variant_fields_inner, compute_variant_fields): New | |
7224 | functions. | |
7225 | (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS. | |
7226 | Use resolved_type after type is made. | |
7227 | (operator==): Add new cases. | |
7228 | * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro. | |
7229 | (struct discriminant_range, struct variant, struct variant_part): | |
7230 | New. | |
7231 | (union dynamic_prop_data) <variant_parts, original_type>: New | |
7232 | members. | |
7233 | (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant. | |
7234 | (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New | |
7235 | constants. | |
7236 | * value.c (unpack_bits_as_long): Now public. | |
7237 | * value.h (unpack_bits_as_long): Declare. | |
7238 | ||
675127ec TT |
7239 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
7240 | ||
7241 | * rs6000-tdep.c (struct ppc_variant): Rename from "variant". | |
7242 | (variants, find_variant_by_arch, rs6000_gdbarch_init): Update. | |
7243 | ||
9852ceef HD |
7244 | 2020-04-24 Hannes Domani <ssbssa@yahoo.de> |
7245 | ||
7246 | * windows-tdep.c (exception_values): Add WOW64 exception numbers. | |
7247 | ||
7632c6ce KR |
7248 | 2020-04-24 Kamil Rytarowski <n54@gmx.com> |
7249 | ||
7250 | * inf-ptrace.h (follow_fork, insert_fork_catchpoint) | |
7251 | (remove_fork_catchpoint, post_startup_inferior) | |
7252 | (post_attach): Move... | |
7253 | * obsd-nat.h (follow_fork, insert_fork_catchpoint) | |
7254 | (remove_fork_catchpoint, post_startup_inferior) | |
7255 | (post_attach): ...here. | |
7256 | * inf-ptrace.c (follow_fork, insert_fork_catchpoint) | |
7257 | (remove_fork_catchpoint, post_startup_inferior) | |
7258 | (post_attach): Move... | |
7259 | * obsd-nat.c (follow_fork, insert_fork_catchpoint) | |
7260 | (remove_fork_catchpoint, post_startup_inferior) | |
7261 | (post_attach): ...here. | |
7262 | ||
7be2bb4f TT |
7263 | 2020-04-24 Tom Tromey <tromey@adacore.com> |
7264 | ||
7265 | * nat/windows-nat.h (struct windows_thread_info) | |
7266 | <pc_adjusted>: New member. | |
7267 | * windows-nat.c (windows_fetch_one_register): Check | |
7268 | pc_adjusted. | |
7269 | (windows_nat_target::get_windows_debug_event) | |
7270 | (windows_nat_target::wait): Set pc_adjusted. | |
7271 | ||
f80cb3b4 TV |
7272 | 2020-04-24 Tom de Vries <tdevries@suse.de> |
7273 | ||
7274 | * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling. | |
7275 | Run gdb-add-index inside temp dir. | |
7276 | ||
29514b87 TT |
7277 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
7278 | ||
7279 | * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter" | |
7280 | in loop. | |
7281 | ||
5939967b LM |
7282 | 2020-04-23 Luis Machado <luis.machado@linaro.org> |
7283 | ||
7284 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use | |
7285 | get_frame_register instead of gdbarch_unwind_pc. | |
7286 | ||
70bc38f5 TV |
7287 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
7288 | ||
7289 | * symtab.c (lookup_global_symbol): Prefer def over decl. | |
7290 | ||
de82891c TV |
7291 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
7292 | ||
7293 | PR symtab/25807 | |
7294 | * block.c (best_symbol, better_symbol): Promote to external. | |
7295 | * block.h (best_symbol, better_symbol): Declare. | |
7296 | * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over | |
7297 | decl. | |
7298 | ||
ecc6c606 TT |
7299 | 2020-04-23 Tom Tromey <tromey@adacore.com> |
7300 | ||
7301 | PR ada/25837: | |
7302 | * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a | |
7303 | "const char *", not a "const std::string &". | |
7304 | <name_and_matcher::operator==>: Update. | |
7305 | * unittests/lookup_name_info-selftests.c: Change type of | |
7306 | "result". | |
7307 | ||
740480b8 TT |
7308 | 2020-04-23 Tom Tromey <tom@tromey.com> |
7309 | ||
7310 | * inferior.h (iterate_over_inferiors): Don't declare. | |
7311 | * inferior.c (iterate_over_inferiors): Remove. | |
7312 | * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it): | |
7313 | Remove. | |
7314 | (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't | |
7315 | use iterate_over_inferiors. | |
7316 | (darwin_resume_inferior_it) | |
7317 | (struct resume_inferior_threads_param) | |
7318 | (darwin_resume_inferior_threads_it): Remove. | |
7319 | (darwin_nat_target::resume): Don't use iterate_over_inferiors. | |
7320 | ||
ae3ab1f0 TV |
7321 | 2020-04-23 Tom de Vries <tdevries@suse.de> |
7322 | ||
7323 | * blockframe.c (find_pc_partial_function): Use | |
7324 | find_pc_sect_compunit_symtab rather than | |
7325 | objfile->sf->qf->find_pc_sect_compunit_symtab. | |
7326 | ||
317d2668 TV |
7327 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
7328 | ||
7329 | PR symtab/25764 | |
7330 | * dwarf2/read.c (scan_partial_symbols): Allow external variable decls | |
7331 | in psymtabs. | |
7332 | ||
eea9e357 TV |
7333 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
7334 | ||
7335 | PR symtab/25801 | |
7336 | * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared | |
7337 | symtabs. | |
7338 | ||
3d5afab3 TV |
7339 | 2020-04-22 Tom de Vries <tdevries@suse.de> |
7340 | ||
7341 | PR symtab/25700 | |
7342 | * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for | |
7343 | CU if already created. | |
7344 | ||
d43b7a2d TBA |
7345 | 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
7346 | ||
7347 | * infrun.c (displaced_step_fixup): Switch to the event_thread | |
7348 | before calling displaced_step_restore, not after. | |
7349 | ||
d89edf9b MM |
7350 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
7351 | ||
7352 | * record-btrace.c (record_btrace_enable_warn): Ignore thread if | |
7353 | its inferior is not recorded by us. | |
7354 | (record_btrace_target_open): Replace call to | |
7355 | all_non_exited_threads () with call to current_inferior | |
7356 | ()->non_exited_threads (). | |
7357 | (record_btrace_target::stop_recording): Likewise. | |
7358 | (record_btrace_target::close): Likewise. | |
7359 | (record_btrace_target::wait): Likewise. | |
7360 | (record_btrace_target::record_stop_replaying): Likewise. | |
7361 | ||
5897fd49 MM |
7362 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
7363 | ||
7364 | * btrace.c (btrace_enable): Throw an error on double enables and | |
7365 | when enabling recording fails. | |
7366 | (btrace_disable): Throw an error if the thread is not recorded. | |
7367 | ||
1a476b6d MM |
7368 | 2020-04-21 Markus Metzger <markus.t.metzger@intel.com> |
7369 | ||
7370 | * record-btrace.c (record_btrace_target::fetch_registers): Forward | |
7371 | request if we do not have a thread_info. | |
7372 | ||
4778a5f8 TV |
7373 | 2020-04-21 Tom de Vries <tdevries@suse.de> |
7374 | ||
7375 | PR gdb/25471 | |
7376 | * thread.c | |
7377 | (scoped_restore_current_thread::scoped_restore_current_thread): Catch | |
7378 | exception in get_frame_id. | |
7379 | ||
0fa7617d TT |
7380 | 2020-04-20 Tom Tromey <tromey@adacore.com> |
7381 | ||
7382 | * python/python.c (struct gdbpy_event): Mark move constructor as | |
7383 | noexcept. | |
7384 | * python/py-tui.c (class gdbpy_tui_window_maker): Mark move | |
7385 | constructor as noexcept. | |
7386 | * completer.h (struct completion_result): Mark move constructor as | |
7387 | noexcept. | |
7388 | * completer.c (completion_result::completion_result): Use | |
7389 | initialization style. Don't call reset_match_list. | |
7390 | ||
ad23bda0 MS |
7391 | 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com> |
7392 | ||
7393 | * MAINTAINERS (Write After Approval): Add myself. | |
7394 | ||
45e1f031 TT |
7395 | 2020-04-18 Tom Tromey <tom@tromey.com> |
7396 | ||
7397 | * windows-tdep.c (init_w32_command_list) | |
7398 | (w32_prefix_command_valid): Restore. | |
7399 | (_initialize_windows_tdep): Call init_w32_command_list. | |
7400 | ||
08feed99 TT |
7401 | 2020-04-18 Tom Tromey <tom@tromey.com> |
7402 | ||
7403 | * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update. | |
7404 | * value.c (value_fn_field): Update. | |
7405 | * valops.c (find_function_in_inferior) | |
7406 | (value_allocate_space_in_inferior): Update. | |
7407 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
7408 | Update. | |
7409 | * tui/tui-source.c (tui_source_window::set_contents): Update. | |
7410 | * symtab.c (lookup_global_or_static_symbol) | |
7411 | (find_function_start_sal_1, skip_prologue_sal) | |
7412 | (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update. | |
7413 | * symmisc.c (dump_msymbols, dump_symtab_1) | |
7414 | (maintenance_print_one_line_table): Update. | |
7415 | * symfile.c (init_entry_point_info, section_is_mapped) | |
7416 | (list_overlays_command, simple_read_overlay_table) | |
7417 | (simple_overlay_update_1): Update. | |
7418 | * stap-probe.c (handle_stap_probe): Update. | |
7419 | * stabsread.c (dbx_init_float_type, define_symbol) | |
7420 | (read_one_struct_field, read_enum_type, read_range_type): Update. | |
7421 | * source.c (info_line_command): Update. | |
7422 | * python/python.c (gdbpy_source_objfile_script) | |
7423 | (gdbpy_execute_objfile_script): Update. | |
7424 | * python/py-type.c (save_objfile_types): Update. | |
7425 | * python/py-objfile.c (py_free_objfile): Update. | |
7426 | * python/py-inferior.c (python_new_objfile): Update. | |
7427 | * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab) | |
7428 | (dump_psymtab_addrmap_1, maintenance_info_psymtabs) | |
7429 | (maintenance_check_psymtabs): Update. | |
7430 | * printcmd.c (info_address_command): Update. | |
7431 | * objfiles.h (struct objfile) <arch>: New method, from | |
7432 | get_objfile_arch. | |
7433 | (get_objfile_arch): Don't declare. | |
7434 | * objfiles.c (get_objfile_arch): Remove. | |
7435 | (filter_overlapping_sections): Update. | |
7436 | * minsyms.c (msymbol_is_function): Update. | |
7437 | * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines) | |
7438 | (output_nondebug_symbol): Update. | |
7439 | * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols) | |
7440 | (mdebug_expand_psymtab): Update. | |
7441 | * machoread.c (macho_add_oso_symfile): Update. | |
7442 | * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap): | |
7443 | Update. | |
7444 | * linux-fork.c (checkpoint_command): Update. | |
7445 | * linespec.c (convert_linespec_to_sals): Update. | |
7446 | * jit.c (finalize_symtab): Update. | |
7447 | * infrun.c (insert_exception_resume_from_probe): Update. | |
7448 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
7449 | * hppa-tdep.c (internalize_unwinds): Update. | |
7450 | * gdbtypes.c (get_type_arch, init_float_type, objfile_type): | |
7451 | Update. | |
7452 | * gcore.c (call_target_sbrk): Update. | |
7453 | * elfread.c (record_minimal_symbol, elf_symtab_read) | |
7454 | (elf_rel_plt_read, elf_gnu_ifunc_record_cache) | |
7455 | (elf_gnu_ifunc_resolve_by_got): Update. | |
7456 | * dwarf2/read.c (create_addrmap_from_index) | |
7457 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
7458 | (read_debug_names_from_section) | |
7459 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
7460 | (add_partial_subprogram, process_full_comp_unit) | |
7461 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
7462 | (read_call_site_scope, dwarf2_ranges_read) | |
7463 | (dwarf2_record_block_ranges, dwarf2_add_field) | |
7464 | (mark_common_block_symbol_computed, read_tag_pointer_type) | |
7465 | (read_tag_string_type, dwarf2_init_float_type) | |
7466 | (dwarf2_init_complex_target_type, read_base_type) | |
7467 | (partial_die_info::read, partial_die_info::read) | |
7468 | (read_attribute_value, dwarf_decode_lines_1, new_symbol) | |
7469 | (dwarf2_fetch_die_loc_sect_off): Update. | |
7470 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
7471 | (class dwarf_evaluate_loc_desc, rw_pieced_value) | |
7472 | (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval) | |
7473 | (dwarf2_loc_desc_get_symbol_read_needs) | |
7474 | (locexpr_describe_location_piece, locexpr_describe_location_1) | |
7475 | (loclist_describe_location): Update. | |
7476 | * dwarf2/index-write.c (write_debug_names): Update. | |
7477 | * dwarf2/frame.c (dwarf2_build_frame_info): Update. | |
7478 | * dtrace-probe.c (dtrace_process_dof): Update. | |
7479 | * dbxread.c (read_dbx_symtab, dbx_end_psymtab) | |
7480 | (process_one_symbol): Update. | |
7481 | * ctfread.c (ctf_init_float_type, read_base_type): Update. | |
7482 | * coffread.c (coff_symtab_read, enter_linenos, decode_base_type) | |
7483 | (coff_read_enum_type): Update. | |
7484 | * cli/cli-cmds.c (edit_command, list_command): Update. | |
7485 | * buildsym.c (buildsym_compunit::finish_block_internal): Update. | |
7486 | * breakpoint.c (create_overlay_event_breakpoint) | |
7487 | (create_longjmp_master_breakpoint) | |
7488 | (create_std_terminate_master_breakpoint) | |
7489 | (create_exception_master_breakpoint, get_sal_arch): Update. | |
7490 | * block.c (block_gdbarch): Update. | |
7491 | * annotate.c (annotate_source_line): Update. | |
7492 | ||
0743fc83 TT |
7493 | 2020-04-17 Tom Tromey <tromey@adacore.com> |
7494 | ||
7495 | * auto-load.c (show_auto_load_cmd): Remove. | |
7496 | (auto_load_show_cmdlist_get): Use add_show_prefix_cmd. | |
7497 | * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd. | |
7498 | (maintenance_print_arc_command): Remove. | |
7499 | * tui/tui-win.c (tui_command): Remove. | |
7500 | (tui_get_cmd_list): Use add_basic_prefix_cmd. | |
7501 | * tui/tui-layout.c (tui_layout_command): Remove. | |
7502 | (_initialize_tui_layout): Use add_basic_prefix_cmd. | |
7503 | * python/python.c (user_set_python, user_show_python): Remove. | |
7504 | (_initialize_python): Use add_basic_prefix_cmd, | |
7505 | add_show_prefix_cmd. | |
7506 | * guile/guile.c (set_guile_command, show_guile_command): Remove. | |
7507 | (install_gdb_commands): Use add_basic_prefix_cmd, | |
7508 | add_show_prefix_cmd. | |
7509 | (info_guile_command): Remove. | |
7510 | * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove. | |
7511 | (_initialize_dwarf2_read): Use add_basic_prefix_cmd, | |
7512 | add_show_prefix_cmd. | |
7513 | * cli/cli-style.h (class cli_style_option) <add_setshow_commands>: | |
7514 | Remove do_set and do_show parameters. | |
7515 | * cli/cli-style.c (set_style, show_style): Remove. | |
7516 | (_initialize_cli_style): Use add_basic_prefix_cmd, | |
7517 | add_show_prefix_cmd. | |
7518 | (cli_style_option::add_setshow_commands): Remove do_set and | |
7519 | do_show parameters. | |
7520 | (cli_style_option::add_setshow_commands): Use | |
7521 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
7522 | (STYLE_ADD_SETSHOW_COMMANDS): Remove macro. | |
7523 | (set_style_name): Remove. | |
7524 | * cli/cli-dump.c (dump_command, append_command): Remove. | |
7525 | (srec_dump_command, ihex_dump_command, verilog_dump_command) | |
7526 | (tekhex_dump_command, binary_dump_command) | |
7527 | (binary_append_command): Remove. | |
7528 | (_initialize_cli_dump): Use add_basic_prefix_cmd. | |
7529 | * windows-tdep.c (w32_prefix_command_valid): Remove global. | |
7530 | (init_w32_command_list): Remove; move into ... | |
7531 | (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd. | |
7532 | * valprint.c (set_print, show_print, set_print_raw) | |
7533 | (show_print_raw): Remove. | |
7534 | (_initialize_valprint): Use add_basic_prefix_cmd, | |
7535 | add_show_prefix_cmd. | |
7536 | * typeprint.c (set_print_type, show_print_type): Remove. | |
7537 | (_initialize_typeprint): Use add_basic_prefix_cmd, | |
7538 | add_show_prefix_cmd. | |
7539 | * record.c (set_record_command, show_record_command): Remove. | |
7540 | (_initialize_record): Use add_basic_prefix_cmd, | |
7541 | add_show_prefix_cmd. | |
7542 | * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd, | |
7543 | add_show_prefix_cmd. | |
7544 | (info_command, show_command, set_debug, show_debug): Remove. | |
7545 | * top.h (set_history, show_history): Don't declare. | |
7546 | * top.c (set_history, show_history): Remove. | |
7547 | * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd) | |
7548 | (unset_tdesc_cmd): Remove. | |
7549 | (_initialize_target_descriptions): Use add_basic_prefix_cmd, | |
7550 | add_show_prefix_cmd. | |
7551 | * symtab.c (info_module_command): Remove. | |
7552 | (_initialize_symtab): Use add_basic_prefix_cmd. | |
7553 | * symfile.c (overlay_command): Remove. | |
7554 | (_initialize_symfile): Use add_basic_prefix_cmd. | |
7555 | * sparc64-tdep.c (info_adi_command): Remove. | |
7556 | (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd. | |
7557 | * sh-tdep.c (show_sh_command, set_sh_command): Remove. | |
7558 | (_initialize_sh_tdep): Use add_basic_prefix_cmd, | |
7559 | add_show_prefix_cmd. | |
7560 | * serial.c (serial_set_cmd, serial_show_cmd): Remove. | |
7561 | (_initialize_serial): Use add_basic_prefix_cmd, | |
7562 | add_show_prefix_cmd. | |
7563 | * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove. | |
7564 | (_initialize_ser_tcp): Use add_basic_prefix_cmd, | |
7565 | add_show_prefix_cmd. | |
7566 | * rs6000-tdep.c (set_powerpc_command, show_powerpc_command) | |
7567 | (_initialize_rs6000_tdep): Use add_basic_prefix_cmd, | |
7568 | add_show_prefix_cmd. | |
7569 | * riscv-tdep.c (show_riscv_command, set_riscv_command) | |
7570 | (show_debug_riscv_command, set_debug_riscv_command): Remove. | |
7571 | (_initialize_riscv_tdep): Use add_basic_prefix_cmd, | |
7572 | add_show_prefix_cmd. | |
7573 | * remote.c (remote_command, set_remote_cmd): Remove. | |
7574 | (_initialize_remote): Use add_basic_prefix_cmd. | |
7575 | * record-full.c (set_record_full_command) | |
7576 | (show_record_full_command): Remove. | |
7577 | (_initialize_record_full): Use add_basic_prefix_cmd, | |
7578 | add_show_prefix_cmd. | |
7579 | * record-btrace.c (cmd_set_record_btrace) | |
7580 | (cmd_show_record_btrace, cmd_set_record_btrace_bts) | |
7581 | (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt) | |
7582 | (cmd_show_record_btrace_pt): Remove. | |
7583 | (_initialize_record_btrace): Use add_basic_prefix_cmd, | |
7584 | add_show_prefix_cmd. | |
7585 | * ravenscar-thread.c (set_ravenscar_command) | |
7586 | (show_ravenscar_command): Remove. | |
7587 | (_initialize_ravenscar): Use add_basic_prefix_cmd, | |
7588 | add_show_prefix_cmd. | |
7589 | * mips-tdep.c (show_mips_command, set_mips_command) | |
7590 | (_initialize_mips_tdep): Use add_basic_prefix_cmd, | |
7591 | add_show_prefix_cmd. | |
7592 | * maint.c (maintenance_command, maintenance_info_command) | |
7593 | (maintenance_check_command, maintenance_print_command) | |
7594 | (maintenance_set_cmd, maintenance_show_cmd): Remove. | |
7595 | (_initialize_maint_cmds): Use add_basic_prefix_cmd, | |
7596 | add_show_prefix_cmd. | |
7597 | (show_per_command_cmd): Remove. | |
7598 | * maint-test-settings.c (maintenance_set_test_settings_cmd): | |
7599 | Remove. | |
7600 | (maintenance_show_test_settings_cmd): Remove. | |
7601 | (_initialize_maint_test_settings): Use add_basic_prefix_cmd, | |
7602 | add_show_prefix_cmd. | |
7603 | * maint-test-options.c (maintenance_test_options_command): | |
7604 | Remove. | |
7605 | (_initialize_maint_test_options): Use add_basic_prefix_cmd. | |
7606 | * macrocmd.c (macro_command): Remove | |
7607 | (_initialize_macrocmd): Use add_basic_prefix_cmd. | |
7608 | * language.c (set_check, show_check): Remove. | |
7609 | (_initialize_language): Use add_basic_prefix_cmd, | |
7610 | add_show_prefix_cmd. | |
7611 | * infcmd.c (unset_command): Remove. | |
7612 | (_initialize_infcmd): Use add_basic_prefix_cmd. | |
7613 | * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove. | |
7614 | (_initialize_i386_tdep): Use add_basic_prefix_cmd, | |
7615 | add_show_prefix_cmd. | |
7616 | * go32-nat.c (go32_info_dos_command): Remove. | |
7617 | (_initialize_go32_nat): Use add_basic_prefix_cmd. | |
7618 | * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd) | |
7619 | (do_show_prefix_cmd, add_show_prefix_cmd): New functions. | |
7620 | * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove. | |
7621 | (_initialize_frame): Use add_basic_prefix_cmd, | |
7622 | add_show_prefix_cmd. | |
7623 | * dcache.c (set_dcache_command, show_dcache_command): Remove. | |
7624 | (_initialize_dcache): Use add_basic_prefix_cmd, | |
7625 | add_show_prefix_cmd. | |
7626 | * cp-support.c (maint_cplus_command): Remove. | |
7627 | (_initialize_cp_support): Use add_basic_prefix_cmd. | |
7628 | * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd) | |
7629 | (maint_btrace_show_cmd, maint_btrace_pt_set_cmd) | |
7630 | (maint_btrace_pt_show_cmd, _initialize_btrace): Use | |
7631 | add_basic_prefix_cmd, add_show_prefix_cmd. | |
7632 | * breakpoint.c (save_command): Remove. | |
7633 | (_initialize_breakpoint): Use add_basic_prefix_cmd. | |
7634 | * arm-tdep.c (set_arm_command, show_arm_command): Remove. | |
7635 | (_initialize_arm_tdep): Use add_basic_prefix_cmd, | |
7636 | add_show_prefix_cmd. | |
7637 | * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd) | |
7638 | (set_ada_command, show_ada_command): Remove. | |
7639 | (_initialize_ada_language): Use add_basic_prefix_cmd, | |
7640 | add_show_prefix_cmd. | |
7641 | * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare. | |
7642 | ||
3557f442 KR |
7643 | 2020-04-16 Kamil Rytarowski <n54@gmx.com> |
7644 | ||
7645 | * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove. | |
7646 | * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise. | |
7647 | ||
16197208 SM |
7648 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
7649 | ||
7650 | * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to | |
7651 | warning messages. | |
7652 | ||
00ac85d3 SM |
7653 | 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca> |
7654 | ||
7655 | * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where | |
7656 | import table is not at beginning of .idata section. | |
7657 | ||
381ce63f PA |
7658 | 2020-04-16 Pedro Alves <palves@redhat.com> |
7659 | ||
7660 | * inferior.c (delete_inferior): Use delete operator directly | |
7661 | instead of delete_program_space. | |
7662 | * progspace.c (add_program_space): New, factored out from | |
7663 | program_space::program_space. | |
7664 | (remove_program_space): New, factored out from | |
7665 | delete_program_space. | |
7666 | (program_space::program_space): Remove intro comment. Rewrite. | |
7667 | (program_space::~program_space): Remove intro comment. Call | |
7668 | remove_program_space. | |
7669 | (delete_program_space): Delete. | |
7670 | * progspace.h (program_space::program_space): Make explicit. Move | |
7671 | intro comment here, adjusted. | |
7672 | (program_space::~program_space): Move intro comment here, | |
7673 | adjusted. | |
7674 | (delete_program_space): Remove. | |
7675 | ||
a010605f TT |
7676 | 2020-04-16 Tom Tromey <tromey@adacore.com> |
7677 | ||
7678 | * windows-nat.c (windows_nat::handle_access_violation): New | |
7679 | function. | |
7680 | * nat/windows-nat.h (handle_access_violation): Declare. | |
7681 | * nat/windows-nat.c (handle_exception): Move Cygwin code to | |
7682 | windows-nat.c. Call handle_access_violation. | |
7683 | ||
efba5c23 TV |
7684 | 2020-04-16 Tom de Vries <tdevries@suse.de> |
7685 | ||
7686 | PR symtab/25791 | |
7687 | * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for | |
7688 | CUs without psymtab. | |
7689 | ||
97ed802d KB |
7690 | 2020-04-16 Kevin Buettner <kevinb@redhat.com> |
7691 | ||
7692 | * python/python.c (do_start_initialization): Don't call | |
7693 | PyEval_InitThreads for Python 3.9 and beyond. | |
7694 | ||
c7d64809 KR |
7695 | 2020-04-15 Kamil Rytarowski <n54@gmx.com> |
7696 | ||
7697 | * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to | |
7698 | thread functions. | |
7699 | (obsd_nat_target::wait): Likewise. | |
7700 | ||
ce127a96 TT |
7701 | 2020-04-15 Tom Tromey <tromey@adacore.com> |
7702 | ||
7703 | * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM) | |
7704 | (DEBUG_EXCEPT): Use debug_printf. | |
7705 | ||
99f1bc6a AB |
7706 | 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com> |
7707 | ||
7708 | * completer.c (class completion_tracker::completion_hash_entry) | |
7709 | <hash_name>: New member function. | |
7710 | (completion_tracker::discard_completions): New callback to hash a | |
7711 | completion_hash_entry, pass this to htab_create_alloc. | |
7712 | ||
a0e9b532 JT |
7713 | 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk> |
7714 | ||
7715 | * windows-nat.c (windows_make_so): Warn rather than stopping with | |
7716 | an error if realpath() fails. | |
7717 | ||
06ca5dd4 KR |
7718 | 2020-04-14 Kamil Rytarowski <n54@gmx.com> |
7719 | ||
7720 | * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New. | |
7721 | (nbsd_nat_target::info_proc): Add do_status. | |
7722 | ||
194d088f TV |
7723 | 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca> |
7724 | Tom de Vries <tdevries@suse.de> | |
7725 | ||
7726 | PR symtab/25718 | |
7727 | * psympriv.h (struct partial_symtab::read_symtab) | |
7728 | (struct partial_symtab::expand_psymtab) | |
7729 | (struct partial_symtab::read_dependencies): Update comments. | |
7730 | * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call | |
7731 | read_symtab for includer. | |
7732 | (struct dwarf2_include_psymtab::expand_psymtab): Assert false. | |
7733 | (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer. | |
7734 | (struct dwarf2_include_psymtab::m_readin): Remove. | |
7735 | (struct dwarf2_include_psymtab::includer): New member function. | |
7736 | (dwarf2_psymtab::expand_psymtab): Assert !readin. | |
7737 | ||
c1a66c06 TV |
7738 | 2020-04-14 Tom de Vries <tdevries@suse.de> |
7739 | ||
7740 | PR symtab/25720 | |
7741 | * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching | |
7742 | with NULL symbol_matcher and lookup_name. | |
7743 | * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher | |
7744 | and lookup_name. | |
7745 | * dwarf2/read.c (dw2_expand_symtabs_matching) | |
7746 | (dw2_debug_names_expand_symtabs_matching): Same. | |
7747 | * symfile.h (struct quick_symbol_functions::expand_symtabs_matching): | |
7748 | Make lookup_name a pointer. Update comment. | |
7749 | * symtab.c (global_symbol_searcher::expand_symtabs): Handle | |
7750 | lookup_name being a pointer. | |
7751 | * symfile.c (expand_symtabs_matching): Same. | |
7752 | * symfile-debug.c (debug_qf_expand_symtabs_matching): Same. | |
7753 | * linespec.c (iterate_over_all_matching_symtabs): Same. | |
7754 | ||
400b5eca TT |
7755 | 2020-04-13 Tom Tromey <tom@tromey.com> |
7756 | ||
7757 | * run-on-main-thread.c: Update include. | |
7758 | * unittests/main-thread-selftests.c: Update include. | |
7759 | * tui/tui-win.c: Update include. | |
7760 | * tui/tui-io.c: Update include. | |
7761 | * tui/tui-interp.c: Update include. | |
7762 | * tui/tui-hooks.c: Update include. | |
7763 | * top.h: Update include. | |
7764 | * top.c: Update include. | |
7765 | * ser-base.c: Update include. | |
7766 | * remote.c: Update include. | |
7767 | * remote-notif.c: Update include. | |
7768 | * remote-fileio.c: Update include. | |
7769 | * record-full.c: Update include. | |
7770 | * record-btrace.c: Update include. | |
7771 | * python/python.c: Update include. | |
7772 | * posix-hdep.c: Update include. | |
7773 | * mingw-hdep.c: Update include. | |
7774 | * mi/mi-main.c: Update include. | |
7775 | * mi/mi-interp.c: Update include. | |
7776 | * main.c: Update include. | |
7777 | * linux-nat.c: Update include. | |
7778 | * interps.c: Update include. | |
7779 | * infrun.c: Update include. | |
7780 | * inf-loop.c: Update include. | |
7781 | * event-top.c: Update include. | |
7782 | * event-loop.c: Move to ../gdbsupport/. | |
7783 | * event-loop.h: Move to ../gdbsupport/. | |
7784 | * async-event.h: Update include. | |
7785 | * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update. | |
7786 | ||
93b54c8e TT |
7787 | 2020-04-13 Tom Tromey <tom@tromey.com> |
7788 | ||
7789 | * tui/tui-win.c: Include async-event.h. | |
7790 | * remote.c: Include async-event.h. | |
7791 | * remote-notif.c: Include async-event.h. | |
7792 | * record-full.c: Include async-event.h. | |
7793 | * record-btrace.c: Include async-event.h. | |
7794 | * infrun.c: Include async-event.h. | |
7795 | * event-top.c: Include async-event.h. | |
7796 | * event-loop.h: Move some declarations to async-event.h. | |
7797 | * event-loop.c: Don't include ser-event.h or top.h. Move some | |
7798 | code to async-event.c. | |
7799 | * async-event.h: New file. | |
7800 | * async-event.c: New file. | |
7801 | * Makefile.in (COMMON_SFILES): Add async-event.c. | |
7802 | (HFILES_NO_SRCDIR): Add async-event.h. | |
7803 | ||
c1cd3163 TT |
7804 | 2020-04-13 Tom Tromey <tom@tromey.com> |
7805 | ||
7806 | * utils.c (flush_streams): New function. | |
7807 | * event-loop.c (gdb_wait_for_event): Call flush_streams. | |
7808 | ||
29f2bf4f TT |
7809 | 2020-04-13 Tom Tromey <tom@tromey.com> |
7810 | ||
7811 | * event-loop.c (handle_file_event): Use warning, not | |
7812 | printf_unfiltered. | |
7813 | ||
98029d02 TT |
7814 | 2020-04-13 Tom Tromey <tom@tromey.com> |
7815 | ||
7816 | * event-loop.c: Include <chrono>. | |
7817 | ||
06cc9596 TT |
7818 | 2020-04-13 Tom Tromey <tom@tromey.com> |
7819 | ||
7820 | * gdb_select.h: Move to ../gdbsupport/. | |
7821 | * event-loop.c: Update include path. | |
7822 | * top.c: Update include path. | |
7823 | * ser-base.c: Update include path. | |
7824 | * ui-file.c: Update include path. | |
7825 | * ser-tcp.c: Update include path. | |
7826 | * guile/scm-ports.c: Update include path. | |
7827 | * posix-hdep.c: Update include path. | |
7828 | * ser-unix.c: Update include path. | |
7829 | * gdb_usleep.c: Update include path. | |
7830 | * mingw-hdep.c: Update include path. | |
7831 | * inflow.c: Update include path. | |
7832 | * infrun.c: Update include path. | |
7833 | * event-top.c: Update include path. | |
7834 | ||
8ae8e197 TT |
7835 | 2020-04-13 Tom Tromey <tom@tromey.com> |
7836 | ||
7837 | * configure: Rebuild. | |
7838 | * configure.ac: Remove checks that are now in GDB_AC_COMMON. | |
7839 | ||
58cf28e8 TT |
7840 | 2020-04-13 Tom Tromey <tom@tromey.com> |
7841 | ||
7842 | * event-loop.h (start_event_loop): Don't declare. | |
7843 | * event-loop.c (start_event_loop): Move... | |
7844 | * main.c (start_event_loop): ...here. Now static. | |
7845 | ||
b7f999ae SDJ |
7846 | 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net> |
7847 | ||
7848 | * MAINTAINERS: Update my email address. | |
7849 | ||
1085dfd4 KR |
7850 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
7851 | ||
7852 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and | |
7853 | IP_ALL. | |
7854 | ||
49d1d1f5 KR |
7855 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
7856 | ||
7857 | * nbsd-nat.c (nbsd_pid_to_cmdline): Add. | |
aac66a4c | 7858 | (nbsd_nat_target::info_proc): Add do_cmdline. |
49d1d1f5 | 7859 | |
b4848d2a KR |
7860 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
7861 | ||
7862 | * nbsd-nat.c (nbsd_pid_to_cwd): Add. | |
aac66a4c | 7863 | (nbsd_nat_target::info_proc): Add do_cwd. |
b4848d2a | 7864 | |
51c133d5 KR |
7865 | 2020-04-12 Kamil Rytarowski <n54@gmx.com> |
7866 | ||
7867 | * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe. | |
7868 | ||
54b8cbd0 KR |
7869 | 2020-04-11 Kamil Rytarowski <n54@gmx.com> |
7870 | ||
7871 | * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h". | |
7872 | * nbsd-nat.c (nbsd_nat_target::find_memory_regions) | |
7873 | (nbsd_nat_target::info_proc): New functions. | |
7874 | * nbsd-nat.c (kinfo_get_vmmap): New function. | |
7875 | * nbsd-nat.c (nbsd_nat_target::info_proc) Use | |
7876 | nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry. | |
7877 | * nbsd-tdep.c (nbsd_info_proc_mappings_header) | |
7878 | (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New | |
7879 | functions. | |
7880 | * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE) | |
7881 | (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW) | |
7882 | (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP) | |
7883 | (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP) | |
7884 | (KINFO_VME_FLAG_GROWS_DOWN): New. | |
7885 | ||
cf83625d AS |
7886 | 2020-04-10 Artur Shepilko <nomadbyte@gmail.com> |
7887 | ||
7888 | * utils.c (copy_bitwise): Use unsigned 0 constant as operand of | |
7889 | bit shift. | |
7890 | ||
0c4311ab TT |
7891 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
7892 | ||
7893 | * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE. | |
7894 | ||
3e65b3e9 TT |
7895 | 2020-04-10 Tom Tromey <tromey@adacore.com> |
7896 | ||
7897 | * symtab.c (get_symbol_address, get_msymbol_address): Skip | |
7898 | separate debug files. | |
7899 | ||
13302e95 HD |
7900 | 2020-04-10 Hannes Domani <ssbssa@yahoo.de> |
7901 | ||
7902 | * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
7903 | Move to... | |
7904 | * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): | |
7905 | ... here. | |
7906 | * windows-nat.c (windows_nat_target::get_windows_debug_event): | |
7907 | Check for STATUS_WX86_BREAKPOINT. | |
7908 | (windows_nat_target::wait): Same. | |
7909 | ||
bdfc1e8a TV |
7910 | 2020-04-10 Tom de Vries <tdevries@suse.de> |
7911 | ||
7912 | PR cli/25808 | |
7913 | * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False. | |
7914 | ||
f4460aec SM |
7915 | 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca> |
7916 | ||
7917 | * MAINTAINERS (Global Maintainers): Add Tom de Vries. | |
7918 | (Write After Approval): Remove Tom de Vries. | |
7919 | ||
a25198bb BE |
7920 | 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de> |
7921 | ||
7922 | revert partially: | |
7923 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
7924 | ||
aac66a4c SM |
7925 | * buildsym.c (record_line): Fix undefined behavior and preserve |
7926 | lines at eof. | |
a25198bb | 7927 | |
206c98a6 KR |
7928 | 2020-04-09 Kamil Rytarowski <n54@gmx.com> |
7929 | ||
7930 | * auxv.h (svr4_auxv_parse): New. | |
7931 | * auxv.c (default_auxv_parse): Split into default_auxv_parse | |
7932 | and generic_auxv_parse. | |
7933 | (svr4_auxv_parse): Add. | |
7934 | * obsd-tdep.c: Include "auxv.h". | |
7935 | (obsd_auxv_parse): Remove. | |
7936 | (obsd_init_abi): Remove comment. | |
7937 | (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument | |
7938 | from `obsd_auxv_parse' to `svr4_auxv_parse'. | |
7939 | * nbsd-tdep.c: Include "auxv.h". | |
7940 | (nbsd_init_abi): Call set_gdbarch_auxv_parse. | |
7941 | ||
71fbdbaf TT |
7942 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
7943 | ||
7944 | * nat/windows-nat.h (last_wait_event): Don't declare. | |
7945 | (wait_for_debug_event): Update comment. | |
7946 | * nat/windows-nat.c (last_wait_event): Now static. | |
7947 | ||
2c1d95e8 TT |
7948 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
7949 | ||
7950 | * windows-nat.c (wait_for_debug_event): Move to | |
7951 | nat/windows-nat.c. | |
7952 | * nat/windows-nat.h (wait_for_debug_event): Declare. | |
7953 | * nat/windows-nat.c (wait_for_debug_event): Move from | |
7954 | windows-nat.c. No longer static. | |
7955 | ||
d2977bc4 TT |
7956 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
7957 | ||
7958 | * windows-nat.c (get_windows_debug_event): Use | |
7959 | fetch_pending_stop. | |
7960 | * nat/windows-nat.h (fetch_pending_stop): Declare. | |
7961 | * nat/windows-nat.c (fetch_pending_stop): New function. | |
7962 | ||
e758e19c TT |
7963 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
7964 | ||
7965 | * windows-nat.c (windows_continue): Use matching_pending_stop and | |
7966 | continue_last_debug_event. | |
7967 | * nat/windows-nat.h (matching_pending_stop) | |
7968 | (continue_last_debug_event): Declare. | |
7969 | * nat/windows-nat.c (DEBUG_EVENTS): New define. | |
7970 | (matching_pending_stop, continue_last_debug_event): New | |
7971 | functions. | |
7972 | ||
8d30e395 TT |
7973 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
7974 | ||
7975 | * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c. | |
7976 | (handle_exception_result): Move to nat/windows-nat.h. | |
7977 | (DEBUG_EXCEPTION_SIMPLE): Remove. | |
7978 | (windows_nat::handle_ms_vc_exception): New function. | |
7979 | (handle_exception): Move to nat/windows-nat.c. | |
7980 | (get_windows_debug_event): Update. | |
7981 | (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to | |
7982 | nat/windows-nat.c. | |
7983 | * nat/windows-nat.h (handle_ms_vc_exception): Declare. | |
7984 | (handle_exception_result): Move from windows-nat.c. | |
7985 | (handle_exception): Declare. | |
7986 | * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception) | |
7987 | (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from | |
7988 | windows-nat.c. | |
7989 | ||
29de418d TT |
7990 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
7991 | ||
7992 | * windows-nat.c (exception_count, event_count): Remove. | |
7993 | (handle_exception, get_windows_debug_event) | |
7994 | (do_initial_windows_stuff): Update. | |
7995 | ||
a816ba18 TT |
7996 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
7997 | ||
7998 | * windows-nat.c (windows_nat::handle_load_dll) | |
7999 | (windows_nat::handle_unload_dll): Rename. No longer static. | |
8000 | * nat/windows-nat.h (handle_load_dll, handle_unload_dll): | |
8001 | Declare. | |
8002 | ||
a00caa12 TT |
8003 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8004 | ||
8005 | * complaints.h (stop_whining): Declare at top-level. | |
8006 | (complaint): Don't declare stop_whining. | |
8007 | ||
d41b524f TT |
8008 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8009 | ||
8010 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
8011 | Rename. No longer static. | |
8012 | * nat/windows-nat.h (handle_output_debug_string): Declare. | |
8013 | ||
3c76026d TT |
8014 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8015 | ||
8016 | * windows-nat.c (current_process_handle, current_process_id) | |
8017 | (main_thread_id, last_sig, current_event, last_wait_event) | |
8018 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
8019 | (struct pending_stop, siginfo_er): Move to nat/windows-nat.c. | |
8020 | (display_selectors, fake_create_process) | |
8021 | (get_windows_debug_event): Update. | |
8022 | * nat/windows-nat.h (current_process_handle, current_process_id) | |
8023 | (main_thread_id, last_sig, current_event, last_wait_event) | |
8024 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
8025 | (struct pending_stop, siginfo_er): Move from windows-nat.c. | |
8026 | * nat/windows-nat.c (current_process_handle, current_process_id) | |
8027 | (main_thread_id, last_sig, current_event, last_wait_event) | |
8028 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
8029 | (siginfo_er): New globals. Move from windows-nat.c. | |
8030 | ||
9d8679cc TT |
8031 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8032 | ||
8033 | * windows-nat.c (get_image_name): Move to nat/windows-nat.c. | |
8034 | (handle_load_dll): Update. | |
8035 | * nat/windows-nat.c (get_image_name): Move from windows-nat.c. | |
8036 | ||
28688adf TT |
8037 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8038 | ||
8039 | * windows-nat.c (enum thread_disposition_type): Move to | |
8040 | nat/windows-nat.h. | |
8041 | (windows_nat::thread_rec): Rename from thread_rec. No longer | |
8042 | static. | |
8043 | (windows_add_thread, windows_nat_target::fetch_registers) | |
8044 | (windows_nat_target::store_registers, handle_exception) | |
8045 | (windows_nat_target::resume, get_windows_debug_event) | |
8046 | (windows_nat_target::get_tib_address) | |
8047 | (windows_nat_target::thread_name) | |
8048 | (windows_nat_target::thread_alive): Update. | |
8049 | * nat/windows-nat.h (enum thread_disposition_type): Move from | |
8050 | windows-nat.c. | |
8051 | (thread_rec): Declare. | |
8052 | ||
4834dad0 TT |
8053 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8054 | ||
8055 | * windows-nat.c: Add "using namespace". | |
8056 | * nat/windows-nat.h: Wrap contents in windows_nat namespace. | |
8057 | * nat/windows-nat.c: Wrap contents in windows_nat namespace. | |
8058 | ||
65bafd5b TT |
8059 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8060 | ||
8061 | * nat/windows-nat.h (struct windows_thread_info): Declare | |
8062 | destructor. | |
8063 | * nat/windows-nat.c (~windows_thread_info): New. | |
8064 | ||
0a4afda3 TT |
8065 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8066 | ||
8067 | PR gdb/22992 | |
8068 | * windows-nat.c (current_event): Update comment. | |
8069 | (last_wait_event, desired_stop_thread_id): New globals. | |
8070 | (struct pending_stop): New. | |
8071 | (pending_stops): New global. | |
8072 | (windows_nat_target) <stopped_by_sw_breakpoint> | |
8073 | <supports_stopped_by_sw_breakpoint>: New methods. | |
8074 | (windows_fetch_one_register): Add assertions. Adjust PC. | |
8075 | (windows_continue): Handle pending stops. Suspend other threads | |
8076 | when stepping. Use last_wait_event | |
8077 | (wait_for_debug_event): New function. | |
8078 | (get_windows_debug_event): Use wait_for_debug_event. Handle | |
8079 | pending stops. Queue spurious stops. | |
8080 | (windows_nat_target::wait): Set stopped_at_software_breakpoint. | |
8081 | (windows_nat_target::kill): Use wait_for_debug_event. | |
8082 | * nat/windows-nat.h (struct windows_thread_info) | |
8083 | <stopped_at_software_breakpoint>: New field. | |
8084 | * nat/windows-nat.c (windows_thread_info::resume): Clear | |
8085 | stopped_at_software_breakpoint. | |
8086 | ||
8e61ebec TT |
8087 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8088 | ||
8089 | * windows-nat.c (enum thread_disposition_type): New. | |
8090 | (thread_rec): Replace "get_context" parameter with "disposition"; | |
8091 | change type. | |
8092 | (windows_add_thread, windows_nat_target::fetch_registers) | |
8093 | (windows_nat_target::store_registers, handle_exception) | |
8094 | (windows_nat_target::resume, get_windows_debug_event) | |
8095 | (windows_nat_target::get_tib_address) | |
8096 | (windows_nat_target::thread_name) | |
8097 | (windows_nat_target::thread_alive): Update. | |
8098 | ||
98a03287 TT |
8099 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8100 | ||
8101 | * windows-nat.c (thread_rec): Use windows_thread_info::suspend. | |
8102 | (windows_continue): Use windows_continue::resume. | |
8103 | * nat/windows-nat.h (struct windows_thread_info) <suspend, | |
8104 | resume>: Declare new methods. | |
8105 | * nat/windows-nat.c: New file. | |
8106 | * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed. | |
8107 | ||
7c7411bc TT |
8108 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8109 | ||
8110 | * windows-nat.c (windows_add_thread, windows_delete_thread) | |
8111 | (windows_nat_target::fetch_registers) | |
8112 | (windows_nat_target::store_registers, fake_create_process) | |
8113 | (windows_nat_target::resume, windows_nat_target::resume) | |
8114 | (get_windows_debug_event, windows_nat_target::wait) | |
8115 | (windows_nat_target::pid_to_str) | |
8116 | (windows_nat_target::get_tib_address) | |
8117 | (windows_nat_target::get_ada_task_ptid) | |
8118 | (windows_nat_target::thread_name) | |
8119 | (windows_nat_target::thread_alive): Use lwp, not tid. | |
8120 | ||
2950fdf7 TT |
8121 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8122 | ||
8123 | * windows-nat.c (handle_exception) | |
8124 | (windows_nat_target::thread_name): Update. | |
8125 | * nat/windows-nat.h (windows_thread_info): Remove destructor. | |
8126 | <name>: Now unique_xmalloc_ptr. | |
8127 | ||
62fe396b TT |
8128 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8129 | ||
8130 | * windows-nat.c (thread_rec) | |
8131 | (windows_nat_target::fetch_registers): Update. | |
8132 | * nat/windows-nat.h (struct windows_thread_info) <suspended>: | |
8133 | Update comment. | |
8134 | <debug_registers_changed, reload_context>: Now bool. | |
8135 | ||
e9534bd2 TT |
8136 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8137 | ||
8138 | * windows-nat.c (windows_add_thread): Use new. | |
8139 | (windows_init_thread_list, windows_delete_thread): Use delete. | |
8140 | (get_windows_debug_event): Update. | |
8141 | * nat/windows-nat.h (struct windows_thread_info): Add constructor, | |
8142 | destructor, and initializers. | |
8143 | ||
ae1f8880 TT |
8144 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8145 | ||
8146 | * windows-nat.c (struct windows_thread_info): Remove. | |
8147 | * nat/windows-nat.h: New file. | |
8148 | ||
55a1e039 TT |
8149 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8150 | ||
8151 | * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id". | |
8152 | (thread_rec, windows_add_thread, windows_delete_thread) | |
8153 | (windows_continue): Update. | |
8154 | ||
93366324 TT |
8155 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
8156 | ||
8157 | * windows-nat.c (struct windows_thread_info): Remove typedef. | |
8158 | (thread_head): Remove. | |
8159 | (thread_list): New global. | |
8160 | (thread_rec, windows_add_thread, windows_init_thread_list) | |
8161 | (windows_delete_thread, windows_continue): Update. | |
8162 | ||
0f2265e2 SM |
8163 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
8164 | ||
8165 | * windows-tdep.h (windows_init_abi): Add comment. | |
8166 | (cygwin_init_abi): New declaration. | |
8167 | * windows-tdep.c: Split signal enumeration in two, one for | |
8168 | Windows and one for Cygwin. | |
8169 | (windows_gdb_signal_to_target): Only deal with signal of the | |
8170 | Windows OS ABI. | |
8171 | (cygwin_gdb_signal_to_target): New function. | |
8172 | (windows_init_abi): Rename to windows_init_abi_common, don't set | |
8173 | gdb_signal_to_target gdbarch method. Add new new function with | |
8174 | this name. | |
8175 | (cygwin_init_abi): New function. | |
8176 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add | |
8177 | comment. Don't call windows_init_abi. | |
8178 | (amd64_windows_init_abi): Add comment, call windows_init_abi. | |
8179 | (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi. | |
8180 | * i386-windows-tdep.c (i386_windows_init_abi): Rename to | |
8181 | i386_windows_init_abi_common, don't call windows_init_abi. Add | |
8182 | a new function of this name. | |
8183 | (i386_cygwin_init_abi): New function. | |
8184 | (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to | |
8185 | OS ABI Cygwin. | |
8186 | ||
3810f182 SM |
8187 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
8188 | ||
8189 | * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile | |
8190 | parameter.c. | |
8191 | (dwarf2_read_gdb_index): Update. | |
8192 | ||
063f8e80 KR |
8193 | 2020-04-07 Kamil Rytarowski <n54@gmx.com> |
8194 | ||
8195 | * nbsd-tdep.c: Include "objfiles.h". | |
8196 | (nbsd_skip_solib_resolver): New. | |
8197 | (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver(). | |
8198 | ||
85a9510c | 8199 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
8200 | ||
8201 | * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_ | |
8202 | addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair | |
8203 | with DW_LLE_base_addressx are being emitted in DWARFv5. | |
8204 | Add the newly added kind DW_LOC_OFFSET_PAIR also. | |
8205 | The length of location description is an unsigned ULEB integer in DWARFv5 instead of | |
8206 | unsigned integer. | |
8207 | ||
9fc3eaae | 8208 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
8209 | ||
8210 | * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR. | |
8211 | (dwarf2_find_location_expression): Call the function decode_debug_loclists_ | |
8212 | addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair | |
8213 | with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*. | |
8214 | Add applicable base address if the entry is DW_LLE_offset_pair from DWO. | |
8215 | (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of | |
8216 | DEBUG_LOC_START_END in case of DW_LLE_offset_pair. | |
8217 | ||
8218 | ||
41144253 | 8219 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
8220 | ||
8221 | * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function. | |
8222 | (read_loclist_index): New function definition. | |
8223 | (lookup_loclist_base): New function definition. | |
8224 | (read_loclist_header): New function definition. | |
8225 | (dwarf2_cu): Add loclist_base and loclist_header field. | |
8226 | (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section. | |
8227 | (read_full_die_1): Read the value of DW_AT_loclists_base. | |
8228 | (read_attribute_reprocess): Handle DW_FORM_loclistx. | |
8229 | (read_attribute_value): Handle DW_FORM_loclistx. | |
8230 | (skip_one_die): Handle DW_FORM_loclistx. | |
8231 | (loclist_header): New structure declaration. | |
8232 | * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx. | |
8233 | ||
9f4e76a4 SM |
8234 | 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
8235 | ||
8236 | * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters | |
8237 | constructor. Remove `addr` parameter from other constructor and | |
8238 | add `per_cu` parameter. | |
8239 | * dwarf2/read.c (create_partial_symtab): Update. | |
8240 | ||
25c11aca TV |
8241 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
8242 | ||
8243 | PR symtab/25796 | |
8244 | * dwarf2/read.c (can_have_DW_AT_const_value_p): New function. | |
8245 | (partial_die_info::fixup): Inherit has_const_value. | |
8246 | ||
5707e24b TV |
8247 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
8248 | ||
8249 | * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK | |
8250 | symbols without address. | |
8251 | ||
05f00e22 KR |
8252 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
8253 | ||
8254 | * nbsd-nat.h (struct thread_info): Add forward declaration. | |
8255 | (nbsd_nat_target::thread_alive): Add. | |
8256 | (nbsd_nat_target::thread_name): Likewise. | |
8257 | (nbsd_nat_target::update_thread_list): Likewise. | |
8258 | (update_thread_list::post_attach): Likewise. | |
8259 | (post_attach::pid_to_str): Likewise. | |
8260 | * nbsd-nat.c: Include "gdbthread.h" and "inferior.h". | |
8261 | (nbsd_thread_lister): Add. | |
8262 | (nbsd_nat_target::thread_alive): Likewise. | |
8263 | (nbsd_nat_target::thread_name): Likewise. | |
8264 | (nbsd_add_threads): Likewise. | |
8265 | (update_thread_list::post_attach): Likewise. | |
8266 | (nbsd_nat_target::update_thread_list): Likewise. | |
8267 | (post_attach::pid_to_str): Likewise. | |
8268 | ||
6ee448cc TT |
8269 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
8270 | ||
8271 | * ada-valprint.c (print_variant_part): Extract the variant field. | |
8272 | (print_field_values): Use the field as the outer value when | |
8273 | recursing. | |
8274 | ||
dea34e8c TT |
8275 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
8276 | ||
8277 | * sh-nbsd-tdep.c: Include nbsd-tdep.h. | |
8278 | * ppc-nbsd-tdep.c: Include nbsd-tdep.h. | |
8279 | * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";". | |
8280 | * arm-nbsd-tdep.c: Include nbsd-tdep.h. | |
8281 | * hppa-nbsd-tdep.c: Include nbsd-tdep.h. | |
8282 | ||
93689ce9 TT |
8283 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
8284 | ||
8285 | * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle | |
8286 | TYPE_CODE_ERROR. | |
8287 | ||
79743962 KR |
8288 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
8289 | ||
8290 | * nbsd-tdep.c: Include "gdbarch.h". | |
8291 | Define enum with NetBSD signal numbers. | |
8292 | (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New. | |
8293 | * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi(). | |
8294 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
8295 | * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise. | |
8296 | * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise. | |
8297 | * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise. | |
8298 | * mips-nbsd-tdep.c (nbsd_init_abi): Likewise. | |
8299 | * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise. | |
8300 | * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise. | |
8301 | * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise. | |
8302 | * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise. | |
8303 | * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise. | |
8304 | ||
9e7c9a03 HD |
8305 | 2020-04-03 Hannes Domani <ssbssa@yahoo.de> |
8306 | ||
8307 | PR gdb/25325 | |
8308 | * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes. | |
8309 | ||
d9e49b61 TT |
8310 | 2020-04-03 Tom Tromey <tromey@adacore.com> |
8311 | ||
8312 | * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>: | |
8313 | Read constant block. | |
8314 | ||
e0fc5c3f SM |
8315 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
8316 | ||
8317 | * gdb_bfd.h: Include gdbsupport/byte-vector.h. | |
8318 | (gdb_bfd_get_full_section_contents): New declaration. | |
8319 | * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function. | |
8320 | * windows-tdep.c (is_linked_with_cygwin_dll): Use | |
8321 | gdb_bfd_get_full_section_contents. | |
8322 | ||
e2ff18a0 SM |
8323 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
8324 | ||
8325 | * exec.c (build_section_table): Replace internal_error with | |
8326 | gdb_assert. | |
8327 | (section_table_xfer_memory_partial): Likewise. | |
8328 | * mdebugread.c (parse_partial_symbols): Likewise. | |
8329 | * psymtab.c (lookup_partial_symbol): Likewise. | |
8330 | * utils.c (wrap_here): Likewise. | |
8331 | ||
0830d301 TT |
8332 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
8333 | ||
8334 | * f-lang.c (build_fortran_types): Use arch_type to initialize | |
8335 | builtin_complex_s32 in the TYPE_CODE_ERROR case. | |
8336 | ||
e7da7f8f TT |
8337 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
8338 | ||
8339 | * dwarf2/read.c (partial_die_info::read): Do not create a vector | |
8340 | of attributes. | |
8341 | ||
c90d28ac AB |
8342 | 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com> |
8343 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
8344 | Tom Tromey <tromey@adacore.com> | |
8345 | ||
8346 | * buildsym.c (buildsym_compunit::record_line): Remove | |
8347 | deduplication code. | |
8348 | ||
1aa98955 TV |
8349 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
8350 | ||
8351 | PR ada/24671 | |
8352 | * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow. | |
8353 | ||
d3214198 TV |
8354 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
8355 | ||
8356 | * dwarf2/read.c (dwarf2_gdb_index_functions, | |
8357 | dwarf2_debug_names_functions): Init lookup_global_symbol_language with | |
8358 | NULL. | |
8359 | * psymtab.c (psym_lookup_global_symbol_language): New function. | |
8360 | (psym_functions): Init psym_lookup_global_symbol_language with | |
8361 | psym_lookup_global_symbol_language. | |
8362 | * symfile-debug.c (debug_sym_quick_functions): Init | |
8363 | lookup_global_symbol_language with NULL. | |
8364 | * symfile.c (set_initial_language): Remove fixme comment. | |
8365 | * symfile.h (struct quick_symbol_functions): Add | |
8366 | lookup_global_symbol_language. | |
8367 | * symtab.c (find_quick_global_symbol_language): New function. | |
8368 | (find_main_name): Use find_quick_global_symbol_language. | |
8369 | ||
2836752f SM |
8370 | 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
8371 | ||
8372 | * windows-tdep.c (is_linked_with_cygwin_dll): Fix style. | |
8373 | ||
64dc2d4b BE |
8374 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
8375 | ||
8376 | * buildsym.c (record_line): Fix undefined behavior and preserve | |
8377 | lines at eof. | |
8378 | ||
bbe3dc41 BE |
8379 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
8380 | ||
8381 | * buildsym.c (record_line): Fix the resizing condition. | |
8382 | ||
6b4a335b TT |
8383 | 2020-04-01 Tom Tromey <tom@tromey.com> |
8384 | ||
8385 | * value.h (value_literal_complex): Add comment. | |
8386 | * valops.c (value_literal_complex): Refer to value.h. | |
8387 | ||
3638a098 TT |
8388 | 2020-04-01 Tom Tromey <tom@tromey.com> |
8389 | ||
8390 | * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens. | |
8391 | (scalar_type): New rule, from typebase. | |
8392 | (typebase): Use scalar_type. Recognize complex types. | |
8393 | (field_name): Handle FLOAT_KEYWORD. | |
8394 | (ident_tokens): Add _Complex and __complex__. | |
8395 | ||
c34e8714 TT |
8396 | 2020-04-01 Tom Tromey <tom@tromey.com> |
8397 | ||
8398 | PR exp/25299: | |
8399 | * valarith.c (promotion_type, complex_binop): New functions. | |
8400 | (scalar_binop): Handle complex numbers. Use promotion_type. | |
8401 | (value_pos, value_neg, value_complement): Handle complex numbers. | |
8402 | ||
fa649bb7 TT |
8403 | 2020-04-01 Tom Tromey <tom@tromey.com> |
8404 | ||
8405 | * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens. | |
8406 | (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules. | |
8407 | (parse_number): Handle complex numbers. | |
8408 | ||
981c08ce TT |
8409 | 2020-04-01 Tom Tromey <tom@tromey.com> |
8410 | ||
8411 | * c-valprint.c (c_decorations): Change complex suffix to "i". | |
8412 | ||
4c99290d TT |
8413 | 2020-04-01 Tom Tromey <tom@tromey.com> |
8414 | ||
8415 | * valprint.c (generic_value_print_complex): Use accessors. | |
8416 | * value.h (value_real_part, value_imaginary_part): Declare. | |
8417 | * valops.c (value_real_part, value_imaginary_part): New | |
8418 | functions. | |
8419 | * value.c (creal_internal_fn, cimag_internal_fn): Use accessors. | |
8420 | ||
5b930b45 TT |
8421 | 2020-04-01 Tom Tromey <tom@tromey.com> |
8422 | ||
8423 | * stabsread.c (rs6000_builtin_type, read_sun_floating_type) | |
8424 | (read_range_type): Update. | |
8425 | * mdebugread.c (basic_type): Update. | |
8426 | * go-lang.c (build_go_types): Use init_complex_type. | |
8427 | * gdbtypes.h (struct main_type) <complex_type>: New member. | |
8428 | (init_complex_type): Update. | |
8429 | (arch_complex_type): Don't declare. | |
8430 | * gdbtypes.c (init_complex_type): Remove "objfile" parameter. | |
8431 | Make name if none given. Use alloc_type_copy. Look for cached | |
8432 | complex type. | |
8433 | (arch_complex_type): Remove. | |
8434 | (gdbtypes_post_init): Use init_complex_type. | |
8435 | * f-lang.c (build_fortran_types): Use init_complex_type. | |
8436 | * dwarf2/read.c (read_base_type): Update. | |
8437 | * d-lang.c (build_d_types): Use init_complex_type. | |
8438 | * ctfread.c (read_base_type): Update. | |
8439 | ||
53cccef1 TBA |
8440 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
8441 | ||
8442 | * infrun.c (stop_all_threads): Update assertion, plus when | |
8443 | stopping threads, take into account that we might be trying | |
8444 | to stop an all-stop target. | |
8445 | (stop_waiting): Call 'stop_all_threads' if there exists a | |
8446 | non-stop target. | |
8447 | ||
a0714d30 TBA |
8448 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
8449 | ||
8450 | * target.h (exists_non_stop_target): New function declaration. | |
8451 | * target.c (exists_non_stop_target): New function. | |
8452 | ||
60e22c1e HD |
8453 | 2020-04-01 Hannes Domani <ssbssa@yahoo.de> |
8454 | ||
8455 | PR gdb/24789 | |
8456 | * eval.c (is_integral_or_integral_reference): New function. | |
8457 | (evaluate_subexp_standard): Allow integer references in | |
8458 | pointer arithmetic. | |
8459 | ||
e139a727 TBA |
8460 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
8461 | ||
8462 | * remote.c (remote_target::remote_parse_stop_reply): Remove the | |
8463 | check for no ptid in the stop reply when the target is non-stop. | |
8464 | ||
e0802d59 TT |
8465 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
8466 | ||
8467 | * symtab.h (class lookup_name_info) <lookup_name_info>: Change | |
8468 | "name" parameter to rvalue reference. Initialize m_name_holder. | |
8469 | <lookup_name_info>: New overloads. | |
8470 | <name>: Return gdb::string_view. | |
8471 | <c_str>: New method. | |
8472 | <make_ignore_params>: Update. | |
8473 | <search_name_hash>: Update. | |
8474 | <language_lookup_name>: Return const char *. | |
8475 | <m_name>: Change type. | |
8476 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info) | |
8477 | (demangle_for_lookup_info::demangle_for_lookup_info): Update. | |
8478 | (lookup_name_info::match_any): Update. | |
8479 | * psymtab.c (match_partial_symbol, lookup_partial_symbol): | |
8480 | Update. | |
8481 | * minsyms.c (linkage_name_str): Update. | |
8482 | * language.c (default_symbol_name_matcher): Update. | |
8483 | * dwarf2/read.c (mapped_index_base::find_name_components_bounds): | |
8484 | Update. | |
8485 | * ada-lang.c (ada_fold_name): Change parameter to string_view. | |
8486 | (ada_lookup_name_info::ada_lookup_name_info): Update. | |
8487 | (literal_symbol_name_matcher): Update. | |
8488 | ||
8c072cb6 TT |
8489 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
8490 | ||
8491 | * psymtab.c (psymtab_search_name): Remove function. | |
8492 | (psym_lookup_symbol): Create search name and lookup name here. | |
8493 | (lookup_partial_symbol): Remove "name" parameter; add | |
8494 | lookup_name. | |
8495 | (psym_expand_symtabs_for_function): Update. | |
8496 | ||
6f29a534 TT |
8497 | 2020-03-31 Joel Jones <joelkevinjones@gmail.com> |
8498 | ||
8499 | PR tui/25597: | |
8500 | * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI. | |
8501 | ||
af62665e TT |
8502 | 2020-03-31 Tom Tromey <tromey@adacore.com> |
8503 | ||
8504 | * dwarf2/abbrev.c (abbrev_table::read): Conditionally call | |
8505 | memcpy. | |
8506 | ||
d1a89da5 NC |
8507 | 2020-03-30 Nelson Chu <nelson.chu@sifive.com> |
8508 | ||
8509 | * features/riscv/32bit-csr.xml: Regenerated. | |
8510 | * features/riscv/64bit-csr.xml: Regenerated. | |
8511 | ||
d8af9068 TT |
8512 | 2020-03-30 Tom Tromey <tromey@adacore.com> |
8513 | ||
8514 | * ada-valprint.c (print_variant_part): Update. | |
8515 | * ada-lang.h (ada_which_variant_applies): Update. | |
8516 | * ada-lang.c (ada_which_variant_applies): Remove outer_type and | |
8517 | outer_valaddr parameters; replace with "outer" value parameter. | |
8518 | (to_fixed_variant_branch_type): Update. | |
8519 | ||
227c0bf4 PFC |
8520 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
8521 | ||
8522 | * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and | |
8523 | <list>. Remove inclusion of observable.h. | |
8524 | (PPC_DEBUG_CURRENT_VERSION): Move up define. | |
8525 | (struct arch_lwp_info): New struct. | |
8526 | (class ppc_linux_dreg_interface): New class. | |
8527 | (struct ppc_linux_process_info): New struct. | |
8528 | (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork> | |
8529 | <low_new_clone, low_forget_process, low_prepare_to_resume> | |
8530 | <copy_thread_dreg_state, mark_thread_stale> | |
8531 | <mark_debug_registers_changed, register_hw_breakpoint> | |
8532 | <clear_hw_breakpoint, register_wp, clear_wp> | |
8533 | <can_use_watchpoint_cond_accel, calculate_dvc, check_condition> | |
8534 | <num_memory_accesses, get_trigger_type> | |
8535 | <create_watchpoint_request, hwdebug_point_cmp> | |
8536 | <init_arch_lwp_info, get_arch_lwp_info> | |
8537 | <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as | |
8538 | methods. | |
8539 | <struct ptid_hash>: New inner struct. | |
8540 | <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare | |
8541 | members. | |
8542 | (saved_dabr_value, hwdebug_info, max_slots_number) | |
8543 | (struct hw_break_tuple, struct thread_points, ppc_threads) | |
8544 | (have_ptrace_hwdebug_interface) | |
8545 | (hwdebug_find_thread_points_by_tid) | |
8546 | (hwdebug_insert_point, hwdebug_remove_point): Remove. | |
8547 | (ppc_linux_nat_target::can_use_hw_breakpoint): Use | |
8548 | m_dreg_interface, remove call to PTRACE_SET_DEBUGREG. | |
8549 | (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment, | |
8550 | use m_dreg_interface. | |
8551 | (hwdebug_point_cmp): Change to... | |
8552 | (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use | |
8553 | reference arguments instead of pointers. | |
8554 | (ppc_linux_nat_target::ranged_break_num_registers): Use | |
8555 | m_dreg_interface. | |
8556 | (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use | |
8557 | m_dreg_interface. Call register_hw_breakpoint. | |
8558 | (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use | |
8559 | m_dreg_interface. Call clear_hw_breakpoint. | |
8560 | (get_trigger_type): Change to... | |
8561 | (ppc_linux_nat_target::get_trigger_type): ...this method. Add | |
8562 | comment. | |
8563 | (ppc_linux_nat_target::insert_mask_watchpoint): Update comment, | |
8564 | use m_dreg_interface. Call register_hw_breakpoint. | |
8565 | (ppc_linux_nat_target::remove_mask_watchpoint): Update comment, | |
8566 | use m_dreg_interface. Call clear_hw_breakpoint. | |
8567 | (can_use_watchpoint_cond_accel): Change to... | |
8568 | (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this | |
8569 | method. Update comment, use m_dreg_interface and | |
8570 | m_process_info. | |
8571 | (calculate_dvc): Change to... | |
8572 | (ppc_linux_nat_target::calculate_dvc): ...this method. Use | |
8573 | m_dreg_interface. | |
8574 | (num_memory_accesses): Change to... | |
8575 | (ppc_linux_nat_target::num_memory_accesses): ...this method. | |
8576 | (check_condition): Change to... | |
8577 | (ppc_linux_nat_target::check_condition): ...this method. | |
8578 | (ppc_linux_nat_target::can_accel_watchpoint_condition): Update | |
8579 | comment, use m_dreg_interface. | |
8580 | (create_watchpoint_request): Change to... | |
8581 | (ppc_linux_nat_target::create_watchpoint_request): ...this | |
8582 | method. Use m_dreg_interface. | |
8583 | (ppc_linux_nat_target::insert_watchpoint): Add comment, use | |
8584 | m_dreg_interface. Call register_hw_breakpoint or register_wp. | |
8585 | (ppc_linux_nat_target::remove_watchpoint): Add comment, use | |
8586 | m_dreg_interface. Call clear_hw_breakpoint or clear_wp. | |
8587 | (ppc_linux_nat_target::low_forget_process) | |
8588 | (ppc_linux_nat_target::low_new_fork) | |
8589 | (ppc_linux_nat_target::low_new_clone) | |
8590 | (ppc_linux_nat_target::low_delete_thread) | |
8591 | (ppc_linux_nat_target::low_prepare_to_resume): New methods. | |
8592 | (ppc_linux_nat_target::low_new_thread): Remove previous logic, | |
8593 | only call mark_thread_stale. | |
8594 | (ppc_linux_thread_exit): Remove. | |
8595 | (ppc_linux_nat_target::stopped_data_address): Change to... | |
8596 | (ppc_linux_nat_target::low_stopped_data_address): This. Add | |
8597 | comment, use m_dreg_interface and m_thread_hw_breakpoints. | |
8598 | (ppc_linux_nat_target::stopped_by_watchpoint): Change to... | |
8599 | (ppc_linux_nat_target::stopped_by_watchpoint): This. Add | |
8600 | comment. Call low_stopped_data_address. | |
8601 | (ppc_linux_nat_target::watchpoint_addr_within_range): Use | |
8602 | m_dreg_interface. | |
8603 | (ppc_linux_nat_target::masked_watch_num_registers): Use | |
8604 | m_dreg_interface. | |
8605 | (ppc_linux_nat_target::copy_thread_dreg_state) | |
8606 | (ppc_linux_nat_target::mark_thread_stale) | |
8607 | (ppc_linux_nat_target::mark_debug_registers_changed) | |
8608 | (ppc_linux_nat_target::register_hw_breakpoint) | |
8609 | (ppc_linux_nat_target::clear_hw_breakpoint) | |
8610 | (ppc_linux_nat_target::register_wp) | |
8611 | (ppc_linux_nat_target::clear_wp) | |
8612 | (ppc_linux_nat_target::init_arch_lwp_info) | |
8613 | (ppc_linux_nat_target::get_arch_lwp_info): New methods. | |
8614 | (_initialize_ppc_linux_nat): Remove observer callback. | |
8615 | ||
4db10d8f PFC |
8616 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
8617 | ||
8618 | * ppc-linux-nat.c (ppc_linux_nat_target::store_registers) | |
8619 | (ppc_linux_nat_target::auxv_parse) | |
8620 | (ppc_linux_nat_target::read_description) | |
8621 | (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): | |
8622 | Move up. | |
8623 | ||
1310c1b0 PFC |
8624 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
8625 | ||
8626 | * linux-nat.h (low_new_clone): New method. | |
8627 | * linux-nat.c (linux_handle_extended_wait): Call low_new_clone. | |
8628 | ||
69b037c3 SM |
8629 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
8630 | ||
8631 | * dbxread.c (dbx_psymtab_to_symtab_1): Rename to... | |
8632 | (dbx_expand_psymtab): ... this. | |
8633 | (start_psymtab): Update. | |
8634 | * mdebugread.c (psymtab_to_symtab_1): Rename to... | |
8635 | (mdebug_expand_psymtab): ... this. | |
8636 | (parse_partial_symbols): Update. | |
8637 | (new_psymtab): Update. | |
8638 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to... | |
8639 | (xcoff_expand_psymtab): ... this. | |
8640 | (xcoff_start_psymtab): Update. | |
8641 | ||
48993951 SM |
8642 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
8643 | ||
8644 | * psympriv.h (partial_symtab) <read_dependencies>: Rename to... | |
8645 | <expand_dependencies>: ... this. | |
8646 | * psymtab.c (partial_symtab::read_dependencies): Rename to... | |
8647 | (partial_symtab::expand_dependencies): ... this. | |
8648 | * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>: | |
8649 | Update. | |
8650 | (dwarf2_psymtab::expand_psymtab): Update. | |
8651 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
8652 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
8653 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
8654 | ||
3ad83046 SM |
8655 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
8656 | ||
8657 | * psympriv.h (discard_psymtab): Remove. | |
8658 | * dbxread.c (dbx_end_psymtab): Update. | |
8659 | * xcoffread.c (xcoff_end_psymtab): Update. | |
8660 | ||
4d1b9ab6 TT |
8661 | 2020-03-28 Tom Tromey <tom@tromey.com> |
8662 | ||
8663 | * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update | |
8664 | comment. | |
8665 | ||
f1749218 TT |
8666 | 2020-03-28 Tom Tromey <tom@tromey.com> |
8667 | ||
8668 | * dwarf2/read.c (read_attribute_reprocess): Fix formatting. | |
8669 | ||
ebea7626 HD |
8670 | 2020-03-27 Hannes Domani <ssbssa@yahoo.de> |
8671 | ||
8672 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
8673 | ||
a879b4d5 JB |
8674 | 2020-03-26 John Baldwin <jhb@FreeBSD.org> |
8675 | ||
8676 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS. | |
8677 | ||
0826b30a TT |
8678 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8679 | ||
8680 | * dwarf2/read.c (handle_data_member_location, dwarf2_add_field) | |
8681 | (mark_common_block_symbol_computed, read_tag_string_type) | |
8682 | (attr_to_dynamic_prop, read_subrange_type): Update. | |
8683 | (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move | |
8684 | to be methods on struct attribute. | |
8685 | (skip_one_die, process_imported_unit_die, read_namespace_alias) | |
8686 | (read_call_site_scope, partial_die_info::read) | |
8687 | (partial_die_info::read, lookup_die_type, follow_die_ref): | |
8688 | Update. | |
8689 | * dwarf2/attribute.c (attribute::get_ref_die_offset): New method, | |
8690 | from dwarf2_get_ref_die_offset. | |
8691 | (attribute::constant_value): New method, from | |
8692 | dwarf2_get_attr_constant_value. | |
8693 | * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>: | |
8694 | Declare method. | |
8695 | <constant_value>: New method. | |
8696 | ||
2b2558bf TT |
8697 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8698 | ||
8699 | * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name) | |
8700 | (dwarf_attr_name, dwarf_form_name, dwarf_bool_name) | |
8701 | (dwarf_type_encoding_name): Move to stringify.c. | |
8702 | * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c. | |
8703 | * dwarf2/stringify.c: New file. | |
8704 | * dwarf2/stringify.h: New file. | |
8705 | ||
eeb64781 TT |
8706 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8707 | ||
8708 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: | |
8709 | Rewrite. | |
8710 | ||
a39fdb41 TT |
8711 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8712 | ||
8713 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New | |
8714 | methods. | |
8715 | * dwarf2/read.c (lookup_addr_base): Move to die.h. | |
8716 | (lookup_ranges_base): Likewise. | |
8717 | (read_cutu_die_from_dwo, read_full_die_1): Update. | |
8718 | ||
436c571c TT |
8719 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8720 | ||
8721 | * dwarf2/read.c (read_import_statement, read_file_scope) | |
8722 | (read_type_unit_scope, inherit_abstract_dies, read_func_scope) | |
8723 | (read_lexical_block_scope, read_call_site_scope) | |
8724 | (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds) | |
8725 | (handle_struct_member_die, process_structure_scope) | |
8726 | (update_enumeration_type_from_children) | |
8727 | (process_enumeration_scope, read_array_type, read_common_block) | |
8728 | (read_namespace, read_module, read_subroutine_type): Update. | |
8729 | (sibling_die): Remove. | |
8730 | ||
052c8bb8 TT |
8731 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8732 | ||
8733 | * dwarf2/read.c (lookup_addr_base, lookup_ranges_base) | |
8734 | (build_type_psymtabs_reader, read_structure_type) | |
8735 | (read_enumeration_type, read_full_die_1): Update. | |
8736 | (dwarf2_attr_no_follow): Move to die.h. | |
8737 | * dwarf2/die.h (struct die_info) <attr>: New method. | |
8738 | ||
2b24b6e4 TT |
8739 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8740 | ||
8741 | * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove. | |
8742 | <base_address>: Now an optional. | |
8743 | (dwarf2_find_base_address, dwarf2_rnglists_process) | |
8744 | (dwarf2_ranges_process, fill_in_loclist_baton) | |
8745 | (dwarf2_symbol_mark_computed): Update. | |
8746 | ||
c2d50fd0 TT |
8747 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8748 | ||
8749 | * dwarf2/read.c (struct die_info): Move to die.h. | |
8750 | * dwarf2/die.h: New file. | |
8751 | ||
0df7ad3a TT |
8752 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8753 | ||
8754 | * dwarf2/line-header.h (dwarf_decode_line_header): Declare. | |
8755 | * dwarf2/read.c | |
8756 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
8757 | Move to line-header.c. | |
8758 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
8759 | Likewise. | |
8760 | (dwarf_decode_line_header): Split into two. | |
8761 | * dwarf2/line-header.c | |
8762 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
8763 | Move from read.c. | |
8764 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
8765 | Likewise. | |
8766 | (dwarf_decode_line_header): New function, split from read.c. | |
8767 | ||
86c0bb4c TT |
8768 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8769 | ||
8770 | * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>: | |
8771 | Declare method. | |
8772 | * dwarf2/read.c (read_attribute_value): Update. | |
8773 | (dwarf2_per_objfile::read_line_string): Rename from | |
8774 | read_indirect_line_string. | |
8775 | (read_formatted_entries): Update. | |
8776 | ||
2ef46c2f TT |
8777 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8778 | ||
8779 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local | |
8780 | variable. | |
8781 | ||
4f9c1eda TT |
8782 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8783 | ||
8784 | * dwarf2/macro.h (dwarf_decode_macros): Make section parameter | |
8785 | const. | |
8786 | * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode) | |
8787 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section | |
8788 | parameter const. | |
8789 | ||
5a0e026f TT |
8790 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8791 | ||
8792 | * dwarf2/read.c (dwarf_decode_macros): Make "lh" const. | |
8793 | * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter. | |
8794 | * dwarf2/macro.c (macro_start_file): Constify "lh" parameter. | |
8795 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise. | |
8796 | ||
8844c11b TT |
8797 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8798 | ||
8799 | * dwarf2/line-header.h (struct line_header) <is_valid_file_index, | |
8800 | file_names_size, file_full_name, file_file_name>: Use const. | |
8801 | <file_name_at, file_names>: Add const overload. | |
8802 | * dwarf2/line-header.c (line_header::file_file_name) | |
8803 | (line_header::file_full_name): Update. | |
8804 | ||
c90ec28a TT |
8805 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8806 | ||
8807 | * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint) | |
8808 | (macro_start_file, consume_improper_spaces) | |
8809 | (parse_macro_definition, skip_form_bytes, skip_unknown_opcode) | |
8810 | (dwarf_parse_macro_header, dwarf_decode_macro_bytes) | |
8811 | (dwarf_decode_macros): Move to macro.c. | |
8812 | * dwarf2/macro.c: New file. | |
8813 | * dwarf2/macro.h: New file. | |
8814 | * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c. | |
8815 | ||
4f44ae6c TT |
8816 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8817 | ||
8818 | * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New | |
8819 | method. | |
8820 | * dwarf2/section.c: New method. From | |
8821 | read_indirect_string_at_offset_from. | |
8822 | * dwarf2/read.c (mapped_debug_names::namei_to_name): Update. | |
8823 | (read_indirect_string_at_offset_from): Move to section.c. | |
8824 | (read_indirect_string_at_offset): Rewrite. | |
8825 | (read_indirect_line_string_at_offset): Remove. | |
8826 | (read_indirect_string, read_indirect_line_string) | |
8827 | (dwarf_decode_macro_bytes): Update. | |
8828 | ||
a0194fa8 TT |
8829 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8830 | ||
8831 | * dwarf2/section.h (struct dwarf2_section_info) | |
8832 | <overload_complaint>: Declare. | |
8833 | (dwarf2_section_buffer_overflow_complaint): Don't declare. | |
8834 | * dwarf2/section.c (dwarf2_section_info::overflow_complaint): | |
8835 | Rename from dwarf2_section_buffer_overflow_complaint. | |
8836 | * dwarf2/read.c (skip_one_die, partial_die_info::read) | |
8837 | (skip_form_bytes, dwarf_decode_macro_bytes): Update. | |
8838 | ||
3d27bbdb TT |
8839 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8840 | ||
8841 | * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): | |
8842 | Declare. | |
8843 | * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): | |
8844 | Move from read.c. | |
8845 | * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move | |
8846 | to section.c. | |
8847 | ||
9eac9650 TT |
8848 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8849 | ||
8850 | * dwarf2/read.c (dwarf_decode_macros): Split into two overloads. | |
8851 | ||
bf80d710 TT |
8852 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8853 | ||
8854 | * dwarf2/read.c (macro_start_file): Change "cu" parameter to | |
8855 | "builder". | |
8856 | (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile | |
8857 | parameter. | |
8858 | (dwarf_decode_macros): Update. | |
8859 | ||
0314b390 TT |
8860 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8861 | ||
8862 | * dwarf2/read.c (read_attribute_value): Update. | |
8863 | (read_indirect_string_from_dwz): Move to dwz.c; change into | |
8864 | method. | |
8865 | (dwarf_decode_macro_bytes): Update. | |
8866 | * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method. | |
8867 | * dwarf2/dwz.c: New file. | |
8868 | * Makefile.in (COMMON_SFILES): Add dwz.c. | |
8869 | ||
9fda78b6 TT |
8870 | 2020-03-26 Tom Tromey <tom@tromey.com> |
8871 | ||
8872 | * dwarf2/read.h (struct dwz_file): Move to dwz.h. | |
8873 | * dwarf2/read.c: Add include. | |
8874 | * dwarf2/index-write.c: Add include. | |
8875 | * dwarf2/index-cache.c: Add include. | |
8876 | * dwarf2/dwz.h: New file. | |
8877 | ||
33aa3c10 TT |
8878 | 2020-03-25 Tom Tromey <tom@tromey.com> |
8879 | ||
8880 | * compile/compile-object-load.c (get_out_value_type): Mention | |
8881 | correct symbol name in error message. | |
8882 | ||
d503b685 HD |
8883 | 2020-03-25 Hannes Domani <ssbssa@yahoo.de> |
8884 | ||
8885 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
8886 | ||
7b1eff95 TV |
8887 | 2020-03-25 Tom de Vries <tdevries@suse.de> |
8888 | ||
8889 | * symtab.h (is_main_symtab_of_compunit_symtab): New function. | |
8890 | * symmisc.c (dump_symtab_1): Print user and includes fields. | |
8891 | (maintenance_info_symtabs): Same. | |
8892 | ||
dd895392 AB |
8893 | 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com> |
8894 | ||
8895 | PR gdb/25534 | |
8896 | * riscv-tdep.c (riscv_arg_info::c_offset): Update comment. | |
8897 | (riscv_regcache_cooked_write): New function. | |
8898 | (riscv_push_dummy_call): Use new function. | |
8899 | (riscv_return_value): Likewise. | |
8900 | ||
5ab2fbf1 SM |
8901 | 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
8902 | ||
8903 | * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int. | |
8904 | * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise. | |
8905 | * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise. | |
8906 | * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise. | |
8907 | * infrun.c (follow_fork): Likewise. | |
8908 | (follow_fork_inferior): Likewise. | |
8909 | * linux-nat.c (linux_nat_target::follow_fork): Likewise. | |
8910 | * linux-nat.h (class linux_nat_target): Likewise. | |
8911 | * remote.c (class remote_target) <follow_fork>: Likewise. | |
8912 | (remote_target::follow_fork): Likewise. | |
8913 | * target-delegates.c: Re-generate. | |
8914 | * target.c (default_follow_fork): Likewise. | |
8915 | (target_follow_fork): Likewise. | |
8916 | * target.h (struct target_ops) <follow_fork>: Likewise. | |
8917 | (target_follow_fork): Likewise. | |
8918 | ||
a64fafb5 TV |
8919 | 2020-03-24 Tom de Vries <tdevries@suse.de> |
8920 | ||
8921 | * psymtab.c (maintenance_info_psymtabs): Print user field. | |
8922 | ||
fe26d3a3 TT |
8923 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
8924 | ||
8925 | * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack" | |
8926 | const. | |
8927 | * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack" | |
8928 | const. | |
8929 | ||
c884cc46 SM |
8930 | 2020-03-20 Simon Marchi <simon.marchi@efficios.com> |
8931 | ||
8932 | * ptrace.m4: Don't check for ptrace declaration. | |
8933 | * config.in: Re-generate. | |
8934 | * configure: Re-generate. | |
8935 | * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is | |
8936 | not defined. | |
8937 | ||
1ff700c2 KR |
8938 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
8939 | ||
8940 | * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to | |
8941 | `PTRACE_TYPE_RET'. | |
8942 | * i386-bsd-nat.c (gdb_ptrace): Likewise. | |
8943 | * sparc-nat.c (gdb_ptrace): Likewise. | |
8944 | * x86-bsd-nat.c (gdb_ptrace): Likewise. | |
8945 | ||
f7d4f0b1 TT |
8946 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
8947 | ||
8948 | * c-exp.y (lex_one_token): Fix assert. | |
8949 | ||
f67210ff TT |
8950 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
8951 | ||
8952 | * ada-tasks.c (read_atcb): Use smaller length in strncpy call. | |
8953 | * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in | |
8954 | strncpy call. | |
8955 | ||
1773be9e TT |
8956 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
8957 | ||
8958 | * symmisc.c (maintenance_print_one_line_table): Use ui_out. | |
8959 | ||
70304be9 TT |
8960 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
8961 | ||
8962 | * ada-valprint.c (print_variant_part): Remove parameters; switch | |
8963 | to value-based API. | |
8964 | (print_field_values): Likewise. | |
8965 | (ada_val_print_struct_union): Likewise. | |
8966 | (ada_value_print_1): Update. | |
8967 | ||
9faa006d KR |
8968 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
8969 | ||
8970 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from | |
8971 | nbsd_nat_target instead of inf_ptrace_target. | |
8972 | * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
8973 | nbsd_nat_target. | |
8974 | ||
4a90f062 KR |
8975 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
8976 | ||
8977 | * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
8978 | it to the ptrace call. | |
8979 | * (store_registers): Likewise. | |
8980 | ||
8981 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> | |
c7da12c7 KR |
8982 | |
8983 | * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
8984 | it to the ptrace call. | |
8985 | * (store_registers): Likewise. | |
8986 | ||
2d07da27 LM |
8987 | 2020-03-19 Luis Machado <luis.machado@linaro.org> |
8988 | ||
8989 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not | |
8990 | valid, fetch vg value from ptrace. | |
8991 | ||
f09db380 KR |
8992 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
8993 | * inf-ptrace.h: Disable get_ptrace_pid on NetBSD. | |
8994 | * inf-ptrace.c: Likewise. | |
8995 | * (gdb_ptrace): Add. | |
8996 | * (inf_ptrace_target::resume): Update. | |
8997 | * (inf_ptrace_target::xfer_partial): Likewise. | |
8998 | * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'. | |
8999 | * (inf_ptrace_peek_poke): Update. | |
9000 | ||
fcc7376e KR |
9001 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
9002 | ||
9003 | * x86-bsd-nat.c (gdb_ptrace): New. | |
9004 | * (x86bsd_dr_set): Add new argument `ptid'. | |
9005 | * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control, | |
9006 | x86bsd_dr_set_addr): Update. | |
9007 | ||
cada5fc9 AB |
9008 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
9009 | ||
9010 | * remote.c (remote_target::process_stop_reply): Handle events for | |
9011 | all threads differently. | |
9012 | ||
19a2740f AB |
9013 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
9014 | ||
9015 | * completer.c (completion_tracker::remove_completion): Define new | |
9016 | function. | |
9017 | * completer.h (completion_tracker::remove_completion): Declare new | |
9018 | function. | |
9019 | * symtab.c (completion_list_add_symbol): Remove aliasing msymbols | |
9020 | when adding a C++ function symbol. | |
9021 | ||
724fd9ba AB |
9022 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
9023 | ||
9024 | * completer.c (completion_tracker::completion_hash_entry): Define | |
9025 | new class. | |
9026 | (advance_to_filename_complete_word_point): Call | |
9027 | recompute_lowest_common_denominator. | |
9028 | (completion_tracker::completion_tracker): Call discard_completions | |
9029 | to setup the hash table. | |
9030 | (completion_tracker::discard_completions): Allow for being called | |
9031 | from the constructor, pass new equal function, and element deleter | |
9032 | when constructing the hash table. Initialise new class member | |
9033 | variables. | |
9034 | (completion_tracker::maybe_add_completion): Remove use of | |
9035 | m_entries_vec, and store more information into m_entries_hash. | |
9036 | (completion_tracker::recompute_lcd_visitor): New function, most | |
9037 | content taken from... | |
9038 | (completion_tracker::recompute_lowest_common_denominator): | |
9039 | ...here, this now just visits each item in the hash calling the | |
9040 | above visitor. | |
9041 | (completion_tracker::build_completion_result): Remove use of | |
9042 | m_entries_vec, call recompute_lowest_common_denominator. | |
9043 | * completer.h (completion_tracker::have_completions): Remove use | |
9044 | of m_entries_vec. | |
9045 | (completion_tracker::completion_hash_entry): Declare new class. | |
9046 | (completion_tracker::recompute_lowest_common_denominator): Change | |
9047 | function signature. | |
9048 | (completion_tracker::recompute_lcd_visitor): Declare new function. | |
9049 | (completion_tracker::m_entries_vec): Delete. | |
9050 | (completion_tracker::m_entries_hash): Initialize to NULL. | |
9051 | (completion_tracker::m_lowest_common_denominator_valid): New | |
9052 | member variable. | |
9053 | (completion_tracker::m_lowest_common_denominator_max_length): New | |
9054 | member variable. | |
9055 | ||
5a82b8a1 KR |
9056 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
9057 | ||
9058 | * regformats/regdef.h: Put reg in gdb namespace. | |
9059 | ||
fb516a69 KR |
9060 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
9061 | ||
9062 | * i386-bsd-nat.c (gdb_ptrace): New. | |
9063 | * (i386bsd_fetch_inferior_registers, | |
9064 | i386bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
9065 | * (i386bsd_fetch_inferior_registers, | |
9066 | i386bsd_store_inferior_registers) Use gdb_ptrace. | |
9067 | ||
1c0aa1fb KR |
9068 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
9069 | ||
9070 | * amd64-bsd-nat.c (gdb_ptrace): New. | |
9071 | * (amd64bsd_fetch_inferior_registers, | |
9072 | amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
9073 | * (amd64bsd_fetch_inferior_registers, | |
9074 | amd64bsd_store_inferior_registers) Use gdb_ptrace. | |
9075 | ||
5ccd2fb7 KR |
9076 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
9077 | ||
9078 | * user-regs.c (user_reg::read): Rename to... | |
9079 | (user_reg::xread): ...this. | |
9080 | * (append_user_reg): Rename argument `read' to `xread'. | |
9081 | * (user_reg_add_builtin): Likewise. | |
9082 | * (user_reg_add): Likewise. | |
9083 | * (value_of_user_reg): Likewise. | |
9084 | ||
2108a63a KR |
9085 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
9086 | ||
9087 | * sparc-nat.c (gdb_ptrace): New. | |
9088 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
9089 | (sparc_store_inferior_registers) Remove obsolete comment. | |
9090 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
9091 | (sparc_store_inferior_registers) Switch from pid_t to ptid_t. | |
9092 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
9093 | (sparc_store_inferior_registers) Use gdb_ptrace. | |
9094 | ||
a225c9a8 KR |
9095 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
9096 | ||
9097 | * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
9098 | it to the ptrace call. | |
9099 | * sh-nbsd-nat.c (store_registers): Likewise. | |
9100 | ||
98097623 KR |
9101 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
9102 | ||
9103 | * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from | |
9104 | nbsd_nat_target instead of inf_ptrace_target. | |
9105 | * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
9106 | nbsd_nat_target. | |
9107 | ||
9e38d619 KR |
9108 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
9109 | ||
9110 | * amd64-bsd-nat.c: Include amd64-bsd-nat.h". | |
9111 | ||
a2ecbe9f KR |
9112 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
9113 | ||
9114 | * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and | |
9115 | <sys/sysctl.h>. | |
9116 | * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. | |
9117 | ||
58990295 TV |
9118 | 2020-03-17 Tom de Vries <tdevries@suse.de> |
9119 | ||
9120 | PR gdb/23710 | |
9121 | * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang | |
9122 | fields. | |
9123 | * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang | |
9124 | fields. | |
9125 | (process_imported_unit_die): Skip import of c++ CUs. | |
9126 | ||
771dd3a8 TT |
9127 | 2020-03-16 Tom Tromey <tom@tromey.com> |
9128 | ||
9129 | * p-valprint.c (pascal_object_print_value): Initialize | |
9130 | base_value. | |
9131 | ||
817a7585 AK |
9132 | 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com> |
9133 | Shahab Vahedi <shahab@synopsys.com> | |
9134 | ||
9135 | * Makefile.in: Add arch/arc.o | |
9136 | * configure.tgt: Likewise. | |
9137 | * arc-tdep.c (arc_tdesc_init): Use arc_read_description. | |
9138 | (_initialize_arc_tdep): Don't initialize old target descriptions. | |
aac66a4c | 9139 | (arc_read_description): New function to cache target descriptions. |
817a7585 AK |
9140 | * arc-tdep.h (arc_read_description): Add proto type. |
9141 | * arch/arc.c: New file. | |
9142 | * arch/arc.h: Likewise. | |
9143 | * features/Makefile: Replace old target descriptions with new. | |
9144 | * features/arc-arcompact.c: Remove. | |
9145 | * features/arc-arcompact.xml: Likewise. | |
9146 | * features/arc-v2.c: Likewise | |
9147 | * features/arc-v2.xml: Likewise | |
9148 | * features/arc/aux-arcompact.xml: New file. | |
9149 | * features/arc/aux-v2.xml: Likewise. | |
9150 | * features/arc/core-arcompact.xml: Likewise. | |
9151 | * features/arc/core-v2.xml: Likewise. | |
9152 | * features/arc/aux-arcompact.c: Generate. | |
9153 | * features/arc/aux-v2.c: Likewise. | |
9154 | * features/arc/core-arcompact.c: Likewise. | |
9155 | * features/arc/core-v2.c: Likewise. | |
9156 | * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features. | |
9157 | ||
67430cd0 TT |
9158 | 2020-03-16 Tom Tromey <tromey@adacore.com> |
9159 | ||
9160 | PR gdb/25663: | |
9161 | * dwarf2/read.c (dwarf2_name): Strip leading namespaces after | |
9162 | putting value into bcache. | |
9163 | ||
30efb6c7 SM |
9164 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
9165 | ||
9166 | PR gdb/21500 | |
9167 | * amd64-windows-tdep.c (amd64_windows_init_abi): Rename | |
9168 | to... | |
9169 | (amd64_windows_init_abi_common): ... this. Don't set size of | |
9170 | long type. | |
9171 | (amd64_windows_init_abi): New function. | |
9172 | (amd64_cygwin_init_abi): New function. | |
9173 | (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for | |
9174 | the Cygwin OS ABI. | |
9175 | * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify | |
9176 | comment. | |
9177 | ||
8db52437 SM |
9178 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
9179 | ||
9180 | * windows-tdep.h (is_linked_with_cygwin_dll): New declaration. | |
9181 | * windows-tdep.c (CYGWIN_DLL_NAME): New. | |
9182 | (pe_import_directory_entry): New struct type. | |
9183 | (is_linked_with_cygwin_dll): New function. | |
9184 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select | |
9185 | GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL. | |
9186 | * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise. | |
9187 | ||
5982a56a SM |
9188 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
9189 | ||
9190 | * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except | |
9191 | i386_cygwin_core_osabi_sniffer. | |
9192 | ||
7a1998df SM |
9193 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
9194 | ||
9195 | * i386-cygwin-tdep.c: Rename to... | |
9196 | * i386-windows-tdep.c: ... this. | |
9197 | * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to | |
9198 | i386-windows-tdep.c. | |
9199 | * configure.tgt: Likewise. | |
9200 | ||
053205cc SM |
9201 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
9202 | ||
9203 | * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS. | |
9204 | * osabi.c (gdb_osabi_names): Add "Windows". | |
9205 | * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return | |
9206 | GDB_OSABI_WINDOWS when the binary's target is "pei-i386". | |
9207 | (i386_cygwin_core_osabi_sniffer): New function, extracted from | |
9208 | i386_cygwin_osabi_sniffer. | |
9209 | (_initialize_i386_cygwin_tdep): Register OS ABI | |
9210 | GDB_OSABI_WINDOWS for i386. | |
9211 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return | |
9212 | GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64". | |
9213 | (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS | |
9214 | for x86-64. | |
9215 | * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI | |
9216 | when the target matches '*-*-mingw*'. | |
9217 | ||
fe4b2ee6 SM |
9218 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
9219 | ||
9220 | * defs.h (enum gdb_osabi): Move to... | |
9221 | * osabi.h (enum gdb_osabi): ... here. | |
9222 | * gdbarch.sh: Include osabi.h in gdbarch.h. | |
9223 | * gdbarch.h: Re-generate. | |
9224 | ||
cb9b645d SM |
9225 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
9226 | ||
9227 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New | |
9228 | function. | |
9229 | (_initialize_amd64_windows_tdep): Register osabi sniffer. | |
9230 | ||
3293bbaf TT |
9231 | 2020-03-14 Tom Tromey <tom@tromey.com> |
9232 | ||
9233 | * c-typeprint.c (cp_type_print_method_args): Print "__restrict__" | |
9234 | for C++. | |
9235 | (c_type_print_modifier): Likewise. Add "language" parameter. | |
9236 | (c_type_print_varspec_prefix, c_type_print_base_struct_union) | |
9237 | (c_type_print_base_1): Update. | |
9238 | * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New | |
9239 | constants. | |
9240 | * type-stack.c (type_stack::insert): Handle tp_atomic and | |
9241 | tp_restrict. | |
9242 | (type_stack::follow_type_instance_flags): Likewise. | |
9243 | (type_stack::follow_types): Likewise. Merge type-following code. | |
9244 | * c-exp.y (RESTRICT, ATOMIC): New tokens. | |
9245 | (space_identifier, cv_with_space_id) | |
9246 | (const_or_volatile_or_space_identifier_noopt) | |
9247 | (const_or_volatile_or_space_identifier): Remove. | |
9248 | (single_qualifier, qualifier_seq_noopt, qualifier_seq): New | |
9249 | rules. | |
9250 | (ptr_operator, typebase): Update. | |
9251 | (enum token_flag) <FLAG_C>: New constant. | |
9252 | (ident_tokens): Add "restrict", "__restrict__", "__restrict", and | |
9253 | "_Atomic". | |
9254 | (lex_one_token): Handle FLAG_C. | |
9255 | ||
154151a6 KR |
9256 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9257 | ||
9258 | * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass | |
9259 | it to the ptrace call. | |
9260 | * m68k-bsd-nat.c (store_registers): Likewise. | |
9261 | ||
bc107784 KR |
9262 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9263 | ||
9264 | * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to | |
9265 | gdb_byte *. | |
9266 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
9267 | * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise. | |
9268 | * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *. | |
9269 | ||
01a80117 KR |
9270 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9271 | ||
9272 | * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from | |
9273 | nbsd_nat_target instead of inf_ptrace_target. | |
9274 | * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
9275 | nbsd_nat_target. | |
9276 | ||
f90280ca KR |
9277 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9278 | ||
9279 | * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
9280 | register_t. | |
9281 | ||
6def66f1 KR |
9282 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9283 | ||
9284 | * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass | |
9285 | it to the ptrace call. | |
9286 | * alpha-bsd-nat.c (store_registers): Likewise. | |
9287 | ||
66eaca97 KR |
9288 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9289 | ||
9290 | * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from | |
9291 | includes. | |
9292 | * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove. | |
9293 | * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset, | |
9294 | fill_fpregset): Likewise. | |
9295 | ||
4fed520b KR |
9296 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9297 | ||
9298 | * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from | |
9299 | nbsd_nat_target instead of inf_ptrace_target. | |
9300 | * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
9301 | nbsd_nat_target. | |
9302 | ||
2190cf06 KR |
9303 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9304 | ||
9305 | * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
9306 | register_t. | |
9307 | ||
75c56d3d KR |
9308 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9309 | ||
9310 | * arm-nbsd-nat.c (fetch_register): New variable lwp and pass | |
9311 | it to the ptrace call. | |
9312 | * arm-nbsd-nat.c (fetch_fp_register): Likewise. | |
9313 | * arm-nbsd-nat.c (fetch_fp_regs): Likewise. | |
9314 | * arm-nbsd-nat.c (store_register): Likewise. | |
9315 | * arm-nbsd-nat.c (store_regs): Likewise. | |
9316 | * arm-nbsd-nat.c (store_fp_register): Likewise. | |
9317 | * arm-nbsd-nat.c (store_fp_regs): Likewise. | |
9318 | ||
6018d381 KR |
9319 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9320 | ||
9321 | * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from | |
9322 | nbsd_nat_target instead of inf_ptrace_target. | |
9323 | * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
9324 | nbsd_nat_target. | |
9325 | ||
013f99f0 KR |
9326 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9327 | ||
9328 | * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass | |
9329 | it to the ptrace call. | |
9330 | * x86-bsd-nat.c (x86bsd_dr_set): Likewise. | |
9331 | ||
12753073 KR |
9332 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9333 | ||
6227b330 KR |
9334 | * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass |
9335 | it to the ptrace call. | |
9336 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. | |
9337 | ||
9338 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
9339 | ||
9340 | * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const | |
9341 | gdb_byte *. | |
12753073 KR |
9342 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *. |
9343 | ||
d5be5fa4 KR |
9344 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9345 | ||
9346 | * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target | |
9347 | instead of inf_ptrace_target. | |
9348 | * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
9349 | nbsd_nat_target. | |
9350 | ||
8110f842 KR |
9351 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9352 | ||
9353 | * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
9354 | register_t. | |
9355 | ||
52feded7 KR |
9356 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9357 | ||
9358 | * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
9359 | register_t. | |
9360 | ||
25567eee KR |
9361 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
9362 | ||
9363 | * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
9364 | register_t. | |
9365 | ||
426a9c18 TT |
9366 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9367 | ||
9368 | * value.h (val_print): Don't declare. | |
9369 | * valprint.h (val_print_array_elements) | |
9370 | (val_print_scalar_formatted, generic_val_print): Don't declare. | |
9371 | * valprint.c (generic_val_print_array): Take a struct value. | |
9372 | (generic_val_print_ptr, generic_val_print_memberptr) | |
9373 | (generic_val_print_bool, generic_val_print_int) | |
9374 | (generic_val_print_char, generic_val_print_complex) | |
9375 | (generic_val_print): Remove. | |
9376 | (generic_value_print): Update. | |
9377 | (do_val_print): Remove unused parameters. Don't call | |
9378 | la_val_print. | |
9379 | (val_print): Remove. | |
9380 | (common_val_print): Update. Don't call value_check_printable. | |
9381 | (val_print_scalar_formatted, val_print_array_elements): Remove. | |
9382 | * rust-lang.c (rust_val_print): Remove. | |
9383 | (rust_language_defn): Update. | |
9384 | * p-valprint.c (pascal_val_print): Remove. | |
9385 | (pascal_value_print_inner): Update. | |
9386 | (pascal_object_print_val_fields, pascal_object_print_val): | |
9387 | Remove. | |
9388 | (pascal_object_print_static_field): Update. | |
9389 | * p-lang.h (pascal_val_print): Don't declare. | |
9390 | * p-lang.c (pascal_language_defn): Update. | |
9391 | * opencl-lang.c (opencl_language_defn): Update. | |
9392 | * objc-lang.c (objc_language_defn): Update. | |
9393 | * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove. | |
9394 | * m2-lang.h (m2_val_print): Don't declare. | |
9395 | * m2-lang.c (m2_language_defn): Update. | |
9396 | * language.h (struct language_defn) <la_val_print>: Remove. | |
9397 | * language.c (unk_lang_value_print_inner): Rename. Change | |
9398 | argument types. | |
9399 | (unknown_language_defn, auto_language_defn): Update. | |
9400 | * go-valprint.c (go_val_print): Remove. | |
9401 | * go-lang.h (go_val_print): Don't declare. | |
9402 | * go-lang.c (go_language_defn): Update. | |
9403 | * f-valprint.c (f_val_print): Remove. | |
9404 | * f-lang.h (f_value_print): Don't declare. | |
9405 | * f-lang.c (f_language_defn): Update. | |
9406 | * d-valprint.c (d_val_print): Remove. | |
9407 | * d-lang.h (d_value_print): Don't declare. | |
9408 | * d-lang.c (d_language_defn): Update. | |
9409 | * cp-valprint.c (cp_print_value_fields) | |
9410 | (cp_print_value_fields_rtti, cp_print_value): Remove. | |
9411 | (cp_print_static_field): Update. | |
9412 | * c-valprint.c (c_val_print_array, c_val_print_ptr) | |
9413 | (c_val_print_struct, c_val_print_union, c_val_print_int) | |
9414 | (c_val_print_memberptr, c_val_print): Remove. | |
9415 | * c-lang.h (c_val_print_array, cp_print_value_fields) | |
9416 | (cp_print_value_fields_rtti): Don't declare. | |
9417 | * c-lang.c (c_language_defn, cplus_language_defn) | |
9418 | (asm_language_defn, minimal_language_defn): Update. | |
9419 | * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove. | |
9420 | (ada_val_print_enum): Take a struct value. | |
9421 | (ada_val_print_flt, ada_val_print_array, ada_val_print_1) | |
9422 | (ada_val_print): Remove. | |
9423 | (ada_value_print_1): Update. | |
9424 | (printable_val_type): Remove. | |
9425 | * ada-lang.h (ada_val_print): Don't declare. | |
9426 | * ada-lang.c (ada_language_defn): Update. | |
9427 | ||
42331a1e TT |
9428 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9429 | ||
9430 | * valprint.c (do_val_print): Update. | |
9431 | * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take | |
9432 | a struct value. | |
9433 | (value_to_value_object_no_release): Declare. | |
9434 | * python/py-value.c (value_to_value_object_no_release): New | |
9435 | function. | |
9436 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a | |
9437 | struct value. | |
9438 | * guile/scm-value.c (vlscm_scm_from_value_no_release): New | |
9439 | function. | |
9440 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take | |
9441 | a struct value. | |
9442 | * guile/guile-internal.h (vlscm_scm_from_value_no_release): | |
9443 | Declare. | |
9444 | (gdbscm_apply_val_pretty_printer): Take a struct value. | |
9445 | * extension.h (apply_ext_lang_val_pretty_printer): Take a struct | |
9446 | value. | |
9447 | * extension.c (apply_ext_lang_val_pretty_printer): Take a struct | |
9448 | value. | |
9449 | * extension-priv.h (struct extension_language_ops) | |
9450 | <apply_val_pretty_printer>: Take a struct value. | |
9451 | * cp-valprint.c (cp_print_value): Create a struct value. | |
9452 | (cp_print_value): Update. | |
9453 | ||
3a916a97 TT |
9454 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9455 | ||
9456 | * ada-valprint.c (print_field_values): Call common_val_print. | |
9457 | ||
b59eac37 TT |
9458 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9459 | ||
9460 | * ada-valprint.c (val_print_packed_array_elements): Remove | |
9461 | bitoffset and val parameters. Call common_val_print. | |
9462 | (ada_val_print_string): Remove offset, address, and original_value | |
9463 | parameters. | |
9464 | (ada_val_print_array): Update. | |
9465 | (ada_value_print_array): New function. | |
9466 | (ada_value_print_1): Call it. | |
9467 | ||
03371129 TT |
9468 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9469 | ||
9470 | * ada-valprint.c (ada_value_print): Use common_val_print. | |
9471 | ||
2e088f8b TT |
9472 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9473 | ||
9474 | * ada-valprint.c (ada_val_print_ref): Use common_val_print. | |
9475 | ||
39ef85a8 TT |
9476 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9477 | ||
9478 | * ada-valprint.c (ada_value_print_num): New function. | |
9479 | (ada_value_print_1): Use it. | |
9480 | ||
b9fa6e07 TT |
9481 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9482 | ||
9483 | * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite. | |
9484 | ||
416595d6 TT |
9485 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9486 | ||
9487 | * ada-valprint.c (ada_value_print_ptr): New function. | |
9488 | (ada_value_print_1): Use it. | |
9489 | ||
5b5e15ec TT |
9490 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9491 | ||
9492 | * ada-valprint.c (ada_val_print_gnat_array): Take a struct value; | |
9493 | call common_val_print. | |
9494 | (ada_val_print_1): Update. | |
9495 | (ada_value_print_1): New function. | |
9496 | (ada_value_print_inner): Rewrite. | |
9497 | ||
fbf54e75 TT |
9498 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9499 | ||
9500 | * cp-valprint.c (cp_print_value_fields): Update. | |
9501 | (cp_print_value): New function. | |
9502 | ||
64b653ca TT |
9503 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9504 | ||
9505 | * m2-valprint.c (m2_value_print_inner): Use | |
9506 | cp_print_value_fields. | |
9507 | * cp-valprint.c (cp_print_value_fields): New function. | |
9508 | * c-valprint.c (c_value_print_struct): New function. | |
9509 | (c_value_print_inner): Use c_value_print_struct. | |
9510 | * c-lang.h (cp_print_value_fields): Declare. | |
9511 | ||
6999f067 TT |
9512 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9513 | ||
9514 | * c-valprint.c (c_value_print_array): New function. | |
9515 | (c_value_print_inner): Use it. | |
9516 | ||
ce80b8bd TT |
9517 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9518 | ||
9519 | * c-valprint.c (c_value_print_memberptr): New function. | |
9520 | (c_value_print_inner): Use it. | |
9521 | ||
2faac269 TT |
9522 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9523 | ||
9524 | * c-valprint.c (c_value_print_int): New function. | |
9525 | (c_value_print_inner): Use it. | |
9526 | ||
da3e2c29 TT |
9527 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9528 | ||
9529 | * c-valprint.c (c_value_print_ptr): New function. | |
9530 | (c_value_print_inner): Use it. | |
9531 | ||
50836231 TT |
9532 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9533 | ||
9534 | * c-valprint.c (c_value_print_inner): Rewrite. | |
9535 | ||
4f412b6e TT |
9536 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9537 | ||
9538 | * valprint.c (generic_value_print_complex): New function. | |
9539 | (generic_value_print): Use it. | |
9540 | ||
f5354008 TT |
9541 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9542 | ||
9543 | * valprint.c (generic_val_print_float): Don't call | |
9544 | val_print_scalar_formatted. | |
9545 | (generic_val_print, generic_value_print): Update. | |
9546 | ||
3eec3b05 TT |
9547 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9548 | ||
9549 | * valprint.c (generic_value_print_char): New function | |
9550 | (generic_value_print): Use it. | |
9551 | ||
fdddfccb TT |
9552 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9553 | ||
9554 | * valprint.c (generic_value_print_int): New function. | |
9555 | (generic_value_print): Use it. | |
9556 | ||
6dde7521 TT |
9557 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9558 | ||
9559 | * valprint.c (generic_value_print_bool): New function. | |
9560 | (generic_value_print): Use it. | |
9561 | ||
4112d2e6 TT |
9562 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9563 | ||
9564 | * valprint.c (generic_val_print_func): Simplify. | |
9565 | (generic_val_print, generic_value_print): Update. | |
9566 | ||
65786af6 TT |
9567 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9568 | ||
9569 | * valprint.c (generic_val_print_flags): Remove. | |
9570 | (generic_val_print, generic_value_print): Update. | |
9571 | (val_print_type_code_flags): Add original_value parameter. | |
9572 | ||
40f3ce18 TT |
9573 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9574 | ||
9575 | * valprint.c (generic_val_print): Update. | |
9576 | (generic_value_print): Update. | |
9577 | * valprint.c (generic_val_print_enum): Don't call | |
9578 | val_print_scalar_formatted. | |
9579 | ||
2a5b130b TT |
9580 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9581 | ||
9582 | * valprint.c (generic_value_print): Call generic_value_print_ptr. | |
9583 | * valprint.c (generic_value_print_ptr): New function. | |
9584 | ||
abc66ce9 TT |
9585 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9586 | ||
9587 | * valprint.c (generic_value_print): Rewrite. | |
9588 | ||
07a32858 TT |
9589 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9590 | ||
9591 | * p-valprint.c (pascal_object_print_value_fields) | |
9592 | (pascal_object_print_value): New functions. | |
9593 | ||
64d64d3a TT |
9594 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9595 | ||
9596 | * p-valprint.c (pascal_value_print_inner): Rewrite. | |
9597 | ||
6a95a1f5 TT |
9598 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9599 | ||
9600 | * f-valprint.c (f_value_print_innner): Rewrite. | |
9601 | ||
59fcdac6 TT |
9602 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9603 | ||
9604 | * m2-valprint.c (m2_print_unbounded_array): New overload. | |
9605 | (m2_print_unbounded_array): Update. | |
9606 | (m2_print_array_contents): Take a struct value. | |
9607 | (m2_value_print_inner): Rewrite. | |
9608 | ||
d133c3e1 TT |
9609 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9610 | ||
9611 | * d-valprint.c (dynamic_array_type): Call d_value_print_inner. | |
9612 | (d_value_print_inner): New function. | |
9613 | * d-lang.h (d_value_print_inner): Declare. | |
9614 | * d-lang.c (d_language_defn): Use d_value_print_inner. | |
9615 | ||
23b0f06b TT |
9616 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9617 | ||
9618 | * go-valprint.c (go_value_print_inner): New function. | |
9619 | * go-lang.h (go_value_print_inner): Declare. | |
9620 | * go-lang.c (go_language_defn): Use go_value_print_inner. | |
9621 | ||
5f56f7cb TT |
9622 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9623 | ||
9624 | * rust-lang.c (val_print_struct, rust_print_enum): Use the value | |
9625 | API. | |
9626 | (rust_val_print): Rewrite. | |
9627 | (rust_value_print_inner): New function, from rust_val_print. | |
9628 | (rust_language_defn): Use rust_value_print_inner. | |
9629 | ||
26792ee0 TT |
9630 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9631 | ||
9632 | * ada-valprint.c (ada_value_print_inner): New function. | |
9633 | * ada-lang.h (ada_value_print_inner): Declare. | |
9634 | * ada-lang.c (ada_language_defn): Use ada_value_print_inner. | |
9635 | ||
24051bbe TT |
9636 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9637 | ||
9638 | * f-valprint.c (f_value_print_innner): New function. | |
9639 | * f-lang.h (f_value_print_innner): Declare. | |
9640 | * f-lang.c (f_language_defn): Use f_value_print_innner. | |
9641 | ||
c0941be6 TT |
9642 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9643 | ||
9644 | * p-valprint.c (pascal_value_print_inner): New function. | |
9645 | * p-lang.h (pascal_value_print_inner): Declare. | |
9646 | * p-lang.c (pascal_language_defn): Use pascal_value_print_inner. | |
9647 | ||
62c4663d TT |
9648 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9649 | ||
9650 | * m2-valprint.c (m2_value_print_inner): New function. | |
9651 | * m2-lang.h (m2_value_print_inner): Declare. | |
9652 | * m2-lang.c (m2_language_defn): Use m2_value_print_inner. | |
9653 | ||
62182190 TT |
9654 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9655 | ||
9656 | * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. | |
9657 | * objc-lang.c (objc_language_defn): Use c_value_print_inner. | |
9658 | * c-valprint.c (c_value_print_inner): New function. | |
9659 | * c-lang.h (c_value_print_inner): Declare. | |
9660 | * c-lang.c (c_language_defn, cplus_language_defn) | |
9661 | (asm_language_defn, minimal_language_defn): Use | |
9662 | c_value_print_inner. | |
9663 | ||
1e592a8a TT |
9664 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9665 | ||
9666 | * p-valprint.c (pascal_object_print_value_fields): Now static. | |
9667 | * p-lang.h (pascal_object_print_value_fields): Don't declare. | |
9668 | ||
7fe471e9 TT |
9669 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9670 | ||
9671 | * c-valprint.c (c_val_print_array): Simplify. | |
9672 | ||
d121c6ce TT |
9673 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9674 | ||
9675 | * valprint.c (value_print_array_elements): New function. | |
9676 | * valprint.h (value_print_array_elements): Declare. | |
9677 | ||
4dba70ee TT |
9678 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9679 | ||
9680 | * printcmd.c (print_formatted): Use value_print_scalar_formatted. | |
9681 | * mips-tdep.c (mips_print_register): Use | |
9682 | value_print_scalar_formatted. | |
9683 | ||
4f9ae810 TT |
9684 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9685 | ||
9686 | * valprint.h (value_print_scalar_formatted): Declare. | |
9687 | * valprint.c (value_print_scalar_formatted): New function. | |
9688 | ||
156bfec9 TT |
9689 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9690 | ||
9691 | * valprint.h (generic_value_print): Declare. | |
9692 | * valprint.c (generic_value_print): New function. | |
9693 | ||
2b4e573d TT |
9694 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9695 | ||
9696 | * valprint.c (do_val_print): Call la_value_print_inner, if | |
9697 | available. | |
9698 | * rust-lang.c (rust_language_defn): Update. | |
9699 | * p-lang.c (pascal_language_defn): Update. | |
9700 | * opencl-lang.c (opencl_language_defn): Update. | |
9701 | * objc-lang.c (objc_language_defn): Update. | |
9702 | * m2-lang.c (m2_language_defn): Update. | |
9703 | * language.h (struct language_defn) <la_value_print_inner>: New | |
9704 | member. | |
9705 | * language.c (unknown_language_defn, auto_language_defn): Update. | |
9706 | * go-lang.c (go_language_defn): Update. | |
9707 | * f-lang.c (f_language_defn): Update. | |
9708 | * d-lang.c (d_language_defn): Update. | |
9709 | * c-lang.c (c_language_defn, cplus_language_defn) | |
9710 | (asm_language_defn, minimal_language_defn): Update. | |
9711 | * ada-lang.c (ada_language_defn): Update. | |
9712 | ||
a1f6a07c TT |
9713 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9714 | ||
9715 | * c-valprint.c (c_value_print): Use common_val_print. | |
9716 | ||
410cf315 TT |
9717 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9718 | ||
9719 | * cp-valprint.c (cp_print_static_field): Use common_val_print. | |
9720 | ||
72a45c93 TT |
9721 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9722 | ||
9723 | * f-valprint.c (f77_print_array_1, f_val_print): Use | |
9724 | common_val_print. | |
9725 | ||
040f66bd TT |
9726 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9727 | ||
9728 | * riscv-tdep.c (riscv_print_one_register_info): Use | |
9729 | common_val_print. | |
9730 | ||
a6e05a6c TT |
9731 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9732 | ||
9733 | * mi/mi-main.c (output_register): Use common_val_print. | |
9734 | ||
3444c526 TT |
9735 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9736 | ||
9737 | * infcmd.c (default_print_one_register_info): Use | |
9738 | common_val_print. | |
9739 | ||
c2a44efe TT |
9740 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9741 | ||
9742 | * valprint.h (common_val_print_checked): Declare. | |
9743 | * valprint.c (common_val_print_checked): New function. | |
9744 | * stack.c (print_frame_arg): Use common_val_print_checked. | |
9745 | ||
b0c26e99 TT |
9746 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9747 | ||
9748 | * valprint.c (do_val_print): New function, from val_print. | |
9749 | (val_print): Use do_val_print. | |
9750 | (common_val_print): Use do_val_print. | |
9751 | ||
ce3acbe9 TT |
9752 | 2020-03-13 Tom Tromey <tom@tromey.com> |
9753 | ||
9754 | * valprint.c (value_print): Use scoped_value_mark. | |
9755 | ||
96c7f873 TV |
9756 | 2020-03-13 Tom de Vries <tdevries@suse.de> |
9757 | ||
9758 | PR symtab/25646 | |
9759 | * psymtab.c (partial_symtab::partial_symtab): Don't set | |
9760 | globals_offset and statics_offset. Push element onto | |
9761 | current_global_psymbols and current_static_psymbols stacks. | |
9762 | (concat): New function. | |
9763 | (end_psymtab_common): Set globals_offset and statics_offset. Pop | |
9764 | element from current_global_psymbols and current_static_psymbols | |
9765 | stacks. Concat popped elements to global_psymbols and | |
9766 | static_symbols. | |
9767 | (add_psymbol_to_list): Use current_global_psymbols and | |
9768 | current_static_psymbols stacks. | |
9769 | * psymtab.h (class psymtab_storage): Add current_global_psymbols and | |
9770 | current_static_psymbols fields. | |
9771 | ||
6ba0a321 CB |
9772 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
9773 | ||
9774 | * corelow.c (sniff_core_bfd): Remove. | |
9775 | (class core_target) <m_core_vec>: Remove. | |
9776 | (core_target::core_target): Update. | |
9777 | (core_file_fns): Remove. | |
9778 | (deprecated_add_core_fns): Remove. | |
9779 | (default_core_sniffer): Remove. | |
9780 | (sniff_core_bfd): Remove. | |
9781 | (default_check_format): Remove. | |
9782 | (gdb_check_format): Remove. | |
9783 | (core_target_open): Update. | |
9784 | (core_target::get_core_register_section): Update. | |
9785 | (get_core_registers_cb): Update. | |
9786 | (core_target::fetch_registers): Update. | |
9787 | * gdbcore.h (struct core_fns): Remove. | |
9788 | (deprecated_add_core_fns): Remove. | |
9789 | (default_core_sniffer): Remove. | |
9790 | (default_check_format): Remove. | |
9791 | ||
227031b2 TT |
9792 | 2020-03-12 Tom Tromey <tom@tromey.com> |
9793 | ||
9794 | * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a | |
9795 | CORE_ADDR. | |
9796 | (struct arm_exidx_entry) <addr>: Now a CORE_ADDR. | |
9797 | ||
53807e9f TT |
9798 | 2020-03-12 Tom Tromey <tom@tromey.com> |
9799 | ||
9800 | * remote.c (remote_target::download_tracepoint) | |
9801 | (remote_target::enable_tracepoint) | |
9802 | (remote_target::disable_tracepoint): Use phex, not sprintf_vma. | |
9803 | * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not | |
9804 | sprintf_vma. | |
9805 | ||
64f25102 TT |
9806 | 2020-03-12 Tom Tromey <tom@tromey.com> |
9807 | ||
9808 | * symfile-mem.c: Update CORE_ADDR size assert. | |
9809 | ||
272cd5a3 SM |
9810 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
9811 | ||
9812 | * selftest.m4: Move to gdbsupport/. | |
9813 | * acinclude.m4: Update path to selftest.m4. | |
9814 | ||
74cd3f9d SM |
9815 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
9816 | ||
9817 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to... | |
9818 | (SELFTESTS_SRCS): ... this. Add disasm-selftests.c, | |
9819 | gdbarch-selfselftests.c and selftest-arch.c. | |
9820 | (SUBDIR_UNITTESTS_OBS): Rename to... | |
9821 | (SELFTESTS_OBS): ... this. | |
9822 | (COMMON_SFILES): Remove disasm-selftests.c and | |
9823 | gdbarch-selftests.c. | |
9824 | * configure.ac: Don't add selftest-arch.{c,o} to | |
9825 | CONFIG_{SRCS,OBS}. | |
9826 | * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST | |
9827 | preprocessor conditions. | |
9828 | ||
db6878ac SM |
9829 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
9830 | ||
9831 | * configure.ac: Don't source bfd/development.sh. | |
9832 | * selftest.m4: Modify comment. | |
9833 | * configure: Re-generate. | |
9834 | ||
4d696a5c SM |
9835 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
9836 | ||
9837 | * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is | |
9838 | not "true" or "false". | |
9839 | * configure: Re-generate. | |
9840 | ||
8dd8e1c7 CB |
9841 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
9842 | ||
9843 | * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file. | |
9844 | * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and | |
9845 | renamed to arm_nbsd_supply_gregset. | |
9846 | (fetch_register): Update to call arm_nbsd_supply_gregset. | |
9847 | (fetch_regs): Remove in favor of fetch_register with a -1 regno. | |
9848 | (arm_netbsd_nat_target::fetch_registers): Update. | |
9849 | (fetch_elfcore_registers): Removed. | |
9850 | (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns. | |
9851 | * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct. | |
9852 | (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to | |
9853 | not require NetBSD system headers. | |
9854 | (arm_nbsd_regset): New struct. | |
9855 | (arm_nbsd_iterate_over_regset_sections): New function. | |
9856 | (arm_netbsd_init_abi_common): Updated to call | |
9857 | set_gdbarch_iterate_over_regset_sections. | |
9858 | * arm-nbsd-tdep.h: New file. | |
9859 | ||
dd69bf7a KB |
9860 | 2020-03-11 Kevin Buettner <kevinb@redhat.com> |
9861 | ||
9862 | * symtab.c (find_pc_sect_line): Add check which prevents infinite | |
9863 | recursion. | |
9864 | ||
a0761e34 SM |
9865 | 2020-03-11 Simon Marchi <simon.marchi@efficios.com> |
9866 | ||
9867 | * configure: Re-generate. | |
9868 | ||
e7a82140 TT |
9869 | 2020-03-11 Tom Tromey <tromey@adacore.com> |
9870 | ||
9871 | * ada-typeprint.c (print_choices): Fix comment. | |
9872 | ||
dcc050c8 AB |
9873 | 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com> |
9874 | ||
9875 | * buildsyms.c (buildsym_compunit::record_line): Avoid accessing | |
9876 | previous item in the list, when the list has no items. | |
9877 | ||
1c33af77 TV |
9878 | 2020-03-11 Tom de Vries <tdevries@suse.de> |
9879 | ||
9880 | * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in | |
9881 | PROP_LOCLIST handling code. | |
9882 | ||
8c95582d AB |
9883 | 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com> |
9884 | ||
9885 | * buildsym-legacy.c (record_line): Pass extra parameter to | |
9886 | record_line. | |
9887 | * buildsym.c (buildsym_compunit::record_line): Take an extra | |
9888 | parameter, reduce duplication in the line table, and record the | |
9889 | is_stmt flag in the line table. | |
9890 | * buildsym.h (buildsym_compunit::record_line): Add extra | |
9891 | parameter. | |
9892 | * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore | |
9893 | non-statement lines. | |
9894 | * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass | |
9895 | this to the symtab builder. | |
9896 | (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1. | |
9897 | (lnp_state_machine::record_line): Pass a suitable is_stmt flag | |
9898 | through to dwarf_record_line_1. | |
9899 | * infrun.c (process_event_stop_test): When stepping, don't stop at | |
9900 | a non-statement instruction, and only refresh the step info when | |
9901 | we land in the middle of a line's range. Also add an extra | |
9902 | comment. | |
9903 | * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt | |
9904 | field. | |
9905 | * record-btrace.c (btrace_find_line_range): Only record lines | |
9906 | marked as is-statement. | |
9907 | * stack.c (frame_show_address): Show the frame address if we are | |
9908 | in a non-statement sal. | |
9909 | * symmisc.c (dump_symtab_1): Print the is_stmt flag. | |
9910 | (maintenance_print_one_line_table): Print a header for the is_stmt | |
9911 | column, and include is_stmt information in the output. | |
9912 | * symtab.c (find_pc_sect_line): Find lines marked as statements in | |
9913 | preference to non-statements. | |
9914 | (find_pcs_for_symtab_line): Prefer is-statement entries. | |
9915 | (find_line_common): Likewise. | |
9916 | * symtab.h (struct linetable_entry): Add is_stmt field. | |
9917 | (struct symtab_and_line): Likewise. | |
9918 | * xcoffread.c (arrange_linetable): Initialise is_stmt field when | |
9919 | arranging the line table. | |
9920 | ||
e4003a34 TV |
9921 | 2020-03-07 Tom de Vries <tdevries@suse.de> |
9922 | ||
9923 | * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder | |
9924 | DIE. | |
9925 | ||
e8932576 TT |
9926 | 2020-03-07 Tom Tromey <tom@tromey.com> |
9927 | ||
9928 | * valops.c (value_literal_complex): Remove obsolete comment. | |
9929 | * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete | |
9930 | comment. | |
9931 | ||
29734269 SM |
9932 | 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
9933 | ||
9934 | * infrun.h: Forward-declare thread_info. | |
9935 | (set_step_info): Add thread_info parameter, add doc. | |
9936 | * infrun.c (set_step_info): Add thread_info parameter, move doc | |
9937 | to header. | |
9938 | * infrun.c (process_event_stop_test): Pass thread to | |
9939 | set_step_info call. | |
9940 | * infcmd.c (set_step_frame): Add thread_info pointer, pass it to | |
9941 | set_step_info. | |
9942 | (prepare_one_step): Add thread_info parameter, pass it to | |
9943 | set_step_frame and prepare_one_step (recursive) call. | |
9944 | (step_1): Pass thread to prepare_one_step call. | |
9945 | (step_command_fsm::should_stop): Pass thread to | |
9946 | prepare_one_step. | |
9947 | (until_next_fsm): Pass thread to set_step_frame call. | |
9948 | (finish_command): Pass thread to set_step_info call. | |
9949 | ||
b7d64b29 HD |
9950 | 2020-03-06 Hannes Domani <ssbssa@yahoo.de> |
9951 | ||
9952 | * windows-tdep.c (windows_solib_create_inferior_hook): | |
9953 | Check if inferior is running. | |
9954 | ||
09f2921c TV |
9955 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
9956 | ||
9957 | * NEWS: Fix "the the". | |
9958 | * ctfread.c: Same. | |
9959 | ||
fd760e79 TV |
9960 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
9961 | ||
9962 | * psymtab.c (psymtab_to_symtab): Don't print "done.". | |
9963 | ||
20ea4a60 AB |
9964 | 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
9965 | ||
9966 | * .dir-locals.el: Add a comment referencing the other copies of | |
9967 | this file. | |
9968 | ||
0afbabf0 JB |
9969 | 2020-03-05 John Baldwin <jhb@FreeBSD.org> |
9970 | ||
9971 | * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for | |
9972 | psargs. | |
9973 | ||
842806cb TBA |
9974 | 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
9975 | ||
9976 | * .gitattributes: New file. | |
9977 | ||
be1e3d3e TT |
9978 | 2020-03-04 Tom Tromey <tom@tromey.com> |
9979 | ||
9980 | * symmisc.c (print_symbol_bcache_statistics) | |
9981 | (print_objfile_statistics): Update. | |
9982 | * symfile.c (allocate_symtab): Use intern. | |
9983 | * psymtab.c (partial_symtab::partial_symtab): Use intern. | |
9984 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, | |
9985 | macro_cache>: Remove. | |
9986 | <string_cache>: New member. | |
9987 | (struct objfile) <intern>: New methods. | |
9988 | * elfread.c (elf_symtab_read): Use intern. | |
9989 | * dwarf2/read.c (fixup_go_packaging): Intern package name. | |
9990 | (dwarf2_compute_name, dwarf2_physname) | |
9991 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern | |
9992 | names. | |
9993 | (guess_partial_die_structure_name): Update. | |
9994 | (partial_die_info::fixup): Intern name. | |
9995 | (dwarf2_canonicalize_name): Change parameter to objfile. Intern | |
9996 | name. | |
9997 | (dwarf2_name): Intern name. Update. | |
9998 | * buildsym.c (buildsym_compunit::get_macro_table): Use | |
9999 | string_cache. | |
10000 | ||
4e7625fd TT |
10001 | 2020-03-04 Tom Tromey <tom@tromey.com> |
10002 | ||
10003 | * jit.c (bfd_open_from_target_memory): Make "target" const. | |
10004 | * corefile.c (gnutarget): Now const. | |
10005 | * gdbcore.h (gnutarget): Now const. | |
10006 | ||
46f9f931 HD |
10007 | 2020-03-04 Hannes Domani <ssbssa@yahoo.de> |
10008 | ||
10009 | * NEWS: Mention support for WOW64 processes. | |
10010 | * amd64-windows-nat.c (amd64_mappings): Rename and remove static. | |
10011 | (amd64_windows_segment_register_p): Remove static. | |
10012 | (_initialize_amd64_windows_nat): Update. | |
10013 | * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o. | |
10014 | * i386-windows-nat.c (context_offset): Update. | |
10015 | (i386_mappings): Rename and remove static. | |
10016 | (i386_windows_segment_register_p): Remove static. | |
10017 | (_initialize_i386_windows_nat): Update. | |
10018 | * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro. | |
10019 | (STATUS_WX86_SINGLE_STEP): New macro. | |
10020 | (EnumProcessModulesEx): New macro. | |
10021 | (Wow64SuspendThread): New macro. | |
10022 | (Wow64GetThreadContext): New macro. | |
10023 | (Wow64SetThreadContext): New macro. | |
10024 | (Wow64GetThreadSelectorEntry): New macro. | |
10025 | (windows_set_context_register_offsets): Add static. | |
10026 | (windows_set_segment_register_p): Likewise. | |
10027 | (windows_add_thread): Adapt for WOW64 processes. | |
10028 | (windows_fetch_one_register): Likewise. | |
10029 | (windows_nat_target::fetch_registers): Likewise. | |
10030 | (windows_store_one_register): Likewise. | |
10031 | (display_selector): Likewise. | |
10032 | (display_selectors): Likewise. | |
10033 | (handle_exception): Likewise. | |
10034 | (windows_continue): Likewise. | |
10035 | (windows_nat_target::resume): Likewise. | |
10036 | (windows_add_all_dlls): Likewise. | |
10037 | (do_initial_windows_stuff): Likewise. | |
10038 | (windows_nat_target::attach): Likewise. | |
10039 | (windows_get_exec_module_filename): Likewise. | |
10040 | (windows_nat_target::create_inferior): Likewise. | |
10041 | (windows_xfer_siginfo): Likewise. | |
10042 | (_initialize_loadable): Initialize Wow64SuspendThread, | |
10043 | Wow64GetThreadContext, Wow64SetThreadContext, | |
10044 | Wow64GetThreadSelectorEntry and EnumProcessModulesEx. | |
10045 | * windows-nat.h (windows_set_context_register_offsets): | |
10046 | Remove declaration. | |
10047 | (windows_set_segment_register_p): Likewise. | |
10048 | (i386_windows_segment_register_p): Add declaration. | |
10049 | (amd64_windows_segment_register_p): Likewise. | |
10050 | ||
440cf44e LM |
10051 | 2020-03-04 Luis Machado <luis.machado@linaro.org> |
10052 | ||
10053 | Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions | |
10054 | in "info registers" for AArch64/ARM. | |
10055 | ||
10056 | The change caused "info registers" to not print GPR's. | |
10057 | ||
10058 | gdb/ChangeLog: | |
10059 | ||
10060 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> | |
10061 | ||
10062 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
10063 | when reg->group is empty and reggroup is not. | |
10064 | ||
1009d92f TT |
10065 | 2020-03-03 Tom Tromey <tromey@adacore.com> |
10066 | ||
10067 | * dwarf2/frame.c (struct dwarf2_frame_cache) | |
10068 | <checked_tailcall_bottom, entry_cfa_sp_offset, | |
10069 | entry_cfa_sp_offset_p>: Remove members. | |
10070 | (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first. | |
10071 | (dwarf2_frame_prev_register): Don't call | |
10072 | dwarf2_tailcall_sniffer_first. | |
10073 | (dwarf2_append_unwinders): Don't append tailcall unwinder. | |
10074 | * frame-unwind.c (add_unwinder): New fuction. | |
10075 | (frame_unwind_init): Use it. Add tailcall unwinder. | |
10076 | ||
5e5d66b6 AB |
10077 | 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com> |
10078 | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
10079 | ||
10080 | * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero | |
10081 | value should be printed as true. | |
10082 | ||
584cf46d HD |
10083 | 2020-03-03 Hannes Domani <ssbssa@yahoo.de> |
10084 | ||
10085 | * windows-tdep.c (windows_solib_create_inferior_hook): New function. | |
10086 | (windows_init_abi): Set and use windows_so_ops. | |
10087 | ||
7b973adc SDJ |
10088 | 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com> |
10089 | ||
10090 | * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR | |
10091 | when verifying if dealing with a convenience variable. | |
10092 | ||
bb7b70ab LM |
10093 | 2020-03-03 Luis Machado <luis.machado@linaro.org> |
10094 | ||
10095 | * auxv.c (default_print_auxv_entry): Add new AUXV entries. | |
10096 | ||
9822cb57 SM |
10097 | 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
10098 | ||
10099 | * infrun.c (gdbarch_supports_displaced_stepping): New. | |
10100 | (use_displaced_stepping): Break up conditions in smaller pieces. | |
10101 | Use gdbarch_supports_displaced_stepping. | |
10102 | (displaced_step_prepare_throw): Use | |
10103 | gdbarch_supports_displaced_stepping. | |
10104 | ||
63e163f2 AB |
10105 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
10106 | ||
10107 | * NEWS: Mention new behaviour of the history filename. | |
10108 | * top.c (write_history_p): Add comment. | |
10109 | (show_write_history_p): Add header comment, give a different | |
10110 | message when history writing is on, but the history filename is | |
10111 | empty. | |
10112 | (history_filename): Add comment. | |
10113 | (history_filename_empty): New function. | |
10114 | (show_history_filename): Add header comment, give a different | |
10115 | message when the filename is empty. | |
10116 | (init_history): Compare history_filename against nullptr, and only | |
10117 | read history if the filename is not empty. | |
10118 | (set_history_filename): Add header comment, and only make | |
10119 | non-empty filenames absolute. | |
10120 | (init_main): Make the filename argument to 'set history filename' | |
10121 | optional. | |
10122 | ||
81b86b97 CB |
10123 | 2020-03-02 Christian Biesinger <cbiesinger@google.com> |
10124 | ||
10125 | * arm-nbsd-nat.c (arm_supply_fparegset): Rename to... | |
10126 | (arm_supply_vfpregset): ...this, and update to use VFP registers. | |
10127 | (fetch_fp_register): Update. | |
10128 | (fetch_fp_regs): Update. | |
10129 | (store_fp_register): Update. | |
10130 | (store_fp_regs): Update. | |
10131 | (arm_netbsd_nat_target::read_description): New function. | |
10132 | (fetch_elfcore_registers): Update. | |
10133 | ||
24ed6739 AB |
10134 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
10135 | ||
10136 | * remote.c (remote_target::remote_parse_stop_reply): Don't use the | |
10137 | general_thread if the stop reply is missing a thread-id. | |
10138 | (remote_target::process_stop_reply): Use the first non-exited | |
10139 | thread if the target didn't pass a thread-id. | |
10140 | * infrun.c (do_target_wait): Move call to | |
10141 | switch_to_inferior_no_thread to .... | |
10142 | (do_target_wait_1): ... here. | |
10143 | ||
a84bb2a0 JT |
10144 | 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk> |
10145 | ||
10146 | * debuginfod-support.c: Include defs.h first. | |
10147 | ||
658dadf0 TV |
10148 | 2020-02-28 Tom de Vries <tdevries@suse.de> |
10149 | ||
10150 | * symfile.c (set_initial_language): Use default language for lookup. | |
10151 | ||
4ebe4877 SM |
10152 | 2020-02-28 Simon Marchi <simon.marchi@efficios.com> |
10153 | ||
10154 | * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove | |
10155 | reader variable, pass `this` to read_cutu_die_from_dwo. | |
10156 | ||
e5da1139 AM |
10157 | 2020-02-27 Aaron Merey <amerey@redhat.com> |
10158 | ||
10159 | * source.c (open_source_file): Check for nullptr when computing | |
10160 | srcpath. | |
10161 | ||
317f7127 TT |
10162 | 2020-02-27 Tom Tromey <tromey@adacore.com> |
10163 | ||
10164 | * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a | |
10165 | member. | |
10166 | (dwarf2_add_field): Don't update nfields. | |
10167 | (dwarf2_attach_fields_to_type, process_structure_scope): Update. | |
10168 | ||
3104d9ee AB |
10169 | 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
10170 | ||
10171 | * gdbtypes.c (create_array_type_with_stride): Use std::abs not | |
10172 | abs. | |
10173 | ||
b83470bf TT |
10174 | 2020-02-26 Tom Tromey <tom@tromey.com> |
10175 | ||
10176 | * dwarf2/read.c (struct dwarf2_include_psymtab): New. | |
10177 | (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab. | |
10178 | (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p) | |
10179 | (dwarf2_psymtab::get_compunit_symtab): Remove null checks for | |
10180 | per_cu_data. | |
10181 | ||
edfe0a0c TT |
10182 | 2020-02-26 Tom Tromey <tom@tromey.com> |
10183 | ||
10184 | * dwarf2/index-write.c (psym_index_map): Change type. | |
10185 | (add_address_entry_worker, write_one_signatured_type) | |
10186 | (recursively_count_psymbols, recursively_write_psymbols) | |
10187 | (class debug_names, psyms_seen_size, write_gdbindex) | |
10188 | (write_debug_names): Use partial_symtab, not dwarf2_psymtab. | |
10189 | ||
0d79cdc4 AM |
10190 | 2020-02-26 Aaron Merey <amerey@redhat.com> |
10191 | ||
10192 | * Makefile.in: Handle optional debuginfod support. | |
10193 | * NEWS: Update. | |
10194 | * README: Add --with-debuginfod summary. | |
10195 | * config.in: Regenerate. | |
10196 | * configure: Regenerate. | |
10197 | * configure.ac: Handle optional debuginfod support. | |
10198 | * debuginfod-support.c: debuginfod helper functions. | |
10199 | * debuginfod-support.h: Ditto. | |
10200 | * doc/gdb.texinfo: Add --with-debuginfod to configure options | |
10201 | summary. | |
10202 | * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers | |
10203 | when a dwz file cannot be found. | |
10204 | * elfread.c (elf_symfile_read): Query debuginfod servers when a | |
10205 | debuginfo file cannot be found. | |
10206 | * source.c (open_source_file): Query debuginfod servers when a | |
10207 | source file cannot be found. | |
10208 | * top.c (print_gdb_configuration): Include | |
10209 | --{with,without}-debuginfod in the output. | |
10210 | ||
b65ce565 JG |
10211 | 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
10212 | ||
10213 | * thread.c (thr_try_catch_cmd): Print thread name. | |
10214 | ||
d4c9a4f8 SM |
10215 | 2020-02-26 Simon Marchi <simon.marchi@efficios.com> |
10216 | ||
10217 | * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off, | |
10218 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
10219 | dwarf2_fetch_die_type_sect_off): Move to... | |
10220 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
10221 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
10222 | dwarf2_fetch_die_type_sect_off): ... here. | |
10223 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
10224 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
10225 | dwarf2_fetch_die_type_sect_off): Move doc to header file. | |
10226 | ||
0dce4280 TV |
10227 | 2020-02-26 Tom de Vries <tdevries@suse.de> |
10228 | ||
10229 | PR gdb/25603 | |
10230 | * symfile.c (set_initial_language): Exit-early if | |
10231 | language_mode == language_mode_manual. | |
10232 | ||
450a1bfc SM |
10233 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
10234 | ||
10235 | * dwarf2/loc.h (dwarf2_read_addr_index): Move... | |
10236 | * dwarf2/read.h (dwarf2_read_addr_index): ... here. | |
10237 | * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header. | |
10238 | ||
9e80cfa1 AB |
10239 | 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
10240 | ||
10241 | * gdbtypes.c (create_array_type_with_stride): Handle negative | |
10242 | array strides. | |
10243 | * valarith.c (value_subscripted_rvalue): Likewise. | |
10244 | ||
09624f1f LM |
10245 | 2020-02-25 Luis Machado <luis.machado@linaro.org> |
10246 | ||
10247 | * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo. | |
10248 | ||
8cb5117c SM |
10249 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
10250 | ||
10251 | * loc.h (dwarf2_get_die_type): Move to... | |
10252 | * read.h (dwarf2_get_die_type): ... here. | |
10253 | * read.c (dwarf2_get_die_type): Move doc to header. | |
10254 | ||
c325c44e JB |
10255 | 2020-02-25 Joel Brobecker <brobecker@adacore.com> |
10256 | ||
10257 | * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and | |
10258 | 'gnulib/Makefile.in' to the list. | |
10259 | ||
4ac93832 TT |
10260 | 2020-02-24 Tom Tromey <tom@tromey.com> |
10261 | ||
10262 | * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>: | |
10263 | Remove. | |
10264 | * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use | |
10265 | XOBNEWVEC. | |
10266 | ||
197400e8 TT |
10267 | 2020-02-24 Tom Tromey <tom@tromey.com> |
10268 | ||
10269 | * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>: | |
10270 | New method. | |
10271 | * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove. | |
10272 | (dw2_do_instantiate_symtab, dw2_get_file_names) | |
10273 | (build_type_psymtab_dependencies, load_full_type_unit): Update. | |
10274 | ||
76935768 TT |
10275 | 2020-02-24 Tom Tromey <tom@tromey.com> |
10276 | ||
10277 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Use | |
10278 | make_scoped_restore. | |
10279 | (dwarf2_psymtab::read_symtab): Don't clear | |
10280 | reading_partial_symbols. | |
10281 | ||
a88ef40d TV |
10282 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
10283 | ||
10284 | PR gdb/25592 | |
10285 | * stack.c (iterate_over_block_locals): Handle LOC_CONST. | |
10286 | ||
c9af6521 TV |
10287 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
10288 | ||
10289 | * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for | |
10290 | commands layout next/prev/regs. | |
10291 | ||
5707a07a TT |
10292 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10293 | ||
10294 | * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare. | |
10295 | * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static. | |
10296 | ||
3b0fb49e TT |
10297 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10298 | ||
10299 | * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. | |
10300 | ||
283be8bf TT |
10301 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10302 | ||
10303 | * tui/tui-win.c (_initialize_tui_win): Add usage text. | |
10304 | * tui/tui-stack.c (_initialize_tui_stack): Add usage text. | |
10305 | * tui/tui-regs.c (_initialize_tui_regs): Add usage text. | |
10306 | * tui/tui.c (_initialize_tui): Add usage text. | |
10307 | ||
ca793b96 TT |
10308 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10309 | ||
10310 | * tui/tui-win.c (tui_set_focus_command) | |
10311 | (tui_set_win_height_command): Use error_no_arg. | |
10312 | (_initialize_tui_win): Update help text. | |
10313 | (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define. | |
10314 | ||
432b5c40 TT |
10315 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10316 | ||
10317 | * tui/tui-layout.c (extract_display_start_addr): Rewrite. | |
10318 | * tui/tui-disasm.h (struct tui_disasm_window) | |
10319 | <display_start_addr>: Declare. | |
10320 | * tui/tui-source.h (struct tui_source_window) | |
10321 | <display_start_addr>: Declare. | |
10322 | * tui/tui-winsource.h (struct tui_source_window_base) | |
10323 | <show_source_line, display_start_addr>: New methods. | |
10324 | <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>: | |
10325 | Rename and move to protected section. | |
10326 | * tui/tui-winsource.c (tui_source_window_base::update_source_window) | |
10327 | (tui_source_window_base::do_erase_source_content): Update. | |
10328 | (tui_source_window_base::show_source_line): Now a method. | |
10329 | (tui_source_window_base::show_source_content) | |
10330 | (tui_source_window_base::tui_source_window_base) | |
10331 | (tui_source_window_base::rerender) | |
10332 | (tui_source_window_base::refill) | |
10333 | (tui_source_window_base::do_scroll_horizontal) | |
10334 | (tui_source_window_base::set_is_exec_point_at) | |
10335 | (tui_source_window_base::update_breakpoint_info) | |
10336 | (tui_source_window_base::update_exec_info): Update. | |
10337 | * tui/tui-source.c (tui_source_window::set_contents) | |
10338 | (tui_source_window::showing_source_p) | |
10339 | (tui_source_window::do_scroll_vertical) | |
10340 | (tui_source_window::location_matches_p) | |
10341 | (tui_source_window::line_is_displayed): Update. | |
10342 | (tui_source_window::display_start_addr): New method. | |
10343 | * tui/tui-disasm.c (tui_disasm_window::set_contents) | |
10344 | (tui_disasm_window::do_scroll_vertical) | |
10345 | (tui_disasm_window::location_matches_p): Update. | |
10346 | (tui_disasm_window::display_start_addr): New method. | |
10347 | ||
01b1af32 TT |
10348 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10349 | ||
10350 | * NEWS: Add entry for gdb.register_window_type. | |
10351 | * tui/tui-layout.h (window_factory): New typedef. | |
10352 | (tui_register_window): Declare. | |
10353 | * tui/tui-layout.c (saved_tui_windows): New global. | |
10354 | (tui_apply_current_layout): Use it. | |
10355 | (tui_register_window): New function. | |
10356 | * python/python.c (do_start_initialization): Call | |
10357 | gdbpy_initialize_tui. | |
10358 | (python_GdbMethods): Add "register_window_type" function. | |
10359 | * python/python-internal.h (gdbpy_register_tui_window) | |
10360 | (gdbpy_initialize_tui): Declare. | |
10361 | * python/py-tui.c: New file. | |
10362 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c. | |
10363 | ||
fc96d20b TT |
10364 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10365 | ||
10366 | * tui/tui-io.c (do_tui_putc): Don't omit annotations. | |
10367 | ||
935c78c0 TT |
10368 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10369 | ||
10370 | * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c. | |
10371 | * tui/tui-data.h (tui_set_win_with_focus): Don't declare. | |
10372 | * tui/tui-data.c (tui_set_win_with_focus): Remove. | |
10373 | (tui_set_win_focus_to): Move from tui-win.c. | |
10374 | ||
0240c8f1 TT |
10375 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10376 | ||
10377 | * tui/tui-layout.c (make_standard_window, get_locator_window): New | |
10378 | functions. | |
10379 | (known_window_types): New global. | |
10380 | (tui_get_window_by_name): Reimplement. | |
10381 | (initialize_known_windows): New function. | |
10382 | (validate_window_name): Rewrite. | |
10383 | (_initialize_tui_layout): Call initialize_known_windows. | |
10384 | ||
fdb01f0c TT |
10385 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10386 | ||
10387 | * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>: | |
10388 | Remove constants. | |
10389 | * tui/tui-winsource.h (struct tui_source_window_base) | |
10390 | <tui_source_window_base>: Remove parameter. | |
10391 | * tui/tui-winsource.c | |
10392 | (tui_source_window_base::tui_source_window_base): Remove | |
10393 | parameter. | |
10394 | (tui_source_window_base::refill): Update. | |
10395 | * tui/tui-stack.h (struct tui_locator_window) | |
10396 | <tui_locator_window>: Update. | |
10397 | * tui/tui-source.h (struct tui_source_window) <tui_source_window>: | |
10398 | Default the constructor. | |
10399 | * tui/tui-regs.h (struct tui_data_item_window) | |
10400 | <tui_data_item_window>: Default the constructor. | |
10401 | (struct tui_data_window) <tui_data_window>: Likewise. | |
10402 | * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>: | |
10403 | Default the constructor. | |
10404 | * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>: | |
10405 | Default the constructor. | |
10406 | <type>: Remove. | |
10407 | (struct tui_win_info) <tui_win_info>: Default the constructor. | |
10408 | * tui/tui-data.c (tui_win_info::tui_win_info): Remove. | |
10409 | * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>: | |
10410 | Default the constructor. | |
10411 | ||
865a5aec TT |
10412 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10413 | ||
10414 | * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare. | |
10415 | * tui/tui-wingeneral.c (tui_make_all_invisible): Remove. | |
10416 | * tui/tui-win.c (tui_resize_all): Don't call | |
10417 | tui_delete_invisible_windows. | |
10418 | * tui/tui-layout.c (tui_apply_current_layout): Delete windows when | |
10419 | done. | |
10420 | (tui_set_layout): Update. | |
10421 | (tui_add_win_to_layout): Don't call tui_delete_invisible_windows. | |
10422 | * tui/tui-data.h (tui_delete_invisible_windows): Don't declare. | |
10423 | * tui/tui-data.c (tui_delete_invisible_windows): Remove. | |
10424 | ||
e098d18c TT |
10425 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10426 | ||
10427 | * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity | |
10428 | correctly. | |
10429 | ||
eb9c8874 TT |
10430 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10431 | ||
10432 | * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement. | |
10433 | ||
7eed1a8e TT |
10434 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10435 | ||
10436 | * tui/tui-winsource.h (struct tui_source_window_iterator) | |
10437 | <inner_iterator>: New etytypedef. | |
10438 | <tui_source_window_iterator>: Take "end" parameter. | |
10439 | <tui_source_window_iterator>: Take iterator. | |
10440 | <operator*, advance>: Update. | |
10441 | <m_iter>: Change type. | |
10442 | <m_end>: New field. | |
10443 | (struct tui_source_windows) <begin, end>: Update. | |
10444 | * tui/tui-layout.c (tui_windows): New global. | |
10445 | (tui_apply_current_layout): Clear tui_windows. | |
10446 | (tui_layout_window::apply): Update tui_windows. | |
10447 | * tui/tui-data.h (tui_windows): Declare. | |
10448 | (all_tui_windows): Now inline function. | |
10449 | (class tui_window_iterator, struct all_tui_windows): Remove. | |
10450 | ||
7c043ba6 TT |
10451 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10452 | ||
10453 | PR tui/17850: | |
10454 | * tui/tui-win.c (tui_gen_win_info::max_width): New method. | |
10455 | * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add | |
10456 | "height" argument. | |
10457 | (class tui_layout_window) <get_sizes>: Likewise. | |
10458 | (class tui_layout_split) <tui_layout_split>: Add "vertical" | |
10459 | argument. | |
10460 | <get_sizes>: Add "height" argument. | |
10461 | <m_vertical>: New field. | |
10462 | * tui/tui-layout.c (tui_layout_split::clone): Update. | |
10463 | (tui_layout_split::get_sizes): Add "height" argument. | |
10464 | (tui_layout_split::adjust_size, tui_layout_split::apply): Update. | |
10465 | (tui_new_layout_command): Parse "-horizontal". | |
10466 | (_initialize_tui_layout): Update help string. | |
10467 | (tui_layout_split::specification): Add "-horizontal" when needed. | |
10468 | * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height" | |
10469 | argument. | |
10470 | * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>: | |
10471 | New methods. | |
10472 | ||
6bc56648 TT |
10473 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10474 | ||
10475 | * tui/tui-layout.h (enum tui_adjust_result): New. | |
10476 | (class tui_layout_base) <adjust_size>: Return tui_adjust_result. | |
10477 | (class tui_layout_window) <adjust_size>: Return | |
10478 | tui_adjust_result. Rewrite. | |
10479 | (class tui_layout_split) <adjust_size>: Return tui_adjust_result. | |
10480 | * tui/tui-layout.c (tui_layout_split::adjust_size): Update. | |
10481 | ||
c22fef7e TT |
10482 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10483 | ||
10484 | * tui/tui-layout.h (class tui_layout_split) <add_split>: Change | |
10485 | parameter and return types. | |
10486 | (class tui_layout_base) <specification>: Add "depth". | |
10487 | (class tui_layout_window) <specification>: Add "depth". | |
10488 | (class tui_layout_split) <specification>: Add "depth". | |
10489 | * tui/tui-layout.c (tui_layout_split::add_split): Change parameter | |
10490 | and return types. | |
10491 | (tui_new_layout_command): Parse sub-layouts. | |
10492 | (_initialize_tui_layout): Update help string. | |
10493 | (tui_layout_window::specification): Add "depth". | |
10494 | (add_layout_command): Update. | |
10495 | ||
ee325b61 TT |
10496 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10497 | ||
10498 | * NEWS: Add "tui new-layout" item. | |
10499 | * tui/tui-layout.c (add_layout_command): Return cmd_list_element. | |
10500 | Add new-layout command to help text. | |
10501 | (validate_window_name): New function. | |
10502 | (tui_new_layout_command): New function. | |
10503 | (_initialize_tui_layout): Register "new-layout". | |
10504 | (tui_layout_window::specification): New method. | |
10505 | (tui_layout_window::specification): New method. | |
10506 | * tui/tui-layout.h (class tui_layout_base) <specification>: New | |
10507 | method. | |
10508 | (class tui_layout_window) <specification>: New method. | |
10509 | (class tui_layout_split) <specification>: New method. | |
10510 | ||
416eb92d TT |
10511 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10512 | ||
10513 | * tui/tui.c (tui_enable): Call tui_set_initial_layout. | |
10514 | * tui/tui-win.c (window_name_completer): Update comment. | |
10515 | * tui/tui-layout.h (class tui_layout_base) <replace_window>: | |
10516 | Declare method. | |
10517 | (class tui_layout_window) <replace_window>: Likewise. | |
10518 | (class tui_layout_split) <replace_window>: Likewise. | |
10519 | (tui_set_layout): Don't declare. | |
10520 | (tui_set_initial_layout): Declare function. | |
10521 | * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout) | |
10522 | (asm_regs_layout): New globals. | |
10523 | (tui_current_layout, show_layout): Remove. | |
10524 | (tui_set_layout, tui_add_win_to_layout): Rewrite. | |
10525 | (find_layout, tui_apply_layout): New function. | |
10526 | (layout_completer): Remove. | |
10527 | (tui_next_layout): Reimplement. | |
10528 | (tui_next_layout_command): New function. | |
10529 | (tui_set_initial_layout, tui_prev_layout_command): New functions. | |
10530 | (tui_regs_layout): Reimplement. | |
10531 | (tui_regs_layout_command): New function. | |
10532 | (extract_display_start_addr): Rewrite. | |
10533 | (next_layout, prev_layout): Remove. | |
10534 | (tui_layout_window::replace_window): New method. | |
10535 | (tui_layout_split::replace_window): New method. | |
10536 | (destroy_layout): New function. | |
10537 | (layout_list): New global. | |
10538 | (add_layout_command): New function. | |
10539 | (initialize_layouts): Update. | |
10540 | (tui_layout_command): New function. | |
10541 | (_initialize_tui_layout): Install "layout" commands. | |
10542 | * tui/tui-data.h (enum tui_layout_type): Remove. | |
10543 | (tui_current_layout): Don't declare. | |
10544 | ||
0dbc2fc7 TT |
10545 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10546 | ||
10547 | * tui/tui-regs.c (tui_reg_layout): Remove. | |
10548 | (tui_reg_command): Use tui_regs_layout. | |
10549 | * tui/tui-layout.h (tui_reg_command): Declare. | |
10550 | * tui/tui-layout.c (tui_reg_command): New function. | |
10551 | ||
5afe342e TT |
10552 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10553 | ||
10554 | * tui/tui.c (tui_rl_delete_other_windows): Call | |
10555 | tui_remove_some_windows. | |
10556 | * tui/tui-layout.h (class tui_layout_base) <remove_windows>: | |
10557 | Declare method. | |
10558 | (class tui_layout_window) <remove_windows>: New method. | |
10559 | (class tui_layout_split) <remove_windows>: Declare. | |
10560 | (tui_remove_some_windows): Declare. | |
10561 | * tui/tui-layout.c (tui_remove_some_windows): New function. | |
10562 | (tui_layout_split::remove_windows): New method. | |
10563 | ||
427326a8 TT |
10564 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10565 | ||
10566 | * tui/tui.c (tui_rl_change_windows): Call tui_next_layout. | |
10567 | * tui/tui-layout.h (tui_next_layout): Declare. | |
10568 | * tui/tui-layout.c (tui_next_layout): New function. | |
10569 | ||
3fe12b6d TT |
10570 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10571 | ||
10572 | * tui/tui-regs.c (tui_data_window::display_registers_from): Use | |
10573 | correct coordinates. | |
10574 | ||
59b8b5d2 TT |
10575 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10576 | ||
10577 | * tui/tui-layout.h (tui_add_win_to_layout): Add comment. | |
10578 | * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove | |
10579 | DATA_WIN case. | |
10580 | ||
2a3d458b TT |
10581 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10582 | ||
10583 | * tui/tui-disasm.c (tui_get_low_disassembly_address): Use | |
10584 | TUI_DISASM_WIN, not tui_win_list. | |
10585 | ||
3f0cbb04 TT |
10586 | 2020-02-22 Tom Tromey <tom@tromey.com> |
10587 | ||
10588 | * valprint.c (generic_val_print_enum_1) | |
10589 | (val_print_type_code_flags): Style member names. | |
10590 | * rust-lang.c (val_print_struct, rust_print_enum) | |
10591 | (rust_print_struct_def, rust_internal_print_type): Style member | |
10592 | names. | |
10593 | * p-valprint.c (pascal_object_print_value_fields): Style member | |
10594 | names. Only call fprintf_symbol_filtered for static members. | |
10595 | * m2-typeprint.c (m2_record_fields, m2_enum): Style member names. | |
10596 | * f-valprint.c (f_val_print): Style member names. | |
10597 | * f-typeprint.c (f_type_print_base): Style member names. | |
10598 | * cp-valprint.c (cp_print_value_fields): Style member names. Only | |
10599 | call fprintf_symbol_filtered for static members. | |
10600 | (cp_print_class_member): Style member names. | |
10601 | * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style | |
10602 | member names. | |
10603 | * ada-valprint.c (ada_print_scalar): Style enum names. | |
10604 | (ada_val_print_enum): Likewise. | |
10605 | * ada-typeprint.c (print_enum_type): Style enum names. | |
10606 | ||
d4d947ae TT |
10607 | 2020-02-21 Tom Tromey <tom@tromey.com> |
10608 | ||
10609 | * psympriv.h (struct partial_symtab): Update comment. | |
10610 | ||
e94e944b TT |
10611 | 2020-02-21 Tom Tromey <tromey@adacore.com> |
10612 | ||
10613 | * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter | |
10614 | type is CORE_ADDR. | |
10615 | ||
1eb73179 TV |
10616 | 2020-02-21 Tom de Vries <tdevries@suse.de> |
10617 | ||
10618 | PR gdb/25534 | |
10619 | * psymtab.c (partial_symtab::read_dependencies): Don't read dependency | |
10620 | if dependencies[i]->user != NULL. | |
10621 | ||
4f180d53 AT |
10622 | 2020-02-21 Ali Tamur <tamur@google.com> |
10623 | ||
10624 | * dwarf2/read.c (dwarf2_name): Add null check. | |
10625 | ||
22b6cd70 TT |
10626 | 2020-02-20 Tom Tromey <tom@tromey.com> |
10627 | ||
10628 | * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not | |
10629 | ">=", in binary search. | |
10630 | (dwarf2_find_containing_comp_unit): New overload. | |
10631 | (run_test): New self-test. | |
10632 | (_initialize_dwarf2_read): Register new test. | |
10633 | ||
bd0cf5a6 NC |
10634 | 2020-02-20 Nelson Chu <nelson.chu@sifive.com> |
10635 | ||
10636 | * riscv-tdep.c: Updated since the DECLARE_CSR is changed. | |
10637 | * riscv-tdep.h: Likewise. | |
10638 | * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without | |
10639 | rv32-only CSR. | |
10640 | * features/riscv/64bit-csr.xml: Regenerated. | |
10641 | ||
3f702acd SDJ |
10642 | 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
10643 | Tom Tromey <tom@tromey.com> | |
10644 | ||
10645 | * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead | |
10646 | of 'fputc_unfiltered'. | |
10647 | (putchar_unfiltered): Call 'fputc_unfiltered'. | |
10648 | (fputc_unfiltered): Call 'fputs_unfiltered'. | |
10649 | ||
d13c7322 AB |
10650 | 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com> |
10651 | ||
10652 | * config.in: Regenerate. | |
10653 | * configure: Regenerate. | |
10654 | * configure.ac: Add --with-python-libdir option. | |
10655 | * main.c: Use WITH_PYTHON_LIBDIR. | |
10656 | ||
869d8950 TT |
10657 | 2020-02-19 Tom Tromey <tom@tromey.com> |
10658 | ||
10659 | * symtab.c (general_symbol_info::compute_and_set_names): Use | |
10660 | obstack_strndup. Simplify call to symbol_set_demangled_name. | |
10661 | ||
298e9637 SM |
10662 | 2020-02-19 Simon Marchi <simon.marchi@efficios.com> |
10663 | ||
10664 | * dwarf2/read.c (allocate_signatured_type_table, | |
10665 | allocate_dwo_unit_table, allocate_type_unit_groups_table, | |
10666 | allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table): | |
10667 | Remove objfile parameter, update all callers. | |
10668 | ||
08410482 DE |
10669 | 2020-02-19 Doug Evans <dje@google.com> |
10670 | ||
10671 | PR rust/25535 | |
10672 | * rust-lang.c (rust_print_enum): Apply embedded_offset to | |
10673 | rust_enum_variant calculation. | |
10674 | ||
dfdeeca1 TT |
10675 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
10676 | ||
10677 | * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. | |
10678 | ||
2ef5453b TT |
10679 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
10680 | ||
10681 | * ada-lang.c (cache_symbol): Use obstack_strdup. | |
10682 | ||
9f1528a1 AB |
10683 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
10684 | ||
10685 | * configure: Regenerate. | |
10686 | ||
d3c22fa8 TT |
10687 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
10688 | ||
10689 | * python/python.c (do_start_initialization): Use XNEWVEC. Remove | |
10690 | NULL check. | |
10691 | ||
bf84f706 MR |
10692 | 2020-02-19 Maciej W. Rozycki <macro@wdc.com> |
10693 | ||
10694 | * NEWS: Mention RISC-V GNU/Linux GDBserver support. | |
10695 | ||
d1c9b20f AB |
10696 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
10697 | ||
10698 | * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define | |
10699 | if GDBSERVER is not defined. | |
10700 | (riscv_tdesc_cache): Likewise, also store const target_desc. | |
10701 | (STATIC_IN_GDB): Define. | |
10702 | (riscv_create_target_description): Update declaration with | |
10703 | STATIC_IN_GDB. | |
10704 | (riscv_lookup_target_description): New function, only define if | |
10705 | GDBSERVER is not defined. | |
10706 | * arch/riscv.h (riscv_create_target_description): Declare only | |
10707 | when GDBSERVER is defined. | |
10708 | (riscv_lookup_target_description): New declaration when GDBSERVER | |
10709 | is not defined. | |
10710 | * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to... | |
10711 | (riscv_linux_read_features): ...this, and return | |
10712 | riscv_gdbarch_features instead of target_desc. | |
10713 | * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'. | |
10714 | (riscv_linux_read_description): Rename to... | |
10715 | (riscv_linux_read_features): ...this. | |
10716 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
10717 | Update to use riscv_gdbarch_features and | |
10718 | riscv_lookup_target_description. | |
10719 | * riscv-tdep.c (riscv_find_default_target_description): Use | |
10720 | riscv_lookup_target_description instead of | |
10721 | riscv_create_target_description. | |
10722 | ||
373d7ac0 SM |
10723 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
10724 | ||
10725 | * valprint.c (generic_val_print_enum_1): When printing a flag | |
10726 | enum with value 0 and there is no enumerator with value 0, print | |
10727 | just "0" instead of "(unknown: 0x0)". | |
10728 | ||
b29a2df0 SM |
10729 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
10730 | ||
10731 | * valprint.c (generic_val_print_enum_1): Print unknown part of | |
10732 | flag enum in hex. | |
10733 | ||
6740f0cc SM |
10734 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
10735 | ||
10736 | * dwarf2/read.c (update_enumeration_type_from_children): Allow | |
10737 | flag enums to contain duplicate enumerators. | |
10738 | * valprint.c (generic_val_print_enum_1): Update comment. | |
10739 | ||
edd45eb0 SM |
10740 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
10741 | ||
10742 | * dwarf2/read.c: Include "count-one-bits.h". | |
10743 | (update_enumeration_type_from_children): If an enumerator has | |
10744 | multiple bits set, don't treat the enumeration as a "flag enum". | |
10745 | * valprint.c (generic_val_print_enum_1): Assert that enumerators | |
10746 | of flag enums have 0 or 1 bit set. | |
10747 | ||
6d0cf446 BE |
10748 | 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
10749 | ||
10750 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit | |
10751 | conversion. | |
10752 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
10753 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
10754 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
10755 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
10756 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
10757 | ||
7001c1b7 SM |
10758 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
10759 | ||
10760 | * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com. | |
10761 | ||
fdb61c6c SM |
10762 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
10763 | ||
10764 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use | |
10765 | displaced_step_closure_up. | |
10766 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
10767 | (struct displaced_step_closure_up): | |
10768 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
10769 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
10770 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): | |
10771 | Likewise. | |
10772 | * gdbarch.sh (displaced_step_copy_insn): Likewise. | |
10773 | * gdbarch.c, gdbarch.h: Re-generate. | |
10774 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use | |
10775 | displaced_step_closure_up. | |
10776 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
10777 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
10778 | * infrun.h (displaced_step_closure_up): New type alias. | |
10779 | (struct displaced_step_inferior_state) <step_closure>: Change | |
10780 | type to displaced_step_closure_up. | |
10781 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use | |
10782 | displaced_step_closure_up. | |
10783 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
10784 | ||
a4a38eb4 TT |
10785 | 2020-02-14 Tom Tromey <tom@tromey.com> |
10786 | ||
10787 | * minidebug.c (gnu_debug_key): New global. | |
10788 | (find_separate_debug_file_in_section): Use it. | |
10789 | ||
e8217e61 SM |
10790 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
10791 | ||
10792 | * gdbarch.sh (displaced_step_copy_insn): Change return type to an | |
10793 | std::unique_ptr. | |
10794 | * gdbarch.c: Re-generate. | |
10795 | * gdbarch.h: Re-generate. | |
10796 | * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr | |
10797 | change. | |
10798 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return | |
10799 | type to std::unique_ptr. | |
10800 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
10801 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
10802 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
10803 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
10804 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise. | |
10805 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
10806 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
10807 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
10808 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
10809 | ||
d8d83535 SM |
10810 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
10811 | ||
10812 | * infrun.c (get_displaced_step_closure_by_addr): Adjust to | |
10813 | std::unique_ptr. | |
10814 | (displaced_step_clear): Rename to... | |
10815 | (displaced_step_reset): ... this. Just call displaced->reset (). | |
10816 | (displaced_step_clear_cleanup): Rename to... | |
10817 | (displaced_step_reset_cleanup): ... this. | |
10818 | (displaced_step_prepare_throw): Adjust to std::unique_ptr. | |
10819 | (displaced_step_fixup): Likewise. | |
10820 | (resume_1): Likewise. | |
10821 | (handle_inferior_event): Restore child's memory before calling | |
10822 | displaced_step_fixup on the parent. | |
10823 | * infrun.h (displaced_step_inferior_state) <reset>: Adjust | |
10824 | to std::unique_ptr. | |
10825 | <step_closure>: Change type to std::unique_ptr. | |
10826 | ||
5f661e03 SM |
10827 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
10828 | ||
10829 | * arm-tdep.c: Include count-one-bits.h. | |
10830 | (cleanup_block_store_pc): Use count_one_bits. | |
10831 | (cleanup_block_load_pc): Use count_one_bits. | |
10832 | (arm_copy_block_xfer): Use count_one_bits. | |
10833 | (thumb2_copy_block_xfer): Use count_one_bits. | |
10834 | (thumb_copy_pop_pc_16bit): Use count_one_bits. | |
10835 | * arch/arm-get-next-pcs.c: Include count-one-bits.h. | |
10836 | (thumb_get_next_pcs_raw): Use count_one_bits. | |
10837 | (arm_get_next_pcs_raw): Use count_one_bits_l. | |
10838 | * arch/arm.c (bitcount): Remove. | |
10839 | * arch/arm.h (bitcount): Remove. | |
10840 | ||
8084e579 TT |
10841 | 2020-02-14 Tom Tromey <tromey@adacore.com> |
10842 | ||
10843 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): | |
10844 | Update. | |
10845 | * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr. | |
10846 | * dwarf2/loc.c (call_site_find_chain_1): Return | |
10847 | unique_xmalloc_ptr. | |
10848 | (call_site_find_chain): Likewise. | |
10849 | ||
258bf0ee RB |
10850 | 2020-02-14 Richard Biener <rguenther@suse.de> |
10851 | ||
10852 | * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE | |
10853 | on expression with division operators. | |
10854 | ||
f98a8458 AKS |
10855 | 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
10856 | ||
10857 | * MAINTAINERS (Write After Approval): Adding myself. | |
10858 | ||
d1437c0e TT |
10859 | 2020-02-12 Tom Tromey <tom@tromey.com> |
10860 | ||
10861 | * event-loop.c (event_data, gdb_event, event_handler_func): | |
10862 | Remove. | |
10863 | ||
3d4560f7 TT |
10864 | 2020-02-12 Tom Tromey <tom@tromey.com> |
10865 | ||
10866 | * dwarf2/frame.c (dwarf2_frame_bfd_data): New global. | |
10867 | (dwarf2_frame_objfile_data): Add comment. | |
10868 | (find_comp_unit, set_comp_unit): New functions. | |
10869 | (dwarf2_frame_find_fde): Use find_comp_unit. | |
10870 | (dwarf2_build_frame_info): Use set_comp_unit. | |
10871 | ||
21982304 TT |
10872 | 2020-02-12 Tom Tromey <tom@tromey.com> |
10873 | ||
10874 | * dwarf2/frame.c (struct comp_unit) <objfile>: Remove. | |
10875 | (comp_unit): Don't initialize objfile. | |
10876 | (execute_cfa_program): Add text_offset parameter. | |
10877 | (execute_cfa_program_test, dwarf2_fetch_cfa_info) | |
10878 | (dwarf2_frame_cache): Update. | |
10879 | (dwarf2_build_frame_info): Don't set "objfile" member. | |
10880 | ||
4debb237 TT |
10881 | 2020-02-12 Tom Tromey <tom@tromey.com> |
10882 | ||
10883 | * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter. | |
10884 | (decode_frame_entry): Likewise. | |
10885 | (dwarf2_build_frame_info): Update. | |
10886 | ||
0d404d44 TT |
10887 | 2020-02-12 Tom Tromey <tom@tromey.com> |
10888 | ||
10889 | * dwarf2/frame.c (struct comp_unit) <obstack>: New member. | |
10890 | (decode_frame_entry_1): Use the comp_unit obstack. | |
10891 | ||
a7a3ae5c TT |
10892 | 2020-02-12 Tom Tromey <tom@tromey.com> |
10893 | ||
10894 | * dwarf2/frame.c (struct comp_unit): Add initializers and | |
10895 | constructor. | |
10896 | (dwarf2_frame_objfile_data): Store a comp_unit. | |
10897 | (dwarf2_frame_find_fde): Update. | |
10898 | (dwarf2_build_frame_info): Use "new". | |
10899 | ||
a9d65418 TT |
10900 | 2020-02-12 Tom Tromey <tom@tromey.com> |
10901 | ||
10902 | * dwarf2/frame.c (struct dwarf2_fde_table): Remove. | |
10903 | (dwarf2_fde_table): Typedef for std::vector. | |
10904 | (dwarf2_frame_objfile_data): Remove the deleter. Now static. | |
10905 | (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1) | |
10906 | (decode_frame_entry): Update. | |
10907 | (dwarf2_build_frame_info): Use "new". | |
10908 | ||
7559c217 CB |
10909 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
10910 | ||
10911 | * arm-tdep.c (arm_gdbarch_init): Update. | |
10912 | * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers, | |
10913 | have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos, | |
10914 | have_neon, is_m>: Change to bool. | |
10915 | ||
aeefc73c CB |
10916 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
10917 | ||
10918 | * arm-tdep.c (arm_dump_tdep): Print more fields of tdep. | |
10919 | ||
d27b8e5f TT |
10920 | 2020-02-12 Tom Tromey <tom@tromey.com> |
10921 | ||
10922 | * dwarf2/loc.c (struct dwarf_expr_baton): Remove. | |
10923 | ||
cd5900f3 HD |
10924 | 2020-02-12 Hannes Domani <ssbssa@yahoo.de> |
10925 | ||
10926 | * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type. | |
10927 | (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type. | |
10928 | ||
f056b22b TT |
10929 | 2020-02-11 Tom Tromey <tom@tromey.com> |
10930 | ||
10931 | * psymtab.h: Update comment. | |
10932 | ||
f92ff6b5 TT |
10933 | 2020-02-11 Tom Tromey <tom@tromey.com> |
10934 | ||
10935 | * gdb_obstack.h (struct auto_obstack): Use | |
10936 | DISABLE_COPY_AND_ASSIGN. | |
10937 | ||
3fd6912b TT |
10938 | 2020-02-11 Tom Tromey <tom@tromey.com> |
10939 | ||
10940 | * dwarf2/frame.h (struct objfile): Don't forward declare. | |
10941 | ||
69ed9b74 CB |
10942 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
10943 | ||
10944 | * cris-tdep.c (cris_supply_gregset): Change signature to match | |
10945 | what struct regset expects. | |
10946 | (cris_regset): New struct. | |
10947 | (fetch_core_registers): Remove. | |
10948 | (cris_iterate_over_regset_sections): New function. | |
10949 | (_initialize_cris_tdep): Don't call deprecated_add_core_fns. | |
10950 | (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections. | |
10951 | ||
bda874f6 CB |
10952 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
10953 | ||
10954 | * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7 | |
10955 | registers. | |
10956 | ||
754e1564 CB |
10957 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
10958 | ||
10959 | * arm-tdep.c (arm_dump_tdep): Add \n in fprintf. | |
10960 | ||
8ddd8e0e SM |
10961 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
10962 | ||
10963 | * configure: Re-generate. | |
10964 | ||
898e7f60 SM |
10965 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
10966 | ||
10967 | * configure: Re-generate. | |
10968 | ||
58df732b SM |
10969 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
10970 | ||
10971 | * acinclude: Update warning.m4 path. | |
10972 | * warning.m4: Move to gdbsupport. | |
10973 | ||
da5bd37e TT |
10974 | 2020-02-11 Tom Tromey <tromey@adacore.com> |
10975 | ||
10976 | * remote.c (remote_console_output): Update. | |
10977 | * printcmd.c (printf_command): Update. | |
10978 | * event-loop.c (gdb_wait_for_event): Update. | |
10979 | * linux-nat.c (sigchld_handler): Update. | |
10980 | * remote-sim.c (gdb_os_write_stdout): Update. | |
10981 | (gdb_os_flush_stdout): Update. | |
10982 | (gdb_os_flush_stderr): Update. | |
10983 | (gdb_os_write_stderr): Update. | |
10984 | * exceptions.c (print_exception): Update. | |
10985 | * remote-fileio.c (remote_fileio_func_read): Update. | |
10986 | (remote_fileio_func_write): Update. | |
10987 | * tui/tui.c (tui_enable): Update. | |
10988 | * tui/tui-interp.c (tui_interp::init): Update. | |
10989 | * utils.c (init_page_info): Update. | |
10990 | (putchar_unfiltered, fputc_unfiltered): Update. | |
10991 | (gdb_flush): Update. | |
10992 | (emit_style_escape): Update. | |
10993 | (flush_wrap_buffer, fputs_maybe_filtered): Update. | |
10994 | * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write) | |
10995 | (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove. | |
10996 | (stderr_file::write): Update. | |
10997 | (stderr_file::puts): Update. | |
10998 | * ui-file.h (ui_file_isatty, ui_file_write) | |
10999 | (ui_file_write_async_safe, ui_file_read, ui_file_flush) | |
11000 | (ui_file_puts): Don't declare. | |
11001 | ||
85f0dd3c TV |
11002 | 2020-02-10 Tom de Vries <tdevries@suse.de> |
11003 | ||
11004 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL | |
11005 | sentinel to char *. | |
11006 | ||
2e927613 TV |
11007 | 2020-02-09 Tom de Vries <tdevries@suse.de> |
11008 | ||
11009 | * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to | |
11010 | filename if it matches "<artificial>". | |
11011 | ||
6bafc845 HD |
11012 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
11013 | ||
11014 | * windows-tdep.c (struct enum_value_name): New struct. | |
11015 | (create_enum): New function. | |
11016 | (windows_get_siginfo_type): Create and use enum types. | |
11017 | ||
7928d571 HD |
11018 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
11019 | ||
11020 | * NEWS: Mention $_siginfo support for Windows. | |
11021 | * windows-nat.c (handle_exception): Set siginfo_er. | |
11022 | (windows_nat_target::mourn_inferior): Reset siginfo_er. | |
11023 | (windows_xfer_siginfo): New function. | |
11024 | (windows_nat_target::xfer_partial): Call windows_xfer_siginfo. | |
11025 | * windows-tdep.c (struct windows_gdbarch_data): New struct. | |
11026 | (init_windows_gdbarch_data): New function. | |
11027 | (get_windows_gdbarch_data): New function. | |
11028 | (windows_get_siginfo_type): New function. | |
11029 | (windows_init_abi): Register windows_get_siginfo_type. | |
11030 | (_initialize_windows_tdep): Register init_windows_gdbarch_data. | |
11031 | ||
6751ebae TT |
11032 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11033 | ||
11034 | * dwarf2/read.c (class cutu_reader) <cutu_reader, | |
11035 | init_tu_and_read_dwo_dies>: Remove "keep" parameter. | |
11036 | <keep>: Declare method. | |
11037 | <m_keep>: Remove member. | |
11038 | <~cutu_reader>: Remove. | |
11039 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
11040 | (cutu_reader::cutu_reader): Update. | |
11041 | (cutu_reader::keep): Rename from ~cutu_reader. | |
11042 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
11043 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
11044 | (load_full_comp_unit, dwarf2_read_addr_index) | |
11045 | (read_signatured_type): Update. | |
11046 | ||
135f5437 TT |
11047 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11048 | ||
11049 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove | |
11050 | "want_partial_unit" parameter. | |
11051 | (process_psymtab_comp_unit): Change want_partial_unit to bool. | |
11052 | Inline check for DW_TAG_partial_unit. | |
11053 | (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update. | |
11054 | ||
9f66ff1c TT |
11055 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11056 | ||
11057 | * dwarf2/read.c (read_n_bytes, read_direct_string): Move to | |
11058 | read.c. | |
11059 | * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from | |
11060 | read.c. | |
11061 | ||
c8a7a66f TT |
11062 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11063 | ||
11064 | * dwarf2/read.c (read_address): Move to comp-unit.c. | |
11065 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
11066 | (read_attribute_value, dwarf_decode_lines_1) | |
11067 | (var_decode_location, decode_locdesc): Update. | |
11068 | * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from | |
11069 | read.c. Remove "cu" parameter. | |
11070 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New | |
11071 | method. | |
11072 | ||
8266302d TT |
11073 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11074 | ||
11075 | * dwarf2/read.c (read_attribute_value, read_indirect_string) | |
11076 | (read_indirect_line_string): Update. | |
11077 | * dwarf2/comp-unit.c (read_offset): Remove. | |
11078 | (read_comp_unit_head): Update. | |
11079 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New | |
11080 | method. | |
11081 | (read_offset): Don't declare. | |
11082 | ||
4057dfde TT |
11083 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11084 | ||
11085 | * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c. | |
11086 | * dwarf2/read.c (struct comp_unit_head): Move to | |
11087 | dwarf2/comp-unit.h. | |
11088 | (enum class rcuh_kind): Move to comp-unit.h. | |
11089 | (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head. | |
11090 | (read_comp_unit_head, error_check_comp_unit_head) | |
11091 | (read_and_check_comp_unit_head): Move to comp-unit.c. | |
11092 | (read_offset, dwarf_unit_type_name): Likewise. | |
11093 | (create_debug_type_hash_table, read_cutu_die_from_dwo) | |
11094 | (cutu_reader::cutu_reader, read_call_site_scope) | |
11095 | (find_partial_die, follow_die_offset): Update. | |
11096 | * dwarf2/comp-unit.h: New file, from dwarf2read.c. | |
11097 | ||
24aa364d TT |
11098 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11099 | ||
11100 | * dwarf2/read.c (read_offset_1): Move to leb.c. | |
11101 | (read_abbrev_offset, read_offset, dwarf_decode_line_header) | |
11102 | (dwarf_decode_macro_bytes): Update. | |
11103 | * dwarf2/leb.c (read_offset): Rename; move from read.c. | |
11104 | * dwarf2/leb.h (read_offset): Declare. | |
11105 | ||
2c7d5afc TT |
11106 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11107 | ||
11108 | * dwarf2/read.c (dwarf2_section_size): Remove. | |
11109 | (error_check_comp_unit_head, dwarf2_symbol_mark_computed): | |
11110 | Update. | |
11111 | * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method. | |
11112 | ||
4075cb26 TT |
11113 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11114 | ||
11115 | * dwarf2/read.c (read_initial_length): Move to leb.c. | |
11116 | * dwarf2/leb.h (read_initial_length): Declare. | |
11117 | * dwarf2/leb.c (read_initial_length): Move from read.c. Add | |
11118 | handle_nonstd parameter. | |
11119 | * dwarf2/frame.c (read_initial_length): Remove. | |
11120 | (decode_frame_entry_1): Update. | |
11121 | ||
09ba997f TT |
11122 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11123 | ||
11124 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
11125 | (dwarf_evaluate_loc_desc::get_tls_address) | |
11126 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
11127 | (rw_pieced_value, dwarf2_evaluate_loc_desc_full) | |
11128 | (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property) | |
11129 | (dwarf2_compile_property_to_c) | |
11130 | (dwarf2_loc_desc_get_symbol_read_needs) | |
11131 | (dwarf2_compile_expr_to_ax, locexpr_describe_location) | |
11132 | (locexpr_tracepoint_var_ref, locexpr_generate_c_location) | |
11133 | (loclist_describe_location, loclist_tracepoint_var_ref) | |
11134 | (loclist_generate_c_location): Update. | |
11135 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update. | |
11136 | * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size) | |
11137 | (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size) | |
11138 | (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare. | |
11139 | * dwarf2/read.c (dwarf2_per_cu_data::objfile) | |
11140 | (dwarf2_per_cu_data::addr_size) | |
11141 | (dwarf2_per_cu_data::ref_addr_size) | |
11142 | (dwarf2_per_cu_data::text_offset) | |
11143 | (dwarf2_per_cu_data::addr_type): Now methods. | |
11144 | (per_cu_header_read_in): Make per_cu "const". | |
11145 | (dwarf2_version): Remove. | |
11146 | (dwarf2_per_cu_data::int_type): Now a method. | |
11147 | (dwarf2_per_cu_data::_addr_sized_int_type): Likewise. | |
11148 | (set_die_type, read_array_type, read_subrange_index_type) | |
11149 | (read_tag_string_type, read_subrange_type): Update. | |
11150 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size, | |
11151 | offset_size, ref_addr_size, text_offset, addr_type, version, | |
11152 | objfile, int_type, addr_sized_int_type>: Declare methods. | |
11153 | ||
96c738c0 TT |
11154 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11155 | ||
11156 | * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>: | |
11157 | Move earlier. | |
11158 | ||
8fdd972c TT |
11159 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11160 | ||
11161 | * dwarf2/read.h (dwarf_line_debug): Declare. | |
11162 | * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c. | |
11163 | * dwarf2/read.c: Move line_header code to new files. | |
11164 | (dwarf_line_debug): No longer static. | |
11165 | * dwarf2/line-header.c: New file. | |
11166 | * dwarf2/line-header.h: New file. | |
11167 | ||
03075812 TT |
11168 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11169 | ||
11170 | * dwarf2/read.c (struct line_header) <file_full_name, | |
11171 | file_file_name>: Return unique_xmalloc_ptr. | |
11172 | (line_header::file_file_name): Update. | |
11173 | (line_header::file_full_name): Update. | |
11174 | (dw2_get_file_names_reader): Update. | |
11175 | (macro_start_file): Update. | |
11176 | ||
bb822404 TT |
11177 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11178 | ||
11179 | * dwarf2/read.c (struct line_header) <file_full_name, | |
11180 | file_file_name>: Declare methods. | |
11181 | (dw2_get_file_names_reader): Update. | |
11182 | (file_file_name): Now a method. | |
11183 | (file_full_name): Likewise. | |
11184 | (macro_start_file): Update. | |
11185 | ||
009b64fc TT |
11186 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11187 | ||
11188 | * dwarf2/read.c (dwarf_always_disassemble) | |
11189 | (show_dwarf_always_disassemble): Move to loc.c. | |
11190 | (_initialize_dwarf2_read): Move "always-disassemble" registration | |
11191 | to loc.c. | |
11192 | * dwarf2/read.h (dwarf_always_disassemble): Don't declare. | |
11193 | * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now | |
11194 | static. | |
11195 | (show_dwarf_always_disassemble): Move from read.c. | |
11196 | (_initialize_dwarf2loc): Move always-disassemble from read.c. | |
11197 | ||
5895093f TT |
11198 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11199 | ||
11200 | * dwarf2/read.c (~dwarf2_per_objfile): Update. | |
11201 | (create_quick_file_names_table): Return htab_up. | |
11202 | (dw2_get_file_names_reader, dw2_forget_cached_source_info): | |
11203 | Update. | |
11204 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
11205 | <quick_file_names_table>: Now htab_up. | |
11206 | ||
b3b32279 TT |
11207 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11208 | ||
11209 | * dwarf2/abbrev.c (abbrev_table::read): Simplify. | |
11210 | ||
1d33d811 TT |
11211 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11212 | ||
11213 | * dwarf2/abbrev.c (abbrev_table): Move constructor from header. | |
11214 | Rewrite. | |
11215 | (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite. | |
11216 | * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove. | |
11217 | (abbrev_table::abbrev_table): No longer inline. | |
11218 | (ABBREV_HASH_SIZE): Remove. | |
11219 | (abbrev_table::m_abbrevs): Now an htab_up. | |
11220 | ||
86de1d91 TT |
11221 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11222 | ||
11223 | * dwarf2/read.c (read_cutu_die_from_dwo): Update. | |
11224 | (cutu_reader): Update. | |
11225 | (build_type_psymtabs_1): Update. | |
11226 | * dwarf2/abbrev.c (abbrev_table::read): Rename. | |
11227 | (abbrev_table::alloc_abbrev): Update. | |
11228 | * dwarf2/abbrev.h (abbrev_table_up): Move earlier. | |
11229 | (abbrev_table::read): New static method, renamed from | |
11230 | abbrev_table_read_table. | |
11231 | (abbrev_table::alloc_abbrev) | |
11232 | (abbrev_table::add_abbrev): Now private. | |
11233 | (abbrev_table::abbrev_table): Now private. | |
11234 | (abbrev_table::m_abbrev_obstack): Now private. Rename. | |
11235 | ||
0335378b TT |
11236 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11237 | ||
11238 | * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update. | |
11239 | * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now | |
11240 | htab_up. | |
11241 | ||
48b490f2 TT |
11242 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11243 | ||
11244 | * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now | |
11245 | htab_up. | |
11246 | (lookup_dwo_unit_in_dwp): Update. | |
11247 | (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate | |
11248 | on obstack. | |
11249 | ||
bc68fb19 TT |
11250 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11251 | ||
11252 | * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on | |
11253 | obstack. | |
11254 | ||
d15acc42 TT |
11255 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11256 | ||
11257 | * dwarf2/read.c (~dwarf2_per_objfile): Don't delete | |
11258 | line_header_hash. | |
11259 | (handle_DW_AT_stmt_list): Update. Don't allocate on obstack. | |
11260 | * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>: | |
11261 | Change type to htab_up. | |
11262 | ||
eaa5fa8b TT |
11263 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11264 | ||
11265 | * dwarf2/read.c (allocate_type_unit_groups_table): Return | |
11266 | htab_up. Don't allocate on obstack. | |
11267 | (get_type_unit_group, dwarf2_build_psymtabs_hard): Update. | |
11268 | * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>: | |
11269 | Change type to htab_up. | |
11270 | ||
b0b6a987 TT |
11271 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11272 | ||
11273 | * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>: | |
11274 | Change type to htab_up. | |
11275 | * dwarf2/read.c (create_signatured_type_table_from_index) | |
11276 | (create_signatured_type_table_from_debug_names) | |
11277 | (create_all_type_units, add_type_unit) | |
11278 | (lookup_dwo_signatured_type, lookup_signatured_type) | |
11279 | (process_skeletonless_type_unit): Update. | |
11280 | (create_debug_type_hash_table, create_debug_types_hash_table): | |
11281 | Change type of types_htab. | |
11282 | (allocate_signatured_type_table, allocate_dwo_unit_table): Return | |
11283 | htab_up. Don't allocate on obstack. | |
11284 | (create_cus_hash_table): Change type of cus_htab parameter. | |
11285 | (struct dwo_file) <cus, tus>: Now htab_up. | |
11286 | (lookup_dwo_signatured_type, lookup_dwo_cutu) | |
11287 | (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu) | |
11288 | (queue_and_load_all_dwo_tus): Update. | |
11289 | * dwarf2/index-write.c (write_gdbindex): Update. | |
11290 | (write_debug_names): Update. | |
11291 | ||
39856def TT |
11292 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11293 | ||
11294 | * dwarf2/read.h (struct dwarf2_queue_item): Move from | |
11295 | dwarf2/read.c. Remove "next" member. Add constructor ntad | |
11296 | destructor. | |
11297 | (struct dwarf2_per_objfile) <queue>: New member. | |
11298 | * dwarf2/read.c (struct dwarf2_queue_item): Move to | |
11299 | dwarf2/read.h. | |
11300 | (dwarf2_queue, dwarf2_queue_tail): Remove. | |
11301 | (class dwarf2_queue_guard): Add parameter to constructor. Use | |
11302 | DISABLE_COPY_AND_ASSIGN. | |
11303 | <m_per_objfile>: New member. | |
11304 | <~dwarf2_queue_guard>: Rewrite. | |
11305 | (dw2_do_instantiate_symtab, queue_comp_unit, process_queue): | |
11306 | Update. | |
11307 | (~dwarf2_queue_item): New. | |
11308 | ||
3e225074 TT |
11309 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11310 | ||
11311 | * dwarf2/read.c (struct die_info) <has_children>: New member. | |
11312 | (dw2_get_file_names_reader): Remove has_children. | |
11313 | (dw2_get_file_names): Update. | |
11314 | (read_cutu_die_from_dwo): Remove has_children. | |
11315 | (cutu_reader::init_tu_and_read_dwo_dies) | |
11316 | (cutu_reader::cutu_reader): Update. | |
11317 | (process_psymtab_comp_unit_reader, build_type_psymtabs_reader): | |
11318 | Remove has_children. | |
11319 | (build_type_psymtabs_1, process_skeletonless_type_unit) | |
11320 | (load_partial_comp_unit, load_full_comp_unit): Update. | |
11321 | (create_dwo_cu_reader): Remove has_children. | |
11322 | (create_cus_hash_table, read_die_and_children): Update. | |
11323 | (read_full_die_1,read_full_die): Remove has_children. | |
11324 | (read_signatured_type): Update. | |
11325 | (class cutu_reader) <has_children>: Remove. | |
11326 | ||
82ca8957 TT |
11327 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11328 | ||
11329 | * dwarf2/expr.c: Rename from dwarf2expr.c. | |
11330 | * dwarf2/expr.h: Rename from dwarf2expr.h. | |
11331 | * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c. | |
11332 | * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h. | |
11333 | * dwarf2/frame.c: Rename from dwarf2-frame.c. | |
11334 | * dwarf2/frame.h: Rename from dwarf2-frame.h. | |
11335 | * dwarf2/index-cache.c: Rename from dwarf-index-cache.c. | |
11336 | * dwarf2/index-cache.h: Rename from dwarf-index-cache.h. | |
11337 | * dwarf2/index-common.c: Rename from dwarf-index-common.c. | |
11338 | * dwarf2/index-common.h: Rename from dwarf-index-common.h. | |
11339 | * dwarf2/index-write.c: Rename from dwarf-index-write.c. | |
11340 | * dwarf2/index-write.h: Rename from dwarf-index-write.h. | |
11341 | * dwarf2/loc.c: Rename from dwarf2loc.c. | |
11342 | * dwarf2/loc.h: Rename from dwarf2loc.h. | |
11343 | * dwarf2/read.c: Rename from dwarf2read.c. | |
11344 | * dwarf2/read.h: Rename from dwarf2read.h. | |
11345 | * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c, | |
11346 | amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c, | |
11347 | compile/compile-c-symbols.c, compile/compile-cplus-symbols.c, | |
11348 | compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c, | |
11349 | gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c, | |
11350 | hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c, | |
11351 | i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c, | |
11352 | m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c, | |
11353 | msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c, | |
11354 | riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c, | |
11355 | s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c, | |
11356 | sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c, | |
11357 | tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c: | |
11358 | Update. | |
11359 | * Makefile.in (COMMON_SFILES): Update. | |
11360 | (HFILES_NO_SRCDIR): Update. | |
11361 | ||
9e35d499 TT |
11362 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11363 | ||
11364 | * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove. | |
11365 | (init_cu_die_reader, read_cutu_die_from_dwo): Update. | |
11366 | ||
1eba2311 TT |
11367 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11368 | ||
11369 | * dwarf2read.h (struct die_info): Don't declare. | |
11370 | ||
e41c2da2 TT |
11371 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11372 | ||
11373 | * dwarf2read.h (die_info_ptr): Remove typedef. | |
11374 | ||
4fc6c0d5 TT |
11375 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11376 | ||
11377 | * dwarf2read.c (read_call_site_scope) | |
11378 | (handle_data_member_location, dwarf2_add_member_fn) | |
11379 | (mark_common_block_symbol_computed, read_common_block) | |
11380 | (attr_to_dynamic_prop, partial_die_info::read) | |
11381 | (var_decode_location, dwarf2_fetch_die_loc_sect_off) | |
11382 | (dwarf2_symbol_mark_computed, set_die_type): Update. | |
11383 | * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare | |
11384 | method. | |
11385 | (attr_form_is_block): Don't declare. | |
11386 | * dwarf2/attribute.c (attribute::form_is_block): Now a method. | |
11387 | ||
cd6c91b4 TT |
11388 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11389 | ||
11390 | * dwarf2read.c (dwarf2_find_base_address, ) | |
11391 | (read_call_site_scope, rust_containing_type) | |
11392 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
11393 | (handle_data_member_location, dwarf2_add_member_fn) | |
11394 | (get_alignment, read_structure_type, process_structure_scope) | |
11395 | (mark_common_block_symbol_computed, read_common_block) | |
11396 | (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type) | |
11397 | (partial_die_info::read, read_attribute_value, new_symbol) | |
11398 | (lookup_die_type, dwarf2_get_ref_die_offset) | |
11399 | (dwarf2_get_attr_constant_value, follow_die_ref_or_sig) | |
11400 | (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type) | |
11401 | (dwarf2_symbol_mark_computed): Update. | |
11402 | * dwarf2/attribute.h (struct attribute) <value_as_address, | |
11403 | form_is_section_offset, form_is_constant, form_is_ref>: Declare | |
11404 | methods. | |
11405 | (value_as_address, attr_form_is_section_offset) | |
11406 | (attr_form_is_constant, attr_form_is_ref): Don't declare. | |
11407 | * dwarf2/attribute.c (attribute::value_as_address) | |
11408 | (attribute::form_is_section_offset, attribute::form_is_constant) | |
11409 | (attribute::form_is_ref): Now methods. | |
11410 | ||
162dce55 TT |
11411 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11412 | ||
11413 | * dwarf2read.c (struct attribute, DW_STRING) | |
11414 | (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR) | |
11415 | (DW_SIGNATURE, struct dwarf_block, attr_value_as_address) | |
11416 | (attr_form_is_block, attr_form_is_section_offset) | |
11417 | (attr_form_is_constant, attr_form_is_ref): Move. | |
11418 | * dwarf2/attribute.h: New file. | |
11419 | * dwarf2/attribute.c: New file, from dwarf2read.c. | |
11420 | * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c. | |
11421 | ||
3054dd54 TT |
11422 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11423 | ||
11424 | * dwarf2read.c (abbrev_table_up, struct abbrev_info) | |
11425 | (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table): | |
11426 | Move. | |
11427 | (read_cutu_die_from_dwo, build_type_psymtabs_1): Update. | |
11428 | (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev) | |
11429 | (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to | |
11430 | abbrev.c. | |
11431 | * dwarf2/abbrev.h: New file. | |
11432 | * dwarf2/abbrev.c: New file, from dwarf2read.c. | |
11433 | * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c. | |
11434 | ||
96b79293 TT |
11435 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11436 | ||
11437 | * dwarf2read.c (dwarf2_section_buffer_overflow_complaint) | |
11438 | (dwarf2_section_size, dwarf2_get_section_info) | |
11439 | (create_signatured_type_table_from_debug_names) | |
11440 | (create_addrmap_from_aranges, read_debug_names_from_section) | |
11441 | (get_gdb_index_contents_from_section, read_comp_unit_head) | |
11442 | (error_check_comp_unit_head, read_abbrev_offset) | |
11443 | (create_debug_type_hash_table, init_cu_die_reader) | |
11444 | (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard) | |
11445 | (read_comp_units_from_section, create_cus_hash_table) | |
11446 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
11447 | (create_dwp_v2_section, dwarf2_rnglists_process) | |
11448 | (dwarf2_ranges_process, read_die_and_siblings, read_full_die) | |
11449 | (abbrev_table_read_table, read_indirect_string_at_offset_from) | |
11450 | (read_indirect_string_from_dwz, read_addr_index_1) | |
11451 | (read_str_index, dwarf_decode_line_header, skip_form_bytes) | |
11452 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
11453 | (fill_in_loclist_baton): Update. | |
11454 | * dwarf2/section.h (struct dwarf2_section_info) <get_name, | |
11455 | get_containing_section, get_bfd_owner, get_bfd_section, | |
11456 | get_file_name, get_id, get_flags, empty, read>: Declare methods. | |
11457 | (dwarf2_read_section, get_section_name, get_section_file_name) | |
11458 | (get_containing_section, get_section_bfd_owner) | |
11459 | (get_section_bfd_section, get_section_name, get_section_file_name) | |
11460 | (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't | |
11461 | declare. | |
11462 | * dwarf2/section.c (dwarf2_section_info::get_containing_section) | |
11463 | (dwarf2_section_info::get_bfd_owner) | |
11464 | (dwarf2_section_info::get_bfd_section) | |
11465 | (dwarf2_section_info::get_name) | |
11466 | (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id) | |
11467 | (dwarf2_section_info::get_flags, dwarf2_section_info::empty) | |
11468 | (dwarf2_section_info::read): Now methods. | |
11469 | * dwarf-index-write.c (class debug_names): Update. | |
11470 | ||
2c86cff9 TT |
11471 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11472 | ||
11473 | * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section): | |
11474 | Move to dwarf2/section.h. | |
11475 | * dwarf2read.c (get_containing_section, get_section_bfd_owner) | |
11476 | (get_section_bfd_section, get_section_name) | |
11477 | (get_section_file_name, get_section_id, get_section_flags) | |
11478 | (dwarf2_section_empty_p, dwarf2_read_section): Moe to | |
11479 | dwarf2/section.c. | |
11480 | * dwarf2/section.h: New file. | |
11481 | * dwarf2/section.c: New file, from dwarf2read.c. | |
11482 | * Makefile.in (COMMON_SFILES): Add dwarf2/section.c. | |
11483 | ||
f4382c45 TT |
11484 | 2020-02-08 Tom Tromey <tom@tromey.com> |
11485 | ||
11486 | * dwarf2read.h (read_unsigned_leb128): Don't declare. | |
11487 | * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes) | |
11488 | (read_2_signed_bytes, read_3_bytes, read_4_bytes) | |
11489 | (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h. | |
11490 | (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c. | |
11491 | * dwarf2/leb.h: New file, from dwarf2read.c. | |
11492 | * dwarf2/leb.c: New file, from dwarf2read.c. | |
11493 | * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes): | |
11494 | Remove. | |
11495 | * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2. | |
11496 | (COMMON_SFILES): Add dwarf2/leb.c. | |
11497 | ||
01840b7a JB |
11498 | 2020-02-08 Joel Brobecker <brobecker@adacore.com> |
11499 | ||
11500 | GDB 9.1 released. | |
11501 | ||
dfcb27e4 IB |
11502 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
11503 | ||
11504 | PR gdb/25190: | |
aac66a4c SM |
11505 | * gdb/remote-sim.c (gdb_os_write_stderr): Update. |
11506 | * gdb/remote.c (remote_console_output): Update. | |
11507 | * gdb/ui-file.c (fputs_unfiltered): Rename to... | |
11508 | (ui_file_puts): ...this. | |
11509 | * gdb/ui-file.h (ui_file_puts): Add declaration. | |
11510 | * gdb/utils.c (emit_style_escape): Update. | |
11511 | (flush_wrap_buffer): Update. | |
11512 | (fputs_maybe_filtered): Update. | |
11513 | (fputs_unfiltered): Add function. | |
dfcb27e4 | 11514 | |
faa17681 IB |
11515 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
11516 | ||
aac66a4c SM |
11517 | * gdb/event-loop.c (gdb_wait_for_event): Update. |
11518 | * gdb/printcmd.c (printf_command): Update. | |
11519 | * gdb/remote-fileio.c (remote_fileio_func_write): Update. | |
11520 | * gdb/remote-sim.c (gdb_os_flush_stdout): Update. | |
11521 | (gdb_os_flush_stderr): Update. | |
11522 | * gdb/remote.c (remote_console_output): Update. | |
11523 | * gdb/ui-file.c (gdb_flush): Rename to... | |
11524 | (ui_file_flush): ...this. | |
11525 | (stderr_file::write): Update. | |
11526 | (stderr_file::puts): Update. | |
11527 | * gdb/ui-file.h (gdb_flush): Rename to... | |
11528 | (ui_file_flush): ...this. | |
11529 | * gdb/utils.c (gdb_flush): Add function. | |
11530 | * gdb/utils.h (gdb_flush): Add declaration. | |
faa17681 | 11531 | |
5abbbe1d TT |
11532 | 2020-02-07 Tom Tromey <tromey@adacore.com> |
11533 | ||
11534 | PR breakpoints/24915: | |
11535 | * source.c (find_and_open_source): Do not check basenames_may_differ. | |
11536 | ||
919adfe8 TT |
11537 | 2020-02-07 Tom Tromey <tom@tromey.com> |
11538 | ||
11539 | * README: Update gdbserver documentation. | |
11540 | * gdbserver: Move to top level. | |
11541 | * configure.tgt (build_gdbserver): Remove. | |
11542 | * configure.ac: Remove --enable-gdbserver. | |
11543 | * configure: Rebuild. | |
11544 | * Makefile.in (distclean): Don't mention gdbserver. | |
11545 | ||
1d5d29e7 SV |
11546 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
11547 | ||
11548 | * source-cache.c (source_cache::ensure): Surround | |
11549 | get_plain_source_lines with a try/catch. | |
11550 | (source_cache::get_line_charpos): Get rid of try/catch | |
11551 | and only check for the return value of "ensure". | |
11552 | * tui/tui-source.c (tui_source_window::set_contents): | |
11553 | Simplify "nlines" calculation. | |
11554 | ||
6eb1129c SV |
11555 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
11556 | ||
11557 | * MAINTAINERS (Write After Approval): Add myself. | |
11558 | ||
c6a42d11 CB |
11559 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
11560 | ||
11561 | * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class | |
11562 | function call. | |
11563 | ||
c8ecdda6 CB |
11564 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
11565 | ||
11566 | * ppc-nbsd-tdep.h: Fix macro name in #endif comment. | |
11567 | ||
f6480e70 MR |
11568 | 2020-02-05 Maciej W. Rozycki <macro@wdc.com> |
11569 | ||
11570 | * nat/riscv-linux-tdesc.h: New file. | |
11571 | * nat/riscv-linux-tdesc.c: New file, taking code from... | |
11572 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
11573 | ... here. | |
11574 | * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to | |
11575 | NATDEPFILES. | |
11576 | ||
dcc9fbc6 AB |
11577 | 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com> |
11578 | ||
11579 | * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that | |
11580 | we don't set the fake simulator ptid to the null_ptid. | |
11581 | ||
719546c4 SM |
11582 | 2020-02-03 Simon Marchi <simon.marchi@efficios.com> |
11583 | ||
11584 | * fork-child.c (gdb_startup_inferior): Use bool instead of int. | |
11585 | * gdbthread.h (class thread_info) <resumed>: Likewise. | |
11586 | * infrun.c (resume_1): Likewise. | |
11587 | (proceed): Likewise. | |
11588 | (infrun_thread_stop_requested): Likewise. | |
11589 | (stop_all_threads): Likewise. | |
11590 | (handle_inferior_event): Likewise. | |
11591 | (restart_threads): Likewise. | |
11592 | (finish_step_over): Likewise. | |
11593 | (keep_going_stepped_thread): Likewise. | |
11594 | * linux-nat.c (attach_proc_task_lwp_callback): Likewise. | |
11595 | (linux_handle_extended_wait): Likewise. | |
11596 | * record-btrace.c (get_thread_current_frame_id): Likewise. | |
11597 | * record-full.c (record_full_wait_1): Likewise. | |
11598 | * remote.c (remote_target::process_initial_stop_replies): Likewise. | |
11599 | * target.c (target_resume): Likewise. | |
11600 | * thread.c (set_running_thread): Likewise. | |
11601 | ||
e409c542 AKS |
11602 | 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
11603 | ||
11604 | * f-valprint.c (f77_print_array_1): Changed datatype of index | |
11605 | variable to LONGEST from int to enable it to contain bound | |
11606 | values correctly. | |
11607 | ||
ee98c0da MR |
11608 | 2020-02-03 Maciej W. Rozycki <macro@wdc.com> |
11609 | ||
11610 | * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro. | |
11611 | (supply_fpregset_regnum, fill_fpregset): Handle regset buffer | |
11612 | offsets according to FLEN determined. | |
11613 | (riscv_linux_nat_target::read_description): Determine FLEN | |
11614 | dynamically. | |
11615 | (riscv_linux_nat_target::fetch_registers): Size regset buffer | |
11616 | according to FLEN determined. | |
11617 | (riscv_linux_nat_target::store_registers): Likewise. | |
11618 | ||
aa66aac4 SV |
11619 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> |
11620 | ||
11621 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
11622 | when reg->group is empty and reggroup is not. | |
11623 | ||
fd9faca8 TT |
11624 | 2020-01-31 Tom Tromey <tromey@adacore.com> |
11625 | ||
11626 | * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior): | |
11627 | Call beneath target's mourn_inferior after unpushing. | |
11628 | ||
42330a68 AB |
11629 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
11630 | ||
11631 | PR tui/9765 | |
11632 | * tui/tui-disasm.c (tui_find_disassembly_address): If we don't | |
11633 | have enough lines to fill the screen, still return the lowest | |
11634 | address we found. | |
11635 | ||
7a27a45b AB |
11636 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
11637 | ||
11638 | * tui/tui-win.c (_initialize_tui_win): Update help text for '+', | |
11639 | '-', '<', and '>' commands. | |
11640 | ||
c47f70e2 PA |
11641 | 2020-01-29 Pedro Alves <palves@redhat.com> |
11642 | Sergio Durigan Junior <sergiodj@redhat.com> | |
11643 | ||
11644 | * infcmd.c (construct_inferior_arguments): Assert that | |
11645 | 'argc' is greater than 0. | |
11646 | ||
5133a315 LM |
11647 | 2020-01-29 Luis Machado <luis.machado@linaro.org> |
11648 | ||
11649 | * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f. | |
11650 | (BRK_INSN_MASK): Define to 0xd4200000. | |
11651 | (aarch64_program_breakpoint_here_p): New function. | |
11652 | (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook. | |
11653 | * arch-utils.c (default_program_breakpoint_here_p): Moved from | |
11654 | breakpoint.c. | |
11655 | * arch-utils.h (default_program_breakpoint_here_p): Moved from | |
11656 | breakpoint.h | |
11657 | * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and | |
11658 | call gdbarch_program_breakpoint_here_p. | |
11659 | (program_breakpoint_here): Moved to arch-utils.c, renamed to | |
11660 | default_program_breakpoint_here_p, changed return type to bool and | |
11661 | simplified. | |
11662 | * breakpoint.h (program_breakpoint_here): Moved prototype to | |
11663 | arch-utils.h, renamed to default_program_breakpoint_here_p and changed | |
11664 | return type to bool. | |
11665 | * gdbarch.c: Regenerate. | |
11666 | * gdbarch.h: Regenerate. | |
11667 | * gdbarch.sh (program_breakpoint_here_p): New method. | |
11668 | * infrun.c (handle_signal_stop): Call | |
11669 | gdbarch_program_breakpoint_here_p. | |
11670 | ||
168f8c6b TT |
11671 | 2020-01-26 Tom Tromey <tom@tromey.com> |
11672 | ||
11673 | * ctfread.c (struct ctf_fp_info): Reindent. | |
11674 | (_initialize_ctfread): Remove. | |
11675 | ||
128a391f TT |
11676 | 2020-01-26 Tom Tromey <tom@tromey.com> |
11677 | ||
11678 | * psymtab.c (partial_map_expand_apply) | |
11679 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
11680 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
11681 | (psym_print_stats, psym_expand_symtabs_for_function) | |
11682 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
11683 | (psym_expand_symtabs_matching) | |
11684 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
11685 | (maintenance_check_psymtabs): Use new methods. | |
11686 | * psympriv.h (struct partial_symtab) <readin_p, | |
11687 | get_compunit_symtab>: New methods. | |
11688 | <readin, compunit_symtab>: Remove members. | |
11689 | (struct standard_psymtab): New. | |
11690 | (struct legacy_psymtab): Derive from standard_psymtab. | |
11691 | * dwarf2read.h (struct dwarf2_psymtab): Derive from | |
11692 | standard_psymtab. | |
11693 | * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab. | |
11694 | ||
0494dbec TT |
11695 | 2020-01-26 Tom Tromey <tom@tromey.com> |
11696 | ||
11697 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Call | |
11698 | read_dependencies. Add assert. | |
11699 | * psymtab.c (partial_symtab::read_dependencies): New method. | |
11700 | * psympriv.h (struct partial_symtab) <read_dependencies>: New | |
11701 | method. | |
11702 | * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies. | |
11703 | * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call | |
11704 | read_dependencies. | |
11705 | * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies. | |
11706 | Add assert. | |
11707 | ||
8566b89b TT |
11708 | 2020-01-26 Tom Tromey <tom@tromey.com> |
11709 | ||
11710 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order. | |
11711 | Call expand_psymtab. | |
11712 | (xcoff_read_symtab): Call expand_psymtab. | |
11713 | (xcoff_start_psymtab, xcoff_end_psymtab): Set | |
11714 | legacy_expand_psymtab. | |
11715 | * psympriv.h (struct partial_symtab) <expand_psymtab>: New | |
11716 | method. | |
11717 | (struct legacy_psymtab) <expand_psymtab>: Implement. | |
11718 | <legacy_expand_psymtab>: New member. | |
11719 | * mdebugread.c (mdebug_read_symtab): Call expand_psymtab. | |
11720 | (parse_partial_symbols): Set legacy_expand_psymtab. | |
11721 | (psymtab_to_symtab_1): Change argument order. Call | |
11722 | expand_psymtab. | |
11723 | (new_psymtab): Set legacy_expand_psymtab. | |
11724 | * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare. | |
11725 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Call | |
11726 | expand_psymtab. | |
11727 | (dwarf2_psymtab::expand_psymtab): Rename from | |
11728 | psymtab_to_symtab_1. Call expand_psymtab. | |
11729 | * dbxread.c (start_psymtab): Set legacy_expand_psymtab. | |
11730 | (dbx_end_psymtab): Likewise. | |
11731 | (dbx_psymtab_to_symtab_1): Change argument order. Call | |
11732 | expand_psymtab. | |
11733 | (dbx_read_symtab): Call expand_psymtab. | |
11734 | * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare. | |
11735 | (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab. | |
11736 | (ctf_psymtab::read_symtab): Call expand_psymtab. | |
11737 | ||
077cbab2 TT |
11738 | 2020-01-26 Tom Tromey <tom@tromey.com> |
11739 | ||
11740 | * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert. | |
11741 | * psymtab.c (psymtab_to_symtab): Print verbose "Reading" | |
11742 | messages. | |
11743 | * mdebugread.c (mdebug_read_symtab): Remove prints. | |
11744 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add | |
11745 | assert. | |
11746 | * dbxread.c (dbx_read_symtab): Remove prints. Add assert. | |
11747 | ||
891813be TT |
11748 | 2020-01-26 Tom Tromey <tom@tromey.com> |
11749 | ||
11750 | * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab) | |
11751 | (xcoff_psymtab_to_symtab_1, xcoff_read_symtab) | |
11752 | (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use | |
11753 | legacy_symtab. | |
11754 | * stabsread.h (dbx_end_psymtab): Use legacy_symtab. | |
11755 | * psymtab.c (psymtab_to_symtab): Call method. | |
11756 | (dump_psymtab): Update. | |
11757 | * psympriv.h (struct partial_symtab): Add virtual destructor. | |
11758 | <read_symtab>: New method. | |
11759 | (struct legacy_symtab): New. | |
11760 | * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab. | |
11761 | (struct pst_map) <pst>: Now a legacy_psymtab. | |
11762 | (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1) | |
11763 | (new_psymtab): Use legacy_psymtab. | |
11764 | * dwarf2read.h (struct dwarf2_psymtab): New. | |
11765 | (struct dwarf2_per_cu_data) <psymtab>: Use it. | |
11766 | * dwarf2read.c (dwarf2_create_include_psymtab) | |
11767 | (dwarf2_build_include_psymtabs, create_type_unit_group) | |
11768 | (create_partial_symtab, process_psymtab_comp_unit_reader) | |
11769 | (build_type_psymtabs_reader, build_type_psymtab_dependencies) | |
11770 | (set_partial_user): Use dwarf2_psymtab. | |
11771 | (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab. | |
11772 | (psymtab_to_symtab_1, process_full_comp_unit) | |
11773 | (process_full_type_unit, dwarf2_ranges_read) | |
11774 | (dwarf2_get_pc_bounds, psymtab_include_file_name) | |
11775 | (dwarf_decode_lines): Use dwarf2_psymtab. | |
11776 | * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab. | |
11777 | (add_address_entry_worker, write_one_signatured_type) | |
11778 | (recursively_count_psymbols, recursively_write_psymbols) | |
11779 | (write_one_signatured_type, psyms_seen_size, write_gdbindex) | |
11780 | (write_debug_names): Likewise. | |
11781 | * dbxread.c (struct header_file_location): Take a legacy_psymtab. | |
11782 | <pst>: Now a legacy_psymtab. | |
11783 | (find_corresponding_bincl_psymtab): Return a legacy_psymtab. | |
11784 | (read_dbx_symtab, start_psymtab, dbx_end_psymtab) | |
11785 | (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab. | |
11786 | * ctfread.c (struct ctf_psymtab): New. | |
11787 | (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a | |
11788 | ctf_psymtab. | |
11789 | (ctf_psymtab::read_symtab): Rename from ctf_read_symtab. | |
11790 | (create_partial_symtab): Return a ctf_psymtab. | |
11791 | (scan_partial_symbols): Update. | |
11792 | ||
c3693a1d TT |
11793 | 2020-01-26 Tom Tromey <tom@tromey.com> |
11794 | ||
11795 | * xcoffread.c (xcoff_start_psymtab): Use new. | |
11796 | * psymtab.c (partial_symtab::partial_symtab): New constructor, | |
11797 | renamed from start_psymtab_common. | |
11798 | * psympriv.h (struct partial_symtab): Add new constructor. | |
11799 | (start_psymtab_common): Don't declare. | |
11800 | * mdebugread.c (parse_partial_symbols): Use new. | |
11801 | * dwarf2read.c (create_partial_symtab): Use new. | |
11802 | * dbxread.c (start_psymtab): Use new. | |
11803 | * ctfread.c (create_partial_symtab): Use new. | |
11804 | ||
32caafd0 TT |
11805 | 2020-01-26 Tom Tromey <tom@tromey.com> |
11806 | ||
11807 | * xcoffread.c (xcoff_end_psymtab): Use new. | |
11808 | * psymtab.c (start_psymtab_common): Use new. | |
11809 | (partial_symtab::partial_symtab): Rename from allocate_psymtab. | |
11810 | Update. | |
11811 | * psympriv.h (struct partial_symtab): Add parameters to | |
11812 | constructor. Don't inline. | |
11813 | (allocate_psymtab): Don't declare. | |
11814 | * mdebugread.c (new_psymtab): Use new. | |
11815 | * dwarf2read.c (dwarf2_create_include_psymtab): Use new. | |
11816 | * dbxread.c (dbx_end_psymtab): Use new. | |
11817 | ||
abaa2f23 TT |
11818 | 2020-01-26 Tom Tromey <tom@tromey.com> |
11819 | ||
11820 | * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from | |
11821 | allocate_psymtab. Update documentation. | |
11822 | * psymtab.c (psymtab_storage::install_psymtab): Rename from | |
11823 | allocate_psymtab. Do not use new. | |
11824 | (allocate_psymtab): Use new. Update. | |
11825 | ||
6d94535f TT |
11826 | 2020-01-26 Tom Tromey <tom@tromey.com> |
11827 | ||
11828 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
11829 | * psymtab.c (psym_print_stats): Update. | |
11830 | * psympriv.h (struct partial_symtab) <readin, | |
11831 | psymtabs_addrmap_supported, anonymous>: Now bool. | |
11832 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
11833 | * dwarf2read.c (create_type_unit_group, create_partial_symtab) | |
11834 | (build_type_psymtabs_reader, psymtab_to_symtab_1) | |
11835 | (process_full_comp_unit, process_full_type_unit): Update. | |
11836 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
11837 | * ctfread.c (psymtab_to_symtab): Update. | |
11838 | ||
6f17252b TT |
11839 | 2020-01-26 Tom Tromey <tom@tromey.com> |
11840 | ||
11841 | * mdebugread.c (parse_partial_symbols): Use discard_psymtab. | |
11842 | * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove. | |
11843 | * psymtab.c (psymtab_storage): Delete psymtabs. | |
11844 | (psymtab_storage::allocate_psymtab): Use new. | |
11845 | (psymtab_storage::discard_psymtab): Use delete. | |
11846 | * psympriv.h (struct partial_symtab): Add constructor and | |
11847 | initializers. | |
11848 | ||
f6f1cebc TT |
11849 | 2020-01-26 Tom Tromey <tom@tromey.com> |
11850 | ||
11851 | * machoread.c: Do not include psympriv.h. | |
11852 | ||
e47e48f6 PW |
11853 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
11854 | ||
11855 | * NEWS: Mention the new option and the set/show commands. | |
11856 | ||
a2fedca9 PW |
11857 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
11858 | ||
11859 | * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode) | |
11860 | (show_exec_file_mismatch_command, set_exec_file_mismatch_command) | |
11861 | (validate_exec_file): New variables, enums, functions. | |
11862 | (exec_file_locate_attach, print_section_info): Style the filenames. | |
11863 | (_initialize_exec): Install show_exec_file_mismatch_command and | |
11864 | set_exec_file_mismatch_command. | |
11865 | * gdbcore.h (validate_exec_file): Declare. | |
11866 | * infcmd.c (attach_command): Call validate_exec_file. | |
11867 | * remote.c ( remote_target::remote_add_inferior): Likewise. | |
11868 | ||
7ffa82e1 AB |
11869 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
11870 | ||
11871 | * frame.c (find_frame_sal): Move call to get_next_frame into more | |
11872 | inner scope. | |
11873 | * inline-frame.c (inilne_state) <inline_state>: Update argument | |
11874 | types. | |
11875 | (inilne_state) <skipped_symbol>: Rename to... | |
11876 | (inilne_state) <skipped_symbols>: ...this, and change to a vector. | |
11877 | (skip_inline_frames): Build vector of skipped symbols and use this | |
11878 | to reate the inline_state. | |
11879 | (inline_skipped_symbol): Add a comment and some assertions, fetch | |
11880 | skipped symbol from the list. | |
11881 | ||
3d92a3e3 AB |
11882 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
11883 | ||
11884 | * buildsym.c (lte_is_less_than): Delete. | |
11885 | (buildsym_compunit::end_symtab_with_blockvector): Create local | |
11886 | lambda function to sort line table entries, and use | |
11887 | std::stable_sort instead of std::sort. | |
11888 | * symtab.c (find_pc_sect_line): Skip backward over end of sequence | |
11889 | markers when looking for a previous line. | |
11890 | ||
94a72be7 AB |
11891 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
11892 | ||
11893 | * dwarf2read.c (lnp_state_machine::record_line): Include | |
11894 | end_sequence parameter in debug print out. Record the line if we | |
11895 | are at an end_sequence marker even if it's not the start of a | |
11896 | statement. | |
11897 | * symmisc.c (maintenance_print_one_line_table): Print end of | |
11898 | sequence markers with 'END' not '0'. | |
11899 | ||
53af73bf PA |
11900 | 2020-01-24 Pedro Alves <palves@redhat.com> |
11901 | ||
11902 | PR gdb/25410 | |
11903 | * thread.c (scoped_restore_current_thread::restore): Use | |
11904 | switch_to_inferior_no_thread. | |
11905 | * exec.c: Include "progspace-and-thread.h". | |
11906 | (add_target_sections, remove_target_sections): | |
11907 | scoped_restore_current_pspace_and_thread instead of | |
11908 | scoped_restore_current_thread. | |
11909 | * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace | |
11910 | and aspace to the inferior before calling clone_program_space. | |
11911 | Remove stale comment. | |
11912 | ||
3050c6f4 CB |
11913 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
11914 | ||
11915 | * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to... | |
11916 | (arm_netbsd_nat_target::fetch_registers): ...this. | |
11917 | (arm_nbsd_nat_target::store_registers): Rename to... | |
11918 | (arm_netbsd_nat_target::store_registers): ...this. | |
11919 | ||
73685c7e CB |
11920 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
11921 | ||
11922 | * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
11923 | register_t. | |
11924 | ||
89203d40 CB |
11925 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
11926 | ||
11927 | * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections): | |
11928 | Update comment. | |
11929 | * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections): | |
11930 | Likewise. | |
11931 | * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise. | |
11932 | * gdbcore.h (deprecated_add_core_fns): Update comment to point to | |
11933 | the correct replacement (iterate_over_regset_sections). | |
11934 | * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections): | |
11935 | Update comment. | |
11936 | ||
1ba1ac88 AB |
11937 | 2020-01-24 Graham Markall <graham.markall@embecosm.com> |
11938 | ||
11939 | PR gdb/23718 | |
11940 | * gdb/python/python.c (execute_gdb_command): Call | |
11941 | async_enable_stdin in catch block. | |
11942 | ||
f3364a6d AB |
11943 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
11944 | ||
11945 | * event-loop.c (start_event_loop): Wrap async_enable_stdin with | |
11946 | SWITCH_THRU_ALL_UIS. | |
11947 | ||
733d0a67 AB |
11948 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
11949 | ||
11950 | PR tui/9765 | |
11951 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header | |
11952 | comment, add extra parameter, and update to store previous symbol | |
11953 | when appropriate. | |
11954 | * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment, | |
11955 | add extra parameter. | |
11956 | * tui/tui-disasm.c (tui_disassemble): Update header comment, | |
11957 | remove unneeded parameter, add try/catch around gdb_print_insn, | |
11958 | rewrite to add items to asm_lines vector. | |
11959 | (tui_find_backward_disassembly_start_address): New function. | |
11960 | (tui_find_disassembly_address): Updated throughout. | |
11961 | (tui_disasm_window::set_contents): Update for changes to | |
11962 | tui_disassemble. | |
11963 | (tui_disasm_window::do_scroll_vertical): No need to adjust the | |
11964 | number of lines to scroll. | |
11965 | ||
b3b3bada SM |
11966 | 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
11967 | ||
11968 | * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up. | |
11969 | (SECT_OFF_DATA): Likewise. | |
11970 | (SECT_OFF_RODATA): Likewise. | |
11971 | (SECT_OFF_TEXT): Likewise. | |
11972 | (SECT_OFF_BSS): Likewise. | |
11973 | (struct objfile) <text_section_offset, data_section_offset>: New | |
11974 | methods. | |
11975 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use | |
11976 | objfile::text_section_offset. | |
11977 | * coff-pe-read.c (add_pe_forwarded_sym): Likewise. | |
11978 | * coffread.c (coff_symtab_read): Likewise. | |
11979 | (enter_linenos): Likewise. | |
11980 | (process_coff_symbol): Likewise. | |
11981 | * ctfread.c (get_objfile_text_range): Likewise. | |
11982 | * dtrace-probe.c (dtrace_probe::get_relocated_address): | |
11983 | Use objfile::data_section_offset. | |
11984 | * dwarf2-frame.c (execute_cfa_program): Use | |
11985 | objfile::text_section_offset. | |
11986 | (dwarf2_frame_find_fde): Likewise. | |
11987 | * dwarf2read.c (create_addrmap_from_index): Likewise. | |
11988 | (create_addrmap_from_aranges): Likewise. | |
11989 | (dw2_find_pc_sect_compunit_symtab): Likewise. | |
11990 | (process_psymtab_comp_unit_reader): Likewise. | |
11991 | (add_partial_symbol): Likewise. | |
11992 | (add_partial_subprogram): Likewise. | |
11993 | (process_full_comp_unit): Likewise. | |
11994 | (read_file_scope): Likewise. | |
11995 | (read_func_scope): Likewise. | |
11996 | (read_lexical_block_scope): Likewise. | |
11997 | (read_call_site_scope): Likewise. | |
11998 | (dwarf2_rnglists_process): Likewise. | |
11999 | (dwarf2_ranges_process): Likewise. | |
12000 | (dwarf2_ranges_read): Likewise. | |
12001 | (dwarf_decode_lines_1): Likewise. | |
12002 | (new_symbol): Likewise. | |
12003 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
12004 | (dwarf2_per_cu_text_offset): Likewise. | |
12005 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
12006 | * hppa-tdep.c (read_unwind_info): Likewise. | |
12007 | * ia64-tdep.c (ia64_find_unwind_table): Likewise. | |
12008 | * psympriv.h (struct partial_symtab): Likewise. | |
12009 | * psymtab.c (find_pc_sect_psymtab): Likewise. | |
12010 | * solib-svr4.c (enable_break): Likewise. | |
12011 | * stap-probe.c (relocate_address): Use | |
12012 | objfile::data_section_offset. | |
12013 | * xcoffread.c (enter_line_range): Use | |
12014 | objfile::text_section_offset. | |
12015 | (read_xcoff_symtab): Likewise. | |
12016 | ||
ab53f382 SM |
12017 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
12018 | ||
12019 | * darwin-nat.c (darwin_nat_target::wait_1): Move `inf` | |
12020 | declaration to narrower scopes. | |
12021 | ||
e7eee665 SM |
12022 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
12023 | ||
12024 | * darwin-nat.h (struct darwin_exception_msg, enum | |
12025 | darwin_msg_state, struct darwin_thread_info, darwin_thread_t): | |
12026 | Move up. | |
12027 | (class darwin_nat_target) <wait_1, check_new_threads, | |
12028 | decode_exception_message, decode_message, stop_inferior, | |
12029 | init_thread_list, ptrace_him, cancel_breakpoint>: Declare. | |
12030 | * darwin-nat.c (darwin_check_new_threads): Rename to... | |
12031 | (darwin_nat_target::check_new_threads): ... this. | |
12032 | (darwin_suspend_inferior_it): Remove. | |
12033 | (darwin_decode_exception_message): Rename to... | |
12034 | (darwin_nat_target::decode_exception_message): ... this. | |
12035 | (darwin_nat_target::resume): Pass target to find_inferior_ptid. | |
12036 | (darwin_decode_message): Rename to... | |
12037 | (darwin_nat_target::decode_message): ... this. | |
12038 | (cancel_breakpoint): Rename to... | |
12039 | (darwin_nat_target::cancel_breakpoint): ... this. | |
12040 | (darwin_wait): Rename to... | |
12041 | (darwin_nat_target::wait_1): ... this. Use range-based for loop | |
12042 | instead of iterate_over_inferiors. | |
12043 | (darwin_nat_target::wait): Call wait_1 instead of darwin_wait. | |
12044 | (darwin_stop_inferior): Rename to... | |
12045 | (darwin_nat_target::stop_inferior): ... this. | |
12046 | (darwin_nat_target::kill): Call wait_1 instead of darwin_wait. | |
12047 | (darwin_init_thread_list): Rename to... | |
12048 | (darwin_nat_target::init_thread_list): ... this. | |
12049 | (darwin_ptrace_him): Rename to... | |
12050 | (darwin_nat_target::ptrace_him): ... this. | |
12051 | (darwin_nat_target::create_inferior): Pass lambda function to | |
12052 | fork_inferior. | |
12053 | (darwin_nat_target::detach): Call stop_inferior instead of | |
12054 | darwin_stop_inferior. | |
12055 | * fork-inferior.h (fork_inferior): Change init_trace_fun | |
12056 | parameter to gdb::function_view. | |
12057 | * fork-inferior.c (fork_inferior): Likewise. | |
12058 | ||
c162ed3e HD |
12059 | 2020-01-23 Hannes Domani <ssbssa@yahoo.de> |
12060 | ||
12061 | * i386-cygwin-tdep.c (core_process_module_section): Update. | |
12062 | * windows-nat.c (struct lm_info_windows): Add text_offset. | |
12063 | (windows_xfer_shared_libraries): Update. | |
12064 | * windows-tdep.c (windows_xfer_shared_library): | |
12065 | Add text_offset_cached argument. | |
12066 | * windows-tdep.h (windows_xfer_shared_library): Update. | |
12067 | ||
a1237872 SM |
12068 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
12069 | ||
12070 | * gdbarch.sh: Add declaration for _initialize_gdbarch. | |
12071 | ||
b3ee6dd9 SM |
12072 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
12073 | ||
12074 | * remote-sim.c (check_for_duplicate_sim_descriptor): Remove. | |
12075 | (get_sim_inferior_data): Remove use of iterate_over_inferiors, | |
12076 | replace with range-based for. | |
12077 | (gdbsim_interrupt_inferior): Remove. | |
12078 | (gdbsim_target::interrupt): Replace iterate_over_inferiors use | |
12079 | with a range-based for. Inline code from | |
12080 | gdbsim_interrupt_inferior. | |
12081 | ||
f9fac3c8 SM |
12082 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
12083 | ||
12084 | * infrun.c (proceed): Fix indentation. | |
12085 | ||
f6474de9 TT |
12086 | 2020-01-21 Tom Tromey <tromey@adacore.com> |
12087 | ||
12088 | * source-cache.c (source_cache::ensure): Call ext_lang_colorize. | |
12089 | * python/python.c (python_extension_ops): Update. | |
12090 | (gdbpy_colorize): New function. | |
12091 | * python/lib/gdb/__init__.py (colorize): New function. | |
12092 | * extension.h (ext_lang_colorize): Declare. | |
12093 | * extension.c (ext_lang_colorize): New function. | |
12094 | * extension-priv.h (struct extension_language_ops) <colorize>: New | |
12095 | member. | |
12096 | * cli/cli-style.c (_initialize_cli_style): Update help text. | |
12097 | ||
f0c702d4 LM |
12098 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
12099 | ||
12100 | * aarch64-tdep.c (struct aarch64_displaced_step_closure) | |
12101 | <cond>: Change type to bool. | |
12102 | (aarch64_displaced_step_b_cond): Update cond to use bool type. | |
12103 | (aarch64_displaced_step_cb): Likewise. | |
12104 | (aarch64_displaced_step_tb): Likewise. | |
12105 | ||
1ab139e5 LM |
12106 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
12107 | ||
12108 | * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging | |
12109 | output. | |
12110 | ||
0c271889 LM |
12111 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
12112 | ||
12113 | * aarch64-tdep.c (struct aarch64_displaced_step_closure ) | |
12114 | <pc_adjust>: Adjust the documentation. | |
12115 | (aarch64_displaced_step_fixup): Check if PC really moved before | |
12116 | adjusting it. | |
12117 | ||
4d89c1c7 TT |
12118 | 2020-01-19 Tom Tromey <tom@tromey.com> |
12119 | ||
12120 | * disasm.c (~gdb_disassembler): New destructor. | |
12121 | (gdb_buffered_insn_length): Call disassemble_free_target. | |
12122 | * disasm.h (class gdb_disassembler): Declare destructor. Use | |
12123 | DISABLE_COPY_AND_ASSIGN. | |
12124 | ||
c0ab21c2 TT |
12125 | 2020-01-19 Tom Tromey <tom@tromey.com> |
12126 | ||
12127 | * dwarf2read.c (abbrev_table_up): Move typedef earlier. | |
12128 | (die_reader_func_ftype): Remove. | |
12129 | (cutu_reader): New class. | |
12130 | (dw2_get_file_names_reader): Remove "data" parameter. | |
12131 | (dw2_get_file_names): Use cutu_reader. | |
12132 | (create_debug_type_hash_table): Update. | |
12133 | (read_cutu_die_from_dwo): Update comment. | |
12134 | (lookup_dwo_unit): Add dwo_name parameter. | |
12135 | (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove | |
12136 | die_reader_func_ftype and data parameters. | |
12137 | (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies. | |
12138 | Remove die_reader_func_ftype and data parameters. | |
12139 | (~cutu_reader): New; from init_cutu_and_read_dies. | |
12140 | (cutu_reader::cutu_reader): Rename from | |
12141 | init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype | |
12142 | and data parameters. | |
12143 | (init_cutu_and_read_dies_simple): Remove. | |
12144 | (struct process_psymtab_comp_unit_data): Remove. | |
12145 | (process_psymtab_comp_unit_reader): Remove data parameter; add | |
12146 | want_partial_unit and pretend_language parameters. | |
12147 | (process_psymtab_comp_unit): Use cutu_reader. | |
12148 | (build_type_psymtabs_reader): Remove data parameter. | |
12149 | (build_type_psymtabs_1): Use cutu_reader. | |
12150 | (process_skeletonless_type_unit): Likewise. | |
12151 | (load_partial_comp_unit_reader): Remove. | |
12152 | (load_partial_comp_unit): Use cutu_reader. | |
12153 | (load_full_comp_unit_reader): Remove. | |
12154 | (load_full_comp_unit): Use cutu_reader. | |
12155 | (struct create_dwo_cu_data): Remove. | |
12156 | (create_dwo_cu_reader): Remove datap parameter; add dwo_file and | |
12157 | dwo_unit parameters. | |
12158 | (create_cus_hash_table): Use cutu_reader. | |
12159 | (struct dwarf2_read_addr_index_data): Remove. | |
12160 | (dwarf2_read_addr_index_reader): Remove. | |
12161 | (dwarf2_read_addr_index): Use cutu_reader. | |
12162 | (read_signatured_type_reader): Remove. | |
12163 | (read_signatured_type): Use cutu_reader. | |
12164 | ||
45bbae5c TT |
12165 | 2020-01-19 Tom Tromey <tom@tromey.com> |
12166 | ||
12167 | * tui/tui.c (tui_show_assembly): Use tui_suppress_output. | |
12168 | * tui/tui-wingeneral.h (class tui_suppress_output): New. | |
12169 | (tui_wrefresh): Declare. | |
12170 | * tui/tui-wingeneral.c (suppress_output): New global. | |
12171 | (tui_suppress_output, ~tui_suppress_output): New constructor and | |
12172 | destructor. | |
12173 | (tui_wrefresh): New function. | |
12174 | (tui_gen_win_info::refresh_window): Use tui_wrefresh. | |
12175 | (tui_gen_win_info::make_window): Call wnoutrefresh when needed. | |
12176 | * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare | |
12177 | method. | |
12178 | * tui/tui-regs.c (tui_data_window::erase_data_content): Call | |
12179 | tui_wrefresh. | |
12180 | (tui_data_window::no_refresh): New method. | |
12181 | (tui_data_item_window::refresh_window): Call tui_wrefresh. | |
12182 | (tui_reg_command): Use tui_suppress_output | |
12183 | * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output. | |
12184 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New | |
12185 | method. | |
12186 | * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh. | |
12187 | ||
4f13c1c0 TT |
12188 | 2020-01-19 Tom Tromey <tom@tromey.com> |
12189 | ||
12190 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
12191 | Handle case where symtab is null. | |
12192 | ||
fa47e446 SM |
12193 | 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
12194 | ||
12195 | * linux-fork.c (one_fork_p): Simplify. | |
12196 | ||
26f42329 SM |
12197 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
12198 | ||
12199 | * top.c (struct qt_args): Remove. | |
12200 | (kill_or_detach): Change return type to void, replace `void *` | |
12201 | parameter with a proper one. | |
12202 | (print_inferior_quit_action): Likewise. | |
12203 | (quit_confirm): Use range-based for loop to iterate over inferiors. | |
12204 | (quit_force): Likewise. | |
12205 | ||
a9ac81b1 SM |
12206 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
12207 | ||
12208 | * mi/mi-main.c (run_one_inferior): Change return type to void, replace | |
12209 | `void *` parameter with proper parameters. | |
12210 | (mi_cmd_exec_run): Use range-based loop to iterate over inferiors. | |
12211 | (print_one_inferior): Change return type to void, replace `void *` | |
12212 | parameter with proper parameters. | |
12213 | (mi_cmd_list_thread_groups): Use range-based loop to iterate over | |
12214 | inferiors. | |
12215 | (get_other_inferior): Remove. | |
12216 | (mi_cmd_remove_inferior): Use range-based loop to iterate over | |
12217 | inferiors. | |
12218 | ||
788eca49 SM |
12219 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
12220 | ||
12221 | * mi/mi-interp.c (report_initial_inferior): Remove. | |
12222 | (mi_interp::init): Use range-based for to iterate over inferiors. | |
12223 | ||
d9bc85b6 SM |
12224 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
12225 | ||
12226 | * python/py-inferior.c (build_inferior_list): Remove. | |
12227 | (gdbpy_ref): Use range-based for loop to iterate over inferiors. | |
12228 | ||
40c94099 CB |
12229 | 2020-01-16 Christian Biesinger <cbiesinger@google.com> |
12230 | ||
12231 | * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown). | |
12232 | (btrace_stitch_trace): Likewise. | |
12233 | * charset.c (intermediate_encoding): Likewise (vaild). | |
12234 | * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown). | |
12235 | * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences). | |
12236 | * record-btrace.c (record_btrace_print_conf): Likewise (unkown). | |
12237 | ||
e0cdfe3c HD |
12238 | 2020-01-16 Hannes Domani <ssbssa@yahoo.de> |
12239 | ||
12240 | * windows-tdep.c (windows_get_tlb_type): | |
12241 | Add rtl_user_process_parameters type. | |
12242 | ||
790f1718 | 12243 | 2020-01-16 Pedro Alves <palves@redhat.com> |
aac66a4c | 12244 | Norbert Lange <nolange79@gmail.com> |
790f1718 PA |
12245 | |
12246 | PR build/24805 | |
12247 | * gdbsupport/gdb_proc_service.h (PS_EXPORT): New. | |
12248 | (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs) | |
12249 | (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue) | |
12250 | (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread) | |
12251 | (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs) | |
12252 | (ps_plog): Redeclare exported functions with default visibility. | |
12253 | ||
3112ed97 NA |
12254 | 2020-01-16 Nitika Achra <Nitika.Achra@amd.com> |
12255 | ||
12256 | * dwarf2loc.c (decode_debug_loclists_addresses): Handle | |
12257 | DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length. | |
12258 | ||
8dc3273e SM |
12259 | 2020-01-15 Simon Marchi <simon.marchi@efficios.com> |
12260 | ||
12261 | * infcmd.c (post_create_inferior): Use get_thread_regcache | |
12262 | instead of get_current_regcache. | |
12263 | ||
ff47f4f0 TT |
12264 | 2020-01-14 Tom Tromey <tom@tromey.com> |
12265 | ||
12266 | PR symtab/12535: | |
12267 | * python/python.c (gdbpy_decode_line): Treat empty string the same | |
12268 | as no argument. | |
12269 | ||
975f45b7 TT |
12270 | 2020-01-14 Tom Tromey <tom@tromey.com> |
12271 | ||
12272 | * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY). | |
12273 | ||
25e57356 TT |
12274 | 2020-01-14 Tom Tromey <tom@tromey.com> |
12275 | ||
12276 | * nat/linux-btrace.c: Don't include <config.h>. | |
12277 | * nat/linux-ptrace.c: Don't include <config.h>. | |
12278 | * nat/x86-linux-dregs.c: Don't include <config.h>. | |
12279 | ||
05ea2a05 TT |
12280 | 2020-01-14 Tom Tromey <tom@tromey.com> |
12281 | ||
12282 | * configure: Rebuild. | |
12283 | * configure.ac: Move many checks to ../gdbsupport/common.m4. | |
12284 | ||
01027315 TT |
12285 | 2020-01-14 Tom Tromey <tom@tromey.com> |
12286 | ||
12287 | * nat/x86-linux-dregs.c: Include configh.h. | |
12288 | * nat/linux-ptrace.c: Include configh.h. | |
12289 | * nat/linux-btrace.c: Include configh.h. | |
12290 | * defs.h: Include config.h, bfd.h. | |
12291 | * configure.ac: Don't source common.host. | |
12292 | (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files. | |
12293 | * configure: Rebuild. | |
12294 | * acinclude.m4: Update path. | |
12295 | * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables. | |
12296 | (CONFIG_SRC_SUBDIR): Remove gdbsupport. | |
12297 | (INTERNAL_CFLAGS_BASE): Add INCSUPPORT. | |
12298 | (CLIBS): Add LIBSUPPORT. | |
12299 | (CDEPS): Likewise. | |
12300 | (COMMON_SFILES): Remove gdbsupport files. | |
12301 | (HFILES_NO_SRCDIR): Likewise. | |
12302 | (stamp-version): Update path to create-version.sh. | |
12303 | (ALLDEPFILES): Remove gdbsupport files. | |
12304 | ||
b2ceabe8 TT |
12305 | 2020-01-14 Tom Tromey <tom@tromey.com> |
12306 | ||
12307 | * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and | |
12308 | USE_WIN32API when needed. | |
12309 | * configure.ac (USE_WIN32API): Don't define. | |
12310 | (WIN32LIBS): Use WIN32APILIBS. | |
12311 | * configure: Rebuild. | |
12312 | ||
25c51f71 TT |
12313 | 2020-01-14 Tom Tromey <tom@tromey.com> |
12314 | ||
12315 | * configure: Rebuild. | |
12316 | * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation. | |
12317 | ||
717c684d BE |
12318 | 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
12319 | ||
12320 | * skip.c (skip_function_command): Make skip w/o arguments use the | |
12321 | name of the inlined function if pc is inside any inlined function. | |
12322 | ||
7da6a5b9 LM |
12323 | 2020-01-14 Luis Machado <luis.machado@linaro.org> |
12324 | ||
12325 | * inf-ptrace.c (inf_ptrace_target::resume): Update comments. | |
12326 | * infrun.c (resume_1): Likewise. | |
12327 | (handle_inferior_event): Remove stale comment. | |
12328 | * linux-nat.c (linux_nat_target::resume): Update comments. | |
12329 | (save_stop_reason): Likewise. | |
12330 | (linux_nat_filter_event): Likewise. | |
12331 | * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise. | |
12332 | ||
44e4c775 AB |
12333 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
12334 | ||
12335 | * elfread.c (record_minimal_symbol): Set section index to 0 for | |
12336 | non-allocatable sections. | |
12337 | ||
18a8505e AT |
12338 | |
12339 | 2020-01-13 Ali Tamur <tamur@google.com> | |
12340 | ||
12341 | * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections. | |
12342 | (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base | |
12343 | to gdb::optional. Update comments. | |
12344 | (dwo_file): Update comments. | |
12345 | (read_attribute): Update API to take an additional out parameter, | |
12346 | need_reprocess. This is used to mark attributes that need other | |
12347 | attributes (e.g. str_offsets_base) for correct computation which may not | |
12348 | have been read yet. | |
12349 | (read_attribute_reprocess): New function declaration. | |
12350 | (read_addr_index): Likewise. | |
12351 | (read_dwo_str_index): Likewise. | |
12352 | (read_stub_str_index): Likewise. | |
12353 | (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section. | |
12354 | (lookup_addr_base): New function definition. | |
12355 | (lookup_ranges_base): Likewise. | |
12356 | (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base, | |
12357 | lookup_ranges_base. | |
12358 | (init_cutu_and_read_dies): Update comments. | |
12359 | (init_cutu_and_read_dies_no_follow): Change API to take parent compile | |
12360 | unit. This is used to inherit parent's str_offsets_base and addr_base. | |
12361 | Update comments. | |
12362 | (init_cutu_and_read_dies_simple): Reflect API changes. | |
12363 | (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx. | |
12364 | (create_cus_hash_table): Change API to take parent compile unit. | |
12365 | Reflect API changes. | |
12366 | (open_and_init_dwo_file): Reflect API changes. | |
12367 | (dwarf2_get_pc_bounds): Update comments. | |
12368 | (dwarf2_record_block_ranges): Likewise. | |
12369 | (read_full_die_1): Change implementation to reprocess attributes that | |
12370 | need str_offsets_base and addr_base. | |
12371 | (partial_die_info::read): Likewise. | |
12372 | (read_attribute_reprocess): New function definition. | |
12373 | (read_attribute_value): Change API to take an additional out parameter, | |
12374 | need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error | |
12375 | when a non-dwo compile unit has index based attributes. | |
12376 | (read_attribute): Reflect API changes. | |
12377 | (read_addr_index_1): Reflect API changes. Update comments. | |
12378 | (dwarf2_read_addr_index_data): Reflect API changes. | |
12379 | (dwarf2_read_addr_index): Likewise. | |
12380 | (read_str_index): Change API and implementation. This becomes a helper | |
12381 | to be used by the new string index related methods. Update error | |
12382 | message and comments. | |
12383 | (read_dwo_str_index): New function definition. | |
12384 | (read_stub_str_index): Likewise. | |
12385 | * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field. | |
12386 | * symfile.h (dwarf2_debug_sections): Likewise. | |
12387 | * xcoffread.c (dwarf2_debug_sections): Likewise. | |
12388 | ||
0cac9354 SM |
12389 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
12390 | ||
12391 | * gdbcore.h (struct core_fns) <core_read_registers>: Change | |
12392 | core_reg_sect type to gdb_byte *. | |
12393 | * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise. | |
12394 | * cris-tdep.c (fetch_core_registers): Likewise. | |
12395 | * corelow.c (core_target::get_core_register_section): Change | |
12396 | type of `contents` to gdb::byte_vector. | |
12397 | ||
9a6d629c AB |
12398 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
12399 | ||
12400 | * tui/tui-wingeneral.c (box_win): Position the title in the center | |
12401 | of the border. | |
12402 | ||
d8b2f9e3 SM |
12403 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
12404 | ||
12405 | * corelow.c (core_target::get_core_register_section): Use | |
12406 | std::vector instead of alloca. | |
12407 | ||
bb564c58 SM |
12408 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
12409 | ||
12410 | * warning.m4: Add -Wmissing-declarations to build_warnings. | |
12411 | * configure: Re-generate. | |
12412 | ||
6b366111 SM |
12413 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
12414 | ||
12415 | * python/python.c (init__gdb_module): Add declaration. | |
12416 | ||
6c265988 SM |
12417 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
12418 | ||
12419 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration. | |
12420 | * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration. | |
12421 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration. | |
12422 | * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration. | |
12423 | * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration. | |
12424 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration. | |
12425 | * ada-exp.y (_initialize_ada_exp): Add declaration. | |
12426 | * ada-lang.c (_initialize_ada_language): Add declaration. | |
12427 | * ada-tasks.c (_initialize_tasks): Add declaration. | |
12428 | * agent.c (_initialize_agent): Add declaration. | |
12429 | * aix-thread.c (_initialize_aix_thread): Add declaration. | |
12430 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration. | |
12431 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration. | |
12432 | * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration. | |
12433 | * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration. | |
12434 | * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration. | |
12435 | * alpha-tdep.c (_initialize_alpha_tdep): Add declaration. | |
12436 | * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration. | |
12437 | * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration. | |
12438 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration. | |
12439 | * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration. | |
12440 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration. | |
12441 | * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration. | |
12442 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration. | |
12443 | * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration. | |
12444 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration. | |
12445 | * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration. | |
12446 | * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration. | |
12447 | * amd64-tdep.c (_initialize_amd64_tdep): Add declaration. | |
12448 | * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration. | |
12449 | * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration. | |
12450 | * annotate.c (_initialize_annotate): Add declaration. | |
12451 | * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration. | |
12452 | * arc-tdep.c (_initialize_arc_tdep): Add declaration. | |
12453 | * arch-utils.c (_initialize_gdbarch_utils): Add declaration. | |
12454 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration. | |
12455 | * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration. | |
12456 | * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration. | |
12457 | * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration. | |
12458 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration. | |
12459 | * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration. | |
12460 | * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration. | |
12461 | * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration. | |
12462 | * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration. | |
12463 | * arm-tdep.c (_initialize_arm_tdep): Add declaration. | |
12464 | * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration. | |
12465 | * auto-load.c (_initialize_auto_load): Add declaration. | |
12466 | * auxv.c (_initialize_auxv): Add declaration. | |
12467 | * avr-tdep.c (_initialize_avr_tdep): Add declaration. | |
12468 | * ax-gdb.c (_initialize_ax_gdb): Add declaration. | |
12469 | * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration. | |
12470 | * bfin-tdep.c (_initialize_bfin_tdep): Add declaration. | |
12471 | * break-catch-sig.c (_initialize_break_catch_sig): Add declaration. | |
12472 | * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration. | |
12473 | * break-catch-throw.c (_initialize_break_catch_throw): Add declaration. | |
12474 | * breakpoint.c (_initialize_breakpoint): Add declaration. | |
12475 | * bsd-uthread.c (_initialize_bsd_uthread): Add declaration. | |
12476 | * btrace.c (_initialize_btrace): Add declaration. | |
12477 | * charset.c (_initialize_charset): Add declaration. | |
12478 | * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration. | |
12479 | * cli/cli-dump.c (_initialize_cli_dump): Add declaration. | |
12480 | * cli/cli-interp.c (_initialize_cli_interp): Add declaration. | |
12481 | * cli/cli-logging.c (_initialize_cli_logging): Add declaration. | |
12482 | * cli/cli-script.c (_initialize_cli_script): Add declaration. | |
12483 | * cli/cli-style.c (_initialize_cli_style): Add declaration. | |
12484 | * coff-pe-read.c (_initialize_coff_pe_read): Add declaration. | |
12485 | * coffread.c (_initialize_coffread): Add declaration. | |
12486 | * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration. | |
12487 | * compile/compile.c (_initialize_compile): Add declaration. | |
12488 | * complaints.c (_initialize_complaints): Add declaration. | |
12489 | * completer.c (_initialize_completer): Add declaration. | |
12490 | * copying.c (_initialize_copying): Add declaration. | |
12491 | * corefile.c (_initialize_core): Add declaration. | |
12492 | * corelow.c (_initialize_corelow): Add declaration. | |
12493 | * cp-abi.c (_initialize_cp_abi): Add declaration. | |
12494 | * cp-namespace.c (_initialize_cp_namespace): Add declaration. | |
12495 | * cp-support.c (_initialize_cp_support): Add declaration. | |
12496 | * cp-valprint.c (_initialize_cp_valprint): Add declaration. | |
12497 | * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration. | |
12498 | * cris-tdep.c (_initialize_cris_tdep): Add declaration. | |
12499 | * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration. | |
12500 | * csky-tdep.c (_initialize_csky_tdep): Add declaration. | |
12501 | * ctfread.c (_initialize_ctfread): Add declaration. | |
12502 | * d-lang.c (_initialize_d_language): Add declaration. | |
12503 | * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration. | |
12504 | * darwin-nat.c (_initialize_darwin_nat): Add declaration. | |
12505 | * dbxread.c (_initialize_dbxread): Add declaration. | |
12506 | * dcache.c (_initialize_dcache): Add declaration. | |
12507 | * disasm-selftests.c (_initialize_disasm_selftests): Add declaration. | |
12508 | * disasm.c (_initialize_disasm): Add declaration. | |
12509 | * dtrace-probe.c (_initialize_dtrace_probe): Add declaration. | |
12510 | * dummy-frame.c (_initialize_dummy_frame): Add declaration. | |
12511 | * dwarf-index-cache.c (_initialize_index_cache): Add declaration. | |
12512 | * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration. | |
12513 | * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration. | |
12514 | * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration. | |
12515 | * dwarf2expr.c (_initialize_dwarf2expr): Add declaration. | |
12516 | * dwarf2loc.c (_initialize_dwarf2loc): Add declaration. | |
12517 | * dwarf2read.c (_initialize_dwarf2_read): Add declaration. | |
12518 | * elfread.c (_initialize_elfread): Add declaration. | |
12519 | * exec.c (_initialize_exec): Add declaration. | |
12520 | * extension.c (_initialize_extension): Add declaration. | |
12521 | * f-lang.c (_initialize_f_language): Add declaration. | |
12522 | * f-valprint.c (_initialize_f_valprint): Add declaration. | |
12523 | * fbsd-nat.c (_initialize_fbsd_nat): Add declaration. | |
12524 | * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration. | |
12525 | * filesystem.c (_initialize_filesystem): Add declaration. | |
12526 | * findcmd.c (_initialize_mem_search): Add declaration. | |
12527 | * findvar.c (_initialize_findvar): Add declaration. | |
12528 | * fork-child.c (_initialize_fork_child): Add declaration. | |
12529 | * frame-base.c (_initialize_frame_base): Add declaration. | |
12530 | * frame-unwind.c (_initialize_frame_unwind): Add declaration. | |
12531 | * frame.c (_initialize_frame): Add declaration. | |
12532 | * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration. | |
12533 | * frv-tdep.c (_initialize_frv_tdep): Add declaration. | |
12534 | * ft32-tdep.c (_initialize_ft32_tdep): Add declaration. | |
12535 | * gcore.c (_initialize_gcore): Add declaration. | |
12536 | * gdb-demangle.c (_initialize_gdb_demangle): Add declaration. | |
12537 | * gdb_bfd.c (_initialize_gdb_bfd): Add declaration. | |
12538 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration. | |
12539 | * gdbarch.c (_initialize_gdbarch): Add declaration. | |
12540 | * gdbtypes.c (_initialize_gdbtypes): Add declaration. | |
12541 | * gnu-nat.c (_initialize_gnu_nat): Add declaration. | |
12542 | * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration. | |
12543 | * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration. | |
12544 | * go-lang.c (_initialize_go_language): Add declaration. | |
12545 | * go32-nat.c (_initialize_go32_nat): Add declaration. | |
12546 | * guile/guile.c (_initialize_guile): Add declaration. | |
12547 | * h8300-tdep.c (_initialize_h8300_tdep): Add declaration. | |
12548 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration. | |
12549 | * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration. | |
12550 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration. | |
12551 | * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration. | |
12552 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration. | |
12553 | * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration. | |
12554 | * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. | |
12555 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration. | |
12556 | * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration. | |
12557 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration. | |
12558 | * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration. | |
12559 | * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration. | |
12560 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration. | |
12561 | * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration. | |
12562 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration. | |
12563 | * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration. | |
12564 | * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration. | |
12565 | * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration. | |
12566 | * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration. | |
12567 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration. | |
12568 | * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration. | |
12569 | * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration. | |
12570 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration. | |
12571 | * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration. | |
12572 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration. | |
12573 | * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration. | |
12574 | * i386-tdep.c (_initialize_i386_tdep): Add declaration. | |
12575 | * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration. | |
12576 | * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration. | |
12577 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration. | |
12578 | * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration. | |
12579 | * ia64-tdep.c (_initialize_ia64_tdep): Add declaration. | |
12580 | * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration. | |
12581 | * infcall.c (_initialize_infcall): Add declaration. | |
12582 | * infcmd.c (_initialize_infcmd): Add declaration. | |
12583 | * inflow.c (_initialize_inflow): Add declaration. | |
12584 | * infrun.c (_initialize_infrun): Add declaration. | |
12585 | * interps.c (_initialize_interpreter): Add declaration. | |
12586 | * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration. | |
12587 | * jit.c (_initialize_jit): Add declaration. | |
12588 | * language.c (_initialize_language): Add declaration. | |
12589 | * linux-fork.c (_initialize_linux_fork): Add declaration. | |
12590 | * linux-nat.c (_initialize_linux_nat): Add declaration. | |
12591 | * linux-tdep.c (_initialize_linux_tdep): Add declaration. | |
12592 | * linux-thread-db.c (_initialize_thread_db): Add declaration. | |
12593 | * lm32-tdep.c (_initialize_lm32_tdep): Add declaration. | |
12594 | * m2-lang.c (_initialize_m2_language): Add declaration. | |
12595 | * m32c-tdep.c (_initialize_m32c_tdep): Add declaration. | |
12596 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration. | |
12597 | * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration. | |
12598 | * m32r-tdep.c (_initialize_m32r_tdep): Add declaration. | |
12599 | * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration. | |
12600 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration. | |
12601 | * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration. | |
12602 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration. | |
12603 | * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration. | |
12604 | * m68k-tdep.c (_initialize_m68k_tdep): Add declaration. | |
12605 | * machoread.c (_initialize_machoread): Add declaration. | |
12606 | * macrocmd.c (_initialize_macrocmd): Add declaration. | |
12607 | * macroscope.c (_initialize_macroscope): Add declaration. | |
12608 | * maint-test-options.c (_initialize_maint_test_options): Add declaration. | |
12609 | * maint-test-settings.c (_initialize_maint_test_settings): Add declaration. | |
12610 | * maint.c (_initialize_maint_cmds): Add declaration. | |
12611 | * mdebugread.c (_initialize_mdebugread): Add declaration. | |
12612 | * memattr.c (_initialize_mem): Add declaration. | |
12613 | * mep-tdep.c (_initialize_mep_tdep): Add declaration. | |
12614 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration. | |
12615 | * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration. | |
12616 | * mi/mi-interp.c (_initialize_mi_interp): Add declaration. | |
12617 | * mi/mi-main.c (_initialize_mi_main): Add declaration. | |
12618 | * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration. | |
12619 | * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration. | |
12620 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration. | |
12621 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration. | |
12622 | * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration. | |
12623 | * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration. | |
12624 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration. | |
12625 | * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration. | |
12626 | * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration. | |
12627 | * mips-tdep.c (_initialize_mips_tdep): Add declaration. | |
12628 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration. | |
12629 | * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration. | |
12630 | * mipsread.c (_initialize_mipsread): Add declaration. | |
12631 | * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration. | |
12632 | * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration. | |
12633 | * moxie-tdep.c (_initialize_moxie_tdep): Add declaration. | |
12634 | * msp430-tdep.c (_initialize_msp430_tdep): Add declaration. | |
12635 | * nds32-tdep.c (_initialize_nds32_tdep): Add declaration. | |
12636 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration. | |
12637 | * nios2-tdep.c (_initialize_nios2_tdep): Add declaration. | |
12638 | * nto-procfs.c (_initialize_procfs): Add declaration. | |
12639 | * objc-lang.c (_initialize_objc_language): Add declaration. | |
12640 | * observable.c (_initialize_observer): Add declaration. | |
12641 | * opencl-lang.c (_initialize_opencl_language): Add declaration. | |
12642 | * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration. | |
12643 | * or1k-tdep.c (_initialize_or1k_tdep): Add declaration. | |
12644 | * osabi.c (_initialize_gdb_osabi): Add declaration. | |
12645 | * osdata.c (_initialize_osdata): Add declaration. | |
12646 | * p-valprint.c (_initialize_pascal_valprint): Add declaration. | |
12647 | * parse.c (_initialize_parse): Add declaration. | |
12648 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration. | |
12649 | * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration. | |
12650 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration. | |
12651 | * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration. | |
12652 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration. | |
12653 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration. | |
12654 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration. | |
12655 | * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration. | |
12656 | * printcmd.c (_initialize_printcmd): Add declaration. | |
12657 | * probe.c (_initialize_probe): Add declaration. | |
12658 | * proc-api.c (_initialize_proc_api): Add declaration. | |
12659 | * proc-events.c (_initialize_proc_events): Add declaration. | |
12660 | * proc-service.c (_initialize_proc_service): Add declaration. | |
12661 | * procfs.c (_initialize_procfs): Add declaration. | |
12662 | * producer.c (_initialize_producer): Add declaration. | |
12663 | * psymtab.c (_initialize_psymtab): Add declaration. | |
12664 | * python/python.c (_initialize_python): Add declaration. | |
12665 | * ravenscar-thread.c (_initialize_ravenscar): Add declaration. | |
12666 | * record-btrace.c (_initialize_record_btrace): Add declaration. | |
12667 | * record-full.c (_initialize_record_full): Add declaration. | |
12668 | * record.c (_initialize_record): Add declaration. | |
12669 | * regcache-dump.c (_initialize_regcache_dump): Add declaration. | |
12670 | * regcache.c (_initialize_regcache): Add declaration. | |
12671 | * reggroups.c (_initialize_reggroup): Add declaration. | |
12672 | * remote-notif.c (_initialize_notif): Add declaration. | |
12673 | * remote-sim.c (_initialize_remote_sim): Add declaration. | |
12674 | * remote.c (_initialize_remote): Add declaration. | |
12675 | * reverse.c (_initialize_reverse): Add declaration. | |
12676 | * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration. | |
12677 | * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration. | |
12678 | * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration. | |
12679 | * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration. | |
12680 | * riscv-tdep.c (_initialize_riscv_tdep): Add declaration. | |
12681 | * rl78-tdep.c (_initialize_rl78_tdep): Add declaration. | |
12682 | * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration. | |
12683 | * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): | |
12684 | Add declaration. | |
12685 | * rs6000-nat.c (_initialize_rs6000_nat): Add declaration. | |
12686 | * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration. | |
12687 | * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration. | |
12688 | * rust-exp.y (_initialize_rust_exp): Add declaration. | |
12689 | * rx-tdep.c (_initialize_rx_tdep): Add declaration. | |
12690 | * s12z-tdep.c (_initialize_s12z_tdep): Add declaration. | |
12691 | * s390-linux-nat.c (_initialize_s390_nat): Add declaration. | |
12692 | * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration. | |
12693 | * s390-tdep.c (_initialize_s390_tdep): Add declaration. | |
12694 | * score-tdep.c (_initialize_score_tdep): Add declaration. | |
12695 | * ser-go32.c (_initialize_ser_dos): Add declaration. | |
12696 | * ser-mingw.c (_initialize_ser_windows): Add declaration. | |
12697 | * ser-pipe.c (_initialize_ser_pipe): Add declaration. | |
12698 | * ser-tcp.c (_initialize_ser_tcp): Add declaration. | |
12699 | * ser-uds.c (_initialize_ser_socket): Add declaration. | |
12700 | * ser-unix.c (_initialize_ser_hardwire): Add declaration. | |
12701 | * serial.c (_initialize_serial): Add declaration. | |
12702 | * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration. | |
12703 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration. | |
12704 | * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration. | |
12705 | * sh-tdep.c (_initialize_sh_tdep): Add declaration. | |
12706 | * skip.c (_initialize_step_skip): Add declaration. | |
12707 | * sol-thread.c (_initialize_sol_thread): Add declaration. | |
12708 | * solib-aix.c (_initialize_solib_aix): Add declaration. | |
12709 | * solib-darwin.c (_initialize_darwin_solib): Add declaration. | |
12710 | * solib-dsbt.c (_initialize_dsbt_solib): Add declaration. | |
12711 | * solib-frv.c (_initialize_frv_solib): Add declaration. | |
12712 | * solib-svr4.c (_initialize_svr4_solib): Add declaration. | |
12713 | * solib-target.c (_initialize_solib_target): Add declaration. | |
12714 | * solib.c (_initialize_solib): Add declaration. | |
12715 | * source-cache.c (_initialize_source_cache): Add declaration. | |
12716 | * source.c (_initialize_source): Add declaration. | |
12717 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration. | |
12718 | * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration. | |
12719 | * sparc-nat.c (_initialize_sparc_nat): Add declaration. | |
12720 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration. | |
12721 | * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration. | |
12722 | * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration. | |
12723 | * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration. | |
12724 | * sparc-tdep.c (_initialize_sparc_tdep): Add declaration. | |
12725 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration. | |
12726 | * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration. | |
12727 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration. | |
12728 | * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration. | |
12729 | * sparc64-nat.c (_initialize_sparc64_nat): Add declaration. | |
12730 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration. | |
12731 | * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration. | |
12732 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration. | |
12733 | * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration. | |
12734 | * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration. | |
12735 | * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration. | |
12736 | * stabsread.c (_initialize_stabsread): Add declaration. | |
12737 | * stack.c (_initialize_stack): Add declaration. | |
12738 | * stap-probe.c (_initialize_stap_probe): Add declaration. | |
12739 | * std-regs.c (_initialize_frame_reg): Add declaration. | |
12740 | * symfile-debug.c (_initialize_symfile_debug): Add declaration. | |
12741 | * symfile-mem.c (_initialize_symfile_mem): Add declaration. | |
12742 | * symfile.c (_initialize_symfile): Add declaration. | |
12743 | * symmisc.c (_initialize_symmisc): Add declaration. | |
12744 | * symtab.c (_initialize_symtab): Add declaration. | |
12745 | * target.c (_initialize_target): Add declaration. | |
12746 | * target-connection.c (_initialize_target_connection): Add | |
12747 | declaration. | |
12748 | * target-dcache.c (_initialize_target_dcache): Add declaration. | |
12749 | * target-descriptions.c (_initialize_target_descriptions): Add declaration. | |
12750 | * thread.c (_initialize_thread): Add declaration. | |
12751 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration. | |
12752 | * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration. | |
12753 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration. | |
12754 | * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration. | |
12755 | * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration. | |
12756 | * tracectf.c (_initialize_ctf): Add declaration. | |
12757 | * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration. | |
12758 | * tracefile.c (_initialize_tracefile): Add declaration. | |
12759 | * tracepoint.c (_initialize_tracepoint): Add declaration. | |
12760 | * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration. | |
12761 | * tui/tui-interp.c (_initialize_tui_interp): Add declaration. | |
12762 | * tui/tui-layout.c (_initialize_tui_layout): Add declaration. | |
12763 | * tui/tui-regs.c (_initialize_tui_regs): Add declaration. | |
12764 | * tui/tui-stack.c (_initialize_tui_stack): Add declaration. | |
12765 | * tui/tui-win.c (_initialize_tui_win): Add declaration. | |
12766 | * tui/tui.c (_initialize_tui): Add declaration. | |
12767 | * typeprint.c (_initialize_typeprint): Add declaration. | |
12768 | * ui-style.c (_initialize_ui_style): Add declaration. | |
12769 | * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration. | |
12770 | * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration. | |
12771 | * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration. | |
12772 | * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration. | |
12773 | * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration. | |
12774 | * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration. | |
12775 | * unittests/filtered_iterator-selftests.c | |
12776 | (_initialize_filtered_iterator_selftests): Add declaration. | |
12777 | * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration. | |
12778 | * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration. | |
12779 | * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration. | |
12780 | * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration. | |
12781 | * unittests/main-thread-selftests.c | |
12782 | (_initialize_main_thread_selftests): Add declaration. | |
12783 | * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration. | |
12784 | * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration. | |
12785 | * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration. | |
12786 | * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration. | |
12787 | * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration. | |
12788 | * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration. | |
12789 | * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration. | |
12790 | * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration. | |
12791 | * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration. | |
12792 | * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration. | |
12793 | * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration. | |
12794 | * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration. | |
12795 | * unittests/style-selftests.c (_initialize_style_selftest): Add declaration. | |
12796 | * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration. | |
12797 | * unittests/tui-selftests.c (_initialize_tui_selftest): Add | |
12798 | declaration. | |
12799 | * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration. | |
12800 | * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration. | |
12801 | * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration. | |
12802 | * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration. | |
12803 | * user-regs.c (_initialize_user_regs): Add declaration. | |
12804 | * utils.c (_initialize_utils): Add declaration. | |
12805 | * v850-tdep.c (_initialize_v850_tdep): Add declaration. | |
12806 | * valops.c (_initialize_valops): Add declaration. | |
12807 | * valprint.c (_initialize_valprint): Add declaration. | |
12808 | * value.c (_initialize_values): Add declaration. | |
12809 | * varobj.c (_initialize_varobj): Add declaration. | |
12810 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration. | |
12811 | * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration. | |
12812 | * vax-tdep.c (_initialize_vax_tdep): Add declaration. | |
12813 | * windows-nat.c (_initialize_windows_nat): Add declaration. | |
12814 | (_initialize_check_for_gdb_ini): Add declaration. | |
12815 | (_initialize_loadable): Add declaration. | |
12816 | * windows-tdep.c (_initialize_windows_tdep): Add declaration. | |
12817 | * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration. | |
12818 | * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration. | |
12819 | * xcoffread.c (_initialize_xcoffread): Add declaration. | |
12820 | * xml-support.c (_initialize_xml_support): Add declaration. | |
12821 | * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration. | |
12822 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration. | |
12823 | * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration. | |
12824 | * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration. | |
12825 | ||
e2de1eec SM |
12826 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
12827 | ||
12828 | * regformats/regdat.sh: Generate declaration for init function. | |
12829 | ||
e0037b4c SM |
12830 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
12831 | ||
12832 | * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move | |
12833 | up. | |
12834 | (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior, | |
12835 | close_one_inferior>: New methods. | |
12836 | (get_sim_inferior_data_by_ptid): Move to gdbsim_target, | |
12837 | pass down target to find_inferior_pid. | |
12838 | (gdbsim_target::fetch_registers, gdbsim_target::store_registers): | |
12839 | Pass down target to find_inferior_ptid. | |
12840 | (gdbsim_target::create_inferior): Pass down target to | |
12841 | add_thread_silent. | |
12842 | (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass | |
12843 | target down to find_inferior_ptid and switch_to_thread. | |
12844 | (gdbsim_target::close): Update to call close_one_inferior. | |
12845 | (struct resume_data): Remove. | |
12846 | (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments | |
12847 | directly, rather than through a void pointer. | |
12848 | (gdbsim_target::resume): Update to call resume_one_inferior. | |
12849 | ||
58920b5b SM |
12850 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
12851 | ||
12852 | * gdbsupport/gdb_wait.c: Include gdb_wait.h. | |
12853 | ||
4ec89149 PA |
12854 | 2020-01-12 Pedro Alves <palves@redhat.com> |
12855 | ||
12856 | * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent | |
12857 | directly for the current inferior instead of | |
12858 | discard_all_inferiors. | |
12859 | (discard_all_inferiors): Delete. | |
12860 | ||
7c392d1d TT |
12861 | 2020-01-11 Tom Tromey <tom@tromey.com> |
12862 | ||
12863 | * tui/tui-wingeneral.c (box_win): Check cli_styling. | |
12864 | * tui/tui-winsource.c (tui_source_window_base::refill): Use | |
12865 | deprecated_safe_get_selected_frame. | |
12866 | ||
d9ebdab7 TBA |
12867 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
12868 | ||
12869 | * inferior.c (print_inferior): Switch inferior before printing it. | |
12870 | ||
f3c469b9 PA |
12871 | 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com> |
12872 | Pedro Alves <palves@redhat.com> | |
12873 | ||
12874 | * progspace-and-thread.c (switch_to_program_space_and_thread): | |
12875 | Assert there's an inferior for PSPACE. Use | |
12876 | switch_to_inferior_no_thread to switch the inferior too. | |
12877 | * progspace.c (program_space::~program_space): Call | |
12878 | clear_symtab_users here, with SYMFILE_DEFER_BP_RESET. | |
12879 | (program_space::free_all_objfiles): Don't call clear_symtab_users | |
12880 | here. | |
12881 | * symfile.c (symbol_file_clear): Call clear_symtab_users here. | |
12882 | ||
65c574f6 PA |
12883 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12884 | ||
12885 | * NEWS: Mention multi-target debugging, "info connections", and | |
12886 | "add-inferior -no-connection". | |
12887 | ||
2f4fcf00 PA |
12888 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12889 | ||
12890 | * infrun.c: Include "target-connection.h". | |
12891 | (check_multi_target_resumption): New. | |
12892 | (proceed): Call it. | |
12893 | * target-connection.c (make_target_connection_string): Make | |
12894 | extern. | |
12895 | * target-connection.h (make_target_connection_string): Declare. | |
12896 | ||
121b3efd PA |
12897 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12898 | ||
12899 | * Makefile.in (COMMON_SFILES): Add target-connection.c. | |
12900 | * inferior.c (uiout_field_connection): New function. | |
12901 | (print_inferior): Add new "connection-id" column. | |
12902 | (add_inferior_command): Show connection number/string of added | |
12903 | inferior. | |
12904 | * process-stratum-target.h | |
12905 | (process_stratum_target::connection_string): New virtual method. | |
12906 | (process_stratum_target::connection_number): New field. | |
12907 | * remote.c (remote_target::connection_string): New override. | |
12908 | * target-connection.c: New file. | |
12909 | * target-connection.h: New file. | |
12910 | * target.c (decref_target): Remove process_stratum targets from | |
12911 | the connection list. | |
12912 | (target_stack::push): Add process_stratum targets to the | |
12913 | connection list. | |
12914 | ||
4f837581 PA |
12915 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12916 | ||
12917 | Revert: | |
12918 | 2016-04-12 Pedro Alves <palves@redhat.com> | |
12919 | * serial.c (serial_open, serial_fdopen_ops, do_serial_close): | |
12920 | Remove references to name. | |
12921 | * serial.h (struct serial) <name>: Delete. | |
12922 | ||
f4ec508e PA |
12923 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12924 | ||
12925 | * gdbarch-selftests.c (register_to_value_test): Remove "target | |
12926 | already pushed" check. | |
12927 | ||
5b6d1e4f PA |
12928 | 2020-01-10 Pedro Alves <palves@redhat.com> |
12929 | John Baldwin <jhb@FreeBSD.org> | |
12930 | ||
12931 | * aarch64-linux-nat.c | |
12932 | (aarch64_linux_nat_target::thread_architecture): Adjust. | |
12933 | * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call. | |
12934 | (task_command_1): Likewise. | |
12935 | * aix-thread.c (sync_threadlists, aix_thread_target::resume) | |
12936 | (aix_thread_target::wait, aix_thread_target::fetch_registers) | |
12937 | (aix_thread_target::store_registers) | |
12938 | (aix_thread_target::thread_alive): Adjust. | |
12939 | * amd64-fbsd-tdep.c: Include "inferior.h". | |
12940 | (amd64fbsd_get_thread_local_address): Pass down target. | |
12941 | * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle | |
12942 | thread's gdbarch instead of target_gdbarch. | |
12943 | * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to | |
12944 | get_last_target_status. | |
12945 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
12946 | * breakpoint.c (breakpoints_should_be_inserted_now): Consider all | |
12947 | inferiors. | |
12948 | (update_inserted_breakpoint_locations): Skip if inferiors with no | |
12949 | execution. | |
12950 | (update_global_location_list): When handling moribund locations, | |
12951 | find representative inferior for location's pspace, and use thread | |
12952 | count of its process_stratum target. | |
12953 | * bsd-kvm.c (bsd_kvm_target_open): Pass target down. | |
12954 | * bsd-uthread.c (bsd_uthread_target::wait): Use | |
12955 | as_process_stratum_target and adjust thread_change_ptid and | |
12956 | add_thread calls. | |
12957 | (bsd_uthread_target::update_thread_list): Use | |
12958 | as_process_stratum_target and adjust find_thread_ptid, | |
12959 | thread_change_ptid and add_thread calls. | |
12960 | * btrace.c (maint_btrace_packet_history_cmd): Adjust | |
12961 | find_thread_ptid call. | |
12962 | * corelow.c (add_to_thread_list): Adjust add_thread call. | |
12963 | (core_target_open): Adjust add_thread_silent and thread_count | |
12964 | calls. | |
12965 | (core_target::pid_to_str): Adjust find_inferior_ptid call. | |
12966 | * ctf.c (ctf_target_open): Adjust add_thread_silent call. | |
12967 | * event-top.c (async_disconnect): Pop targets from all inferiors. | |
12968 | * exec.c (add_target_sections): Push exec target on all inferiors | |
12969 | sharing the program space. | |
12970 | (remove_target_sections): Remove the exec target from all | |
12971 | inferiors sharing the program space. | |
12972 | (exec_on_vfork): New. | |
12973 | * exec.h (exec_on_vfork): Declare. | |
12974 | * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter. | |
12975 | Pass it down. | |
12976 | (fbsd_nat_target::update_thread_list): Adjust. | |
12977 | (fbsd_nat_target::resume): Adjust. | |
12978 | (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it | |
12979 | down. | |
12980 | (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust. | |
12981 | * fbsd-tdep.c (fbsd_corefile_thread): Adjust | |
12982 | get_thread_arch_regcache call. | |
12983 | * fork-child.c (gdb_startup_inferior): Pass target down to | |
12984 | startup_inferior and set_executing. | |
12985 | * gdbthread.h (struct process_stratum_target): Forward declare. | |
12986 | (add_thread, add_thread_silent, add_thread_with_info) | |
12987 | (in_thread_list): Add process_stratum_target parameter. | |
12988 | (find_thread_ptid(inferior*, ptid_t)): New overload. | |
12989 | (find_thread_ptid, thread_change_ptid): Add process_stratum_target | |
12990 | parameter. | |
12991 | (all_threads()): Delete overload. | |
12992 | (all_threads, all_non_exited_threads): Add process_stratum_target | |
12993 | parameter. | |
12994 | (all_threads_safe): Use brace initialization. | |
12995 | (thread_count): Add process_stratum_target parameter. | |
12996 | (set_resumed, set_running, set_stop_requested, set_executing) | |
12997 | (threads_are_executing, finish_thread_state): Add | |
12998 | process_stratum_target parameter. | |
12999 | (switch_to_thread): Use is_current_thread. | |
13000 | * i386-fbsd-tdep.c: Include "inferior.h". | |
13001 | (i386fbsd_get_thread_local_address): Pass down target. | |
13002 | * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust. | |
13003 | * inf-child.c (inf_child_target::maybe_unpush_target): Remove | |
13004 | have_inferiors check. | |
13005 | * inf-ptrace.c (inf_ptrace_target::create_inferior) | |
13006 | (inf_ptrace_target::attach): Adjust. | |
13007 | * infcall.c (run_inferior_call): Adjust. | |
13008 | * infcmd.c (run_command_1): Pass target to | |
13009 | scoped_finish_thread_state. | |
13010 | (proceed_thread_callback): Skip inferiors with no execution. | |
13011 | (continue_command): Rename 'all_threads' local to avoid hiding | |
13012 | 'all_threads' function. Adjust get_last_target_status call. | |
13013 | (prepare_one_step): Adjust set_running call. | |
13014 | (signal_command): Use user_visible_resume_target. Compare thread | |
13015 | pointers instead of inferior_ptid. | |
13016 | (info_program_command): Adjust to pass down target. | |
13017 | (attach_command): Mark target's 'thread_executing' flag. | |
13018 | (stop_current_target_threads_ns): New, factored out from ... | |
13019 | (interrupt_target_1): ... this. Switch inferior before making | |
13020 | target calls. | |
13021 | * inferior-iter.h | |
13022 | (struct all_inferiors_iterator, struct all_inferiors_range) | |
13023 | (struct all_inferiors_safe_range) | |
13024 | (struct all_non_exited_inferiors_range): Filter on | |
13025 | process_stratum_target too. Remove explicit. | |
13026 | * inferior.c (inferior::inferior): Push dummy target on target | |
13027 | stack. | |
13028 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors): | |
13029 | Add process_stratum_target parameter, and pass it down. | |
13030 | (have_live_inferiors): Adjust. | |
13031 | (switch_to_inferior_and_push_target): New. | |
13032 | (add_inferior_command, clone_inferior_command): Handle | |
13033 | "-no-connection" parameter. Use | |
13034 | switch_to_inferior_and_push_target. | |
13035 | (_initialize_inferior): Mention "-no-connection" option in | |
13036 | the help of "add-inferior" and "clone-inferior" commands. | |
13037 | * inferior.h: Include "process-stratum-target.h". | |
13038 | (interrupt_target_1): Use bool. | |
13039 | (struct inferior) <push_target, unpush_target, target_is_pushed, | |
13040 | find_target_beneath, top_target, process_target, target_at, | |
13041 | m_stack>: New. | |
13042 | (discard_all_inferiors): Delete. | |
13043 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors) | |
13044 | (all_inferiors, all_non_exited_inferiors): Add | |
13045 | process_stratum_target parameter. | |
13046 | * infrun.c: Include "gdb_select.h" and <unordered_map>. | |
13047 | (target_last_proc_target): New global. | |
13048 | (follow_fork_inferior): Push target on new inferior. Pass target | |
13049 | to add_thread_silent. Call exec_on_vfork. Handle target's | |
13050 | reference count. | |
13051 | (follow_fork): Adjust get_last_target_status call. Also consider | |
13052 | target. | |
13053 | (follow_exec): Push target on new inferior. | |
13054 | (struct execution_control_state) <target>: New field. | |
13055 | (user_visible_resume_target): New. | |
13056 | (do_target_resume): Call target_async. | |
13057 | (resume_1): Set target's threads_executing flag. Consider resume | |
13058 | target. | |
13059 | (commit_resume_all_targets): New. | |
13060 | (proceed): Also consider resume target. Skip threads of inferiors | |
13061 | with no execution. Commit resumtion in all targets. | |
13062 | (start_remote): Pass current inferior to wait_for_inferior. | |
13063 | (infrun_thread_stop_requested): Consider target as well. Pass | |
13064 | thread_info pointer to clear_inline_frame_state instead of ptid. | |
13065 | (infrun_thread_thread_exit): Consider target as well. | |
13066 | (random_pending_event_thread): New inferior parameter. Use it. | |
13067 | (do_target_wait): Rename to ... | |
13068 | (do_target_wait_1): ... this. Add inferior parameter, and pass it | |
13069 | down. | |
13070 | (threads_are_resumed_pending_p, do_target_wait): New. | |
13071 | (prepare_for_detach): Adjust calls. | |
13072 | (wait_for_inferior): New inferior parameter. Handle it. Use | |
13073 | do_target_wait_1 instead of do_target_wait. | |
13074 | (fetch_inferior_event): Adjust. Switch to representative | |
13075 | inferior. Pass target down. | |
13076 | (set_last_target_status): Add process_stratum_target parameter. | |
13077 | Save target in global. | |
13078 | (get_last_target_status): Add process_stratum_target parameter and | |
13079 | handle it. | |
13080 | (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'. | |
13081 | (context_switch): Check inferior_ptid == null_ptid before calling | |
13082 | inferior_thread(). | |
13083 | (get_inferior_stop_soon): Pass down target. | |
13084 | (wait_one): Rename to ... | |
13085 | (poll_one_curr_target): ... this. | |
13086 | (struct wait_one_event): New. | |
13087 | (wait_one): New. | |
13088 | (stop_all_threads): Adjust. | |
13089 | (handle_no_resumed, handle_inferior_event): Adjust to consider the | |
13090 | event's target. | |
13091 | (switch_back_to_stepped_thread): Also consider target. | |
13092 | (print_stop_event): Update. | |
13093 | (normal_stop): Update. Also consider the resume target. | |
13094 | * infrun.h (wait_for_inferior): Remove declaration. | |
13095 | (user_visible_resume_target): New declaration. | |
13096 | (get_last_target_status, set_last_target_status): New | |
13097 | process_stratum_target parameter. | |
13098 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
13099 | process_stratum_target parameter, and use it. | |
13100 | (clear_inline_frame_state (thread_info*)): New. | |
13101 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
13102 | process_stratum_target parameter. | |
13103 | (clear_inline_frame_state (thread_info*)): Declare. | |
13104 | * linux-fork.c (delete_checkpoint_command): Pass target down to | |
13105 | find_thread_ptid. | |
13106 | (checkpoint_command): Adjust. | |
13107 | * linux-nat.c (linux_nat_target::follow_fork): Switch to thread | |
13108 | instead of just tweaking inferior_ptid. | |
13109 | (linux_nat_switch_fork): Pass target down to thread_change_ptid. | |
13110 | (exit_lwp): Pass target down to find_thread_ptid. | |
13111 | (attach_proc_task_lwp_callback): Pass target down to | |
13112 | add_thread/set_running/set_executing. | |
13113 | (linux_nat_target::attach): Pass target down to | |
13114 | thread_change_ptid. | |
13115 | (get_detach_signal): Pass target down to find_thread_ptid. | |
13116 | Consider last target status's target. | |
13117 | (linux_resume_one_lwp_throw, resume_lwp) | |
13118 | (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp) | |
13119 | (stop_wait_callback, save_stop_reason, linux_nat_filter_event) | |
13120 | (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down. | |
13121 | (linux_nat_target::async_wait_fd): New. | |
13122 | (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass | |
13123 | target down. | |
13124 | * linux-nat.h (linux_nat_target::async_wait_fd): Declare. | |
13125 | * linux-tdep.c (get_thread_arch_regcache): Pass target down. | |
13126 | * linux-thread-db.c (struct thread_db_info::process_target): New | |
13127 | field. | |
13128 | (add_thread_db_info): Save target. | |
13129 | (get_thread_db_info): New process_stratum_target parameter. Also | |
13130 | match target. | |
13131 | (delete_thread_db_info): New process_stratum_target parameter. | |
13132 | Also match target. | |
13133 | (thread_from_lwp): Adjust to pass down target. | |
13134 | (thread_db_notice_clone): Pass down target. | |
13135 | (check_thread_db_callback): Pass down target. | |
13136 | (try_thread_db_load_1): Always push the thread_db target. | |
13137 | (try_thread_db_load, record_thread): Pass target down. | |
13138 | (thread_db_target::detach): Pass target down. Always unpush the | |
13139 | thread_db target. | |
13140 | (thread_db_target::wait, thread_db_target::mourn_inferior): Pass | |
13141 | target down. Always unpush the thread_db target. | |
13142 | (find_new_threads_callback, thread_db_find_new_threads_2) | |
13143 | (thread_db_target::update_thread_list): Pass target down. | |
13144 | (thread_db_target::pid_to_str): Pass current inferior down. | |
13145 | (thread_db_target::get_thread_local_address): Pass target down. | |
13146 | (thread_db_target::resume, maintenance_check_libthread_db): Pass | |
13147 | target down. | |
13148 | * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust. | |
13149 | * procfs.c (procfs_target::procfs_init_inferior): Declare. | |
13150 | (proc_set_current_signal, do_attach, procfs_target::wait): Adjust. | |
13151 | (procfs_init_inferior): Rename to ... | |
13152 | (procfs_target::procfs_init_inferior): ... this and adjust. | |
13153 | (procfs_target::create_inferior, procfs_notice_thread) | |
13154 | (procfs_do_thread_registers): Adjust. | |
13155 | * ppc-fbsd-tdep.c: Include "inferior.h". | |
13156 | (ppcfbsd_get_thread_local_address): Pass down target. | |
13157 | * proc-service.c (ps_xfer_memory): Switch current inferior and | |
13158 | program space as well. | |
13159 | (get_ps_regcache): Pass target down. | |
13160 | * process-stratum-target.c | |
13161 | (process_stratum_target::thread_address_space) | |
13162 | (process_stratum_target::thread_architecture): Pass target down. | |
13163 | * process-stratum-target.h | |
13164 | (process_stratum_target::threads_executing): New field. | |
13165 | (as_process_stratum_target): New. | |
13166 | * ravenscar-thread.c | |
13167 | (ravenscar_thread_target::update_inferior_ptid): Pass target down. | |
13168 | (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target | |
13169 | down. | |
13170 | * record-btrace.c (record_btrace_target::info_record): Adjust. | |
13171 | (record_btrace_target::record_method) | |
13172 | (record_btrace_target::record_is_replaying) | |
13173 | (record_btrace_target::fetch_registers) | |
13174 | (get_thread_current_frame_id, record_btrace_target::resume) | |
13175 | (record_btrace_target::wait, record_btrace_target::stop): Pass | |
13176 | target down. | |
13177 | * record-full.c (record_full_wait_1): Switch to event thread. | |
13178 | Pass target down. | |
13179 | * regcache.c (regcache::regcache) | |
13180 | (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add | |
13181 | process_stratum_target parameter and handle it. | |
13182 | (current_thread_target): New global. | |
13183 | (get_thread_regcache): Add process_stratum_target parameter and | |
13184 | handle it. Switch inferior before calling target method. | |
13185 | (get_thread_regcache): Pass target down. | |
13186 | (get_thread_regcache_for_ptid): Pass target down. | |
13187 | (registers_changed_ptid): Add process_stratum_target parameter and | |
13188 | handle it. | |
13189 | (registers_changed_thread, registers_changed): Pass target down. | |
13190 | (test_get_thread_arch_aspace_regcache): New. | |
13191 | (current_regcache_test): Define a couple local test_target_ops | |
13192 | instances and use them for testing. | |
13193 | (readwrite_regcache): Pass process_stratum_target parameter. | |
13194 | (cooked_read_test, cooked_write_test): Pass mock_target down. | |
13195 | * regcache.h (get_thread_regcache, get_thread_arch_regcache) | |
13196 | (get_thread_arch_aspace_regcache): Add process_stratum_target | |
13197 | parameter. | |
13198 | (regcache::target): New method. | |
13199 | (regcache::regcache, regcache::get_thread_arch_aspace_regcache) | |
13200 | (regcache::registers_changed_ptid): Add process_stratum_target | |
13201 | parameter. | |
13202 | (regcache::m_target): New field. | |
13203 | (registers_changed_ptid): Add process_stratum_target parameter. | |
13204 | * remote.c (remote_state::supports_vCont_probed): New field. | |
13205 | (remote_target::async_wait_fd): New method. | |
13206 | (remote_unpush_and_throw): Add remote_target parameter. | |
13207 | (get_current_remote_target): Adjust. | |
13208 | (remote_target::remote_add_inferior): Push target. | |
13209 | (remote_target::remote_add_thread) | |
13210 | (remote_target::remote_notice_new_inferior) | |
13211 | (get_remote_thread_info): Pass target down. | |
13212 | (remote_target::update_thread_list): Skip threads of inferiors | |
13213 | bound to other targets. (remote_target::close): Don't discard | |
13214 | inferiors. (remote_target::add_current_inferior_and_thread) | |
13215 | (remote_target::process_initial_stop_replies) | |
13216 | (remote_target::start_remote) | |
13217 | (remote_target::remote_serial_quit_handler): Pass down target. | |
13218 | (remote_target::remote_unpush_target): New remote_target | |
13219 | parameter. Unpush the target from all inferiors. | |
13220 | (remote_target::remote_unpush_and_throw): New remote_target | |
13221 | parameter. Pass it down. | |
13222 | (remote_target::open_1): Check whether the current inferior has | |
13223 | execution instead of checking whether any inferior is live. Pass | |
13224 | target down. | |
13225 | (remote_target::remote_detach_1): Pass down target. Use | |
13226 | remote_unpush_target. | |
13227 | (extended_remote_target::attach): Pass down target. | |
13228 | (remote_target::remote_vcont_probe): Set supports_vCont_probed. | |
13229 | (remote_target::append_resumption): Pass down target. | |
13230 | (remote_target::append_pending_thread_resumptions) | |
13231 | (remote_target::remote_resume_with_hc, remote_target::resume) | |
13232 | (remote_target::commit_resume): Pass down target. | |
13233 | (remote_target::remote_stop_ns): Check supports_vCont_probed. | |
13234 | (remote_target::interrupt_query) | |
13235 | (remote_target::remove_new_fork_children) | |
13236 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
13237 | (remote_target::remote_parse_stop_reply) | |
13238 | (remote_target::process_stop_reply): Pass down target. | |
13239 | (first_remote_resumed_thread): New remote_target parameter. Pass | |
13240 | it down. | |
13241 | (remote_target::wait_as): Pass down target. | |
13242 | (unpush_and_perror): New remote_target parameter. Pass it down. | |
13243 | (remote_target::readchar, remote_target::remote_serial_write) | |
13244 | (remote_target::getpkt_or_notif_sane_1) | |
13245 | (remote_target::kill_new_fork_children, remote_target::kill): Pass | |
13246 | down target. | |
13247 | (remote_target::mourn_inferior): Pass down target. Use | |
13248 | remote_unpush_target. | |
13249 | (remote_target::core_of_thread) | |
13250 | (remote_target::remote_btrace_maybe_reopen): Pass down target. | |
13251 | (remote_target::pid_to_exec_file) | |
13252 | (remote_target::thread_handle_to_thread_info): Pass down target. | |
13253 | (remote_target::async_wait_fd): New. | |
13254 | * riscv-fbsd-tdep.c: Include "inferior.h". | |
13255 | (riscv_fbsd_get_thread_local_address): Pass down target. | |
13256 | * sol2-tdep.c (sol2_core_pid_to_str): Pass down target. | |
13257 | * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs) | |
13258 | (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback): | |
13259 | Adjust. | |
13260 | * solib-spu.c (spu_skip_standalone_loader): Pass down target. | |
13261 | * solib-svr4.c (enable_break): Pass down target. | |
13262 | * spu-multiarch.c (parse_spufs_run): Pass down target. | |
13263 | * spu-tdep.c (spu2ppu_sniffer): Pass down target. | |
13264 | * target-delegates.c: Regenerate. | |
13265 | * target.c (g_target_stack): Delete. | |
13266 | (current_top_target): Return the current inferior's top target. | |
13267 | (target_has_execution_1): Refer to the passed-in inferior's top | |
13268 | target. | |
13269 | (target_supports_terminal_ours): Check whether the initial | |
13270 | inferior was already created. | |
13271 | (decref_target): New. | |
13272 | (target_stack::push): Incref/decref the target. | |
13273 | (push_target, push_target, unpush_target): Adjust. | |
13274 | (target_stack::unpush): Defref target. | |
13275 | (target_is_pushed): Return bool. Adjust to refer to the current | |
13276 | inferior's target stack. | |
13277 | (dispose_inferior): Delete, and inline parts ... | |
13278 | (target_preopen): ... here. Only dispose of the current inferior. | |
13279 | (target_detach): Hold strong target reference while detaching. | |
13280 | Pass target down. | |
13281 | (target_thread_name): Add assertion. | |
13282 | (target_resume): Pass down target. | |
13283 | (target_ops::beneath, find_target_at): Adjust to refer to the | |
13284 | current inferior's target stack. | |
13285 | (get_dummy_target): New. | |
13286 | (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that | |
13287 | has a thread running. | |
13288 | (initialize_targets): Rename to ... | |
13289 | (_initialize_target): ... this. | |
13290 | * target.h: Include "gdbsupport/refcounted-object.h". | |
13291 | (struct target_ops): Inherit refcounted_object. | |
13292 | (target_ops::shortname, target_ops::longname): Make const. | |
13293 | (target_ops::async_wait_fd): New method. | |
13294 | (decref_target): Declare. | |
13295 | (struct target_ops_ref_policy): New. | |
13296 | (target_ops_ref): New typedef. | |
13297 | (get_dummy_target): Declare function. | |
13298 | (target_is_pushed): Return bool. | |
13299 | * thread-iter.c (all_matching_threads_iterator::m_inf_matches) | |
13300 | (all_matching_threads_iterator::all_matching_threads_iterator): | |
13301 | Handle filter target. | |
13302 | * thread-iter.h (struct all_matching_threads_iterator, struct | |
13303 | all_matching_threads_range, class all_non_exited_threads_range): | |
13304 | Filter by target too. Remove explicit. | |
13305 | * thread.c (threads_executing): Delete. | |
13306 | (inferior_thread): Pass down current inferior. | |
13307 | (clear_thread_inferior_resources): Pass down thread pointer | |
13308 | instead of ptid_t. | |
13309 | (add_thread_silent, add_thread_with_info, add_thread): Add | |
13310 | process_stratum_target parameter. Use it for thread and inferior | |
13311 | searches. | |
13312 | (is_current_thread): New. | |
13313 | (thread_info::deletable): Use it. | |
13314 | (find_thread_ptid, thread_count, in_thread_list) | |
13315 | (thread_change_ptid, set_resumed, set_running): New | |
13316 | process_stratum_target parameter. Pass it down. | |
13317 | (set_executing): New process_stratum_target parameter. Pass it | |
13318 | down. Adjust reference to 'threads_executing'. | |
13319 | (threads_are_executing): New process_stratum_target parameter. | |
13320 | Adjust reference to 'threads_executing'. | |
13321 | (set_stop_requested, finish_thread_state): New | |
13322 | process_stratum_target parameter. Pass it down. | |
13323 | (switch_to_thread): Also match inferior. | |
13324 | (switch_to_thread): New process_stratum_target parameter. Pass it | |
13325 | down. | |
13326 | (update_threads_executing): Reimplement. | |
13327 | * top.c (quit_force): Pop targets from all inferior. | |
13328 | (gdb_init): Don't call initialize_targets. | |
13329 | * windows-nat.c (windows_nat_target) <get_windows_debug_event>: | |
13330 | Declare. | |
13331 | (windows_add_thread, windows_delete_thread): Adjust. | |
13332 | (get_windows_debug_event): Rename to ... | |
13333 | (windows_nat_target::get_windows_debug_event): ... this. Adjust. | |
13334 | * tracefile-tfile.c (tfile_target_open): Pass down target. | |
13335 | * gdbsupport/common-gdbthread.h (struct process_stratum_target): | |
13336 | Forward declare. | |
13337 | (switch_to_thread): Add process_stratum_target parameter. | |
13338 | * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target | |
13339 | parameter. Use it. | |
13340 | (mi_on_resume): Pass target down. | |
13341 | * nat/fork-inferior.c (startup_inferior): Add | |
13342 | process_stratum_target parameter. Pass it down. | |
13343 | * nat/fork-inferior.h (startup_inferior): Add | |
13344 | process_stratum_target parameter. | |
13345 | * python/py-threadevent.c (py_get_event_thread): Pass target down. | |
13346 | ||
75c6c844 PA |
13347 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13348 | ||
13349 | * remote.c (remote_target::start_remote): Don't set inferior_ptid | |
13350 | directly. Instead find the first thread in the thread list and | |
13351 | use switch_to_thread. | |
13352 | ||
78f2c40a PA |
13353 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13354 | ||
13355 | * remote.c (remote_target::remote_add_inferior): Don't bind a | |
13356 | process to the current inferior if the current inferior is already | |
13357 | bound to a process. | |
13358 | ||
e7af6c70 TBA |
13359 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
13360 | Pedro Alves <palves@redhat.com> | |
13361 | ||
13362 | * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>: | |
13363 | If no process is specified, return null_ptid instead of | |
13364 | inferior_ptid. | |
13365 | (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED / | |
13366 | TARGET_WAITKIND_SIGNALLED with no pid. | |
13367 | ||
31ba933e PA |
13368 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13369 | ||
13370 | * remote.c (first_remote_resumed_thread): New. | |
13371 | (remote_target::wait_as): Use it as default event_ptid instead of | |
13372 | inferior_ptid. | |
13373 | ||
735fc2ca PA |
13374 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13375 | ||
13376 | * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. | |
13377 | ||
c17e02e1 PA |
13378 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13379 | ||
13380 | * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is | |
13381 | not -1. | |
13382 | ||
ab1ddbcf PA |
13383 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13384 | ||
13385 | * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a | |
13386 | ptid to get_last_target_status. | |
13387 | * break-catch-syscall.c (print_it_catch_syscall): Don't pass a | |
13388 | ptid to get_last_target_status. | |
13389 | * infcmd.c (continue_command): Don't pass a target_waitstatus to | |
13390 | get_last_target_status. | |
13391 | (info_program_command): Don't pass a target_waitstatus to | |
13392 | get_last_target_status. | |
13393 | * infrun.c (init_wait_for_inferior): Use | |
13394 | nullify_last_target_wait_ptid. | |
13395 | (get_last_target_status): Handle nullptr arguments. | |
13396 | (nullify_last_target_wait_ptid): Clear target_last_waitstatus. | |
13397 | (print_stop_event): Don't pass a ptid to get_last_target_status. | |
13398 | (normal_stop): Don't pass a ptid to get_last_target_status. | |
13399 | * infrun.h (get_last_target_status, set_last_target_status): Move | |
13400 | comments here and update. | |
13401 | (nullify_last_target_wait_ptid): Declare. | |
13402 | * linux-fork.c (fork_load_infrun_state): Remove local extern | |
13403 | declaration of nullify_last_target_wait_ptid. | |
13404 | * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus | |
13405 | to get_last_target_status. | |
13406 | ||
f3f8ece4 PA |
13407 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13408 | ||
13409 | * gdbthread.h (scoped_restore_current_thread) | |
13410 | <dont_restore, restore, m_dont_restore>: Declare. | |
13411 | * thread.c (thread_alive): Add assertion. Return bool. | |
13412 | (switch_to_thread_if_alive): New. | |
13413 | (prune_threads): Switch inferior/thread. | |
13414 | (print_thread_info_1): Switch thread before calling target methods. | |
13415 | (scoped_restore_current_thread::restore): New, factored out from | |
13416 | ... | |
13417 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
13418 | ... this. | |
13419 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
13420 | Add assertion. | |
13421 | (thread_apply_all_command, thread_select): Use | |
13422 | switch_to_thread_if_alive. | |
13423 | * infrun.c (proceed, restart_threads, handle_signal_stop) | |
13424 | (switch_back_to_stepped_thread): Switch current thread before | |
13425 | calling target methods. | |
13426 | ||
db2d40f7 PA |
13427 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13428 | ||
13429 | * inferior.c (switch_to_inferior_no_thread): New function, | |
13430 | factored out from ... | |
13431 | (inferior_command): ... here. | |
13432 | * inferior.h (switch_to_inferior_no_thread): Declare. | |
13433 | * mi/mi-main.c (run_one_inferior): Use | |
13434 | switch_to_inferior_no_thread. | |
13435 | ||
bd420a2d PA |
13436 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13437 | ||
13438 | * infcmd.c (kill_command): Remove dead code. | |
13439 | ||
ddf5db90 PA |
13440 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13441 | ||
13442 | * remote.c (remote_target::mourn_inferior): No longer check | |
13443 | whether the target is running. | |
13444 | ||
5018ce90 PA |
13445 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13446 | ||
13447 | * corelow.c (core_target::has_execution): Change parameter type to | |
13448 | inferior pointer. | |
13449 | * inferior.c (number_of_live_inferiors): Use | |
13450 | inferior::has_execution instead of target_has_execution_1. | |
13451 | * inferior.h (inferior::has_execution): New. | |
13452 | * linux-thread-db.c (thread_db_target::update_thread_list): Use | |
13453 | inferior::has_execution instead of target_has_execution_1. | |
13454 | * process-stratum-target.c | |
13455 | (process_stratum_target::has_execution): Change parameter type to | |
13456 | inferior pointer. Check the inferior's PID instead of | |
13457 | inferior_ptid. | |
13458 | * process-stratum-target.h | |
13459 | (process_stratum_target::has_execution): Change parameter type to | |
13460 | inferior pointer. | |
13461 | * record-full.c (record_full_core_target::has_execution): Change | |
13462 | parameter type to inferior pointer. | |
13463 | * target.c (target_has_execution_1): Change parameter type to | |
13464 | inferior pointer. | |
13465 | (target_has_execution_current): Adjust. | |
13466 | * target.h (target_ops::has_execution): Change parameter type to | |
13467 | inferior pointer. | |
13468 | (target_has_execution_1): Change parameter type to inferior | |
13469 | pointer. Change return type to bool. | |
13470 | * tracefile.h (tracefile_target::has_execution): Change parameter | |
13471 | type to inferior pointer. | |
13472 | ||
74375d18 PA |
13473 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13474 | ||
13475 | * exceptions.c (print_flush): Remove current_top_target() check. | |
13476 | ||
acdf84a6 PA |
13477 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13478 | ||
13479 | * remote.c (show_remote_exec_file): Show the current inferior's | |
13480 | exec-file instead of the command variable's value. | |
13481 | ||
ec506636 PA |
13482 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13483 | ||
13484 | * record-full.c (record_full_resume_ptid): New global. | |
13485 | (record_full_target::resume): Set it. | |
13486 | (record_full_wait_1): Use record_full_resume_ptid instead of | |
13487 | inferior_ptid. | |
13488 | ||
873657b9 PA |
13489 | 2020-01-10 Pedro Alves <palves@redhat.com> |
13490 | ||
13491 | * gdbthread.h (scoped_restore_current_thread) | |
13492 | <dont_restore, restore, m_dont_restore>: Declare. | |
13493 | * thread.c (thread_alive): Add assertion. Return bool. | |
13494 | (switch_to_thread_if_alive): New. | |
13495 | (prune_threads): Switch inferior/thread. | |
13496 | (print_thread_info_1): Switch thread before calling target methods. | |
13497 | (scoped_restore_current_thread::restore): New, factored out from | |
13498 | ... | |
13499 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
13500 | ... this. | |
13501 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
13502 | Add assertion. | |
13503 | (thread_apply_all_command, thread_select): Use | |
13504 | switch_to_thread_if_alive. | |
13505 | ||
7f0ae84c GB |
13506 | 2020-01-10 George Barrett <bob@bob131.so> |
13507 | ||
13508 | * stap-probe.c (stap_modify_semaphore): Don't check for null | |
13509 | semaphores. | |
13510 | (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check | |
13511 | for null semaphores. | |
13512 | ||
f5a7c406 AB |
13513 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
13514 | ||
13515 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update | |
13516 | all source windows, and maintain horizontal scroll status while | |
13517 | doing so. | |
13518 | ||
9ae6bf64 TT |
13519 | 2020-01-09 Tom Tromey <tom@tromey.com> |
13520 | ||
13521 | PR tui/18932: | |
13522 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call | |
13523 | update_source_window, not print_source_lines. | |
13524 | ||
b2efe70c AB |
13525 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
13526 | ||
13527 | * tui/tui.c (tui_enable): Register tui hooks after calling | |
13528 | tui_display_main. | |
13529 | ||
5f23a082 CB |
13530 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
13531 | ||
13532 | * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW. | |
13533 | ||
3061113b SM |
13534 | 2020-01-08 Simon Marchi <simon.marchi@efficios.com> |
13535 | ||
13536 | * thread.c (print_thread_info_1): Fix indentation. | |
13537 | ||
57d75002 CB |
13538 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
13539 | ||
13540 | * symtab.c (general_symbol_info::compute_and_set_names): Move the | |
13541 | unique_xmalloc_ptr outside the if to always free the demangled name. | |
13542 | ||
6a053cb1 TT |
13543 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
13544 | ||
13545 | * xcoffread.c (enter_line_range, read_xcoff_symtab) | |
13546 | (process_xcoff_symbol, xcoff_symfile_offsets): Update. | |
13547 | * symtab.h (MSYMBOL_VALUE_ADDRESS): Update. | |
13548 | (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS): | |
13549 | Remove. | |
13550 | (section_offsets): New typedef. | |
13551 | * symtab.c (fixup_section, get_msymbol_address): Update. | |
13552 | * symmisc.c (dump_msymbols): Update. | |
13553 | * symfile.h (relative_addr_info_to_section_offsets) | |
13554 | (symfile_map_offsets_to_segments): Update. | |
13555 | * symfile.c (build_section_addr_info_from_objfile) | |
13556 | (init_objfile_sect_indices): Update. | |
13557 | (struct place_section_arg): Change type of "offsets". | |
13558 | (place_section): Update. | |
13559 | (relative_addr_info_to_section_offsets): Change type of | |
13560 | "section_offsets". Remove "num_sections" parameter. | |
13561 | (default_symfile_offsets, syms_from_objfile_1) | |
13562 | (set_objfile_default_section_offset): Update. | |
13563 | (reread_symbols): No need to preserve section offsets by hand. | |
13564 | (symfile_map_offsets_to_segments): Change type of "offsets". | |
13565 | * stap-probe.c (relocate_address): Update. | |
13566 | * stabsread.h (process_one_symbol): Update. | |
13567 | * solib-target.c (struct lm_info_target) <offsets>: Change type. | |
13568 | (solib_target_relocate_section_addresses): Update. | |
13569 | * solib-svr4.c (enable_break, svr4_relocate_main_executable): | |
13570 | Update. | |
13571 | * solib-frv.c (frv_relocate_main_executable): Update. | |
13572 | * solib-dsbt.c (dsbt_relocate_main_executable): Update. | |
13573 | * solib-aix.c (solib_aix_get_section_offsets): Change return | |
13574 | type. | |
13575 | (solib_aix_solib_create_inferior_hook): Update. | |
13576 | * remote.c (remote_target::get_offsets): Update. | |
13577 | * psymtab.c (find_pc_sect_psymtab): Update. | |
13578 | * psympriv.h (struct partial_symbol) <address, text_low, | |
13579 | text_high>: Update. | |
13580 | * objfiles.h (obj_section_offset): Update. | |
13581 | (struct objfile) <section_offsets>: Change type. | |
13582 | <num_sections>: Remove. | |
13583 | (objfile_relocate): Update. | |
13584 | * objfiles.c (entry_point_address_query): Update | |
13585 | (relocate_one_symbol): Change type of "section_offsets". | |
13586 | (objfile_relocate1, objfile_relocate1): Change type of | |
13587 | "new_offsets". | |
13588 | (objfile_rebase1): Update. | |
13589 | * mipsread.c (mipscoff_symfile_read): Update. | |
13590 | (read_alphacoff_dynamic_symtab): Remove "section_offsets" | |
13591 | parameter. | |
13592 | * mdebugread.c (parse_symbol): Change type of "section_offsets". | |
13593 | (parse_external, psymtab_to_symtab_1): Update. | |
13594 | * machoread.c (macho_symfile_offsets): Update. | |
13595 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
13596 | * hppa-tdep.c (read_unwind_info): Update. | |
13597 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update. | |
13598 | * dwarf2read.c (create_addrmap_from_index) | |
13599 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
13600 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
13601 | (add_partial_subprogram, process_full_comp_unit) | |
13602 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
13603 | (read_call_site_scope, dwarf2_rnglists_process) | |
13604 | (dwarf2_ranges_process, dwarf2_ranges_read) | |
13605 | (dwarf_decode_lines_1, var_decode_location, new_symbol) | |
13606 | (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset): | |
13607 | Update. | |
13608 | * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde): | |
13609 | Update. | |
13610 | * dtrace-probe.c (dtrace_probe::get_relocated_address): Update. | |
13611 | * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update. | |
13612 | (process_one_symbol): Change type of "section_offsets". | |
13613 | * ctfread.c (get_objfile_text_range): Update. | |
13614 | * coffread.c (coff_symtab_read, enter_linenos) | |
13615 | (process_coff_symbol): Update. | |
13616 | * coff-pe-read.c (add_pe_forwarded_sym): Update. | |
13617 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update. | |
13618 | ||
456e800a TT |
13619 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
13620 | ||
13621 | * dwarf2read.c (parse_macro_definition): Use std::string. | |
13622 | (parse_macro_definition): Likewise. | |
13623 | ||
6dfa2fc2 TT |
13624 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
13625 | ||
13626 | * dwarf2read.c (abbrev_table_read_table): Use std::vector. | |
13627 | (ATTR_ALLOC_CHUNK): Remove. | |
13628 | ||
421d1616 TT |
13629 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
13630 | ||
13631 | * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr. | |
13632 | ||
43816ebc TT |
13633 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
13634 | ||
13635 | * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr. | |
13636 | (dwarf2_compute_name, open_dwo_file): Likewise. | |
13637 | (process_enumeration_scope): Use std::vector. | |
13638 | (guess_partial_die_structure_name): Use unique_xmalloc_ptr. | |
13639 | (partial_die_info::fixup, dwarf2_start_subfile) | |
13640 | (guess_full_die_structure_name, dwarf2_name): Likewise. | |
13641 | (determine_prefix): Update. | |
13642 | (guess_full_die_structure_name): Make return type const. | |
13643 | (partial_die_full_name): Return unique_xmalloc_ptr. | |
13644 | (DW_FIELD_ALLOC_CHUNK): Remove. | |
13645 | ||
4212d509 TT |
13646 | 2020-01-07 Tom Tromey <tromey@adacore.com> |
13647 | ||
13648 | PR build/24937: | |
13649 | * stap-probe.c (class stap_static_probe_ops): Add constructor. | |
13650 | ||
06a6207a JT |
13651 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
13652 | ||
13653 | * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build. | |
13654 | ||
153d79c4 AB |
13655 | 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com> |
13656 | ||
13657 | * stack.c (print_frame_info): Move disassemble_next_line code | |
13658 | inside source_print block. | |
13659 | ||
66182876 EZ |
13660 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
13661 | ||
13662 | * gdbsupport/gdb_wait.c: Include <signal.h> instead of | |
13663 | gdb/signals.h, as we are now using native signal symbols. | |
13664 | ||
cbfa8581 SV |
13665 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
13666 | ||
13667 | * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid | |
13668 | overflow by an early check of content vs threshold. | |
aac66a4c | 13669 | * tui/tui-source.c (tui_source_window::line_is_displayed): |
cbfa8581 SV |
13670 | Likewise. |
13671 | ||
3f602821 EZ |
13672 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
13673 | ||
13674 | * NEWS: Mention the recent fix of $_exitsignal on MS-Windows. | |
13675 | ||
a08c904d JT |
13676 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
13677 | ||
13678 | * coff-pe-read.c (read_pe_exported_syms): Don't try to read the | |
13679 | export table if no section contains it's RVA. | |
13680 | ||
89a65580 EZ |
13681 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
13682 | ||
13683 | * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT. | |
13684 | ||
8b7fcda2 HD |
13685 | 2020-01-06 Hannes Domani <ssbssa@yahoo.de> |
13686 | ||
13687 | * source.c (print_source_lines_base): Set last_line_listed. | |
13688 | ||
a61b4f69 SV |
13689 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
13690 | ||
13691 | * tui/tui-disasm.c: Remove trailing spaces. | |
13692 | ||
559e7e50 EZ |
13693 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
13694 | Pedro Alves <palves@redhat.com> | |
13695 | ||
13696 | * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c. | |
13697 | * windows-tdep.c: New enumeration of WINDOWS_SIG* signals. | |
13698 | (windows_gdb_signal_to_target): New function, uses the above | |
13699 | enumeration to convert GDB internal signal codes to equivalent | |
13700 | Windows codes. | |
13701 | (windows_init_abi): Call set_gdbarch_gdb_signal_to_target. | |
13702 | * windows-nat.c: Include "gdb_wait.h". | |
13703 | (get_windows_debug_event): Extract the fatal exception from the | |
13704 | exit status and convert to the equivalent Posix signal number. | |
13705 | * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the | |
13706 | possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN. | |
13707 | * gdbsupport/gdb_wait.c: New file, implements | |
13708 | windows_status_to_termsig. | |
13709 | * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS) | |
13710 | (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW. | |
13711 | ||
f2302a34 AB |
13712 | 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com> |
13713 | ||
13714 | * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not | |
13715 | show_layout. | |
13716 | ||
6a5206eb LM |
13717 | 2020-01-05 Luis Machado <luis.machado@linaro.org> |
13718 | ||
13719 | * aarch64-linux-nat.c | |
13720 | (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64 | |
13721 | and bfd_mach_aarch64. | |
13722 | ||
6ec1d75e PW |
13723 | 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
13724 | ||
13725 | * ui-file.c (stdio_file::can_emit_style_escape) | |
13726 | (tee_file::can_emit_style_escape): Ensure style is used also on | |
13727 | gdb_stderr when gdb_stderr is a tty supporting styling, similarly | |
13728 | to gdb_stdout. | |
13729 | * main.c (set_gdb_data_directory): Use file style to output the | |
13730 | warning that the given pathname is not a directory. | |
13731 | * top.c (show_history_filename, gdb_safe_append_history) | |
13732 | (show_gdb_datadir): Use file style. | |
13733 | ||
44f81a76 HD |
13734 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
13735 | ||
13736 | * solib-target.c (struct lm_info_target): | |
13737 | Change offsets to be a unique_xmalloc_ptr. | |
13738 | (solib_target_relocate_section_addresses): Update. | |
13739 | ||
25057eb0 HD |
13740 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
13741 | ||
13742 | * windows-nat.c (windows_clear_solib): Free so_list linked list. | |
13743 | ||
6e2118f5 BE |
13744 | 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
13745 | ||
13746 | * MAINTAINERS (Write After Approval): Add myself. | |
13747 | ||
8133c7dc LM |
13748 | 2020-01-02 Luis Machado <luis.machado@linaro.org> |
13749 | ||
13750 | * proc-service.c (get_ps_regcache): Remove reference to obsolete | |
13751 | Cell BE architecture. | |
13752 | * target.h (struct target_ops) <thread_architecture>: Likewise. | |
13753 | ||
48189bec HD |
13754 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
13755 | ||
13756 | * Makefile.in: Use INSTALL_PROGRAM_ENV. | |
13757 | ||
ead1063b HD |
13758 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
13759 | ||
13760 | * MAINTAINERS (Write After Approval): Add myself. | |
13761 | ||
e5d78223 JB |
13762 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
13763 | ||
13764 | * gdbarch.sh: Update copyright year range of generated files. | |
13765 | ||
b811d2c2 JB |
13766 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
13767 | ||
13768 | Update copyright year range in all GDB files. | |
13769 | ||
5f4def5c JB |
13770 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
13771 | ||
13772 | * copyright.py: Convert to Python 3. | |
13773 | ||
51fd4002 JB |
13774 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
13775 | ||
13776 | * copyright.py: Adapt after move of gnulib directory from gdb | |
13777 | directory to toplevel directory. | |
13778 | ||
5fb651f2 JB |
13779 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
13780 | ||
13781 | * copyright.py (main): Exit if run from the wrong directory. | |
13782 | ||
5dd8bf88 JB |
13783 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
13784 | ||
13785 | * top.c (print_gdb_version): Change copyright year to 2020. | |
13786 | ||
9f71dacb | 13787 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
3d34df0a | 13788 | |
9f71dacb | 13789 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019. |
3d34df0a | 13790 | |
9f71dacb | 13791 | For older changes see ChangeLog-2019. |
c906108c SS |
13792 | \f |
13793 | Local Variables: | |
13794 | mode: change-log | |
13795 | left-margin: 8 | |
13796 | fill-column: 74 | |
13797 | version-control: never | |
57da7796 | 13798 | coding: utf-8 |
c906108c | 13799 | End: |