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