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