1 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3 * target.h (push_target): Remove, update callers to use
5 * target.c (push_target): Remove.
6 * inferior.h (class inferior) <push_target>: New overload.
8 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
10 * target.h (unpush_target): Remove, update all callers
11 to use `inferior::unpush_target` instead.
12 (struct target_unpusher) <operator()>: Just declare.
13 * target.c (unpush_target): Remove.
14 (target_unpusher::operator()): New.
16 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
18 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
20 (process_full_comp_unit): Validate the top-level tag before
21 processing the first DIE.
22 (read_func_scope): Ensure we have a valid builder.
24 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
26 * objc-lang.c (objc_demangle): Renamed to
27 objc_language::demangle_symbol, and moved later in the file.
28 (objc_language::sniff_from_mangled_name): Call demangle_symbol
30 (objc_language::demangle_symbol): Defined outside of class
31 declaration. The definition is the old objc_demangle with NULL
32 changed to nullptr, and if conditions relating to nullptr pointers
33 or null character checks made explicit.
34 * objc-lang.h (objc_demangle): Delete declaration.
36 2021-03-22 Martin Liska <mliska@suse.cz>
38 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
39 (_initialize_arm_tdep): Likewise.
41 2021-03-20 Tom Tromey <tom@tromey.com>
43 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
44 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
45 * psymtab.h (make_psymbol_functions): Don't declare.
46 * psymtab.c (make_psymbol_functions): Remove.
47 (maintenance_print_psymbols): Update.
48 * psympriv.h (struct psymbol_functions): Add no-argument
50 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
51 <partial_symtabs>: Remove.
52 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
53 * elfread.c (read_partial_symbols): Update.
54 (elf_symfile_read): Remove check for existing partial symbols.
56 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
58 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
60 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
62 * dbxread.c (dbx_symfile_read): Create partial symtabs.
63 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
65 2021-03-20 Tom Tromey <tom@tromey.com>
67 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
68 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
69 * symfile-debug.c (objfile::has_partial_symbols)
70 (objfile::find_last_source_symtab)
71 (objfile::forget_cached_source_info)
72 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
73 (objfile::print_stats, objfile::dump)
74 (objfile::expand_symtabs_for_function)
75 (objfile::expand_all_symtabs)
76 (objfile::expand_symtabs_with_fullname)
77 (objfile::map_matching_symbols)
78 (objfile::expand_symtabs_matching)
79 (objfile::find_pc_sect_compunit_symtab)
80 (objfile::map_symbol_filenames)
81 (objfile::find_compunit_symtab_by_address)
82 (objfile::lookup_global_symbol_language)
83 (objfile::require_partial_symbols): Update.
84 * psymtab.c (maintenance_print_psymbols)
85 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
86 * objfiles.h (struct objfile) <qf>: Now a forward_list.
87 * objfiles.c (objfile_relocate1): Update.
88 * elfread.c (elf_symfile_read): Update.
90 2021-03-20 Tom Tromey <tom@tromey.com>
92 * objfiles.h (struct objfile) <psymtabs>: Remove method.
94 2021-03-20 Tom Tromey <tom@tromey.com>
96 * psymtab.c (psymbol_functions::count_psyms): Rename.
97 (psymbol_functions::print_stats): Update.
98 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
101 2021-03-20 Tom Tromey <tom@tromey.com>
103 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
104 (psymbol_functions::find_pc_sect_psymtab): Rename.
105 (psymbol_functions::find_pc_sect_compunit_symtab)
106 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
107 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
109 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
111 2021-03-20 Tom Tromey <tom@tromey.com>
113 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
114 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
115 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
117 (add_psymbol_to_bcache): Remove.
118 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
119 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
121 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
122 <add_psymbol>: Likewise.
123 (standard_psymtab, legacy_psymtab): Likewise.
124 * mdebugread.c (parse_partial_symbols): Update.
125 (handle_psymbol_enumerators): Add partial_symtabs parameter.
126 (handle_psymbol_enumerators): Update.
127 (new_psymtab): Add partial_symtabs parameter.
128 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
129 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
131 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
132 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
134 * dbxread.c (read_dbx_symtab): Update.
135 (start_psymtab): Add partial_symtabs parameter.
136 (dbx_end_psymtab): Update.
137 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
138 (ctf_psymtab): Add partial_symtabs parameter.
139 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
141 (scan_partial_symbols): Add partial_symtabs parameter.
142 (scan_partial_symbols, elfctf_build_psymtabs)
143 (ctf_psymtab_add_enums): Update.
145 2021-03-20 Tom Tromey <tom@tromey.com>
147 * symfile.c (read_symbols): Use objfile method.
148 * symfile-debug.c (objfile::require_partial_symbols): New method.
149 * psymtab.h (require_partial_symbols): Don't declare.
150 * psymtab.c (require_partial_symbols): Use objfile method. Now
152 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
153 (psymbol_functions::lookup_symbol)
154 (psymbol_functions::lookup_global_symbol_language)
155 (psymbol_functions::find_last_source_symtab)
156 (psymbol_functions::forget_cached_source_info)
157 (psymbol_functions::print_stats)
158 (psymbol_functions::expand_symtabs_for_function)
159 (psymbol_functions::expand_all_symtabs)
160 (psymbol_functions::expand_symtabs_with_fullname)
161 (psymbol_functions::map_symbol_filenames)
162 (psymbol_functions::map_matching_symbols)
163 (psymbol_functions::expand_symtabs_matching)
164 (psymbol_functions::find_compunit_symtab_by_address)
165 (maintenance_print_psymbols, maintenance_info_psymtabs)
166 (maintenance_check_psymtabs): Update.
167 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
170 2021-03-20 Tom Tromey <tom@tromey.com>
172 * xcoffread.c (xcoff_sym_fns): Update.
173 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
174 * symfile-debug.c (objfile::has_partial_symbols): Use
175 can_lazily_read_symbols.
176 (debug_sym_read_psymbols): Remove.
177 (debug_sym_fns, install_symfile_debug_logging): Update.
178 * quick-symbol.h (struct quick_symbol_functions)
179 <can_lazily_read_symbols, read_partial_symbols>: New methods.
180 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
181 * mipsread.c (ecoff_sym_fns): Update.
182 * machoread.c (macho_sym_fns): Update.
183 * elfread.c (struct lazy_dwarf_reader): New.
184 (elf_symfile_read): Update.
185 (read_psyms): Now a method of lazy_dwarf_reader.
186 (elf_sym_fns): Update.
187 (elf_sym_fns_lazy_psyms): Remove.
188 * dbxread.c (aout_sym_fns): Update.
189 * coffread.c (coff_sym_fns): Update.
191 2021-03-20 Tom Tromey <tom@tromey.com>
193 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
194 (reread_symbols): Move reset_psymtabs call later.
195 * objfiles.c (objfile::objfile): Don't initialize
198 2021-03-20 Tom Tromey <tom@tromey.com>
200 * dwarf2/read.c (dwarf2_build_psymtabs): Call
202 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
203 * psymtab.h (make_psymbol_functions): Add partial_symtabs
205 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
207 (psymbol_functions::find_pc_sect_compunit_symtab)
208 (psymbol_functions::print_stats, psymbol_functions::dump)
209 (psymbol_functions::has_symbols): Update.
210 (make_psymbol_functions, dump_psymtab_addrmap): Add
211 partial_symtabs parameter.
212 (maintenance_print_psymbols): Update.
213 (psymbol_functions::expand_symtabs_matching): Update.
214 * psympriv.h (struct psymbol_functions): Add constructor.
215 <m_partial_symtabs>: New member.
216 <set_partial_symtabs>: New method.
218 2021-03-20 Tom Tromey <tom@tromey.com>
220 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
222 (process_psymtab_comp_unit_reader)
223 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
224 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
225 Reference psymtabs via per_bfd.
227 2021-03-20 Tom Tromey <tom@tromey.com>
229 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
231 (add_address_entry): Remove objfile parameter.
232 (add_address_entry_worker): Update.
233 (write_address_map): Replace objfile parameter with per_bfd.
234 (write_gdbindex, write_psymtabs_to_index): Update.
236 2021-03-20 Tom Tromey <tom@tromey.com>
238 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
239 print_bcache parameter.
240 * symfile-debug.c (objfile::print_stats): Add print_bcache
242 * quick-symbol.h (struct quick_symbol_functions)
243 <print_stats>: Add print_bcache parameter.
244 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
246 (print_objfile_statistics): Move psymtab code to psymtab.c.
247 * psymtab.c (count_psyms): Move from symmisc.c.
248 (psymbol_functions::print_stats): Print partial symbol and bcache
249 statistics. Add print_bcache parameter.
250 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
251 (struct objfile) <print_stats>: Add print_bcache parameter.
252 * maint.c (maintenance_print_statistics): Update.
254 2021-03-20 Tom Tromey <tom@tromey.com>
256 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
258 * dwarf2/read.c (create_addrmap_from_index)
259 (create_addrmap_from_aranges): Set per_bfd addrmap.
260 (dwarf2_read_gdb_index): Don't set partial_symtabs.
261 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
263 (dwarf2_read_debug_names): Don't set partial_symtabs.
264 (dwarf2_initialize_objfile): Likewise.
266 2021-03-20 Tom Tromey <tom@tromey.com>
268 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
271 2021-03-20 Tom Tromey <tom@tromey.com>
273 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
274 (~psymtab_discarder, keep): Update.
276 <m_partial_symtabs>: New member.
277 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
279 2021-03-20 Tom Tromey <tom@tromey.com>
281 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
282 (xcoff_end_psymtab): Update.
283 (scan_xcoff_symtab): Add partial_symtabs parameter.
284 (xcoff_initial_scan): Update.
285 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
286 * mdebugread.c (mdebug_build_psymtabs): Update.
287 (parse_partial_symbols): Add partial_symtabs parameter.
288 * dbxread.c (dbx_symfile_read): Update.
289 (read_dbx_symtab): Add partial_symtabs parameter.
290 (read_dbx_symtab): Update.
291 (dbx_end_psymtab): Add partial_symtabs parameter.
293 2021-03-20 Tom Tromey <tom@tromey.com>
295 * quick-symbol.h (struct quick_symbol_functions)
296 <relocated>: New method.
297 * psymtab.h (struct psymbol_functions) <relocated>: New
299 <fill_psymbol_map>: Declare method.
300 <m_psymbol_map>: New member.
301 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
302 (psymbol_functions::find_compunit_symtab_by_address): Update.
303 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
304 (struct objfile) <psymbol_map>: Remove.
305 * objfiles.c (objfile_relocate1): Update.
307 2021-03-20 Tom Tromey <tom@tromey.com>
309 * psympriv.h (struct psymbol_functions): New.
310 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
311 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
312 (objfile::lookup_global_symbol_language): Update.
313 * quick-symbol.h (struct quick_symbol_functions): Convert function
314 pointers to methods. Add virtual destructor.
315 (quick_symbol_functions_up): New typedef.
316 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
317 (dwarf2_debug_names_functions): Don't declare.
318 (make_psymbol_functions): Declare.
319 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
320 (psymbol_functions::find_pc_sect_compunit_symtab)
321 (psymbol_functions::lookup_symbol)
322 (psymbol_functions::lookup_global_symbol_language)
323 (psymbol_functions::find_last_source_symtab)
324 (psymbol_functions::forget_cached_source_info)
325 (psymbol_functions::print_stats, psymbol_functions::dump)
326 (psymbol_functions::expand_symtabs_for_function)
327 (psymbol_functions::expand_all_symtabs)
328 (psymbol_functions::expand_symtabs_with_fullname)
329 (psymbol_functions::map_symbol_filenames)
330 (psymbol_functions::map_matching_symbols)
331 (psymbol_functions::expand_symtabs_matching)
332 (psymbol_functions::has_symbols)
333 (psymbol_functions::find_compunit_symtab_by_address): Rename.
334 (psym_functions): Remove.
335 (make_psymbol_functions): New function.
336 * objfiles.h (struct objfile) <qf>: Change type.
337 * elfread.c (elf_symfile_read): Update.
338 * dwarf2/read.c (struct dwarf2_base_index_functions)
339 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
340 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
341 (dwarf2_base_index_functions::find_last_source_symtab)
342 (dwarf2_base_index_functions::forget_cached_source_info)
343 (dwarf2_base_index_functions::map_symtabs_matching_filename)
344 (dwarf2_gdb_index::lookup_symbol)
345 (dwarf2_base_index_functions::print_stats)
346 (dwarf2_gdb_index::dump)
347 (dwarf2_gdb_index::expand_symtabs_for_function)
348 (dwarf2_base_index_functions::expand_all_symtabs)
349 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
351 (dwarf2_gdb_index::map_matching_symbols): New method.
352 (dwarf2_gdb_index::expand_symtabs_matching): New method.
353 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
354 (dwarf2_base_index_functions::map_symbol_filenames)
355 (dwarf2_base_index_functions::has_symbols): Rename.
356 (dwarf2_gdb_index_functions): Remove.
357 (dwarf2_debug_names_index::lookup_symbol)
358 (dwarf2_debug_names_index::dump)
359 (dwarf2_debug_names_index::expand_symtabs_for_function)
360 (dwarf2_debug_names_index::map_matching_symbols)
361 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
362 (dwarf2_debug_names_functions): Remove.
363 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
366 2021-03-20 Tom Tromey <tom@tromey.com>
368 * psymtab.c (require_partial_symbols): Check that 'sf' is not
370 * xcoffread.c (xcoff_sym_fns): Update.
371 * symfile.h (struct sym_fns) <qf>: Remove.
372 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
373 * symfile-debug.c (objfile::has_partial_symbols)
374 (objfile::find_last_source_symtab)
375 (objfile::forget_cached_source_info)
376 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
377 (objfile::print_stats, objfile::dump)
378 (objfile::expand_symtabs_for_function)
379 (objfile::expand_all_symtabs)
380 (objfile::expand_symtabs_with_fullname)
381 (objfile::map_matching_symbols)
382 (objfile::expand_symtabs_matching)
383 (objfile::find_pc_sect_compunit_symtab)
384 (objfile::map_symbol_filenames)
385 (objfile::find_compunit_symtab_by_address)
386 (objfile::lookup_global_symbol_language, debug_sym_fns)
387 (install_symfile_debug_logging): Update.
388 * objfiles.h (struct objfile) <qf>: New member.
389 * mipsread.c (ecoff_sym_fns): Update.
390 * machoread.c (macho_sym_fns): Update.
391 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
393 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
394 * dbxread.c (aout_sym_fns): Update.
395 * coffread.c (coff_sym_fns): Update.
397 2021-03-20 Tom Tromey <tom@tromey.com>
399 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
400 (expand_symtabs_file_matcher_ftype)
401 (expand_symtabs_symbol_matcher_ftype)
402 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
403 Move to quick-symbol.h.
404 * quick-symbol.h: New file.
406 2021-03-20 Tom Tromey <tom@tromey.com>
408 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
409 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
410 (basic_lookup_transparent_type_quick)
411 (find_pc_sect_compunit_symtab, find_symbol_at_address)
412 (find_line_symtab, global_symbol_searcher::expand_symtabs):
414 * symmisc.c (print_objfile_statistics, dump_objfile)
415 (maintenance_expand_symtabs): Update.
416 * symfile.c (symbol_file_add_with_addrs)
417 (expand_symtabs_matching, map_symbol_filenames): Update.
418 * symfile-debug.c (objfile::has_partial_symbols)
419 (objfile::find_last_source_symtab)
420 (objfile::forget_cached_source_info)
421 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
422 (objfile::print_stats, objfile::dump)
423 (objfile::expand_symtabs_for_function)
424 (objfile::expand_all_symtabs)
425 (objfile::expand_symtabs_with_fullname)
426 (objfile::map_matching_symbols)
427 (objfile::expand_symtabs_matching)
428 (objfile::find_pc_sect_compunit_symtab)
429 (objfile::map_symbol_filenames)
430 (objfile::find_compunit_symtab_by_address)
431 (objfile::lookup_global_symbol_language): New methods.
432 (debug_sym_quick_functions): Remove.
433 (debug_sym_fns, install_symfile_debug_logging): Update.
434 * source.c (forget_cached_source_info_for_objfile)
435 (select_source_symtab): Update.
436 * objfiles.h (struct objfile): Add methods corresponding to
437 quick_symbol_functions.
438 * objfiles.c (objfile::has_partial_symbols): Move to
440 * linespec.c (iterate_over_all_matching_symtabs): Update.
441 * cp-support.c (add_symbol_overload_list_qualified): Update.
442 * ada-lang.c (add_nonlocal_symbols): Update.
444 2021-03-20 Tom Tromey <tom@tromey.com>
446 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
447 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
449 * symfile-debug.c (debug_qf_has_symbols): Return bool.
450 * psymtab.c (psym_has_symbols): Return bool.
451 * objfiles.c (objfile::has_partial_symbols): Return bool.
452 * dwarf2/read.c (dw2_has_symbols): Return bool.
454 2021-03-20 Tom Tromey <tom@tromey.com>
456 * symfile.c (read_symbols): Update.
457 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
458 (objfile_has_partial_symbols): Don't declare.
459 * objfiles.c (objfile::has_partial_symbols): Rename from
460 objfile_has_partial_symbols.
461 (objfile_has_symbols, have_partial_symbols): Update.
462 * elfread.c (elf_symfile_read): Update.
463 * dwarf2/read.c (dwarf2_has_info): Update.
464 * coffread.c (coff_symfile_read): Update.
466 2021-03-20 Tom Tromey <tom@tromey.com>
468 * coffread.c: Include dwarf2/public.h.
469 * dwarf2/frame.c: Include dwarf2/public.h.
470 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
471 * dwarf2/public.h: New file.
472 * dwarf2/read.c: Include dwarf2/public.h.
473 * elfread.c: Include dwarf2/public.h.
474 * machoread.c: Include dwarf2/public.h.
475 * symfile.h (dwarf2_has_info, enum dw_index_kind)
476 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
477 (dwarf2_build_frame_info): Move to dwarf2/public.h.
478 * xcoffread.c: Include dwarf2/public.h.
480 2021-03-20 Tom Tromey <tom@tromey.com>
482 * symfile.h (enum dwarf2_section_enum)
483 (dwarf2_get_section_info): Move to dwarf2/read.h.
484 * dwarf2/read.h (enum dwarf2_section_enum)
485 (dwarf2_get_section_info): Move from symfile.h.
487 2021-03-19 Pedro Alves <pedro@palves.net>
489 * thread.c (any_thread_of_inferior): Check if there's a selected
490 thread before calling inferior_thread().
492 2021-03-18 Tom Tromey <tromey@adacore.com>
494 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
496 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
497 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
499 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
501 * python/py-param.c (get_set_value): Update header comment.
503 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
505 * infrun.c (check_multi_target_resumption): Remove argument to
506 all_non_exited_inferiors.
508 2021-03-16 Christian Biesinger <cbiesinger@google.com>
510 * windows-nat.c (windows_init_thread_list): Add message to
513 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
515 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
516 well as PyLong_Check for Python 2.
518 2021-03-15 Tom Tromey <tromey@adacore.com>
521 * rust-exp.y (maker_map): Use gdb::hash_enum.
522 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
524 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
526 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
529 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
531 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
532 parameter, adjust caller.
534 2021-03-15 Tom Tromey <tromey@adacore.com>
536 * ada-exp.y (simple_exp): Always push a result for unary '+'.
538 2021-03-15 Tom Tromey <tromey@adacore.com>
540 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
541 ada_ensure_varsize_limit.
543 2021-03-15 Tom Tromey <tromey@adacore.com>
545 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
547 * ada-exp.y (maybe_overload): New function.
548 (ada_wrap_overload): New function.
549 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
550 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
551 (or_else_exp, xor_exp, primary): Update.
553 2021-03-15 Tom Tromey <tromey@adacore.com>
556 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
557 call for tagged type.
559 2021-03-15 Tom Tromey <tromey@adacore.com>
561 * ada-exp.y (exp1): Handle resolution of the right hand side of an
564 2021-03-15 Tom Tromey <tromey@adacore.com>
566 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
568 (ada_assign_operation::evaluate): Update.
569 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
572 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
574 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
576 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
578 * python/python.c (gdbpy_source_objfile_script): Use
579 make_scoped_restore to restore gdbpy_current_objfile.
580 (gdbpy_execute_objfile_script): Likewise.
582 2021-03-14 Tom Tromey <tom@tromey.com>
584 * dwarf2/read.c (read_attribute_value): Use cu_header
587 2021-03-14 Tom Tromey <tom@tromey.com>
589 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
590 (peek_die_abbrev): Use reader.abfd.
592 2021-03-14 Tom Tromey <tom@tromey.com>
594 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
597 2021-03-13 Tom Tromey <tom@tromey.com>
599 * dwarf2/read.c (struct partial_die_info): Update.
600 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
601 (load_partial_dies, partial_die_info::partial_die_info): Update.
602 * dwarf2/abbrev.h (lookup_abbrev): Constify.
604 2021-03-13 Tom Tromey <tom@tromey.com>
606 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
608 2021-03-12 Christian Biesinger <cbiesinger@google.com>
611 * cp-support.c: Use scoped_segv_handler_restore.
612 * event-top.c (thread_local_segv_handler): Made static.
613 (scoped_segv_handler_restore::scoped_segv_handler_restore):
615 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
617 * event-top.h (class scoped_segv_handler_restore): New class.
618 (thread_local_segv_handler): Removed.
620 2021-03-10 Tom Tromey <tromey@adacore.com>
622 * parser-defs.h (parser_state): Change completion to bool.
623 <parse_completion>: Likewise.
624 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
625 (ada_resolve_variable, ada_resolve_function): Update.
626 * ada-lang.c (ada_find_operator_symbol): Change
627 parse_completion to bool.
628 (ada_resolve_funcall, ada_resolve_variable)
629 (ada_resolve_function): Likewise.
631 2021-03-09 Tom Tromey <tromey@adacore.com>
633 * eval.c (operation::evaluate_funcall): Use function formal
634 parameter types when evaluating.
636 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
638 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
639 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
640 and owner to m_owner.
642 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
644 * f-exp.h (eval_op_f_loc): Declare.
645 (expr::fortran_loc_operation): New typedef.
646 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
648 (f77_keywords): Add LOC keyword.
649 * f-lang.c (eval_op_f_loc): New function.
650 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
652 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
654 * f-exp.h (eval_op_f_array_shape): Declare.
655 (fortran_array_shape_operation): New type.
656 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
658 (f77_keywords): Add "shape" keyword.
659 * f-lang.c (fortran_array_shape): New function.
660 (eval_op_f_array_shape): New function.
661 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
663 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
665 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
667 (expr::fortran_array_size_1arg): New type.
668 (expr::fortran_array_size_2arg): Likewise.
669 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
670 UNOP_OR_BINOP_INTRINSIC.
671 (f77_keywords): Add "size" keyword.
672 * f-lang.c (fortran_array_size): New function.
673 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
674 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
676 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
678 * f-exp.h (eval_op_f_rank): Declare.
679 (expr::fortran_rank_operation): New typedef.
680 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
682 (f77_keywords): Add "rank" keyword.
683 * f-lang.c (eval_op_f_rank): New function.
684 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
686 2021-03-08 Tom Tromey <tom@tromey.com>
688 * printcmd.c (set_command): Remove null check.
689 * value.c (init_if_undefined_command): Remove null check.
691 2021-03-08 Tom Tromey <tom@tromey.com>
693 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
695 * p-exp.y (variable): Update.
696 * go-exp.y (variable): Update.
697 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
698 Remove overload for objfile.
699 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
701 (check_objfile): Likewise.
702 (dump_for_expression): Likewise. Remove overload for objfile.
703 (class var_msym_value_operation): Use bound_minimal_symbol.
704 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
706 (var_msym_value_operation::evaluate_for_address)
707 (var_msym_value_operation::evaluate_for_sizeof)
708 (var_msym_value_operation::evaluate_for_cast): Update.
709 * d-exp.y (PrimaryExpression): Update.
710 * c-exp.y (variable): Update.
711 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
712 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
714 * ada-exp.y (write_var_or_type): Update.
716 2021-03-08 Tom Tromey <tom@tromey.com>
718 * parser-defs.h (exp_uses_objfile): Return bool.
719 * parse.c (exp_uses_objfile): Return bool.
721 2021-03-08 Tom Tromey <tom@tromey.com>
723 * value.h (eval_skip_value): Don't declare.
724 * opencl-lang.c (eval_opencl_assign): Update.
725 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
726 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
727 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
728 * expression.h (enum noside) <EVAL_SKIP>: Remove.
729 * expop.h (typeof_operation::evaluate)
730 (decltype_operation::evaluate, unop_addr_operation::evaluate)
731 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
732 (cxx_cast_operation::evaluate): Update.
733 * eval.c (eval_skip_value): Remove.
734 (eval_op_scope, eval_op_var_entry_value)
735 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
736 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
737 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
738 (eval_op_binary, eval_op_subscript, eval_op_equal)
739 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
740 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
741 (eval_op_complement, eval_op_lognot, eval_op_ind)
742 (eval_op_memval, eval_op_preinc, eval_op_predec)
743 (eval_op_postinc, eval_op_postdec, eval_op_type)
744 (eval_binop_assign_modify, eval_op_objc_msgcall)
745 (eval_multi_subscript, logical_and_operation::evaluate)
746 (logical_or_operation::evaluate, array_operation::evaluate)
747 (operation::evaluate_for_cast)
748 (var_msym_value_operation::evaluate_for_cast)
749 (var_value_operation::evaluate_for_cast): Update.
750 * c-lang.c (c_string_operation::evaluate): Update.
751 * c-exp.h (objc_nsstring_operation::evaluate)
752 (objc_selector_operation::evaluate): Update.
753 * ada-lang.c (ada_assign_operation::evaluate)
754 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
755 (ada_atr_size): Update.
757 2021-03-08 Tom Tromey <tom@tromey.com>
759 * eval.c: Merge "namespace" scopes.
761 2021-03-08 Tom Tromey <tom@tromey.com>
763 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
765 * parse.c (expr_builder::expr_builder, expr_builder::release):
768 2021-03-08 Tom Tromey <tom@tromey.com>
770 * parse.c (expression::expression, expression::~expression):
772 * expression.h (struct expression): Inline constructor. Remove
775 2021-03-08 Tom Tromey <tom@tromey.com>
777 * std-operator.def (BINOP_END): Remove.
778 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
779 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
780 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
781 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
782 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
785 2021-03-08 Tom Tromey <tom@tromey.com>
787 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
789 2021-03-08 Tom Tromey <tom@tromey.com>
791 * std-operator.def (OP_EXTENDED0): Remove.
793 2021-03-08 Tom Tromey <tom@tromey.com>
795 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
796 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
799 2021-03-08 Tom Tromey <tom@tromey.com>
801 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
802 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
804 2021-03-08 Tom Tromey <tom@tromey.com>
806 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
807 * ada-lang.c (ada_binop_minmax): Update.
808 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
809 Use BINOP_MIN and BINOP_MAX.
811 2021-03-08 Tom Tromey <tom@tromey.com>
813 * value.h (evaluate_subexp_with_coercion): Don't declare.
814 * parse.c (exp_descriptor_standard): Remove.
815 (expr_builder::expr_builder, expr_builder::release): Update.
816 (expression::expression): Remove size_t parameter.
817 (expression::~expression): Simplify.
818 (expression::resize): Remove.
819 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
820 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
821 (write_exp_elt_longcst, write_exp_elt_floatcst)
822 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
823 (write_exp_string_vector, write_exp_bitstring): Remove.
824 * p-lang.h (class pascal_language) <opcode_print_table,
825 op_print_tab>: Remove.
826 * p-lang.c (pascal_language::op_print_tab): Remove.
827 * opencl-lang.c (class opencl_language) <opcode_print_table>:
829 * objc-lang.c (objc_op_print_tab): Remove.
830 (class objc_language) <opcode_print_table>: Remove.
831 * m2-lang.h (class m2_language) <opcode_print_table,
832 op_print_tab>: Remove.
833 * m2-lang.c (m2_language::op_print_tab): Remove.
834 * language.h (struct language_defn) <post_parser, expression_ops,
835 opcode_print_table>: Remove.
836 * language.c (language_defn::expression_ops)
837 (auto_or_unknown_language::opcode_print_table): Remove.
838 * go-lang.h (class go_language) <opcode_print_table,
839 op_print_tab>: Remove.
840 * go-lang.c (go_language::op_print_tab): Remove.
841 * f-lang.h (class f_language) <opcode_print_table>: Remove
842 <op_print_tab>: Remove.
843 * f-lang.c (f_language::op_print_tab): Remove.
844 * expression.h (union exp_element): Remove.
845 (struct expression): Remove size_t parameter from constructor.
847 <first_opcode>: Update.
848 <nelts, elts>: Remove.
849 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
850 (evaluate_subexp_standard, print_expression, op_string)
851 (dump_raw_expression): Don't declare.
852 * expprint.c (print_expression, print_subexp)
853 (print_subexp_funcall, print_subexp_standard, op_string)
854 (dump_raw_expression, dump_subexp, dump_subexp_body)
855 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
856 (dump_prefix_expression): Update.
857 * eval.c (evaluate_subexp): Remove.
858 (evaluate_expression, evaluate_type): Update.
859 (evaluate_subexpression_type): Remove.
860 (fetch_subexp_value): Remove "pc" parameter. Update.
861 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
862 (evaluate_subexp_standard, evaluate_subexp_for_address)
863 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
864 (evaluate_subexp_for_cast): Remove.
865 (parse_and_eval_type): Update.
866 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
867 * d-lang.c (d_op_print_tab): Remove.
868 (class d_language) <opcode_print_table>: Remove.
869 * c-lang.h (c_op_print_tab): Don't declare.
870 * c-lang.c (c_op_print_tab): Remove.
871 (class c_language, class cplus_language, class asm_language, class
872 minimal_language) <opcode_print_table>: Remove.
873 * breakpoint.c (update_watchpoint, watchpoint_check)
874 (watchpoint_exp_is_const, watch_command_1): Update.
875 * ax-gdb.h (union exp_element): Don't declare.
876 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
877 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
878 (gen_expr_binop_rest): Remove.
879 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
880 * ada-lang.c (ada_op_print_tab): Remove.
881 (class ada_language) <post_parser, opcode_print_table>: Remove.
883 2021-03-08 Tom Tromey <tom@tromey.com>
885 * go-lang.c (go_language::expression_ops): Don't declare.
886 * go-lang.h (class go_language) <expression_ops>: Remove.
887 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
889 (class opencl_language) <expression_ops>: Remove.
890 * d-lang.c (class d_language) <expression_ops>: Remove.
891 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
892 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
893 (class c_language, class cplus_language, class asm_language)
894 (class minimal_language) <expression_ops>: Remove.
896 2021-03-08 Tom Tromey <tom@tromey.com>
898 * ada-lang.c (resolve_subexp, replace_operator_with_call)
899 (evaluate_subexp_type, assign_aggregate)
900 (aggregate_assign_positional, aggregate_assign_from_choices)
901 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
902 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
903 (ada_operator_check, ada_forward_operator_length)
904 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
906 (post_parser): Update.
907 (class ada_language) <expresssion_ops>: Remove.
909 2021-03-08 Tom Tromey <tom@tromey.com>
911 * m2-lang.h (class m2_language) <expresssion_ops,
912 exp_descriptor_modula2>: Remove.
913 * m2-lang.c (evaluate_subexp_modula2)
914 (m2_language::exp_descriptor_modula2): Remove.
916 2021-03-08 Tom Tromey <tom@tromey.com>
918 * f-lang.h (class f_language) <expresssion_ops>: Remove.
919 <exp_descriptor_tab>: Remove.
920 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
921 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
922 (print_subexp_f, dump_subexp_body_f, operator_check_f)
923 (f_language::exp_descriptor_tab, fortran_prepare_argument):
926 2021-03-08 Tom Tromey <tom@tromey.com>
928 * rust-lang.h (class rust_language) <expression_ops,
929 exp_descriptor_tab>: Remove.
930 * rust-lang.c (rust_evaluate_funcall): Remove.
931 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
933 (rust_evaluate_subexp): Remove.
934 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
935 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
936 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
938 2021-03-08 Tom Tromey <tom@tromey.com>
940 * ada-exp.y: Create operations.
941 (empty_stoken): Remove.
942 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
943 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
944 (components): New global.
945 (push_component, choice_component, pop_component, pop_components):
947 (associations): New global
948 (push_association, pop_association, pop_associations): New
951 (write_var_from_sym, write_int): Create operations.
952 (write_exp_op_with_string): Remove.
953 (write_object_renaming, write_selectors, write_ambiguous_var)
954 (write_var_or_type, write_name_assoc): Create operations.
955 * ada-lang.h (ada_index_type): Declare.
956 * ada-lang.c (ada_index_type): No longer static.
958 2021-03-08 Tom Tromey <tom@tromey.com>
960 * f-exp.y: Create operations.
961 (f_language::parser): Update.
963 2021-03-08 Tom Tromey <tom@tromey.com>
965 * m2-exp.y: Create operations.
966 (m2_language::parser): Update.
968 2021-03-08 Tom Tromey <tom@tromey.com>
970 * p-exp.y: Create operations.
971 (pascal_language::parser): Update.
973 2021-03-08 Tom Tromey <tom@tromey.com>
975 * d-exp.y: Create operations.
978 2021-03-08 Tom Tromey <tom@tromey.com>
980 * go-exp.y: Create operations.
981 (go_language::parser): Update.
983 2021-03-08 Tom Tromey <tom@tromey.com>
985 * objc-lang.c (end_msglist): Create operations.
986 * c-exp.y: Change parser to create operations.
987 (write_destructor_name): Remove.
990 2021-03-08 Tom Tromey <tom@tromey.com>
992 * rust-exp.y: Create operations.
993 (rust_parser::convert_params_to_expression): Change return type.
994 (binop_maker_ftype): New typedef.
995 (maker_map): New global.
996 (rust_parser::convert_ast_to_expression): Change return type.
997 (rust_language::parser): Update.
998 (_initialize_rust_exp): Initialize maker_map.
1000 2021-03-08 Tom Tromey <tom@tromey.com>
1002 * stap-probe.c (binop_maker_ftype): New typedef.
1003 (stap_maker_map): New global.
1004 (stap_make_binop): New function.
1005 (stap_parse_register_operand): Return operation_up.
1006 (stap_parse_single_operand, stap_parse_argument_conditionally)
1007 (stap_parse_argument_1): Likewise.
1008 (stap_parse_argument): Create operations.
1009 (stap_probe::parse_arguments): Update.
1010 (_initialize_stap_probe): Initialize stap_maker_map.
1011 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
1013 * i386-tdep.h (i386_stap_parse_special_token): Change return
1015 * i386-tdep.c (i386_stap_parse_special_token_triplet)
1016 (i386_stap_parse_special_token_three_arg_disp)
1017 (i386_stap_parse_special_token): Change return type.
1018 * gdbarch.sh (stap_parse_special_token): Change return type.
1019 * gdbarch.c: Rebuild.
1020 * gdbarch.h: Rebuild.
1021 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
1023 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
1026 2021-03-08 Tom Tromey <tom@tromey.com>
1028 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
1029 * gdbarch.h: Rebuild.
1030 * gdbarch.c: Rebuild.
1031 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1032 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
1034 (amd64_dtrace_parse_probe_argument): Update.
1036 2021-03-08 Tom Tromey <tom@tromey.com>
1038 * parser-defs.h (struct parser_state) <push, push_new,
1039 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
1040 wrap2>: New methods.
1041 <m_operations>: New member.
1042 * parse.c (parser_state::push_c_string)
1043 (parser_state::push_symbol, parser_state::push_dollar): New
1046 2021-03-08 Tom Tromey <tom@tromey.com>
1048 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
1050 (struct parser_state) <mark_struct_expression>: New method.
1051 * parse.c (parser_state::mark_struct_expression): Update assert.
1052 (parser_state::mark_struct_expression): New method.
1053 (parser_state::mark_completion_tag): Update assert.
1054 (parse_expression_for_completion): Handle expout_last_op.
1056 2021-03-08 Tom Tromey <tom@tromey.com>
1058 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
1060 * value.h (fetch_subexp_value): Add "op" parameter.
1061 * value.c (init_if_undefined_command): Update.
1062 * tracepoint.c (validate_actionline, encode_actions_1): Update.
1063 * stap-probe.c (stap_probe::compile_to_ax): Update.
1064 * printcmd.c (set_command): Update.
1065 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
1067 * parser-defs.h (struct expr_builder) <set_operation>: New
1069 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
1070 * expression.h (struct expression) <first_opcode>: Update.
1072 * expprint.c (dump_raw_expression, dump_prefix_expression):
1074 * expop.h (class var_value_operation) <get_symbol>: New method.
1075 (class register_operation) <get_name>: New method.
1076 (class equal_operation): No longer a typedef, now a subclass.
1077 (class unop_memval_operation) <get_type>: New method.
1078 (class assign_operation) <get_lhs>: New method.
1079 (class unop_cast_operation) <get_type>: New method.
1080 * eval.c (evaluate_expression, evaluate_type)
1081 (evaluate_subexpression_type): Update.
1082 (fetch_subexp_value): Add "op" parameter.
1083 (parse_and_eval_type): Update.
1084 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1085 * breakpoint.c (update_watchpoint, watchpoint_check)
1086 (watchpoint_exp_is_const, watch_command_1): Update.
1087 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
1090 2021-03-08 Tom Tromey <tom@tromey.com>
1092 * ada-lang.c (ada_value_binop): Do not use op_string.
1094 2021-03-08 Tom Tromey <tom@tromey.com>
1096 * expprint.c (dump_for_expression): New overload.
1097 * expop.h (check_objfile, dump_for_expression): Declare new
1099 * ada-lang.c (check_objfile): New overload.
1100 (assign_component, ada_aggregate_component::uses_objfile)
1101 (ada_aggregate_component::dump, ada_aggregate_component::assign)
1102 (ada_aggregate_component::assign_aggregate)
1103 (ada_positional_component::uses_objfile)
1104 (ada_positional_component::dump, ada_positional_component::assign)
1105 (ada_discrete_range_association::uses_objfile)
1106 (ada_discrete_range_association::dump)
1107 (ada_discrete_range_association::assign)
1108 (ada_name_association::uses_objfile, ada_name_association::dump)
1109 (ada_name_association::assign)
1110 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1111 (ada_choices_component::assign)
1112 (ada_others_component::uses_objfile, ada_others_component::dump)
1113 (ada_others_component::assign, ada_assign_operation::evaluate):
1115 * ada-exp.h (ada_string_operation) <get_name>: New method.
1116 (class ada_assign_operation): New.
1117 (class ada_component): New.
1118 (ada_component_up): New typedef.
1119 (class ada_aggregate_operation, class ada_aggregate_component)
1120 (class ada_positional_component, class ada_others_component)
1121 (class ada_association): New.
1122 (ada_association_up): New typedef.
1123 (class ada_choices_component)
1124 (class ada_discrete_range_association)
1125 (class ada_name_association): New.
1127 2021-03-08 Tom Tromey <tom@tromey.com>
1129 * ada-lang.c (ada_var_value_operation::resolve)
1130 (ada_funcall_operation::resolve)
1131 (ada_ternop_slice_operation::resolve): New methods.
1132 * ada-exp.h (struct ada_resolvable): New.
1133 (class ada_var_value_operation): Derive from ada_resolvable.
1134 <get_block, resolve>: New methods.
1135 (class ada_funcall_operation): Derive from ada_resolvable.
1136 <resolve>: New method.
1137 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1138 <resolve>: New method.
1140 2021-03-08 Tom Tromey <tom@tromey.com>
1142 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1143 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1145 (class ada_funcall_operation): New.
1147 2021-03-08 Tom Tromey <tom@tromey.com>
1149 * ada-lang.c (ada_structop_operation::evaluate): New method.
1150 * ada-exp.h (class ada_structop_operation): New.
1152 2021-03-08 Tom Tromey <tom@tromey.com>
1154 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1155 * ada-exp.h (class ada_unop_ind_operation): New.
1157 2021-03-08 Tom Tromey <tom@tromey.com>
1159 * ada-lang.c (ada_binop_exp): No longer static.
1160 * ada-exp.h (ada_binop_exp_operation): New typedef.
1162 2021-03-08 Tom Tromey <tom@tromey.com>
1164 * ada-lang.c (ada_val_atr): No longer static.
1165 (ada_atr_val_operation::evaluate): New method.
1166 * ada-exp.h (class ada_atr_val_operation): New.
1168 2021-03-08 Tom Tromey <tom@tromey.com>
1170 * ada-lang.c (ada_pos_atr): No longer static.
1171 * ada-exp.h (ada_pos_operation): New typedef.
1173 2021-03-08 Tom Tromey <tom@tromey.com>
1175 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1177 (ada_evaluate_subexp): Use it.
1179 2021-03-08 Tom Tromey <tom@tromey.com>
1181 * ada-lang.c (ada_binop_minmax): No longer static.
1182 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1185 2021-03-08 Tom Tromey <tom@tromey.com>
1187 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1189 * ada-exp.h (class ada_var_msym_value_operation): New.
1191 2021-03-08 Tom Tromey <tom@tromey.com>
1193 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1194 (ada_var_value_operation::evaluate): New methods.
1195 * ada-exp.h (class ada_var_value_operation): New.
1197 2021-03-08 Tom Tromey <tom@tromey.com>
1199 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1200 * ada-exp.h (class ada_unop_atr_operation): New.
1202 2021-03-08 Tom Tromey <tom@tromey.com>
1204 * ada-lang.c (ada_binop_in_bounds): No longer static.
1205 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1207 2021-03-08 Tom Tromey <tom@tromey.com>
1209 * ada-lang.c (ada_ternop_slice): No longer static.
1210 * ada-exp.h (class ada_ternop_slice_operation): New.
1212 2021-03-08 Tom Tromey <tom@tromey.com>
1214 * ada-exp.h (ada_bitwise_operation): New template class.
1215 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1216 (ada_bitwise_xor_operation): New typedefs.
1218 2021-03-08 Tom Tromey <tom@tromey.com>
1220 * ada-lang.c (ada_equal_binop): No longer static.
1221 * ada-exp.h (class ada_binop_equal_operation): New.
1223 2021-03-08 Tom Tromey <tom@tromey.com>
1225 * ada-lang.c (ada_mult_binop): No longer static.
1226 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1227 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1229 2021-03-08 Tom Tromey <tom@tromey.com>
1231 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1232 * ada-exp.h (class ada_binop_addsub_operation): New.
1234 2021-03-08 Tom Tromey <tom@tromey.com>
1236 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1237 (ada_resolve_variable): Declare.
1238 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1239 (ada_resolve_variable): New functions.
1240 (resolve_subexp): Update.
1242 2021-03-08 Tom Tromey <tom@tromey.com>
1244 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1246 * c-exp.h (class opencl_ternop_cond_operation): New.
1248 2021-03-08 Tom Tromey <tom@tromey.com>
1250 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1252 * c-exp.h (class opencl_logical_binop_operation): New.
1254 2021-03-08 Tom Tromey <tom@tromey.com>
1256 * opencl-lang.c (opencl_structop_operation::evaluate): New
1258 * c-exp.h (class opencl_structop_operation): New.
1260 2021-03-08 Tom Tromey <tom@tromey.com>
1262 * opencl-lang.c (opencl_logical_not): No longer static. Change
1264 (evaluate_subexp_opencl): Update.
1265 * c-exp.h (opencl_notequal_operation): New typedef.
1267 2021-03-08 Tom Tromey <tom@tromey.com>
1269 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
1270 static. Change parameters.
1271 (eval_opencl_assign): No longer static. Add "op" parameter.
1272 (evaluate_subexp_opencl): Update.
1273 * c-exp.h (opencl_binop_operation): New template class.
1274 (opencl_assign_operation, opencl_equal_operation)
1275 (opencl_notequal_operation, opencl_less_operation)
1276 (opencl_gtr_operation, opencl_geq_operation)
1277 (opencl_leq_operation): New typedefs.
1279 2021-03-08 Tom Tromey <tom@tromey.com>
1281 * opencl-lang.c (opencl_value_cast): No longer static.
1282 * c-exp.h (opencl_cast_type_operation): New typedef.
1284 2021-03-08 Tom Tromey <tom@tromey.com>
1286 * f-exp.h (eval_op_f_allocated): Declare.
1287 (fortran_allocated_operation): New typedef.
1288 * f-lang.c (eval_op_f_allocated): No longer static.
1290 2021-03-08 Tom Tromey <tom@tromey.com>
1292 * f-lang.c (eval_op_f_associated): New functions.
1293 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1296 2021-03-08 Tom Tromey <tom@tromey.com>
1298 * f-lang.c (fortran_bound_1arg::evaluate)
1299 (fortran_bound_2arg::evaluate): New methods.
1300 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
1303 2021-03-08 Tom Tromey <tom@tromey.com>
1305 * expop.h (class unop_addr_operation) <get_expression>: New
1307 * f-lang.c (fortran_undetermined::value_subarray)
1308 (fortran_undetermined::evaluate): New methods.
1309 (fortran_prepare_argument): New overload.
1310 * f-exp.h (class fortran_range_operation)
1311 (class fortran_undetermined): New classes.
1313 2021-03-08 Tom Tromey <tom@tromey.com>
1315 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1316 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1319 2021-03-08 Tom Tromey <tom@tromey.com>
1321 * expression.h (class operation) <evaluate_funcall>: New methods.
1322 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1323 (class var_value_operation) <evaluate_funcall>: New method.
1324 (class structop_base_operation) <evaluate_funcall>: New method.
1325 (class var_msym_value_operation) <evaluate_funcall>: New method.
1326 (class structop_member_base): New class.
1327 (class structop_member_operation): Derive from
1328 structop_member_base.
1329 (class structop_mptr_operation): Derive from
1330 structop_member_base.
1331 (class funcall_operation): New class.
1332 * eval.c (operation::evaluate_funcall)
1333 (var_value_operation::evaluate_funcall)
1334 (scope_operation::evaluate_funcall)
1335 (structop_member_base::evaluate_funcall)
1336 (structop_base_operation::evaluate_funcall): New methods.
1338 2021-03-08 Tom Tromey <tom@tromey.com>
1340 * expop.h (class array_operation): New.
1341 * eval.c (array_operation::evaluate_struct_tuple)
1342 (array_operation::evaluate): New methods.
1344 2021-03-08 Tom Tromey <tom@tromey.com>
1346 * expop.h (class adl_func_operation): New.
1347 * eval.c (adl_func_operation::evaluate): New method.
1349 2021-03-08 Tom Tromey <tom@tromey.com>
1351 * ada-lang.c (ada_unop_in_range): No longer static.
1352 * ada-exp.h (class ada_unop_range_operation): New.
1354 2021-03-08 Tom Tromey <tom@tromey.com>
1356 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
1358 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
1359 (ada_atr_size_operation, ada_abs_operation): New typedefs.
1361 2021-03-08 Tom Tromey <tom@tromey.com>
1363 * expop.h (class logical_and_operation)
1364 (class logical_or_operation): New.
1365 * eval.c (logical_and_operation::evaluate)
1366 (logical_or_operation::evaluate): New methods.
1367 * ax-gdb.c (logical_and_operation::do_generate_ax)
1368 (logical_or_operation::do_generate_ax): New methods.
1370 2021-03-08 Tom Tromey <tom@tromey.com>
1372 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
1374 * m2-exp.h: New file.
1376 2021-03-08 Tom Tromey <tom@tromey.com>
1378 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
1379 * rust-exp.h (class rust_aggregate_operation): New.
1381 2021-03-08 Tom Tromey <tom@tromey.com>
1383 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
1385 * rust-exp.h (class rust_struct_anon): New.
1386 (class rust_structop): New.
1388 2021-03-08 Tom Tromey <tom@tromey.com>
1390 * rust-lang.c (rust_range): No longer static.
1391 * rust-exp.h (class rust_range_operation): New.
1393 2021-03-08 Tom Tromey <tom@tromey.com>
1395 * rust-lang.c (rust_subscript): No longer static.
1396 * rust-exp.h (class rust_subscript_operation): New.
1398 2021-03-08 Tom Tromey <tom@tromey.com>
1400 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1402 (rust_evaluate_subexp): Update.
1403 * rust-exp.h (class rust_unop_ind_operation): New.
1405 2021-03-08 Tom Tromey <tom@tromey.com>
1407 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1408 longer static. Add "opcode" parameter.
1409 (rust_evaluate_subexp): Update.
1410 * rust-exp.h: New file.
1412 2021-03-08 Tom Tromey <tom@tromey.com>
1414 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1415 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1416 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1417 (evaluate_subexp_f): Update.
1418 * f-exp.h: New file.
1420 2021-03-08 Tom Tromey <tom@tromey.com>
1422 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1423 * ada-exp.h (class ada_ternop_range_operation): New.
1425 2021-03-08 Tom Tromey <tom@tromey.com>
1427 * ada-lang.c (ada_qual_operation::evaluate): New method.
1428 * ada-exp.h (class ada_qual_operation): New.
1430 2021-03-08 Tom Tromey <tom@tromey.com>
1432 * ada-lang.c (ada_string_operation::evaluate): New method.
1433 * ada-exp.h (class ada_string_operation): New.
1435 2021-03-08 Tom Tromey <tom@tromey.com>
1437 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
1438 * ada-exp.h: New file.
1440 2021-03-08 Tom Tromey <tom@tromey.com>
1442 * expop.h (class multi_subscript_operation): New.
1443 * eval.c (multi_subscript_operation::evaluate): New method.
1445 2021-03-08 Tom Tromey <tom@tromey.com>
1447 * eval.c (objc_msgcall_operation::evaluate): New method.
1448 * c-exp.h (class objc_msgcall_operation): New.
1450 2021-03-08 Tom Tromey <tom@tromey.com>
1452 * expop.h (class var_value_operation): New.
1453 * eval.c (var_value_operation::evaluate)
1454 (var_value_operation::evaluate_for_address)
1455 (var_value_operation::evaluate_with_coercion)
1456 (var_value_operation::evaluate_for_sizeof)
1457 (var_value_operation::evaluate_for_cast): New methods.
1458 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
1460 2021-03-08 Tom Tromey <tom@tromey.com>
1462 * expop.h (cxx_cast_ftype): New typedef.
1463 (cxx_cast_operation): New template.
1464 (dynamic_cast_operation, reinterpret_cast_operation): New
1467 2021-03-08 Tom Tromey <tom@tromey.com>
1469 * expop.h (class unop_cast_type_operation): New.
1470 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
1473 2021-03-08 Tom Tromey <tom@tromey.com>
1475 * expop.h (class unop_cast_operation): New.
1476 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
1478 2021-03-08 Tom Tromey <tom@tromey.com>
1480 * expop.h (class assign_modify_operation): New.
1481 * eval.c (eval_binop_assign_modify): No longer static.
1482 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1484 2021-03-08 Tom Tromey <tom@tromey.com>
1486 * expop.h (class assign_operation): New.
1487 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1489 2021-03-08 Tom Tromey <tom@tromey.com>
1491 * expop.h (class type_instance_operation): New.
1492 * eval.c (type_instance_operation::evaluate): New method.
1494 2021-03-08 Tom Tromey <tom@tromey.com>
1496 * expop.h (class op_this_operation): New.
1497 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1499 2021-03-08 Tom Tromey <tom@tromey.com>
1501 * expop.h (class unop_memval_operation)
1502 (class unop_memval_type_operation): New.
1503 * eval.c (eval_op_memval): No longer static.
1504 (unop_memval_operation::evaluate_for_address)
1505 (unop_memval_type_operation::evaluate_for_address)
1506 (unop_memval_operation::evaluate_for_sizeof)
1507 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1508 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1509 (unop_memval_type_operation::do_generate_ax): New methods.
1511 2021-03-08 Tom Tromey <tom@tromey.com>
1513 * expop.h (class unop_alignof_operation): New.
1514 * eval.c (eval_op_alignof): No longer static.
1516 2021-03-08 Tom Tromey <tom@tromey.com>
1518 * expop.h (class unop_sizeof_operation): New.
1519 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1521 2021-03-08 Tom Tromey <tom@tromey.com>
1523 * expop.h (class unop_addr_operation): New.
1524 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1526 2021-03-08 Tom Tromey <tom@tromey.com>
1528 * expop.h (class typeid_operation): New.
1530 2021-03-08 Tom Tromey <tom@tromey.com>
1532 * expop.h (class decltype_operation): New.
1534 2021-03-08 Tom Tromey <tom@tromey.com>
1536 * expop.h (class typeof_operation): New.
1538 2021-03-08 Tom Tromey <tom@tromey.com>
1540 * expop.h (class type_operation): New.
1541 * eval.c (eval_op_type): No longer static.
1543 2021-03-08 Tom Tromey <tom@tromey.com>
1545 * expop.h (class unop_ind_base_operation)
1546 (class unop_ind_operation): New.
1547 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1548 (unop_ind_base_operation::evaluate_for_address)
1549 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1550 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1552 2021-03-08 Tom Tromey <tom@tromey.com>
1554 * expop.h (unop_incr_operation): New template.
1555 (preinc_operation, predec_operation, postinc_operation)
1556 (postdec_operation): New typedefs.
1557 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1558 (eval_op_postdec): No longer static.
1560 2021-03-08 Tom Tromey <tom@tromey.com>
1562 * expop.h (unary_ftype): New typedef.
1563 (unop_operation, usual_ax_binop_operation): New templates.
1564 (unary_plus_operation, unary_neg_operation)
1565 (unary_complement_operation, unary_logical_not_operation): New
1567 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1568 (eval_op_lognot): No longer static.
1569 * ax-gdb.c (gen_expr_unop): New function.
1571 2021-03-08 Tom Tromey <tom@tromey.com>
1573 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1575 2021-03-08 Tom Tromey <tom@tromey.com>
1577 * expop.h (class repeat_operation): New.
1578 * eval.c (eval_op_repeat): No longer static. Remove "op"
1580 (evaluate_subexp_standard): Update.
1581 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1583 2021-03-08 Tom Tromey <tom@tromey.com>
1585 * expop.h (class comparison_operation): New.
1586 (equal_operation, notequal_operation, less_operation)
1587 (gtr_operation, geq_operation, leq_operation): New typedefs.
1588 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1589 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1591 2021-03-08 Tom Tromey <tom@tromey.com>
1593 * expop.h (class subscript_operation): New.
1594 * eval.c (eval_op_subscript): No longer static.
1596 2021-03-08 Tom Tromey <tom@tromey.com>
1598 * expop.h (class binop_operation, class usual_ax_binop_operation):
1600 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1601 (div_operation, rem_operation, lsh_operation, rsh_operation)
1602 (bitwise_and_operation, bitwise_ior_operation)
1603 (bitwise_xor_operation): New typedefs.
1604 * eval.c (eval_op_binary): No longer static.
1606 2021-03-08 Tom Tromey <tom@tromey.com>
1608 * expop.h (class sub_operation): New.
1609 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1610 (evaluate_subexp_standard): Update.
1612 2021-03-08 Tom Tromey <tom@tromey.com>
1614 * expop.h (class add_operation): New.
1615 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1616 (evaluate_subexp_standard): Update.
1618 2021-03-08 Tom Tromey <tom@tromey.com>
1620 * expop.h (class concat_operation): New.
1621 * eval.c (eval_op_concat): No longer static. Remove "op"
1623 (evaluate_subexp_standard): Update.
1625 2021-03-08 Tom Tromey <tom@tromey.com>
1627 * expop.h (class structop_member_operation)
1628 (class structop_mptr_operation): New.
1629 * eval.c (eval_op_member): No longer static.
1631 2021-03-08 Tom Tromey <tom@tromey.com>
1633 * expop.h (class structop_ptr_operation): New.
1634 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1637 2021-03-08 Tom Tromey <tom@tromey.com>
1639 * expop.h (class structop_base_operation)
1640 (class structop_operation): New.
1641 * eval.c (eval_op_structop_struct): No longer static.
1643 2021-03-08 Tom Tromey <tom@tromey.com>
1645 * expop.h (class complex_operation): New.
1647 2021-03-08 Tom Tromey <tom@tromey.com>
1649 * eval.c (eval_op_objc_selector): No longer static.
1650 * c-exp.h (class objc_selector_operation): New.
1652 2021-03-08 Tom Tromey <tom@tromey.com>
1654 * eval.c: Include c-exp.h.
1655 * c-exp.h (class objc_nsstring_operation): New.
1657 2021-03-08 Tom Tromey <tom@tromey.com>
1659 * c-lang.c (c_string_operation::evaluate): New method.
1660 * c-exp.h: New file.
1662 2021-03-08 Tom Tromey <tom@tromey.com>
1664 * expop.h (class ternop_cond_operation): New.
1665 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1667 2021-03-08 Tom Tromey <tom@tromey.com>
1669 * expop.h (class ternop_slice_operation): New.
1670 * eval.c (eval_op_ternop): No longer static.
1672 2021-03-08 Tom Tromey <tom@tromey.com>
1674 * expop.h (class string_operation): New.
1675 * eval.c (eval_op_string): No longer static.
1677 2021-03-08 Tom Tromey <tom@tromey.com>
1679 * expop.h (class internalvar_operation): New.
1680 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1682 2021-03-08 Tom Tromey <tom@tromey.com>
1684 * expop.h (class bool_operation): New.
1686 2021-03-08 Tom Tromey <tom@tromey.com>
1688 * expop.h (class register_operation): New.
1689 * eval.c (eval_op_register): No longer static.
1690 * ax-gdb.c (register_operation::do_generate_ax): New method.
1692 2021-03-08 Tom Tromey <tom@tromey.com>
1694 * expop.h (class last_operation): New.
1696 2021-03-08 Tom Tromey <tom@tromey.com>
1698 * expop.h (class func_static_var_operation): New.
1699 * eval.c (eval_op_func_static_var): No longer static.
1701 2021-03-08 Tom Tromey <tom@tromey.com>
1703 * expop.h (class var_entry_value_operation): New.
1704 * eval.c (eval_op_var_entry_value): No longer static.
1706 2021-03-08 Tom Tromey <tom@tromey.com>
1708 * expression.h (class operation) <set_outermost>: New method.
1709 * expop.h (class var_msym_value_operation): New.
1710 * eval.c (eval_op_var_msym_value): No longer static.
1711 (var_msym_value_operation::evaluate_for_address)
1712 (var_msym_value_operation::evaluate_for_sizeof)
1713 (var_msym_value_operation::evaluate_for_cast): New methods.
1714 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1717 2021-03-08 Tom Tromey <tom@tromey.com>
1719 * expop.h (class long_const_operation): New.
1720 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1722 2021-03-08 Tom Tromey <tom@tromey.com>
1724 * expop.h (class scope_operation): New.
1725 * eval.c (eval_op_scope): No longer static.
1726 (scope_operation::evaluate_for_address): New method.
1727 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1729 2021-03-08 Tom Tromey <tom@tromey.com>
1731 * expprint.c (float_const_operation::dump): New method.
1732 * expop.h (float_data): New typedef.
1733 (class float_const_operation): New.
1735 2021-03-08 Tom Tromey <tom@tromey.com>
1737 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1738 * ax-gdb.c (gen_expr_binop): New function.
1739 (gen_expr_structop): Likewise.
1741 2021-03-08 Tom Tromey <tom@tromey.com>
1743 * expprint.c (expr::dump_for_expression): New functions.
1744 * expop.h (dump_for_expression): New overloads.
1745 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1748 2021-03-08 Tom Tromey <tom@tromey.com>
1750 * expression.h (expr::operation): New class.
1751 (expr::make_operation): New function.
1752 (expr::operation_up): New typedef.
1753 * expop.h: New file.
1754 * eval.c (operation::evaluate_for_cast)
1755 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1757 * ax-gdb.c (operation::generate_ax): New method.
1759 2021-03-08 Tom Tromey <tom@tromey.com>
1761 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1762 (gen_expr_binop_rest): New overload.
1764 2021-03-08 Tom Tromey <tom@tromey.com>
1766 * eval.c (eval_multi_subscript): New function.
1767 (evaluate_subexp_standard): Use it.
1769 2021-03-08 Tom Tromey <tom@tromey.com>
1771 * ada-lang.c (ada_binop_exp): New function.
1772 (ada_evaluate_subexp): Use it.
1774 2021-03-08 Tom Tromey <tom@tromey.com>
1776 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1778 (ada_evaluate_subexp): Use it.
1780 2021-03-08 Tom Tromey <tom@tromey.com>
1782 * ada-lang.c (ada_binop_minmax): New function.
1783 (ada_evaluate_subexp): Use it.
1785 2021-03-08 Tom Tromey <tom@tromey.com>
1787 * ada-lang.c (ada_unop_atr): New function.
1788 (ada_evaluate_subexp): Use it.
1790 2021-03-08 Tom Tromey <tom@tromey.com>
1792 * ada-lang.c (ada_binop_in_bounds): New function.
1793 (ada_evaluate_subexp): Use it.
1795 2021-03-08 Tom Tromey <tom@tromey.com>
1797 * ada-lang.c (ada_ternop_slice): New function.
1798 (ada_evaluate_subexp): Use it.
1800 2021-03-08 Tom Tromey <tom@tromey.com>
1802 * ada-lang.c (ada_equal_binop): New function.
1803 (ada_evaluate_subexp): Use it.
1805 2021-03-08 Tom Tromey <tom@tromey.com>
1807 * ada-lang.c (ada_mult_binop): New function.
1808 (ada_evaluate_subexp): Use it.
1810 2021-03-08 Tom Tromey <tom@tromey.com>
1812 * ada-lang.c (ada_abs): New function.
1813 (ada_evaluate_subexp): Use it.
1815 2021-03-08 Tom Tromey <tom@tromey.com>
1817 * ada-lang.c (ada_atr_size): New function.
1818 (ada_evaluate_subexp): Use it.
1820 2021-03-08 Tom Tromey <tom@tromey.com>
1822 * ada-lang.c (ada_atr_tag): New function.
1823 (ada_evaluate_subexp): Use it.
1825 2021-03-08 Tom Tromey <tom@tromey.com>
1827 * ada-lang.c (ada_unop_in_range): New function.
1828 (ada_evaluate_subexp): Use it.
1830 2021-03-08 Tom Tromey <tom@tromey.com>
1832 * ada-lang.c (ada_unop_neg): New function.
1833 (ada_evaluate_subexp): Use it.
1835 2021-03-08 Tom Tromey <tom@tromey.com>
1837 * ada-lang.c (eval_ternop_in_range): New function.
1838 (ada_evaluate_subexp): Use it.
1840 2021-03-08 Tom Tromey <tom@tromey.com>
1842 * opencl-lang.c (eval_opencl_assign): New function.
1843 (evaluate_subexp_opencl): Use it.
1845 2021-03-08 Tom Tromey <tom@tromey.com>
1847 * eval.c (eval_op_objc_msgcall): New function.
1848 (evaluate_subexp_standard): Use it.
1850 2021-03-08 Tom Tromey <tom@tromey.com>
1852 * eval.c (eval_binop_assign_modify): New function.
1853 (evaluate_subexp_standard): Use it.
1855 2021-03-08 Tom Tromey <tom@tromey.com>
1857 * m2-lang.c (eval_op_m2_subscript): New function.
1858 (evaluate_subexp_modula2): Use it.
1860 2021-03-08 Tom Tromey <tom@tromey.com>
1862 * m2-lang.c (eval_op_m2_high): New function.
1863 (evaluate_subexp_modula2): Use it.
1865 2021-03-08 Tom Tromey <tom@tromey.com>
1867 * eval.c (evaluate_subexp_for_address_base): New function.
1868 (evaluate_subexp_for_address): Use it.
1869 (evaluate_subexp_for_sizeof_base): New function.
1870 (evaluate_subexp_for_sizeof): Use it.
1872 2021-03-08 Tom Tromey <tom@tromey.com>
1874 * rust-lang.c (eval_op_rust_structop): New function.
1875 (rust_evaluate_subexp): Use it.
1877 2021-03-08 Tom Tromey <tom@tromey.com>
1879 * rust-lang.c (eval_op_rust_struct_anon): New function.
1880 (rust_evaluate_subexp): Use it.
1882 2021-03-08 Tom Tromey <tom@tromey.com>
1884 * rust-lang.c (eval_op_rust_array): New function.
1885 (rust_evaluate_subexp): Use it.
1887 2021-03-08 Tom Tromey <tom@tromey.com>
1889 * rust-lang.c (eval_op_rust_complement): New function.
1890 (rust_evaluate_subexp): Use it.
1892 2021-03-08 Tom Tromey <tom@tromey.com>
1894 * rust-lang.c (eval_op_rust_ind): New function.
1895 (rust_evaluate_subexp): Use it.
1897 2021-03-08 Tom Tromey <tom@tromey.com>
1899 * rust-lang.c (rust_subscript): Change parameters.
1900 (rust_evaluate_subexp): Update.
1902 2021-03-08 Tom Tromey <tom@tromey.com>
1904 * rust-lang.c (rust_range): Change parameters.
1905 (rust_evaluate_subexp): Update.
1907 2021-03-08 Tom Tromey <tom@tromey.com>
1909 * f-lang.c (eval_op_f_allocated): New function.
1910 (evaluate_subexp_f): Use it.
1912 2021-03-08 Tom Tromey <tom@tromey.com>
1914 * f-lang.c (fortran_require_array): New function.
1915 (evaluate_subexp_f): Use it.
1917 2021-03-08 Tom Tromey <tom@tromey.com>
1919 * f-lang.c (eval_op_f_kind): New function.
1920 (evaluate_subexp_f): Use it.
1922 2021-03-08 Tom Tromey <tom@tromey.com>
1924 * f-lang.c (eval_op_f_cmplx): New function.
1925 (evaluate_subexp_f): Use it.
1927 2021-03-08 Tom Tromey <tom@tromey.com>
1929 * f-lang.c (eval_op_f_modulo): New function.
1930 (evaluate_subexp_f): Use it.
1932 2021-03-08 Tom Tromey <tom@tromey.com>
1934 * f-lang.c (eval_op_f_floor): New function.
1935 (evaluate_subexp_f): Use it.
1937 2021-03-08 Tom Tromey <tom@tromey.com>
1939 * f-lang.c (eval_op_f_ceil): New function.
1940 (evaluate_subexp_f): Use it.
1942 2021-03-08 Tom Tromey <tom@tromey.com>
1944 * f-lang.c (eval_op_f_mod): New function.
1945 (evaluate_subexp_f): Use it.
1947 2021-03-08 Tom Tromey <tom@tromey.com>
1949 * f-lang.c (eval_op_f_abs): New function.
1950 (evaluate_subexp_f): Use it.
1952 2021-03-08 Tom Tromey <tom@tromey.com>
1954 * eval.c (eval_op_type): New function.
1955 (evaluate_subexp_standard): Use it.
1957 2021-03-08 Tom Tromey <tom@tromey.com>
1959 * eval.c (eval_op_postdec): New function.
1960 (evaluate_subexp_standard): Use it.
1962 2021-03-08 Tom Tromey <tom@tromey.com>
1964 * eval.c (eval_op_postinc): New function.
1965 (evaluate_subexp_standard): Use it.
1967 2021-03-08 Tom Tromey <tom@tromey.com>
1969 * eval.c (eval_op_predec): New file.
1970 (evaluate_subexp_standard): Use it.
1972 2021-03-08 Tom Tromey <tom@tromey.com>
1974 * eval.c (eval_op_preinc): New function.
1975 (evaluate_subexp_standard): Use it.
1977 2021-03-08 Tom Tromey <tom@tromey.com>
1979 * eval.c (eval_op_memval): New function.
1980 (evaluate_subexp_standard): Use it.
1982 2021-03-08 Tom Tromey <tom@tromey.com>
1984 * eval.c (eval_op_alignof): New function.
1985 (evaluate_subexp_standard): Use it.
1987 2021-03-08 Tom Tromey <tom@tromey.com>
1989 * eval.c (eval_op_ind): New function.
1990 (evaluate_subexp_standard): Use it.
1992 2021-03-08 Tom Tromey <tom@tromey.com>
1994 * eval.c (eval_op_lognot): New function.
1995 (evaluate_subexp_standard): Use it.
1997 2021-03-08 Tom Tromey <tom@tromey.com>
1999 * eval.c (eval_op_complement): New function.
2000 (evaluate_subexp_standard): Use it.
2002 2021-03-08 Tom Tromey <tom@tromey.com>
2004 * eval.c (eval_op_neg): New function.
2005 (evaluate_subexp_standard): Use it.
2007 2021-03-08 Tom Tromey <tom@tromey.com>
2009 * eval.c (eval_op_plus): New function.
2010 (evaluate_subexp_standard): Use it.
2012 2021-03-08 Tom Tromey <tom@tromey.com>
2014 * eval.c (eval_op_repeat): New function.
2015 (evaluate_subexp_standard): Use it.
2017 2021-03-08 Tom Tromey <tom@tromey.com>
2019 * eval.c (eval_op_leq): New function.
2020 (evaluate_subexp_standard): Use it.
2022 2021-03-08 Tom Tromey <tom@tromey.com>
2024 * eval.c (eval_op_geq): New function.
2025 (evaluate_subexp_standard): Use it.
2027 2021-03-08 Tom Tromey <tom@tromey.com>
2029 * eval.c (eval_op_gtr): New function.
2030 (evaluate_subexp_standard): Use it.
2032 2021-03-08 Tom Tromey <tom@tromey.com>
2034 * eval.c (eval_op_less): New function.
2035 (evaluate_subexp_standard): Use it.
2037 2021-03-08 Tom Tromey <tom@tromey.com>
2039 * eval.c (eval_op_notequal): New function.
2040 (evaluate_subexp_standard): Use it.
2042 2021-03-08 Tom Tromey <tom@tromey.com>
2044 * eval.c (eval_op_equal): New function.
2045 (evaluate_subexp_standard): Use it.
2047 2021-03-08 Tom Tromey <tom@tromey.com>
2049 * eval.c (eval_op_subscript): New function.
2050 (evaluate_subexp_standard): Use it.
2052 2021-03-08 Tom Tromey <tom@tromey.com>
2054 * eval.c (eval_op_binary): New function.
2055 (evaluate_subexp_standard): Use it.
2057 2021-03-08 Tom Tromey <tom@tromey.com>
2059 * eval.c (eval_op_sub): New function.
2060 (evaluate_subexp_standard): Use it.
2062 2021-03-08 Tom Tromey <tom@tromey.com>
2064 * eval.c (eval_op_add): New function.
2065 (evaluate_subexp_standard): Use it.
2067 2021-03-08 Tom Tromey <tom@tromey.com>
2069 * eval.c (eval_op_member): New function.
2070 (evaluate_subexp_standard): Use it.
2072 2021-03-08 Tom Tromey <tom@tromey.com>
2074 * eval.c (eval_op_structop_ptr): New function.
2075 (evaluate_subexp_standard): Use it.
2077 2021-03-08 Tom Tromey <tom@tromey.com>
2079 * eval.c (eval_op_structop_struct): New function.
2080 (evaluate_subexp_standard): Use it.
2082 2021-03-08 Tom Tromey <tom@tromey.com>
2084 * eval.c (eval_op_ternop): New function.
2085 (evaluate_subexp_standard): Use it.
2087 2021-03-08 Tom Tromey <tom@tromey.com>
2089 * eval.c (eval_op_concat): New function.
2090 (evaluate_subexp_standard): Use it.
2092 2021-03-08 Tom Tromey <tom@tromey.com>
2094 * eval.c (eval_op_objc_selector): New function.
2095 (evaluate_subexp_standard): Use it.
2097 2021-03-08 Tom Tromey <tom@tromey.com>
2099 * eval.c (eval_op_string): New function.
2100 (evaluate_subexp_standard): Use it.
2102 2021-03-08 Tom Tromey <tom@tromey.com>
2104 * eval.c (eval_op_register): New function.
2105 (evaluate_subexp_standard): Use it.
2107 2021-03-08 Tom Tromey <tom@tromey.com>
2109 * eval.c (eval_op_func_static_var): New function.
2110 (evaluate_subexp_standard): Use it.
2112 2021-03-08 Tom Tromey <tom@tromey.com>
2114 * eval.c (eval_op_var_msym_value): New function.
2115 (evaluate_subexp_standard): Use it.
2117 2021-03-08 Tom Tromey <tom@tromey.com>
2119 * eval.c (eval_op_var_entry_value): New function.
2120 (evaluate_subexp_standard): Use it.
2122 2021-03-08 Tom Tromey <tom@tromey.com>
2124 * eval.c (eval_op_scope): New function.
2125 (evaluate_subexp_standard): Use it.
2127 2021-03-06 Chernov Sergey <klen_s@mail.ru>
2130 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2132 2021-03-06 Tom Tromey <tom@tromey.com>
2134 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2135 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2136 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2137 (locate_dwz_sections, dwz_search_other_debugdirs)
2138 (dwarf2_get_dwz_file): Move to dwz.c.
2139 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2141 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2142 (dwarf2_get_dwz_file): Move from read.c.
2144 2021-03-06 Tom Tromey <tom@tromey.com>
2146 * debuginfod-support.h: Include scoped_fd.h.
2148 2021-03-06 Tom Tromey <tom@tromey.com>
2150 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2151 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2152 (get_abbrev_section_for_cu, read_attribute_value)
2153 (get_debug_line_section): Update.
2154 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2156 2021-03-06 Tom Tromey <tom@tromey.com>
2158 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2160 * dwarf2/read.c (section_is_p): Remove.
2161 (dwarf2_per_bfd::locate_sections)
2162 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2163 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2164 (dwarf2_locate_common_dwp_sections)
2165 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2168 2021-03-06 Tom Tromey <tom@tromey.com>
2170 * xcoffread.c: Include sect-names.h.
2171 * symfile.h (struct dwarf2_section_names, struct
2172 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2173 * dwarf2/sect-names.h: New file, from symfile.h.
2174 * dwarf2/read.c: Include sect-names.h.
2176 2021-03-06 Tom Tromey <tom@tromey.com>
2178 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2179 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2180 (abbrev_table::read): Update.
2181 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2182 (struct abbrev_info): Reformat.
2183 <attrs>: Now an array.
2184 (struct abbrev_table) <alloc_abbrev>: Remove.
2186 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
2188 * ctfread.c (ctf_psymtab_add_enums): New function.
2189 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2191 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
2193 * ctfread.c (read_func_kind_type): Set up function arguments.
2195 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2196 Andrew Burgess <andrew.burgess@embecosm.com>
2198 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2200 (riscv_csrset): New static global.
2201 (riscv_update_csrmap): New function.
2202 (riscv_iterate_over_regset_sections): Process CSRs.
2204 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2206 * riscv-tdep.c (riscv_feature_name_csr): Define.
2207 (riscv_feature_name_cpu): Define.
2208 (riscv_feature_name_fpu): Define.
2209 (riscv_feature_name_virtual): Define.
2210 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2211 (riscv_freg_feature): Use riscv_feature_name_fpu.
2212 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2213 (riscv_csr_feature): Use riscv_feature_name_csr.
2214 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2216 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2217 Craig Blackmore <craig.blackmore@embecosm.com>
2219 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2220 (ALLDEPFILES): Add riscv-none-tdep.c.
2221 * configure: Regenerate.
2222 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2224 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2225 * elf-none-tdep.c: New file.
2226 * elf-none-tdep.h: New file.
2227 * riscv-none-tdep.c: New file.
2229 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2230 Andrew Burgess <andrew.burgess@embecosm.com>
2232 * corelow.c: Add 'xml-tdesc.h' include.
2233 (core_target::read_description): Load the target description from
2234 the core file when possible.
2235 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2237 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2238 (gcore_elf_make_tdesc_note): New function.
2239 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
2240 * linux-tdep.c (linux_make_corefile_notes): Add target description
2243 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2245 * Makefile.in (SFILES): Add gcore-elf.c.
2246 (HFILES_NO_SRCDIR): Add gcore-elf.h
2247 * configure: Regenerate.
2248 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
2250 * fbsd-tdep.c: Add 'gcore-elf.h' include.
2251 (struct fbsd_collect_regset_section_cb_data): Delete.
2252 (fbsd_collect_regset_section_cb): Delete.
2253 (fbsd_collect_thread_registers): Delete.
2254 (struct fbsd_corefile_thread_data): Delete.
2255 (fbsd_corefile_thread): Delete.
2256 (fbsd_make_corefile_notes): Call
2257 gcore_elf_build_thread_register_notes instead of the now deleted
2259 * gcore-elf.c: New file, the content was moved here from
2260 linux-tdep.c, functions were renamed and given minor cleanup.
2261 * gcore-elf.h: New file.
2262 * gcore.c (gcore_find_signalled_thread): Moved here from
2263 linux-tdep.c and given a new name. Minor cleanups.
2264 * gcore.h (gcore_find_signalled_thread): Declare.
2265 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
2266 (struct linux_collect_regset_section_cb_data): Delete.
2267 (linux_collect_regset_section_cb): Delete.
2268 (linux_collect_thread_registers): Delete.
2269 (linux_corefile_thread): Call
2270 gcore_elf_build_thread_register_notes.
2271 (find_signalled_thread): Delete.
2272 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2274 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
2277 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2278 process_stratum_target parameter,
2279 sparc_store_inferior_registers): update callers.
2280 * sparc-nat.c (sparc_fetch_inferior_registers,
2281 sparc_store_inferior_registers): Add process_stratum_target
2282 parameter. Switch current thread before calling
2283 sparc_supply_gregset / sparc_collect_rwindow.
2284 (sparc_store_inferior_registers): Likewise.
2285 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2286 (sparc32obsd_collect_uthread): Likewise.
2287 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2289 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2290 sparc64obsd_supply_uthread): Add assertion.
2292 2021-03-04 Tom Tromey <tromey@adacore.com>
2294 * ada-lang.c (struct match_data) <found_sym>: Now bool.
2295 (aux_add_nonlocal_symbols): Update.
2296 (ada_add_block_symbols): Change "found_sym" to bool.
2298 2021-03-03 Tom Tromey <tromey@adacore.com>
2300 * ada-lang.c (ada_resolve_function): Update comment.
2301 (is_nonfunction, add_symbols_from_enclosing_procs)
2302 (remove_extra_symbols): Likewise.
2303 (struct match_data): Add constructor, initializers.
2304 (add_nonlocal_symbols): Remove memset.
2305 (aux_add_nonlocal_symbols): Update comment.
2306 (ada_add_block_renamings, add_nonlocal_symbols)
2307 (ada_add_all_symbols): Likewise.
2308 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2310 2021-03-02 Tom Tromey <tromey@adacore.com>
2312 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2313 (cast_to_gnat_encoded_fixed_point_type): Remove.
2314 (ada_value_cast, ada_evaluate_subexp): Update.
2315 (gnat_encoded_fixed_point_type_info)
2316 (ada_is_gnat_encoded_fixed_point_type)
2317 (gnat_encoded_fixed_point_delta)
2318 (gnat_encoded_fixed_point_scaling_factor): Remove.
2319 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2320 (gnat_encoded_fixed_point_delta)
2321 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2322 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2323 (ada_print_type): Update.
2324 * ada-valprint.c (ada_value_print_num): Update.
2325 * dwarf2/read.c (ada_get_gnat_encoded_number)
2326 (ada_get_gnat_encoded_ratio): New functions.
2327 (finish_fixed_point_type): Use them. Add parameters.
2328 (GNAT_FIXED_POINT_SUFFIX): New define.
2329 (gnat_encoded_fixed_point_type_info): New function.
2330 (read_base_type): Handle gnat encodings.
2332 2021-03-02 Tom Tromey <tromey@adacore.com>
2334 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2335 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2337 (GROW_VECT): Remove.
2338 (grow_vect): Remove.
2340 2021-03-02 Tom Tromey <tromey@adacore.com>
2342 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
2343 * ada-lang.c (resolve_subexp): Update.
2344 (ada_resolve_function): Accept a vector.
2345 (is_nonfunction, add_defn_to_vec)
2346 (add_symbols_from_enclosing_procs): Likewise.
2347 (num_defns_collected, defns_collected): Remove.
2348 (remove_extra_symbols): Return a vector.
2349 (remove_irrelevant_renamings): Return void.
2350 (ada_add_local_symbols): Accept a vector.
2351 (struct match_data) <obstackp>: Remove.
2352 <resultp>: New member.
2353 (aux_add_nonlocal_symbols): Update.
2354 (ada_add_block_renamings, add_nonlocal_symbols)
2355 (ada_add_all_symbols): Accept a vector.
2356 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
2358 (ada_lookup_symbol): Update.
2359 (ada_add_block_symbols): Accept a vector.
2360 (get_var_value, iterate_over_symbols): Update.
2361 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
2364 2021-03-02 Tom Tromey <tromey@adacore.com>
2366 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
2368 2021-03-02 Tom Tromey <tromey@adacore.com>
2370 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
2373 (ada_pspace_data): Remove destructor.
2374 <sym_cache>: Now a unique_ptr.
2375 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
2376 (ada_get_symbol_cache): Use 'new'.
2377 (ada_clear_symbol_cache): Rewrite.
2379 2021-03-02 Tom Tromey <tromey@adacore.com>
2381 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
2384 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
2387 * source.c (add_path): Skip empty dirnames.
2389 2021-02-25 Kevin Buettner <kevinb@redhat.com>
2391 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
2392 include order for <sys/ptrace.h> and <asm/ptrace.h>.
2394 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2397 * target.c (target_mourn_inferior): Only compare pids in
2398 target_mourn_inferior.
2400 2021-02-25 Jan Matyas <jmatyas@codasip.com>
2403 * remote.c (remote_target::start_remote): Ensure the single
2404 thread, automatically added for remote targets without the
2405 concept of threading, is initially in set to the "resumed"
2407 * remote.c (remote_target::add_current_inferior_and_thread):
2408 Add return value - return the main thread.
2410 2021-02-25 Jan Vrany <jan.vrany@labware.com>
2412 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2413 (mi_tsv_created): Likewise.
2414 (mi_tsv_deleted): Likewise.
2416 2021-02-25 Tom de Vries <tdevries@suse.de>
2419 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2420 section_kind for &dwo_file->sections.info.
2422 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2425 * f-lang.c (fortran_argument_convert): Delete declaration.
2426 (fortran_prepare_argument): New function.
2427 (evaluate_subexp_f): Move logic to new function
2428 fortran_prepare_argument.
2430 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2432 * f-exp.y (f77_keywords): Add 'associated'.
2433 * f-lang.c (fortran_associated): New function.
2434 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
2435 (operator_length_f): Likewise.
2436 (print_unop_or_binop_subexp_f): New function.
2437 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
2438 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
2439 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
2440 (operator_check_f): Likewise.
2441 * std-operator.def: Add FORTRAN_ASSOCIATED.
2443 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2445 * f-exp.y (fortran_operators): Add ".xor.".
2447 2021-02-24 Tom de Vries <tdevries@suse.de>
2450 * dwarf2/attribute.c (attribute::form_is_signed): New function
2452 * dwarf2/attribute.h (attribute::as_signed): ... here.
2453 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
2454 (attribute::form_is_signed): Declare.
2455 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
2456 for DW_AT_decl_file.
2458 2021-02-24 Kevin Buettner <kevinb@redhat.com>
2460 * nat/aarch64-linux-hw-point.c: Add comment regarding include
2461 order for <sys/ptrace.h> and <asm/ptrace.h>.
2463 2021-02-24 Kevin Buettner <kevinb@redhat.com>
2465 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
2468 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2470 * exec.c (set_section_command): Move variable declarations into
2471 the function body, and use std::string instead of a fixed size
2474 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2476 * exec.c (exec_target::get_section_table): Delete member function.
2477 (section_table_read_available_memory): Use current_top_target, not
2478 just the exec_ops target.
2479 * target-delegates.c: Regenerate.
2480 * target.c (default_get_section_table): New function.
2481 * target.h (target_ops::get_section_table): Change default
2482 behaviour to call default_get_section_table.
2483 (default_get_section_table): Declare.
2485 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2487 * exec.c (exec_target::close): Call new clear_target_sections
2489 (program_space::add_target_sections): Update name of member
2491 (program_space::add_target_sections): Update name of member
2493 (program_space::remove_target_sections): Likewise.
2494 (exec_one_fork): Use new target_sections member function.
2495 (exec_target::get_section_table): Likewise.
2496 (exec_target::files_info): Likewise.
2497 (set_section_command): Likewise.
2498 (exec_set_section_address): Likewise.
2499 (exec_target::has_memory): Use new target_sections member
2501 * progspace.h (program_space::clear_target_sections): New member
2503 (program_space::target_sections): Rename member variable to
2504 m_target_sections, replace with a new member function.
2505 (program_space::m_target_sections): New member variable.
2506 * solib-dsbt.c (scan_dyntag): Use new member function.
2507 * solib-svr4.c (scan_dyntag): Likewise.
2509 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2511 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2513 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2514 (section_table_read_available_memory): Make local const.
2515 (exec_target::xfer_partial): Make local const.
2516 (print_section_info): Make parameter const.
2517 * gdb/exec.h (print_section_info): Likewise.
2518 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2520 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2522 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2524 * gdb/s390-tdep.c (s390_load): Likewise.
2525 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2526 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2527 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2529 (target_debug_print_const_target_section_table_p): ...this.
2530 * gdb/target-delegates.c: Regenerate.
2531 * gdb/target.c (target_get_section_table): Make return type const.
2532 (target_section_by_addr): Likewise. Also make some locals const.
2533 (memory_xfer_partial_1): Make some locals const.
2534 * gdb/target.h (struct target_ops) <get_section_table>: Make
2536 (target_section_by_addr): Likewise.
2537 (target_get_section_table): Likewise.
2539 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2541 * NEWS: Mention new 'maint info target-sections' command.
2542 * maint.c (maintenance_info_target_sections): New function.
2543 (_initialize_maint_cmds): Register new command.
2545 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2547 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2548 (riscv_features_from_bfd): ...this. Change parameter type to
2549 'bfd*', and update as required.
2550 (riscv_find_default_target_description): Update call to
2551 riscv_features_from_bfd. Select a default xlen based on
2553 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2555 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2557 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2558 dynamic types in UNOP_IND.
2560 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2563 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2565 (~dwarf2_queue_guard): Clear queue.
2566 (queue_comp_unit): Assert that queue is
2568 (process_queue): Adjust.
2569 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2571 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2574 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2575 to decide whether or not to enqueue it for expansion.
2576 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2577 after calling maybe_queue_comp_unit.
2579 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2581 * linux-nat.c (linux_nat_filter_event): Return void.
2583 2021-02-22 Tom Tromey <tromey@adacore.com>
2585 * solib-svr4.c (enable_break): Update.
2586 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2588 (target_bfd_reopen): Change parameter type.
2589 * bfd-target.h (target_bfd_reopen): Change parameter type.
2591 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2593 * thread.c (add_thread_silent): Add assert.
2594 (find_thread_ptid): Add assert.
2596 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2599 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2600 (target_unpush_up): Likewise.
2601 * procfs.c (procfs_target::attach): Push target early. Use
2602 target_unpush_up to unpush target in case of error.
2603 * target.h (struct target_unpusher): Move here.
2604 (target_unpush_up): Likewise.
2606 2021-02-19 Kevin Buettner <kevinb@redhat.com>
2608 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2609 (which in turn includes <gnulib/config.h>) before include
2612 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
2615 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2616 (decode_j_type_insn): Likewise.
2617 (decode_cj_type_insn): Likewise.
2618 (decode_b_type_insn): Likewise.
2621 2021-02-18 Tom Tromey <tom@tromey.com>
2623 * expression.h (struct expression) <evaluate>: Declare method.
2624 * eval.c (evaluate_subexp): Simplify.
2625 (expression::evaluate): New method.
2626 (evaluate_expression, evaluate_type): Use expression::evaluate.
2628 2021-02-17 Kevin Buettner <kevinb@redhat.com>
2630 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2632 (ada_lookup_name_info): Likewise.
2634 2021-02-13 Mike Frysinger <vapier@gentoo.org>
2636 * aclocal.m4: Regenerate.
2638 2021-02-12 Tom de Vries <tdevries@suse.de>
2641 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2642 (lin_thread_signals): New static var.
2643 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2645 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2646 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2648 * linux-thread-db.c (check_thread_signals): Use
2649 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2651 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2653 * f-exp.y (f77_keywords): Add allocated.
2654 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2655 (operator_length_f): Likewise.
2656 (print_subexp_f): Likewise.
2657 (dump_subexp_body_f): Likewise.
2658 (operator_check_f): Likewise.
2659 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2661 2021-02-11 Tom de Vries <tdevries@suse.de>
2664 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2665 Return true for DW_FORM_strx.
2667 2021-02-11 Tom Tromey <tromey@adacore.com>
2670 * parse.c (write_exp_symbol_reference): Write sym.block.
2672 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2674 * NEWS: Mention changes to 'maint info sections'.
2675 * maint.c (match_substring): Return a bool, fix whitespace issue.
2676 (struct single_bfd_flag_info): New struct.
2677 (bfd_flag_info): New static global.
2678 (match_bfd_flags): Return a bool, use bfd_flag_info.
2679 (print_bfd_flags): Use bfd_flag_info.
2680 (maint_print_section_info): Delete trailing whitespace.
2681 (struct maint_info_sections_opts): New struct.
2682 (maint_info_sections_option_defs): New static global.
2683 (maint_info_sections_completer): New function.
2684 (maintenance_info_sections): Use option parsing mechanism.
2685 (_initialize_maint_cmds): Update command help text for 'maint info
2686 sections' and register a command completer.
2688 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2690 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2691 functionality merged into...
2692 (maint_print_all_sections): ...this new function.
2693 (maintenance_info_sections): Make use of maint_print_all_sections,
2694 allow all objects to be printed even where there's no executable.
2696 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2698 * breakpoint.c (resolve_sal_pc): Make use of
2699 bound_minimal_symbol::obj_section.
2700 * maint.c (maintenance_translate_address): Likewise.
2701 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2702 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2704 * printcmd.c (info_address_command): Make use of
2705 bound_minimal_symbol::obj_section.
2707 2021-02-11 Alan Modra <amodra@gmail.com>
2709 * arm-symbian-tdep.c: Delete.
2710 * NEWS: Mention arm-symbian removal.
2711 * Makefile.in: Remove arm-symbian-tdep entries.
2712 * configure.tgt: Remove arm*-*-symbianelf*.
2713 * doc/gdb.texinfo: Remove mention of SymbianOS.
2714 * osabi.c (gdb_osabi_names): Remove "Symbian".
2715 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2716 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2717 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2719 * testsuite/gdb.base/dup-sect.exp: Likewise.
2720 * testsuite/gdb.base/long_long.exp: Likewise.
2721 * testsuite/gdb.base/solib-weak.exp: Likewise.
2722 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2723 * testsuite/gdb.python/py-section-script.exp: Likewise.
2724 * testsuite/lib/dwarf.exp: Likewise.
2725 * testsuite/lib/gdb.exp: Likewise.
2727 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2729 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2730 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2731 (one_or_two_args): New pattern.
2732 (f77_keywords): Add lbound and ubound.
2733 * f-lang.c (fortran_bounds_all_dims): New function.
2734 (fortran_bounds_for_dimension): New function.
2735 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2736 (operator_length_f): Likewise.
2737 (print_subexp_f): Likewise.
2738 (dump_subexp_body_f): Likewise.
2739 (operator_check_f): Likewise.
2740 * std-operator.def (FORTRAN_LBOUND): Define.
2741 (FORTRAN_UBOUND): Define.
2743 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2745 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2746 and set_section_index member functions where appropriate.
2747 * coffread.c (coff_symtab_read): Likewise.
2748 (process_coff_symbol): Likewise.
2749 * ctfread.c (set_symbol_address): Likewise.
2750 * dwarf2/read.c (add_partial_symbol): Likewise.
2751 (var_decode_location): Likewise.
2752 * language.c: Likewise.
2753 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2754 (compact_minimal_symbols): Likewise.
2755 (minimal_symbol_upper_bound): Likewise.
2756 * objfiles.c (relocate_one_symbol): Likewise.
2757 * psympriv.h (partial_symbol::obj_section): Likewise.
2758 (partial_symbol::address): Likewise.
2759 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2760 * stabsread.c (scan_file_globals): Likewise.
2761 * symmisc.c (dump_msymbols): Likewise.
2762 * symtab.c (general_symbol_info::obj_section): Likewise.
2763 (fixup_section): Likewise.
2764 (get_msymbol_address): Likewise.
2765 * symtab.h (general_symbol_info::section): Rename to...
2766 (general_symbol_info::m_section): ...this.
2767 (general_symbol_info::set_section_index): New member function.
2768 (general_symbol_info::section_index): Likewise.
2769 (SYMBOL_SECTION): Delete.
2770 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2771 set_section_index member functions where appropriate.
2772 (MSYMBOL_SECTION): Delete.
2773 (symbol::symbol): Update to initialize 'm_section'.
2774 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2775 (process_xcoff_symbol): Likewise.
2777 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2779 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2780 MSYMBOL_OBJ_SECTION.
2781 * findvar.c (language_defn::read_var_value): Likewise.
2782 * infcmd.c (jump_command): Likewise.
2783 * linespec.c (minsym_found): Likewise.
2784 * maint.c (maintenance_translate_address): Likewise.
2785 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2786 (minimal_symbol_upper_bound): Likewise.
2787 * parse.c (find_minsym_type_and_address): Likewise.
2788 (operator_check_standard): Likewise.
2789 * printcmd.c (info_address_command): Likewise.
2790 * symmisc.c (dump_msymbols): Likewise.
2791 (print_symbol): Likewise.
2792 * symtab.c (general_symbol_info::obj_section): Define new
2794 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2795 (find_pc_sect_compunit_symtab): Likewise.
2796 (find_function_start_sal): Likewise.
2797 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2798 MSYMBOL_OBJ_SECTION.
2799 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2801 (SYMBOL_OBJ_SECTION): Delete.
2802 (MSYMBOL_OBJ_SECTION): Delete.
2804 2021-02-09 Tom Tromey <tom@tromey.com>
2806 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2808 2021-02-09 Tom de Vries <tdevries@suse.de>
2811 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2812 construct an array type. Add assert to ensure that element_type is
2815 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2817 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2818 (gcore_collect_regset_section_cb): Delete.
2819 (gcore_collect_thread_registers): Delete.
2820 (gcore_build_thread_register_notes): Delete.
2821 (gcore_find_signalled_thread): Delete.
2822 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2823 'gdbarch' and 'thread_info' declarations.
2824 (gcore_build_thread_register_notes): Delete declaration.
2825 (gcore_find_signalled_thread): Likewise.
2826 * fbsd-tdep.c: Remove 'gcore.h' include.
2827 (struct fbsd_collect_regset_section_cb_data): New struct.
2828 (fbsd_collect_regset_section_cb): New function.
2829 (fbsd_collect_thread_registers): New function.
2830 (struct fbsd_corefile_thread_data): New struct.
2831 (fbsd_corefile_thread): New function.
2832 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2833 * linux-tdep.c: Remove 'gcore.h' include.
2834 (struct linux_collect_regset_section_cb_data): New struct.
2835 (linux_collect_regset_section_cb): New function.
2836 (linux_collect_thread_registers): New function.
2837 (linux_corefile_thread): Call Linux specific code.
2838 (find_signalled_thread): New function.
2839 (linux_make_corefile_notes): Call find_signalled_thread.
2841 2021-02-09 Tom Tromey <tromey@adacore.com>
2843 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2845 * value.c (value_contents_copy_raw): Now static.
2846 * value.h (value_contents_copy_raw): Don't declare.
2848 2021-02-09 Tom Tromey <tromey@adacore.com>
2850 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2853 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
2856 * arc-linux-tdep.c (handle_atomic_sequence): New.
2857 (arc_linux_software_single_step): Call handle_atomic_sequence().
2859 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2861 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2863 (REQUIRE_WINDOW): Call is_valid member function.
2864 (REQUIRE_WINDOW_FOR_SETTER): New define.
2865 (gdbpy_tui_is_valid): Call is_valid member function.
2866 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2867 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2869 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2870 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2873 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2875 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2876 for the title is not nullptr.
2878 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2880 * tui-layout.c (saved_tui_windows): Delete.
2881 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2882 call new get_windows member function instead.
2883 (tui_get_window_by_name): Check in tui_windows.
2884 (tui_layout_window::apply): Don't add to tui_windows.
2885 * tui-layout.h (tui_layout_base::get_windows): New member function.
2886 (tui_layout_window::get_windows): Likewise.
2887 (tui_layout_split::get_windows): Likewise.
2889 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2891 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2892 of the window objects.
2894 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2896 * python/python.c (gdbpy_print_stack): Reformat an error message.
2898 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2900 * tui/tui-interp.c (tui_command_line_handler): New function.
2901 (tui_interp::resume): Register tui_command_line_handler as the
2903 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2905 (tui_getc_1): Delete handling of '\n' and '\r'.
2906 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2908 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2910 * tui/tui-regs.c (tui_data_window::display_registers_from):
2911 Mark invisible register sub windows.
2912 (tui_data_window::check_register_values): Ignore invisible
2913 register sub windows.
2915 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2917 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2918 n_spaces with a negative value.
2920 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2922 * tui/tui-regs.c (tui_data_window::display_registers_from):
2923 Add refresh_window call.
2925 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2927 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2929 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2931 * symmisc.c (std_in, std_out, std_err): Remove.
2932 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2934 2021-02-05 Tom de Vries <tdevries@suse.de>
2936 PR breakpoints/27330
2937 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2938 glibc object file has debug info.
2940 2021-02-05 Tom de Vries <tdevries@suse.de>
2943 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2945 2021-02-05 Tom de Vries <tdevries@suse.de>
2947 PR breakpoints/27313
2948 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2951 2021-02-05 Tom Tromey <tom@tromey.com>
2953 * compile/compile-c-support.c (get_compile_context)
2954 (c_get_compile_context, cplus_get_compile_context): Change return
2956 * language.c (language_defn::get_compile_instance): New method.
2957 * language.h (language_defn::get_compile_instance): Change return
2958 type. No longer inline.
2959 * c-lang.c (c_language::get_compile_instance): Change return type.
2960 (cplus_language::get_compile_instance): Change return type.
2961 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2963 * compile/compile.c (compile_to_object): Update.
2965 2021-02-05 Tom Tromey <tom@tromey.com>
2967 * parser-defs.h (write_exp_symbol_reference): Declare.
2968 * parse.c (write_exp_symbol_reference): New function.
2969 * p-exp.y (variable): Use write_exp_symbol_reference.
2970 * m2-exp.y (variable): Use write_exp_symbol_reference.
2971 * f-exp.y (variable): Use write_exp_symbol_reference.
2972 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2973 * c-exp.y (variable): Use write_exp_symbol_reference.
2975 2021-02-05 Tom de Vries <tdevries@suse.de>
2978 * valarith.c (complex_binop): Throw an error if complex type can't
2981 2021-02-05 Tom de Vries <tdevries@suse.de>
2984 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2987 2021-02-05 Tom de Vries <tdevries@suse.de>
2989 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2991 2021-02-04 Mike Frysinger <vapier@gentoo.org>
2993 * configure.tgt (riscv*-*-*): Set gdb_sim.
2995 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2997 * target.c (target_is_non_stop_p): Return bool.
2998 * target.h (target_is_non_stop_p): Return bool.
3000 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3002 * record-full.c (record_full_async_inferior_event_handler):
3003 Don't clear async event handler.
3004 (record_full_base_target::wait): Clear async event handler at
3007 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3009 * record-btrace.c (record_btrace_handle_async_inferior_event):
3010 Don't clear async event handler.
3011 (record_btrace_target::wait): Clear async event handler at
3014 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3016 * remote.c (remote_target::wait): Clear async event handler at
3017 beginning, mark if needed at the end.
3018 (remote_async_inferior_event_handler): Don't set or clear async
3021 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3023 * async-event.h (async_event_handler_func): Add documentation.
3024 * async-event.c (check_async_event_handlers): Don't clear
3025 async_event_handler ready flag.
3026 * infrun.c (infrun_async_inferior_event_handler): Clear ready
3028 * record-btrace.c (record_btrace_handle_async_inferior_event):
3030 * record-full.c (record_full_async_inferior_event_handler):
3032 * remote-notif.c (remote_async_get_pending_events_handler):
3034 * remote.c (remote_async_inferior_event_handler): Likewise.
3036 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
3038 * infrun.c (handle_inferior_event): Move stop_soon variable to
3041 2021-02-03 Pedro Alves <pedro@palves.net>
3043 * infcmd.c (detach_command): Hold strong reference to target, and
3044 if all-stop on entry, restart threads on exit.
3045 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
3046 (restart_stepped_thread): ... this new function. Also handle
3048 (restart_after_all_stop_detach): New function.
3049 * infrun.h (restart_after_all_stop_detach): Declare.
3051 2021-02-03 Pedro Alves <pedro@palves.net>
3053 * infrun.c (struct step_over_info): Initialize fields.
3054 (prepare_for_detach): Handle ongoing in-line step over.
3056 2021-02-03 Pedro Alves <pedro@palves.net>
3058 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
3060 * remote.c (remote_target::remote_detach_1): ... and here ...
3061 * target.c (target_detach): ... instead of here.
3062 * target.h (target_ops::detach): Add comment.
3064 2021-02-03 Pedro Alves <pedro@palves.net>
3066 * infrun.c (struct wait_one_event): Move higher up.
3067 (prepare_for_detach): Abort in-progress displaced steps instead of
3068 letting them complete.
3069 (handle_one): If the inferior is detaching, don't add the thread
3070 back to the global step-over chain.
3071 (restart_threads): Don't restart threads if detaching.
3072 (handle_signal_stop): Remove inferior::detaching reference.
3074 2021-02-03 Pedro Alves <pedro@palves.net>
3076 * infrun.c (prepare_for_detach): Don't release scoped_restore
3079 2021-02-03 Pedro Alves <pedro@palves.net>
3081 * infrun.c (handle_one): New function, factored out from ...
3082 (stop_all_threads): ... here.
3084 2021-02-03 Pedro Alves <pedro@palves.net>
3086 * remote.c (remote_notif_stop_ack): Don't error out on
3087 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
3088 (remote_target::discard_pending_stop_replies): Don't delete
3089 in-flight notification; instead, clear its contents.
3091 2021-02-03 Pedro Alves <pedro@palves.net>
3093 * remote.c (extended_remote_target::attach): Set target async in
3094 the target-non-stop path too.
3096 2021-02-03 Pedro Alves <pedro@palves.net>
3099 * infrun.c (handle_signal_stop): Move main context_switch call
3100 earlier, before STOP_QUIETLY_NO_SIGSTOP.
3102 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
3104 * NEWS (Changed commands): Add entry for the behavior change of
3105 the inferior command.
3106 * inferior.c (inferior_command): When no argument is given to the
3107 inferior command, display info about the currently selected
3110 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3112 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3114 (read_attribute_reprocess): Adjust.
3116 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3118 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3119 <gnu_ranges_base>: ... this...
3120 <rnglists_base>: ... and this.
3121 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3122 <gnu_ranges_base>: ... this...
3123 <rnglists_base>: ... and this.
3124 (read_cutu_die_from_dwo): Adjust
3125 (dwarf2_get_pc_bounds): Adjust
3126 (dwarf2_record_block_ranges): Adjust.
3127 (read_full_die_1): Adjust
3128 (partial_die_info::read): Adjust.
3129 (read_rnglist_index): Adjust.
3131 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3134 * dwarf2/read.c (read_loclists_rnglists_header): Add
3135 header_offset parameter and use it.
3136 (read_loclist_index): Read header of the current contribution,
3137 not the one at the beginning of the section.
3138 (read_rnglist_index): Likewise.
3140 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3143 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3144 requires_reprocessing flag.
3145 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3147 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3148 and DW_FORM_loclistx.
3149 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3150 instead of set_address for DW_FORM_loclistx and
3153 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3155 * dwarf2/read.c (read_loclist_index): Remove bound check for
3157 (read_rnglist_index): Likewise.
3159 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3161 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3164 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3166 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3168 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3170 * dwarf2/read.c (read_loclist_index): Change complaints into
3173 2021-02-02 Tom de Vries <tdevries@suse.de>
3176 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3179 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3181 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3182 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
3183 here from linux-tdep.c and given a new name. Minor cleanups.
3184 (gcore_collect_regset_section_cb): Likewise.
3185 (gcore_collect_thread_registers): Likewise.
3186 (gcore_build_thread_register_notes): Likewise.
3187 (gcore_find_signalled_thread): Likewise.
3188 * gcore.h (gcore_build_thread_register_notes): Declare.
3189 (gcore_find_signalled_thread): Declare.
3190 * fbsd-tdep.c: Add 'gcore.h' include.
3191 (struct fbsd_collect_regset_section_cb_data): Delete.
3192 (fbsd_collect_regset_section_cb): Delete.
3193 (fbsd_collect_thread_registers): Delete.
3194 (struct fbsd_corefile_thread_data): Delete.
3195 (fbsd_corefile_thread): Delete.
3196 (fbsd_make_corefile_notes): Call
3197 gcore_build_thread_register_notes instead of the now deleted
3199 * linux-tdep.c: Add 'gcore.h' include.
3200 (struct linux_collect_regset_section_cb_data): Delete.
3201 (linux_collect_regset_section_cb): Delete.
3202 (linux_collect_thread_registers): Delete.
3203 (linux_corefile_thread): Call
3204 gcore_build_thread_register_notes.
3205 (find_signalled_thread): Delete.
3206 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3208 2021-01-29 Tom de Vries <tdevries@suse.de>
3210 PR breakpoints/26063
3211 * infrun.c (process_event_stop_test): Reset
3212 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3215 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3217 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3218 assert. Extend the header comment.
3220 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3222 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3223 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3224 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3225 (tui_locator_win_info_ptr): Delete declaration.
3226 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3227 (tui_disasm_window::set_contents): Fetch state from tui_location
3229 (tui_get_begin_asm_address): Likewise.
3230 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3232 (get_locator_window): Delete.
3233 (initialize_known_windows): Treat locator window just like all the
3235 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3236 (tui_source_window::set_contents): Fetch state from tui_location
3238 (tui_source_window::showing_source_p): Likewise.
3239 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3241 (tui_locator_win_info_ptr): Delete.
3242 (tui_locator_window::make_status_line): Fetch state from
3243 tui_location global.
3244 (tui_locator_window::rerender): Remove check of 'handle',
3245 reindent function body.
3246 (tui_locator_window::set_locator_fullname): Delete.
3247 (tui_locator_window::set_locator_info): Delete.
3248 (tui_update_locator_fullname): Delete.
3249 (tui_show_frame_info): Likewise.
3250 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
3251 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
3252 tui/tui-location.h and renamed to
3253 tui_location_tracker::set_location.
3254 (tui_locator_window::set_locator_fullname): Moved to
3255 tui/tui-location.h and renamed to
3256 tui_location_tracker::set_fullname.
3257 (tui_locator_window::full_name): Delete.
3258 (tui_locator_window::proc_name): Delete.
3259 (tui_locator_window::line_no): Delete.
3260 (tui_locator_window::addr): Delete.
3261 (tui_locator_window::gdbarch): Delete.
3262 (tui_update_locator_fullname): Delete declaration.
3263 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
3265 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
3266 (tui_display_main): Call function on tui_location directly.
3267 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
3268 * tui/tui-location.c: New file.
3269 * tui/tui-location.h: New file.
3271 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3273 * gdbtypes.h (get_type_arch): Rename to...
3274 (struct type) <arch>: ... this, update all users.
3276 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3278 * gdbtypes.h (struct type) <arch>: Rename to...
3279 <arch_owner>: ... this, update all users.
3280 <objfile>: Rename to...
3281 <objfile_owner>: ... this, update all users.
3283 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3285 * gdbcmd.h (execute_command_to_string): Update comment.
3286 * top.c (execute_command_to_string): Update header comment.
3288 2021-01-28 Tom de Vries <tdevries@suse.de>
3290 PR breakpoints/27205
3291 * breakpoint.c (create_longjmp_master_breakpoint_probe)
3292 (create_longjmp_master_breakpoint_names): New function, factored out
3294 (create_longjmp_master_breakpoint): ... here. Only try to install
3295 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
3296 breakpoint in libc.so failed.
3298 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
3301 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
3302 unique_ptr is released when the wrapped pointer is kept for later
3305 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
3307 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3308 BLR and BR instructions.
3309 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3310 (enum aarch64_masks): New.
3312 2021-01-26 Tom Tromey <tromey@adacore.com>
3314 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3315 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3316 (windows_init_thread_list, windows_nat::handle_load_dll)
3317 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3318 (windows_nat_target::resume)
3319 (windows_nat_target::get_windows_debug_event)
3320 (windows_nat_target::interrupt, windows_xfer_memory)
3321 (windows_nat_target::close): Update.
3322 * nat/windows-nat.c (DEBUG_EVENTS): Use
3323 debug_prefixed_printf_cond.
3324 (matching_pending_stop, fetch_pending_stop)
3325 (continue_last_debug_event): Update.
3327 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
3329 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3330 elfcore_write_file_note.
3332 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
3334 * arc-tdep.c (arc_add_reggroups): New function.
3335 (arc_gdbarch_init): Call arc_add_reggroups.
3337 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
3339 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3341 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3342 Simon Marchi <simon.marchi@polymtl.ca>
3343 Tom de Vries <tdevries@suse.de>
3345 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
3348 2021-01-25 Tom Tromey <tromey@adacore.com>
3350 * dwarf2/read.c (get_mpz): New function.
3351 (get_dwarf2_rational_constant): Use it.
3353 2021-01-25 Tom Tromey <tromey@adacore.com>
3355 * ada-lang.c (resolve_subexp): Handle array context.
3357 2021-01-23 Tom Tromey <tom@tromey.com>
3360 * compile/compile-loc2c.c (note_register): New function.
3361 (pushf_register_address, pushf_register): Use it.
3363 2021-01-23 Tom Tromey <tom@tromey.com>
3365 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3366 Change type of "registers_used".
3367 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
3368 * dwarf2/loc.c (dwarf2_compile_property_to_c)
3369 (locexpr_generate_c_location, loclist_generate_c_location): Change
3370 type of "registers_used".
3371 * compile/compile.h (compile_dwarf_expr_to_c)
3372 (compile_dwarf_bounds_to_c): Update.
3373 * compile/compile-loc2c.c (pushf_register_address)
3374 (pushf_register, do_compile_dwarf_expr_to_c)
3375 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
3376 of "registers_used".
3377 * compile/compile-c.h (generate_c_for_variable_locations):
3379 * compile/compile-c-symbols.c (generate_vla_size)
3380 (generate_c_for_for_one_variable): Change type of
3382 (generate_c_for_variable_locations): Return std::vector.
3383 * compile/compile-c-support.c (generate_register_struct): Change
3384 type of "registers_used".
3387 2021-01-23 Tom Tromey <tom@tromey.com>
3389 * compile/compile-internal.h (class compile_instance)
3390 <set_arguments>: Change return type.
3391 * compile/compile.c (compile_to_object): Remove call to reset.
3392 (compile_instance::set_arguments): Change return type.
3394 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3396 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3397 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3399 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3401 * Makefile.in (SELFTESTS_SRCS): Add
3402 unittests/gdb_tilde_expand-selftests.c.
3403 * unittests/gdb_tilde_expand-selftests.c: New file.
3405 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3408 * NEWS: Mention new command.
3409 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3410 (version_style): Define.
3411 (cli_style_option::cli_style_option): Add intensity parameter, and
3413 (_initialize_cli_style): Register version style set/show commands.
3414 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3415 (version_style): Declare.
3416 * top.c (print_gdb_version): Use version_stype, and styled_string
3417 to print the GDB version string.
3419 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3421 * utils.c (emit_style_escape): Only emit an escape sequence if the
3422 requested style is different than the current applied style.
3423 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3424 current applied_style.
3425 (fputs_styled): Remove is_default check.
3426 (fputs_styled_unfiltered): Likewise.
3427 (vfprintf_styled_no_gdbfmt): Likewise.
3429 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3431 * remote.h (remote_debug_printf): New.
3432 (remote_debug_printf_nofunc): New.
3433 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
3434 * remote.c: Use above macros throughout file.
3436 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3438 * remote.h (remote_debug): Change to bool.
3439 * remote.c (remote_debug): Change to bool.
3440 (_initialize_remote): Adjust.
3442 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3444 * target.h (remote_debug): Move to...
3445 * remote.h (remote_debug): ... here.
3446 * top.c (remote_debug): Move to...
3447 * remote.c (remote_debug): ... here.
3448 * remote-sim.c: Include remote.h.
3450 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3452 * cli/cli-cmds.c (show_remote_debug): Remove.
3453 (show_remote_timeout): Remove.
3454 (_initialize_cli_cmds): Don't register commands.
3455 * remote.c (show_remote_debug): Move here.
3456 (show_remote_timeout): Move here.
3457 (_initialize_remote): Register commands.
3459 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3461 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
3462 type::objfile method instead.
3464 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3466 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
3467 use the type::is_objfile_owned method.
3469 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
3471 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
3472 (TYPE_OWNER): Remove.
3473 (TYPE_OBJFILE): Adjust.
3474 (struct main_type) <flag_objfile_owned>: Rename to...
3475 <m_flag_objfile_owned>: ... this.
3476 <owner>: Rename to...
3477 <m_owner>: ... this.
3478 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3480 (TYPE_ALLOC): Adjust.
3481 * gdbtypes.c (alloc_type): Adjust.
3482 (alloc_type_arch): Adjust.
3483 (alloc_type_copy): Adjust.
3484 (get_type_arch): Adjust.
3485 (smash_type): Adjust.
3486 (lookup_array_range_type): Adjust.
3487 (recursive_dump_type): Adjust.
3488 (copy_type_recursive): Adjust.
3489 * compile/compile-c-types.c (convert_func): Adjust.
3490 (convert_type_basic): Adjust.
3491 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3494 (language_arch_info::type_and_symbol::alloc_type_symbol):
3497 2021-01-21 Luis Machado <luis.machado@linaro.org>
3499 * coffread.c (enter_linenos): Passing string to complaint.
3500 * valops.c (value_assign): Make array view.
3502 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3504 * auto-load.h (debug_auto_load): Move here.
3505 (auto_load_debug_printf): New.
3506 * auto-load.c: Use auto_load_debug_printf.
3507 (debug_auto_load): Move to header.
3508 * linux-thread-db.c (try_thread_db_load): Use
3509 auto_load_debug_printf.
3510 * main.c (captured_main_1): Likewise.
3512 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3514 * f-valprint.c (f77_array_offset_tbl): Remove.
3516 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3518 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3520 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3522 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3525 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
3528 * python/py-breakpoint.c (bppy_get_location): Handle
3529 bp_hardware_breakpoint.
3530 (bppy_init): Likewise.
3531 (gdbpy_breakpoint_created): Likewise.
3533 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3535 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3537 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3539 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3540 (_initialize_gdb_bfd): Adjust.
3542 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3545 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3547 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3549 * dwarf2/read.c (follow_die_offset): Add logging.
3550 (dwarf2_per_objfile::age_comp_units): Add logging.
3552 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3554 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3555 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3556 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3557 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3558 * arm-tdep.c (struct frame_unwind): Make static.
3559 * auto-load.c (auto_load_safe_path_vec): Make static.
3560 * csky-tdep.c (csky_stub_unwind): Make static.
3561 * gdbarch.c (gdbarch_data_registry): Make static.
3562 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3563 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3564 * i386-tdep.c (i386_frame_setup_skip_insns,
3565 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3567 * infrun.c (observer_mode): Make static.
3568 * linux-nat.c (sigchld_action): Make static.
3569 * linux-thread-db.c (thread_db_list): Make static.
3570 * maint-test-options.c (maintenance_test_options_list):
3571 * mep-tdep.c (mep_csr_registers): Make static.
3572 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3573 (stats): Make static.
3574 * nat/linux-osdata.c (struct osdata_type): Make static.
3575 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3576 * progspace.c (last_program_space_num): Make static.
3577 * python/py-param.c (struct parm_constant): Remove struct type
3579 (parm_constants): Make static.
3580 * python/py-record-btrace.c (btpy_list_methods): Make static.
3581 * python/py-record.c (recpy_gap_type): Make static.
3582 * record.c (record_goto_cmdlist): Make static.
3583 * regcache.c (regcache_descr_handle): Make static.
3584 * registry.h (DEFINE_REGISTRY): Make definition static.
3585 * symmisc.c (std_in, std_out, std_err): Make static.
3586 * top.c (previous_saved_command_line): Make static.
3587 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3589 * unittests/command-def-selftests.c (nr_duplicates,
3590 nr_invalid_prefixcmd, lists): Make static.
3591 * unittests/observable-selftests.c (test_notification): Make
3593 * unittests/optional/assignment/1.cc (counter): Make static.
3594 * unittests/optional/assignment/2.cc (counter): Make static.
3595 * unittests/optional/assignment/3.cc (counter): Make static.
3596 * unittests/optional/assignment/4.cc (counter): Make static.
3597 * unittests/optional/assignment/5.cc (counter): Make static.
3598 * unittests/optional/assignment/6.cc (counter): Make static.
3600 2021-01-20 Joel Sherrill <joel@rtems.org>
3603 * remote.c (struct remote_thread_info) <resume_state>: Rename
3605 <get_resume_state>: ... this.
3606 (remote_target::resume): Adjust.
3607 (remote_target::commit_resume): Adjust.
3608 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3610 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3611 Tom Tromey <tom@tromey.com>
3613 * stap-probe.c (stap_parse_single_operand): Handle '!'
3615 (stap_parse_argument_conditionally): Likewise.
3616 Skip spaces after processing open-parenthesis sub-expression.
3617 (stap_parse_argument_1): Skip spaces after call to
3618 stap_parse_argument_conditionally.
3619 Handle case when right-side expression is a parenthesized
3621 Skip spaces after call to stap_parse_argument_1.
3623 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3625 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3627 2021-01-19 Luis Machado <luis.machado@linaro.org>
3629 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3630 memory and save data.
3631 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3632 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3633 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3634 (trad_frame_value_bytes_p): Remove.
3635 (trad_frame_reset_saved_regs): Adjust documentation.
3636 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3637 constructor and reset the state of the registers.
3638 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3639 (trad_frame_value_bytes_p, trad_frame_set_value)
3640 (trad_frame_set_realreg, trad_frame_set_addr)
3641 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3642 (trad_frame_set_reg_realreg): Update to call member function.
3643 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3644 (trad_frame_get_prev_register): Likewise.
3646 * aarch64-tdep.c (aarch64_analyze_prologue)
3647 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3648 (aarch64_prologue_prev_register): Update to use member functions.
3649 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3650 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3651 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3652 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3653 (arm_make_epilogue_frame_cache): Likewise.
3654 * avr-tdep.c (avr_frame_unwind_cache)
3655 (avr_frame_prev_register): Likewise.
3656 * cris-tdep.c (cris_scan_prologue): Likewise.
3657 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3658 * frv-tdep.c (frv_analyze_prologue): Likewise.
3659 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3660 * lm32-tdep.c (lm32_frame_cache): Likewise.
3661 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3662 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3663 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3664 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3665 (reset_saved_regs): Adjust to set realreg.
3666 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3667 call member functions.
3668 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3669 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3670 (s390_backchain_frame_unwind_cache): Likewise.
3671 * score-tdep.c (score7_analyze_prologue)
3672 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3673 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3674 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3675 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3676 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3677 * tilegx-tdep.c (tilegx_analyze_prologue)
3678 (tilegx_frame_cache): Likewise.
3679 * v850-tdep.c (v850_frame_cache): Likewise.
3680 * vax-tdep.c (vax_frame_cache): Likewise.
3682 2021-01-19 Luis Machado <luis.machado@linaro.org>
3684 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3686 (put_frame_register_bytes): Likewise.
3687 Adjust documentation.
3688 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3689 (safe_frame_unwind_memory): Likewise.
3690 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3691 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3693 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3694 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3695 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3696 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3697 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3698 * dwarf2/loc.c (rw_pieced_value): Likewise.
3699 * hppa-tdep.c (hppa_frame_cache): Likewise.
3700 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3701 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3702 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3703 (i386_linux_rt_sigtramp_start): Likewise.
3704 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3705 * i386-tdep.c (i386_register_to_value): Likewise.
3706 * i387-tdep.c (i387_register_to_value): Likewise.
3707 * ia64-tdep.c (ia64_register_to_value): Likewise.
3708 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3709 (m32r_linux_rt_sigtramp_start): Likewise.
3710 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3711 * m68k-tdep.c (m68k_register_to_value): Likewise.
3712 * mips-tdep.c (mips_register_to_value)
3713 (mips_value_to_register): Likewise.
3714 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3715 (ppcfbsd_sigtramp_frame_cache): Likewise.
3716 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3717 (ppcobsd_sigtramp_frame_cache): Likewise.
3718 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3719 (rs6000_register_to_value): Likewise.
3720 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3721 * tramp-frame.c (tramp_frame_start): Likewise.
3722 * valops.c (value_assign): Likewise.
3724 2021-01-19 Luis Machado <luis.machado@linaro.org>
3726 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3728 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3729 instead of buffer and size.
3730 (trad_frame_set_reg_value_bytes): Likewise.
3731 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3732 (trad_frame_set_value_bytes): Likewise.
3734 2021-01-18 Mike Frysinger <vapier@gentoo.org>
3736 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3738 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3740 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3741 (riscv_fbsd_gregset): Use riscv_supply_regset.
3742 (riscv_fbsd_fpregset): Likewise.
3743 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3744 (riscv_linux_fregset): Likewise.
3745 * riscv-tdep.c (riscv_supply_regset): Define new function.
3746 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3748 2021-01-18 Tom de Vries <tdevries@suse.de>
3751 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3753 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3756 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3758 * remote.c (class remote_target) <remote_hostio_send_command,
3759 remote_hostio_parse_result>: Constify parameter.
3760 (remote_hostio_parse_result): Likewise.
3761 (remote_target::remote_hostio_send_command): Adjust.
3762 (remote_target::remote_hostio_pread_vFile): Adjust.
3763 (remote_target::fileio_readlink): Adjust.
3764 (remote_target::fileio_fstat): Adjust.
3766 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3768 * remote.c (remote_target::start_remote): Move wait_status to
3771 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3773 * remote.c (class remote_target):
3774 <add_current_inferior_and_thread>: Constify parameter.
3775 (stop_reply_extract_thread): Likewise.
3776 (remote_target::get_current_thread): Likewise.
3777 (remote_target::add_current_inferior_and_thread): Likewise.
3779 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3781 * remote.c (class remote_target)
3782 <remote_unpack_thread_info_response,
3783 parse_threadlist_response>: Constify parameter and/or return
3784 value and or local variable.
3785 (stub_unpack_int): Likewise.
3786 (unpack_nibble): Likewise.
3787 (unpack_byte): Likewise.
3788 (unpack_int): Likewise.
3789 (unpack_string): Likewise.
3790 (unpack_threadid): Likewise.
3791 (remote_target::remote_unpack_thread_info_response): Likewise.
3792 (remote_target::parse_threadlist_response): Likewise.
3794 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3796 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3798 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
3800 * MAINTAINERS (Write After Approval): Add myself.
3802 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3804 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3805 because is_trivially_default_constructible was first implemented with
3808 2021-01-14 Tom de Vries <tdevries@suse.de>
3810 PR breakpoints/27151
3811 * objfiles.h (in_plt_section): Handle .plt.sec.
3813 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3817 (remote_target::select_thread_for_ambiguous_stop_reply): New
3819 (remote_target::process_stop_reply): Call
3820 select_thread_for_ambiguous_stop_reply.
3822 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3824 * record-btrace.c (class record_btrace_target): Remove.
3825 (record_btrace_target::commit_resume): Remove.
3826 * record-full.c (class record_full_target): Remove.
3827 (record_full_target::commit_resume): Remove.
3829 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3831 * remote.c (enum class resume_state): New.
3832 (struct resumed_pending_vcont_info): New.
3833 (struct remote_thread_info) <resume_state, set_not_resumed,
3834 set_resumed_pending_vcont, resumed_pending_vcont_info,
3835 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3837 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3838 (remote_target::remote_add_thread): Adjust.
3839 (remote_target::process_initial_stop_replies): Adjust.
3840 (remote_target::resume): Adjust.
3841 (remote_target::commit_resume): Rely on state in
3842 remote_thread_info and not on tp->executing.
3843 (remote_target::process_stop_reply): Adjust.
3845 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3847 * arc-tdep.h (arc_debug_printf): New.
3848 * arc-tdep.c: Use arc_debug_printf.
3849 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3850 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3851 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3853 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3855 * arc-tdep.h (arc_debug): Change type to bool.
3856 * arc-tdep.c (arc_debug): Change type to bool.
3857 (arc_analyze_prologue): Adjust.
3858 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3859 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3861 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3863 * auto-load.c (auto_load_objfile_script_1): Use bool.
3864 (execute_script_contents): Use bool.
3866 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3868 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3870 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3872 * extension-priv.h (struct extension_language_script_ops)
3873 <auto_load_enabled>: Return bool.
3874 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3876 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3878 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3880 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3881 move comment to header.
3882 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3884 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3885 move comment to header.
3887 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3889 * auto-load.h (file_is_auto_load_safe): Change return type to
3890 bool, move comment here.
3891 * auto-load.c (file_is_auto_load_safe): Change return type and
3892 advice_printed to bool. Move comment to header.
3894 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3896 * jit.c (jit_debug_printf): New, use throughout file.
3898 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3900 * infrun.c (normal_stop): Fix indentation.
3902 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3904 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3906 * symfile.h: ... here.
3907 * symfile.c: Update doc.
3909 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3911 * target.h (baud_rate, serial_parity): Move declarations...
3912 * serial.h: ... here.
3913 * main.c: Include serial.h.
3914 * serial.c (baud_rate, serial_parity): Update doc.
3916 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3918 * top.c (pre_init_ui_hook): Remove.
3920 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3922 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3923 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3924 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3925 * features/aarch64-fpu.xml: Add bfloat16 type.
3927 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3929 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3931 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3933 * f-exp.y (dot_ops): Rename to...
3934 (fortran_operators): ...this. Add a header comment. Add symbol
3936 (yylex): Update to use fortran_operators not dot_ops. Remove
3937 special handling for '**', this is now included in
3940 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3942 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3943 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3944 * aarch64-tdep.c: Use aarch64_debug_printf.
3946 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3948 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3951 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3953 * jit.c (jit_debug): Change type to bool.
3954 (_initialize_jit): Adjust.
3956 2021-01-09 Tom Tromey <tom@tromey.com>
3959 * compile/compile.c (compile_to_object): Avoid crash when
3960 osabi_triplet_regexp returns NULL.
3962 2021-01-09 Tom Tromey <tom@tromey.com>
3964 * tracepoint.h (class collection_list) <append_exp>: Take a
3966 * tracepoint.c (collection_list::append_exp): Take a std::string.
3967 (encode_actions_1): Update.
3969 2021-01-08 Tom Tromey <tromey@adacore.com>
3971 * parse.c (parse_expression): Add void_context_p parameter. Use
3972 parse_exp_in_context.
3973 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3975 (print_command, call_command): Update.
3976 * expression.h (parse_expression): Add void_context_p parameter.
3978 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3980 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3981 for internalvar components that have a dynamic location.
3983 2021-01-08 Tom de Vries <tdevries@suse.de>
3986 * breakpoint.c (create_exception_master_breakpoint_probe)
3987 (create_exception_master_breakpoint_hook): Factor out
3989 (create_exception_master_breakpoint): ... here. Only try to install
3990 the master exception breakpoint in objfile.debug using the
3991 _Unwind_DebugHook method, if the install using probes in objfile
3994 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3996 * f-lang.c (fortran_value_subarray): Call value_from_component.
3998 2021-01-07 Mike Frysinger <vapier@gentoo.org>
4000 * remote-sim.c: Include memory-map.h.
4001 (gdbsim_target): Define memory_map override.
4002 (gdbsim_target::memory_map): Define.
4004 2021-01-07 Tom Tromey <tromey@adacore.com>
4006 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
4008 2021-01-07 Tom Tromey <tromey@adacore.com>
4010 * ada-lang.c (add_component_interval): Start loop using vector's
4013 2021-01-06 Tom Tromey <tromey@adacore.com>
4015 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
4017 * valarith.c (fixed_point_binop): Handle multiplication
4018 and division specially.
4019 * valops.c (value_to_gdb_mpq): New function.
4020 (value_cast_to_fixed_point): Use it.
4022 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
4024 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4025 Call wnoutrefresh instead of tui_win_info::refresh_window.
4027 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
4029 * tui/tui-source.c (tui_source_window::show_line_number):
4030 Redraw second space after line number.
4032 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
4035 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4036 Fix source pad size in prefresh.
4037 (tui_source_window_base::show_source_content): Grow source pad
4040 2021-01-04 Mike Frysinger <vapier@gentoo.org>
4042 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
4043 (bfin_frame_align): Use align_down.
4045 2021-01-04 Tom de Vries <tdevries@suse.de>
4047 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
4048 terminators that do not terminate anything.
4050 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
4052 * debug.c (debug_print_depth): New.
4053 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
4054 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
4055 * infrun.c (start_step_over): Use
4056 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4057 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
4058 INFRUN_SCOPED_DEBUG_START_END.
4059 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4061 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
4063 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
4065 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
4067 * utils.c (vfprintf_unfiltered): Print timestamp only when
4068 previous debug output ended with a newline.
4070 2021-01-04 Luis Machado <luis.machado@linaro.org>
4072 Update all users of trad_frame_saved_reg to use the new member
4075 Remote all struct keywords from declarations of trad_frame_saved_reg
4076 types, except on forward declarations.
4078 * aarch64-tdep.c: Update.
4079 * alpha-mdebug-tdep.c: Update.
4080 * alpha-tdep.c: Update.
4081 * arc-tdep.c: Update.
4082 * arm-tdep.c: Update.
4083 * avr-tdep.c: Update.
4084 * cris-tdep.c: Update.
4085 * csky-tdep.c: Update.
4086 * frv-tdep.c: Update.
4087 * hppa-linux-tdep.c: Update.
4088 * hppa-tdep.c: Update.
4089 * hppa-tdep.h: Update.
4090 * lm32-tdep.c: Update.
4091 * m32r-linux-tdep.c: Update.
4092 * m32r-tdep.c: Update.
4093 * m68hc11-tdep.c: Update.
4094 * mips-tdep.c: Update.
4095 * moxie-tdep.c: Update.
4096 * riscv-tdep.c: Update.
4097 * rs6000-tdep.c: Update.
4098 * s390-linux-tdep.c: Update.
4099 * s390-tdep.c: Update.
4100 * score-tdep.c: Update.
4101 * sparc-netbsd-tdep.c: Update.
4102 * sparc-sol2-tdep.c: Update.
4103 * sparc64-fbsd-tdep.c: Update.
4104 * sparc64-netbsd-tdep.c: Update.
4105 * sparc64-obsd-tdep.c: Update.
4106 * sparc64-sol2-tdep.c: Update.
4107 * tilegx-tdep.c: Update.
4108 * v850-tdep.c: Update.
4109 * vax-tdep.c: Update.
4111 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4112 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4114 * trad-frame.c: Update.
4115 Remove TF_REG_* enum.
4116 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4117 a trivially-constructible struct.
4118 (trad_frame_reset_saved_regs): Adjust to use member function.
4119 (trad_frame_value_p): Likewise.
4120 (trad_frame_addr_p): Likewise.
4121 (trad_frame_realreg_p): Likewise.
4122 (trad_frame_value_bytes_p): Likewise.
4123 (trad_frame_set_value): Likewise.
4124 (trad_frame_set_realreg): Likewise.
4125 (trad_frame_set_addr): Likewise.
4126 (trad_frame_set_unknown): Likewise.
4127 (trad_frame_set_value_bytes): Likewise.
4128 (trad_frame_get_prev_register): Likewise.
4129 * trad-frame.h: Update.
4130 (trad_frame_saved_reg_kind): New enum.
4131 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4132 <m_kind, m_reg>: New member fields.
4133 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4134 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4135 <is_addr, is_unknown, is_value_bytes>: New member functions.
4137 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
4139 * target-float.c: Fix typos.
4141 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
4143 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4145 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4147 * gdbarch.sh: Update copyright year range.
4149 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4151 Update copyright year range in copyright header of all GDB files.
4153 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4155 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4156 to the list of directories to update.
4158 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4160 * top.c (print_gdb_version): Update copyright year.
4162 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4164 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
4166 For older changes see ChangeLog-2020.
4172 version-control: never