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