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