gdb/mi: add a '--force-condition' flag to the '-break-insert' cmd
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
4 '--force-condition' flag to force the condition in the
5 '-break-insert' and '-dprintf-insert' commands.
6 * NEWS: Mention the change.
7
8 2021-05-04 Tom de Vries <tdevries@suse.de>
9
10 PR guile/27806
11 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
12 memory functions.
13
14 2021-04-30 Tom Tromey <tom@tromey.com>
15
16 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
17 (add_signatured_type_cu_to_table): Remove.
18 (create_debug_type_hash_table): Assume dwo_file is non-null.
19 (create_debug_types_hash_table): Update comment.
20 (create_all_type_units): Remove.
21 (sort_tu_by_abbrev_offset): Update comment.
22 (build_type_psymtabs): Rename from build_type_psymtabs_1.
23 (build_type_psymtabs): Remove.
24 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
25 Update.
26 (read_comp_units_from_section): Add types_htab, section_kind
27 parameters.
28 (create_all_comp_units): Read type units.
29
30 2021-04-30 Tom Tromey <tom@tromey.com>
31
32 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
33 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
34 <get_cu>: Now inline.
35 <all_type_units>: Remove.
36 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
37 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
38 (dwarf2_per_bfd::get_tu): Remove.
39 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
40 (create_signatured_type_table_from_index)
41 (create_signatured_type_table_from_debug_names)
42 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
43 (dwarf2_base_index_functions::expand_all_symtabs)
44 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
45 (dwarf2_base_index_functions::map_symbol_filenames)
46 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
47 (add_signatured_type_cu_to_table, create_all_type_units)
48 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
49 (create_all_comp_units): Update.
50 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
51 (write_debug_names): Update.
52
53 2021-04-30 Tom Tromey <tom@tromey.com>
54
55 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
56 allocate_signatured_type>: Change return type.
57 <all_comp_units, all_type_units>: Hold unique pointers.
58 (struct dwarf2_per_cu_data): Add constructor and initializers.
59 (struct signatured_type): Derive from dwarf2_per_cu_data.
60 * dwarf2/read.c (type_unit_group): Derive from
61 dwarf2_per_cu_data.
62 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
63 (dwarf2_per_bfd::get_tu)
64 (dwarf2_per_bfd::allocate_signatured_type)
65 (dwarf2_per_bfd::allocate_signatured_type)
66 (create_cu_from_index_list, create_cus_from_index_list)
67 (create_signatured_type_table_from_index)
68 (create_signatured_type_table_from_debug_names)
69 (create_addrmap_from_aranges)
70 (dwarf2_base_index_functions::find_last_source_symtab)
71 (dw_expand_symtabs_matching_file_matcher)
72 (dwarf2_gdb_index::expand_symtabs_matching)
73 (dwarf2_base_index_functions::map_symbol_filenames)
74 (create_cus_from_debug_names_list)
75 (dw2_debug_names_iterator::next)
76 (dwarf2_debug_names_index::expand_symtabs_matching)
77 (create_debug_type_hash_table, add_type_unit)
78 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
79 Update.
80 (allocate_type_unit_groups_table): Use delete.
81 (create_type_unit_group): Change return type. Use new.
82 (get_type_unit_group, build_type_psymtabs_1)
83 (build_type_psymtab_dependencies)
84 (process_skeletonless_type_unit, set_partial_user)
85 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
86 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
87 (read_signatured_type): Update.
88 (dwarf2_find_containing_comp_unit): Change type of
89 'all_comp_units'.
90 (run_test): Update.
91 (dwarf2_per_bfd::allocate_per_cu)
92 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
93 Use new.
94 (add_signatured_type_cu_to_table): Update.
95 * dwarf2/index-write.c (write_one_signatured_type)
96 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
97 (write_debug_names): Update.
98
99 2021-04-30 Tom Tromey <tromey@adacore.com>
100
101 * nat/windows-nat.h (get_image_name): Don't declare.
102 * nat/windows-nat.c (get_image_name): Now static.
103
104 2021-04-30 Tom Tromey <tromey@adacore.com>
105
106 * windows-nat.c (windows_nat::handle_load_dll): Update.
107 (windows_nat_target::get_windows_debug_event): Call
108 dll_loaded_event.
109 (windows_add_all_dlls, windows_add_dll): Move to
110 nat/windows-nat.c.
111 * nat/windows-nat.h (handle_load_dll): Change parameters.
112 (dll_loaded_event, windows_add_all_dlls): Declare.
113 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
114 from windows-nat.c.
115 (dll_loaded_event): New function.
116
117 2021-04-30 Tom Tromey <tromey@adacore.com>
118
119 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
120 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
121 Declare.
122 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
123 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
124
125 2021-04-30 Tom Tromey <tromey@adacore.com>
126
127 * windows-nat.c: Move code to nat/windows-nat.[ch].
128 (_initialize_windows_nat): Call initialize_loadable.
129 * nat/windows-nat.h (AdjustTokenPrivileges)
130 (DebugActiveProcessStop, DebugBreakProcess)
131 (DebugSetProcessKillOnExit, EnumProcessModules)
132 (EnumProcessModulesEx, GetModuleInformation)
133 (GetModuleFileNameExA, GetModuleFileNameExW)
134 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
135 (GetCurrentConsoleFont, Wow64SuspendThread)
136 (Wow64GetThreadContext, Wow64SetThreadContext)
137 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
138 (AdjustTokenPrivileges_ftype)
139 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
140 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
141 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
142 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
143 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
144 (GetConsoleFontSize_ftype)
145 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
146 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
147 (Wow64GetThreadSelectorEntry_ftype): Likewise.
148 (initialize_loadable): Declare.
149 * nat/windows-nat.c (AdjustTokenPrivileges)
150 (DebugActiveProcessStop, DebugBreakProcess)
151 (DebugSetProcessKillOnExit, EnumProcessModules)
152 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
153 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
154 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
155 (Wow64GetThreadContext, Wow64SetThreadContext)
156 (Wow64GetThreadSelectorEntry): Define.
157 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
158 from windows-nat.c.
159 (initialize_loadable): Likewise, and rename.
160
161 2021-04-30 Tom Tromey <tromey@adacore.com>
162
163 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
164 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
165 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
166 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
167 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
168 (bad): New template functions.
169 (_initialize_loadable): Update.
170
171 2021-04-30 Tom Tromey <tromey@adacore.com>
172
173 * ada-lang.c (ada_index_type): Use ada_check_typedef.
174
175 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
176
177 * auto-load.h: Split namespace declaration.
178
179 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
180
181 * infrun.c (save_waitstatus): Move variables to inner scope.
182
183 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
184
185 * NEWS: Fix typo and stray full stop.
186
187 2021-04-28 Tom Tromey <tromey@adacore.com>
188
189 * ada-exp.y (primary): Use new type for null pointer.
190 * ada-lang.c (ada_type_match): Remove "may_deref"
191 parameter. Handle null pointer.
192 (ada_args_match): Update.
193 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
194 Handle null pointer.
195
196 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
197
198 * NEWS: Mention new commands.
199 * python/python.c (python_ignore_environment): New static global.
200 (show_python_ignore_environment): New function.
201 (set_python_ignore_environment): New function.
202 (python_dont_write_bytecode): New static global.
203 (show_python_dont_write_bytecode): New function.
204 (set_python_dont_write_bytecode): New function.
205 (_initialize_python): Register new commands.
206
207 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
208
209 * extension-priv.h (struct extension_language_ops): Rename
210 'finish_initialization' to 'initialize'.
211 * extension.c (finish_ext_lang_initialization): Renamed to...
212 (ext_lang_initialization): ...this, update comment, and updated
213 the calls to reflect the change in struct extension_language_ops.
214 * extension.h (finish_ext_lang_initialization): Renamed to...
215 (ext_lang_initialization): ...this.
216 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
217 (gdbscm_initialize): ...this, update comment at definition.
218 (guile_extension_ops): Update.
219 * main.c (captured_main_1): Update call to
220 finish_ext_lang_initialization.
221 * python/python.c (gdbpy_finish_initialization): Rename to...
222 (gdbpy_initialize): ...this, update comment at definition, and
223 update call to do_finish_initialization.
224 (python_extension_ops): Update.
225 (do_finish_initialization): Rename to...
226 (do_initialize): ...this, and update comment.
227
228 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * main.c (captured_main_1): Add a call to
231 finish_ext_lang_initialization.
232 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
233
234 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
235
236 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
237 (gdbscm_finish_initialization): Add code moved from
238 _initialize_guile.
239 (_initialize_guile): Move code to gdbscm_finish_initialization.
240 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
241 _initialize_scm_arch.
242 (_initialize_scm_arch): New function.
243 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
244 into _initialize_scm_block.
245 (_initialize_scm_block): New function.
246 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
247 into _initialize_scm_frame.
248 (_initialize_scm_frame): New function.
249 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
250 into _initialize_scm_objfile.
251 (_initialize_scm_objfile): New function.
252 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
253 code into _initialize_scm_progspace.
254 (_initialize_scm_progspace): New function.
255 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
256 into _initialize_scm_symbol.
257 (_initialize_scm_symbol): New function.
258 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
259 into _initialize_scm_symtab.
260 (_initialize_scm_symtab): New function.
261 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
262 _initialize_scm_type.
263 (_initialize_scm_type): New function.
264
265 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * python/py-arch.c (_initialize_py_arch): New function.
268 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
269 * python/py-block.c (_initialize_py_block): New function.
270 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
271 * python/py-inferior.c (_initialize_py_inferior): New function.
272 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
273 * python/py-objfile.c (_initialize_py_objfile): New function.
274 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
275 * python/py-progspace.c (_initialize_py_progspace): New function.
276 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
277 * python/py-registers.c (_initialize_py_registers): New function.
278 (gdbpy_initialize_registers): Move code to
279 _initialize_py_registers.
280 * python/py-symbol.c (_initialize_py_symbol): New function.
281 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
282 * python/py-symtab.c (_initialize_py_symtab): New function.
283 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
284 * python/py-type.c (_initialize_py_type): New function.
285 (gdbpy_initialize_types): Move code to _initialize_py_type.
286 * python/py-unwind.c (_initialize_py_unwind): New function.
287 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
288 * python/python.c (_initialize_python): Move call to
289 do_start_initialization to gdbpy_finish_initialization.
290 (gdbpy_finish_initialization): Add call to
291 do_start_initialization.
292
293 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
294
295 * extension.c (struct scoped_default_signal): New struct.
296 (scoped_default_sigint): New typedef.
297 (finish_ext_lang_initialization): Make use of
298 scoped_default_sigint.
299
300 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
301
302 * main.c (captured_main_1): Don't pass argument to gdb_init.
303 * top.c (gdb_init): Remove unused argument, and add header
304 comment.
305 * top.h (gdb_init): Remove argument.
306
307 2021-04-27 Luis Machado <luis.machado@linaro.org>
308
309 * psymtab.c (psymbol_functions::dump): Output newline.
310 Remove wrap.
311 * symmisc.c (dump_objfile): Likewise.
312
313 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
314 Simon Marchi <simon.marchi@polymtl.ca>
315
316 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
317 when attaching the 'auto_load_new_objfile' observer, so
318 other observers can specify it as a dependency.
319 * gdb/auto-load.h (struct token): Declare
320 'auto_load_new_objfile_observer_token' as token to be used
321 for the 'auto_load_new_objfile' observer.
322 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
323 'python_new_objfile' observer depend on 'auto_load_new_objfile'
324 observer, so it gets notified after the latter.
325
326 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
327 Simon Marchi <simon.marchi@polymtl.ca>
328
329 * unittests/observable-selftests.c (dependency_test_counters):
330 New.
331 (observer_token0, observer_token1, observer_token2,
332 observer_token3, observer_token4, observer_token5): New.
333 (struct dependency_observer_data): New struct.
334 (observer_dependency_test_callback): New function.
335 (test_observers): New.
336 (run_dependency_test): New function.
337 (test_dependency): New.
338 (_initialize_observer_selftest): Register dependency test.
339
340 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
341
342 PR gdb/27773
343 * cli/cli-dump.c (dump_binary_file): Check result of
344 gdb_fopen_cloexec.
345
346 2021-04-25 Sergei Trofimovich <siarheit@google.com>
347
348 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
349 by passing `process_stratum_target*` parameter.
350
351 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
352
353 PR gdb/22640
354 * typeprint.h (struct type_print_options): Add print_in_hex
355 flag.
356 (struct print_offset_data): Add print_in_hex flag, add a
357 constructor accepting a type_print_options* argument.
358 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
359 default value for print_in_hex.
360 (print_offset_data::indentation): Allow more horizontal space.
361 (print_offset_data::print_offset_data): Add ctor.
362 (print_offset_data::maybe_print_hole, print_offset_data::update):
363 Handle the print_in_hex flag.
364 (whatis_exp): Handle 'x' and 'd' flags.
365 (print_offsets_and_sizes_in_hex): Declare.
366 (set_print_offsets_and_sizes_in_hex): Create.
367 (show_print_offsets_and_sizes_in_hex): Create.
368 (_initialize_typeprint): Update help message for the ptype
369 command, register the 'set print type hex' and 'show print type
370 hex' commands.
371 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
372 (c_type_print_base): Construct the print_offset_data
373 object using the type_print_optons parameter.
374 * rust-lang.c (rust_language::print_type): Construct the
375 print_offset_data object using the type_print_optons parameter.
376 * NEWS: Mention the new flags of the ptype command.
377
378 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
379
380 * typeprint.h (struct type_print_options): Move before
381 print_offset_data.
382
383 2021-04-25 Joel Brobecker <brobecker@adacore.com>
384
385 GDB 10.2 released.
386
387 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
388
389 * observable.c (observer_debug): Change to bool.
390
391 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
392
393 * dwarf2/read.c: Add 'unordered_set' include.
394 (dwarf2_base_index_functions::map_symbol_filenames): Replace
395 'visited' hash table with 'qfn_cache' unordered_set. Remove use
396 of per_Bfd->filenames_cache cache, and use function local
397 filenames_cache instead. Reindent.
398 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
399
400 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
401
402 * breakpoint.c (iterate_over_bp_locations): Change callback to
403 function view, remove data parameter.
404 * breakpoint.h (iterate_over_bp_locations): Likewise.
405 * record-full.c (record_full_sync_record_breakpoints): Remove
406 data parameter.
407
408 2021-04-22 Tom Tromey <tom@tromey.com>
409
410 * c-typeprint.c (c_type_print_base_struct_union): Use
411 print_spaces_filtered_with_print_options.
412
413 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
414
415 PR gdb/27757
416 * python/py-type.c (typy_range): Check that bounds are constant
417 before accessing them as such.
418 * guile/scm-type.c (gdbscm_type_range): Likewise.
419
420 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
421
422 * Makefile.in (COMMON_SFILES): Remove continuations.c.
423 * inferior.c (inferior::add_continuation): New method, adapted
424 from 'add_inferior_continuation'.
425 (inferior::do_all_continuations): New method, adapted from
426 'do_all_inferior_continuations'.
427 (inferior::~inferior): Clear the list of continuations directly.
428 * inferior.h (class inferior) <continuations>: Rename into...
429 <m_continuations>: ...this and make private.
430 * continuations.c: Remove.
431 * continuations.h: Remove.
432 * event-top.c: Don't include "continuations.h".
433
434 Update the users below.
435 * inf-loop.c (inferior_event_handler)
436 * infcmd.c (attach_command)
437 (notice_new_inferior): Update.
438
439 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
440
441 * inferior.h (class inferior) <continuations>: Change the type
442 to be an std::list of std::function's.
443 Update the references and uses below.
444 * continuations.c (struct continuation): Delete.
445 (make_continuation): Delete.
446 (do_my_continuations_1): Delete.
447 (do_my_continuations): Delete.
448 (discard_my_continuations_1): Delete.
449 (discard_my_continuations): Delete.
450 (add_inferior_continuation): Update.
451 (do_all_inferior_continuations): Update.
452 (discard_all_inferior_continuations): Update.
453 * continuations.h (add_inferior_continuation): Update to take
454 an std::function as the parameter.
455 * infcmd.c (struct attach_command_continuation_args): Delete.
456 (attach_command_continuation): Delete.
457 (attach_command_continuation_free_args): Delete.
458 (attach_command): Update.
459 (notice_new_inferior): Update.
460
461 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
462
463 * continuations.h: Update the general comment.
464 * inferior.h (class inferior) <continuations>: Update the comment.
465 * interps.c: Do not include "continuations.h".
466
467 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
468
469 * continuations.h (do_all_inferior_continuations): Remove the 'err'
470 parameter. Update the references below.
471 * continuations.c (do_my_continuations_1)
472 (do_my_continuations)
473 (do_all_inferior_continuations): Update.
474 * inf-loop.c (inferior_event_handler): Update.
475 * infcmd.c (attach_command_continuation): Update.
476
477 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
478
479 * infcmd.c (attach_post_wait): Update the function comment.
480
481 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
482
483 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
484 Update the references below.
485 (struct attach_command_continuation_args)
486 (attach_command_continuation)
487 (attach_command_continuation_free_args)
488 (attach_command)
489 (notice_new_inferior): Update to remove the reference to 'args'.
490
491 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
492 Tom de Vries <tdevries@suse.de>
493
494 PR remote/27710
495 * remote.c (remote_target_is_non_stop_p): New function.
496 * remote.h (remote_target_is_non_stop_p): Declare.
497 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
498 to check non-stopness using notif_state->remote rather current target.
499
500 2021-04-22 Tom Tromey <tom@tromey.com>
501
502 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
503 (struct typed_val_int) <val>: Now ULONGEST.
504 (rust_parser::parse_array_type): Remove negative check.
505 (rust_lex_int_test): Change 'value' to ULONGEST.
506
507 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
508
509 * arch-utils.c (default_addressable_memory_unit_size): Return a
510 value based on bfd's bits per byte.
511
512 2021-04-21 Tom Tromey <tom@tromey.com>
513
514 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
515 unsigned char.
516 (struct dwarf2_per_cu_data): Rearrange.
517 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
518 unsigned char.
519 (struct comp_unit_head): Rearrange.
520 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
521
522 2021-04-21 Tom de Vries <tdevries@suse.de>
523
524 PR build/27681
525 * configure.ac: Remove --without-included-regex/--with-included-regex.
526 * config.in: Regenerate.
527 * configure: Regenerate.
528 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
529
530 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
531
532 * breakpoint.h (create_breakpoint): Add a new parameter,
533 'force_condition'.
534 * breakpoint.c (create_breakpoint): Use the 'force_condition'
535 argument when 'parse_extra' is false to check if the condition
536 is invalid at all of the breakpoint locations.
537 Update the users below.
538 (break_command_1)
539 (dprintf_command)
540 (trace_command)
541 (ftrace_command)
542 (strace_command)
543 (create_tracepoint_from_upload): Update.
544 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
545 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
546 * python/py-breakpoint.c (bppy_init): Update.
547 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
548
549 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
550
551 * breakpoint.c (print_one_breakpoint_location): Display "N" for
552 disabled-by-condition locations on MI-like output.
553 (breakpoint_1): Do not display the disabled-by-condition footnote
554 if the output is MI-like.
555
556 2021-04-21 Frederic Cambus <fred@statdns.com>
557
558 * syscalls/update-netbsd.sh: Fix script name display in usage, and
559 update year range in generated copyright notices.
560
561 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
562
563 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
564 qualifier_seq_noopt.
565
566 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
567
568 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
569
570 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
571
572 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
573 (producer_is_icc): Replace use of std::regex with gdb's
574 compiled_regex.
575
576 2021-04-17 Tom Tromey <tom@tromey.com>
577
578 PR gdb/23743:
579 * dwarf2/read.c (class offset_view): New.
580 (struct symbol_table_slot): Remove.
581 (struct mapped_index) <symbol_table, constant_pool>: Change type.
582 <symbol_name_index, symbol_vec_index>: New methods.
583 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
584 Rewrite.
585 (read_gdb_index_from_buffer): Update.
586 (struct dw2_symtab_iterator) <vec>: Change type.
587 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
588 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
589 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
590 <append_array, append_offset>: New methods.
591 (write_hash_table, add_address_entry, write_gdbindex_1)
592 (write_debug_names): Update.
593 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
594
595 2021-04-17 Tom Tromey <tom@tromey.com>
596
597 * dwarf2/index-write.c (write_psymtabs_to_index): Check
598 partial_symtabs.
599
600 2021-04-17 Tom Tromey <tom@tromey.com>
601
602 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
603 from map_matching_symbols. Change parameters.
604 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
605 Rename from map_matching_symbols. Change parameters.
606 * dwarf2/read.c (struct dwarf2_gdb_index)
607 <expand_matching_symbols>: Rename from map_matching_symbols.
608 Change parameters.
609 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
610 Rename from map_matching_symbols. Change parameters.
611 (dwarf2_gdb_index::expand_matching_symbols): Rename from
612 dw2_map_matching_symbols. Change parameters.
613 (dwarf2_gdb_index::expand_matching_symbols): Remove old
614 implementation.
615 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
616 map_matching_symbols. Change parameters.
617 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
618 from map_matching_symbols. Change parameters.
619 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
620 map_matching_symbols. Change parameters.
621 * ada-lang.c (map_matching_symbols): New function.
622 (add_nonlocal_symbols): Update.
623
624 2021-04-17 Tom Tromey <tom@tromey.com>
625
626 * quick-symbol.h (struct quick_symbol_functions)
627 <expand_symtabs_with_fullname>: Remove.
628 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
629 Remove.
630 * psympriv.h (struct psymbol_functions)
631 <expand_symtabs_with_fullname>: Remove.
632 * dwarf2/read.c (struct dwarf2_base_index_functions)
633 <expand_symtabs_with_fullname>: Remove.
634 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
635 Remove.
636 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
637 Update comment.
638 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
639 Rewrite.
640
641 2021-04-17 Tom Tromey <tom@tromey.com>
642
643 * symfile-debug.c (objfile::expand_symtabs_for_function):
644 Rewrite.
645 * quick-symbol.h (struct quick_symbol_functions)
646 <expand_symtabs_for_function>: Remove.
647 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
648 Remove.
649 * psympriv.h (struct psymbol_functions)
650 <expand_symtabs_for_function>: Remove.
651 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
652 Update comment.
653 * dwarf2/read.c (struct dwarf2_gdb_index)
654 <expand_symtabs_for_function>: Remove.
655 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
656 Remove.
657 (find_slot_in_mapped_hash): Remove.
658 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
659 (dw2_symtab_iter_init): Remove one overload.
660 (dwarf2_gdb_index::expand_symtabs_for_function)
661 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
662
663 2021-04-17 Tom Tromey <tom@tromey.com>
664
665 * symfile-debug.c (objfile::map_symtabs_matching_filename):
666 Rewrite.
667 * quick-symbol.h (struct quick_symbol_functions)
668 <map_symtabs_matching_filename>: Remove.
669 * psymtab.c (partial_map_expand_apply)
670 (psymbol_functions::map_symtabs_matching_filename): Remove.
671 * psympriv.h (struct psymbol_functions)
672 <map_symtabs_matching_filename>: Remove.
673 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
674 Update comment.
675 * dwarf2/read.c (struct dwarf2_base_index_functions)
676 <map_symtabs_matching_filename>: Remove.
677 (dw2_map_expand_apply)
678 (dwarf2_base_index_functions::map_symtabs_matching_filename):
679 Remove.
680
681 2021-04-17 Tom Tromey <tom@tromey.com>
682
683 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
684 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
685 Remove.
686 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
687 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
688 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
689 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
690 Remove.
691 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
692 (dwarf2_gdb_index::lookup_symbol)
693 (dwarf2_debug_names_index::lookup_symbol): Remove.
694
695 2021-04-17 Tom Tromey <tom@tromey.com>
696
697 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
698 * symmisc.c (maintenance_expand_symtabs): Update.
699 * symfile.c (expand_symtabs_matching): Update.
700 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
701 parameter.
702 * quick-symbol.h (struct quick_symbol_functions)
703 <expand_symtabs_matching>: Add 'domain' parameter.
704 * psymtab.c (recursively_search_psymtabs)
705 (psymbol_functions::expand_symtabs_matching): Add 'domain'
706 parameter.
707 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
708 Add 'domain' parameter.
709 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
710 'domain' parameter.
711 * linespec.c (iterate_over_all_matching_symtabs): Update.
712 * dwarf2/read.c (struct dwarf2_gdb_index)
713 <expand_symtabs_matching>: Add 'domain' parameter.
714 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
715 'domain' parameter.
716 (dw2_expand_symtabs_matching)
717 (dwarf2_gdb_index::expand_symtabs_matching)
718 (dw2_debug_names_iterator)
719 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
720 parameter.
721
722 2021-04-17 Tom Tromey <tom@tromey.com>
723
724 * symtab.c (global_symbol_searcher::expand_symtabs)
725 (default_collect_symbol_completion_matches_break_on): Update.
726 * symmisc.c (maintenance_expand_symtabs): Update.
727 * symfile.h (expand_symtabs_matching): Add search_flags
728 parameter.
729 * symfile.c (expand_symtabs_matching): Add search_flags
730 parameter.
731 * symfile-debug.c (objfile::expand_symtabs_matching): Add
732 search_flags parameter.
733 * quick-symbol.h (struct quick_symbol_functions)
734 <expand_symtabs_matching>: Add search_flags parameter.
735 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
736 * psymtab.c (recursively_search_psymtabs)
737 (psymbol_functions::expand_symtabs_matching): Add search_flags
738 parameter.
739 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
740 Add search_flags parameter.
741 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
742 search_flags parameter.
743 * linespec.c (iterate_over_all_matching_symtabs): Update.
744 * dwarf2/read.c (struct dwarf2_gdb_index)
745 <expand_symtabs_matching>: Add search_flags parameter.
746 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
747 search_flags parameter.
748 (dw2_map_matching_symbols): Update.
749 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
750 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
751 parameter.
752 (dw2_debug_names_iterator): Change block_index to search flags.
753 <m_block_index>: Likewise.
754 (dw2_debug_names_iterator::next)
755 (dwarf2_debug_names_index::lookup_symbol)
756 (dwarf2_debug_names_index::expand_symtabs_for_function)
757 (dwarf2_debug_names_index::map_matching_symbols)
758 (dwarf2_debug_names_index::map_matching_symbols): Update.
759 (dwarf2_debug_names_index::expand_symtabs_matching): Add
760 search_flags parameter.
761 * ada-lang.c (ada_add_global_exceptions)
762 (collect_symbol_completion_matches): Update.
763
764 2021-04-17 Tom Tromey <tom@tromey.com>
765
766 * symtab.c (default_collect_symbol_completion_matches_break_on):
767 Update.
768 * symfile.h (expand_symtabs_matching): Return bool.
769 * symfile.c (expand_symtabs_matching): Return bool.
770 * symfile-debug.c (objfile::expand_symtabs_matching): Return
771 bool.
772 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
773 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
774 bool.
775 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
776 bool.
777 * psympriv.h (struct psymbol_functions)
778 <expand_symtabs_matching>: Return bool.
779 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
780 bool.
781 * dwarf2/read.c (struct dwarf2_gdb_index)
782 <expand_symtabs_matching>: Return bool.
783 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
784 Return bool.
785 (dw2_expand_symtabs_matching_symbol): Return bool.
786 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
787 (dw2_expand_symtabs_matching)
788 (dwarf2_gdb_index::expand_symtabs_matching)
789 (dwarf2_debug_names_index::expand_symtabs_matching)
790 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
791
792 2021-04-17 Tom Tromey <tom@tromey.com>
793
794 * quick-symbol.h (enum block_search_flag_values): New.
795 (block_search_flags): New enum flags type.
796
797 2021-04-16 Tom Tromey <tom@tromey.com>
798
799 * rust-parse.c: New file.
800 * rust-exp.y: Remove.
801 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
802 (SFILES): Remove rust-exp.y.
803 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
804
805 2021-04-16 Luis Machado <luis.machado@linaro.org>
806
807 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
808
809 2021-04-15 John Baldwin <jhb@FreeBSD.org>
810
811 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
812 use throughout file.
813
814 2021-04-15 Tom Tromey <tromey@adacore.com>
815
816 * ada-valprint.c (ada_value_print_array): Handle optimized-out
817 arrays.
818
819 2021-04-15 Tom Tromey <tromey@adacore.com>
820
821 * printcmd.c (print_variable_and_value): Use
822 common_val_print_checked.
823
824 2021-04-15 Tom Tromey <tromey@adacore.com>
825
826 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
827 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
828 Update.
829 * p-exp.y (variable): Update.
830 * m2-exp.y (variable): Update.
831 * go-exp.y (variable): Update.
832 * expprint.c (dump_for_expression): New overload.
833 * expop.h (check_objfile): New overload.
834 (check_constant): New overload.
835 (class var_value_operation): Use block_symbol.
836 <get_symbol>: Rewrite.
837 * eval.c (var_value_operation::evaluate)
838 (var_value_operation::evaluate_funcall)
839 (var_value_operation::evaluate_for_address)
840 (var_value_operation::evaluate_for_address)
841 (var_value_operation::evaluate_with_coercion)
842 (var_value_operation::evaluate_for_sizeof)
843 (var_value_operation::evaluate_for_cast): Update.
844 * d-exp.y (PrimaryExpression): Update.
845 * c-exp.y (variable): Update.
846 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
847 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
848 (ada_var_value_operation::evaluate)
849 (ada_var_value_operation::resolve)
850 (ada_funcall_operation::resolve): Update.
851 * ada-exp.y (write_var_from_sym, write_object_renaming)
852 (write_ambiguous_var, write_var_or_type, write_name_assoc)
853 (maybe_overload): Update.
854 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
855
856 2021-04-15 Tom Tromey <tom@tromey.com>
857 Andrew Burgess <andrew.burgess@embecosm.com>
858
859 * NEWS: Add entry.
860 * main.c (captured_main_1): Call check_quiet_mode.
861 * top.c (startup_quiet): New global.
862 (check_quiet_mode): New function.
863 (show_startup_quiet): New function.
864 (init_main): Register new command.
865 * top.h (check_quiet_mode): Declare.
866
867 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 PR cli/25956
870 * NEWS: Mention new early init files and command line options.
871 * config.in: Regenerate.
872 * configure: Regenerate.
873 * configure.ac: Define GDBEARLYINIT.
874 * main.c (get_earlyinit_files): New function.
875 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
876 CMDARG_EARLYINIT_COMMAND.
877 (captured_main_1): Add support for new command line flags, and for
878 processing startup files.
879 (print_gdb_help): Include startup files in the output.
880
881 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
882
883 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
884 (relocate_file_path_maybe_in_datadir): ...this.
885 (class gdb_initfile_finder): New class.
886 (get_init_files): Now uses gdb_initfile_finder.
887 (print_gdb_help): Print 'None found' when there are no init files.
888
889 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
890
891 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
892 corresponding child of the abstract DIE when iterating the
893 children of the concrete DIE.
894
895 2021-04-13 Tom de Vries <tdevries@suse.de>
896
897 * ui-style.c (read_semi_number, extended_color): Change idx parameter
898 type to regoff_t *.
899
900 2021-04-13 Luis Machado <luis.machado@linaro.org>
901
902 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
903 hex values.
904
905 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
906
907 * rs6000-tdep.c: Add support for single-stepping of
908 prefixed instructions.
909
910 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
911
912 PR gdb/27525
913 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
914 handle the addpcis/lnia instruction.
915
916 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
917
918 * MAINTAINERS (Write After Approval): Add myself.
919
920 2021-4-12 Carl Love <cel@us.ibm.com>
921
922 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
923 (rs6000_builtin_type_vec128): Add append_composite_type_field for
924 float128.
925
926 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
927
928 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
929 * nat/windows-nat.h: Likewise.
930
931 2021-04-10 Eli Zaretskii <eliz@gnu.org>
932
933 * windows-nat.c (windows_nat::handle_load_dll): Call
934 windows_add_dll if get_image_name failed to glean the name of the
935 DLL by using the lpImageName pointer.
936 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
937 (windows_add_dll): Now does what windows_add_all_dlls did before,
938 but also accepts an argument LOAD_ADDR, which, if non-NULL,
939 specifies the address where the DLL was loaded into the inferior,
940 and looks for the single DLL loaded at that address.
941
942 2021-04-09 Luis Machado <luis.machado@linaro.org>
943
944 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
945
946 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
947
948 * darwin-nat.c (darwin_nat_target::resume): Remove status
949 variable.
950
951 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
952
953 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
954 prologue end for Intel compilers.
955 * amd64-tdep.c (amd64_skip_prologue): Likewise.
956 * producer.c (producer_is_icc_ge_19): New function.
957 * producer.h (producer_is_icc_ge_19): New declaration.
958
959 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
960
961 * producer.c: (producer_is_icc): Update for new version scheme.
962 (producer_parsing_tests): Update names and expected results.
963 * producer.h: (producer_is_icc): Update comment accordingly.
964
965 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
966
967 * target.h (struct target_ops) <follow_fork>: Return void.
968 (target_follow_fork): Likewise.
969 * target.c (default_follow_fork): Likewise.
970 (target_follow_fork): Likewise.
971 * infrun.c (follow_fork_inferior): Adjust.
972 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
973 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
974 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
975 * linux-nat.c (linux_nat_target::follow_fork): Return void.
976 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
977 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
978 * remote.c (class remote_target) <follow_fork>: Likewise.
979 (remote_target::follow_fork): Likewise.
980 * target-delegates.c: Re-generate.
981
982 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
983
984 * ctfread.c (fetch_tid_type): New function, use throughout file.
985 (read_forward_type): New function.
986 (read_type_record): Call read_forward_type.
987
988 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
989
990 * f-exp.h (class fortran_structop_operation): New class.
991 * f-exp.y (exp): Create fortran_structop_operation instead of the
992 generic structop_operation.
993 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
994 expression as EVAL_NORMAL if the result type was dynamic so we can
995 extract the actual array bounds.
996 (fortran_structop_operation::evaluate): New function.
997
998 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
999
1000 * eval.c (evaluate_subexp_standard): Remove
1001 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1002 STRUCTOP_PTR.
1003
1004 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * valops.c (value_cast): Call value_deeply_equal before performing
1007 any cast.
1008
1009 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1010
1011 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1012 the function.
1013
1014 2021-04-07 Caroline Tice <cmtice@google.com>
1015
1016 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1017 the search paths used resolve relative location of .dwo file.
1018
1019 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1020
1021 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1022 assert.
1023 (dwarf2_section_info::get_file_name): Add an assert.
1024 (dwarf2_section_info::read_string): Display a minimal, sane error
1025 when the dwarf2_section_info is not associated with a bfd section.
1026
1027 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * top.c (staged_gdb_datadir): Update comment.
1030 (set_gdb_datadir): Copy the value of gdb_datadir back into
1031 staged_datadir.
1032 (init_main): Initialise staged_gdb_datadir.
1033
1034 2021-04-06 Tom de Vries <tdevries@suse.de>
1035
1036 PR breakpoints/25884
1037 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1038 stepping range.
1039
1040 2021-04-06 Tom de Vries <tdevries@suse.de>
1041
1042 PR tui/27680
1043 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1044 to style.parse.
1045
1046 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1047
1048 * avr-tdep.c (avr_frame_unwind_cache): Use
1049 trad_frame_saved_reg::is_addr.
1050
1051 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1052
1053 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1054 adjust callers.
1055
1056 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1057
1058 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1059 objfile parameter for objfile_per_bfd_storage, adjust callers.
1060 (struct standard_psymtab) <standard_psymtab>: Likewise.
1061 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1062 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1063 * ctfread.c (struct ctf_psymtab): Likewise.
1064 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1065 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1066 (dwarf2_create_include_psymtab): Likewise.
1067 * objfiles.h (struct objfile_per_bfd_storage)
1068 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1069 <get_bfd>: New method.
1070 <m_bfd>: New field.
1071 * objfiles.c (get_objfile_bfd_data): Adjust.
1072
1073 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1074
1075 * psymtab.c (partial_symtab::partial_symtab): Change
1076 last_objfile_name to be an std::string.
1077 * symfile.c (allocate_symtab): Likewise.
1078
1079 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1080
1081 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1082 methods.
1083 (struct objfile) <intern>: Use
1084 objfile::objfile_per_bfd_storage::intern.
1085
1086 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1087
1088 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1089 with type::is_flag_enum.
1090
1091 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1092
1093 * gdbtypes.h (struct type) <is_flag_enum,
1094 set_is_flag_enum>: New methods.
1095 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1096 write call sites to use type::set_is_flag_enum.
1097
1098 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1099
1100 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1101 with type::is_declared_class.
1102
1103 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1104
1105 * gdbtypes.h (struct type) <is_declared_class,
1106 set_is_declared_class>: New methods.
1107 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1108 write call sites to use type::set_is_declared_class.
1109
1110 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1111
1112 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1113 to avoid deprecation warnings.
1114
1115 2021-04-01 Martin Liska <mliska@suse.cz>
1116
1117 * cp-name-parser.y: Use startswith instead of strncmp.
1118 * m2-exp.y: Likewise.
1119 * macroexp.c (substitute_args): Likewise.
1120 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1121 * rust-exp.y: Likewise.
1122
1123 2021-03-31 Tom Tromey <tom@tromey.com>
1124
1125 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1126 with dw2_map_matching_symbols.
1127 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1128 dw2_expand_symtabs_matching.
1129
1130 2021-03-31 Tom Tromey <tromey@adacore.com>
1131
1132 * dwarf2/stringify.h: Fix typo.
1133
1134 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1135
1136 PR gdb/27541
1137 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1138 with objfiles using READNOW.
1139
1140 2021-03-29 Tom Tromey <tromey@adacore.com>
1141
1142 * top.c (check_frame_language_change): Update.
1143 * language.c (language_info): Remove parameter.
1144 * language.h (language_info): Remove parameter.
1145
1146 2021-03-29 Luis Machado <luis.machado@linaro.org>
1147
1148 * compile/compile.c (get_args): Don't add empty argv entries.
1149
1150 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1151
1152 gdb:
1153 * procfs.c (procfs_target::attach): Define inf.
1154 Use it.
1155 (procfs_target::create_inferior): Likewise.
1156
1157 2021-03-28 Tom Tromey <tom@tromey.com>
1158
1159 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1160 (elf_symfile_read): Simplify.
1161 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1162 (make_lazy_dwarf_reader): New function.
1163 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1164 (dwarf2_initialize_objfile): Return void. Remove index_kind
1165 parameter. Push on 'qf' list.
1166 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1167 type. Remove 'index_kind' parameter.
1168 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1169
1170 2021-03-27 Tom Tromey <tom@tromey.com>
1171
1172 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1173
1174 2021-03-27 Tom Tromey <tom@tromey.com>
1175
1176 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1177
1178 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1179
1180 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1181 rid of 'local'.
1182
1183 2021-03-26 Tom Tromey <tom@tromey.com>
1184
1185 * symtab.c (struct output_source_filename_data): Add 'output'
1186 method and operator().
1187 (output_source_filename_data::output): Rename from
1188 output_source_filename.
1189 (output_partial_symbol_filename): Remove.
1190 (info_sources_command): Update.
1191 (struct add_partial_filename_data): Add operator().
1192 (add_partial_filename_data::operator()): Rename from
1193 maybe_add_partial_symtab_filename.
1194 (make_source_files_completion_list): Update.
1195 * symfile.c (quick_symbol_functions): Update.
1196 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1197 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1198 'need_fullname'. Remove 'data' parameter.
1199 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1200 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1201 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1202 Change type of 'fun' and 'need_fullname'. Remove 'data'
1203 parameter.
1204 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1205 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1206 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1207 parameter.
1208 (mi_cmd_file_list_exec_source_files): Update.
1209 * dwarf2/read.c
1210 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1211
1212 2021-03-26 Tom Tromey <tom@tromey.com>
1213
1214 * ada-lang.c (struct match_data): Add operator().
1215 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1216 (callback): Remove 'callback'.
1217
1218 2021-03-26 Tom Tromey <tom@tromey.com>
1219
1220 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1221 call make_ignore_params once.
1222
1223 2021-03-26 Tom Tromey <tom@tromey.com>
1224
1225 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1226 "user" check.
1227
1228 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1229 Pedro Alves <pedro@palves.net>
1230
1231 * async-event.c: Include "infrun.h".
1232 (async_event_handler_marked): New.
1233 * async-event.h (async_event_handler_marked): Declare.
1234 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1235 inferior before calling target method. Don't commit-resumed if
1236 target_has_pending_events is true.
1237 * remote.c (remote_target::has_pending_events): New.
1238 * target-delegates.c: Regenerate.
1239 * target.c (target_has_pending_events): New.
1240 * target.h (target_ops::has_pending_events): New target method.
1241 (target_has_pending_events): New.
1242
1243 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1244 Pedro Alves <pedro@palves.net>
1245
1246 * infcmd.c (run_command_1, attach_command, detach_command)
1247 (interrupt_target_1): Use scoped_disable_commit_resumed.
1248 * infrun.c (do_target_resume): Remove
1249 target_commit_resume call.
1250 (commit_resume_all_targets): Remove.
1251 (maybe_set_commit_resumed_all_targets): New.
1252 (maybe_call_commit_resumed_all_targets): New.
1253 (enable_commit_resumed): New.
1254 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1255 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1256 (scoped_disable_commit_resumed::reset)
1257 (scoped_disable_commit_resumed::reset_and_commit)
1258 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1259 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1260 New.
1261 (proceed): Use scoped_disable_commit_resumed and
1262 maybe_call_commit_resumed_all_targets.
1263 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1264 * infrun.h (struct scoped_disable_commit_resumed): New.
1265 (maybe_call_commit_resumed_all_process_targets): New.
1266 (struct scoped_enable_commit_resumed): New.
1267 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1268 * process-stratum-target.h (class process_stratum_target):
1269 <commit_resumed_state>: New.
1270 * record-full.c (record_full_wait_1): Change commit_resumed_state
1271 around calling commit_resumed.
1272 * remote.c (class remote_target) <commit_resume>: Rename to...
1273 <commit_resumed>: ... this.
1274 (struct stop_reply): Move up.
1275 (remote_target::commit_resume): Rename to...
1276 (remote_target::commit_resumed): ... this. Check if there is any
1277 thread pending vCont resume.
1278 (remote_target::remote_stop_ns): Generate stop replies for resumed
1279 but pending vCont threads.
1280 (remote_target::wait_ns): Add gdb_assert.
1281 * target-delegates.c: Regenerate.
1282 * target.c (target_wait, target_resume): Assert that the current
1283 process_stratum target isn't in commit-resumed state.
1284 (defer_target_commit_resume): Remove.
1285 (target_commit_resume): Remove.
1286 (target_commit_resumed): New.
1287 (make_scoped_defer_target_commit_resume): Remove.
1288 (target_stop): Assert that the current process_stratum target
1289 isn't in commit-resumed state.
1290 * target.h (struct target_ops) <commit_resume>: Rename to ...
1291 <commit_resumed>: ... this.
1292 (target_commit_resume): Remove.
1293 (target_commit_resumed): New.
1294 (make_scoped_defer_target_commit_resume): Remove.
1295 * top.c (wait_sync_command_done): Use
1296 scoped_enable_commit_resumed.
1297
1298 2021-03-26 Pedro Alves <pedro@palves.net>
1299
1300 * target.c (target_always_non_stop_p): Also check whether the
1301 target can async.
1302
1303 2021-03-26 Tom Tromey <tom@tromey.com>
1304
1305 * dwarf2/read.c (dwarf2_read_debug_names)
1306 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1307 (dw2_debug_names_iterator::next, create_type_unit_group):
1308 Simplify.
1309
1310 2021-03-25 Pedro Alves <pedro@palves.net>
1311
1312 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1313 around setting the breakpoint.
1314
1315 2021-03-25 Pedro Alves <pedro@palves.net>
1316
1317 * remote.c
1318 (remote_target::check_pending_events_prevent_wildcard_vcont):
1319 Check whether the event's ptid is not null_ptid before looking up
1320 the corresponding inferior.
1321
1322 2021-03-24 Changbin Du <changbin.du@gmail.com>
1323
1324 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1325 read_code.
1326
1327 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1328
1329 * target.h (current_top_target): Remove, make callers use the
1330 current inferior instead.
1331 * target.c (current_top_target): Remove.
1332
1333 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1334
1335 * target.h (target_shortname): Change to function declaration.
1336 (target_longname): Likewise.
1337 (target_attach_no_wait): Likewise.
1338 (target_post_attach): Likewise.
1339 (target_prepare_to_store): Likewise.
1340 (target_supports_enable_disable_tracepoint): Likewise.
1341 (target_supports_string_tracing): Likewise.
1342 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1343 (target_supports_dumpcore): Likewise.
1344 (target_dumpcore): Likewise.
1345 (target_can_run_breakpoint_commands): Likewise.
1346 (target_files_info): Likewise.
1347 (target_post_startup_inferior): Likewise.
1348 (target_insert_fork_catchpoint): Likewise.
1349 (target_remove_fork_catchpoint): Likewise.
1350 (target_insert_vfork_catchpoint): Likewise.
1351 (target_remove_vfork_catchpoint): Likewise.
1352 (target_insert_exec_catchpoint): Likewise.
1353 (target_remove_exec_catchpoint): Likewise.
1354 (target_set_syscall_catchpoint): Likewise.
1355 (target_rcmd): Likewise.
1356 (target_can_lock_scheduler): Likewise.
1357 (target_can_async_p): Likewise.
1358 (target_is_async_p): Likewise.
1359 (target_execution_direction): Likewise.
1360 (target_extra_thread_info): Likewise.
1361 (target_pid_to_exec_file): Likewise.
1362 (target_thread_architecture): Likewise.
1363 (target_find_memory_regions): Likewise.
1364 (target_make_corefile_notes): Likewise.
1365 (target_get_bookmark): Likewise.
1366 (target_goto_bookmark): Likewise.
1367 (target_stopped_by_watchpoint): Likewise.
1368 (target_stopped_by_sw_breakpoint): Likewise.
1369 (target_supports_stopped_by_sw_breakpoint): Likewise.
1370 (target_stopped_by_hw_breakpoint): Likewise.
1371 (target_supports_stopped_by_hw_breakpoint): Likewise.
1372 (target_have_steppable_watchpoint): Likewise.
1373 (target_can_use_hardware_watchpoint): Likewise.
1374 (target_region_ok_for_hw_watchpoint): Likewise.
1375 (target_can_do_single_step): Likewise.
1376 (target_insert_watchpoint): Likewise.
1377 (target_remove_watchpoint): Likewise.
1378 (target_insert_hw_breakpoint): Likewise.
1379 (target_remove_hw_breakpoint): Likewise.
1380 (target_can_accel_watchpoint_condition): Likewise.
1381 (target_can_execute_reverse): Likewise.
1382 (target_get_ada_task_ptid): Likewise.
1383 (target_filesystem_is_local): Likewise.
1384 (target_trace_init): Likewise.
1385 (target_download_tracepoint): Likewise.
1386 (target_can_download_tracepoint): Likewise.
1387 (target_download_trace_state_variable): Likewise.
1388 (target_enable_tracepoint): Likewise.
1389 (target_disable_tracepoint): Likewise.
1390 (target_trace_start): Likewise.
1391 (target_trace_set_readonly_regions): Likewise.
1392 (target_get_trace_status): Likewise.
1393 (target_get_tracepoint_status): Likewise.
1394 (target_trace_stop): Likewise.
1395 (target_trace_find): Likewise.
1396 (target_get_trace_state_variable_value): Likewise.
1397 (target_save_trace_data): Likewise.
1398 (target_upload_tracepoints): Likewise.
1399 (target_upload_trace_state_variables): Likewise.
1400 (target_get_raw_trace_data): Likewise.
1401 (target_get_min_fast_tracepoint_insn_len): Likewise.
1402 (target_set_disconnected_tracing): Likewise.
1403 (target_set_circular_trace_buffer): Likewise.
1404 (target_set_trace_buffer_size): Likewise.
1405 (target_set_trace_notes): Likewise.
1406 (target_get_tib_address): Likewise.
1407 (target_set_permissions): Likewise.
1408 (target_static_tracepoint_marker_at): Likewise.
1409 (target_static_tracepoint_markers_by_strid): Likewise.
1410 (target_traceframe_info): Likewise.
1411 (target_use_agent): Likewise.
1412 (target_can_use_agent): Likewise.
1413 (target_augmented_libraries_svr4_read): Likewise.
1414 (target_log_command): Likewise.
1415 * target.c (target_shortname): New.
1416 (target_longname): New.
1417 (target_attach_no_wait): New.
1418 (target_post_attach): New.
1419 (target_prepare_to_store): New.
1420 (target_supports_enable_disable_tracepoint): New.
1421 (target_supports_string_tracing): New.
1422 (target_supports_evaluation_of_breakpoint_conditions): New.
1423 (target_supports_dumpcore): New.
1424 (target_dumpcore): New.
1425 (target_can_run_breakpoint_commands): New.
1426 (target_files_info): New.
1427 (target_post_startup_inferior): New.
1428 (target_insert_fork_catchpoint): New.
1429 (target_remove_fork_catchpoint): New.
1430 (target_insert_vfork_catchpoint): New.
1431 (target_remove_vfork_catchpoint): New.
1432 (target_insert_exec_catchpoint): New.
1433 (target_remove_exec_catchpoint): New.
1434 (target_set_syscall_catchpoint): New.
1435 (target_rcmd): New.
1436 (target_can_lock_scheduler): New.
1437 (target_can_async_p): New.
1438 (target_is_async_p): New.
1439 (target_execution_direction): New.
1440 (target_extra_thread_info): New.
1441 (target_pid_to_exec_file): New.
1442 (target_thread_architecture): New.
1443 (target_find_memory_regions): New.
1444 (target_make_corefile_notes): New.
1445 (target_get_bookmark): New.
1446 (target_goto_bookmark): New.
1447 (target_stopped_by_watchpoint): New.
1448 (target_stopped_by_sw_breakpoint): New.
1449 (target_supports_stopped_by_sw_breakpoint): New.
1450 (target_stopped_by_hw_breakpoint): New.
1451 (target_supports_stopped_by_hw_breakpoint): New.
1452 (target_have_steppable_watchpoint): New.
1453 (target_can_use_hardware_watchpoint): New.
1454 (target_region_ok_for_hw_watchpoint): New.
1455 (target_can_do_single_step): New.
1456 (target_insert_watchpoint): New.
1457 (target_remove_watchpoint): New.
1458 (target_insert_hw_breakpoint): New.
1459 (target_remove_hw_breakpoint): New.
1460 (target_can_accel_watchpoint_condition): New.
1461 (target_can_execute_reverse): New.
1462 (target_get_ada_task_ptid): New.
1463 (target_filesystem_is_local): New.
1464 (target_trace_init): New.
1465 (target_download_tracepoint): New.
1466 (target_can_download_tracepoint): New.
1467 (target_download_trace_state_variable): New.
1468 (target_enable_tracepoint): New.
1469 (target_disable_tracepoint): New.
1470 (target_trace_start): New.
1471 (target_trace_set_readonly_regions): New.
1472 (target_get_trace_status): New.
1473 (target_get_tracepoint_status): New.
1474 (target_trace_stop): New.
1475 (target_trace_find): New.
1476 (target_get_trace_state_variable_value): New.
1477 (target_save_trace_data): New.
1478 (target_upload_tracepoints): New.
1479 (target_upload_trace_state_variables): New.
1480 (target_get_raw_trace_data): New.
1481 (target_get_min_fast_tracepoint_insn_len): New.
1482 (target_set_disconnected_tracing): New.
1483 (target_set_circular_trace_buffer): New.
1484 (target_set_trace_buffer_size): New.
1485 (target_set_trace_notes): New.
1486 (target_get_tib_address): New.
1487 (target_set_permissions): New.
1488 (target_static_tracepoint_marker_at): New.
1489 (target_static_tracepoint_markers_by_strid): New.
1490 (target_traceframe_info): New.
1491 (target_use_agent): New.
1492 (target_can_use_agent): New.
1493 (target_augmented_libraries_svr4_read): New.
1494 (target_log_command): New.
1495 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1496 * infrun.c (set_schedlock_func): Adjust.
1497 * mi/mi-main.c (exec_reverse_continue): Adjust.
1498 * reverse.c (exec_reverse_once): Adjust.
1499 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1500 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1501 * remote-sim.c (gdbsim_target::detach): Adjust.
1502 (gdbsim_target::files_info): Adjust.
1503
1504 2021-03-24 Tom Tromey <tom@tromey.com>
1505
1506 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1507 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1508 (check_match, dw2_expand_symtabs_matching)
1509 (dwarf2_debug_names_index::map_matching_symbols)
1510 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1511
1512 2021-03-24 Keith Seitz <keiths@redhat.com>
1513
1514 * compile/compile-cplus-types.c
1515 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1516 thinko.
1517
1518 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1519
1520 * gdbarch.sh (gdbarch_data_registry): Make static.
1521 * gdbarch.c: Re-generate.
1522
1523 2021-03-24 Luis Machado <luis.machado@linaro.org>
1524
1525 * NEWS: Mention memory tagging changes.
1526
1527 2021-03-24 Luis Machado <luis.machado@linaro.org>
1528
1529 * printcmd.c (decode_format): Handle the 'm' modifier.
1530 (do_examine): Display allocation tags when required/supported.
1531 (should_validate_memtags): New function.
1532 (print_command_1): Display memory tag mismatches.
1533 * valprint.c (show_memory_tag_violations): New function.
1534 (value_print_option_defs): Add new option "memory-tag-violations".
1535 (user_print_options) <memory_tag_violations>: Initialize to 1.
1536 * valprint.h (struct format_data) <print_tags>: New field.
1537 (value_print_options) <memory_tag_violations>: New field.
1538
1539 2021-03-24 Luis Machado <luis.machado@linaro.org>
1540
1541 * printcmd.c: Include gdbsupport/rsp-low.h.
1542 (memory_tag_list): New static global.
1543 (process_print_command_args): Factored out of
1544 print_command_1.
1545 (print_command_1): Use process_print_command_args.
1546 (show_addr_not_tagged, show_memory_tagging_unsupported)
1547 (memory_tag_command, memory_tag_print_tag_command)
1548 (memory_tag_print_logical_tag_command)
1549 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1550 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1551 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1552 functions.
1553 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1554
1555 2021-03-24 Luis Machado <luis.machado@linaro.org>
1556
1557 * aarch64-linux-tdep.c
1558 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1559 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1560
1561 2021-03-24 Luis Machado <luis.machado@linaro.org>
1562
1563 * aarch64-linux-tdep.c
1564 (aarch64_linux_report_signal_info): New function.
1565 (aarch64_linux_init_abi): Register
1566 aarch64_linux_report_signal_info as the report_signal_info hook.
1567 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1568 (SEGV_MTESERR): Define.
1569
1570 2021-03-24 Luis Machado <luis.machado@linaro.org>
1571
1572 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1573 (aarch64_linux_ltag_tests): New function.
1574 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1575
1576 2021-03-24 Luis Machado <luis.machado@linaro.org>
1577
1578 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1579 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1580 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1581 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1582 functions.
1583 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1584 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1585 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1586 (aarch64_linux_get_ltag): New functions.
1587 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1588 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1589 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1590 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1591
1592 2021-03-24 Luis Machado <luis.machado@linaro.org>
1593
1594 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1595 bit.
1596 (struct smaps_data): New struct.
1597 (decode_vmflags): Handle the 'mt' flag.
1598 (parse_smaps_data): New function, refactored from
1599 linux_find_memory_regions_full.
1600 (linux_address_in_memtag_page): New function.
1601 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1602 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1603
1604 2021-03-24 Luis Machado <luis.machado@linaro.org>
1605
1606 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1607 instead of char arrays.
1608
1609 2021-03-24 Luis Machado <luis.machado@linaro.org>
1610
1611 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1612 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1613 nat/aarch64-mte-linux-ptrace.h.
1614 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1615 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1616 override.
1617 <fetch_memtags>: New method override.
1618 <store_memtags>: New method override.
1619 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1620 (aarch64_linux_nat_target::fetch_memtags): New method.
1621 (aarch64_linux_nat_target::store_memtags): New method.
1622 * arch/aarch64-mte-linux.c: New file.
1623 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1624 (AARCH64_MTE_GRANULE_SIZE): Define.
1625 (aarch64_memtag_type): New enum.
1626 (aarch64_mte_get_tag_granules): New prototype.
1627 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1628 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1629 * nat/aarch64-mte-linux-ptrace.c: New file.
1630 * nat/aarch64-mte-linux-ptrace.h: New file.
1631
1632 2021-03-24 Luis Machado <luis.machado@linaro.org>
1633
1634 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1635 * nat/aarch64-mte-linux-ptrace.h: New file.
1636
1637 2021-03-24 Luis Machado <luis.machado@linaro.org>
1638
1639 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1640 (store_mteregs_to_thread): New function.
1641 (aarch64_linux_nat_target::fetch_registers): Update to call
1642 fetch_mteregs_from_thread.
1643 (aarch64_linux_nat_target::store_registers): Update to call
1644 store_mteregs_to_thread.
1645 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1646 (aarch64_cannot_store_register): Handle MTE registers.
1647 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1648 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1649 <has_mte>: New method.
1650 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1651
1652 2021-03-24 Luis Machado <luis.machado@linaro.org>
1653
1654 * aarch64-linux-nat.c
1655 (aarch64_linux_nat_target::read_description): Take MTE flag into
1656 account.
1657 Slight refactor to hwcap flag checking.
1658 * aarch64-linux-tdep.c
1659 (aarch64_linux_core_read_description): Likewise.
1660 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1661 MTE.
1662 (aarch64_read_description): Add mte_p parameter and update to use it.
1663 Update the documentation.
1664 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1665 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1666 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1667 (aarch64_create_target_description): Add mte_p parameter and update
1668 the code to use it.
1669 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1670 parameter.
1671 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1672 * features/aarch64-mte.c: New file, generated.
1673 * features/aarch64-mte.xml: New file.
1674
1675 2021-03-24 Luis Machado <luis.machado@linaro.org>
1676
1677 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1678 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1679 * aarch64-linux-tdep.c: Likewise
1680 * arch/aarch64-mte-linux.h: New file.
1681
1682 2021-03-24 Luis Machado <luis.machado@linaro.org>
1683
1684 * remote: Include gdbsupport/selftest.h.
1685 (test_memory_tagging_functions): New function.
1686 (_initialize_remote): Register test_memory_tagging_functions.
1687
1688 2021-03-24 Luis Machado <luis.machado@linaro.org>
1689
1690 * remote.c (PACKET_memory_tagging_feature): New enum.
1691 (remote_memory_tagging_p): New function.
1692 (remote_protocol_features): New "memory-tagging" entry.
1693 (remote_target::remote_query_supported): Handle memory tagging
1694 support.
1695 (remote_target::supports_memory_tagging): Implement.
1696 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1697 (create_store_memtags_request): New functions.
1698 (remote_target::fetch_memtags): Implement.
1699 (remote_target::store_memtags): Implement.
1700 (_initialize_remote): Add new "memory-tagging-feature"
1701 config command.
1702
1703 2021-03-24 Luis Machado <luis.machado@linaro.org>
1704
1705 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1706 (default_memtag_matches_p, default_set_memtags)
1707 (default_get_memtag): New functions.
1708 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1709 (default_memtag_matches_p, default_set_memtags)
1710 (default_get_memtag): New prototypes.
1711 * gdbarch.c: Regenerate.
1712 * gdbarch.h: Regenerate.
1713 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1714 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1715 (enum memtag_type): New enum.
1716
1717 2021-03-24 Luis Machado <luis.machado@linaro.org>
1718
1719 * remote.c (remote_target) <supports_memory_tagging>: New method
1720 override.
1721 <fetch_memtags>: New method override.
1722 <store_memtags>: New method override.
1723 (remote_target::supports_memory_tagging): New method.
1724 (remote_target::fetch_memtags): New method.
1725 (remote_target::store_memtags): New method.
1726 * target-delegates.c: Regenerate.
1727 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1728 method.
1729 <fetch_memtags>: New virtual method.
1730 <store_memtags>: New virtual method.
1731 (target_supports_memory_tagging): Define.
1732 (target_fetch_memtags): Define.
1733 (target_store_memtags): Define.
1734 * target-debug.h (target_debug_print_size_t)
1735 (target_debug_print_const_gdb_byte_vector_r)
1736 (target_debug_print_gdb_byte_vector_r): New functions.
1737
1738 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1739
1740 * target.h (target_longname): Remove.
1741
1742 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1743
1744 * target.h (target_is_pushed): Remove, update callers to use
1745 inferior::target_is_pushed instead.
1746 * target.c (target_is_pushed): Remove.
1747
1748 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1749
1750 * target.h (push_target): Remove, update callers to use
1751 inferior::push_target.
1752 * target.c (push_target): Remove.
1753 * inferior.h (class inferior) <push_target>: New overload.
1754
1755 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1756
1757 * target.h (unpush_target): Remove, update all callers
1758 to use `inferior::unpush_target` instead.
1759 (struct target_unpusher) <operator()>: Just declare.
1760 * target.c (unpush_target): Remove.
1761 (target_unpusher::operator()): New.
1762
1763 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1764
1765 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1766 error.
1767 (process_full_comp_unit): Validate the top-level tag before
1768 processing the first DIE.
1769 (read_func_scope): Ensure we have a valid builder.
1770
1771 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 * objc-lang.c (objc_demangle): Renamed to
1774 objc_language::demangle_symbol, and moved later in the file.
1775 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1776 member function.
1777 (objc_language::demangle_symbol): Defined outside of class
1778 declaration. The definition is the old objc_demangle with NULL
1779 changed to nullptr, and if conditions relating to nullptr pointers
1780 or null character checks made explicit.
1781 * objc-lang.h (objc_demangle): Delete declaration.
1782
1783 2021-03-22 Martin Liska <mliska@suse.cz>
1784
1785 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1786 (_initialize_arm_tdep): Likewise.
1787
1788 2021-03-20 Tom Tromey <tom@tromey.com>
1789
1790 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1791 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1792 * psymtab.h (make_psymbol_functions): Don't declare.
1793 * psymtab.c (make_psymbol_functions): Remove.
1794 (maintenance_print_psymbols): Update.
1795 * psympriv.h (struct psymbol_functions): Add no-argument
1796 constructor.
1797 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1798 <partial_symtabs>: Remove.
1799 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1800 * elfread.c (read_partial_symbols): Update.
1801 (elf_symfile_read): Remove check for existing partial symbols.
1802 Don't clear "qf".
1803 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1804 partial symbols.
1805 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1806 partial symtabs.
1807 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1808 parameter.
1809 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1810 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1811
1812 2021-03-20 Tom Tromey <tom@tromey.com>
1813
1814 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1815 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1816 * symfile-debug.c (objfile::has_partial_symbols)
1817 (objfile::find_last_source_symtab)
1818 (objfile::forget_cached_source_info)
1819 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1820 (objfile::print_stats, objfile::dump)
1821 (objfile::expand_symtabs_for_function)
1822 (objfile::expand_all_symtabs)
1823 (objfile::expand_symtabs_with_fullname)
1824 (objfile::map_matching_symbols)
1825 (objfile::expand_symtabs_matching)
1826 (objfile::find_pc_sect_compunit_symtab)
1827 (objfile::map_symbol_filenames)
1828 (objfile::find_compunit_symtab_by_address)
1829 (objfile::lookup_global_symbol_language)
1830 (objfile::require_partial_symbols): Update.
1831 * psymtab.c (maintenance_print_psymbols)
1832 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1833 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1834 * objfiles.c (objfile_relocate1): Update.
1835 * elfread.c (elf_symfile_read): Update.
1836
1837 2021-03-20 Tom Tromey <tom@tromey.com>
1838
1839 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1840
1841 2021-03-20 Tom Tromey <tom@tromey.com>
1842
1843 * psymtab.c (psymbol_functions::count_psyms): Rename.
1844 (psymbol_functions::print_stats): Update.
1845 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1846 method.
1847
1848 2021-03-20 Tom Tromey <tom@tromey.com>
1849
1850 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1851 (psymbol_functions::find_pc_sect_psymtab): Rename.
1852 (psymbol_functions::find_pc_sect_compunit_symtab)
1853 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1854 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1855 Declare new method.
1856 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1857
1858 2021-03-20 Tom Tromey <tom@tromey.com>
1859
1860 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1861 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1862 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1863 parameter.
1864 (add_psymbol_to_bcache): Remove.
1865 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1866 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1867 Likewise.
1868 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1869 <add_psymbol>: Likewise.
1870 (standard_psymtab, legacy_psymtab): Likewise.
1871 * mdebugread.c (parse_partial_symbols): Update.
1872 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1873 (handle_psymbol_enumerators): Update.
1874 (new_psymtab): Add partial_symtabs parameter.
1875 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1876 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1877 parameter.
1878 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1879 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1880 Update.
1881 * dbxread.c (read_dbx_symtab): Update.
1882 (start_psymtab): Add partial_symtabs parameter.
1883 (dbx_end_psymtab): Update.
1884 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1885 (ctf_psymtab): Add partial_symtabs parameter.
1886 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1887 Update.
1888 (scan_partial_symbols): Add partial_symtabs parameter.
1889 (scan_partial_symbols, elfctf_build_psymtabs)
1890 (ctf_psymtab_add_enums): Update.
1891
1892 2021-03-20 Tom Tromey <tom@tromey.com>
1893
1894 * symfile.c (read_symbols): Use objfile method.
1895 * symfile-debug.c (objfile::require_partial_symbols): New method.
1896 * psymtab.h (require_partial_symbols): Don't declare.
1897 * psymtab.c (require_partial_symbols): Use objfile method. Now
1898 static.
1899 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
1900 (psymbol_functions::lookup_symbol)
1901 (psymbol_functions::lookup_global_symbol_language)
1902 (psymbol_functions::find_last_source_symtab)
1903 (psymbol_functions::forget_cached_source_info)
1904 (psymbol_functions::print_stats)
1905 (psymbol_functions::expand_symtabs_for_function)
1906 (psymbol_functions::expand_all_symtabs)
1907 (psymbol_functions::expand_symtabs_with_fullname)
1908 (psymbol_functions::map_symbol_filenames)
1909 (psymbol_functions::map_matching_symbols)
1910 (psymbol_functions::expand_symtabs_matching)
1911 (psymbol_functions::find_compunit_symtab_by_address)
1912 (maintenance_print_psymbols, maintenance_info_psymtabs)
1913 (maintenance_check_psymtabs): Update.
1914 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
1915 new method.
1916
1917 2021-03-20 Tom Tromey <tom@tromey.com>
1918
1919 * xcoffread.c (xcoff_sym_fns): Update.
1920 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
1921 * symfile-debug.c (objfile::has_partial_symbols): Use
1922 can_lazily_read_symbols.
1923 (debug_sym_read_psymbols): Remove.
1924 (debug_sym_fns, install_symfile_debug_logging): Update.
1925 * quick-symbol.h (struct quick_symbol_functions)
1926 <can_lazily_read_symbols, read_partial_symbols>: New methods.
1927 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
1928 * mipsread.c (ecoff_sym_fns): Update.
1929 * machoread.c (macho_sym_fns): Update.
1930 * elfread.c (struct lazy_dwarf_reader): New.
1931 (elf_symfile_read): Update.
1932 (read_psyms): Now a method of lazy_dwarf_reader.
1933 (elf_sym_fns): Update.
1934 (elf_sym_fns_lazy_psyms): Remove.
1935 * dbxread.c (aout_sym_fns): Update.
1936 * coffread.c (coff_sym_fns): Update.
1937
1938 2021-03-20 Tom Tromey <tom@tromey.com>
1939
1940 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1941 (reread_symbols): Move reset_psymtabs call later.
1942 * objfiles.c (objfile::objfile): Don't initialize
1943 partial_symtabs.
1944
1945 2021-03-20 Tom Tromey <tom@tromey.com>
1946
1947 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1948 set_partial_symtabs.
1949 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1950 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1951 parameter.
1952 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1953 parameter.
1954 (psymbol_functions::find_pc_sect_compunit_symtab)
1955 (psymbol_functions::print_stats, psymbol_functions::dump)
1956 (psymbol_functions::has_symbols): Update.
1957 (make_psymbol_functions, dump_psymtab_addrmap): Add
1958 partial_symtabs parameter.
1959 (maintenance_print_psymbols): Update.
1960 (psymbol_functions::expand_symtabs_matching): Update.
1961 * psympriv.h (struct psymbol_functions): Add constructor.
1962 <m_partial_symtabs>: New member.
1963 <set_partial_symtabs>: New method.
1964
1965 2021-03-20 Tom Tromey <tom@tromey.com>
1966
1967 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
1968 parameter.
1969 (process_psymtab_comp_unit_reader)
1970 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
1971 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
1972 Reference psymtabs via per_bfd.
1973
1974 2021-03-20 Tom Tromey <tom@tromey.com>
1975
1976 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
1977 Remove.
1978 (add_address_entry): Remove objfile parameter.
1979 (add_address_entry_worker): Update.
1980 (write_address_map): Replace objfile parameter with per_bfd.
1981 (write_gdbindex, write_psymtabs_to_index): Update.
1982
1983 2021-03-20 Tom Tromey <tom@tromey.com>
1984
1985 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
1986 print_bcache parameter.
1987 * symfile-debug.c (objfile::print_stats): Add print_bcache
1988 parameter.
1989 * quick-symbol.h (struct quick_symbol_functions)
1990 <print_stats>: Add print_bcache parameter.
1991 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
1992 code to psymtab.c.
1993 (print_objfile_statistics): Move psymtab code to psymtab.c.
1994 * psymtab.c (count_psyms): Move from symmisc.c.
1995 (psymbol_functions::print_stats): Print partial symbol and bcache
1996 statistics. Add print_bcache parameter.
1997 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
1998 (struct objfile) <print_stats>: Add print_bcache parameter.
1999 * maint.c (maintenance_print_statistics): Update.
2000
2001 2021-03-20 Tom Tromey <tom@tromey.com>
2002
2003 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2004 member.
2005 * dwarf2/read.c (create_addrmap_from_index)
2006 (create_addrmap_from_aranges): Set per_bfd addrmap.
2007 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2008 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2009 per_bfd addrmap.
2010 (dwarf2_read_debug_names): Don't set partial_symtabs.
2011 (dwarf2_initialize_objfile): Likewise.
2012
2013 2021-03-20 Tom Tromey <tom@tromey.com>
2014
2015 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2016 earlier.
2017
2018 2021-03-20 Tom Tromey <tom@tromey.com>
2019
2020 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2021 (~psymtab_discarder, keep): Update.
2022 <m_objfile>: Remove.
2023 <m_partial_symtabs>: New member.
2024 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2025
2026 2021-03-20 Tom Tromey <tom@tromey.com>
2027
2028 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2029 (xcoff_end_psymtab): Update.
2030 (scan_xcoff_symtab): Add partial_symtabs parameter.
2031 (xcoff_initial_scan): Update.
2032 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2033 * mdebugread.c (mdebug_build_psymtabs): Update.
2034 (parse_partial_symbols): Add partial_symtabs parameter.
2035 * dbxread.c (dbx_symfile_read): Update.
2036 (read_dbx_symtab): Add partial_symtabs parameter.
2037 (read_dbx_symtab): Update.
2038 (dbx_end_psymtab): Add partial_symtabs parameter.
2039
2040 2021-03-20 Tom Tromey <tom@tromey.com>
2041
2042 * quick-symbol.h (struct quick_symbol_functions)
2043 <relocated>: New method.
2044 * psymtab.h (struct psymbol_functions) <relocated>: New
2045 method.
2046 <fill_psymbol_map>: Declare method.
2047 <m_psymbol_map>: New member.
2048 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2049 (psymbol_functions::find_compunit_symtab_by_address): Update.
2050 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2051 (struct objfile) <psymbol_map>: Remove.
2052 * objfiles.c (objfile_relocate1): Update.
2053
2054 2021-03-20 Tom Tromey <tom@tromey.com>
2055
2056 * psympriv.h (struct psymbol_functions): New.
2057 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2058 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2059 (objfile::lookup_global_symbol_language): Update.
2060 * quick-symbol.h (struct quick_symbol_functions): Convert function
2061 pointers to methods. Add virtual destructor.
2062 (quick_symbol_functions_up): New typedef.
2063 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2064 (dwarf2_debug_names_functions): Don't declare.
2065 (make_psymbol_functions): Declare.
2066 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2067 (psymbol_functions::find_pc_sect_compunit_symtab)
2068 (psymbol_functions::lookup_symbol)
2069 (psymbol_functions::lookup_global_symbol_language)
2070 (psymbol_functions::find_last_source_symtab)
2071 (psymbol_functions::forget_cached_source_info)
2072 (psymbol_functions::print_stats, psymbol_functions::dump)
2073 (psymbol_functions::expand_symtabs_for_function)
2074 (psymbol_functions::expand_all_symtabs)
2075 (psymbol_functions::expand_symtabs_with_fullname)
2076 (psymbol_functions::map_symbol_filenames)
2077 (psymbol_functions::map_matching_symbols)
2078 (psymbol_functions::expand_symtabs_matching)
2079 (psymbol_functions::has_symbols)
2080 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2081 (psym_functions): Remove.
2082 (make_psymbol_functions): New function.
2083 * objfiles.h (struct objfile) <qf>: Change type.
2084 * elfread.c (elf_symfile_read): Update.
2085 * dwarf2/read.c (struct dwarf2_base_index_functions)
2086 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2087 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2088 (dwarf2_base_index_functions::find_last_source_symtab)
2089 (dwarf2_base_index_functions::forget_cached_source_info)
2090 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2091 (dwarf2_gdb_index::lookup_symbol)
2092 (dwarf2_base_index_functions::print_stats)
2093 (dwarf2_gdb_index::dump)
2094 (dwarf2_gdb_index::expand_symtabs_for_function)
2095 (dwarf2_base_index_functions::expand_all_symtabs)
2096 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2097 Rename.
2098 (dwarf2_gdb_index::map_matching_symbols): New method.
2099 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2100 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2101 (dwarf2_base_index_functions::map_symbol_filenames)
2102 (dwarf2_base_index_functions::has_symbols): Rename.
2103 (dwarf2_gdb_index_functions): Remove.
2104 (dwarf2_debug_names_index::lookup_symbol)
2105 (dwarf2_debug_names_index::dump)
2106 (dwarf2_debug_names_index::expand_symtabs_for_function)
2107 (dwarf2_debug_names_index::map_matching_symbols)
2108 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2109 (dwarf2_debug_names_functions): Remove.
2110 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2111 Declare.
2112
2113 2021-03-20 Tom Tromey <tom@tromey.com>
2114
2115 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2116 null.
2117 * xcoffread.c (xcoff_sym_fns): Update.
2118 * symfile.h (struct sym_fns) <qf>: Remove.
2119 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2120 * symfile-debug.c (objfile::has_partial_symbols)
2121 (objfile::find_last_source_symtab)
2122 (objfile::forget_cached_source_info)
2123 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2124 (objfile::print_stats, objfile::dump)
2125 (objfile::expand_symtabs_for_function)
2126 (objfile::expand_all_symtabs)
2127 (objfile::expand_symtabs_with_fullname)
2128 (objfile::map_matching_symbols)
2129 (objfile::expand_symtabs_matching)
2130 (objfile::find_pc_sect_compunit_symtab)
2131 (objfile::map_symbol_filenames)
2132 (objfile::find_compunit_symtab_by_address)
2133 (objfile::lookup_global_symbol_language, debug_sym_fns)
2134 (install_symfile_debug_logging): Update.
2135 * objfiles.h (struct objfile) <qf>: New member.
2136 * mipsread.c (ecoff_sym_fns): Update.
2137 * machoread.c (macho_sym_fns): Update.
2138 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2139 Don't declare.
2140 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2141 * dbxread.c (aout_sym_fns): Update.
2142 * coffread.c (coff_sym_fns): Update.
2143
2144 2021-03-20 Tom Tromey <tom@tromey.com>
2145
2146 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2147 (expand_symtabs_file_matcher_ftype)
2148 (expand_symtabs_symbol_matcher_ftype)
2149 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2150 Move to quick-symbol.h.
2151 * quick-symbol.h: New file.
2152
2153 2021-03-20 Tom Tromey <tom@tromey.com>
2154
2155 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2156 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2157 (basic_lookup_transparent_type_quick)
2158 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2159 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2160 Update.
2161 * symmisc.c (print_objfile_statistics, dump_objfile)
2162 (maintenance_expand_symtabs): Update.
2163 * symfile.c (symbol_file_add_with_addrs)
2164 (expand_symtabs_matching, map_symbol_filenames): Update.
2165 * symfile-debug.c (objfile::has_partial_symbols)
2166 (objfile::find_last_source_symtab)
2167 (objfile::forget_cached_source_info)
2168 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2169 (objfile::print_stats, objfile::dump)
2170 (objfile::expand_symtabs_for_function)
2171 (objfile::expand_all_symtabs)
2172 (objfile::expand_symtabs_with_fullname)
2173 (objfile::map_matching_symbols)
2174 (objfile::expand_symtabs_matching)
2175 (objfile::find_pc_sect_compunit_symtab)
2176 (objfile::map_symbol_filenames)
2177 (objfile::find_compunit_symtab_by_address)
2178 (objfile::lookup_global_symbol_language): New methods.
2179 (debug_sym_quick_functions): Remove.
2180 (debug_sym_fns, install_symfile_debug_logging): Update.
2181 * source.c (forget_cached_source_info_for_objfile)
2182 (select_source_symtab): Update.
2183 * objfiles.h (struct objfile): Add methods corresponding to
2184 quick_symbol_functions.
2185 * objfiles.c (objfile::has_partial_symbols): Move to
2186 symfile-debug.c.
2187 * linespec.c (iterate_over_all_matching_symtabs): Update.
2188 * cp-support.c (add_symbol_overload_list_qualified): Update.
2189 * ada-lang.c (add_nonlocal_symbols): Update.
2190
2191 2021-03-20 Tom Tromey <tom@tromey.com>
2192
2193 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2194 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2195 bool.
2196 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2197 * psymtab.c (psym_has_symbols): Return bool.
2198 * objfiles.c (objfile::has_partial_symbols): Return bool.
2199 * dwarf2/read.c (dw2_has_symbols): Return bool.
2200
2201 2021-03-20 Tom Tromey <tom@tromey.com>
2202
2203 * symfile.c (read_symbols): Update.
2204 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2205 (objfile_has_partial_symbols): Don't declare.
2206 * objfiles.c (objfile::has_partial_symbols): Rename from
2207 objfile_has_partial_symbols.
2208 (objfile_has_symbols, have_partial_symbols): Update.
2209 * elfread.c (elf_symfile_read): Update.
2210 * dwarf2/read.c (dwarf2_has_info): Update.
2211 * coffread.c (coff_symfile_read): Update.
2212
2213 2021-03-20 Tom Tromey <tom@tromey.com>
2214
2215 * coffread.c: Include dwarf2/public.h.
2216 * dwarf2/frame.c: Include dwarf2/public.h.
2217 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2218 * dwarf2/public.h: New file.
2219 * dwarf2/read.c: Include dwarf2/public.h.
2220 * elfread.c: Include dwarf2/public.h.
2221 * machoread.c: Include dwarf2/public.h.
2222 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2223 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2224 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2225 * xcoffread.c: Include dwarf2/public.h.
2226
2227 2021-03-20 Tom Tromey <tom@tromey.com>
2228
2229 * symfile.h (enum dwarf2_section_enum)
2230 (dwarf2_get_section_info): Move to dwarf2/read.h.
2231 * dwarf2/read.h (enum dwarf2_section_enum)
2232 (dwarf2_get_section_info): Move from symfile.h.
2233
2234 2021-03-19 Pedro Alves <pedro@palves.net>
2235
2236 * thread.c (any_thread_of_inferior): Check if there's a selected
2237 thread before calling inferior_thread().
2238
2239 2021-03-18 Tom Tromey <tromey@adacore.com>
2240
2241 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2242 get_DW_UT_name.
2243 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2244 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2245
2246 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2247
2248 * python/py-param.c (get_set_value): Update header comment.
2249
2250 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2251
2252 * infrun.c (check_multi_target_resumption): Remove argument to
2253 all_non_exited_inferiors.
2254
2255 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2256
2257 * windows-nat.c (windows_init_thread_list): Add message to
2258 debug log.
2259
2260 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2261
2262 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2263 well as PyLong_Check for Python 2.
2264
2265 2021-03-15 Tom Tromey <tromey@adacore.com>
2266
2267 PR build/27579:
2268 * rust-exp.y (maker_map): Use gdb::hash_enum.
2269 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2270
2271 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2272
2273 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2274 end of debug print.
2275
2276 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2277
2278 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2279 parameter, adjust caller.
2280
2281 2021-03-15 Tom Tromey <tromey@adacore.com>
2282
2283 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2284
2285 2021-03-15 Tom Tromey <tromey@adacore.com>
2286
2287 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2288 ada_ensure_varsize_limit.
2289
2290 2021-03-15 Tom Tromey <tromey@adacore.com>
2291
2292 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2293 fixed-point.
2294 * ada-exp.y (maybe_overload): New function.
2295 (ada_wrap_overload): New function.
2296 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2297 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2298 (or_else_exp, xor_exp, primary): Update.
2299
2300 2021-03-15 Tom Tromey <tromey@adacore.com>
2301
2302 PR ada/27545:
2303 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2304 call for tagged type.
2305
2306 2021-03-15 Tom Tromey <tromey@adacore.com>
2307
2308 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2309 assignment.
2310
2311 2021-03-15 Tom Tromey <tromey@adacore.com>
2312
2313 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2314 container.
2315 (ada_assign_operation::evaluate): Update.
2316 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2317 Change return type.
2318
2319 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2320
2321 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2322
2323 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2324
2325 * python/python.c (gdbpy_source_objfile_script): Use
2326 make_scoped_restore to restore gdbpy_current_objfile.
2327 (gdbpy_execute_objfile_script): Likewise.
2328
2329 2021-03-14 Tom Tromey <tom@tromey.com>
2330
2331 * dwarf2/read.c (read_attribute_value): Use cu_header
2332 consistently.
2333
2334 2021-03-14 Tom Tromey <tom@tromey.com>
2335
2336 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2337 (peek_die_abbrev): Use reader.abfd.
2338
2339 2021-03-14 Tom Tromey <tom@tromey.com>
2340
2341 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2342 m_header_read_in.
2343
2344 2021-03-13 Tom Tromey <tom@tromey.com>
2345
2346 * dwarf2/read.c (struct partial_die_info): Update.
2347 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2348 (load_partial_dies, partial_die_info::partial_die_info): Update.
2349 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2350
2351 2021-03-13 Tom Tromey <tom@tromey.com>
2352
2353 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2354
2355 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2356
2357 PR threads/27239
2358 * cp-support.c: Use scoped_segv_handler_restore.
2359 * event-top.c (thread_local_segv_handler): Made static.
2360 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2361 New function.
2362 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2363 function.
2364 * event-top.h (class scoped_segv_handler_restore): New class.
2365 (thread_local_segv_handler): Removed.
2366
2367 2021-03-10 Tom Tromey <tromey@adacore.com>
2368
2369 * parser-defs.h (parser_state): Change completion to bool.
2370 <parse_completion>: Likewise.
2371 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2372 (ada_resolve_variable, ada_resolve_function): Update.
2373 * ada-lang.c (ada_find_operator_symbol): Change
2374 parse_completion to bool.
2375 (ada_resolve_funcall, ada_resolve_variable)
2376 (ada_resolve_function): Likewise.
2377
2378 2021-03-09 Tom Tromey <tromey@adacore.com>
2379
2380 * eval.c (operation::evaluate_funcall): Use function formal
2381 parameter types when evaluating.
2382
2383 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2384
2385 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2386 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2387 and owner to m_owner.
2388
2389 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2390
2391 * f-exp.h (eval_op_f_loc): Declare.
2392 (expr::fortran_loc_operation): New typedef.
2393 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2394 UNOP_INTRINSIC.
2395 (f77_keywords): Add LOC keyword.
2396 * f-lang.c (eval_op_f_loc): New function.
2397 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2398
2399 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * f-exp.h (eval_op_f_array_shape): Declare.
2402 (fortran_array_shape_operation): New type.
2403 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2404 UNOP_INTRINSIC.
2405 (f77_keywords): Add "shape" keyword.
2406 * f-lang.c (fortran_array_shape): New function.
2407 (eval_op_f_array_shape): New function.
2408 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2409
2410 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2413 of this function.
2414 (expr::fortran_array_size_1arg): New type.
2415 (expr::fortran_array_size_2arg): Likewise.
2416 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2417 UNOP_OR_BINOP_INTRINSIC.
2418 (f77_keywords): Add "size" keyword.
2419 * f-lang.c (fortran_array_size): New function.
2420 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2421 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2422
2423 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2424
2425 * f-exp.h (eval_op_f_rank): Declare.
2426 (expr::fortran_rank_operation): New typedef.
2427 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2428 UNOP_INTRINSIC.
2429 (f77_keywords): Add "rank" keyword.
2430 * f-lang.c (eval_op_f_rank): New function.
2431 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2432
2433 2021-03-08 Tom Tromey <tom@tromey.com>
2434
2435 * printcmd.c (set_command): Remove null check.
2436 * value.c (init_if_undefined_command): Remove null check.
2437
2438 2021-03-08 Tom Tromey <tom@tromey.com>
2439
2440 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2441 Update.
2442 * p-exp.y (variable): Update.
2443 * go-exp.y (variable): Update.
2444 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2445 Remove overload for objfile.
2446 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2447 parameter.
2448 (check_objfile): Likewise.
2449 (dump_for_expression): Likewise. Remove overload for objfile.
2450 (class var_msym_value_operation): Use bound_minimal_symbol.
2451 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2452 parameter.
2453 (var_msym_value_operation::evaluate_for_address)
2454 (var_msym_value_operation::evaluate_for_sizeof)
2455 (var_msym_value_operation::evaluate_for_cast): Update.
2456 * d-exp.y (PrimaryExpression): Update.
2457 * c-exp.y (variable): Update.
2458 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2459 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2460 Update.
2461 * ada-exp.y (write_var_or_type): Update.
2462
2463 2021-03-08 Tom Tromey <tom@tromey.com>
2464
2465 * parser-defs.h (exp_uses_objfile): Return bool.
2466 * parse.c (exp_uses_objfile): Return bool.
2467
2468 2021-03-08 Tom Tromey <tom@tromey.com>
2469
2470 * value.h (eval_skip_value): Don't declare.
2471 * opencl-lang.c (eval_opencl_assign): Update.
2472 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2473 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2474 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2475 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2476 * expop.h (typeof_operation::evaluate)
2477 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2478 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2479 (cxx_cast_operation::evaluate): Update.
2480 * eval.c (eval_skip_value): Remove.
2481 (eval_op_scope, eval_op_var_entry_value)
2482 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2483 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2484 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2485 (eval_op_binary, eval_op_subscript, eval_op_equal)
2486 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2487 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2488 (eval_op_complement, eval_op_lognot, eval_op_ind)
2489 (eval_op_memval, eval_op_preinc, eval_op_predec)
2490 (eval_op_postinc, eval_op_postdec, eval_op_type)
2491 (eval_binop_assign_modify, eval_op_objc_msgcall)
2492 (eval_multi_subscript, logical_and_operation::evaluate)
2493 (logical_or_operation::evaluate, array_operation::evaluate)
2494 (operation::evaluate_for_cast)
2495 (var_msym_value_operation::evaluate_for_cast)
2496 (var_value_operation::evaluate_for_cast): Update.
2497 * c-lang.c (c_string_operation::evaluate): Update.
2498 * c-exp.h (objc_nsstring_operation::evaluate)
2499 (objc_selector_operation::evaluate): Update.
2500 * ada-lang.c (ada_assign_operation::evaluate)
2501 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2502 (ada_atr_size): Update.
2503
2504 2021-03-08 Tom Tromey <tom@tromey.com>
2505
2506 * eval.c: Merge "namespace" scopes.
2507
2508 2021-03-08 Tom Tromey <tom@tromey.com>
2509
2510 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2511 <release>: Inline.
2512 * parse.c (expr_builder::expr_builder, expr_builder::release):
2513 Remove.
2514
2515 2021-03-08 Tom Tromey <tom@tromey.com>
2516
2517 * parse.c (expression::expression, expression::~expression):
2518 Remove.
2519 * expression.h (struct expression): Inline constructor. Remove
2520 destructor.
2521
2522 2021-03-08 Tom Tromey <tom@tromey.com>
2523
2524 * std-operator.def (BINOP_END): Remove.
2525 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2526 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2527 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2528 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2529 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2530 BINOP_END.
2531
2532 2021-03-08 Tom Tromey <tom@tromey.com>
2533
2534 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2535
2536 2021-03-08 Tom Tromey <tom@tromey.com>
2537
2538 * std-operator.def (OP_EXTENDED0): Remove.
2539
2540 2021-03-08 Tom Tromey <tom@tromey.com>
2541
2542 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2543 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2544 Remove.
2545
2546 2021-03-08 Tom Tromey <tom@tromey.com>
2547
2548 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2549 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2550
2551 2021-03-08 Tom Tromey <tom@tromey.com>
2552
2553 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2554 * ada-lang.c (ada_binop_minmax): Update.
2555 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2556 Use BINOP_MIN and BINOP_MAX.
2557
2558 2021-03-08 Tom Tromey <tom@tromey.com>
2559
2560 * value.h (evaluate_subexp_with_coercion): Don't declare.
2561 * parse.c (exp_descriptor_standard): Remove.
2562 (expr_builder::expr_builder, expr_builder::release): Update.
2563 (expression::expression): Remove size_t parameter.
2564 (expression::~expression): Simplify.
2565 (expression::resize): Remove.
2566 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2567 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2568 (write_exp_elt_longcst, write_exp_elt_floatcst)
2569 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2570 (write_exp_string_vector, write_exp_bitstring): Remove.
2571 * p-lang.h (class pascal_language) <opcode_print_table,
2572 op_print_tab>: Remove.
2573 * p-lang.c (pascal_language::op_print_tab): Remove.
2574 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2575 Remove.
2576 * objc-lang.c (objc_op_print_tab): Remove.
2577 (class objc_language) <opcode_print_table>: Remove.
2578 * m2-lang.h (class m2_language) <opcode_print_table,
2579 op_print_tab>: Remove.
2580 * m2-lang.c (m2_language::op_print_tab): Remove.
2581 * language.h (struct language_defn) <post_parser, expression_ops,
2582 opcode_print_table>: Remove.
2583 * language.c (language_defn::expression_ops)
2584 (auto_or_unknown_language::opcode_print_table): Remove.
2585 * go-lang.h (class go_language) <opcode_print_table,
2586 op_print_tab>: Remove.
2587 * go-lang.c (go_language::op_print_tab): Remove.
2588 * f-lang.h (class f_language) <opcode_print_table>: Remove
2589 <op_print_tab>: Remove.
2590 * f-lang.c (f_language::op_print_tab): Remove.
2591 * expression.h (union exp_element): Remove.
2592 (struct expression): Remove size_t parameter from constructor.
2593 <resize>: Remove.
2594 <first_opcode>: Update.
2595 <nelts, elts>: Remove.
2596 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2597 (evaluate_subexp_standard, print_expression, op_string)
2598 (dump_raw_expression): Don't declare.
2599 * expprint.c (print_expression, print_subexp)
2600 (print_subexp_funcall, print_subexp_standard, op_string)
2601 (dump_raw_expression, dump_subexp, dump_subexp_body)
2602 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2603 (dump_prefix_expression): Update.
2604 * eval.c (evaluate_subexp): Remove.
2605 (evaluate_expression, evaluate_type): Update.
2606 (evaluate_subexpression_type): Remove.
2607 (fetch_subexp_value): Remove "pc" parameter. Update.
2608 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2609 (evaluate_subexp_standard, evaluate_subexp_for_address)
2610 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2611 (evaluate_subexp_for_cast): Remove.
2612 (parse_and_eval_type): Update.
2613 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2614 * d-lang.c (d_op_print_tab): Remove.
2615 (class d_language) <opcode_print_table>: Remove.
2616 * c-lang.h (c_op_print_tab): Don't declare.
2617 * c-lang.c (c_op_print_tab): Remove.
2618 (class c_language, class cplus_language, class asm_language, class
2619 minimal_language) <opcode_print_table>: Remove.
2620 * breakpoint.c (update_watchpoint, watchpoint_check)
2621 (watchpoint_exp_is_const, watch_command_1): Update.
2622 * ax-gdb.h (union exp_element): Don't declare.
2623 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2624 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2625 (gen_expr_binop_rest): Remove.
2626 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2627 * ada-lang.c (ada_op_print_tab): Remove.
2628 (class ada_language) <post_parser, opcode_print_table>: Remove.
2629
2630 2021-03-08 Tom Tromey <tom@tromey.com>
2631
2632 * go-lang.c (go_language::expression_ops): Don't declare.
2633 * go-lang.h (class go_language) <expression_ops>: Remove.
2634 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2635 Remove.
2636 (class opencl_language) <expression_ops>: Remove.
2637 * d-lang.c (class d_language) <expression_ops>: Remove.
2638 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2639 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2640 (class c_language, class cplus_language, class asm_language)
2641 (class minimal_language) <expression_ops>: Remove.
2642
2643 2021-03-08 Tom Tromey <tom@tromey.com>
2644
2645 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2646 (evaluate_subexp_type, assign_aggregate)
2647 (aggregate_assign_positional, aggregate_assign_from_choices)
2648 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2649 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2650 (ada_operator_check, ada_forward_operator_length)
2651 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2652 Remove.
2653 (post_parser): Update.
2654 (class ada_language) <expresssion_ops>: Remove.
2655
2656 2021-03-08 Tom Tromey <tom@tromey.com>
2657
2658 * m2-lang.h (class m2_language) <expresssion_ops,
2659 exp_descriptor_modula2>: Remove.
2660 * m2-lang.c (evaluate_subexp_modula2)
2661 (m2_language::exp_descriptor_modula2): Remove.
2662
2663 2021-03-08 Tom Tromey <tom@tromey.com>
2664
2665 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2666 <exp_descriptor_tab>: Remove.
2667 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2668 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2669 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2670 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2671 Remove.
2672
2673 2021-03-08 Tom Tromey <tom@tromey.com>
2674
2675 * rust-lang.h (class rust_language) <expression_ops,
2676 exp_descriptor_tab>: Remove.
2677 * rust-lang.c (rust_evaluate_funcall): Remove.
2678 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2679 EVAL_SKIP.
2680 (rust_evaluate_subexp): Remove.
2681 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2682 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2683 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2684
2685 2021-03-08 Tom Tromey <tom@tromey.com>
2686
2687 * ada-exp.y: Create operations.
2688 (empty_stoken): Remove.
2689 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2690 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2691 (components): New global.
2692 (push_component, choice_component, pop_component, pop_components):
2693 New functions.
2694 (associations): New global
2695 (push_association, pop_association, pop_associations): New
2696 functions.
2697 (ada_parse): Update.
2698 (write_var_from_sym, write_int): Create operations.
2699 (write_exp_op_with_string): Remove.
2700 (write_object_renaming, write_selectors, write_ambiguous_var)
2701 (write_var_or_type, write_name_assoc): Create operations.
2702 * ada-lang.h (ada_index_type): Declare.
2703 * ada-lang.c (ada_index_type): No longer static.
2704
2705 2021-03-08 Tom Tromey <tom@tromey.com>
2706
2707 * f-exp.y: Create operations.
2708 (f_language::parser): Update.
2709
2710 2021-03-08 Tom Tromey <tom@tromey.com>
2711
2712 * m2-exp.y: Create operations.
2713 (m2_language::parser): Update.
2714
2715 2021-03-08 Tom Tromey <tom@tromey.com>
2716
2717 * p-exp.y: Create operations.
2718 (pascal_language::parser): Update.
2719
2720 2021-03-08 Tom Tromey <tom@tromey.com>
2721
2722 * d-exp.y: Create operations.
2723 (d_parse): Update.
2724
2725 2021-03-08 Tom Tromey <tom@tromey.com>
2726
2727 * go-exp.y: Create operations.
2728 (go_language::parser): Update.
2729
2730 2021-03-08 Tom Tromey <tom@tromey.com>
2731
2732 * objc-lang.c (end_msglist): Create operations.
2733 * c-exp.y: Change parser to create operations.
2734 (write_destructor_name): Remove.
2735 (c_parse): Update.
2736
2737 2021-03-08 Tom Tromey <tom@tromey.com>
2738
2739 * rust-exp.y: Create operations.
2740 (rust_parser::convert_params_to_expression): Change return type.
2741 (binop_maker_ftype): New typedef.
2742 (maker_map): New global.
2743 (rust_parser::convert_ast_to_expression): Change return type.
2744 (rust_language::parser): Update.
2745 (_initialize_rust_exp): Initialize maker_map.
2746
2747 2021-03-08 Tom Tromey <tom@tromey.com>
2748
2749 * stap-probe.c (binop_maker_ftype): New typedef.
2750 (stap_maker_map): New global.
2751 (stap_make_binop): New function.
2752 (stap_parse_register_operand): Return operation_up.
2753 (stap_parse_single_operand, stap_parse_argument_conditionally)
2754 (stap_parse_argument_1): Likewise.
2755 (stap_parse_argument): Create operations.
2756 (stap_probe::parse_arguments): Update.
2757 (_initialize_stap_probe): Initialize stap_maker_map.
2758 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2759 type.
2760 * i386-tdep.h (i386_stap_parse_special_token): Change return
2761 type.
2762 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2763 (i386_stap_parse_special_token_three_arg_disp)
2764 (i386_stap_parse_special_token): Change return type.
2765 * gdbarch.sh (stap_parse_special_token): Change return type.
2766 * gdbarch.c: Rebuild.
2767 * gdbarch.h: Rebuild.
2768 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2769 type.
2770 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2771 return type.
2772
2773 2021-03-08 Tom Tromey <tom@tromey.com>
2774
2775 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2776 * gdbarch.h: Rebuild.
2777 * gdbarch.c: Rebuild.
2778 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2779 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2780 return type.
2781 (amd64_dtrace_parse_probe_argument): Update.
2782
2783 2021-03-08 Tom Tromey <tom@tromey.com>
2784
2785 * parser-defs.h (struct parser_state) <push, push_new,
2786 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2787 wrap2>: New methods.
2788 <m_operations>: New member.
2789 * parse.c (parser_state::push_c_string)
2790 (parser_state::push_symbol, parser_state::push_dollar): New
2791 methods.
2792
2793 2021-03-08 Tom Tromey <tom@tromey.com>
2794
2795 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2796 New member.
2797 (struct parser_state) <mark_struct_expression>: New method.
2798 * parse.c (parser_state::mark_struct_expression): Update assert.
2799 (parser_state::mark_struct_expression): New method.
2800 (parser_state::mark_completion_tag): Update assert.
2801 (parse_expression_for_completion): Handle expout_last_op.
2802
2803 2021-03-08 Tom Tromey <tom@tromey.com>
2804
2805 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2806 now in superclass.
2807 * value.h (fetch_subexp_value): Add "op" parameter.
2808 * value.c (init_if_undefined_command): Update.
2809 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2810 * stap-probe.c (stap_probe::compile_to_ax): Update.
2811 * printcmd.c (set_command): Update.
2812 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2813 Update.
2814 * parser-defs.h (struct expr_builder) <set_operation>: New
2815 method.
2816 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2817 * expression.h (struct expression) <first_opcode>: Update.
2818 <op>: New member.
2819 * expprint.c (dump_raw_expression, dump_prefix_expression):
2820 Update.
2821 * expop.h (class var_value_operation) <get_symbol>: New method.
2822 (class register_operation) <get_name>: New method.
2823 (class equal_operation): No longer a typedef, now a subclass.
2824 (class unop_memval_operation) <get_type>: New method.
2825 (class assign_operation) <get_lhs>: New method.
2826 (class unop_cast_operation) <get_type>: New method.
2827 * eval.c (evaluate_expression, evaluate_type)
2828 (evaluate_subexpression_type): Update.
2829 (fetch_subexp_value): Add "op" parameter.
2830 (parse_and_eval_type): Update.
2831 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2832 * breakpoint.c (update_watchpoint, watchpoint_check)
2833 (watchpoint_exp_is_const, watch_command_1): Update.
2834 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2835 Update.
2836
2837 2021-03-08 Tom Tromey <tom@tromey.com>
2838
2839 * ada-lang.c (ada_value_binop): Do not use op_string.
2840
2841 2021-03-08 Tom Tromey <tom@tromey.com>
2842
2843 * expprint.c (dump_for_expression): New overload.
2844 * expop.h (check_objfile, dump_for_expression): Declare new
2845 overloads.
2846 * ada-lang.c (check_objfile): New overload.
2847 (assign_component, ada_aggregate_component::uses_objfile)
2848 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2849 (ada_aggregate_component::assign_aggregate)
2850 (ada_positional_component::uses_objfile)
2851 (ada_positional_component::dump, ada_positional_component::assign)
2852 (ada_discrete_range_association::uses_objfile)
2853 (ada_discrete_range_association::dump)
2854 (ada_discrete_range_association::assign)
2855 (ada_name_association::uses_objfile, ada_name_association::dump)
2856 (ada_name_association::assign)
2857 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2858 (ada_choices_component::assign)
2859 (ada_others_component::uses_objfile, ada_others_component::dump)
2860 (ada_others_component::assign, ada_assign_operation::evaluate):
2861 New methods.
2862 * ada-exp.h (ada_string_operation) <get_name>: New method.
2863 (class ada_assign_operation): New.
2864 (class ada_component): New.
2865 (ada_component_up): New typedef.
2866 (class ada_aggregate_operation, class ada_aggregate_component)
2867 (class ada_positional_component, class ada_others_component)
2868 (class ada_association): New.
2869 (ada_association_up): New typedef.
2870 (class ada_choices_component)
2871 (class ada_discrete_range_association)
2872 (class ada_name_association): New.
2873
2874 2021-03-08 Tom Tromey <tom@tromey.com>
2875
2876 * ada-lang.c (ada_var_value_operation::resolve)
2877 (ada_funcall_operation::resolve)
2878 (ada_ternop_slice_operation::resolve): New methods.
2879 * ada-exp.h (struct ada_resolvable): New.
2880 (class ada_var_value_operation): Derive from ada_resolvable.
2881 <get_block, resolve>: New methods.
2882 (class ada_funcall_operation): Derive from ada_resolvable.
2883 <resolve>: New method.
2884 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2885 <resolve>: New method.
2886
2887 2021-03-08 Tom Tromey <tom@tromey.com>
2888
2889 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2890 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2891 method.
2892 (class ada_funcall_operation): New.
2893
2894 2021-03-08 Tom Tromey <tom@tromey.com>
2895
2896 * ada-lang.c (ada_structop_operation::evaluate): New method.
2897 * ada-exp.h (class ada_structop_operation): New.
2898
2899 2021-03-08 Tom Tromey <tom@tromey.com>
2900
2901 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
2902 * ada-exp.h (class ada_unop_ind_operation): New.
2903
2904 2021-03-08 Tom Tromey <tom@tromey.com>
2905
2906 * ada-lang.c (ada_binop_exp): No longer static.
2907 * ada-exp.h (ada_binop_exp_operation): New typedef.
2908
2909 2021-03-08 Tom Tromey <tom@tromey.com>
2910
2911 * ada-lang.c (ada_val_atr): No longer static.
2912 (ada_atr_val_operation::evaluate): New method.
2913 * ada-exp.h (class ada_atr_val_operation): New.
2914
2915 2021-03-08 Tom Tromey <tom@tromey.com>
2916
2917 * ada-lang.c (ada_pos_atr): No longer static.
2918 * ada-exp.h (ada_pos_operation): New typedef.
2919
2920 2021-03-08 Tom Tromey <tom@tromey.com>
2921
2922 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
2923 parameters.
2924 (ada_evaluate_subexp): Use it.
2925
2926 2021-03-08 Tom Tromey <tom@tromey.com>
2927
2928 * ada-lang.c (ada_binop_minmax): No longer static.
2929 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2930 New typedefs.
2931
2932 2021-03-08 Tom Tromey <tom@tromey.com>
2933
2934 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2935 New method.
2936 * ada-exp.h (class ada_var_msym_value_operation): New.
2937
2938 2021-03-08 Tom Tromey <tom@tromey.com>
2939
2940 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2941 (ada_var_value_operation::evaluate): New methods.
2942 * ada-exp.h (class ada_var_value_operation): New.
2943
2944 2021-03-08 Tom Tromey <tom@tromey.com>
2945
2946 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2947 * ada-exp.h (class ada_unop_atr_operation): New.
2948
2949 2021-03-08 Tom Tromey <tom@tromey.com>
2950
2951 * ada-lang.c (ada_binop_in_bounds): No longer static.
2952 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2953
2954 2021-03-08 Tom Tromey <tom@tromey.com>
2955
2956 * ada-lang.c (ada_ternop_slice): No longer static.
2957 * ada-exp.h (class ada_ternop_slice_operation): New.
2958
2959 2021-03-08 Tom Tromey <tom@tromey.com>
2960
2961 * ada-exp.h (ada_bitwise_operation): New template class.
2962 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
2963 (ada_bitwise_xor_operation): New typedefs.
2964
2965 2021-03-08 Tom Tromey <tom@tromey.com>
2966
2967 * ada-lang.c (ada_equal_binop): No longer static.
2968 * ada-exp.h (class ada_binop_equal_operation): New.
2969
2970 2021-03-08 Tom Tromey <tom@tromey.com>
2971
2972 * ada-lang.c (ada_mult_binop): No longer static.
2973 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
2974 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
2975
2976 2021-03-08 Tom Tromey <tom@tromey.com>
2977
2978 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
2979 * ada-exp.h (class ada_binop_addsub_operation): New.
2980
2981 2021-03-08 Tom Tromey <tom@tromey.com>
2982
2983 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2984 (ada_resolve_variable): Declare.
2985 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
2986 (ada_resolve_variable): New functions.
2987 (resolve_subexp): Update.
2988
2989 2021-03-08 Tom Tromey <tom@tromey.com>
2990
2991 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
2992 method.
2993 * c-exp.h (class opencl_ternop_cond_operation): New.
2994
2995 2021-03-08 Tom Tromey <tom@tromey.com>
2996
2997 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
2998 method.
2999 * c-exp.h (class opencl_logical_binop_operation): New.
3000
3001 2021-03-08 Tom Tromey <tom@tromey.com>
3002
3003 * opencl-lang.c (opencl_structop_operation::evaluate): New
3004 method.
3005 * c-exp.h (class opencl_structop_operation): New.
3006
3007 2021-03-08 Tom Tromey <tom@tromey.com>
3008
3009 * opencl-lang.c (opencl_logical_not): No longer static. Change
3010 parameters.
3011 (evaluate_subexp_opencl): Update.
3012 * c-exp.h (opencl_notequal_operation): New typedef.
3013
3014 2021-03-08 Tom Tromey <tom@tromey.com>
3015
3016 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3017 static. Change parameters.
3018 (eval_opencl_assign): No longer static. Add "op" parameter.
3019 (evaluate_subexp_opencl): Update.
3020 * c-exp.h (opencl_binop_operation): New template class.
3021 (opencl_assign_operation, opencl_equal_operation)
3022 (opencl_notequal_operation, opencl_less_operation)
3023 (opencl_gtr_operation, opencl_geq_operation)
3024 (opencl_leq_operation): New typedefs.
3025
3026 2021-03-08 Tom Tromey <tom@tromey.com>
3027
3028 * opencl-lang.c (opencl_value_cast): No longer static.
3029 * c-exp.h (opencl_cast_type_operation): New typedef.
3030
3031 2021-03-08 Tom Tromey <tom@tromey.com>
3032
3033 * f-exp.h (eval_op_f_allocated): Declare.
3034 (fortran_allocated_operation): New typedef.
3035 * f-lang.c (eval_op_f_allocated): No longer static.
3036
3037 2021-03-08 Tom Tromey <tom@tromey.com>
3038
3039 * f-lang.c (eval_op_f_associated): New functions.
3040 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3041 typedefs.
3042
3043 2021-03-08 Tom Tromey <tom@tromey.com>
3044
3045 * f-lang.c (fortran_bound_1arg::evaluate)
3046 (fortran_bound_2arg::evaluate): New methods.
3047 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3048 New.
3049
3050 2021-03-08 Tom Tromey <tom@tromey.com>
3051
3052 * expop.h (class unop_addr_operation) <get_expression>: New
3053 method.
3054 * f-lang.c (fortran_undetermined::value_subarray)
3055 (fortran_undetermined::evaluate): New methods.
3056 (fortran_prepare_argument): New overload.
3057 * f-exp.h (class fortran_range_operation)
3058 (class fortran_undetermined): New classes.
3059
3060 2021-03-08 Tom Tromey <tom@tromey.com>
3061
3062 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3063 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3064 method.
3065
3066 2021-03-08 Tom Tromey <tom@tromey.com>
3067
3068 * expression.h (class operation) <evaluate_funcall>: New methods.
3069 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3070 (class var_value_operation) <evaluate_funcall>: New method.
3071 (class structop_base_operation) <evaluate_funcall>: New method.
3072 (class var_msym_value_operation) <evaluate_funcall>: New method.
3073 (class structop_member_base): New class.
3074 (class structop_member_operation): Derive from
3075 structop_member_base.
3076 (class structop_mptr_operation): Derive from
3077 structop_member_base.
3078 (class funcall_operation): New class.
3079 * eval.c (operation::evaluate_funcall)
3080 (var_value_operation::evaluate_funcall)
3081 (scope_operation::evaluate_funcall)
3082 (structop_member_base::evaluate_funcall)
3083 (structop_base_operation::evaluate_funcall): New methods.
3084
3085 2021-03-08 Tom Tromey <tom@tromey.com>
3086
3087 * expop.h (class array_operation): New.
3088 * eval.c (array_operation::evaluate_struct_tuple)
3089 (array_operation::evaluate): New methods.
3090
3091 2021-03-08 Tom Tromey <tom@tromey.com>
3092
3093 * expop.h (class adl_func_operation): New.
3094 * eval.c (adl_func_operation::evaluate): New method.
3095
3096 2021-03-08 Tom Tromey <tom@tromey.com>
3097
3098 * ada-lang.c (ada_unop_in_range): No longer static.
3099 * ada-exp.h (class ada_unop_range_operation): New.
3100
3101 2021-03-08 Tom Tromey <tom@tromey.com>
3102
3103 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3104 No longer static.
3105 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3106 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3107
3108 2021-03-08 Tom Tromey <tom@tromey.com>
3109
3110 * expop.h (class logical_and_operation)
3111 (class logical_or_operation): New.
3112 * eval.c (logical_and_operation::evaluate)
3113 (logical_or_operation::evaluate): New methods.
3114 * ax-gdb.c (logical_and_operation::do_generate_ax)
3115 (logical_or_operation::do_generate_ax): New methods.
3116
3117 2021-03-08 Tom Tromey <tom@tromey.com>
3118
3119 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3120 static.
3121 * m2-exp.h: New file.
3122
3123 2021-03-08 Tom Tromey <tom@tromey.com>
3124
3125 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3126 * rust-exp.h (class rust_aggregate_operation): New.
3127
3128 2021-03-08 Tom Tromey <tom@tromey.com>
3129
3130 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3131 No longer static.
3132 * rust-exp.h (class rust_struct_anon): New.
3133 (class rust_structop): New.
3134
3135 2021-03-08 Tom Tromey <tom@tromey.com>
3136
3137 * rust-lang.c (rust_range): No longer static.
3138 * rust-exp.h (class rust_range_operation): New.
3139
3140 2021-03-08 Tom Tromey <tom@tromey.com>
3141
3142 * rust-lang.c (rust_subscript): No longer static.
3143 * rust-exp.h (class rust_subscript_operation): New.
3144
3145 2021-03-08 Tom Tromey <tom@tromey.com>
3146
3147 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3148 parameter.
3149 (rust_evaluate_subexp): Update.
3150 * rust-exp.h (class rust_unop_ind_operation): New.
3151
3152 2021-03-08 Tom Tromey <tom@tromey.com>
3153
3154 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3155 longer static. Add "opcode" parameter.
3156 (rust_evaluate_subexp): Update.
3157 * rust-exp.h: New file.
3158
3159 2021-03-08 Tom Tromey <tom@tromey.com>
3160
3161 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3162 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3163 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3164 (evaluate_subexp_f): Update.
3165 * f-exp.h: New file.
3166
3167 2021-03-08 Tom Tromey <tom@tromey.com>
3168
3169 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3170 * ada-exp.h (class ada_ternop_range_operation): New.
3171
3172 2021-03-08 Tom Tromey <tom@tromey.com>
3173
3174 * ada-lang.c (ada_qual_operation::evaluate): New method.
3175 * ada-exp.h (class ada_qual_operation): New.
3176
3177 2021-03-08 Tom Tromey <tom@tromey.com>
3178
3179 * ada-lang.c (ada_string_operation::evaluate): New method.
3180 * ada-exp.h (class ada_string_operation): New.
3181
3182 2021-03-08 Tom Tromey <tom@tromey.com>
3183
3184 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3185 * ada-exp.h: New file.
3186
3187 2021-03-08 Tom Tromey <tom@tromey.com>
3188
3189 * expop.h (class multi_subscript_operation): New.
3190 * eval.c (multi_subscript_operation::evaluate): New method.
3191
3192 2021-03-08 Tom Tromey <tom@tromey.com>
3193
3194 * eval.c (objc_msgcall_operation::evaluate): New method.
3195 * c-exp.h (class objc_msgcall_operation): New.
3196
3197 2021-03-08 Tom Tromey <tom@tromey.com>
3198
3199 * expop.h (class var_value_operation): New.
3200 * eval.c (var_value_operation::evaluate)
3201 (var_value_operation::evaluate_for_address)
3202 (var_value_operation::evaluate_with_coercion)
3203 (var_value_operation::evaluate_for_sizeof)
3204 (var_value_operation::evaluate_for_cast): New methods.
3205 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3206
3207 2021-03-08 Tom Tromey <tom@tromey.com>
3208
3209 * expop.h (cxx_cast_ftype): New typedef.
3210 (cxx_cast_operation): New template.
3211 (dynamic_cast_operation, reinterpret_cast_operation): New
3212 typedefs.
3213
3214 2021-03-08 Tom Tromey <tom@tromey.com>
3215
3216 * expop.h (class unop_cast_type_operation): New.
3217 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3218 method.
3219
3220 2021-03-08 Tom Tromey <tom@tromey.com>
3221
3222 * expop.h (class unop_cast_operation): New.
3223 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3224
3225 2021-03-08 Tom Tromey <tom@tromey.com>
3226
3227 * expop.h (class assign_modify_operation): New.
3228 * eval.c (eval_binop_assign_modify): No longer static.
3229 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3230
3231 2021-03-08 Tom Tromey <tom@tromey.com>
3232
3233 * expop.h (class assign_operation): New.
3234 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3235
3236 2021-03-08 Tom Tromey <tom@tromey.com>
3237
3238 * expop.h (class type_instance_operation): New.
3239 * eval.c (type_instance_operation::evaluate): New method.
3240
3241 2021-03-08 Tom Tromey <tom@tromey.com>
3242
3243 * expop.h (class op_this_operation): New.
3244 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3245
3246 2021-03-08 Tom Tromey <tom@tromey.com>
3247
3248 * expop.h (class unop_memval_operation)
3249 (class unop_memval_type_operation): New.
3250 * eval.c (eval_op_memval): No longer static.
3251 (unop_memval_operation::evaluate_for_address)
3252 (unop_memval_type_operation::evaluate_for_address)
3253 (unop_memval_operation::evaluate_for_sizeof)
3254 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3255 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3256 (unop_memval_type_operation::do_generate_ax): New methods.
3257
3258 2021-03-08 Tom Tromey <tom@tromey.com>
3259
3260 * expop.h (class unop_alignof_operation): New.
3261 * eval.c (eval_op_alignof): No longer static.
3262
3263 2021-03-08 Tom Tromey <tom@tromey.com>
3264
3265 * expop.h (class unop_sizeof_operation): New.
3266 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3267
3268 2021-03-08 Tom Tromey <tom@tromey.com>
3269
3270 * expop.h (class unop_addr_operation): New.
3271 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3272
3273 2021-03-08 Tom Tromey <tom@tromey.com>
3274
3275 * expop.h (class typeid_operation): New.
3276
3277 2021-03-08 Tom Tromey <tom@tromey.com>
3278
3279 * expop.h (class decltype_operation): New.
3280
3281 2021-03-08 Tom Tromey <tom@tromey.com>
3282
3283 * expop.h (class typeof_operation): New.
3284
3285 2021-03-08 Tom Tromey <tom@tromey.com>
3286
3287 * expop.h (class type_operation): New.
3288 * eval.c (eval_op_type): No longer static.
3289
3290 2021-03-08 Tom Tromey <tom@tromey.com>
3291
3292 * expop.h (class unop_ind_base_operation)
3293 (class unop_ind_operation): New.
3294 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3295 (unop_ind_base_operation::evaluate_for_address)
3296 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3297 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3298
3299 2021-03-08 Tom Tromey <tom@tromey.com>
3300
3301 * expop.h (unop_incr_operation): New template.
3302 (preinc_operation, predec_operation, postinc_operation)
3303 (postdec_operation): New typedefs.
3304 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3305 (eval_op_postdec): No longer static.
3306
3307 2021-03-08 Tom Tromey <tom@tromey.com>
3308
3309 * expop.h (unary_ftype): New typedef.
3310 (unop_operation, usual_ax_binop_operation): New templates.
3311 (unary_plus_operation, unary_neg_operation)
3312 (unary_complement_operation, unary_logical_not_operation): New
3313 typedefs.
3314 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3315 (eval_op_lognot): No longer static.
3316 * ax-gdb.c (gen_expr_unop): New function.
3317
3318 2021-03-08 Tom Tromey <tom@tromey.com>
3319
3320 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3321
3322 2021-03-08 Tom Tromey <tom@tromey.com>
3323
3324 * expop.h (class repeat_operation): New.
3325 * eval.c (eval_op_repeat): No longer static. Remove "op"
3326 parameter.
3327 (evaluate_subexp_standard): Update.
3328 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3329
3330 2021-03-08 Tom Tromey <tom@tromey.com>
3331
3332 * expop.h (class comparison_operation): New.
3333 (equal_operation, notequal_operation, less_operation)
3334 (gtr_operation, geq_operation, leq_operation): New typedefs.
3335 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3336 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3337
3338 2021-03-08 Tom Tromey <tom@tromey.com>
3339
3340 * expop.h (class subscript_operation): New.
3341 * eval.c (eval_op_subscript): No longer static.
3342
3343 2021-03-08 Tom Tromey <tom@tromey.com>
3344
3345 * expop.h (class binop_operation, class usual_ax_binop_operation):
3346 New.
3347 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3348 (div_operation, rem_operation, lsh_operation, rsh_operation)
3349 (bitwise_and_operation, bitwise_ior_operation)
3350 (bitwise_xor_operation): New typedefs.
3351 * eval.c (eval_op_binary): No longer static.
3352
3353 2021-03-08 Tom Tromey <tom@tromey.com>
3354
3355 * expop.h (class sub_operation): New.
3356 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3357 (evaluate_subexp_standard): Update.
3358
3359 2021-03-08 Tom Tromey <tom@tromey.com>
3360
3361 * expop.h (class add_operation): New.
3362 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3363 (evaluate_subexp_standard): Update.
3364
3365 2021-03-08 Tom Tromey <tom@tromey.com>
3366
3367 * expop.h (class concat_operation): New.
3368 * eval.c (eval_op_concat): No longer static. Remove "op"
3369 parameter.
3370 (evaluate_subexp_standard): Update.
3371
3372 2021-03-08 Tom Tromey <tom@tromey.com>
3373
3374 * expop.h (class structop_member_operation)
3375 (class structop_mptr_operation): New.
3376 * eval.c (eval_op_member): No longer static.
3377
3378 2021-03-08 Tom Tromey <tom@tromey.com>
3379
3380 * expop.h (class structop_ptr_operation): New.
3381 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3382 parameter.
3383
3384 2021-03-08 Tom Tromey <tom@tromey.com>
3385
3386 * expop.h (class structop_base_operation)
3387 (class structop_operation): New.
3388 * eval.c (eval_op_structop_struct): No longer static.
3389
3390 2021-03-08 Tom Tromey <tom@tromey.com>
3391
3392 * expop.h (class complex_operation): New.
3393
3394 2021-03-08 Tom Tromey <tom@tromey.com>
3395
3396 * eval.c (eval_op_objc_selector): No longer static.
3397 * c-exp.h (class objc_selector_operation): New.
3398
3399 2021-03-08 Tom Tromey <tom@tromey.com>
3400
3401 * eval.c: Include c-exp.h.
3402 * c-exp.h (class objc_nsstring_operation): New.
3403
3404 2021-03-08 Tom Tromey <tom@tromey.com>
3405
3406 * c-lang.c (c_string_operation::evaluate): New method.
3407 * c-exp.h: New file.
3408
3409 2021-03-08 Tom Tromey <tom@tromey.com>
3410
3411 * expop.h (class ternop_cond_operation): New.
3412 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3413
3414 2021-03-08 Tom Tromey <tom@tromey.com>
3415
3416 * expop.h (class ternop_slice_operation): New.
3417 * eval.c (eval_op_ternop): No longer static.
3418
3419 2021-03-08 Tom Tromey <tom@tromey.com>
3420
3421 * expop.h (class string_operation): New.
3422 * eval.c (eval_op_string): No longer static.
3423
3424 2021-03-08 Tom Tromey <tom@tromey.com>
3425
3426 * expop.h (class internalvar_operation): New.
3427 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3428
3429 2021-03-08 Tom Tromey <tom@tromey.com>
3430
3431 * expop.h (class bool_operation): New.
3432
3433 2021-03-08 Tom Tromey <tom@tromey.com>
3434
3435 * expop.h (class register_operation): New.
3436 * eval.c (eval_op_register): No longer static.
3437 * ax-gdb.c (register_operation::do_generate_ax): New method.
3438
3439 2021-03-08 Tom Tromey <tom@tromey.com>
3440
3441 * expop.h (class last_operation): New.
3442
3443 2021-03-08 Tom Tromey <tom@tromey.com>
3444
3445 * expop.h (class func_static_var_operation): New.
3446 * eval.c (eval_op_func_static_var): No longer static.
3447
3448 2021-03-08 Tom Tromey <tom@tromey.com>
3449
3450 * expop.h (class var_entry_value_operation): New.
3451 * eval.c (eval_op_var_entry_value): No longer static.
3452
3453 2021-03-08 Tom Tromey <tom@tromey.com>
3454
3455 * expression.h (class operation) <set_outermost>: New method.
3456 * expop.h (class var_msym_value_operation): New.
3457 * eval.c (eval_op_var_msym_value): No longer static.
3458 (var_msym_value_operation::evaluate_for_address)
3459 (var_msym_value_operation::evaluate_for_sizeof)
3460 (var_msym_value_operation::evaluate_for_cast): New methods.
3461 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3462 method.
3463
3464 2021-03-08 Tom Tromey <tom@tromey.com>
3465
3466 * expop.h (class long_const_operation): New.
3467 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3468
3469 2021-03-08 Tom Tromey <tom@tromey.com>
3470
3471 * expop.h (class scope_operation): New.
3472 * eval.c (eval_op_scope): No longer static.
3473 (scope_operation::evaluate_for_address): New method.
3474 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3475
3476 2021-03-08 Tom Tromey <tom@tromey.com>
3477
3478 * expprint.c (float_const_operation::dump): New method.
3479 * expop.h (float_data): New typedef.
3480 (class float_const_operation): New.
3481
3482 2021-03-08 Tom Tromey <tom@tromey.com>
3483
3484 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3485 * ax-gdb.c (gen_expr_binop): New function.
3486 (gen_expr_structop): Likewise.
3487
3488 2021-03-08 Tom Tromey <tom@tromey.com>
3489
3490 * expprint.c (expr::dump_for_expression): New functions.
3491 * expop.h (dump_for_expression): New overloads.
3492 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3493 Update.
3494
3495 2021-03-08 Tom Tromey <tom@tromey.com>
3496
3497 * expression.h (expr::operation): New class.
3498 (expr::make_operation): New function.
3499 (expr::operation_up): New typedef.
3500 * expop.h: New file.
3501 * eval.c (operation::evaluate_for_cast)
3502 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3503 New methods.
3504 * ax-gdb.c (operation::generate_ax): New method.
3505
3506 2021-03-08 Tom Tromey <tom@tromey.com>
3507
3508 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3509 (gen_expr_binop_rest): New overload.
3510
3511 2021-03-08 Tom Tromey <tom@tromey.com>
3512
3513 * eval.c (eval_multi_subscript): New function.
3514 (evaluate_subexp_standard): Use it.
3515
3516 2021-03-08 Tom Tromey <tom@tromey.com>
3517
3518 * ada-lang.c (ada_binop_exp): New function.
3519 (ada_evaluate_subexp): Use it.
3520
3521 2021-03-08 Tom Tromey <tom@tromey.com>
3522
3523 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3524 parameters.
3525 (ada_evaluate_subexp): Use it.
3526
3527 2021-03-08 Tom Tromey <tom@tromey.com>
3528
3529 * ada-lang.c (ada_binop_minmax): New function.
3530 (ada_evaluate_subexp): Use it.
3531
3532 2021-03-08 Tom Tromey <tom@tromey.com>
3533
3534 * ada-lang.c (ada_unop_atr): New function.
3535 (ada_evaluate_subexp): Use it.
3536
3537 2021-03-08 Tom Tromey <tom@tromey.com>
3538
3539 * ada-lang.c (ada_binop_in_bounds): New function.
3540 (ada_evaluate_subexp): Use it.
3541
3542 2021-03-08 Tom Tromey <tom@tromey.com>
3543
3544 * ada-lang.c (ada_ternop_slice): New function.
3545 (ada_evaluate_subexp): Use it.
3546
3547 2021-03-08 Tom Tromey <tom@tromey.com>
3548
3549 * ada-lang.c (ada_equal_binop): New function.
3550 (ada_evaluate_subexp): Use it.
3551
3552 2021-03-08 Tom Tromey <tom@tromey.com>
3553
3554 * ada-lang.c (ada_mult_binop): New function.
3555 (ada_evaluate_subexp): Use it.
3556
3557 2021-03-08 Tom Tromey <tom@tromey.com>
3558
3559 * ada-lang.c (ada_abs): New function.
3560 (ada_evaluate_subexp): Use it.
3561
3562 2021-03-08 Tom Tromey <tom@tromey.com>
3563
3564 * ada-lang.c (ada_atr_size): New function.
3565 (ada_evaluate_subexp): Use it.
3566
3567 2021-03-08 Tom Tromey <tom@tromey.com>
3568
3569 * ada-lang.c (ada_atr_tag): New function.
3570 (ada_evaluate_subexp): Use it.
3571
3572 2021-03-08 Tom Tromey <tom@tromey.com>
3573
3574 * ada-lang.c (ada_unop_in_range): New function.
3575 (ada_evaluate_subexp): Use it.
3576
3577 2021-03-08 Tom Tromey <tom@tromey.com>
3578
3579 * ada-lang.c (ada_unop_neg): New function.
3580 (ada_evaluate_subexp): Use it.
3581
3582 2021-03-08 Tom Tromey <tom@tromey.com>
3583
3584 * ada-lang.c (eval_ternop_in_range): New function.
3585 (ada_evaluate_subexp): Use it.
3586
3587 2021-03-08 Tom Tromey <tom@tromey.com>
3588
3589 * opencl-lang.c (eval_opencl_assign): New function.
3590 (evaluate_subexp_opencl): Use it.
3591
3592 2021-03-08 Tom Tromey <tom@tromey.com>
3593
3594 * eval.c (eval_op_objc_msgcall): New function.
3595 (evaluate_subexp_standard): Use it.
3596
3597 2021-03-08 Tom Tromey <tom@tromey.com>
3598
3599 * eval.c (eval_binop_assign_modify): New function.
3600 (evaluate_subexp_standard): Use it.
3601
3602 2021-03-08 Tom Tromey <tom@tromey.com>
3603
3604 * m2-lang.c (eval_op_m2_subscript): New function.
3605 (evaluate_subexp_modula2): Use it.
3606
3607 2021-03-08 Tom Tromey <tom@tromey.com>
3608
3609 * m2-lang.c (eval_op_m2_high): New function.
3610 (evaluate_subexp_modula2): Use it.
3611
3612 2021-03-08 Tom Tromey <tom@tromey.com>
3613
3614 * eval.c (evaluate_subexp_for_address_base): New function.
3615 (evaluate_subexp_for_address): Use it.
3616 (evaluate_subexp_for_sizeof_base): New function.
3617 (evaluate_subexp_for_sizeof): Use it.
3618
3619 2021-03-08 Tom Tromey <tom@tromey.com>
3620
3621 * rust-lang.c (eval_op_rust_structop): New function.
3622 (rust_evaluate_subexp): Use it.
3623
3624 2021-03-08 Tom Tromey <tom@tromey.com>
3625
3626 * rust-lang.c (eval_op_rust_struct_anon): New function.
3627 (rust_evaluate_subexp): Use it.
3628
3629 2021-03-08 Tom Tromey <tom@tromey.com>
3630
3631 * rust-lang.c (eval_op_rust_array): New function.
3632 (rust_evaluate_subexp): Use it.
3633
3634 2021-03-08 Tom Tromey <tom@tromey.com>
3635
3636 * rust-lang.c (eval_op_rust_complement): New function.
3637 (rust_evaluate_subexp): Use it.
3638
3639 2021-03-08 Tom Tromey <tom@tromey.com>
3640
3641 * rust-lang.c (eval_op_rust_ind): New function.
3642 (rust_evaluate_subexp): Use it.
3643
3644 2021-03-08 Tom Tromey <tom@tromey.com>
3645
3646 * rust-lang.c (rust_subscript): Change parameters.
3647 (rust_evaluate_subexp): Update.
3648
3649 2021-03-08 Tom Tromey <tom@tromey.com>
3650
3651 * rust-lang.c (rust_range): Change parameters.
3652 (rust_evaluate_subexp): Update.
3653
3654 2021-03-08 Tom Tromey <tom@tromey.com>
3655
3656 * f-lang.c (eval_op_f_allocated): New function.
3657 (evaluate_subexp_f): Use it.
3658
3659 2021-03-08 Tom Tromey <tom@tromey.com>
3660
3661 * f-lang.c (fortran_require_array): New function.
3662 (evaluate_subexp_f): Use it.
3663
3664 2021-03-08 Tom Tromey <tom@tromey.com>
3665
3666 * f-lang.c (eval_op_f_kind): New function.
3667 (evaluate_subexp_f): Use it.
3668
3669 2021-03-08 Tom Tromey <tom@tromey.com>
3670
3671 * f-lang.c (eval_op_f_cmplx): New function.
3672 (evaluate_subexp_f): Use it.
3673
3674 2021-03-08 Tom Tromey <tom@tromey.com>
3675
3676 * f-lang.c (eval_op_f_modulo): New function.
3677 (evaluate_subexp_f): Use it.
3678
3679 2021-03-08 Tom Tromey <tom@tromey.com>
3680
3681 * f-lang.c (eval_op_f_floor): New function.
3682 (evaluate_subexp_f): Use it.
3683
3684 2021-03-08 Tom Tromey <tom@tromey.com>
3685
3686 * f-lang.c (eval_op_f_ceil): New function.
3687 (evaluate_subexp_f): Use it.
3688
3689 2021-03-08 Tom Tromey <tom@tromey.com>
3690
3691 * f-lang.c (eval_op_f_mod): New function.
3692 (evaluate_subexp_f): Use it.
3693
3694 2021-03-08 Tom Tromey <tom@tromey.com>
3695
3696 * f-lang.c (eval_op_f_abs): New function.
3697 (evaluate_subexp_f): Use it.
3698
3699 2021-03-08 Tom Tromey <tom@tromey.com>
3700
3701 * eval.c (eval_op_type): New function.
3702 (evaluate_subexp_standard): Use it.
3703
3704 2021-03-08 Tom Tromey <tom@tromey.com>
3705
3706 * eval.c (eval_op_postdec): New function.
3707 (evaluate_subexp_standard): Use it.
3708
3709 2021-03-08 Tom Tromey <tom@tromey.com>
3710
3711 * eval.c (eval_op_postinc): New function.
3712 (evaluate_subexp_standard): Use it.
3713
3714 2021-03-08 Tom Tromey <tom@tromey.com>
3715
3716 * eval.c (eval_op_predec): New file.
3717 (evaluate_subexp_standard): Use it.
3718
3719 2021-03-08 Tom Tromey <tom@tromey.com>
3720
3721 * eval.c (eval_op_preinc): New function.
3722 (evaluate_subexp_standard): Use it.
3723
3724 2021-03-08 Tom Tromey <tom@tromey.com>
3725
3726 * eval.c (eval_op_memval): New function.
3727 (evaluate_subexp_standard): Use it.
3728
3729 2021-03-08 Tom Tromey <tom@tromey.com>
3730
3731 * eval.c (eval_op_alignof): New function.
3732 (evaluate_subexp_standard): Use it.
3733
3734 2021-03-08 Tom Tromey <tom@tromey.com>
3735
3736 * eval.c (eval_op_ind): New function.
3737 (evaluate_subexp_standard): Use it.
3738
3739 2021-03-08 Tom Tromey <tom@tromey.com>
3740
3741 * eval.c (eval_op_lognot): New function.
3742 (evaluate_subexp_standard): Use it.
3743
3744 2021-03-08 Tom Tromey <tom@tromey.com>
3745
3746 * eval.c (eval_op_complement): New function.
3747 (evaluate_subexp_standard): Use it.
3748
3749 2021-03-08 Tom Tromey <tom@tromey.com>
3750
3751 * eval.c (eval_op_neg): New function.
3752 (evaluate_subexp_standard): Use it.
3753
3754 2021-03-08 Tom Tromey <tom@tromey.com>
3755
3756 * eval.c (eval_op_plus): New function.
3757 (evaluate_subexp_standard): Use it.
3758
3759 2021-03-08 Tom Tromey <tom@tromey.com>
3760
3761 * eval.c (eval_op_repeat): New function.
3762 (evaluate_subexp_standard): Use it.
3763
3764 2021-03-08 Tom Tromey <tom@tromey.com>
3765
3766 * eval.c (eval_op_leq): New function.
3767 (evaluate_subexp_standard): Use it.
3768
3769 2021-03-08 Tom Tromey <tom@tromey.com>
3770
3771 * eval.c (eval_op_geq): New function.
3772 (evaluate_subexp_standard): Use it.
3773
3774 2021-03-08 Tom Tromey <tom@tromey.com>
3775
3776 * eval.c (eval_op_gtr): New function.
3777 (evaluate_subexp_standard): Use it.
3778
3779 2021-03-08 Tom Tromey <tom@tromey.com>
3780
3781 * eval.c (eval_op_less): New function.
3782 (evaluate_subexp_standard): Use it.
3783
3784 2021-03-08 Tom Tromey <tom@tromey.com>
3785
3786 * eval.c (eval_op_notequal): New function.
3787 (evaluate_subexp_standard): Use it.
3788
3789 2021-03-08 Tom Tromey <tom@tromey.com>
3790
3791 * eval.c (eval_op_equal): New function.
3792 (evaluate_subexp_standard): Use it.
3793
3794 2021-03-08 Tom Tromey <tom@tromey.com>
3795
3796 * eval.c (eval_op_subscript): New function.
3797 (evaluate_subexp_standard): Use it.
3798
3799 2021-03-08 Tom Tromey <tom@tromey.com>
3800
3801 * eval.c (eval_op_binary): New function.
3802 (evaluate_subexp_standard): Use it.
3803
3804 2021-03-08 Tom Tromey <tom@tromey.com>
3805
3806 * eval.c (eval_op_sub): New function.
3807 (evaluate_subexp_standard): Use it.
3808
3809 2021-03-08 Tom Tromey <tom@tromey.com>
3810
3811 * eval.c (eval_op_add): New function.
3812 (evaluate_subexp_standard): Use it.
3813
3814 2021-03-08 Tom Tromey <tom@tromey.com>
3815
3816 * eval.c (eval_op_member): New function.
3817 (evaluate_subexp_standard): Use it.
3818
3819 2021-03-08 Tom Tromey <tom@tromey.com>
3820
3821 * eval.c (eval_op_structop_ptr): New function.
3822 (evaluate_subexp_standard): Use it.
3823
3824 2021-03-08 Tom Tromey <tom@tromey.com>
3825
3826 * eval.c (eval_op_structop_struct): New function.
3827 (evaluate_subexp_standard): Use it.
3828
3829 2021-03-08 Tom Tromey <tom@tromey.com>
3830
3831 * eval.c (eval_op_ternop): New function.
3832 (evaluate_subexp_standard): Use it.
3833
3834 2021-03-08 Tom Tromey <tom@tromey.com>
3835
3836 * eval.c (eval_op_concat): New function.
3837 (evaluate_subexp_standard): Use it.
3838
3839 2021-03-08 Tom Tromey <tom@tromey.com>
3840
3841 * eval.c (eval_op_objc_selector): New function.
3842 (evaluate_subexp_standard): Use it.
3843
3844 2021-03-08 Tom Tromey <tom@tromey.com>
3845
3846 * eval.c (eval_op_string): New function.
3847 (evaluate_subexp_standard): Use it.
3848
3849 2021-03-08 Tom Tromey <tom@tromey.com>
3850
3851 * eval.c (eval_op_register): New function.
3852 (evaluate_subexp_standard): Use it.
3853
3854 2021-03-08 Tom Tromey <tom@tromey.com>
3855
3856 * eval.c (eval_op_func_static_var): New function.
3857 (evaluate_subexp_standard): Use it.
3858
3859 2021-03-08 Tom Tromey <tom@tromey.com>
3860
3861 * eval.c (eval_op_var_msym_value): New function.
3862 (evaluate_subexp_standard): Use it.
3863
3864 2021-03-08 Tom Tromey <tom@tromey.com>
3865
3866 * eval.c (eval_op_var_entry_value): New function.
3867 (evaluate_subexp_standard): Use it.
3868
3869 2021-03-08 Tom Tromey <tom@tromey.com>
3870
3871 * eval.c (eval_op_scope): New function.
3872 (evaluate_subexp_standard): Use it.
3873
3874 2021-03-06 Chernov Sergey <klen_s@mail.ru>
3875
3876 PR gdb/27528:
3877 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3878
3879 2021-03-06 Tom Tromey <tom@tromey.com>
3880
3881 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3882 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3883 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3884 (locate_dwz_sections, dwz_search_other_debugdirs)
3885 (dwarf2_get_dwz_file): Move to dwz.c.
3886 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3887 read.h.
3888 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3889 (dwarf2_get_dwz_file): Move from read.c.
3890
3891 2021-03-06 Tom Tromey <tom@tromey.com>
3892
3893 * debuginfod-support.h: Include scoped_fd.h.
3894
3895 2021-03-06 Tom Tromey <tom@tromey.com>
3896
3897 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3898 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3899 (get_abbrev_section_for_cu, read_attribute_value)
3900 (get_debug_line_section): Update.
3901 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3902
3903 2021-03-06 Tom Tromey <tom@tromey.com>
3904
3905 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
3906 method.
3907 * dwarf2/read.c (section_is_p): Remove.
3908 (dwarf2_per_bfd::locate_sections)
3909 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
3910 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
3911 (dwarf2_locate_common_dwp_sections)
3912 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
3913 Update.
3914
3915 2021-03-06 Tom Tromey <tom@tromey.com>
3916
3917 * xcoffread.c: Include sect-names.h.
3918 * symfile.h (struct dwarf2_section_names, struct
3919 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
3920 * dwarf2/sect-names.h: New file, from symfile.h.
3921 * dwarf2/read.c: Include sect-names.h.
3922
3923 2021-03-06 Tom Tromey <tom@tromey.com>
3924
3925 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
3926 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
3927 (abbrev_table::read): Update.
3928 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
3929 (struct abbrev_info): Reformat.
3930 <attrs>: Now an array.
3931 (struct abbrev_table) <alloc_abbrev>: Remove.
3932
3933 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3934
3935 * ctfread.c (ctf_psymtab_add_enums): New function.
3936 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3937
3938 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3939
3940 * ctfread.c (read_func_kind_type): Set up function arguments.
3941
3942 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3943 Andrew Burgess <andrew.burgess@embecosm.com>
3944
3945 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3946 includes.
3947 (riscv_csrset): New static global.
3948 (riscv_update_csrmap): New function.
3949 (riscv_iterate_over_regset_sections): Process CSRs.
3950
3951 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3952
3953 * riscv-tdep.c (riscv_feature_name_csr): Define.
3954 (riscv_feature_name_cpu): Define.
3955 (riscv_feature_name_fpu): Define.
3956 (riscv_feature_name_virtual): Define.
3957 (riscv_xreg_feature): Use riscv_feature_name_cpu.
3958 (riscv_freg_feature): Use riscv_feature_name_fpu.
3959 (riscv_virtual_feature): Use riscv_feature_name_virtual.
3960 (riscv_csr_feature): Use riscv_feature_name_csr.
3961 * riscv-tdep.h (riscv_feature_name_csr): Declare.
3962
3963 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3964 Craig Blackmore <craig.blackmore@embecosm.com>
3965
3966 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
3967 (ALLDEPFILES): Add riscv-none-tdep.c.
3968 * configure: Regenerate.
3969 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
3970 support.
3971 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
3972 * elf-none-tdep.c: New file.
3973 * elf-none-tdep.h: New file.
3974 * riscv-none-tdep.c: New file.
3975
3976 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3977 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * corelow.c: Add 'xml-tdesc.h' include.
3980 (core_target::read_description): Load the target description from
3981 the core file when possible.
3982 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
3983 note.
3984 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
3985 (gcore_elf_make_tdesc_note): New function.
3986 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
3987 * linux-tdep.c (linux_make_corefile_notes): Add target description
3988 note.
3989
3990 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3991
3992 * Makefile.in (SFILES): Add gcore-elf.c.
3993 (HFILES_NO_SRCDIR): Add gcore-elf.h
3994 * configure: Regenerate.
3995 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
3996 support.
3997 * fbsd-tdep.c: Add 'gcore-elf.h' include.
3998 (struct fbsd_collect_regset_section_cb_data): Delete.
3999 (fbsd_collect_regset_section_cb): Delete.
4000 (fbsd_collect_thread_registers): Delete.
4001 (struct fbsd_corefile_thread_data): Delete.
4002 (fbsd_corefile_thread): Delete.
4003 (fbsd_make_corefile_notes): Call
4004 gcore_elf_build_thread_register_notes instead of the now deleted
4005 FreeBSD code.
4006 * gcore-elf.c: New file, the content was moved here from
4007 linux-tdep.c, functions were renamed and given minor cleanup.
4008 * gcore-elf.h: New file.
4009 * gcore.c (gcore_find_signalled_thread): Moved here from
4010 linux-tdep.c and given a new name. Minor cleanups.
4011 * gcore.h (gcore_find_signalled_thread): Declare.
4012 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4013 (struct linux_collect_regset_section_cb_data): Delete.
4014 (linux_collect_regset_section_cb): Delete.
4015 (linux_collect_thread_registers): Delete.
4016 (linux_corefile_thread): Call
4017 gcore_elf_build_thread_register_notes.
4018 (find_signalled_thread): Delete.
4019 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4020
4021 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4022
4023 PR gdb/27147
4024 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4025 process_stratum_target parameter,
4026 sparc_store_inferior_registers): update callers.
4027 * sparc-nat.c (sparc_fetch_inferior_registers,
4028 sparc_store_inferior_registers): Add process_stratum_target
4029 parameter. Switch current thread before calling
4030 sparc_supply_gregset / sparc_collect_rwindow.
4031 (sparc_store_inferior_registers): Likewise.
4032 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4033 (sparc32obsd_collect_uthread): Likewise.
4034 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4035 Add assertion.
4036 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4037 sparc64obsd_supply_uthread): Add assertion.
4038
4039 2021-03-04 Tom Tromey <tromey@adacore.com>
4040
4041 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4042 (aux_add_nonlocal_symbols): Update.
4043 (ada_add_block_symbols): Change "found_sym" to bool.
4044
4045 2021-03-03 Tom Tromey <tromey@adacore.com>
4046
4047 * ada-lang.c (ada_resolve_function): Update comment.
4048 (is_nonfunction, add_symbols_from_enclosing_procs)
4049 (remove_extra_symbols): Likewise.
4050 (struct match_data): Add constructor, initializers.
4051 (add_nonlocal_symbols): Remove memset.
4052 (aux_add_nonlocal_symbols): Update comment.
4053 (ada_add_block_renamings, add_nonlocal_symbols)
4054 (ada_add_all_symbols): Likewise.
4055 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4056
4057 2021-03-02 Tom Tromey <tromey@adacore.com>
4058
4059 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4060 (cast_to_gnat_encoded_fixed_point_type): Remove.
4061 (ada_value_cast, ada_evaluate_subexp): Update.
4062 (gnat_encoded_fixed_point_type_info)
4063 (ada_is_gnat_encoded_fixed_point_type)
4064 (gnat_encoded_fixed_point_delta)
4065 (gnat_encoded_fixed_point_scaling_factor): Remove.
4066 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4067 (gnat_encoded_fixed_point_delta)
4068 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4069 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4070 (ada_print_type): Update.
4071 * ada-valprint.c (ada_value_print_num): Update.
4072 * dwarf2/read.c (ada_get_gnat_encoded_number)
4073 (ada_get_gnat_encoded_ratio): New functions.
4074 (finish_fixed_point_type): Use them. Add parameters.
4075 (GNAT_FIXED_POINT_SUFFIX): New define.
4076 (gnat_encoded_fixed_point_type_info): New function.
4077 (read_base_type): Handle gnat encodings.
4078
4079 2021-03-02 Tom Tromey <tromey@adacore.com>
4080
4081 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4082 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4083 std::string.
4084 (GROW_VECT): Remove.
4085 (grow_vect): Remove.
4086
4087 2021-03-02 Tom Tromey <tromey@adacore.com>
4088
4089 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4090 * ada-lang.c (resolve_subexp): Update.
4091 (ada_resolve_function): Accept a vector.
4092 (is_nonfunction, add_defn_to_vec)
4093 (add_symbols_from_enclosing_procs): Likewise.
4094 (num_defns_collected, defns_collected): Remove.
4095 (remove_extra_symbols): Return a vector.
4096 (remove_irrelevant_renamings): Return void.
4097 (ada_add_local_symbols): Accept a vector.
4098 (struct match_data) <obstackp>: Remove.
4099 <resultp>: New member.
4100 (aux_add_nonlocal_symbols): Update.
4101 (ada_add_block_renamings, add_nonlocal_symbols)
4102 (ada_add_all_symbols): Accept a vector.
4103 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4104 vector.
4105 (ada_lookup_symbol): Update.
4106 (ada_add_block_symbols): Accept a vector.
4107 (get_var_value, iterate_over_symbols): Update.
4108 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4109 Update.
4110
4111 2021-03-02 Tom Tromey <tromey@adacore.com>
4112
4113 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4114
4115 2021-03-02 Tom Tromey <tromey@adacore.com>
4116
4117 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4118 auto_obstack.
4119 <root>: Initialize.
4120 (ada_pspace_data): Remove destructor.
4121 <sym_cache>: Now a unique_ptr.
4122 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4123 (ada_get_symbol_cache): Use 'new'.
4124 (ada_clear_symbol_cache): Rewrite.
4125
4126 2021-03-02 Tom Tromey <tromey@adacore.com>
4127
4128 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4129 is null.
4130
4131 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4132
4133 PR gdb/27393
4134 * source.c (add_path): Skip empty dirnames.
4135
4136 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4137
4138 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4139 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4140
4141 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4142
4143 PR gdb/26861
4144 * target.c (target_mourn_inferior): Only compare pids in
4145 target_mourn_inferior.
4146
4147 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4148
4149 PR gdb/26819
4150 * remote.c (remote_target::start_remote): Ensure the single
4151 thread, automatically added for remote targets without the
4152 concept of threading, is initially in set to the "resumed"
4153 state.
4154 * remote.c (remote_target::add_current_inferior_and_thread):
4155 Add return value - return the main thread.
4156
4157 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4158
4159 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4160 (mi_tsv_created): Likewise.
4161 (mi_tsv_deleted): Likewise.
4162
4163 2021-02-25 Tom de Vries <tdevries@suse.de>
4164
4165 PR symtab/27354
4166 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4167 section_kind for &dwo_file->sections.info.
4168
4169 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4170
4171 PR fortran/26155
4172 * f-lang.c (fortran_argument_convert): Delete declaration.
4173 (fortran_prepare_argument): New function.
4174 (evaluate_subexp_f): Move logic to new function
4175 fortran_prepare_argument.
4176
4177 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4178
4179 * f-exp.y (f77_keywords): Add 'associated'.
4180 * f-lang.c (fortran_associated): New function.
4181 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4182 (operator_length_f): Likewise.
4183 (print_unop_or_binop_subexp_f): New function.
4184 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4185 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4186 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4187 (operator_check_f): Likewise.
4188 * std-operator.def: Add FORTRAN_ASSOCIATED.
4189
4190 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4191
4192 * f-exp.y (fortran_operators): Add ".xor.".
4193
4194 2021-02-24 Tom de Vries <tdevries@suse.de>
4195
4196 PR symtab/27336
4197 * dwarf2/attribute.c (attribute::form_is_signed): New function
4198 factored out of ...
4199 * dwarf2/attribute.h (attribute::as_signed): ... here.
4200 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4201 (attribute::form_is_signed): Declare.
4202 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4203 for DW_AT_decl_file.
4204
4205 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4206
4207 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4208 order for <sys/ptrace.h> and <asm/ptrace.h>.
4209
4210 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4211
4212 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4213 <sys/ptrace.h>.
4214
4215 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4216
4217 * exec.c (set_section_command): Move variable declarations into
4218 the function body, and use std::string instead of a fixed size
4219 buffer.
4220
4221 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4222
4223 * exec.c (exec_target::get_section_table): Delete member function.
4224 (section_table_read_available_memory): Use current_top_target, not
4225 just the exec_ops target.
4226 * target-delegates.c: Regenerate.
4227 * target.c (default_get_section_table): New function.
4228 * target.h (target_ops::get_section_table): Change default
4229 behaviour to call default_get_section_table.
4230 (default_get_section_table): Declare.
4231
4232 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4233
4234 * exec.c (exec_target::close): Call new clear_target_sections
4235 function.
4236 (program_space::add_target_sections): Update name of member
4237 variable.
4238 (program_space::add_target_sections): Update name of member
4239 variable.
4240 (program_space::remove_target_sections): Likewise.
4241 (exec_one_fork): Use new target_sections member function.
4242 (exec_target::get_section_table): Likewise.
4243 (exec_target::files_info): Likewise.
4244 (set_section_command): Likewise.
4245 (exec_set_section_address): Likewise.
4246 (exec_target::has_memory): Use new target_sections member
4247 function.
4248 * progspace.h (program_space::clear_target_sections): New member
4249 function.
4250 (program_space::target_sections): Rename member variable to
4251 m_target_sections, replace with a new member function.
4252 (program_space::m_target_sections): New member variable.
4253 * solib-dsbt.c (scan_dyntag): Use new member function.
4254 * solib-svr4.c (scan_dyntag): Likewise.
4255
4256 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4257
4258 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4259 return type const.
4260 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4261 (section_table_read_available_memory): Make local const.
4262 (exec_target::xfer_partial): Make local const.
4263 (print_section_info): Make parameter const.
4264 * gdb/exec.h (print_section_info): Likewise.
4265 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4266 const.
4267 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4268 Likewise.
4269 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4270 Likewise.
4271 * gdb/s390-tdep.c (s390_load): Likewise.
4272 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4273 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4274 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4275 Rename to...
4276 (target_debug_print_const_target_section_table_p): ...this.
4277 * gdb/target-delegates.c: Regenerate.
4278 * gdb/target.c (target_get_section_table): Make return type const.
4279 (target_section_by_addr): Likewise. Also make some locals const.
4280 (memory_xfer_partial_1): Make some locals const.
4281 * gdb/target.h (struct target_ops) <get_section_table>: Make
4282 return type const.
4283 (target_section_by_addr): Likewise.
4284 (target_get_section_table): Likewise.
4285
4286 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4287
4288 * NEWS: Mention new 'maint info target-sections' command.
4289 * maint.c (maintenance_info_target_sections): New function.
4290 (_initialize_maint_cmds): Register new command.
4291
4292 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4293
4294 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4295 (riscv_features_from_bfd): ...this. Change parameter type to
4296 'bfd*', and update as required.
4297 (riscv_find_default_target_description): Update call to
4298 riscv_features_from_bfd. Select a default xlen based on
4299 info.bfd_arch_info.
4300 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4301
4302 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4303
4304 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4305 dynamic types in UNOP_IND.
4306
4307 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4308
4309 PR gdb/26828
4310 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4311 Instantiate queue.
4312 (~dwarf2_queue_guard): Clear queue.
4313 (queue_comp_unit): Assert that queue is
4314 instantiated.
4315 (process_queue): Adjust.
4316 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4317
4318 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4319
4320 PR gdb/26828
4321 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4322 to decide whether or not to enqueue it for expansion.
4323 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4324 after calling maybe_queue_comp_unit.
4325
4326 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4327
4328 * linux-nat.c (linux_nat_filter_event): Return void.
4329
4330 2021-02-22 Tom Tromey <tromey@adacore.com>
4331
4332 * solib-svr4.c (enable_break): Update.
4333 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4334 type.
4335 (target_bfd_reopen): Change parameter type.
4336 * bfd-target.h (target_bfd_reopen): Change parameter type.
4337
4338 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4339
4340 * thread.c (add_thread_silent): Add assert.
4341 (find_thread_ptid): Add assert.
4342
4343 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4344
4345 PR gdb/27435
4346 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4347 (target_unpush_up): Likewise.
4348 * procfs.c (procfs_target::attach): Push target early. Use
4349 target_unpush_up to unpush target in case of error.
4350 * target.h (struct target_unpusher): Move here.
4351 (target_unpush_up): Likewise.
4352
4353 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4354
4355 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4356 (which in turn includes <gnulib/config.h>) before include
4357 of <signal.h>.
4358
4359 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4360
4361 PR 27158
4362 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4363 (decode_j_type_insn): Likewise.
4364 (decode_cj_type_insn): Likewise.
4365 (decode_b_type_insn): Likewise.
4366 (decode): Likewise.
4367
4368 2021-02-18 Tom Tromey <tom@tromey.com>
4369
4370 * expression.h (struct expression) <evaluate>: Declare method.
4371 * eval.c (evaluate_subexp): Simplify.
4372 (expression::evaluate): New method.
4373 (evaluate_expression, evaluate_type): Use expression::evaluate.
4374
4375 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4376
4377 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4378 to accessing it.
4379 (ada_lookup_name_info): Likewise.
4380
4381 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4382
4383 * aclocal.m4: Regenerate.
4384
4385 2021-02-12 Tom de Vries <tdevries@suse.de>
4386
4387 PR threads/26228
4388 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4389 (lin_thread_signals): New static var.
4390 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4391 New function.
4392 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4393 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4394 Declare.
4395 * linux-thread-db.c (check_thread_signals): Use
4396 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4397
4398 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4399
4400 * f-exp.y (f77_keywords): Add allocated.
4401 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4402 (operator_length_f): Likewise.
4403 (print_subexp_f): Likewise.
4404 (dump_subexp_body_f): Likewise.
4405 (operator_check_f): Likewise.
4406 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4407
4408 2021-02-11 Tom de Vries <tdevries@suse.de>
4409
4410 PR symtab/27353
4411 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4412 Return true for DW_FORM_strx.
4413
4414 2021-02-11 Tom Tromey <tromey@adacore.com>
4415
4416 PR gdb/27383:
4417 * parse.c (write_exp_symbol_reference): Write sym.block.
4418
4419 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4420
4421 * NEWS: Mention changes to 'maint info sections'.
4422 * maint.c (match_substring): Return a bool, fix whitespace issue.
4423 (struct single_bfd_flag_info): New struct.
4424 (bfd_flag_info): New static global.
4425 (match_bfd_flags): Return a bool, use bfd_flag_info.
4426 (print_bfd_flags): Use bfd_flag_info.
4427 (maint_print_section_info): Delete trailing whitespace.
4428 (struct maint_info_sections_opts): New struct.
4429 (maint_info_sections_option_defs): New static global.
4430 (maint_info_sections_completer): New function.
4431 (maintenance_info_sections): Use option parsing mechanism.
4432 (_initialize_maint_cmds): Update command help text for 'maint info
4433 sections' and register a command completer.
4434
4435 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4436
4437 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4438 functionality merged into...
4439 (maint_print_all_sections): ...this new function.
4440 (maintenance_info_sections): Make use of maint_print_all_sections,
4441 allow all objects to be printed even where there's no executable.
4442
4443 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4444
4445 * breakpoint.c (resolve_sal_pc): Make use of
4446 bound_minimal_symbol::obj_section.
4447 * maint.c (maintenance_translate_address): Likewise.
4448 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4449 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4450 member function.
4451 * printcmd.c (info_address_command): Make use of
4452 bound_minimal_symbol::obj_section.
4453
4454 2021-02-11 Alan Modra <amodra@gmail.com>
4455
4456 * arm-symbian-tdep.c: Delete.
4457 * NEWS: Mention arm-symbian removal.
4458 * Makefile.in: Remove arm-symbian-tdep entries.
4459 * configure.tgt: Remove arm*-*-symbianelf*.
4460 * doc/gdb.texinfo: Remove mention of SymbianOS.
4461 * osabi.c (gdb_osabi_names): Remove "Symbian".
4462 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4463 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4464 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4465 handling.
4466 * testsuite/gdb.base/dup-sect.exp: Likewise.
4467 * testsuite/gdb.base/long_long.exp: Likewise.
4468 * testsuite/gdb.base/solib-weak.exp: Likewise.
4469 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4470 * testsuite/gdb.python/py-section-script.exp: Likewise.
4471 * testsuite/lib/dwarf.exp: Likewise.
4472 * testsuite/lib/gdb.exp: Likewise.
4473
4474 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4475
4476 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4477 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4478 (one_or_two_args): New pattern.
4479 (f77_keywords): Add lbound and ubound.
4480 * f-lang.c (fortran_bounds_all_dims): New function.
4481 (fortran_bounds_for_dimension): New function.
4482 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4483 (operator_length_f): Likewise.
4484 (print_subexp_f): Likewise.
4485 (dump_subexp_body_f): Likewise.
4486 (operator_check_f): Likewise.
4487 * std-operator.def (FORTRAN_LBOUND): Define.
4488 (FORTRAN_UBOUND): Define.
4489
4490 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4491
4492 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4493 and set_section_index member functions where appropriate.
4494 * coffread.c (coff_symtab_read): Likewise.
4495 (process_coff_symbol): Likewise.
4496 * ctfread.c (set_symbol_address): Likewise.
4497 * dwarf2/read.c (add_partial_symbol): Likewise.
4498 (var_decode_location): Likewise.
4499 * language.c: Likewise.
4500 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4501 (compact_minimal_symbols): Likewise.
4502 (minimal_symbol_upper_bound): Likewise.
4503 * objfiles.c (relocate_one_symbol): Likewise.
4504 * psympriv.h (partial_symbol::obj_section): Likewise.
4505 (partial_symbol::address): Likewise.
4506 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4507 * stabsread.c (scan_file_globals): Likewise.
4508 * symmisc.c (dump_msymbols): Likewise.
4509 * symtab.c (general_symbol_info::obj_section): Likewise.
4510 (fixup_section): Likewise.
4511 (get_msymbol_address): Likewise.
4512 * symtab.h (general_symbol_info::section): Rename to...
4513 (general_symbol_info::m_section): ...this.
4514 (general_symbol_info::set_section_index): New member function.
4515 (general_symbol_info::section_index): Likewise.
4516 (SYMBOL_SECTION): Delete.
4517 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4518 set_section_index member functions where appropriate.
4519 (MSYMBOL_SECTION): Delete.
4520 (symbol::symbol): Update to initialize 'm_section'.
4521 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4522 (process_xcoff_symbol): Likewise.
4523
4524 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4525
4526 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4527 MSYMBOL_OBJ_SECTION.
4528 * findvar.c (language_defn::read_var_value): Likewise.
4529 * infcmd.c (jump_command): Likewise.
4530 * linespec.c (minsym_found): Likewise.
4531 * maint.c (maintenance_translate_address): Likewise.
4532 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4533 (minimal_symbol_upper_bound): Likewise.
4534 * parse.c (find_minsym_type_and_address): Likewise.
4535 (operator_check_standard): Likewise.
4536 * printcmd.c (info_address_command): Likewise.
4537 * symmisc.c (dump_msymbols): Likewise.
4538 (print_symbol): Likewise.
4539 * symtab.c (general_symbol_info::obj_section): Define new
4540 function.
4541 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4542 (find_pc_sect_compunit_symtab): Likewise.
4543 (find_function_start_sal): Likewise.
4544 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4545 MSYMBOL_OBJ_SECTION.
4546 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4547 function.
4548 (SYMBOL_OBJ_SECTION): Delete.
4549 (MSYMBOL_OBJ_SECTION): Delete.
4550
4551 2021-02-09 Tom Tromey <tom@tromey.com>
4552
4553 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4554
4555 2021-02-09 Tom de Vries <tdevries@suse.de>
4556
4557 PR symtab/27341
4558 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4559 construct an array type. Add assert to ensure that element_type is
4560 not being modified.
4561
4562 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4563
4564 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4565 (gcore_collect_regset_section_cb): Delete.
4566 (gcore_collect_thread_registers): Delete.
4567 (gcore_build_thread_register_notes): Delete.
4568 (gcore_find_signalled_thread): Delete.
4569 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4570 'gdbarch' and 'thread_info' declarations.
4571 (gcore_build_thread_register_notes): Delete declaration.
4572 (gcore_find_signalled_thread): Likewise.
4573 * fbsd-tdep.c: Remove 'gcore.h' include.
4574 (struct fbsd_collect_regset_section_cb_data): New struct.
4575 (fbsd_collect_regset_section_cb): New function.
4576 (fbsd_collect_thread_registers): New function.
4577 (struct fbsd_corefile_thread_data): New struct.
4578 (fbsd_corefile_thread): New function.
4579 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4580 * linux-tdep.c: Remove 'gcore.h' include.
4581 (struct linux_collect_regset_section_cb_data): New struct.
4582 (linux_collect_regset_section_cb): New function.
4583 (linux_collect_thread_registers): New function.
4584 (linux_corefile_thread): Call Linux specific code.
4585 (find_signalled_thread): New function.
4586 (linux_make_corefile_notes): Call find_signalled_thread.
4587
4588 2021-02-09 Tom Tromey <tromey@adacore.com>
4589
4590 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4591 not_lval value.
4592 * value.c (value_contents_copy_raw): Now static.
4593 * value.h (value_contents_copy_raw): Don't declare.
4594
4595 2021-02-09 Tom Tromey <tromey@adacore.com>
4596
4597 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4598 fields.
4599
4600 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4601
4602 PR tdep/27369
4603 * arc-linux-tdep.c (handle_atomic_sequence): New.
4604 (arc_linux_software_single_step): Call handle_atomic_sequence().
4605
4606 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4607
4608 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4609 function.
4610 (REQUIRE_WINDOW): Call is_valid member function.
4611 (REQUIRE_WINDOW_FOR_SETTER): New define.
4612 (gdbpy_tui_is_valid): Call is_valid member function.
4613 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4614 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4615 tui_active too.
4616 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4617 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4618 the function.
4619
4620 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4621
4622 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4623 for the title is not nullptr.
4624
4625 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4626
4627 * tui-layout.c (saved_tui_windows): Delete.
4628 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4629 call new get_windows member function instead.
4630 (tui_get_window_by_name): Check in tui_windows.
4631 (tui_layout_window::apply): Don't add to tui_windows.
4632 * tui-layout.h (tui_layout_base::get_windows): New member function.
4633 (tui_layout_window::get_windows): Likewise.
4634 (tui_layout_split::get_windows): Likewise.
4635
4636 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4637
4638 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4639 of the window objects.
4640
4641 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4642
4643 * python/python.c (gdbpy_print_stack): Reformat an error message.
4644
4645 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4646
4647 * tui/tui-interp.c (tui_command_line_handler): New function.
4648 (tui_interp::resume): Register tui_command_line_handler as the
4649 input_handler.
4650 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4651 function.
4652 (tui_getc_1): Delete handling of '\n' and '\r'.
4653 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4654
4655 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4656
4657 * tui/tui-regs.c (tui_data_window::display_registers_from):
4658 Mark invisible register sub windows.
4659 (tui_data_window::check_register_values): Ignore invisible
4660 register sub windows.
4661
4662 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4663
4664 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4665 n_spaces with a negative value.
4666
4667 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4668
4669 * tui/tui-regs.c (tui_data_window::display_registers_from):
4670 Add refresh_window call.
4671
4672 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4673
4674 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4675
4676 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4677
4678 * symmisc.c (std_in, std_out, std_err): Remove.
4679 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4680
4681 2021-02-05 Tom de Vries <tdevries@suse.de>
4682
4683 PR breakpoints/27330
4684 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4685 glibc object file has debug info.
4686
4687 2021-02-05 Tom de Vries <tdevries@suse.de>
4688
4689 PR symtab/27333
4690 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4691
4692 2021-02-05 Tom de Vries <tdevries@suse.de>
4693
4694 PR breakpoints/27313
4695 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4696 syscall numbers.
4697
4698 2021-02-05 Tom Tromey <tom@tromey.com>
4699
4700 * compile/compile-c-support.c (get_compile_context)
4701 (c_get_compile_context, cplus_get_compile_context): Change return
4702 type.
4703 * language.c (language_defn::get_compile_instance): New method.
4704 * language.h (language_defn::get_compile_instance): Change return
4705 type. No longer inline.
4706 * c-lang.c (c_language::get_compile_instance): Change return type.
4707 (cplus_language::get_compile_instance): Change return type.
4708 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4709 Change return type.
4710 * compile/compile.c (compile_to_object): Update.
4711
4712 2021-02-05 Tom Tromey <tom@tromey.com>
4713
4714 * parser-defs.h (write_exp_symbol_reference): Declare.
4715 * parse.c (write_exp_symbol_reference): New function.
4716 * p-exp.y (variable): Use write_exp_symbol_reference.
4717 * m2-exp.y (variable): Use write_exp_symbol_reference.
4718 * f-exp.y (variable): Use write_exp_symbol_reference.
4719 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4720 * c-exp.y (variable): Use write_exp_symbol_reference.
4721
4722 2021-02-05 Tom de Vries <tdevries@suse.de>
4723
4724 PR exp/27265
4725 * valarith.c (complex_binop): Throw an error if complex type can't
4726 be created.
4727
4728 2021-02-05 Tom de Vries <tdevries@suse.de>
4729
4730 PR symtab/27307
4731 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4732 return.
4733
4734 2021-02-05 Tom de Vries <tdevries@suse.de>
4735
4736 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4737
4738 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4739
4740 * configure.tgt (riscv*-*-*): Set gdb_sim.
4741
4742 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4743
4744 * target.c (target_is_non_stop_p): Return bool.
4745 * target.h (target_is_non_stop_p): Return bool.
4746
4747 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4748
4749 * record-full.c (record_full_async_inferior_event_handler):
4750 Don't clear async event handler.
4751 (record_full_base_target::wait): Clear async event handler at
4752 beginning.
4753
4754 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * record-btrace.c (record_btrace_handle_async_inferior_event):
4757 Don't clear async event handler.
4758 (record_btrace_target::wait): Clear async event handler at
4759 beginning.
4760
4761 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4762
4763 * remote.c (remote_target::wait): Clear async event handler at
4764 beginning, mark if needed at the end.
4765 (remote_async_inferior_event_handler): Don't set or clear async
4766 event handler.
4767
4768 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4769
4770 * async-event.h (async_event_handler_func): Add documentation.
4771 * async-event.c (check_async_event_handlers): Don't clear
4772 async_event_handler ready flag.
4773 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4774 flag.
4775 * record-btrace.c (record_btrace_handle_async_inferior_event):
4776 Likewise.
4777 * record-full.c (record_full_async_inferior_event_handler):
4778 Likewise.
4779 * remote-notif.c (remote_async_get_pending_events_handler):
4780 Likewise.
4781 * remote.c (remote_async_inferior_event_handler): Likewise.
4782
4783 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4784
4785 * infrun.c (handle_inferior_event): Move stop_soon variable to
4786 inner scope.
4787
4788 2021-02-03 Pedro Alves <pedro@palves.net>
4789
4790 * infcmd.c (detach_command): Hold strong reference to target, and
4791 if all-stop on entry, restart threads on exit.
4792 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4793 (restart_stepped_thread): ... this new function. Also handle
4794 trap_expected.
4795 (restart_after_all_stop_detach): New function.
4796 * infrun.h (restart_after_all_stop_detach): Declare.
4797
4798 2021-02-03 Pedro Alves <pedro@palves.net>
4799
4800 * infrun.c (struct step_over_info): Initialize fields.
4801 (prepare_for_detach): Handle ongoing in-line step over.
4802
4803 2021-02-03 Pedro Alves <pedro@palves.net>
4804
4805 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4806 here...
4807 * remote.c (remote_target::remote_detach_1): ... and here ...
4808 * target.c (target_detach): ... instead of here.
4809 * target.h (target_ops::detach): Add comment.
4810
4811 2021-02-03 Pedro Alves <pedro@palves.net>
4812
4813 * infrun.c (struct wait_one_event): Move higher up.
4814 (prepare_for_detach): Abort in-progress displaced steps instead of
4815 letting them complete.
4816 (handle_one): If the inferior is detaching, don't add the thread
4817 back to the global step-over chain.
4818 (restart_threads): Don't restart threads if detaching.
4819 (handle_signal_stop): Remove inferior::detaching reference.
4820
4821 2021-02-03 Pedro Alves <pedro@palves.net>
4822
4823 * infrun.c (prepare_for_detach): Don't release scoped_restore
4824 before returning.
4825
4826 2021-02-03 Pedro Alves <pedro@palves.net>
4827
4828 * infrun.c (handle_one): New function, factored out from ...
4829 (stop_all_threads): ... here.
4830
4831 2021-02-03 Pedro Alves <pedro@palves.net>
4832
4833 * remote.c (remote_notif_stop_ack): Don't error out on
4834 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4835 (remote_target::discard_pending_stop_replies): Don't delete
4836 in-flight notification; instead, clear its contents.
4837
4838 2021-02-03 Pedro Alves <pedro@palves.net>
4839
4840 * remote.c (extended_remote_target::attach): Set target async in
4841 the target-non-stop path too.
4842
4843 2021-02-03 Pedro Alves <pedro@palves.net>
4844
4845 PR gdb/27055
4846 * infrun.c (handle_signal_stop): Move main context_switch call
4847 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4848
4849 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4850
4851 * NEWS (Changed commands): Add entry for the behavior change of
4852 the inferior command.
4853 * inferior.c (inferior_command): When no argument is given to the
4854 inferior command, display info about the currently selected
4855 inferior.
4856
4857 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4858
4859 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4860 a sect_offset.
4861 (read_attribute_reprocess): Adjust.
4862
4863 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4864
4865 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4866 <gnu_ranges_base>: ... this...
4867 <rnglists_base>: ... and this.
4868 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4869 <gnu_ranges_base>: ... this...
4870 <rnglists_base>: ... and this.
4871 (read_cutu_die_from_dwo): Adjust
4872 (dwarf2_get_pc_bounds): Adjust
4873 (dwarf2_record_block_ranges): Adjust.
4874 (read_full_die_1): Adjust
4875 (partial_die_info::read): Adjust.
4876 (read_rnglist_index): Adjust.
4877
4878 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4879
4880 PR gdb/26813
4881 * dwarf2/read.c (read_loclists_rnglists_header): Add
4882 header_offset parameter and use it.
4883 (read_loclist_index): Read header of the current contribution,
4884 not the one at the beginning of the section.
4885 (read_rnglist_index): Likewise.
4886
4887 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4888
4889 PR gdb/26813
4890 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4891 requires_reprocessing flag.
4892 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4893 DW_FORM_loclistx.
4894 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4895 and DW_FORM_loclistx.
4896 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4897 instead of set_address for DW_FORM_loclistx and
4898 DW_FORM_rnglistx.
4899
4900 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4901
4902 * dwarf2/read.c (read_loclist_index): Remove bound check for
4903 start of offset.
4904 (read_rnglist_index): Likewise.
4905
4906 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4907
4908 * dwarf2/read.c (read_loclist_index): Add bound check for the end
4909 of the offset.
4910
4911 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4912
4913 * dwarf2/read.c (read_rnglist_index): Fix bound check.
4914
4915 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4916
4917 * dwarf2/read.c (read_loclist_index): Change complaints into
4918 errors.
4919
4920 2021-02-02 Tom de Vries <tdevries@suse.de>
4921
4922 PR symtab/24620
4923 * dwarf2/index-write.c (write_one_signatured_type): Skip if
4924 psymtab == nullptr.
4925
4926 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4927
4928 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
4929 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4930 here from linux-tdep.c and given a new name. Minor cleanups.
4931 (gcore_collect_regset_section_cb): Likewise.
4932 (gcore_collect_thread_registers): Likewise.
4933 (gcore_build_thread_register_notes): Likewise.
4934 (gcore_find_signalled_thread): Likewise.
4935 * gcore.h (gcore_build_thread_register_notes): Declare.
4936 (gcore_find_signalled_thread): Declare.
4937 * fbsd-tdep.c: Add 'gcore.h' include.
4938 (struct fbsd_collect_regset_section_cb_data): Delete.
4939 (fbsd_collect_regset_section_cb): Delete.
4940 (fbsd_collect_thread_registers): Delete.
4941 (struct fbsd_corefile_thread_data): Delete.
4942 (fbsd_corefile_thread): Delete.
4943 (fbsd_make_corefile_notes): Call
4944 gcore_build_thread_register_notes instead of the now deleted
4945 FreeBSD code.
4946 * linux-tdep.c: Add 'gcore.h' include.
4947 (struct linux_collect_regset_section_cb_data): Delete.
4948 (linux_collect_regset_section_cb): Delete.
4949 (linux_collect_thread_registers): Delete.
4950 (linux_corefile_thread): Call
4951 gcore_build_thread_register_notes.
4952 (find_signalled_thread): Delete.
4953 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4954
4955 2021-01-29 Tom de Vries <tdevries@suse.de>
4956
4957 PR breakpoints/26063
4958 * infrun.c (process_event_stop_test): Reset
4959 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
4960 changed.
4961
4962 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4963
4964 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
4965 assert. Extend the header comment.
4966
4967 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
4970 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
4971 * tui/tui-data.h (TUI_STATUS_WIN): Define.
4972 (tui_locator_win_info_ptr): Delete declaration.
4973 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
4974 (tui_disasm_window::set_contents): Fetch state from tui_location
4975 global.
4976 (tui_get_begin_asm_address): Likewise.
4977 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
4978 for locator window.
4979 (get_locator_window): Delete.
4980 (initialize_known_windows): Treat locator window just like all the
4981 rest.
4982 * tui/tui-source.c: Add 'tui/tui-location.h' include.
4983 (tui_source_window::set_contents): Fetch state from tui_location
4984 global.
4985 (tui_source_window::showing_source_p): Likewise.
4986 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
4987 (_locator): Delete.
4988 (tui_locator_win_info_ptr): Delete.
4989 (tui_locator_window::make_status_line): Fetch state from
4990 tui_location global.
4991 (tui_locator_window::rerender): Remove check of 'handle',
4992 reindent function body.
4993 (tui_locator_window::set_locator_fullname): Delete.
4994 (tui_locator_window::set_locator_info): Delete.
4995 (tui_update_locator_fullname): Delete.
4996 (tui_show_frame_info): Likewise.
4997 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
4998 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
4999 tui/tui-location.h and renamed to
5000 tui_location_tracker::set_location.
5001 (tui_locator_window::set_locator_fullname): Moved to
5002 tui/tui-location.h and renamed to
5003 tui_location_tracker::set_fullname.
5004 (tui_locator_window::full_name): Delete.
5005 (tui_locator_window::proc_name): Delete.
5006 (tui_locator_window::line_no): Delete.
5007 (tui_locator_window::addr): Delete.
5008 (tui_locator_window::gdbarch): Delete.
5009 (tui_update_locator_fullname): Delete declaration.
5010 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5011 for locator window.
5012 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5013 (tui_display_main): Call function on tui_location directly.
5014 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5015 * tui/tui-location.c: New file.
5016 * tui/tui-location.h: New file.
5017
5018 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5019
5020 * gdbtypes.h (get_type_arch): Rename to...
5021 (struct type) <arch>: ... this, update all users.
5022
5023 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5024
5025 * gdbtypes.h (struct type) <arch>: Rename to...
5026 <arch_owner>: ... this, update all users.
5027 <objfile>: Rename to...
5028 <objfile_owner>: ... this, update all users.
5029
5030 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5031
5032 * gdbcmd.h (execute_command_to_string): Update comment.
5033 * top.c (execute_command_to_string): Update header comment.
5034
5035 2021-01-28 Tom de Vries <tdevries@suse.de>
5036
5037 PR breakpoints/27205
5038 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5039 (create_longjmp_master_breakpoint_names): New function, factored out
5040 of ...
5041 (create_longjmp_master_breakpoint): ... here. Only try to install
5042 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5043 breakpoint in libc.so failed.
5044
5045 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5046
5047 PR gdb/27133
5048 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5049 unique_ptr is released when the wrapped pointer is kept for later
5050 use.
5051
5052 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5053
5054 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5055 BLR and BR instructions.
5056 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5057 (enum aarch64_masks): New.
5058
5059 2021-01-26 Tom Tromey <tromey@adacore.com>
5060
5061 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5062 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5063 (windows_init_thread_list, windows_nat::handle_load_dll)
5064 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5065 (windows_nat_target::resume)
5066 (windows_nat_target::get_windows_debug_event)
5067 (windows_nat_target::interrupt, windows_xfer_memory)
5068 (windows_nat_target::close): Update.
5069 * nat/windows-nat.c (DEBUG_EVENTS): Use
5070 debug_prefixed_printf_cond.
5071 (matching_pending_stop, fetch_pending_stop)
5072 (continue_last_debug_event): Update.
5073
5074 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5075
5076 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5077 elfcore_write_file_note.
5078
5079 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5080
5081 * arc-tdep.c (arc_add_reggroups): New function.
5082 (arc_gdbarch_init): Call arc_add_reggroups.
5083
5084 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5085
5086 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5087
5088 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5089 Simon Marchi <simon.marchi@polymtl.ca>
5090 Tom de Vries <tdevries@suse.de>
5091
5092 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5093 DW_AT_ranges.
5094
5095 2021-01-25 Tom Tromey <tromey@adacore.com>
5096
5097 * dwarf2/read.c (get_mpz): New function.
5098 (get_dwarf2_rational_constant): Use it.
5099
5100 2021-01-25 Tom Tromey <tromey@adacore.com>
5101
5102 * ada-lang.c (resolve_subexp): Handle array context.
5103
5104 2021-01-23 Tom Tromey <tom@tromey.com>
5105
5106 PR compile/25575
5107 * compile/compile-loc2c.c (note_register): New function.
5108 (pushf_register_address, pushf_register): Use it.
5109
5110 2021-01-23 Tom Tromey <tom@tromey.com>
5111
5112 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5113 Change type of "registers_used".
5114 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5115 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5116 (locexpr_generate_c_location, loclist_generate_c_location): Change
5117 type of "registers_used".
5118 * compile/compile.h (compile_dwarf_expr_to_c)
5119 (compile_dwarf_bounds_to_c): Update.
5120 * compile/compile-loc2c.c (pushf_register_address)
5121 (pushf_register, do_compile_dwarf_expr_to_c)
5122 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5123 of "registers_used".
5124 * compile/compile-c.h (generate_c_for_variable_locations):
5125 Update.
5126 * compile/compile-c-symbols.c (generate_vla_size)
5127 (generate_c_for_for_one_variable): Change type of
5128 "registers_used".
5129 (generate_c_for_variable_locations): Return std::vector.
5130 * compile/compile-c-support.c (generate_register_struct): Change
5131 type of "registers_used".
5132 (compute): Update.
5133
5134 2021-01-23 Tom Tromey <tom@tromey.com>
5135
5136 * compile/compile-internal.h (class compile_instance)
5137 <set_arguments>: Change return type.
5138 * compile/compile.c (compile_to_object): Remove call to reset.
5139 (compile_instance::set_arguments): Change return type.
5140
5141 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5142
5143 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5144 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5145
5146 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5147
5148 * Makefile.in (SELFTESTS_SRCS): Add
5149 unittests/gdb_tilde_expand-selftests.c.
5150 * unittests/gdb_tilde_expand-selftests.c: New file.
5151
5152 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5153
5154 PR cli/25956
5155 * NEWS: Mention new command.
5156 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5157 (version_style): Define.
5158 (cli_style_option::cli_style_option): Add intensity parameter, and
5159 use as appropriate.
5160 (_initialize_cli_style): Register version style set/show commands.
5161 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5162 (version_style): Declare.
5163 * top.c (print_gdb_version): Use version_stype, and styled_string
5164 to print the GDB version string.
5165
5166 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5167
5168 * utils.c (emit_style_escape): Only emit an escape sequence if the
5169 requested style is different than the current applied style.
5170 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5171 current applied_style.
5172 (fputs_styled): Remove is_default check.
5173 (fputs_styled_unfiltered): Likewise.
5174 (vfprintf_styled_no_gdbfmt): Likewise.
5175
5176 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5177
5178 * remote.h (remote_debug_printf): New.
5179 (remote_debug_printf_nofunc): New.
5180 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5181 * remote.c: Use above macros throughout file.
5182
5183 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5184
5185 * remote.h (remote_debug): Change to bool.
5186 * remote.c (remote_debug): Change to bool.
5187 (_initialize_remote): Adjust.
5188
5189 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5190
5191 * target.h (remote_debug): Move to...
5192 * remote.h (remote_debug): ... here.
5193 * top.c (remote_debug): Move to...
5194 * remote.c (remote_debug): ... here.
5195 * remote-sim.c: Include remote.h.
5196
5197 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5198
5199 * cli/cli-cmds.c (show_remote_debug): Remove.
5200 (show_remote_timeout): Remove.
5201 (_initialize_cli_cmds): Don't register commands.
5202 * remote.c (show_remote_debug): Move here.
5203 (show_remote_timeout): Move here.
5204 (_initialize_remote): Register commands.
5205
5206 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5207
5208 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5209 type::objfile method instead.
5210
5211 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5212
5213 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5214 use the type::is_objfile_owned method.
5215
5216 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5217
5218 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5219 (TYPE_OWNER): Remove.
5220 (TYPE_OBJFILE): Adjust.
5221 (struct main_type) <flag_objfile_owned>: Rename to...
5222 <m_flag_objfile_owned>: ... this.
5223 <owner>: Rename to...
5224 <m_owner>: ... this.
5225 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5226 methods.
5227 (TYPE_ALLOC): Adjust.
5228 * gdbtypes.c (alloc_type): Adjust.
5229 (alloc_type_arch): Adjust.
5230 (alloc_type_copy): Adjust.
5231 (get_type_arch): Adjust.
5232 (smash_type): Adjust.
5233 (lookup_array_range_type): Adjust.
5234 (recursive_dump_type): Adjust.
5235 (copy_type_recursive): Adjust.
5236 * compile/compile-c-types.c (convert_func): Adjust.
5237 (convert_type_basic): Adjust.
5238 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5239 Adjust.
5240 * language.c
5241 (language_arch_info::type_and_symbol::alloc_type_symbol):
5242 Adjust.
5243
5244 2021-01-21 Luis Machado <luis.machado@linaro.org>
5245
5246 * coffread.c (enter_linenos): Passing string to complaint.
5247 * valops.c (value_assign): Make array view.
5248
5249 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5250
5251 * auto-load.h (debug_auto_load): Move here.
5252 (auto_load_debug_printf): New.
5253 * auto-load.c: Use auto_load_debug_printf.
5254 (debug_auto_load): Move to header.
5255 * linux-thread-db.c (try_thread_db_load): Use
5256 auto_load_debug_printf.
5257 * main.c (captured_main_1): Likewise.
5258
5259 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5260
5261 * f-valprint.c (f77_array_offset_tbl): Remove.
5262
5263 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5264
5265 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5266
5267 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5268
5269 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5270 of gdb_select.
5271
5272 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5273
5274 PR python/19151
5275 * python/py-breakpoint.c (bppy_get_location): Handle
5276 bp_hardware_breakpoint.
5277 (bppy_init): Likewise.
5278 (gdbpy_breakpoint_created): Likewise.
5279
5280 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5281
5282 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5283
5284 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5285
5286 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5287 (_initialize_gdb_bfd): Adjust.
5288
5289 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5290
5291 PR gdb/26828
5292 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5293
5294 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5295
5296 * dwarf2/read.c (follow_die_offset): Add logging.
5297 (dwarf2_per_objfile::age_comp_units): Add logging.
5298
5299 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5300
5301 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5302 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5303 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5304 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5305 * arm-tdep.c (struct frame_unwind): Make static.
5306 * auto-load.c (auto_load_safe_path_vec): Make static.
5307 * csky-tdep.c (csky_stub_unwind): Make static.
5308 * gdbarch.c (gdbarch_data_registry): Make static.
5309 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5310 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5311 * i386-tdep.c (i386_frame_setup_skip_insns,
5312 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5313 Make static.
5314 * infrun.c (observer_mode): Make static.
5315 * linux-nat.c (sigchld_action): Make static.
5316 * linux-thread-db.c (thread_db_list): Make static.
5317 * maint-test-options.c (maintenance_test_options_list):
5318 * mep-tdep.c (mep_csr_registers): Make static.
5319 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5320 (stats): Make static.
5321 * nat/linux-osdata.c (struct osdata_type): Make static.
5322 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5323 * progspace.c (last_program_space_num): Make static.
5324 * python/py-param.c (struct parm_constant): Remove struct type
5325 name.
5326 (parm_constants): Make static.
5327 * python/py-record-btrace.c (btpy_list_methods): Make static.
5328 * python/py-record.c (recpy_gap_type): Make static.
5329 * record.c (record_goto_cmdlist): Make static.
5330 * regcache.c (regcache_descr_handle): Make static.
5331 * registry.h (DEFINE_REGISTRY): Make definition static.
5332 * symmisc.c (std_in, std_out, std_err): Make static.
5333 * top.c (previous_saved_command_line): Make static.
5334 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5335 static.
5336 * unittests/command-def-selftests.c (nr_duplicates,
5337 nr_invalid_prefixcmd, lists): Make static.
5338 * unittests/observable-selftests.c (test_notification): Make
5339 static.
5340 * unittests/optional/assignment/1.cc (counter): Make static.
5341 * unittests/optional/assignment/2.cc (counter): Make static.
5342 * unittests/optional/assignment/3.cc (counter): Make static.
5343 * unittests/optional/assignment/4.cc (counter): Make static.
5344 * unittests/optional/assignment/5.cc (counter): Make static.
5345 * unittests/optional/assignment/6.cc (counter): Make static.
5346
5347 2021-01-20 Joel Sherrill <joel@rtems.org>
5348
5349 PR gdb/27219
5350 * remote.c (struct remote_thread_info) <resume_state>: Rename
5351 to...
5352 <get_resume_state>: ... this.
5353 (remote_target::resume): Adjust.
5354 (remote_target::commit_resume): Adjust.
5355 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5356
5357 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5358 Tom Tromey <tom@tromey.com>
5359
5360 * stap-probe.c (stap_parse_single_operand): Handle '!'
5361 operator.
5362 (stap_parse_argument_conditionally): Likewise.
5363 Skip spaces after processing open-parenthesis sub-expression.
5364 (stap_parse_argument_1): Skip spaces after call to
5365 stap_parse_argument_conditionally.
5366 Handle case when right-side expression is a parenthesized
5367 sub-expression.
5368 Skip spaces after call to stap_parse_argument_1.
5369
5370 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5371
5372 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5373
5374 2021-01-19 Luis Machado <luis.machado@linaro.org>
5375
5376 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5377 memory and save data.
5378 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5379 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5380 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5381 (trad_frame_value_bytes_p): Remove.
5382 (trad_frame_reset_saved_regs): Adjust documentation.
5383 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5384 constructor and reset the state of the registers.
5385 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5386 (trad_frame_value_bytes_p, trad_frame_set_value)
5387 (trad_frame_set_realreg, trad_frame_set_addr)
5388 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5389 (trad_frame_set_reg_realreg): Update to call member function.
5390 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5391 (trad_frame_get_prev_register): Likewise.
5392
5393 * aarch64-tdep.c (aarch64_analyze_prologue)
5394 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5395 (aarch64_prologue_prev_register): Update to use member functions.
5396 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5397 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5398 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5399 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5400 (arm_make_epilogue_frame_cache): Likewise.
5401 * avr-tdep.c (avr_frame_unwind_cache)
5402 (avr_frame_prev_register): Likewise.
5403 * cris-tdep.c (cris_scan_prologue): Likewise.
5404 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5405 * frv-tdep.c (frv_analyze_prologue): Likewise.
5406 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5407 * lm32-tdep.c (lm32_frame_cache): Likewise.
5408 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5409 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5410 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5411 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5412 (reset_saved_regs): Adjust to set realreg.
5413 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5414 call member functions.
5415 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5416 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5417 (s390_backchain_frame_unwind_cache): Likewise.
5418 * score-tdep.c (score7_analyze_prologue)
5419 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5420 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5421 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5422 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5423 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5424 * tilegx-tdep.c (tilegx_analyze_prologue)
5425 (tilegx_frame_cache): Likewise.
5426 * v850-tdep.c (v850_frame_cache): Likewise.
5427 * vax-tdep.c (vax_frame_cache): Likewise.
5428
5429 2021-01-19 Luis Machado <luis.machado@linaro.org>
5430
5431 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5432 of buffer + length.
5433 (put_frame_register_bytes): Likewise.
5434 Adjust documentation.
5435 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5436 (safe_frame_unwind_memory): Likewise.
5437 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5438 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5439 gdb::array_view.
5440 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5441 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5442 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5443 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5444 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5445 * dwarf2/loc.c (rw_pieced_value): Likewise.
5446 * hppa-tdep.c (hppa_frame_cache): Likewise.
5447 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5448 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5449 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5450 (i386_linux_rt_sigtramp_start): Likewise.
5451 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5452 * i386-tdep.c (i386_register_to_value): Likewise.
5453 * i387-tdep.c (i387_register_to_value): Likewise.
5454 * ia64-tdep.c (ia64_register_to_value): Likewise.
5455 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5456 (m32r_linux_rt_sigtramp_start): Likewise.
5457 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5458 * m68k-tdep.c (m68k_register_to_value): Likewise.
5459 * mips-tdep.c (mips_register_to_value)
5460 (mips_value_to_register): Likewise.
5461 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5462 (ppcfbsd_sigtramp_frame_cache): Likewise.
5463 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5464 (ppcobsd_sigtramp_frame_cache): Likewise.
5465 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5466 (rs6000_register_to_value): Likewise.
5467 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5468 * tramp-frame.c (tramp_frame_start): Likewise.
5469 * valops.c (value_assign): Likewise.
5470
5471 2021-01-19 Luis Machado <luis.machado@linaro.org>
5472
5473 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5474 array_view.
5475 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5476 instead of buffer and size.
5477 (trad_frame_set_reg_value_bytes): Likewise.
5478 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5479 (trad_frame_set_value_bytes): Likewise.
5480
5481 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5482
5483 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5484
5485 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5486
5487 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5488 (riscv_fbsd_gregset): Use riscv_supply_regset.
5489 (riscv_fbsd_fpregset): Likewise.
5490 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5491 (riscv_linux_fregset): Likewise.
5492 * riscv-tdep.c (riscv_supply_regset): Define new function.
5493 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5494
5495 2021-01-18 Tom de Vries <tdevries@suse.de>
5496
5497 PR tdep/27172
5498 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5499 New macro.
5500 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5501 for SEGV_BNDERR.
5502
5503 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5504
5505 * remote.c (class remote_target) <remote_hostio_send_command,
5506 remote_hostio_parse_result>: Constify parameter.
5507 (remote_hostio_parse_result): Likewise.
5508 (remote_target::remote_hostio_send_command): Adjust.
5509 (remote_target::remote_hostio_pread_vFile): Adjust.
5510 (remote_target::fileio_readlink): Adjust.
5511 (remote_target::fileio_fstat): Adjust.
5512
5513 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5514
5515 * remote.c (remote_target::start_remote): Move wait_status to
5516 narrower scope.
5517
5518 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5519
5520 * remote.c (class remote_target):
5521 <add_current_inferior_and_thread>: Constify parameter.
5522 (stop_reply_extract_thread): Likewise.
5523 (remote_target::get_current_thread): Likewise.
5524 (remote_target::add_current_inferior_and_thread): Likewise.
5525
5526 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5527
5528 * remote.c (class remote_target)
5529 <remote_unpack_thread_info_response,
5530 parse_threadlist_response>: Constify parameter and/or return
5531 value and or local variable.
5532 (stub_unpack_int): Likewise.
5533 (unpack_nibble): Likewise.
5534 (unpack_byte): Likewise.
5535 (unpack_int): Likewise.
5536 (unpack_string): Likewise.
5537 (unpack_threadid): Likewise.
5538 (remote_target::remote_unpack_thread_info_response): Likewise.
5539 (remote_target::parse_threadlist_response): Likewise.
5540
5541 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5542
5543 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5544
5545 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5546
5547 * MAINTAINERS (Write After Approval): Add myself.
5548
5549 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5550
5551 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5552 because is_trivially_default_constructible was first implemented with
5553 gcc-5.
5554
5555 2021-01-14 Tom de Vries <tdevries@suse.de>
5556
5557 PR breakpoints/27151
5558 * objfiles.h (in_plt_section): Handle .plt.sec.
5559
5560 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5561
5562 PR gdb/26819
5563 * remote.c
5564 (remote_target::select_thread_for_ambiguous_stop_reply): New
5565 member function.
5566 (remote_target::process_stop_reply): Call
5567 select_thread_for_ambiguous_stop_reply.
5568
5569 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5570
5571 * record-btrace.c (class record_btrace_target): Remove.
5572 (record_btrace_target::commit_resume): Remove.
5573 * record-full.c (class record_full_target): Remove.
5574 (record_full_target::commit_resume): Remove.
5575
5576 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5577
5578 * remote.c (enum class resume_state): New.
5579 (struct resumed_pending_vcont_info): New.
5580 (struct remote_thread_info) <resume_state, set_not_resumed,
5581 set_resumed_pending_vcont, resumed_pending_vcont_info,
5582 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5583 New.
5584 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5585 (remote_target::remote_add_thread): Adjust.
5586 (remote_target::process_initial_stop_replies): Adjust.
5587 (remote_target::resume): Adjust.
5588 (remote_target::commit_resume): Rely on state in
5589 remote_thread_info and not on tp->executing.
5590 (remote_target::process_stop_reply): Adjust.
5591
5592 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5593
5594 * arc-tdep.h (arc_debug_printf): New.
5595 * arc-tdep.c: Use arc_debug_printf.
5596 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5597 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5598 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5599
5600 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5601
5602 * arc-tdep.h (arc_debug): Change type to bool.
5603 * arc-tdep.c (arc_debug): Change type to bool.
5604 (arc_analyze_prologue): Adjust.
5605 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5606 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5607
5608 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5609
5610 * auto-load.c (auto_load_objfile_script_1): Use bool.
5611 (execute_script_contents): Use bool.
5612
5613 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5614
5615 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5616 comment here.
5617 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5618 comment to header.
5619 * extension-priv.h (struct extension_language_script_ops)
5620 <auto_load_enabled>: Return bool.
5621 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5622 comment here.
5623 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5624 comment to header.
5625 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5626 move comment here.
5627 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5628 move comment to header.
5629 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5630 move comment here.
5631 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5632 move comment to header.
5633
5634 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5635
5636 * auto-load.h (file_is_auto_load_safe): Change return type to
5637 bool, move comment here.
5638 * auto-load.c (file_is_auto_load_safe): Change return type and
5639 advice_printed to bool. Move comment to header.
5640
5641 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5642
5643 * jit.c (jit_debug_printf): New, use throughout file.
5644
5645 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5646
5647 * infrun.c (normal_stop): Fix indentation.
5648
5649 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5650
5651 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5652 declarations to ...
5653 * symfile.h: ... here.
5654 * symfile.c: Update doc.
5655
5656 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5657
5658 * target.h (baud_rate, serial_parity): Move declarations...
5659 * serial.h: ... here.
5660 * main.c: Include serial.h.
5661 * serial.c (baud_rate, serial_parity): Update doc.
5662
5663 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5664
5665 * top.c (pre_init_ui_hook): Remove.
5666
5667 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5668
5669 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5670 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5671 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5672 * features/aarch64-fpu.xml: Add bfloat16 type.
5673
5674 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5675
5676 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5677
5678 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5679
5680 * f-exp.y (dot_ops): Rename to...
5681 (fortran_operators): ...this. Add a header comment. Add symbol
5682 based operators.
5683 (yylex): Update to use fortran_operators not dot_ops. Remove
5684 special handling for '**', this is now included in
5685 fortran_operators.
5686
5687 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5688
5689 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5690 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5691 * aarch64-tdep.c: Use aarch64_debug_printf.
5692
5693 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5694
5695 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5696 file.
5697
5698 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5699
5700 * jit.c (jit_debug): Change type to bool.
5701 (_initialize_jit): Adjust.
5702
5703 2021-01-09 Tom Tromey <tom@tromey.com>
5704
5705 PR compile/23672
5706 * compile/compile.c (compile_to_object): Avoid crash when
5707 osabi_triplet_regexp returns NULL.
5708
5709 2021-01-09 Tom Tromey <tom@tromey.com>
5710
5711 * tracepoint.h (class collection_list) <append_exp>: Take a
5712 std::string.
5713 * tracepoint.c (collection_list::append_exp): Take a std::string.
5714 (encode_actions_1): Update.
5715
5716 2021-01-08 Tom Tromey <tromey@adacore.com>
5717
5718 * parse.c (parse_expression): Add void_context_p parameter. Use
5719 parse_exp_in_context.
5720 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5721 parse_expression.
5722 (print_command, call_command): Update.
5723 * expression.h (parse_expression): Add void_context_p parameter.
5724
5725 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5726
5727 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5728 for internalvar components that have a dynamic location.
5729
5730 2021-01-08 Tom de Vries <tdevries@suse.de>
5731
5732 PR gdb/26881
5733 * breakpoint.c (create_exception_master_breakpoint_probe)
5734 (create_exception_master_breakpoint_hook): Factor out
5735 of ...
5736 (create_exception_master_breakpoint): ... here. Only try to install
5737 the master exception breakpoint in objfile.debug using the
5738 _Unwind_DebugHook method, if the install using probes in objfile
5739 failed.
5740
5741 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5742
5743 * f-lang.c (fortran_value_subarray): Call value_from_component.
5744
5745 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5746
5747 * remote-sim.c: Include memory-map.h.
5748 (gdbsim_target): Define memory_map override.
5749 (gdbsim_target::memory_map): Define.
5750
5751 2021-01-07 Tom Tromey <tromey@adacore.com>
5752
5753 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5754
5755 2021-01-07 Tom Tromey <tromey@adacore.com>
5756
5757 * ada-lang.c (add_component_interval): Start loop using vector's
5758 updated size.
5759
5760 2021-01-06 Tom Tromey <tromey@adacore.com>
5761
5762 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5763 Do not cast result.
5764 * valarith.c (fixed_point_binop): Handle multiplication
5765 and division specially.
5766 * valops.c (value_to_gdb_mpq): New function.
5767 (value_cast_to_fixed_point): Use it.
5768
5769 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5770
5771 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5772 Call wnoutrefresh instead of tui_win_info::refresh_window.
5773
5774 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5775
5776 * tui/tui-source.c (tui_source_window::show_line_number):
5777 Redraw second space after line number.
5778
5779 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5780
5781 PR tui/26927
5782 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5783 Fix source pad size in prefresh.
5784 (tui_source_window_base::show_source_content): Grow source pad
5785 if necessary.
5786
5787 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5788
5789 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5790 (bfin_frame_align): Use align_down.
5791
5792 2021-01-04 Tom de Vries <tdevries@suse.de>
5793
5794 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5795 terminators that do not terminate anything.
5796
5797 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5798
5799 * debug.c (debug_print_depth): New.
5800 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5801 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5802 * infrun.c (start_step_over): Use
5803 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5804 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5805 INFRUN_SCOPED_DEBUG_START_END.
5806 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5807
5808 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5809
5810 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5811
5812 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5813
5814 * utils.c (vfprintf_unfiltered): Print timestamp only when
5815 previous debug output ended with a newline.
5816
5817 2021-01-04 Luis Machado <luis.machado@linaro.org>
5818
5819 Update all users of trad_frame_saved_reg to use the new member
5820 functions.
5821
5822 Remote all struct keywords from declarations of trad_frame_saved_reg
5823 types, except on forward declarations.
5824
5825 * aarch64-tdep.c: Update.
5826 * alpha-mdebug-tdep.c: Update.
5827 * alpha-tdep.c: Update.
5828 * arc-tdep.c: Update.
5829 * arm-tdep.c: Update.
5830 * avr-tdep.c: Update.
5831 * cris-tdep.c: Update.
5832 * csky-tdep.c: Update.
5833 * frv-tdep.c: Update.
5834 * hppa-linux-tdep.c: Update.
5835 * hppa-tdep.c: Update.
5836 * hppa-tdep.h: Update.
5837 * lm32-tdep.c: Update.
5838 * m32r-linux-tdep.c: Update.
5839 * m32r-tdep.c: Update.
5840 * m68hc11-tdep.c: Update.
5841 * mips-tdep.c: Update.
5842 * moxie-tdep.c: Update.
5843 * riscv-tdep.c: Update.
5844 * rs6000-tdep.c: Update.
5845 * s390-linux-tdep.c: Update.
5846 * s390-tdep.c: Update.
5847 * score-tdep.c: Update.
5848 * sparc-netbsd-tdep.c: Update.
5849 * sparc-sol2-tdep.c: Update.
5850 * sparc64-fbsd-tdep.c: Update.
5851 * sparc64-netbsd-tdep.c: Update.
5852 * sparc64-obsd-tdep.c: Update.
5853 * sparc64-sol2-tdep.c: Update.
5854 * tilegx-tdep.c: Update.
5855 * v850-tdep.c: Update.
5856 * vax-tdep.c: Update.
5857
5858 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5859 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5860
5861 * trad-frame.c: Update.
5862 Remove TF_REG_* enum.
5863 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5864 a trivially-constructible struct.
5865 (trad_frame_reset_saved_regs): Adjust to use member function.
5866 (trad_frame_value_p): Likewise.
5867 (trad_frame_addr_p): Likewise.
5868 (trad_frame_realreg_p): Likewise.
5869 (trad_frame_value_bytes_p): Likewise.
5870 (trad_frame_set_value): Likewise.
5871 (trad_frame_set_realreg): Likewise.
5872 (trad_frame_set_addr): Likewise.
5873 (trad_frame_set_unknown): Likewise.
5874 (trad_frame_set_value_bytes): Likewise.
5875 (trad_frame_get_prev_register): Likewise.
5876 * trad-frame.h: Update.
5877 (trad_frame_saved_reg_kind): New enum.
5878 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5879 <m_kind, m_reg>: New member fields.
5880 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5881 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5882 <is_addr, is_unknown, is_value_bytes>: New member functions.
5883
5884 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5885
5886 * target-float.c: Fix typos.
5887
5888 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
5889
5890 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5891
5892 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5893
5894 * gdbarch.sh: Update copyright year range.
5895
5896 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5897
5898 Update copyright year range in copyright header of all GDB files.
5899
5900 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5901
5902 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
5903 to the list of directories to update.
5904
5905 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5906
5907 * top.c (print_gdb_version): Update copyright year.
5908
5909 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
5910
5911 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
5912
5913 For older changes see ChangeLog-2020.
5914 \f
5915 Local Variables:
5916 mode: change-log
5917 left-margin: 8
5918 fill-column: 74
5919 version-control: never
5920 coding: utf-8
5921 End:
This page took 0.148946 seconds and 5 git commands to generate.