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