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