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