Manual copyright year update of various GDB files
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
afe40966
JB
12022-01-16 Joel Brobecker <brobecker@adacore.com>
2
3 * gdbarch.sh: Update end year of copyright year range for
4 copyright header of generated files.
5
88b9d363
JB
62022-01-16 Joel Brobecker <brobecker@adacore.com>
7
8 Update copyright year in header of all GDB files to 2022,
9 using the gdb/copyright.py script
10
f2126454
JB
112022-01-16 Joel Brobecker <brobecker@adacore.com>
12
13 * copyright.py (EXCLUDE_LIST): Add "gdbsupport/Makefile.in".
14
b5c91ebd
JB
152022-01-16 Joel Brobecker <brobecker@adacore.com>
16
17 * top.c: Update year range in copyright notice.
18 (print_gdb_version): Update copyright year to 2022.
19
6eccc2c8
AB
202021-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 PR gdb/28405
23 * remote.c (remote_target::remote_add_thread): Add new silent_p
24 argument, use as needed.
25 (remote_target::remote_notice_new_inferior): Pass additional
26 argument to remote_add_thread.
27 (remote_target::remote_notice_new_inferior): Likewise.
28 (extended_remote_target::attach): Call remote_add_thread instead
29 of add_thred_silent directly.
30 (remote_target::select_thread_for_ambiguous_stop_reply): Move
31 assert earlier, before we use the thing we're asserting is not
32 nullptr.
33
b6fc91c7
BL
342021-12-11 Bruno Larsen <blarsen@redhat.com>
35
36 PR gdb/28480
37
38 Pushed by Joel Brobecker <brobecker@adacore.com>
39 * valops.c (struct_field_searcher::update_result): Improve
40 ambiguous member detection.
41
eb79b231
LM
422021-11-03 Luis Machado <luis.machado@linaro.org>
43
44 PR gdb/28355
45
46 * arch/aarch64.h (struct aarch64_features): New struct.
47
cfd85eb3
TV
482021-10-22 Tom de Vries <tdevries@suse.de>
49
50 PR tui/28483
51 * tui/tui-winsource.c (tui_source_window_base::update_breakpoint_info):
52 Fix returns in loop body.
53
9b4d030e
TV
542021-10-04 Tom de Vries <tdevries@suse.de>
55
56 PR build/28318
57 * ax_cxx_compile_stdcxx.m4: Add CXX_DIALECT to CXX.
58 * configure: Regenerate.
59
824d17db
JB
602021-09-13 Joel Brobecker <brobecker@adacore.com>
61
62 * version.in: Set GDB version number to 11.1.90.DATE-git.
63
8cdd8568
JB
642021-09-13 Joel Brobecker <brobecker@adacore.com>
65
66 GDB 11.1 released.
67
c599303f
JB
682021-09-13 Joel Brobecker <brobecker@adacore.com>
69
70 * version.in: Set GDB version number to 11.1.
71
b06653b6
TT
722021-09-08 Tom Tromey <tom@tromey.com>
73
74 * dwarf2/read.h (dwarf2_per_objfile::resize_symtabs): Remove.
75 * dwarf2/read.c (all_comp_units_iterator, all_comp_units_range):
76 New classes.
77 (dwarf2_per_objfile::symtab_set_p)
78 (dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
79 Adjust to resizeable vectors.
80 (dwarf2_gdb_index::expand_symtabs_matching)
81 (dwarf2_base_index_functions::map_symbol_filenames)
82 (dwarf2_debug_names_index::expand_symtabs_matching): Use
83 all_comp_units_range.
84 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
85 (add_type_unit): Don't call resize_symtabs.
86
aaa394b7
JB
872021-09-07 John Baldwin <jhb@FreeBSD.org>
88
89 * fbsd-nat.c (fbsd_nat_target::info_proc): Use plongest and
90 pulongest instead of %j.
91
e1652de2
TV
922021-08-30 Tom de Vries <tdevries@suse.de>
93
94 PR cli/28290
95 * gdb/corelow.c (core_target_open): Skip call to gdb_abspath in the
96 empty-string case.
97
2840a186
TV
982021-08-23 Tom de Vries <tdevries@suse.de>
99
100 PR gdb/26880
101 * gdb/exec.c (exec_file_attach): Use %s instead of %ps in call to
102 error function.
103
a656ee08
TV
1042021-08-06 Simon Marchi <simon.marchi@polymtl.ca>
105 Tom de Vries <tdevries@suse.de>
106
107 PR symtab/28004
108 * dwarf2/read.c (dwarf2_rnglists_process, dwarf2_ranges_process):
109 Fix zero address complaint.
110
3e5ec878
TT
1112021-08-02 Tom Tromey <tromey@adacore.com>
112
113 PR varobj/28131
114 * varobj.c (~varobj): Delete 'dynamic' before 'root'.
115
e4c1aea4
SV
1162021-08-02 Shahab Vahedi <shahab@synopsys.com>
117
118 PR gdb/28104
119 * gdbtypes.c (gdbtypes_post_init): Use
120 "arch_boolean_type (..., unsigned=1, ...) to construct
121 "boolean".
122 cp-valprint.c (test_print_flags): New.
123 (_initialize_cp_valprint): Run the "test_print_flags" unit-test.
124
52a49e16
TV
1252021-07-28 Tom de Vries <tdevries@suse.de>
126
127 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_FORM_data16.
128
c12608fc
TV
1292021-07-27 Tom de Vries <tdevries@suse.de>
130
131 PR testsuite/26904
132 * gdb/testsuite/gdb.ada/big_packed_array.exp: Add xfail.
133
7e292f1a
TV
1342021-07-27 Tom de Vries <tdevries@suse.de>
135
136 PR testsuite/26903
137 * gdb/testsuite/gdb.ada/array_of_variant.exp: Add xfails.
138
1693a7cf
FC
1392021-07-26 Frederic Cambus <fred@statdns.com>
140
141 * syscalls/netbsd.xml: Regenerate.
142
70417f28
SV
1432021-07-26 Shahab Vahedi <shahab@synopsys.com>
144 Simon Marchi <simon.marchi@efficios.com>
145
146 PR gdb/28103
147 * valprint.c (val_print_type_code_flags): Merely shift the VAL
148 to the right to get rid of the lower bits.
149 (test_print_flags): New.
150 (_initialize_valprint): Invoke the "test_print_flags" as a unit-test.
151
86271cfa
TBA
1522021-07-26 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
153
154 PR gdb/28076
155 * mi/mi-cmd-break.c (mi_cmd_break_condition): Handle the case
156 of having no condition argument.
157
4f3fb91a
LM
1582021-07-20 Luis Machado <luis.machado@linaro.org>
159 Pedro Alves <pedro@palves.net>
160
161 PR gdb/28110
162 * gdbarch.sh: Updated documentation for gdbarch_tagged_address_p.
163 * gdbarch.h: Regenerate.
164 * printcmd.c (should_validate_memtags): Reorder comparisons and only
165 validate tags for pointer and reference types. Skip validation of
166 optimized out or unavailable values.
167 (print_command_1): Guard call memory tagging validation code with
168 a try/catch block.
169
e22715ce
TT
1702021-07-19 Tom Tromey <tromey@adacore.com>
171
172 PR gdb/28093
173 * language.c (auto_or_unknown_language::parser): Call error.
174
28b48aa1
SB
1752021-07-17 Sergey Belyashov <Sergey.Belyashov@gmail.com>
176
177 * Makefile.in (ALL_TARGET_OBS): Add z80-tdep.c.
178 * NEWS: Mention z80 support.
179 * configure.tgt: Handle z80*.
180 * features/Makefile (XMLTOC): Add z80.xml.
181 * features/z80-cpu.xml: New.
182 * features/z80.c: Generate.
183 * features/z80.xml: New.
184 * z80-tdep.c: New file.
185 * z80-tdep.h: New file.
186
f1d9f199
LS
1872021-07-13 Lancelot Six <lsix@lancelotsix.com>
188
189 * make-init-c: Use /bin/sh as shebang.
190
3e0910a5
PA
1912021-07-13 Pedro Alves <pedro@palves.net>
192
193 PR gdb/28080
194 * gdb_bfd.c (gdb_bfd_close_warning): New.
195 (gdb_bfd_iovec_fileio_close): Wrap target_fileio_close in
196 try/catch and print warning on exception.
197 (gdb_bfd_close_or_warn): Use gdb_bfd_close_warning.
198
97c5ca8c
PA
1992021-07-13 Pedro Alves <pedro@palves.net>
200
201 PR gdb/28080
202 * remote.c (remote_unpush_target): Invalidate file I/O target
203 handles.
204 * target.c (fileio_handles_invalidate_target): Make extern.
205 * target.h (fileio_handles_invalidate_target): Declare.
206
1bdfa2b1
SM
2072021-07-13 Simon Marchi <simon.marchi@polymtl.ca>
208
209 * mi/mi-main.c (mi_cmd_exec_interrupt): Use
210 scoped_disable_commit_resumed in the --thread-group case.
211
29e079b8
JE
2122021-07-13 John Ericson <git@JohnEricson.me>
213
214 * sparc-tdep.h: Fix comment.
215 * netbsd-tdep.c (nbsd_info_proc_mappings_header): Fix comment.
216 (nbsd_init_abi): Fix comment.
217 * configure.tgt (*-*-netbsd* | *-*-knetbsd*-gnu): Fix netbsd
218 file name.
219 (alpha*-*-openbsd*): Likewise.
220 (sparc-*-openbsd*): Likewise.
221 (sparc64-*-openbsd*): Likewise.
222
2814ff83
TT
2232021-07-11 Tom Tromey <tom@tromey.com>
224
225 Committed by Joel Brobecker <brobecker@adacore.com>:
226 * gdb/symtab.c (info_sources_filter::matches): Add default
227 case hander in switch statement.
228
ff32938d
SM
2292021-07-08 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * s390-linux-tdep.c (s390_linux_init_abi_any): Pass 1 (number
232 of displaced stepping buffers to linux_init_abi.
233 * s390-tdep.c (s390_gdbarch_init): Don't set the Linux-specific
234 displaced-stepping gdbarch callbacks.
235
6f0fe250
SM
2362021-07-08 Simon Marchi <simon.marchi@polymtl.ca>
237
238 * Makefile.in (SUBDIRS): Remove testsuite.
239
8043d65b
SM
2402021-07-06 Simon Marchi <simon.marchi@polymtl.ca>
241
242 * configure.ac: Remove things that were moved from
243 testsuite/configure.ac.
244 * configure: Re-generate.
245
507af45f
SM
2462021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
247
248 * config.in, configure: Re-generate.
249
5d91a235
SM
2502021-07-04 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * solib-darwin.c (darwin_solib_create_inferior_hook): Return
253 early if no execution.
254
afc60144
JB
2552021-07-03 Joel Brobecker <brobecker@adacore.com>
256
257 * version.in: Set GDB version number to 11.0.90.DATE-git.
258
3c21f80e
JB
2592021-07-03 Joel Brobecker <brobecker@adacore.com>
260
261 GDB 11.0.90 released.
262
14b92135
JB
2632021-07-03 Joel Brobecker <brobecker@adacore.com>
264
265 * version.in: Set GDB version number to 11.0.90.
266
466ee06b
JB
2672021-07-03 Joel Brobecker <brobecker@adacore.com>
268
269 * NEWS: Replace "Changes since GDB 10" by "Changes in GDB 11".
270
633fd340
JB
2712021-07-03 Joel Brobecker <brobecker@adacore.com>
272
273 GDB 11 branch created (4b51505e33441c6165e7789fa2b6d21930242927):
274 * version.in: Bump version to 11.0.90.DATE-git.
275
57bb96d3
TT
2762021-07-02 Tom Tromey <tromey@adacore.com>
277
278 * ada-exp.y (chop_selector, chop_separator, write_selectors)
279 (write_ambiguous_var, get_symbol_field_type): Use const.
280
90b044ef
PA
2812021-07-02 Pedro Alves <pedro@palves.net>
282 Hannes Domani <ssbssa@yahoo.de>
283
284 * NEWS: Add new "TUI Improvements" section and mention mouse
285 support and that unrecognized special keys are now passed to
286 GDB. Mention Python Window.click in the Python improvements
287 section.
288
05c06f31
PA
2892021-07-01 Pedro Alves <pedro@palves.net>
290
291 PR mi/15729
292 PR gdb/13463
293 * linux-nat.c (linux_nat_target::detach): Close the
294 /proc/<pid>/mem file if it was open for this process.
295 (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>: Close the
296 /proc/<pid>/mem file if it was open for this process.
297 (linux_nat_target::mourn_inferior): Close the /proc/<pid>/mem file
298 if it was open for this process.
299 (linux_nat_target::xfer_partial): Adjust. Do not fall back to
300 inf_ptrace_target::xfer_partial for memory accesses.
301 (last_proc_mem_file): New.
302 (maybe_close_proc_mem_file): New.
303 (linux_proc_xfer_memory_partial_pid): New, with bits factored out
304 from linux_proc_xfer_partial.
305 (linux_proc_xfer_partial): Delete.
306 (linux_proc_xfer_memory_partial): New.
307
fe67a58f
SM
3082021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
309
310 * frame.h (FRAME_SCOPED_DEBUG_ENTER_EXIT): New.
311 * frame.c (compute_frame_id, get_prev_frame_always_1,
312 get_prev_frame): Use FRAME_SCOPED_DEBUG_ENTER_EXIT.
313 * frame-unwind.c (frame_unwind_find_by_frame): Likewise.
314 (frame_unwind_register_value): Likewise.
315
a154d838
SM
3162021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
317
318 * frame-unwind.h (struct frame_unwind) <name>: New. Update
319 instances everywhere to include this field.
320 * frame-unwind.c (frame_unwind_try_unwinder,
321 frame_unwind_find_by_frame): Add debug messages.
322
a05a883f
SM
3232021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
324
325 * frame.h (frame_debug_printf): New.
326 * frame.c: Use frame_debug_printf throughout when printing frame
327 debug messages.
328 * amd64-windows-tdep.c: Likewise.
329 * value.c: Likewise.
330
dd4f75f2
SM
3312021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
332
333 * frame.h (frame_debug): Change type to bool.
334 * frame.c (frame_debug): Change type to bool.
335 (_initialize_frame): Adjust.
336
4743af62
TBA
3372021-06-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
338
339 * gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
340
2608aff5
SM
3412021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
342
343 PR gdb/28017
344 * machoread.c (macho_symfile_offsets): Use
345 gdb_bfd_count_sections to allocate objfile::section_offsets.
346
0c1bcd23
SM
3472021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * objfiles.h (struct obj_section): Move down.
350 <offset, set_offset, addr, endaddr>: New.
351 (obj_section_offset, obj_section_addr, obj_section_endaddr),
352 replace all users to use obj_section methods.
353 (struct objfile) <section_offset, set_section_offset>: New.
354
3552021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
356
357 * objfiles.h (struct obj_section): Move down.
358 <offset, set_offset, addr, endaddr>: New.
359 (obj_section_offset, obj_section_addr, obj_section_endaddr),
360 replace all users to use obj_section methods.
361 (struct objfile) <section_offset, set_section_offset>: New.
362
f07fad95
SM
3632021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
364
365 * .flake8: New.
366
a52d0b9d
LM
3672021-06-28 Luis Machado <luis.machado@linaro.org>
368
369 * aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top
370 byte.
371 (aarch64_linux_set_memtags): Likewise.
372 (aarch64_linux_get_memtag): Likewise.
373 (aarch64_linux_report_signal_info): Likewise.
374
e660f4e9
LM
3752021-06-28 Luis Machado <luis.machado@linaro.org>
376
377 * aarch64-linux-tdep.c
378 (aarch64_linux_iterate_over_regset_sections): Fix FFR register size.
379
0a3b55a6
LM
3802021-06-28 Luis Machado <luis.machado@linaro.org>
381
382 * aarch64-linux-tdep.c
383 (aarch64_linux_iterate_over_regset_sections): Update tag_ctl register
384 size.
385 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Set to
386 8 and update comments.
387
b447dd03
SM
3882021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
389
390 * gdbarch.sh (struct gdbarch_info): Initialize fields, add
391 constructor.
392 * gdbarch.h: Re-generate.
393 * arch-utils.h (gdbarch_info_init): Remove, delete all usages.
394 * arch-utils.c (gdbarch_info_init): Remove.
395
c87c999c
SM
3962021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
397
398 * gdbarch.sh (struct gdbarch_info) <tdep_info>: Remove.
399 (gdbarch_find_by_info): Remove print.
400 * gdbarch.c, gdbarch.h: Re-generate.
401
4d60b897
AB
4022021-06-28 Andrew Burgess <andrew.burgess@embecosm.com>
403
404 * remote.c (remote_target::start_remote): Set 'starting_up' using
405 boolean values instead of integers.
406
6a72dbb6
SM
4072021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
408
409 * guile/scm-param.c (struct param_smob) <set_command,
410 show_command>: Remove.
411 <commands>: New.
412 (pascm_is_valid): Adjust.
413 (add_setshow_generic): Use return values of add_setshow
414 functions, return a set_show_commands.
415 (gdbscm_register_parameter_x): Adjust.
416
4c0ba02a
SM
4172021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
418
419 * command.h (add_setshow_enum_cmd): Remove context parameter.
420 * cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
421 set context.
422 * cli/cli-style.c (cli_style_option::add_setshow_commands): Set
423 context here.
424
d6ff04a3
SM
4252021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
426
427 * cli/cli-decode.h (struct cmd_list_element) <set_context>: Add
428 assert.
429
0f8e2034
SM
4302021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
431
432 * cli/cli-decode.h (struct cmd_list_element) <set_context,
433 context>: New.
434 <context>: Rename to...
435 <m_context>: ... this.
436 * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove.
437 * command.h (set_cmd_context, get_cmd_context): Remove, use
438 cmd_list_element::set_context and cmd_list_element::context
439 everywhere instead.
440
bd742128
AB
4412021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
442
443 * NEWS: Mention changes to 'info sources'.
444 * symtab.c (info_sources_filter::print): Delete.
445 (struct output_source_filename_data) <print_header>: Delete
446 declaration. <printed_filename_p>: New member function.
447 (output_source_filename_data::print_header): Delete.
448 (info_sources_worker): Update group-by-objfile style output to
449 make it CLI suitable, simplify non-group-by-objfile now this is
450 only used from the MI.
451 (info_sources_command): Make group-by-objfile be the default for
452 CLI info sources command.
453 * symtab.h (struct info_sources_filter) <print>: Delete.
454
1fb1ce02
AB
4552021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
456
457 * NEWS: Mention additions to -file-list-exec-source-files.
458 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Add
459 --group-by-objfile option.
460 * symtab.c (isrc_flag_option_def): Rename to...
461 (isrc_match_flag_option_def): ...this.
462 (info_sources_option_defs): Rename to...
463 (info_sources_match_option_defs): ...this, and update to rename of
464 isrc_flag_option_def.
465 (struct filename_grouping_opts): New struct.
466 (isrc_grouping_flag_option_def): New type.
467 (info_sources_grouping_option_defs): New static global.
468 (make_info_sources_options_def_group): Update to return two option
469 groups.
470 (info_sources_command_completer): Update for changes to
471 make_info_sources_options_def_group.
472 (info_sources_worker): Add extra parameter, use this to display
473 alternative output format.
474 (info_sources_command): Pass extra parameter to
475 info_sources_worker.
476 (_initialize_symtab): Update for changes to
477 make_info_sources_options_def_group.
478 * symtab.h (info_sources_worker): Add extra parameter.
479
0e350a05
AB
4802021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
481
482 * NEWS: Mention additions to -file-list-exec-source-files.
483 * mi/mi-cmd-file.c (print_partial_file_name): Delete.
484 (mi_cmd_file_list_exec_source_files): Rewrite to handle command
485 options, and make use of info_sources_worker.
486 * symtab.c (struct info_sources_filter): Moved to symtab.h.
487 (info_sources_filter::print): Take uiout argument, produce output
488 through uiout.
489 (struct output_source_filename_data)
490 <output_source_filename_data>: Take uiout argument, store into
491 m_uiout. <output>: Rewrite comment, add additional arguments to
492 declaration. <operator()>: Send more arguments to
493 output. <m_uiout>: New member variable.
494 (output_source_filename_data::output): Take extra arguments,
495 produce output through m_uiout, and structure for MI.
496 (output_source_filename_data::print_header): Produce output
497 through m_uiout.
498 (info_sources_worker): New function, the implementation is taken
499 from info_sources_command, but modified so produce output through
500 a ui_out.
501 (info_sources_command): The second half of this function has gone
502 to become info_sources_worker.
503 * symtab.h (struct info_sources_filter): Moved from symtab.c, add
504 extra parameter to print member function.
505 (info_sources_worker): Declare.
506
4a0788e0
AB
5072021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
508
509 * symtab.c (struct info_sources_filter): New.
510 (info_sources_filter::info_sources_filter): New function.
511 (info_sources_filter::matches): New function.
512 (info_sources_filter::print): New function.
513 (struct filename_partial_match_opts): Moved to later in the file
514 and update the comment.
515 (struct output_source_filename_data)
516 <output_source_filename_data>: New constructor. <regexp>: Delete,
517 this is now in info_sources_filter. <c_regexp>: Delete, this is
518 now in info_sources_filter. <reset_output>: New member function.
519 <filename_seen_cache>: Rename to m_filename_seen_cache, change
520 from being a pointer, to being an actual object. <first>: Rename
521 to m_first. <print_header>: New member function. <partial_match>:
522 Delete.
523 (output_source_filename_data::output): Update now
524 m_filename_seen_cache is no longer a pointer, and for other member
525 variable name changes. Add a header comment.
526 (print_info_sources_header): Renamed to...
527 (output_source_filename_data::print_header): ...this. Update now
528 it's a member function and to take account of member variable
529 renaming.
530 (info_sources_command): Add a header comment, delete stack local
531 filename_seen_cache, initialization of output_source_filename_data
532 is now done by the constructor. Call print_header member function
533 instead of print_info_sources_header, call reset_output member
534 function instead of manually performing the reset.
535
fc4d5ebf
AB
5362021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
537
538 * dwarf2/read.c (struct dwarf2_base_index_functions)
539 <has_unexpanded_symtabs>: Declare.
540 (dwarf2_base_index_functions::has_unexpanded_symtabs): Define new
541 function.
542 * objfiles.h (struct objfile) <has_unexpanded_symtabs>: Declare.
543 * psympriv.h (struct psymbol_functions) <has_unexpanded_symtabs>:
544 Declare.
545 * psymtab.c (psymbol_functions::has_unexpanded_symtabs): Define
546 new function.
547 * quick-symbol.h (struct quick_symbol_functions)
548 <has_unexpanded_symtabs>: Declare.
549 * symfile-debug.c (objfile::has_unexpanded_symtabs): Define new
550 function.
551
d038ce48
AB
5522021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
553
554 * infcall.c (call_function_by_hand_dummy): Add missing 'else' when
555 setting prototyped flag.
556
158cc4fe
AB
5572021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
558
559 * ada-lang.c (desc_bounds): Use '{}' instead of NULL to indicate
560 an empty gdb::optional when calling value_struct_elt.
561 (desc_data): Likewise.
562 (desc_one_bound): Likewise.
563 * eval.c (structop_base_operation::evaluate_funcall): Pass
564 gdb::array_view, not a gdb::array_view* to value_struct_elt.
565 (eval_op_structop_struct): Use '{}' instead of NULL to indicate
566 an empty gdb::optional when calling value_struct_elt.
567 (eval_op_structop_ptr): Likewise.
568 * f-lang.c (fortran_structop_operation::evaluate): Likewise.
569 * guile/scm-value.c (gdbscm_value_field): Likewise.
570 * m2-lang.c (eval_op_m2_high): Likewise.
571 (eval_op_m2_subscript): Likewise.
572 * opencl-lang.c (opencl_structop_operation::evaluate): Likewise.
573 * python/py-value.c (valpy_getitem): Likewise.
574 * rust-lang.c (rust_val_print_str): Likewise.
575 (rust_range): Likewise.
576 (rust_subscript): Likewise.
577 (eval_op_rust_structop): Likewise.
578 (rust_aggregate_operation::evaluate): Likewise.
579 * valarith.c (value_user_defined_op): Likewise.
580 * valops.c (search_struct_method): Change parameter type, update
581 function body accordingly, and update header comment.
582 (value_struct_elt): Change parameter type, update function body
583 accordingly.
584 * value.h (value_struct_elt): Update declaration.
585
13221aec
AB
5862021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
587
588 PR gdb/27994
589 * eval.c (structop_base_operation::evaluate_funcall): Pass
590 array_view instead of array to value_struct_elt.
591 * valarith.c (value_user_defined_op): Likewise.
592 * valops.c (typecmp): Change parameter type from array pointer to
593 array_view. Update header comment, and update body accordingly.
594 (search_struct_method): Likewise.
595 (value_struct_elt): Likewise.
596 * value.h (value_struct_elt): Update declaration.
597
79bd4d34
AB
5982021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
599
600 PR gdb/27994
601 * eval.c (structop_base_operation::evaluate_funcall): Add a
602 nullptr to the end of the args array, which should not be included
603 in the argument array_view. Pass all the arguments through to
604 value_struct_elt.
605 * valops.c (search_struct_method): Update header comment.
606 (value_struct_elt): Likewise.
607
3da4c644
TT
6082021-06-25 Tom Tromey <tom@tromey.com>
609
610 * dwarf2/read.c (create_addrmap_from_aranges): Change padding
611 logic.
612
3e9f1ca1
TT
6132021-06-25 Tom Tromey <tom@tromey.com>
614
615 * dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
616 (scan_partial_symbols, partial_die_parent_scope)
617 (add_partial_symbol, add_partial_subprogram)
618 (compute_delayed_physnames, rust_union_quirks)
619 (process_full_comp_unit, process_full_type_unit)
620 (process_imported_unit_die, process_die, dw2_linkage_name)
621 (dwarf2_compute_name, dwarf2_physname, read_import_statement)
622 (read_file_scope, queue_and_load_dwo_tu, read_func_scope)
623 (read_variable, dwarf2_get_subprogram_pc_bounds)
624 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
625 (dwarf2_attach_fn_fields_to_type)
626 (quirk_ada_thick_pointer_struct, read_structure_type)
627 (handle_struct_member_die, process_structure_scope)
628 (read_array_type, read_array_order, prototyped_function_p)
629 (read_subroutine_type, dwarf2_init_complex_target_type)
630 (read_base_type, read_subrange_type, read_unspecified_type)
631 (load_partial_dies, partial_die_info::fixup, set_cu_language)
632 (new_symbol, need_gnat_info, determine_prefix, typename_concat)
633 (dwarf2_canonicalize_name, follow_die_offset)
634 (prepare_one_comp_unit): Update.
635 * dwarf2/cu.c (dwarf2_cu::start_symtab): Update.
636
bf1dcdb3
TT
6372021-06-25 Tom Tromey <tom@tromey.com>
638
639 * dwarf2/read.c (read_file_scope): Don't call set_cu_language.
640 (dwarf_lang_to_enum_language): Rename from set_cu_language. Don't
641 set language_defn. Handle DW_LANG_OpenCL.
642 (prepare_one_comp_unit): Check producer and set language_defn.
643
6b95f5ad
AB
6442021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
645
646 * NEWS: Mention Python BP_CATCHPOINT feature.
647 * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
648 (bppy_init): Likewise.
649 (gdbpy_breakpoint_created): Likewise.
650
08080f97
AB
6512021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
652
653 * guile/scm-breakpoint.c (bpscm_type_to_string): Handle
654 bp_catchpoint.
655 (bpscm_want_scm_wrapper_p): Likewise.
656 (gdbscm_make_breakpoint): Likewise.
657 (breakpoint_integer_constants): Likewise.
658
81b327aa
AB
6592021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
660
661 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Split the error
662 for invalid breakpoint numbers, and unsupported breakpoint
663 numbers.
664
50a6759f
TT
6652021-06-25 Tom Tromey <tom@tromey.com>
666
667 * dwarf2/index-write.c (struct addrmap_index_data): Add
668 initializers.
669 <operator()>: Declare.
670 (addrmap_index_data::operator()): Rename from
671 add_address_entry_worker. Remove 'datap' parameter.
672 (write_address_map): Update.
673 * psymtab.c (struct dump_psymtab_addrmap_data): Remove
674 (dump_psymtab_addrmap_1): Remove 'data' parameter, add other
675 parameters.
676 (dump_psymtab_addrmap): Update.
677 * addrmap.c (struct addrmap_funcs) <foreach>: Remove 'data'
678 parameter.
679 (addrmap_foreach, addrmap_fixed_foreach): Likewise.
680 (struct mutable_foreach_data): Remove.
681 (addrmap_mutable_foreach_worker): Update.
682 (addrmap_mutable_foreach): Remove 'data' parameter.
683 * addrmap.h (addrmap_foreach_fn): Use gdb::function_view.
684 (addrmap_foreach): Remove 'data' parameter.
685
67470e9d
TT
6862021-06-25 Tom Tromey <tromey@adacore.com>
687
688 * python/py-type.c (typy_get_name): Decode an Ada type name.
689
8a3df5ac
TT
6902021-06-25 Tom Tromey <tromey@adacore.com>
691
692 * ada-lang.c (ada_decode): Add wrap parameter.
693 * ada-lang.h (ada_decode): Add wrap parameter.
694
134df964
LM
6952021-06-25 Luis Machado <luis.machado@linaro.org>
696
697 * corelow.c (core_target::core_target) Update to read target
698 description.
699
224506e9
SM
7002021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
701
702 * python/lib/gdb/__init__.py: Format.
703
ac0d67ed
SM
7042021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
705
706 * infrun.c (do_target_wait): Remove wait_ptid parameter.
707 (fetch_inferior_event): Adjust.
708
4e317a76
SM
7092021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
710
711 * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
712 with name of chosen unwinder.
713 * python/py-unwind.c (pyuw_sniffer): Print name of chosen
714 unwinder in debug message.
715
80d1206d
AS
7162021-06-22 Andreas Schwab <schwab@suse.de>
717
718 PR symtab/27999
719 * dwarf2/loc.c (decode_debug_loclists_addresses): Support
720 DW_LLE_start_end.
721
80dc83fd
AB
7222021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
723
724 * breakpoint.c (insert_bp_location): If we catch a
725 TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
726 been deleted.
727
96f842cb
AB
7282021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
729
730 * NEWS: Mention new target feature name.
731 * arch/riscv.c (riscv_create_target_description): GDB doesn't
732 currently create target descriptions containing vector registers.
733 * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
734 variable.
735 <operator==>: Also compare vlen.
736 <hash>: Also include vlen.
737 * riscv-tdep.c (riscv_feature_name_vector): New static global.
738 (struct riscv_vector_feature): New struct.
739 (riscv_vector_feature): New static global.
740 (riscv_register_reggroup_p): Ensure vector registers are part of
741 the 'all' group, and part of the 'vector' group.
742 (riscv_dwarf_reg_to_regnum): Handle vector registers.
743 (riscv_gdbarch_init): Check vector register feature.
744 * riscv-tdep.h: Add vector registers to GDB's internal register
745 numbers, and to the DWARF register numbers.
746
d52b8007
AB
7472021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
748
749 * NEWS: Mention the two new methods.
750 * python/py-frame.c (frapy_level): New function.
751 (frame_object_methods): Register 'level' method.
752 * python/py-unwind.c (pending_framepy_level): New function.
753 (pending_frame_object_methods): Register 'level' method.
754
8b9c48b2
AB
7552021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * python/py-inferior.c (infpy_get_connection_num): Call
758 gdb_py_object_from_longest instead of PyLong_FromLong directly.
759
61e2dde2
AB
7602021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
761
762 * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
763 saving user registers.
764
7e3941ac
MF
7652021-06-19 Mike Frysinger <vapier@gentoo.org>
766
767 * acinclude.m4: Delete most m4_include's of ../config files.
768 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
769 * aclocal.m4: Regenerate.
770 * configure: Regenerate.
771
336b30e5
PA
7722021-06-17 Pedro Alves <pedro@palves.net>
773
774 * scoped_ignore_signal.h (scoped_ignore_signal): Add
775 ConsumePending template parameter.
776 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
777 sigtimedwait if ConsumePending is false.
778 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
779 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
780 <m_ignore_signal>: Initialize with ConsumePending=false.
781
2af6d46f
PA
7822021-06-17 Pedro Alves <pedro@palves.net>
783
784 * Makefile.in (SELFTESTS_SRCS): Add
785 unittests/scoped_ignore_signal-selftests.c.
786 * unittests/scoped_ignore_signal-selftests.c: New.
787
6a7f1c20
PA
7882021-06-17 Pedro Alves <pedro@palves.net>
789
790 * gdbsupport/scoped_ignore_signal.h: New.
791 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
792 instead of <signal.h>. Don't include <unistd.h>.
793 (scoped_ignore_sigpipe): Remove.
794 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
795 instead of <signal.h>. Don't include <unistd.h>.
796 (lazy_init): New.
797 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
798 and lazy_init.
799
965febe5
PA
8002021-06-17 Pedro Alves <pedro@palves.net>
801
802 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
803 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
804 * inflow.h: Delete, moved to gdbsupport/ under a different name.
805 * ser-unix.c: Don't include "inflow.h". Include
806 "gdbsupport/scoped_ignore_sigttou.h".
807
82a5082e
PA
8082021-06-17 Pedro Alves <pedro@palves.net>
809
810 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
811 ...
812 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
813 tui_getc_1.
814 (cur_seq, start_sequence): New.
815 (tui_getc_1): Pass key escape sequences for curses control keys to
816 readline. Handle mouse and ctrl-l here.
817 (tui_resize_all): Disable/reenable the keypad if the command
818 window has the focus too.
819 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
820 setting.
821 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
822
7daf500d
SM
8232021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
824
825 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
826
8457e5ec
TV
8272021-06-16 Tom de Vries <tdevries@suse.de>
828
829 PR symtab/26327
830 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
831 (dwarf2_cu::get_builder): Declare and move ...
832 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
833 of ancestor. Assert return value is non-null.
834 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
835 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
836 (dwarf2_per_objfile): Add sym_cu field.
837
93df3340
AM
8382021-06-15 Alan Modra <amodra@gmail.com>
839
840 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
841
483ab96a
MF
8422021-06-14 Mike Frysinger <vapier@gentoo.org>
843
844 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
845 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
846
09db4332
JB
8472021-06-14 John Baldwin <jhb@FreeBSD.org>
848
849 * configure.ac: Check for <sys/procctl.h>.
850 * config.in, configure: Regenerate.
851 * fbsd-nat.c: Include <sys/procctl.h> if present.
852 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
853 (fbsd_nat_target::create_inferior)
854 (fbsd_nat_target::supports_disable_randomization): New.
855 * fbsd-nat.h (fbsd_nat_target::create_inferior)
856 (fbsd_nat_target::supports_disable_randomization): New.
857
739025e8
BE
8582021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
859
860 * compile/compile.c: Include missing header signal.h.
861
d424629d
JB
8622021-06-12 John Baldwin <jhb@FreeBSD.org>
863
864 * remote.c (remote_new_objfile): Fix indentation.
865
e2b9ea4b
KB
8662021-06-11 Kevin Buettner <kevinb@redhat.com>
867
868 * solib.c (libpthread_name_p): Match "libc" in addition
869 to "libpthread".
870 * linux-thread-db.c (libpthread_objfile_p): New function.
871 (libpthread_name_p): Adjust preexisting callers to use
872 libpthread_objfile_p().
873
873793ae
SM
8742021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
875
876 * dwarf2/loc.h (struct call_site_stuff): Remove.
877
48ec4c05
TT
8782021-06-11 Tom Tromey <tom@tromey.com>
879
880 PR rust/23427
881 * rust-parse.c (rust_parser::lex_identifier): Handle raw
882 identifiers.
883 (rust_lex_tests): Add raw identifier tests.
884
f9e59d06
LS
8852021-06-08 Lancelot Six <lsix@lancelotsix.com>
886
887 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
888 instead of '== None'.
889 (FrameVars): Use 'is not None' instead of '!= None'.
890 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
891 Use 'is None' instead of '== None' and 'is not None' instead of '!=
892 None'.
893
122373f7
SM
8942021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
895
896 * inferior.h (class inferior) <in_initial_library_scan>: New.
897 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
898 * infrun.c (follow_fork_inferior): Likewise.
899 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
900 by try_thread_db_load_1
901 (thread_db_load): Return early if in_initial_library_scan is
902 set.
903 * remote.c (remote_new_objfile): Return early if
904 in_initial_library_scan is set.
905
1b453aed
PA
9062021-06-07 Pedro Alves <pedro@palves.net>
907
908 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
909 ctor.
910 * symtab.h (struct symbol): Add defaulted copy assignment
911 operator.
912
fa6ec8ef
PA
9132021-06-07 Pedro Alves <pedro@palves.net>
914
915 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
916 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
917 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
918 local.
919
c57eb1a2
PA
9202021-06-07 Pedro Alves <pedro@palves.net>
921
922 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
923 (nat_sigval_t): ... this and remove typedef of same name.
924 (struct nat_siginfo): Rename to ...
925 (nat_siginfo_t): ... this and remove typedef of same name.
926 (struct compat_sigval): Rename to ...
927 (compat_sigval_t): ... this and remove typedef of same name.
928 (struct compat_siginfo): Rename to ...
929 (compat_siginfo_t): ... this and remove typedef of same name.
930 (struct compat_x32_siginfo): Rename to ...
931 (compat_x32_siginfo_t): ... this and remove typedef of same name.
932 (amd64_linux_siginfo_fixup_common): Adjust.
933
d8ca8e9f
PA
9342021-06-07 Pedro Alves <pedro@palves.net>
935
936 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
937 __attribute__ __aligned__ from the typedef to the struct.
938
a12a15e7
AB
9392021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
940
941 PR gdb/27847
942 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
943 type_align, and spot case where the alignment is unknown.
944
ecac8d1c
CL
9452021-06-07 Carl Love <cel@us.ibm.com>
946
947 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
948 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
949 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
950 ppc64_pcrel_linkage2_target): New functions.
951 (ppc64_standard_linkage9, ppc64_standard_linkage10,
952 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
953 instruction patterns.
954 (ppc64_standard_linkage9, ppc64_standard_linkage10,
955 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
956 in define MAX expression.
957 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
958 ppc64_standard_linkage10, ppc64_standard_linkage11,
959 ppc64_standard_linkage12.
960 * (ppc_insn_prefix_dform): New function.
961
cfa8e270
SM
9622021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
963
964 PR gdb/27899
965 * sparc-nat.c (sparc_fetch_inferior_registers): Set
966 inferior_ptid instead of using switch_to_thread.
967 (sparc_store_inferior_registers): Likewise.
968
4a977544
BE
9692021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
970
971 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
972 (compile_to_object): Ignore SIGPIPE before calling the plugin.
973
8ff8c543
TT
9742021-06-05 Tom Tromey <tom@tromey.com>
975
976 * data-directory/Makefile.in (Makefile): Use correct directory
977 name.
978
19d6d783
TT
9792021-06-05 Tom Tromey <tom@tromey.com>
980
981 * data-directory/Makefile.in (Makefile): Rewrite.
982
b316465f
TT
9832021-06-05 Tom Tromey <tromey@adacore.com>
984
985 * configure: Rebuild.
986 * configure.ac: Add ACX_NONCANONICAL_TARGET.
987
ae61ef2c
SV
9882021-06-05 Shahab Vahedi <shahab@synopsys.com>
989
990 * NEWS: Document 'set disassembler-options' support for the ARC
991 target.
992 * arc-tdep.c (arc_gdbarch_init): Set
993 'gdbarch_valid_disassembler_options'.
994
386de171
TT
9952021-06-04 Tom Tromey <tromey@adacore.com>
996
997 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
998 parameter.
999 * dwarf2/loc.c (dwarf2_evaluate_property) <case
1000 PROP_VARIABLE_NAME>: New case.
1001 (compute_var_value): New function.
1002 (sect_variable_value): Use compute_var_value.
1003 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
1004 (var_decl_name): New function.
1005 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
1006 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
1007 constant.
1008 (union dynamic_prop_data) <variable_name>: New member.
1009 (struct dynamic_prop) <variable_name, set_variable_name>: New
1010 methods.
1011
4351271e
AB
10122021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
1013
1014 * remote.c (remote_target)
1015 <select_thread_for_ambiguous_stop_reply>: Add additional debug
1016 output.
1017
a5375566
HD
10182021-06-04 Hannes Domani <ssbssa@yahoo.de>
1019
1020 * python/py-tui.c (class tui_py_window): Add click function.
1021 (tui_py_window::click): Likewise.
1022
1bace02a
HD
10232021-06-04 Hannes Domani <ssbssa@yahoo.de>
1024
1025 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
1026 * tui/tui-data.h (struct tui_win_info): Add click function.
1027 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
1028 (tui_deprep_terminal): Disable mouse events.
1029 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
1030 * tui/tui.c (tui_disable): Disable mouse events.
1031
df5bc734
MH
10322021-06-03 Magne Hov <mhov@undo.io>
1033
1034 PR python/27841
1035 * eval.c (expression::evaluate): Check inferior_ptid.
1036
415c8100
PA
10372021-06-03 Pedro Alves <pedro@palves.net>
1038
1039 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
1040 affiliation.
1041 (Global Maintainers): Update my address.
1042 (Write After Approval): Remove stale entry.
1043
83810881
JB
10442021-06-03 John Baldwin <jhb@FreeBSD.org>
1045
1046 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
1047 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
1048 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
1049 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
1050 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
1051 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
1052 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
1053 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
1054 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
1055 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
1056 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
1057 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
1058 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
1059 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
1060 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
1061 (fbsd_report_signal_info): New.
1062 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
1063 report_signal_info method.
1064
4c958d79
MH
10652021-06-03 Magne Hov <mhov@undo.io>
1066
1067 * MAINTAINERS (Write After Approval): Add Magne Hov.
1068
6ac5237c
HD
10692021-06-03 Hannes Domani <ssbssa@yahoo.de>
1070
1071 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
1072 gdb.SYMBOL_LABEL_DOMAIN constant.
1073
aeeb758d
JB
10742021-06-01 John Baldwin <jhb@FreeBSD.org>
1075
1076 * infrun.c (handle_inferior_event): Only call
1077 gdbarch_displaced_step_restore_all_in_ptid if
1078 gdbarch_supports_displaced_stepping is true.
1079
906f72d4
TT
10802021-06-01 Tom Tromey <tromey@adacore.com>
1081
1082 * Makefile.in (all-data-directory): Remove.
1083 (data-directory/Makefile): Remove.
1084
ba56237d
TT
10852021-06-01 Tom Tromey <tromey@adacore.com>
1086
1087 * configure: Rebuild.
1088 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
1089
2adf1781
TT
10902021-06-01 Tom Tromey <tromey@adacore.com>
1091
1092 * silent-rules.mk (ECHO_CC): New variable.
1093
bdbbcd57
TT
10942021-06-01 Tom Tromey <tromey@adacore.com>
1095
1096 * Makefile.in (SUBDIRS): Add testsuite.
1097 (all): Don't exclude testsuite.
1098
f99d1d37
TT
10992021-06-01 Tom Tromey <tromey@adacore.com>
1100
1101 * configure.ac: Copy some code from testsuite/configure.ac.
1102 (enable_libctf): Subst this, not ENABLE_LIBCTF.
1103 * configure: Rebuild.
1104
17d305ef
TV
11052021-06-01 Tom de Vries <tdevries@suse.de>
1106
1107 PR symtab/26096
1108 * minsyms.c (msymbol_is_cold_clone): New function.
1109 (msymbol_is_function): Use msymbol_is_cold_clone.
1110
9b715c68
AB
11112021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
1112 Andrew Burgess <andrew.burgess@embecosm.com>
1113
1114 PR gdb/14383
1115 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
1116 (ALLDEPFILES): Add arm-none-tdep.c
1117 * arm-none-tdep.c: New file.
1118 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
1119
b4b3e2de
AB
11202021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
1121 Richard Bunt <richard.bunt@arm.com>
1122
1123 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
1124 check for why the backtrace stopped.
1125
9ea36493
SM
11262021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1127
1128 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
1129 Update all callers.
1130 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
1131 signature parameter, update all callers.
1132 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
1133 signature parameter.
1134
46c6bcf6
SM
11352021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * dwarf2/read.h (signatured_type_up): New, use where possible.
1138
4631503b
SM
11392021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1140
1141 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
1142
cc653233
TT
11432021-05-30 Tom Tromey <tom@tromey.com>
1144
1145 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
1146 is_debug_types.
1147 (create_signatured_type_table_from_index)
1148 (create_signatured_type_table_from_debug_names, add_type_unit)
1149 (read_comp_units_from_section): Update.
1150
c96e8b04
TT
11512021-05-30 Tom Tromey <tom@tromey.com>
1152
1153 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
1154 m_num_psymtabs>: Remove.
1155 (resize_symtabs): Update.
1156 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
1157 (dwarf2_per_bfd::allocate_signatured_type): Update.
1158
24b21115
SM
11592021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1160
1161 * Fix tab after space indentation issues throughout.
1162
01add95b
SM
11632021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1164
1165 * Fix some indentation mistakes throughout.
1166
055c879f
SM
11672021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1168
1169 * breakpoint.h (iterate_over_bp_locations): Remove. Update
1170 users to use all_bp_locations.
1171 (all_bp_locations): New.
1172 * breakpoint.c (all_bp_locations): Make non-static.
1173 (iterate_over_bp_locations): Remove.
1174
240edef6
SM
11752021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1176
1177 * breakpoint.h (iterate_over_breakpoints): Remove. Update
1178 callers to use all_breakpoints or all_breakpoints_safe.
1179 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
1180 all_breakpoints_safe): Move here.
1181 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
1182 non-static.
1183 (iterate_over_breakpoints): Remove.
1184 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1185 Return void.
1186 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
1187 return value logic.
1188 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
1189
e0d9a270
SM
11902021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1191
1192 * breakpoint.c (get_first_locp_gte_addr): Remove.
1193 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
1194 all_bp_locations_at_addr.
1195 (struct bp_locations_at_addr_range): New.
1196 (all_bp_locations_at_addr): New.
1197 (bp_locations_compare_addrs): New.
1198
48d7020b
SM
11992021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1200
1201 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
1202 all_bp_locations.
1203 (all_bp_locations): New.
1204
5d51cd5d
SM
12052021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1206
1207 * breakpoint.c (bp_locations): Change to std::vector, update all
1208 users.
1209 (bp_locations_count): Remove.
1210 (update_global_location_list): Change to work with indices
1211 rather than bp_location**.
1212
40cb8ca5
SM
12132021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1214
1215 * breakpoint.h (bp_locations_range): New.
1216 (struct breakpoint) <locations>: New. Use where possible.
1217
f6d17b2b
SM
12182021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1219
1220 * breakpoint.h (all_tracepoints): Remove.
1221 (breakpoint_iterator): Move here.
1222 (struct tracepoint_filter): New.
1223 (tracepoint_iterator): New.
1224 (tracepoint_range): New.
1225 (all_tracepoints): New.
1226 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
1227 all_tracepoints.
1228 (breakpoint_iterator): Move to header.
1229 (all_tracepoints): New.
1230 * tracepoint.c (start_tracing): Adjust.
1231
1428b37a
SM
12322021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1233
1234 * breakpoint.c (breakpoint_safe_range): New.
1235 (all_breakpoints_safe): New. Use instead of
1236 ALL_BREAKPOINTS_SAFE where possible.
1237
43892fdf
SM
12382021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1239
1240 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
1241 all_breakpoints.
1242 (breakpoint_iterator): New.
1243 (breakpoint_range): New.
1244 (all_breakpoints): New.
1245
bdef5723
HD
12462021-05-27 Hannes Domani <ssbssa@yahoo.de>
1247
1248 * python/py-tui.c (tui_py_window::output): Add full_window
1249 argument.
1250 (gdbpy_tui_write): Parse "full_window" argument.
1251
d5a6313e
SM
12522021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1253
1254 * make-init-c: Add option to reverse function calls.
1255
f39632d9
SM
12562021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1257
1258 * Makefile.in (INIT_FILES_FILTER_OUT): New.
1259 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
1260 (stamp-init): Use make-init-c.
1261 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
1262 * silent-rules.mk (ECHO_INIT_C): Change.
1263 * make-init-c: New file.
1264
5e84b7ee
SM
12652021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1266
1267 * command.h (add_alias_cmd): Accept target as
1268 cmd_list_element. Update callers.
1269
e0f25bd9
SM
12702021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1271
1272 * command.h (add_info_alias): Accept target as
1273 cmd_list_element. Update callers.
1274
3947f654
SM
12752021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1276
1277 * command.h (add_com_alias): Accept target as
1278 cmd_list_element. Update callers.
1279
7bd22f56
SM
12802021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1281
1282 * python/py-param.c (add_setshow_generic): Use return values of
1283 add_setshow functions.
1284
9f260536
SM
12852021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1286
1287 * mi/mi-main.c (_initialize_mi_main):
1288 * python/py-auto-load.c (gdbpy_initialize_auto_load):
1289 * remote.c (_initialize_remote):
1290
af7f8f52
SM
12912021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1292
1293 * command.h (set_show_commands): New.
1294 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
1295 add_setshow_boolean_cmd, add_setshow_filename_cmd,
1296 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
1297 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
1298 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
1299 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1300 Return set_show_commands. Adjust callers.
1301 * cli/cli-decode.c (add_setshow_cmd_full): Return
1302 set_show_commands, remove result parameters, adjust callers.
1303
248f7165
TV
13042021-05-27 Tom de Vries <tdevries@suse.de>
1305
1306 PR symtab/27919
1307 * dwarf2/read.c (process_psymtab_comp_unit):
1308
2152b4fd
TV
13092021-05-27 Tom de Vries <tdevries@suse.de>
1310
1311 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
1312 error.
1313
6dcd1193
TV
13142021-05-27 Tom de Vries <tdevries@suse.de>
1315
1316 PR symtab/27898
1317 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
1318 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
1319 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
1320 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
1321 load_all_dies init.
1322 (dwarf2_per_cu_data): Remove load_all_dies field.
1323
11bb5c41
SM
13242021-05-26 Simon Marchi <simon.marchi@efficios.com>
1325
1326 * regcache.c (reg_buffer::reg_buffer): Default-initialize
1327 m_registers array.
1328
ef5f598c
TT
13292021-05-26 Tom Tromey <tom@tromey.com>
1330
1331 * dwarf2/read.c (allocate_type_unit_groups_table)
1332 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
1333 htab_delete_entry.
1334 (free_line_header_voidp): Remove.
1335 * completer.c
1336 (completion_tracker::completion_hash_entry::deleter): Remove.
1337 (completion_tracker::discard_completions): Use htab_delete_entry.
1338 * utils.h (htab_delete_entry): New template function.
1339
a56889ae
HD
13402021-05-24 Hannes Domani <ssbssa@yahoo.de>
1341
1342 * python/py-tui.c (tui_py_window::refresh_window):
1343 Avoid flickering.
1344
fbf3c4b9
TV
13452021-05-23 Tom de Vries <tdevries@suse.de>
1346
1347 PR tdep/27822
1348 * target.h (struct target_ops): Mention target_thread_architecture in
1349 read_description comment.
1350 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
1351 pid to determine if process is 64-bit or 32-bit.
1352 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1353 Same.
1354 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
1355 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
1356 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
1357 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
1358 Likewise, use pid to determine if kernel supports reading VFP
1359 registers.
1360
8569d6e1
PW
13612021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1362
1363 * main.c (enum cmdarg_kind): Fix option type comments for
1364 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
1365
778ae9cc
TV
13662021-05-21 Tom de Vries <tdevries@suse.de>
1367
1368 PR testsuite/25047
1369 * contrib/cc-with-tweaks.sh: Handle -l.
1370
6d1a09b7
TV
13712021-05-21 Tom de Vries <tdevries@suse.de>
1372
1373 PR breakpoint/27889
1374 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
1375 objects. Call get_jiter_objfile_data with the_objfile.
1376
1487a14e
SM
13772021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
1378
1379 * linespec.c (linespec_p): Remove. Replace all uses with
1380 "linespec *".
1381
bb6203bf
AH
13822021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1383 Pedro Alves <pedro@palves.net>
1384
1385 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
1386 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
1387 command_line_up instead of struct command_line.
1388 (build_command_line): Likewise.
1389 (get_command_line): Update the cmd function call parameter.
1390 (process_next_line): Use unique_ptr command_line_up instead
1391 of struct command_line.
1392 (recurse_read_control_structure): Change the the type of
1393 next to command_line_up.
1394 (read_command_lines_1): Change type of `next' to be
1395 command_line_up and update all references of `next'
1396 accordingly.
1397
ed3130b7
AH
13982021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1399
1400 * MAINTAINERS (Write After Approval): Add myself.
1401
5433e20e
JB
14022021-05-19 John Baldwin <jhb@FreeBSD.org>
1403
1404 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
1405
a5523cc3
AH
14062021-05-18 Alexandra Hájková <ahajkova@redhat.com>
1407
1408 * inflow.c (new_tty): Do not leak tty.
1409
cd53fa40
TT
14102021-05-17 Tom Tromey <tom@tromey.com>
1411
1412 * dwarf2/read.h: Update include.
1413 * dwarf2/read.c: Update include.
1414 * dwarf2/line-header.c: Update include.
1415 * dwarf2/cu.h: Update include.
1416 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
1417 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
1418 * Makefile.in (COMMON_SFILES): Update.
1419
347212b8
TT
14202021-05-17 Tom Tromey <tom@tromey.com>
1421
1422 * dwarf2/read.c (maybe_queue_comp_unit)
1423 (dwarf2_per_objfile::age_comp_units): Update.
1424 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
1425 dwarf2_cu methods.
1426 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
1427 add_dependence>: New methods.
1428 <m_dependencies>: Add "m_" prefix. Now private.
1429 <m_mark>: Add "m_" prefix.
1430 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
1431 (dwarf2_mark_helper): New function.
1432 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
1433
839118f9
TT
14342021-05-17 Tom Tromey <tom@tromey.com>
1435
1436 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
1437 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
1438 (dwarf2_cu::dwarf2_cu): Move to cu.c.
1439 * dwarf2/cu.c: New file.
1440 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
1441
8ae78a44
TT
14422021-05-17 Tom Tromey <tom@tromey.com>
1443
1444 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
1445 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
1446 Move to cu.h.
1447 * dwarf2/cu.h: New file.
1448
c1c0a7e1
AB
14492021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
1450
1451 * .dir-locals.el: Set sentence-end-double-space for all modes, and
1452 set brace-list-open to 0 for C and C++ modes.
1453
9e541c79
TT
14542021-05-17 Tom Tromey <tromey@adacore.com>
1455
1456 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
1457 if frame is null.
1458
59173216
TT
14592021-05-17 Tom Tromey <tromey@adacore.com>
1460
1461 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
1462 (group_from_gid): Subtract one from strncpy length.
1463
baea2f9d
TT
14642021-05-17 Tom Tromey <tromey@adacore.com>
1465
1466 * source.c (add_path): Check 'p' before using 'p[-1]'.
1467
473ab964
TT
14682021-05-17 Tom Tromey <tromey@adacore.com>
1469
1470 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
1471 (dwarf2_per_cu_data_up): New typedef.
1472 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
1473 <all_comp_units>: Use dwarf2_per_cu_data_up.
1474 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
1475 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
1476 (create_cu_from_index_list): Likewise.
1477 (create_signatured_type_table_from_index)
1478 (create_cus_from_debug_names_list, add_type_unit)
1479 (read_comp_units_from_section): Update.
1480 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
1481 (run_test): Update.
1482
16e0020b
TT
14832021-05-17 Tom Tromey <tom@tromey.com>
1484
1485 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
1486 (sort_tu_by_abbrev_offset): Remove.
1487 (build_type_psymtabs): Update.
1488
91e159e9
SM
14892021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1490
1491 * py-project.toml: New.
1492 * gdb-gdb.py.in: Re-format.
1493
034dce7a
SM
14942021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1495
1496 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
1497 New, use it.
1498 * command.h (cmd_func_p): Remove.
1499 * cli/cli-decode.c (cmd_func_p): Remove.
1500
1be99b11
SM
15012021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1502
1503 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
1504
99858724
SM
15052021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1506
1507 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
1508 to...
1509 <alias_target>: ... this.
1510 (add_alias_cmd): Rename old to target.
1511 (add_info_alias): Rename old_name to target_name.
1512 (add_com_alias): Likewise.
1513
14b42fc4
SM
15142021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1515
1516 * Rename "prefixlist" parameters to "subcommands" throughout.
1517 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
1518 <subcommands>: ... this.
1519 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
1520 (lookup_cmd_with_subcommands): ... this.
1521
ecd0a6b3
SM
15222021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1523
1524 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
1525
413b49c2
SM
15262021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1527
1528 * cli/cli-decode.h (prefixname): Make const, move implementation
1529 to cli/cli-decode.c.
1530 * cli/cli-decode.c (cmd_list_element::prefixname): New.
1531
ea11a98d
WP
15322021-05-16 Weimin Pan <weimin.pan@oracle.com>
1533
1534 * ctfread.c (new_symbol): Set function address.
1535 (read_func_kind_type): Remove incorrect type name setting.
1536 Don't copy name returned from ctf_type_ame_raw throughout file.
1537
887e7158
TT
15382021-05-14 Tom Tromey <tom@tromey.com>
1539
1540 * rust-lang.c (rust_language::val_print_struct)
1541 (rust_language::print_enum): Use common_val_print, not
1542 value_print_inner.
1543
55789354
TBA
15442021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1545
1546 * python/py-inferior.c (infpy_get_connection_num): New function.
1547 (inferior_object_getset): Add a new element for 'connection_num'.
1548 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
1549
2f63ec5c
AB
15502021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
1551
1552 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
1553 argument type, update and re-wrap, header comment.
1554 (remote_target::commit_resumed): Convert any_process_wildcard and
1555 may_global_wildcard_vcont from int to bool.
1556
ecf25064
KC
15572021-05-14 Kent Cheung <kent.cheung@arm.com>
1558
1559 * cp-valprint.c (cp_print_value): Replaced duplicate code.
1560 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
1561 just before printing child values.
1562 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
1563 printing string representation.
1564 * python/py-prettyprint.c (print_children): Check max_depth just
1565 before printing child values.
1566 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
1567 printing string representation.
1568
df68e12b
MF
15692021-05-14 Mike Frysinger <vapier@gentoo.org>
1570
1571 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
1572 sim/callback.h & sim/sim.h.
1573
183aaaf7
MF
15742021-05-13 Mike Frysinger <vapier@gentoo.org>
1575
1576 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
1577 sim-regno.h include.
1578
737358ba
SM
15792021-05-13 Simon Marchi <simon.marchi@efficios.com>
1580
1581 * inf-child.h (inf_child_target) <follow_exec>: New.
1582 * inf-child.c (inf_child_target::follow_exec): New.
1583
294c36eb
SM
15842021-05-13 Simon Marchi <simon.marchi@efficios.com>
1585
1586 * target.h (struct target_ops) <follow_exec>: Add ptid_t
1587 parameter.
1588 (target_follow_exec): Likewise.
1589 * target.c (target_follow_exec): Add ptid_t parameter.
1590 * infrun.c (follow_exec): Adjust call to target_follow_exec,
1591 don't push target nor create thread.
1592 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
1593 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
1594 (thread_db_target::follow_exec): New.
1595 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
1596 (remote_target::follow_exec): Call
1597 process_stratum_target::follow_exec.
1598 * target-delegates.c: Re-generate.
1599
2af87c85
SM
16002021-05-13 Simon Marchi <simon.marchi@efficios.com>
1601
1602 * infrun.c (follow_exec): Call target_follow_fork when
1603 follow-exec-mode is same.
1604 * target.h (target_follow_fork): Improve doc.
1605
0b2256f7
SM
16062021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
1607
1608 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
1609 Remove.
1610 * cli/cli-setshow.c (do_show_command): Adjust.
1611
0746f49b
LM
16122021-05-13 Luis Machado <luis.machado@linaro.org>
1613
1614 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
1615 include the last address in the range.
1616
4b8cb9dd
SM
16172021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
1618
1619 * python/python-internal.h (gdbpy_parse_command_name): Return
1620 gdb::unique_xmalloc_ptr.
1621 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1622 (cmdpy_init): Adjust.
1623 * python/py-param.c (parmpy_init): Adjust.
1624 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
1625 when done.
1626
ee35ce82
GB
16272021-05-12 George Barrett <bob@bob131.so>
1628
1629 * NEWS (Guile API): Note the addition of the new procedure.
1630 * guile/scm-value.c (gdbscm_value_const_value): Add
1631 implementation of value-const-value procedure.
1632 (value_functions): Add value-const-value procedure.
1633
9d4fc61d
GB
16342021-05-12 George Barrett <bob@bob131.so>
1635
1636 * NEWS (Guile API): Note the addition of new procedures.
1637 * guile/scm-value.c (gdbscm_reference_value): Add helper function
1638 for reference value creation.
1639 (gdbscm_value_reference_value): Add implementation of
1640 value-reference-value procedure.
1641 (gdbscm_value_rvalue_reference_value): Add implementation of
1642 value-rvalue-reference-value procedure.
1643 (value_functions): Add value-reference-value procedure. Add
1644 value-rvalue-reference-value procedure.
1645
97cef6b7
GB
16462021-05-12 George Barrett <bob@bob131.so>
1647
1648 * guile/scm-type.c (type_integer_constants): Add binding for
1649 TYPE_CODE_RVALUE_REF.
1650 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
1651 dereferencing of rvalue references.
1652 * NEWS (Guile API): Note improvements in rvalue reference support.
1653
d51344c9
MM
16542021-05-12 Markus Metzger <markus.t.metzger@intel.com>
1655
1656 * btrace.c (handle_pt_insn_events): Ignore status update enable
1657 events.
1658
f2a883a8
SM
16592021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1660
1661 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
1662 indentation.
1663
64f30eb0
SM
16642021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1665
1666 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
1667
db1f6cd6
LS
16682021-05-10 Lancelot Six <lsix@lancelotsix.com>
1669
1670 PR gdb/27614
1671 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
1672 argument.
1673
31aceaef
SM
16742021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
1675
1676 * nat/linux-waitpid.c (status_to_str): Show signal name.
1677
75140e3b
AB
16782021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1679
1680 * python/py-breakpoint.c (pybp_debug): New static global.
1681 (show_pybp_debug): New function.
1682 (pybp_debug_printf): Define.
1683 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
1684 (gdbpy_breakpoint_created): Add some debugging.
1685 (gdbpy_breakpoint_deleted): Likewise.
1686 (gdbpy_breakpoint_modified): Likewise.
1687 (_initialize_py_breakpoint): New function.
1688
1ef40c13
AB
16892021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1690
1691 * python/py-unwind.c (pyuw_debug): Convert to bool.
1692 (show_pyuw_debug): New function.
1693 (pyuw_debug_printf): Define.
1694 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1695 (pyuw_this_id): Convert to new debug print macros.
1696 (pyuw_prev_register): Likewise.
1697 (pyuw_sniffer): Likewise.
1698 (pyuw_dealloc_cache): Likewise.
1699 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1700 show function when registering.
1701
927c4e35
AB
17022021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1703
1704 * dummy-frame.c (fprint_dummy_frames): Convert use of
1705 fprint_frame_id to use frame_id::to_string.
1706 * frame.c (fprint_field): Delete.
1707 (fprint_frame_id): Moved to...
1708 (frame_id::to_string): ...this, rewritten to return a string.
1709 (fprint_frame): Convert use of fprint_frame_id to use
1710 frame_id::to_string.
1711 (compute_frame_id): Likewise.
1712 (frame_id_p): Likewise.
1713 (frame_id_eq): Likewise.
1714 (frame_id_inner): Likewise.
1715 * frame.h (struct frame_id) <to_string>: New member function.
1716 (fprint_frame_id): Delete declaration.
1717 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1718 fprint_frame_id to use frame_id::to_string.
1719 * python/py-frame.c (frame_object_to_frame_info): Likewise.
1720 * python/py-unwind.c (unwind_infopy_str): Likewise.
1721 (pyuw_this_id): Likewise.
1722
8d06918f
SM
17232021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1724
1725 * nat/linux-waitpid.c (status_to_str): Return std::string.
1726 * nat/linux-waitpid.h (status_to_str): Likewise.
1727 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
1728 (linux_nat_target::attach): Adjust.
1729 (linux_handle_extended_wait): Adjust.
1730 (wait_lwp): Adjust.
1731 (stop_wait_callback): Adjust.
1732 (linux_nat_filter_event): Adjust.
1733 (linux_nat_wait_1): Adjust.
1734 * nat/linux-waitpid.c (status_to_str): Adjust.
1735 * nat/linux-waitpid.h (status_to_str): Adjust.
1736
550e9289
SM
17372021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1738
1739 * infrun.h (infrun_debug_printf): Add missing space.
1740
4655f850
PA
17412021-05-08 Pedro Alves <pedro@palves.net>
1742
1743 * linux-nat.c (linux_nat_target::supports_disable_randomization):
1744 Remove references to HAVE_PERSONALITY.
1745 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1746 (maybe_disable_address_space_randomization)
1747 (~maybe_disable_address_space_randomizatio): Remove references to
1748 HAVE_PERSONALITY.
1749 * config.in, configure: Regenerate.
1750
1845e254
AB
17512021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1754 include.
1755 (source_script_with_search): Perform tilde expansion.
1756
91e3c425
SM
17572021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1758
1759 * target-descriptions.c (struct target_desc_info) <filename>:
1760 Make std::string.
1761 (copy_inferior_target_desc_info): Adjust.
1762 (target_desc_info_free): Adjust.
1763 (target_find_description): Adjust.
1764 (set_tdesc_filename_cmd): Adjust.
1765 (show_tdesc_filename_cmd): Adjust.
1766 (unset_tdesc_filename_cmd): Adjust.
1767 (maint_print_c_tdesc_cmd): Adjust.
1768
0b2f7ade
SM
17692021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1770
1771 * target-descriptions.c (struct target_desc_info): Initialize
1772 fields.
1773 (get_tdesc_info): Use new.
1774 (target_desc_info_free): Use delete.
1775
820c4490
SM
17762021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1777
1778 * target-descriptions.c (struct target_desc_info) <fetched>:
1779 bool.
1780 (target_find_description): Adjust.
1781 (target_clear_description): Adjust.
1782
c2962e6a
SM
17832021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1784
1785 * target-descriptions.c (struct target_desc_info) <tdesc>:
1786 Adjust doc.
1787 (target_desc_fetched): Remove.
1788 (current_target_desc): Remove.
1789 (target_description_filename): Remove.
1790 (target_find_description): Adjust.
1791 (target_clear_description): Adjust.
1792 (target_current_description): Adjust.
1793 (set_tdesc_filename_cmd): Adjust.
1794 (show_tdesc_filename_cmd): Adjust.
1795 (unset_tdesc_filename_cmd): Adjust.
1796 (maint_print_c_tdesc_cmd): Adjust.
1797 (maint_print_xml_tdesc_cmd): Adjust.
1798
8a82de58
AB
17992021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1800
1801 * infcmd.c (notice_new_inferior): Change parameter type.
1802 * inferior.h (notice_new_inferior): Change parameter type.
1803 * remote.c (remote_notice_new_inferior): Change parameter type to
1804 bool. Also update type of local variable to bool.
1805 (remote_target::update_thread_list): Change type of local variable
1806 to bool.
1807 (remote_target::process_stop_reply): Pass bool instead of int to
1808 remote_notice_new_inferior.
1809
bedc4734
SM
18102021-05-07 Simon Marchi <simon.marchi@efficios.com>
1811
1812 * target.c (target_stack::unpush): Call target_ops::find_beneath
1813 to get the target beneath `t`.
1814
27f0a431
SM
18152021-05-07 Simon Marchi <simon.marchi@efficios.com>
1816
1817 * target.c (target_close): Check in all inferiors that the
1818 target is not pushed.
1819
1d1669e4
AM
18202021-05-07 Aaron Merey <amerey@redhat.com>
1821
1822 * debuginfod-support.c (debuginfod_init): Remove.
1823 (get_debuginfod_client): New function.
1824
2698f5ea
TT
18252021-05-07 Tom Tromey <tom@tromey.com>
1826
1827 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1828 * utils.c (streq_hash): Remove.
1829 * utils.h (streq_hash): Don't declare.
1830 * completer.c (completion_tracker::discard_completions): Update
1831 comment.
1832 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1833
13123da8
SM
18342021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1835
1836 * Re-format all Python files using black.
1837
9589edb8
AB
18382021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1839
1840 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1841 function return type.
1842 * guile/guile.c (gdbscm_source_script): Update to handle change in
1843 gdbscm_safe_source_script.
1844 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1845 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1846 type.
1847
ec66d6ea
SM
18482021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1849
1850 * inferior.h (class inferior) <args>: Change type to
1851 unique_xmalloc_ptr.
1852 * inferior.c (inferior::~inferior): Don't free args.
1853 * infcmd.c (get_inferior_args): Adjust.
1854 (set_inferior_args): Adjust.
1855
0618ecf6
AB
18562021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1857
1858 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1859 breakpoint locations when the breakpoint actually has a location.
1860
79aabb73
TBA
18612021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1862
1863 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1864 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1865 mi_cmd_break_condition.
1866 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1867 * breakpoint.h (set_breakpoint_condition): Declare a new
1868 overload.
1869 * breakpoint.c (set_breakpoint_condition): New overloaded function
1870 extracted out from ...
1871 (condition_command): ... this.
1872 * NEWS: Mention the change.
1873
10e578d7
TBA
18742021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1875
1876 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1877 '--force-condition' flag to force the condition in the
1878 '-break-insert' and '-dprintf-insert' commands.
1879 * NEWS: Mention the change.
1880
225bda24
TV
18812021-05-04 Tom de Vries <tdevries@suse.de>
1882
1883 PR guile/27806
1884 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1885 memory functions.
1886
b8efb248
TT
18872021-04-30 Tom Tromey <tom@tromey.com>
1888
1889 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1890 (add_signatured_type_cu_to_table): Remove.
1891 (create_debug_type_hash_table): Assume dwo_file is non-null.
1892 (create_debug_types_hash_table): Update comment.
1893 (create_all_type_units): Remove.
1894 (sort_tu_by_abbrev_offset): Update comment.
1895 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1896 (build_type_psymtabs): Remove.
1897 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1898 Update.
1899 (read_comp_units_from_section): Add types_htab, section_kind
1900 parameters.
1901 (create_all_comp_units): Read type units.
1902
91eea9cc
TT
19032021-04-30 Tom Tromey <tom@tromey.com>
1904
1905 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1906 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1907 <get_cu>: Now inline.
1908 <all_type_units>: Remove.
1909 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1910 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1911 (dwarf2_per_bfd::get_tu): Remove.
1912 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1913 (create_signatured_type_table_from_index)
1914 (create_signatured_type_table_from_debug_names)
1915 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1916 (dwarf2_base_index_functions::expand_all_symtabs)
1917 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1918 (dwarf2_base_index_functions::map_symbol_filenames)
1919 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1920 (add_signatured_type_cu_to_table, create_all_type_units)
1921 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1922 (create_all_comp_units): Update.
1923 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1924 (write_debug_names): Update.
1925
0d305d5c
TT
19262021-04-30 Tom Tromey <tom@tromey.com>
1927
1928 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1929 allocate_signatured_type>: Change return type.
1930 <all_comp_units, all_type_units>: Hold unique pointers.
1931 (struct dwarf2_per_cu_data): Add constructor and initializers.
1932 (struct signatured_type): Derive from dwarf2_per_cu_data.
1933 * dwarf2/read.c (type_unit_group): Derive from
1934 dwarf2_per_cu_data.
1935 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1936 (dwarf2_per_bfd::get_tu)
1937 (dwarf2_per_bfd::allocate_signatured_type)
1938 (dwarf2_per_bfd::allocate_signatured_type)
1939 (create_cu_from_index_list, create_cus_from_index_list)
1940 (create_signatured_type_table_from_index)
1941 (create_signatured_type_table_from_debug_names)
1942 (create_addrmap_from_aranges)
1943 (dwarf2_base_index_functions::find_last_source_symtab)
1944 (dw_expand_symtabs_matching_file_matcher)
1945 (dwarf2_gdb_index::expand_symtabs_matching)
1946 (dwarf2_base_index_functions::map_symbol_filenames)
1947 (create_cus_from_debug_names_list)
1948 (dw2_debug_names_iterator::next)
1949 (dwarf2_debug_names_index::expand_symtabs_matching)
1950 (create_debug_type_hash_table, add_type_unit)
1951 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1952 Update.
1953 (allocate_type_unit_groups_table): Use delete.
1954 (create_type_unit_group): Change return type. Use new.
1955 (get_type_unit_group, build_type_psymtabs_1)
1956 (build_type_psymtab_dependencies)
1957 (process_skeletonless_type_unit, set_partial_user)
1958 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1959 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1960 (read_signatured_type): Update.
1961 (dwarf2_find_containing_comp_unit): Change type of
1962 'all_comp_units'.
1963 (run_test): Update.
1964 (dwarf2_per_bfd::allocate_per_cu)
1965 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1966 Use new.
1967 (add_signatured_type_cu_to_table): Update.
1968 * dwarf2/index-write.c (write_one_signatured_type)
1969 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1970 (write_debug_names): Update.
1971
1bee48c7
TT
19722021-04-30 Tom Tromey <tromey@adacore.com>
1973
1974 * nat/windows-nat.h (get_image_name): Don't declare.
1975 * nat/windows-nat.c (get_image_name): Now static.
1976
e228ef97
TT
19772021-04-30 Tom Tromey <tromey@adacore.com>
1978
1979 * windows-nat.c (windows_nat::handle_load_dll): Update.
1980 (windows_nat_target::get_windows_debug_event): Call
1981 dll_loaded_event.
1982 (windows_add_all_dlls, windows_add_dll): Move to
1983 nat/windows-nat.c.
1984 * nat/windows-nat.h (handle_load_dll): Change parameters.
1985 (dll_loaded_event, windows_add_all_dlls): Declare.
1986 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1987 from windows-nat.c.
1988 (dll_loaded_event): New function.
1989
de071872
TT
19902021-04-30 Tom Tromey <tromey@adacore.com>
1991
1992 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1993 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1994 Declare.
1995 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1996 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1997
9e439f00
TT
19982021-04-30 Tom Tromey <tromey@adacore.com>
1999
2000 * windows-nat.c: Move code to nat/windows-nat.[ch].
2001 (_initialize_windows_nat): Call initialize_loadable.
2002 * nat/windows-nat.h (AdjustTokenPrivileges)
2003 (DebugActiveProcessStop, DebugBreakProcess)
2004 (DebugSetProcessKillOnExit, EnumProcessModules)
2005 (EnumProcessModulesEx, GetModuleInformation)
2006 (GetModuleFileNameExA, GetModuleFileNameExW)
2007 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
2008 (GetCurrentConsoleFont, Wow64SuspendThread)
2009 (Wow64GetThreadContext, Wow64SetThreadContext)
2010 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
2011 (AdjustTokenPrivileges_ftype)
2012 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
2013 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
2014 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
2015 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
2016 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
2017 (GetConsoleFontSize_ftype)
2018 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
2019 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
2020 (Wow64GetThreadSelectorEntry_ftype): Likewise.
2021 (initialize_loadable): Declare.
2022 * nat/windows-nat.c (AdjustTokenPrivileges)
2023 (DebugActiveProcessStop, DebugBreakProcess)
2024 (DebugSetProcessKillOnExit, EnumProcessModules)
2025 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
2026 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
2027 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
2028 (Wow64GetThreadContext, Wow64SetThreadContext)
2029 (Wow64GetThreadSelectorEntry): Define.
2030 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
2031 from windows-nat.c.
2032 (initialize_loadable): Likewise, and rename.
2033
1053c638
TT
20342021-04-30 Tom Tromey <tromey@adacore.com>
2035
2036 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
2037 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
2038 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
2039 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
2040 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
2041 (bad): New template functions.
2042 (_initialize_loadable): Update.
2043
2869ac4b
TT
20442021-04-30 Tom Tromey <tromey@adacore.com>
2045
2046 * ada-lang.c (ada_index_type): Use ada_check_typedef.
2047
e197dfae
SM
20482021-04-29 Simon Marchi <simon.marchi@efficios.com>
2049
2050 * auto-load.h: Split namespace declaration.
2051
89ba430c
SM
20522021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
2053
2054 * infrun.c (save_waitstatus): Move variables to inner scope.
2055
8eb82ba1
AB
20562021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2057
2058 * NEWS: Fix typo and stray full stop.
2059
db2534b7
TT
20602021-04-28 Tom Tromey <tromey@adacore.com>
2061
2062 * ada-exp.y (primary): Use new type for null pointer.
2063 * ada-lang.c (ada_type_match): Remove "may_deref"
2064 parameter. Handle null pointer.
2065 (ada_args_match): Update.
2066 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
2067 Handle null pointer.
2068
edeaceda
AB
20692021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * NEWS: Mention new commands.
2072 * python/python.c (python_ignore_environment): New static global.
2073 (show_python_ignore_environment): New function.
2074 (set_python_ignore_environment): New function.
2075 (python_dont_write_bytecode): New static global.
2076 (show_python_dont_write_bytecode): New function.
2077 (set_python_dont_write_bytecode): New function.
2078 (_initialize_python): Register new commands.
2079
041ca48e
AB
20802021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2081
2082 * extension-priv.h (struct extension_language_ops): Rename
2083 'finish_initialization' to 'initialize'.
2084 * extension.c (finish_ext_lang_initialization): Renamed to...
2085 (ext_lang_initialization): ...this, update comment, and updated
2086 the calls to reflect the change in struct extension_language_ops.
2087 * extension.h (finish_ext_lang_initialization): Renamed to...
2088 (ext_lang_initialization): ...this.
2089 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
2090 (gdbscm_initialize): ...this, update comment at definition.
2091 (guile_extension_ops): Update.
2092 * main.c (captured_main_1): Update call to
2093 finish_ext_lang_initialization.
2094 * python/python.c (gdbpy_finish_initialization): Rename to...
2095 (gdbpy_initialize): ...this, update comment at definition, and
2096 update call to do_finish_initialization.
2097 (python_extension_ops): Update.
2098 (do_finish_initialization): Rename to...
2099 (do_initialize): ...this, and update comment.
2100
1178f01a
AB
21012021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * main.c (captured_main_1): Add a call to
2104 finish_ext_lang_initialization.
2105 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
2106
880ae75a
AB
21072021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
2110 (gdbscm_finish_initialization): Add code moved from
2111 _initialize_guile.
2112 (_initialize_guile): Move code to gdbscm_finish_initialization.
2113 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
2114 _initialize_scm_arch.
2115 (_initialize_scm_arch): New function.
2116 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
2117 into _initialize_scm_block.
2118 (_initialize_scm_block): New function.
2119 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
2120 into _initialize_scm_frame.
2121 (_initialize_scm_frame): New function.
2122 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
2123 into _initialize_scm_objfile.
2124 (_initialize_scm_objfile): New function.
2125 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
2126 code into _initialize_scm_progspace.
2127 (_initialize_scm_progspace): New function.
2128 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
2129 into _initialize_scm_symbol.
2130 (_initialize_scm_symbol): New function.
2131 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
2132 into _initialize_scm_symtab.
2133 (_initialize_scm_symtab): New function.
2134 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
2135 _initialize_scm_type.
2136 (_initialize_scm_type): New function.
2137
8e3685bf
AB
21382021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2139
2140 * python/py-arch.c (_initialize_py_arch): New function.
2141 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
2142 * python/py-block.c (_initialize_py_block): New function.
2143 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
2144 * python/py-inferior.c (_initialize_py_inferior): New function.
2145 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
2146 * python/py-objfile.c (_initialize_py_objfile): New function.
2147 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
2148 * python/py-progspace.c (_initialize_py_progspace): New function.
2149 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
2150 * python/py-registers.c (_initialize_py_registers): New function.
2151 (gdbpy_initialize_registers): Move code to
2152 _initialize_py_registers.
2153 * python/py-symbol.c (_initialize_py_symbol): New function.
2154 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
2155 * python/py-symtab.c (_initialize_py_symtab): New function.
2156 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
2157 * python/py-type.c (_initialize_py_type): New function.
2158 (gdbpy_initialize_types): Move code to _initialize_py_type.
2159 * python/py-unwind.c (_initialize_py_unwind): New function.
2160 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
2161 * python/python.c (_initialize_python): Move call to
2162 do_start_initialization to gdbpy_finish_initialization.
2163 (gdbpy_finish_initialization): Add call to
2164 do_start_initialization.
2165
913832e9
AB
21662021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2167
2168 * extension.c (struct scoped_default_signal): New struct.
2169 (scoped_default_sigint): New typedef.
2170 (finish_ext_lang_initialization): Make use of
2171 scoped_default_sigint.
2172
a3b5ef3e
AB
21732021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * main.c (captured_main_1): Don't pass argument to gdb_init.
2176 * top.c (gdb_init): Remove unused argument, and add header
2177 comment.
2178 * top.h (gdb_init): Remove argument.
2179
b9f90c72
LM
21802021-04-27 Luis Machado <luis.machado@linaro.org>
2181
2182 * psymtab.c (psymbol_functions::dump): Output newline.
2183 Remove wrap.
2184 * symmisc.c (dump_objfile): Likewise.
2185
2c473def
MW
21862021-04-27 Michael Weghorn <m.weghorn@posteo.de>
2187 Simon Marchi <simon.marchi@polymtl.ca>
2188
2189 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
2190 when attaching the 'auto_load_new_objfile' observer, so
2191 other observers can specify it as a dependency.
2192 * gdb/auto-load.h (struct token): Declare
2193 'auto_load_new_objfile_observer_token' as token to be used
2194 for the 'auto_load_new_objfile' observer.
2195 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
2196 'python_new_objfile' observer depend on 'auto_load_new_objfile'
2197 observer, so it gets notified after the latter.
2198
9a6e099f
MW
21992021-04-27 Michael Weghorn <m.weghorn@posteo.de>
2200 Simon Marchi <simon.marchi@polymtl.ca>
2201
2202 * unittests/observable-selftests.c (dependency_test_counters):
2203 New.
2204 (observer_token0, observer_token1, observer_token2,
2205 observer_token3, observer_token4, observer_token5): New.
2206 (struct dependency_observer_data): New struct.
2207 (observer_dependency_test_callback): New function.
2208 (test_observers): New.
2209 (run_dependency_test): New function.
2210 (test_dependency): New.
2211 (_initialize_observer_selftest): Register dependency test.
2212
bea3329b
SM
22132021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
2214
2215 PR gdb/27773
2216 * cli/cli-dump.c (dump_binary_file): Check result of
2217 gdb_fopen_cloexec.
2218
c290cb01
ST
22192021-04-25 Sergei Trofimovich <siarheit@google.com>
2220
2221 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
2222 by passing `process_stratum_target*` parameter.
2223
fbb46296
LS
22242021-04-25 Lancelot Six <lsix@lancelotsix.com>
2225
2226 PR gdb/22640
2227 * typeprint.h (struct type_print_options): Add print_in_hex
2228 flag.
2229 (struct print_offset_data): Add print_in_hex flag, add a
2230 constructor accepting a type_print_options* argument.
2231 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
2232 default value for print_in_hex.
2233 (print_offset_data::indentation): Allow more horizontal space.
2234 (print_offset_data::print_offset_data): Add ctor.
2235 (print_offset_data::maybe_print_hole, print_offset_data::update):
2236 Handle the print_in_hex flag.
2237 (whatis_exp): Handle 'x' and 'd' flags.
2238 (print_offsets_and_sizes_in_hex): Declare.
2239 (set_print_offsets_and_sizes_in_hex): Create.
2240 (show_print_offsets_and_sizes_in_hex): Create.
2241 (_initialize_typeprint): Update help message for the ptype
2242 command, register the 'set print type hex' and 'show print type
2243 hex' commands.
2244 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
2245 (c_type_print_base): Construct the print_offset_data
2246 object using the type_print_optons parameter.
2247 * rust-lang.c (rust_language::print_type): Construct the
2248 print_offset_data object using the type_print_optons parameter.
2249 * NEWS: Mention the new flags of the ptype command.
2250
18bbba46
LS
22512021-04-25 Lancelot Six <lsix@lancelotsix.com>
2252
2253 * typeprint.h (struct type_print_options): Move before
2254 print_offset_data.
2255
77393c9b
JB
22562021-04-25 Joel Brobecker <brobecker@adacore.com>
2257
2258 GDB 10.2 released.
2259
98c897e3
SM
22602021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
2261
2262 * observable.c (observer_debug): Change to bool.
2263
9fc29955
AB
22642021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 * dwarf2/read.c: Add 'unordered_set' include.
2267 (dwarf2_base_index_functions::map_symbol_filenames): Replace
2268 'visited' hash table with 'qfn_cache' unordered_set. Remove use
2269 of per_Bfd->filenames_cache cache, and use function local
2270 filenames_cache instead. Reindent.
2271 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
2272
0406545d
SM
22732021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2274
2275 * breakpoint.c (iterate_over_bp_locations): Change callback to
2276 function view, remove data parameter.
2277 * breakpoint.h (iterate_over_bp_locations): Likewise.
2278 * record-full.c (record_full_sync_record_breakpoints): Remove
2279 data parameter.
2280
432ce4cf
TT
22812021-04-22 Tom Tromey <tom@tromey.com>
2282
2283 * c-typeprint.c (c_type_print_base_struct_union): Use
2284 print_spaces_filtered_with_print_options.
2285
e25d6d93
SM
22862021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2287
2288 PR gdb/27757
2289 * python/py-type.c (typy_range): Check that bounds are constant
2290 before accessing them as such.
2291 * guile/scm-type.c (gdbscm_type_range): Likewise.
2292
4efeb0d3
TBA
22932021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2294
2295 * Makefile.in (COMMON_SFILES): Remove continuations.c.
2296 * inferior.c (inferior::add_continuation): New method, adapted
2297 from 'add_inferior_continuation'.
2298 (inferior::do_all_continuations): New method, adapted from
2299 'do_all_inferior_continuations'.
2300 (inferior::~inferior): Clear the list of continuations directly.
2301 * inferior.h (class inferior) <continuations>: Rename into...
2302 <m_continuations>: ...this and make private.
2303 * continuations.c: Remove.
2304 * continuations.h: Remove.
2305 * event-top.c: Don't include "continuations.h".
2306
2307 Update the users below.
2308 * inf-loop.c (inferior_event_handler)
2309 * infcmd.c (attach_command)
2310 (notice_new_inferior): Update.
2311
c4c493de
TBA
23122021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2313
2314 * inferior.h (class inferior) <continuations>: Change the type
2315 to be an std::list of std::function's.
2316 Update the references and uses below.
2317 * continuations.c (struct continuation): Delete.
2318 (make_continuation): Delete.
2319 (do_my_continuations_1): Delete.
2320 (do_my_continuations): Delete.
2321 (discard_my_continuations_1): Delete.
2322 (discard_my_continuations): Delete.
2323 (add_inferior_continuation): Update.
2324 (do_all_inferior_continuations): Update.
2325 (discard_all_inferior_continuations): Update.
2326 * continuations.h (add_inferior_continuation): Update to take
2327 an std::function as the parameter.
2328 * infcmd.c (struct attach_command_continuation_args): Delete.
2329 (attach_command_continuation): Delete.
2330 (attach_command_continuation_free_args): Delete.
2331 (attach_command): Update.
2332 (notice_new_inferior): Update.
2333
1194676e
TBA
23342021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2335
2336 * continuations.h: Update the general comment.
2337 * inferior.h (class inferior) <continuations>: Update the comment.
2338 * interps.c: Do not include "continuations.h".
2339
35682f0a
TBA
23402021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2341
2342 * continuations.h (do_all_inferior_continuations): Remove the 'err'
2343 parameter. Update the references below.
2344 * continuations.c (do_my_continuations_1)
2345 (do_my_continuations)
2346 (do_all_inferior_continuations): Update.
2347 * inf-loop.c (inferior_event_handler): Update.
2348 * infcmd.c (attach_command_continuation): Update.
2349
6fee5eee
TBA
23502021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2351
2352 * infcmd.c (attach_post_wait): Update the function comment.
2353
27d0790a
TBA
23542021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2355
2356 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
2357 Update the references below.
2358 (struct attach_command_continuation_args)
2359 (attach_command_continuation)
2360 (attach_command_continuation_free_args)
2361 (attach_command)
2362 (notice_new_inferior): Update to remove the reference to 'args'.
2363
c39ebbf4
TV
23642021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2365 Tom de Vries <tdevries@suse.de>
2366
2367 PR remote/27710
2368 * remote.c (remote_target_is_non_stop_p): New function.
2369 * remote.h (remote_target_is_non_stop_p): Declare.
2370 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
2371 to check non-stopness using notif_state->remote rather current target.
2372
22f80c0f
TT
23732021-04-22 Tom Tromey <tom@tromey.com>
2374
2375 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
2376 (struct typed_val_int) <val>: Now ULONGEST.
2377 (rust_parser::parse_array_type): Remove negative check.
2378 (rust_lex_int_test): Change 'value' to ULONGEST.
2379
05f3c0f0
AB
23802021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
2381
2382 * arch-utils.c (default_addressable_memory_unit_size): Return a
2383 value based on bfd's bits per byte.
2384
7e7a35fb
TT
23852021-04-21 Tom Tromey <tom@tromey.com>
2386
2387 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
2388 unsigned char.
2389 (struct dwarf2_per_cu_data): Rearrange.
2390 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
2391 unsigned char.
2392 (struct comp_unit_head): Rearrange.
2393 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
2394
ff507520
TV
23952021-04-21 Tom de Vries <tdevries@suse.de>
2396
2397 PR build/27681
2398 * configure.ac: Remove --without-included-regex/--with-included-regex.
2399 * config.in: Regenerate.
2400 * configure: Regenerate.
2401 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
2402
10a636cc
TBA
24032021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2404
2405 * breakpoint.h (create_breakpoint): Add a new parameter,
2406 'force_condition'.
2407 * breakpoint.c (create_breakpoint): Use the 'force_condition'
2408 argument when 'parse_extra' is false to check if the condition
2409 is invalid at all of the breakpoint locations.
2410 Update the users below.
2411 (break_command_1)
2412 (dprintf_command)
2413 (trace_command)
2414 (ftrace_command)
2415 (strace_command)
2416 (create_tracepoint_from_upload): Update.
2417 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2418 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2419 * python/py-breakpoint.c (bppy_init): Update.
2420 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2421
85c88e2a
TBA
24222021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2423
2424 * breakpoint.c (print_one_breakpoint_location): Display "N" for
2425 disabled-by-condition locations on MI-like output.
2426 (breakpoint_1): Do not display the disabled-by-condition footnote
2427 if the output is MI-like.
2428
fd34472c
FC
24292021-04-21 Frederic Cambus <fred@statdns.com>
2430
2431 * syscalls/update-netbsd.sh: Fix script name display in usage, and
2432 update year range in generated copyright notices.
2433
184dcd81
FW
24342021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2435
2436 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
2437 qualifier_seq_noopt.
2438
525174e8
FW
24392021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2440
2441 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
2442
f5dc2ee3
AB
24432021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
2444
2445 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
2446 (producer_is_icc): Replace use of std::regex with gdb's
2447 compiled_regex.
2448
42c2c694
TT
24492021-04-17 Tom Tromey <tom@tromey.com>
2450
2451 PR gdb/23743:
2452 * dwarf2/read.c (class offset_view): New.
2453 (struct symbol_table_slot): Remove.
2454 (struct mapped_index) <symbol_table, constant_pool>: Change type.
2455 <symbol_name_index, symbol_vec_index>: New methods.
2456 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
2457 Rewrite.
2458 (read_gdb_index_from_buffer): Update.
2459 (struct dw2_symtab_iterator) <vec>: Change type.
2460 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
2461 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
2462 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
2463 <append_array, append_offset>: New methods.
2464 (write_hash_table, add_address_entry, write_gdbindex_1)
2465 (write_debug_names): Update.
2466 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
2467
da314dd3
TT
24682021-04-17 Tom Tromey <tom@tromey.com>
2469
2470 * dwarf2/index-write.c (write_psymtabs_to_index): Check
2471 partial_symtabs.
2472
0b7b2c2a
TT
24732021-04-17 Tom Tromey <tom@tromey.com>
2474
2475 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
2476 from map_matching_symbols. Change parameters.
2477 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
2478 Rename from map_matching_symbols. Change parameters.
2479 * dwarf2/read.c (struct dwarf2_gdb_index)
2480 <expand_matching_symbols>: Rename from map_matching_symbols.
2481 Change parameters.
2482 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
2483 Rename from map_matching_symbols. Change parameters.
2484 (dwarf2_gdb_index::expand_matching_symbols): Rename from
2485 dw2_map_matching_symbols. Change parameters.
2486 (dwarf2_gdb_index::expand_matching_symbols): Remove old
2487 implementation.
2488 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
2489 map_matching_symbols. Change parameters.
2490 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
2491 from map_matching_symbols. Change parameters.
2492 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
2493 map_matching_symbols. Change parameters.
2494 * ada-lang.c (map_matching_symbols): New function.
2495 (add_nonlocal_symbols): Update.
2496
90160b57
TT
24972021-04-17 Tom Tromey <tom@tromey.com>
2498
2499 * quick-symbol.h (struct quick_symbol_functions)
2500 <expand_symtabs_with_fullname>: Remove.
2501 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
2502 Remove.
2503 * psympriv.h (struct psymbol_functions)
2504 <expand_symtabs_with_fullname>: Remove.
2505 * dwarf2/read.c (struct dwarf2_base_index_functions)
2506 <expand_symtabs_with_fullname>: Remove.
2507 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2508 Remove.
2509 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
2510 Update comment.
2511 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
2512 Rewrite.
2513
7089bd88
TT
25142021-04-17 Tom Tromey <tom@tromey.com>
2515
2516 * symfile-debug.c (objfile::expand_symtabs_for_function):
2517 Rewrite.
2518 * quick-symbol.h (struct quick_symbol_functions)
2519 <expand_symtabs_for_function>: Remove.
2520 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
2521 Remove.
2522 * psympriv.h (struct psymbol_functions)
2523 <expand_symtabs_for_function>: Remove.
2524 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
2525 Update comment.
2526 * dwarf2/read.c (struct dwarf2_gdb_index)
2527 <expand_symtabs_for_function>: Remove.
2528 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
2529 Remove.
2530 (find_slot_in_mapped_hash): Remove.
2531 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
2532 (dw2_symtab_iter_init): Remove one overload.
2533 (dwarf2_gdb_index::expand_symtabs_for_function)
2534 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
2535
536a40f3
TT
25362021-04-17 Tom Tromey <tom@tromey.com>
2537
2538 * symfile-debug.c (objfile::map_symtabs_matching_filename):
2539 Rewrite.
2540 * quick-symbol.h (struct quick_symbol_functions)
2541 <map_symtabs_matching_filename>: Remove.
2542 * psymtab.c (partial_map_expand_apply)
2543 (psymbol_functions::map_symtabs_matching_filename): Remove.
2544 * psympriv.h (struct psymbol_functions)
2545 <map_symtabs_matching_filename>: Remove.
2546 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
2547 Update comment.
2548 * dwarf2/read.c (struct dwarf2_base_index_functions)
2549 <map_symtabs_matching_filename>: Remove.
2550 (dw2_map_expand_apply)
2551 (dwarf2_base_index_functions::map_symtabs_matching_filename):
2552 Remove.
2553
84d865e3
TT
25542021-04-17 Tom Tromey <tom@tromey.com>
2555
2556 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
2557 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
2558 Remove.
2559 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
2560 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
2561 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
2562 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
2563 Remove.
2564 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
2565 (dwarf2_gdb_index::lookup_symbol)
2566 (dwarf2_debug_names_index::lookup_symbol): Remove.
2567
3bfa51a7
TT
25682021-04-17 Tom Tromey <tom@tromey.com>
2569
2570 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
2571 * symmisc.c (maintenance_expand_symtabs): Update.
2572 * symfile.c (expand_symtabs_matching): Update.
2573 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
2574 parameter.
2575 * quick-symbol.h (struct quick_symbol_functions)
2576 <expand_symtabs_matching>: Add 'domain' parameter.
2577 * psymtab.c (recursively_search_psymtabs)
2578 (psymbol_functions::expand_symtabs_matching): Add 'domain'
2579 parameter.
2580 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2581 Add 'domain' parameter.
2582 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2583 'domain' parameter.
2584 * linespec.c (iterate_over_all_matching_symtabs): Update.
2585 * dwarf2/read.c (struct dwarf2_gdb_index)
2586 <expand_symtabs_matching>: Add 'domain' parameter.
2587 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2588 'domain' parameter.
2589 (dw2_expand_symtabs_matching)
2590 (dwarf2_gdb_index::expand_symtabs_matching)
2591 (dw2_debug_names_iterator)
2592 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
2593 parameter.
2594
03a8ea51
TT
25952021-04-17 Tom Tromey <tom@tromey.com>
2596
2597 * symtab.c (global_symbol_searcher::expand_symtabs)
2598 (default_collect_symbol_completion_matches_break_on): Update.
2599 * symmisc.c (maintenance_expand_symtabs): Update.
2600 * symfile.h (expand_symtabs_matching): Add search_flags
2601 parameter.
2602 * symfile.c (expand_symtabs_matching): Add search_flags
2603 parameter.
2604 * symfile-debug.c (objfile::expand_symtabs_matching): Add
2605 search_flags parameter.
2606 * quick-symbol.h (struct quick_symbol_functions)
2607 <expand_symtabs_matching>: Add search_flags parameter.
2608 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
2609 * psymtab.c (recursively_search_psymtabs)
2610 (psymbol_functions::expand_symtabs_matching): Add search_flags
2611 parameter.
2612 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2613 Add search_flags parameter.
2614 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2615 search_flags parameter.
2616 * linespec.c (iterate_over_all_matching_symtabs): Update.
2617 * dwarf2/read.c (struct dwarf2_gdb_index)
2618 <expand_symtabs_matching>: Add search_flags parameter.
2619 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2620 search_flags parameter.
2621 (dw2_map_matching_symbols): Update.
2622 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
2623 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
2624 parameter.
2625 (dw2_debug_names_iterator): Change block_index to search flags.
2626 <m_block_index>: Likewise.
2627 (dw2_debug_names_iterator::next)
2628 (dwarf2_debug_names_index::lookup_symbol)
2629 (dwarf2_debug_names_index::expand_symtabs_for_function)
2630 (dwarf2_debug_names_index::map_matching_symbols)
2631 (dwarf2_debug_names_index::map_matching_symbols): Update.
2632 (dwarf2_debug_names_index::expand_symtabs_matching): Add
2633 search_flags parameter.
2634 * ada-lang.c (ada_add_global_exceptions)
2635 (collect_symbol_completion_matches): Update.
2636
df35e626
TT
26372021-04-17 Tom Tromey <tom@tromey.com>
2638
2639 * symtab.c (default_collect_symbol_completion_matches_break_on):
2640 Update.
2641 * symfile.h (expand_symtabs_matching): Return bool.
2642 * symfile.c (expand_symtabs_matching): Return bool.
2643 * symfile-debug.c (objfile::expand_symtabs_matching): Return
2644 bool.
2645 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
2646 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
2647 bool.
2648 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
2649 bool.
2650 * psympriv.h (struct psymbol_functions)
2651 <expand_symtabs_matching>: Return bool.
2652 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
2653 bool.
2654 * dwarf2/read.c (struct dwarf2_gdb_index)
2655 <expand_symtabs_matching>: Return bool.
2656 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
2657 Return bool.
2658 (dw2_expand_symtabs_matching_symbol): Return bool.
2659 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
2660 (dw2_expand_symtabs_matching)
2661 (dwarf2_gdb_index::expand_symtabs_matching)
2662 (dwarf2_debug_names_index::expand_symtabs_matching)
2663 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
2664
e357e990
TT
26652021-04-17 Tom Tromey <tom@tromey.com>
2666
2667 * quick-symbol.h (enum block_search_flag_values): New.
2668 (block_search_flags): New enum flags type.
2669
3cbc7ac3
TT
26702021-04-16 Tom Tromey <tom@tromey.com>
2671
2672 * rust-parse.c: New file.
2673 * rust-exp.y: Remove.
2674 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
2675 (SFILES): Remove rust-exp.y.
2676 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
2677
1b6b755e
LM
26782021-04-16 Luis Machado <luis.machado@linaro.org>
2679
2680 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
2681
c45ecc9d
JB
26822021-04-15 John Baldwin <jhb@FreeBSD.org>
2683
2684 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
2685 use throughout file.
2686
a15a276b
TT
26872021-04-15 Tom Tromey <tromey@adacore.com>
2688
2689 * ada-valprint.c (ada_value_print_array): Handle optimized-out
2690 arrays.
2691
644a2e75
TT
26922021-04-15 Tom Tromey <tromey@adacore.com>
2693
2694 * printcmd.c (print_variable_and_value): Use
2695 common_val_print_checked.
2696
9e5e03df
TT
26972021-04-15 Tom Tromey <tromey@adacore.com>
2698
2699 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2700 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2701 Update.
2702 * p-exp.y (variable): Update.
2703 * m2-exp.y (variable): Update.
2704 * go-exp.y (variable): Update.
2705 * expprint.c (dump_for_expression): New overload.
2706 * expop.h (check_objfile): New overload.
2707 (check_constant): New overload.
2708 (class var_value_operation): Use block_symbol.
2709 <get_symbol>: Rewrite.
2710 * eval.c (var_value_operation::evaluate)
2711 (var_value_operation::evaluate_funcall)
2712 (var_value_operation::evaluate_for_address)
2713 (var_value_operation::evaluate_for_address)
2714 (var_value_operation::evaluate_with_coercion)
2715 (var_value_operation::evaluate_for_sizeof)
2716 (var_value_operation::evaluate_for_cast): Update.
2717 * d-exp.y (PrimaryExpression): Update.
2718 * c-exp.y (variable): Update.
2719 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
2720 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2721 (ada_var_value_operation::evaluate)
2722 (ada_var_value_operation::resolve)
2723 (ada_funcall_operation::resolve): Update.
2724 * ada-exp.y (write_var_from_sym, write_object_renaming)
2725 (write_ambiguous_var, write_var_or_type, write_name_assoc)
2726 (maybe_overload): Update.
2727 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2728
5809fbf2
TT
27292021-04-15 Tom Tromey <tom@tromey.com>
2730 Andrew Burgess <andrew.burgess@embecosm.com>
2731
2732 * NEWS: Add entry.
2733 * main.c (captured_main_1): Call check_quiet_mode.
2734 * top.c (startup_quiet): New global.
2735 (check_quiet_mode): New function.
2736 (show_startup_quiet): New function.
2737 (init_main): Register new command.
2738 * top.h (check_quiet_mode): Declare.
2739
92e4e97a
AB
27402021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2741
2742 PR cli/25956
2743 * NEWS: Mention new early init files and command line options.
2744 * config.in: Regenerate.
2745 * configure: Regenerate.
2746 * configure.ac: Define GDBEARLYINIT.
2747 * main.c (get_earlyinit_files): New function.
2748 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2749 CMDARG_EARLYINIT_COMMAND.
2750 (captured_main_1): Add support for new command line flags, and for
2751 processing startup files.
2752 (print_gdb_help): Include startup files in the output.
2753
54b4dcc5
AB
27542021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2755
2756 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2757 (relocate_file_path_maybe_in_datadir): ...this.
2758 (class gdb_initfile_finder): New class.
2759 (get_init_files): Now uses gdb_initfile_finder.
2760 (print_gdb_help): Print 'None found' when there are no init files.
2761
34dc0f95
TBA
27622021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2763
2764 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2765 corresponding child of the abstract DIE when iterating the
2766 children of the concrete DIE.
2767
329534fd
TV
27682021-04-13 Tom de Vries <tdevries@suse.de>
2769
2770 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2771 type to regoff_t *.
2772
d9d2ef05
LM
27732021-04-13 Luis Machado <luis.machado@linaro.org>
2774
2775 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2776 hex values.
2777
c8a37944
WS
27782021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2779
2780 * rs6000-tdep.c: Add support for single-stepping of
2781 prefixed instructions.
2782
b722acca
WS
27832021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2784
e3d528d7
WS
2785 PR gdb/27525
2786 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2787 handle the addpcis/lnia instruction.
2788
27892021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2790
b722acca
WS
2791 * MAINTAINERS (Write After Approval): Add myself.
2792
6ba4cb84
CL
27932021-4-12 Carl Love <cel@us.ibm.com>
2794
2795 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2796 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2797 float128.
2798
d4717483
SM
27992021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2800
2801 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2802 * nat/windows-nat.h: Likewise.
2803
b3885679
EZ
28042021-04-10 Eli Zaretskii <eliz@gnu.org>
2805
2806 * windows-nat.c (windows_nat::handle_load_dll): Call
2807 windows_add_dll if get_image_name failed to glean the name of the
2808 DLL by using the lpImageName pointer.
2809 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2810 (windows_add_dll): Now does what windows_add_all_dlls did before,
2811 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2812 specifies the address where the DLL was loaded into the inferior,
2813 and looks for the single DLL loaded at that address.
2814
1ef6a596
LM
28152021-04-09 Luis Machado <luis.machado@linaro.org>
2816
2817 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2818
83a559f7
DQ
28192021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2820
2821 * darwin-nat.c (darwin_nat_target::resume): Remove status
2822 variable.
2823
16e311ab
FW
28242021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2825
2826 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2827 prologue end for Intel compilers.
2828 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2829 * producer.c (producer_is_icc_ge_19): New function.
2830 * producer.h (producer_is_icc_ge_19): New declaration.
2831
fbb3bcfc
FW
28322021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2833
2834 * producer.c: (producer_is_icc): Update for new version scheme.
2835 (producer_parsing_tests): Update names and expected results.
2836 * producer.h: (producer_is_icc): Update comment accordingly.
2837
e97007b6
SM
28382021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2839
2840 * target.h (struct target_ops) <follow_fork>: Return void.
2841 (target_follow_fork): Likewise.
2842 * target.c (default_follow_fork): Likewise.
2843 (target_follow_fork): Likewise.
2844 * infrun.c (follow_fork_inferior): Adjust.
2845 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2846 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2847 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2848 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2849 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2850 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2851 * remote.c (class remote_target) <follow_fork>: Likewise.
2852 (remote_target::follow_fork): Likewise.
2853 * target-delegates.c: Re-generate.
2854
dc2b480f
WP
28552021-04-07 Weimin Pan <weimin.pan@oracle.com>
2856
2857 * ctfread.c (fetch_tid_type): New function, use throughout file.
2858 (read_forward_type): New function.
2859 (read_type_record): Call read_forward_type.
2860
0a703a4c
AB
28612021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2862
2863 * f-exp.h (class fortran_structop_operation): New class.
2864 * f-exp.y (exp): Create fortran_structop_operation instead of the
2865 generic structop_operation.
2866 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2867 expression as EVAL_NORMAL if the result type was dynamic so we can
2868 extract the actual array bounds.
2869 (fortran_structop_operation::evaluate): New function.
2870
28712021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2872
2873 * eval.c (evaluate_subexp_standard): Remove
2874 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2875 STRUCTOP_PTR.
2876
30ab3586
AB
28772021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2878
2879 * valops.c (value_cast): Call value_deeply_equal before performing
2880 any cast.
2881
5e18990f
AB
28822021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2883
2884 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2885 the function.
2886
56d467f4
CT
28872021-04-07 Caroline Tice <cmtice@google.com>
2888
2889 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2890 the search paths used resolve relative location of .dwo file.
2891
1fd999d9
AB
28922021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2893
2894 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2895 assert.
2896 (dwarf2_section_info::get_file_name): Add an assert.
2897 (dwarf2_section_info::read_string): Display a minimal, sane error
2898 when the dwarf2_section_info is not associated with a bfd section.
2899
79c02443
AB
29002021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2901
2902 * top.c (staged_gdb_datadir): Update comment.
2903 (set_gdb_datadir): Copy the value of gdb_datadir back into
2904 staged_datadir.
2905 (init_main): Initialise staged_gdb_datadir.
2906
340d00fb
TV
29072021-04-06 Tom de Vries <tdevries@suse.de>
2908
2909 PR breakpoints/25884
2910 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2911 stepping range.
2912
d811a7cf
TV
29132021-04-06 Tom de Vries <tdevries@suse.de>
2914
2915 PR tui/27680
2916 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2917 to style.parse.
2918
306b445a
SM
29192021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2920
2921 * avr-tdep.c (avr_frame_unwind_cache): Use
2922 trad_frame_saved_reg::is_addr.
2923
9161c89a
SM
29242021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2925
2926 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2927 adjust callers.
2928
0072c873
SM
29292021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2930
2931 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2932 objfile parameter for objfile_per_bfd_storage, adjust callers.
2933 (struct standard_psymtab) <standard_psymtab>: Likewise.
2934 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2935 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2936 * ctfread.c (struct ctf_psymtab): Likewise.
2937 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2938 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2939 (dwarf2_create_include_psymtab): Likewise.
2940 * objfiles.h (struct objfile_per_bfd_storage)
2941 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2942 <get_bfd>: New method.
2943 <m_bfd>: New field.
2944 * objfiles.c (get_objfile_bfd_data): Adjust.
2945
9984dd99
SM
29462021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2947
2948 * psymtab.c (partial_symtab::partial_symtab): Change
2949 last_objfile_name to be an std::string.
2950 * symfile.c (allocate_symtab): Likewise.
2951
4a4f97c1
SM
29522021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2953
2954 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2955 methods.
2956 (struct objfile) <intern>: Use
2957 objfile::objfile_per_bfd_storage::intern.
2958
0672875f
SM
29592021-04-01 Simon Marchi <simon.marchi@efficios.com>
2960
2961 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2962 with type::is_flag_enum.
2963
9902b327
SM
29642021-04-01 Simon Marchi <simon.marchi@efficios.com>
2965
2966 * gdbtypes.h (struct type) <is_flag_enum,
2967 set_is_flag_enum>: New methods.
2968 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2969 write call sites to use type::set_is_flag_enum.
2970
3bc440a2
SM
29712021-04-01 Simon Marchi <simon.marchi@efficios.com>
2972
2973 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2974 with type::is_declared_class.
2975
aa70e35c
SM
29762021-04-01 Simon Marchi <simon.marchi@efficios.com>
2977
2978 * gdbtypes.h (struct type) <is_declared_class,
2979 set_is_declared_class>: New methods.
2980 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2981 write call sites to use type::set_is_declared_class.
2982
bfb9f5dc
BS
29832021-02-28 Boris Staletic <boris.staletic@gmail.com>
2984
2985 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2986 to avoid deprecation warnings.
2987
733f5eea
ML
29882021-04-01 Martin Liska <mliska@suse.cz>
2989
2990 * cp-name-parser.y: Use startswith instead of strncmp.
2991 * m2-exp.y: Likewise.
2992 * macroexp.c (substitute_args): Likewise.
2993 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2994 * rust-exp.y: Likewise.
2995
af82f89d
TT
29962021-03-31 Tom Tromey <tom@tromey.com>
2997
2998 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2999 with dw2_map_matching_symbols.
3000 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
3001 dw2_expand_symtabs_matching.
3002
3570682a
TT
30032021-03-31 Tom Tromey <tromey@adacore.com>
3004
3005 * dwarf2/stringify.h: Fix typo.
3006
8a91fbdf
SM
30072021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3008
3009 PR gdb/27541
3010 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
3011 with objfiles using READNOW.
3012
9f67fc59
TT
30132021-03-29 Tom Tromey <tromey@adacore.com>
3014
3015 * top.c (check_frame_language_change): Update.
3016 * language.c (language_info): Remove parameter.
3017 * language.h (language_info): Remove parameter.
3018
9b8ffbf4
LM
30192021-03-29 Luis Machado <luis.machado@linaro.org>
3020
3021 * compile/compile.c (get_args): Don't add empty argv entries.
3022
25b48839
RO
30232021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3024
3025 gdb:
3026 * procfs.c (procfs_target::attach): Define inf.
3027 Use it.
3028 (procfs_target::create_inferior): Likewise.
3029
edc02ceb
TT
30302021-03-28 Tom Tromey <tom@tromey.com>
3031
3032 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
3033 (elf_symfile_read): Simplify.
3034 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
3035 (make_lazy_dwarf_reader): New function.
3036 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
3037 (dwarf2_initialize_objfile): Return void. Remove index_kind
3038 parameter. Push on 'qf' list.
3039 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
3040 type. Remove 'index_kind' parameter.
3041 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
3042
6e23d91a
TT
30432021-03-27 Tom Tromey <tom@tromey.com>
3044
3045 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
3046
594b8948
TT
30472021-03-27 Tom Tromey <tom@tromey.com>
3048
3049 * elfread.c (elf_symfile_read): Don't clear 'qf'.
3050
efe1ecd8
LS
30512021-03-26 Lancelot Six <lsix@lancelotsix.com>
3052
3053 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
3054 rid of 'local'.
3055
f4655dee
TT
30562021-03-26 Tom Tromey <tom@tromey.com>
3057
3058 * symtab.c (struct output_source_filename_data): Add 'output'
3059 method and operator().
3060 (output_source_filename_data::output): Rename from
3061 output_source_filename.
3062 (output_partial_symbol_filename): Remove.
3063 (info_sources_command): Update.
3064 (struct add_partial_filename_data): Add operator().
3065 (add_partial_filename_data::operator()): Rename from
3066 maybe_add_partial_symtab_filename.
3067 (make_source_files_completion_list): Update.
3068 * symfile.c (quick_symbol_functions): Update.
3069 * symfile-debug.c (objfile::map_symbol_filenames): Update.
3070 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
3071 'need_fullname'. Remove 'data' parameter.
3072 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
3073 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
3074 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
3075 Change type of 'fun' and 'need_fullname'. Remove 'data'
3076 parameter.
3077 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
3078 of 'fun' and 'need_fullname'. Remove 'data' parameter.
3079 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
3080 parameter.
3081 (mi_cmd_file_list_exec_source_files): Update.
3082 * dwarf2/read.c
3083 (dwarf2_base_index_functions::map_symbol_filenames): Update.
3084
2315bb2d
TT
30852021-03-26 Tom Tromey <tom@tromey.com>
3086
3087 * ada-lang.c (struct match_data): Add operator().
3088 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
3089 (callback): Remove 'callback'.
3090
e2cd5ca4
TT
30912021-03-26 Tom Tromey <tom@tromey.com>
3092
3093 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
3094 call make_ignore_params once.
3095
cd43f63e
TT
30962021-03-26 Tom Tromey <tom@tromey.com>
3097
3098 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
3099 "user" check.
3100
b4b1a226
SM
31012021-03-26 Simon Marchi <simon.marchi@efficios.com>
3102 Pedro Alves <pedro@palves.net>
3103
3104 * async-event.c: Include "infrun.h".
3105 (async_event_handler_marked): New.
3106 * async-event.h (async_event_handler_marked): Declare.
3107 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
3108 inferior before calling target method. Don't commit-resumed if
3109 target_has_pending_events is true.
3110 * remote.c (remote_target::has_pending_events): New.
3111 * target-delegates.c: Regenerate.
3112 * target.c (target_has_pending_events): New.
3113 * target.h (target_ops::has_pending_events): New target method.
3114 (target_has_pending_events): New.
3115
1192f124
SM
31162021-03-26 Simon Marchi <simon.marchi@efficios.com>
3117 Pedro Alves <pedro@palves.net>
3118
3119 * infcmd.c (run_command_1, attach_command, detach_command)
3120 (interrupt_target_1): Use scoped_disable_commit_resumed.
3121 * infrun.c (do_target_resume): Remove
3122 target_commit_resume call.
3123 (commit_resume_all_targets): Remove.
3124 (maybe_set_commit_resumed_all_targets): New.
3125 (maybe_call_commit_resumed_all_targets): New.
3126 (enable_commit_resumed): New.
3127 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
3128 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
3129 (scoped_disable_commit_resumed::reset)
3130 (scoped_disable_commit_resumed::reset_and_commit)
3131 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
3132 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
3133 New.
3134 (proceed): Use scoped_disable_commit_resumed and
3135 maybe_call_commit_resumed_all_targets.
3136 (fetch_inferior_event): Use scoped_disable_commit_resumed.
3137 * infrun.h (struct scoped_disable_commit_resumed): New.
3138 (maybe_call_commit_resumed_all_process_targets): New.
3139 (struct scoped_enable_commit_resumed): New.
3140 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
3141 * process-stratum-target.h (class process_stratum_target):
3142 <commit_resumed_state>: New.
3143 * record-full.c (record_full_wait_1): Change commit_resumed_state
3144 around calling commit_resumed.
3145 * remote.c (class remote_target) <commit_resume>: Rename to...
3146 <commit_resumed>: ... this.
3147 (struct stop_reply): Move up.
3148 (remote_target::commit_resume): Rename to...
3149 (remote_target::commit_resumed): ... this. Check if there is any
3150 thread pending vCont resume.
3151 (remote_target::remote_stop_ns): Generate stop replies for resumed
3152 but pending vCont threads.
3153 (remote_target::wait_ns): Add gdb_assert.
3154 * target-delegates.c: Regenerate.
3155 * target.c (target_wait, target_resume): Assert that the current
3156 process_stratum target isn't in commit-resumed state.
3157 (defer_target_commit_resume): Remove.
3158 (target_commit_resume): Remove.
3159 (target_commit_resumed): New.
3160 (make_scoped_defer_target_commit_resume): Remove.
3161 (target_stop): Assert that the current process_stratum target
3162 isn't in commit-resumed state.
3163 * target.h (struct target_ops) <commit_resume>: Rename to ...
3164 <commit_resumed>: ... this.
3165 (target_commit_resume): Remove.
3166 (target_commit_resumed): New.
3167 (make_scoped_defer_target_commit_resume): Remove.
3168 * top.c (wait_sync_command_done): Use
3169 scoped_enable_commit_resumed.
3170
e5b9b39f
PA
31712021-03-26 Pedro Alves <pedro@palves.net>
3172
3173 * target.c (target_always_non_stop_p): Also check whether the
3174 target can async.
3175
bab287cd
TT
31762021-03-26 Tom Tromey <tom@tromey.com>
3177
3178 * dwarf2/read.c (dwarf2_read_debug_names)
3179 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
3180 (dw2_debug_names_iterator::next, create_type_unit_group):
3181 Simplify.
3182
eff4f69d
PA
31832021-03-25 Pedro Alves <pedro@palves.net>
3184
3185 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
3186 around setting the breakpoint.
3187
323fd5b9
PA
31882021-03-25 Pedro Alves <pedro@palves.net>
3189
3190 * remote.c
3191 (remote_target::check_pending_events_prevent_wildcard_vcont):
3192 Check whether the event's ptid is not null_ptid before looking up
3193 the corresponding inferior.
3194
d3cbca38
CD
31952021-03-24 Changbin Du <changbin.du@gmail.com>
3196
3197 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
3198 read_code.
3199
328d42d8
SM
32002021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3201
3202 * target.h (current_top_target): Remove, make callers use the
3203 current inferior instead.
3204 * target.c (current_top_target): Remove.
3205
d777bf0d
SM
32062021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3207
3208 * target.h (target_shortname): Change to function declaration.
3209 (target_longname): Likewise.
3210 (target_attach_no_wait): Likewise.
3211 (target_post_attach): Likewise.
3212 (target_prepare_to_store): Likewise.
3213 (target_supports_enable_disable_tracepoint): Likewise.
3214 (target_supports_string_tracing): Likewise.
3215 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
3216 (target_supports_dumpcore): Likewise.
3217 (target_dumpcore): Likewise.
3218 (target_can_run_breakpoint_commands): Likewise.
3219 (target_files_info): Likewise.
3220 (target_post_startup_inferior): Likewise.
3221 (target_insert_fork_catchpoint): Likewise.
3222 (target_remove_fork_catchpoint): Likewise.
3223 (target_insert_vfork_catchpoint): Likewise.
3224 (target_remove_vfork_catchpoint): Likewise.
3225 (target_insert_exec_catchpoint): Likewise.
3226 (target_remove_exec_catchpoint): Likewise.
3227 (target_set_syscall_catchpoint): Likewise.
3228 (target_rcmd): Likewise.
3229 (target_can_lock_scheduler): Likewise.
3230 (target_can_async_p): Likewise.
3231 (target_is_async_p): Likewise.
3232 (target_execution_direction): Likewise.
3233 (target_extra_thread_info): Likewise.
3234 (target_pid_to_exec_file): Likewise.
3235 (target_thread_architecture): Likewise.
3236 (target_find_memory_regions): Likewise.
3237 (target_make_corefile_notes): Likewise.
3238 (target_get_bookmark): Likewise.
3239 (target_goto_bookmark): Likewise.
3240 (target_stopped_by_watchpoint): Likewise.
3241 (target_stopped_by_sw_breakpoint): Likewise.
3242 (target_supports_stopped_by_sw_breakpoint): Likewise.
3243 (target_stopped_by_hw_breakpoint): Likewise.
3244 (target_supports_stopped_by_hw_breakpoint): Likewise.
3245 (target_have_steppable_watchpoint): Likewise.
3246 (target_can_use_hardware_watchpoint): Likewise.
3247 (target_region_ok_for_hw_watchpoint): Likewise.
3248 (target_can_do_single_step): Likewise.
3249 (target_insert_watchpoint): Likewise.
3250 (target_remove_watchpoint): Likewise.
3251 (target_insert_hw_breakpoint): Likewise.
3252 (target_remove_hw_breakpoint): Likewise.
3253 (target_can_accel_watchpoint_condition): Likewise.
3254 (target_can_execute_reverse): Likewise.
3255 (target_get_ada_task_ptid): Likewise.
3256 (target_filesystem_is_local): Likewise.
3257 (target_trace_init): Likewise.
3258 (target_download_tracepoint): Likewise.
3259 (target_can_download_tracepoint): Likewise.
3260 (target_download_trace_state_variable): Likewise.
3261 (target_enable_tracepoint): Likewise.
3262 (target_disable_tracepoint): Likewise.
3263 (target_trace_start): Likewise.
3264 (target_trace_set_readonly_regions): Likewise.
3265 (target_get_trace_status): Likewise.
3266 (target_get_tracepoint_status): Likewise.
3267 (target_trace_stop): Likewise.
3268 (target_trace_find): Likewise.
3269 (target_get_trace_state_variable_value): Likewise.
3270 (target_save_trace_data): Likewise.
3271 (target_upload_tracepoints): Likewise.
3272 (target_upload_trace_state_variables): Likewise.
3273 (target_get_raw_trace_data): Likewise.
3274 (target_get_min_fast_tracepoint_insn_len): Likewise.
3275 (target_set_disconnected_tracing): Likewise.
3276 (target_set_circular_trace_buffer): Likewise.
3277 (target_set_trace_buffer_size): Likewise.
3278 (target_set_trace_notes): Likewise.
3279 (target_get_tib_address): Likewise.
3280 (target_set_permissions): Likewise.
3281 (target_static_tracepoint_marker_at): Likewise.
3282 (target_static_tracepoint_markers_by_strid): Likewise.
3283 (target_traceframe_info): Likewise.
3284 (target_use_agent): Likewise.
3285 (target_can_use_agent): Likewise.
3286 (target_augmented_libraries_svr4_read): Likewise.
3287 (target_log_command): Likewise.
3288 * target.c (target_shortname): New.
3289 (target_longname): New.
3290 (target_attach_no_wait): New.
3291 (target_post_attach): New.
3292 (target_prepare_to_store): New.
3293 (target_supports_enable_disable_tracepoint): New.
3294 (target_supports_string_tracing): New.
3295 (target_supports_evaluation_of_breakpoint_conditions): New.
3296 (target_supports_dumpcore): New.
3297 (target_dumpcore): New.
3298 (target_can_run_breakpoint_commands): New.
3299 (target_files_info): New.
3300 (target_post_startup_inferior): New.
3301 (target_insert_fork_catchpoint): New.
3302 (target_remove_fork_catchpoint): New.
3303 (target_insert_vfork_catchpoint): New.
3304 (target_remove_vfork_catchpoint): New.
3305 (target_insert_exec_catchpoint): New.
3306 (target_remove_exec_catchpoint): New.
3307 (target_set_syscall_catchpoint): New.
3308 (target_rcmd): New.
3309 (target_can_lock_scheduler): New.
3310 (target_can_async_p): New.
3311 (target_is_async_p): New.
3312 (target_execution_direction): New.
3313 (target_extra_thread_info): New.
3314 (target_pid_to_exec_file): New.
3315 (target_thread_architecture): New.
3316 (target_find_memory_regions): New.
3317 (target_make_corefile_notes): New.
3318 (target_get_bookmark): New.
3319 (target_goto_bookmark): New.
3320 (target_stopped_by_watchpoint): New.
3321 (target_stopped_by_sw_breakpoint): New.
3322 (target_supports_stopped_by_sw_breakpoint): New.
3323 (target_stopped_by_hw_breakpoint): New.
3324 (target_supports_stopped_by_hw_breakpoint): New.
3325 (target_have_steppable_watchpoint): New.
3326 (target_can_use_hardware_watchpoint): New.
3327 (target_region_ok_for_hw_watchpoint): New.
3328 (target_can_do_single_step): New.
3329 (target_insert_watchpoint): New.
3330 (target_remove_watchpoint): New.
3331 (target_insert_hw_breakpoint): New.
3332 (target_remove_hw_breakpoint): New.
3333 (target_can_accel_watchpoint_condition): New.
3334 (target_can_execute_reverse): New.
3335 (target_get_ada_task_ptid): New.
3336 (target_filesystem_is_local): New.
3337 (target_trace_init): New.
3338 (target_download_tracepoint): New.
3339 (target_can_download_tracepoint): New.
3340 (target_download_trace_state_variable): New.
3341 (target_enable_tracepoint): New.
3342 (target_disable_tracepoint): New.
3343 (target_trace_start): New.
3344 (target_trace_set_readonly_regions): New.
3345 (target_get_trace_status): New.
3346 (target_get_tracepoint_status): New.
3347 (target_trace_stop): New.
3348 (target_trace_find): New.
3349 (target_get_trace_state_variable_value): New.
3350 (target_save_trace_data): New.
3351 (target_upload_tracepoints): New.
3352 (target_upload_trace_state_variables): New.
3353 (target_get_raw_trace_data): New.
3354 (target_get_min_fast_tracepoint_insn_len): New.
3355 (target_set_disconnected_tracing): New.
3356 (target_set_circular_trace_buffer): New.
3357 (target_set_trace_buffer_size): New.
3358 (target_set_trace_notes): New.
3359 (target_get_tib_address): New.
3360 (target_set_permissions): New.
3361 (target_static_tracepoint_marker_at): New.
3362 (target_static_tracepoint_markers_by_strid): New.
3363 (target_traceframe_info): New.
3364 (target_use_agent): New.
3365 (target_can_use_agent): New.
3366 (target_augmented_libraries_svr4_read): New.
3367 (target_log_command): New.
3368 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
3369 * infrun.c (set_schedlock_func): Adjust.
3370 * mi/mi-main.c (exec_reverse_continue): Adjust.
3371 * reverse.c (exec_reverse_once): Adjust.
3372 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
3373 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
3374 * remote-sim.c (gdbsim_target::detach): Adjust.
3375 (gdbsim_target::files_info): Adjust.
3376
b64f703b
TT
33772021-03-24 Tom Tromey <tom@tromey.com>
3378
3379 * dwarf2/read.c (dw2_map_matching_symbols): Update.
3380 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
3381 (check_match, dw2_expand_symtabs_matching)
3382 (dwarf2_debug_names_index::map_matching_symbols)
3383 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
3384
68f115f8
KS
33852021-03-24 Keith Seitz <keiths@redhat.com>
3386
3387 * compile/compile-cplus-types.c
3388 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
3389 thinko.
3390
41c0087b
SM
33912021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3392
3393 * gdbarch.sh (gdbarch_data_registry): Make static.
3394 * gdbarch.c: Re-generate.
3395
ce192338
LM
33962021-03-24 Luis Machado <luis.machado@linaro.org>
3397
3398 * NEWS: Mention memory tagging changes.
3399
bef382e6
LM
34002021-03-24 Luis Machado <luis.machado@linaro.org>
3401
3402 * printcmd.c (decode_format): Handle the 'm' modifier.
3403 (do_examine): Display allocation tags when required/supported.
3404 (should_validate_memtags): New function.
3405 (print_command_1): Display memory tag mismatches.
3406 * valprint.c (show_memory_tag_violations): New function.
3407 (value_print_option_defs): Add new option "memory-tag-violations".
3408 (user_print_options) <memory_tag_violations>: Initialize to 1.
3409 * valprint.h (struct format_data) <print_tags>: New field.
3410 (value_print_options) <memory_tag_violations>: New field.
3411
48136e00
LM
34122021-03-24 Luis Machado <luis.machado@linaro.org>
3413
3414 * printcmd.c: Include gdbsupport/rsp-low.h.
3415 (memory_tag_list): New static global.
3416 (process_print_command_args): Factored out of
3417 print_command_1.
3418 (print_command_1): Use process_print_command_args.
3419 (show_addr_not_tagged, show_memory_tagging_unsupported)
3420 (memory_tag_command, memory_tag_print_tag_command)
3421 (memory_tag_print_logical_tag_command)
3422 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
3423 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
3424 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
3425 functions.
3426 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
3427
ffcc2a15
LM
34282021-03-24 Luis Machado <luis.machado@linaro.org>
3429
3430 * aarch64-linux-tdep.c
3431 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
3432 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
3433
cf44c9fa
LM
34342021-03-24 Luis Machado <luis.machado@linaro.org>
3435
3436 * aarch64-linux-tdep.c
3437 (aarch64_linux_report_signal_info): New function.
3438 (aarch64_linux_init_abi): Register
3439 aarch64_linux_report_signal_info as the report_signal_info hook.
3440 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
3441 (SEGV_MTESERR): Define.
3442
b4a7d4fc
LM
34432021-03-24 Luis Machado <luis.machado@linaro.org>
3444
3445 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
3446 (aarch64_linux_ltag_tests): New function.
3447 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
3448
c7782e50
LM
34492021-03-24 Luis Machado <luis.machado@linaro.org>
3450
3451 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
3452 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
3453 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
3454 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
3455 functions.
3456 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
3457 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
3458 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
3459 (aarch64_linux_get_ltag): New functions.
3460 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
3461 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
3462 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
3463 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
3464
1e735120
LM
34652021-03-24 Luis Machado <luis.machado@linaro.org>
3466
3467 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
3468 bit.
3469 (struct smaps_data): New struct.
3470 (decode_vmflags): Handle the 'mt' flag.
3471 (parse_smaps_data): New function, refactored from
3472 linux_find_memory_regions_full.
3473 (linux_address_in_memtag_page): New function.
3474 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
3475 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
3476
93e447c6
LM
34772021-03-24 Luis Machado <luis.machado@linaro.org>
3478
3479 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
3480 instead of char arrays.
3481
4601818e
LM
34822021-03-24 Luis Machado <luis.machado@linaro.org>
3483
3484 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
3485 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
3486 nat/aarch64-mte-linux-ptrace.h.
3487 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
3488 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
3489 override.
3490 <fetch_memtags>: New method override.
3491 <store_memtags>: New method override.
3492 (aarch64_linux_nat_target::supports_memory_tagging): New method.
3493 (aarch64_linux_nat_target::fetch_memtags): New method.
3494 (aarch64_linux_nat_target::store_memtags): New method.
3495 * arch/aarch64-mte-linux.c: New file.
3496 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
3497 (AARCH64_MTE_GRANULE_SIZE): Define.
3498 (aarch64_memtag_type): New enum.
3499 (aarch64_mte_get_tag_granules): New prototype.
3500 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
3501 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
3502 * nat/aarch64-mte-linux-ptrace.c: New file.
3503 * nat/aarch64-mte-linux-ptrace.h: New file.
3504
3f3bd8b8
LM
35052021-03-24 Luis Machado <luis.machado@linaro.org>
3506
3507 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
3508 * nat/aarch64-mte-linux-ptrace.h: New file.
3509
5e984dbf
LM
35102021-03-24 Luis Machado <luis.machado@linaro.org>
3511
3512 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
3513 (store_mteregs_to_thread): New function.
3514 (aarch64_linux_nat_target::fetch_registers): Update to call
3515 fetch_mteregs_from_thread.
3516 (aarch64_linux_nat_target::store_registers): Update to call
3517 store_mteregs_to_thread.
3518 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
3519 (aarch64_cannot_store_register): Handle MTE registers.
3520 (aarch64_gdbarch_init): Initialize and setup MTE registers.
3521 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
3522 <has_mte>: New method.
3523 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
3524
c1bd443b
LM
35252021-03-24 Luis Machado <luis.machado@linaro.org>
3526
3527 * aarch64-linux-nat.c
3528 (aarch64_linux_nat_target::read_description): Take MTE flag into
3529 account.
3530 Slight refactor to hwcap flag checking.
3531 * aarch64-linux-tdep.c
3532 (aarch64_linux_core_read_description): Likewise.
3533 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
3534 MTE.
3535 (aarch64_read_description): Add mte_p parameter and update to use it.
3536 Update the documentation.
3537 (aarch64_gdbarch_init): Update call to aarch64_read_description.
3538 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
3539 * arch/aarch64.c: Include ../features/aarch64-mte.c.
3540 (aarch64_create_target_description): Add mte_p parameter and update
3541 the code to use it.
3542 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
3543 parameter.
3544 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
3545 * features/aarch64-mte.c: New file, generated.
3546 * features/aarch64-mte.xml: New file.
3547
04245125
LM
35482021-03-24 Luis Machado <luis.machado@linaro.org>
3549
3550 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
3551 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
3552 * aarch64-linux-tdep.c: Likewise
3553 * arch/aarch64-mte-linux.h: New file.
3554
754487e2
LM
35552021-03-24 Luis Machado <luis.machado@linaro.org>
3556
3557 * remote: Include gdbsupport/selftest.h.
3558 (test_memory_tagging_functions): New function.
3559 (_initialize_remote): Register test_memory_tagging_functions.
3560
2c2e7f87
LM
35612021-03-24 Luis Machado <luis.machado@linaro.org>
3562
3563 * remote.c (PACKET_memory_tagging_feature): New enum.
3564 (remote_memory_tagging_p): New function.
3565 (remote_protocol_features): New "memory-tagging" entry.
3566 (remote_target::remote_query_supported): Handle memory tagging
3567 support.
3568 (remote_target::supports_memory_tagging): Implement.
3569 (create_fetch_memtags_request, parse_fetch_memtags_reply)
3570 (create_store_memtags_request): New functions.
3571 (remote_target::fetch_memtags): Implement.
3572 (remote_target::store_memtags): Implement.
3573 (_initialize_remote): Add new "memory-tagging-feature"
3574 config command.
3575
c193949e
LM
35762021-03-24 Luis Machado <luis.machado@linaro.org>
3577
3578 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
3579 (default_memtag_matches_p, default_set_memtags)
3580 (default_get_memtag): New functions.
3581 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
3582 (default_memtag_matches_p, default_set_memtags)
3583 (default_get_memtag): New prototypes.
3584 * gdbarch.c: Regenerate.
3585 * gdbarch.h: Regenerate.
3586 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
3587 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
3588 (enum memtag_type): New enum.
3589
dbe692af
LM
35902021-03-24 Luis Machado <luis.machado@linaro.org>
3591
3592 * remote.c (remote_target) <supports_memory_tagging>: New method
3593 override.
3594 <fetch_memtags>: New method override.
3595 <store_memtags>: New method override.
3596 (remote_target::supports_memory_tagging): New method.
3597 (remote_target::fetch_memtags): New method.
3598 (remote_target::store_memtags): New method.
3599 * target-delegates.c: Regenerate.
3600 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
3601 method.
3602 <fetch_memtags>: New virtual method.
3603 <store_memtags>: New virtual method.
3604 (target_supports_memory_tagging): Define.
3605 (target_fetch_memtags): Define.
3606 (target_store_memtags): Define.
3607 * target-debug.h (target_debug_print_size_t)
3608 (target_debug_print_const_gdb_byte_vector_r)
3609 (target_debug_print_gdb_byte_vector_r): New functions.
3610
66848ebc
SM
36112021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3612
3613 * target.h (target_longname): Remove.
3614
c8fbd44a
SM
36152021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3616
3617 * target.h (target_is_pushed): Remove, update callers to use
3618 inferior::target_is_pushed instead.
3619 * target.c (target_is_pushed): Remove.
3620
02980c56
SM
36212021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3622
3623 * target.h (push_target): Remove, update callers to use
3624 inferior::push_target.
3625 * target.c (push_target): Remove.
3626 * inferior.h (class inferior) <push_target>: New overload.
3627
fadf6add
SM
36282021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3629
3630 * target.h (unpush_target): Remove, update all callers
3631 to use `inferior::unpush_target` instead.
3632 (struct target_unpusher) <operator()>: Just declare.
3633 * target.c (unpush_target): Remove.
3634 (target_unpusher::operator()): New.
3635
702cf3f5
AB
36362021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3637
3638 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
3639 error.
3640 (process_full_comp_unit): Validate the top-level tag before
3641 processing the first DIE.
3642 (read_func_scope): Ensure we have a valid builder.
3643
46fec642
AB
36442021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3645
3646 * objc-lang.c (objc_demangle): Renamed to
3647 objc_language::demangle_symbol, and moved later in the file.
3648 (objc_language::sniff_from_mangled_name): Call demangle_symbol
3649 member function.
3650 (objc_language::demangle_symbol): Defined outside of class
3651 declaration. The definition is the old objc_demangle with NULL
3652 changed to nullptr, and if conditions relating to nullptr pointers
3653 or null character checks made explicit.
3654 * objc-lang.h (objc_demangle): Delete declaration.
3655
08dedd66
ML
36562021-03-22 Martin Liska <mliska@suse.cz>
3657
3658 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
3659 (_initialize_arm_tdep): Likewise.
3660
eb36a3eb
TT
36612021-03-20 Tom Tromey <tom@tromey.com>
3662
3663 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
3664 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3665 * psymtab.h (make_psymbol_functions): Don't declare.
3666 * psymtab.c (make_psymbol_functions): Remove.
3667 (maintenance_print_psymbols): Update.
3668 * psympriv.h (struct psymbol_functions): Add no-argument
3669 constructor.
3670 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
3671 <partial_symtabs>: Remove.
3672 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
3673 * elfread.c (read_partial_symbols): Update.
3674 (elf_symfile_read): Remove check for existing partial symbols.
3675 Don't clear "qf".
3676 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
3677 partial symbols.
3678 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
3679 partial symtabs.
3680 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
3681 parameter.
3682 * dbxread.c (dbx_symfile_read): Create partial symtabs.
3683 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
3684
e1114590
TT
36852021-03-20 Tom Tromey <tom@tromey.com>
3686
3687 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3688 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3689 * symfile-debug.c (objfile::has_partial_symbols)
3690 (objfile::find_last_source_symtab)
3691 (objfile::forget_cached_source_info)
3692 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3693 (objfile::print_stats, objfile::dump)
3694 (objfile::expand_symtabs_for_function)
3695 (objfile::expand_all_symtabs)
3696 (objfile::expand_symtabs_with_fullname)
3697 (objfile::map_matching_symbols)
3698 (objfile::expand_symtabs_matching)
3699 (objfile::find_pc_sect_compunit_symtab)
3700 (objfile::map_symbol_filenames)
3701 (objfile::find_compunit_symtab_by_address)
3702 (objfile::lookup_global_symbol_language)
3703 (objfile::require_partial_symbols): Update.
3704 * psymtab.c (maintenance_print_psymbols)
3705 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3706 * objfiles.h (struct objfile) <qf>: Now a forward_list.
3707 * objfiles.c (objfile_relocate1): Update.
3708 * elfread.c (elf_symfile_read): Update.
3709
de909f0b
TT
37102021-03-20 Tom Tromey <tom@tromey.com>
3711
3712 * objfiles.h (struct objfile) <psymtabs>: Remove method.
3713
caf8c1e5
TT
37142021-03-20 Tom Tromey <tom@tromey.com>
3715
3716 * psymtab.c (psymbol_functions::count_psyms): Rename.
3717 (psymbol_functions::print_stats): Update.
3718 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3719 method.
3720
3aa31ce7
TT
37212021-03-20 Tom Tromey <tom@tromey.com>
3722
3723 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3724 (psymbol_functions::find_pc_sect_psymtab): Rename.
3725 (psymbol_functions::find_pc_sect_compunit_symtab)
3726 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3727 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3728 Declare new method.
3729 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3730
7b249e47
TT
37312021-03-20 Tom Tromey <tom@tromey.com>
3732
3733 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3734 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
3735 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3736 parameter.
3737 (add_psymbol_to_bcache): Remove.
3738 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
3739 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3740 Likewise.
3741 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
3742 <add_psymbol>: Likewise.
3743 (standard_psymtab, legacy_psymtab): Likewise.
3744 * mdebugread.c (parse_partial_symbols): Update.
3745 (handle_psymbol_enumerators): Add partial_symtabs parameter.
3746 (handle_psymbol_enumerators): Update.
3747 (new_psymtab): Add partial_symtabs parameter.
3748 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3749 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3750 parameter.
3751 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3752 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3753 Update.
3754 * dbxread.c (read_dbx_symtab): Update.
3755 (start_psymtab): Add partial_symtabs parameter.
3756 (dbx_end_psymtab): Update.
3757 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3758 (ctf_psymtab): Add partial_symtabs parameter.
3759 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3760 Update.
3761 (scan_partial_symbols): Add partial_symtabs parameter.
3762 (scan_partial_symbols, elfctf_build_psymtabs)
3763 (ctf_psymtab_add_enums): Update.
3764
d1eef86d
TT
37652021-03-20 Tom Tromey <tom@tromey.com>
3766
3767 * symfile.c (read_symbols): Use objfile method.
3768 * symfile-debug.c (objfile::require_partial_symbols): New method.
3769 * psymtab.h (require_partial_symbols): Don't declare.
3770 * psymtab.c (require_partial_symbols): Use objfile method. Now
3771 static.
3772 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3773 (psymbol_functions::lookup_symbol)
3774 (psymbol_functions::lookup_global_symbol_language)
3775 (psymbol_functions::find_last_source_symtab)
3776 (psymbol_functions::forget_cached_source_info)
3777 (psymbol_functions::print_stats)
3778 (psymbol_functions::expand_symtabs_for_function)
3779 (psymbol_functions::expand_all_symtabs)
3780 (psymbol_functions::expand_symtabs_with_fullname)
3781 (psymbol_functions::map_symbol_filenames)
3782 (psymbol_functions::map_matching_symbols)
3783 (psymbol_functions::expand_symtabs_matching)
3784 (psymbol_functions::find_compunit_symtab_by_address)
3785 (maintenance_print_psymbols, maintenance_info_psymtabs)
3786 (maintenance_check_psymtabs): Update.
3787 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3788 new method.
3789
eb00e468
TT
37902021-03-20 Tom Tromey <tom@tromey.com>
3791
3792 * xcoffread.c (xcoff_sym_fns): Update.
3793 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3794 * symfile-debug.c (objfile::has_partial_symbols): Use
3795 can_lazily_read_symbols.
3796 (debug_sym_read_psymbols): Remove.
3797 (debug_sym_fns, install_symfile_debug_logging): Update.
3798 * quick-symbol.h (struct quick_symbol_functions)
3799 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3800 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3801 * mipsread.c (ecoff_sym_fns): Update.
3802 * machoread.c (macho_sym_fns): Update.
3803 * elfread.c (struct lazy_dwarf_reader): New.
3804 (elf_symfile_read): Update.
3805 (read_psyms): Now a method of lazy_dwarf_reader.
3806 (elf_sym_fns): Update.
3807 (elf_sym_fns_lazy_psyms): Remove.
3808 * dbxread.c (aout_sym_fns): Update.
3809 * coffread.c (coff_sym_fns): Update.
3810
b29b98cf
TT
38112021-03-20 Tom Tromey <tom@tromey.com>
3812
3813 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3814 (reread_symbols): Move reset_psymtabs call later.
3815 * objfiles.c (objfile::objfile): Don't initialize
3816 partial_symtabs.
3817
17d66340
TT
38182021-03-20 Tom Tromey <tom@tromey.com>
3819
3820 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3821 set_partial_symtabs.
3822 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3823 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3824 parameter.
3825 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3826 parameter.
3827 (psymbol_functions::find_pc_sect_compunit_symtab)
3828 (psymbol_functions::print_stats, psymbol_functions::dump)
3829 (psymbol_functions::has_symbols): Update.
3830 (make_psymbol_functions, dump_psymtab_addrmap): Add
3831 partial_symtabs parameter.
3832 (maintenance_print_psymbols): Update.
3833 (psymbol_functions::expand_symtabs_matching): Update.
3834 * psympriv.h (struct psymbol_functions): Add constructor.
3835 <m_partial_symtabs>: New member.
3836 <set_partial_symtabs>: New method.
3837
84685904
TT
38382021-03-20 Tom Tromey <tom@tromey.com>
3839
3840 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3841 parameter.
3842 (process_psymtab_comp_unit_reader)
3843 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3844 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3845 Reference psymtabs via per_bfd.
3846
79cc99f6
TT
38472021-03-20 Tom Tromey <tom@tromey.com>
3848
3849 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3850 Remove.
3851 (add_address_entry): Remove objfile parameter.
3852 (add_address_entry_worker): Update.
3853 (write_address_map): Replace objfile parameter with per_bfd.
3854 (write_gdbindex, write_psymtabs_to_index): Update.
3855
4829711b
TT
38562021-03-20 Tom Tromey <tom@tromey.com>
3857
3858 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3859 print_bcache parameter.
3860 * symfile-debug.c (objfile::print_stats): Add print_bcache
3861 parameter.
3862 * quick-symbol.h (struct quick_symbol_functions)
3863 <print_stats>: Add print_bcache parameter.
3864 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3865 code to psymtab.c.
3866 (print_objfile_statistics): Move psymtab code to psymtab.c.
3867 * psymtab.c (count_psyms): Move from symmisc.c.
3868 (psymbol_functions::print_stats): Print partial symbol and bcache
3869 statistics. Add print_bcache parameter.
3870 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3871 (struct objfile) <print_stats>: Add print_bcache parameter.
3872 * maint.c (maintenance_print_statistics): Update.
3873
efd7398e
TT
38742021-03-20 Tom Tromey <tom@tromey.com>
3875
3876 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3877 member.
3878 * dwarf2/read.c (create_addrmap_from_index)
3879 (create_addrmap_from_aranges): Set per_bfd addrmap.
3880 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3881 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3882 per_bfd addrmap.
3883 (dwarf2_read_debug_names): Don't set partial_symtabs.
3884 (dwarf2_initialize_objfile): Likewise.
3885
51962708
TT
38862021-03-20 Tom Tromey <tom@tromey.com>
3887
3888 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3889 earlier.
3890
484b1090
TT
38912021-03-20 Tom Tromey <tom@tromey.com>
3892
3893 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3894 (~psymtab_discarder, keep): Update.
3895 <m_objfile>: Remove.
3896 <m_partial_symtabs>: New member.
3897 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3898
7e9c0476
TT
38992021-03-20 Tom Tromey <tom@tromey.com>
3900
3901 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3902 (xcoff_end_psymtab): Update.
3903 (scan_xcoff_symtab): Add partial_symtabs parameter.
3904 (xcoff_initial_scan): Update.
3905 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3906 * mdebugread.c (mdebug_build_psymtabs): Update.
3907 (parse_partial_symbols): Add partial_symtabs parameter.
3908 * dbxread.c (dbx_symfile_read): Update.
3909 (read_dbx_symtab): Add partial_symtabs parameter.
3910 (read_dbx_symtab): Update.
3911 (dbx_end_psymtab): Add partial_symtabs parameter.
3912
75336a5a
TT
39132021-03-20 Tom Tromey <tom@tromey.com>
3914
3915 * quick-symbol.h (struct quick_symbol_functions)
3916 <relocated>: New method.
3917 * psymtab.h (struct psymbol_functions) <relocated>: New
3918 method.
3919 <fill_psymbol_map>: Declare method.
3920 <m_psymbol_map>: New member.
3921 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3922 (psymbol_functions::find_compunit_symtab_by_address): Update.
3923 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3924 (struct objfile) <psymbol_map>: Remove.
3925 * objfiles.c (objfile_relocate1): Update.
3926
39298a5d
TT
39272021-03-20 Tom Tromey <tom@tromey.com>
3928
3929 * psympriv.h (struct psymbol_functions): New.
3930 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3931 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3932 (objfile::lookup_global_symbol_language): Update.
3933 * quick-symbol.h (struct quick_symbol_functions): Convert function
3934 pointers to methods. Add virtual destructor.
3935 (quick_symbol_functions_up): New typedef.
3936 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3937 (dwarf2_debug_names_functions): Don't declare.
3938 (make_psymbol_functions): Declare.
3939 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3940 (psymbol_functions::find_pc_sect_compunit_symtab)
3941 (psymbol_functions::lookup_symbol)
3942 (psymbol_functions::lookup_global_symbol_language)
3943 (psymbol_functions::find_last_source_symtab)
3944 (psymbol_functions::forget_cached_source_info)
3945 (psymbol_functions::print_stats, psymbol_functions::dump)
3946 (psymbol_functions::expand_symtabs_for_function)
3947 (psymbol_functions::expand_all_symtabs)
3948 (psymbol_functions::expand_symtabs_with_fullname)
3949 (psymbol_functions::map_symbol_filenames)
3950 (psymbol_functions::map_matching_symbols)
3951 (psymbol_functions::expand_symtabs_matching)
3952 (psymbol_functions::has_symbols)
3953 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3954 (psym_functions): Remove.
3955 (make_psymbol_functions): New function.
3956 * objfiles.h (struct objfile) <qf>: Change type.
3957 * elfread.c (elf_symfile_read): Update.
3958 * dwarf2/read.c (struct dwarf2_base_index_functions)
3959 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3960 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3961 (dwarf2_base_index_functions::find_last_source_symtab)
3962 (dwarf2_base_index_functions::forget_cached_source_info)
3963 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3964 (dwarf2_gdb_index::lookup_symbol)
3965 (dwarf2_base_index_functions::print_stats)
3966 (dwarf2_gdb_index::dump)
3967 (dwarf2_gdb_index::expand_symtabs_for_function)
3968 (dwarf2_base_index_functions::expand_all_symtabs)
3969 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3970 Rename.
3971 (dwarf2_gdb_index::map_matching_symbols): New method.
3972 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3973 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3974 (dwarf2_base_index_functions::map_symbol_filenames)
3975 (dwarf2_base_index_functions::has_symbols): Rename.
3976 (dwarf2_gdb_index_functions): Remove.
3977 (dwarf2_debug_names_index::lookup_symbol)
3978 (dwarf2_debug_names_index::dump)
3979 (dwarf2_debug_names_index::expand_symtabs_for_function)
3980 (dwarf2_debug_names_index::map_matching_symbols)
3981 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3982 (dwarf2_debug_names_functions): Remove.
3983 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3984 Declare.
3985
5c3f1e5b
TT
39862021-03-20 Tom Tromey <tom@tromey.com>
3987
3988 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3989 null.
3990 * xcoffread.c (xcoff_sym_fns): Update.
3991 * symfile.h (struct sym_fns) <qf>: Remove.
3992 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3993 * symfile-debug.c (objfile::has_partial_symbols)
3994 (objfile::find_last_source_symtab)
3995 (objfile::forget_cached_source_info)
3996 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3997 (objfile::print_stats, objfile::dump)
3998 (objfile::expand_symtabs_for_function)
3999 (objfile::expand_all_symtabs)
4000 (objfile::expand_symtabs_with_fullname)
4001 (objfile::map_matching_symbols)
4002 (objfile::expand_symtabs_matching)
4003 (objfile::find_pc_sect_compunit_symtab)
4004 (objfile::map_symbol_filenames)
4005 (objfile::find_compunit_symtab_by_address)
4006 (objfile::lookup_global_symbol_language, debug_sym_fns)
4007 (install_symfile_debug_logging): Update.
4008 * objfiles.h (struct objfile) <qf>: New member.
4009 * mipsread.c (ecoff_sym_fns): Update.
4010 * machoread.c (macho_sym_fns): Update.
4011 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
4012 Don't declare.
4013 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
4014 * dbxread.c (aout_sym_fns): Update.
4015 * coffread.c (coff_sym_fns): Update.
4016
9b99dcc8
TT
40172021-03-20 Tom Tromey <tom@tromey.com>
4018
4019 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
4020 (expand_symtabs_file_matcher_ftype)
4021 (expand_symtabs_symbol_matcher_ftype)
4022 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
4023 Move to quick-symbol.h.
4024 * quick-symbol.h: New file.
4025
4d080b46
TT
40262021-03-20 Tom Tromey <tom@tromey.com>
4027
4028 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
4029 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
4030 (basic_lookup_transparent_type_quick)
4031 (find_pc_sect_compunit_symtab, find_symbol_at_address)
4032 (find_line_symtab, global_symbol_searcher::expand_symtabs):
4033 Update.
4034 * symmisc.c (print_objfile_statistics, dump_objfile)
4035 (maintenance_expand_symtabs): Update.
4036 * symfile.c (symbol_file_add_with_addrs)
4037 (expand_symtabs_matching, map_symbol_filenames): Update.
4038 * symfile-debug.c (objfile::has_partial_symbols)
4039 (objfile::find_last_source_symtab)
4040 (objfile::forget_cached_source_info)
4041 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
4042 (objfile::print_stats, objfile::dump)
4043 (objfile::expand_symtabs_for_function)
4044 (objfile::expand_all_symtabs)
4045 (objfile::expand_symtabs_with_fullname)
4046 (objfile::map_matching_symbols)
4047 (objfile::expand_symtabs_matching)
4048 (objfile::find_pc_sect_compunit_symtab)
4049 (objfile::map_symbol_filenames)
4050 (objfile::find_compunit_symtab_by_address)
4051 (objfile::lookup_global_symbol_language): New methods.
4052 (debug_sym_quick_functions): Remove.
4053 (debug_sym_fns, install_symfile_debug_logging): Update.
4054 * source.c (forget_cached_source_info_for_objfile)
4055 (select_source_symtab): Update.
4056 * objfiles.h (struct objfile): Add methods corresponding to
4057 quick_symbol_functions.
4058 * objfiles.c (objfile::has_partial_symbols): Move to
4059 symfile-debug.c.
4060 * linespec.c (iterate_over_all_matching_symtabs): Update.
4061 * cp-support.c (add_symbol_overload_list_qualified): Update.
4062 * ada-lang.c (add_nonlocal_symbols): Update.
4063
fae2120b
TT
40642021-03-20 Tom Tromey <tom@tromey.com>
4065
4066 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
4067 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
4068 bool.
4069 * symfile-debug.c (debug_qf_has_symbols): Return bool.
4070 * psymtab.c (psym_has_symbols): Return bool.
4071 * objfiles.c (objfile::has_partial_symbols): Return bool.
4072 * dwarf2/read.c (dw2_has_symbols): Return bool.
4073
a8ad4f3c
TT
40742021-03-20 Tom Tromey <tom@tromey.com>
4075
4076 * symfile.c (read_symbols): Update.
4077 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
4078 (objfile_has_partial_symbols): Don't declare.
4079 * objfiles.c (objfile::has_partial_symbols): Rename from
4080 objfile_has_partial_symbols.
4081 (objfile_has_symbols, have_partial_symbols): Update.
4082 * elfread.c (elf_symfile_read): Update.
4083 * dwarf2/read.c (dwarf2_has_info): Update.
4084 * coffread.c (coff_symfile_read): Update.
4085
70182375
TT
40862021-03-20 Tom Tromey <tom@tromey.com>
4087
4088 * coffread.c: Include dwarf2/public.h.
4089 * dwarf2/frame.c: Include dwarf2/public.h.
4090 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
4091 * dwarf2/public.h: New file.
4092 * dwarf2/read.c: Include dwarf2/public.h.
4093 * elfread.c: Include dwarf2/public.h.
4094 * machoread.c: Include dwarf2/public.h.
4095 * symfile.h (dwarf2_has_info, enum dw_index_kind)
4096 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
4097 (dwarf2_build_frame_info): Move to dwarf2/public.h.
4098 * xcoffread.c: Include dwarf2/public.h.
4099
18038e63
TT
41002021-03-20 Tom Tromey <tom@tromey.com>
4101
4102 * symfile.h (enum dwarf2_section_enum)
4103 (dwarf2_get_section_info): Move to dwarf2/read.h.
4104 * dwarf2/read.h (enum dwarf2_section_enum)
4105 (dwarf2_get_section_info): Move from symfile.h.
4106
219f56b4
PA
41072021-03-19 Pedro Alves <pedro@palves.net>
4108
4109 * thread.c (any_thread_of_inferior): Check if there's a selected
4110 thread before calling inferior_thread().
4111
15310fd4
TT
41122021-03-18 Tom Tromey <tromey@adacore.com>
4113
4114 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
4115 get_DW_UT_name.
4116 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
4117 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
4118
763b8efd
AB
41192021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
4120
4121 * python/py-param.c (get_set_value): Update header comment.
4122
f058c521
SM
41232021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4124
4125 * infrun.c (check_multi_target_resumption): Remove argument to
4126 all_non_exited_inferiors.
4127
383228bc
CB
41282021-03-16 Christian Biesinger <cbiesinger@google.com>
4129
4130 * windows-nat.c (windows_init_thread_list): Add message to
4131 debug log.
4132
7807d76a
AB
41332021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
4134
4135 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
4136 well as PyLong_Check for Python 2.
4137
675da9a5
TT
41382021-03-15 Tom Tromey <tromey@adacore.com>
4139
4140 PR build/27579:
4141 * rust-exp.y (maker_map): Use gdb::hash_enum.
4142 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
4143
4800761a
SM
41442021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
4145
4146 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
4147 end of debug print.
4148
eb5dd737
SM
41492021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
4150
4151 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
4152 parameter, adjust caller.
4153
6813ceb0
TT
41542021-03-15 Tom Tromey <tromey@adacore.com>
4155
4156 * ada-exp.y (simple_exp): Always push a result for unary '+'.
4157
3b5c4de0
TT
41582021-03-15 Tom Tromey <tromey@adacore.com>
4159
4160 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
4161 ada_ensure_varsize_limit.
4162
c04da66c
TT
41632021-03-15 Tom Tromey <tromey@adacore.com>
4164
4165 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
4166 fixed-point.
4167 * ada-exp.y (maybe_overload): New function.
4168 (ada_wrap_overload): New function.
4169 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
4170 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
4171 (or_else_exp, xor_exp, primary): Update.
4172
9863c3b5
TT
41732021-03-15 Tom Tromey <tromey@adacore.com>
4174
4175 PR ada/27545:
4176 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
4177 call for tagged type.
4178
1ac74522
TT
41792021-03-15 Tom Tromey <tromey@adacore.com>
4180
4181 * ada-exp.y (exp1): Handle resolution of the right hand side of an
4182 assignment.
4183
207582c0
TT
41842021-03-15 Tom Tromey <tromey@adacore.com>
4185
4186 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
4187 container.
4188 (ada_assign_operation::evaluate): Update.
4189 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
4190 Change return type.
4191
8d624a9d
FW
41922021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
4193
4194 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
4195
ba6a0ef3
AB
41962021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
4197
4198 * python/python.c (gdbpy_source_objfile_script): Use
4199 make_scoped_restore to restore gdbpy_current_objfile.
4200 (gdbpy_execute_objfile_script): Likewise.
4201
7c290a04
TT
42022021-03-14 Tom Tromey <tom@tromey.com>
4203
4204 * dwarf2/read.c (read_attribute_value): Use cu_header
4205 consistently.
4206
0280fdcc
TT
42072021-03-14 Tom Tromey <tom@tromey.com>
4208
4209 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
4210 (peek_die_abbrev): Use reader.abfd.
4211
a9f172c6
TT
42122021-03-14 Tom Tromey <tom@tromey.com>
4213
4214 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
4215 m_header_read_in.
4216
7c32eebb
TT
42172021-03-13 Tom Tromey <tom@tromey.com>
4218
4219 * dwarf2/read.c (struct partial_die_info): Update.
4220 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
4221 (load_partial_dies, partial_die_info::partial_die_info): Update.
4222 * dwarf2/abbrev.h (lookup_abbrev): Constify.
4223
27012aba
TT
42242021-03-13 Tom Tromey <tom@tromey.com>
4225
4226 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
4227
fece451c
CB
42282021-03-12 Christian Biesinger <cbiesinger@google.com>
4229
4230 PR threads/27239
4231 * cp-support.c: Use scoped_segv_handler_restore.
4232 * event-top.c (thread_local_segv_handler): Made static.
4233 (scoped_segv_handler_restore::scoped_segv_handler_restore):
4234 New function.
4235 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
4236 function.
4237 * event-top.h (class scoped_segv_handler_restore): New class.
4238 (thread_local_segv_handler): Removed.
4239
7056f312
TT
42402021-03-10 Tom Tromey <tromey@adacore.com>
4241
4242 * parser-defs.h (parser_state): Change completion to bool.
4243 <parse_completion>: Likewise.
4244 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4245 (ada_resolve_variable, ada_resolve_function): Update.
4246 * ada-lang.c (ada_find_operator_symbol): Change
4247 parse_completion to bool.
4248 (ada_resolve_funcall, ada_resolve_variable)
4249 (ada_resolve_function): Likewise.
4250
ccdc02ed
TT
42512021-03-09 Tom Tromey <tromey@adacore.com>
4252
4253 * eval.c (operation::evaluate_funcall): Use function formal
4254 parameter types when evaluating.
4255
fbb1aace
AB
42562021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4257
4258 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
4259 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
4260 and owner to m_owner.
4261
611aa09d
FW
42622021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
4263
4264 * f-exp.h (eval_op_f_loc): Declare.
4265 (expr::fortran_loc_operation): New typedef.
4266 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
4267 UNOP_INTRINSIC.
4268 (f77_keywords): Add LOC keyword.
4269 * f-lang.c (eval_op_f_loc): New function.
4270 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
4271
eef32f59
AB
42722021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4273
4274 * f-exp.h (eval_op_f_array_shape): Declare.
4275 (fortran_array_shape_operation): New type.
4276 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
4277 UNOP_INTRINSIC.
4278 (f77_keywords): Add "shape" keyword.
4279 * f-lang.c (fortran_array_shape): New function.
4280 (eval_op_f_array_shape): New function.
4281 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
4282
7ba155b3
AB
42832021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4284
4285 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
4286 of this function.
4287 (expr::fortran_array_size_1arg): New type.
4288 (expr::fortran_array_size_2arg): Likewise.
4289 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
4290 UNOP_OR_BINOP_INTRINSIC.
4291 (f77_keywords): Add "size" keyword.
4292 * f-lang.c (fortran_array_size): New function.
4293 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
4294 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
4295
e14816a8
AB
42962021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4297
4298 * f-exp.h (eval_op_f_rank): Declare.
4299 (expr::fortran_rank_operation): New typedef.
4300 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
4301 UNOP_INTRINSIC.
4302 (f77_keywords): Add "rank" keyword.
4303 * f-lang.c (eval_op_f_rank): New function.
4304 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
4305
3dd93bf8
TT
43062021-03-08 Tom Tromey <tom@tromey.com>
4307
4308 * printcmd.c (set_command): Remove null check.
4309 * value.c (init_if_undefined_command): Remove null check.
4310
9c79936b
TT
43112021-03-08 Tom Tromey <tom@tromey.com>
4312
4313 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
4314 Update.
4315 * p-exp.y (variable): Update.
4316 * go-exp.y (variable): Update.
4317 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
4318 Remove overload for objfile.
4319 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
4320 parameter.
4321 (check_objfile): Likewise.
4322 (dump_for_expression): Likewise. Remove overload for objfile.
4323 (class var_msym_value_operation): Use bound_minimal_symbol.
4324 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
4325 parameter.
4326 (var_msym_value_operation::evaluate_for_address)
4327 (var_msym_value_operation::evaluate_for_sizeof)
4328 (var_msym_value_operation::evaluate_for_cast): Update.
4329 * d-exp.y (PrimaryExpression): Update.
4330 * c-exp.y (variable): Update.
4331 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
4332 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4333 Update.
4334 * ada-exp.y (write_var_or_type): Update.
4335
40d07d07
TT
43362021-03-08 Tom Tromey <tom@tromey.com>
4337
4338 * parser-defs.h (exp_uses_objfile): Return bool.
4339 * parse.c (exp_uses_objfile): Return bool.
4340
0b2b0b82
TT
43412021-03-08 Tom Tromey <tom@tromey.com>
4342
4343 * value.h (eval_skip_value): Don't declare.
4344 * opencl-lang.c (eval_opencl_assign): Update.
4345 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
4346 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4347 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
4348 * expression.h (enum noside) <EVAL_SKIP>: Remove.
4349 * expop.h (typeof_operation::evaluate)
4350 (decltype_operation::evaluate, unop_addr_operation::evaluate)
4351 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
4352 (cxx_cast_operation::evaluate): Update.
4353 * eval.c (eval_skip_value): Remove.
4354 (eval_op_scope, eval_op_var_entry_value)
4355 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
4356 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
4357 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
4358 (eval_op_binary, eval_op_subscript, eval_op_equal)
4359 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
4360 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
4361 (eval_op_complement, eval_op_lognot, eval_op_ind)
4362 (eval_op_memval, eval_op_preinc, eval_op_predec)
4363 (eval_op_postinc, eval_op_postdec, eval_op_type)
4364 (eval_binop_assign_modify, eval_op_objc_msgcall)
4365 (eval_multi_subscript, logical_and_operation::evaluate)
4366 (logical_or_operation::evaluate, array_operation::evaluate)
4367 (operation::evaluate_for_cast)
4368 (var_msym_value_operation::evaluate_for_cast)
4369 (var_value_operation::evaluate_for_cast): Update.
4370 * c-lang.c (c_string_operation::evaluate): Update.
4371 * c-exp.h (objc_nsstring_operation::evaluate)
4372 (objc_selector_operation::evaluate): Update.
4373 * ada-lang.c (ada_assign_operation::evaluate)
4374 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
4375 (ada_atr_size): Update.
4376
96db551d
TT
43772021-03-08 Tom Tromey <tom@tromey.com>
4378
4379 * eval.c: Merge "namespace" scopes.
4380
ce284361
TT
43812021-03-08 Tom Tromey <tom@tromey.com>
4382
4383 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
4384 <release>: Inline.
4385 * parse.c (expr_builder::expr_builder, expr_builder::release):
4386 Remove.
4387
b9d06571
TT
43882021-03-08 Tom Tromey <tom@tromey.com>
4389
4390 * parse.c (expression::expression, expression::~expression):
4391 Remove.
4392 * expression.h (struct expression): Inline constructor. Remove
4393 destructor.
4394
79ab486e
TT
43952021-03-08 Tom Tromey <tom@tromey.com>
4396
4397 * std-operator.def (BINOP_END): Remove.
4398 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
4399 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
4400 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
4401 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
4402 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
4403 BINOP_END.
4404
48fa6f23
TT
44052021-03-08 Tom Tromey <tom@tromey.com>
4406
4407 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
4408
43f542e3
TT
44092021-03-08 Tom Tromey <tom@tromey.com>
4410
4411 * std-operator.def (OP_EXTENDED0): Remove.
4412
5d9ba982
TT
44132021-03-08 Tom Tromey <tom@tromey.com>
4414
4415 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
4416 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
4417 Remove.
4418
d357570d
TT
44192021-03-08 Tom Tromey <tom@tromey.com>
4420
4421 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
4422 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
4423
0922dc84
TT
44242021-03-08 Tom Tromey <tom@tromey.com>
4425
4426 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
4427 * ada-lang.c (ada_binop_minmax): Update.
4428 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4429 Use BINOP_MIN and BINOP_MAX.
4430
1eaebe02
TT
44312021-03-08 Tom Tromey <tom@tromey.com>
4432
4433 * value.h (evaluate_subexp_with_coercion): Don't declare.
4434 * parse.c (exp_descriptor_standard): Remove.
4435 (expr_builder::expr_builder, expr_builder::release): Update.
4436 (expression::expression): Remove size_t parameter.
4437 (expression::~expression): Simplify.
4438 (expression::resize): Remove.
4439 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4440 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4441 (write_exp_elt_longcst, write_exp_elt_floatcst)
4442 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4443 (write_exp_string_vector, write_exp_bitstring): Remove.
4444 * p-lang.h (class pascal_language) <opcode_print_table,
4445 op_print_tab>: Remove.
4446 * p-lang.c (pascal_language::op_print_tab): Remove.
4447 * opencl-lang.c (class opencl_language) <opcode_print_table>:
4448 Remove.
4449 * objc-lang.c (objc_op_print_tab): Remove.
4450 (class objc_language) <opcode_print_table>: Remove.
4451 * m2-lang.h (class m2_language) <opcode_print_table,
4452 op_print_tab>: Remove.
4453 * m2-lang.c (m2_language::op_print_tab): Remove.
4454 * language.h (struct language_defn) <post_parser, expression_ops,
4455 opcode_print_table>: Remove.
4456 * language.c (language_defn::expression_ops)
4457 (auto_or_unknown_language::opcode_print_table): Remove.
4458 * go-lang.h (class go_language) <opcode_print_table,
4459 op_print_tab>: Remove.
4460 * go-lang.c (go_language::op_print_tab): Remove.
4461 * f-lang.h (class f_language) <opcode_print_table>: Remove
4462 <op_print_tab>: Remove.
4463 * f-lang.c (f_language::op_print_tab): Remove.
4464 * expression.h (union exp_element): Remove.
4465 (struct expression): Remove size_t parameter from constructor.
4466 <resize>: Remove.
4467 <first_opcode>: Update.
4468 <nelts, elts>: Remove.
4469 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
4470 (evaluate_subexp_standard, print_expression, op_string)
4471 (dump_raw_expression): Don't declare.
4472 * expprint.c (print_expression, print_subexp)
4473 (print_subexp_funcall, print_subexp_standard, op_string)
4474 (dump_raw_expression, dump_subexp, dump_subexp_body)
4475 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
4476 (dump_prefix_expression): Update.
4477 * eval.c (evaluate_subexp): Remove.
4478 (evaluate_expression, evaluate_type): Update.
4479 (evaluate_subexpression_type): Remove.
4480 (fetch_subexp_value): Remove "pc" parameter. Update.
4481 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
4482 (evaluate_subexp_standard, evaluate_subexp_for_address)
4483 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
4484 (evaluate_subexp_for_cast): Remove.
4485 (parse_and_eval_type): Update.
4486 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4487 * d-lang.c (d_op_print_tab): Remove.
4488 (class d_language) <opcode_print_table>: Remove.
4489 * c-lang.h (c_op_print_tab): Don't declare.
4490 * c-lang.c (c_op_print_tab): Remove.
4491 (class c_language, class cplus_language, class asm_language, class
4492 minimal_language) <opcode_print_table>: Remove.
4493 * breakpoint.c (update_watchpoint, watchpoint_check)
4494 (watchpoint_exp_is_const, watch_command_1): Update.
4495 * ax-gdb.h (union exp_element): Don't declare.
4496 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
4497 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
4498 (gen_expr_binop_rest): Remove.
4499 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
4500 * ada-lang.c (ada_op_print_tab): Remove.
4501 (class ada_language) <post_parser, opcode_print_table>: Remove.
4502
f2a98603
TT
45032021-03-08 Tom Tromey <tom@tromey.com>
4504
4505 * go-lang.c (go_language::expression_ops): Don't declare.
4506 * go-lang.h (class go_language) <expression_ops>: Remove.
4507 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
4508 Remove.
4509 (class opencl_language) <expression_ops>: Remove.
4510 * d-lang.c (class d_language) <expression_ops>: Remove.
4511 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
4512 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
4513 (class c_language, class cplus_language, class asm_language)
4514 (class minimal_language) <expression_ops>: Remove.
4515
d3c54a1c
TT
45162021-03-08 Tom Tromey <tom@tromey.com>
4517
4518 * ada-lang.c (resolve_subexp, replace_operator_with_call)
4519 (evaluate_subexp_type, assign_aggregate)
4520 (aggregate_assign_positional, aggregate_assign_from_choices)
4521 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
4522 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
4523 (ada_operator_check, ada_forward_operator_length)
4524 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
4525 Remove.
4526 (post_parser): Update.
4527 (class ada_language) <expresssion_ops>: Remove.
4528
5871f0a3
TT
45292021-03-08 Tom Tromey <tom@tromey.com>
4530
4531 * m2-lang.h (class m2_language) <expresssion_ops,
4532 exp_descriptor_modula2>: Remove.
4533 * m2-lang.c (evaluate_subexp_modula2)
4534 (m2_language::exp_descriptor_modula2): Remove.
4535
a99be8c1
TT
45362021-03-08 Tom Tromey <tom@tromey.com>
4537
4538 * f-lang.h (class f_language) <expresssion_ops>: Remove.
4539 <exp_descriptor_tab>: Remove.
4540 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
4541 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
4542 (print_subexp_f, dump_subexp_body_f, operator_check_f)
4543 (f_language::exp_descriptor_tab, fortran_prepare_argument):
4544 Remove.
4545
aa1da9ed
TT
45462021-03-08 Tom Tromey <tom@tromey.com>
4547
4548 * rust-lang.h (class rust_language) <expression_ops,
4549 exp_descriptor_tab>: Remove.
4550 * rust-lang.c (rust_evaluate_funcall): Remove.
4551 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
4552 EVAL_SKIP.
4553 (rust_evaluate_subexp): Remove.
4554 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
4555 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
4556 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
4557
08a057e6
TT
45582021-03-08 Tom Tromey <tom@tromey.com>
4559
4560 * ada-exp.y: Create operations.
4561 (empty_stoken): Remove.
4562 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
4563 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
4564 (components): New global.
4565 (push_component, choice_component, pop_component, pop_components):
4566 New functions.
4567 (associations): New global
4568 (push_association, pop_association, pop_associations): New
4569 functions.
4570 (ada_parse): Update.
4571 (write_var_from_sym, write_int): Create operations.
4572 (write_exp_op_with_string): Remove.
4573 (write_object_renaming, write_selectors, write_ambiguous_var)
4574 (write_var_or_type, write_name_assoc): Create operations.
4575 * ada-lang.h (ada_index_type): Declare.
4576 * ada-lang.c (ada_index_type): No longer static.
4577
d308ba78
TT
45782021-03-08 Tom Tromey <tom@tromey.com>
4579
4580 * f-exp.y: Create operations.
4581 (f_language::parser): Update.
4582
f1b8ceef
TT
45832021-03-08 Tom Tromey <tom@tromey.com>
4584
4585 * m2-exp.y: Create operations.
4586 (m2_language::parser): Update.
4587
3163898e
TT
45882021-03-08 Tom Tromey <tom@tromey.com>
4589
4590 * p-exp.y: Create operations.
4591 (pascal_language::parser): Update.
4592
9412fdcc
TT
45932021-03-08 Tom Tromey <tom@tromey.com>
4594
4595 * d-exp.y: Create operations.
4596 (d_parse): Update.
4597
bb4e0574
TT
45982021-03-08 Tom Tromey <tom@tromey.com>
4599
4600 * go-exp.y: Create operations.
4601 (go_language::parser): Update.
4602
d182f279
TT
46032021-03-08 Tom Tromey <tom@tromey.com>
4604
4605 * objc-lang.c (end_msglist): Create operations.
4606 * c-exp.y: Change parser to create operations.
4607 (write_destructor_name): Remove.
4608 (c_parse): Update.
4609
c1299a23
TT
46102021-03-08 Tom Tromey <tom@tromey.com>
4611
4612 * rust-exp.y: Create operations.
4613 (rust_parser::convert_params_to_expression): Change return type.
4614 (binop_maker_ftype): New typedef.
4615 (maker_map): New global.
4616 (rust_parser::convert_ast_to_expression): Change return type.
4617 (rust_language::parser): Update.
4618 (_initialize_rust_exp): Initialize maker_map.
4619
4c5e7a93
TT
46202021-03-08 Tom Tromey <tom@tromey.com>
4621
4622 * stap-probe.c (binop_maker_ftype): New typedef.
4623 (stap_maker_map): New global.
4624 (stap_make_binop): New function.
4625 (stap_parse_register_operand): Return operation_up.
4626 (stap_parse_single_operand, stap_parse_argument_conditionally)
4627 (stap_parse_argument_1): Likewise.
4628 (stap_parse_argument): Create operations.
4629 (stap_probe::parse_arguments): Update.
4630 (_initialize_stap_probe): Initialize stap_maker_map.
4631 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
4632 type.
4633 * i386-tdep.h (i386_stap_parse_special_token): Change return
4634 type.
4635 * i386-tdep.c (i386_stap_parse_special_token_triplet)
4636 (i386_stap_parse_special_token_three_arg_disp)
4637 (i386_stap_parse_special_token): Change return type.
4638 * gdbarch.sh (stap_parse_special_token): Change return type.
4639 * gdbarch.c: Rebuild.
4640 * gdbarch.h: Rebuild.
4641 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
4642 type.
4643 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
4644 return type.
4645
482ddd69
TT
46462021-03-08 Tom Tromey <tom@tromey.com>
4647
4648 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
4649 * gdbarch.h: Rebuild.
4650 * gdbarch.c: Rebuild.
4651 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4652 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
4653 return type.
4654 (amd64_dtrace_parse_probe_argument): Update.
4655
8227d9e2
TT
46562021-03-08 Tom Tromey <tom@tromey.com>
4657
4658 * parser-defs.h (struct parser_state) <push, push_new,
4659 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
4660 wrap2>: New methods.
4661 <m_operations>: New member.
4662 * parse.c (parser_state::push_c_string)
4663 (parser_state::push_symbol, parser_state::push_dollar): New
4664 methods.
4665
4933522d
TT
46662021-03-08 Tom Tromey <tom@tromey.com>
4667
4668 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
4669 New member.
4670 (struct parser_state) <mark_struct_expression>: New method.
4671 * parse.c (parser_state::mark_struct_expression): Update assert.
4672 (parser_state::mark_struct_expression): New method.
4673 (parser_state::mark_completion_tag): Update assert.
4674 (parse_expression_for_completion): Handle expout_last_op.
4675
413403fc
TT
46762021-03-08 Tom Tromey <tom@tromey.com>
4677
4678 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
4679 now in superclass.
4680 * value.h (fetch_subexp_value): Add "op" parameter.
4681 * value.c (init_if_undefined_command): Update.
4682 * tracepoint.c (validate_actionline, encode_actions_1): Update.
4683 * stap-probe.c (stap_probe::compile_to_ax): Update.
4684 * printcmd.c (set_command): Update.
4685 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
4686 Update.
4687 * parser-defs.h (struct expr_builder) <set_operation>: New
4688 method.
4689 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
4690 * expression.h (struct expression) <first_opcode>: Update.
4691 <op>: New member.
4692 * expprint.c (dump_raw_expression, dump_prefix_expression):
4693 Update.
4694 * expop.h (class var_value_operation) <get_symbol>: New method.
4695 (class register_operation) <get_name>: New method.
4696 (class equal_operation): No longer a typedef, now a subclass.
4697 (class unop_memval_operation) <get_type>: New method.
4698 (class assign_operation) <get_lhs>: New method.
4699 (class unop_cast_operation) <get_type>: New method.
4700 * eval.c (evaluate_expression, evaluate_type)
4701 (evaluate_subexpression_type): Update.
4702 (fetch_subexp_value): Add "op" parameter.
4703 (parse_and_eval_type): Update.
4704 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4705 * breakpoint.c (update_watchpoint, watchpoint_check)
4706 (watchpoint_exp_is_const, watch_command_1): Update.
4707 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4708 Update.
4709
b0f9164c
TT
47102021-03-08 Tom Tromey <tom@tromey.com>
4711
4712 * ada-lang.c (ada_value_binop): Do not use op_string.
4713
a88c4354
TT
47142021-03-08 Tom Tromey <tom@tromey.com>
4715
4716 * expprint.c (dump_for_expression): New overload.
4717 * expop.h (check_objfile, dump_for_expression): Declare new
4718 overloads.
4719 * ada-lang.c (check_objfile): New overload.
4720 (assign_component, ada_aggregate_component::uses_objfile)
4721 (ada_aggregate_component::dump, ada_aggregate_component::assign)
4722 (ada_aggregate_component::assign_aggregate)
4723 (ada_positional_component::uses_objfile)
4724 (ada_positional_component::dump, ada_positional_component::assign)
4725 (ada_discrete_range_association::uses_objfile)
4726 (ada_discrete_range_association::dump)
4727 (ada_discrete_range_association::assign)
4728 (ada_name_association::uses_objfile, ada_name_association::dump)
4729 (ada_name_association::assign)
4730 (ada_choices_component::uses_objfile, ada_choices_component::dump)
4731 (ada_choices_component::assign)
4732 (ada_others_component::uses_objfile, ada_others_component::dump)
4733 (ada_others_component::assign, ada_assign_operation::evaluate):
4734 New methods.
4735 * ada-exp.h (ada_string_operation) <get_name>: New method.
4736 (class ada_assign_operation): New.
4737 (class ada_component): New.
4738 (ada_component_up): New typedef.
4739 (class ada_aggregate_operation, class ada_aggregate_component)
4740 (class ada_positional_component, class ada_others_component)
4741 (class ada_association): New.
4742 (ada_association_up): New typedef.
4743 (class ada_choices_component)
4744 (class ada_discrete_range_association)
4745 (class ada_name_association): New.
4746
d8a4ed8a
TT
47472021-03-08 Tom Tromey <tom@tromey.com>
4748
4749 * ada-lang.c (ada_var_value_operation::resolve)
4750 (ada_funcall_operation::resolve)
4751 (ada_ternop_slice_operation::resolve): New methods.
4752 * ada-exp.h (struct ada_resolvable): New.
4753 (class ada_var_value_operation): Derive from ada_resolvable.
4754 <get_block, resolve>: New methods.
4755 (class ada_funcall_operation): Derive from ada_resolvable.
4756 <resolve>: New method.
4757 (class ada_ternop_slice_operation): Derive from ada_resolvable.
4758 <resolve>: New method.
4759
efe3af2f
TT
47602021-03-08 Tom Tromey <tom@tromey.com>
4761
4762 * ada-lang.c (ada_funcall_operation::evaluate): New method.
4763 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4764 method.
4765 (class ada_funcall_operation): New.
4766
ebc06ad8
TT
47672021-03-08 Tom Tromey <tom@tromey.com>
4768
4769 * ada-lang.c (ada_structop_operation::evaluate): New method.
4770 * ada-exp.h (class ada_structop_operation): New.
4771
e8c33fa1
TT
47722021-03-08 Tom Tromey <tom@tromey.com>
4773
4774 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4775 * ada-exp.h (class ada_unop_ind_operation): New.
4776
065ec826
TT
47772021-03-08 Tom Tromey <tom@tromey.com>
4778
4779 * ada-lang.c (ada_binop_exp): No longer static.
4780 * ada-exp.h (ada_binop_exp_operation): New typedef.
4781
9e99f48f
TT
47822021-03-08 Tom Tromey <tom@tromey.com>
4783
4784 * ada-lang.c (ada_val_atr): No longer static.
4785 (ada_atr_val_operation::evaluate): New method.
4786 * ada-exp.h (class ada_atr_val_operation): New.
4787
7631cf6c
TT
47882021-03-08 Tom Tromey <tom@tromey.com>
4789
4790 * ada-lang.c (ada_pos_atr): No longer static.
4791 * ada-exp.h (ada_pos_operation): New typedef.
4792
7992accc
TT
47932021-03-08 Tom Tromey <tom@tromey.com>
4794
4795 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4796 parameters.
4797 (ada_evaluate_subexp): Use it.
4798
6ad3b8bf
TT
47992021-03-08 Tom Tromey <tom@tromey.com>
4800
4801 * ada-lang.c (ada_binop_minmax): No longer static.
4802 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4803 New typedefs.
4804
3f4a0053
TT
48052021-03-08 Tom Tromey <tom@tromey.com>
4806
4807 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4808 New method.
4809 * ada-exp.h (class ada_var_msym_value_operation): New.
4810
99a3b1e7
TT
48112021-03-08 Tom Tromey <tom@tromey.com>
4812
4813 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4814 (ada_var_value_operation::evaluate): New methods.
4815 * ada-exp.h (class ada_var_value_operation): New.
4816
60fa02ca
TT
48172021-03-08 Tom Tromey <tom@tromey.com>
4818
4819 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4820 * ada-exp.h (class ada_unop_atr_operation): New.
4821
82c3886e
TT
48222021-03-08 Tom Tromey <tom@tromey.com>
4823
4824 * ada-lang.c (ada_binop_in_bounds): No longer static.
4825 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4826
1b1ebfab
TT
48272021-03-08 Tom Tromey <tom@tromey.com>
4828
4829 * ada-lang.c (ada_ternop_slice): No longer static.
4830 * ada-exp.h (class ada_ternop_slice_operation): New.
4831
039e4b76
TT
48322021-03-08 Tom Tromey <tom@tromey.com>
4833
4834 * ada-exp.h (ada_bitwise_operation): New template class.
4835 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4836 (ada_bitwise_xor_operation): New typedefs.
4837
6e8fb7b7
TT
48382021-03-08 Tom Tromey <tom@tromey.com>
4839
4840 * ada-lang.c (ada_equal_binop): No longer static.
4841 * ada-exp.h (class ada_binop_equal_operation): New.
4842
d9e7db06
TT
48432021-03-08 Tom Tromey <tom@tromey.com>
4844
4845 * ada-lang.c (ada_mult_binop): No longer static.
4846 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4847 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4848
73796c73
TT
48492021-03-08 Tom Tromey <tom@tromey.com>
4850
4851 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4852 * ada-exp.h (class ada_binop_addsub_operation): New.
4853
cd9a3148
TT
48542021-03-08 Tom Tromey <tom@tromey.com>
4855
4856 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4857 (ada_resolve_variable): Declare.
4858 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4859 (ada_resolve_variable): New functions.
4860 (resolve_subexp): Update.
4861
cf12b17f
TT
48622021-03-08 Tom Tromey <tom@tromey.com>
4863
4864 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4865 method.
4866 * c-exp.h (class opencl_ternop_cond_operation): New.
4867
944fd3b8
TT
48682021-03-08 Tom Tromey <tom@tromey.com>
4869
4870 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4871 method.
4872 * c-exp.h (class opencl_logical_binop_operation): New.
4873
33b79214
TT
48742021-03-08 Tom Tromey <tom@tromey.com>
4875
4876 * opencl-lang.c (opencl_structop_operation::evaluate): New
4877 method.
4878 * c-exp.h (class opencl_structop_operation): New.
4879
2492ba36
TT
48802021-03-08 Tom Tromey <tom@tromey.com>
4881
4882 * opencl-lang.c (opencl_logical_not): No longer static. Change
4883 parameters.
4884 (evaluate_subexp_opencl): Update.
4885 * c-exp.h (opencl_notequal_operation): New typedef.
4886
a88c3c8d
TT
48872021-03-08 Tom Tromey <tom@tromey.com>
4888
4889 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4890 static. Change parameters.
4891 (eval_opencl_assign): No longer static. Add "op" parameter.
4892 (evaluate_subexp_opencl): Update.
4893 * c-exp.h (opencl_binop_operation): New template class.
4894 (opencl_assign_operation, opencl_equal_operation)
4895 (opencl_notequal_operation, opencl_less_operation)
4896 (opencl_gtr_operation, opencl_geq_operation)
4897 (opencl_leq_operation): New typedefs.
4898
e9677704
TT
48992021-03-08 Tom Tromey <tom@tromey.com>
4900
4901 * opencl-lang.c (opencl_value_cast): No longer static.
4902 * c-exp.h (opencl_cast_type_operation): New typedef.
4903
f403a4e4
TT
49042021-03-08 Tom Tromey <tom@tromey.com>
4905
4906 * f-exp.h (eval_op_f_allocated): Declare.
4907 (fortran_allocated_operation): New typedef.
4908 * f-lang.c (eval_op_f_allocated): No longer static.
4909
eb4c9271
TT
49102021-03-08 Tom Tromey <tom@tromey.com>
4911
4912 * f-lang.c (eval_op_f_associated): New functions.
4913 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4914 typedefs.
4915
58a76c72
TT
49162021-03-08 Tom Tromey <tom@tromey.com>
4917
4918 * f-lang.c (fortran_bound_1arg::evaluate)
4919 (fortran_bound_2arg::evaluate): New methods.
4920 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4921 New.
4922
2f98abe1
TT
49232021-03-08 Tom Tromey <tom@tromey.com>
4924
4925 * expop.h (class unop_addr_operation) <get_expression>: New
4926 method.
4927 * f-lang.c (fortran_undetermined::value_subarray)
4928 (fortran_undetermined::evaluate): New methods.
4929 (fortran_prepare_argument): New overload.
4930 * f-exp.h (class fortran_range_operation)
4931 (class fortran_undetermined): New classes.
4932
638fd74a
TT
49332021-03-08 Tom Tromey <tom@tromey.com>
4934
4935 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4936 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4937 method.
4938
a00b7254
TT
49392021-03-08 Tom Tromey <tom@tromey.com>
4940
4941 * expression.h (class operation) <evaluate_funcall>: New methods.
4942 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4943 (class var_value_operation) <evaluate_funcall>: New method.
4944 (class structop_base_operation) <evaluate_funcall>: New method.
4945 (class var_msym_value_operation) <evaluate_funcall>: New method.
4946 (class structop_member_base): New class.
4947 (class structop_member_operation): Derive from
4948 structop_member_base.
4949 (class structop_mptr_operation): Derive from
4950 structop_member_base.
4951 (class funcall_operation): New class.
4952 * eval.c (operation::evaluate_funcall)
4953 (var_value_operation::evaluate_funcall)
4954 (scope_operation::evaluate_funcall)
4955 (structop_member_base::evaluate_funcall)
4956 (structop_base_operation::evaluate_funcall): New methods.
4957
1c02eb30
TT
49582021-03-08 Tom Tromey <tom@tromey.com>
4959
4960 * expop.h (class array_operation): New.
4961 * eval.c (array_operation::evaluate_struct_tuple)
4962 (array_operation::evaluate): New methods.
4963
e4479080
TT
49642021-03-08 Tom Tromey <tom@tromey.com>
4965
4966 * expop.h (class adl_func_operation): New.
4967 * eval.c (adl_func_operation::evaluate): New method.
4968
95d49dfb
TT
49692021-03-08 Tom Tromey <tom@tromey.com>
4970
4971 * ada-lang.c (ada_unop_in_range): No longer static.
4972 * ada-exp.h (class ada_unop_range_operation): New.
4973
7c15d377
TT
49742021-03-08 Tom Tromey <tom@tromey.com>
4975
4976 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4977 No longer static.
4978 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4979 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4980
5019124b
TT
49812021-03-08 Tom Tromey <tom@tromey.com>
4982
4983 * expop.h (class logical_and_operation)
4984 (class logical_or_operation): New.
4985 * eval.c (logical_and_operation::evaluate)
4986 (logical_or_operation::evaluate): New methods.
4987 * ax-gdb.c (logical_and_operation::do_generate_ax)
4988 (logical_or_operation::do_generate_ax): New methods.
4989
2bc9b40c
TT
49902021-03-08 Tom Tromey <tom@tromey.com>
4991
4992 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4993 static.
4994 * m2-exp.h: New file.
4995
5947d337
TT
49962021-03-08 Tom Tromey <tom@tromey.com>
4997
4998 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4999 * rust-exp.h (class rust_aggregate_operation): New.
5000
e4407a20
TT
50012021-03-08 Tom Tromey <tom@tromey.com>
5002
5003 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
5004 No longer static.
5005 * rust-exp.h (class rust_struct_anon): New.
5006 (class rust_structop): New.
5007
9db6b6dd
TT
50082021-03-08 Tom Tromey <tom@tromey.com>
5009
5010 * rust-lang.c (rust_range): No longer static.
5011 * rust-exp.h (class rust_range_operation): New.
5012
6ce1ad67
TT
50132021-03-08 Tom Tromey <tom@tromey.com>
5014
5015 * rust-lang.c (rust_subscript): No longer static.
5016 * rust-exp.h (class rust_subscript_operation): New.
5017
11dd3dce
TT
50182021-03-08 Tom Tromey <tom@tromey.com>
5019
5020 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
5021 parameter.
5022 (rust_evaluate_subexp): Update.
5023 * rust-exp.h (class rust_unop_ind_operation): New.
5024
6fab4359
TT
50252021-03-08 Tom Tromey <tom@tromey.com>
5026
5027 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
5028 longer static. Add "opcode" parameter.
5029 (rust_evaluate_subexp): Update.
5030 * rust-exp.h: New file.
5031
9dcd3e29
TT
50322021-03-08 Tom Tromey <tom@tromey.com>
5033
5034 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
5035 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
5036 (eval_op_f_kind): No longer static. Add "opcode" parameter.
5037 (evaluate_subexp_f): Update.
5038 * f-exp.h: New file.
5039
fc715eb2
TT
50402021-03-08 Tom Tromey <tom@tromey.com>
5041
5042 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
5043 * ada-exp.h (class ada_ternop_range_operation): New.
5044
cc6bd32e
TT
50452021-03-08 Tom Tromey <tom@tromey.com>
5046
5047 * ada-lang.c (ada_qual_operation::evaluate): New method.
5048 * ada-exp.h (class ada_qual_operation): New.
5049
42fecb61
TT
50502021-03-08 Tom Tromey <tom@tromey.com>
5051
5052 * ada-lang.c (ada_string_operation::evaluate): New method.
5053 * ada-exp.h (class ada_string_operation): New.
5054
03070ee9
TT
50552021-03-08 Tom Tromey <tom@tromey.com>
5056
5057 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
5058 * ada-exp.h: New file.
5059
821e72d7
TT
50602021-03-08 Tom Tromey <tom@tromey.com>
5061
5062 * expop.h (class multi_subscript_operation): New.
5063 * eval.c (multi_subscript_operation::evaluate): New method.
5064
085734dd
TT
50652021-03-08 Tom Tromey <tom@tromey.com>
5066
5067 * eval.c (objc_msgcall_operation::evaluate): New method.
5068 * c-exp.h (class objc_msgcall_operation): New.
5069
e82a5afc
TT
50702021-03-08 Tom Tromey <tom@tromey.com>
5071
5072 * expop.h (class var_value_operation): New.
5073 * eval.c (var_value_operation::evaluate)
5074 (var_value_operation::evaluate_for_address)
5075 (var_value_operation::evaluate_with_coercion)
5076 (var_value_operation::evaluate_for_sizeof)
5077 (var_value_operation::evaluate_for_cast): New methods.
5078 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
5079
d9ad79d8
TT
50802021-03-08 Tom Tromey <tom@tromey.com>
5081
5082 * expop.h (cxx_cast_ftype): New typedef.
5083 (cxx_cast_operation): New template.
5084 (dynamic_cast_operation, reinterpret_cast_operation): New
5085 typedefs.
5086
292382f4
TT
50872021-03-08 Tom Tromey <tom@tromey.com>
5088
5089 * expop.h (class unop_cast_type_operation): New.
5090 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
5091 method.
5092
165a813a
TT
50932021-03-08 Tom Tromey <tom@tromey.com>
5094
5095 * expop.h (class unop_cast_operation): New.
5096 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
5097
e5946e16
TT
50982021-03-08 Tom Tromey <tom@tromey.com>
5099
5100 * expop.h (class assign_modify_operation): New.
5101 * eval.c (eval_binop_assign_modify): No longer static.
5102 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
5103
40786782
TT
51042021-03-08 Tom Tromey <tom@tromey.com>
5105
5106 * expop.h (class assign_operation): New.
5107 * ax-gdb.c (assign_operation::do_generate_ax): New method.
5108
44b675c8
TT
51092021-03-08 Tom Tromey <tom@tromey.com>
5110
5111 * expop.h (class type_instance_operation): New.
5112 * eval.c (type_instance_operation::evaluate): New method.
5113
f6b42326
TT
51142021-03-08 Tom Tromey <tom@tromey.com>
5115
5116 * expop.h (class op_this_operation): New.
5117 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
5118
cbc18219
TT
51192021-03-08 Tom Tromey <tom@tromey.com>
5120
5121 * expop.h (class unop_memval_operation)
5122 (class unop_memval_type_operation): New.
5123 * eval.c (eval_op_memval): No longer static.
5124 (unop_memval_operation::evaluate_for_address)
5125 (unop_memval_type_operation::evaluate_for_address)
5126 (unop_memval_operation::evaluate_for_sizeof)
5127 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
5128 * ax-gdb.c (unop_memval_operation::do_generate_ax)
5129 (unop_memval_type_operation::do_generate_ax): New methods.
5130
ae4bb61e
TT
51312021-03-08 Tom Tromey <tom@tromey.com>
5132
5133 * expop.h (class unop_alignof_operation): New.
5134 * eval.c (eval_op_alignof): No longer static.
5135
85d23bda
TT
51362021-03-08 Tom Tromey <tom@tromey.com>
5137
5138 * expop.h (class unop_sizeof_operation): New.
5139 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
5140
14aff815
TT
51412021-03-08 Tom Tromey <tom@tromey.com>
5142
5143 * expop.h (class unop_addr_operation): New.
5144 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
5145
929f3aa7
TT
51462021-03-08 Tom Tromey <tom@tromey.com>
5147
5148 * expop.h (class typeid_operation): New.
5149
0af8829e
TT
51502021-03-08 Tom Tromey <tom@tromey.com>
5151
5152 * expop.h (class decltype_operation): New.
5153
4efc574c
TT
51542021-03-08 Tom Tromey <tom@tromey.com>
5155
5156 * expop.h (class typeof_operation): New.
5157
5b5f5140
TT
51582021-03-08 Tom Tromey <tom@tromey.com>
5159
5160 * expop.h (class type_operation): New.
5161 * eval.c (eval_op_type): No longer static.
5162
876469ff
TT
51632021-03-08 Tom Tromey <tom@tromey.com>
5164
5165 * expop.h (class unop_ind_base_operation)
5166 (class unop_ind_operation): New.
5167 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
5168 (unop_ind_base_operation::evaluate_for_address)
5169 (unop_ind_base_operation::evaluate_for_sizeof): New method.
5170 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
5171
6d89e296
TT
51722021-03-08 Tom Tromey <tom@tromey.com>
5173
5174 * expop.h (unop_incr_operation): New template.
5175 (preinc_operation, predec_operation, postinc_operation)
5176 (postdec_operation): New typedefs.
5177 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
5178 (eval_op_postdec): No longer static.
5179
9307d17b
TT
51802021-03-08 Tom Tromey <tom@tromey.com>
5181
5182 * expop.h (unary_ftype): New typedef.
5183 (unop_operation, usual_ax_binop_operation): New templates.
5184 (unary_plus_operation, unary_neg_operation)
5185 (unary_complement_operation, unary_logical_not_operation): New
5186 typedefs.
5187 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
5188 (eval_op_lognot): No longer static.
5189 * ax-gdb.c (gen_expr_unop): New function.
5190
ae64ba58
TT
51912021-03-08 Tom Tromey <tom@tromey.com>
5192
5193 * ax-gdb.c (comma_operation::do_generate_ax): New method.
5194
d4eff4c1
TT
51952021-03-08 Tom Tromey <tom@tromey.com>
5196
5197 * expop.h (class repeat_operation): New.
5198 * eval.c (eval_op_repeat): No longer static. Remove "op"
5199 parameter.
5200 (evaluate_subexp_standard): Update.
5201 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
5202
46916f2b
TT
52032021-03-08 Tom Tromey <tom@tromey.com>
5204
5205 * expop.h (class comparison_operation): New.
5206 (equal_operation, notequal_operation, less_operation)
5207 (gtr_operation, geq_operation, leq_operation): New typedefs.
5208 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
5209 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
5210
224d6424
TT
52112021-03-08 Tom Tromey <tom@tromey.com>
5212
5213 * expop.h (class subscript_operation): New.
5214 * eval.c (eval_op_subscript): No longer static.
5215
373907ff
TT
52162021-03-08 Tom Tromey <tom@tromey.com>
5217
5218 * expop.h (class binop_operation, class usual_ax_binop_operation):
5219 New.
5220 (exp_operation, intdiv_operation, mod_operation, mul_operation)
5221 (div_operation, rem_operation, lsh_operation, rsh_operation)
5222 (bitwise_and_operation, bitwise_ior_operation)
5223 (bitwise_xor_operation): New typedefs.
5224 * eval.c (eval_op_binary): No longer static.
5225
5133d78b
TT
52262021-03-08 Tom Tromey <tom@tromey.com>
5227
5228 * expop.h (class sub_operation): New.
5229 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
5230 (evaluate_subexp_standard): Update.
5231
a94323b6
TT
52322021-03-08 Tom Tromey <tom@tromey.com>
5233
5234 * expop.h (class add_operation): New.
5235 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
5236 (evaluate_subexp_standard): Update.
5237
e51e26a0
TT
52382021-03-08 Tom Tromey <tom@tromey.com>
5239
5240 * expop.h (class concat_operation): New.
5241 * eval.c (eval_op_concat): No longer static. Remove "op"
5242 parameter.
5243 (evaluate_subexp_standard): Update.
5244
07f724a8
TT
52452021-03-08 Tom Tromey <tom@tromey.com>
5246
5247 * expop.h (class structop_member_operation)
5248 (class structop_mptr_operation): New.
5249 * eval.c (eval_op_member): No longer static.
5250
ab0609be
TT
52512021-03-08 Tom Tromey <tom@tromey.com>
5252
5253 * expop.h (class structop_ptr_operation): New.
5254 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
5255 parameter.
5256
808b22cf
TT
52572021-03-08 Tom Tromey <tom@tromey.com>
5258
5259 * expop.h (class structop_base_operation)
5260 (class structop_operation): New.
5261 * eval.c (eval_op_structop_struct): No longer static.
5262
8cfd3e95
TT
52632021-03-08 Tom Tromey <tom@tromey.com>
5264
5265 * expop.h (class complex_operation): New.
5266
09db3700
TT
52672021-03-08 Tom Tromey <tom@tromey.com>
5268
5269 * eval.c (eval_op_objc_selector): No longer static.
5270 * c-exp.h (class objc_selector_operation): New.
5271
06dc61b9
TT
52722021-03-08 Tom Tromey <tom@tromey.com>
5273
5274 * eval.c: Include c-exp.h.
5275 * c-exp.h (class objc_nsstring_operation): New.
5276
72d0a711
TT
52772021-03-08 Tom Tromey <tom@tromey.com>
5278
5279 * c-lang.c (c_string_operation::evaluate): New method.
5280 * c-exp.h: New file.
5281
9186293f
TT
52822021-03-08 Tom Tromey <tom@tromey.com>
5283
5284 * expop.h (class ternop_cond_operation): New.
5285 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
5286
1594e0bb
TT
52872021-03-08 Tom Tromey <tom@tromey.com>
5288
5289 * expop.h (class ternop_slice_operation): New.
5290 * eval.c (eval_op_ternop): No longer static.
5291
b50db09f
TT
52922021-03-08 Tom Tromey <tom@tromey.com>
5293
5294 * expop.h (class string_operation): New.
5295 * eval.c (eval_op_string): No longer static.
5296
e6e01e16
TT
52972021-03-08 Tom Tromey <tom@tromey.com>
5298
5299 * expop.h (class internalvar_operation): New.
5300 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
5301
e6985c5e
TT
53022021-03-08 Tom Tromey <tom@tromey.com>
5303
5304 * expop.h (class bool_operation): New.
5305
55bdbff8
TT
53062021-03-08 Tom Tromey <tom@tromey.com>
5307
5308 * expop.h (class register_operation): New.
5309 * eval.c (eval_op_register): No longer static.
5310 * ax-gdb.c (register_operation::do_generate_ax): New method.
5311
247d935b
TT
53122021-03-08 Tom Tromey <tom@tromey.com>
5313
5314 * expop.h (class last_operation): New.
5315
17679395
TT
53162021-03-08 Tom Tromey <tom@tromey.com>
5317
5318 * expop.h (class func_static_var_operation): New.
5319 * eval.c (eval_op_func_static_var): No longer static.
5320
b5cc3923
TT
53212021-03-08 Tom Tromey <tom@tromey.com>
5322
5323 * expop.h (class var_entry_value_operation): New.
5324 * eval.c (eval_op_var_entry_value): No longer static.
5325
0c8effa3
TT
53262021-03-08 Tom Tromey <tom@tromey.com>
5327
5328 * expression.h (class operation) <set_outermost>: New method.
5329 * expop.h (class var_msym_value_operation): New.
5330 * eval.c (eval_op_var_msym_value): No longer static.
5331 (var_msym_value_operation::evaluate_for_address)
5332 (var_msym_value_operation::evaluate_for_sizeof)
5333 (var_msym_value_operation::evaluate_for_cast): New methods.
5334 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
5335 method.
5336
d336c29e
TT
53372021-03-08 Tom Tromey <tom@tromey.com>
5338
5339 * expop.h (class long_const_operation): New.
5340 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
5341
d5ab122c
TT
53422021-03-08 Tom Tromey <tom@tromey.com>
5343
5344 * expop.h (class scope_operation): New.
5345 * eval.c (eval_op_scope): No longer static.
5346 (scope_operation::evaluate_for_address): New method.
5347 * ax-gdb.c (scope_operation::do_generate_ax): New method.
5348
cae26a0c
TT
53492021-03-08 Tom Tromey <tom@tromey.com>
5350
5351 * expprint.c (float_const_operation::dump): New method.
5352 * expop.h (float_data): New typedef.
5353 (class float_const_operation): New.
5354
75f9892d
TT
53552021-03-08 Tom Tromey <tom@tromey.com>
5356
5357 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
5358 * ax-gdb.c (gen_expr_binop): New function.
5359 (gen_expr_structop): Likewise.
5360
de401988
TT
53612021-03-08 Tom Tromey <tom@tromey.com>
5362
5363 * expprint.c (expr::dump_for_expression): New functions.
5364 * expop.h (dump_for_expression): New overloads.
5365 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
5366 Update.
5367
e2803273
TT
53682021-03-08 Tom Tromey <tom@tromey.com>
5369
5370 * expression.h (expr::operation): New class.
5371 (expr::make_operation): New function.
5372 (expr::operation_up): New typedef.
5373 * expop.h: New file.
5374 * eval.c (operation::evaluate_for_cast)
5375 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
5376 New methods.
5377 * ax-gdb.c (operation::generate_ax): New method.
5378
e18c58f2
TT
53792021-03-08 Tom Tromey <tom@tromey.com>
5380
5381 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
5382 (gen_expr_binop_rest): New overload.
5383
c0d7ed8c
TT
53842021-03-08 Tom Tromey <tom@tromey.com>
5385
5386 * eval.c (eval_multi_subscript): New function.
5387 (evaluate_subexp_standard): Use it.
5388
dd5fd283
TT
53892021-03-08 Tom Tromey <tom@tromey.com>
5390
5391 * ada-lang.c (ada_binop_exp): New function.
5392 (ada_evaluate_subexp): Use it.
5393
3848abd6
TT
53942021-03-08 Tom Tromey <tom@tromey.com>
5395
5396 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
5397 parameters.
5398 (ada_evaluate_subexp): Use it.
5399
38dc70cf
TT
54002021-03-08 Tom Tromey <tom@tromey.com>
5401
5402 * ada-lang.c (ada_binop_minmax): New function.
5403 (ada_evaluate_subexp): Use it.
5404
b84564fc
TT
54052021-03-08 Tom Tromey <tom@tromey.com>
5406
5407 * ada-lang.c (ada_unop_atr): New function.
5408 (ada_evaluate_subexp): Use it.
5409
b467efaa
TT
54102021-03-08 Tom Tromey <tom@tromey.com>
5411
5412 * ada-lang.c (ada_binop_in_bounds): New function.
5413 (ada_evaluate_subexp): Use it.
5414
5ce19db8
TT
54152021-03-08 Tom Tromey <tom@tromey.com>
5416
5417 * ada-lang.c (ada_ternop_slice): New function.
5418 (ada_evaluate_subexp): Use it.
5419
214b13ac
TT
54202021-03-08 Tom Tromey <tom@tromey.com>
5421
5422 * ada-lang.c (ada_equal_binop): New function.
5423 (ada_evaluate_subexp): Use it.
5424
faa1dfd7
TT
54252021-03-08 Tom Tromey <tom@tromey.com>
5426
5427 * ada-lang.c (ada_mult_binop): New function.
5428 (ada_evaluate_subexp): Use it.
5429
d05e24e6
TT
54302021-03-08 Tom Tromey <tom@tromey.com>
5431
5432 * ada-lang.c (ada_abs): New function.
5433 (ada_evaluate_subexp): Use it.
5434
68c75735
TT
54352021-03-08 Tom Tromey <tom@tromey.com>
5436
5437 * ada-lang.c (ada_atr_size): New function.
5438 (ada_evaluate_subexp): Use it.
5439
020dbabe
TT
54402021-03-08 Tom Tromey <tom@tromey.com>
5441
5442 * ada-lang.c (ada_atr_tag): New function.
5443 (ada_evaluate_subexp): Use it.
5444
7efc87ff
TT
54452021-03-08 Tom Tromey <tom@tromey.com>
5446
5447 * ada-lang.c (ada_unop_in_range): New function.
5448 (ada_evaluate_subexp): Use it.
5449
82390ab8
TT
54502021-03-08 Tom Tromey <tom@tromey.com>
5451
5452 * ada-lang.c (ada_unop_neg): New function.
5453 (ada_evaluate_subexp): Use it.
5454
62d4bd94
TT
54552021-03-08 Tom Tromey <tom@tromey.com>
5456
5457 * ada-lang.c (eval_ternop_in_range): New function.
5458 (ada_evaluate_subexp): Use it.
5459
3634f669
TT
54602021-03-08 Tom Tromey <tom@tromey.com>
5461
5462 * opencl-lang.c (eval_opencl_assign): New function.
5463 (evaluate_subexp_opencl): Use it.
5464
5e80600e
TT
54652021-03-08 Tom Tromey <tom@tromey.com>
5466
5467 * eval.c (eval_op_objc_msgcall): New function.
5468 (evaluate_subexp_standard): Use it.
5469
fb5ba2ab
TT
54702021-03-08 Tom Tromey <tom@tromey.com>
5471
5472 * eval.c (eval_binop_assign_modify): New function.
5473 (evaluate_subexp_standard): Use it.
5474
a49881f7
TT
54752021-03-08 Tom Tromey <tom@tromey.com>
5476
5477 * m2-lang.c (eval_op_m2_subscript): New function.
5478 (evaluate_subexp_modula2): Use it.
5479
41bdced5
TT
54802021-03-08 Tom Tromey <tom@tromey.com>
5481
5482 * m2-lang.c (eval_op_m2_high): New function.
5483 (evaluate_subexp_modula2): Use it.
5484
13ea014a
TT
54852021-03-08 Tom Tromey <tom@tromey.com>
5486
5487 * eval.c (evaluate_subexp_for_address_base): New function.
5488 (evaluate_subexp_for_address): Use it.
5489 (evaluate_subexp_for_sizeof_base): New function.
5490 (evaluate_subexp_for_sizeof): Use it.
5491
1fa41fc7
TT
54922021-03-08 Tom Tromey <tom@tromey.com>
5493
5494 * rust-lang.c (eval_op_rust_structop): New function.
5495 (rust_evaluate_subexp): Use it.
5496
575cae23
TT
54972021-03-08 Tom Tromey <tom@tromey.com>
5498
5499 * rust-lang.c (eval_op_rust_struct_anon): New function.
5500 (rust_evaluate_subexp): Use it.
5501
05104233
TT
55022021-03-08 Tom Tromey <tom@tromey.com>
5503
5504 * rust-lang.c (eval_op_rust_array): New function.
5505 (rust_evaluate_subexp): Use it.
5506
6fa9831f
TT
55072021-03-08 Tom Tromey <tom@tromey.com>
5508
5509 * rust-lang.c (eval_op_rust_complement): New function.
5510 (rust_evaluate_subexp): Use it.
5511
d123f9e4
TT
55122021-03-08 Tom Tromey <tom@tromey.com>
5513
5514 * rust-lang.c (eval_op_rust_ind): New function.
5515 (rust_evaluate_subexp): Use it.
5516
984af2cb
TT
55172021-03-08 Tom Tromey <tom@tromey.com>
5518
5519 * rust-lang.c (rust_subscript): Change parameters.
5520 (rust_evaluate_subexp): Update.
5521
d148f803
TT
55222021-03-08 Tom Tromey <tom@tromey.com>
5523
5524 * rust-lang.c (rust_range): Change parameters.
5525 (rust_evaluate_subexp): Update.
5526
9cbd1c20
TT
55272021-03-08 Tom Tromey <tom@tromey.com>
5528
5529 * f-lang.c (eval_op_f_allocated): New function.
5530 (evaluate_subexp_f): Use it.
5531
3c18c49c
TT
55322021-03-08 Tom Tromey <tom@tromey.com>
5533
5534 * f-lang.c (fortran_require_array): New function.
5535 (evaluate_subexp_f): Use it.
5536
216f6fcb
TT
55372021-03-08 Tom Tromey <tom@tromey.com>
5538
5539 * f-lang.c (eval_op_f_kind): New function.
5540 (evaluate_subexp_f): Use it.
5541
00f2db6f
TT
55422021-03-08 Tom Tromey <tom@tromey.com>
5543
5544 * f-lang.c (eval_op_f_cmplx): New function.
5545 (evaluate_subexp_f): Use it.
5546
93b2b5fa
TT
55472021-03-08 Tom Tromey <tom@tromey.com>
5548
5549 * f-lang.c (eval_op_f_modulo): New function.
5550 (evaluate_subexp_f): Use it.
5551
9f1a1f3c
TT
55522021-03-08 Tom Tromey <tom@tromey.com>
5553
5554 * f-lang.c (eval_op_f_floor): New function.
5555 (evaluate_subexp_f): Use it.
5556
3dc41f3c
TT
55572021-03-08 Tom Tromey <tom@tromey.com>
5558
5559 * f-lang.c (eval_op_f_ceil): New function.
5560 (evaluate_subexp_f): Use it.
5561
e08109f2
TT
55622021-03-08 Tom Tromey <tom@tromey.com>
5563
5564 * f-lang.c (eval_op_f_mod): New function.
5565 (evaluate_subexp_f): Use it.
5566
cc05c68e
TT
55672021-03-08 Tom Tromey <tom@tromey.com>
5568
5569 * f-lang.c (eval_op_f_abs): New function.
5570 (evaluate_subexp_f): Use it.
5571
aec95807
TT
55722021-03-08 Tom Tromey <tom@tromey.com>
5573
5574 * eval.c (eval_op_type): New function.
5575 (evaluate_subexp_standard): Use it.
5576
a220ead5
TT
55772021-03-08 Tom Tromey <tom@tromey.com>
5578
5579 * eval.c (eval_op_postdec): New function.
5580 (evaluate_subexp_standard): Use it.
5581
abffe116
TT
55822021-03-08 Tom Tromey <tom@tromey.com>
5583
5584 * eval.c (eval_op_postinc): New function.
5585 (evaluate_subexp_standard): Use it.
5586
9e1361b7
TT
55872021-03-08 Tom Tromey <tom@tromey.com>
5588
5589 * eval.c (eval_op_predec): New file.
5590 (evaluate_subexp_standard): Use it.
5591
00f50884
TT
55922021-03-08 Tom Tromey <tom@tromey.com>
5593
5594 * eval.c (eval_op_preinc): New function.
5595 (evaluate_subexp_standard): Use it.
5596
3aef2a07
TT
55972021-03-08 Tom Tromey <tom@tromey.com>
5598
5599 * eval.c (eval_op_memval): New function.
5600 (evaluate_subexp_standard): Use it.
5601
acee9468
TT
56022021-03-08 Tom Tromey <tom@tromey.com>
5603
5604 * eval.c (eval_op_alignof): New function.
5605 (evaluate_subexp_standard): Use it.
5606
786f70ee
TT
56072021-03-08 Tom Tromey <tom@tromey.com>
5608
5609 * eval.c (eval_op_ind): New function.
5610 (evaluate_subexp_standard): Use it.
5611
24338fb9
TT
56122021-03-08 Tom Tromey <tom@tromey.com>
5613
5614 * eval.c (eval_op_lognot): New function.
5615 (evaluate_subexp_standard): Use it.
5616
1f09ec81
TT
56172021-03-08 Tom Tromey <tom@tromey.com>
5618
5619 * eval.c (eval_op_complement): New function.
5620 (evaluate_subexp_standard): Use it.
5621
606d105f
TT
56222021-03-08 Tom Tromey <tom@tromey.com>
5623
5624 * eval.c (eval_op_neg): New function.
5625 (evaluate_subexp_standard): Use it.
5626
39f288be
TT
56272021-03-08 Tom Tromey <tom@tromey.com>
5628
5629 * eval.c (eval_op_plus): New function.
5630 (evaluate_subexp_standard): Use it.
5631
eed70b1c
TT
56322021-03-08 Tom Tromey <tom@tromey.com>
5633
5634 * eval.c (eval_op_repeat): New function.
5635 (evaluate_subexp_standard): Use it.
5636
60cdd487
TT
56372021-03-08 Tom Tromey <tom@tromey.com>
5638
5639 * eval.c (eval_op_leq): New function.
5640 (evaluate_subexp_standard): Use it.
5641
96e3efd9
TT
56422021-03-08 Tom Tromey <tom@tromey.com>
5643
5644 * eval.c (eval_op_geq): New function.
5645 (evaluate_subexp_standard): Use it.
5646
1f78d732
TT
56472021-03-08 Tom Tromey <tom@tromey.com>
5648
5649 * eval.c (eval_op_gtr): New function.
5650 (evaluate_subexp_standard): Use it.
5651
6cad1349
TT
56522021-03-08 Tom Tromey <tom@tromey.com>
5653
5654 * eval.c (eval_op_less): New function.
5655 (evaluate_subexp_standard): Use it.
5656
1fcb3559
TT
56572021-03-08 Tom Tromey <tom@tromey.com>
5658
5659 * eval.c (eval_op_notequal): New function.
5660 (evaluate_subexp_standard): Use it.
5661
0cc96de8
TT
56622021-03-08 Tom Tromey <tom@tromey.com>
5663
5664 * eval.c (eval_op_equal): New function.
5665 (evaluate_subexp_standard): Use it.
5666
288d26bc
TT
56672021-03-08 Tom Tromey <tom@tromey.com>
5668
5669 * eval.c (eval_op_subscript): New function.
5670 (evaluate_subexp_standard): Use it.
5671
7cdcdd02
TT
56722021-03-08 Tom Tromey <tom@tromey.com>
5673
5674 * eval.c (eval_op_binary): New function.
5675 (evaluate_subexp_standard): Use it.
5676
d9790e22
TT
56772021-03-08 Tom Tromey <tom@tromey.com>
5678
5679 * eval.c (eval_op_sub): New function.
5680 (evaluate_subexp_standard): Use it.
5681
aedaf9ac
TT
56822021-03-08 Tom Tromey <tom@tromey.com>
5683
5684 * eval.c (eval_op_add): New function.
5685 (evaluate_subexp_standard): Use it.
5686
b7a96ed2
TT
56872021-03-08 Tom Tromey <tom@tromey.com>
5688
5689 * eval.c (eval_op_member): New function.
5690 (evaluate_subexp_standard): Use it.
5691
fb461aa3
TT
56922021-03-08 Tom Tromey <tom@tromey.com>
5693
5694 * eval.c (eval_op_structop_ptr): New function.
5695 (evaluate_subexp_standard): Use it.
5696
3e96c4fc
TT
56972021-03-08 Tom Tromey <tom@tromey.com>
5698
5699 * eval.c (eval_op_structop_struct): New function.
5700 (evaluate_subexp_standard): Use it.
5701
f960a617
TT
57022021-03-08 Tom Tromey <tom@tromey.com>
5703
5704 * eval.c (eval_op_ternop): New function.
5705 (evaluate_subexp_standard): Use it.
5706
5c2f201e
TT
57072021-03-08 Tom Tromey <tom@tromey.com>
5708
5709 * eval.c (eval_op_concat): New function.
5710 (evaluate_subexp_standard): Use it.
5711
f871bae1
TT
57122021-03-08 Tom Tromey <tom@tromey.com>
5713
5714 * eval.c (eval_op_objc_selector): New function.
5715 (evaluate_subexp_standard): Use it.
5716
14a1c64a
TT
57172021-03-08 Tom Tromey <tom@tromey.com>
5718
5719 * eval.c (eval_op_string): New function.
5720 (evaluate_subexp_standard): Use it.
5721
ffff730b
TT
57222021-03-08 Tom Tromey <tom@tromey.com>
5723
5724 * eval.c (eval_op_register): New function.
5725 (evaluate_subexp_standard): Use it.
5726
9b1d8af6
TT
57272021-03-08 Tom Tromey <tom@tromey.com>
5728
5729 * eval.c (eval_op_func_static_var): New function.
5730 (evaluate_subexp_standard): Use it.
5731
c0df9289
TT
57322021-03-08 Tom Tromey <tom@tromey.com>
5733
5734 * eval.c (eval_op_var_msym_value): New function.
5735 (evaluate_subexp_standard): Use it.
5736
50b98adc
TT
57372021-03-08 Tom Tromey <tom@tromey.com>
5738
5739 * eval.c (eval_op_var_entry_value): New function.
5740 (evaluate_subexp_standard): Use it.
5741
ea2d29f7
TT
57422021-03-08 Tom Tromey <tom@tromey.com>
5743
5744 * eval.c (eval_op_scope): New function.
5745 (evaluate_subexp_standard): Use it.
5746
01573d73
TT
57472021-03-06 Chernov Sergey <klen_s@mail.ru>
5748
5749 PR gdb/27528:
5750 * ada-lang.c (ada_fold_name): Use gdb::to_string.
5751
9938d15a
TT
57522021-03-06 Tom Tromey <tom@tromey.com>
5753
5754 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5755 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5756 * dwarf2/read.c (dwarf2_elf_names): No longer static.
5757 (locate_dwz_sections, dwz_search_other_debugdirs)
5758 (dwarf2_get_dwz_file): Move to dwz.c.
5759 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5760 read.h.
5761 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5762 (dwarf2_get_dwz_file): Move from read.c.
5763
18035655
TT
57642021-03-06 Tom Tromey <tom@tromey.com>
5765
5766 * debuginfod-support.h: Include scoped_fd.h.
5767
a7308ce0
TT
57682021-03-06 Tom Tromey <tom@tromey.com>
5769
5770 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5771 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5772 (get_abbrev_section_for_cu, read_attribute_value)
5773 (get_debug_line_section): Update.
5774 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5775
fbedd546
TT
57762021-03-06 Tom Tromey <tom@tromey.com>
5777
5778 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5779 method.
5780 * dwarf2/read.c (section_is_p): Remove.
5781 (dwarf2_per_bfd::locate_sections)
5782 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5783 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5784 (dwarf2_locate_common_dwp_sections)
5785 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5786 Update.
5787
c2a62a3d
TT
57882021-03-06 Tom Tromey <tom@tromey.com>
5789
5790 * xcoffread.c: Include sect-names.h.
5791 * symfile.h (struct dwarf2_section_names, struct
5792 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5793 * dwarf2/sect-names.h: New file, from symfile.h.
5794 * dwarf2/read.c: Include sect-names.h.
5795
4444f407
TT
57962021-03-06 Tom Tromey <tom@tromey.com>
5797
5798 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5799 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5800 (abbrev_table::read): Update.
5801 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5802 (struct abbrev_info): Reformat.
5803 <attrs>: Now an array.
5804 (struct abbrev_table) <alloc_abbrev>: Remove.
5805
dd99cf0c
WP
58062021-03-06 Weimin Pan <weimin.pan@oracle.com>
5807
5808 * ctfread.c (ctf_psymtab_add_enums): New function.
5809 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5810
844be3f2
WP
58112021-03-06 Weimin Pan <weimin.pan@oracle.com>
5812
5813 * ctfread.c (read_func_kind_type): Set up function arguments.
5814
b2668f28
AB
58152021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5816 Andrew Burgess <andrew.burgess@embecosm.com>
5817
5818 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5819 includes.
5820 (riscv_csrset): New static global.
5821 (riscv_update_csrmap): New function.
5822 (riscv_iterate_over_regset_sections): Process CSRs.
5823
d782d24b
AB
58242021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5825
5826 * riscv-tdep.c (riscv_feature_name_csr): Define.
5827 (riscv_feature_name_cpu): Define.
5828 (riscv_feature_name_fpu): Define.
5829 (riscv_feature_name_virtual): Define.
5830 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5831 (riscv_freg_feature): Use riscv_feature_name_fpu.
5832 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5833 (riscv_csr_feature): Use riscv_feature_name_csr.
5834 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5835
fb8f3fc0
AB
58362021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5837 Craig Blackmore <craig.blackmore@embecosm.com>
5838
5839 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5840 (ALLDEPFILES): Add riscv-none-tdep.c.
5841 * configure: Regenerate.
5842 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5843 support.
5844 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5845 * elf-none-tdep.c: New file.
5846 * elf-none-tdep.h: New file.
5847 * riscv-none-tdep.c: New file.
5848
95ce627a
AB
58492021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5850 Andrew Burgess <andrew.burgess@embecosm.com>
5851
5852 * corelow.c: Add 'xml-tdesc.h' include.
5853 (core_target::read_description): Load the target description from
5854 the core file when possible.
5855 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5856 note.
5857 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5858 (gcore_elf_make_tdesc_note): New function.
5859 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5860 * linux-tdep.c (linux_make_corefile_notes): Add target description
5861 note.
5862
f3a5df7b
AB
58632021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5864
5865 * Makefile.in (SFILES): Add gcore-elf.c.
5866 (HFILES_NO_SRCDIR): Add gcore-elf.h
5867 * configure: Regenerate.
5868 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5869 support.
5870 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5871 (struct fbsd_collect_regset_section_cb_data): Delete.
5872 (fbsd_collect_regset_section_cb): Delete.
5873 (fbsd_collect_thread_registers): Delete.
5874 (struct fbsd_corefile_thread_data): Delete.
5875 (fbsd_corefile_thread): Delete.
5876 (fbsd_make_corefile_notes): Call
5877 gcore_elf_build_thread_register_notes instead of the now deleted
5878 FreeBSD code.
5879 * gcore-elf.c: New file, the content was moved here from
5880 linux-tdep.c, functions were renamed and given minor cleanup.
5881 * gcore-elf.h: New file.
5882 * gcore.c (gcore_find_signalled_thread): Moved here from
5883 linux-tdep.c and given a new name. Minor cleanups.
5884 * gcore.h (gcore_find_signalled_thread): Declare.
5885 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5886 (struct linux_collect_regset_section_cb_data): Delete.
5887 (linux_collect_regset_section_cb): Delete.
5888 (linux_collect_thread_registers): Delete.
5889 (linux_corefile_thread): Call
5890 gcore_elf_build_thread_register_notes.
5891 (find_signalled_thread): Delete.
5892 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5893
d1e93af6
SM
58942021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5895
5896 PR gdb/27147
5897 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5898 process_stratum_target parameter,
5899 sparc_store_inferior_registers): update callers.
5900 * sparc-nat.c (sparc_fetch_inferior_registers,
5901 sparc_store_inferior_registers): Add process_stratum_target
5902 parameter. Switch current thread before calling
5903 sparc_supply_gregset / sparc_collect_rwindow.
5904 (sparc_store_inferior_registers): Likewise.
5905 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5906 (sparc32obsd_collect_uthread): Likewise.
5907 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5908 Add assertion.
5909 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5910 sparc64obsd_supply_uthread): Add assertion.
5911
1178743e
TT
59122021-03-04 Tom Tromey <tromey@adacore.com>
5913
5914 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5915 (aux_add_nonlocal_symbols): Update.
5916 (ada_add_block_symbols): Change "found_sym" to bool.
5917
1bfa81ac
TT
59182021-03-03 Tom Tromey <tromey@adacore.com>
5919
5920 * ada-lang.c (ada_resolve_function): Update comment.
5921 (is_nonfunction, add_symbols_from_enclosing_procs)
5922 (remove_extra_symbols): Likewise.
5923 (struct match_data): Add constructor, initializers.
5924 (add_nonlocal_symbols): Remove memset.
5925 (aux_add_nonlocal_symbols): Update comment.
5926 (ada_add_block_renamings, add_nonlocal_symbols)
5927 (ada_add_all_symbols): Likewise.
5928 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5929
bbcdf9ab
TT
59302021-03-02 Tom Tromey <tromey@adacore.com>
5931
5932 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5933 (cast_to_gnat_encoded_fixed_point_type): Remove.
5934 (ada_value_cast, ada_evaluate_subexp): Update.
5935 (gnat_encoded_fixed_point_type_info)
5936 (ada_is_gnat_encoded_fixed_point_type)
5937 (gnat_encoded_fixed_point_delta)
5938 (gnat_encoded_fixed_point_scaling_factor): Remove.
5939 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5940 (gnat_encoded_fixed_point_delta)
5941 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5942 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5943 (ada_print_type): Update.
5944 * ada-valprint.c (ada_value_print_num): Update.
5945 * dwarf2/read.c (ada_get_gnat_encoded_number)
5946 (ada_get_gnat_encoded_ratio): New functions.
5947 (finish_fixed_point_type): Use them. Add parameters.
5948 (GNAT_FIXED_POINT_SUFFIX): New define.
5949 (gnat_encoded_fixed_point_type_info): New function.
5950 (read_base_type): Handle gnat encodings.
5951
5f9febe0
TT
59522021-03-02 Tom Tromey <tromey@adacore.com>
5953
5954 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5955 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5956 std::string.
5957 (GROW_VECT): Remove.
5958 (grow_vect): Remove.
5959
d1183b06
TT
59602021-03-02 Tom Tromey <tromey@adacore.com>
5961
5962 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5963 * ada-lang.c (resolve_subexp): Update.
5964 (ada_resolve_function): Accept a vector.
5965 (is_nonfunction, add_defn_to_vec)
5966 (add_symbols_from_enclosing_procs): Likewise.
5967 (num_defns_collected, defns_collected): Remove.
5968 (remove_extra_symbols): Return a vector.
5969 (remove_irrelevant_renamings): Return void.
5970 (ada_add_local_symbols): Accept a vector.
5971 (struct match_data) <obstackp>: Remove.
5972 <resultp>: New member.
5973 (aux_add_nonlocal_symbols): Update.
5974 (ada_add_block_renamings, add_nonlocal_symbols)
5975 (ada_add_all_symbols): Accept a vector.
5976 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5977 vector.
5978 (ada_lookup_symbol): Update.
5979 (ada_add_block_symbols): Accept a vector.
5980 (get_var_value, iterate_over_symbols): Update.
5981 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5982 Update.
5983
886d459f
TT
59842021-03-02 Tom Tromey <tromey@adacore.com>
5985
5986 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5987
bdcccc56
TT
59882021-03-02 Tom Tromey <tromey@adacore.com>
5989
5990 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5991 auto_obstack.
5992 <root>: Initialize.
5993 (ada_pspace_data): Remove destructor.
5994 <sym_cache>: Now a unique_ptr.
5995 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5996 (ada_get_symbol_cache): Use 'new'.
5997 (ada_clear_symbol_cache): Rewrite.
5998
1228719f
TT
59992021-03-02 Tom Tromey <tromey@adacore.com>
6000
6001 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
6002 is null.
6003
bb3a4efe
LS
60042021-02-27 Lancelot Six <lsix@lancelotsix.com>
6005
6006 PR gdb/27393
6007 * source.c (add_path): Skip empty dirnames.
6008
26b43ca6 60092021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
6010
6011 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
6012 include order for <sys/ptrace.h> and <asm/ptrace.h>.
6013
dffdd8b5
SM
60142021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
6015
6016 PR gdb/26861
6017 * target.c (target_mourn_inferior): Only compare pids in
6018 target_mourn_inferior.
6019
64d38fdd
JM
60202021-02-25 Jan Matyas <jmatyas@codasip.com>
6021
6022 PR gdb/26819
6023 * remote.c (remote_target::start_remote): Ensure the single
6024 thread, automatically added for remote targets without the
6025 concept of threading, is initially in set to the "resumed"
6026 state.
6027 * remote.c (remote_target::add_current_inferior_and_thread):
6028 Add return value - return the main thread.
6029
2450ad54
JV
60302021-02-25 Jan Vrany <jan.vrany@labware.com>
6031
6032 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
6033 (mi_tsv_created): Likewise.
6034 (mi_tsv_deleted): Likewise.
6035
30c80d88
TV
60362021-02-25 Tom de Vries <tdevries@suse.de>
6037
6038 PR symtab/27354
6039 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
6040 section_kind for &dwo_file->sections.info.
6041
68337b8b
AB
60422021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
6043
6044 PR fortran/26155
6045 * f-lang.c (fortran_argument_convert): Delete declaration.
6046 (fortran_prepare_argument): New function.
6047 (evaluate_subexp_f): Move logic to new function
6048 fortran_prepare_argument.
6049
faeb9f13
AB
60502021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
6051
6052 * f-exp.y (f77_keywords): Add 'associated'.
6053 * f-lang.c (fortran_associated): New function.
6054 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
6055 (operator_length_f): Likewise.
6056 (print_unop_or_binop_subexp_f): New function.
6057 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
6058 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
6059 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
6060 (operator_check_f): Likewise.
6061 * std-operator.def: Add FORTRAN_ASSOCIATED.
6062
170f4b23
AB
60632021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
6064
6065 * f-exp.y (fortran_operators): Add ".xor.".
6066
aa659cfa
TV
60672021-02-24 Tom de Vries <tdevries@suse.de>
6068
6069 PR symtab/27336
6070 * dwarf2/attribute.c (attribute::form_is_signed): New function
6071 factored out of ...
6072 * dwarf2/attribute.h (attribute::as_signed): ... here.
6073 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
6074 (attribute::form_is_signed): Declare.
6075 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
6076 for DW_AT_decl_file.
6077
268c77c1
KB
60782021-02-24 Kevin Buettner <kevinb@redhat.com>
6079
6080 * nat/aarch64-linux-hw-point.c: Add comment regarding include
6081 order for <sys/ptrace.h> and <asm/ptrace.h>.
6082
665af52e
KB
60832021-02-24 Kevin Buettner <kevinb@redhat.com>
6084
6085 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
6086 <sys/ptrace.h>.
6087
dd80d750
AB
60882021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6089
6090 * exec.c (set_section_command): Move variable declarations into
6091 the function body, and use std::string instead of a fixed size
6092 buffer.
6093
336aa7b7
AB
60942021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6095
6096 * exec.c (exec_target::get_section_table): Delete member function.
6097 (section_table_read_available_memory): Use current_top_target, not
6098 just the exec_ops target.
6099 * target-delegates.c: Regenerate.
6100 * target.c (default_get_section_table): New function.
6101 * target.h (target_ops::get_section_table): Change default
6102 behaviour to call default_get_section_table.
6103 (default_get_section_table): Declare.
6104
02f7d26b
AB
61052021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6106
6107 * exec.c (exec_target::close): Call new clear_target_sections
6108 function.
6109 (program_space::add_target_sections): Update name of member
6110 variable.
6111 (program_space::add_target_sections): Update name of member
6112 variable.
6113 (program_space::remove_target_sections): Likewise.
6114 (exec_one_fork): Use new target_sections member function.
6115 (exec_target::get_section_table): Likewise.
6116 (exec_target::files_info): Likewise.
6117 (set_section_command): Likewise.
6118 (exec_set_section_address): Likewise.
6119 (exec_target::has_memory): Use new target_sections member
6120 function.
6121 * progspace.h (program_space::clear_target_sections): New member
6122 function.
6123 (program_space::target_sections): Rename member variable to
6124 m_target_sections, replace with a new member function.
6125 (program_space::m_target_sections): New member variable.
6126 * solib-dsbt.c (scan_dyntag): Use new member function.
6127 * solib-svr4.c (scan_dyntag): Likewise.
6128
19cf757a
AB
61292021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6130
6131 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
6132 return type const.
6133 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
6134 (section_table_read_available_memory): Make local const.
6135 (exec_target::xfer_partial): Make local const.
6136 (print_section_info): Make parameter const.
6137 * gdb/exec.h (print_section_info): Likewise.
6138 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
6139 const.
6140 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
6141 Likewise.
6142 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
6143 Likewise.
6144 * gdb/s390-tdep.c (s390_load): Likewise.
6145 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
6146 * gdb/solib-svr4.c (scan_dyntag): Likewise.
6147 * gdb/target-debug.h (target_debug_print_target_section_table_p):
6148 Rename to...
6149 (target_debug_print_const_target_section_table_p): ...this.
6150 * gdb/target-delegates.c: Regenerate.
6151 * gdb/target.c (target_get_section_table): Make return type const.
6152 (target_section_by_addr): Likewise. Also make some locals const.
6153 (memory_xfer_partial_1): Make some locals const.
6154 * gdb/target.h (struct target_ops) <get_section_table>: Make
6155 return type const.
6156 (target_section_by_addr): Likewise.
6157 (target_get_section_table): Likewise.
6158
02a79309
AB
61592021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6160
6161 * NEWS: Mention new 'maint info target-sections' command.
6162 * maint.c (maintenance_info_target_sections): New function.
6163 (_initialize_maint_cmds): Register new command.
6164
895b7b4e
AB
61652021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6166
6167 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
6168 (riscv_features_from_bfd): ...this. Change parameter type to
6169 'bfd*', and update as required.
6170 (riscv_find_default_target_description): Update call to
6171 riscv_features_from_bfd. Select a default xlen based on
6172 info.bfd_arch_info.
6173 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
6174
bc3c0632
AB
61752021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6176
6177 * eval.c (evaluate_subexp_standard): Call value_ind for points to
6178 dynamic types in UNOP_IND.
6179
08ac5771
SM
61802021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6181
6182 PR gdb/26828
6183 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
6184 Instantiate queue.
6185 (~dwarf2_queue_guard): Clear queue.
6186 (queue_comp_unit): Assert that queue is
6187 instantiated.
6188 (process_queue): Adjust.
6189 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
6190
616c069a
SM
61912021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6192
6193 PR gdb/26828
6194 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
6195 to decide whether or not to enqueue it for expansion.
6196 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
6197 after calling maybe_queue_comp_unit.
6198
897608ed
SM
61992021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6200
6201 * linux-nat.c (linux_nat_filter_event): Return void.
6202
15908a11
TT
62032021-02-22 Tom Tromey <tromey@adacore.com>
6204
6205 * solib-svr4.c (enable_break): Update.
6206 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
6207 type.
6208 (target_bfd_reopen): Change parameter type.
6209 * bfd-target.h (target_bfd_reopen): Change parameter type.
6210
f53fc427
SM
62112021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6212
6213 * thread.c (add_thread_silent): Add assert.
6214 (find_thread_ptid): Add assert.
6215
de146e19
SM
62162021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6217
6218 PR gdb/27435
6219 * inf-ptrace.c (struct target_unpusher): Move to target.h.
6220 (target_unpush_up): Likewise.
6221 * procfs.c (procfs_target::attach): Push target early. Use
6222 target_unpush_up to unpush target in case of error.
6223 * target.h (struct target_unpusher): Move here.
6224 (target_unpush_up): Likewise.
6225
8488c357
KB
62262021-02-19 Kevin Buettner <kevinb@redhat.com>
6227
6228 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
6229 (which in turn includes <gnulib/config.h>) before include
6230 of <signal.h>.
6231
5a9f5403
NC
62322021-02-19 Nelson Chu <nelson.chu@sifive.com>
6233
6234 PR 27158
6235 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
6236 (decode_j_type_insn): Likewise.
6237 (decode_cj_type_insn): Likewise.
6238 (decode_b_type_insn): Likewise.
6239 (decode): Likewise.
6240
26f53cd3
TT
62412021-02-18 Tom Tromey <tom@tromey.com>
6242
6243 * expression.h (struct expression) <evaluate>: Declare method.
6244 * eval.c (evaluate_subexp): Simplify.
6245 (expression::evaluate): New method.
6246 (evaluate_expression, evaluate_type): Use expression::evaluate.
6247
6a780b67
KB
62482021-02-17 Kevin Buettner <kevinb@redhat.com>
6249
6250 * ada-lang.c (ada_fold_name): Check for non-empty string prior
6251 to accessing it.
6252 (ada_lookup_name_info): Likewise.
6253
adeab0c5
MF
62542021-02-13 Mike Frysinger <vapier@gentoo.org>
6255
6256 * aclocal.m4: Regenerate.
6257
089436f7
TV
62582021-02-12 Tom de Vries <tdevries@suse.de>
6259
6260 PR threads/26228
6261 * linux-nat.c (lin_thread_get_thread_signals): Remove.
6262 (lin_thread_signals): New static var.
6263 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
6264 New function.
6265 * linux-nat.h (lin_thread_get_thread_signals): Remove.
6266 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
6267 Declare.
6268 * linux-thread-db.c (check_thread_signals): Use
6269 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
6270
96df3e28
AB
62712021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
6272
6273 * f-exp.y (f77_keywords): Add allocated.
6274 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
6275 (operator_length_f): Likewise.
6276 (print_subexp_f): Likewise.
6277 (dump_subexp_body_f): Likewise.
6278 (operator_check_f): Likewise.
6279 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
6280
05f68f52
TV
62812021-02-11 Tom de Vries <tdevries@suse.de>
6282
6283 PR symtab/27353
6284 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
6285 Return true for DW_FORM_strx.
6286
b260f8d6
TT
62872021-02-11 Tom Tromey <tromey@adacore.com>
6288
6289 PR gdb/27383:
6290 * parse.c (write_exp_symbol_reference): Write sym.block.
6291
bf3386f0
AB
62922021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6293
6294 * NEWS: Mention changes to 'maint info sections'.
6295 * maint.c (match_substring): Return a bool, fix whitespace issue.
6296 (struct single_bfd_flag_info): New struct.
6297 (bfd_flag_info): New static global.
6298 (match_bfd_flags): Return a bool, use bfd_flag_info.
6299 (print_bfd_flags): Use bfd_flag_info.
6300 (maint_print_section_info): Delete trailing whitespace.
6301 (struct maint_info_sections_opts): New struct.
6302 (maint_info_sections_option_defs): New static global.
6303 (maint_info_sections_completer): New function.
6304 (maintenance_info_sections): Use option parsing mechanism.
6305 (_initialize_maint_cmds): Update command help text for 'maint info
6306 sections' and register a command completer.
6307
4790db14
AB
63082021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6309
6310 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
6311 functionality merged into...
6312 (maint_print_all_sections): ...this new function.
6313 (maintenance_info_sections): Make use of maint_print_all_sections,
6314 allow all objects to be printed even where there's no executable.
6315
1db66e34
AB
63162021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6317
6318 * breakpoint.c (resolve_sal_pc): Make use of
6319 bound_minimal_symbol::obj_section.
6320 * maint.c (maintenance_translate_address): Likewise.
6321 * minsyms.c (minimal_symbol_upper_bound): Likewise.
6322 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
6323 member function.
6324 * printcmd.c (info_address_command): Make use of
6325 bound_minimal_symbol::obj_section.
6326
18b8df43
AM
63272021-02-11 Alan Modra <amodra@gmail.com>
6328
6329 * arm-symbian-tdep.c: Delete.
6330 * NEWS: Mention arm-symbian removal.
6331 * Makefile.in: Remove arm-symbian-tdep entries.
6332 * configure.tgt: Remove arm*-*-symbianelf*.
6333 * doc/gdb.texinfo: Remove mention of SymbianOS.
6334 * osabi.c (gdb_osabi_names): Remove "Symbian".
6335 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
6336 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
6337 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
6338 handling.
6339 * testsuite/gdb.base/dup-sect.exp: Likewise.
6340 * testsuite/gdb.base/long_long.exp: Likewise.
6341 * testsuite/gdb.base/solib-weak.exp: Likewise.
6342 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
6343 * testsuite/gdb.python/py-section-script.exp: Likewise.
6344 * testsuite/lib/dwarf.exp: Likewise.
6345 * testsuite/lib/gdb.exp: Likewise.
6346
e92c8eb8
AB
63472021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6348
6349 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
6350 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
6351 (one_or_two_args): New pattern.
6352 (f77_keywords): Add lbound and ubound.
6353 * f-lang.c (fortran_bounds_all_dims): New function.
6354 (fortran_bounds_for_dimension): New function.
6355 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
6356 (operator_length_f): Likewise.
6357 (print_subexp_f): Likewise.
6358 (dump_subexp_body_f): Likewise.
6359 (operator_check_f): Likewise.
6360 * std-operator.def (FORTRAN_LBOUND): Define.
6361 (FORTRAN_UBOUND): Define.
6362
a52d653e
AB
63632021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6364
6365 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
6366 and set_section_index member functions where appropriate.
6367 * coffread.c (coff_symtab_read): Likewise.
6368 (process_coff_symbol): Likewise.
6369 * ctfread.c (set_symbol_address): Likewise.
6370 * dwarf2/read.c (add_partial_symbol): Likewise.
6371 (var_decode_location): Likewise.
6372 * language.c: Likewise.
6373 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
6374 (compact_minimal_symbols): Likewise.
6375 (minimal_symbol_upper_bound): Likewise.
6376 * objfiles.c (relocate_one_symbol): Likewise.
6377 * psympriv.h (partial_symbol::obj_section): Likewise.
6378 (partial_symbol::address): Likewise.
6379 * psymtab.c (partial_symtab::add_psymbol): Likewise.
6380 * stabsread.c (scan_file_globals): Likewise.
6381 * symmisc.c (dump_msymbols): Likewise.
6382 * symtab.c (general_symbol_info::obj_section): Likewise.
6383 (fixup_section): Likewise.
6384 (get_msymbol_address): Likewise.
6385 * symtab.h (general_symbol_info::section): Rename to...
6386 (general_symbol_info::m_section): ...this.
6387 (general_symbol_info::set_section_index): New member function.
6388 (general_symbol_info::section_index): Likewise.
6389 (SYMBOL_SECTION): Delete.
6390 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
6391 set_section_index member functions where appropriate.
6392 (MSYMBOL_SECTION): Delete.
6393 (symbol::symbol): Update to initialize 'm_section'.
6394 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
6395 (process_xcoff_symbol): Likewise.
6396
ebbc3a7d
AB
63972021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6398
6399 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
6400 MSYMBOL_OBJ_SECTION.
6401 * findvar.c (language_defn::read_var_value): Likewise.
6402 * infcmd.c (jump_command): Likewise.
6403 * linespec.c (minsym_found): Likewise.
6404 * maint.c (maintenance_translate_address): Likewise.
6405 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
6406 (minimal_symbol_upper_bound): Likewise.
6407 * parse.c (find_minsym_type_and_address): Likewise.
6408 (operator_check_standard): Likewise.
6409 * printcmd.c (info_address_command): Likewise.
6410 * symmisc.c (dump_msymbols): Likewise.
6411 (print_symbol): Likewise.
6412 * symtab.c (general_symbol_info::obj_section): Define new
6413 function.
6414 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
6415 (find_pc_sect_compunit_symtab): Likewise.
6416 (find_function_start_sal): Likewise.
6417 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
6418 MSYMBOL_OBJ_SECTION.
6419 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
6420 function.
6421 (SYMBOL_OBJ_SECTION): Delete.
6422 (MSYMBOL_OBJ_SECTION): Delete.
6423
9bb305b3
TT
64242021-02-09 Tom Tromey <tom@tromey.com>
6425
6426 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
6427
cf2b2075
TV
64282021-02-09 Tom de Vries <tdevries@suse.de>
6429
6430 PR symtab/27341
6431 * dwarf2/read.c (read_array_type): Return NULL when not being able to
6432 construct an array type. Add assert to ensure that element_type is
6433 not being modified.
6434
03642b71
AB
64352021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
6436
6437 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
6438 (gcore_collect_regset_section_cb): Delete.
6439 (gcore_collect_thread_registers): Delete.
6440 (gcore_build_thread_register_notes): Delete.
6441 (gcore_find_signalled_thread): Delete.
6442 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
6443 'gdbarch' and 'thread_info' declarations.
6444 (gcore_build_thread_register_notes): Delete declaration.
6445 (gcore_find_signalled_thread): Likewise.
6446 * fbsd-tdep.c: Remove 'gcore.h' include.
6447 (struct fbsd_collect_regset_section_cb_data): New struct.
6448 (fbsd_collect_regset_section_cb): New function.
6449 (fbsd_collect_thread_registers): New function.
6450 (struct fbsd_corefile_thread_data): New struct.
6451 (fbsd_corefile_thread): New function.
6452 (fbsd_make_corefile_notes): Call FreeBSD specific code.
6453 * linux-tdep.c: Remove 'gcore.h' include.
6454 (struct linux_collect_regset_section_cb_data): New struct.
6455 (linux_collect_regset_section_cb): New function.
6456 (linux_collect_thread_registers): New function.
6457 (linux_corefile_thread): Call Linux specific code.
6458 (find_signalled_thread): New function.
6459 (linux_make_corefile_notes): Call find_signalled_thread.
6460
f73e424f
TT
64612021-02-09 Tom Tromey <tromey@adacore.com>
6462
6463 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
6464 not_lval value.
6465 * value.c (value_contents_copy_raw): Now static.
6466 * value.h (value_contents_copy_raw): Don't declare.
6467
a4f0544b
TT
64682021-02-09 Tom Tromey <tromey@adacore.com>
6469
6470 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
6471 fields.
6472
9b3e4b5d
SV
64732021-02-08 Shahab Vahedi <shahab@synopsys.com>
6474
6475 PR tdep/27369
6476 * arc-linux-tdep.c (handle_atomic_sequence): New.
6477 (arc_linux_software_single_step): Call handle_atomic_sequence().
6478
29db1eb3
AB
64792021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6480
6481 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
6482 function.
6483 (REQUIRE_WINDOW): Call is_valid member function.
6484 (REQUIRE_WINDOW_FOR_SETTER): New define.
6485 (gdbpy_tui_is_valid): Call is_valid member function.
6486 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
6487 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
6488 tui_active too.
6489 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
6490 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
6491 the function.
6492
e0c23e11
AB
64932021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6494
6495 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
6496 for the title is not nullptr.
6497
1cf23996
AB
64982021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6499
6500 * tui-layout.c (saved_tui_windows): Delete.
6501 (tui_apply_current_layout): Don't make use of saved_tui_windows,
6502 call new get_windows member function instead.
6503 (tui_get_window_by_name): Check in tui_windows.
6504 (tui_layout_window::apply): Don't add to tui_windows.
6505 * tui-layout.h (tui_layout_base::get_windows): New member function.
6506 (tui_layout_window::get_windows): Likewise.
6507 (tui_layout_split::get_windows): Likewise.
6508
a53a2657
AB
65092021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6510
6511 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
6512 of the window objects.
6513
2708dbbd
AB
65142021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6515
6516 * python/python.c (gdbpy_print_stack): Reformat an error message.
6517
cd074e04
AB
65182021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6519
6520 * tui/tui-interp.c (tui_command_line_handler): New function.
6521 (tui_interp::resume): Register tui_command_line_handler as the
6522 input_handler.
6523 * tui/tui-io.c (tui_inject_newline_into_command_window): New
6524 function.
6525 (tui_getc_1): Delete handling of '\n' and '\r'.
6526 * tui-io.h (tui_inject_newline_into_command_window): Declare.
6527
4cf28e91
HD
65282021-02-07 Hannes Domani <ssbssa@yahoo.de>
6529
6530 * tui/tui-regs.c (tui_data_window::display_registers_from):
6531 Mark invisible register sub windows.
6532 (tui_data_window::check_register_values): Ignore invisible
6533 register sub windows.
6534
3537bc23
HD
65352021-02-07 Hannes Domani <ssbssa@yahoo.de>
6536
6537 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
6538 n_spaces with a negative value.
6539
5fc2d6aa
HD
65402021-02-07 Hannes Domani <ssbssa@yahoo.de>
6541
6542 * tui/tui-regs.c (tui_data_window::display_registers_from):
6543 Add refresh_window call.
6544
83962f83
HD
65452021-02-07 Hannes Domani <ssbssa@yahoo.de>
6546
6547 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
6548
0110ec82
SM
65492021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
6550
6551 * symmisc.c (std_in, std_out, std_err): Remove.
6552 (_initialize_symmisc): Don't set std_in, std_out and std_err.
6553
7c6944ab
TV
65542021-02-05 Tom de Vries <tdevries@suse.de>
6555
6556 PR breakpoints/27330
6557 * breakpoint.c (create_exception_master_breakpoint): Handle case that
6558 glibc object file has debug info.
6559
e77b0004
TV
65602021-02-05 Tom de Vries <tdevries@suse.de>
6561
6562 PR symtab/27333
6563 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
6564
0e857c82
TV
65652021-02-05 Tom de Vries <tdevries@suse.de>
6566
6567 PR breakpoints/27313
6568 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
6569 syscall numbers.
6570
bdfea17e
TT
65712021-02-05 Tom Tromey <tom@tromey.com>
6572
6573 * compile/compile-c-support.c (get_compile_context)
6574 (c_get_compile_context, cplus_get_compile_context): Change return
6575 type.
6576 * language.c (language_defn::get_compile_instance): New method.
6577 * language.h (language_defn::get_compile_instance): Change return
6578 type. No longer inline.
6579 * c-lang.c (c_language::get_compile_instance): Change return type.
6580 (cplus_language::get_compile_instance): Change return type.
6581 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
6582 Change return type.
6583 * compile/compile.c (compile_to_object): Update.
6584
1b30f421
TT
65852021-02-05 Tom Tromey <tom@tromey.com>
6586
6587 * parser-defs.h (write_exp_symbol_reference): Declare.
6588 * parse.c (write_exp_symbol_reference): New function.
6589 * p-exp.y (variable): Use write_exp_symbol_reference.
6590 * m2-exp.y (variable): Use write_exp_symbol_reference.
6591 * f-exp.y (variable): Use write_exp_symbol_reference.
6592 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
6593 * c-exp.y (variable): Use write_exp_symbol_reference.
6594
ae710496
TV
65952021-02-05 Tom de Vries <tdevries@suse.de>
6596
6597 PR exp/27265
6598 * valarith.c (complex_binop): Throw an error if complex type can't
6599 be created.
6600
d3b54e63
TV
66012021-02-05 Tom de Vries <tdevries@suse.de>
6602
6603 PR symtab/27307
6604 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
6605 return.
6606
fc9a13fb
TV
66072021-02-05 Tom de Vries <tdevries@suse.de>
6608
6609 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
6610
04b4939b
MF
66112021-02-04 Mike Frysinger <vapier@gentoo.org>
6612
6613 * configure.tgt (riscv*-*-*): Set gdb_sim.
6614
6ff267e1
SM
66152021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
6616
6617 * target.c (target_is_non_stop_p): Return bool.
6618 * target.h (target_is_non_stop_p): Return bool.
6619
fdbc5215
SM
66202021-02-04 Simon Marchi <simon.marchi@efficios.com>
6621
6622 * record-full.c (record_full_async_inferior_event_handler):
6623 Don't clear async event handler.
6624 (record_full_base_target::wait): Clear async event handler at
6625 beginning.
6626
85d3ad8e
SM
66272021-02-04 Simon Marchi <simon.marchi@efficios.com>
6628
6629 * record-btrace.c (record_btrace_handle_async_inferior_event):
6630 Don't clear async event handler.
6631 (record_btrace_target::wait): Clear async event handler at
6632 beginning.
6633
baa8575b
SM
66342021-02-04 Simon Marchi <simon.marchi@efficios.com>
6635
6636 * remote.c (remote_target::wait): Clear async event handler at
6637 beginning, mark if needed at the end.
6638 (remote_async_inferior_event_handler): Don't set or clear async
6639 event handler.
6640
6b36ddeb
SM
66412021-02-04 Simon Marchi <simon.marchi@efficios.com>
6642
6643 * async-event.h (async_event_handler_func): Add documentation.
6644 * async-event.c (check_async_event_handlers): Don't clear
6645 async_event_handler ready flag.
6646 * infrun.c (infrun_async_inferior_event_handler): Clear ready
6647 flag.
6648 * record-btrace.c (record_btrace_handle_async_inferior_event):
6649 Likewise.
6650 * record-full.c (record_full_async_inferior_event_handler):
6651 Likewise.
6652 * remote-notif.c (remote_async_get_pending_events_handler):
6653 Likewise.
6654 * remote.c (remote_async_inferior_event_handler): Likewise.
6655
72d383bb
SM
66562021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
6657
6658 * infrun.c (handle_inferior_event): Move stop_soon variable to
6659 inner scope.
6660
408f6686
PA
66612021-02-03 Pedro Alves <pedro@palves.net>
6662
6663 * infcmd.c (detach_command): Hold strong reference to target, and
6664 if all-stop on entry, restart threads on exit.
6665 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
6666 (restart_stepped_thread): ... this new function. Also handle
6667 trap_expected.
6668 (restart_after_all_stop_detach): New function.
6669 * infrun.h (restart_after_all_stop_detach): Declare.
6670
ac7d717c
PA
66712021-02-03 Pedro Alves <pedro@palves.net>
6672
6673 * infrun.c (struct step_over_info): Initialize fields.
6674 (prepare_for_detach): Handle ongoing in-line step over.
6675
e87f0fe8
PA
66762021-02-03 Pedro Alves <pedro@palves.net>
6677
6678 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
6679 here...
6680 * remote.c (remote_target::remote_detach_1): ... and here ...
6681 * target.c (target_detach): ... instead of here.
6682 * target.h (target_ops::detach): Add comment.
6683
8ff53139
PA
66842021-02-03 Pedro Alves <pedro@palves.net>
6685
6686 * infrun.c (struct wait_one_event): Move higher up.
6687 (prepare_for_detach): Abort in-progress displaced steps instead of
6688 letting them complete.
6689 (handle_one): If the inferior is detaching, don't add the thread
6690 back to the global step-over chain.
6691 (restart_threads): Don't restart threads if detaching.
6692 (handle_signal_stop): Remove inferior::detaching reference.
6693
91475068
PA
66942021-02-03 Pedro Alves <pedro@palves.net>
6695
6696 * infrun.c (prepare_for_detach): Don't release scoped_restore
6697 before returning.
6698
d758e62c
PA
66992021-02-03 Pedro Alves <pedro@palves.net>
6700
6701 * infrun.c (handle_one): New function, factored out from ...
6702 (stop_all_threads): ... here.
6703
b0083dd7
PA
67042021-02-03 Pedro Alves <pedro@palves.net>
6705
6706 * remote.c (remote_notif_stop_ack): Don't error out on
6707 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6708 (remote_target::discard_pending_stop_replies): Don't delete
6709 in-flight notification; instead, clear its contents.
6710
621cc310
PA
67112021-02-03 Pedro Alves <pedro@palves.net>
6712
6713 * remote.c (extended_remote_target::attach): Set target async in
6714 the target-non-stop path too.
6715
2ab76a18
PA
67162021-02-03 Pedro Alves <pedro@palves.net>
6717
6718 PR gdb/27055
6719 * infrun.c (handle_signal_stop): Move main context_switch call
6720 earlier, before STOP_QUIETLY_NO_SIGSTOP.
6721
2e3773ff
LS
67222021-02-02 Lancelot SIX <lsix@lancelotsix.com>
6723
6724 * NEWS (Changed commands): Add entry for the behavior change of
6725 the inferior command.
6726 * inferior.c (inferior_command): When no argument is given to the
6727 inferior command, display info about the currently selected
6728 inferior.
6729
e57933dc
SM
67302021-02-02 Simon Marchi <simon.marchi@efficios.com>
6731
6732 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6733 a sect_offset.
6734 (read_attribute_reprocess): Adjust.
6735
2b0c7f41
SM
67362021-02-02 Simon Marchi <simon.marchi@efficios.com>
6737
6738 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6739 <gnu_ranges_base>: ... this...
6740 <rnglists_base>: ... and this.
6741 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6742 <gnu_ranges_base>: ... this...
6743 <rnglists_base>: ... and this.
6744 (read_cutu_die_from_dwo): Adjust
6745 (dwarf2_get_pc_bounds): Adjust
6746 (dwarf2_record_block_ranges): Adjust.
6747 (read_full_die_1): Adjust
6748 (partial_die_info::read): Adjust.
6749 (read_rnglist_index): Adjust.
6750
a1c40103
SM
67512021-02-02 Simon Marchi <simon.marchi@efficios.com>
6752
6753 PR gdb/26813
6754 * dwarf2/read.c (read_loclists_rnglists_header): Add
6755 header_offset parameter and use it.
6756 (read_loclist_index): Read header of the current contribution,
6757 not the one at the beginning of the section.
6758 (read_rnglist_index): Likewise.
6759
b1829e1b
SM
67602021-02-02 Simon Marchi <simon.marchi@efficios.com>
6761
6762 PR gdb/26813
6763 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6764 requires_reprocessing flag.
6765 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6766 DW_FORM_loclistx.
6767 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6768 and DW_FORM_loclistx.
6769 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6770 instead of set_address for DW_FORM_loclistx and
6771 DW_FORM_rnglistx.
6772
0c800c6e
SM
67732021-02-02 Simon Marchi <simon.marchi@efficios.com>
6774
6775 * dwarf2/read.c (read_loclist_index): Remove bound check for
6776 start of offset.
6777 (read_rnglist_index): Likewise.
6778
05787bad
SM
67792021-02-02 Simon Marchi <simon.marchi@efficios.com>
6780
6781 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6782 of the offset.
6783
5e4d9bbc
SM
67842021-02-02 Simon Marchi <simon.marchi@efficios.com>
6785
6786 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6787
a0c1eeba
SM
67882021-02-02 Simon Marchi <simon.marchi@efficios.com>
6789
6790 * dwarf2/read.c (read_loclist_index): Change complaints into
6791 errors.
6792
2bd3e4b8
TV
67932021-02-02 Tom de Vries <tdevries@suse.de>
6794
6795 PR symtab/24620
6796 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6797 psymtab == nullptr.
6798
82a1fd3a
AB
67992021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6800
6801 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6802 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6803 here from linux-tdep.c and given a new name. Minor cleanups.
6804 (gcore_collect_regset_section_cb): Likewise.
6805 (gcore_collect_thread_registers): Likewise.
6806 (gcore_build_thread_register_notes): Likewise.
6807 (gcore_find_signalled_thread): Likewise.
6808 * gcore.h (gcore_build_thread_register_notes): Declare.
6809 (gcore_find_signalled_thread): Declare.
6810 * fbsd-tdep.c: Add 'gcore.h' include.
6811 (struct fbsd_collect_regset_section_cb_data): Delete.
6812 (fbsd_collect_regset_section_cb): Delete.
6813 (fbsd_collect_thread_registers): Delete.
6814 (struct fbsd_corefile_thread_data): Delete.
6815 (fbsd_corefile_thread): Delete.
6816 (fbsd_make_corefile_notes): Call
6817 gcore_build_thread_register_notes instead of the now deleted
6818 FreeBSD code.
6819 * linux-tdep.c: Add 'gcore.h' include.
6820 (struct linux_collect_regset_section_cb_data): Delete.
6821 (linux_collect_regset_section_cb): Delete.
6822 (linux_collect_thread_registers): Delete.
6823 (linux_corefile_thread): Call
6824 gcore_build_thread_register_notes.
6825 (find_signalled_thread): Delete.
6826 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6827
ebde6f2d
TV
68282021-01-29 Tom de Vries <tdevries@suse.de>
6829
6830 PR breakpoints/26063
6831 * infrun.c (process_event_stop_test): Reset
6832 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6833 changed.
6834
0f93c3a2
AB
68352021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6836
6837 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6838 assert. Extend the header comment.
6839
f237f998
AB
68402021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6841
6842 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6843 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6844 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6845 (tui_locator_win_info_ptr): Delete declaration.
6846 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6847 (tui_disasm_window::set_contents): Fetch state from tui_location
6848 global.
6849 (tui_get_begin_asm_address): Likewise.
6850 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6851 for locator window.
6852 (get_locator_window): Delete.
6853 (initialize_known_windows): Treat locator window just like all the
6854 rest.
6855 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6856 (tui_source_window::set_contents): Fetch state from tui_location
6857 global.
6858 (tui_source_window::showing_source_p): Likewise.
6859 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6860 (_locator): Delete.
6861 (tui_locator_win_info_ptr): Delete.
6862 (tui_locator_window::make_status_line): Fetch state from
6863 tui_location global.
6864 (tui_locator_window::rerender): Remove check of 'handle',
6865 reindent function body.
6866 (tui_locator_window::set_locator_fullname): Delete.
6867 (tui_locator_window::set_locator_info): Delete.
6868 (tui_update_locator_fullname): Delete.
6869 (tui_show_frame_info): Likewise.
6870 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6871 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6872 tui/tui-location.h and renamed to
6873 tui_location_tracker::set_location.
6874 (tui_locator_window::set_locator_fullname): Moved to
6875 tui/tui-location.h and renamed to
6876 tui_location_tracker::set_fullname.
6877 (tui_locator_window::full_name): Delete.
6878 (tui_locator_window::proc_name): Delete.
6879 (tui_locator_window::line_no): Delete.
6880 (tui_locator_window::addr): Delete.
6881 (tui_locator_window::gdbarch): Delete.
6882 (tui_update_locator_fullname): Delete declaration.
6883 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6884 for locator window.
6885 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6886 (tui_display_main): Call function on tui_location directly.
6887 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6888 * tui/tui-location.c: New file.
6889 * tui/tui-location.h: New file.
6890
8ee511af
SM
68912021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6892
6893 * gdbtypes.h (get_type_arch): Rename to...
6894 (struct type) <arch>: ... this, update all users.
6895
6ac37371
SM
68962021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6897
6898 * gdbtypes.h (struct type) <arch>: Rename to...
6899 <arch_owner>: ... this, update all users.
6900 <objfile>: Rename to...
6901 <objfile_owner>: ... this, update all users.
6902
24cf6389
AB
69032021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6904
6905 * gdbcmd.h (execute_command_to_string): Update comment.
6906 * top.c (execute_command_to_string): Update header comment.
6907
2a7f6487
TV
69082021-01-28 Tom de Vries <tdevries@suse.de>
6909
6910 PR breakpoints/27205
6911 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6912 (create_longjmp_master_breakpoint_names): New function, factored out
6913 of ...
6914 (create_longjmp_master_breakpoint): ... here. Only try to install
6915 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6916 breakpoint in libc.so failed.
6917
59b59f08
LS
69182021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6919
6920 PR gdb/27133
6921 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6922 unique_ptr is released when the wrapped pointer is kept for later
6923 use.
6924
807f647c
MM
69252021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6926
6927 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6928 BLR and BR instructions.
6929 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6930 (enum aarch64_masks): New.
6931
4ef367bf
TT
69322021-01-26 Tom Tromey <tromey@adacore.com>
6933
6934 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6935 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6936 (windows_init_thread_list, windows_nat::handle_load_dll)
6937 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6938 (windows_nat_target::resume)
6939 (windows_nat_target::get_windows_debug_event)
6940 (windows_nat_target::interrupt, windows_xfer_memory)
6941 (windows_nat_target::close): Update.
6942 * nat/windows-nat.c (DEBUG_EVENTS): Use
6943 debug_prefixed_printf_cond.
6944 (matching_pending_stop, fetch_pending_stop)
6945 (continue_last_debug_event): Update.
6946
4cb1265b
MS
69472020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6948
6949 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6950 elfcore_write_file_note.
6951
d0cc52bd
SV
69522021-01-26 Shahab Vahedi <shahab@synopsys.com>
6953
6954 * arc-tdep.c (arc_add_reggroups): New function.
6955 (arc_gdbarch_init): Call arc_add_reggroups.
6956
ac3571d9 69572021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
6958
6959 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6960
9f6c202e
TV
69612021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6962 Simon Marchi <simon.marchi@polymtl.ca>
6963 Tom de Vries <tdevries@suse.de>
6964
6965 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6966 DW_AT_ranges.
6967
a625a8c9
TT
69682021-01-25 Tom Tromey <tromey@adacore.com>
6969
6970 * dwarf2/read.c (get_mpz): New function.
6971 (get_dwarf2_rational_constant): Use it.
6972
19184910
TT
69732021-01-25 Tom Tromey <tromey@adacore.com>
6974
6975 * ada-lang.c (resolve_subexp): Handle array context.
6976
b10bae18
TT
69772021-01-23 Tom Tromey <tom@tromey.com>
6978
6979 PR compile/25575
6980 * compile/compile-loc2c.c (note_register): New function.
6981 (pushf_register_address, pushf_register): Use it.
6982
3637a558
TT
69832021-01-23 Tom Tromey <tom@tromey.com>
6984
6985 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6986 Change type of "registers_used".
6987 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6988 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6989 (locexpr_generate_c_location, loclist_generate_c_location): Change
6990 type of "registers_used".
6991 * compile/compile.h (compile_dwarf_expr_to_c)
6992 (compile_dwarf_bounds_to_c): Update.
6993 * compile/compile-loc2c.c (pushf_register_address)
6994 (pushf_register, do_compile_dwarf_expr_to_c)
6995 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6996 of "registers_used".
6997 * compile/compile-c.h (generate_c_for_variable_locations):
6998 Update.
6999 * compile/compile-c-symbols.c (generate_vla_size)
7000 (generate_c_for_for_one_variable): Change type of
7001 "registers_used".
7002 (generate_c_for_variable_locations): Return std::vector.
7003 * compile/compile-c-support.c (generate_register_struct): Change
7004 type of "registers_used".
7005 (compute): Update.
7006
9f7f6cb8
TT
70072021-01-23 Tom Tromey <tom@tromey.com>
7008
7009 * compile/compile-internal.h (class compile_instance)
7010 <set_arguments>: Change return type.
7011 * compile/compile.c (compile_to_object): Remove call to reset.
7012 (compile_instance::set_arguments): Change return type.
7013
dd5ca05f
SM
70142021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
7015
7016 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
7017 * gdbtypes.h (struct type) <set_owner>: Add asserts.
7018
d3ee35db
LS
70192021-01-23 Lancelot SIX <lsix@lancelotsix.com>
7020
7021 * Makefile.in (SELFTESTS_SRCS): Add
7022 unittests/gdb_tilde_expand-selftests.c.
7023 * unittests/gdb_tilde_expand-selftests.c: New file.
7024
9d2d8a16
AB
70252021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
7026
7027 PR cli/25956
7028 * NEWS: Mention new command.
7029 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
7030 (version_style): Define.
7031 (cli_style_option::cli_style_option): Add intensity parameter, and
7032 use as appropriate.
7033 (_initialize_cli_style): Register version style set/show commands.
7034 * cli/cli-style.h (cli_style_option): Add intensity parameter.
7035 (version_style): Declare.
7036 * top.c (print_gdb_version): Use version_stype, and styled_string
7037 to print the GDB version string.
7038
e7b43072
AB
70392021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
7040
7041 * utils.c (emit_style_escape): Only emit an escape sequence if the
7042 requested style is different than the current applied style.
7043 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
7044 current applied_style.
7045 (fputs_styled): Remove is_default check.
7046 (fputs_styled_unfiltered): Likewise.
7047 (vfprintf_styled_no_gdbfmt): Likewise.
7048
2189c312
SM
70492021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
7050
7051 * remote.h (remote_debug_printf): New.
7052 (remote_debug_printf_nofunc): New.
7053 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
7054 * remote.c: Use above macros throughout file.
7055
02349803
SM
70562021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
7057
7058 * remote.h (remote_debug): Change to bool.
7059 * remote.c (remote_debug): Change to bool.
7060 (_initialize_remote): Adjust.
7061
cda09ec9
SM
70622021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
7063
7064 * target.h (remote_debug): Move to...
7065 * remote.h (remote_debug): ... here.
7066 * top.c (remote_debug): Move to...
7067 * remote.c (remote_debug): ... here.
7068 * remote-sim.c: Include remote.h.
7069
baf2b57f
SM
70702021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
7071
7072 * cli/cli-cmds.c (show_remote_debug): Remove.
7073 (show_remote_timeout): Remove.
7074 (_initialize_cli_cmds): Don't register commands.
7075 * remote.c (show_remote_debug): Move here.
7076 (show_remote_timeout): Move here.
7077 (_initialize_remote): Register commands.
7078
344e9841
SM
70792021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
7080
7081 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
7082 type::objfile method instead.
7083
30625020
SM
70842021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
7085
7086 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
7087 use the type::is_objfile_owned method.
7088
5b7d941b
SM
70892021-01-22 Simon Marchi <simon.marchi@efficios.com>
7090
7091 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
7092 (TYPE_OWNER): Remove.
7093 (TYPE_OBJFILE): Adjust.
7094 (struct main_type) <flag_objfile_owned>: Rename to...
7095 <m_flag_objfile_owned>: ... this.
7096 <owner>: Rename to...
7097 <m_owner>: ... this.
7098 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
7099 methods.
7100 (TYPE_ALLOC): Adjust.
7101 * gdbtypes.c (alloc_type): Adjust.
7102 (alloc_type_arch): Adjust.
7103 (alloc_type_copy): Adjust.
7104 (get_type_arch): Adjust.
7105 (smash_type): Adjust.
7106 (lookup_array_range_type): Adjust.
7107 (recursive_dump_type): Adjust.
7108 (copy_type_recursive): Adjust.
7109 * compile/compile-c-types.c (convert_func): Adjust.
7110 (convert_type_basic): Adjust.
7111 * compile/compile-cplus-types.c (compile_cplus_convert_func):
7112 Adjust.
7113 * language.c
7114 (language_arch_info::type_and_symbol::alloc_type_symbol):
7115 Adjust.
7116
d5d24e12
LM
71172021-01-21 Luis Machado <luis.machado@linaro.org>
7118
7119 * coffread.c (enter_linenos): Passing string to complaint.
7120 * valops.c (value_assign): Make array view.
7121
a59902a7
SM
71222021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7123
7124 * auto-load.h (debug_auto_load): Move here.
7125 (auto_load_debug_printf): New.
7126 * auto-load.c: Use auto_load_debug_printf.
7127 (debug_auto_load): Move to header.
7128 * linux-thread-db.c (try_thread_db_load): Use
7129 auto_load_debug_printf.
7130 * main.c (captured_main_1): Likewise.
7131
d3abc0ce
SM
71322021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7133
7134 * f-valprint.c (f77_array_offset_tbl): Remove.
7135
1e15fcac
SM
71362021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7137
7138 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
7139
439706e6
SM
71402021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7141
7142 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
7143 of gdb_select.
7144
325d39e4
HD
71452021-01-21 Hannes Domani <ssbssa@yahoo.de>
7146
7147 PR python/19151
7148 * python/py-breakpoint.c (bppy_get_location): Handle
7149 bp_hardware_breakpoint.
7150 (bppy_init): Likewise.
7151 (gdbpy_breakpoint_created): Likewise.
7152
7cb6d92a
SM
71532021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7154
7155 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
7156
d4dd4fca
SM
71572021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7158
7159 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
7160 (_initialize_gdb_bfd): Adjust.
7161
de53369b
SM
71622021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7163
7164 PR gdb/26828
7165 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
7166
17e593e9
SM
71672021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7168
7169 * dwarf2/read.c (follow_die_offset): Add logging.
7170 (dwarf2_per_objfile::age_comp_units): Add logging.
7171
6bd434d6
SM
71722021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7173
7174 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
7175 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
7176 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
7177 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
7178 * arm-tdep.c (struct frame_unwind): Make static.
7179 * auto-load.c (auto_load_safe_path_vec): Make static.
7180 * csky-tdep.c (csky_stub_unwind): Make static.
7181 * gdbarch.c (gdbarch_data_registry): Make static.
7182 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
7183 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
7184 * i386-tdep.c (i386_frame_setup_skip_insns,
7185 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
7186 Make static.
7187 * infrun.c (observer_mode): Make static.
7188 * linux-nat.c (sigchld_action): Make static.
7189 * linux-thread-db.c (thread_db_list): Make static.
7190 * maint-test-options.c (maintenance_test_options_list):
7191 * mep-tdep.c (mep_csr_registers): Make static.
7192 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
7193 (stats): Make static.
7194 * nat/linux-osdata.c (struct osdata_type): Make static.
7195 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
7196 * progspace.c (last_program_space_num): Make static.
7197 * python/py-param.c (struct parm_constant): Remove struct type
7198 name.
7199 (parm_constants): Make static.
7200 * python/py-record-btrace.c (btpy_list_methods): Make static.
7201 * python/py-record.c (recpy_gap_type): Make static.
7202 * record.c (record_goto_cmdlist): Make static.
7203 * regcache.c (regcache_descr_handle): Make static.
7204 * registry.h (DEFINE_REGISTRY): Make definition static.
7205 * symmisc.c (std_in, std_out, std_err): Make static.
7206 * top.c (previous_saved_command_line): Make static.
7207 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
7208 static.
7209 * unittests/command-def-selftests.c (nr_duplicates,
7210 nr_invalid_prefixcmd, lists): Make static.
7211 * unittests/observable-selftests.c (test_notification): Make
7212 static.
7213 * unittests/optional/assignment/1.cc (counter): Make static.
7214 * unittests/optional/assignment/2.cc (counter): Make static.
7215 * unittests/optional/assignment/3.cc (counter): Make static.
7216 * unittests/optional/assignment/4.cc (counter): Make static.
7217 * unittests/optional/assignment/5.cc (counter): Make static.
7218 * unittests/optional/assignment/6.cc (counter): Make static.
7219
a6c11cbb
JS
72202021-01-20 Joel Sherrill <joel@rtems.org>
7221
7222 PR gdb/27219
7223 * remote.c (struct remote_thread_info) <resume_state>: Rename
7224 to...
7225 <get_resume_state>: ... this.
7226 (remote_target::resume): Adjust.
7227 (remote_target::commit_resume): Adjust.
7228 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
7229
6f52fdf4
SDJ
72302021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
7231 Tom Tromey <tom@tromey.com>
7232
7233 * stap-probe.c (stap_parse_single_operand): Handle '!'
7234 operator.
7235 (stap_parse_argument_conditionally): Likewise.
7236 Skip spaces after processing open-parenthesis sub-expression.
7237 (stap_parse_argument_1): Skip spaces after call to
7238 stap_parse_argument_conditionally.
7239 Handle case when right-side expression is a parenthesized
7240 sub-expression.
7241 Skip spaces after call to stap_parse_argument_1.
7242
1c3b85ad
LS
72432021-01-19 Lancelot SIX <lsix@lancelotsix.com>
7244
7245 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
7246
a9a87d35
LM
72472021-01-19 Luis Machado <luis.machado@linaro.org>
7248
7249 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
7250 memory and save data.
7251 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
7252 (trad_frame_set_unknown, trad_frame_set_value_bytes)
7253 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
7254 (trad_frame_value_bytes_p): Remove.
7255 (trad_frame_reset_saved_regs): Adjust documentation.
7256 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
7257 constructor and reset the state of the registers.
7258 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
7259 (trad_frame_value_bytes_p, trad_frame_set_value)
7260 (trad_frame_set_realreg, trad_frame_set_addr)
7261 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
7262 (trad_frame_set_reg_realreg): Update to call member function.
7263 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
7264 (trad_frame_get_prev_register): Likewise.
7265
7266 * aarch64-tdep.c (aarch64_analyze_prologue)
7267 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
7268 (aarch64_prologue_prev_register): Update to use member functions.
7269 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
7270 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
7271 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
7272 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
7273 (arm_make_epilogue_frame_cache): Likewise.
7274 * avr-tdep.c (avr_frame_unwind_cache)
7275 (avr_frame_prev_register): Likewise.
7276 * cris-tdep.c (cris_scan_prologue): Likewise.
7277 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
7278 * frv-tdep.c (frv_analyze_prologue): Likewise.
7279 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
7280 * lm32-tdep.c (lm32_frame_cache): Likewise.
7281 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
7282 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
7283 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
7284 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
7285 (reset_saved_regs): Adjust to set realreg.
7286 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
7287 call member functions.
7288 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
7289 * s390-tdep.c (s390_prologue_frame_unwind_cache)
7290 (s390_backchain_frame_unwind_cache): Likewise.
7291 * score-tdep.c (score7_analyze_prologue)
7292 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
7293 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
7294 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
7295 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
7296 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
7297 * tilegx-tdep.c (tilegx_analyze_prologue)
7298 (tilegx_frame_cache): Likewise.
7299 * v850-tdep.c (v850_frame_cache): Likewise.
7300 * vax-tdep.c (vax_frame_cache): Likewise.
7301
bdec2917
LM
73022021-01-19 Luis Machado <luis.machado@linaro.org>
7303
7304 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
7305 of buffer + length.
7306 (put_frame_register_bytes): Likewise.
7307 Adjust documentation.
7308 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
7309 (safe_frame_unwind_memory): Likewise.
7310 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
7311 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
7312 gdb::array_view.
7313 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
7314 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
7315 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
7316 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
7317 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
7318 * dwarf2/loc.c (rw_pieced_value): Likewise.
7319 * hppa-tdep.c (hppa_frame_cache): Likewise.
7320 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
7321 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
7322 * i386-linux-tdep.c (i386_linux_sigtramp_start)
7323 (i386_linux_rt_sigtramp_start): Likewise.
7324 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
7325 * i386-tdep.c (i386_register_to_value): Likewise.
7326 * i387-tdep.c (i387_register_to_value): Likewise.
7327 * ia64-tdep.c (ia64_register_to_value): Likewise.
7328 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
7329 (m32r_linux_rt_sigtramp_start): Likewise.
7330 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
7331 * m68k-tdep.c (m68k_register_to_value): Likewise.
7332 * mips-tdep.c (mips_register_to_value)
7333 (mips_value_to_register): Likewise.
7334 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
7335 (ppcfbsd_sigtramp_frame_cache): Likewise.
7336 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
7337 (ppcobsd_sigtramp_frame_cache): Likewise.
7338 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
7339 (rs6000_register_to_value): Likewise.
7340 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7341 * tramp-frame.c (tramp_frame_start): Likewise.
7342 * valops.c (value_assign): Likewise.
7343
ccbe4c82
LM
73442021-01-19 Luis Machado <luis.machado@linaro.org>
7345
7346 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
7347 array_view.
7348 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
7349 instead of buffer and size.
7350 (trad_frame_set_reg_value_bytes): Likewise.
7351 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
7352 (trad_frame_set_value_bytes): Likewise.
7353
0e7620dc
MF
73542021-01-18 Mike Frysinger <vapier@gentoo.org>
7355
7356 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
7357
6a9ad81c
AB
73582021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
7359
7360 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
7361 (riscv_fbsd_gregset): Use riscv_supply_regset.
7362 (riscv_fbsd_fpregset): Likewise.
7363 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
7364 (riscv_linux_fregset): Likewise.
7365 * riscv-tdep.c (riscv_supply_regset): Define new function.
7366 * riscv-tdep.h (riscv_supply_regset): Declare new function.
7367
d3d7d1ba
TV
73682021-01-18 Tom de Vries <tdevries@suse.de>
7369
7370 PR tdep/27172
7371 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
7372 New macro.
7373 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
7374 for SEGV_BNDERR.
7375
aa2838cc
SM
73762021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7377
7378 * remote.c (class remote_target) <remote_hostio_send_command,
7379 remote_hostio_parse_result>: Constify parameter.
7380 (remote_hostio_parse_result): Likewise.
7381 (remote_target::remote_hostio_send_command): Adjust.
7382 (remote_target::remote_hostio_pread_vFile): Adjust.
7383 (remote_target::fileio_readlink): Adjust.
7384 (remote_target::fileio_fstat): Adjust.
7385
b5c8f22d
SM
73862021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7387
7388 * remote.c (remote_target::start_remote): Move wait_status to
7389 narrower scope.
7390
e3b2741b
SM
73912021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7392
7393 * remote.c (class remote_target):
7394 <add_current_inferior_and_thread>: Constify parameter.
7395 (stop_reply_extract_thread): Likewise.
7396 (remote_target::get_current_thread): Likewise.
7397 (remote_target::add_current_inferior_and_thread): Likewise.
7398
cecb1912
SM
73992021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7400
7401 * remote.c (class remote_target)
7402 <remote_unpack_thread_info_response,
7403 parse_threadlist_response>: Constify parameter and/or return
7404 value and or local variable.
7405 (stub_unpack_int): Likewise.
7406 (unpack_nibble): Likewise.
7407 (unpack_byte): Likewise.
7408 (unpack_int): Likewise.
7409 (unpack_string): Likewise.
7410 (unpack_threadid): Likewise.
7411 (remote_target::remote_unpack_thread_info_response): Likewise.
7412 (remote_target::parse_threadlist_response): Likewise.
7413
5a11fff0
AB
74142021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
7415
7416 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
7417
17e89137
LS
74182021-01-14 Lancelot Six <lsix@lancelotsix.com>
7419
7420 * MAINTAINERS (Write After Approval): Add myself.
7421
58eadc4b
BE
74222021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7423
7424 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
7425 because is_trivially_default_constructible was first implemented with
7426 gcc-5.
7427
5fae2a2c
TV
74282021-01-14 Tom de Vries <tdevries@suse.de>
7429
7430 PR breakpoints/27151
7431 * objfiles.h (in_plt_section): Handle .plt.sec.
7432
8f66807b
AB
74332021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7434
7435 PR gdb/26819
7436 * remote.c
7437 (remote_target::select_thread_for_ambiguous_stop_reply): New
7438 member function.
7439 (remote_target::process_stop_reply): Call
7440 select_thread_for_ambiguous_stop_reply.
7441
bd497355
SM
74422021-01-13 Simon Marchi <simon.marchi@efficios.com>
7443
7444 * record-btrace.c (class record_btrace_target): Remove.
7445 (record_btrace_target::commit_resume): Remove.
7446 * record-full.c (class record_full_target): Remove.
7447 (record_full_target::commit_resume): Remove.
7448
c9d22089
SM
74492021-01-13 Simon Marchi <simon.marchi@efficios.com>
7450
7451 * remote.c (enum class resume_state): New.
7452 (struct resumed_pending_vcont_info): New.
7453 (struct remote_thread_info) <resume_state, set_not_resumed,
7454 set_resumed_pending_vcont, resumed_pending_vcont_info,
7455 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
7456 New.
7457 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
7458 (remote_target::remote_add_thread): Adjust.
7459 (remote_target::process_initial_stop_replies): Adjust.
7460 (remote_target::resume): Adjust.
7461 (remote_target::commit_resume): Rely on state in
7462 remote_thread_info and not on tp->executing.
7463 (remote_target::process_stop_reply): Adjust.
7464
d8d1feb4
SM
74652021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7466
7467 * arc-tdep.h (arc_debug_printf): New.
7468 * arc-tdep.c: Use arc_debug_printf.
7469 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
7470 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
7471 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
7472
fb0f5031
SM
74732021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7474
7475 * arc-tdep.h (arc_debug): Change type to bool.
7476 * arc-tdep.c (arc_debug): Change type to bool.
7477 (arc_analyze_prologue): Adjust.
7478 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
7479 * arc-linux-nat.c (ps_get_thread_area): Adjust.
7480
5bf7e91b
SM
74812021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7482
7483 * auto-load.c (auto_load_objfile_script_1): Use bool.
7484 (execute_script_contents): Use bool.
7485
db972fce
SM
74862021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7487
7488 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
7489 comment here.
7490 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
7491 comment to header.
7492 * extension-priv.h (struct extension_language_script_ops)
7493 <auto_load_enabled>: Return bool.
7494 * extension.h (ext_lang_auto_load_enabled): Return bool, move
7495 comment here.
7496 * extension.c (ext_lang_auto_load_enabled): Return bool, move
7497 comment to header.
7498 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
7499 move comment here.
7500 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
7501 move comment to header.
7502 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
7503 move comment here.
7504 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
7505 move comment to header.
7506
5e12f48f
SM
75072021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7508
7509 * auto-load.h (file_is_auto_load_safe): Change return type to
7510 bool, move comment here.
7511 * auto-load.c (file_is_auto_load_safe): Change return type and
7512 advice_printed to bool. Move comment to header.
7513
54ca9002
SM
75142021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7515
7516 * jit.c (jit_debug_printf): New, use throughout file.
7517
24a7f1b5
SM
75182021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7519
7520 * infrun.c (normal_stop): Fix indentation.
7521
fe7a351a
SM
75222021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7523
7524 * top.h (readnow_symbol_files, readnever_symbol_files): Move
7525 declarations to ...
7526 * symfile.h: ... here.
7527 * symfile.c: Update doc.
7528
16e9019e
SM
75292021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7530
7531 * target.h (baud_rate, serial_parity): Move declarations...
7532 * serial.h: ... here.
7533 * main.c: Include serial.h.
7534 * serial.c (baud_rate, serial_parity): Update doc.
7535
b2f2ae0d
SM
75362021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7537
7538 * top.c (pre_init_ui_hook): Remove.
7539
5291fe3c
SP
75402021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7541
7542 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
7543 (aarch64_vnv_type): Add "bf" type in h field of v registers.
7544 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
7545 * features/aarch64-fpu.xml: Add bfloat16 type.
7546
ce38f5ed
AB
75472021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7548
7549 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
7550
7c654b71
AB
75512021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7552
7553 * f-exp.y (dot_ops): Rename to...
7554 (fortran_operators): ...this. Add a header comment. Add symbol
7555 based operators.
7556 (yylex): Update to use fortran_operators not dot_ops. Remove
7557 special handling for '**', this is now included in
7558 fortran_operators.
7559
c6185dce
SM
75602021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7561
7562 * arch/aarch64-insn.h (aarch64_debug_printf): New.
7563 * arch/aarch64-insn.c: Use aarch64_debug_printf.
7564 * aarch64-tdep.c: Use aarch64_debug_printf.
7565
eef401dc
SM
75662021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7567
7568 * solib-aix.c (solib_aix_debug_printf): New, use throughout
7569 file.
7570
062eaacb
SM
75712021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7572
7573 * jit.c (jit_debug): Change type to bool.
7574 (_initialize_jit): Adjust.
7575
54585eee
TT
75762021-01-09 Tom Tromey <tom@tromey.com>
7577
7578 PR compile/23672
7579 * compile/compile.c (compile_to_object): Avoid crash when
7580 osabi_triplet_regexp returns NULL.
7581
bc167b6b
TT
75822021-01-09 Tom Tromey <tom@tromey.com>
7583
7584 * tracepoint.h (class collection_list) <append_exp>: Take a
7585 std::string.
7586 * tracepoint.c (collection_list::append_exp): Take a std::string.
7587 (encode_actions_1): Update.
7588
8fc48b79
TT
75892021-01-08 Tom Tromey <tromey@adacore.com>
7590
7591 * parse.c (parse_expression): Add void_context_p parameter. Use
7592 parse_exp_in_context.
7593 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
7594 parse_expression.
7595 (print_command, call_command): Update.
7596 * expression.h (parse_expression): Add void_context_p parameter.
7597
3c8c6de2
AB
75982021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7599
7600 * value.c (set_value_component_location): Adjust the VALUE_LVAL
7601 for internalvar components that have a dynamic location.
7602
1940319c
TV
76032021-01-08 Tom de Vries <tdevries@suse.de>
7604
7605 PR gdb/26881
7606 * breakpoint.c (create_exception_master_breakpoint_probe)
7607 (create_exception_master_breakpoint_hook): Factor out
7608 of ...
7609 (create_exception_master_breakpoint): ... here. Only try to install
7610 the master exception breakpoint in objfile.debug using the
7611 _Unwind_DebugHook method, if the install using probes in objfile
7612 failed.
7613
e3436813
AB
76142021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7615
7616 * f-lang.c (fortran_value_subarray): Call value_from_component.
7617
e904f56d
MF
76182021-01-07 Mike Frysinger <vapier@gentoo.org>
7619
7620 * remote-sim.c: Include memory-map.h.
7621 (gdbsim_target): Define memory_map override.
7622 (gdbsim_target::memory_map): Define.
7623
959d6a67
TT
76242021-01-07 Tom Tromey <tromey@adacore.com>
7625
7626 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
7627
d4813f10
TT
76282021-01-07 Tom Tromey <tromey@adacore.com>
7629
7630 * ada-lang.c (add_component_interval): Start loop using vector's
7631 updated size.
7632
b49180ac
TT
76332021-01-06 Tom Tromey <tromey@adacore.com>
7634
7635 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
7636 Do not cast result.
7637 * valarith.c (fixed_point_binop): Handle multiplication
7638 and division specially.
7639 * valops.c (value_to_gdb_mpq): New function.
7640 (value_cast_to_fixed_point): Use it.
7641
55195361
HD
76422021-01-05 Hannes Domani <ssbssa@yahoo.de>
7643
7644 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7645 Call wnoutrefresh instead of tui_win_info::refresh_window.
7646
1b6d4bb2
HD
76472021-01-05 Hannes Domani <ssbssa@yahoo.de>
7648
7649 * tui/tui-source.c (tui_source_window::show_line_number):
7650 Redraw second space after line number.
7651
b5ff370e
HD
76522021-01-05 Hannes Domani <ssbssa@yahoo.de>
7653
7654 PR tui/26927
7655 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7656 Fix source pad size in prefresh.
7657 (tui_source_window_base::show_source_content): Grow source pad
7658 if necessary.
7659
c68ea49f
MF
76602021-01-04 Mike Frysinger <vapier@gentoo.org>
7661
7662 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
7663 (bfin_frame_align): Use align_down.
7664
e4ad960a
TV
76652021-01-04 Tom de Vries <tdevries@suse.de>
7666
7667 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
7668 terminators that do not terminate anything.
7669
3ec3145c
SM
76702021-01-04 Simon Marchi <simon.marchi@efficios.com>
7671
7672 * debug.c (debug_print_depth): New.
7673 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
7674 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
7675 * infrun.c (start_step_over): Use
7676 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7677 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
7678 INFRUN_SCOPED_DEBUG_START_END.
7679 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7680
e71daf80
SM
76812021-01-04 Simon Marchi <simon.marchi@efficios.com>
7682
7683 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
7684
335709bc
SM
76852021-01-04 Simon Marchi <simon.marchi@efficios.com>
7686
7687 * utils.c (vfprintf_unfiltered): Print timestamp only when
7688 previous debug output ended with a newline.
7689
098caef4
LM
76902021-01-04 Luis Machado <luis.machado@linaro.org>
7691
7692 Update all users of trad_frame_saved_reg to use the new member
7693 functions.
7694
7695 Remote all struct keywords from declarations of trad_frame_saved_reg
7696 types, except on forward declarations.
7697
7698 * aarch64-tdep.c: Update.
7699 * alpha-mdebug-tdep.c: Update.
7700 * alpha-tdep.c: Update.
7701 * arc-tdep.c: Update.
7702 * arm-tdep.c: Update.
7703 * avr-tdep.c: Update.
7704 * cris-tdep.c: Update.
7705 * csky-tdep.c: Update.
7706 * frv-tdep.c: Update.
7707 * hppa-linux-tdep.c: Update.
7708 * hppa-tdep.c: Update.
7709 * hppa-tdep.h: Update.
7710 * lm32-tdep.c: Update.
7711 * m32r-linux-tdep.c: Update.
7712 * m32r-tdep.c: Update.
7713 * m68hc11-tdep.c: Update.
7714 * mips-tdep.c: Update.
7715 * moxie-tdep.c: Update.
7716 * riscv-tdep.c: Update.
7717 * rs6000-tdep.c: Update.
7718 * s390-linux-tdep.c: Update.
7719 * s390-tdep.c: Update.
7720 * score-tdep.c: Update.
7721 * sparc-netbsd-tdep.c: Update.
7722 * sparc-sol2-tdep.c: Update.
7723 * sparc64-fbsd-tdep.c: Update.
7724 * sparc64-netbsd-tdep.c: Update.
7725 * sparc64-obsd-tdep.c: Update.
7726 * sparc64-sol2-tdep.c: Update.
7727 * tilegx-tdep.c: Update.
7728 * v850-tdep.c: Update.
7729 * vax-tdep.c: Update.
7730
7731 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7732 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
7733
7734 * trad-frame.c: Update.
7735 Remove TF_REG_* enum.
7736 (trad_frame_alloc_saved_regs): Add a static assertion to check for
7737 a trivially-constructible struct.
7738 (trad_frame_reset_saved_regs): Adjust to use member function.
7739 (trad_frame_value_p): Likewise.
7740 (trad_frame_addr_p): Likewise.
7741 (trad_frame_realreg_p): Likewise.
7742 (trad_frame_value_bytes_p): Likewise.
7743 (trad_frame_set_value): Likewise.
7744 (trad_frame_set_realreg): Likewise.
7745 (trad_frame_set_addr): Likewise.
7746 (trad_frame_set_unknown): Likewise.
7747 (trad_frame_set_value_bytes): Likewise.
7748 (trad_frame_get_prev_register): Likewise.
7749 * trad-frame.h: Update.
7750 (trad_frame_saved_reg_kind): New enum.
7751 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7752 <m_kind, m_reg>: New member fields.
7753 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7754 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7755 <is_addr, is_unknown, is_value_bytes>: New member functions.
7756
9898e882
SM
77572021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
7758
7759 * target-float.c: Fix typos.
7760
b66b4e65
HD
77612021-01-02 Hannes Domani <ssbssa@yahoo.de>
7762
7763 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7764
b5b5650a
JB
77652021-01-01 Joel Brobecker <brobecker@adacore.com>
7766
7767 * gdbarch.sh: Update copyright year range.
7768
3666a048
JB
77692021-01-01 Joel Brobecker <brobecker@adacore.com>
7770
7771 Update copyright year range in copyright header of all GDB files.
7772
ff7e39b6
JB
77732021-01-01 Joel Brobecker <brobecker@adacore.com>
7774
7775 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7776 to the list of directories to update.
7777
2b47c078
JB
77782021-01-01 Joel Brobecker <brobecker@adacore.com>
7779
7780 * top.c (print_gdb_version): Update copyright year.
7781
9e5e03df 77822021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 7783
476923f1 7784 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 7785
476923f1 7786For older changes see ChangeLog-2020.
c906108c
SS
7787\f
7788Local Variables:
7789mode: change-log
7790left-margin: 8
7791fill-column: 74
7792version-control: never
57da7796 7793coding: utf-8
c906108c 7794End:
This page took 3.176379 seconds and 4 git commands to generate.