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