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