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