1 2021-03-20 Tom Tromey <tom@tromey.com>
3 * psymtab.c (psymbol_functions::count_psyms): Rename.
4 (psymbol_functions::print_stats): Update.
5 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
8 2021-03-20 Tom Tromey <tom@tromey.com>
10 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
11 (psymbol_functions::find_pc_sect_psymtab): Rename.
12 (psymbol_functions::find_pc_sect_compunit_symtab)
13 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
14 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
16 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
18 2021-03-20 Tom Tromey <tom@tromey.com>
20 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
21 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
22 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
24 (add_psymbol_to_bcache): Remove.
25 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
26 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
28 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
29 <add_psymbol>: Likewise.
30 (standard_psymtab, legacy_psymtab): Likewise.
31 * mdebugread.c (parse_partial_symbols): Update.
32 (handle_psymbol_enumerators): Add partial_symtabs parameter.
33 (handle_psymbol_enumerators): Update.
34 (new_psymtab): Add partial_symtabs parameter.
35 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
36 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
38 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
39 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
41 * dbxread.c (read_dbx_symtab): Update.
42 (start_psymtab): Add partial_symtabs parameter.
43 (dbx_end_psymtab): Update.
44 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
45 (ctf_psymtab): Add partial_symtabs parameter.
46 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
48 (scan_partial_symbols): Add partial_symtabs parameter.
49 (scan_partial_symbols, elfctf_build_psymtabs)
50 (ctf_psymtab_add_enums): Update.
52 2021-03-20 Tom Tromey <tom@tromey.com>
54 * symfile.c (read_symbols): Use objfile method.
55 * symfile-debug.c (objfile::require_partial_symbols): New method.
56 * psymtab.h (require_partial_symbols): Don't declare.
57 * psymtab.c (require_partial_symbols): Use objfile method. Now
59 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
60 (psymbol_functions::lookup_symbol)
61 (psymbol_functions::lookup_global_symbol_language)
62 (psymbol_functions::find_last_source_symtab)
63 (psymbol_functions::forget_cached_source_info)
64 (psymbol_functions::print_stats)
65 (psymbol_functions::expand_symtabs_for_function)
66 (psymbol_functions::expand_all_symtabs)
67 (psymbol_functions::expand_symtabs_with_fullname)
68 (psymbol_functions::map_symbol_filenames)
69 (psymbol_functions::map_matching_symbols)
70 (psymbol_functions::expand_symtabs_matching)
71 (psymbol_functions::find_compunit_symtab_by_address)
72 (maintenance_print_psymbols, maintenance_info_psymtabs)
73 (maintenance_check_psymtabs): Update.
74 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
77 2021-03-20 Tom Tromey <tom@tromey.com>
79 * xcoffread.c (xcoff_sym_fns): Update.
80 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
81 * symfile-debug.c (objfile::has_partial_symbols): Use
82 can_lazily_read_symbols.
83 (debug_sym_read_psymbols): Remove.
84 (debug_sym_fns, install_symfile_debug_logging): Update.
85 * quick-symbol.h (struct quick_symbol_functions)
86 <can_lazily_read_symbols, read_partial_symbols>: New methods.
87 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
88 * mipsread.c (ecoff_sym_fns): Update.
89 * machoread.c (macho_sym_fns): Update.
90 * elfread.c (struct lazy_dwarf_reader): New.
91 (elf_symfile_read): Update.
92 (read_psyms): Now a method of lazy_dwarf_reader.
93 (elf_sym_fns): Update.
94 (elf_sym_fns_lazy_psyms): Remove.
95 * dbxread.c (aout_sym_fns): Update.
96 * coffread.c (coff_sym_fns): Update.
98 2021-03-20 Tom Tromey <tom@tromey.com>
100 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
101 (reread_symbols): Move reset_psymtabs call later.
102 * objfiles.c (objfile::objfile): Don't initialize
105 2021-03-20 Tom Tromey <tom@tromey.com>
107 * dwarf2/read.c (dwarf2_build_psymtabs): Call
109 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
110 * psymtab.h (make_psymbol_functions): Add partial_symtabs
112 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
114 (psymbol_functions::find_pc_sect_compunit_symtab)
115 (psymbol_functions::print_stats, psymbol_functions::dump)
116 (psymbol_functions::has_symbols): Update.
117 (make_psymbol_functions, dump_psymtab_addrmap): Add
118 partial_symtabs parameter.
119 (maintenance_print_psymbols): Update.
120 (psymbol_functions::expand_symtabs_matching): Update.
121 * psympriv.h (struct psymbol_functions): Add constructor.
122 <m_partial_symtabs>: New member.
123 <set_partial_symtabs>: New method.
125 2021-03-20 Tom Tromey <tom@tromey.com>
127 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
129 (process_psymtab_comp_unit_reader)
130 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
131 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
132 Reference psymtabs via per_bfd.
134 2021-03-20 Tom Tromey <tom@tromey.com>
136 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
138 (add_address_entry): Remove objfile parameter.
139 (add_address_entry_worker): Update.
140 (write_address_map): Replace objfile parameter with per_bfd.
141 (write_gdbindex, write_psymtabs_to_index): Update.
143 2021-03-20 Tom Tromey <tom@tromey.com>
145 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
146 print_bcache parameter.
147 * symfile-debug.c (objfile::print_stats): Add print_bcache
149 * quick-symbol.h (struct quick_symbol_functions)
150 <print_stats>: Add print_bcache parameter.
151 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
153 (print_objfile_statistics): Move psymtab code to psymtab.c.
154 * psymtab.c (count_psyms): Move from symmisc.c.
155 (psymbol_functions::print_stats): Print partial symbol and bcache
156 statistics. Add print_bcache parameter.
157 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
158 (struct objfile) <print_stats>: Add print_bcache parameter.
159 * maint.c (maintenance_print_statistics): Update.
161 2021-03-20 Tom Tromey <tom@tromey.com>
163 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
165 * dwarf2/read.c (create_addrmap_from_index)
166 (create_addrmap_from_aranges): Set per_bfd addrmap.
167 (dwarf2_read_gdb_index): Don't set partial_symtabs.
168 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
170 (dwarf2_read_debug_names): Don't set partial_symtabs.
171 (dwarf2_initialize_objfile): Likewise.
173 2021-03-20 Tom Tromey <tom@tromey.com>
175 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
178 2021-03-20 Tom Tromey <tom@tromey.com>
180 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
181 (~psymtab_discarder, keep): Update.
183 <m_partial_symtabs>: New member.
184 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
186 2021-03-20 Tom Tromey <tom@tromey.com>
188 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
189 (xcoff_end_psymtab): Update.
190 (scan_xcoff_symtab): Add partial_symtabs parameter.
191 (xcoff_initial_scan): Update.
192 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
193 * mdebugread.c (mdebug_build_psymtabs): Update.
194 (parse_partial_symbols): Add partial_symtabs parameter.
195 * dbxread.c (dbx_symfile_read): Update.
196 (read_dbx_symtab): Add partial_symtabs parameter.
197 (read_dbx_symtab): Update.
198 (dbx_end_psymtab): Add partial_symtabs parameter.
200 2021-03-20 Tom Tromey <tom@tromey.com>
202 * quick-symbol.h (struct quick_symbol_functions)
203 <relocated>: New method.
204 * psymtab.h (struct psymbol_functions) <relocated>: New
206 <fill_psymbol_map>: Declare method.
207 <m_psymbol_map>: New member.
208 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
209 (psymbol_functions::find_compunit_symtab_by_address): Update.
210 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
211 (struct objfile) <psymbol_map>: Remove.
212 * objfiles.c (objfile_relocate1): Update.
214 2021-03-20 Tom Tromey <tom@tromey.com>
216 * psympriv.h (struct psymbol_functions): New.
217 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
218 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
219 (objfile::lookup_global_symbol_language): Update.
220 * quick-symbol.h (struct quick_symbol_functions): Convert function
221 pointers to methods. Add virtual destructor.
222 (quick_symbol_functions_up): New typedef.
223 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
224 (dwarf2_debug_names_functions): Don't declare.
225 (make_psymbol_functions): Declare.
226 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
227 (psymbol_functions::find_pc_sect_compunit_symtab)
228 (psymbol_functions::lookup_symbol)
229 (psymbol_functions::lookup_global_symbol_language)
230 (psymbol_functions::find_last_source_symtab)
231 (psymbol_functions::forget_cached_source_info)
232 (psymbol_functions::print_stats, psymbol_functions::dump)
233 (psymbol_functions::expand_symtabs_for_function)
234 (psymbol_functions::expand_all_symtabs)
235 (psymbol_functions::expand_symtabs_with_fullname)
236 (psymbol_functions::map_symbol_filenames)
237 (psymbol_functions::map_matching_symbols)
238 (psymbol_functions::expand_symtabs_matching)
239 (psymbol_functions::has_symbols)
240 (psymbol_functions::find_compunit_symtab_by_address): Rename.
241 (psym_functions): Remove.
242 (make_psymbol_functions): New function.
243 * objfiles.h (struct objfile) <qf>: Change type.
244 * elfread.c (elf_symfile_read): Update.
245 * dwarf2/read.c (struct dwarf2_base_index_functions)
246 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
247 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
248 (dwarf2_base_index_functions::find_last_source_symtab)
249 (dwarf2_base_index_functions::forget_cached_source_info)
250 (dwarf2_base_index_functions::map_symtabs_matching_filename)
251 (dwarf2_gdb_index::lookup_symbol)
252 (dwarf2_base_index_functions::print_stats)
253 (dwarf2_gdb_index::dump)
254 (dwarf2_gdb_index::expand_symtabs_for_function)
255 (dwarf2_base_index_functions::expand_all_symtabs)
256 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
258 (dwarf2_gdb_index::map_matching_symbols): New method.
259 (dwarf2_gdb_index::expand_symtabs_matching): New method.
260 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
261 (dwarf2_base_index_functions::map_symbol_filenames)
262 (dwarf2_base_index_functions::has_symbols): Rename.
263 (dwarf2_gdb_index_functions): Remove.
264 (dwarf2_debug_names_index::lookup_symbol)
265 (dwarf2_debug_names_index::dump)
266 (dwarf2_debug_names_index::expand_symtabs_for_function)
267 (dwarf2_debug_names_index::map_matching_symbols)
268 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
269 (dwarf2_debug_names_functions): Remove.
270 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
273 2021-03-20 Tom Tromey <tom@tromey.com>
275 * psymtab.c (require_partial_symbols): Check that 'sf' is not
277 * xcoffread.c (xcoff_sym_fns): Update.
278 * symfile.h (struct sym_fns) <qf>: Remove.
279 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
280 * symfile-debug.c (objfile::has_partial_symbols)
281 (objfile::find_last_source_symtab)
282 (objfile::forget_cached_source_info)
283 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
284 (objfile::print_stats, objfile::dump)
285 (objfile::expand_symtabs_for_function)
286 (objfile::expand_all_symtabs)
287 (objfile::expand_symtabs_with_fullname)
288 (objfile::map_matching_symbols)
289 (objfile::expand_symtabs_matching)
290 (objfile::find_pc_sect_compunit_symtab)
291 (objfile::map_symbol_filenames)
292 (objfile::find_compunit_symtab_by_address)
293 (objfile::lookup_global_symbol_language, debug_sym_fns)
294 (install_symfile_debug_logging): Update.
295 * objfiles.h (struct objfile) <qf>: New member.
296 * mipsread.c (ecoff_sym_fns): Update.
297 * machoread.c (macho_sym_fns): Update.
298 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
300 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
301 * dbxread.c (aout_sym_fns): Update.
302 * coffread.c (coff_sym_fns): Update.
304 2021-03-20 Tom Tromey <tom@tromey.com>
306 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
307 (expand_symtabs_file_matcher_ftype)
308 (expand_symtabs_symbol_matcher_ftype)
309 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
310 Move to quick-symbol.h.
311 * quick-symbol.h: New file.
313 2021-03-20 Tom Tromey <tom@tromey.com>
315 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
316 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
317 (basic_lookup_transparent_type_quick)
318 (find_pc_sect_compunit_symtab, find_symbol_at_address)
319 (find_line_symtab, global_symbol_searcher::expand_symtabs):
321 * symmisc.c (print_objfile_statistics, dump_objfile)
322 (maintenance_expand_symtabs): Update.
323 * symfile.c (symbol_file_add_with_addrs)
324 (expand_symtabs_matching, map_symbol_filenames): Update.
325 * symfile-debug.c (objfile::has_partial_symbols)
326 (objfile::find_last_source_symtab)
327 (objfile::forget_cached_source_info)
328 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
329 (objfile::print_stats, objfile::dump)
330 (objfile::expand_symtabs_for_function)
331 (objfile::expand_all_symtabs)
332 (objfile::expand_symtabs_with_fullname)
333 (objfile::map_matching_symbols)
334 (objfile::expand_symtabs_matching)
335 (objfile::find_pc_sect_compunit_symtab)
336 (objfile::map_symbol_filenames)
337 (objfile::find_compunit_symtab_by_address)
338 (objfile::lookup_global_symbol_language): New methods.
339 (debug_sym_quick_functions): Remove.
340 (debug_sym_fns, install_symfile_debug_logging): Update.
341 * source.c (forget_cached_source_info_for_objfile)
342 (select_source_symtab): Update.
343 * objfiles.h (struct objfile): Add methods corresponding to
344 quick_symbol_functions.
345 * objfiles.c (objfile::has_partial_symbols): Move to
347 * linespec.c (iterate_over_all_matching_symtabs): Update.
348 * cp-support.c (add_symbol_overload_list_qualified): Update.
349 * ada-lang.c (add_nonlocal_symbols): Update.
351 2021-03-20 Tom Tromey <tom@tromey.com>
353 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
354 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
356 * symfile-debug.c (debug_qf_has_symbols): Return bool.
357 * psymtab.c (psym_has_symbols): Return bool.
358 * objfiles.c (objfile::has_partial_symbols): Return bool.
359 * dwarf2/read.c (dw2_has_symbols): Return bool.
361 2021-03-20 Tom Tromey <tom@tromey.com>
363 * symfile.c (read_symbols): Update.
364 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
365 (objfile_has_partial_symbols): Don't declare.
366 * objfiles.c (objfile::has_partial_symbols): Rename from
367 objfile_has_partial_symbols.
368 (objfile_has_symbols, have_partial_symbols): Update.
369 * elfread.c (elf_symfile_read): Update.
370 * dwarf2/read.c (dwarf2_has_info): Update.
371 * coffread.c (coff_symfile_read): Update.
373 2021-03-20 Tom Tromey <tom@tromey.com>
375 * coffread.c: Include dwarf2/public.h.
376 * dwarf2/frame.c: Include dwarf2/public.h.
377 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
378 * dwarf2/public.h: New file.
379 * dwarf2/read.c: Include dwarf2/public.h.
380 * elfread.c: Include dwarf2/public.h.
381 * machoread.c: Include dwarf2/public.h.
382 * symfile.h (dwarf2_has_info, enum dw_index_kind)
383 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
384 (dwarf2_build_frame_info): Move to dwarf2/public.h.
385 * xcoffread.c: Include dwarf2/public.h.
387 2021-03-20 Tom Tromey <tom@tromey.com>
389 * symfile.h (enum dwarf2_section_enum)
390 (dwarf2_get_section_info): Move to dwarf2/read.h.
391 * dwarf2/read.h (enum dwarf2_section_enum)
392 (dwarf2_get_section_info): Move from symfile.h.
394 2021-03-19 Pedro Alves <pedro@palves.net>
396 * thread.c (any_thread_of_inferior): Check if there's a selected
397 thread before calling inferior_thread().
399 2021-03-18 Tom Tromey <tromey@adacore.com>
401 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
403 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
404 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
406 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
408 * python/py-param.c (get_set_value): Update header comment.
410 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
412 * infrun.c (check_multi_target_resumption): Remove argument to
413 all_non_exited_inferiors.
415 2021-03-16 Christian Biesinger <cbiesinger@google.com>
417 * windows-nat.c (windows_init_thread_list): Add message to
420 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
422 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
423 well as PyLong_Check for Python 2.
425 2021-03-15 Tom Tromey <tromey@adacore.com>
428 * rust-exp.y (maker_map): Use gdb::hash_enum.
429 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
431 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
433 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
436 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
438 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
439 parameter, adjust caller.
441 2021-03-15 Tom Tromey <tromey@adacore.com>
443 * ada-exp.y (simple_exp): Always push a result for unary '+'.
445 2021-03-15 Tom Tromey <tromey@adacore.com>
447 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
448 ada_ensure_varsize_limit.
450 2021-03-15 Tom Tromey <tromey@adacore.com>
452 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
454 * ada-exp.y (maybe_overload): New function.
455 (ada_wrap_overload): New function.
456 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
457 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
458 (or_else_exp, xor_exp, primary): Update.
460 2021-03-15 Tom Tromey <tromey@adacore.com>
463 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
464 call for tagged type.
466 2021-03-15 Tom Tromey <tromey@adacore.com>
468 * ada-exp.y (exp1): Handle resolution of the right hand side of an
471 2021-03-15 Tom Tromey <tromey@adacore.com>
473 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
475 (ada_assign_operation::evaluate): Update.
476 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
479 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
481 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
483 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
485 * python/python.c (gdbpy_source_objfile_script): Use
486 make_scoped_restore to restore gdbpy_current_objfile.
487 (gdbpy_execute_objfile_script): Likewise.
489 2021-03-14 Tom Tromey <tom@tromey.com>
491 * dwarf2/read.c (read_attribute_value): Use cu_header
494 2021-03-14 Tom Tromey <tom@tromey.com>
496 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
497 (peek_die_abbrev): Use reader.abfd.
499 2021-03-14 Tom Tromey <tom@tromey.com>
501 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
504 2021-03-13 Tom Tromey <tom@tromey.com>
506 * dwarf2/read.c (struct partial_die_info): Update.
507 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
508 (load_partial_dies, partial_die_info::partial_die_info): Update.
509 * dwarf2/abbrev.h (lookup_abbrev): Constify.
511 2021-03-13 Tom Tromey <tom@tromey.com>
513 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
515 2021-03-12 Christian Biesinger <cbiesinger@google.com>
518 * cp-support.c: Use scoped_segv_handler_restore.
519 * event-top.c (thread_local_segv_handler): Made static.
520 (scoped_segv_handler_restore::scoped_segv_handler_restore):
522 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
524 * event-top.h (class scoped_segv_handler_restore): New class.
525 (thread_local_segv_handler): Removed.
527 2021-03-10 Tom Tromey <tromey@adacore.com>
529 * parser-defs.h (parser_state): Change completion to bool.
530 <parse_completion>: Likewise.
531 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
532 (ada_resolve_variable, ada_resolve_function): Update.
533 * ada-lang.c (ada_find_operator_symbol): Change
534 parse_completion to bool.
535 (ada_resolve_funcall, ada_resolve_variable)
536 (ada_resolve_function): Likewise.
538 2021-03-09 Tom Tromey <tromey@adacore.com>
540 * eval.c (operation::evaluate_funcall): Use function formal
541 parameter types when evaluating.
543 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
545 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
546 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
547 and owner to m_owner.
549 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
551 * f-exp.h (eval_op_f_loc): Declare.
552 (expr::fortran_loc_operation): New typedef.
553 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
555 (f77_keywords): Add LOC keyword.
556 * f-lang.c (eval_op_f_loc): New function.
557 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
559 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
561 * f-exp.h (eval_op_f_array_shape): Declare.
562 (fortran_array_shape_operation): New type.
563 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
565 (f77_keywords): Add "shape" keyword.
566 * f-lang.c (fortran_array_shape): New function.
567 (eval_op_f_array_shape): New function.
568 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
570 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
572 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
574 (expr::fortran_array_size_1arg): New type.
575 (expr::fortran_array_size_2arg): Likewise.
576 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
577 UNOP_OR_BINOP_INTRINSIC.
578 (f77_keywords): Add "size" keyword.
579 * f-lang.c (fortran_array_size): New function.
580 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
581 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
583 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
585 * f-exp.h (eval_op_f_rank): Declare.
586 (expr::fortran_rank_operation): New typedef.
587 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
589 (f77_keywords): Add "rank" keyword.
590 * f-lang.c (eval_op_f_rank): New function.
591 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
593 2021-03-08 Tom Tromey <tom@tromey.com>
595 * printcmd.c (set_command): Remove null check.
596 * value.c (init_if_undefined_command): Remove null check.
598 2021-03-08 Tom Tromey <tom@tromey.com>
600 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
602 * p-exp.y (variable): Update.
603 * go-exp.y (variable): Update.
604 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
605 Remove overload for objfile.
606 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
608 (check_objfile): Likewise.
609 (dump_for_expression): Likewise. Remove overload for objfile.
610 (class var_msym_value_operation): Use bound_minimal_symbol.
611 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
613 (var_msym_value_operation::evaluate_for_address)
614 (var_msym_value_operation::evaluate_for_sizeof)
615 (var_msym_value_operation::evaluate_for_cast): Update.
616 * d-exp.y (PrimaryExpression): Update.
617 * c-exp.y (variable): Update.
618 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
619 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
621 * ada-exp.y (write_var_or_type): Update.
623 2021-03-08 Tom Tromey <tom@tromey.com>
625 * parser-defs.h (exp_uses_objfile): Return bool.
626 * parse.c (exp_uses_objfile): Return bool.
628 2021-03-08 Tom Tromey <tom@tromey.com>
630 * value.h (eval_skip_value): Don't declare.
631 * opencl-lang.c (eval_opencl_assign): Update.
632 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
633 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
634 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
635 * expression.h (enum noside) <EVAL_SKIP>: Remove.
636 * expop.h (typeof_operation::evaluate)
637 (decltype_operation::evaluate, unop_addr_operation::evaluate)
638 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
639 (cxx_cast_operation::evaluate): Update.
640 * eval.c (eval_skip_value): Remove.
641 (eval_op_scope, eval_op_var_entry_value)
642 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
643 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
644 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
645 (eval_op_binary, eval_op_subscript, eval_op_equal)
646 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
647 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
648 (eval_op_complement, eval_op_lognot, eval_op_ind)
649 (eval_op_memval, eval_op_preinc, eval_op_predec)
650 (eval_op_postinc, eval_op_postdec, eval_op_type)
651 (eval_binop_assign_modify, eval_op_objc_msgcall)
652 (eval_multi_subscript, logical_and_operation::evaluate)
653 (logical_or_operation::evaluate, array_operation::evaluate)
654 (operation::evaluate_for_cast)
655 (var_msym_value_operation::evaluate_for_cast)
656 (var_value_operation::evaluate_for_cast): Update.
657 * c-lang.c (c_string_operation::evaluate): Update.
658 * c-exp.h (objc_nsstring_operation::evaluate)
659 (objc_selector_operation::evaluate): Update.
660 * ada-lang.c (ada_assign_operation::evaluate)
661 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
662 (ada_atr_size): Update.
664 2021-03-08 Tom Tromey <tom@tromey.com>
666 * eval.c: Merge "namespace" scopes.
668 2021-03-08 Tom Tromey <tom@tromey.com>
670 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
672 * parse.c (expr_builder::expr_builder, expr_builder::release):
675 2021-03-08 Tom Tromey <tom@tromey.com>
677 * parse.c (expression::expression, expression::~expression):
679 * expression.h (struct expression): Inline constructor. Remove
682 2021-03-08 Tom Tromey <tom@tromey.com>
684 * std-operator.def (BINOP_END): Remove.
685 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
686 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
687 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
688 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
689 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
692 2021-03-08 Tom Tromey <tom@tromey.com>
694 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
696 2021-03-08 Tom Tromey <tom@tromey.com>
698 * std-operator.def (OP_EXTENDED0): Remove.
700 2021-03-08 Tom Tromey <tom@tromey.com>
702 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
703 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
706 2021-03-08 Tom Tromey <tom@tromey.com>
708 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
709 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
711 2021-03-08 Tom Tromey <tom@tromey.com>
713 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
714 * ada-lang.c (ada_binop_minmax): Update.
715 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
716 Use BINOP_MIN and BINOP_MAX.
718 2021-03-08 Tom Tromey <tom@tromey.com>
720 * value.h (evaluate_subexp_with_coercion): Don't declare.
721 * parse.c (exp_descriptor_standard): Remove.
722 (expr_builder::expr_builder, expr_builder::release): Update.
723 (expression::expression): Remove size_t parameter.
724 (expression::~expression): Simplify.
725 (expression::resize): Remove.
726 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
727 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
728 (write_exp_elt_longcst, write_exp_elt_floatcst)
729 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
730 (write_exp_string_vector, write_exp_bitstring): Remove.
731 * p-lang.h (class pascal_language) <opcode_print_table,
732 op_print_tab>: Remove.
733 * p-lang.c (pascal_language::op_print_tab): Remove.
734 * opencl-lang.c (class opencl_language) <opcode_print_table>:
736 * objc-lang.c (objc_op_print_tab): Remove.
737 (class objc_language) <opcode_print_table>: Remove.
738 * m2-lang.h (class m2_language) <opcode_print_table,
739 op_print_tab>: Remove.
740 * m2-lang.c (m2_language::op_print_tab): Remove.
741 * language.h (struct language_defn) <post_parser, expression_ops,
742 opcode_print_table>: Remove.
743 * language.c (language_defn::expression_ops)
744 (auto_or_unknown_language::opcode_print_table): Remove.
745 * go-lang.h (class go_language) <opcode_print_table,
746 op_print_tab>: Remove.
747 * go-lang.c (go_language::op_print_tab): Remove.
748 * f-lang.h (class f_language) <opcode_print_table>: Remove
749 <op_print_tab>: Remove.
750 * f-lang.c (f_language::op_print_tab): Remove.
751 * expression.h (union exp_element): Remove.
752 (struct expression): Remove size_t parameter from constructor.
754 <first_opcode>: Update.
755 <nelts, elts>: Remove.
756 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
757 (evaluate_subexp_standard, print_expression, op_string)
758 (dump_raw_expression): Don't declare.
759 * expprint.c (print_expression, print_subexp)
760 (print_subexp_funcall, print_subexp_standard, op_string)
761 (dump_raw_expression, dump_subexp, dump_subexp_body)
762 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
763 (dump_prefix_expression): Update.
764 * eval.c (evaluate_subexp): Remove.
765 (evaluate_expression, evaluate_type): Update.
766 (evaluate_subexpression_type): Remove.
767 (fetch_subexp_value): Remove "pc" parameter. Update.
768 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
769 (evaluate_subexp_standard, evaluate_subexp_for_address)
770 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
771 (evaluate_subexp_for_cast): Remove.
772 (parse_and_eval_type): Update.
773 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
774 * d-lang.c (d_op_print_tab): Remove.
775 (class d_language) <opcode_print_table>: Remove.
776 * c-lang.h (c_op_print_tab): Don't declare.
777 * c-lang.c (c_op_print_tab): Remove.
778 (class c_language, class cplus_language, class asm_language, class
779 minimal_language) <opcode_print_table>: Remove.
780 * breakpoint.c (update_watchpoint, watchpoint_check)
781 (watchpoint_exp_is_const, watch_command_1): Update.
782 * ax-gdb.h (union exp_element): Don't declare.
783 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
784 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
785 (gen_expr_binop_rest): Remove.
786 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
787 * ada-lang.c (ada_op_print_tab): Remove.
788 (class ada_language) <post_parser, opcode_print_table>: Remove.
790 2021-03-08 Tom Tromey <tom@tromey.com>
792 * go-lang.c (go_language::expression_ops): Don't declare.
793 * go-lang.h (class go_language) <expression_ops>: Remove.
794 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
796 (class opencl_language) <expression_ops>: Remove.
797 * d-lang.c (class d_language) <expression_ops>: Remove.
798 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
799 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
800 (class c_language, class cplus_language, class asm_language)
801 (class minimal_language) <expression_ops>: Remove.
803 2021-03-08 Tom Tromey <tom@tromey.com>
805 * ada-lang.c (resolve_subexp, replace_operator_with_call)
806 (evaluate_subexp_type, assign_aggregate)
807 (aggregate_assign_positional, aggregate_assign_from_choices)
808 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
809 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
810 (ada_operator_check, ada_forward_operator_length)
811 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
813 (post_parser): Update.
814 (class ada_language) <expresssion_ops>: Remove.
816 2021-03-08 Tom Tromey <tom@tromey.com>
818 * m2-lang.h (class m2_language) <expresssion_ops,
819 exp_descriptor_modula2>: Remove.
820 * m2-lang.c (evaluate_subexp_modula2)
821 (m2_language::exp_descriptor_modula2): Remove.
823 2021-03-08 Tom Tromey <tom@tromey.com>
825 * f-lang.h (class f_language) <expresssion_ops>: Remove.
826 <exp_descriptor_tab>: Remove.
827 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
828 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
829 (print_subexp_f, dump_subexp_body_f, operator_check_f)
830 (f_language::exp_descriptor_tab, fortran_prepare_argument):
833 2021-03-08 Tom Tromey <tom@tromey.com>
835 * rust-lang.h (class rust_language) <expression_ops,
836 exp_descriptor_tab>: Remove.
837 * rust-lang.c (rust_evaluate_funcall): Remove.
838 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
840 (rust_evaluate_subexp): Remove.
841 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
842 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
843 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
845 2021-03-08 Tom Tromey <tom@tromey.com>
847 * ada-exp.y: Create operations.
848 (empty_stoken): Remove.
849 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
850 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
851 (components): New global.
852 (push_component, choice_component, pop_component, pop_components):
854 (associations): New global
855 (push_association, pop_association, pop_associations): New
858 (write_var_from_sym, write_int): Create operations.
859 (write_exp_op_with_string): Remove.
860 (write_object_renaming, write_selectors, write_ambiguous_var)
861 (write_var_or_type, write_name_assoc): Create operations.
862 * ada-lang.h (ada_index_type): Declare.
863 * ada-lang.c (ada_index_type): No longer static.
865 2021-03-08 Tom Tromey <tom@tromey.com>
867 * f-exp.y: Create operations.
868 (f_language::parser): Update.
870 2021-03-08 Tom Tromey <tom@tromey.com>
872 * m2-exp.y: Create operations.
873 (m2_language::parser): Update.
875 2021-03-08 Tom Tromey <tom@tromey.com>
877 * p-exp.y: Create operations.
878 (pascal_language::parser): Update.
880 2021-03-08 Tom Tromey <tom@tromey.com>
882 * d-exp.y: Create operations.
885 2021-03-08 Tom Tromey <tom@tromey.com>
887 * go-exp.y: Create operations.
888 (go_language::parser): Update.
890 2021-03-08 Tom Tromey <tom@tromey.com>
892 * objc-lang.c (end_msglist): Create operations.
893 * c-exp.y: Change parser to create operations.
894 (write_destructor_name): Remove.
897 2021-03-08 Tom Tromey <tom@tromey.com>
899 * rust-exp.y: Create operations.
900 (rust_parser::convert_params_to_expression): Change return type.
901 (binop_maker_ftype): New typedef.
902 (maker_map): New global.
903 (rust_parser::convert_ast_to_expression): Change return type.
904 (rust_language::parser): Update.
905 (_initialize_rust_exp): Initialize maker_map.
907 2021-03-08 Tom Tromey <tom@tromey.com>
909 * stap-probe.c (binop_maker_ftype): New typedef.
910 (stap_maker_map): New global.
911 (stap_make_binop): New function.
912 (stap_parse_register_operand): Return operation_up.
913 (stap_parse_single_operand, stap_parse_argument_conditionally)
914 (stap_parse_argument_1): Likewise.
915 (stap_parse_argument): Create operations.
916 (stap_probe::parse_arguments): Update.
917 (_initialize_stap_probe): Initialize stap_maker_map.
918 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
920 * i386-tdep.h (i386_stap_parse_special_token): Change return
922 * i386-tdep.c (i386_stap_parse_special_token_triplet)
923 (i386_stap_parse_special_token_three_arg_disp)
924 (i386_stap_parse_special_token): Change return type.
925 * gdbarch.sh (stap_parse_special_token): Change return type.
926 * gdbarch.c: Rebuild.
927 * gdbarch.h: Rebuild.
928 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
930 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
933 2021-03-08 Tom Tromey <tom@tromey.com>
935 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
936 * gdbarch.h: Rebuild.
937 * gdbarch.c: Rebuild.
938 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
939 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
941 (amd64_dtrace_parse_probe_argument): Update.
943 2021-03-08 Tom Tromey <tom@tromey.com>
945 * parser-defs.h (struct parser_state) <push, push_new,
946 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
948 <m_operations>: New member.
949 * parse.c (parser_state::push_c_string)
950 (parser_state::push_symbol, parser_state::push_dollar): New
953 2021-03-08 Tom Tromey <tom@tromey.com>
955 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
957 (struct parser_state) <mark_struct_expression>: New method.
958 * parse.c (parser_state::mark_struct_expression): Update assert.
959 (parser_state::mark_struct_expression): New method.
960 (parser_state::mark_completion_tag): Update assert.
961 (parse_expression_for_completion): Handle expout_last_op.
963 2021-03-08 Tom Tromey <tom@tromey.com>
965 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
967 * value.h (fetch_subexp_value): Add "op" parameter.
968 * value.c (init_if_undefined_command): Update.
969 * tracepoint.c (validate_actionline, encode_actions_1): Update.
970 * stap-probe.c (stap_probe::compile_to_ax): Update.
971 * printcmd.c (set_command): Update.
972 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
974 * parser-defs.h (struct expr_builder) <set_operation>: New
976 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
977 * expression.h (struct expression) <first_opcode>: Update.
979 * expprint.c (dump_raw_expression, dump_prefix_expression):
981 * expop.h (class var_value_operation) <get_symbol>: New method.
982 (class register_operation) <get_name>: New method.
983 (class equal_operation): No longer a typedef, now a subclass.
984 (class unop_memval_operation) <get_type>: New method.
985 (class assign_operation) <get_lhs>: New method.
986 (class unop_cast_operation) <get_type>: New method.
987 * eval.c (evaluate_expression, evaluate_type)
988 (evaluate_subexpression_type): Update.
989 (fetch_subexp_value): Add "op" parameter.
990 (parse_and_eval_type): Update.
991 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
992 * breakpoint.c (update_watchpoint, watchpoint_check)
993 (watchpoint_exp_is_const, watch_command_1): Update.
994 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
997 2021-03-08 Tom Tromey <tom@tromey.com>
999 * ada-lang.c (ada_value_binop): Do not use op_string.
1001 2021-03-08 Tom Tromey <tom@tromey.com>
1003 * expprint.c (dump_for_expression): New overload.
1004 * expop.h (check_objfile, dump_for_expression): Declare new
1006 * ada-lang.c (check_objfile): New overload.
1007 (assign_component, ada_aggregate_component::uses_objfile)
1008 (ada_aggregate_component::dump, ada_aggregate_component::assign)
1009 (ada_aggregate_component::assign_aggregate)
1010 (ada_positional_component::uses_objfile)
1011 (ada_positional_component::dump, ada_positional_component::assign)
1012 (ada_discrete_range_association::uses_objfile)
1013 (ada_discrete_range_association::dump)
1014 (ada_discrete_range_association::assign)
1015 (ada_name_association::uses_objfile, ada_name_association::dump)
1016 (ada_name_association::assign)
1017 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1018 (ada_choices_component::assign)
1019 (ada_others_component::uses_objfile, ada_others_component::dump)
1020 (ada_others_component::assign, ada_assign_operation::evaluate):
1022 * ada-exp.h (ada_string_operation) <get_name>: New method.
1023 (class ada_assign_operation): New.
1024 (class ada_component): New.
1025 (ada_component_up): New typedef.
1026 (class ada_aggregate_operation, class ada_aggregate_component)
1027 (class ada_positional_component, class ada_others_component)
1028 (class ada_association): New.
1029 (ada_association_up): New typedef.
1030 (class ada_choices_component)
1031 (class ada_discrete_range_association)
1032 (class ada_name_association): New.
1034 2021-03-08 Tom Tromey <tom@tromey.com>
1036 * ada-lang.c (ada_var_value_operation::resolve)
1037 (ada_funcall_operation::resolve)
1038 (ada_ternop_slice_operation::resolve): New methods.
1039 * ada-exp.h (struct ada_resolvable): New.
1040 (class ada_var_value_operation): Derive from ada_resolvable.
1041 <get_block, resolve>: New methods.
1042 (class ada_funcall_operation): Derive from ada_resolvable.
1043 <resolve>: New method.
1044 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1045 <resolve>: New method.
1047 2021-03-08 Tom Tromey <tom@tromey.com>
1049 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1050 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1052 (class ada_funcall_operation): New.
1054 2021-03-08 Tom Tromey <tom@tromey.com>
1056 * ada-lang.c (ada_structop_operation::evaluate): New method.
1057 * ada-exp.h (class ada_structop_operation): New.
1059 2021-03-08 Tom Tromey <tom@tromey.com>
1061 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1062 * ada-exp.h (class ada_unop_ind_operation): New.
1064 2021-03-08 Tom Tromey <tom@tromey.com>
1066 * ada-lang.c (ada_binop_exp): No longer static.
1067 * ada-exp.h (ada_binop_exp_operation): New typedef.
1069 2021-03-08 Tom Tromey <tom@tromey.com>
1071 * ada-lang.c (ada_val_atr): No longer static.
1072 (ada_atr_val_operation::evaluate): New method.
1073 * ada-exp.h (class ada_atr_val_operation): New.
1075 2021-03-08 Tom Tromey <tom@tromey.com>
1077 * ada-lang.c (ada_pos_atr): No longer static.
1078 * ada-exp.h (ada_pos_operation): New typedef.
1080 2021-03-08 Tom Tromey <tom@tromey.com>
1082 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1084 (ada_evaluate_subexp): Use it.
1086 2021-03-08 Tom Tromey <tom@tromey.com>
1088 * ada-lang.c (ada_binop_minmax): No longer static.
1089 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1092 2021-03-08 Tom Tromey <tom@tromey.com>
1094 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1096 * ada-exp.h (class ada_var_msym_value_operation): New.
1098 2021-03-08 Tom Tromey <tom@tromey.com>
1100 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1101 (ada_var_value_operation::evaluate): New methods.
1102 * ada-exp.h (class ada_var_value_operation): New.
1104 2021-03-08 Tom Tromey <tom@tromey.com>
1106 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1107 * ada-exp.h (class ada_unop_atr_operation): New.
1109 2021-03-08 Tom Tromey <tom@tromey.com>
1111 * ada-lang.c (ada_binop_in_bounds): No longer static.
1112 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1114 2021-03-08 Tom Tromey <tom@tromey.com>
1116 * ada-lang.c (ada_ternop_slice): No longer static.
1117 * ada-exp.h (class ada_ternop_slice_operation): New.
1119 2021-03-08 Tom Tromey <tom@tromey.com>
1121 * ada-exp.h (ada_bitwise_operation): New template class.
1122 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1123 (ada_bitwise_xor_operation): New typedefs.
1125 2021-03-08 Tom Tromey <tom@tromey.com>
1127 * ada-lang.c (ada_equal_binop): No longer static.
1128 * ada-exp.h (class ada_binop_equal_operation): New.
1130 2021-03-08 Tom Tromey <tom@tromey.com>
1132 * ada-lang.c (ada_mult_binop): No longer static.
1133 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1134 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1136 2021-03-08 Tom Tromey <tom@tromey.com>
1138 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1139 * ada-exp.h (class ada_binop_addsub_operation): New.
1141 2021-03-08 Tom Tromey <tom@tromey.com>
1143 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1144 (ada_resolve_variable): Declare.
1145 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1146 (ada_resolve_variable): New functions.
1147 (resolve_subexp): Update.
1149 2021-03-08 Tom Tromey <tom@tromey.com>
1151 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1153 * c-exp.h (class opencl_ternop_cond_operation): New.
1155 2021-03-08 Tom Tromey <tom@tromey.com>
1157 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1159 * c-exp.h (class opencl_logical_binop_operation): New.
1161 2021-03-08 Tom Tromey <tom@tromey.com>
1163 * opencl-lang.c (opencl_structop_operation::evaluate): New
1165 * c-exp.h (class opencl_structop_operation): New.
1167 2021-03-08 Tom Tromey <tom@tromey.com>
1169 * opencl-lang.c (opencl_logical_not): No longer static. Change
1171 (evaluate_subexp_opencl): Update.
1172 * c-exp.h (opencl_notequal_operation): New typedef.
1174 2021-03-08 Tom Tromey <tom@tromey.com>
1176 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
1177 static. Change parameters.
1178 (eval_opencl_assign): No longer static. Add "op" parameter.
1179 (evaluate_subexp_opencl): Update.
1180 * c-exp.h (opencl_binop_operation): New template class.
1181 (opencl_assign_operation, opencl_equal_operation)
1182 (opencl_notequal_operation, opencl_less_operation)
1183 (opencl_gtr_operation, opencl_geq_operation)
1184 (opencl_leq_operation): New typedefs.
1186 2021-03-08 Tom Tromey <tom@tromey.com>
1188 * opencl-lang.c (opencl_value_cast): No longer static.
1189 * c-exp.h (opencl_cast_type_operation): New typedef.
1191 2021-03-08 Tom Tromey <tom@tromey.com>
1193 * f-exp.h (eval_op_f_allocated): Declare.
1194 (fortran_allocated_operation): New typedef.
1195 * f-lang.c (eval_op_f_allocated): No longer static.
1197 2021-03-08 Tom Tromey <tom@tromey.com>
1199 * f-lang.c (eval_op_f_associated): New functions.
1200 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1203 2021-03-08 Tom Tromey <tom@tromey.com>
1205 * f-lang.c (fortran_bound_1arg::evaluate)
1206 (fortran_bound_2arg::evaluate): New methods.
1207 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
1210 2021-03-08 Tom Tromey <tom@tromey.com>
1212 * expop.h (class unop_addr_operation) <get_expression>: New
1214 * f-lang.c (fortran_undetermined::value_subarray)
1215 (fortran_undetermined::evaluate): New methods.
1216 (fortran_prepare_argument): New overload.
1217 * f-exp.h (class fortran_range_operation)
1218 (class fortran_undetermined): New classes.
1220 2021-03-08 Tom Tromey <tom@tromey.com>
1222 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1223 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1226 2021-03-08 Tom Tromey <tom@tromey.com>
1228 * expression.h (class operation) <evaluate_funcall>: New methods.
1229 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1230 (class var_value_operation) <evaluate_funcall>: New method.
1231 (class structop_base_operation) <evaluate_funcall>: New method.
1232 (class var_msym_value_operation) <evaluate_funcall>: New method.
1233 (class structop_member_base): New class.
1234 (class structop_member_operation): Derive from
1235 structop_member_base.
1236 (class structop_mptr_operation): Derive from
1237 structop_member_base.
1238 (class funcall_operation): New class.
1239 * eval.c (operation::evaluate_funcall)
1240 (var_value_operation::evaluate_funcall)
1241 (scope_operation::evaluate_funcall)
1242 (structop_member_base::evaluate_funcall)
1243 (structop_base_operation::evaluate_funcall): New methods.
1245 2021-03-08 Tom Tromey <tom@tromey.com>
1247 * expop.h (class array_operation): New.
1248 * eval.c (array_operation::evaluate_struct_tuple)
1249 (array_operation::evaluate): New methods.
1251 2021-03-08 Tom Tromey <tom@tromey.com>
1253 * expop.h (class adl_func_operation): New.
1254 * eval.c (adl_func_operation::evaluate): New method.
1256 2021-03-08 Tom Tromey <tom@tromey.com>
1258 * ada-lang.c (ada_unop_in_range): No longer static.
1259 * ada-exp.h (class ada_unop_range_operation): New.
1261 2021-03-08 Tom Tromey <tom@tromey.com>
1263 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
1265 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
1266 (ada_atr_size_operation, ada_abs_operation): New typedefs.
1268 2021-03-08 Tom Tromey <tom@tromey.com>
1270 * expop.h (class logical_and_operation)
1271 (class logical_or_operation): New.
1272 * eval.c (logical_and_operation::evaluate)
1273 (logical_or_operation::evaluate): New methods.
1274 * ax-gdb.c (logical_and_operation::do_generate_ax)
1275 (logical_or_operation::do_generate_ax): New methods.
1277 2021-03-08 Tom Tromey <tom@tromey.com>
1279 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
1281 * m2-exp.h: New file.
1283 2021-03-08 Tom Tromey <tom@tromey.com>
1285 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
1286 * rust-exp.h (class rust_aggregate_operation): New.
1288 2021-03-08 Tom Tromey <tom@tromey.com>
1290 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
1292 * rust-exp.h (class rust_struct_anon): New.
1293 (class rust_structop): New.
1295 2021-03-08 Tom Tromey <tom@tromey.com>
1297 * rust-lang.c (rust_range): No longer static.
1298 * rust-exp.h (class rust_range_operation): New.
1300 2021-03-08 Tom Tromey <tom@tromey.com>
1302 * rust-lang.c (rust_subscript): No longer static.
1303 * rust-exp.h (class rust_subscript_operation): New.
1305 2021-03-08 Tom Tromey <tom@tromey.com>
1307 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1309 (rust_evaluate_subexp): Update.
1310 * rust-exp.h (class rust_unop_ind_operation): New.
1312 2021-03-08 Tom Tromey <tom@tromey.com>
1314 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1315 longer static. Add "opcode" parameter.
1316 (rust_evaluate_subexp): Update.
1317 * rust-exp.h: New file.
1319 2021-03-08 Tom Tromey <tom@tromey.com>
1321 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1322 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1323 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1324 (evaluate_subexp_f): Update.
1325 * f-exp.h: New file.
1327 2021-03-08 Tom Tromey <tom@tromey.com>
1329 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1330 * ada-exp.h (class ada_ternop_range_operation): New.
1332 2021-03-08 Tom Tromey <tom@tromey.com>
1334 * ada-lang.c (ada_qual_operation::evaluate): New method.
1335 * ada-exp.h (class ada_qual_operation): New.
1337 2021-03-08 Tom Tromey <tom@tromey.com>
1339 * ada-lang.c (ada_string_operation::evaluate): New method.
1340 * ada-exp.h (class ada_string_operation): New.
1342 2021-03-08 Tom Tromey <tom@tromey.com>
1344 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
1345 * ada-exp.h: New file.
1347 2021-03-08 Tom Tromey <tom@tromey.com>
1349 * expop.h (class multi_subscript_operation): New.
1350 * eval.c (multi_subscript_operation::evaluate): New method.
1352 2021-03-08 Tom Tromey <tom@tromey.com>
1354 * eval.c (objc_msgcall_operation::evaluate): New method.
1355 * c-exp.h (class objc_msgcall_operation): New.
1357 2021-03-08 Tom Tromey <tom@tromey.com>
1359 * expop.h (class var_value_operation): New.
1360 * eval.c (var_value_operation::evaluate)
1361 (var_value_operation::evaluate_for_address)
1362 (var_value_operation::evaluate_with_coercion)
1363 (var_value_operation::evaluate_for_sizeof)
1364 (var_value_operation::evaluate_for_cast): New methods.
1365 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
1367 2021-03-08 Tom Tromey <tom@tromey.com>
1369 * expop.h (cxx_cast_ftype): New typedef.
1370 (cxx_cast_operation): New template.
1371 (dynamic_cast_operation, reinterpret_cast_operation): New
1374 2021-03-08 Tom Tromey <tom@tromey.com>
1376 * expop.h (class unop_cast_type_operation): New.
1377 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
1380 2021-03-08 Tom Tromey <tom@tromey.com>
1382 * expop.h (class unop_cast_operation): New.
1383 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
1385 2021-03-08 Tom Tromey <tom@tromey.com>
1387 * expop.h (class assign_modify_operation): New.
1388 * eval.c (eval_binop_assign_modify): No longer static.
1389 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1391 2021-03-08 Tom Tromey <tom@tromey.com>
1393 * expop.h (class assign_operation): New.
1394 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1396 2021-03-08 Tom Tromey <tom@tromey.com>
1398 * expop.h (class type_instance_operation): New.
1399 * eval.c (type_instance_operation::evaluate): New method.
1401 2021-03-08 Tom Tromey <tom@tromey.com>
1403 * expop.h (class op_this_operation): New.
1404 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1406 2021-03-08 Tom Tromey <tom@tromey.com>
1408 * expop.h (class unop_memval_operation)
1409 (class unop_memval_type_operation): New.
1410 * eval.c (eval_op_memval): No longer static.
1411 (unop_memval_operation::evaluate_for_address)
1412 (unop_memval_type_operation::evaluate_for_address)
1413 (unop_memval_operation::evaluate_for_sizeof)
1414 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1415 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1416 (unop_memval_type_operation::do_generate_ax): New methods.
1418 2021-03-08 Tom Tromey <tom@tromey.com>
1420 * expop.h (class unop_alignof_operation): New.
1421 * eval.c (eval_op_alignof): No longer static.
1423 2021-03-08 Tom Tromey <tom@tromey.com>
1425 * expop.h (class unop_sizeof_operation): New.
1426 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1428 2021-03-08 Tom Tromey <tom@tromey.com>
1430 * expop.h (class unop_addr_operation): New.
1431 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1433 2021-03-08 Tom Tromey <tom@tromey.com>
1435 * expop.h (class typeid_operation): New.
1437 2021-03-08 Tom Tromey <tom@tromey.com>
1439 * expop.h (class decltype_operation): New.
1441 2021-03-08 Tom Tromey <tom@tromey.com>
1443 * expop.h (class typeof_operation): New.
1445 2021-03-08 Tom Tromey <tom@tromey.com>
1447 * expop.h (class type_operation): New.
1448 * eval.c (eval_op_type): No longer static.
1450 2021-03-08 Tom Tromey <tom@tromey.com>
1452 * expop.h (class unop_ind_base_operation)
1453 (class unop_ind_operation): New.
1454 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1455 (unop_ind_base_operation::evaluate_for_address)
1456 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1457 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1459 2021-03-08 Tom Tromey <tom@tromey.com>
1461 * expop.h (unop_incr_operation): New template.
1462 (preinc_operation, predec_operation, postinc_operation)
1463 (postdec_operation): New typedefs.
1464 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1465 (eval_op_postdec): No longer static.
1467 2021-03-08 Tom Tromey <tom@tromey.com>
1469 * expop.h (unary_ftype): New typedef.
1470 (unop_operation, usual_ax_binop_operation): New templates.
1471 (unary_plus_operation, unary_neg_operation)
1472 (unary_complement_operation, unary_logical_not_operation): New
1474 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1475 (eval_op_lognot): No longer static.
1476 * ax-gdb.c (gen_expr_unop): New function.
1478 2021-03-08 Tom Tromey <tom@tromey.com>
1480 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1482 2021-03-08 Tom Tromey <tom@tromey.com>
1484 * expop.h (class repeat_operation): New.
1485 * eval.c (eval_op_repeat): No longer static. Remove "op"
1487 (evaluate_subexp_standard): Update.
1488 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1490 2021-03-08 Tom Tromey <tom@tromey.com>
1492 * expop.h (class comparison_operation): New.
1493 (equal_operation, notequal_operation, less_operation)
1494 (gtr_operation, geq_operation, leq_operation): New typedefs.
1495 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1496 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1498 2021-03-08 Tom Tromey <tom@tromey.com>
1500 * expop.h (class subscript_operation): New.
1501 * eval.c (eval_op_subscript): No longer static.
1503 2021-03-08 Tom Tromey <tom@tromey.com>
1505 * expop.h (class binop_operation, class usual_ax_binop_operation):
1507 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1508 (div_operation, rem_operation, lsh_operation, rsh_operation)
1509 (bitwise_and_operation, bitwise_ior_operation)
1510 (bitwise_xor_operation): New typedefs.
1511 * eval.c (eval_op_binary): No longer static.
1513 2021-03-08 Tom Tromey <tom@tromey.com>
1515 * expop.h (class sub_operation): New.
1516 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1517 (evaluate_subexp_standard): Update.
1519 2021-03-08 Tom Tromey <tom@tromey.com>
1521 * expop.h (class add_operation): New.
1522 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1523 (evaluate_subexp_standard): Update.
1525 2021-03-08 Tom Tromey <tom@tromey.com>
1527 * expop.h (class concat_operation): New.
1528 * eval.c (eval_op_concat): No longer static. Remove "op"
1530 (evaluate_subexp_standard): Update.
1532 2021-03-08 Tom Tromey <tom@tromey.com>
1534 * expop.h (class structop_member_operation)
1535 (class structop_mptr_operation): New.
1536 * eval.c (eval_op_member): No longer static.
1538 2021-03-08 Tom Tromey <tom@tromey.com>
1540 * expop.h (class structop_ptr_operation): New.
1541 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1544 2021-03-08 Tom Tromey <tom@tromey.com>
1546 * expop.h (class structop_base_operation)
1547 (class structop_operation): New.
1548 * eval.c (eval_op_structop_struct): No longer static.
1550 2021-03-08 Tom Tromey <tom@tromey.com>
1552 * expop.h (class complex_operation): New.
1554 2021-03-08 Tom Tromey <tom@tromey.com>
1556 * eval.c (eval_op_objc_selector): No longer static.
1557 * c-exp.h (class objc_selector_operation): New.
1559 2021-03-08 Tom Tromey <tom@tromey.com>
1561 * eval.c: Include c-exp.h.
1562 * c-exp.h (class objc_nsstring_operation): New.
1564 2021-03-08 Tom Tromey <tom@tromey.com>
1566 * c-lang.c (c_string_operation::evaluate): New method.
1567 * c-exp.h: New file.
1569 2021-03-08 Tom Tromey <tom@tromey.com>
1571 * expop.h (class ternop_cond_operation): New.
1572 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1574 2021-03-08 Tom Tromey <tom@tromey.com>
1576 * expop.h (class ternop_slice_operation): New.
1577 * eval.c (eval_op_ternop): No longer static.
1579 2021-03-08 Tom Tromey <tom@tromey.com>
1581 * expop.h (class string_operation): New.
1582 * eval.c (eval_op_string): No longer static.
1584 2021-03-08 Tom Tromey <tom@tromey.com>
1586 * expop.h (class internalvar_operation): New.
1587 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1589 2021-03-08 Tom Tromey <tom@tromey.com>
1591 * expop.h (class bool_operation): New.
1593 2021-03-08 Tom Tromey <tom@tromey.com>
1595 * expop.h (class register_operation): New.
1596 * eval.c (eval_op_register): No longer static.
1597 * ax-gdb.c (register_operation::do_generate_ax): New method.
1599 2021-03-08 Tom Tromey <tom@tromey.com>
1601 * expop.h (class last_operation): New.
1603 2021-03-08 Tom Tromey <tom@tromey.com>
1605 * expop.h (class func_static_var_operation): New.
1606 * eval.c (eval_op_func_static_var): No longer static.
1608 2021-03-08 Tom Tromey <tom@tromey.com>
1610 * expop.h (class var_entry_value_operation): New.
1611 * eval.c (eval_op_var_entry_value): No longer static.
1613 2021-03-08 Tom Tromey <tom@tromey.com>
1615 * expression.h (class operation) <set_outermost>: New method.
1616 * expop.h (class var_msym_value_operation): New.
1617 * eval.c (eval_op_var_msym_value): No longer static.
1618 (var_msym_value_operation::evaluate_for_address)
1619 (var_msym_value_operation::evaluate_for_sizeof)
1620 (var_msym_value_operation::evaluate_for_cast): New methods.
1621 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1624 2021-03-08 Tom Tromey <tom@tromey.com>
1626 * expop.h (class long_const_operation): New.
1627 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1629 2021-03-08 Tom Tromey <tom@tromey.com>
1631 * expop.h (class scope_operation): New.
1632 * eval.c (eval_op_scope): No longer static.
1633 (scope_operation::evaluate_for_address): New method.
1634 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1636 2021-03-08 Tom Tromey <tom@tromey.com>
1638 * expprint.c (float_const_operation::dump): New method.
1639 * expop.h (float_data): New typedef.
1640 (class float_const_operation): New.
1642 2021-03-08 Tom Tromey <tom@tromey.com>
1644 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1645 * ax-gdb.c (gen_expr_binop): New function.
1646 (gen_expr_structop): Likewise.
1648 2021-03-08 Tom Tromey <tom@tromey.com>
1650 * expprint.c (expr::dump_for_expression): New functions.
1651 * expop.h (dump_for_expression): New overloads.
1652 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1655 2021-03-08 Tom Tromey <tom@tromey.com>
1657 * expression.h (expr::operation): New class.
1658 (expr::make_operation): New function.
1659 (expr::operation_up): New typedef.
1660 * expop.h: New file.
1661 * eval.c (operation::evaluate_for_cast)
1662 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1664 * ax-gdb.c (operation::generate_ax): New method.
1666 2021-03-08 Tom Tromey <tom@tromey.com>
1668 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1669 (gen_expr_binop_rest): New overload.
1671 2021-03-08 Tom Tromey <tom@tromey.com>
1673 * eval.c (eval_multi_subscript): New function.
1674 (evaluate_subexp_standard): Use it.
1676 2021-03-08 Tom Tromey <tom@tromey.com>
1678 * ada-lang.c (ada_binop_exp): New function.
1679 (ada_evaluate_subexp): Use it.
1681 2021-03-08 Tom Tromey <tom@tromey.com>
1683 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1685 (ada_evaluate_subexp): Use it.
1687 2021-03-08 Tom Tromey <tom@tromey.com>
1689 * ada-lang.c (ada_binop_minmax): New function.
1690 (ada_evaluate_subexp): Use it.
1692 2021-03-08 Tom Tromey <tom@tromey.com>
1694 * ada-lang.c (ada_unop_atr): New function.
1695 (ada_evaluate_subexp): Use it.
1697 2021-03-08 Tom Tromey <tom@tromey.com>
1699 * ada-lang.c (ada_binop_in_bounds): New function.
1700 (ada_evaluate_subexp): Use it.
1702 2021-03-08 Tom Tromey <tom@tromey.com>
1704 * ada-lang.c (ada_ternop_slice): New function.
1705 (ada_evaluate_subexp): Use it.
1707 2021-03-08 Tom Tromey <tom@tromey.com>
1709 * ada-lang.c (ada_equal_binop): New function.
1710 (ada_evaluate_subexp): Use it.
1712 2021-03-08 Tom Tromey <tom@tromey.com>
1714 * ada-lang.c (ada_mult_binop): New function.
1715 (ada_evaluate_subexp): Use it.
1717 2021-03-08 Tom Tromey <tom@tromey.com>
1719 * ada-lang.c (ada_abs): New function.
1720 (ada_evaluate_subexp): Use it.
1722 2021-03-08 Tom Tromey <tom@tromey.com>
1724 * ada-lang.c (ada_atr_size): New function.
1725 (ada_evaluate_subexp): Use it.
1727 2021-03-08 Tom Tromey <tom@tromey.com>
1729 * ada-lang.c (ada_atr_tag): New function.
1730 (ada_evaluate_subexp): Use it.
1732 2021-03-08 Tom Tromey <tom@tromey.com>
1734 * ada-lang.c (ada_unop_in_range): New function.
1735 (ada_evaluate_subexp): Use it.
1737 2021-03-08 Tom Tromey <tom@tromey.com>
1739 * ada-lang.c (ada_unop_neg): New function.
1740 (ada_evaluate_subexp): Use it.
1742 2021-03-08 Tom Tromey <tom@tromey.com>
1744 * ada-lang.c (eval_ternop_in_range): New function.
1745 (ada_evaluate_subexp): Use it.
1747 2021-03-08 Tom Tromey <tom@tromey.com>
1749 * opencl-lang.c (eval_opencl_assign): New function.
1750 (evaluate_subexp_opencl): Use it.
1752 2021-03-08 Tom Tromey <tom@tromey.com>
1754 * eval.c (eval_op_objc_msgcall): New function.
1755 (evaluate_subexp_standard): Use it.
1757 2021-03-08 Tom Tromey <tom@tromey.com>
1759 * eval.c (eval_binop_assign_modify): New function.
1760 (evaluate_subexp_standard): Use it.
1762 2021-03-08 Tom Tromey <tom@tromey.com>
1764 * m2-lang.c (eval_op_m2_subscript): New function.
1765 (evaluate_subexp_modula2): Use it.
1767 2021-03-08 Tom Tromey <tom@tromey.com>
1769 * m2-lang.c (eval_op_m2_high): New function.
1770 (evaluate_subexp_modula2): Use it.
1772 2021-03-08 Tom Tromey <tom@tromey.com>
1774 * eval.c (evaluate_subexp_for_address_base): New function.
1775 (evaluate_subexp_for_address): Use it.
1776 (evaluate_subexp_for_sizeof_base): New function.
1777 (evaluate_subexp_for_sizeof): Use it.
1779 2021-03-08 Tom Tromey <tom@tromey.com>
1781 * rust-lang.c (eval_op_rust_structop): New function.
1782 (rust_evaluate_subexp): Use it.
1784 2021-03-08 Tom Tromey <tom@tromey.com>
1786 * rust-lang.c (eval_op_rust_struct_anon): New function.
1787 (rust_evaluate_subexp): Use it.
1789 2021-03-08 Tom Tromey <tom@tromey.com>
1791 * rust-lang.c (eval_op_rust_array): New function.
1792 (rust_evaluate_subexp): Use it.
1794 2021-03-08 Tom Tromey <tom@tromey.com>
1796 * rust-lang.c (eval_op_rust_complement): New function.
1797 (rust_evaluate_subexp): Use it.
1799 2021-03-08 Tom Tromey <tom@tromey.com>
1801 * rust-lang.c (eval_op_rust_ind): New function.
1802 (rust_evaluate_subexp): Use it.
1804 2021-03-08 Tom Tromey <tom@tromey.com>
1806 * rust-lang.c (rust_subscript): Change parameters.
1807 (rust_evaluate_subexp): Update.
1809 2021-03-08 Tom Tromey <tom@tromey.com>
1811 * rust-lang.c (rust_range): Change parameters.
1812 (rust_evaluate_subexp): Update.
1814 2021-03-08 Tom Tromey <tom@tromey.com>
1816 * f-lang.c (eval_op_f_allocated): New function.
1817 (evaluate_subexp_f): Use it.
1819 2021-03-08 Tom Tromey <tom@tromey.com>
1821 * f-lang.c (fortran_require_array): New function.
1822 (evaluate_subexp_f): Use it.
1824 2021-03-08 Tom Tromey <tom@tromey.com>
1826 * f-lang.c (eval_op_f_kind): New function.
1827 (evaluate_subexp_f): Use it.
1829 2021-03-08 Tom Tromey <tom@tromey.com>
1831 * f-lang.c (eval_op_f_cmplx): New function.
1832 (evaluate_subexp_f): Use it.
1834 2021-03-08 Tom Tromey <tom@tromey.com>
1836 * f-lang.c (eval_op_f_modulo): New function.
1837 (evaluate_subexp_f): Use it.
1839 2021-03-08 Tom Tromey <tom@tromey.com>
1841 * f-lang.c (eval_op_f_floor): New function.
1842 (evaluate_subexp_f): Use it.
1844 2021-03-08 Tom Tromey <tom@tromey.com>
1846 * f-lang.c (eval_op_f_ceil): New function.
1847 (evaluate_subexp_f): Use it.
1849 2021-03-08 Tom Tromey <tom@tromey.com>
1851 * f-lang.c (eval_op_f_mod): New function.
1852 (evaluate_subexp_f): Use it.
1854 2021-03-08 Tom Tromey <tom@tromey.com>
1856 * f-lang.c (eval_op_f_abs): New function.
1857 (evaluate_subexp_f): Use it.
1859 2021-03-08 Tom Tromey <tom@tromey.com>
1861 * eval.c (eval_op_type): New function.
1862 (evaluate_subexp_standard): Use it.
1864 2021-03-08 Tom Tromey <tom@tromey.com>
1866 * eval.c (eval_op_postdec): New function.
1867 (evaluate_subexp_standard): Use it.
1869 2021-03-08 Tom Tromey <tom@tromey.com>
1871 * eval.c (eval_op_postinc): New function.
1872 (evaluate_subexp_standard): Use it.
1874 2021-03-08 Tom Tromey <tom@tromey.com>
1876 * eval.c (eval_op_predec): New file.
1877 (evaluate_subexp_standard): Use it.
1879 2021-03-08 Tom Tromey <tom@tromey.com>
1881 * eval.c (eval_op_preinc): New function.
1882 (evaluate_subexp_standard): Use it.
1884 2021-03-08 Tom Tromey <tom@tromey.com>
1886 * eval.c (eval_op_memval): New function.
1887 (evaluate_subexp_standard): Use it.
1889 2021-03-08 Tom Tromey <tom@tromey.com>
1891 * eval.c (eval_op_alignof): New function.
1892 (evaluate_subexp_standard): Use it.
1894 2021-03-08 Tom Tromey <tom@tromey.com>
1896 * eval.c (eval_op_ind): New function.
1897 (evaluate_subexp_standard): Use it.
1899 2021-03-08 Tom Tromey <tom@tromey.com>
1901 * eval.c (eval_op_lognot): New function.
1902 (evaluate_subexp_standard): Use it.
1904 2021-03-08 Tom Tromey <tom@tromey.com>
1906 * eval.c (eval_op_complement): New function.
1907 (evaluate_subexp_standard): Use it.
1909 2021-03-08 Tom Tromey <tom@tromey.com>
1911 * eval.c (eval_op_neg): New function.
1912 (evaluate_subexp_standard): Use it.
1914 2021-03-08 Tom Tromey <tom@tromey.com>
1916 * eval.c (eval_op_plus): New function.
1917 (evaluate_subexp_standard): Use it.
1919 2021-03-08 Tom Tromey <tom@tromey.com>
1921 * eval.c (eval_op_repeat): New function.
1922 (evaluate_subexp_standard): Use it.
1924 2021-03-08 Tom Tromey <tom@tromey.com>
1926 * eval.c (eval_op_leq): New function.
1927 (evaluate_subexp_standard): Use it.
1929 2021-03-08 Tom Tromey <tom@tromey.com>
1931 * eval.c (eval_op_geq): New function.
1932 (evaluate_subexp_standard): Use it.
1934 2021-03-08 Tom Tromey <tom@tromey.com>
1936 * eval.c (eval_op_gtr): New function.
1937 (evaluate_subexp_standard): Use it.
1939 2021-03-08 Tom Tromey <tom@tromey.com>
1941 * eval.c (eval_op_less): New function.
1942 (evaluate_subexp_standard): Use it.
1944 2021-03-08 Tom Tromey <tom@tromey.com>
1946 * eval.c (eval_op_notequal): New function.
1947 (evaluate_subexp_standard): Use it.
1949 2021-03-08 Tom Tromey <tom@tromey.com>
1951 * eval.c (eval_op_equal): New function.
1952 (evaluate_subexp_standard): Use it.
1954 2021-03-08 Tom Tromey <tom@tromey.com>
1956 * eval.c (eval_op_subscript): New function.
1957 (evaluate_subexp_standard): Use it.
1959 2021-03-08 Tom Tromey <tom@tromey.com>
1961 * eval.c (eval_op_binary): New function.
1962 (evaluate_subexp_standard): Use it.
1964 2021-03-08 Tom Tromey <tom@tromey.com>
1966 * eval.c (eval_op_sub): New function.
1967 (evaluate_subexp_standard): Use it.
1969 2021-03-08 Tom Tromey <tom@tromey.com>
1971 * eval.c (eval_op_add): New function.
1972 (evaluate_subexp_standard): Use it.
1974 2021-03-08 Tom Tromey <tom@tromey.com>
1976 * eval.c (eval_op_member): New function.
1977 (evaluate_subexp_standard): Use it.
1979 2021-03-08 Tom Tromey <tom@tromey.com>
1981 * eval.c (eval_op_structop_ptr): New function.
1982 (evaluate_subexp_standard): Use it.
1984 2021-03-08 Tom Tromey <tom@tromey.com>
1986 * eval.c (eval_op_structop_struct): New function.
1987 (evaluate_subexp_standard): Use it.
1989 2021-03-08 Tom Tromey <tom@tromey.com>
1991 * eval.c (eval_op_ternop): New function.
1992 (evaluate_subexp_standard): Use it.
1994 2021-03-08 Tom Tromey <tom@tromey.com>
1996 * eval.c (eval_op_concat): New function.
1997 (evaluate_subexp_standard): Use it.
1999 2021-03-08 Tom Tromey <tom@tromey.com>
2001 * eval.c (eval_op_objc_selector): New function.
2002 (evaluate_subexp_standard): Use it.
2004 2021-03-08 Tom Tromey <tom@tromey.com>
2006 * eval.c (eval_op_string): New function.
2007 (evaluate_subexp_standard): Use it.
2009 2021-03-08 Tom Tromey <tom@tromey.com>
2011 * eval.c (eval_op_register): New function.
2012 (evaluate_subexp_standard): Use it.
2014 2021-03-08 Tom Tromey <tom@tromey.com>
2016 * eval.c (eval_op_func_static_var): New function.
2017 (evaluate_subexp_standard): Use it.
2019 2021-03-08 Tom Tromey <tom@tromey.com>
2021 * eval.c (eval_op_var_msym_value): New function.
2022 (evaluate_subexp_standard): Use it.
2024 2021-03-08 Tom Tromey <tom@tromey.com>
2026 * eval.c (eval_op_var_entry_value): New function.
2027 (evaluate_subexp_standard): Use it.
2029 2021-03-08 Tom Tromey <tom@tromey.com>
2031 * eval.c (eval_op_scope): New function.
2032 (evaluate_subexp_standard): Use it.
2034 2021-03-06 Chernov Sergey <klen_s@mail.ru>
2037 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2039 2021-03-06 Tom Tromey <tom@tromey.com>
2041 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2042 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2043 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2044 (locate_dwz_sections, dwz_search_other_debugdirs)
2045 (dwarf2_get_dwz_file): Move to dwz.c.
2046 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2048 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2049 (dwarf2_get_dwz_file): Move from read.c.
2051 2021-03-06 Tom Tromey <tom@tromey.com>
2053 * debuginfod-support.h: Include scoped_fd.h.
2055 2021-03-06 Tom Tromey <tom@tromey.com>
2057 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2058 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2059 (get_abbrev_section_for_cu, read_attribute_value)
2060 (get_debug_line_section): Update.
2061 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2063 2021-03-06 Tom Tromey <tom@tromey.com>
2065 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2067 * dwarf2/read.c (section_is_p): Remove.
2068 (dwarf2_per_bfd::locate_sections)
2069 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2070 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2071 (dwarf2_locate_common_dwp_sections)
2072 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2075 2021-03-06 Tom Tromey <tom@tromey.com>
2077 * xcoffread.c: Include sect-names.h.
2078 * symfile.h (struct dwarf2_section_names, struct
2079 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2080 * dwarf2/sect-names.h: New file, from symfile.h.
2081 * dwarf2/read.c: Include sect-names.h.
2083 2021-03-06 Tom Tromey <tom@tromey.com>
2085 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2086 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2087 (abbrev_table::read): Update.
2088 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2089 (struct abbrev_info): Reformat.
2090 <attrs>: Now an array.
2091 (struct abbrev_table) <alloc_abbrev>: Remove.
2093 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
2095 * ctfread.c (ctf_psymtab_add_enums): New function.
2096 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2098 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
2100 * ctfread.c (read_func_kind_type): Set up function arguments.
2102 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2103 Andrew Burgess <andrew.burgess@embecosm.com>
2105 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2107 (riscv_csrset): New static global.
2108 (riscv_update_csrmap): New function.
2109 (riscv_iterate_over_regset_sections): Process CSRs.
2111 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2113 * riscv-tdep.c (riscv_feature_name_csr): Define.
2114 (riscv_feature_name_cpu): Define.
2115 (riscv_feature_name_fpu): Define.
2116 (riscv_feature_name_virtual): Define.
2117 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2118 (riscv_freg_feature): Use riscv_feature_name_fpu.
2119 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2120 (riscv_csr_feature): Use riscv_feature_name_csr.
2121 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2123 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2124 Craig Blackmore <craig.blackmore@embecosm.com>
2126 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2127 (ALLDEPFILES): Add riscv-none-tdep.c.
2128 * configure: Regenerate.
2129 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2131 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2132 * elf-none-tdep.c: New file.
2133 * elf-none-tdep.h: New file.
2134 * riscv-none-tdep.c: New file.
2136 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2137 Andrew Burgess <andrew.burgess@embecosm.com>
2139 * corelow.c: Add 'xml-tdesc.h' include.
2140 (core_target::read_description): Load the target description from
2141 the core file when possible.
2142 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2144 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2145 (gcore_elf_make_tdesc_note): New function.
2146 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
2147 * linux-tdep.c (linux_make_corefile_notes): Add target description
2150 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2152 * Makefile.in (SFILES): Add gcore-elf.c.
2153 (HFILES_NO_SRCDIR): Add gcore-elf.h
2154 * configure: Regenerate.
2155 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
2157 * fbsd-tdep.c: Add 'gcore-elf.h' include.
2158 (struct fbsd_collect_regset_section_cb_data): Delete.
2159 (fbsd_collect_regset_section_cb): Delete.
2160 (fbsd_collect_thread_registers): Delete.
2161 (struct fbsd_corefile_thread_data): Delete.
2162 (fbsd_corefile_thread): Delete.
2163 (fbsd_make_corefile_notes): Call
2164 gcore_elf_build_thread_register_notes instead of the now deleted
2166 * gcore-elf.c: New file, the content was moved here from
2167 linux-tdep.c, functions were renamed and given minor cleanup.
2168 * gcore-elf.h: New file.
2169 * gcore.c (gcore_find_signalled_thread): Moved here from
2170 linux-tdep.c and given a new name. Minor cleanups.
2171 * gcore.h (gcore_find_signalled_thread): Declare.
2172 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
2173 (struct linux_collect_regset_section_cb_data): Delete.
2174 (linux_collect_regset_section_cb): Delete.
2175 (linux_collect_thread_registers): Delete.
2176 (linux_corefile_thread): Call
2177 gcore_elf_build_thread_register_notes.
2178 (find_signalled_thread): Delete.
2179 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2181 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
2184 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2185 process_stratum_target parameter,
2186 sparc_store_inferior_registers): update callers.
2187 * sparc-nat.c (sparc_fetch_inferior_registers,
2188 sparc_store_inferior_registers): Add process_stratum_target
2189 parameter. Switch current thread before calling
2190 sparc_supply_gregset / sparc_collect_rwindow.
2191 (sparc_store_inferior_registers): Likewise.
2192 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2193 (sparc32obsd_collect_uthread): Likewise.
2194 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2196 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2197 sparc64obsd_supply_uthread): Add assertion.
2199 2021-03-04 Tom Tromey <tromey@adacore.com>
2201 * ada-lang.c (struct match_data) <found_sym>: Now bool.
2202 (aux_add_nonlocal_symbols): Update.
2203 (ada_add_block_symbols): Change "found_sym" to bool.
2205 2021-03-03 Tom Tromey <tromey@adacore.com>
2207 * ada-lang.c (ada_resolve_function): Update comment.
2208 (is_nonfunction, add_symbols_from_enclosing_procs)
2209 (remove_extra_symbols): Likewise.
2210 (struct match_data): Add constructor, initializers.
2211 (add_nonlocal_symbols): Remove memset.
2212 (aux_add_nonlocal_symbols): Update comment.
2213 (ada_add_block_renamings, add_nonlocal_symbols)
2214 (ada_add_all_symbols): Likewise.
2215 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2217 2021-03-02 Tom Tromey <tromey@adacore.com>
2219 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2220 (cast_to_gnat_encoded_fixed_point_type): Remove.
2221 (ada_value_cast, ada_evaluate_subexp): Update.
2222 (gnat_encoded_fixed_point_type_info)
2223 (ada_is_gnat_encoded_fixed_point_type)
2224 (gnat_encoded_fixed_point_delta)
2225 (gnat_encoded_fixed_point_scaling_factor): Remove.
2226 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2227 (gnat_encoded_fixed_point_delta)
2228 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2229 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2230 (ada_print_type): Update.
2231 * ada-valprint.c (ada_value_print_num): Update.
2232 * dwarf2/read.c (ada_get_gnat_encoded_number)
2233 (ada_get_gnat_encoded_ratio): New functions.
2234 (finish_fixed_point_type): Use them. Add parameters.
2235 (GNAT_FIXED_POINT_SUFFIX): New define.
2236 (gnat_encoded_fixed_point_type_info): New function.
2237 (read_base_type): Handle gnat encodings.
2239 2021-03-02 Tom Tromey <tromey@adacore.com>
2241 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2242 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2244 (GROW_VECT): Remove.
2245 (grow_vect): Remove.
2247 2021-03-02 Tom Tromey <tromey@adacore.com>
2249 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
2250 * ada-lang.c (resolve_subexp): Update.
2251 (ada_resolve_function): Accept a vector.
2252 (is_nonfunction, add_defn_to_vec)
2253 (add_symbols_from_enclosing_procs): Likewise.
2254 (num_defns_collected, defns_collected): Remove.
2255 (remove_extra_symbols): Return a vector.
2256 (remove_irrelevant_renamings): Return void.
2257 (ada_add_local_symbols): Accept a vector.
2258 (struct match_data) <obstackp>: Remove.
2259 <resultp>: New member.
2260 (aux_add_nonlocal_symbols): Update.
2261 (ada_add_block_renamings, add_nonlocal_symbols)
2262 (ada_add_all_symbols): Accept a vector.
2263 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
2265 (ada_lookup_symbol): Update.
2266 (ada_add_block_symbols): Accept a vector.
2267 (get_var_value, iterate_over_symbols): Update.
2268 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
2271 2021-03-02 Tom Tromey <tromey@adacore.com>
2273 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
2275 2021-03-02 Tom Tromey <tromey@adacore.com>
2277 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
2280 (ada_pspace_data): Remove destructor.
2281 <sym_cache>: Now a unique_ptr.
2282 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
2283 (ada_get_symbol_cache): Use 'new'.
2284 (ada_clear_symbol_cache): Rewrite.
2286 2021-03-02 Tom Tromey <tromey@adacore.com>
2288 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
2291 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
2294 * source.c (add_path): Skip empty dirnames.
2296 2021-02-25 Kevin Buettner <kevinb@redhat.com>
2298 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
2299 include order for <sys/ptrace.h> and <asm/ptrace.h>.
2301 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2304 * target.c (target_mourn_inferior): Only compare pids in
2305 target_mourn_inferior.
2307 2021-02-25 Jan Matyas <jmatyas@codasip.com>
2310 * remote.c (remote_target::start_remote): Ensure the single
2311 thread, automatically added for remote targets without the
2312 concept of threading, is initially in set to the "resumed"
2314 * remote.c (remote_target::add_current_inferior_and_thread):
2315 Add return value - return the main thread.
2317 2021-02-25 Jan Vrany <jan.vrany@labware.com>
2319 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2320 (mi_tsv_created): Likewise.
2321 (mi_tsv_deleted): Likewise.
2323 2021-02-25 Tom de Vries <tdevries@suse.de>
2326 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2327 section_kind for &dwo_file->sections.info.
2329 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2332 * f-lang.c (fortran_argument_convert): Delete declaration.
2333 (fortran_prepare_argument): New function.
2334 (evaluate_subexp_f): Move logic to new function
2335 fortran_prepare_argument.
2337 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2339 * f-exp.y (f77_keywords): Add 'associated'.
2340 * f-lang.c (fortran_associated): New function.
2341 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
2342 (operator_length_f): Likewise.
2343 (print_unop_or_binop_subexp_f): New function.
2344 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
2345 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
2346 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
2347 (operator_check_f): Likewise.
2348 * std-operator.def: Add FORTRAN_ASSOCIATED.
2350 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2352 * f-exp.y (fortran_operators): Add ".xor.".
2354 2021-02-24 Tom de Vries <tdevries@suse.de>
2357 * dwarf2/attribute.c (attribute::form_is_signed): New function
2359 * dwarf2/attribute.h (attribute::as_signed): ... here.
2360 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
2361 (attribute::form_is_signed): Declare.
2362 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
2363 for DW_AT_decl_file.
2365 2021-02-24 Kevin Buettner <kevinb@redhat.com>
2367 * nat/aarch64-linux-hw-point.c: Add comment regarding include
2368 order for <sys/ptrace.h> and <asm/ptrace.h>.
2370 2021-02-24 Kevin Buettner <kevinb@redhat.com>
2372 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
2375 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2377 * exec.c (set_section_command): Move variable declarations into
2378 the function body, and use std::string instead of a fixed size
2381 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2383 * exec.c (exec_target::get_section_table): Delete member function.
2384 (section_table_read_available_memory): Use current_top_target, not
2385 just the exec_ops target.
2386 * target-delegates.c: Regenerate.
2387 * target.c (default_get_section_table): New function.
2388 * target.h (target_ops::get_section_table): Change default
2389 behaviour to call default_get_section_table.
2390 (default_get_section_table): Declare.
2392 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2394 * exec.c (exec_target::close): Call new clear_target_sections
2396 (program_space::add_target_sections): Update name of member
2398 (program_space::add_target_sections): Update name of member
2400 (program_space::remove_target_sections): Likewise.
2401 (exec_one_fork): Use new target_sections member function.
2402 (exec_target::get_section_table): Likewise.
2403 (exec_target::files_info): Likewise.
2404 (set_section_command): Likewise.
2405 (exec_set_section_address): Likewise.
2406 (exec_target::has_memory): Use new target_sections member
2408 * progspace.h (program_space::clear_target_sections): New member
2410 (program_space::target_sections): Rename member variable to
2411 m_target_sections, replace with a new member function.
2412 (program_space::m_target_sections): New member variable.
2413 * solib-dsbt.c (scan_dyntag): Use new member function.
2414 * solib-svr4.c (scan_dyntag): Likewise.
2416 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2418 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2420 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2421 (section_table_read_available_memory): Make local const.
2422 (exec_target::xfer_partial): Make local const.
2423 (print_section_info): Make parameter const.
2424 * gdb/exec.h (print_section_info): Likewise.
2425 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2427 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2429 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2431 * gdb/s390-tdep.c (s390_load): Likewise.
2432 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2433 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2434 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2436 (target_debug_print_const_target_section_table_p): ...this.
2437 * gdb/target-delegates.c: Regenerate.
2438 * gdb/target.c (target_get_section_table): Make return type const.
2439 (target_section_by_addr): Likewise. Also make some locals const.
2440 (memory_xfer_partial_1): Make some locals const.
2441 * gdb/target.h (struct target_ops) <get_section_table>: Make
2443 (target_section_by_addr): Likewise.
2444 (target_get_section_table): Likewise.
2446 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2448 * NEWS: Mention new 'maint info target-sections' command.
2449 * maint.c (maintenance_info_target_sections): New function.
2450 (_initialize_maint_cmds): Register new command.
2452 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2454 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2455 (riscv_features_from_bfd): ...this. Change parameter type to
2456 'bfd*', and update as required.
2457 (riscv_find_default_target_description): Update call to
2458 riscv_features_from_bfd. Select a default xlen based on
2460 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2462 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2464 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2465 dynamic types in UNOP_IND.
2467 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2470 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2472 (~dwarf2_queue_guard): Clear queue.
2473 (queue_comp_unit): Assert that queue is
2475 (process_queue): Adjust.
2476 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2478 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2481 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2482 to decide whether or not to enqueue it for expansion.
2483 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2484 after calling maybe_queue_comp_unit.
2486 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2488 * linux-nat.c (linux_nat_filter_event): Return void.
2490 2021-02-22 Tom Tromey <tromey@adacore.com>
2492 * solib-svr4.c (enable_break): Update.
2493 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2495 (target_bfd_reopen): Change parameter type.
2496 * bfd-target.h (target_bfd_reopen): Change parameter type.
2498 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2500 * thread.c (add_thread_silent): Add assert.
2501 (find_thread_ptid): Add assert.
2503 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2506 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2507 (target_unpush_up): Likewise.
2508 * procfs.c (procfs_target::attach): Push target early. Use
2509 target_unpush_up to unpush target in case of error.
2510 * target.h (struct target_unpusher): Move here.
2511 (target_unpush_up): Likewise.
2513 2021-02-19 Kevin Buettner <kevinb@redhat.com>
2515 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2516 (which in turn includes <gnulib/config.h>) before include
2519 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
2522 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2523 (decode_j_type_insn): Likewise.
2524 (decode_cj_type_insn): Likewise.
2525 (decode_b_type_insn): Likewise.
2528 2021-02-18 Tom Tromey <tom@tromey.com>
2530 * expression.h (struct expression) <evaluate>: Declare method.
2531 * eval.c (evaluate_subexp): Simplify.
2532 (expression::evaluate): New method.
2533 (evaluate_expression, evaluate_type): Use expression::evaluate.
2535 2021-02-17 Kevin Buettner <kevinb@redhat.com>
2537 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2539 (ada_lookup_name_info): Likewise.
2541 2021-02-13 Mike Frysinger <vapier@gentoo.org>
2543 * aclocal.m4: Regenerate.
2545 2021-02-12 Tom de Vries <tdevries@suse.de>
2548 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2549 (lin_thread_signals): New static var.
2550 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2552 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2553 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2555 * linux-thread-db.c (check_thread_signals): Use
2556 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2558 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2560 * f-exp.y (f77_keywords): Add allocated.
2561 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2562 (operator_length_f): Likewise.
2563 (print_subexp_f): Likewise.
2564 (dump_subexp_body_f): Likewise.
2565 (operator_check_f): Likewise.
2566 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2568 2021-02-11 Tom de Vries <tdevries@suse.de>
2571 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2572 Return true for DW_FORM_strx.
2574 2021-02-11 Tom Tromey <tromey@adacore.com>
2577 * parse.c (write_exp_symbol_reference): Write sym.block.
2579 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2581 * NEWS: Mention changes to 'maint info sections'.
2582 * maint.c (match_substring): Return a bool, fix whitespace issue.
2583 (struct single_bfd_flag_info): New struct.
2584 (bfd_flag_info): New static global.
2585 (match_bfd_flags): Return a bool, use bfd_flag_info.
2586 (print_bfd_flags): Use bfd_flag_info.
2587 (maint_print_section_info): Delete trailing whitespace.
2588 (struct maint_info_sections_opts): New struct.
2589 (maint_info_sections_option_defs): New static global.
2590 (maint_info_sections_completer): New function.
2591 (maintenance_info_sections): Use option parsing mechanism.
2592 (_initialize_maint_cmds): Update command help text for 'maint info
2593 sections' and register a command completer.
2595 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2597 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2598 functionality merged into...
2599 (maint_print_all_sections): ...this new function.
2600 (maintenance_info_sections): Make use of maint_print_all_sections,
2601 allow all objects to be printed even where there's no executable.
2603 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2605 * breakpoint.c (resolve_sal_pc): Make use of
2606 bound_minimal_symbol::obj_section.
2607 * maint.c (maintenance_translate_address): Likewise.
2608 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2609 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2611 * printcmd.c (info_address_command): Make use of
2612 bound_minimal_symbol::obj_section.
2614 2021-02-11 Alan Modra <amodra@gmail.com>
2616 * arm-symbian-tdep.c: Delete.
2617 * NEWS: Mention arm-symbian removal.
2618 * Makefile.in: Remove arm-symbian-tdep entries.
2619 * configure.tgt: Remove arm*-*-symbianelf*.
2620 * doc/gdb.texinfo: Remove mention of SymbianOS.
2621 * osabi.c (gdb_osabi_names): Remove "Symbian".
2622 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2623 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2624 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2626 * testsuite/gdb.base/dup-sect.exp: Likewise.
2627 * testsuite/gdb.base/long_long.exp: Likewise.
2628 * testsuite/gdb.base/solib-weak.exp: Likewise.
2629 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2630 * testsuite/gdb.python/py-section-script.exp: Likewise.
2631 * testsuite/lib/dwarf.exp: Likewise.
2632 * testsuite/lib/gdb.exp: Likewise.
2634 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2636 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2637 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2638 (one_or_two_args): New pattern.
2639 (f77_keywords): Add lbound and ubound.
2640 * f-lang.c (fortran_bounds_all_dims): New function.
2641 (fortran_bounds_for_dimension): New function.
2642 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2643 (operator_length_f): Likewise.
2644 (print_subexp_f): Likewise.
2645 (dump_subexp_body_f): Likewise.
2646 (operator_check_f): Likewise.
2647 * std-operator.def (FORTRAN_LBOUND): Define.
2648 (FORTRAN_UBOUND): Define.
2650 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2652 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2653 and set_section_index member functions where appropriate.
2654 * coffread.c (coff_symtab_read): Likewise.
2655 (process_coff_symbol): Likewise.
2656 * ctfread.c (set_symbol_address): Likewise.
2657 * dwarf2/read.c (add_partial_symbol): Likewise.
2658 (var_decode_location): Likewise.
2659 * language.c: Likewise.
2660 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2661 (compact_minimal_symbols): Likewise.
2662 (minimal_symbol_upper_bound): Likewise.
2663 * objfiles.c (relocate_one_symbol): Likewise.
2664 * psympriv.h (partial_symbol::obj_section): Likewise.
2665 (partial_symbol::address): Likewise.
2666 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2667 * stabsread.c (scan_file_globals): Likewise.
2668 * symmisc.c (dump_msymbols): Likewise.
2669 * symtab.c (general_symbol_info::obj_section): Likewise.
2670 (fixup_section): Likewise.
2671 (get_msymbol_address): Likewise.
2672 * symtab.h (general_symbol_info::section): Rename to...
2673 (general_symbol_info::m_section): ...this.
2674 (general_symbol_info::set_section_index): New member function.
2675 (general_symbol_info::section_index): Likewise.
2676 (SYMBOL_SECTION): Delete.
2677 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2678 set_section_index member functions where appropriate.
2679 (MSYMBOL_SECTION): Delete.
2680 (symbol::symbol): Update to initialize 'm_section'.
2681 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2682 (process_xcoff_symbol): Likewise.
2684 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2686 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2687 MSYMBOL_OBJ_SECTION.
2688 * findvar.c (language_defn::read_var_value): Likewise.
2689 * infcmd.c (jump_command): Likewise.
2690 * linespec.c (minsym_found): Likewise.
2691 * maint.c (maintenance_translate_address): Likewise.
2692 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2693 (minimal_symbol_upper_bound): Likewise.
2694 * parse.c (find_minsym_type_and_address): Likewise.
2695 (operator_check_standard): Likewise.
2696 * printcmd.c (info_address_command): Likewise.
2697 * symmisc.c (dump_msymbols): Likewise.
2698 (print_symbol): Likewise.
2699 * symtab.c (general_symbol_info::obj_section): Define new
2701 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2702 (find_pc_sect_compunit_symtab): Likewise.
2703 (find_function_start_sal): Likewise.
2704 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2705 MSYMBOL_OBJ_SECTION.
2706 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2708 (SYMBOL_OBJ_SECTION): Delete.
2709 (MSYMBOL_OBJ_SECTION): Delete.
2711 2021-02-09 Tom Tromey <tom@tromey.com>
2713 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2715 2021-02-09 Tom de Vries <tdevries@suse.de>
2718 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2719 construct an array type. Add assert to ensure that element_type is
2722 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2724 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2725 (gcore_collect_regset_section_cb): Delete.
2726 (gcore_collect_thread_registers): Delete.
2727 (gcore_build_thread_register_notes): Delete.
2728 (gcore_find_signalled_thread): Delete.
2729 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2730 'gdbarch' and 'thread_info' declarations.
2731 (gcore_build_thread_register_notes): Delete declaration.
2732 (gcore_find_signalled_thread): Likewise.
2733 * fbsd-tdep.c: Remove 'gcore.h' include.
2734 (struct fbsd_collect_regset_section_cb_data): New struct.
2735 (fbsd_collect_regset_section_cb): New function.
2736 (fbsd_collect_thread_registers): New function.
2737 (struct fbsd_corefile_thread_data): New struct.
2738 (fbsd_corefile_thread): New function.
2739 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2740 * linux-tdep.c: Remove 'gcore.h' include.
2741 (struct linux_collect_regset_section_cb_data): New struct.
2742 (linux_collect_regset_section_cb): New function.
2743 (linux_collect_thread_registers): New function.
2744 (linux_corefile_thread): Call Linux specific code.
2745 (find_signalled_thread): New function.
2746 (linux_make_corefile_notes): Call find_signalled_thread.
2748 2021-02-09 Tom Tromey <tromey@adacore.com>
2750 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2752 * value.c (value_contents_copy_raw): Now static.
2753 * value.h (value_contents_copy_raw): Don't declare.
2755 2021-02-09 Tom Tromey <tromey@adacore.com>
2757 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2760 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
2763 * arc-linux-tdep.c (handle_atomic_sequence): New.
2764 (arc_linux_software_single_step): Call handle_atomic_sequence().
2766 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2768 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2770 (REQUIRE_WINDOW): Call is_valid member function.
2771 (REQUIRE_WINDOW_FOR_SETTER): New define.
2772 (gdbpy_tui_is_valid): Call is_valid member function.
2773 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2774 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2776 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2777 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2780 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2782 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2783 for the title is not nullptr.
2785 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2787 * tui-layout.c (saved_tui_windows): Delete.
2788 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2789 call new get_windows member function instead.
2790 (tui_get_window_by_name): Check in tui_windows.
2791 (tui_layout_window::apply): Don't add to tui_windows.
2792 * tui-layout.h (tui_layout_base::get_windows): New member function.
2793 (tui_layout_window::get_windows): Likewise.
2794 (tui_layout_split::get_windows): Likewise.
2796 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2798 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2799 of the window objects.
2801 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2803 * python/python.c (gdbpy_print_stack): Reformat an error message.
2805 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2807 * tui/tui-interp.c (tui_command_line_handler): New function.
2808 (tui_interp::resume): Register tui_command_line_handler as the
2810 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2812 (tui_getc_1): Delete handling of '\n' and '\r'.
2813 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2815 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2817 * tui/tui-regs.c (tui_data_window::display_registers_from):
2818 Mark invisible register sub windows.
2819 (tui_data_window::check_register_values): Ignore invisible
2820 register sub windows.
2822 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2824 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2825 n_spaces with a negative value.
2827 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2829 * tui/tui-regs.c (tui_data_window::display_registers_from):
2830 Add refresh_window call.
2832 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2834 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2836 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2838 * symmisc.c (std_in, std_out, std_err): Remove.
2839 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2841 2021-02-05 Tom de Vries <tdevries@suse.de>
2843 PR breakpoints/27330
2844 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2845 glibc object file has debug info.
2847 2021-02-05 Tom de Vries <tdevries@suse.de>
2850 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2852 2021-02-05 Tom de Vries <tdevries@suse.de>
2854 PR breakpoints/27313
2855 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2858 2021-02-05 Tom Tromey <tom@tromey.com>
2860 * compile/compile-c-support.c (get_compile_context)
2861 (c_get_compile_context, cplus_get_compile_context): Change return
2863 * language.c (language_defn::get_compile_instance): New method.
2864 * language.h (language_defn::get_compile_instance): Change return
2865 type. No longer inline.
2866 * c-lang.c (c_language::get_compile_instance): Change return type.
2867 (cplus_language::get_compile_instance): Change return type.
2868 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2870 * compile/compile.c (compile_to_object): Update.
2872 2021-02-05 Tom Tromey <tom@tromey.com>
2874 * parser-defs.h (write_exp_symbol_reference): Declare.
2875 * parse.c (write_exp_symbol_reference): New function.
2876 * p-exp.y (variable): Use write_exp_symbol_reference.
2877 * m2-exp.y (variable): Use write_exp_symbol_reference.
2878 * f-exp.y (variable): Use write_exp_symbol_reference.
2879 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2880 * c-exp.y (variable): Use write_exp_symbol_reference.
2882 2021-02-05 Tom de Vries <tdevries@suse.de>
2885 * valarith.c (complex_binop): Throw an error if complex type can't
2888 2021-02-05 Tom de Vries <tdevries@suse.de>
2891 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2894 2021-02-05 Tom de Vries <tdevries@suse.de>
2896 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2898 2021-02-04 Mike Frysinger <vapier@gentoo.org>
2900 * configure.tgt (riscv*-*-*): Set gdb_sim.
2902 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2904 * target.c (target_is_non_stop_p): Return bool.
2905 * target.h (target_is_non_stop_p): Return bool.
2907 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2909 * record-full.c (record_full_async_inferior_event_handler):
2910 Don't clear async event handler.
2911 (record_full_base_target::wait): Clear async event handler at
2914 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2916 * record-btrace.c (record_btrace_handle_async_inferior_event):
2917 Don't clear async event handler.
2918 (record_btrace_target::wait): Clear async event handler at
2921 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2923 * remote.c (remote_target::wait): Clear async event handler at
2924 beginning, mark if needed at the end.
2925 (remote_async_inferior_event_handler): Don't set or clear async
2928 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2930 * async-event.h (async_event_handler_func): Add documentation.
2931 * async-event.c (check_async_event_handlers): Don't clear
2932 async_event_handler ready flag.
2933 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2935 * record-btrace.c (record_btrace_handle_async_inferior_event):
2937 * record-full.c (record_full_async_inferior_event_handler):
2939 * remote-notif.c (remote_async_get_pending_events_handler):
2941 * remote.c (remote_async_inferior_event_handler): Likewise.
2943 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2945 * infrun.c (handle_inferior_event): Move stop_soon variable to
2948 2021-02-03 Pedro Alves <pedro@palves.net>
2950 * infcmd.c (detach_command): Hold strong reference to target, and
2951 if all-stop on entry, restart threads on exit.
2952 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2953 (restart_stepped_thread): ... this new function. Also handle
2955 (restart_after_all_stop_detach): New function.
2956 * infrun.h (restart_after_all_stop_detach): Declare.
2958 2021-02-03 Pedro Alves <pedro@palves.net>
2960 * infrun.c (struct step_over_info): Initialize fields.
2961 (prepare_for_detach): Handle ongoing in-line step over.
2963 2021-02-03 Pedro Alves <pedro@palves.net>
2965 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2967 * remote.c (remote_target::remote_detach_1): ... and here ...
2968 * target.c (target_detach): ... instead of here.
2969 * target.h (target_ops::detach): Add comment.
2971 2021-02-03 Pedro Alves <pedro@palves.net>
2973 * infrun.c (struct wait_one_event): Move higher up.
2974 (prepare_for_detach): Abort in-progress displaced steps instead of
2975 letting them complete.
2976 (handle_one): If the inferior is detaching, don't add the thread
2977 back to the global step-over chain.
2978 (restart_threads): Don't restart threads if detaching.
2979 (handle_signal_stop): Remove inferior::detaching reference.
2981 2021-02-03 Pedro Alves <pedro@palves.net>
2983 * infrun.c (prepare_for_detach): Don't release scoped_restore
2986 2021-02-03 Pedro Alves <pedro@palves.net>
2988 * infrun.c (handle_one): New function, factored out from ...
2989 (stop_all_threads): ... here.
2991 2021-02-03 Pedro Alves <pedro@palves.net>
2993 * remote.c (remote_notif_stop_ack): Don't error out on
2994 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2995 (remote_target::discard_pending_stop_replies): Don't delete
2996 in-flight notification; instead, clear its contents.
2998 2021-02-03 Pedro Alves <pedro@palves.net>
3000 * remote.c (extended_remote_target::attach): Set target async in
3001 the target-non-stop path too.
3003 2021-02-03 Pedro Alves <pedro@palves.net>
3006 * infrun.c (handle_signal_stop): Move main context_switch call
3007 earlier, before STOP_QUIETLY_NO_SIGSTOP.
3009 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
3011 * NEWS (Changed commands): Add entry for the behavior change of
3012 the inferior command.
3013 * inferior.c (inferior_command): When no argument is given to the
3014 inferior command, display info about the currently selected
3017 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3019 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3021 (read_attribute_reprocess): Adjust.
3023 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3025 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3026 <gnu_ranges_base>: ... this...
3027 <rnglists_base>: ... and this.
3028 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3029 <gnu_ranges_base>: ... this...
3030 <rnglists_base>: ... and this.
3031 (read_cutu_die_from_dwo): Adjust
3032 (dwarf2_get_pc_bounds): Adjust
3033 (dwarf2_record_block_ranges): Adjust.
3034 (read_full_die_1): Adjust
3035 (partial_die_info::read): Adjust.
3036 (read_rnglist_index): Adjust.
3038 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3041 * dwarf2/read.c (read_loclists_rnglists_header): Add
3042 header_offset parameter and use it.
3043 (read_loclist_index): Read header of the current contribution,
3044 not the one at the beginning of the section.
3045 (read_rnglist_index): Likewise.
3047 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3050 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3051 requires_reprocessing flag.
3052 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3054 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3055 and DW_FORM_loclistx.
3056 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3057 instead of set_address for DW_FORM_loclistx and
3060 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3062 * dwarf2/read.c (read_loclist_index): Remove bound check for
3064 (read_rnglist_index): Likewise.
3066 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3068 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3071 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3073 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3075 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3077 * dwarf2/read.c (read_loclist_index): Change complaints into
3080 2021-02-02 Tom de Vries <tdevries@suse.de>
3083 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3086 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3088 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3089 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
3090 here from linux-tdep.c and given a new name. Minor cleanups.
3091 (gcore_collect_regset_section_cb): Likewise.
3092 (gcore_collect_thread_registers): Likewise.
3093 (gcore_build_thread_register_notes): Likewise.
3094 (gcore_find_signalled_thread): Likewise.
3095 * gcore.h (gcore_build_thread_register_notes): Declare.
3096 (gcore_find_signalled_thread): Declare.
3097 * fbsd-tdep.c: Add 'gcore.h' include.
3098 (struct fbsd_collect_regset_section_cb_data): Delete.
3099 (fbsd_collect_regset_section_cb): Delete.
3100 (fbsd_collect_thread_registers): Delete.
3101 (struct fbsd_corefile_thread_data): Delete.
3102 (fbsd_corefile_thread): Delete.
3103 (fbsd_make_corefile_notes): Call
3104 gcore_build_thread_register_notes instead of the now deleted
3106 * linux-tdep.c: Add 'gcore.h' include.
3107 (struct linux_collect_regset_section_cb_data): Delete.
3108 (linux_collect_regset_section_cb): Delete.
3109 (linux_collect_thread_registers): Delete.
3110 (linux_corefile_thread): Call
3111 gcore_build_thread_register_notes.
3112 (find_signalled_thread): Delete.
3113 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3115 2021-01-29 Tom de Vries <tdevries@suse.de>
3117 PR breakpoints/26063
3118 * infrun.c (process_event_stop_test): Reset
3119 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3122 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3124 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3125 assert. Extend the header comment.
3127 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3129 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3130 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3131 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3132 (tui_locator_win_info_ptr): Delete declaration.
3133 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3134 (tui_disasm_window::set_contents): Fetch state from tui_location
3136 (tui_get_begin_asm_address): Likewise.
3137 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3139 (get_locator_window): Delete.
3140 (initialize_known_windows): Treat locator window just like all the
3142 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3143 (tui_source_window::set_contents): Fetch state from tui_location
3145 (tui_source_window::showing_source_p): Likewise.
3146 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3148 (tui_locator_win_info_ptr): Delete.
3149 (tui_locator_window::make_status_line): Fetch state from
3150 tui_location global.
3151 (tui_locator_window::rerender): Remove check of 'handle',
3152 reindent function body.
3153 (tui_locator_window::set_locator_fullname): Delete.
3154 (tui_locator_window::set_locator_info): Delete.
3155 (tui_update_locator_fullname): Delete.
3156 (tui_show_frame_info): Likewise.
3157 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
3158 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
3159 tui/tui-location.h and renamed to
3160 tui_location_tracker::set_location.
3161 (tui_locator_window::set_locator_fullname): Moved to
3162 tui/tui-location.h and renamed to
3163 tui_location_tracker::set_fullname.
3164 (tui_locator_window::full_name): Delete.
3165 (tui_locator_window::proc_name): Delete.
3166 (tui_locator_window::line_no): Delete.
3167 (tui_locator_window::addr): Delete.
3168 (tui_locator_window::gdbarch): Delete.
3169 (tui_update_locator_fullname): Delete declaration.
3170 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
3172 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
3173 (tui_display_main): Call function on tui_location directly.
3174 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
3175 * tui/tui-location.c: New file.
3176 * tui/tui-location.h: New file.
3178 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3180 * gdbtypes.h (get_type_arch): Rename to...
3181 (struct type) <arch>: ... this, update all users.
3183 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3185 * gdbtypes.h (struct type) <arch>: Rename to...
3186 <arch_owner>: ... this, update all users.
3187 <objfile>: Rename to...
3188 <objfile_owner>: ... this, update all users.
3190 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3192 * gdbcmd.h (execute_command_to_string): Update comment.
3193 * top.c (execute_command_to_string): Update header comment.
3195 2021-01-28 Tom de Vries <tdevries@suse.de>
3197 PR breakpoints/27205
3198 * breakpoint.c (create_longjmp_master_breakpoint_probe)
3199 (create_longjmp_master_breakpoint_names): New function, factored out
3201 (create_longjmp_master_breakpoint): ... here. Only try to install
3202 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
3203 breakpoint in libc.so failed.
3205 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
3208 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
3209 unique_ptr is released when the wrapped pointer is kept for later
3212 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
3214 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3215 BLR and BR instructions.
3216 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3217 (enum aarch64_masks): New.
3219 2021-01-26 Tom Tromey <tromey@adacore.com>
3221 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3222 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3223 (windows_init_thread_list, windows_nat::handle_load_dll)
3224 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3225 (windows_nat_target::resume)
3226 (windows_nat_target::get_windows_debug_event)
3227 (windows_nat_target::interrupt, windows_xfer_memory)
3228 (windows_nat_target::close): Update.
3229 * nat/windows-nat.c (DEBUG_EVENTS): Use
3230 debug_prefixed_printf_cond.
3231 (matching_pending_stop, fetch_pending_stop)
3232 (continue_last_debug_event): Update.
3234 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
3236 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3237 elfcore_write_file_note.
3239 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
3241 * arc-tdep.c (arc_add_reggroups): New function.
3242 (arc_gdbarch_init): Call arc_add_reggroups.
3244 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
3246 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3248 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3249 Simon Marchi <simon.marchi@polymtl.ca>
3250 Tom de Vries <tdevries@suse.de>
3252 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
3255 2021-01-25 Tom Tromey <tromey@adacore.com>
3257 * dwarf2/read.c (get_mpz): New function.
3258 (get_dwarf2_rational_constant): Use it.
3260 2021-01-25 Tom Tromey <tromey@adacore.com>
3262 * ada-lang.c (resolve_subexp): Handle array context.
3264 2021-01-23 Tom Tromey <tom@tromey.com>
3267 * compile/compile-loc2c.c (note_register): New function.
3268 (pushf_register_address, pushf_register): Use it.
3270 2021-01-23 Tom Tromey <tom@tromey.com>
3272 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3273 Change type of "registers_used".
3274 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
3275 * dwarf2/loc.c (dwarf2_compile_property_to_c)
3276 (locexpr_generate_c_location, loclist_generate_c_location): Change
3277 type of "registers_used".
3278 * compile/compile.h (compile_dwarf_expr_to_c)
3279 (compile_dwarf_bounds_to_c): Update.
3280 * compile/compile-loc2c.c (pushf_register_address)
3281 (pushf_register, do_compile_dwarf_expr_to_c)
3282 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
3283 of "registers_used".
3284 * compile/compile-c.h (generate_c_for_variable_locations):
3286 * compile/compile-c-symbols.c (generate_vla_size)
3287 (generate_c_for_for_one_variable): Change type of
3289 (generate_c_for_variable_locations): Return std::vector.
3290 * compile/compile-c-support.c (generate_register_struct): Change
3291 type of "registers_used".
3294 2021-01-23 Tom Tromey <tom@tromey.com>
3296 * compile/compile-internal.h (class compile_instance)
3297 <set_arguments>: Change return type.
3298 * compile/compile.c (compile_to_object): Remove call to reset.
3299 (compile_instance::set_arguments): Change return type.
3301 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3303 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3304 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3306 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3308 * Makefile.in (SELFTESTS_SRCS): Add
3309 unittests/gdb_tilde_expand-selftests.c.
3310 * unittests/gdb_tilde_expand-selftests.c: New file.
3312 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3315 * NEWS: Mention new command.
3316 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3317 (version_style): Define.
3318 (cli_style_option::cli_style_option): Add intensity parameter, and
3320 (_initialize_cli_style): Register version style set/show commands.
3321 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3322 (version_style): Declare.
3323 * top.c (print_gdb_version): Use version_stype, and styled_string
3324 to print the GDB version string.
3326 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3328 * utils.c (emit_style_escape): Only emit an escape sequence if the
3329 requested style is different than the current applied style.
3330 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3331 current applied_style.
3332 (fputs_styled): Remove is_default check.
3333 (fputs_styled_unfiltered): Likewise.
3334 (vfprintf_styled_no_gdbfmt): Likewise.
3336 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3338 * remote.h (remote_debug_printf): New.
3339 (remote_debug_printf_nofunc): New.
3340 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
3341 * remote.c: Use above macros throughout file.
3343 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3345 * remote.h (remote_debug): Change to bool.
3346 * remote.c (remote_debug): Change to bool.
3347 (_initialize_remote): Adjust.
3349 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3351 * target.h (remote_debug): Move to...
3352 * remote.h (remote_debug): ... here.
3353 * top.c (remote_debug): Move to...
3354 * remote.c (remote_debug): ... here.
3355 * remote-sim.c: Include remote.h.
3357 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3359 * cli/cli-cmds.c (show_remote_debug): Remove.
3360 (show_remote_timeout): Remove.
3361 (_initialize_cli_cmds): Don't register commands.
3362 * remote.c (show_remote_debug): Move here.
3363 (show_remote_timeout): Move here.
3364 (_initialize_remote): Register commands.
3366 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3368 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
3369 type::objfile method instead.
3371 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3373 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
3374 use the type::is_objfile_owned method.
3376 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
3378 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
3379 (TYPE_OWNER): Remove.
3380 (TYPE_OBJFILE): Adjust.
3381 (struct main_type) <flag_objfile_owned>: Rename to...
3382 <m_flag_objfile_owned>: ... this.
3383 <owner>: Rename to...
3384 <m_owner>: ... this.
3385 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3387 (TYPE_ALLOC): Adjust.
3388 * gdbtypes.c (alloc_type): Adjust.
3389 (alloc_type_arch): Adjust.
3390 (alloc_type_copy): Adjust.
3391 (get_type_arch): Adjust.
3392 (smash_type): Adjust.
3393 (lookup_array_range_type): Adjust.
3394 (recursive_dump_type): Adjust.
3395 (copy_type_recursive): Adjust.
3396 * compile/compile-c-types.c (convert_func): Adjust.
3397 (convert_type_basic): Adjust.
3398 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3401 (language_arch_info::type_and_symbol::alloc_type_symbol):
3404 2021-01-21 Luis Machado <luis.machado@linaro.org>
3406 * coffread.c (enter_linenos): Passing string to complaint.
3407 * valops.c (value_assign): Make array view.
3409 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3411 * auto-load.h (debug_auto_load): Move here.
3412 (auto_load_debug_printf): New.
3413 * auto-load.c: Use auto_load_debug_printf.
3414 (debug_auto_load): Move to header.
3415 * linux-thread-db.c (try_thread_db_load): Use
3416 auto_load_debug_printf.
3417 * main.c (captured_main_1): Likewise.
3419 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3421 * f-valprint.c (f77_array_offset_tbl): Remove.
3423 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3425 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3427 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3429 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3432 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
3435 * python/py-breakpoint.c (bppy_get_location): Handle
3436 bp_hardware_breakpoint.
3437 (bppy_init): Likewise.
3438 (gdbpy_breakpoint_created): Likewise.
3440 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3442 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3444 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3446 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3447 (_initialize_gdb_bfd): Adjust.
3449 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3452 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3454 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3456 * dwarf2/read.c (follow_die_offset): Add logging.
3457 (dwarf2_per_objfile::age_comp_units): Add logging.
3459 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3461 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3462 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3463 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3464 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3465 * arm-tdep.c (struct frame_unwind): Make static.
3466 * auto-load.c (auto_load_safe_path_vec): Make static.
3467 * csky-tdep.c (csky_stub_unwind): Make static.
3468 * gdbarch.c (gdbarch_data_registry): Make static.
3469 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3470 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3471 * i386-tdep.c (i386_frame_setup_skip_insns,
3472 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3474 * infrun.c (observer_mode): Make static.
3475 * linux-nat.c (sigchld_action): Make static.
3476 * linux-thread-db.c (thread_db_list): Make static.
3477 * maint-test-options.c (maintenance_test_options_list):
3478 * mep-tdep.c (mep_csr_registers): Make static.
3479 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3480 (stats): Make static.
3481 * nat/linux-osdata.c (struct osdata_type): Make static.
3482 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3483 * progspace.c (last_program_space_num): Make static.
3484 * python/py-param.c (struct parm_constant): Remove struct type
3486 (parm_constants): Make static.
3487 * python/py-record-btrace.c (btpy_list_methods): Make static.
3488 * python/py-record.c (recpy_gap_type): Make static.
3489 * record.c (record_goto_cmdlist): Make static.
3490 * regcache.c (regcache_descr_handle): Make static.
3491 * registry.h (DEFINE_REGISTRY): Make definition static.
3492 * symmisc.c (std_in, std_out, std_err): Make static.
3493 * top.c (previous_saved_command_line): Make static.
3494 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3496 * unittests/command-def-selftests.c (nr_duplicates,
3497 nr_invalid_prefixcmd, lists): Make static.
3498 * unittests/observable-selftests.c (test_notification): Make
3500 * unittests/optional/assignment/1.cc (counter): Make static.
3501 * unittests/optional/assignment/2.cc (counter): Make static.
3502 * unittests/optional/assignment/3.cc (counter): Make static.
3503 * unittests/optional/assignment/4.cc (counter): Make static.
3504 * unittests/optional/assignment/5.cc (counter): Make static.
3505 * unittests/optional/assignment/6.cc (counter): Make static.
3507 2021-01-20 Joel Sherrill <joel@rtems.org>
3510 * remote.c (struct remote_thread_info) <resume_state>: Rename
3512 <get_resume_state>: ... this.
3513 (remote_target::resume): Adjust.
3514 (remote_target::commit_resume): Adjust.
3515 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3517 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3518 Tom Tromey <tom@tromey.com>
3520 * stap-probe.c (stap_parse_single_operand): Handle '!'
3522 (stap_parse_argument_conditionally): Likewise.
3523 Skip spaces after processing open-parenthesis sub-expression.
3524 (stap_parse_argument_1): Skip spaces after call to
3525 stap_parse_argument_conditionally.
3526 Handle case when right-side expression is a parenthesized
3528 Skip spaces after call to stap_parse_argument_1.
3530 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3532 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3534 2021-01-19 Luis Machado <luis.machado@linaro.org>
3536 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3537 memory and save data.
3538 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3539 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3540 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3541 (trad_frame_value_bytes_p): Remove.
3542 (trad_frame_reset_saved_regs): Adjust documentation.
3543 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3544 constructor and reset the state of the registers.
3545 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3546 (trad_frame_value_bytes_p, trad_frame_set_value)
3547 (trad_frame_set_realreg, trad_frame_set_addr)
3548 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3549 (trad_frame_set_reg_realreg): Update to call member function.
3550 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3551 (trad_frame_get_prev_register): Likewise.
3553 * aarch64-tdep.c (aarch64_analyze_prologue)
3554 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3555 (aarch64_prologue_prev_register): Update to use member functions.
3556 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3557 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3558 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3559 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3560 (arm_make_epilogue_frame_cache): Likewise.
3561 * avr-tdep.c (avr_frame_unwind_cache)
3562 (avr_frame_prev_register): Likewise.
3563 * cris-tdep.c (cris_scan_prologue): Likewise.
3564 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3565 * frv-tdep.c (frv_analyze_prologue): Likewise.
3566 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3567 * lm32-tdep.c (lm32_frame_cache): Likewise.
3568 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3569 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3570 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3571 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3572 (reset_saved_regs): Adjust to set realreg.
3573 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3574 call member functions.
3575 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3576 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3577 (s390_backchain_frame_unwind_cache): Likewise.
3578 * score-tdep.c (score7_analyze_prologue)
3579 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3580 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3581 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3582 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3583 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3584 * tilegx-tdep.c (tilegx_analyze_prologue)
3585 (tilegx_frame_cache): Likewise.
3586 * v850-tdep.c (v850_frame_cache): Likewise.
3587 * vax-tdep.c (vax_frame_cache): Likewise.
3589 2021-01-19 Luis Machado <luis.machado@linaro.org>
3591 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3593 (put_frame_register_bytes): Likewise.
3594 Adjust documentation.
3595 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3596 (safe_frame_unwind_memory): Likewise.
3597 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3598 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3600 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3601 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3602 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3603 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3604 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3605 * dwarf2/loc.c (rw_pieced_value): Likewise.
3606 * hppa-tdep.c (hppa_frame_cache): Likewise.
3607 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3608 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3609 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3610 (i386_linux_rt_sigtramp_start): Likewise.
3611 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3612 * i386-tdep.c (i386_register_to_value): Likewise.
3613 * i387-tdep.c (i387_register_to_value): Likewise.
3614 * ia64-tdep.c (ia64_register_to_value): Likewise.
3615 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3616 (m32r_linux_rt_sigtramp_start): Likewise.
3617 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3618 * m68k-tdep.c (m68k_register_to_value): Likewise.
3619 * mips-tdep.c (mips_register_to_value)
3620 (mips_value_to_register): Likewise.
3621 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3622 (ppcfbsd_sigtramp_frame_cache): Likewise.
3623 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3624 (ppcobsd_sigtramp_frame_cache): Likewise.
3625 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3626 (rs6000_register_to_value): Likewise.
3627 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3628 * tramp-frame.c (tramp_frame_start): Likewise.
3629 * valops.c (value_assign): Likewise.
3631 2021-01-19 Luis Machado <luis.machado@linaro.org>
3633 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3635 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3636 instead of buffer and size.
3637 (trad_frame_set_reg_value_bytes): Likewise.
3638 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3639 (trad_frame_set_value_bytes): Likewise.
3641 2021-01-18 Mike Frysinger <vapier@gentoo.org>
3643 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3645 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3647 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3648 (riscv_fbsd_gregset): Use riscv_supply_regset.
3649 (riscv_fbsd_fpregset): Likewise.
3650 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3651 (riscv_linux_fregset): Likewise.
3652 * riscv-tdep.c (riscv_supply_regset): Define new function.
3653 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3655 2021-01-18 Tom de Vries <tdevries@suse.de>
3658 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3660 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3663 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3665 * remote.c (class remote_target) <remote_hostio_send_command,
3666 remote_hostio_parse_result>: Constify parameter.
3667 (remote_hostio_parse_result): Likewise.
3668 (remote_target::remote_hostio_send_command): Adjust.
3669 (remote_target::remote_hostio_pread_vFile): Adjust.
3670 (remote_target::fileio_readlink): Adjust.
3671 (remote_target::fileio_fstat): Adjust.
3673 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3675 * remote.c (remote_target::start_remote): Move wait_status to
3678 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3680 * remote.c (class remote_target):
3681 <add_current_inferior_and_thread>: Constify parameter.
3682 (stop_reply_extract_thread): Likewise.
3683 (remote_target::get_current_thread): Likewise.
3684 (remote_target::add_current_inferior_and_thread): Likewise.
3686 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3688 * remote.c (class remote_target)
3689 <remote_unpack_thread_info_response,
3690 parse_threadlist_response>: Constify parameter and/or return
3691 value and or local variable.
3692 (stub_unpack_int): Likewise.
3693 (unpack_nibble): Likewise.
3694 (unpack_byte): Likewise.
3695 (unpack_int): Likewise.
3696 (unpack_string): Likewise.
3697 (unpack_threadid): Likewise.
3698 (remote_target::remote_unpack_thread_info_response): Likewise.
3699 (remote_target::parse_threadlist_response): Likewise.
3701 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3703 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3705 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
3707 * MAINTAINERS (Write After Approval): Add myself.
3709 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3711 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3712 because is_trivially_default_constructible was first implemented with
3715 2021-01-14 Tom de Vries <tdevries@suse.de>
3717 PR breakpoints/27151
3718 * objfiles.h (in_plt_section): Handle .plt.sec.
3720 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3724 (remote_target::select_thread_for_ambiguous_stop_reply): New
3726 (remote_target::process_stop_reply): Call
3727 select_thread_for_ambiguous_stop_reply.
3729 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3731 * record-btrace.c (class record_btrace_target): Remove.
3732 (record_btrace_target::commit_resume): Remove.
3733 * record-full.c (class record_full_target): Remove.
3734 (record_full_target::commit_resume): Remove.
3736 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3738 * remote.c (enum class resume_state): New.
3739 (struct resumed_pending_vcont_info): New.
3740 (struct remote_thread_info) <resume_state, set_not_resumed,
3741 set_resumed_pending_vcont, resumed_pending_vcont_info,
3742 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3744 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3745 (remote_target::remote_add_thread): Adjust.
3746 (remote_target::process_initial_stop_replies): Adjust.
3747 (remote_target::resume): Adjust.
3748 (remote_target::commit_resume): Rely on state in
3749 remote_thread_info and not on tp->executing.
3750 (remote_target::process_stop_reply): Adjust.
3752 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3754 * arc-tdep.h (arc_debug_printf): New.
3755 * arc-tdep.c: Use arc_debug_printf.
3756 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3757 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3758 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3760 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3762 * arc-tdep.h (arc_debug): Change type to bool.
3763 * arc-tdep.c (arc_debug): Change type to bool.
3764 (arc_analyze_prologue): Adjust.
3765 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3766 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3768 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3770 * auto-load.c (auto_load_objfile_script_1): Use bool.
3771 (execute_script_contents): Use bool.
3773 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3775 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3777 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3779 * extension-priv.h (struct extension_language_script_ops)
3780 <auto_load_enabled>: Return bool.
3781 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3783 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3785 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3787 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3788 move comment to header.
3789 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3791 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3792 move comment to header.
3794 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3796 * auto-load.h (file_is_auto_load_safe): Change return type to
3797 bool, move comment here.
3798 * auto-load.c (file_is_auto_load_safe): Change return type and
3799 advice_printed to bool. Move comment to header.
3801 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3803 * jit.c (jit_debug_printf): New, use throughout file.
3805 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3807 * infrun.c (normal_stop): Fix indentation.
3809 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3811 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3813 * symfile.h: ... here.
3814 * symfile.c: Update doc.
3816 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3818 * target.h (baud_rate, serial_parity): Move declarations...
3819 * serial.h: ... here.
3820 * main.c: Include serial.h.
3821 * serial.c (baud_rate, serial_parity): Update doc.
3823 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3825 * top.c (pre_init_ui_hook): Remove.
3827 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3829 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3830 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3831 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3832 * features/aarch64-fpu.xml: Add bfloat16 type.
3834 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3836 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3838 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3840 * f-exp.y (dot_ops): Rename to...
3841 (fortran_operators): ...this. Add a header comment. Add symbol
3843 (yylex): Update to use fortran_operators not dot_ops. Remove
3844 special handling for '**', this is now included in
3847 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3849 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3850 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3851 * aarch64-tdep.c: Use aarch64_debug_printf.
3853 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3855 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3858 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3860 * jit.c (jit_debug): Change type to bool.
3861 (_initialize_jit): Adjust.
3863 2021-01-09 Tom Tromey <tom@tromey.com>
3866 * compile/compile.c (compile_to_object): Avoid crash when
3867 osabi_triplet_regexp returns NULL.
3869 2021-01-09 Tom Tromey <tom@tromey.com>
3871 * tracepoint.h (class collection_list) <append_exp>: Take a
3873 * tracepoint.c (collection_list::append_exp): Take a std::string.
3874 (encode_actions_1): Update.
3876 2021-01-08 Tom Tromey <tromey@adacore.com>
3878 * parse.c (parse_expression): Add void_context_p parameter. Use
3879 parse_exp_in_context.
3880 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3882 (print_command, call_command): Update.
3883 * expression.h (parse_expression): Add void_context_p parameter.
3885 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3887 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3888 for internalvar components that have a dynamic location.
3890 2021-01-08 Tom de Vries <tdevries@suse.de>
3893 * breakpoint.c (create_exception_master_breakpoint_probe)
3894 (create_exception_master_breakpoint_hook): Factor out
3896 (create_exception_master_breakpoint): ... here. Only try to install
3897 the master exception breakpoint in objfile.debug using the
3898 _Unwind_DebugHook method, if the install using probes in objfile
3901 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3903 * f-lang.c (fortran_value_subarray): Call value_from_component.
3905 2021-01-07 Mike Frysinger <vapier@gentoo.org>
3907 * remote-sim.c: Include memory-map.h.
3908 (gdbsim_target): Define memory_map override.
3909 (gdbsim_target::memory_map): Define.
3911 2021-01-07 Tom Tromey <tromey@adacore.com>
3913 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3915 2021-01-07 Tom Tromey <tromey@adacore.com>
3917 * ada-lang.c (add_component_interval): Start loop using vector's
3920 2021-01-06 Tom Tromey <tromey@adacore.com>
3922 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3924 * valarith.c (fixed_point_binop): Handle multiplication
3925 and division specially.
3926 * valops.c (value_to_gdb_mpq): New function.
3927 (value_cast_to_fixed_point): Use it.
3929 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3931 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3932 Call wnoutrefresh instead of tui_win_info::refresh_window.
3934 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3936 * tui/tui-source.c (tui_source_window::show_line_number):
3937 Redraw second space after line number.
3939 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3942 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3943 Fix source pad size in prefresh.
3944 (tui_source_window_base::show_source_content): Grow source pad
3947 2021-01-04 Mike Frysinger <vapier@gentoo.org>
3949 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3950 (bfin_frame_align): Use align_down.
3952 2021-01-04 Tom de Vries <tdevries@suse.de>
3954 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3955 terminators that do not terminate anything.
3957 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3959 * debug.c (debug_print_depth): New.
3960 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3961 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3962 * infrun.c (start_step_over): Use
3963 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3964 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3965 INFRUN_SCOPED_DEBUG_START_END.
3966 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3968 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3970 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3972 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3974 * utils.c (vfprintf_unfiltered): Print timestamp only when
3975 previous debug output ended with a newline.
3977 2021-01-04 Luis Machado <luis.machado@linaro.org>
3979 Update all users of trad_frame_saved_reg to use the new member
3982 Remote all struct keywords from declarations of trad_frame_saved_reg
3983 types, except on forward declarations.
3985 * aarch64-tdep.c: Update.
3986 * alpha-mdebug-tdep.c: Update.
3987 * alpha-tdep.c: Update.
3988 * arc-tdep.c: Update.
3989 * arm-tdep.c: Update.
3990 * avr-tdep.c: Update.
3991 * cris-tdep.c: Update.
3992 * csky-tdep.c: Update.
3993 * frv-tdep.c: Update.
3994 * hppa-linux-tdep.c: Update.
3995 * hppa-tdep.c: Update.
3996 * hppa-tdep.h: Update.
3997 * lm32-tdep.c: Update.
3998 * m32r-linux-tdep.c: Update.
3999 * m32r-tdep.c: Update.
4000 * m68hc11-tdep.c: Update.
4001 * mips-tdep.c: Update.
4002 * moxie-tdep.c: Update.
4003 * riscv-tdep.c: Update.
4004 * rs6000-tdep.c: Update.
4005 * s390-linux-tdep.c: Update.
4006 * s390-tdep.c: Update.
4007 * score-tdep.c: Update.
4008 * sparc-netbsd-tdep.c: Update.
4009 * sparc-sol2-tdep.c: Update.
4010 * sparc64-fbsd-tdep.c: Update.
4011 * sparc64-netbsd-tdep.c: Update.
4012 * sparc64-obsd-tdep.c: Update.
4013 * sparc64-sol2-tdep.c: Update.
4014 * tilegx-tdep.c: Update.
4015 * v850-tdep.c: Update.
4016 * vax-tdep.c: Update.
4018 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4019 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4021 * trad-frame.c: Update.
4022 Remove TF_REG_* enum.
4023 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4024 a trivially-constructible struct.
4025 (trad_frame_reset_saved_regs): Adjust to use member function.
4026 (trad_frame_value_p): Likewise.
4027 (trad_frame_addr_p): Likewise.
4028 (trad_frame_realreg_p): Likewise.
4029 (trad_frame_value_bytes_p): Likewise.
4030 (trad_frame_set_value): Likewise.
4031 (trad_frame_set_realreg): Likewise.
4032 (trad_frame_set_addr): Likewise.
4033 (trad_frame_set_unknown): Likewise.
4034 (trad_frame_set_value_bytes): Likewise.
4035 (trad_frame_get_prev_register): Likewise.
4036 * trad-frame.h: Update.
4037 (trad_frame_saved_reg_kind): New enum.
4038 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4039 <m_kind, m_reg>: New member fields.
4040 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4041 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4042 <is_addr, is_unknown, is_value_bytes>: New member functions.
4044 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
4046 * target-float.c: Fix typos.
4048 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
4050 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4052 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4054 * gdbarch.sh: Update copyright year range.
4056 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4058 Update copyright year range in copyright header of all GDB files.
4060 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4062 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4063 to the list of directories to update.
4065 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4067 * top.c (print_gdb_version): Update copyright year.
4069 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4071 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
4073 For older changes see ChangeLog-2020.
4079 version-control: never