]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Use htab_eq_string in libctf
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8d06918f
SM
12021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * nat/linux-waitpid.c (status_to_str): Return std::string.
4 * nat/linux-waitpid.h (status_to_str): Likewise.
5 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
6 (linux_nat_target::attach): Adjust.
7 (linux_handle_extended_wait): Adjust.
8 (wait_lwp): Adjust.
9 (stop_wait_callback): Adjust.
10 (linux_nat_filter_event): Adjust.
11 (linux_nat_wait_1): Adjust.
12 * nat/linux-waitpid.c (status_to_str): Adjust.
13 * nat/linux-waitpid.h (status_to_str): Adjust.
14
550e9289
SM
152021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * infrun.h (infrun_debug_printf): Add missing space.
18
4655f850
PA
192021-05-08 Pedro Alves <pedro@palves.net>
20
21 * linux-nat.c (linux_nat_target::supports_disable_randomization):
22 Remove references to HAVE_PERSONALITY.
23 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
24 (maybe_disable_address_space_randomization)
25 (~maybe_disable_address_space_randomizatio): Remove references to
26 HAVE_PERSONALITY.
27 * config.in, configure: Regenerate.
28
1845e254
AB
292021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
30
31 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
32 include.
33 (source_script_with_search): Perform tilde expansion.
34
91e3c425
SM
352021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
36
37 * target-descriptions.c (struct target_desc_info) <filename>:
38 Make std::string.
39 (copy_inferior_target_desc_info): Adjust.
40 (target_desc_info_free): Adjust.
41 (target_find_description): Adjust.
42 (set_tdesc_filename_cmd): Adjust.
43 (show_tdesc_filename_cmd): Adjust.
44 (unset_tdesc_filename_cmd): Adjust.
45 (maint_print_c_tdesc_cmd): Adjust.
46
0b2f7ade
SM
472021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
48
49 * target-descriptions.c (struct target_desc_info): Initialize
50 fields.
51 (get_tdesc_info): Use new.
52 (target_desc_info_free): Use delete.
53
820c4490
SM
542021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
55
56 * target-descriptions.c (struct target_desc_info) <fetched>:
57 bool.
58 (target_find_description): Adjust.
59 (target_clear_description): Adjust.
60
c2962e6a
SM
612021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
62
63 * target-descriptions.c (struct target_desc_info) <tdesc>:
64 Adjust doc.
65 (target_desc_fetched): Remove.
66 (current_target_desc): Remove.
67 (target_description_filename): Remove.
68 (target_find_description): Adjust.
69 (target_clear_description): Adjust.
70 (target_current_description): Adjust.
71 (set_tdesc_filename_cmd): Adjust.
72 (show_tdesc_filename_cmd): Adjust.
73 (unset_tdesc_filename_cmd): Adjust.
74 (maint_print_c_tdesc_cmd): Adjust.
75 (maint_print_xml_tdesc_cmd): Adjust.
76
8a82de58
AB
772021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
78
79 * infcmd.c (notice_new_inferior): Change parameter type.
80 * inferior.h (notice_new_inferior): Change parameter type.
81 * remote.c (remote_notice_new_inferior): Change parameter type to
82 bool. Also update type of local variable to bool.
83 (remote_target::update_thread_list): Change type of local variable
84 to bool.
85 (remote_target::process_stop_reply): Pass bool instead of int to
86 remote_notice_new_inferior.
87
bedc4734
SM
882021-05-07 Simon Marchi <simon.marchi@efficios.com>
89
90 * target.c (target_stack::unpush): Call target_ops::find_beneath
91 to get the target beneath `t`.
92
27f0a431
SM
932021-05-07 Simon Marchi <simon.marchi@efficios.com>
94
95 * target.c (target_close): Check in all inferiors that the
96 target is not pushed.
97
1d1669e4
AM
982021-05-07 Aaron Merey <amerey@redhat.com>
99
100 * debuginfod-support.c (debuginfod_init): Remove.
101 (get_debuginfod_client): New function.
102
2698f5ea
TT
1032021-05-07 Tom Tromey <tom@tromey.com>
104
105 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
106 * utils.c (streq_hash): Remove.
107 * utils.h (streq_hash): Don't declare.
108 * completer.c (completion_tracker::discard_completions): Update
109 comment.
110 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
111
13123da8
SM
1122021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
113
114 * Re-format all Python files using black.
115
4cf88725
TV
1162021-05-07 Tom de Vries <tdevries@suse.de>
117
118 PR symtab/26327
119 * dwarf2/read.c (struct dwarf2_cu): Remove ancestor.
120 (dwarf2_cu::get_builder): Remove ancestor-related code.
121 (new_symbol): Remove code supporting pre-4.1 gcc that show arguments
122 of inlined functions as locals.
123 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
124
9589edb8
AB
1252021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
126
127 * guile/guile-internal.h (gdbscm_safe_source_script): Change
128 function return type.
129 * guile/guile.c (gdbscm_source_script): Update to handle change in
130 gdbscm_safe_source_script.
131 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
132 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
133 type.
134
ec66d6ea
SM
1352021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
136
137 * inferior.h (class inferior) <args>: Change type to
138 unique_xmalloc_ptr.
139 * inferior.c (inferior::~inferior): Don't free args.
140 * infcmd.c (get_inferior_args): Adjust.
141 (set_inferior_args): Adjust.
142
0618ecf6
AB
1432021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
144
145 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
146 breakpoint locations when the breakpoint actually has a location.
147
79aabb73
TBA
1482021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
149
150 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
151 * mi/mi-cmds.c: Change the binding of "-break-condition" to
152 mi_cmd_break_condition.
153 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
154 * breakpoint.h (set_breakpoint_condition): Declare a new
155 overload.
156 * breakpoint.c (set_breakpoint_condition): New overloaded function
157 extracted out from ...
158 (condition_command): ... this.
159 * NEWS: Mention the change.
160
10e578d7
TBA
1612021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
162
163 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
164 '--force-condition' flag to force the condition in the
165 '-break-insert' and '-dprintf-insert' commands.
166 * NEWS: Mention the change.
167
225bda24
TV
1682021-05-04 Tom de Vries <tdevries@suse.de>
169
170 PR guile/27806
171 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
172 memory functions.
173
b8efb248
TT
1742021-04-30 Tom Tromey <tom@tromey.com>
175
176 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
177 (add_signatured_type_cu_to_table): Remove.
178 (create_debug_type_hash_table): Assume dwo_file is non-null.
179 (create_debug_types_hash_table): Update comment.
180 (create_all_type_units): Remove.
181 (sort_tu_by_abbrev_offset): Update comment.
182 (build_type_psymtabs): Rename from build_type_psymtabs_1.
183 (build_type_psymtabs): Remove.
184 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
185 Update.
186 (read_comp_units_from_section): Add types_htab, section_kind
187 parameters.
188 (create_all_comp_units): Read type units.
189
91eea9cc
TT
1902021-04-30 Tom Tromey <tom@tromey.com>
191
192 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
193 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
194 <get_cu>: Now inline.
195 <all_type_units>: Remove.
196 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
197 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
198 (dwarf2_per_bfd::get_tu): Remove.
199 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
200 (create_signatured_type_table_from_index)
201 (create_signatured_type_table_from_debug_names)
202 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
203 (dwarf2_base_index_functions::expand_all_symtabs)
204 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
205 (dwarf2_base_index_functions::map_symbol_filenames)
206 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
207 (add_signatured_type_cu_to_table, create_all_type_units)
208 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
209 (create_all_comp_units): Update.
210 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
211 (write_debug_names): Update.
212
0d305d5c
TT
2132021-04-30 Tom Tromey <tom@tromey.com>
214
215 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
216 allocate_signatured_type>: Change return type.
217 <all_comp_units, all_type_units>: Hold unique pointers.
218 (struct dwarf2_per_cu_data): Add constructor and initializers.
219 (struct signatured_type): Derive from dwarf2_per_cu_data.
220 * dwarf2/read.c (type_unit_group): Derive from
221 dwarf2_per_cu_data.
222 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
223 (dwarf2_per_bfd::get_tu)
224 (dwarf2_per_bfd::allocate_signatured_type)
225 (dwarf2_per_bfd::allocate_signatured_type)
226 (create_cu_from_index_list, create_cus_from_index_list)
227 (create_signatured_type_table_from_index)
228 (create_signatured_type_table_from_debug_names)
229 (create_addrmap_from_aranges)
230 (dwarf2_base_index_functions::find_last_source_symtab)
231 (dw_expand_symtabs_matching_file_matcher)
232 (dwarf2_gdb_index::expand_symtabs_matching)
233 (dwarf2_base_index_functions::map_symbol_filenames)
234 (create_cus_from_debug_names_list)
235 (dw2_debug_names_iterator::next)
236 (dwarf2_debug_names_index::expand_symtabs_matching)
237 (create_debug_type_hash_table, add_type_unit)
238 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
239 Update.
240 (allocate_type_unit_groups_table): Use delete.
241 (create_type_unit_group): Change return type. Use new.
242 (get_type_unit_group, build_type_psymtabs_1)
243 (build_type_psymtab_dependencies)
244 (process_skeletonless_type_unit, set_partial_user)
245 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
246 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
247 (read_signatured_type): Update.
248 (dwarf2_find_containing_comp_unit): Change type of
249 'all_comp_units'.
250 (run_test): Update.
251 (dwarf2_per_bfd::allocate_per_cu)
252 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
253 Use new.
254 (add_signatured_type_cu_to_table): Update.
255 * dwarf2/index-write.c (write_one_signatured_type)
256 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
257 (write_debug_names): Update.
258
1bee48c7
TT
2592021-04-30 Tom Tromey <tromey@adacore.com>
260
261 * nat/windows-nat.h (get_image_name): Don't declare.
262 * nat/windows-nat.c (get_image_name): Now static.
263
e228ef97
TT
2642021-04-30 Tom Tromey <tromey@adacore.com>
265
266 * windows-nat.c (windows_nat::handle_load_dll): Update.
267 (windows_nat_target::get_windows_debug_event): Call
268 dll_loaded_event.
269 (windows_add_all_dlls, windows_add_dll): Move to
270 nat/windows-nat.c.
271 * nat/windows-nat.h (handle_load_dll): Change parameters.
272 (dll_loaded_event, windows_add_all_dlls): Declare.
273 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
274 from windows-nat.c.
275 (dll_loaded_event): New function.
276
de071872
TT
2772021-04-30 Tom Tromey <tromey@adacore.com>
278
279 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
280 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
281 Declare.
282 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
283 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
284
9e439f00
TT
2852021-04-30 Tom Tromey <tromey@adacore.com>
286
287 * windows-nat.c: Move code to nat/windows-nat.[ch].
288 (_initialize_windows_nat): Call initialize_loadable.
289 * nat/windows-nat.h (AdjustTokenPrivileges)
290 (DebugActiveProcessStop, DebugBreakProcess)
291 (DebugSetProcessKillOnExit, EnumProcessModules)
292 (EnumProcessModulesEx, GetModuleInformation)
293 (GetModuleFileNameExA, GetModuleFileNameExW)
294 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
295 (GetCurrentConsoleFont, Wow64SuspendThread)
296 (Wow64GetThreadContext, Wow64SetThreadContext)
297 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
298 (AdjustTokenPrivileges_ftype)
299 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
300 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
301 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
302 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
303 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
304 (GetConsoleFontSize_ftype)
305 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
306 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
307 (Wow64GetThreadSelectorEntry_ftype): Likewise.
308 (initialize_loadable): Declare.
309 * nat/windows-nat.c (AdjustTokenPrivileges)
310 (DebugActiveProcessStop, DebugBreakProcess)
311 (DebugSetProcessKillOnExit, EnumProcessModules)
312 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
313 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
314 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
315 (Wow64GetThreadContext, Wow64SetThreadContext)
316 (Wow64GetThreadSelectorEntry): Define.
317 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
318 from windows-nat.c.
319 (initialize_loadable): Likewise, and rename.
320
1053c638
TT
3212021-04-30 Tom Tromey <tromey@adacore.com>
322
323 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
324 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
325 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
326 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
327 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
328 (bad): New template functions.
329 (_initialize_loadable): Update.
330
2869ac4b
TT
3312021-04-30 Tom Tromey <tromey@adacore.com>
332
333 * ada-lang.c (ada_index_type): Use ada_check_typedef.
334
e197dfae
SM
3352021-04-29 Simon Marchi <simon.marchi@efficios.com>
336
337 * auto-load.h: Split namespace declaration.
338
89ba430c
SM
3392021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
340
341 * infrun.c (save_waitstatus): Move variables to inner scope.
342
8eb82ba1
AB
3432021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
344
345 * NEWS: Fix typo and stray full stop.
346
db2534b7
TT
3472021-04-28 Tom Tromey <tromey@adacore.com>
348
349 * ada-exp.y (primary): Use new type for null pointer.
350 * ada-lang.c (ada_type_match): Remove "may_deref"
351 parameter. Handle null pointer.
352 (ada_args_match): Update.
353 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
354 Handle null pointer.
355
edeaceda
AB
3562021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * NEWS: Mention new commands.
359 * python/python.c (python_ignore_environment): New static global.
360 (show_python_ignore_environment): New function.
361 (set_python_ignore_environment): New function.
362 (python_dont_write_bytecode): New static global.
363 (show_python_dont_write_bytecode): New function.
364 (set_python_dont_write_bytecode): New function.
365 (_initialize_python): Register new commands.
366
041ca48e
AB
3672021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
368
369 * extension-priv.h (struct extension_language_ops): Rename
370 'finish_initialization' to 'initialize'.
371 * extension.c (finish_ext_lang_initialization): Renamed to...
372 (ext_lang_initialization): ...this, update comment, and updated
373 the calls to reflect the change in struct extension_language_ops.
374 * extension.h (finish_ext_lang_initialization): Renamed to...
375 (ext_lang_initialization): ...this.
376 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
377 (gdbscm_initialize): ...this, update comment at definition.
378 (guile_extension_ops): Update.
379 * main.c (captured_main_1): Update call to
380 finish_ext_lang_initialization.
381 * python/python.c (gdbpy_finish_initialization): Rename to...
382 (gdbpy_initialize): ...this, update comment at definition, and
383 update call to do_finish_initialization.
384 (python_extension_ops): Update.
385 (do_finish_initialization): Rename to...
386 (do_initialize): ...this, and update comment.
387
1178f01a
AB
3882021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
389
390 * main.c (captured_main_1): Add a call to
391 finish_ext_lang_initialization.
392 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
393
880ae75a
AB
3942021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
395
396 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
397 (gdbscm_finish_initialization): Add code moved from
398 _initialize_guile.
399 (_initialize_guile): Move code to gdbscm_finish_initialization.
400 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
401 _initialize_scm_arch.
402 (_initialize_scm_arch): New function.
403 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
404 into _initialize_scm_block.
405 (_initialize_scm_block): New function.
406 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
407 into _initialize_scm_frame.
408 (_initialize_scm_frame): New function.
409 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
410 into _initialize_scm_objfile.
411 (_initialize_scm_objfile): New function.
412 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
413 code into _initialize_scm_progspace.
414 (_initialize_scm_progspace): New function.
415 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
416 into _initialize_scm_symbol.
417 (_initialize_scm_symbol): New function.
418 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
419 into _initialize_scm_symtab.
420 (_initialize_scm_symtab): New function.
421 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
422 _initialize_scm_type.
423 (_initialize_scm_type): New function.
424
8e3685bf
AB
4252021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
426
427 * python/py-arch.c (_initialize_py_arch): New function.
428 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
429 * python/py-block.c (_initialize_py_block): New function.
430 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
431 * python/py-inferior.c (_initialize_py_inferior): New function.
432 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
433 * python/py-objfile.c (_initialize_py_objfile): New function.
434 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
435 * python/py-progspace.c (_initialize_py_progspace): New function.
436 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
437 * python/py-registers.c (_initialize_py_registers): New function.
438 (gdbpy_initialize_registers): Move code to
439 _initialize_py_registers.
440 * python/py-symbol.c (_initialize_py_symbol): New function.
441 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
442 * python/py-symtab.c (_initialize_py_symtab): New function.
443 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
444 * python/py-type.c (_initialize_py_type): New function.
445 (gdbpy_initialize_types): Move code to _initialize_py_type.
446 * python/py-unwind.c (_initialize_py_unwind): New function.
447 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
448 * python/python.c (_initialize_python): Move call to
449 do_start_initialization to gdbpy_finish_initialization.
450 (gdbpy_finish_initialization): Add call to
451 do_start_initialization.
452
913832e9
AB
4532021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
454
455 * extension.c (struct scoped_default_signal): New struct.
456 (scoped_default_sigint): New typedef.
457 (finish_ext_lang_initialization): Make use of
458 scoped_default_sigint.
459
a3b5ef3e
AB
4602021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
461
462 * main.c (captured_main_1): Don't pass argument to gdb_init.
463 * top.c (gdb_init): Remove unused argument, and add header
464 comment.
465 * top.h (gdb_init): Remove argument.
466
b9f90c72
LM
4672021-04-27 Luis Machado <luis.machado@linaro.org>
468
469 * psymtab.c (psymbol_functions::dump): Output newline.
470 Remove wrap.
471 * symmisc.c (dump_objfile): Likewise.
472
2c473def
MW
4732021-04-27 Michael Weghorn <m.weghorn@posteo.de>
474 Simon Marchi <simon.marchi@polymtl.ca>
475
476 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
477 when attaching the 'auto_load_new_objfile' observer, so
478 other observers can specify it as a dependency.
479 * gdb/auto-load.h (struct token): Declare
480 'auto_load_new_objfile_observer_token' as token to be used
481 for the 'auto_load_new_objfile' observer.
482 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
483 'python_new_objfile' observer depend on 'auto_load_new_objfile'
484 observer, so it gets notified after the latter.
485
9a6e099f
MW
4862021-04-27 Michael Weghorn <m.weghorn@posteo.de>
487 Simon Marchi <simon.marchi@polymtl.ca>
488
489 * unittests/observable-selftests.c (dependency_test_counters):
490 New.
491 (observer_token0, observer_token1, observer_token2,
492 observer_token3, observer_token4, observer_token5): New.
493 (struct dependency_observer_data): New struct.
494 (observer_dependency_test_callback): New function.
495 (test_observers): New.
496 (run_dependency_test): New function.
497 (test_dependency): New.
498 (_initialize_observer_selftest): Register dependency test.
499
bea3329b
SM
5002021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
501
502 PR gdb/27773
503 * cli/cli-dump.c (dump_binary_file): Check result of
504 gdb_fopen_cloexec.
505
c290cb01
ST
5062021-04-25 Sergei Trofimovich <siarheit@google.com>
507
508 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
509 by passing `process_stratum_target*` parameter.
510
fbb46296
LS
5112021-04-25 Lancelot Six <lsix@lancelotsix.com>
512
513 PR gdb/22640
514 * typeprint.h (struct type_print_options): Add print_in_hex
515 flag.
516 (struct print_offset_data): Add print_in_hex flag, add a
517 constructor accepting a type_print_options* argument.
518 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
519 default value for print_in_hex.
520 (print_offset_data::indentation): Allow more horizontal space.
521 (print_offset_data::print_offset_data): Add ctor.
522 (print_offset_data::maybe_print_hole, print_offset_data::update):
523 Handle the print_in_hex flag.
524 (whatis_exp): Handle 'x' and 'd' flags.
525 (print_offsets_and_sizes_in_hex): Declare.
526 (set_print_offsets_and_sizes_in_hex): Create.
527 (show_print_offsets_and_sizes_in_hex): Create.
528 (_initialize_typeprint): Update help message for the ptype
529 command, register the 'set print type hex' and 'show print type
530 hex' commands.
531 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
532 (c_type_print_base): Construct the print_offset_data
533 object using the type_print_optons parameter.
534 * rust-lang.c (rust_language::print_type): Construct the
535 print_offset_data object using the type_print_optons parameter.
536 * NEWS: Mention the new flags of the ptype command.
537
18bbba46
LS
5382021-04-25 Lancelot Six <lsix@lancelotsix.com>
539
540 * typeprint.h (struct type_print_options): Move before
541 print_offset_data.
542
77393c9b
JB
5432021-04-25 Joel Brobecker <brobecker@adacore.com>
544
545 GDB 10.2 released.
546
98c897e3
SM
5472021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
548
549 * observable.c (observer_debug): Change to bool.
550
9fc29955
AB
5512021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * dwarf2/read.c: Add 'unordered_set' include.
554 (dwarf2_base_index_functions::map_symbol_filenames): Replace
555 'visited' hash table with 'qfn_cache' unordered_set. Remove use
556 of per_Bfd->filenames_cache cache, and use function local
557 filenames_cache instead. Reindent.
558 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
559
0406545d
SM
5602021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
561
562 * breakpoint.c (iterate_over_bp_locations): Change callback to
563 function view, remove data parameter.
564 * breakpoint.h (iterate_over_bp_locations): Likewise.
565 * record-full.c (record_full_sync_record_breakpoints): Remove
566 data parameter.
567
432ce4cf
TT
5682021-04-22 Tom Tromey <tom@tromey.com>
569
570 * c-typeprint.c (c_type_print_base_struct_union): Use
571 print_spaces_filtered_with_print_options.
572
e25d6d93
SM
5732021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
574
575 PR gdb/27757
576 * python/py-type.c (typy_range): Check that bounds are constant
577 before accessing them as such.
578 * guile/scm-type.c (gdbscm_type_range): Likewise.
579
4efeb0d3
TBA
5802021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
581
582 * Makefile.in (COMMON_SFILES): Remove continuations.c.
583 * inferior.c (inferior::add_continuation): New method, adapted
584 from 'add_inferior_continuation'.
585 (inferior::do_all_continuations): New method, adapted from
586 'do_all_inferior_continuations'.
587 (inferior::~inferior): Clear the list of continuations directly.
588 * inferior.h (class inferior) <continuations>: Rename into...
589 <m_continuations>: ...this and make private.
590 * continuations.c: Remove.
591 * continuations.h: Remove.
592 * event-top.c: Don't include "continuations.h".
593
594 Update the users below.
595 * inf-loop.c (inferior_event_handler)
596 * infcmd.c (attach_command)
597 (notice_new_inferior): Update.
598
c4c493de
TBA
5992021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
600
601 * inferior.h (class inferior) <continuations>: Change the type
602 to be an std::list of std::function's.
603 Update the references and uses below.
604 * continuations.c (struct continuation): Delete.
605 (make_continuation): Delete.
606 (do_my_continuations_1): Delete.
607 (do_my_continuations): Delete.
608 (discard_my_continuations_1): Delete.
609 (discard_my_continuations): Delete.
610 (add_inferior_continuation): Update.
611 (do_all_inferior_continuations): Update.
612 (discard_all_inferior_continuations): Update.
613 * continuations.h (add_inferior_continuation): Update to take
614 an std::function as the parameter.
615 * infcmd.c (struct attach_command_continuation_args): Delete.
616 (attach_command_continuation): Delete.
617 (attach_command_continuation_free_args): Delete.
618 (attach_command): Update.
619 (notice_new_inferior): Update.
620
1194676e
TBA
6212021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
622
623 * continuations.h: Update the general comment.
624 * inferior.h (class inferior) <continuations>: Update the comment.
625 * interps.c: Do not include "continuations.h".
626
35682f0a
TBA
6272021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
628
629 * continuations.h (do_all_inferior_continuations): Remove the 'err'
630 parameter. Update the references below.
631 * continuations.c (do_my_continuations_1)
632 (do_my_continuations)
633 (do_all_inferior_continuations): Update.
634 * inf-loop.c (inferior_event_handler): Update.
635 * infcmd.c (attach_command_continuation): Update.
636
6fee5eee
TBA
6372021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
638
639 * infcmd.c (attach_post_wait): Update the function comment.
640
27d0790a
TBA
6412021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
642
643 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
644 Update the references below.
645 (struct attach_command_continuation_args)
646 (attach_command_continuation)
647 (attach_command_continuation_free_args)
648 (attach_command)
649 (notice_new_inferior): Update to remove the reference to 'args'.
650
c39ebbf4
TV
6512021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
652 Tom de Vries <tdevries@suse.de>
653
654 PR remote/27710
655 * remote.c (remote_target_is_non_stop_p): New function.
656 * remote.h (remote_target_is_non_stop_p): Declare.
657 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
658 to check non-stopness using notif_state->remote rather current target.
659
22f80c0f
TT
6602021-04-22 Tom Tromey <tom@tromey.com>
661
662 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
663 (struct typed_val_int) <val>: Now ULONGEST.
664 (rust_parser::parse_array_type): Remove negative check.
665 (rust_lex_int_test): Change 'value' to ULONGEST.
666
05f3c0f0
AB
6672021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
668
669 * arch-utils.c (default_addressable_memory_unit_size): Return a
670 value based on bfd's bits per byte.
671
7e7a35fb
TT
6722021-04-21 Tom Tromey <tom@tromey.com>
673
674 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
675 unsigned char.
676 (struct dwarf2_per_cu_data): Rearrange.
677 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
678 unsigned char.
679 (struct comp_unit_head): Rearrange.
680 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
681
ff507520
TV
6822021-04-21 Tom de Vries <tdevries@suse.de>
683
684 PR build/27681
685 * configure.ac: Remove --without-included-regex/--with-included-regex.
686 * config.in: Regenerate.
687 * configure: Regenerate.
688 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
689
10a636cc
TBA
6902021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
691
692 * breakpoint.h (create_breakpoint): Add a new parameter,
693 'force_condition'.
694 * breakpoint.c (create_breakpoint): Use the 'force_condition'
695 argument when 'parse_extra' is false to check if the condition
696 is invalid at all of the breakpoint locations.
697 Update the users below.
698 (break_command_1)
699 (dprintf_command)
700 (trace_command)
701 (ftrace_command)
702 (strace_command)
703 (create_tracepoint_from_upload): Update.
704 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
705 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
706 * python/py-breakpoint.c (bppy_init): Update.
707 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
708
85c88e2a
TBA
7092021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
710
711 * breakpoint.c (print_one_breakpoint_location): Display "N" for
712 disabled-by-condition locations on MI-like output.
713 (breakpoint_1): Do not display the disabled-by-condition footnote
714 if the output is MI-like.
715
fd34472c
FC
7162021-04-21 Frederic Cambus <fred@statdns.com>
717
718 * syscalls/update-netbsd.sh: Fix script name display in usage, and
719 update year range in generated copyright notices.
720
184dcd81
FW
7212021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
722
723 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
724 qualifier_seq_noopt.
725
525174e8
FW
7262021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
727
728 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
729
f5dc2ee3
AB
7302021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
731
732 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
733 (producer_is_icc): Replace use of std::regex with gdb's
734 compiled_regex.
735
42c2c694
TT
7362021-04-17 Tom Tromey <tom@tromey.com>
737
738 PR gdb/23743:
739 * dwarf2/read.c (class offset_view): New.
740 (struct symbol_table_slot): Remove.
741 (struct mapped_index) <symbol_table, constant_pool>: Change type.
742 <symbol_name_index, symbol_vec_index>: New methods.
743 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
744 Rewrite.
745 (read_gdb_index_from_buffer): Update.
746 (struct dw2_symtab_iterator) <vec>: Change type.
747 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
748 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
749 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
750 <append_array, append_offset>: New methods.
751 (write_hash_table, add_address_entry, write_gdbindex_1)
752 (write_debug_names): Update.
753 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
754
da314dd3
TT
7552021-04-17 Tom Tromey <tom@tromey.com>
756
757 * dwarf2/index-write.c (write_psymtabs_to_index): Check
758 partial_symtabs.
759
0b7b2c2a
TT
7602021-04-17 Tom Tromey <tom@tromey.com>
761
762 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
763 from map_matching_symbols. Change parameters.
764 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
765 Rename from map_matching_symbols. Change parameters.
766 * dwarf2/read.c (struct dwarf2_gdb_index)
767 <expand_matching_symbols>: Rename from map_matching_symbols.
768 Change parameters.
769 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
770 Rename from map_matching_symbols. Change parameters.
771 (dwarf2_gdb_index::expand_matching_symbols): Rename from
772 dw2_map_matching_symbols. Change parameters.
773 (dwarf2_gdb_index::expand_matching_symbols): Remove old
774 implementation.
775 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
776 map_matching_symbols. Change parameters.
777 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
778 from map_matching_symbols. Change parameters.
779 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
780 map_matching_symbols. Change parameters.
781 * ada-lang.c (map_matching_symbols): New function.
782 (add_nonlocal_symbols): Update.
783
90160b57
TT
7842021-04-17 Tom Tromey <tom@tromey.com>
785
786 * quick-symbol.h (struct quick_symbol_functions)
787 <expand_symtabs_with_fullname>: Remove.
788 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
789 Remove.
790 * psympriv.h (struct psymbol_functions)
791 <expand_symtabs_with_fullname>: Remove.
792 * dwarf2/read.c (struct dwarf2_base_index_functions)
793 <expand_symtabs_with_fullname>: Remove.
794 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
795 Remove.
796 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
797 Update comment.
798 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
799 Rewrite.
800
7089bd88
TT
8012021-04-17 Tom Tromey <tom@tromey.com>
802
803 * symfile-debug.c (objfile::expand_symtabs_for_function):
804 Rewrite.
805 * quick-symbol.h (struct quick_symbol_functions)
806 <expand_symtabs_for_function>: Remove.
807 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
808 Remove.
809 * psympriv.h (struct psymbol_functions)
810 <expand_symtabs_for_function>: Remove.
811 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
812 Update comment.
813 * dwarf2/read.c (struct dwarf2_gdb_index)
814 <expand_symtabs_for_function>: Remove.
815 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
816 Remove.
817 (find_slot_in_mapped_hash): Remove.
818 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
819 (dw2_symtab_iter_init): Remove one overload.
820 (dwarf2_gdb_index::expand_symtabs_for_function)
821 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
822
536a40f3
TT
8232021-04-17 Tom Tromey <tom@tromey.com>
824
825 * symfile-debug.c (objfile::map_symtabs_matching_filename):
826 Rewrite.
827 * quick-symbol.h (struct quick_symbol_functions)
828 <map_symtabs_matching_filename>: Remove.
829 * psymtab.c (partial_map_expand_apply)
830 (psymbol_functions::map_symtabs_matching_filename): Remove.
831 * psympriv.h (struct psymbol_functions)
832 <map_symtabs_matching_filename>: Remove.
833 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
834 Update comment.
835 * dwarf2/read.c (struct dwarf2_base_index_functions)
836 <map_symtabs_matching_filename>: Remove.
837 (dw2_map_expand_apply)
838 (dwarf2_base_index_functions::map_symtabs_matching_filename):
839 Remove.
840
84d865e3
TT
8412021-04-17 Tom Tromey <tom@tromey.com>
842
843 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
844 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
845 Remove.
846 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
847 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
848 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
849 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
850 Remove.
851 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
852 (dwarf2_gdb_index::lookup_symbol)
853 (dwarf2_debug_names_index::lookup_symbol): Remove.
854
3bfa51a7
TT
8552021-04-17 Tom Tromey <tom@tromey.com>
856
857 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
858 * symmisc.c (maintenance_expand_symtabs): Update.
859 * symfile.c (expand_symtabs_matching): Update.
860 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
861 parameter.
862 * quick-symbol.h (struct quick_symbol_functions)
863 <expand_symtabs_matching>: Add 'domain' parameter.
864 * psymtab.c (recursively_search_psymtabs)
865 (psymbol_functions::expand_symtabs_matching): Add 'domain'
866 parameter.
867 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
868 Add 'domain' parameter.
869 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
870 'domain' parameter.
871 * linespec.c (iterate_over_all_matching_symtabs): Update.
872 * dwarf2/read.c (struct dwarf2_gdb_index)
873 <expand_symtabs_matching>: Add 'domain' parameter.
874 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
875 'domain' parameter.
876 (dw2_expand_symtabs_matching)
877 (dwarf2_gdb_index::expand_symtabs_matching)
878 (dw2_debug_names_iterator)
879 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
880 parameter.
881
03a8ea51
TT
8822021-04-17 Tom Tromey <tom@tromey.com>
883
884 * symtab.c (global_symbol_searcher::expand_symtabs)
885 (default_collect_symbol_completion_matches_break_on): Update.
886 * symmisc.c (maintenance_expand_symtabs): Update.
887 * symfile.h (expand_symtabs_matching): Add search_flags
888 parameter.
889 * symfile.c (expand_symtabs_matching): Add search_flags
890 parameter.
891 * symfile-debug.c (objfile::expand_symtabs_matching): Add
892 search_flags parameter.
893 * quick-symbol.h (struct quick_symbol_functions)
894 <expand_symtabs_matching>: Add search_flags parameter.
895 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
896 * psymtab.c (recursively_search_psymtabs)
897 (psymbol_functions::expand_symtabs_matching): Add search_flags
898 parameter.
899 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
900 Add search_flags parameter.
901 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
902 search_flags parameter.
903 * linespec.c (iterate_over_all_matching_symtabs): Update.
904 * dwarf2/read.c (struct dwarf2_gdb_index)
905 <expand_symtabs_matching>: Add search_flags parameter.
906 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
907 search_flags parameter.
908 (dw2_map_matching_symbols): Update.
909 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
910 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
911 parameter.
912 (dw2_debug_names_iterator): Change block_index to search flags.
913 <m_block_index>: Likewise.
914 (dw2_debug_names_iterator::next)
915 (dwarf2_debug_names_index::lookup_symbol)
916 (dwarf2_debug_names_index::expand_symtabs_for_function)
917 (dwarf2_debug_names_index::map_matching_symbols)
918 (dwarf2_debug_names_index::map_matching_symbols): Update.
919 (dwarf2_debug_names_index::expand_symtabs_matching): Add
920 search_flags parameter.
921 * ada-lang.c (ada_add_global_exceptions)
922 (collect_symbol_completion_matches): Update.
923
df35e626
TT
9242021-04-17 Tom Tromey <tom@tromey.com>
925
926 * symtab.c (default_collect_symbol_completion_matches_break_on):
927 Update.
928 * symfile.h (expand_symtabs_matching): Return bool.
929 * symfile.c (expand_symtabs_matching): Return bool.
930 * symfile-debug.c (objfile::expand_symtabs_matching): Return
931 bool.
932 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
933 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
934 bool.
935 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
936 bool.
937 * psympriv.h (struct psymbol_functions)
938 <expand_symtabs_matching>: Return bool.
939 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
940 bool.
941 * dwarf2/read.c (struct dwarf2_gdb_index)
942 <expand_symtabs_matching>: Return bool.
943 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
944 Return bool.
945 (dw2_expand_symtabs_matching_symbol): Return bool.
946 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
947 (dw2_expand_symtabs_matching)
948 (dwarf2_gdb_index::expand_symtabs_matching)
949 (dwarf2_debug_names_index::expand_symtabs_matching)
950 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
951
e357e990
TT
9522021-04-17 Tom Tromey <tom@tromey.com>
953
954 * quick-symbol.h (enum block_search_flag_values): New.
955 (block_search_flags): New enum flags type.
956
3cbc7ac3
TT
9572021-04-16 Tom Tromey <tom@tromey.com>
958
959 * rust-parse.c: New file.
960 * rust-exp.y: Remove.
961 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
962 (SFILES): Remove rust-exp.y.
963 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
964
1b6b755e
LM
9652021-04-16 Luis Machado <luis.machado@linaro.org>
966
967 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
968
c45ecc9d
JB
9692021-04-15 John Baldwin <jhb@FreeBSD.org>
970
971 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
972 use throughout file.
973
a15a276b
TT
9742021-04-15 Tom Tromey <tromey@adacore.com>
975
976 * ada-valprint.c (ada_value_print_array): Handle optimized-out
977 arrays.
978
644a2e75
TT
9792021-04-15 Tom Tromey <tromey@adacore.com>
980
981 * printcmd.c (print_variable_and_value): Use
982 common_val_print_checked.
983
9e5e03df
TT
9842021-04-15 Tom Tromey <tromey@adacore.com>
985
986 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
987 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
988 Update.
989 * p-exp.y (variable): Update.
990 * m2-exp.y (variable): Update.
991 * go-exp.y (variable): Update.
992 * expprint.c (dump_for_expression): New overload.
993 * expop.h (check_objfile): New overload.
994 (check_constant): New overload.
995 (class var_value_operation): Use block_symbol.
996 <get_symbol>: Rewrite.
997 * eval.c (var_value_operation::evaluate)
998 (var_value_operation::evaluate_funcall)
999 (var_value_operation::evaluate_for_address)
1000 (var_value_operation::evaluate_for_address)
1001 (var_value_operation::evaluate_with_coercion)
1002 (var_value_operation::evaluate_for_sizeof)
1003 (var_value_operation::evaluate_for_cast): Update.
1004 * d-exp.y (PrimaryExpression): Update.
1005 * c-exp.y (variable): Update.
1006 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1007 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1008 (ada_var_value_operation::evaluate)
1009 (ada_var_value_operation::resolve)
1010 (ada_funcall_operation::resolve): Update.
1011 * ada-exp.y (write_var_from_sym, write_object_renaming)
1012 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1013 (maybe_overload): Update.
1014 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1015
5809fbf2
TT
10162021-04-15 Tom Tromey <tom@tromey.com>
1017 Andrew Burgess <andrew.burgess@embecosm.com>
1018
1019 * NEWS: Add entry.
1020 * main.c (captured_main_1): Call check_quiet_mode.
1021 * top.c (startup_quiet): New global.
1022 (check_quiet_mode): New function.
1023 (show_startup_quiet): New function.
1024 (init_main): Register new command.
1025 * top.h (check_quiet_mode): Declare.
1026
92e4e97a
AB
10272021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 PR cli/25956
1030 * NEWS: Mention new early init files and command line options.
1031 * config.in: Regenerate.
1032 * configure: Regenerate.
1033 * configure.ac: Define GDBEARLYINIT.
1034 * main.c (get_earlyinit_files): New function.
1035 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1036 CMDARG_EARLYINIT_COMMAND.
1037 (captured_main_1): Add support for new command line flags, and for
1038 processing startup files.
1039 (print_gdb_help): Include startup files in the output.
1040
54b4dcc5
AB
10412021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1042
1043 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1044 (relocate_file_path_maybe_in_datadir): ...this.
1045 (class gdb_initfile_finder): New class.
1046 (get_init_files): Now uses gdb_initfile_finder.
1047 (print_gdb_help): Print 'None found' when there are no init files.
1048
34dc0f95
TBA
10492021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1050
1051 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1052 corresponding child of the abstract DIE when iterating the
1053 children of the concrete DIE.
1054
329534fd
TV
10552021-04-13 Tom de Vries <tdevries@suse.de>
1056
1057 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1058 type to regoff_t *.
1059
d9d2ef05
LM
10602021-04-13 Luis Machado <luis.machado@linaro.org>
1061
1062 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1063 hex values.
1064
c8a37944
WS
10652021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1066
1067 * rs6000-tdep.c: Add support for single-stepping of
1068 prefixed instructions.
1069
b722acca
WS
10702021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1071
e3d528d7
WS
1072 PR gdb/27525
1073 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1074 handle the addpcis/lnia instruction.
1075
10762021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1077
b722acca
WS
1078 * MAINTAINERS (Write After Approval): Add myself.
1079
6ba4cb84
CL
10802021-4-12 Carl Love <cel@us.ibm.com>
1081
1082 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1083 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1084 float128.
1085
d4717483
SM
10862021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1087
1088 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1089 * nat/windows-nat.h: Likewise.
1090
b3885679
EZ
10912021-04-10 Eli Zaretskii <eliz@gnu.org>
1092
1093 * windows-nat.c (windows_nat::handle_load_dll): Call
1094 windows_add_dll if get_image_name failed to glean the name of the
1095 DLL by using the lpImageName pointer.
1096 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1097 (windows_add_dll): Now does what windows_add_all_dlls did before,
1098 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1099 specifies the address where the DLL was loaded into the inferior,
1100 and looks for the single DLL loaded at that address.
1101
1ef6a596
LM
11022021-04-09 Luis Machado <luis.machado@linaro.org>
1103
1104 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1105
83a559f7
DQ
11062021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1107
1108 * darwin-nat.c (darwin_nat_target::resume): Remove status
1109 variable.
1110
16e311ab
FW
11112021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1112
1113 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1114 prologue end for Intel compilers.
1115 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1116 * producer.c (producer_is_icc_ge_19): New function.
1117 * producer.h (producer_is_icc_ge_19): New declaration.
1118
fbb3bcfc
FW
11192021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1120
1121 * producer.c: (producer_is_icc): Update for new version scheme.
1122 (producer_parsing_tests): Update names and expected results.
1123 * producer.h: (producer_is_icc): Update comment accordingly.
1124
e97007b6
SM
11252021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1126
1127 * target.h (struct target_ops) <follow_fork>: Return void.
1128 (target_follow_fork): Likewise.
1129 * target.c (default_follow_fork): Likewise.
1130 (target_follow_fork): Likewise.
1131 * infrun.c (follow_fork_inferior): Adjust.
1132 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1133 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1134 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1135 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1136 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1137 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1138 * remote.c (class remote_target) <follow_fork>: Likewise.
1139 (remote_target::follow_fork): Likewise.
1140 * target-delegates.c: Re-generate.
1141
dc2b480f
WP
11422021-04-07 Weimin Pan <weimin.pan@oracle.com>
1143
1144 * ctfread.c (fetch_tid_type): New function, use throughout file.
1145 (read_forward_type): New function.
1146 (read_type_record): Call read_forward_type.
1147
0a703a4c
AB
11482021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * f-exp.h (class fortran_structop_operation): New class.
1151 * f-exp.y (exp): Create fortran_structop_operation instead of the
1152 generic structop_operation.
1153 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1154 expression as EVAL_NORMAL if the result type was dynamic so we can
1155 extract the actual array bounds.
1156 (fortran_structop_operation::evaluate): New function.
1157
11582021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * eval.c (evaluate_subexp_standard): Remove
1161 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1162 STRUCTOP_PTR.
1163
30ab3586
AB
11642021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1165
1166 * valops.c (value_cast): Call value_deeply_equal before performing
1167 any cast.
1168
5e18990f
AB
11692021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1170
1171 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1172 the function.
1173
56d467f4
CT
11742021-04-07 Caroline Tice <cmtice@google.com>
1175
1176 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1177 the search paths used resolve relative location of .dwo file.
1178
1fd999d9
AB
11792021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1180
1181 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1182 assert.
1183 (dwarf2_section_info::get_file_name): Add an assert.
1184 (dwarf2_section_info::read_string): Display a minimal, sane error
1185 when the dwarf2_section_info is not associated with a bfd section.
1186
79c02443
AB
11872021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1188
1189 * top.c (staged_gdb_datadir): Update comment.
1190 (set_gdb_datadir): Copy the value of gdb_datadir back into
1191 staged_datadir.
1192 (init_main): Initialise staged_gdb_datadir.
1193
340d00fb
TV
11942021-04-06 Tom de Vries <tdevries@suse.de>
1195
1196 PR breakpoints/25884
1197 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1198 stepping range.
1199
d811a7cf
TV
12002021-04-06 Tom de Vries <tdevries@suse.de>
1201
1202 PR tui/27680
1203 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1204 to style.parse.
1205
306b445a
SM
12062021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1207
1208 * avr-tdep.c (avr_frame_unwind_cache): Use
1209 trad_frame_saved_reg::is_addr.
1210
9161c89a
SM
12112021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1212
1213 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1214 adjust callers.
1215
0072c873
SM
12162021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1217
1218 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1219 objfile parameter for objfile_per_bfd_storage, adjust callers.
1220 (struct standard_psymtab) <standard_psymtab>: Likewise.
1221 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1222 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1223 * ctfread.c (struct ctf_psymtab): Likewise.
1224 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1225 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1226 (dwarf2_create_include_psymtab): Likewise.
1227 * objfiles.h (struct objfile_per_bfd_storage)
1228 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1229 <get_bfd>: New method.
1230 <m_bfd>: New field.
1231 * objfiles.c (get_objfile_bfd_data): Adjust.
1232
9984dd99
SM
12332021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1234
1235 * psymtab.c (partial_symtab::partial_symtab): Change
1236 last_objfile_name to be an std::string.
1237 * symfile.c (allocate_symtab): Likewise.
1238
4a4f97c1
SM
12392021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1240
1241 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1242 methods.
1243 (struct objfile) <intern>: Use
1244 objfile::objfile_per_bfd_storage::intern.
1245
0672875f
SM
12462021-04-01 Simon Marchi <simon.marchi@efficios.com>
1247
1248 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1249 with type::is_flag_enum.
1250
9902b327
SM
12512021-04-01 Simon Marchi <simon.marchi@efficios.com>
1252
1253 * gdbtypes.h (struct type) <is_flag_enum,
1254 set_is_flag_enum>: New methods.
1255 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1256 write call sites to use type::set_is_flag_enum.
1257
3bc440a2
SM
12582021-04-01 Simon Marchi <simon.marchi@efficios.com>
1259
1260 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1261 with type::is_declared_class.
1262
aa70e35c
SM
12632021-04-01 Simon Marchi <simon.marchi@efficios.com>
1264
1265 * gdbtypes.h (struct type) <is_declared_class,
1266 set_is_declared_class>: New methods.
1267 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1268 write call sites to use type::set_is_declared_class.
1269
bfb9f5dc
BS
12702021-02-28 Boris Staletic <boris.staletic@gmail.com>
1271
1272 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1273 to avoid deprecation warnings.
1274
733f5eea
ML
12752021-04-01 Martin Liska <mliska@suse.cz>
1276
1277 * cp-name-parser.y: Use startswith instead of strncmp.
1278 * m2-exp.y: Likewise.
1279 * macroexp.c (substitute_args): Likewise.
1280 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1281 * rust-exp.y: Likewise.
1282
af82f89d
TT
12832021-03-31 Tom Tromey <tom@tromey.com>
1284
1285 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1286 with dw2_map_matching_symbols.
1287 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1288 dw2_expand_symtabs_matching.
1289
3570682a
TT
12902021-03-31 Tom Tromey <tromey@adacore.com>
1291
1292 * dwarf2/stringify.h: Fix typo.
1293
8a91fbdf
SM
12942021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1295
1296 PR gdb/27541
1297 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1298 with objfiles using READNOW.
1299
9f67fc59
TT
13002021-03-29 Tom Tromey <tromey@adacore.com>
1301
1302 * top.c (check_frame_language_change): Update.
1303 * language.c (language_info): Remove parameter.
1304 * language.h (language_info): Remove parameter.
1305
9b8ffbf4
LM
13062021-03-29 Luis Machado <luis.machado@linaro.org>
1307
1308 * compile/compile.c (get_args): Don't add empty argv entries.
1309
25b48839
RO
13102021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1311
1312 gdb:
1313 * procfs.c (procfs_target::attach): Define inf.
1314 Use it.
1315 (procfs_target::create_inferior): Likewise.
1316
edc02ceb
TT
13172021-03-28 Tom Tromey <tom@tromey.com>
1318
1319 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1320 (elf_symfile_read): Simplify.
1321 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1322 (make_lazy_dwarf_reader): New function.
1323 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1324 (dwarf2_initialize_objfile): Return void. Remove index_kind
1325 parameter. Push on 'qf' list.
1326 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1327 type. Remove 'index_kind' parameter.
1328 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1329
6e23d91a
TT
13302021-03-27 Tom Tromey <tom@tromey.com>
1331
1332 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1333
594b8948
TT
13342021-03-27 Tom Tromey <tom@tromey.com>
1335
1336 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1337
efe1ecd8
LS
13382021-03-26 Lancelot Six <lsix@lancelotsix.com>
1339
1340 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1341 rid of 'local'.
1342
f4655dee
TT
13432021-03-26 Tom Tromey <tom@tromey.com>
1344
1345 * symtab.c (struct output_source_filename_data): Add 'output'
1346 method and operator().
1347 (output_source_filename_data::output): Rename from
1348 output_source_filename.
1349 (output_partial_symbol_filename): Remove.
1350 (info_sources_command): Update.
1351 (struct add_partial_filename_data): Add operator().
1352 (add_partial_filename_data::operator()): Rename from
1353 maybe_add_partial_symtab_filename.
1354 (make_source_files_completion_list): Update.
1355 * symfile.c (quick_symbol_functions): Update.
1356 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1357 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1358 'need_fullname'. Remove 'data' parameter.
1359 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1360 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1361 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1362 Change type of 'fun' and 'need_fullname'. Remove 'data'
1363 parameter.
1364 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1365 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1366 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1367 parameter.
1368 (mi_cmd_file_list_exec_source_files): Update.
1369 * dwarf2/read.c
1370 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1371
2315bb2d
TT
13722021-03-26 Tom Tromey <tom@tromey.com>
1373
1374 * ada-lang.c (struct match_data): Add operator().
1375 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1376 (callback): Remove 'callback'.
1377
e2cd5ca4
TT
13782021-03-26 Tom Tromey <tom@tromey.com>
1379
1380 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1381 call make_ignore_params once.
1382
cd43f63e
TT
13832021-03-26 Tom Tromey <tom@tromey.com>
1384
1385 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1386 "user" check.
1387
b4b1a226
SM
13882021-03-26 Simon Marchi <simon.marchi@efficios.com>
1389 Pedro Alves <pedro@palves.net>
1390
1391 * async-event.c: Include "infrun.h".
1392 (async_event_handler_marked): New.
1393 * async-event.h (async_event_handler_marked): Declare.
1394 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1395 inferior before calling target method. Don't commit-resumed if
1396 target_has_pending_events is true.
1397 * remote.c (remote_target::has_pending_events): New.
1398 * target-delegates.c: Regenerate.
1399 * target.c (target_has_pending_events): New.
1400 * target.h (target_ops::has_pending_events): New target method.
1401 (target_has_pending_events): New.
1402
1192f124
SM
14032021-03-26 Simon Marchi <simon.marchi@efficios.com>
1404 Pedro Alves <pedro@palves.net>
1405
1406 * infcmd.c (run_command_1, attach_command, detach_command)
1407 (interrupt_target_1): Use scoped_disable_commit_resumed.
1408 * infrun.c (do_target_resume): Remove
1409 target_commit_resume call.
1410 (commit_resume_all_targets): Remove.
1411 (maybe_set_commit_resumed_all_targets): New.
1412 (maybe_call_commit_resumed_all_targets): New.
1413 (enable_commit_resumed): New.
1414 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1415 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1416 (scoped_disable_commit_resumed::reset)
1417 (scoped_disable_commit_resumed::reset_and_commit)
1418 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1419 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1420 New.
1421 (proceed): Use scoped_disable_commit_resumed and
1422 maybe_call_commit_resumed_all_targets.
1423 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1424 * infrun.h (struct scoped_disable_commit_resumed): New.
1425 (maybe_call_commit_resumed_all_process_targets): New.
1426 (struct scoped_enable_commit_resumed): New.
1427 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1428 * process-stratum-target.h (class process_stratum_target):
1429 <commit_resumed_state>: New.
1430 * record-full.c (record_full_wait_1): Change commit_resumed_state
1431 around calling commit_resumed.
1432 * remote.c (class remote_target) <commit_resume>: Rename to...
1433 <commit_resumed>: ... this.
1434 (struct stop_reply): Move up.
1435 (remote_target::commit_resume): Rename to...
1436 (remote_target::commit_resumed): ... this. Check if there is any
1437 thread pending vCont resume.
1438 (remote_target::remote_stop_ns): Generate stop replies for resumed
1439 but pending vCont threads.
1440 (remote_target::wait_ns): Add gdb_assert.
1441 * target-delegates.c: Regenerate.
1442 * target.c (target_wait, target_resume): Assert that the current
1443 process_stratum target isn't in commit-resumed state.
1444 (defer_target_commit_resume): Remove.
1445 (target_commit_resume): Remove.
1446 (target_commit_resumed): New.
1447 (make_scoped_defer_target_commit_resume): Remove.
1448 (target_stop): Assert that the current process_stratum target
1449 isn't in commit-resumed state.
1450 * target.h (struct target_ops) <commit_resume>: Rename to ...
1451 <commit_resumed>: ... this.
1452 (target_commit_resume): Remove.
1453 (target_commit_resumed): New.
1454 (make_scoped_defer_target_commit_resume): Remove.
1455 * top.c (wait_sync_command_done): Use
1456 scoped_enable_commit_resumed.
1457
e5b9b39f
PA
14582021-03-26 Pedro Alves <pedro@palves.net>
1459
1460 * target.c (target_always_non_stop_p): Also check whether the
1461 target can async.
1462
bab287cd
TT
14632021-03-26 Tom Tromey <tom@tromey.com>
1464
1465 * dwarf2/read.c (dwarf2_read_debug_names)
1466 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1467 (dw2_debug_names_iterator::next, create_type_unit_group):
1468 Simplify.
1469
eff4f69d
PA
14702021-03-25 Pedro Alves <pedro@palves.net>
1471
1472 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1473 around setting the breakpoint.
1474
323fd5b9
PA
14752021-03-25 Pedro Alves <pedro@palves.net>
1476
1477 * remote.c
1478 (remote_target::check_pending_events_prevent_wildcard_vcont):
1479 Check whether the event's ptid is not null_ptid before looking up
1480 the corresponding inferior.
1481
d3cbca38
CD
14822021-03-24 Changbin Du <changbin.du@gmail.com>
1483
1484 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1485 read_code.
1486
328d42d8
SM
14872021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1488
1489 * target.h (current_top_target): Remove, make callers use the
1490 current inferior instead.
1491 * target.c (current_top_target): Remove.
1492
d777bf0d
SM
14932021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1494
1495 * target.h (target_shortname): Change to function declaration.
1496 (target_longname): Likewise.
1497 (target_attach_no_wait): Likewise.
1498 (target_post_attach): Likewise.
1499 (target_prepare_to_store): Likewise.
1500 (target_supports_enable_disable_tracepoint): Likewise.
1501 (target_supports_string_tracing): Likewise.
1502 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1503 (target_supports_dumpcore): Likewise.
1504 (target_dumpcore): Likewise.
1505 (target_can_run_breakpoint_commands): Likewise.
1506 (target_files_info): Likewise.
1507 (target_post_startup_inferior): Likewise.
1508 (target_insert_fork_catchpoint): Likewise.
1509 (target_remove_fork_catchpoint): Likewise.
1510 (target_insert_vfork_catchpoint): Likewise.
1511 (target_remove_vfork_catchpoint): Likewise.
1512 (target_insert_exec_catchpoint): Likewise.
1513 (target_remove_exec_catchpoint): Likewise.
1514 (target_set_syscall_catchpoint): Likewise.
1515 (target_rcmd): Likewise.
1516 (target_can_lock_scheduler): Likewise.
1517 (target_can_async_p): Likewise.
1518 (target_is_async_p): Likewise.
1519 (target_execution_direction): Likewise.
1520 (target_extra_thread_info): Likewise.
1521 (target_pid_to_exec_file): Likewise.
1522 (target_thread_architecture): Likewise.
1523 (target_find_memory_regions): Likewise.
1524 (target_make_corefile_notes): Likewise.
1525 (target_get_bookmark): Likewise.
1526 (target_goto_bookmark): Likewise.
1527 (target_stopped_by_watchpoint): Likewise.
1528 (target_stopped_by_sw_breakpoint): Likewise.
1529 (target_supports_stopped_by_sw_breakpoint): Likewise.
1530 (target_stopped_by_hw_breakpoint): Likewise.
1531 (target_supports_stopped_by_hw_breakpoint): Likewise.
1532 (target_have_steppable_watchpoint): Likewise.
1533 (target_can_use_hardware_watchpoint): Likewise.
1534 (target_region_ok_for_hw_watchpoint): Likewise.
1535 (target_can_do_single_step): Likewise.
1536 (target_insert_watchpoint): Likewise.
1537 (target_remove_watchpoint): Likewise.
1538 (target_insert_hw_breakpoint): Likewise.
1539 (target_remove_hw_breakpoint): Likewise.
1540 (target_can_accel_watchpoint_condition): Likewise.
1541 (target_can_execute_reverse): Likewise.
1542 (target_get_ada_task_ptid): Likewise.
1543 (target_filesystem_is_local): Likewise.
1544 (target_trace_init): Likewise.
1545 (target_download_tracepoint): Likewise.
1546 (target_can_download_tracepoint): Likewise.
1547 (target_download_trace_state_variable): Likewise.
1548 (target_enable_tracepoint): Likewise.
1549 (target_disable_tracepoint): Likewise.
1550 (target_trace_start): Likewise.
1551 (target_trace_set_readonly_regions): Likewise.
1552 (target_get_trace_status): Likewise.
1553 (target_get_tracepoint_status): Likewise.
1554 (target_trace_stop): Likewise.
1555 (target_trace_find): Likewise.
1556 (target_get_trace_state_variable_value): Likewise.
1557 (target_save_trace_data): Likewise.
1558 (target_upload_tracepoints): Likewise.
1559 (target_upload_trace_state_variables): Likewise.
1560 (target_get_raw_trace_data): Likewise.
1561 (target_get_min_fast_tracepoint_insn_len): Likewise.
1562 (target_set_disconnected_tracing): Likewise.
1563 (target_set_circular_trace_buffer): Likewise.
1564 (target_set_trace_buffer_size): Likewise.
1565 (target_set_trace_notes): Likewise.
1566 (target_get_tib_address): Likewise.
1567 (target_set_permissions): Likewise.
1568 (target_static_tracepoint_marker_at): Likewise.
1569 (target_static_tracepoint_markers_by_strid): Likewise.
1570 (target_traceframe_info): Likewise.
1571 (target_use_agent): Likewise.
1572 (target_can_use_agent): Likewise.
1573 (target_augmented_libraries_svr4_read): Likewise.
1574 (target_log_command): Likewise.
1575 * target.c (target_shortname): New.
1576 (target_longname): New.
1577 (target_attach_no_wait): New.
1578 (target_post_attach): New.
1579 (target_prepare_to_store): New.
1580 (target_supports_enable_disable_tracepoint): New.
1581 (target_supports_string_tracing): New.
1582 (target_supports_evaluation_of_breakpoint_conditions): New.
1583 (target_supports_dumpcore): New.
1584 (target_dumpcore): New.
1585 (target_can_run_breakpoint_commands): New.
1586 (target_files_info): New.
1587 (target_post_startup_inferior): New.
1588 (target_insert_fork_catchpoint): New.
1589 (target_remove_fork_catchpoint): New.
1590 (target_insert_vfork_catchpoint): New.
1591 (target_remove_vfork_catchpoint): New.
1592 (target_insert_exec_catchpoint): New.
1593 (target_remove_exec_catchpoint): New.
1594 (target_set_syscall_catchpoint): New.
1595 (target_rcmd): New.
1596 (target_can_lock_scheduler): New.
1597 (target_can_async_p): New.
1598 (target_is_async_p): New.
1599 (target_execution_direction): New.
1600 (target_extra_thread_info): New.
1601 (target_pid_to_exec_file): New.
1602 (target_thread_architecture): New.
1603 (target_find_memory_regions): New.
1604 (target_make_corefile_notes): New.
1605 (target_get_bookmark): New.
1606 (target_goto_bookmark): New.
1607 (target_stopped_by_watchpoint): New.
1608 (target_stopped_by_sw_breakpoint): New.
1609 (target_supports_stopped_by_sw_breakpoint): New.
1610 (target_stopped_by_hw_breakpoint): New.
1611 (target_supports_stopped_by_hw_breakpoint): New.
1612 (target_have_steppable_watchpoint): New.
1613 (target_can_use_hardware_watchpoint): New.
1614 (target_region_ok_for_hw_watchpoint): New.
1615 (target_can_do_single_step): New.
1616 (target_insert_watchpoint): New.
1617 (target_remove_watchpoint): New.
1618 (target_insert_hw_breakpoint): New.
1619 (target_remove_hw_breakpoint): New.
1620 (target_can_accel_watchpoint_condition): New.
1621 (target_can_execute_reverse): New.
1622 (target_get_ada_task_ptid): New.
1623 (target_filesystem_is_local): New.
1624 (target_trace_init): New.
1625 (target_download_tracepoint): New.
1626 (target_can_download_tracepoint): New.
1627 (target_download_trace_state_variable): New.
1628 (target_enable_tracepoint): New.
1629 (target_disable_tracepoint): New.
1630 (target_trace_start): New.
1631 (target_trace_set_readonly_regions): New.
1632 (target_get_trace_status): New.
1633 (target_get_tracepoint_status): New.
1634 (target_trace_stop): New.
1635 (target_trace_find): New.
1636 (target_get_trace_state_variable_value): New.
1637 (target_save_trace_data): New.
1638 (target_upload_tracepoints): New.
1639 (target_upload_trace_state_variables): New.
1640 (target_get_raw_trace_data): New.
1641 (target_get_min_fast_tracepoint_insn_len): New.
1642 (target_set_disconnected_tracing): New.
1643 (target_set_circular_trace_buffer): New.
1644 (target_set_trace_buffer_size): New.
1645 (target_set_trace_notes): New.
1646 (target_get_tib_address): New.
1647 (target_set_permissions): New.
1648 (target_static_tracepoint_marker_at): New.
1649 (target_static_tracepoint_markers_by_strid): New.
1650 (target_traceframe_info): New.
1651 (target_use_agent): New.
1652 (target_can_use_agent): New.
1653 (target_augmented_libraries_svr4_read): New.
1654 (target_log_command): New.
1655 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1656 * infrun.c (set_schedlock_func): Adjust.
1657 * mi/mi-main.c (exec_reverse_continue): Adjust.
1658 * reverse.c (exec_reverse_once): Adjust.
1659 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1660 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1661 * remote-sim.c (gdbsim_target::detach): Adjust.
1662 (gdbsim_target::files_info): Adjust.
1663
b64f703b
TT
16642021-03-24 Tom Tromey <tom@tromey.com>
1665
1666 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1667 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1668 (check_match, dw2_expand_symtabs_matching)
1669 (dwarf2_debug_names_index::map_matching_symbols)
1670 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1671
68f115f8
KS
16722021-03-24 Keith Seitz <keiths@redhat.com>
1673
1674 * compile/compile-cplus-types.c
1675 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1676 thinko.
1677
41c0087b
SM
16782021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1679
1680 * gdbarch.sh (gdbarch_data_registry): Make static.
1681 * gdbarch.c: Re-generate.
1682
ce192338
LM
16832021-03-24 Luis Machado <luis.machado@linaro.org>
1684
1685 * NEWS: Mention memory tagging changes.
1686
bef382e6
LM
16872021-03-24 Luis Machado <luis.machado@linaro.org>
1688
1689 * printcmd.c (decode_format): Handle the 'm' modifier.
1690 (do_examine): Display allocation tags when required/supported.
1691 (should_validate_memtags): New function.
1692 (print_command_1): Display memory tag mismatches.
1693 * valprint.c (show_memory_tag_violations): New function.
1694 (value_print_option_defs): Add new option "memory-tag-violations".
1695 (user_print_options) <memory_tag_violations>: Initialize to 1.
1696 * valprint.h (struct format_data) <print_tags>: New field.
1697 (value_print_options) <memory_tag_violations>: New field.
1698
48136e00
LM
16992021-03-24 Luis Machado <luis.machado@linaro.org>
1700
1701 * printcmd.c: Include gdbsupport/rsp-low.h.
1702 (memory_tag_list): New static global.
1703 (process_print_command_args): Factored out of
1704 print_command_1.
1705 (print_command_1): Use process_print_command_args.
1706 (show_addr_not_tagged, show_memory_tagging_unsupported)
1707 (memory_tag_command, memory_tag_print_tag_command)
1708 (memory_tag_print_logical_tag_command)
1709 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1710 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1711 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1712 functions.
1713 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1714
ffcc2a15
LM
17152021-03-24 Luis Machado <luis.machado@linaro.org>
1716
1717 * aarch64-linux-tdep.c
1718 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1719 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1720
cf44c9fa
LM
17212021-03-24 Luis Machado <luis.machado@linaro.org>
1722
1723 * aarch64-linux-tdep.c
1724 (aarch64_linux_report_signal_info): New function.
1725 (aarch64_linux_init_abi): Register
1726 aarch64_linux_report_signal_info as the report_signal_info hook.
1727 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1728 (SEGV_MTESERR): Define.
1729
b4a7d4fc
LM
17302021-03-24 Luis Machado <luis.machado@linaro.org>
1731
1732 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1733 (aarch64_linux_ltag_tests): New function.
1734 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1735
c7782e50
LM
17362021-03-24 Luis Machado <luis.machado@linaro.org>
1737
1738 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1739 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1740 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1741 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1742 functions.
1743 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1744 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1745 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1746 (aarch64_linux_get_ltag): New functions.
1747 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1748 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1749 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1750 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1751
1e735120
LM
17522021-03-24 Luis Machado <luis.machado@linaro.org>
1753
1754 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1755 bit.
1756 (struct smaps_data): New struct.
1757 (decode_vmflags): Handle the 'mt' flag.
1758 (parse_smaps_data): New function, refactored from
1759 linux_find_memory_regions_full.
1760 (linux_address_in_memtag_page): New function.
1761 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1762 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1763
93e447c6
LM
17642021-03-24 Luis Machado <luis.machado@linaro.org>
1765
1766 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1767 instead of char arrays.
1768
4601818e
LM
17692021-03-24 Luis Machado <luis.machado@linaro.org>
1770
1771 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1772 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1773 nat/aarch64-mte-linux-ptrace.h.
1774 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1775 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1776 override.
1777 <fetch_memtags>: New method override.
1778 <store_memtags>: New method override.
1779 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1780 (aarch64_linux_nat_target::fetch_memtags): New method.
1781 (aarch64_linux_nat_target::store_memtags): New method.
1782 * arch/aarch64-mte-linux.c: New file.
1783 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1784 (AARCH64_MTE_GRANULE_SIZE): Define.
1785 (aarch64_memtag_type): New enum.
1786 (aarch64_mte_get_tag_granules): New prototype.
1787 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1788 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1789 * nat/aarch64-mte-linux-ptrace.c: New file.
1790 * nat/aarch64-mte-linux-ptrace.h: New file.
1791
3f3bd8b8
LM
17922021-03-24 Luis Machado <luis.machado@linaro.org>
1793
1794 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1795 * nat/aarch64-mte-linux-ptrace.h: New file.
1796
5e984dbf
LM
17972021-03-24 Luis Machado <luis.machado@linaro.org>
1798
1799 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1800 (store_mteregs_to_thread): New function.
1801 (aarch64_linux_nat_target::fetch_registers): Update to call
1802 fetch_mteregs_from_thread.
1803 (aarch64_linux_nat_target::store_registers): Update to call
1804 store_mteregs_to_thread.
1805 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1806 (aarch64_cannot_store_register): Handle MTE registers.
1807 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1808 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1809 <has_mte>: New method.
1810 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1811
c1bd443b
LM
18122021-03-24 Luis Machado <luis.machado@linaro.org>
1813
1814 * aarch64-linux-nat.c
1815 (aarch64_linux_nat_target::read_description): Take MTE flag into
1816 account.
1817 Slight refactor to hwcap flag checking.
1818 * aarch64-linux-tdep.c
1819 (aarch64_linux_core_read_description): Likewise.
1820 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1821 MTE.
1822 (aarch64_read_description): Add mte_p parameter and update to use it.
1823 Update the documentation.
1824 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1825 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1826 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1827 (aarch64_create_target_description): Add mte_p parameter and update
1828 the code to use it.
1829 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1830 parameter.
1831 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1832 * features/aarch64-mte.c: New file, generated.
1833 * features/aarch64-mte.xml: New file.
1834
04245125
LM
18352021-03-24 Luis Machado <luis.machado@linaro.org>
1836
1837 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1838 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1839 * aarch64-linux-tdep.c: Likewise
1840 * arch/aarch64-mte-linux.h: New file.
1841
754487e2
LM
18422021-03-24 Luis Machado <luis.machado@linaro.org>
1843
1844 * remote: Include gdbsupport/selftest.h.
1845 (test_memory_tagging_functions): New function.
1846 (_initialize_remote): Register test_memory_tagging_functions.
1847
2c2e7f87
LM
18482021-03-24 Luis Machado <luis.machado@linaro.org>
1849
1850 * remote.c (PACKET_memory_tagging_feature): New enum.
1851 (remote_memory_tagging_p): New function.
1852 (remote_protocol_features): New "memory-tagging" entry.
1853 (remote_target::remote_query_supported): Handle memory tagging
1854 support.
1855 (remote_target::supports_memory_tagging): Implement.
1856 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1857 (create_store_memtags_request): New functions.
1858 (remote_target::fetch_memtags): Implement.
1859 (remote_target::store_memtags): Implement.
1860 (_initialize_remote): Add new "memory-tagging-feature"
1861 config command.
1862
c193949e
LM
18632021-03-24 Luis Machado <luis.machado@linaro.org>
1864
1865 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1866 (default_memtag_matches_p, default_set_memtags)
1867 (default_get_memtag): New functions.
1868 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1869 (default_memtag_matches_p, default_set_memtags)
1870 (default_get_memtag): New prototypes.
1871 * gdbarch.c: Regenerate.
1872 * gdbarch.h: Regenerate.
1873 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1874 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1875 (enum memtag_type): New enum.
1876
dbe692af
LM
18772021-03-24 Luis Machado <luis.machado@linaro.org>
1878
1879 * remote.c (remote_target) <supports_memory_tagging>: New method
1880 override.
1881 <fetch_memtags>: New method override.
1882 <store_memtags>: New method override.
1883 (remote_target::supports_memory_tagging): New method.
1884 (remote_target::fetch_memtags): New method.
1885 (remote_target::store_memtags): New method.
1886 * target-delegates.c: Regenerate.
1887 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1888 method.
1889 <fetch_memtags>: New virtual method.
1890 <store_memtags>: New virtual method.
1891 (target_supports_memory_tagging): Define.
1892 (target_fetch_memtags): Define.
1893 (target_store_memtags): Define.
1894 * target-debug.h (target_debug_print_size_t)
1895 (target_debug_print_const_gdb_byte_vector_r)
1896 (target_debug_print_gdb_byte_vector_r): New functions.
1897
66848ebc
SM
18982021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1899
1900 * target.h (target_longname): Remove.
1901
c8fbd44a
SM
19022021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * target.h (target_is_pushed): Remove, update callers to use
1905 inferior::target_is_pushed instead.
1906 * target.c (target_is_pushed): Remove.
1907
02980c56
SM
19082021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1909
1910 * target.h (push_target): Remove, update callers to use
1911 inferior::push_target.
1912 * target.c (push_target): Remove.
1913 * inferior.h (class inferior) <push_target>: New overload.
1914
fadf6add
SM
19152021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1916
1917 * target.h (unpush_target): Remove, update all callers
1918 to use `inferior::unpush_target` instead.
1919 (struct target_unpusher) <operator()>: Just declare.
1920 * target.c (unpush_target): Remove.
1921 (target_unpusher::operator()): New.
1922
702cf3f5
AB
19232021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1924
1925 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1926 error.
1927 (process_full_comp_unit): Validate the top-level tag before
1928 processing the first DIE.
1929 (read_func_scope): Ensure we have a valid builder.
1930
46fec642
AB
19312021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * objc-lang.c (objc_demangle): Renamed to
1934 objc_language::demangle_symbol, and moved later in the file.
1935 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1936 member function.
1937 (objc_language::demangle_symbol): Defined outside of class
1938 declaration. The definition is the old objc_demangle with NULL
1939 changed to nullptr, and if conditions relating to nullptr pointers
1940 or null character checks made explicit.
1941 * objc-lang.h (objc_demangle): Delete declaration.
1942
08dedd66
ML
19432021-03-22 Martin Liska <mliska@suse.cz>
1944
1945 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1946 (_initialize_arm_tdep): Likewise.
1947
eb36a3eb
TT
19482021-03-20 Tom Tromey <tom@tromey.com>
1949
1950 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1951 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1952 * psymtab.h (make_psymbol_functions): Don't declare.
1953 * psymtab.c (make_psymbol_functions): Remove.
1954 (maintenance_print_psymbols): Update.
1955 * psympriv.h (struct psymbol_functions): Add no-argument
1956 constructor.
1957 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1958 <partial_symtabs>: Remove.
1959 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1960 * elfread.c (read_partial_symbols): Update.
1961 (elf_symfile_read): Remove check for existing partial symbols.
1962 Don't clear "qf".
1963 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1964 partial symbols.
1965 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1966 partial symtabs.
1967 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1968 parameter.
1969 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1970 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1971
e1114590
TT
19722021-03-20 Tom Tromey <tom@tromey.com>
1973
1974 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1975 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1976 * symfile-debug.c (objfile::has_partial_symbols)
1977 (objfile::find_last_source_symtab)
1978 (objfile::forget_cached_source_info)
1979 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1980 (objfile::print_stats, objfile::dump)
1981 (objfile::expand_symtabs_for_function)
1982 (objfile::expand_all_symtabs)
1983 (objfile::expand_symtabs_with_fullname)
1984 (objfile::map_matching_symbols)
1985 (objfile::expand_symtabs_matching)
1986 (objfile::find_pc_sect_compunit_symtab)
1987 (objfile::map_symbol_filenames)
1988 (objfile::find_compunit_symtab_by_address)
1989 (objfile::lookup_global_symbol_language)
1990 (objfile::require_partial_symbols): Update.
1991 * psymtab.c (maintenance_print_psymbols)
1992 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1993 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1994 * objfiles.c (objfile_relocate1): Update.
1995 * elfread.c (elf_symfile_read): Update.
1996
de909f0b
TT
19972021-03-20 Tom Tromey <tom@tromey.com>
1998
1999 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2000
caf8c1e5
TT
20012021-03-20 Tom Tromey <tom@tromey.com>
2002
2003 * psymtab.c (psymbol_functions::count_psyms): Rename.
2004 (psymbol_functions::print_stats): Update.
2005 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2006 method.
2007
3aa31ce7
TT
20082021-03-20 Tom Tromey <tom@tromey.com>
2009
2010 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2011 (psymbol_functions::find_pc_sect_psymtab): Rename.
2012 (psymbol_functions::find_pc_sect_compunit_symtab)
2013 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2014 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2015 Declare new method.
2016 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2017
7b249e47
TT
20182021-03-20 Tom Tromey <tom@tromey.com>
2019
2020 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2021 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2022 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2023 parameter.
2024 (add_psymbol_to_bcache): Remove.
2025 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2026 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2027 Likewise.
2028 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2029 <add_psymbol>: Likewise.
2030 (standard_psymtab, legacy_psymtab): Likewise.
2031 * mdebugread.c (parse_partial_symbols): Update.
2032 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2033 (handle_psymbol_enumerators): Update.
2034 (new_psymtab): Add partial_symtabs parameter.
2035 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2036 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2037 parameter.
2038 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2039 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2040 Update.
2041 * dbxread.c (read_dbx_symtab): Update.
2042 (start_psymtab): Add partial_symtabs parameter.
2043 (dbx_end_psymtab): Update.
2044 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2045 (ctf_psymtab): Add partial_symtabs parameter.
2046 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2047 Update.
2048 (scan_partial_symbols): Add partial_symtabs parameter.
2049 (scan_partial_symbols, elfctf_build_psymtabs)
2050 (ctf_psymtab_add_enums): Update.
2051
d1eef86d
TT
20522021-03-20 Tom Tromey <tom@tromey.com>
2053
2054 * symfile.c (read_symbols): Use objfile method.
2055 * symfile-debug.c (objfile::require_partial_symbols): New method.
2056 * psymtab.h (require_partial_symbols): Don't declare.
2057 * psymtab.c (require_partial_symbols): Use objfile method. Now
2058 static.
2059 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2060 (psymbol_functions::lookup_symbol)
2061 (psymbol_functions::lookup_global_symbol_language)
2062 (psymbol_functions::find_last_source_symtab)
2063 (psymbol_functions::forget_cached_source_info)
2064 (psymbol_functions::print_stats)
2065 (psymbol_functions::expand_symtabs_for_function)
2066 (psymbol_functions::expand_all_symtabs)
2067 (psymbol_functions::expand_symtabs_with_fullname)
2068 (psymbol_functions::map_symbol_filenames)
2069 (psymbol_functions::map_matching_symbols)
2070 (psymbol_functions::expand_symtabs_matching)
2071 (psymbol_functions::find_compunit_symtab_by_address)
2072 (maintenance_print_psymbols, maintenance_info_psymtabs)
2073 (maintenance_check_psymtabs): Update.
2074 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2075 new method.
2076
eb00e468
TT
20772021-03-20 Tom Tromey <tom@tromey.com>
2078
2079 * xcoffread.c (xcoff_sym_fns): Update.
2080 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2081 * symfile-debug.c (objfile::has_partial_symbols): Use
2082 can_lazily_read_symbols.
2083 (debug_sym_read_psymbols): Remove.
2084 (debug_sym_fns, install_symfile_debug_logging): Update.
2085 * quick-symbol.h (struct quick_symbol_functions)
2086 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2087 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2088 * mipsread.c (ecoff_sym_fns): Update.
2089 * machoread.c (macho_sym_fns): Update.
2090 * elfread.c (struct lazy_dwarf_reader): New.
2091 (elf_symfile_read): Update.
2092 (read_psyms): Now a method of lazy_dwarf_reader.
2093 (elf_sym_fns): Update.
2094 (elf_sym_fns_lazy_psyms): Remove.
2095 * dbxread.c (aout_sym_fns): Update.
2096 * coffread.c (coff_sym_fns): Update.
2097
b29b98cf
TT
20982021-03-20 Tom Tromey <tom@tromey.com>
2099
2100 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2101 (reread_symbols): Move reset_psymtabs call later.
2102 * objfiles.c (objfile::objfile): Don't initialize
2103 partial_symtabs.
2104
17d66340
TT
21052021-03-20 Tom Tromey <tom@tromey.com>
2106
2107 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2108 set_partial_symtabs.
2109 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2110 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2111 parameter.
2112 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2113 parameter.
2114 (psymbol_functions::find_pc_sect_compunit_symtab)
2115 (psymbol_functions::print_stats, psymbol_functions::dump)
2116 (psymbol_functions::has_symbols): Update.
2117 (make_psymbol_functions, dump_psymtab_addrmap): Add
2118 partial_symtabs parameter.
2119 (maintenance_print_psymbols): Update.
2120 (psymbol_functions::expand_symtabs_matching): Update.
2121 * psympriv.h (struct psymbol_functions): Add constructor.
2122 <m_partial_symtabs>: New member.
2123 <set_partial_symtabs>: New method.
2124
84685904
TT
21252021-03-20 Tom Tromey <tom@tromey.com>
2126
2127 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2128 parameter.
2129 (process_psymtab_comp_unit_reader)
2130 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2131 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2132 Reference psymtabs via per_bfd.
2133
79cc99f6
TT
21342021-03-20 Tom Tromey <tom@tromey.com>
2135
2136 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2137 Remove.
2138 (add_address_entry): Remove objfile parameter.
2139 (add_address_entry_worker): Update.
2140 (write_address_map): Replace objfile parameter with per_bfd.
2141 (write_gdbindex, write_psymtabs_to_index): Update.
2142
4829711b
TT
21432021-03-20 Tom Tromey <tom@tromey.com>
2144
2145 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2146 print_bcache parameter.
2147 * symfile-debug.c (objfile::print_stats): Add print_bcache
2148 parameter.
2149 * quick-symbol.h (struct quick_symbol_functions)
2150 <print_stats>: Add print_bcache parameter.
2151 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2152 code to psymtab.c.
2153 (print_objfile_statistics): Move psymtab code to psymtab.c.
2154 * psymtab.c (count_psyms): Move from symmisc.c.
2155 (psymbol_functions::print_stats): Print partial symbol and bcache
2156 statistics. Add print_bcache parameter.
2157 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2158 (struct objfile) <print_stats>: Add print_bcache parameter.
2159 * maint.c (maintenance_print_statistics): Update.
2160
efd7398e
TT
21612021-03-20 Tom Tromey <tom@tromey.com>
2162
2163 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2164 member.
2165 * dwarf2/read.c (create_addrmap_from_index)
2166 (create_addrmap_from_aranges): Set per_bfd addrmap.
2167 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2168 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2169 per_bfd addrmap.
2170 (dwarf2_read_debug_names): Don't set partial_symtabs.
2171 (dwarf2_initialize_objfile): Likewise.
2172
51962708
TT
21732021-03-20 Tom Tromey <tom@tromey.com>
2174
2175 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2176 earlier.
2177
484b1090
TT
21782021-03-20 Tom Tromey <tom@tromey.com>
2179
2180 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2181 (~psymtab_discarder, keep): Update.
2182 <m_objfile>: Remove.
2183 <m_partial_symtabs>: New member.
2184 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2185
7e9c0476
TT
21862021-03-20 Tom Tromey <tom@tromey.com>
2187
2188 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2189 (xcoff_end_psymtab): Update.
2190 (scan_xcoff_symtab): Add partial_symtabs parameter.
2191 (xcoff_initial_scan): Update.
2192 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2193 * mdebugread.c (mdebug_build_psymtabs): Update.
2194 (parse_partial_symbols): Add partial_symtabs parameter.
2195 * dbxread.c (dbx_symfile_read): Update.
2196 (read_dbx_symtab): Add partial_symtabs parameter.
2197 (read_dbx_symtab): Update.
2198 (dbx_end_psymtab): Add partial_symtabs parameter.
2199
75336a5a
TT
22002021-03-20 Tom Tromey <tom@tromey.com>
2201
2202 * quick-symbol.h (struct quick_symbol_functions)
2203 <relocated>: New method.
2204 * psymtab.h (struct psymbol_functions) <relocated>: New
2205 method.
2206 <fill_psymbol_map>: Declare method.
2207 <m_psymbol_map>: New member.
2208 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2209 (psymbol_functions::find_compunit_symtab_by_address): Update.
2210 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2211 (struct objfile) <psymbol_map>: Remove.
2212 * objfiles.c (objfile_relocate1): Update.
2213
39298a5d
TT
22142021-03-20 Tom Tromey <tom@tromey.com>
2215
2216 * psympriv.h (struct psymbol_functions): New.
2217 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2218 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2219 (objfile::lookup_global_symbol_language): Update.
2220 * quick-symbol.h (struct quick_symbol_functions): Convert function
2221 pointers to methods. Add virtual destructor.
2222 (quick_symbol_functions_up): New typedef.
2223 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2224 (dwarf2_debug_names_functions): Don't declare.
2225 (make_psymbol_functions): Declare.
2226 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2227 (psymbol_functions::find_pc_sect_compunit_symtab)
2228 (psymbol_functions::lookup_symbol)
2229 (psymbol_functions::lookup_global_symbol_language)
2230 (psymbol_functions::find_last_source_symtab)
2231 (psymbol_functions::forget_cached_source_info)
2232 (psymbol_functions::print_stats, psymbol_functions::dump)
2233 (psymbol_functions::expand_symtabs_for_function)
2234 (psymbol_functions::expand_all_symtabs)
2235 (psymbol_functions::expand_symtabs_with_fullname)
2236 (psymbol_functions::map_symbol_filenames)
2237 (psymbol_functions::map_matching_symbols)
2238 (psymbol_functions::expand_symtabs_matching)
2239 (psymbol_functions::has_symbols)
2240 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2241 (psym_functions): Remove.
2242 (make_psymbol_functions): New function.
2243 * objfiles.h (struct objfile) <qf>: Change type.
2244 * elfread.c (elf_symfile_read): Update.
2245 * dwarf2/read.c (struct dwarf2_base_index_functions)
2246 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2247 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2248 (dwarf2_base_index_functions::find_last_source_symtab)
2249 (dwarf2_base_index_functions::forget_cached_source_info)
2250 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2251 (dwarf2_gdb_index::lookup_symbol)
2252 (dwarf2_base_index_functions::print_stats)
2253 (dwarf2_gdb_index::dump)
2254 (dwarf2_gdb_index::expand_symtabs_for_function)
2255 (dwarf2_base_index_functions::expand_all_symtabs)
2256 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2257 Rename.
2258 (dwarf2_gdb_index::map_matching_symbols): New method.
2259 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2260 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2261 (dwarf2_base_index_functions::map_symbol_filenames)
2262 (dwarf2_base_index_functions::has_symbols): Rename.
2263 (dwarf2_gdb_index_functions): Remove.
2264 (dwarf2_debug_names_index::lookup_symbol)
2265 (dwarf2_debug_names_index::dump)
2266 (dwarf2_debug_names_index::expand_symtabs_for_function)
2267 (dwarf2_debug_names_index::map_matching_symbols)
2268 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2269 (dwarf2_debug_names_functions): Remove.
2270 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2271 Declare.
2272
5c3f1e5b
TT
22732021-03-20 Tom Tromey <tom@tromey.com>
2274
2275 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2276 null.
2277 * xcoffread.c (xcoff_sym_fns): Update.
2278 * symfile.h (struct sym_fns) <qf>: Remove.
2279 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2280 * symfile-debug.c (objfile::has_partial_symbols)
2281 (objfile::find_last_source_symtab)
2282 (objfile::forget_cached_source_info)
2283 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2284 (objfile::print_stats, objfile::dump)
2285 (objfile::expand_symtabs_for_function)
2286 (objfile::expand_all_symtabs)
2287 (objfile::expand_symtabs_with_fullname)
2288 (objfile::map_matching_symbols)
2289 (objfile::expand_symtabs_matching)
2290 (objfile::find_pc_sect_compunit_symtab)
2291 (objfile::map_symbol_filenames)
2292 (objfile::find_compunit_symtab_by_address)
2293 (objfile::lookup_global_symbol_language, debug_sym_fns)
2294 (install_symfile_debug_logging): Update.
2295 * objfiles.h (struct objfile) <qf>: New member.
2296 * mipsread.c (ecoff_sym_fns): Update.
2297 * machoread.c (macho_sym_fns): Update.
2298 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2299 Don't declare.
2300 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2301 * dbxread.c (aout_sym_fns): Update.
2302 * coffread.c (coff_sym_fns): Update.
2303
9b99dcc8
TT
23042021-03-20 Tom Tromey <tom@tromey.com>
2305
2306 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2307 (expand_symtabs_file_matcher_ftype)
2308 (expand_symtabs_symbol_matcher_ftype)
2309 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2310 Move to quick-symbol.h.
2311 * quick-symbol.h: New file.
2312
4d080b46
TT
23132021-03-20 Tom Tromey <tom@tromey.com>
2314
2315 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2316 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2317 (basic_lookup_transparent_type_quick)
2318 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2319 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2320 Update.
2321 * symmisc.c (print_objfile_statistics, dump_objfile)
2322 (maintenance_expand_symtabs): Update.
2323 * symfile.c (symbol_file_add_with_addrs)
2324 (expand_symtabs_matching, map_symbol_filenames): Update.
2325 * symfile-debug.c (objfile::has_partial_symbols)
2326 (objfile::find_last_source_symtab)
2327 (objfile::forget_cached_source_info)
2328 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2329 (objfile::print_stats, objfile::dump)
2330 (objfile::expand_symtabs_for_function)
2331 (objfile::expand_all_symtabs)
2332 (objfile::expand_symtabs_with_fullname)
2333 (objfile::map_matching_symbols)
2334 (objfile::expand_symtabs_matching)
2335 (objfile::find_pc_sect_compunit_symtab)
2336 (objfile::map_symbol_filenames)
2337 (objfile::find_compunit_symtab_by_address)
2338 (objfile::lookup_global_symbol_language): New methods.
2339 (debug_sym_quick_functions): Remove.
2340 (debug_sym_fns, install_symfile_debug_logging): Update.
2341 * source.c (forget_cached_source_info_for_objfile)
2342 (select_source_symtab): Update.
2343 * objfiles.h (struct objfile): Add methods corresponding to
2344 quick_symbol_functions.
2345 * objfiles.c (objfile::has_partial_symbols): Move to
2346 symfile-debug.c.
2347 * linespec.c (iterate_over_all_matching_symtabs): Update.
2348 * cp-support.c (add_symbol_overload_list_qualified): Update.
2349 * ada-lang.c (add_nonlocal_symbols): Update.
2350
fae2120b
TT
23512021-03-20 Tom Tromey <tom@tromey.com>
2352
2353 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2354 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2355 bool.
2356 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2357 * psymtab.c (psym_has_symbols): Return bool.
2358 * objfiles.c (objfile::has_partial_symbols): Return bool.
2359 * dwarf2/read.c (dw2_has_symbols): Return bool.
2360
a8ad4f3c
TT
23612021-03-20 Tom Tromey <tom@tromey.com>
2362
2363 * symfile.c (read_symbols): Update.
2364 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2365 (objfile_has_partial_symbols): Don't declare.
2366 * objfiles.c (objfile::has_partial_symbols): Rename from
2367 objfile_has_partial_symbols.
2368 (objfile_has_symbols, have_partial_symbols): Update.
2369 * elfread.c (elf_symfile_read): Update.
2370 * dwarf2/read.c (dwarf2_has_info): Update.
2371 * coffread.c (coff_symfile_read): Update.
2372
70182375
TT
23732021-03-20 Tom Tromey <tom@tromey.com>
2374
2375 * coffread.c: Include dwarf2/public.h.
2376 * dwarf2/frame.c: Include dwarf2/public.h.
2377 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2378 * dwarf2/public.h: New file.
2379 * dwarf2/read.c: Include dwarf2/public.h.
2380 * elfread.c: Include dwarf2/public.h.
2381 * machoread.c: Include dwarf2/public.h.
2382 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2383 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2384 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2385 * xcoffread.c: Include dwarf2/public.h.
2386
18038e63
TT
23872021-03-20 Tom Tromey <tom@tromey.com>
2388
2389 * symfile.h (enum dwarf2_section_enum)
2390 (dwarf2_get_section_info): Move to dwarf2/read.h.
2391 * dwarf2/read.h (enum dwarf2_section_enum)
2392 (dwarf2_get_section_info): Move from symfile.h.
2393
219f56b4
PA
23942021-03-19 Pedro Alves <pedro@palves.net>
2395
2396 * thread.c (any_thread_of_inferior): Check if there's a selected
2397 thread before calling inferior_thread().
2398
15310fd4
TT
23992021-03-18 Tom Tromey <tromey@adacore.com>
2400
2401 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2402 get_DW_UT_name.
2403 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2404 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2405
763b8efd
AB
24062021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2407
2408 * python/py-param.c (get_set_value): Update header comment.
2409
f058c521
SM
24102021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2411
2412 * infrun.c (check_multi_target_resumption): Remove argument to
2413 all_non_exited_inferiors.
2414
383228bc
CB
24152021-03-16 Christian Biesinger <cbiesinger@google.com>
2416
2417 * windows-nat.c (windows_init_thread_list): Add message to
2418 debug log.
2419
7807d76a
AB
24202021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2421
2422 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2423 well as PyLong_Check for Python 2.
2424
675da9a5
TT
24252021-03-15 Tom Tromey <tromey@adacore.com>
2426
2427 PR build/27579:
2428 * rust-exp.y (maker_map): Use gdb::hash_enum.
2429 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2430
4800761a
SM
24312021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2432
2433 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2434 end of debug print.
2435
eb5dd737
SM
24362021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2437
2438 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2439 parameter, adjust caller.
2440
6813ceb0
TT
24412021-03-15 Tom Tromey <tromey@adacore.com>
2442
2443 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2444
3b5c4de0
TT
24452021-03-15 Tom Tromey <tromey@adacore.com>
2446
2447 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2448 ada_ensure_varsize_limit.
2449
c04da66c
TT
24502021-03-15 Tom Tromey <tromey@adacore.com>
2451
2452 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2453 fixed-point.
2454 * ada-exp.y (maybe_overload): New function.
2455 (ada_wrap_overload): New function.
2456 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2457 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2458 (or_else_exp, xor_exp, primary): Update.
2459
9863c3b5
TT
24602021-03-15 Tom Tromey <tromey@adacore.com>
2461
2462 PR ada/27545:
2463 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2464 call for tagged type.
2465
1ac74522
TT
24662021-03-15 Tom Tromey <tromey@adacore.com>
2467
2468 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2469 assignment.
2470
207582c0
TT
24712021-03-15 Tom Tromey <tromey@adacore.com>
2472
2473 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2474 container.
2475 (ada_assign_operation::evaluate): Update.
2476 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2477 Change return type.
2478
8d624a9d
FW
24792021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2480
2481 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2482
ba6a0ef3
AB
24832021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2484
2485 * python/python.c (gdbpy_source_objfile_script): Use
2486 make_scoped_restore to restore gdbpy_current_objfile.
2487 (gdbpy_execute_objfile_script): Likewise.
2488
7c290a04
TT
24892021-03-14 Tom Tromey <tom@tromey.com>
2490
2491 * dwarf2/read.c (read_attribute_value): Use cu_header
2492 consistently.
2493
0280fdcc
TT
24942021-03-14 Tom Tromey <tom@tromey.com>
2495
2496 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2497 (peek_die_abbrev): Use reader.abfd.
2498
a9f172c6
TT
24992021-03-14 Tom Tromey <tom@tromey.com>
2500
2501 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2502 m_header_read_in.
2503
7c32eebb
TT
25042021-03-13 Tom Tromey <tom@tromey.com>
2505
2506 * dwarf2/read.c (struct partial_die_info): Update.
2507 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2508 (load_partial_dies, partial_die_info::partial_die_info): Update.
2509 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2510
27012aba
TT
25112021-03-13 Tom Tromey <tom@tromey.com>
2512
2513 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2514
fece451c
CB
25152021-03-12 Christian Biesinger <cbiesinger@google.com>
2516
2517 PR threads/27239
2518 * cp-support.c: Use scoped_segv_handler_restore.
2519 * event-top.c (thread_local_segv_handler): Made static.
2520 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2521 New function.
2522 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2523 function.
2524 * event-top.h (class scoped_segv_handler_restore): New class.
2525 (thread_local_segv_handler): Removed.
2526
7056f312
TT
25272021-03-10 Tom Tromey <tromey@adacore.com>
2528
2529 * parser-defs.h (parser_state): Change completion to bool.
2530 <parse_completion>: Likewise.
2531 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2532 (ada_resolve_variable, ada_resolve_function): Update.
2533 * ada-lang.c (ada_find_operator_symbol): Change
2534 parse_completion to bool.
2535 (ada_resolve_funcall, ada_resolve_variable)
2536 (ada_resolve_function): Likewise.
2537
ccdc02ed
TT
25382021-03-09 Tom Tromey <tromey@adacore.com>
2539
2540 * eval.c (operation::evaluate_funcall): Use function formal
2541 parameter types when evaluating.
2542
fbb1aace
AB
25432021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2546 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2547 and owner to m_owner.
2548
611aa09d
FW
25492021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2550
2551 * f-exp.h (eval_op_f_loc): Declare.
2552 (expr::fortran_loc_operation): New typedef.
2553 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2554 UNOP_INTRINSIC.
2555 (f77_keywords): Add LOC keyword.
2556 * f-lang.c (eval_op_f_loc): New function.
2557 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2558
eef32f59
AB
25592021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2560
2561 * f-exp.h (eval_op_f_array_shape): Declare.
2562 (fortran_array_shape_operation): New type.
2563 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2564 UNOP_INTRINSIC.
2565 (f77_keywords): Add "shape" keyword.
2566 * f-lang.c (fortran_array_shape): New function.
2567 (eval_op_f_array_shape): New function.
2568 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2569
7ba155b3
AB
25702021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2571
2572 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2573 of this function.
2574 (expr::fortran_array_size_1arg): New type.
2575 (expr::fortran_array_size_2arg): Likewise.
2576 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2577 UNOP_OR_BINOP_INTRINSIC.
2578 (f77_keywords): Add "size" keyword.
2579 * f-lang.c (fortran_array_size): New function.
2580 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2581 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2582
e14816a8
AB
25832021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2584
2585 * f-exp.h (eval_op_f_rank): Declare.
2586 (expr::fortran_rank_operation): New typedef.
2587 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2588 UNOP_INTRINSIC.
2589 (f77_keywords): Add "rank" keyword.
2590 * f-lang.c (eval_op_f_rank): New function.
2591 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2592
3dd93bf8
TT
25932021-03-08 Tom Tromey <tom@tromey.com>
2594
2595 * printcmd.c (set_command): Remove null check.
2596 * value.c (init_if_undefined_command): Remove null check.
2597
9c79936b
TT
25982021-03-08 Tom Tromey <tom@tromey.com>
2599
2600 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2601 Update.
2602 * p-exp.y (variable): Update.
2603 * go-exp.y (variable): Update.
2604 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2605 Remove overload for objfile.
2606 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2607 parameter.
2608 (check_objfile): Likewise.
2609 (dump_for_expression): Likewise. Remove overload for objfile.
2610 (class var_msym_value_operation): Use bound_minimal_symbol.
2611 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2612 parameter.
2613 (var_msym_value_operation::evaluate_for_address)
2614 (var_msym_value_operation::evaluate_for_sizeof)
2615 (var_msym_value_operation::evaluate_for_cast): Update.
2616 * d-exp.y (PrimaryExpression): Update.
2617 * c-exp.y (variable): Update.
2618 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2619 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2620 Update.
2621 * ada-exp.y (write_var_or_type): Update.
2622
40d07d07
TT
26232021-03-08 Tom Tromey <tom@tromey.com>
2624
2625 * parser-defs.h (exp_uses_objfile): Return bool.
2626 * parse.c (exp_uses_objfile): Return bool.
2627
0b2b0b82
TT
26282021-03-08 Tom Tromey <tom@tromey.com>
2629
2630 * value.h (eval_skip_value): Don't declare.
2631 * opencl-lang.c (eval_opencl_assign): Update.
2632 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2633 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2634 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2635 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2636 * expop.h (typeof_operation::evaluate)
2637 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2638 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2639 (cxx_cast_operation::evaluate): Update.
2640 * eval.c (eval_skip_value): Remove.
2641 (eval_op_scope, eval_op_var_entry_value)
2642 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2643 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2644 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2645 (eval_op_binary, eval_op_subscript, eval_op_equal)
2646 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2647 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2648 (eval_op_complement, eval_op_lognot, eval_op_ind)
2649 (eval_op_memval, eval_op_preinc, eval_op_predec)
2650 (eval_op_postinc, eval_op_postdec, eval_op_type)
2651 (eval_binop_assign_modify, eval_op_objc_msgcall)
2652 (eval_multi_subscript, logical_and_operation::evaluate)
2653 (logical_or_operation::evaluate, array_operation::evaluate)
2654 (operation::evaluate_for_cast)
2655 (var_msym_value_operation::evaluate_for_cast)
2656 (var_value_operation::evaluate_for_cast): Update.
2657 * c-lang.c (c_string_operation::evaluate): Update.
2658 * c-exp.h (objc_nsstring_operation::evaluate)
2659 (objc_selector_operation::evaluate): Update.
2660 * ada-lang.c (ada_assign_operation::evaluate)
2661 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2662 (ada_atr_size): Update.
2663
96db551d
TT
26642021-03-08 Tom Tromey <tom@tromey.com>
2665
2666 * eval.c: Merge "namespace" scopes.
2667
ce284361
TT
26682021-03-08 Tom Tromey <tom@tromey.com>
2669
2670 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2671 <release>: Inline.
2672 * parse.c (expr_builder::expr_builder, expr_builder::release):
2673 Remove.
2674
b9d06571
TT
26752021-03-08 Tom Tromey <tom@tromey.com>
2676
2677 * parse.c (expression::expression, expression::~expression):
2678 Remove.
2679 * expression.h (struct expression): Inline constructor. Remove
2680 destructor.
2681
79ab486e
TT
26822021-03-08 Tom Tromey <tom@tromey.com>
2683
2684 * std-operator.def (BINOP_END): Remove.
2685 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2686 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2687 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2688 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2689 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2690 BINOP_END.
2691
48fa6f23
TT
26922021-03-08 Tom Tromey <tom@tromey.com>
2693
2694 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2695
43f542e3
TT
26962021-03-08 Tom Tromey <tom@tromey.com>
2697
2698 * std-operator.def (OP_EXTENDED0): Remove.
2699
5d9ba982
TT
27002021-03-08 Tom Tromey <tom@tromey.com>
2701
2702 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2703 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2704 Remove.
2705
d357570d
TT
27062021-03-08 Tom Tromey <tom@tromey.com>
2707
2708 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2709 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2710
0922dc84
TT
27112021-03-08 Tom Tromey <tom@tromey.com>
2712
2713 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2714 * ada-lang.c (ada_binop_minmax): Update.
2715 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2716 Use BINOP_MIN and BINOP_MAX.
2717
1eaebe02
TT
27182021-03-08 Tom Tromey <tom@tromey.com>
2719
2720 * value.h (evaluate_subexp_with_coercion): Don't declare.
2721 * parse.c (exp_descriptor_standard): Remove.
2722 (expr_builder::expr_builder, expr_builder::release): Update.
2723 (expression::expression): Remove size_t parameter.
2724 (expression::~expression): Simplify.
2725 (expression::resize): Remove.
2726 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2727 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2728 (write_exp_elt_longcst, write_exp_elt_floatcst)
2729 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2730 (write_exp_string_vector, write_exp_bitstring): Remove.
2731 * p-lang.h (class pascal_language) <opcode_print_table,
2732 op_print_tab>: Remove.
2733 * p-lang.c (pascal_language::op_print_tab): Remove.
2734 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2735 Remove.
2736 * objc-lang.c (objc_op_print_tab): Remove.
2737 (class objc_language) <opcode_print_table>: Remove.
2738 * m2-lang.h (class m2_language) <opcode_print_table,
2739 op_print_tab>: Remove.
2740 * m2-lang.c (m2_language::op_print_tab): Remove.
2741 * language.h (struct language_defn) <post_parser, expression_ops,
2742 opcode_print_table>: Remove.
2743 * language.c (language_defn::expression_ops)
2744 (auto_or_unknown_language::opcode_print_table): Remove.
2745 * go-lang.h (class go_language) <opcode_print_table,
2746 op_print_tab>: Remove.
2747 * go-lang.c (go_language::op_print_tab): Remove.
2748 * f-lang.h (class f_language) <opcode_print_table>: Remove
2749 <op_print_tab>: Remove.
2750 * f-lang.c (f_language::op_print_tab): Remove.
2751 * expression.h (union exp_element): Remove.
2752 (struct expression): Remove size_t parameter from constructor.
2753 <resize>: Remove.
2754 <first_opcode>: Update.
2755 <nelts, elts>: Remove.
2756 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2757 (evaluate_subexp_standard, print_expression, op_string)
2758 (dump_raw_expression): Don't declare.
2759 * expprint.c (print_expression, print_subexp)
2760 (print_subexp_funcall, print_subexp_standard, op_string)
2761 (dump_raw_expression, dump_subexp, dump_subexp_body)
2762 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2763 (dump_prefix_expression): Update.
2764 * eval.c (evaluate_subexp): Remove.
2765 (evaluate_expression, evaluate_type): Update.
2766 (evaluate_subexpression_type): Remove.
2767 (fetch_subexp_value): Remove "pc" parameter. Update.
2768 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2769 (evaluate_subexp_standard, evaluate_subexp_for_address)
2770 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2771 (evaluate_subexp_for_cast): Remove.
2772 (parse_and_eval_type): Update.
2773 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2774 * d-lang.c (d_op_print_tab): Remove.
2775 (class d_language) <opcode_print_table>: Remove.
2776 * c-lang.h (c_op_print_tab): Don't declare.
2777 * c-lang.c (c_op_print_tab): Remove.
2778 (class c_language, class cplus_language, class asm_language, class
2779 minimal_language) <opcode_print_table>: Remove.
2780 * breakpoint.c (update_watchpoint, watchpoint_check)
2781 (watchpoint_exp_is_const, watch_command_1): Update.
2782 * ax-gdb.h (union exp_element): Don't declare.
2783 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2784 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2785 (gen_expr_binop_rest): Remove.
2786 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2787 * ada-lang.c (ada_op_print_tab): Remove.
2788 (class ada_language) <post_parser, opcode_print_table>: Remove.
2789
f2a98603
TT
27902021-03-08 Tom Tromey <tom@tromey.com>
2791
2792 * go-lang.c (go_language::expression_ops): Don't declare.
2793 * go-lang.h (class go_language) <expression_ops>: Remove.
2794 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2795 Remove.
2796 (class opencl_language) <expression_ops>: Remove.
2797 * d-lang.c (class d_language) <expression_ops>: Remove.
2798 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2799 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2800 (class c_language, class cplus_language, class asm_language)
2801 (class minimal_language) <expression_ops>: Remove.
2802
d3c54a1c
TT
28032021-03-08 Tom Tromey <tom@tromey.com>
2804
2805 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2806 (evaluate_subexp_type, assign_aggregate)
2807 (aggregate_assign_positional, aggregate_assign_from_choices)
2808 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2809 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2810 (ada_operator_check, ada_forward_operator_length)
2811 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2812 Remove.
2813 (post_parser): Update.
2814 (class ada_language) <expresssion_ops>: Remove.
2815
5871f0a3
TT
28162021-03-08 Tom Tromey <tom@tromey.com>
2817
2818 * m2-lang.h (class m2_language) <expresssion_ops,
2819 exp_descriptor_modula2>: Remove.
2820 * m2-lang.c (evaluate_subexp_modula2)
2821 (m2_language::exp_descriptor_modula2): Remove.
2822
a99be8c1
TT
28232021-03-08 Tom Tromey <tom@tromey.com>
2824
2825 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2826 <exp_descriptor_tab>: Remove.
2827 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2828 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2829 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2830 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2831 Remove.
2832
aa1da9ed
TT
28332021-03-08 Tom Tromey <tom@tromey.com>
2834
2835 * rust-lang.h (class rust_language) <expression_ops,
2836 exp_descriptor_tab>: Remove.
2837 * rust-lang.c (rust_evaluate_funcall): Remove.
2838 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2839 EVAL_SKIP.
2840 (rust_evaluate_subexp): Remove.
2841 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2842 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2843 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2844
08a057e6
TT
28452021-03-08 Tom Tromey <tom@tromey.com>
2846
2847 * ada-exp.y: Create operations.
2848 (empty_stoken): Remove.
2849 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2850 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2851 (components): New global.
2852 (push_component, choice_component, pop_component, pop_components):
2853 New functions.
2854 (associations): New global
2855 (push_association, pop_association, pop_associations): New
2856 functions.
2857 (ada_parse): Update.
2858 (write_var_from_sym, write_int): Create operations.
2859 (write_exp_op_with_string): Remove.
2860 (write_object_renaming, write_selectors, write_ambiguous_var)
2861 (write_var_or_type, write_name_assoc): Create operations.
2862 * ada-lang.h (ada_index_type): Declare.
2863 * ada-lang.c (ada_index_type): No longer static.
2864
d308ba78
TT
28652021-03-08 Tom Tromey <tom@tromey.com>
2866
2867 * f-exp.y: Create operations.
2868 (f_language::parser): Update.
2869
f1b8ceef
TT
28702021-03-08 Tom Tromey <tom@tromey.com>
2871
2872 * m2-exp.y: Create operations.
2873 (m2_language::parser): Update.
2874
3163898e
TT
28752021-03-08 Tom Tromey <tom@tromey.com>
2876
2877 * p-exp.y: Create operations.
2878 (pascal_language::parser): Update.
2879
9412fdcc
TT
28802021-03-08 Tom Tromey <tom@tromey.com>
2881
2882 * d-exp.y: Create operations.
2883 (d_parse): Update.
2884
bb4e0574
TT
28852021-03-08 Tom Tromey <tom@tromey.com>
2886
2887 * go-exp.y: Create operations.
2888 (go_language::parser): Update.
2889
d182f279
TT
28902021-03-08 Tom Tromey <tom@tromey.com>
2891
2892 * objc-lang.c (end_msglist): Create operations.
2893 * c-exp.y: Change parser to create operations.
2894 (write_destructor_name): Remove.
2895 (c_parse): Update.
2896
c1299a23
TT
28972021-03-08 Tom Tromey <tom@tromey.com>
2898
2899 * rust-exp.y: Create operations.
2900 (rust_parser::convert_params_to_expression): Change return type.
2901 (binop_maker_ftype): New typedef.
2902 (maker_map): New global.
2903 (rust_parser::convert_ast_to_expression): Change return type.
2904 (rust_language::parser): Update.
2905 (_initialize_rust_exp): Initialize maker_map.
2906
4c5e7a93
TT
29072021-03-08 Tom Tromey <tom@tromey.com>
2908
2909 * stap-probe.c (binop_maker_ftype): New typedef.
2910 (stap_maker_map): New global.
2911 (stap_make_binop): New function.
2912 (stap_parse_register_operand): Return operation_up.
2913 (stap_parse_single_operand, stap_parse_argument_conditionally)
2914 (stap_parse_argument_1): Likewise.
2915 (stap_parse_argument): Create operations.
2916 (stap_probe::parse_arguments): Update.
2917 (_initialize_stap_probe): Initialize stap_maker_map.
2918 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2919 type.
2920 * i386-tdep.h (i386_stap_parse_special_token): Change return
2921 type.
2922 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2923 (i386_stap_parse_special_token_three_arg_disp)
2924 (i386_stap_parse_special_token): Change return type.
2925 * gdbarch.sh (stap_parse_special_token): Change return type.
2926 * gdbarch.c: Rebuild.
2927 * gdbarch.h: Rebuild.
2928 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2929 type.
2930 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2931 return type.
2932
482ddd69
TT
29332021-03-08 Tom Tromey <tom@tromey.com>
2934
2935 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2936 * gdbarch.h: Rebuild.
2937 * gdbarch.c: Rebuild.
2938 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2939 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2940 return type.
2941 (amd64_dtrace_parse_probe_argument): Update.
2942
8227d9e2
TT
29432021-03-08 Tom Tromey <tom@tromey.com>
2944
2945 * parser-defs.h (struct parser_state) <push, push_new,
2946 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2947 wrap2>: New methods.
2948 <m_operations>: New member.
2949 * parse.c (parser_state::push_c_string)
2950 (parser_state::push_symbol, parser_state::push_dollar): New
2951 methods.
2952
4933522d
TT
29532021-03-08 Tom Tromey <tom@tromey.com>
2954
2955 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2956 New member.
2957 (struct parser_state) <mark_struct_expression>: New method.
2958 * parse.c (parser_state::mark_struct_expression): Update assert.
2959 (parser_state::mark_struct_expression): New method.
2960 (parser_state::mark_completion_tag): Update assert.
2961 (parse_expression_for_completion): Handle expout_last_op.
2962
413403fc
TT
29632021-03-08 Tom Tromey <tom@tromey.com>
2964
2965 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2966 now in superclass.
2967 * value.h (fetch_subexp_value): Add "op" parameter.
2968 * value.c (init_if_undefined_command): Update.
2969 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2970 * stap-probe.c (stap_probe::compile_to_ax): Update.
2971 * printcmd.c (set_command): Update.
2972 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2973 Update.
2974 * parser-defs.h (struct expr_builder) <set_operation>: New
2975 method.
2976 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2977 * expression.h (struct expression) <first_opcode>: Update.
2978 <op>: New member.
2979 * expprint.c (dump_raw_expression, dump_prefix_expression):
2980 Update.
2981 * expop.h (class var_value_operation) <get_symbol>: New method.
2982 (class register_operation) <get_name>: New method.
2983 (class equal_operation): No longer a typedef, now a subclass.
2984 (class unop_memval_operation) <get_type>: New method.
2985 (class assign_operation) <get_lhs>: New method.
2986 (class unop_cast_operation) <get_type>: New method.
2987 * eval.c (evaluate_expression, evaluate_type)
2988 (evaluate_subexpression_type): Update.
2989 (fetch_subexp_value): Add "op" parameter.
2990 (parse_and_eval_type): Update.
2991 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2992 * breakpoint.c (update_watchpoint, watchpoint_check)
2993 (watchpoint_exp_is_const, watch_command_1): Update.
2994 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2995 Update.
2996
b0f9164c
TT
29972021-03-08 Tom Tromey <tom@tromey.com>
2998
2999 * ada-lang.c (ada_value_binop): Do not use op_string.
3000
a88c4354
TT
30012021-03-08 Tom Tromey <tom@tromey.com>
3002
3003 * expprint.c (dump_for_expression): New overload.
3004 * expop.h (check_objfile, dump_for_expression): Declare new
3005 overloads.
3006 * ada-lang.c (check_objfile): New overload.
3007 (assign_component, ada_aggregate_component::uses_objfile)
3008 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3009 (ada_aggregate_component::assign_aggregate)
3010 (ada_positional_component::uses_objfile)
3011 (ada_positional_component::dump, ada_positional_component::assign)
3012 (ada_discrete_range_association::uses_objfile)
3013 (ada_discrete_range_association::dump)
3014 (ada_discrete_range_association::assign)
3015 (ada_name_association::uses_objfile, ada_name_association::dump)
3016 (ada_name_association::assign)
3017 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3018 (ada_choices_component::assign)
3019 (ada_others_component::uses_objfile, ada_others_component::dump)
3020 (ada_others_component::assign, ada_assign_operation::evaluate):
3021 New methods.
3022 * ada-exp.h (ada_string_operation) <get_name>: New method.
3023 (class ada_assign_operation): New.
3024 (class ada_component): New.
3025 (ada_component_up): New typedef.
3026 (class ada_aggregate_operation, class ada_aggregate_component)
3027 (class ada_positional_component, class ada_others_component)
3028 (class ada_association): New.
3029 (ada_association_up): New typedef.
3030 (class ada_choices_component)
3031 (class ada_discrete_range_association)
3032 (class ada_name_association): New.
3033
d8a4ed8a
TT
30342021-03-08 Tom Tromey <tom@tromey.com>
3035
3036 * ada-lang.c (ada_var_value_operation::resolve)
3037 (ada_funcall_operation::resolve)
3038 (ada_ternop_slice_operation::resolve): New methods.
3039 * ada-exp.h (struct ada_resolvable): New.
3040 (class ada_var_value_operation): Derive from ada_resolvable.
3041 <get_block, resolve>: New methods.
3042 (class ada_funcall_operation): Derive from ada_resolvable.
3043 <resolve>: New method.
3044 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3045 <resolve>: New method.
3046
efe3af2f
TT
30472021-03-08 Tom Tromey <tom@tromey.com>
3048
3049 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3050 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3051 method.
3052 (class ada_funcall_operation): New.
3053
ebc06ad8
TT
30542021-03-08 Tom Tromey <tom@tromey.com>
3055
3056 * ada-lang.c (ada_structop_operation::evaluate): New method.
3057 * ada-exp.h (class ada_structop_operation): New.
3058
e8c33fa1
TT
30592021-03-08 Tom Tromey <tom@tromey.com>
3060
3061 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3062 * ada-exp.h (class ada_unop_ind_operation): New.
3063
065ec826
TT
30642021-03-08 Tom Tromey <tom@tromey.com>
3065
3066 * ada-lang.c (ada_binop_exp): No longer static.
3067 * ada-exp.h (ada_binop_exp_operation): New typedef.
3068
9e99f48f
TT
30692021-03-08 Tom Tromey <tom@tromey.com>
3070
3071 * ada-lang.c (ada_val_atr): No longer static.
3072 (ada_atr_val_operation::evaluate): New method.
3073 * ada-exp.h (class ada_atr_val_operation): New.
3074
7631cf6c
TT
30752021-03-08 Tom Tromey <tom@tromey.com>
3076
3077 * ada-lang.c (ada_pos_atr): No longer static.
3078 * ada-exp.h (ada_pos_operation): New typedef.
3079
7992accc
TT
30802021-03-08 Tom Tromey <tom@tromey.com>
3081
3082 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3083 parameters.
3084 (ada_evaluate_subexp): Use it.
3085
6ad3b8bf
TT
30862021-03-08 Tom Tromey <tom@tromey.com>
3087
3088 * ada-lang.c (ada_binop_minmax): No longer static.
3089 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3090 New typedefs.
3091
3f4a0053
TT
30922021-03-08 Tom Tromey <tom@tromey.com>
3093
3094 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3095 New method.
3096 * ada-exp.h (class ada_var_msym_value_operation): New.
3097
99a3b1e7
TT
30982021-03-08 Tom Tromey <tom@tromey.com>
3099
3100 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3101 (ada_var_value_operation::evaluate): New methods.
3102 * ada-exp.h (class ada_var_value_operation): New.
3103
60fa02ca
TT
31042021-03-08 Tom Tromey <tom@tromey.com>
3105
3106 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3107 * ada-exp.h (class ada_unop_atr_operation): New.
3108
82c3886e
TT
31092021-03-08 Tom Tromey <tom@tromey.com>
3110
3111 * ada-lang.c (ada_binop_in_bounds): No longer static.
3112 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3113
1b1ebfab
TT
31142021-03-08 Tom Tromey <tom@tromey.com>
3115
3116 * ada-lang.c (ada_ternop_slice): No longer static.
3117 * ada-exp.h (class ada_ternop_slice_operation): New.
3118
039e4b76
TT
31192021-03-08 Tom Tromey <tom@tromey.com>
3120
3121 * ada-exp.h (ada_bitwise_operation): New template class.
3122 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3123 (ada_bitwise_xor_operation): New typedefs.
3124
6e8fb7b7
TT
31252021-03-08 Tom Tromey <tom@tromey.com>
3126
3127 * ada-lang.c (ada_equal_binop): No longer static.
3128 * ada-exp.h (class ada_binop_equal_operation): New.
3129
d9e7db06
TT
31302021-03-08 Tom Tromey <tom@tromey.com>
3131
3132 * ada-lang.c (ada_mult_binop): No longer static.
3133 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3134 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3135
73796c73
TT
31362021-03-08 Tom Tromey <tom@tromey.com>
3137
3138 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3139 * ada-exp.h (class ada_binop_addsub_operation): New.
3140
cd9a3148
TT
31412021-03-08 Tom Tromey <tom@tromey.com>
3142
3143 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3144 (ada_resolve_variable): Declare.
3145 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3146 (ada_resolve_variable): New functions.
3147 (resolve_subexp): Update.
3148
cf12b17f
TT
31492021-03-08 Tom Tromey <tom@tromey.com>
3150
3151 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3152 method.
3153 * c-exp.h (class opencl_ternop_cond_operation): New.
3154
944fd3b8
TT
31552021-03-08 Tom Tromey <tom@tromey.com>
3156
3157 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3158 method.
3159 * c-exp.h (class opencl_logical_binop_operation): New.
3160
33b79214
TT
31612021-03-08 Tom Tromey <tom@tromey.com>
3162
3163 * opencl-lang.c (opencl_structop_operation::evaluate): New
3164 method.
3165 * c-exp.h (class opencl_structop_operation): New.
3166
2492ba36
TT
31672021-03-08 Tom Tromey <tom@tromey.com>
3168
3169 * opencl-lang.c (opencl_logical_not): No longer static. Change
3170 parameters.
3171 (evaluate_subexp_opencl): Update.
3172 * c-exp.h (opencl_notequal_operation): New typedef.
3173
a88c3c8d
TT
31742021-03-08 Tom Tromey <tom@tromey.com>
3175
3176 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3177 static. Change parameters.
3178 (eval_opencl_assign): No longer static. Add "op" parameter.
3179 (evaluate_subexp_opencl): Update.
3180 * c-exp.h (opencl_binop_operation): New template class.
3181 (opencl_assign_operation, opencl_equal_operation)
3182 (opencl_notequal_operation, opencl_less_operation)
3183 (opencl_gtr_operation, opencl_geq_operation)
3184 (opencl_leq_operation): New typedefs.
3185
e9677704
TT
31862021-03-08 Tom Tromey <tom@tromey.com>
3187
3188 * opencl-lang.c (opencl_value_cast): No longer static.
3189 * c-exp.h (opencl_cast_type_operation): New typedef.
3190
f403a4e4
TT
31912021-03-08 Tom Tromey <tom@tromey.com>
3192
3193 * f-exp.h (eval_op_f_allocated): Declare.
3194 (fortran_allocated_operation): New typedef.
3195 * f-lang.c (eval_op_f_allocated): No longer static.
3196
eb4c9271
TT
31972021-03-08 Tom Tromey <tom@tromey.com>
3198
3199 * f-lang.c (eval_op_f_associated): New functions.
3200 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3201 typedefs.
3202
58a76c72
TT
32032021-03-08 Tom Tromey <tom@tromey.com>
3204
3205 * f-lang.c (fortran_bound_1arg::evaluate)
3206 (fortran_bound_2arg::evaluate): New methods.
3207 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3208 New.
3209
2f98abe1
TT
32102021-03-08 Tom Tromey <tom@tromey.com>
3211
3212 * expop.h (class unop_addr_operation) <get_expression>: New
3213 method.
3214 * f-lang.c (fortran_undetermined::value_subarray)
3215 (fortran_undetermined::evaluate): New methods.
3216 (fortran_prepare_argument): New overload.
3217 * f-exp.h (class fortran_range_operation)
3218 (class fortran_undetermined): New classes.
3219
638fd74a
TT
32202021-03-08 Tom Tromey <tom@tromey.com>
3221
3222 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3223 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3224 method.
3225
a00b7254
TT
32262021-03-08 Tom Tromey <tom@tromey.com>
3227
3228 * expression.h (class operation) <evaluate_funcall>: New methods.
3229 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3230 (class var_value_operation) <evaluate_funcall>: New method.
3231 (class structop_base_operation) <evaluate_funcall>: New method.
3232 (class var_msym_value_operation) <evaluate_funcall>: New method.
3233 (class structop_member_base): New class.
3234 (class structop_member_operation): Derive from
3235 structop_member_base.
3236 (class structop_mptr_operation): Derive from
3237 structop_member_base.
3238 (class funcall_operation): New class.
3239 * eval.c (operation::evaluate_funcall)
3240 (var_value_operation::evaluate_funcall)
3241 (scope_operation::evaluate_funcall)
3242 (structop_member_base::evaluate_funcall)
3243 (structop_base_operation::evaluate_funcall): New methods.
3244
1c02eb30
TT
32452021-03-08 Tom Tromey <tom@tromey.com>
3246
3247 * expop.h (class array_operation): New.
3248 * eval.c (array_operation::evaluate_struct_tuple)
3249 (array_operation::evaluate): New methods.
3250
e4479080
TT
32512021-03-08 Tom Tromey <tom@tromey.com>
3252
3253 * expop.h (class adl_func_operation): New.
3254 * eval.c (adl_func_operation::evaluate): New method.
3255
95d49dfb
TT
32562021-03-08 Tom Tromey <tom@tromey.com>
3257
3258 * ada-lang.c (ada_unop_in_range): No longer static.
3259 * ada-exp.h (class ada_unop_range_operation): New.
3260
7c15d377
TT
32612021-03-08 Tom Tromey <tom@tromey.com>
3262
3263 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3264 No longer static.
3265 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3266 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3267
5019124b
TT
32682021-03-08 Tom Tromey <tom@tromey.com>
3269
3270 * expop.h (class logical_and_operation)
3271 (class logical_or_operation): New.
3272 * eval.c (logical_and_operation::evaluate)
3273 (logical_or_operation::evaluate): New methods.
3274 * ax-gdb.c (logical_and_operation::do_generate_ax)
3275 (logical_or_operation::do_generate_ax): New methods.
3276
2bc9b40c
TT
32772021-03-08 Tom Tromey <tom@tromey.com>
3278
3279 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3280 static.
3281 * m2-exp.h: New file.
3282
5947d337
TT
32832021-03-08 Tom Tromey <tom@tromey.com>
3284
3285 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3286 * rust-exp.h (class rust_aggregate_operation): New.
3287
e4407a20
TT
32882021-03-08 Tom Tromey <tom@tromey.com>
3289
3290 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3291 No longer static.
3292 * rust-exp.h (class rust_struct_anon): New.
3293 (class rust_structop): New.
3294
9db6b6dd
TT
32952021-03-08 Tom Tromey <tom@tromey.com>
3296
3297 * rust-lang.c (rust_range): No longer static.
3298 * rust-exp.h (class rust_range_operation): New.
3299
6ce1ad67
TT
33002021-03-08 Tom Tromey <tom@tromey.com>
3301
3302 * rust-lang.c (rust_subscript): No longer static.
3303 * rust-exp.h (class rust_subscript_operation): New.
3304
11dd3dce
TT
33052021-03-08 Tom Tromey <tom@tromey.com>
3306
3307 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3308 parameter.
3309 (rust_evaluate_subexp): Update.
3310 * rust-exp.h (class rust_unop_ind_operation): New.
3311
6fab4359
TT
33122021-03-08 Tom Tromey <tom@tromey.com>
3313
3314 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3315 longer static. Add "opcode" parameter.
3316 (rust_evaluate_subexp): Update.
3317 * rust-exp.h: New file.
3318
9dcd3e29
TT
33192021-03-08 Tom Tromey <tom@tromey.com>
3320
3321 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3322 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3323 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3324 (evaluate_subexp_f): Update.
3325 * f-exp.h: New file.
3326
fc715eb2
TT
33272021-03-08 Tom Tromey <tom@tromey.com>
3328
3329 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3330 * ada-exp.h (class ada_ternop_range_operation): New.
3331
cc6bd32e
TT
33322021-03-08 Tom Tromey <tom@tromey.com>
3333
3334 * ada-lang.c (ada_qual_operation::evaluate): New method.
3335 * ada-exp.h (class ada_qual_operation): New.
3336
42fecb61
TT
33372021-03-08 Tom Tromey <tom@tromey.com>
3338
3339 * ada-lang.c (ada_string_operation::evaluate): New method.
3340 * ada-exp.h (class ada_string_operation): New.
3341
03070ee9
TT
33422021-03-08 Tom Tromey <tom@tromey.com>
3343
3344 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3345 * ada-exp.h: New file.
3346
821e72d7
TT
33472021-03-08 Tom Tromey <tom@tromey.com>
3348
3349 * expop.h (class multi_subscript_operation): New.
3350 * eval.c (multi_subscript_operation::evaluate): New method.
3351
085734dd
TT
33522021-03-08 Tom Tromey <tom@tromey.com>
3353
3354 * eval.c (objc_msgcall_operation::evaluate): New method.
3355 * c-exp.h (class objc_msgcall_operation): New.
3356
e82a5afc
TT
33572021-03-08 Tom Tromey <tom@tromey.com>
3358
3359 * expop.h (class var_value_operation): New.
3360 * eval.c (var_value_operation::evaluate)
3361 (var_value_operation::evaluate_for_address)
3362 (var_value_operation::evaluate_with_coercion)
3363 (var_value_operation::evaluate_for_sizeof)
3364 (var_value_operation::evaluate_for_cast): New methods.
3365 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3366
d9ad79d8
TT
33672021-03-08 Tom Tromey <tom@tromey.com>
3368
3369 * expop.h (cxx_cast_ftype): New typedef.
3370 (cxx_cast_operation): New template.
3371 (dynamic_cast_operation, reinterpret_cast_operation): New
3372 typedefs.
3373
292382f4
TT
33742021-03-08 Tom Tromey <tom@tromey.com>
3375
3376 * expop.h (class unop_cast_type_operation): New.
3377 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3378 method.
3379
165a813a
TT
33802021-03-08 Tom Tromey <tom@tromey.com>
3381
3382 * expop.h (class unop_cast_operation): New.
3383 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3384
e5946e16
TT
33852021-03-08 Tom Tromey <tom@tromey.com>
3386
3387 * expop.h (class assign_modify_operation): New.
3388 * eval.c (eval_binop_assign_modify): No longer static.
3389 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3390
40786782
TT
33912021-03-08 Tom Tromey <tom@tromey.com>
3392
3393 * expop.h (class assign_operation): New.
3394 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3395
44b675c8
TT
33962021-03-08 Tom Tromey <tom@tromey.com>
3397
3398 * expop.h (class type_instance_operation): New.
3399 * eval.c (type_instance_operation::evaluate): New method.
3400
f6b42326
TT
34012021-03-08 Tom Tromey <tom@tromey.com>
3402
3403 * expop.h (class op_this_operation): New.
3404 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3405
cbc18219
TT
34062021-03-08 Tom Tromey <tom@tromey.com>
3407
3408 * expop.h (class unop_memval_operation)
3409 (class unop_memval_type_operation): New.
3410 * eval.c (eval_op_memval): No longer static.
3411 (unop_memval_operation::evaluate_for_address)
3412 (unop_memval_type_operation::evaluate_for_address)
3413 (unop_memval_operation::evaluate_for_sizeof)
3414 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3415 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3416 (unop_memval_type_operation::do_generate_ax): New methods.
3417
ae4bb61e
TT
34182021-03-08 Tom Tromey <tom@tromey.com>
3419
3420 * expop.h (class unop_alignof_operation): New.
3421 * eval.c (eval_op_alignof): No longer static.
3422
85d23bda
TT
34232021-03-08 Tom Tromey <tom@tromey.com>
3424
3425 * expop.h (class unop_sizeof_operation): New.
3426 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3427
14aff815
TT
34282021-03-08 Tom Tromey <tom@tromey.com>
3429
3430 * expop.h (class unop_addr_operation): New.
3431 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3432
929f3aa7
TT
34332021-03-08 Tom Tromey <tom@tromey.com>
3434
3435 * expop.h (class typeid_operation): New.
3436
0af8829e
TT
34372021-03-08 Tom Tromey <tom@tromey.com>
3438
3439 * expop.h (class decltype_operation): New.
3440
4efc574c
TT
34412021-03-08 Tom Tromey <tom@tromey.com>
3442
3443 * expop.h (class typeof_operation): New.
3444
5b5f5140
TT
34452021-03-08 Tom Tromey <tom@tromey.com>
3446
3447 * expop.h (class type_operation): New.
3448 * eval.c (eval_op_type): No longer static.
3449
876469ff
TT
34502021-03-08 Tom Tromey <tom@tromey.com>
3451
3452 * expop.h (class unop_ind_base_operation)
3453 (class unop_ind_operation): New.
3454 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3455 (unop_ind_base_operation::evaluate_for_address)
3456 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3457 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3458
6d89e296
TT
34592021-03-08 Tom Tromey <tom@tromey.com>
3460
3461 * expop.h (unop_incr_operation): New template.
3462 (preinc_operation, predec_operation, postinc_operation)
3463 (postdec_operation): New typedefs.
3464 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3465 (eval_op_postdec): No longer static.
3466
9307d17b
TT
34672021-03-08 Tom Tromey <tom@tromey.com>
3468
3469 * expop.h (unary_ftype): New typedef.
3470 (unop_operation, usual_ax_binop_operation): New templates.
3471 (unary_plus_operation, unary_neg_operation)
3472 (unary_complement_operation, unary_logical_not_operation): New
3473 typedefs.
3474 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3475 (eval_op_lognot): No longer static.
3476 * ax-gdb.c (gen_expr_unop): New function.
3477
ae64ba58
TT
34782021-03-08 Tom Tromey <tom@tromey.com>
3479
3480 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3481
d4eff4c1
TT
34822021-03-08 Tom Tromey <tom@tromey.com>
3483
3484 * expop.h (class repeat_operation): New.
3485 * eval.c (eval_op_repeat): No longer static. Remove "op"
3486 parameter.
3487 (evaluate_subexp_standard): Update.
3488 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3489
46916f2b
TT
34902021-03-08 Tom Tromey <tom@tromey.com>
3491
3492 * expop.h (class comparison_operation): New.
3493 (equal_operation, notequal_operation, less_operation)
3494 (gtr_operation, geq_operation, leq_operation): New typedefs.
3495 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3496 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3497
224d6424
TT
34982021-03-08 Tom Tromey <tom@tromey.com>
3499
3500 * expop.h (class subscript_operation): New.
3501 * eval.c (eval_op_subscript): No longer static.
3502
373907ff
TT
35032021-03-08 Tom Tromey <tom@tromey.com>
3504
3505 * expop.h (class binop_operation, class usual_ax_binop_operation):
3506 New.
3507 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3508 (div_operation, rem_operation, lsh_operation, rsh_operation)
3509 (bitwise_and_operation, bitwise_ior_operation)
3510 (bitwise_xor_operation): New typedefs.
3511 * eval.c (eval_op_binary): No longer static.
3512
5133d78b
TT
35132021-03-08 Tom Tromey <tom@tromey.com>
3514
3515 * expop.h (class sub_operation): New.
3516 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3517 (evaluate_subexp_standard): Update.
3518
a94323b6
TT
35192021-03-08 Tom Tromey <tom@tromey.com>
3520
3521 * expop.h (class add_operation): New.
3522 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3523 (evaluate_subexp_standard): Update.
3524
e51e26a0
TT
35252021-03-08 Tom Tromey <tom@tromey.com>
3526
3527 * expop.h (class concat_operation): New.
3528 * eval.c (eval_op_concat): No longer static. Remove "op"
3529 parameter.
3530 (evaluate_subexp_standard): Update.
3531
07f724a8
TT
35322021-03-08 Tom Tromey <tom@tromey.com>
3533
3534 * expop.h (class structop_member_operation)
3535 (class structop_mptr_operation): New.
3536 * eval.c (eval_op_member): No longer static.
3537
ab0609be
TT
35382021-03-08 Tom Tromey <tom@tromey.com>
3539
3540 * expop.h (class structop_ptr_operation): New.
3541 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3542 parameter.
3543
808b22cf
TT
35442021-03-08 Tom Tromey <tom@tromey.com>
3545
3546 * expop.h (class structop_base_operation)
3547 (class structop_operation): New.
3548 * eval.c (eval_op_structop_struct): No longer static.
3549
8cfd3e95
TT
35502021-03-08 Tom Tromey <tom@tromey.com>
3551
3552 * expop.h (class complex_operation): New.
3553
09db3700
TT
35542021-03-08 Tom Tromey <tom@tromey.com>
3555
3556 * eval.c (eval_op_objc_selector): No longer static.
3557 * c-exp.h (class objc_selector_operation): New.
3558
06dc61b9
TT
35592021-03-08 Tom Tromey <tom@tromey.com>
3560
3561 * eval.c: Include c-exp.h.
3562 * c-exp.h (class objc_nsstring_operation): New.
3563
72d0a711
TT
35642021-03-08 Tom Tromey <tom@tromey.com>
3565
3566 * c-lang.c (c_string_operation::evaluate): New method.
3567 * c-exp.h: New file.
3568
9186293f
TT
35692021-03-08 Tom Tromey <tom@tromey.com>
3570
3571 * expop.h (class ternop_cond_operation): New.
3572 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3573
1594e0bb
TT
35742021-03-08 Tom Tromey <tom@tromey.com>
3575
3576 * expop.h (class ternop_slice_operation): New.
3577 * eval.c (eval_op_ternop): No longer static.
3578
b50db09f
TT
35792021-03-08 Tom Tromey <tom@tromey.com>
3580
3581 * expop.h (class string_operation): New.
3582 * eval.c (eval_op_string): No longer static.
3583
e6e01e16
TT
35842021-03-08 Tom Tromey <tom@tromey.com>
3585
3586 * expop.h (class internalvar_operation): New.
3587 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3588
e6985c5e
TT
35892021-03-08 Tom Tromey <tom@tromey.com>
3590
3591 * expop.h (class bool_operation): New.
3592
55bdbff8
TT
35932021-03-08 Tom Tromey <tom@tromey.com>
3594
3595 * expop.h (class register_operation): New.
3596 * eval.c (eval_op_register): No longer static.
3597 * ax-gdb.c (register_operation::do_generate_ax): New method.
3598
247d935b
TT
35992021-03-08 Tom Tromey <tom@tromey.com>
3600
3601 * expop.h (class last_operation): New.
3602
17679395
TT
36032021-03-08 Tom Tromey <tom@tromey.com>
3604
3605 * expop.h (class func_static_var_operation): New.
3606 * eval.c (eval_op_func_static_var): No longer static.
3607
b5cc3923
TT
36082021-03-08 Tom Tromey <tom@tromey.com>
3609
3610 * expop.h (class var_entry_value_operation): New.
3611 * eval.c (eval_op_var_entry_value): No longer static.
3612
0c8effa3
TT
36132021-03-08 Tom Tromey <tom@tromey.com>
3614
3615 * expression.h (class operation) <set_outermost>: New method.
3616 * expop.h (class var_msym_value_operation): New.
3617 * eval.c (eval_op_var_msym_value): No longer static.
3618 (var_msym_value_operation::evaluate_for_address)
3619 (var_msym_value_operation::evaluate_for_sizeof)
3620 (var_msym_value_operation::evaluate_for_cast): New methods.
3621 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3622 method.
3623
d336c29e
TT
36242021-03-08 Tom Tromey <tom@tromey.com>
3625
3626 * expop.h (class long_const_operation): New.
3627 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3628
d5ab122c
TT
36292021-03-08 Tom Tromey <tom@tromey.com>
3630
3631 * expop.h (class scope_operation): New.
3632 * eval.c (eval_op_scope): No longer static.
3633 (scope_operation::evaluate_for_address): New method.
3634 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3635
cae26a0c
TT
36362021-03-08 Tom Tromey <tom@tromey.com>
3637
3638 * expprint.c (float_const_operation::dump): New method.
3639 * expop.h (float_data): New typedef.
3640 (class float_const_operation): New.
3641
75f9892d
TT
36422021-03-08 Tom Tromey <tom@tromey.com>
3643
3644 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3645 * ax-gdb.c (gen_expr_binop): New function.
3646 (gen_expr_structop): Likewise.
3647
de401988
TT
36482021-03-08 Tom Tromey <tom@tromey.com>
3649
3650 * expprint.c (expr::dump_for_expression): New functions.
3651 * expop.h (dump_for_expression): New overloads.
3652 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3653 Update.
3654
e2803273
TT
36552021-03-08 Tom Tromey <tom@tromey.com>
3656
3657 * expression.h (expr::operation): New class.
3658 (expr::make_operation): New function.
3659 (expr::operation_up): New typedef.
3660 * expop.h: New file.
3661 * eval.c (operation::evaluate_for_cast)
3662 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3663 New methods.
3664 * ax-gdb.c (operation::generate_ax): New method.
3665
e18c58f2
TT
36662021-03-08 Tom Tromey <tom@tromey.com>
3667
3668 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3669 (gen_expr_binop_rest): New overload.
3670
c0d7ed8c
TT
36712021-03-08 Tom Tromey <tom@tromey.com>
3672
3673 * eval.c (eval_multi_subscript): New function.
3674 (evaluate_subexp_standard): Use it.
3675
dd5fd283
TT
36762021-03-08 Tom Tromey <tom@tromey.com>
3677
3678 * ada-lang.c (ada_binop_exp): New function.
3679 (ada_evaluate_subexp): Use it.
3680
3848abd6
TT
36812021-03-08 Tom Tromey <tom@tromey.com>
3682
3683 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3684 parameters.
3685 (ada_evaluate_subexp): Use it.
3686
38dc70cf
TT
36872021-03-08 Tom Tromey <tom@tromey.com>
3688
3689 * ada-lang.c (ada_binop_minmax): New function.
3690 (ada_evaluate_subexp): Use it.
3691
b84564fc
TT
36922021-03-08 Tom Tromey <tom@tromey.com>
3693
3694 * ada-lang.c (ada_unop_atr): New function.
3695 (ada_evaluate_subexp): Use it.
3696
b467efaa
TT
36972021-03-08 Tom Tromey <tom@tromey.com>
3698
3699 * ada-lang.c (ada_binop_in_bounds): New function.
3700 (ada_evaluate_subexp): Use it.
3701
5ce19db8
TT
37022021-03-08 Tom Tromey <tom@tromey.com>
3703
3704 * ada-lang.c (ada_ternop_slice): New function.
3705 (ada_evaluate_subexp): Use it.
3706
214b13ac
TT
37072021-03-08 Tom Tromey <tom@tromey.com>
3708
3709 * ada-lang.c (ada_equal_binop): New function.
3710 (ada_evaluate_subexp): Use it.
3711
faa1dfd7
TT
37122021-03-08 Tom Tromey <tom@tromey.com>
3713
3714 * ada-lang.c (ada_mult_binop): New function.
3715 (ada_evaluate_subexp): Use it.
3716
d05e24e6
TT
37172021-03-08 Tom Tromey <tom@tromey.com>
3718
3719 * ada-lang.c (ada_abs): New function.
3720 (ada_evaluate_subexp): Use it.
3721
68c75735
TT
37222021-03-08 Tom Tromey <tom@tromey.com>
3723
3724 * ada-lang.c (ada_atr_size): New function.
3725 (ada_evaluate_subexp): Use it.
3726
020dbabe
TT
37272021-03-08 Tom Tromey <tom@tromey.com>
3728
3729 * ada-lang.c (ada_atr_tag): New function.
3730 (ada_evaluate_subexp): Use it.
3731
7efc87ff
TT
37322021-03-08 Tom Tromey <tom@tromey.com>
3733
3734 * ada-lang.c (ada_unop_in_range): New function.
3735 (ada_evaluate_subexp): Use it.
3736
82390ab8
TT
37372021-03-08 Tom Tromey <tom@tromey.com>
3738
3739 * ada-lang.c (ada_unop_neg): New function.
3740 (ada_evaluate_subexp): Use it.
3741
62d4bd94
TT
37422021-03-08 Tom Tromey <tom@tromey.com>
3743
3744 * ada-lang.c (eval_ternop_in_range): New function.
3745 (ada_evaluate_subexp): Use it.
3746
3634f669
TT
37472021-03-08 Tom Tromey <tom@tromey.com>
3748
3749 * opencl-lang.c (eval_opencl_assign): New function.
3750 (evaluate_subexp_opencl): Use it.
3751
5e80600e
TT
37522021-03-08 Tom Tromey <tom@tromey.com>
3753
3754 * eval.c (eval_op_objc_msgcall): New function.
3755 (evaluate_subexp_standard): Use it.
3756
fb5ba2ab
TT
37572021-03-08 Tom Tromey <tom@tromey.com>
3758
3759 * eval.c (eval_binop_assign_modify): New function.
3760 (evaluate_subexp_standard): Use it.
3761
a49881f7
TT
37622021-03-08 Tom Tromey <tom@tromey.com>
3763
3764 * m2-lang.c (eval_op_m2_subscript): New function.
3765 (evaluate_subexp_modula2): Use it.
3766
41bdced5
TT
37672021-03-08 Tom Tromey <tom@tromey.com>
3768
3769 * m2-lang.c (eval_op_m2_high): New function.
3770 (evaluate_subexp_modula2): Use it.
3771
13ea014a
TT
37722021-03-08 Tom Tromey <tom@tromey.com>
3773
3774 * eval.c (evaluate_subexp_for_address_base): New function.
3775 (evaluate_subexp_for_address): Use it.
3776 (evaluate_subexp_for_sizeof_base): New function.
3777 (evaluate_subexp_for_sizeof): Use it.
3778
1fa41fc7
TT
37792021-03-08 Tom Tromey <tom@tromey.com>
3780
3781 * rust-lang.c (eval_op_rust_structop): New function.
3782 (rust_evaluate_subexp): Use it.
3783
575cae23
TT
37842021-03-08 Tom Tromey <tom@tromey.com>
3785
3786 * rust-lang.c (eval_op_rust_struct_anon): New function.
3787 (rust_evaluate_subexp): Use it.
3788
05104233
TT
37892021-03-08 Tom Tromey <tom@tromey.com>
3790
3791 * rust-lang.c (eval_op_rust_array): New function.
3792 (rust_evaluate_subexp): Use it.
3793
6fa9831f
TT
37942021-03-08 Tom Tromey <tom@tromey.com>
3795
3796 * rust-lang.c (eval_op_rust_complement): New function.
3797 (rust_evaluate_subexp): Use it.
3798
d123f9e4
TT
37992021-03-08 Tom Tromey <tom@tromey.com>
3800
3801 * rust-lang.c (eval_op_rust_ind): New function.
3802 (rust_evaluate_subexp): Use it.
3803
984af2cb
TT
38042021-03-08 Tom Tromey <tom@tromey.com>
3805
3806 * rust-lang.c (rust_subscript): Change parameters.
3807 (rust_evaluate_subexp): Update.
3808
d148f803
TT
38092021-03-08 Tom Tromey <tom@tromey.com>
3810
3811 * rust-lang.c (rust_range): Change parameters.
3812 (rust_evaluate_subexp): Update.
3813
9cbd1c20
TT
38142021-03-08 Tom Tromey <tom@tromey.com>
3815
3816 * f-lang.c (eval_op_f_allocated): New function.
3817 (evaluate_subexp_f): Use it.
3818
3c18c49c
TT
38192021-03-08 Tom Tromey <tom@tromey.com>
3820
3821 * f-lang.c (fortran_require_array): New function.
3822 (evaluate_subexp_f): Use it.
3823
216f6fcb
TT
38242021-03-08 Tom Tromey <tom@tromey.com>
3825
3826 * f-lang.c (eval_op_f_kind): New function.
3827 (evaluate_subexp_f): Use it.
3828
00f2db6f
TT
38292021-03-08 Tom Tromey <tom@tromey.com>
3830
3831 * f-lang.c (eval_op_f_cmplx): New function.
3832 (evaluate_subexp_f): Use it.
3833
93b2b5fa
TT
38342021-03-08 Tom Tromey <tom@tromey.com>
3835
3836 * f-lang.c (eval_op_f_modulo): New function.
3837 (evaluate_subexp_f): Use it.
3838
9f1a1f3c
TT
38392021-03-08 Tom Tromey <tom@tromey.com>
3840
3841 * f-lang.c (eval_op_f_floor): New function.
3842 (evaluate_subexp_f): Use it.
3843
3dc41f3c
TT
38442021-03-08 Tom Tromey <tom@tromey.com>
3845
3846 * f-lang.c (eval_op_f_ceil): New function.
3847 (evaluate_subexp_f): Use it.
3848
e08109f2
TT
38492021-03-08 Tom Tromey <tom@tromey.com>
3850
3851 * f-lang.c (eval_op_f_mod): New function.
3852 (evaluate_subexp_f): Use it.
3853
cc05c68e
TT
38542021-03-08 Tom Tromey <tom@tromey.com>
3855
3856 * f-lang.c (eval_op_f_abs): New function.
3857 (evaluate_subexp_f): Use it.
3858
aec95807
TT
38592021-03-08 Tom Tromey <tom@tromey.com>
3860
3861 * eval.c (eval_op_type): New function.
3862 (evaluate_subexp_standard): Use it.
3863
a220ead5
TT
38642021-03-08 Tom Tromey <tom@tromey.com>
3865
3866 * eval.c (eval_op_postdec): New function.
3867 (evaluate_subexp_standard): Use it.
3868
abffe116
TT
38692021-03-08 Tom Tromey <tom@tromey.com>
3870
3871 * eval.c (eval_op_postinc): New function.
3872 (evaluate_subexp_standard): Use it.
3873
9e1361b7
TT
38742021-03-08 Tom Tromey <tom@tromey.com>
3875
3876 * eval.c (eval_op_predec): New file.
3877 (evaluate_subexp_standard): Use it.
3878
00f50884
TT
38792021-03-08 Tom Tromey <tom@tromey.com>
3880
3881 * eval.c (eval_op_preinc): New function.
3882 (evaluate_subexp_standard): Use it.
3883
3aef2a07
TT
38842021-03-08 Tom Tromey <tom@tromey.com>
3885
3886 * eval.c (eval_op_memval): New function.
3887 (evaluate_subexp_standard): Use it.
3888
acee9468
TT
38892021-03-08 Tom Tromey <tom@tromey.com>
3890
3891 * eval.c (eval_op_alignof): New function.
3892 (evaluate_subexp_standard): Use it.
3893
786f70ee
TT
38942021-03-08 Tom Tromey <tom@tromey.com>
3895
3896 * eval.c (eval_op_ind): New function.
3897 (evaluate_subexp_standard): Use it.
3898
24338fb9
TT
38992021-03-08 Tom Tromey <tom@tromey.com>
3900
3901 * eval.c (eval_op_lognot): New function.
3902 (evaluate_subexp_standard): Use it.
3903
1f09ec81
TT
39042021-03-08 Tom Tromey <tom@tromey.com>
3905
3906 * eval.c (eval_op_complement): New function.
3907 (evaluate_subexp_standard): Use it.
3908
606d105f
TT
39092021-03-08 Tom Tromey <tom@tromey.com>
3910
3911 * eval.c (eval_op_neg): New function.
3912 (evaluate_subexp_standard): Use it.
3913
39f288be
TT
39142021-03-08 Tom Tromey <tom@tromey.com>
3915
3916 * eval.c (eval_op_plus): New function.
3917 (evaluate_subexp_standard): Use it.
3918
eed70b1c
TT
39192021-03-08 Tom Tromey <tom@tromey.com>
3920
3921 * eval.c (eval_op_repeat): New function.
3922 (evaluate_subexp_standard): Use it.
3923
60cdd487
TT
39242021-03-08 Tom Tromey <tom@tromey.com>
3925
3926 * eval.c (eval_op_leq): New function.
3927 (evaluate_subexp_standard): Use it.
3928
96e3efd9
TT
39292021-03-08 Tom Tromey <tom@tromey.com>
3930
3931 * eval.c (eval_op_geq): New function.
3932 (evaluate_subexp_standard): Use it.
3933
1f78d732
TT
39342021-03-08 Tom Tromey <tom@tromey.com>
3935
3936 * eval.c (eval_op_gtr): New function.
3937 (evaluate_subexp_standard): Use it.
3938
6cad1349
TT
39392021-03-08 Tom Tromey <tom@tromey.com>
3940
3941 * eval.c (eval_op_less): New function.
3942 (evaluate_subexp_standard): Use it.
3943
1fcb3559
TT
39442021-03-08 Tom Tromey <tom@tromey.com>
3945
3946 * eval.c (eval_op_notequal): New function.
3947 (evaluate_subexp_standard): Use it.
3948
0cc96de8
TT
39492021-03-08 Tom Tromey <tom@tromey.com>
3950
3951 * eval.c (eval_op_equal): New function.
3952 (evaluate_subexp_standard): Use it.
3953
288d26bc
TT
39542021-03-08 Tom Tromey <tom@tromey.com>
3955
3956 * eval.c (eval_op_subscript): New function.
3957 (evaluate_subexp_standard): Use it.
3958
7cdcdd02
TT
39592021-03-08 Tom Tromey <tom@tromey.com>
3960
3961 * eval.c (eval_op_binary): New function.
3962 (evaluate_subexp_standard): Use it.
3963
d9790e22
TT
39642021-03-08 Tom Tromey <tom@tromey.com>
3965
3966 * eval.c (eval_op_sub): New function.
3967 (evaluate_subexp_standard): Use it.
3968
aedaf9ac
TT
39692021-03-08 Tom Tromey <tom@tromey.com>
3970
3971 * eval.c (eval_op_add): New function.
3972 (evaluate_subexp_standard): Use it.
3973
b7a96ed2
TT
39742021-03-08 Tom Tromey <tom@tromey.com>
3975
3976 * eval.c (eval_op_member): New function.
3977 (evaluate_subexp_standard): Use it.
3978
fb461aa3
TT
39792021-03-08 Tom Tromey <tom@tromey.com>
3980
3981 * eval.c (eval_op_structop_ptr): New function.
3982 (evaluate_subexp_standard): Use it.
3983
3e96c4fc
TT
39842021-03-08 Tom Tromey <tom@tromey.com>
3985
3986 * eval.c (eval_op_structop_struct): New function.
3987 (evaluate_subexp_standard): Use it.
3988
f960a617
TT
39892021-03-08 Tom Tromey <tom@tromey.com>
3990
3991 * eval.c (eval_op_ternop): New function.
3992 (evaluate_subexp_standard): Use it.
3993
5c2f201e
TT
39942021-03-08 Tom Tromey <tom@tromey.com>
3995
3996 * eval.c (eval_op_concat): New function.
3997 (evaluate_subexp_standard): Use it.
3998
f871bae1
TT
39992021-03-08 Tom Tromey <tom@tromey.com>
4000
4001 * eval.c (eval_op_objc_selector): New function.
4002 (evaluate_subexp_standard): Use it.
4003
14a1c64a
TT
40042021-03-08 Tom Tromey <tom@tromey.com>
4005
4006 * eval.c (eval_op_string): New function.
4007 (evaluate_subexp_standard): Use it.
4008
ffff730b
TT
40092021-03-08 Tom Tromey <tom@tromey.com>
4010
4011 * eval.c (eval_op_register): New function.
4012 (evaluate_subexp_standard): Use it.
4013
9b1d8af6
TT
40142021-03-08 Tom Tromey <tom@tromey.com>
4015
4016 * eval.c (eval_op_func_static_var): New function.
4017 (evaluate_subexp_standard): Use it.
4018
c0df9289
TT
40192021-03-08 Tom Tromey <tom@tromey.com>
4020
4021 * eval.c (eval_op_var_msym_value): New function.
4022 (evaluate_subexp_standard): Use it.
4023
50b98adc
TT
40242021-03-08 Tom Tromey <tom@tromey.com>
4025
4026 * eval.c (eval_op_var_entry_value): New function.
4027 (evaluate_subexp_standard): Use it.
4028
ea2d29f7
TT
40292021-03-08 Tom Tromey <tom@tromey.com>
4030
4031 * eval.c (eval_op_scope): New function.
4032 (evaluate_subexp_standard): Use it.
4033
01573d73
TT
40342021-03-06 Chernov Sergey <klen_s@mail.ru>
4035
4036 PR gdb/27528:
4037 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4038
9938d15a
TT
40392021-03-06 Tom Tromey <tom@tromey.com>
4040
4041 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4042 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4043 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4044 (locate_dwz_sections, dwz_search_other_debugdirs)
4045 (dwarf2_get_dwz_file): Move to dwz.c.
4046 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4047 read.h.
4048 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4049 (dwarf2_get_dwz_file): Move from read.c.
4050
18035655
TT
40512021-03-06 Tom Tromey <tom@tromey.com>
4052
4053 * debuginfod-support.h: Include scoped_fd.h.
4054
a7308ce0
TT
40552021-03-06 Tom Tromey <tom@tromey.com>
4056
4057 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4058 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4059 (get_abbrev_section_for_cu, read_attribute_value)
4060 (get_debug_line_section): Update.
4061 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4062
fbedd546
TT
40632021-03-06 Tom Tromey <tom@tromey.com>
4064
4065 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4066 method.
4067 * dwarf2/read.c (section_is_p): Remove.
4068 (dwarf2_per_bfd::locate_sections)
4069 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4070 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4071 (dwarf2_locate_common_dwp_sections)
4072 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4073 Update.
4074
c2a62a3d
TT
40752021-03-06 Tom Tromey <tom@tromey.com>
4076
4077 * xcoffread.c: Include sect-names.h.
4078 * symfile.h (struct dwarf2_section_names, struct
4079 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4080 * dwarf2/sect-names.h: New file, from symfile.h.
4081 * dwarf2/read.c: Include sect-names.h.
4082
4444f407
TT
40832021-03-06 Tom Tromey <tom@tromey.com>
4084
4085 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4086 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4087 (abbrev_table::read): Update.
4088 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4089 (struct abbrev_info): Reformat.
4090 <attrs>: Now an array.
4091 (struct abbrev_table) <alloc_abbrev>: Remove.
4092
dd99cf0c
WP
40932021-03-06 Weimin Pan <weimin.pan@oracle.com>
4094
4095 * ctfread.c (ctf_psymtab_add_enums): New function.
4096 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4097
844be3f2
WP
40982021-03-06 Weimin Pan <weimin.pan@oracle.com>
4099
4100 * ctfread.c (read_func_kind_type): Set up function arguments.
4101
b2668f28
AB
41022021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4103 Andrew Burgess <andrew.burgess@embecosm.com>
4104
4105 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4106 includes.
4107 (riscv_csrset): New static global.
4108 (riscv_update_csrmap): New function.
4109 (riscv_iterate_over_regset_sections): Process CSRs.
4110
d782d24b
AB
41112021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4112
4113 * riscv-tdep.c (riscv_feature_name_csr): Define.
4114 (riscv_feature_name_cpu): Define.
4115 (riscv_feature_name_fpu): Define.
4116 (riscv_feature_name_virtual): Define.
4117 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4118 (riscv_freg_feature): Use riscv_feature_name_fpu.
4119 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4120 (riscv_csr_feature): Use riscv_feature_name_csr.
4121 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4122
fb8f3fc0
AB
41232021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4124 Craig Blackmore <craig.blackmore@embecosm.com>
4125
4126 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4127 (ALLDEPFILES): Add riscv-none-tdep.c.
4128 * configure: Regenerate.
4129 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4130 support.
4131 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4132 * elf-none-tdep.c: New file.
4133 * elf-none-tdep.h: New file.
4134 * riscv-none-tdep.c: New file.
4135
95ce627a
AB
41362021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4137 Andrew Burgess <andrew.burgess@embecosm.com>
4138
4139 * corelow.c: Add 'xml-tdesc.h' include.
4140 (core_target::read_description): Load the target description from
4141 the core file when possible.
4142 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4143 note.
4144 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4145 (gcore_elf_make_tdesc_note): New function.
4146 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4147 * linux-tdep.c (linux_make_corefile_notes): Add target description
4148 note.
4149
f3a5df7b
AB
41502021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4151
4152 * Makefile.in (SFILES): Add gcore-elf.c.
4153 (HFILES_NO_SRCDIR): Add gcore-elf.h
4154 * configure: Regenerate.
4155 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4156 support.
4157 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4158 (struct fbsd_collect_regset_section_cb_data): Delete.
4159 (fbsd_collect_regset_section_cb): Delete.
4160 (fbsd_collect_thread_registers): Delete.
4161 (struct fbsd_corefile_thread_data): Delete.
4162 (fbsd_corefile_thread): Delete.
4163 (fbsd_make_corefile_notes): Call
4164 gcore_elf_build_thread_register_notes instead of the now deleted
4165 FreeBSD code.
4166 * gcore-elf.c: New file, the content was moved here from
4167 linux-tdep.c, functions were renamed and given minor cleanup.
4168 * gcore-elf.h: New file.
4169 * gcore.c (gcore_find_signalled_thread): Moved here from
4170 linux-tdep.c and given a new name. Minor cleanups.
4171 * gcore.h (gcore_find_signalled_thread): Declare.
4172 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4173 (struct linux_collect_regset_section_cb_data): Delete.
4174 (linux_collect_regset_section_cb): Delete.
4175 (linux_collect_thread_registers): Delete.
4176 (linux_corefile_thread): Call
4177 gcore_elf_build_thread_register_notes.
4178 (find_signalled_thread): Delete.
4179 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4180
d1e93af6
SM
41812021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4182
4183 PR gdb/27147
4184 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4185 process_stratum_target parameter,
4186 sparc_store_inferior_registers): update callers.
4187 * sparc-nat.c (sparc_fetch_inferior_registers,
4188 sparc_store_inferior_registers): Add process_stratum_target
4189 parameter. Switch current thread before calling
4190 sparc_supply_gregset / sparc_collect_rwindow.
4191 (sparc_store_inferior_registers): Likewise.
4192 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4193 (sparc32obsd_collect_uthread): Likewise.
4194 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4195 Add assertion.
4196 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4197 sparc64obsd_supply_uthread): Add assertion.
4198
1178743e
TT
41992021-03-04 Tom Tromey <tromey@adacore.com>
4200
4201 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4202 (aux_add_nonlocal_symbols): Update.
4203 (ada_add_block_symbols): Change "found_sym" to bool.
4204
1bfa81ac
TT
42052021-03-03 Tom Tromey <tromey@adacore.com>
4206
4207 * ada-lang.c (ada_resolve_function): Update comment.
4208 (is_nonfunction, add_symbols_from_enclosing_procs)
4209 (remove_extra_symbols): Likewise.
4210 (struct match_data): Add constructor, initializers.
4211 (add_nonlocal_symbols): Remove memset.
4212 (aux_add_nonlocal_symbols): Update comment.
4213 (ada_add_block_renamings, add_nonlocal_symbols)
4214 (ada_add_all_symbols): Likewise.
4215 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4216
bbcdf9ab
TT
42172021-03-02 Tom Tromey <tromey@adacore.com>
4218
4219 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4220 (cast_to_gnat_encoded_fixed_point_type): Remove.
4221 (ada_value_cast, ada_evaluate_subexp): Update.
4222 (gnat_encoded_fixed_point_type_info)
4223 (ada_is_gnat_encoded_fixed_point_type)
4224 (gnat_encoded_fixed_point_delta)
4225 (gnat_encoded_fixed_point_scaling_factor): Remove.
4226 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4227 (gnat_encoded_fixed_point_delta)
4228 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4229 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4230 (ada_print_type): Update.
4231 * ada-valprint.c (ada_value_print_num): Update.
4232 * dwarf2/read.c (ada_get_gnat_encoded_number)
4233 (ada_get_gnat_encoded_ratio): New functions.
4234 (finish_fixed_point_type): Use them. Add parameters.
4235 (GNAT_FIXED_POINT_SUFFIX): New define.
4236 (gnat_encoded_fixed_point_type_info): New function.
4237 (read_base_type): Handle gnat encodings.
4238
5f9febe0
TT
42392021-03-02 Tom Tromey <tromey@adacore.com>
4240
4241 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4242 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4243 std::string.
4244 (GROW_VECT): Remove.
4245 (grow_vect): Remove.
4246
d1183b06
TT
42472021-03-02 Tom Tromey <tromey@adacore.com>
4248
4249 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4250 * ada-lang.c (resolve_subexp): Update.
4251 (ada_resolve_function): Accept a vector.
4252 (is_nonfunction, add_defn_to_vec)
4253 (add_symbols_from_enclosing_procs): Likewise.
4254 (num_defns_collected, defns_collected): Remove.
4255 (remove_extra_symbols): Return a vector.
4256 (remove_irrelevant_renamings): Return void.
4257 (ada_add_local_symbols): Accept a vector.
4258 (struct match_data) <obstackp>: Remove.
4259 <resultp>: New member.
4260 (aux_add_nonlocal_symbols): Update.
4261 (ada_add_block_renamings, add_nonlocal_symbols)
4262 (ada_add_all_symbols): Accept a vector.
4263 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4264 vector.
4265 (ada_lookup_symbol): Update.
4266 (ada_add_block_symbols): Accept a vector.
4267 (get_var_value, iterate_over_symbols): Update.
4268 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4269 Update.
4270
886d459f
TT
42712021-03-02 Tom Tromey <tromey@adacore.com>
4272
4273 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4274
bdcccc56
TT
42752021-03-02 Tom Tromey <tromey@adacore.com>
4276
4277 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4278 auto_obstack.
4279 <root>: Initialize.
4280 (ada_pspace_data): Remove destructor.
4281 <sym_cache>: Now a unique_ptr.
4282 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4283 (ada_get_symbol_cache): Use 'new'.
4284 (ada_clear_symbol_cache): Rewrite.
4285
1228719f
TT
42862021-03-02 Tom Tromey <tromey@adacore.com>
4287
4288 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4289 is null.
4290
bb3a4efe
LS
42912021-02-27 Lancelot Six <lsix@lancelotsix.com>
4292
4293 PR gdb/27393
4294 * source.c (add_path): Skip empty dirnames.
4295
26b43ca6 42962021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
4297
4298 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4299 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4300
dffdd8b5
SM
43012021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4302
4303 PR gdb/26861
4304 * target.c (target_mourn_inferior): Only compare pids in
4305 target_mourn_inferior.
4306
64d38fdd
JM
43072021-02-25 Jan Matyas <jmatyas@codasip.com>
4308
4309 PR gdb/26819
4310 * remote.c (remote_target::start_remote): Ensure the single
4311 thread, automatically added for remote targets without the
4312 concept of threading, is initially in set to the "resumed"
4313 state.
4314 * remote.c (remote_target::add_current_inferior_and_thread):
4315 Add return value - return the main thread.
4316
2450ad54
JV
43172021-02-25 Jan Vrany <jan.vrany@labware.com>
4318
4319 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4320 (mi_tsv_created): Likewise.
4321 (mi_tsv_deleted): Likewise.
4322
30c80d88
TV
43232021-02-25 Tom de Vries <tdevries@suse.de>
4324
4325 PR symtab/27354
4326 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4327 section_kind for &dwo_file->sections.info.
4328
68337b8b
AB
43292021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4330
4331 PR fortran/26155
4332 * f-lang.c (fortran_argument_convert): Delete declaration.
4333 (fortran_prepare_argument): New function.
4334 (evaluate_subexp_f): Move logic to new function
4335 fortran_prepare_argument.
4336
faeb9f13
AB
43372021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4338
4339 * f-exp.y (f77_keywords): Add 'associated'.
4340 * f-lang.c (fortran_associated): New function.
4341 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4342 (operator_length_f): Likewise.
4343 (print_unop_or_binop_subexp_f): New function.
4344 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4345 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4346 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4347 (operator_check_f): Likewise.
4348 * std-operator.def: Add FORTRAN_ASSOCIATED.
4349
170f4b23
AB
43502021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4351
4352 * f-exp.y (fortran_operators): Add ".xor.".
4353
aa659cfa
TV
43542021-02-24 Tom de Vries <tdevries@suse.de>
4355
4356 PR symtab/27336
4357 * dwarf2/attribute.c (attribute::form_is_signed): New function
4358 factored out of ...
4359 * dwarf2/attribute.h (attribute::as_signed): ... here.
4360 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4361 (attribute::form_is_signed): Declare.
4362 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4363 for DW_AT_decl_file.
4364
268c77c1
KB
43652021-02-24 Kevin Buettner <kevinb@redhat.com>
4366
4367 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4368 order for <sys/ptrace.h> and <asm/ptrace.h>.
4369
665af52e
KB
43702021-02-24 Kevin Buettner <kevinb@redhat.com>
4371
4372 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4373 <sys/ptrace.h>.
4374
dd80d750
AB
43752021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4376
4377 * exec.c (set_section_command): Move variable declarations into
4378 the function body, and use std::string instead of a fixed size
4379 buffer.
4380
336aa7b7
AB
43812021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4382
4383 * exec.c (exec_target::get_section_table): Delete member function.
4384 (section_table_read_available_memory): Use current_top_target, not
4385 just the exec_ops target.
4386 * target-delegates.c: Regenerate.
4387 * target.c (default_get_section_table): New function.
4388 * target.h (target_ops::get_section_table): Change default
4389 behaviour to call default_get_section_table.
4390 (default_get_section_table): Declare.
4391
02f7d26b
AB
43922021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4393
4394 * exec.c (exec_target::close): Call new clear_target_sections
4395 function.
4396 (program_space::add_target_sections): Update name of member
4397 variable.
4398 (program_space::add_target_sections): Update name of member
4399 variable.
4400 (program_space::remove_target_sections): Likewise.
4401 (exec_one_fork): Use new target_sections member function.
4402 (exec_target::get_section_table): Likewise.
4403 (exec_target::files_info): Likewise.
4404 (set_section_command): Likewise.
4405 (exec_set_section_address): Likewise.
4406 (exec_target::has_memory): Use new target_sections member
4407 function.
4408 * progspace.h (program_space::clear_target_sections): New member
4409 function.
4410 (program_space::target_sections): Rename member variable to
4411 m_target_sections, replace with a new member function.
4412 (program_space::m_target_sections): New member variable.
4413 * solib-dsbt.c (scan_dyntag): Use new member function.
4414 * solib-svr4.c (scan_dyntag): Likewise.
4415
19cf757a
AB
44162021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4417
4418 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4419 return type const.
4420 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4421 (section_table_read_available_memory): Make local const.
4422 (exec_target::xfer_partial): Make local const.
4423 (print_section_info): Make parameter const.
4424 * gdb/exec.h (print_section_info): Likewise.
4425 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4426 const.
4427 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4428 Likewise.
4429 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4430 Likewise.
4431 * gdb/s390-tdep.c (s390_load): Likewise.
4432 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4433 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4434 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4435 Rename to...
4436 (target_debug_print_const_target_section_table_p): ...this.
4437 * gdb/target-delegates.c: Regenerate.
4438 * gdb/target.c (target_get_section_table): Make return type const.
4439 (target_section_by_addr): Likewise. Also make some locals const.
4440 (memory_xfer_partial_1): Make some locals const.
4441 * gdb/target.h (struct target_ops) <get_section_table>: Make
4442 return type const.
4443 (target_section_by_addr): Likewise.
4444 (target_get_section_table): Likewise.
4445
02a79309
AB
44462021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4447
4448 * NEWS: Mention new 'maint info target-sections' command.
4449 * maint.c (maintenance_info_target_sections): New function.
4450 (_initialize_maint_cmds): Register new command.
4451
895b7b4e
AB
44522021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4453
4454 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4455 (riscv_features_from_bfd): ...this. Change parameter type to
4456 'bfd*', and update as required.
4457 (riscv_find_default_target_description): Update call to
4458 riscv_features_from_bfd. Select a default xlen based on
4459 info.bfd_arch_info.
4460 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4461
bc3c0632
AB
44622021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4463
4464 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4465 dynamic types in UNOP_IND.
4466
08ac5771
SM
44672021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4468
4469 PR gdb/26828
4470 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4471 Instantiate queue.
4472 (~dwarf2_queue_guard): Clear queue.
4473 (queue_comp_unit): Assert that queue is
4474 instantiated.
4475 (process_queue): Adjust.
4476 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4477
616c069a
SM
44782021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4479
4480 PR gdb/26828
4481 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4482 to decide whether or not to enqueue it for expansion.
4483 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4484 after calling maybe_queue_comp_unit.
4485
897608ed
SM
44862021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4487
4488 * linux-nat.c (linux_nat_filter_event): Return void.
4489
15908a11
TT
44902021-02-22 Tom Tromey <tromey@adacore.com>
4491
4492 * solib-svr4.c (enable_break): Update.
4493 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4494 type.
4495 (target_bfd_reopen): Change parameter type.
4496 * bfd-target.h (target_bfd_reopen): Change parameter type.
4497
f53fc427
SM
44982021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4499
4500 * thread.c (add_thread_silent): Add assert.
4501 (find_thread_ptid): Add assert.
4502
de146e19
SM
45032021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4504
4505 PR gdb/27435
4506 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4507 (target_unpush_up): Likewise.
4508 * procfs.c (procfs_target::attach): Push target early. Use
4509 target_unpush_up to unpush target in case of error.
4510 * target.h (struct target_unpusher): Move here.
4511 (target_unpush_up): Likewise.
4512
8488c357
KB
45132021-02-19 Kevin Buettner <kevinb@redhat.com>
4514
4515 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4516 (which in turn includes <gnulib/config.h>) before include
4517 of <signal.h>.
4518
5a9f5403
NC
45192021-02-19 Nelson Chu <nelson.chu@sifive.com>
4520
4521 PR 27158
4522 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4523 (decode_j_type_insn): Likewise.
4524 (decode_cj_type_insn): Likewise.
4525 (decode_b_type_insn): Likewise.
4526 (decode): Likewise.
4527
26f53cd3
TT
45282021-02-18 Tom Tromey <tom@tromey.com>
4529
4530 * expression.h (struct expression) <evaluate>: Declare method.
4531 * eval.c (evaluate_subexp): Simplify.
4532 (expression::evaluate): New method.
4533 (evaluate_expression, evaluate_type): Use expression::evaluate.
4534
6a780b67
KB
45352021-02-17 Kevin Buettner <kevinb@redhat.com>
4536
4537 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4538 to accessing it.
4539 (ada_lookup_name_info): Likewise.
4540
adeab0c5
MF
45412021-02-13 Mike Frysinger <vapier@gentoo.org>
4542
4543 * aclocal.m4: Regenerate.
4544
089436f7
TV
45452021-02-12 Tom de Vries <tdevries@suse.de>
4546
4547 PR threads/26228
4548 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4549 (lin_thread_signals): New static var.
4550 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4551 New function.
4552 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4553 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4554 Declare.
4555 * linux-thread-db.c (check_thread_signals): Use
4556 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4557
96df3e28
AB
45582021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4559
4560 * f-exp.y (f77_keywords): Add allocated.
4561 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4562 (operator_length_f): Likewise.
4563 (print_subexp_f): Likewise.
4564 (dump_subexp_body_f): Likewise.
4565 (operator_check_f): Likewise.
4566 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4567
05f68f52
TV
45682021-02-11 Tom de Vries <tdevries@suse.de>
4569
4570 PR symtab/27353
4571 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4572 Return true for DW_FORM_strx.
4573
b260f8d6
TT
45742021-02-11 Tom Tromey <tromey@adacore.com>
4575
4576 PR gdb/27383:
4577 * parse.c (write_exp_symbol_reference): Write sym.block.
4578
bf3386f0
AB
45792021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4580
4581 * NEWS: Mention changes to 'maint info sections'.
4582 * maint.c (match_substring): Return a bool, fix whitespace issue.
4583 (struct single_bfd_flag_info): New struct.
4584 (bfd_flag_info): New static global.
4585 (match_bfd_flags): Return a bool, use bfd_flag_info.
4586 (print_bfd_flags): Use bfd_flag_info.
4587 (maint_print_section_info): Delete trailing whitespace.
4588 (struct maint_info_sections_opts): New struct.
4589 (maint_info_sections_option_defs): New static global.
4590 (maint_info_sections_completer): New function.
4591 (maintenance_info_sections): Use option parsing mechanism.
4592 (_initialize_maint_cmds): Update command help text for 'maint info
4593 sections' and register a command completer.
4594
4790db14
AB
45952021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4596
4597 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4598 functionality merged into...
4599 (maint_print_all_sections): ...this new function.
4600 (maintenance_info_sections): Make use of maint_print_all_sections,
4601 allow all objects to be printed even where there's no executable.
4602
1db66e34
AB
46032021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4604
4605 * breakpoint.c (resolve_sal_pc): Make use of
4606 bound_minimal_symbol::obj_section.
4607 * maint.c (maintenance_translate_address): Likewise.
4608 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4609 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4610 member function.
4611 * printcmd.c (info_address_command): Make use of
4612 bound_minimal_symbol::obj_section.
4613
18b8df43
AM
46142021-02-11 Alan Modra <amodra@gmail.com>
4615
4616 * arm-symbian-tdep.c: Delete.
4617 * NEWS: Mention arm-symbian removal.
4618 * Makefile.in: Remove arm-symbian-tdep entries.
4619 * configure.tgt: Remove arm*-*-symbianelf*.
4620 * doc/gdb.texinfo: Remove mention of SymbianOS.
4621 * osabi.c (gdb_osabi_names): Remove "Symbian".
4622 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4623 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4624 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4625 handling.
4626 * testsuite/gdb.base/dup-sect.exp: Likewise.
4627 * testsuite/gdb.base/long_long.exp: Likewise.
4628 * testsuite/gdb.base/solib-weak.exp: Likewise.
4629 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4630 * testsuite/gdb.python/py-section-script.exp: Likewise.
4631 * testsuite/lib/dwarf.exp: Likewise.
4632 * testsuite/lib/gdb.exp: Likewise.
4633
e92c8eb8
AB
46342021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4635
4636 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4637 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4638 (one_or_two_args): New pattern.
4639 (f77_keywords): Add lbound and ubound.
4640 * f-lang.c (fortran_bounds_all_dims): New function.
4641 (fortran_bounds_for_dimension): New function.
4642 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4643 (operator_length_f): Likewise.
4644 (print_subexp_f): Likewise.
4645 (dump_subexp_body_f): Likewise.
4646 (operator_check_f): Likewise.
4647 * std-operator.def (FORTRAN_LBOUND): Define.
4648 (FORTRAN_UBOUND): Define.
4649
a52d653e
AB
46502021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4651
4652 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4653 and set_section_index member functions where appropriate.
4654 * coffread.c (coff_symtab_read): Likewise.
4655 (process_coff_symbol): Likewise.
4656 * ctfread.c (set_symbol_address): Likewise.
4657 * dwarf2/read.c (add_partial_symbol): Likewise.
4658 (var_decode_location): Likewise.
4659 * language.c: Likewise.
4660 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4661 (compact_minimal_symbols): Likewise.
4662 (minimal_symbol_upper_bound): Likewise.
4663 * objfiles.c (relocate_one_symbol): Likewise.
4664 * psympriv.h (partial_symbol::obj_section): Likewise.
4665 (partial_symbol::address): Likewise.
4666 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4667 * stabsread.c (scan_file_globals): Likewise.
4668 * symmisc.c (dump_msymbols): Likewise.
4669 * symtab.c (general_symbol_info::obj_section): Likewise.
4670 (fixup_section): Likewise.
4671 (get_msymbol_address): Likewise.
4672 * symtab.h (general_symbol_info::section): Rename to...
4673 (general_symbol_info::m_section): ...this.
4674 (general_symbol_info::set_section_index): New member function.
4675 (general_symbol_info::section_index): Likewise.
4676 (SYMBOL_SECTION): Delete.
4677 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4678 set_section_index member functions where appropriate.
4679 (MSYMBOL_SECTION): Delete.
4680 (symbol::symbol): Update to initialize 'm_section'.
4681 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4682 (process_xcoff_symbol): Likewise.
4683
ebbc3a7d
AB
46842021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4685
4686 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4687 MSYMBOL_OBJ_SECTION.
4688 * findvar.c (language_defn::read_var_value): Likewise.
4689 * infcmd.c (jump_command): Likewise.
4690 * linespec.c (minsym_found): Likewise.
4691 * maint.c (maintenance_translate_address): Likewise.
4692 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4693 (minimal_symbol_upper_bound): Likewise.
4694 * parse.c (find_minsym_type_and_address): Likewise.
4695 (operator_check_standard): Likewise.
4696 * printcmd.c (info_address_command): Likewise.
4697 * symmisc.c (dump_msymbols): Likewise.
4698 (print_symbol): Likewise.
4699 * symtab.c (general_symbol_info::obj_section): Define new
4700 function.
4701 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4702 (find_pc_sect_compunit_symtab): Likewise.
4703 (find_function_start_sal): Likewise.
4704 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4705 MSYMBOL_OBJ_SECTION.
4706 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4707 function.
4708 (SYMBOL_OBJ_SECTION): Delete.
4709 (MSYMBOL_OBJ_SECTION): Delete.
4710
9bb305b3
TT
47112021-02-09 Tom Tromey <tom@tromey.com>
4712
4713 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4714
cf2b2075
TV
47152021-02-09 Tom de Vries <tdevries@suse.de>
4716
4717 PR symtab/27341
4718 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4719 construct an array type. Add assert to ensure that element_type is
4720 not being modified.
4721
03642b71
AB
47222021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4723
4724 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4725 (gcore_collect_regset_section_cb): Delete.
4726 (gcore_collect_thread_registers): Delete.
4727 (gcore_build_thread_register_notes): Delete.
4728 (gcore_find_signalled_thread): Delete.
4729 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4730 'gdbarch' and 'thread_info' declarations.
4731 (gcore_build_thread_register_notes): Delete declaration.
4732 (gcore_find_signalled_thread): Likewise.
4733 * fbsd-tdep.c: Remove 'gcore.h' include.
4734 (struct fbsd_collect_regset_section_cb_data): New struct.
4735 (fbsd_collect_regset_section_cb): New function.
4736 (fbsd_collect_thread_registers): New function.
4737 (struct fbsd_corefile_thread_data): New struct.
4738 (fbsd_corefile_thread): New function.
4739 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4740 * linux-tdep.c: Remove 'gcore.h' include.
4741 (struct linux_collect_regset_section_cb_data): New struct.
4742 (linux_collect_regset_section_cb): New function.
4743 (linux_collect_thread_registers): New function.
4744 (linux_corefile_thread): Call Linux specific code.
4745 (find_signalled_thread): New function.
4746 (linux_make_corefile_notes): Call find_signalled_thread.
4747
f73e424f
TT
47482021-02-09 Tom Tromey <tromey@adacore.com>
4749
4750 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4751 not_lval value.
4752 * value.c (value_contents_copy_raw): Now static.
4753 * value.h (value_contents_copy_raw): Don't declare.
4754
a4f0544b
TT
47552021-02-09 Tom Tromey <tromey@adacore.com>
4756
4757 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4758 fields.
4759
9b3e4b5d
SV
47602021-02-08 Shahab Vahedi <shahab@synopsys.com>
4761
4762 PR tdep/27369
4763 * arc-linux-tdep.c (handle_atomic_sequence): New.
4764 (arc_linux_software_single_step): Call handle_atomic_sequence().
4765
29db1eb3
AB
47662021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4767
4768 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4769 function.
4770 (REQUIRE_WINDOW): Call is_valid member function.
4771 (REQUIRE_WINDOW_FOR_SETTER): New define.
4772 (gdbpy_tui_is_valid): Call is_valid member function.
4773 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4774 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4775 tui_active too.
4776 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4777 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4778 the function.
4779
e0c23e11
AB
47802021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4781
4782 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4783 for the title is not nullptr.
4784
1cf23996
AB
47852021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4786
4787 * tui-layout.c (saved_tui_windows): Delete.
4788 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4789 call new get_windows member function instead.
4790 (tui_get_window_by_name): Check in tui_windows.
4791 (tui_layout_window::apply): Don't add to tui_windows.
4792 * tui-layout.h (tui_layout_base::get_windows): New member function.
4793 (tui_layout_window::get_windows): Likewise.
4794 (tui_layout_split::get_windows): Likewise.
4795
a53a2657
AB
47962021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4797
4798 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4799 of the window objects.
4800
2708dbbd
AB
48012021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4802
4803 * python/python.c (gdbpy_print_stack): Reformat an error message.
4804
cd074e04
AB
48052021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4806
4807 * tui/tui-interp.c (tui_command_line_handler): New function.
4808 (tui_interp::resume): Register tui_command_line_handler as the
4809 input_handler.
4810 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4811 function.
4812 (tui_getc_1): Delete handling of '\n' and '\r'.
4813 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4814
4cf28e91
HD
48152021-02-07 Hannes Domani <ssbssa@yahoo.de>
4816
4817 * tui/tui-regs.c (tui_data_window::display_registers_from):
4818 Mark invisible register sub windows.
4819 (tui_data_window::check_register_values): Ignore invisible
4820 register sub windows.
4821
3537bc23
HD
48222021-02-07 Hannes Domani <ssbssa@yahoo.de>
4823
4824 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4825 n_spaces with a negative value.
4826
5fc2d6aa
HD
48272021-02-07 Hannes Domani <ssbssa@yahoo.de>
4828
4829 * tui/tui-regs.c (tui_data_window::display_registers_from):
4830 Add refresh_window call.
4831
83962f83
HD
48322021-02-07 Hannes Domani <ssbssa@yahoo.de>
4833
4834 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4835
0110ec82
SM
48362021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4837
4838 * symmisc.c (std_in, std_out, std_err): Remove.
4839 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4840
7c6944ab
TV
48412021-02-05 Tom de Vries <tdevries@suse.de>
4842
4843 PR breakpoints/27330
4844 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4845 glibc object file has debug info.
4846
e77b0004
TV
48472021-02-05 Tom de Vries <tdevries@suse.de>
4848
4849 PR symtab/27333
4850 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4851
0e857c82
TV
48522021-02-05 Tom de Vries <tdevries@suse.de>
4853
4854 PR breakpoints/27313
4855 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4856 syscall numbers.
4857
bdfea17e
TT
48582021-02-05 Tom Tromey <tom@tromey.com>
4859
4860 * compile/compile-c-support.c (get_compile_context)
4861 (c_get_compile_context, cplus_get_compile_context): Change return
4862 type.
4863 * language.c (language_defn::get_compile_instance): New method.
4864 * language.h (language_defn::get_compile_instance): Change return
4865 type. No longer inline.
4866 * c-lang.c (c_language::get_compile_instance): Change return type.
4867 (cplus_language::get_compile_instance): Change return type.
4868 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4869 Change return type.
4870 * compile/compile.c (compile_to_object): Update.
4871
1b30f421
TT
48722021-02-05 Tom Tromey <tom@tromey.com>
4873
4874 * parser-defs.h (write_exp_symbol_reference): Declare.
4875 * parse.c (write_exp_symbol_reference): New function.
4876 * p-exp.y (variable): Use write_exp_symbol_reference.
4877 * m2-exp.y (variable): Use write_exp_symbol_reference.
4878 * f-exp.y (variable): Use write_exp_symbol_reference.
4879 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4880 * c-exp.y (variable): Use write_exp_symbol_reference.
4881
ae710496
TV
48822021-02-05 Tom de Vries <tdevries@suse.de>
4883
4884 PR exp/27265
4885 * valarith.c (complex_binop): Throw an error if complex type can't
4886 be created.
4887
d3b54e63
TV
48882021-02-05 Tom de Vries <tdevries@suse.de>
4889
4890 PR symtab/27307
4891 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4892 return.
4893
fc9a13fb
TV
48942021-02-05 Tom de Vries <tdevries@suse.de>
4895
4896 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4897
04b4939b
MF
48982021-02-04 Mike Frysinger <vapier@gentoo.org>
4899
4900 * configure.tgt (riscv*-*-*): Set gdb_sim.
4901
6ff267e1
SM
49022021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4903
4904 * target.c (target_is_non_stop_p): Return bool.
4905 * target.h (target_is_non_stop_p): Return bool.
4906
fdbc5215
SM
49072021-02-04 Simon Marchi <simon.marchi@efficios.com>
4908
4909 * record-full.c (record_full_async_inferior_event_handler):
4910 Don't clear async event handler.
4911 (record_full_base_target::wait): Clear async event handler at
4912 beginning.
4913
85d3ad8e
SM
49142021-02-04 Simon Marchi <simon.marchi@efficios.com>
4915
4916 * record-btrace.c (record_btrace_handle_async_inferior_event):
4917 Don't clear async event handler.
4918 (record_btrace_target::wait): Clear async event handler at
4919 beginning.
4920
baa8575b
SM
49212021-02-04 Simon Marchi <simon.marchi@efficios.com>
4922
4923 * remote.c (remote_target::wait): Clear async event handler at
4924 beginning, mark if needed at the end.
4925 (remote_async_inferior_event_handler): Don't set or clear async
4926 event handler.
4927
6b36ddeb
SM
49282021-02-04 Simon Marchi <simon.marchi@efficios.com>
4929
4930 * async-event.h (async_event_handler_func): Add documentation.
4931 * async-event.c (check_async_event_handlers): Don't clear
4932 async_event_handler ready flag.
4933 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4934 flag.
4935 * record-btrace.c (record_btrace_handle_async_inferior_event):
4936 Likewise.
4937 * record-full.c (record_full_async_inferior_event_handler):
4938 Likewise.
4939 * remote-notif.c (remote_async_get_pending_events_handler):
4940 Likewise.
4941 * remote.c (remote_async_inferior_event_handler): Likewise.
4942
72d383bb
SM
49432021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4944
4945 * infrun.c (handle_inferior_event): Move stop_soon variable to
4946 inner scope.
4947
408f6686
PA
49482021-02-03 Pedro Alves <pedro@palves.net>
4949
4950 * infcmd.c (detach_command): Hold strong reference to target, and
4951 if all-stop on entry, restart threads on exit.
4952 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4953 (restart_stepped_thread): ... this new function. Also handle
4954 trap_expected.
4955 (restart_after_all_stop_detach): New function.
4956 * infrun.h (restart_after_all_stop_detach): Declare.
4957
ac7d717c
PA
49582021-02-03 Pedro Alves <pedro@palves.net>
4959
4960 * infrun.c (struct step_over_info): Initialize fields.
4961 (prepare_for_detach): Handle ongoing in-line step over.
4962
e87f0fe8
PA
49632021-02-03 Pedro Alves <pedro@palves.net>
4964
4965 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4966 here...
4967 * remote.c (remote_target::remote_detach_1): ... and here ...
4968 * target.c (target_detach): ... instead of here.
4969 * target.h (target_ops::detach): Add comment.
4970
8ff53139
PA
49712021-02-03 Pedro Alves <pedro@palves.net>
4972
4973 * infrun.c (struct wait_one_event): Move higher up.
4974 (prepare_for_detach): Abort in-progress displaced steps instead of
4975 letting them complete.
4976 (handle_one): If the inferior is detaching, don't add the thread
4977 back to the global step-over chain.
4978 (restart_threads): Don't restart threads if detaching.
4979 (handle_signal_stop): Remove inferior::detaching reference.
4980
91475068
PA
49812021-02-03 Pedro Alves <pedro@palves.net>
4982
4983 * infrun.c (prepare_for_detach): Don't release scoped_restore
4984 before returning.
4985
d758e62c
PA
49862021-02-03 Pedro Alves <pedro@palves.net>
4987
4988 * infrun.c (handle_one): New function, factored out from ...
4989 (stop_all_threads): ... here.
4990
b0083dd7
PA
49912021-02-03 Pedro Alves <pedro@palves.net>
4992
4993 * remote.c (remote_notif_stop_ack): Don't error out on
4994 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4995 (remote_target::discard_pending_stop_replies): Don't delete
4996 in-flight notification; instead, clear its contents.
4997
621cc310
PA
49982021-02-03 Pedro Alves <pedro@palves.net>
4999
5000 * remote.c (extended_remote_target::attach): Set target async in
5001 the target-non-stop path too.
5002
2ab76a18
PA
50032021-02-03 Pedro Alves <pedro@palves.net>
5004
5005 PR gdb/27055
5006 * infrun.c (handle_signal_stop): Move main context_switch call
5007 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5008
2e3773ff
LS
50092021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5010
5011 * NEWS (Changed commands): Add entry for the behavior change of
5012 the inferior command.
5013 * inferior.c (inferior_command): When no argument is given to the
5014 inferior command, display info about the currently selected
5015 inferior.
5016
e57933dc
SM
50172021-02-02 Simon Marchi <simon.marchi@efficios.com>
5018
5019 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5020 a sect_offset.
5021 (read_attribute_reprocess): Adjust.
5022
2b0c7f41
SM
50232021-02-02 Simon Marchi <simon.marchi@efficios.com>
5024
5025 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5026 <gnu_ranges_base>: ... this...
5027 <rnglists_base>: ... and this.
5028 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5029 <gnu_ranges_base>: ... this...
5030 <rnglists_base>: ... and this.
5031 (read_cutu_die_from_dwo): Adjust
5032 (dwarf2_get_pc_bounds): Adjust
5033 (dwarf2_record_block_ranges): Adjust.
5034 (read_full_die_1): Adjust
5035 (partial_die_info::read): Adjust.
5036 (read_rnglist_index): Adjust.
5037
a1c40103
SM
50382021-02-02 Simon Marchi <simon.marchi@efficios.com>
5039
5040 PR gdb/26813
5041 * dwarf2/read.c (read_loclists_rnglists_header): Add
5042 header_offset parameter and use it.
5043 (read_loclist_index): Read header of the current contribution,
5044 not the one at the beginning of the section.
5045 (read_rnglist_index): Likewise.
5046
b1829e1b
SM
50472021-02-02 Simon Marchi <simon.marchi@efficios.com>
5048
5049 PR gdb/26813
5050 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5051 requires_reprocessing flag.
5052 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5053 DW_FORM_loclistx.
5054 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5055 and DW_FORM_loclistx.
5056 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5057 instead of set_address for DW_FORM_loclistx and
5058 DW_FORM_rnglistx.
5059
0c800c6e
SM
50602021-02-02 Simon Marchi <simon.marchi@efficios.com>
5061
5062 * dwarf2/read.c (read_loclist_index): Remove bound check for
5063 start of offset.
5064 (read_rnglist_index): Likewise.
5065
05787bad
SM
50662021-02-02 Simon Marchi <simon.marchi@efficios.com>
5067
5068 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5069 of the offset.
5070
5e4d9bbc
SM
50712021-02-02 Simon Marchi <simon.marchi@efficios.com>
5072
5073 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5074
a0c1eeba
SM
50752021-02-02 Simon Marchi <simon.marchi@efficios.com>
5076
5077 * dwarf2/read.c (read_loclist_index): Change complaints into
5078 errors.
5079
2bd3e4b8
TV
50802021-02-02 Tom de Vries <tdevries@suse.de>
5081
5082 PR symtab/24620
5083 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5084 psymtab == nullptr.
5085
82a1fd3a
AB
50862021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5087
5088 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5089 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5090 here from linux-tdep.c and given a new name. Minor cleanups.
5091 (gcore_collect_regset_section_cb): Likewise.
5092 (gcore_collect_thread_registers): Likewise.
5093 (gcore_build_thread_register_notes): Likewise.
5094 (gcore_find_signalled_thread): Likewise.
5095 * gcore.h (gcore_build_thread_register_notes): Declare.
5096 (gcore_find_signalled_thread): Declare.
5097 * fbsd-tdep.c: Add 'gcore.h' include.
5098 (struct fbsd_collect_regset_section_cb_data): Delete.
5099 (fbsd_collect_regset_section_cb): Delete.
5100 (fbsd_collect_thread_registers): Delete.
5101 (struct fbsd_corefile_thread_data): Delete.
5102 (fbsd_corefile_thread): Delete.
5103 (fbsd_make_corefile_notes): Call
5104 gcore_build_thread_register_notes instead of the now deleted
5105 FreeBSD code.
5106 * linux-tdep.c: Add 'gcore.h' include.
5107 (struct linux_collect_regset_section_cb_data): Delete.
5108 (linux_collect_regset_section_cb): Delete.
5109 (linux_collect_thread_registers): Delete.
5110 (linux_corefile_thread): Call
5111 gcore_build_thread_register_notes.
5112 (find_signalled_thread): Delete.
5113 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5114
ebde6f2d
TV
51152021-01-29 Tom de Vries <tdevries@suse.de>
5116
5117 PR breakpoints/26063
5118 * infrun.c (process_event_stop_test): Reset
5119 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5120 changed.
5121
0f93c3a2
AB
51222021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5123
5124 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5125 assert. Extend the header comment.
5126
f237f998
AB
51272021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5128
5129 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5130 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5131 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5132 (tui_locator_win_info_ptr): Delete declaration.
5133 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5134 (tui_disasm_window::set_contents): Fetch state from tui_location
5135 global.
5136 (tui_get_begin_asm_address): Likewise.
5137 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5138 for locator window.
5139 (get_locator_window): Delete.
5140 (initialize_known_windows): Treat locator window just like all the
5141 rest.
5142 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5143 (tui_source_window::set_contents): Fetch state from tui_location
5144 global.
5145 (tui_source_window::showing_source_p): Likewise.
5146 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5147 (_locator): Delete.
5148 (tui_locator_win_info_ptr): Delete.
5149 (tui_locator_window::make_status_line): Fetch state from
5150 tui_location global.
5151 (tui_locator_window::rerender): Remove check of 'handle',
5152 reindent function body.
5153 (tui_locator_window::set_locator_fullname): Delete.
5154 (tui_locator_window::set_locator_info): Delete.
5155 (tui_update_locator_fullname): Delete.
5156 (tui_show_frame_info): Likewise.
5157 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5158 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5159 tui/tui-location.h and renamed to
5160 tui_location_tracker::set_location.
5161 (tui_locator_window::set_locator_fullname): Moved to
5162 tui/tui-location.h and renamed to
5163 tui_location_tracker::set_fullname.
5164 (tui_locator_window::full_name): Delete.
5165 (tui_locator_window::proc_name): Delete.
5166 (tui_locator_window::line_no): Delete.
5167 (tui_locator_window::addr): Delete.
5168 (tui_locator_window::gdbarch): Delete.
5169 (tui_update_locator_fullname): Delete declaration.
5170 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5171 for locator window.
5172 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5173 (tui_display_main): Call function on tui_location directly.
5174 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5175 * tui/tui-location.c: New file.
5176 * tui/tui-location.h: New file.
5177
8ee511af
SM
51782021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5179
5180 * gdbtypes.h (get_type_arch): Rename to...
5181 (struct type) <arch>: ... this, update all users.
5182
6ac37371
SM
51832021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5184
5185 * gdbtypes.h (struct type) <arch>: Rename to...
5186 <arch_owner>: ... this, update all users.
5187 <objfile>: Rename to...
5188 <objfile_owner>: ... this, update all users.
5189
24cf6389
AB
51902021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5191
5192 * gdbcmd.h (execute_command_to_string): Update comment.
5193 * top.c (execute_command_to_string): Update header comment.
5194
2a7f6487
TV
51952021-01-28 Tom de Vries <tdevries@suse.de>
5196
5197 PR breakpoints/27205
5198 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5199 (create_longjmp_master_breakpoint_names): New function, factored out
5200 of ...
5201 (create_longjmp_master_breakpoint): ... here. Only try to install
5202 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5203 breakpoint in libc.so failed.
5204
59b59f08
LS
52052021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5206
5207 PR gdb/27133
5208 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5209 unique_ptr is released when the wrapped pointer is kept for later
5210 use.
5211
807f647c
MM
52122021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5213
5214 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5215 BLR and BR instructions.
5216 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5217 (enum aarch64_masks): New.
5218
4ef367bf
TT
52192021-01-26 Tom Tromey <tromey@adacore.com>
5220
5221 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5222 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5223 (windows_init_thread_list, windows_nat::handle_load_dll)
5224 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5225 (windows_nat_target::resume)
5226 (windows_nat_target::get_windows_debug_event)
5227 (windows_nat_target::interrupt, windows_xfer_memory)
5228 (windows_nat_target::close): Update.
5229 * nat/windows-nat.c (DEBUG_EVENTS): Use
5230 debug_prefixed_printf_cond.
5231 (matching_pending_stop, fetch_pending_stop)
5232 (continue_last_debug_event): Update.
5233
4cb1265b
MS
52342020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5235
5236 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5237 elfcore_write_file_note.
5238
d0cc52bd
SV
52392021-01-26 Shahab Vahedi <shahab@synopsys.com>
5240
5241 * arc-tdep.c (arc_add_reggroups): New function.
5242 (arc_gdbarch_init): Call arc_add_reggroups.
5243
ac3571d9 52442021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5245
5246 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5247
9f6c202e
TV
52482021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5249 Simon Marchi <simon.marchi@polymtl.ca>
5250 Tom de Vries <tdevries@suse.de>
5251
5252 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5253 DW_AT_ranges.
5254
a625a8c9
TT
52552021-01-25 Tom Tromey <tromey@adacore.com>
5256
5257 * dwarf2/read.c (get_mpz): New function.
5258 (get_dwarf2_rational_constant): Use it.
5259
19184910
TT
52602021-01-25 Tom Tromey <tromey@adacore.com>
5261
5262 * ada-lang.c (resolve_subexp): Handle array context.
5263
b10bae18
TT
52642021-01-23 Tom Tromey <tom@tromey.com>
5265
5266 PR compile/25575
5267 * compile/compile-loc2c.c (note_register): New function.
5268 (pushf_register_address, pushf_register): Use it.
5269
3637a558
TT
52702021-01-23 Tom Tromey <tom@tromey.com>
5271
5272 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5273 Change type of "registers_used".
5274 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5275 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5276 (locexpr_generate_c_location, loclist_generate_c_location): Change
5277 type of "registers_used".
5278 * compile/compile.h (compile_dwarf_expr_to_c)
5279 (compile_dwarf_bounds_to_c): Update.
5280 * compile/compile-loc2c.c (pushf_register_address)
5281 (pushf_register, do_compile_dwarf_expr_to_c)
5282 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5283 of "registers_used".
5284 * compile/compile-c.h (generate_c_for_variable_locations):
5285 Update.
5286 * compile/compile-c-symbols.c (generate_vla_size)
5287 (generate_c_for_for_one_variable): Change type of
5288 "registers_used".
5289 (generate_c_for_variable_locations): Return std::vector.
5290 * compile/compile-c-support.c (generate_register_struct): Change
5291 type of "registers_used".
5292 (compute): Update.
5293
9f7f6cb8
TT
52942021-01-23 Tom Tromey <tom@tromey.com>
5295
5296 * compile/compile-internal.h (class compile_instance)
5297 <set_arguments>: Change return type.
5298 * compile/compile.c (compile_to_object): Remove call to reset.
5299 (compile_instance::set_arguments): Change return type.
5300
dd5ca05f
SM
53012021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5302
5303 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5304 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5305
d3ee35db
LS
53062021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5307
5308 * Makefile.in (SELFTESTS_SRCS): Add
5309 unittests/gdb_tilde_expand-selftests.c.
5310 * unittests/gdb_tilde_expand-selftests.c: New file.
5311
9d2d8a16
AB
53122021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5313
5314 PR cli/25956
5315 * NEWS: Mention new command.
5316 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5317 (version_style): Define.
5318 (cli_style_option::cli_style_option): Add intensity parameter, and
5319 use as appropriate.
5320 (_initialize_cli_style): Register version style set/show commands.
5321 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5322 (version_style): Declare.
5323 * top.c (print_gdb_version): Use version_stype, and styled_string
5324 to print the GDB version string.
5325
e7b43072
AB
53262021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5327
5328 * utils.c (emit_style_escape): Only emit an escape sequence if the
5329 requested style is different than the current applied style.
5330 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5331 current applied_style.
5332 (fputs_styled): Remove is_default check.
5333 (fputs_styled_unfiltered): Likewise.
5334 (vfprintf_styled_no_gdbfmt): Likewise.
5335
2189c312
SM
53362021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5337
5338 * remote.h (remote_debug_printf): New.
5339 (remote_debug_printf_nofunc): New.
5340 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5341 * remote.c: Use above macros throughout file.
5342
02349803
SM
53432021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5344
5345 * remote.h (remote_debug): Change to bool.
5346 * remote.c (remote_debug): Change to bool.
5347 (_initialize_remote): Adjust.
5348
cda09ec9
SM
53492021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5350
5351 * target.h (remote_debug): Move to...
5352 * remote.h (remote_debug): ... here.
5353 * top.c (remote_debug): Move to...
5354 * remote.c (remote_debug): ... here.
5355 * remote-sim.c: Include remote.h.
5356
baf2b57f
SM
53572021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5358
5359 * cli/cli-cmds.c (show_remote_debug): Remove.
5360 (show_remote_timeout): Remove.
5361 (_initialize_cli_cmds): Don't register commands.
5362 * remote.c (show_remote_debug): Move here.
5363 (show_remote_timeout): Move here.
5364 (_initialize_remote): Register commands.
5365
344e9841
SM
53662021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5367
5368 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5369 type::objfile method instead.
5370
30625020
SM
53712021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5372
5373 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5374 use the type::is_objfile_owned method.
5375
5b7d941b
SM
53762021-01-22 Simon Marchi <simon.marchi@efficios.com>
5377
5378 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5379 (TYPE_OWNER): Remove.
5380 (TYPE_OBJFILE): Adjust.
5381 (struct main_type) <flag_objfile_owned>: Rename to...
5382 <m_flag_objfile_owned>: ... this.
5383 <owner>: Rename to...
5384 <m_owner>: ... this.
5385 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5386 methods.
5387 (TYPE_ALLOC): Adjust.
5388 * gdbtypes.c (alloc_type): Adjust.
5389 (alloc_type_arch): Adjust.
5390 (alloc_type_copy): Adjust.
5391 (get_type_arch): Adjust.
5392 (smash_type): Adjust.
5393 (lookup_array_range_type): Adjust.
5394 (recursive_dump_type): Adjust.
5395 (copy_type_recursive): Adjust.
5396 * compile/compile-c-types.c (convert_func): Adjust.
5397 (convert_type_basic): Adjust.
5398 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5399 Adjust.
5400 * language.c
5401 (language_arch_info::type_and_symbol::alloc_type_symbol):
5402 Adjust.
5403
d5d24e12
LM
54042021-01-21 Luis Machado <luis.machado@linaro.org>
5405
5406 * coffread.c (enter_linenos): Passing string to complaint.
5407 * valops.c (value_assign): Make array view.
5408
a59902a7
SM
54092021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5410
5411 * auto-load.h (debug_auto_load): Move here.
5412 (auto_load_debug_printf): New.
5413 * auto-load.c: Use auto_load_debug_printf.
5414 (debug_auto_load): Move to header.
5415 * linux-thread-db.c (try_thread_db_load): Use
5416 auto_load_debug_printf.
5417 * main.c (captured_main_1): Likewise.
5418
d3abc0ce
SM
54192021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5420
5421 * f-valprint.c (f77_array_offset_tbl): Remove.
5422
1e15fcac
SM
54232021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5424
5425 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5426
439706e6
SM
54272021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5428
5429 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5430 of gdb_select.
5431
325d39e4
HD
54322021-01-21 Hannes Domani <ssbssa@yahoo.de>
5433
5434 PR python/19151
5435 * python/py-breakpoint.c (bppy_get_location): Handle
5436 bp_hardware_breakpoint.
5437 (bppy_init): Likewise.
5438 (gdbpy_breakpoint_created): Likewise.
5439
7cb6d92a
SM
54402021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5441
5442 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5443
d4dd4fca
SM
54442021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5445
5446 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5447 (_initialize_gdb_bfd): Adjust.
5448
de53369b
SM
54492021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5450
5451 PR gdb/26828
5452 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5453
17e593e9
SM
54542021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5455
5456 * dwarf2/read.c (follow_die_offset): Add logging.
5457 (dwarf2_per_objfile::age_comp_units): Add logging.
5458
6bd434d6
SM
54592021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5460
5461 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5462 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5463 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5464 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5465 * arm-tdep.c (struct frame_unwind): Make static.
5466 * auto-load.c (auto_load_safe_path_vec): Make static.
5467 * csky-tdep.c (csky_stub_unwind): Make static.
5468 * gdbarch.c (gdbarch_data_registry): Make static.
5469 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5470 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5471 * i386-tdep.c (i386_frame_setup_skip_insns,
5472 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5473 Make static.
5474 * infrun.c (observer_mode): Make static.
5475 * linux-nat.c (sigchld_action): Make static.
5476 * linux-thread-db.c (thread_db_list): Make static.
5477 * maint-test-options.c (maintenance_test_options_list):
5478 * mep-tdep.c (mep_csr_registers): Make static.
5479 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5480 (stats): Make static.
5481 * nat/linux-osdata.c (struct osdata_type): Make static.
5482 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5483 * progspace.c (last_program_space_num): Make static.
5484 * python/py-param.c (struct parm_constant): Remove struct type
5485 name.
5486 (parm_constants): Make static.
5487 * python/py-record-btrace.c (btpy_list_methods): Make static.
5488 * python/py-record.c (recpy_gap_type): Make static.
5489 * record.c (record_goto_cmdlist): Make static.
5490 * regcache.c (regcache_descr_handle): Make static.
5491 * registry.h (DEFINE_REGISTRY): Make definition static.
5492 * symmisc.c (std_in, std_out, std_err): Make static.
5493 * top.c (previous_saved_command_line): Make static.
5494 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5495 static.
5496 * unittests/command-def-selftests.c (nr_duplicates,
5497 nr_invalid_prefixcmd, lists): Make static.
5498 * unittests/observable-selftests.c (test_notification): Make
5499 static.
5500 * unittests/optional/assignment/1.cc (counter): Make static.
5501 * unittests/optional/assignment/2.cc (counter): Make static.
5502 * unittests/optional/assignment/3.cc (counter): Make static.
5503 * unittests/optional/assignment/4.cc (counter): Make static.
5504 * unittests/optional/assignment/5.cc (counter): Make static.
5505 * unittests/optional/assignment/6.cc (counter): Make static.
5506
a6c11cbb
JS
55072021-01-20 Joel Sherrill <joel@rtems.org>
5508
5509 PR gdb/27219
5510 * remote.c (struct remote_thread_info) <resume_state>: Rename
5511 to...
5512 <get_resume_state>: ... this.
5513 (remote_target::resume): Adjust.
5514 (remote_target::commit_resume): Adjust.
5515 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5516
6f52fdf4
SDJ
55172021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5518 Tom Tromey <tom@tromey.com>
5519
5520 * stap-probe.c (stap_parse_single_operand): Handle '!'
5521 operator.
5522 (stap_parse_argument_conditionally): Likewise.
5523 Skip spaces after processing open-parenthesis sub-expression.
5524 (stap_parse_argument_1): Skip spaces after call to
5525 stap_parse_argument_conditionally.
5526 Handle case when right-side expression is a parenthesized
5527 sub-expression.
5528 Skip spaces after call to stap_parse_argument_1.
5529
1c3b85ad
LS
55302021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5531
5532 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5533
a9a87d35
LM
55342021-01-19 Luis Machado <luis.machado@linaro.org>
5535
5536 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5537 memory and save data.
5538 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5539 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5540 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5541 (trad_frame_value_bytes_p): Remove.
5542 (trad_frame_reset_saved_regs): Adjust documentation.
5543 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5544 constructor and reset the state of the registers.
5545 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5546 (trad_frame_value_bytes_p, trad_frame_set_value)
5547 (trad_frame_set_realreg, trad_frame_set_addr)
5548 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5549 (trad_frame_set_reg_realreg): Update to call member function.
5550 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5551 (trad_frame_get_prev_register): Likewise.
5552
5553 * aarch64-tdep.c (aarch64_analyze_prologue)
5554 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5555 (aarch64_prologue_prev_register): Update to use member functions.
5556 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5557 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5558 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5559 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5560 (arm_make_epilogue_frame_cache): Likewise.
5561 * avr-tdep.c (avr_frame_unwind_cache)
5562 (avr_frame_prev_register): Likewise.
5563 * cris-tdep.c (cris_scan_prologue): Likewise.
5564 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5565 * frv-tdep.c (frv_analyze_prologue): Likewise.
5566 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5567 * lm32-tdep.c (lm32_frame_cache): Likewise.
5568 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5569 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5570 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5571 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5572 (reset_saved_regs): Adjust to set realreg.
5573 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5574 call member functions.
5575 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5576 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5577 (s390_backchain_frame_unwind_cache): Likewise.
5578 * score-tdep.c (score7_analyze_prologue)
5579 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5580 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5581 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5582 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5583 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5584 * tilegx-tdep.c (tilegx_analyze_prologue)
5585 (tilegx_frame_cache): Likewise.
5586 * v850-tdep.c (v850_frame_cache): Likewise.
5587 * vax-tdep.c (vax_frame_cache): Likewise.
5588
bdec2917
LM
55892021-01-19 Luis Machado <luis.machado@linaro.org>
5590
5591 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5592 of buffer + length.
5593 (put_frame_register_bytes): Likewise.
5594 Adjust documentation.
5595 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5596 (safe_frame_unwind_memory): Likewise.
5597 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5598 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5599 gdb::array_view.
5600 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5601 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5602 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5603 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5604 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5605 * dwarf2/loc.c (rw_pieced_value): Likewise.
5606 * hppa-tdep.c (hppa_frame_cache): Likewise.
5607 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5608 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5609 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5610 (i386_linux_rt_sigtramp_start): Likewise.
5611 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5612 * i386-tdep.c (i386_register_to_value): Likewise.
5613 * i387-tdep.c (i387_register_to_value): Likewise.
5614 * ia64-tdep.c (ia64_register_to_value): Likewise.
5615 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5616 (m32r_linux_rt_sigtramp_start): Likewise.
5617 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5618 * m68k-tdep.c (m68k_register_to_value): Likewise.
5619 * mips-tdep.c (mips_register_to_value)
5620 (mips_value_to_register): Likewise.
5621 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5622 (ppcfbsd_sigtramp_frame_cache): Likewise.
5623 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5624 (ppcobsd_sigtramp_frame_cache): Likewise.
5625 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5626 (rs6000_register_to_value): Likewise.
5627 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5628 * tramp-frame.c (tramp_frame_start): Likewise.
5629 * valops.c (value_assign): Likewise.
5630
ccbe4c82
LM
56312021-01-19 Luis Machado <luis.machado@linaro.org>
5632
5633 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5634 array_view.
5635 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5636 instead of buffer and size.
5637 (trad_frame_set_reg_value_bytes): Likewise.
5638 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5639 (trad_frame_set_value_bytes): Likewise.
5640
0e7620dc
MF
56412021-01-18 Mike Frysinger <vapier@gentoo.org>
5642
5643 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5644
6a9ad81c
AB
56452021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5646
5647 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5648 (riscv_fbsd_gregset): Use riscv_supply_regset.
5649 (riscv_fbsd_fpregset): Likewise.
5650 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5651 (riscv_linux_fregset): Likewise.
5652 * riscv-tdep.c (riscv_supply_regset): Define new function.
5653 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5654
d3d7d1ba
TV
56552021-01-18 Tom de Vries <tdevries@suse.de>
5656
5657 PR tdep/27172
5658 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5659 New macro.
5660 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5661 for SEGV_BNDERR.
5662
aa2838cc
SM
56632021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5664
5665 * remote.c (class remote_target) <remote_hostio_send_command,
5666 remote_hostio_parse_result>: Constify parameter.
5667 (remote_hostio_parse_result): Likewise.
5668 (remote_target::remote_hostio_send_command): Adjust.
5669 (remote_target::remote_hostio_pread_vFile): Adjust.
5670 (remote_target::fileio_readlink): Adjust.
5671 (remote_target::fileio_fstat): Adjust.
5672
b5c8f22d
SM
56732021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5674
5675 * remote.c (remote_target::start_remote): Move wait_status to
5676 narrower scope.
5677
e3b2741b
SM
56782021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5679
5680 * remote.c (class remote_target):
5681 <add_current_inferior_and_thread>: Constify parameter.
5682 (stop_reply_extract_thread): Likewise.
5683 (remote_target::get_current_thread): Likewise.
5684 (remote_target::add_current_inferior_and_thread): Likewise.
5685
cecb1912
SM
56862021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5687
5688 * remote.c (class remote_target)
5689 <remote_unpack_thread_info_response,
5690 parse_threadlist_response>: Constify parameter and/or return
5691 value and or local variable.
5692 (stub_unpack_int): Likewise.
5693 (unpack_nibble): Likewise.
5694 (unpack_byte): Likewise.
5695 (unpack_int): Likewise.
5696 (unpack_string): Likewise.
5697 (unpack_threadid): Likewise.
5698 (remote_target::remote_unpack_thread_info_response): Likewise.
5699 (remote_target::parse_threadlist_response): Likewise.
5700
5a11fff0
AB
57012021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5702
5703 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5704
17e89137
LS
57052021-01-14 Lancelot Six <lsix@lancelotsix.com>
5706
5707 * MAINTAINERS (Write After Approval): Add myself.
5708
58eadc4b
BE
57092021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5710
5711 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5712 because is_trivially_default_constructible was first implemented with
5713 gcc-5.
5714
5fae2a2c
TV
57152021-01-14 Tom de Vries <tdevries@suse.de>
5716
5717 PR breakpoints/27151
5718 * objfiles.h (in_plt_section): Handle .plt.sec.
5719
8f66807b
AB
57202021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5721
5722 PR gdb/26819
5723 * remote.c
5724 (remote_target::select_thread_for_ambiguous_stop_reply): New
5725 member function.
5726 (remote_target::process_stop_reply): Call
5727 select_thread_for_ambiguous_stop_reply.
5728
bd497355
SM
57292021-01-13 Simon Marchi <simon.marchi@efficios.com>
5730
5731 * record-btrace.c (class record_btrace_target): Remove.
5732 (record_btrace_target::commit_resume): Remove.
5733 * record-full.c (class record_full_target): Remove.
5734 (record_full_target::commit_resume): Remove.
5735
c9d22089
SM
57362021-01-13 Simon Marchi <simon.marchi@efficios.com>
5737
5738 * remote.c (enum class resume_state): New.
5739 (struct resumed_pending_vcont_info): New.
5740 (struct remote_thread_info) <resume_state, set_not_resumed,
5741 set_resumed_pending_vcont, resumed_pending_vcont_info,
5742 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5743 New.
5744 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5745 (remote_target::remote_add_thread): Adjust.
5746 (remote_target::process_initial_stop_replies): Adjust.
5747 (remote_target::resume): Adjust.
5748 (remote_target::commit_resume): Rely on state in
5749 remote_thread_info and not on tp->executing.
5750 (remote_target::process_stop_reply): Adjust.
5751
d8d1feb4
SM
57522021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5753
5754 * arc-tdep.h (arc_debug_printf): New.
5755 * arc-tdep.c: Use arc_debug_printf.
5756 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5757 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5758 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5759
fb0f5031
SM
57602021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5761
5762 * arc-tdep.h (arc_debug): Change type to bool.
5763 * arc-tdep.c (arc_debug): Change type to bool.
5764 (arc_analyze_prologue): Adjust.
5765 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5766 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5767
5bf7e91b
SM
57682021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5769
5770 * auto-load.c (auto_load_objfile_script_1): Use bool.
5771 (execute_script_contents): Use bool.
5772
db972fce
SM
57732021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5774
5775 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5776 comment here.
5777 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5778 comment to header.
5779 * extension-priv.h (struct extension_language_script_ops)
5780 <auto_load_enabled>: Return bool.
5781 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5782 comment here.
5783 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5784 comment to header.
5785 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5786 move comment here.
5787 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5788 move comment to header.
5789 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5790 move comment here.
5791 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5792 move comment to header.
5793
5e12f48f
SM
57942021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5795
5796 * auto-load.h (file_is_auto_load_safe): Change return type to
5797 bool, move comment here.
5798 * auto-load.c (file_is_auto_load_safe): Change return type and
5799 advice_printed to bool. Move comment to header.
5800
54ca9002
SM
58012021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5802
5803 * jit.c (jit_debug_printf): New, use throughout file.
5804
24a7f1b5
SM
58052021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5806
5807 * infrun.c (normal_stop): Fix indentation.
5808
fe7a351a
SM
58092021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5810
5811 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5812 declarations to ...
5813 * symfile.h: ... here.
5814 * symfile.c: Update doc.
5815
16e9019e
SM
58162021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5817
5818 * target.h (baud_rate, serial_parity): Move declarations...
5819 * serial.h: ... here.
5820 * main.c: Include serial.h.
5821 * serial.c (baud_rate, serial_parity): Update doc.
5822
b2f2ae0d
SM
58232021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5824
5825 * top.c (pre_init_ui_hook): Remove.
5826
5291fe3c
SP
58272021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5828
5829 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5830 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5831 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5832 * features/aarch64-fpu.xml: Add bfloat16 type.
5833
ce38f5ed
AB
58342021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5835
5836 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5837
7c654b71
AB
58382021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5839
5840 * f-exp.y (dot_ops): Rename to...
5841 (fortran_operators): ...this. Add a header comment. Add symbol
5842 based operators.
5843 (yylex): Update to use fortran_operators not dot_ops. Remove
5844 special handling for '**', this is now included in
5845 fortran_operators.
5846
c6185dce
SM
58472021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5848
5849 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5850 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5851 * aarch64-tdep.c: Use aarch64_debug_printf.
5852
eef401dc
SM
58532021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5854
5855 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5856 file.
5857
062eaacb
SM
58582021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5859
5860 * jit.c (jit_debug): Change type to bool.
5861 (_initialize_jit): Adjust.
5862
54585eee
TT
58632021-01-09 Tom Tromey <tom@tromey.com>
5864
5865 PR compile/23672
5866 * compile/compile.c (compile_to_object): Avoid crash when
5867 osabi_triplet_regexp returns NULL.
5868
bc167b6b
TT
58692021-01-09 Tom Tromey <tom@tromey.com>
5870
5871 * tracepoint.h (class collection_list) <append_exp>: Take a
5872 std::string.
5873 * tracepoint.c (collection_list::append_exp): Take a std::string.
5874 (encode_actions_1): Update.
5875
8fc48b79
TT
58762021-01-08 Tom Tromey <tromey@adacore.com>
5877
5878 * parse.c (parse_expression): Add void_context_p parameter. Use
5879 parse_exp_in_context.
5880 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5881 parse_expression.
5882 (print_command, call_command): Update.
5883 * expression.h (parse_expression): Add void_context_p parameter.
5884
3c8c6de2
AB
58852021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5886
5887 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5888 for internalvar components that have a dynamic location.
5889
1940319c
TV
58902021-01-08 Tom de Vries <tdevries@suse.de>
5891
5892 PR gdb/26881
5893 * breakpoint.c (create_exception_master_breakpoint_probe)
5894 (create_exception_master_breakpoint_hook): Factor out
5895 of ...
5896 (create_exception_master_breakpoint): ... here. Only try to install
5897 the master exception breakpoint in objfile.debug using the
5898 _Unwind_DebugHook method, if the install using probes in objfile
5899 failed.
5900
e3436813
AB
59012021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5902
5903 * f-lang.c (fortran_value_subarray): Call value_from_component.
5904
e904f56d
MF
59052021-01-07 Mike Frysinger <vapier@gentoo.org>
5906
5907 * remote-sim.c: Include memory-map.h.
5908 (gdbsim_target): Define memory_map override.
5909 (gdbsim_target::memory_map): Define.
5910
959d6a67
TT
59112021-01-07 Tom Tromey <tromey@adacore.com>
5912
5913 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5914
d4813f10
TT
59152021-01-07 Tom Tromey <tromey@adacore.com>
5916
5917 * ada-lang.c (add_component_interval): Start loop using vector's
5918 updated size.
5919
b49180ac
TT
59202021-01-06 Tom Tromey <tromey@adacore.com>
5921
5922 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5923 Do not cast result.
5924 * valarith.c (fixed_point_binop): Handle multiplication
5925 and division specially.
5926 * valops.c (value_to_gdb_mpq): New function.
5927 (value_cast_to_fixed_point): Use it.
5928
55195361
HD
59292021-01-05 Hannes Domani <ssbssa@yahoo.de>
5930
5931 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5932 Call wnoutrefresh instead of tui_win_info::refresh_window.
5933
1b6d4bb2
HD
59342021-01-05 Hannes Domani <ssbssa@yahoo.de>
5935
5936 * tui/tui-source.c (tui_source_window::show_line_number):
5937 Redraw second space after line number.
5938
b5ff370e
HD
59392021-01-05 Hannes Domani <ssbssa@yahoo.de>
5940
5941 PR tui/26927
5942 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5943 Fix source pad size in prefresh.
5944 (tui_source_window_base::show_source_content): Grow source pad
5945 if necessary.
5946
c68ea49f
MF
59472021-01-04 Mike Frysinger <vapier@gentoo.org>
5948
5949 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5950 (bfin_frame_align): Use align_down.
5951
e4ad960a
TV
59522021-01-04 Tom de Vries <tdevries@suse.de>
5953
5954 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5955 terminators that do not terminate anything.
5956
3ec3145c
SM
59572021-01-04 Simon Marchi <simon.marchi@efficios.com>
5958
5959 * debug.c (debug_print_depth): New.
5960 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5961 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5962 * infrun.c (start_step_over): Use
5963 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5964 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5965 INFRUN_SCOPED_DEBUG_START_END.
5966 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5967
e71daf80
SM
59682021-01-04 Simon Marchi <simon.marchi@efficios.com>
5969
5970 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5971
335709bc
SM
59722021-01-04 Simon Marchi <simon.marchi@efficios.com>
5973
5974 * utils.c (vfprintf_unfiltered): Print timestamp only when
5975 previous debug output ended with a newline.
5976
098caef4
LM
59772021-01-04 Luis Machado <luis.machado@linaro.org>
5978
5979 Update all users of trad_frame_saved_reg to use the new member
5980 functions.
5981
5982 Remote all struct keywords from declarations of trad_frame_saved_reg
5983 types, except on forward declarations.
5984
5985 * aarch64-tdep.c: Update.
5986 * alpha-mdebug-tdep.c: Update.
5987 * alpha-tdep.c: Update.
5988 * arc-tdep.c: Update.
5989 * arm-tdep.c: Update.
5990 * avr-tdep.c: Update.
5991 * cris-tdep.c: Update.
5992 * csky-tdep.c: Update.
5993 * frv-tdep.c: Update.
5994 * hppa-linux-tdep.c: Update.
5995 * hppa-tdep.c: Update.
5996 * hppa-tdep.h: Update.
5997 * lm32-tdep.c: Update.
5998 * m32r-linux-tdep.c: Update.
5999 * m32r-tdep.c: Update.
6000 * m68hc11-tdep.c: Update.
6001 * mips-tdep.c: Update.
6002 * moxie-tdep.c: Update.
6003 * riscv-tdep.c: Update.
6004 * rs6000-tdep.c: Update.
6005 * s390-linux-tdep.c: Update.
6006 * s390-tdep.c: Update.
6007 * score-tdep.c: Update.
6008 * sparc-netbsd-tdep.c: Update.
6009 * sparc-sol2-tdep.c: Update.
6010 * sparc64-fbsd-tdep.c: Update.
6011 * sparc64-netbsd-tdep.c: Update.
6012 * sparc64-obsd-tdep.c: Update.
6013 * sparc64-sol2-tdep.c: Update.
6014 * tilegx-tdep.c: Update.
6015 * v850-tdep.c: Update.
6016 * vax-tdep.c: Update.
6017
6018 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6019 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6020
6021 * trad-frame.c: Update.
6022 Remove TF_REG_* enum.
6023 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6024 a trivially-constructible struct.
6025 (trad_frame_reset_saved_regs): Adjust to use member function.
6026 (trad_frame_value_p): Likewise.
6027 (trad_frame_addr_p): Likewise.
6028 (trad_frame_realreg_p): Likewise.
6029 (trad_frame_value_bytes_p): Likewise.
6030 (trad_frame_set_value): Likewise.
6031 (trad_frame_set_realreg): Likewise.
6032 (trad_frame_set_addr): Likewise.
6033 (trad_frame_set_unknown): Likewise.
6034 (trad_frame_set_value_bytes): Likewise.
6035 (trad_frame_get_prev_register): Likewise.
6036 * trad-frame.h: Update.
6037 (trad_frame_saved_reg_kind): New enum.
6038 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6039 <m_kind, m_reg>: New member fields.
6040 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6041 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6042 <is_addr, is_unknown, is_value_bytes>: New member functions.
6043
9898e882
SM
60442021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6045
6046 * target-float.c: Fix typos.
6047
b66b4e65
HD
60482021-01-02 Hannes Domani <ssbssa@yahoo.de>
6049
6050 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6051
b5b5650a
JB
60522021-01-01 Joel Brobecker <brobecker@adacore.com>
6053
6054 * gdbarch.sh: Update copyright year range.
6055
3666a048
JB
60562021-01-01 Joel Brobecker <brobecker@adacore.com>
6057
6058 Update copyright year range in copyright header of all GDB files.
6059
ff7e39b6
JB
60602021-01-01 Joel Brobecker <brobecker@adacore.com>
6061
6062 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6063 to the list of directories to update.
6064
2b47c078
JB
60652021-01-01 Joel Brobecker <brobecker@adacore.com>
6066
6067 * top.c (print_gdb_version): Update copyright year.
6068
9e5e03df 60692021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 6070
476923f1 6071 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 6072
476923f1 6073For older changes see ChangeLog-2020.
c906108c
SS
6074\f
6075Local Variables:
6076mode: change-log
6077left-margin: 8
6078fill-column: 74
6079version-control: never
57da7796 6080coding: utf-8
c906108c 6081End: