]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Update the core file architecture if a target description is present
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
134df964
LM
12021-06-25 Luis Machado <luis.machado@linaro.org>
2
3 * corelow.c (core_target::core_target) Update to read target
4 description.
5
224506e9
SM
62021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * python/lib/gdb/__init__.py: Format.
9
ac0d67ed
SM
102021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
11
12 * infrun.c (do_target_wait): Remove wait_ptid parameter.
13 (fetch_inferior_event): Adjust.
14
4e317a76
SM
152021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
18 with name of chosen unwinder.
19 * python/py-unwind.c (pyuw_sniffer): Print name of chosen
20 unwinder in debug message.
21
80d1206d
AS
222021-06-22 Andreas Schwab <schwab@suse.de>
23
24 PR symtab/27999
25 * dwarf2/loc.c (decode_debug_loclists_addresses): Support
26 DW_LLE_start_end.
27
80dc83fd
AB
282021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * breakpoint.c (insert_bp_location): If we catch a
31 TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
32 been deleted.
33
96f842cb
AB
342021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * NEWS: Mention new target feature name.
37 * arch/riscv.c (riscv_create_target_description): GDB doesn't
38 currently create target descriptions containing vector registers.
39 * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
40 variable.
41 <operator==>: Also compare vlen.
42 <hash>: Also include vlen.
43 * riscv-tdep.c (riscv_feature_name_vector): New static global.
44 (struct riscv_vector_feature): New struct.
45 (riscv_vector_feature): New static global.
46 (riscv_register_reggroup_p): Ensure vector registers are part of
47 the 'all' group, and part of the 'vector' group.
48 (riscv_dwarf_reg_to_regnum): Handle vector registers.
49 (riscv_gdbarch_init): Check vector register feature.
50 * riscv-tdep.h: Add vector registers to GDB's internal register
51 numbers, and to the DWARF register numbers.
52
d52b8007
AB
532021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
54
55 * NEWS: Mention the two new methods.
56 * python/py-frame.c (frapy_level): New function.
57 (frame_object_methods): Register 'level' method.
58 * python/py-unwind.c (pending_framepy_level): New function.
59 (pending_frame_object_methods): Register 'level' method.
60
8b9c48b2
AB
612021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
62
63 * python/py-inferior.c (infpy_get_connection_num): Call
64 gdb_py_object_from_longest instead of PyLong_FromLong directly.
65
61e2dde2
AB
662021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
67
68 * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
69 saving user registers.
70
7e3941ac
MF
712021-06-19 Mike Frysinger <vapier@gentoo.org>
72
73 * acinclude.m4: Delete most m4_include's of ../config files.
74 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
75 * aclocal.m4: Regenerate.
76 * configure: Regenerate.
77
336b30e5
PA
782021-06-17 Pedro Alves <pedro@palves.net>
79
80 * scoped_ignore_signal.h (scoped_ignore_signal): Add
81 ConsumePending template parameter.
82 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
83 sigtimedwait if ConsumePending is false.
84 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
85 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
86 <m_ignore_signal>: Initialize with ConsumePending=false.
87
2af6d46f
PA
882021-06-17 Pedro Alves <pedro@palves.net>
89
90 * Makefile.in (SELFTESTS_SRCS): Add
91 unittests/scoped_ignore_signal-selftests.c.
92 * unittests/scoped_ignore_signal-selftests.c: New.
93
6a7f1c20
PA
942021-06-17 Pedro Alves <pedro@palves.net>
95
96 * gdbsupport/scoped_ignore_signal.h: New.
97 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
98 instead of <signal.h>. Don't include <unistd.h>.
99 (scoped_ignore_sigpipe): Remove.
100 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
101 instead of <signal.h>. Don't include <unistd.h>.
102 (lazy_init): New.
103 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
104 and lazy_init.
105
965febe5
PA
1062021-06-17 Pedro Alves <pedro@palves.net>
107
108 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
109 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
110 * inflow.h: Delete, moved to gdbsupport/ under a different name.
111 * ser-unix.c: Don't include "inflow.h". Include
112 "gdbsupport/scoped_ignore_sigttou.h".
113
82a5082e
PA
1142021-06-17 Pedro Alves <pedro@palves.net>
115
116 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
117 ...
118 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
119 tui_getc_1.
120 (cur_seq, start_sequence): New.
121 (tui_getc_1): Pass key escape sequences for curses control keys to
122 readline. Handle mouse and ctrl-l here.
123 (tui_resize_all): Disable/reenable the keypad if the command
124 window has the focus too.
125 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
126 setting.
127 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
128
7daf500d
SM
1292021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
130
131 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
132
8457e5ec
TV
1332021-06-16 Tom de Vries <tdevries@suse.de>
134
135 PR symtab/26327
136 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
137 (dwarf2_cu::get_builder): Declare and move ...
138 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
139 of ancestor. Assert return value is non-null.
140 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
141 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
142 (dwarf2_per_objfile): Add sym_cu field.
143
93df3340
AM
1442021-06-15 Alan Modra <amodra@gmail.com>
145
146 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
147
483ab96a
MF
1482021-06-14 Mike Frysinger <vapier@gentoo.org>
149
150 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
151 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
152
09db4332
JB
1532021-06-14 John Baldwin <jhb@FreeBSD.org>
154
155 * configure.ac: Check for <sys/procctl.h>.
156 * config.in, configure: Regenerate.
157 * fbsd-nat.c: Include <sys/procctl.h> if present.
158 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
159 (fbsd_nat_target::create_inferior)
160 (fbsd_nat_target::supports_disable_randomization): New.
161 * fbsd-nat.h (fbsd_nat_target::create_inferior)
162 (fbsd_nat_target::supports_disable_randomization): New.
163
739025e8
BE
1642021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
165
166 * compile/compile.c: Include missing header signal.h.
167
d424629d
JB
1682021-06-12 John Baldwin <jhb@FreeBSD.org>
169
170 * remote.c (remote_new_objfile): Fix indentation.
171
e2b9ea4b
KB
1722021-06-11 Kevin Buettner <kevinb@redhat.com>
173
174 * solib.c (libpthread_name_p): Match "libc" in addition
175 to "libpthread".
176 * linux-thread-db.c (libpthread_objfile_p): New function.
177 (libpthread_name_p): Adjust preexisting callers to use
178 libpthread_objfile_p().
179
873793ae
SM
1802021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
181
182 * dwarf2/loc.h (struct call_site_stuff): Remove.
183
48ec4c05
TT
1842021-06-11 Tom Tromey <tom@tromey.com>
185
186 PR rust/23427
187 * rust-parse.c (rust_parser::lex_identifier): Handle raw
188 identifiers.
189 (rust_lex_tests): Add raw identifier tests.
190
f9e59d06
LS
1912021-06-08 Lancelot Six <lsix@lancelotsix.com>
192
193 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
194 instead of '== None'.
195 (FrameVars): Use 'is not None' instead of '!= None'.
196 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
197 Use 'is None' instead of '== None' and 'is not None' instead of '!=
198 None'.
199
122373f7
SM
2002021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
201
202 * inferior.h (class inferior) <in_initial_library_scan>: New.
203 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
204 * infrun.c (follow_fork_inferior): Likewise.
205 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
206 by try_thread_db_load_1
207 (thread_db_load): Return early if in_initial_library_scan is
208 set.
209 * remote.c (remote_new_objfile): Return early if
210 in_initial_library_scan is set.
211
1b453aed
PA
2122021-06-07 Pedro Alves <pedro@palves.net>
213
214 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
215 ctor.
216 * symtab.h (struct symbol): Add defaulted copy assignment
217 operator.
218
fa6ec8ef
PA
2192021-06-07 Pedro Alves <pedro@palves.net>
220
221 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
222 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
223 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
224 local.
225
c57eb1a2
PA
2262021-06-07 Pedro Alves <pedro@palves.net>
227
228 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
229 (nat_sigval_t): ... this and remove typedef of same name.
230 (struct nat_siginfo): Rename to ...
231 (nat_siginfo_t): ... this and remove typedef of same name.
232 (struct compat_sigval): Rename to ...
233 (compat_sigval_t): ... this and remove typedef of same name.
234 (struct compat_siginfo): Rename to ...
235 (compat_siginfo_t): ... this and remove typedef of same name.
236 (struct compat_x32_siginfo): Rename to ...
237 (compat_x32_siginfo_t): ... this and remove typedef of same name.
238 (amd64_linux_siginfo_fixup_common): Adjust.
239
d8ca8e9f
PA
2402021-06-07 Pedro Alves <pedro@palves.net>
241
242 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
243 __attribute__ __aligned__ from the typedef to the struct.
244
a12a15e7
AB
2452021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
246
247 PR gdb/27847
248 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
249 type_align, and spot case where the alignment is unknown.
250
ecac8d1c
CL
2512021-06-07 Carl Love <cel@us.ibm.com>
252
253 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
254 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
255 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
256 ppc64_pcrel_linkage2_target): New functions.
257 (ppc64_standard_linkage9, ppc64_standard_linkage10,
258 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
259 instruction patterns.
260 (ppc64_standard_linkage9, ppc64_standard_linkage10,
261 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
262 in define MAX expression.
263 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
264 ppc64_standard_linkage10, ppc64_standard_linkage11,
265 ppc64_standard_linkage12.
266 * (ppc_insn_prefix_dform): New function.
267
cfa8e270
SM
2682021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
269
270 PR gdb/27899
271 * sparc-nat.c (sparc_fetch_inferior_registers): Set
272 inferior_ptid instead of using switch_to_thread.
273 (sparc_store_inferior_registers): Likewise.
274
4a977544
BE
2752021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
276
277 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
278 (compile_to_object): Ignore SIGPIPE before calling the plugin.
279
8ff8c543
TT
2802021-06-05 Tom Tromey <tom@tromey.com>
281
282 * data-directory/Makefile.in (Makefile): Use correct directory
283 name.
284
19d6d783
TT
2852021-06-05 Tom Tromey <tom@tromey.com>
286
287 * data-directory/Makefile.in (Makefile): Rewrite.
288
b316465f
TT
2892021-06-05 Tom Tromey <tromey@adacore.com>
290
291 * configure: Rebuild.
292 * configure.ac: Add ACX_NONCANONICAL_TARGET.
293
ae61ef2c
SV
2942021-06-05 Shahab Vahedi <shahab@synopsys.com>
295
296 * NEWS: Document 'set disassembler-options' support for the ARC
297 target.
298 * arc-tdep.c (arc_gdbarch_init): Set
299 'gdbarch_valid_disassembler_options'.
300
386de171
TT
3012021-06-04 Tom Tromey <tromey@adacore.com>
302
303 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
304 parameter.
305 * dwarf2/loc.c (dwarf2_evaluate_property) <case
306 PROP_VARIABLE_NAME>: New case.
307 (compute_var_value): New function.
308 (sect_variable_value): Use compute_var_value.
309 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
310 (var_decl_name): New function.
311 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
312 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
313 constant.
314 (union dynamic_prop_data) <variable_name>: New member.
315 (struct dynamic_prop) <variable_name, set_variable_name>: New
316 methods.
317
4351271e
AB
3182021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
319
320 * remote.c (remote_target)
321 <select_thread_for_ambiguous_stop_reply>: Add additional debug
322 output.
323
a5375566
HD
3242021-06-04 Hannes Domani <ssbssa@yahoo.de>
325
326 * python/py-tui.c (class tui_py_window): Add click function.
327 (tui_py_window::click): Likewise.
328
1bace02a
HD
3292021-06-04 Hannes Domani <ssbssa@yahoo.de>
330
331 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
332 * tui/tui-data.h (struct tui_win_info): Add click function.
333 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
334 (tui_deprep_terminal): Disable mouse events.
335 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
336 * tui/tui.c (tui_disable): Disable mouse events.
337
df5bc734
MH
3382021-06-03 Magne Hov <mhov@undo.io>
339
340 PR python/27841
341 * eval.c (expression::evaluate): Check inferior_ptid.
342
415c8100
PA
3432021-06-03 Pedro Alves <pedro@palves.net>
344
345 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
346 affiliation.
347 (Global Maintainers): Update my address.
348 (Write After Approval): Remove stale entry.
349
83810881
JB
3502021-06-03 John Baldwin <jhb@FreeBSD.org>
351
352 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
353 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
354 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
355 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
356 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
357 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
358 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
359 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
360 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
361 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
362 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
363 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
364 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
365 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
366 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
367 (fbsd_report_signal_info): New.
368 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
369 report_signal_info method.
370
4c958d79
MH
3712021-06-03 Magne Hov <mhov@undo.io>
372
373 * MAINTAINERS (Write After Approval): Add Magne Hov.
374
6ac5237c
HD
3752021-06-03 Hannes Domani <ssbssa@yahoo.de>
376
377 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
378 gdb.SYMBOL_LABEL_DOMAIN constant.
379
aeeb758d
JB
3802021-06-01 John Baldwin <jhb@FreeBSD.org>
381
382 * infrun.c (handle_inferior_event): Only call
383 gdbarch_displaced_step_restore_all_in_ptid if
384 gdbarch_supports_displaced_stepping is true.
385
906f72d4
TT
3862021-06-01 Tom Tromey <tromey@adacore.com>
387
388 * Makefile.in (all-data-directory): Remove.
389 (data-directory/Makefile): Remove.
390
ba56237d
TT
3912021-06-01 Tom Tromey <tromey@adacore.com>
392
393 * configure: Rebuild.
394 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
395
2adf1781
TT
3962021-06-01 Tom Tromey <tromey@adacore.com>
397
398 * silent-rules.mk (ECHO_CC): New variable.
399
bdbbcd57
TT
4002021-06-01 Tom Tromey <tromey@adacore.com>
401
402 * Makefile.in (SUBDIRS): Add testsuite.
403 (all): Don't exclude testsuite.
404
f99d1d37
TT
4052021-06-01 Tom Tromey <tromey@adacore.com>
406
407 * configure.ac: Copy some code from testsuite/configure.ac.
408 (enable_libctf): Subst this, not ENABLE_LIBCTF.
409 * configure: Rebuild.
410
17d305ef
TV
4112021-06-01 Tom de Vries <tdevries@suse.de>
412
413 PR symtab/26096
414 * minsyms.c (msymbol_is_cold_clone): New function.
415 (msymbol_is_function): Use msymbol_is_cold_clone.
416
9b715c68
AB
4172021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
418 Andrew Burgess <andrew.burgess@embecosm.com>
419
420 PR gdb/14383
421 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
422 (ALLDEPFILES): Add arm-none-tdep.c
423 * arm-none-tdep.c: New file.
424 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
425
b4b3e2de
AB
4262021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
427 Richard Bunt <richard.bunt@arm.com>
428
429 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
430 check for why the backtrace stopped.
431
9ea36493
SM
4322021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
433
434 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
435 Update all callers.
436 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
437 signature parameter, update all callers.
438 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
439 signature parameter.
440
46c6bcf6
SM
4412021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
442
443 * dwarf2/read.h (signatured_type_up): New, use where possible.
444
4631503b
SM
4452021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
446
447 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
448
cc653233
TT
4492021-05-30 Tom Tromey <tom@tromey.com>
450
451 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
452 is_debug_types.
453 (create_signatured_type_table_from_index)
454 (create_signatured_type_table_from_debug_names, add_type_unit)
455 (read_comp_units_from_section): Update.
456
c96e8b04
TT
4572021-05-30 Tom Tromey <tom@tromey.com>
458
459 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
460 m_num_psymtabs>: Remove.
461 (resize_symtabs): Update.
462 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
463 (dwarf2_per_bfd::allocate_signatured_type): Update.
464
24b21115
SM
4652021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
466
467 * Fix tab after space indentation issues throughout.
468
01add95b
SM
4692021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
470
471 * Fix some indentation mistakes throughout.
472
055c879f
SM
4732021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
474
475 * breakpoint.h (iterate_over_bp_locations): Remove. Update
476 users to use all_bp_locations.
477 (all_bp_locations): New.
478 * breakpoint.c (all_bp_locations): Make non-static.
479 (iterate_over_bp_locations): Remove.
480
240edef6
SM
4812021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
482
483 * breakpoint.h (iterate_over_breakpoints): Remove. Update
484 callers to use all_breakpoints or all_breakpoints_safe.
485 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
486 all_breakpoints_safe): Move here.
487 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
488 non-static.
489 (iterate_over_breakpoints): Remove.
490 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
491 Return void.
492 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
493 return value logic.
494 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
495
e0d9a270
SM
4962021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
497
498 * breakpoint.c (get_first_locp_gte_addr): Remove.
499 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
500 all_bp_locations_at_addr.
501 (struct bp_locations_at_addr_range): New.
502 (all_bp_locations_at_addr): New.
503 (bp_locations_compare_addrs): New.
504
48d7020b
SM
5052021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
506
507 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
508 all_bp_locations.
509 (all_bp_locations): New.
510
5d51cd5d
SM
5112021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
512
513 * breakpoint.c (bp_locations): Change to std::vector, update all
514 users.
515 (bp_locations_count): Remove.
516 (update_global_location_list): Change to work with indices
517 rather than bp_location**.
518
40cb8ca5
SM
5192021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
520
521 * breakpoint.h (bp_locations_range): New.
522 (struct breakpoint) <locations>: New. Use where possible.
523
f6d17b2b
SM
5242021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
525
526 * breakpoint.h (all_tracepoints): Remove.
527 (breakpoint_iterator): Move here.
528 (struct tracepoint_filter): New.
529 (tracepoint_iterator): New.
530 (tracepoint_range): New.
531 (all_tracepoints): New.
532 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
533 all_tracepoints.
534 (breakpoint_iterator): Move to header.
535 (all_tracepoints): New.
536 * tracepoint.c (start_tracing): Adjust.
537
1428b37a
SM
5382021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
539
540 * breakpoint.c (breakpoint_safe_range): New.
541 (all_breakpoints_safe): New. Use instead of
542 ALL_BREAKPOINTS_SAFE where possible.
543
43892fdf
SM
5442021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
545
546 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
547 all_breakpoints.
548 (breakpoint_iterator): New.
549 (breakpoint_range): New.
550 (all_breakpoints): New.
551
bdef5723
HD
5522021-05-27 Hannes Domani <ssbssa@yahoo.de>
553
554 * python/py-tui.c (tui_py_window::output): Add full_window
555 argument.
556 (gdbpy_tui_write): Parse "full_window" argument.
557
d5a6313e
SM
5582021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
559
560 * make-init-c: Add option to reverse function calls.
561
f39632d9
SM
5622021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
563
564 * Makefile.in (INIT_FILES_FILTER_OUT): New.
565 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
566 (stamp-init): Use make-init-c.
567 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
568 * silent-rules.mk (ECHO_INIT_C): Change.
569 * make-init-c: New file.
570
5e84b7ee
SM
5712021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
572
573 * command.h (add_alias_cmd): Accept target as
574 cmd_list_element. Update callers.
575
e0f25bd9
SM
5762021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
577
578 * command.h (add_info_alias): Accept target as
579 cmd_list_element. Update callers.
580
3947f654
SM
5812021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * command.h (add_com_alias): Accept target as
584 cmd_list_element. Update callers.
585
7bd22f56
SM
5862021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
587
588 * python/py-param.c (add_setshow_generic): Use return values of
589 add_setshow functions.
590
9f260536
SM
5912021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
592
593 * mi/mi-main.c (_initialize_mi_main):
594 * python/py-auto-load.c (gdbpy_initialize_auto_load):
595 * remote.c (_initialize_remote):
596
af7f8f52
SM
5972021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
598
599 * command.h (set_show_commands): New.
600 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
601 add_setshow_boolean_cmd, add_setshow_filename_cmd,
602 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
603 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
604 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
605 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
606 Return set_show_commands. Adjust callers.
607 * cli/cli-decode.c (add_setshow_cmd_full): Return
608 set_show_commands, remove result parameters, adjust callers.
609
248f7165
TV
6102021-05-27 Tom de Vries <tdevries@suse.de>
611
612 PR symtab/27919
613 * dwarf2/read.c (process_psymtab_comp_unit):
614
2152b4fd
TV
6152021-05-27 Tom de Vries <tdevries@suse.de>
616
617 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
618 error.
619
6dcd1193
TV
6202021-05-27 Tom de Vries <tdevries@suse.de>
621
622 PR symtab/27898
623 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
624 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
625 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
626 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
627 load_all_dies init.
628 (dwarf2_per_cu_data): Remove load_all_dies field.
629
11bb5c41
SM
6302021-05-26 Simon Marchi <simon.marchi@efficios.com>
631
632 * regcache.c (reg_buffer::reg_buffer): Default-initialize
633 m_registers array.
634
ef5f598c
TT
6352021-05-26 Tom Tromey <tom@tromey.com>
636
637 * dwarf2/read.c (allocate_type_unit_groups_table)
638 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
639 htab_delete_entry.
640 (free_line_header_voidp): Remove.
641 * completer.c
642 (completion_tracker::completion_hash_entry::deleter): Remove.
643 (completion_tracker::discard_completions): Use htab_delete_entry.
644 * utils.h (htab_delete_entry): New template function.
645
a56889ae
HD
6462021-05-24 Hannes Domani <ssbssa@yahoo.de>
647
648 * python/py-tui.c (tui_py_window::refresh_window):
649 Avoid flickering.
650
fbf3c4b9
TV
6512021-05-23 Tom de Vries <tdevries@suse.de>
652
653 PR tdep/27822
654 * target.h (struct target_ops): Mention target_thread_architecture in
655 read_description comment.
656 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
657 pid to determine if process is 64-bit or 32-bit.
658 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
659 Same.
660 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
661 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
662 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
663 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
664 Likewise, use pid to determine if kernel supports reading VFP
665 registers.
666
8569d6e1
PW
6672021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
668
669 * main.c (enum cmdarg_kind): Fix option type comments for
670 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
671
778ae9cc
TV
6722021-05-21 Tom de Vries <tdevries@suse.de>
673
674 PR testsuite/25047
675 * contrib/cc-with-tweaks.sh: Handle -l.
676
6d1a09b7
TV
6772021-05-21 Tom de Vries <tdevries@suse.de>
678
679 PR breakpoint/27889
680 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
681 objects. Call get_jiter_objfile_data with the_objfile.
682
1487a14e
SM
6832021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
684
685 * linespec.c (linespec_p): Remove. Replace all uses with
686 "linespec *".
687
bb6203bf
AH
6882021-05-20 Alexandra Hájková <ahajkova@redhat.com>
689 Pedro Alves <pedro@palves.net>
690
691 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
692 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
693 command_line_up instead of struct command_line.
694 (build_command_line): Likewise.
695 (get_command_line): Update the cmd function call parameter.
696 (process_next_line): Use unique_ptr command_line_up instead
697 of struct command_line.
698 (recurse_read_control_structure): Change the the type of
699 next to command_line_up.
700 (read_command_lines_1): Change type of `next' to be
701 command_line_up and update all references of `next'
702 accordingly.
703
ed3130b7
AH
7042021-05-20 Alexandra Hájková <ahajkova@redhat.com>
705
706 * MAINTAINERS (Write After Approval): Add myself.
707
5433e20e
JB
7082021-05-19 John Baldwin <jhb@FreeBSD.org>
709
710 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
711
a5523cc3
AH
7122021-05-18 Alexandra Hájková <ahajkova@redhat.com>
713
714 * inflow.c (new_tty): Do not leak tty.
715
cd53fa40
TT
7162021-05-17 Tom Tromey <tom@tromey.com>
717
718 * dwarf2/read.h: Update include.
719 * dwarf2/read.c: Update include.
720 * dwarf2/line-header.c: Update include.
721 * dwarf2/cu.h: Update include.
722 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
723 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
724 * Makefile.in (COMMON_SFILES): Update.
725
347212b8
TT
7262021-05-17 Tom Tromey <tom@tromey.com>
727
728 * dwarf2/read.c (maybe_queue_comp_unit)
729 (dwarf2_per_objfile::age_comp_units): Update.
730 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
731 dwarf2_cu methods.
732 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
733 add_dependence>: New methods.
734 <m_dependencies>: Add "m_" prefix. Now private.
735 <m_mark>: Add "m_" prefix.
736 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
737 (dwarf2_mark_helper): New function.
738 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
739
839118f9
TT
7402021-05-17 Tom Tromey <tom@tromey.com>
741
742 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
743 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
744 (dwarf2_cu::dwarf2_cu): Move to cu.c.
745 * dwarf2/cu.c: New file.
746 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
747
8ae78a44
TT
7482021-05-17 Tom Tromey <tom@tromey.com>
749
750 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
751 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
752 Move to cu.h.
753 * dwarf2/cu.h: New file.
754
c1c0a7e1
AB
7552021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * .dir-locals.el: Set sentence-end-double-space for all modes, and
758 set brace-list-open to 0 for C and C++ modes.
759
9e541c79
TT
7602021-05-17 Tom Tromey <tromey@adacore.com>
761
762 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
763 if frame is null.
764
59173216
TT
7652021-05-17 Tom Tromey <tromey@adacore.com>
766
767 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
768 (group_from_gid): Subtract one from strncpy length.
769
baea2f9d
TT
7702021-05-17 Tom Tromey <tromey@adacore.com>
771
772 * source.c (add_path): Check 'p' before using 'p[-1]'.
773
473ab964
TT
7742021-05-17 Tom Tromey <tromey@adacore.com>
775
776 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
777 (dwarf2_per_cu_data_up): New typedef.
778 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
779 <all_comp_units>: Use dwarf2_per_cu_data_up.
780 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
781 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
782 (create_cu_from_index_list): Likewise.
783 (create_signatured_type_table_from_index)
784 (create_cus_from_debug_names_list, add_type_unit)
785 (read_comp_units_from_section): Update.
786 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
787 (run_test): Update.
788
16e0020b
TT
7892021-05-17 Tom Tromey <tom@tromey.com>
790
791 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
792 (sort_tu_by_abbrev_offset): Remove.
793 (build_type_psymtabs): Update.
794
91e159e9
SM
7952021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
796
797 * py-project.toml: New.
798 * gdb-gdb.py.in: Re-format.
799
034dce7a
SM
8002021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
801
802 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
803 New, use it.
804 * command.h (cmd_func_p): Remove.
805 * cli/cli-decode.c (cmd_func_p): Remove.
806
1be99b11
SM
8072021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
808
809 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
810
99858724
SM
8112021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
812
813 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
814 to...
815 <alias_target>: ... this.
816 (add_alias_cmd): Rename old to target.
817 (add_info_alias): Rename old_name to target_name.
818 (add_com_alias): Likewise.
819
14b42fc4
SM
8202021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
821
822 * Rename "prefixlist" parameters to "subcommands" throughout.
823 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
824 <subcommands>: ... this.
825 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
826 (lookup_cmd_with_subcommands): ... this.
827
ecd0a6b3
SM
8282021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
829
830 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
831
413b49c2
SM
8322021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
833
834 * cli/cli-decode.h (prefixname): Make const, move implementation
835 to cli/cli-decode.c.
836 * cli/cli-decode.c (cmd_list_element::prefixname): New.
837
ea11a98d
WP
8382021-05-16 Weimin Pan <weimin.pan@oracle.com>
839
840 * ctfread.c (new_symbol): Set function address.
841 (read_func_kind_type): Remove incorrect type name setting.
842 Don't copy name returned from ctf_type_ame_raw throughout file.
843
887e7158
TT
8442021-05-14 Tom Tromey <tom@tromey.com>
845
846 * rust-lang.c (rust_language::val_print_struct)
847 (rust_language::print_enum): Use common_val_print, not
848 value_print_inner.
849
55789354
TBA
8502021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
851
852 * python/py-inferior.c (infpy_get_connection_num): New function.
853 (inferior_object_getset): Add a new element for 'connection_num'.
854 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
855
2f63ec5c
AB
8562021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
857
858 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
859 argument type, update and re-wrap, header comment.
860 (remote_target::commit_resumed): Convert any_process_wildcard and
861 may_global_wildcard_vcont from int to bool.
862
ecf25064
KC
8632021-05-14 Kent Cheung <kent.cheung@arm.com>
864
865 * cp-valprint.c (cp_print_value): Replaced duplicate code.
866 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
867 just before printing child values.
868 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
869 printing string representation.
870 * python/py-prettyprint.c (print_children): Check max_depth just
871 before printing child values.
872 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
873 printing string representation.
874
df68e12b
MF
8752021-05-14 Mike Frysinger <vapier@gentoo.org>
876
877 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
878 sim/callback.h & sim/sim.h.
879
183aaaf7
MF
8802021-05-13 Mike Frysinger <vapier@gentoo.org>
881
882 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
883 sim-regno.h include.
884
737358ba
SM
8852021-05-13 Simon Marchi <simon.marchi@efficios.com>
886
887 * inf-child.h (inf_child_target) <follow_exec>: New.
888 * inf-child.c (inf_child_target::follow_exec): New.
889
294c36eb
SM
8902021-05-13 Simon Marchi <simon.marchi@efficios.com>
891
892 * target.h (struct target_ops) <follow_exec>: Add ptid_t
893 parameter.
894 (target_follow_exec): Likewise.
895 * target.c (target_follow_exec): Add ptid_t parameter.
896 * infrun.c (follow_exec): Adjust call to target_follow_exec,
897 don't push target nor create thread.
898 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
899 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
900 (thread_db_target::follow_exec): New.
901 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
902 (remote_target::follow_exec): Call
903 process_stratum_target::follow_exec.
904 * target-delegates.c: Re-generate.
905
2af87c85
SM
9062021-05-13 Simon Marchi <simon.marchi@efficios.com>
907
908 * infrun.c (follow_exec): Call target_follow_fork when
909 follow-exec-mode is same.
910 * target.h (target_follow_fork): Improve doc.
911
0b2256f7
SM
9122021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
913
914 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
915 Remove.
916 * cli/cli-setshow.c (do_show_command): Adjust.
917
0746f49b
LM
9182021-05-13 Luis Machado <luis.machado@linaro.org>
919
920 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
921 include the last address in the range.
922
4b8cb9dd
SM
9232021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
924
925 * python/python-internal.h (gdbpy_parse_command_name): Return
926 gdb::unique_xmalloc_ptr.
927 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
928 (cmdpy_init): Adjust.
929 * python/py-param.c (parmpy_init): Adjust.
930 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
931 when done.
932
ee35ce82
GB
9332021-05-12 George Barrett <bob@bob131.so>
934
935 * NEWS (Guile API): Note the addition of the new procedure.
936 * guile/scm-value.c (gdbscm_value_const_value): Add
937 implementation of value-const-value procedure.
938 (value_functions): Add value-const-value procedure.
939
9d4fc61d
GB
9402021-05-12 George Barrett <bob@bob131.so>
941
942 * NEWS (Guile API): Note the addition of new procedures.
943 * guile/scm-value.c (gdbscm_reference_value): Add helper function
944 for reference value creation.
945 (gdbscm_value_reference_value): Add implementation of
946 value-reference-value procedure.
947 (gdbscm_value_rvalue_reference_value): Add implementation of
948 value-rvalue-reference-value procedure.
949 (value_functions): Add value-reference-value procedure. Add
950 value-rvalue-reference-value procedure.
951
97cef6b7
GB
9522021-05-12 George Barrett <bob@bob131.so>
953
954 * guile/scm-type.c (type_integer_constants): Add binding for
955 TYPE_CODE_RVALUE_REF.
956 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
957 dereferencing of rvalue references.
958 * NEWS (Guile API): Note improvements in rvalue reference support.
959
d51344c9
MM
9602021-05-12 Markus Metzger <markus.t.metzger@intel.com>
961
962 * btrace.c (handle_pt_insn_events): Ignore status update enable
963 events.
964
f2a883a8
SM
9652021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
966
967 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
968 indentation.
969
64f30eb0
SM
9702021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
971
972 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
973
db1f6cd6
LS
9742021-05-10 Lancelot Six <lsix@lancelotsix.com>
975
976 PR gdb/27614
977 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
978 argument.
979
31aceaef
SM
9802021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
981
982 * nat/linux-waitpid.c (status_to_str): Show signal name.
983
75140e3b
AB
9842021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
985
986 * python/py-breakpoint.c (pybp_debug): New static global.
987 (show_pybp_debug): New function.
988 (pybp_debug_printf): Define.
989 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
990 (gdbpy_breakpoint_created): Add some debugging.
991 (gdbpy_breakpoint_deleted): Likewise.
992 (gdbpy_breakpoint_modified): Likewise.
993 (_initialize_py_breakpoint): New function.
994
1ef40c13
AB
9952021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
996
997 * python/py-unwind.c (pyuw_debug): Convert to bool.
998 (show_pyuw_debug): New function.
999 (pyuw_debug_printf): Define.
1000 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1001 (pyuw_this_id): Convert to new debug print macros.
1002 (pyuw_prev_register): Likewise.
1003 (pyuw_sniffer): Likewise.
1004 (pyuw_dealloc_cache): Likewise.
1005 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1006 show function when registering.
1007
927c4e35
AB
10082021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1009
1010 * dummy-frame.c (fprint_dummy_frames): Convert use of
1011 fprint_frame_id to use frame_id::to_string.
1012 * frame.c (fprint_field): Delete.
1013 (fprint_frame_id): Moved to...
1014 (frame_id::to_string): ...this, rewritten to return a string.
1015 (fprint_frame): Convert use of fprint_frame_id to use
1016 frame_id::to_string.
1017 (compute_frame_id): Likewise.
1018 (frame_id_p): Likewise.
1019 (frame_id_eq): Likewise.
1020 (frame_id_inner): Likewise.
1021 * frame.h (struct frame_id) <to_string>: New member function.
1022 (fprint_frame_id): Delete declaration.
1023 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1024 fprint_frame_id to use frame_id::to_string.
1025 * python/py-frame.c (frame_object_to_frame_info): Likewise.
1026 * python/py-unwind.c (unwind_infopy_str): Likewise.
1027 (pyuw_this_id): Likewise.
1028
8d06918f
SM
10292021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1030
1031 * nat/linux-waitpid.c (status_to_str): Return std::string.
1032 * nat/linux-waitpid.h (status_to_str): Likewise.
1033 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
1034 (linux_nat_target::attach): Adjust.
1035 (linux_handle_extended_wait): Adjust.
1036 (wait_lwp): Adjust.
1037 (stop_wait_callback): Adjust.
1038 (linux_nat_filter_event): Adjust.
1039 (linux_nat_wait_1): Adjust.
1040 * nat/linux-waitpid.c (status_to_str): Adjust.
1041 * nat/linux-waitpid.h (status_to_str): Adjust.
1042
550e9289
SM
10432021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1044
1045 * infrun.h (infrun_debug_printf): Add missing space.
1046
4655f850
PA
10472021-05-08 Pedro Alves <pedro@palves.net>
1048
1049 * linux-nat.c (linux_nat_target::supports_disable_randomization):
1050 Remove references to HAVE_PERSONALITY.
1051 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1052 (maybe_disable_address_space_randomization)
1053 (~maybe_disable_address_space_randomizatio): Remove references to
1054 HAVE_PERSONALITY.
1055 * config.in, configure: Regenerate.
1056
1845e254
AB
10572021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1058
1059 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1060 include.
1061 (source_script_with_search): Perform tilde expansion.
1062
91e3c425
SM
10632021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1064
1065 * target-descriptions.c (struct target_desc_info) <filename>:
1066 Make std::string.
1067 (copy_inferior_target_desc_info): Adjust.
1068 (target_desc_info_free): Adjust.
1069 (target_find_description): Adjust.
1070 (set_tdesc_filename_cmd): Adjust.
1071 (show_tdesc_filename_cmd): Adjust.
1072 (unset_tdesc_filename_cmd): Adjust.
1073 (maint_print_c_tdesc_cmd): Adjust.
1074
0b2f7ade
SM
10752021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1076
1077 * target-descriptions.c (struct target_desc_info): Initialize
1078 fields.
1079 (get_tdesc_info): Use new.
1080 (target_desc_info_free): Use delete.
1081
820c4490
SM
10822021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1083
1084 * target-descriptions.c (struct target_desc_info) <fetched>:
1085 bool.
1086 (target_find_description): Adjust.
1087 (target_clear_description): Adjust.
1088
c2962e6a
SM
10892021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1090
1091 * target-descriptions.c (struct target_desc_info) <tdesc>:
1092 Adjust doc.
1093 (target_desc_fetched): Remove.
1094 (current_target_desc): Remove.
1095 (target_description_filename): Remove.
1096 (target_find_description): Adjust.
1097 (target_clear_description): Adjust.
1098 (target_current_description): Adjust.
1099 (set_tdesc_filename_cmd): Adjust.
1100 (show_tdesc_filename_cmd): Adjust.
1101 (unset_tdesc_filename_cmd): Adjust.
1102 (maint_print_c_tdesc_cmd): Adjust.
1103 (maint_print_xml_tdesc_cmd): Adjust.
1104
8a82de58
AB
11052021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1106
1107 * infcmd.c (notice_new_inferior): Change parameter type.
1108 * inferior.h (notice_new_inferior): Change parameter type.
1109 * remote.c (remote_notice_new_inferior): Change parameter type to
1110 bool. Also update type of local variable to bool.
1111 (remote_target::update_thread_list): Change type of local variable
1112 to bool.
1113 (remote_target::process_stop_reply): Pass bool instead of int to
1114 remote_notice_new_inferior.
1115
bedc4734
SM
11162021-05-07 Simon Marchi <simon.marchi@efficios.com>
1117
1118 * target.c (target_stack::unpush): Call target_ops::find_beneath
1119 to get the target beneath `t`.
1120
27f0a431
SM
11212021-05-07 Simon Marchi <simon.marchi@efficios.com>
1122
1123 * target.c (target_close): Check in all inferiors that the
1124 target is not pushed.
1125
1d1669e4
AM
11262021-05-07 Aaron Merey <amerey@redhat.com>
1127
1128 * debuginfod-support.c (debuginfod_init): Remove.
1129 (get_debuginfod_client): New function.
1130
2698f5ea
TT
11312021-05-07 Tom Tromey <tom@tromey.com>
1132
1133 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1134 * utils.c (streq_hash): Remove.
1135 * utils.h (streq_hash): Don't declare.
1136 * completer.c (completion_tracker::discard_completions): Update
1137 comment.
1138 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1139
13123da8
SM
11402021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1141
1142 * Re-format all Python files using black.
1143
9589edb8
AB
11442021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1145
1146 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1147 function return type.
1148 * guile/guile.c (gdbscm_source_script): Update to handle change in
1149 gdbscm_safe_source_script.
1150 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1151 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1152 type.
1153
ec66d6ea
SM
11542021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1155
1156 * inferior.h (class inferior) <args>: Change type to
1157 unique_xmalloc_ptr.
1158 * inferior.c (inferior::~inferior): Don't free args.
1159 * infcmd.c (get_inferior_args): Adjust.
1160 (set_inferior_args): Adjust.
1161
0618ecf6
AB
11622021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1165 breakpoint locations when the breakpoint actually has a location.
1166
79aabb73
TBA
11672021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1168
1169 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1170 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1171 mi_cmd_break_condition.
1172 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1173 * breakpoint.h (set_breakpoint_condition): Declare a new
1174 overload.
1175 * breakpoint.c (set_breakpoint_condition): New overloaded function
1176 extracted out from ...
1177 (condition_command): ... this.
1178 * NEWS: Mention the change.
1179
10e578d7
TBA
11802021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1181
1182 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1183 '--force-condition' flag to force the condition in the
1184 '-break-insert' and '-dprintf-insert' commands.
1185 * NEWS: Mention the change.
1186
225bda24
TV
11872021-05-04 Tom de Vries <tdevries@suse.de>
1188
1189 PR guile/27806
1190 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1191 memory functions.
1192
b8efb248
TT
11932021-04-30 Tom Tromey <tom@tromey.com>
1194
1195 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1196 (add_signatured_type_cu_to_table): Remove.
1197 (create_debug_type_hash_table): Assume dwo_file is non-null.
1198 (create_debug_types_hash_table): Update comment.
1199 (create_all_type_units): Remove.
1200 (sort_tu_by_abbrev_offset): Update comment.
1201 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1202 (build_type_psymtabs): Remove.
1203 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1204 Update.
1205 (read_comp_units_from_section): Add types_htab, section_kind
1206 parameters.
1207 (create_all_comp_units): Read type units.
1208
91eea9cc
TT
12092021-04-30 Tom Tromey <tom@tromey.com>
1210
1211 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1212 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1213 <get_cu>: Now inline.
1214 <all_type_units>: Remove.
1215 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1216 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1217 (dwarf2_per_bfd::get_tu): Remove.
1218 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1219 (create_signatured_type_table_from_index)
1220 (create_signatured_type_table_from_debug_names)
1221 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1222 (dwarf2_base_index_functions::expand_all_symtabs)
1223 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1224 (dwarf2_base_index_functions::map_symbol_filenames)
1225 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1226 (add_signatured_type_cu_to_table, create_all_type_units)
1227 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1228 (create_all_comp_units): Update.
1229 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1230 (write_debug_names): Update.
1231
0d305d5c
TT
12322021-04-30 Tom Tromey <tom@tromey.com>
1233
1234 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1235 allocate_signatured_type>: Change return type.
1236 <all_comp_units, all_type_units>: Hold unique pointers.
1237 (struct dwarf2_per_cu_data): Add constructor and initializers.
1238 (struct signatured_type): Derive from dwarf2_per_cu_data.
1239 * dwarf2/read.c (type_unit_group): Derive from
1240 dwarf2_per_cu_data.
1241 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1242 (dwarf2_per_bfd::get_tu)
1243 (dwarf2_per_bfd::allocate_signatured_type)
1244 (dwarf2_per_bfd::allocate_signatured_type)
1245 (create_cu_from_index_list, create_cus_from_index_list)
1246 (create_signatured_type_table_from_index)
1247 (create_signatured_type_table_from_debug_names)
1248 (create_addrmap_from_aranges)
1249 (dwarf2_base_index_functions::find_last_source_symtab)
1250 (dw_expand_symtabs_matching_file_matcher)
1251 (dwarf2_gdb_index::expand_symtabs_matching)
1252 (dwarf2_base_index_functions::map_symbol_filenames)
1253 (create_cus_from_debug_names_list)
1254 (dw2_debug_names_iterator::next)
1255 (dwarf2_debug_names_index::expand_symtabs_matching)
1256 (create_debug_type_hash_table, add_type_unit)
1257 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1258 Update.
1259 (allocate_type_unit_groups_table): Use delete.
1260 (create_type_unit_group): Change return type. Use new.
1261 (get_type_unit_group, build_type_psymtabs_1)
1262 (build_type_psymtab_dependencies)
1263 (process_skeletonless_type_unit, set_partial_user)
1264 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1265 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1266 (read_signatured_type): Update.
1267 (dwarf2_find_containing_comp_unit): Change type of
1268 'all_comp_units'.
1269 (run_test): Update.
1270 (dwarf2_per_bfd::allocate_per_cu)
1271 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1272 Use new.
1273 (add_signatured_type_cu_to_table): Update.
1274 * dwarf2/index-write.c (write_one_signatured_type)
1275 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1276 (write_debug_names): Update.
1277
1bee48c7
TT
12782021-04-30 Tom Tromey <tromey@adacore.com>
1279
1280 * nat/windows-nat.h (get_image_name): Don't declare.
1281 * nat/windows-nat.c (get_image_name): Now static.
1282
e228ef97
TT
12832021-04-30 Tom Tromey <tromey@adacore.com>
1284
1285 * windows-nat.c (windows_nat::handle_load_dll): Update.
1286 (windows_nat_target::get_windows_debug_event): Call
1287 dll_loaded_event.
1288 (windows_add_all_dlls, windows_add_dll): Move to
1289 nat/windows-nat.c.
1290 * nat/windows-nat.h (handle_load_dll): Change parameters.
1291 (dll_loaded_event, windows_add_all_dlls): Declare.
1292 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1293 from windows-nat.c.
1294 (dll_loaded_event): New function.
1295
de071872
TT
12962021-04-30 Tom Tromey <tromey@adacore.com>
1297
1298 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1299 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1300 Declare.
1301 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1302 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1303
9e439f00
TT
13042021-04-30 Tom Tromey <tromey@adacore.com>
1305
1306 * windows-nat.c: Move code to nat/windows-nat.[ch].
1307 (_initialize_windows_nat): Call initialize_loadable.
1308 * nat/windows-nat.h (AdjustTokenPrivileges)
1309 (DebugActiveProcessStop, DebugBreakProcess)
1310 (DebugSetProcessKillOnExit, EnumProcessModules)
1311 (EnumProcessModulesEx, GetModuleInformation)
1312 (GetModuleFileNameExA, GetModuleFileNameExW)
1313 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1314 (GetCurrentConsoleFont, Wow64SuspendThread)
1315 (Wow64GetThreadContext, Wow64SetThreadContext)
1316 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1317 (AdjustTokenPrivileges_ftype)
1318 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1319 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1320 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1321 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1322 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1323 (GetConsoleFontSize_ftype)
1324 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1325 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1326 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1327 (initialize_loadable): Declare.
1328 * nat/windows-nat.c (AdjustTokenPrivileges)
1329 (DebugActiveProcessStop, DebugBreakProcess)
1330 (DebugSetProcessKillOnExit, EnumProcessModules)
1331 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1332 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1333 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1334 (Wow64GetThreadContext, Wow64SetThreadContext)
1335 (Wow64GetThreadSelectorEntry): Define.
1336 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1337 from windows-nat.c.
1338 (initialize_loadable): Likewise, and rename.
1339
1053c638
TT
13402021-04-30 Tom Tromey <tromey@adacore.com>
1341
1342 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1343 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1344 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1345 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1346 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1347 (bad): New template functions.
1348 (_initialize_loadable): Update.
1349
2869ac4b
TT
13502021-04-30 Tom Tromey <tromey@adacore.com>
1351
1352 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1353
e197dfae
SM
13542021-04-29 Simon Marchi <simon.marchi@efficios.com>
1355
1356 * auto-load.h: Split namespace declaration.
1357
89ba430c
SM
13582021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1359
1360 * infrun.c (save_waitstatus): Move variables to inner scope.
1361
8eb82ba1
AB
13622021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1363
1364 * NEWS: Fix typo and stray full stop.
1365
db2534b7
TT
13662021-04-28 Tom Tromey <tromey@adacore.com>
1367
1368 * ada-exp.y (primary): Use new type for null pointer.
1369 * ada-lang.c (ada_type_match): Remove "may_deref"
1370 parameter. Handle null pointer.
1371 (ada_args_match): Update.
1372 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1373 Handle null pointer.
1374
edeaceda
AB
13752021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1376
1377 * NEWS: Mention new commands.
1378 * python/python.c (python_ignore_environment): New static global.
1379 (show_python_ignore_environment): New function.
1380 (set_python_ignore_environment): New function.
1381 (python_dont_write_bytecode): New static global.
1382 (show_python_dont_write_bytecode): New function.
1383 (set_python_dont_write_bytecode): New function.
1384 (_initialize_python): Register new commands.
1385
041ca48e
AB
13862021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1387
1388 * extension-priv.h (struct extension_language_ops): Rename
1389 'finish_initialization' to 'initialize'.
1390 * extension.c (finish_ext_lang_initialization): Renamed to...
1391 (ext_lang_initialization): ...this, update comment, and updated
1392 the calls to reflect the change in struct extension_language_ops.
1393 * extension.h (finish_ext_lang_initialization): Renamed to...
1394 (ext_lang_initialization): ...this.
1395 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1396 (gdbscm_initialize): ...this, update comment at definition.
1397 (guile_extension_ops): Update.
1398 * main.c (captured_main_1): Update call to
1399 finish_ext_lang_initialization.
1400 * python/python.c (gdbpy_finish_initialization): Rename to...
1401 (gdbpy_initialize): ...this, update comment at definition, and
1402 update call to do_finish_initialization.
1403 (python_extension_ops): Update.
1404 (do_finish_initialization): Rename to...
1405 (do_initialize): ...this, and update comment.
1406
1178f01a
AB
14072021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1408
1409 * main.c (captured_main_1): Add a call to
1410 finish_ext_lang_initialization.
1411 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1412
880ae75a
AB
14132021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1414
1415 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1416 (gdbscm_finish_initialization): Add code moved from
1417 _initialize_guile.
1418 (_initialize_guile): Move code to gdbscm_finish_initialization.
1419 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1420 _initialize_scm_arch.
1421 (_initialize_scm_arch): New function.
1422 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1423 into _initialize_scm_block.
1424 (_initialize_scm_block): New function.
1425 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1426 into _initialize_scm_frame.
1427 (_initialize_scm_frame): New function.
1428 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1429 into _initialize_scm_objfile.
1430 (_initialize_scm_objfile): New function.
1431 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1432 code into _initialize_scm_progspace.
1433 (_initialize_scm_progspace): New function.
1434 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1435 into _initialize_scm_symbol.
1436 (_initialize_scm_symbol): New function.
1437 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1438 into _initialize_scm_symtab.
1439 (_initialize_scm_symtab): New function.
1440 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1441 _initialize_scm_type.
1442 (_initialize_scm_type): New function.
1443
8e3685bf
AB
14442021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * python/py-arch.c (_initialize_py_arch): New function.
1447 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1448 * python/py-block.c (_initialize_py_block): New function.
1449 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1450 * python/py-inferior.c (_initialize_py_inferior): New function.
1451 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1452 * python/py-objfile.c (_initialize_py_objfile): New function.
1453 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1454 * python/py-progspace.c (_initialize_py_progspace): New function.
1455 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1456 * python/py-registers.c (_initialize_py_registers): New function.
1457 (gdbpy_initialize_registers): Move code to
1458 _initialize_py_registers.
1459 * python/py-symbol.c (_initialize_py_symbol): New function.
1460 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1461 * python/py-symtab.c (_initialize_py_symtab): New function.
1462 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1463 * python/py-type.c (_initialize_py_type): New function.
1464 (gdbpy_initialize_types): Move code to _initialize_py_type.
1465 * python/py-unwind.c (_initialize_py_unwind): New function.
1466 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1467 * python/python.c (_initialize_python): Move call to
1468 do_start_initialization to gdbpy_finish_initialization.
1469 (gdbpy_finish_initialization): Add call to
1470 do_start_initialization.
1471
913832e9
AB
14722021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1473
1474 * extension.c (struct scoped_default_signal): New struct.
1475 (scoped_default_sigint): New typedef.
1476 (finish_ext_lang_initialization): Make use of
1477 scoped_default_sigint.
1478
a3b5ef3e
AB
14792021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1480
1481 * main.c (captured_main_1): Don't pass argument to gdb_init.
1482 * top.c (gdb_init): Remove unused argument, and add header
1483 comment.
1484 * top.h (gdb_init): Remove argument.
1485
b9f90c72
LM
14862021-04-27 Luis Machado <luis.machado@linaro.org>
1487
1488 * psymtab.c (psymbol_functions::dump): Output newline.
1489 Remove wrap.
1490 * symmisc.c (dump_objfile): Likewise.
1491
2c473def
MW
14922021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1493 Simon Marchi <simon.marchi@polymtl.ca>
1494
1495 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1496 when attaching the 'auto_load_new_objfile' observer, so
1497 other observers can specify it as a dependency.
1498 * gdb/auto-load.h (struct token): Declare
1499 'auto_load_new_objfile_observer_token' as token to be used
1500 for the 'auto_load_new_objfile' observer.
1501 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1502 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1503 observer, so it gets notified after the latter.
1504
9a6e099f
MW
15052021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1506 Simon Marchi <simon.marchi@polymtl.ca>
1507
1508 * unittests/observable-selftests.c (dependency_test_counters):
1509 New.
1510 (observer_token0, observer_token1, observer_token2,
1511 observer_token3, observer_token4, observer_token5): New.
1512 (struct dependency_observer_data): New struct.
1513 (observer_dependency_test_callback): New function.
1514 (test_observers): New.
1515 (run_dependency_test): New function.
1516 (test_dependency): New.
1517 (_initialize_observer_selftest): Register dependency test.
1518
bea3329b
SM
15192021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1520
1521 PR gdb/27773
1522 * cli/cli-dump.c (dump_binary_file): Check result of
1523 gdb_fopen_cloexec.
1524
c290cb01
ST
15252021-04-25 Sergei Trofimovich <siarheit@google.com>
1526
1527 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1528 by passing `process_stratum_target*` parameter.
1529
fbb46296
LS
15302021-04-25 Lancelot Six <lsix@lancelotsix.com>
1531
1532 PR gdb/22640
1533 * typeprint.h (struct type_print_options): Add print_in_hex
1534 flag.
1535 (struct print_offset_data): Add print_in_hex flag, add a
1536 constructor accepting a type_print_options* argument.
1537 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1538 default value for print_in_hex.
1539 (print_offset_data::indentation): Allow more horizontal space.
1540 (print_offset_data::print_offset_data): Add ctor.
1541 (print_offset_data::maybe_print_hole, print_offset_data::update):
1542 Handle the print_in_hex flag.
1543 (whatis_exp): Handle 'x' and 'd' flags.
1544 (print_offsets_and_sizes_in_hex): Declare.
1545 (set_print_offsets_and_sizes_in_hex): Create.
1546 (show_print_offsets_and_sizes_in_hex): Create.
1547 (_initialize_typeprint): Update help message for the ptype
1548 command, register the 'set print type hex' and 'show print type
1549 hex' commands.
1550 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1551 (c_type_print_base): Construct the print_offset_data
1552 object using the type_print_optons parameter.
1553 * rust-lang.c (rust_language::print_type): Construct the
1554 print_offset_data object using the type_print_optons parameter.
1555 * NEWS: Mention the new flags of the ptype command.
1556
18bbba46
LS
15572021-04-25 Lancelot Six <lsix@lancelotsix.com>
1558
1559 * typeprint.h (struct type_print_options): Move before
1560 print_offset_data.
1561
77393c9b
JB
15622021-04-25 Joel Brobecker <brobecker@adacore.com>
1563
1564 GDB 10.2 released.
1565
98c897e3
SM
15662021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1567
1568 * observable.c (observer_debug): Change to bool.
1569
9fc29955
AB
15702021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1571
1572 * dwarf2/read.c: Add 'unordered_set' include.
1573 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1574 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1575 of per_Bfd->filenames_cache cache, and use function local
1576 filenames_cache instead. Reindent.
1577 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1578
0406545d
SM
15792021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1580
1581 * breakpoint.c (iterate_over_bp_locations): Change callback to
1582 function view, remove data parameter.
1583 * breakpoint.h (iterate_over_bp_locations): Likewise.
1584 * record-full.c (record_full_sync_record_breakpoints): Remove
1585 data parameter.
1586
432ce4cf
TT
15872021-04-22 Tom Tromey <tom@tromey.com>
1588
1589 * c-typeprint.c (c_type_print_base_struct_union): Use
1590 print_spaces_filtered_with_print_options.
1591
e25d6d93
SM
15922021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1593
1594 PR gdb/27757
1595 * python/py-type.c (typy_range): Check that bounds are constant
1596 before accessing them as such.
1597 * guile/scm-type.c (gdbscm_type_range): Likewise.
1598
4efeb0d3
TBA
15992021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1600
1601 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1602 * inferior.c (inferior::add_continuation): New method, adapted
1603 from 'add_inferior_continuation'.
1604 (inferior::do_all_continuations): New method, adapted from
1605 'do_all_inferior_continuations'.
1606 (inferior::~inferior): Clear the list of continuations directly.
1607 * inferior.h (class inferior) <continuations>: Rename into...
1608 <m_continuations>: ...this and make private.
1609 * continuations.c: Remove.
1610 * continuations.h: Remove.
1611 * event-top.c: Don't include "continuations.h".
1612
1613 Update the users below.
1614 * inf-loop.c (inferior_event_handler)
1615 * infcmd.c (attach_command)
1616 (notice_new_inferior): Update.
1617
c4c493de
TBA
16182021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1619
1620 * inferior.h (class inferior) <continuations>: Change the type
1621 to be an std::list of std::function's.
1622 Update the references and uses below.
1623 * continuations.c (struct continuation): Delete.
1624 (make_continuation): Delete.
1625 (do_my_continuations_1): Delete.
1626 (do_my_continuations): Delete.
1627 (discard_my_continuations_1): Delete.
1628 (discard_my_continuations): Delete.
1629 (add_inferior_continuation): Update.
1630 (do_all_inferior_continuations): Update.
1631 (discard_all_inferior_continuations): Update.
1632 * continuations.h (add_inferior_continuation): Update to take
1633 an std::function as the parameter.
1634 * infcmd.c (struct attach_command_continuation_args): Delete.
1635 (attach_command_continuation): Delete.
1636 (attach_command_continuation_free_args): Delete.
1637 (attach_command): Update.
1638 (notice_new_inferior): Update.
1639
1194676e
TBA
16402021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1641
1642 * continuations.h: Update the general comment.
1643 * inferior.h (class inferior) <continuations>: Update the comment.
1644 * interps.c: Do not include "continuations.h".
1645
35682f0a
TBA
16462021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1647
1648 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1649 parameter. Update the references below.
1650 * continuations.c (do_my_continuations_1)
1651 (do_my_continuations)
1652 (do_all_inferior_continuations): Update.
1653 * inf-loop.c (inferior_event_handler): Update.
1654 * infcmd.c (attach_command_continuation): Update.
1655
6fee5eee
TBA
16562021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1657
1658 * infcmd.c (attach_post_wait): Update the function comment.
1659
27d0790a
TBA
16602021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1661
1662 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1663 Update the references below.
1664 (struct attach_command_continuation_args)
1665 (attach_command_continuation)
1666 (attach_command_continuation_free_args)
1667 (attach_command)
1668 (notice_new_inferior): Update to remove the reference to 'args'.
1669
c39ebbf4
TV
16702021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1671 Tom de Vries <tdevries@suse.de>
1672
1673 PR remote/27710
1674 * remote.c (remote_target_is_non_stop_p): New function.
1675 * remote.h (remote_target_is_non_stop_p): Declare.
1676 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1677 to check non-stopness using notif_state->remote rather current target.
1678
22f80c0f
TT
16792021-04-22 Tom Tromey <tom@tromey.com>
1680
1681 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1682 (struct typed_val_int) <val>: Now ULONGEST.
1683 (rust_parser::parse_array_type): Remove negative check.
1684 (rust_lex_int_test): Change 'value' to ULONGEST.
1685
05f3c0f0
AB
16862021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1687
1688 * arch-utils.c (default_addressable_memory_unit_size): Return a
1689 value based on bfd's bits per byte.
1690
7e7a35fb
TT
16912021-04-21 Tom Tromey <tom@tromey.com>
1692
1693 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1694 unsigned char.
1695 (struct dwarf2_per_cu_data): Rearrange.
1696 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1697 unsigned char.
1698 (struct comp_unit_head): Rearrange.
1699 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1700
ff507520
TV
17012021-04-21 Tom de Vries <tdevries@suse.de>
1702
1703 PR build/27681
1704 * configure.ac: Remove --without-included-regex/--with-included-regex.
1705 * config.in: Regenerate.
1706 * configure: Regenerate.
1707 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1708
10a636cc
TBA
17092021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1710
1711 * breakpoint.h (create_breakpoint): Add a new parameter,
1712 'force_condition'.
1713 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1714 argument when 'parse_extra' is false to check if the condition
1715 is invalid at all of the breakpoint locations.
1716 Update the users below.
1717 (break_command_1)
1718 (dprintf_command)
1719 (trace_command)
1720 (ftrace_command)
1721 (strace_command)
1722 (create_tracepoint_from_upload): Update.
1723 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1724 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1725 * python/py-breakpoint.c (bppy_init): Update.
1726 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1727
85c88e2a
TBA
17282021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1729
1730 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1731 disabled-by-condition locations on MI-like output.
1732 (breakpoint_1): Do not display the disabled-by-condition footnote
1733 if the output is MI-like.
1734
fd34472c
FC
17352021-04-21 Frederic Cambus <fred@statdns.com>
1736
1737 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1738 update year range in generated copyright notices.
1739
184dcd81
FW
17402021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1741
1742 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1743 qualifier_seq_noopt.
1744
525174e8
FW
17452021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1746
1747 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1748
f5dc2ee3
AB
17492021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1750
1751 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1752 (producer_is_icc): Replace use of std::regex with gdb's
1753 compiled_regex.
1754
42c2c694
TT
17552021-04-17 Tom Tromey <tom@tromey.com>
1756
1757 PR gdb/23743:
1758 * dwarf2/read.c (class offset_view): New.
1759 (struct symbol_table_slot): Remove.
1760 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1761 <symbol_name_index, symbol_vec_index>: New methods.
1762 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1763 Rewrite.
1764 (read_gdb_index_from_buffer): Update.
1765 (struct dw2_symtab_iterator) <vec>: Change type.
1766 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1767 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1768 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1769 <append_array, append_offset>: New methods.
1770 (write_hash_table, add_address_entry, write_gdbindex_1)
1771 (write_debug_names): Update.
1772 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1773
da314dd3
TT
17742021-04-17 Tom Tromey <tom@tromey.com>
1775
1776 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1777 partial_symtabs.
1778
0b7b2c2a
TT
17792021-04-17 Tom Tromey <tom@tromey.com>
1780
1781 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1782 from map_matching_symbols. Change parameters.
1783 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1784 Rename from map_matching_symbols. Change parameters.
1785 * dwarf2/read.c (struct dwarf2_gdb_index)
1786 <expand_matching_symbols>: Rename from map_matching_symbols.
1787 Change parameters.
1788 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1789 Rename from map_matching_symbols. Change parameters.
1790 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1791 dw2_map_matching_symbols. Change parameters.
1792 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1793 implementation.
1794 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1795 map_matching_symbols. Change parameters.
1796 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1797 from map_matching_symbols. Change parameters.
1798 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1799 map_matching_symbols. Change parameters.
1800 * ada-lang.c (map_matching_symbols): New function.
1801 (add_nonlocal_symbols): Update.
1802
90160b57
TT
18032021-04-17 Tom Tromey <tom@tromey.com>
1804
1805 * quick-symbol.h (struct quick_symbol_functions)
1806 <expand_symtabs_with_fullname>: Remove.
1807 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1808 Remove.
1809 * psympriv.h (struct psymbol_functions)
1810 <expand_symtabs_with_fullname>: Remove.
1811 * dwarf2/read.c (struct dwarf2_base_index_functions)
1812 <expand_symtabs_with_fullname>: Remove.
1813 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1814 Remove.
1815 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1816 Update comment.
1817 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1818 Rewrite.
1819
7089bd88
TT
18202021-04-17 Tom Tromey <tom@tromey.com>
1821
1822 * symfile-debug.c (objfile::expand_symtabs_for_function):
1823 Rewrite.
1824 * quick-symbol.h (struct quick_symbol_functions)
1825 <expand_symtabs_for_function>: Remove.
1826 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1827 Remove.
1828 * psympriv.h (struct psymbol_functions)
1829 <expand_symtabs_for_function>: Remove.
1830 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1831 Update comment.
1832 * dwarf2/read.c (struct dwarf2_gdb_index)
1833 <expand_symtabs_for_function>: Remove.
1834 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1835 Remove.
1836 (find_slot_in_mapped_hash): Remove.
1837 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1838 (dw2_symtab_iter_init): Remove one overload.
1839 (dwarf2_gdb_index::expand_symtabs_for_function)
1840 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1841
536a40f3
TT
18422021-04-17 Tom Tromey <tom@tromey.com>
1843
1844 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1845 Rewrite.
1846 * quick-symbol.h (struct quick_symbol_functions)
1847 <map_symtabs_matching_filename>: Remove.
1848 * psymtab.c (partial_map_expand_apply)
1849 (psymbol_functions::map_symtabs_matching_filename): Remove.
1850 * psympriv.h (struct psymbol_functions)
1851 <map_symtabs_matching_filename>: Remove.
1852 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1853 Update comment.
1854 * dwarf2/read.c (struct dwarf2_base_index_functions)
1855 <map_symtabs_matching_filename>: Remove.
1856 (dw2_map_expand_apply)
1857 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1858 Remove.
1859
84d865e3
TT
18602021-04-17 Tom Tromey <tom@tromey.com>
1861
1862 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1863 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1864 Remove.
1865 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1866 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1867 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1868 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1869 Remove.
1870 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1871 (dwarf2_gdb_index::lookup_symbol)
1872 (dwarf2_debug_names_index::lookup_symbol): Remove.
1873
3bfa51a7
TT
18742021-04-17 Tom Tromey <tom@tromey.com>
1875
1876 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1877 * symmisc.c (maintenance_expand_symtabs): Update.
1878 * symfile.c (expand_symtabs_matching): Update.
1879 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1880 parameter.
1881 * quick-symbol.h (struct quick_symbol_functions)
1882 <expand_symtabs_matching>: Add 'domain' parameter.
1883 * psymtab.c (recursively_search_psymtabs)
1884 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1885 parameter.
1886 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1887 Add 'domain' parameter.
1888 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1889 'domain' parameter.
1890 * linespec.c (iterate_over_all_matching_symtabs): Update.
1891 * dwarf2/read.c (struct dwarf2_gdb_index)
1892 <expand_symtabs_matching>: Add 'domain' parameter.
1893 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1894 'domain' parameter.
1895 (dw2_expand_symtabs_matching)
1896 (dwarf2_gdb_index::expand_symtabs_matching)
1897 (dw2_debug_names_iterator)
1898 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1899 parameter.
1900
03a8ea51
TT
19012021-04-17 Tom Tromey <tom@tromey.com>
1902
1903 * symtab.c (global_symbol_searcher::expand_symtabs)
1904 (default_collect_symbol_completion_matches_break_on): Update.
1905 * symmisc.c (maintenance_expand_symtabs): Update.
1906 * symfile.h (expand_symtabs_matching): Add search_flags
1907 parameter.
1908 * symfile.c (expand_symtabs_matching): Add search_flags
1909 parameter.
1910 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1911 search_flags parameter.
1912 * quick-symbol.h (struct quick_symbol_functions)
1913 <expand_symtabs_matching>: Add search_flags parameter.
1914 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1915 * psymtab.c (recursively_search_psymtabs)
1916 (psymbol_functions::expand_symtabs_matching): Add search_flags
1917 parameter.
1918 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1919 Add search_flags parameter.
1920 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1921 search_flags parameter.
1922 * linespec.c (iterate_over_all_matching_symtabs): Update.
1923 * dwarf2/read.c (struct dwarf2_gdb_index)
1924 <expand_symtabs_matching>: Add search_flags parameter.
1925 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1926 search_flags parameter.
1927 (dw2_map_matching_symbols): Update.
1928 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1929 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1930 parameter.
1931 (dw2_debug_names_iterator): Change block_index to search flags.
1932 <m_block_index>: Likewise.
1933 (dw2_debug_names_iterator::next)
1934 (dwarf2_debug_names_index::lookup_symbol)
1935 (dwarf2_debug_names_index::expand_symtabs_for_function)
1936 (dwarf2_debug_names_index::map_matching_symbols)
1937 (dwarf2_debug_names_index::map_matching_symbols): Update.
1938 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1939 search_flags parameter.
1940 * ada-lang.c (ada_add_global_exceptions)
1941 (collect_symbol_completion_matches): Update.
1942
df35e626
TT
19432021-04-17 Tom Tromey <tom@tromey.com>
1944
1945 * symtab.c (default_collect_symbol_completion_matches_break_on):
1946 Update.
1947 * symfile.h (expand_symtabs_matching): Return bool.
1948 * symfile.c (expand_symtabs_matching): Return bool.
1949 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1950 bool.
1951 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1952 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1953 bool.
1954 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1955 bool.
1956 * psympriv.h (struct psymbol_functions)
1957 <expand_symtabs_matching>: Return bool.
1958 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1959 bool.
1960 * dwarf2/read.c (struct dwarf2_gdb_index)
1961 <expand_symtabs_matching>: Return bool.
1962 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1963 Return bool.
1964 (dw2_expand_symtabs_matching_symbol): Return bool.
1965 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1966 (dw2_expand_symtabs_matching)
1967 (dwarf2_gdb_index::expand_symtabs_matching)
1968 (dwarf2_debug_names_index::expand_symtabs_matching)
1969 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1970
e357e990
TT
19712021-04-17 Tom Tromey <tom@tromey.com>
1972
1973 * quick-symbol.h (enum block_search_flag_values): New.
1974 (block_search_flags): New enum flags type.
1975
3cbc7ac3
TT
19762021-04-16 Tom Tromey <tom@tromey.com>
1977
1978 * rust-parse.c: New file.
1979 * rust-exp.y: Remove.
1980 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1981 (SFILES): Remove rust-exp.y.
1982 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1983
1b6b755e
LM
19842021-04-16 Luis Machado <luis.machado@linaro.org>
1985
1986 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1987
c45ecc9d
JB
19882021-04-15 John Baldwin <jhb@FreeBSD.org>
1989
1990 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1991 use throughout file.
1992
a15a276b
TT
19932021-04-15 Tom Tromey <tromey@adacore.com>
1994
1995 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1996 arrays.
1997
644a2e75
TT
19982021-04-15 Tom Tromey <tromey@adacore.com>
1999
2000 * printcmd.c (print_variable_and_value): Use
2001 common_val_print_checked.
2002
9e5e03df
TT
20032021-04-15 Tom Tromey <tromey@adacore.com>
2004
2005 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2006 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2007 Update.
2008 * p-exp.y (variable): Update.
2009 * m2-exp.y (variable): Update.
2010 * go-exp.y (variable): Update.
2011 * expprint.c (dump_for_expression): New overload.
2012 * expop.h (check_objfile): New overload.
2013 (check_constant): New overload.
2014 (class var_value_operation): Use block_symbol.
2015 <get_symbol>: Rewrite.
2016 * eval.c (var_value_operation::evaluate)
2017 (var_value_operation::evaluate_funcall)
2018 (var_value_operation::evaluate_for_address)
2019 (var_value_operation::evaluate_for_address)
2020 (var_value_operation::evaluate_with_coercion)
2021 (var_value_operation::evaluate_for_sizeof)
2022 (var_value_operation::evaluate_for_cast): Update.
2023 * d-exp.y (PrimaryExpression): Update.
2024 * c-exp.y (variable): Update.
2025 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
2026 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2027 (ada_var_value_operation::evaluate)
2028 (ada_var_value_operation::resolve)
2029 (ada_funcall_operation::resolve): Update.
2030 * ada-exp.y (write_var_from_sym, write_object_renaming)
2031 (write_ambiguous_var, write_var_or_type, write_name_assoc)
2032 (maybe_overload): Update.
2033 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2034
5809fbf2
TT
20352021-04-15 Tom Tromey <tom@tromey.com>
2036 Andrew Burgess <andrew.burgess@embecosm.com>
2037
2038 * NEWS: Add entry.
2039 * main.c (captured_main_1): Call check_quiet_mode.
2040 * top.c (startup_quiet): New global.
2041 (check_quiet_mode): New function.
2042 (show_startup_quiet): New function.
2043 (init_main): Register new command.
2044 * top.h (check_quiet_mode): Declare.
2045
92e4e97a
AB
20462021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2047
2048 PR cli/25956
2049 * NEWS: Mention new early init files and command line options.
2050 * config.in: Regenerate.
2051 * configure: Regenerate.
2052 * configure.ac: Define GDBEARLYINIT.
2053 * main.c (get_earlyinit_files): New function.
2054 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2055 CMDARG_EARLYINIT_COMMAND.
2056 (captured_main_1): Add support for new command line flags, and for
2057 processing startup files.
2058 (print_gdb_help): Include startup files in the output.
2059
54b4dcc5
AB
20602021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2061
2062 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2063 (relocate_file_path_maybe_in_datadir): ...this.
2064 (class gdb_initfile_finder): New class.
2065 (get_init_files): Now uses gdb_initfile_finder.
2066 (print_gdb_help): Print 'None found' when there are no init files.
2067
34dc0f95
TBA
20682021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2069
2070 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2071 corresponding child of the abstract DIE when iterating the
2072 children of the concrete DIE.
2073
329534fd
TV
20742021-04-13 Tom de Vries <tdevries@suse.de>
2075
2076 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2077 type to regoff_t *.
2078
d9d2ef05
LM
20792021-04-13 Luis Machado <luis.machado@linaro.org>
2080
2081 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2082 hex values.
2083
c8a37944
WS
20842021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2085
2086 * rs6000-tdep.c: Add support for single-stepping of
2087 prefixed instructions.
2088
b722acca
WS
20892021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2090
e3d528d7
WS
2091 PR gdb/27525
2092 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2093 handle the addpcis/lnia instruction.
2094
20952021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2096
b722acca
WS
2097 * MAINTAINERS (Write After Approval): Add myself.
2098
6ba4cb84
CL
20992021-4-12 Carl Love <cel@us.ibm.com>
2100
2101 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2102 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2103 float128.
2104
d4717483
SM
21052021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2106
2107 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2108 * nat/windows-nat.h: Likewise.
2109
b3885679
EZ
21102021-04-10 Eli Zaretskii <eliz@gnu.org>
2111
2112 * windows-nat.c (windows_nat::handle_load_dll): Call
2113 windows_add_dll if get_image_name failed to glean the name of the
2114 DLL by using the lpImageName pointer.
2115 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2116 (windows_add_dll): Now does what windows_add_all_dlls did before,
2117 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2118 specifies the address where the DLL was loaded into the inferior,
2119 and looks for the single DLL loaded at that address.
2120
1ef6a596
LM
21212021-04-09 Luis Machado <luis.machado@linaro.org>
2122
2123 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2124
83a559f7
DQ
21252021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2126
2127 * darwin-nat.c (darwin_nat_target::resume): Remove status
2128 variable.
2129
16e311ab
FW
21302021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2131
2132 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2133 prologue end for Intel compilers.
2134 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2135 * producer.c (producer_is_icc_ge_19): New function.
2136 * producer.h (producer_is_icc_ge_19): New declaration.
2137
fbb3bcfc
FW
21382021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2139
2140 * producer.c: (producer_is_icc): Update for new version scheme.
2141 (producer_parsing_tests): Update names and expected results.
2142 * producer.h: (producer_is_icc): Update comment accordingly.
2143
e97007b6
SM
21442021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2145
2146 * target.h (struct target_ops) <follow_fork>: Return void.
2147 (target_follow_fork): Likewise.
2148 * target.c (default_follow_fork): Likewise.
2149 (target_follow_fork): Likewise.
2150 * infrun.c (follow_fork_inferior): Adjust.
2151 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2152 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2153 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2154 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2155 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2156 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2157 * remote.c (class remote_target) <follow_fork>: Likewise.
2158 (remote_target::follow_fork): Likewise.
2159 * target-delegates.c: Re-generate.
2160
dc2b480f
WP
21612021-04-07 Weimin Pan <weimin.pan@oracle.com>
2162
2163 * ctfread.c (fetch_tid_type): New function, use throughout file.
2164 (read_forward_type): New function.
2165 (read_type_record): Call read_forward_type.
2166
0a703a4c
AB
21672021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2168
2169 * f-exp.h (class fortran_structop_operation): New class.
2170 * f-exp.y (exp): Create fortran_structop_operation instead of the
2171 generic structop_operation.
2172 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2173 expression as EVAL_NORMAL if the result type was dynamic so we can
2174 extract the actual array bounds.
2175 (fortran_structop_operation::evaluate): New function.
2176
21772021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2178
2179 * eval.c (evaluate_subexp_standard): Remove
2180 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2181 STRUCTOP_PTR.
2182
30ab3586
AB
21832021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2184
2185 * valops.c (value_cast): Call value_deeply_equal before performing
2186 any cast.
2187
5e18990f
AB
21882021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2191 the function.
2192
56d467f4
CT
21932021-04-07 Caroline Tice <cmtice@google.com>
2194
2195 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2196 the search paths used resolve relative location of .dwo file.
2197
1fd999d9
AB
21982021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2199
2200 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2201 assert.
2202 (dwarf2_section_info::get_file_name): Add an assert.
2203 (dwarf2_section_info::read_string): Display a minimal, sane error
2204 when the dwarf2_section_info is not associated with a bfd section.
2205
79c02443
AB
22062021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2207
2208 * top.c (staged_gdb_datadir): Update comment.
2209 (set_gdb_datadir): Copy the value of gdb_datadir back into
2210 staged_datadir.
2211 (init_main): Initialise staged_gdb_datadir.
2212
340d00fb
TV
22132021-04-06 Tom de Vries <tdevries@suse.de>
2214
2215 PR breakpoints/25884
2216 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2217 stepping range.
2218
d811a7cf
TV
22192021-04-06 Tom de Vries <tdevries@suse.de>
2220
2221 PR tui/27680
2222 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2223 to style.parse.
2224
306b445a
SM
22252021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2226
2227 * avr-tdep.c (avr_frame_unwind_cache): Use
2228 trad_frame_saved_reg::is_addr.
2229
9161c89a
SM
22302021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2231
2232 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2233 adjust callers.
2234
0072c873
SM
22352021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2236
2237 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2238 objfile parameter for objfile_per_bfd_storage, adjust callers.
2239 (struct standard_psymtab) <standard_psymtab>: Likewise.
2240 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2241 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2242 * ctfread.c (struct ctf_psymtab): Likewise.
2243 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2244 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2245 (dwarf2_create_include_psymtab): Likewise.
2246 * objfiles.h (struct objfile_per_bfd_storage)
2247 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2248 <get_bfd>: New method.
2249 <m_bfd>: New field.
2250 * objfiles.c (get_objfile_bfd_data): Adjust.
2251
9984dd99
SM
22522021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2253
2254 * psymtab.c (partial_symtab::partial_symtab): Change
2255 last_objfile_name to be an std::string.
2256 * symfile.c (allocate_symtab): Likewise.
2257
4a4f97c1
SM
22582021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2259
2260 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2261 methods.
2262 (struct objfile) <intern>: Use
2263 objfile::objfile_per_bfd_storage::intern.
2264
0672875f
SM
22652021-04-01 Simon Marchi <simon.marchi@efficios.com>
2266
2267 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2268 with type::is_flag_enum.
2269
9902b327
SM
22702021-04-01 Simon Marchi <simon.marchi@efficios.com>
2271
2272 * gdbtypes.h (struct type) <is_flag_enum,
2273 set_is_flag_enum>: New methods.
2274 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2275 write call sites to use type::set_is_flag_enum.
2276
3bc440a2
SM
22772021-04-01 Simon Marchi <simon.marchi@efficios.com>
2278
2279 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2280 with type::is_declared_class.
2281
aa70e35c
SM
22822021-04-01 Simon Marchi <simon.marchi@efficios.com>
2283
2284 * gdbtypes.h (struct type) <is_declared_class,
2285 set_is_declared_class>: New methods.
2286 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2287 write call sites to use type::set_is_declared_class.
2288
bfb9f5dc
BS
22892021-02-28 Boris Staletic <boris.staletic@gmail.com>
2290
2291 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2292 to avoid deprecation warnings.
2293
733f5eea
ML
22942021-04-01 Martin Liska <mliska@suse.cz>
2295
2296 * cp-name-parser.y: Use startswith instead of strncmp.
2297 * m2-exp.y: Likewise.
2298 * macroexp.c (substitute_args): Likewise.
2299 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2300 * rust-exp.y: Likewise.
2301
af82f89d
TT
23022021-03-31 Tom Tromey <tom@tromey.com>
2303
2304 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2305 with dw2_map_matching_symbols.
2306 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2307 dw2_expand_symtabs_matching.
2308
3570682a
TT
23092021-03-31 Tom Tromey <tromey@adacore.com>
2310
2311 * dwarf2/stringify.h: Fix typo.
2312
8a91fbdf
SM
23132021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2314
2315 PR gdb/27541
2316 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2317 with objfiles using READNOW.
2318
9f67fc59
TT
23192021-03-29 Tom Tromey <tromey@adacore.com>
2320
2321 * top.c (check_frame_language_change): Update.
2322 * language.c (language_info): Remove parameter.
2323 * language.h (language_info): Remove parameter.
2324
9b8ffbf4
LM
23252021-03-29 Luis Machado <luis.machado@linaro.org>
2326
2327 * compile/compile.c (get_args): Don't add empty argv entries.
2328
25b48839
RO
23292021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2330
2331 gdb:
2332 * procfs.c (procfs_target::attach): Define inf.
2333 Use it.
2334 (procfs_target::create_inferior): Likewise.
2335
edc02ceb
TT
23362021-03-28 Tom Tromey <tom@tromey.com>
2337
2338 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2339 (elf_symfile_read): Simplify.
2340 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2341 (make_lazy_dwarf_reader): New function.
2342 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2343 (dwarf2_initialize_objfile): Return void. Remove index_kind
2344 parameter. Push on 'qf' list.
2345 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2346 type. Remove 'index_kind' parameter.
2347 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2348
6e23d91a
TT
23492021-03-27 Tom Tromey <tom@tromey.com>
2350
2351 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2352
594b8948
TT
23532021-03-27 Tom Tromey <tom@tromey.com>
2354
2355 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2356
efe1ecd8
LS
23572021-03-26 Lancelot Six <lsix@lancelotsix.com>
2358
2359 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2360 rid of 'local'.
2361
f4655dee
TT
23622021-03-26 Tom Tromey <tom@tromey.com>
2363
2364 * symtab.c (struct output_source_filename_data): Add 'output'
2365 method and operator().
2366 (output_source_filename_data::output): Rename from
2367 output_source_filename.
2368 (output_partial_symbol_filename): Remove.
2369 (info_sources_command): Update.
2370 (struct add_partial_filename_data): Add operator().
2371 (add_partial_filename_data::operator()): Rename from
2372 maybe_add_partial_symtab_filename.
2373 (make_source_files_completion_list): Update.
2374 * symfile.c (quick_symbol_functions): Update.
2375 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2376 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2377 'need_fullname'. Remove 'data' parameter.
2378 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2379 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2380 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2381 Change type of 'fun' and 'need_fullname'. Remove 'data'
2382 parameter.
2383 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2384 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2385 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2386 parameter.
2387 (mi_cmd_file_list_exec_source_files): Update.
2388 * dwarf2/read.c
2389 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2390
2315bb2d
TT
23912021-03-26 Tom Tromey <tom@tromey.com>
2392
2393 * ada-lang.c (struct match_data): Add operator().
2394 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2395 (callback): Remove 'callback'.
2396
e2cd5ca4
TT
23972021-03-26 Tom Tromey <tom@tromey.com>
2398
2399 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2400 call make_ignore_params once.
2401
cd43f63e
TT
24022021-03-26 Tom Tromey <tom@tromey.com>
2403
2404 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2405 "user" check.
2406
b4b1a226
SM
24072021-03-26 Simon Marchi <simon.marchi@efficios.com>
2408 Pedro Alves <pedro@palves.net>
2409
2410 * async-event.c: Include "infrun.h".
2411 (async_event_handler_marked): New.
2412 * async-event.h (async_event_handler_marked): Declare.
2413 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2414 inferior before calling target method. Don't commit-resumed if
2415 target_has_pending_events is true.
2416 * remote.c (remote_target::has_pending_events): New.
2417 * target-delegates.c: Regenerate.
2418 * target.c (target_has_pending_events): New.
2419 * target.h (target_ops::has_pending_events): New target method.
2420 (target_has_pending_events): New.
2421
1192f124
SM
24222021-03-26 Simon Marchi <simon.marchi@efficios.com>
2423 Pedro Alves <pedro@palves.net>
2424
2425 * infcmd.c (run_command_1, attach_command, detach_command)
2426 (interrupt_target_1): Use scoped_disable_commit_resumed.
2427 * infrun.c (do_target_resume): Remove
2428 target_commit_resume call.
2429 (commit_resume_all_targets): Remove.
2430 (maybe_set_commit_resumed_all_targets): New.
2431 (maybe_call_commit_resumed_all_targets): New.
2432 (enable_commit_resumed): New.
2433 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2434 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2435 (scoped_disable_commit_resumed::reset)
2436 (scoped_disable_commit_resumed::reset_and_commit)
2437 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2438 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2439 New.
2440 (proceed): Use scoped_disable_commit_resumed and
2441 maybe_call_commit_resumed_all_targets.
2442 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2443 * infrun.h (struct scoped_disable_commit_resumed): New.
2444 (maybe_call_commit_resumed_all_process_targets): New.
2445 (struct scoped_enable_commit_resumed): New.
2446 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2447 * process-stratum-target.h (class process_stratum_target):
2448 <commit_resumed_state>: New.
2449 * record-full.c (record_full_wait_1): Change commit_resumed_state
2450 around calling commit_resumed.
2451 * remote.c (class remote_target) <commit_resume>: Rename to...
2452 <commit_resumed>: ... this.
2453 (struct stop_reply): Move up.
2454 (remote_target::commit_resume): Rename to...
2455 (remote_target::commit_resumed): ... this. Check if there is any
2456 thread pending vCont resume.
2457 (remote_target::remote_stop_ns): Generate stop replies for resumed
2458 but pending vCont threads.
2459 (remote_target::wait_ns): Add gdb_assert.
2460 * target-delegates.c: Regenerate.
2461 * target.c (target_wait, target_resume): Assert that the current
2462 process_stratum target isn't in commit-resumed state.
2463 (defer_target_commit_resume): Remove.
2464 (target_commit_resume): Remove.
2465 (target_commit_resumed): New.
2466 (make_scoped_defer_target_commit_resume): Remove.
2467 (target_stop): Assert that the current process_stratum target
2468 isn't in commit-resumed state.
2469 * target.h (struct target_ops) <commit_resume>: Rename to ...
2470 <commit_resumed>: ... this.
2471 (target_commit_resume): Remove.
2472 (target_commit_resumed): New.
2473 (make_scoped_defer_target_commit_resume): Remove.
2474 * top.c (wait_sync_command_done): Use
2475 scoped_enable_commit_resumed.
2476
e5b9b39f
PA
24772021-03-26 Pedro Alves <pedro@palves.net>
2478
2479 * target.c (target_always_non_stop_p): Also check whether the
2480 target can async.
2481
bab287cd
TT
24822021-03-26 Tom Tromey <tom@tromey.com>
2483
2484 * dwarf2/read.c (dwarf2_read_debug_names)
2485 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2486 (dw2_debug_names_iterator::next, create_type_unit_group):
2487 Simplify.
2488
eff4f69d
PA
24892021-03-25 Pedro Alves <pedro@palves.net>
2490
2491 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2492 around setting the breakpoint.
2493
323fd5b9
PA
24942021-03-25 Pedro Alves <pedro@palves.net>
2495
2496 * remote.c
2497 (remote_target::check_pending_events_prevent_wildcard_vcont):
2498 Check whether the event's ptid is not null_ptid before looking up
2499 the corresponding inferior.
2500
d3cbca38
CD
25012021-03-24 Changbin Du <changbin.du@gmail.com>
2502
2503 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2504 read_code.
2505
328d42d8
SM
25062021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2507
2508 * target.h (current_top_target): Remove, make callers use the
2509 current inferior instead.
2510 * target.c (current_top_target): Remove.
2511
d777bf0d
SM
25122021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2513
2514 * target.h (target_shortname): Change to function declaration.
2515 (target_longname): Likewise.
2516 (target_attach_no_wait): Likewise.
2517 (target_post_attach): Likewise.
2518 (target_prepare_to_store): Likewise.
2519 (target_supports_enable_disable_tracepoint): Likewise.
2520 (target_supports_string_tracing): Likewise.
2521 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2522 (target_supports_dumpcore): Likewise.
2523 (target_dumpcore): Likewise.
2524 (target_can_run_breakpoint_commands): Likewise.
2525 (target_files_info): Likewise.
2526 (target_post_startup_inferior): Likewise.
2527 (target_insert_fork_catchpoint): Likewise.
2528 (target_remove_fork_catchpoint): Likewise.
2529 (target_insert_vfork_catchpoint): Likewise.
2530 (target_remove_vfork_catchpoint): Likewise.
2531 (target_insert_exec_catchpoint): Likewise.
2532 (target_remove_exec_catchpoint): Likewise.
2533 (target_set_syscall_catchpoint): Likewise.
2534 (target_rcmd): Likewise.
2535 (target_can_lock_scheduler): Likewise.
2536 (target_can_async_p): Likewise.
2537 (target_is_async_p): Likewise.
2538 (target_execution_direction): Likewise.
2539 (target_extra_thread_info): Likewise.
2540 (target_pid_to_exec_file): Likewise.
2541 (target_thread_architecture): Likewise.
2542 (target_find_memory_regions): Likewise.
2543 (target_make_corefile_notes): Likewise.
2544 (target_get_bookmark): Likewise.
2545 (target_goto_bookmark): Likewise.
2546 (target_stopped_by_watchpoint): Likewise.
2547 (target_stopped_by_sw_breakpoint): Likewise.
2548 (target_supports_stopped_by_sw_breakpoint): Likewise.
2549 (target_stopped_by_hw_breakpoint): Likewise.
2550 (target_supports_stopped_by_hw_breakpoint): Likewise.
2551 (target_have_steppable_watchpoint): Likewise.
2552 (target_can_use_hardware_watchpoint): Likewise.
2553 (target_region_ok_for_hw_watchpoint): Likewise.
2554 (target_can_do_single_step): Likewise.
2555 (target_insert_watchpoint): Likewise.
2556 (target_remove_watchpoint): Likewise.
2557 (target_insert_hw_breakpoint): Likewise.
2558 (target_remove_hw_breakpoint): Likewise.
2559 (target_can_accel_watchpoint_condition): Likewise.
2560 (target_can_execute_reverse): Likewise.
2561 (target_get_ada_task_ptid): Likewise.
2562 (target_filesystem_is_local): Likewise.
2563 (target_trace_init): Likewise.
2564 (target_download_tracepoint): Likewise.
2565 (target_can_download_tracepoint): Likewise.
2566 (target_download_trace_state_variable): Likewise.
2567 (target_enable_tracepoint): Likewise.
2568 (target_disable_tracepoint): Likewise.
2569 (target_trace_start): Likewise.
2570 (target_trace_set_readonly_regions): Likewise.
2571 (target_get_trace_status): Likewise.
2572 (target_get_tracepoint_status): Likewise.
2573 (target_trace_stop): Likewise.
2574 (target_trace_find): Likewise.
2575 (target_get_trace_state_variable_value): Likewise.
2576 (target_save_trace_data): Likewise.
2577 (target_upload_tracepoints): Likewise.
2578 (target_upload_trace_state_variables): Likewise.
2579 (target_get_raw_trace_data): Likewise.
2580 (target_get_min_fast_tracepoint_insn_len): Likewise.
2581 (target_set_disconnected_tracing): Likewise.
2582 (target_set_circular_trace_buffer): Likewise.
2583 (target_set_trace_buffer_size): Likewise.
2584 (target_set_trace_notes): Likewise.
2585 (target_get_tib_address): Likewise.
2586 (target_set_permissions): Likewise.
2587 (target_static_tracepoint_marker_at): Likewise.
2588 (target_static_tracepoint_markers_by_strid): Likewise.
2589 (target_traceframe_info): Likewise.
2590 (target_use_agent): Likewise.
2591 (target_can_use_agent): Likewise.
2592 (target_augmented_libraries_svr4_read): Likewise.
2593 (target_log_command): Likewise.
2594 * target.c (target_shortname): New.
2595 (target_longname): New.
2596 (target_attach_no_wait): New.
2597 (target_post_attach): New.
2598 (target_prepare_to_store): New.
2599 (target_supports_enable_disable_tracepoint): New.
2600 (target_supports_string_tracing): New.
2601 (target_supports_evaluation_of_breakpoint_conditions): New.
2602 (target_supports_dumpcore): New.
2603 (target_dumpcore): New.
2604 (target_can_run_breakpoint_commands): New.
2605 (target_files_info): New.
2606 (target_post_startup_inferior): New.
2607 (target_insert_fork_catchpoint): New.
2608 (target_remove_fork_catchpoint): New.
2609 (target_insert_vfork_catchpoint): New.
2610 (target_remove_vfork_catchpoint): New.
2611 (target_insert_exec_catchpoint): New.
2612 (target_remove_exec_catchpoint): New.
2613 (target_set_syscall_catchpoint): New.
2614 (target_rcmd): New.
2615 (target_can_lock_scheduler): New.
2616 (target_can_async_p): New.
2617 (target_is_async_p): New.
2618 (target_execution_direction): New.
2619 (target_extra_thread_info): New.
2620 (target_pid_to_exec_file): New.
2621 (target_thread_architecture): New.
2622 (target_find_memory_regions): New.
2623 (target_make_corefile_notes): New.
2624 (target_get_bookmark): New.
2625 (target_goto_bookmark): New.
2626 (target_stopped_by_watchpoint): New.
2627 (target_stopped_by_sw_breakpoint): New.
2628 (target_supports_stopped_by_sw_breakpoint): New.
2629 (target_stopped_by_hw_breakpoint): New.
2630 (target_supports_stopped_by_hw_breakpoint): New.
2631 (target_have_steppable_watchpoint): New.
2632 (target_can_use_hardware_watchpoint): New.
2633 (target_region_ok_for_hw_watchpoint): New.
2634 (target_can_do_single_step): New.
2635 (target_insert_watchpoint): New.
2636 (target_remove_watchpoint): New.
2637 (target_insert_hw_breakpoint): New.
2638 (target_remove_hw_breakpoint): New.
2639 (target_can_accel_watchpoint_condition): New.
2640 (target_can_execute_reverse): New.
2641 (target_get_ada_task_ptid): New.
2642 (target_filesystem_is_local): New.
2643 (target_trace_init): New.
2644 (target_download_tracepoint): New.
2645 (target_can_download_tracepoint): New.
2646 (target_download_trace_state_variable): New.
2647 (target_enable_tracepoint): New.
2648 (target_disable_tracepoint): New.
2649 (target_trace_start): New.
2650 (target_trace_set_readonly_regions): New.
2651 (target_get_trace_status): New.
2652 (target_get_tracepoint_status): New.
2653 (target_trace_stop): New.
2654 (target_trace_find): New.
2655 (target_get_trace_state_variable_value): New.
2656 (target_save_trace_data): New.
2657 (target_upload_tracepoints): New.
2658 (target_upload_trace_state_variables): New.
2659 (target_get_raw_trace_data): New.
2660 (target_get_min_fast_tracepoint_insn_len): New.
2661 (target_set_disconnected_tracing): New.
2662 (target_set_circular_trace_buffer): New.
2663 (target_set_trace_buffer_size): New.
2664 (target_set_trace_notes): New.
2665 (target_get_tib_address): New.
2666 (target_set_permissions): New.
2667 (target_static_tracepoint_marker_at): New.
2668 (target_static_tracepoint_markers_by_strid): New.
2669 (target_traceframe_info): New.
2670 (target_use_agent): New.
2671 (target_can_use_agent): New.
2672 (target_augmented_libraries_svr4_read): New.
2673 (target_log_command): New.
2674 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2675 * infrun.c (set_schedlock_func): Adjust.
2676 * mi/mi-main.c (exec_reverse_continue): Adjust.
2677 * reverse.c (exec_reverse_once): Adjust.
2678 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2679 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2680 * remote-sim.c (gdbsim_target::detach): Adjust.
2681 (gdbsim_target::files_info): Adjust.
2682
b64f703b
TT
26832021-03-24 Tom Tromey <tom@tromey.com>
2684
2685 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2686 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2687 (check_match, dw2_expand_symtabs_matching)
2688 (dwarf2_debug_names_index::map_matching_symbols)
2689 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2690
68f115f8
KS
26912021-03-24 Keith Seitz <keiths@redhat.com>
2692
2693 * compile/compile-cplus-types.c
2694 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2695 thinko.
2696
41c0087b
SM
26972021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * gdbarch.sh (gdbarch_data_registry): Make static.
2700 * gdbarch.c: Re-generate.
2701
ce192338
LM
27022021-03-24 Luis Machado <luis.machado@linaro.org>
2703
2704 * NEWS: Mention memory tagging changes.
2705
bef382e6
LM
27062021-03-24 Luis Machado <luis.machado@linaro.org>
2707
2708 * printcmd.c (decode_format): Handle the 'm' modifier.
2709 (do_examine): Display allocation tags when required/supported.
2710 (should_validate_memtags): New function.
2711 (print_command_1): Display memory tag mismatches.
2712 * valprint.c (show_memory_tag_violations): New function.
2713 (value_print_option_defs): Add new option "memory-tag-violations".
2714 (user_print_options) <memory_tag_violations>: Initialize to 1.
2715 * valprint.h (struct format_data) <print_tags>: New field.
2716 (value_print_options) <memory_tag_violations>: New field.
2717
48136e00
LM
27182021-03-24 Luis Machado <luis.machado@linaro.org>
2719
2720 * printcmd.c: Include gdbsupport/rsp-low.h.
2721 (memory_tag_list): New static global.
2722 (process_print_command_args): Factored out of
2723 print_command_1.
2724 (print_command_1): Use process_print_command_args.
2725 (show_addr_not_tagged, show_memory_tagging_unsupported)
2726 (memory_tag_command, memory_tag_print_tag_command)
2727 (memory_tag_print_logical_tag_command)
2728 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2729 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2730 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2731 functions.
2732 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2733
ffcc2a15
LM
27342021-03-24 Luis Machado <luis.machado@linaro.org>
2735
2736 * aarch64-linux-tdep.c
2737 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2738 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2739
cf44c9fa
LM
27402021-03-24 Luis Machado <luis.machado@linaro.org>
2741
2742 * aarch64-linux-tdep.c
2743 (aarch64_linux_report_signal_info): New function.
2744 (aarch64_linux_init_abi): Register
2745 aarch64_linux_report_signal_info as the report_signal_info hook.
2746 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2747 (SEGV_MTESERR): Define.
2748
b4a7d4fc
LM
27492021-03-24 Luis Machado <luis.machado@linaro.org>
2750
2751 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2752 (aarch64_linux_ltag_tests): New function.
2753 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2754
c7782e50
LM
27552021-03-24 Luis Machado <luis.machado@linaro.org>
2756
2757 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2758 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2759 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2760 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2761 functions.
2762 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2763 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2764 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2765 (aarch64_linux_get_ltag): New functions.
2766 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2767 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2768 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2769 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2770
1e735120
LM
27712021-03-24 Luis Machado <luis.machado@linaro.org>
2772
2773 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2774 bit.
2775 (struct smaps_data): New struct.
2776 (decode_vmflags): Handle the 'mt' flag.
2777 (parse_smaps_data): New function, refactored from
2778 linux_find_memory_regions_full.
2779 (linux_address_in_memtag_page): New function.
2780 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2781 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2782
93e447c6
LM
27832021-03-24 Luis Machado <luis.machado@linaro.org>
2784
2785 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2786 instead of char arrays.
2787
4601818e
LM
27882021-03-24 Luis Machado <luis.machado@linaro.org>
2789
2790 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2791 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2792 nat/aarch64-mte-linux-ptrace.h.
2793 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2794 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2795 override.
2796 <fetch_memtags>: New method override.
2797 <store_memtags>: New method override.
2798 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2799 (aarch64_linux_nat_target::fetch_memtags): New method.
2800 (aarch64_linux_nat_target::store_memtags): New method.
2801 * arch/aarch64-mte-linux.c: New file.
2802 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2803 (AARCH64_MTE_GRANULE_SIZE): Define.
2804 (aarch64_memtag_type): New enum.
2805 (aarch64_mte_get_tag_granules): New prototype.
2806 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2807 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2808 * nat/aarch64-mte-linux-ptrace.c: New file.
2809 * nat/aarch64-mte-linux-ptrace.h: New file.
2810
3f3bd8b8
LM
28112021-03-24 Luis Machado <luis.machado@linaro.org>
2812
2813 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2814 * nat/aarch64-mte-linux-ptrace.h: New file.
2815
5e984dbf
LM
28162021-03-24 Luis Machado <luis.machado@linaro.org>
2817
2818 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2819 (store_mteregs_to_thread): New function.
2820 (aarch64_linux_nat_target::fetch_registers): Update to call
2821 fetch_mteregs_from_thread.
2822 (aarch64_linux_nat_target::store_registers): Update to call
2823 store_mteregs_to_thread.
2824 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2825 (aarch64_cannot_store_register): Handle MTE registers.
2826 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2827 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2828 <has_mte>: New method.
2829 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2830
c1bd443b
LM
28312021-03-24 Luis Machado <luis.machado@linaro.org>
2832
2833 * aarch64-linux-nat.c
2834 (aarch64_linux_nat_target::read_description): Take MTE flag into
2835 account.
2836 Slight refactor to hwcap flag checking.
2837 * aarch64-linux-tdep.c
2838 (aarch64_linux_core_read_description): Likewise.
2839 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2840 MTE.
2841 (aarch64_read_description): Add mte_p parameter and update to use it.
2842 Update the documentation.
2843 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2844 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2845 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2846 (aarch64_create_target_description): Add mte_p parameter and update
2847 the code to use it.
2848 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2849 parameter.
2850 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2851 * features/aarch64-mte.c: New file, generated.
2852 * features/aarch64-mte.xml: New file.
2853
04245125
LM
28542021-03-24 Luis Machado <luis.machado@linaro.org>
2855
2856 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2857 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2858 * aarch64-linux-tdep.c: Likewise
2859 * arch/aarch64-mte-linux.h: New file.
2860
754487e2
LM
28612021-03-24 Luis Machado <luis.machado@linaro.org>
2862
2863 * remote: Include gdbsupport/selftest.h.
2864 (test_memory_tagging_functions): New function.
2865 (_initialize_remote): Register test_memory_tagging_functions.
2866
2c2e7f87
LM
28672021-03-24 Luis Machado <luis.machado@linaro.org>
2868
2869 * remote.c (PACKET_memory_tagging_feature): New enum.
2870 (remote_memory_tagging_p): New function.
2871 (remote_protocol_features): New "memory-tagging" entry.
2872 (remote_target::remote_query_supported): Handle memory tagging
2873 support.
2874 (remote_target::supports_memory_tagging): Implement.
2875 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2876 (create_store_memtags_request): New functions.
2877 (remote_target::fetch_memtags): Implement.
2878 (remote_target::store_memtags): Implement.
2879 (_initialize_remote): Add new "memory-tagging-feature"
2880 config command.
2881
c193949e
LM
28822021-03-24 Luis Machado <luis.machado@linaro.org>
2883
2884 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2885 (default_memtag_matches_p, default_set_memtags)
2886 (default_get_memtag): New functions.
2887 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2888 (default_memtag_matches_p, default_set_memtags)
2889 (default_get_memtag): New prototypes.
2890 * gdbarch.c: Regenerate.
2891 * gdbarch.h: Regenerate.
2892 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2893 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2894 (enum memtag_type): New enum.
2895
dbe692af
LM
28962021-03-24 Luis Machado <luis.machado@linaro.org>
2897
2898 * remote.c (remote_target) <supports_memory_tagging>: New method
2899 override.
2900 <fetch_memtags>: New method override.
2901 <store_memtags>: New method override.
2902 (remote_target::supports_memory_tagging): New method.
2903 (remote_target::fetch_memtags): New method.
2904 (remote_target::store_memtags): New method.
2905 * target-delegates.c: Regenerate.
2906 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2907 method.
2908 <fetch_memtags>: New virtual method.
2909 <store_memtags>: New virtual method.
2910 (target_supports_memory_tagging): Define.
2911 (target_fetch_memtags): Define.
2912 (target_store_memtags): Define.
2913 * target-debug.h (target_debug_print_size_t)
2914 (target_debug_print_const_gdb_byte_vector_r)
2915 (target_debug_print_gdb_byte_vector_r): New functions.
2916
66848ebc
SM
29172021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2918
2919 * target.h (target_longname): Remove.
2920
c8fbd44a
SM
29212021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2922
2923 * target.h (target_is_pushed): Remove, update callers to use
2924 inferior::target_is_pushed instead.
2925 * target.c (target_is_pushed): Remove.
2926
02980c56
SM
29272021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2928
2929 * target.h (push_target): Remove, update callers to use
2930 inferior::push_target.
2931 * target.c (push_target): Remove.
2932 * inferior.h (class inferior) <push_target>: New overload.
2933
fadf6add
SM
29342021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2935
2936 * target.h (unpush_target): Remove, update all callers
2937 to use `inferior::unpush_target` instead.
2938 (struct target_unpusher) <operator()>: Just declare.
2939 * target.c (unpush_target): Remove.
2940 (target_unpusher::operator()): New.
2941
702cf3f5
AB
29422021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2943
2944 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2945 error.
2946 (process_full_comp_unit): Validate the top-level tag before
2947 processing the first DIE.
2948 (read_func_scope): Ensure we have a valid builder.
2949
46fec642
AB
29502021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2951
2952 * objc-lang.c (objc_demangle): Renamed to
2953 objc_language::demangle_symbol, and moved later in the file.
2954 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2955 member function.
2956 (objc_language::demangle_symbol): Defined outside of class
2957 declaration. The definition is the old objc_demangle with NULL
2958 changed to nullptr, and if conditions relating to nullptr pointers
2959 or null character checks made explicit.
2960 * objc-lang.h (objc_demangle): Delete declaration.
2961
08dedd66
ML
29622021-03-22 Martin Liska <mliska@suse.cz>
2963
2964 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2965 (_initialize_arm_tdep): Likewise.
2966
eb36a3eb
TT
29672021-03-20 Tom Tromey <tom@tromey.com>
2968
2969 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2970 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2971 * psymtab.h (make_psymbol_functions): Don't declare.
2972 * psymtab.c (make_psymbol_functions): Remove.
2973 (maintenance_print_psymbols): Update.
2974 * psympriv.h (struct psymbol_functions): Add no-argument
2975 constructor.
2976 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2977 <partial_symtabs>: Remove.
2978 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2979 * elfread.c (read_partial_symbols): Update.
2980 (elf_symfile_read): Remove check for existing partial symbols.
2981 Don't clear "qf".
2982 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2983 partial symbols.
2984 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2985 partial symtabs.
2986 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2987 parameter.
2988 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2989 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2990
e1114590
TT
29912021-03-20 Tom Tromey <tom@tromey.com>
2992
2993 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2994 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2995 * symfile-debug.c (objfile::has_partial_symbols)
2996 (objfile::find_last_source_symtab)
2997 (objfile::forget_cached_source_info)
2998 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2999 (objfile::print_stats, objfile::dump)
3000 (objfile::expand_symtabs_for_function)
3001 (objfile::expand_all_symtabs)
3002 (objfile::expand_symtabs_with_fullname)
3003 (objfile::map_matching_symbols)
3004 (objfile::expand_symtabs_matching)
3005 (objfile::find_pc_sect_compunit_symtab)
3006 (objfile::map_symbol_filenames)
3007 (objfile::find_compunit_symtab_by_address)
3008 (objfile::lookup_global_symbol_language)
3009 (objfile::require_partial_symbols): Update.
3010 * psymtab.c (maintenance_print_psymbols)
3011 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3012 * objfiles.h (struct objfile) <qf>: Now a forward_list.
3013 * objfiles.c (objfile_relocate1): Update.
3014 * elfread.c (elf_symfile_read): Update.
3015
de909f0b
TT
30162021-03-20 Tom Tromey <tom@tromey.com>
3017
3018 * objfiles.h (struct objfile) <psymtabs>: Remove method.
3019
caf8c1e5
TT
30202021-03-20 Tom Tromey <tom@tromey.com>
3021
3022 * psymtab.c (psymbol_functions::count_psyms): Rename.
3023 (psymbol_functions::print_stats): Update.
3024 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3025 method.
3026
3aa31ce7
TT
30272021-03-20 Tom Tromey <tom@tromey.com>
3028
3029 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3030 (psymbol_functions::find_pc_sect_psymtab): Rename.
3031 (psymbol_functions::find_pc_sect_compunit_symtab)
3032 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3033 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3034 Declare new method.
3035 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3036
7b249e47
TT
30372021-03-20 Tom Tromey <tom@tromey.com>
3038
3039 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3040 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
3041 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3042 parameter.
3043 (add_psymbol_to_bcache): Remove.
3044 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
3045 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3046 Likewise.
3047 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
3048 <add_psymbol>: Likewise.
3049 (standard_psymtab, legacy_psymtab): Likewise.
3050 * mdebugread.c (parse_partial_symbols): Update.
3051 (handle_psymbol_enumerators): Add partial_symtabs parameter.
3052 (handle_psymbol_enumerators): Update.
3053 (new_psymtab): Add partial_symtabs parameter.
3054 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3055 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3056 parameter.
3057 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3058 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3059 Update.
3060 * dbxread.c (read_dbx_symtab): Update.
3061 (start_psymtab): Add partial_symtabs parameter.
3062 (dbx_end_psymtab): Update.
3063 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3064 (ctf_psymtab): Add partial_symtabs parameter.
3065 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3066 Update.
3067 (scan_partial_symbols): Add partial_symtabs parameter.
3068 (scan_partial_symbols, elfctf_build_psymtabs)
3069 (ctf_psymtab_add_enums): Update.
3070
d1eef86d
TT
30712021-03-20 Tom Tromey <tom@tromey.com>
3072
3073 * symfile.c (read_symbols): Use objfile method.
3074 * symfile-debug.c (objfile::require_partial_symbols): New method.
3075 * psymtab.h (require_partial_symbols): Don't declare.
3076 * psymtab.c (require_partial_symbols): Use objfile method. Now
3077 static.
3078 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3079 (psymbol_functions::lookup_symbol)
3080 (psymbol_functions::lookup_global_symbol_language)
3081 (psymbol_functions::find_last_source_symtab)
3082 (psymbol_functions::forget_cached_source_info)
3083 (psymbol_functions::print_stats)
3084 (psymbol_functions::expand_symtabs_for_function)
3085 (psymbol_functions::expand_all_symtabs)
3086 (psymbol_functions::expand_symtabs_with_fullname)
3087 (psymbol_functions::map_symbol_filenames)
3088 (psymbol_functions::map_matching_symbols)
3089 (psymbol_functions::expand_symtabs_matching)
3090 (psymbol_functions::find_compunit_symtab_by_address)
3091 (maintenance_print_psymbols, maintenance_info_psymtabs)
3092 (maintenance_check_psymtabs): Update.
3093 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3094 new method.
3095
eb00e468
TT
30962021-03-20 Tom Tromey <tom@tromey.com>
3097
3098 * xcoffread.c (xcoff_sym_fns): Update.
3099 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3100 * symfile-debug.c (objfile::has_partial_symbols): Use
3101 can_lazily_read_symbols.
3102 (debug_sym_read_psymbols): Remove.
3103 (debug_sym_fns, install_symfile_debug_logging): Update.
3104 * quick-symbol.h (struct quick_symbol_functions)
3105 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3106 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3107 * mipsread.c (ecoff_sym_fns): Update.
3108 * machoread.c (macho_sym_fns): Update.
3109 * elfread.c (struct lazy_dwarf_reader): New.
3110 (elf_symfile_read): Update.
3111 (read_psyms): Now a method of lazy_dwarf_reader.
3112 (elf_sym_fns): Update.
3113 (elf_sym_fns_lazy_psyms): Remove.
3114 * dbxread.c (aout_sym_fns): Update.
3115 * coffread.c (coff_sym_fns): Update.
3116
b29b98cf
TT
31172021-03-20 Tom Tromey <tom@tromey.com>
3118
3119 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3120 (reread_symbols): Move reset_psymtabs call later.
3121 * objfiles.c (objfile::objfile): Don't initialize
3122 partial_symtabs.
3123
17d66340
TT
31242021-03-20 Tom Tromey <tom@tromey.com>
3125
3126 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3127 set_partial_symtabs.
3128 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3129 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3130 parameter.
3131 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3132 parameter.
3133 (psymbol_functions::find_pc_sect_compunit_symtab)
3134 (psymbol_functions::print_stats, psymbol_functions::dump)
3135 (psymbol_functions::has_symbols): Update.
3136 (make_psymbol_functions, dump_psymtab_addrmap): Add
3137 partial_symtabs parameter.
3138 (maintenance_print_psymbols): Update.
3139 (psymbol_functions::expand_symtabs_matching): Update.
3140 * psympriv.h (struct psymbol_functions): Add constructor.
3141 <m_partial_symtabs>: New member.
3142 <set_partial_symtabs>: New method.
3143
84685904
TT
31442021-03-20 Tom Tromey <tom@tromey.com>
3145
3146 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3147 parameter.
3148 (process_psymtab_comp_unit_reader)
3149 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3150 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3151 Reference psymtabs via per_bfd.
3152
79cc99f6
TT
31532021-03-20 Tom Tromey <tom@tromey.com>
3154
3155 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3156 Remove.
3157 (add_address_entry): Remove objfile parameter.
3158 (add_address_entry_worker): Update.
3159 (write_address_map): Replace objfile parameter with per_bfd.
3160 (write_gdbindex, write_psymtabs_to_index): Update.
3161
4829711b
TT
31622021-03-20 Tom Tromey <tom@tromey.com>
3163
3164 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3165 print_bcache parameter.
3166 * symfile-debug.c (objfile::print_stats): Add print_bcache
3167 parameter.
3168 * quick-symbol.h (struct quick_symbol_functions)
3169 <print_stats>: Add print_bcache parameter.
3170 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3171 code to psymtab.c.
3172 (print_objfile_statistics): Move psymtab code to psymtab.c.
3173 * psymtab.c (count_psyms): Move from symmisc.c.
3174 (psymbol_functions::print_stats): Print partial symbol and bcache
3175 statistics. Add print_bcache parameter.
3176 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3177 (struct objfile) <print_stats>: Add print_bcache parameter.
3178 * maint.c (maintenance_print_statistics): Update.
3179
efd7398e
TT
31802021-03-20 Tom Tromey <tom@tromey.com>
3181
3182 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3183 member.
3184 * dwarf2/read.c (create_addrmap_from_index)
3185 (create_addrmap_from_aranges): Set per_bfd addrmap.
3186 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3187 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3188 per_bfd addrmap.
3189 (dwarf2_read_debug_names): Don't set partial_symtabs.
3190 (dwarf2_initialize_objfile): Likewise.
3191
51962708
TT
31922021-03-20 Tom Tromey <tom@tromey.com>
3193
3194 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3195 earlier.
3196
484b1090
TT
31972021-03-20 Tom Tromey <tom@tromey.com>
3198
3199 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3200 (~psymtab_discarder, keep): Update.
3201 <m_objfile>: Remove.
3202 <m_partial_symtabs>: New member.
3203 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3204
7e9c0476
TT
32052021-03-20 Tom Tromey <tom@tromey.com>
3206
3207 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3208 (xcoff_end_psymtab): Update.
3209 (scan_xcoff_symtab): Add partial_symtabs parameter.
3210 (xcoff_initial_scan): Update.
3211 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3212 * mdebugread.c (mdebug_build_psymtabs): Update.
3213 (parse_partial_symbols): Add partial_symtabs parameter.
3214 * dbxread.c (dbx_symfile_read): Update.
3215 (read_dbx_symtab): Add partial_symtabs parameter.
3216 (read_dbx_symtab): Update.
3217 (dbx_end_psymtab): Add partial_symtabs parameter.
3218
75336a5a
TT
32192021-03-20 Tom Tromey <tom@tromey.com>
3220
3221 * quick-symbol.h (struct quick_symbol_functions)
3222 <relocated>: New method.
3223 * psymtab.h (struct psymbol_functions) <relocated>: New
3224 method.
3225 <fill_psymbol_map>: Declare method.
3226 <m_psymbol_map>: New member.
3227 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3228 (psymbol_functions::find_compunit_symtab_by_address): Update.
3229 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3230 (struct objfile) <psymbol_map>: Remove.
3231 * objfiles.c (objfile_relocate1): Update.
3232
39298a5d
TT
32332021-03-20 Tom Tromey <tom@tromey.com>
3234
3235 * psympriv.h (struct psymbol_functions): New.
3236 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3237 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3238 (objfile::lookup_global_symbol_language): Update.
3239 * quick-symbol.h (struct quick_symbol_functions): Convert function
3240 pointers to methods. Add virtual destructor.
3241 (quick_symbol_functions_up): New typedef.
3242 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3243 (dwarf2_debug_names_functions): Don't declare.
3244 (make_psymbol_functions): Declare.
3245 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3246 (psymbol_functions::find_pc_sect_compunit_symtab)
3247 (psymbol_functions::lookup_symbol)
3248 (psymbol_functions::lookup_global_symbol_language)
3249 (psymbol_functions::find_last_source_symtab)
3250 (psymbol_functions::forget_cached_source_info)
3251 (psymbol_functions::print_stats, psymbol_functions::dump)
3252 (psymbol_functions::expand_symtabs_for_function)
3253 (psymbol_functions::expand_all_symtabs)
3254 (psymbol_functions::expand_symtabs_with_fullname)
3255 (psymbol_functions::map_symbol_filenames)
3256 (psymbol_functions::map_matching_symbols)
3257 (psymbol_functions::expand_symtabs_matching)
3258 (psymbol_functions::has_symbols)
3259 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3260 (psym_functions): Remove.
3261 (make_psymbol_functions): New function.
3262 * objfiles.h (struct objfile) <qf>: Change type.
3263 * elfread.c (elf_symfile_read): Update.
3264 * dwarf2/read.c (struct dwarf2_base_index_functions)
3265 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3266 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3267 (dwarf2_base_index_functions::find_last_source_symtab)
3268 (dwarf2_base_index_functions::forget_cached_source_info)
3269 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3270 (dwarf2_gdb_index::lookup_symbol)
3271 (dwarf2_base_index_functions::print_stats)
3272 (dwarf2_gdb_index::dump)
3273 (dwarf2_gdb_index::expand_symtabs_for_function)
3274 (dwarf2_base_index_functions::expand_all_symtabs)
3275 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3276 Rename.
3277 (dwarf2_gdb_index::map_matching_symbols): New method.
3278 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3279 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3280 (dwarf2_base_index_functions::map_symbol_filenames)
3281 (dwarf2_base_index_functions::has_symbols): Rename.
3282 (dwarf2_gdb_index_functions): Remove.
3283 (dwarf2_debug_names_index::lookup_symbol)
3284 (dwarf2_debug_names_index::dump)
3285 (dwarf2_debug_names_index::expand_symtabs_for_function)
3286 (dwarf2_debug_names_index::map_matching_symbols)
3287 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3288 (dwarf2_debug_names_functions): Remove.
3289 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3290 Declare.
3291
5c3f1e5b
TT
32922021-03-20 Tom Tromey <tom@tromey.com>
3293
3294 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3295 null.
3296 * xcoffread.c (xcoff_sym_fns): Update.
3297 * symfile.h (struct sym_fns) <qf>: Remove.
3298 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3299 * symfile-debug.c (objfile::has_partial_symbols)
3300 (objfile::find_last_source_symtab)
3301 (objfile::forget_cached_source_info)
3302 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3303 (objfile::print_stats, objfile::dump)
3304 (objfile::expand_symtabs_for_function)
3305 (objfile::expand_all_symtabs)
3306 (objfile::expand_symtabs_with_fullname)
3307 (objfile::map_matching_symbols)
3308 (objfile::expand_symtabs_matching)
3309 (objfile::find_pc_sect_compunit_symtab)
3310 (objfile::map_symbol_filenames)
3311 (objfile::find_compunit_symtab_by_address)
3312 (objfile::lookup_global_symbol_language, debug_sym_fns)
3313 (install_symfile_debug_logging): Update.
3314 * objfiles.h (struct objfile) <qf>: New member.
3315 * mipsread.c (ecoff_sym_fns): Update.
3316 * machoread.c (macho_sym_fns): Update.
3317 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3318 Don't declare.
3319 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3320 * dbxread.c (aout_sym_fns): Update.
3321 * coffread.c (coff_sym_fns): Update.
3322
9b99dcc8
TT
33232021-03-20 Tom Tromey <tom@tromey.com>
3324
3325 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3326 (expand_symtabs_file_matcher_ftype)
3327 (expand_symtabs_symbol_matcher_ftype)
3328 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3329 Move to quick-symbol.h.
3330 * quick-symbol.h: New file.
3331
4d080b46
TT
33322021-03-20 Tom Tromey <tom@tromey.com>
3333
3334 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3335 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3336 (basic_lookup_transparent_type_quick)
3337 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3338 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3339 Update.
3340 * symmisc.c (print_objfile_statistics, dump_objfile)
3341 (maintenance_expand_symtabs): Update.
3342 * symfile.c (symbol_file_add_with_addrs)
3343 (expand_symtabs_matching, map_symbol_filenames): Update.
3344 * symfile-debug.c (objfile::has_partial_symbols)
3345 (objfile::find_last_source_symtab)
3346 (objfile::forget_cached_source_info)
3347 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3348 (objfile::print_stats, objfile::dump)
3349 (objfile::expand_symtabs_for_function)
3350 (objfile::expand_all_symtabs)
3351 (objfile::expand_symtabs_with_fullname)
3352 (objfile::map_matching_symbols)
3353 (objfile::expand_symtabs_matching)
3354 (objfile::find_pc_sect_compunit_symtab)
3355 (objfile::map_symbol_filenames)
3356 (objfile::find_compunit_symtab_by_address)
3357 (objfile::lookup_global_symbol_language): New methods.
3358 (debug_sym_quick_functions): Remove.
3359 (debug_sym_fns, install_symfile_debug_logging): Update.
3360 * source.c (forget_cached_source_info_for_objfile)
3361 (select_source_symtab): Update.
3362 * objfiles.h (struct objfile): Add methods corresponding to
3363 quick_symbol_functions.
3364 * objfiles.c (objfile::has_partial_symbols): Move to
3365 symfile-debug.c.
3366 * linespec.c (iterate_over_all_matching_symtabs): Update.
3367 * cp-support.c (add_symbol_overload_list_qualified): Update.
3368 * ada-lang.c (add_nonlocal_symbols): Update.
3369
fae2120b
TT
33702021-03-20 Tom Tromey <tom@tromey.com>
3371
3372 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3373 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3374 bool.
3375 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3376 * psymtab.c (psym_has_symbols): Return bool.
3377 * objfiles.c (objfile::has_partial_symbols): Return bool.
3378 * dwarf2/read.c (dw2_has_symbols): Return bool.
3379
a8ad4f3c
TT
33802021-03-20 Tom Tromey <tom@tromey.com>
3381
3382 * symfile.c (read_symbols): Update.
3383 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3384 (objfile_has_partial_symbols): Don't declare.
3385 * objfiles.c (objfile::has_partial_symbols): Rename from
3386 objfile_has_partial_symbols.
3387 (objfile_has_symbols, have_partial_symbols): Update.
3388 * elfread.c (elf_symfile_read): Update.
3389 * dwarf2/read.c (dwarf2_has_info): Update.
3390 * coffread.c (coff_symfile_read): Update.
3391
70182375
TT
33922021-03-20 Tom Tromey <tom@tromey.com>
3393
3394 * coffread.c: Include dwarf2/public.h.
3395 * dwarf2/frame.c: Include dwarf2/public.h.
3396 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3397 * dwarf2/public.h: New file.
3398 * dwarf2/read.c: Include dwarf2/public.h.
3399 * elfread.c: Include dwarf2/public.h.
3400 * machoread.c: Include dwarf2/public.h.
3401 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3402 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3403 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3404 * xcoffread.c: Include dwarf2/public.h.
3405
18038e63
TT
34062021-03-20 Tom Tromey <tom@tromey.com>
3407
3408 * symfile.h (enum dwarf2_section_enum)
3409 (dwarf2_get_section_info): Move to dwarf2/read.h.
3410 * dwarf2/read.h (enum dwarf2_section_enum)
3411 (dwarf2_get_section_info): Move from symfile.h.
3412
219f56b4
PA
34132021-03-19 Pedro Alves <pedro@palves.net>
3414
3415 * thread.c (any_thread_of_inferior): Check if there's a selected
3416 thread before calling inferior_thread().
3417
15310fd4
TT
34182021-03-18 Tom Tromey <tromey@adacore.com>
3419
3420 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3421 get_DW_UT_name.
3422 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3423 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3424
763b8efd
AB
34252021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3426
3427 * python/py-param.c (get_set_value): Update header comment.
3428
f058c521
SM
34292021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3430
3431 * infrun.c (check_multi_target_resumption): Remove argument to
3432 all_non_exited_inferiors.
3433
383228bc
CB
34342021-03-16 Christian Biesinger <cbiesinger@google.com>
3435
3436 * windows-nat.c (windows_init_thread_list): Add message to
3437 debug log.
3438
7807d76a
AB
34392021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3440
3441 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3442 well as PyLong_Check for Python 2.
3443
675da9a5
TT
34442021-03-15 Tom Tromey <tromey@adacore.com>
3445
3446 PR build/27579:
3447 * rust-exp.y (maker_map): Use gdb::hash_enum.
3448 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3449
4800761a
SM
34502021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3451
3452 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3453 end of debug print.
3454
eb5dd737
SM
34552021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3456
3457 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3458 parameter, adjust caller.
3459
6813ceb0
TT
34602021-03-15 Tom Tromey <tromey@adacore.com>
3461
3462 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3463
3b5c4de0
TT
34642021-03-15 Tom Tromey <tromey@adacore.com>
3465
3466 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3467 ada_ensure_varsize_limit.
3468
c04da66c
TT
34692021-03-15 Tom Tromey <tromey@adacore.com>
3470
3471 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3472 fixed-point.
3473 * ada-exp.y (maybe_overload): New function.
3474 (ada_wrap_overload): New function.
3475 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3476 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3477 (or_else_exp, xor_exp, primary): Update.
3478
9863c3b5
TT
34792021-03-15 Tom Tromey <tromey@adacore.com>
3480
3481 PR ada/27545:
3482 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3483 call for tagged type.
3484
1ac74522
TT
34852021-03-15 Tom Tromey <tromey@adacore.com>
3486
3487 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3488 assignment.
3489
207582c0
TT
34902021-03-15 Tom Tromey <tromey@adacore.com>
3491
3492 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3493 container.
3494 (ada_assign_operation::evaluate): Update.
3495 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3496 Change return type.
3497
8d624a9d
FW
34982021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3499
3500 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3501
ba6a0ef3
AB
35022021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3503
3504 * python/python.c (gdbpy_source_objfile_script): Use
3505 make_scoped_restore to restore gdbpy_current_objfile.
3506 (gdbpy_execute_objfile_script): Likewise.
3507
7c290a04
TT
35082021-03-14 Tom Tromey <tom@tromey.com>
3509
3510 * dwarf2/read.c (read_attribute_value): Use cu_header
3511 consistently.
3512
0280fdcc
TT
35132021-03-14 Tom Tromey <tom@tromey.com>
3514
3515 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3516 (peek_die_abbrev): Use reader.abfd.
3517
a9f172c6
TT
35182021-03-14 Tom Tromey <tom@tromey.com>
3519
3520 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3521 m_header_read_in.
3522
7c32eebb
TT
35232021-03-13 Tom Tromey <tom@tromey.com>
3524
3525 * dwarf2/read.c (struct partial_die_info): Update.
3526 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3527 (load_partial_dies, partial_die_info::partial_die_info): Update.
3528 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3529
27012aba
TT
35302021-03-13 Tom Tromey <tom@tromey.com>
3531
3532 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3533
fece451c
CB
35342021-03-12 Christian Biesinger <cbiesinger@google.com>
3535
3536 PR threads/27239
3537 * cp-support.c: Use scoped_segv_handler_restore.
3538 * event-top.c (thread_local_segv_handler): Made static.
3539 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3540 New function.
3541 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3542 function.
3543 * event-top.h (class scoped_segv_handler_restore): New class.
3544 (thread_local_segv_handler): Removed.
3545
7056f312
TT
35462021-03-10 Tom Tromey <tromey@adacore.com>
3547
3548 * parser-defs.h (parser_state): Change completion to bool.
3549 <parse_completion>: Likewise.
3550 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3551 (ada_resolve_variable, ada_resolve_function): Update.
3552 * ada-lang.c (ada_find_operator_symbol): Change
3553 parse_completion to bool.
3554 (ada_resolve_funcall, ada_resolve_variable)
3555 (ada_resolve_function): Likewise.
3556
ccdc02ed
TT
35572021-03-09 Tom Tromey <tromey@adacore.com>
3558
3559 * eval.c (operation::evaluate_funcall): Use function formal
3560 parameter types when evaluating.
3561
fbb1aace
AB
35622021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3563
3564 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3565 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3566 and owner to m_owner.
3567
611aa09d
FW
35682021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3569
3570 * f-exp.h (eval_op_f_loc): Declare.
3571 (expr::fortran_loc_operation): New typedef.
3572 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3573 UNOP_INTRINSIC.
3574 (f77_keywords): Add LOC keyword.
3575 * f-lang.c (eval_op_f_loc): New function.
3576 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3577
eef32f59
AB
35782021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3579
3580 * f-exp.h (eval_op_f_array_shape): Declare.
3581 (fortran_array_shape_operation): New type.
3582 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3583 UNOP_INTRINSIC.
3584 (f77_keywords): Add "shape" keyword.
3585 * f-lang.c (fortran_array_shape): New function.
3586 (eval_op_f_array_shape): New function.
3587 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3588
7ba155b3
AB
35892021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3590
3591 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3592 of this function.
3593 (expr::fortran_array_size_1arg): New type.
3594 (expr::fortran_array_size_2arg): Likewise.
3595 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3596 UNOP_OR_BINOP_INTRINSIC.
3597 (f77_keywords): Add "size" keyword.
3598 * f-lang.c (fortran_array_size): New function.
3599 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3600 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3601
e14816a8
AB
36022021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3603
3604 * f-exp.h (eval_op_f_rank): Declare.
3605 (expr::fortran_rank_operation): New typedef.
3606 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3607 UNOP_INTRINSIC.
3608 (f77_keywords): Add "rank" keyword.
3609 * f-lang.c (eval_op_f_rank): New function.
3610 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3611
3dd93bf8
TT
36122021-03-08 Tom Tromey <tom@tromey.com>
3613
3614 * printcmd.c (set_command): Remove null check.
3615 * value.c (init_if_undefined_command): Remove null check.
3616
9c79936b
TT
36172021-03-08 Tom Tromey <tom@tromey.com>
3618
3619 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3620 Update.
3621 * p-exp.y (variable): Update.
3622 * go-exp.y (variable): Update.
3623 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3624 Remove overload for objfile.
3625 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3626 parameter.
3627 (check_objfile): Likewise.
3628 (dump_for_expression): Likewise. Remove overload for objfile.
3629 (class var_msym_value_operation): Use bound_minimal_symbol.
3630 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3631 parameter.
3632 (var_msym_value_operation::evaluate_for_address)
3633 (var_msym_value_operation::evaluate_for_sizeof)
3634 (var_msym_value_operation::evaluate_for_cast): Update.
3635 * d-exp.y (PrimaryExpression): Update.
3636 * c-exp.y (variable): Update.
3637 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3638 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3639 Update.
3640 * ada-exp.y (write_var_or_type): Update.
3641
40d07d07
TT
36422021-03-08 Tom Tromey <tom@tromey.com>
3643
3644 * parser-defs.h (exp_uses_objfile): Return bool.
3645 * parse.c (exp_uses_objfile): Return bool.
3646
0b2b0b82
TT
36472021-03-08 Tom Tromey <tom@tromey.com>
3648
3649 * value.h (eval_skip_value): Don't declare.
3650 * opencl-lang.c (eval_opencl_assign): Update.
3651 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3652 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3653 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3654 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3655 * expop.h (typeof_operation::evaluate)
3656 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3657 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3658 (cxx_cast_operation::evaluate): Update.
3659 * eval.c (eval_skip_value): Remove.
3660 (eval_op_scope, eval_op_var_entry_value)
3661 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3662 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3663 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3664 (eval_op_binary, eval_op_subscript, eval_op_equal)
3665 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3666 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3667 (eval_op_complement, eval_op_lognot, eval_op_ind)
3668 (eval_op_memval, eval_op_preinc, eval_op_predec)
3669 (eval_op_postinc, eval_op_postdec, eval_op_type)
3670 (eval_binop_assign_modify, eval_op_objc_msgcall)
3671 (eval_multi_subscript, logical_and_operation::evaluate)
3672 (logical_or_operation::evaluate, array_operation::evaluate)
3673 (operation::evaluate_for_cast)
3674 (var_msym_value_operation::evaluate_for_cast)
3675 (var_value_operation::evaluate_for_cast): Update.
3676 * c-lang.c (c_string_operation::evaluate): Update.
3677 * c-exp.h (objc_nsstring_operation::evaluate)
3678 (objc_selector_operation::evaluate): Update.
3679 * ada-lang.c (ada_assign_operation::evaluate)
3680 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3681 (ada_atr_size): Update.
3682
96db551d
TT
36832021-03-08 Tom Tromey <tom@tromey.com>
3684
3685 * eval.c: Merge "namespace" scopes.
3686
ce284361
TT
36872021-03-08 Tom Tromey <tom@tromey.com>
3688
3689 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3690 <release>: Inline.
3691 * parse.c (expr_builder::expr_builder, expr_builder::release):
3692 Remove.
3693
b9d06571
TT
36942021-03-08 Tom Tromey <tom@tromey.com>
3695
3696 * parse.c (expression::expression, expression::~expression):
3697 Remove.
3698 * expression.h (struct expression): Inline constructor. Remove
3699 destructor.
3700
79ab486e
TT
37012021-03-08 Tom Tromey <tom@tromey.com>
3702
3703 * std-operator.def (BINOP_END): Remove.
3704 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3705 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3706 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3707 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3708 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3709 BINOP_END.
3710
48fa6f23
TT
37112021-03-08 Tom Tromey <tom@tromey.com>
3712
3713 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3714
43f542e3
TT
37152021-03-08 Tom Tromey <tom@tromey.com>
3716
3717 * std-operator.def (OP_EXTENDED0): Remove.
3718
5d9ba982
TT
37192021-03-08 Tom Tromey <tom@tromey.com>
3720
3721 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3722 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3723 Remove.
3724
d357570d
TT
37252021-03-08 Tom Tromey <tom@tromey.com>
3726
3727 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3728 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3729
0922dc84
TT
37302021-03-08 Tom Tromey <tom@tromey.com>
3731
3732 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3733 * ada-lang.c (ada_binop_minmax): Update.
3734 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3735 Use BINOP_MIN and BINOP_MAX.
3736
1eaebe02
TT
37372021-03-08 Tom Tromey <tom@tromey.com>
3738
3739 * value.h (evaluate_subexp_with_coercion): Don't declare.
3740 * parse.c (exp_descriptor_standard): Remove.
3741 (expr_builder::expr_builder, expr_builder::release): Update.
3742 (expression::expression): Remove size_t parameter.
3743 (expression::~expression): Simplify.
3744 (expression::resize): Remove.
3745 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3746 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3747 (write_exp_elt_longcst, write_exp_elt_floatcst)
3748 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3749 (write_exp_string_vector, write_exp_bitstring): Remove.
3750 * p-lang.h (class pascal_language) <opcode_print_table,
3751 op_print_tab>: Remove.
3752 * p-lang.c (pascal_language::op_print_tab): Remove.
3753 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3754 Remove.
3755 * objc-lang.c (objc_op_print_tab): Remove.
3756 (class objc_language) <opcode_print_table>: Remove.
3757 * m2-lang.h (class m2_language) <opcode_print_table,
3758 op_print_tab>: Remove.
3759 * m2-lang.c (m2_language::op_print_tab): Remove.
3760 * language.h (struct language_defn) <post_parser, expression_ops,
3761 opcode_print_table>: Remove.
3762 * language.c (language_defn::expression_ops)
3763 (auto_or_unknown_language::opcode_print_table): Remove.
3764 * go-lang.h (class go_language) <opcode_print_table,
3765 op_print_tab>: Remove.
3766 * go-lang.c (go_language::op_print_tab): Remove.
3767 * f-lang.h (class f_language) <opcode_print_table>: Remove
3768 <op_print_tab>: Remove.
3769 * f-lang.c (f_language::op_print_tab): Remove.
3770 * expression.h (union exp_element): Remove.
3771 (struct expression): Remove size_t parameter from constructor.
3772 <resize>: Remove.
3773 <first_opcode>: Update.
3774 <nelts, elts>: Remove.
3775 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3776 (evaluate_subexp_standard, print_expression, op_string)
3777 (dump_raw_expression): Don't declare.
3778 * expprint.c (print_expression, print_subexp)
3779 (print_subexp_funcall, print_subexp_standard, op_string)
3780 (dump_raw_expression, dump_subexp, dump_subexp_body)
3781 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3782 (dump_prefix_expression): Update.
3783 * eval.c (evaluate_subexp): Remove.
3784 (evaluate_expression, evaluate_type): Update.
3785 (evaluate_subexpression_type): Remove.
3786 (fetch_subexp_value): Remove "pc" parameter. Update.
3787 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3788 (evaluate_subexp_standard, evaluate_subexp_for_address)
3789 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3790 (evaluate_subexp_for_cast): Remove.
3791 (parse_and_eval_type): Update.
3792 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3793 * d-lang.c (d_op_print_tab): Remove.
3794 (class d_language) <opcode_print_table>: Remove.
3795 * c-lang.h (c_op_print_tab): Don't declare.
3796 * c-lang.c (c_op_print_tab): Remove.
3797 (class c_language, class cplus_language, class asm_language, class
3798 minimal_language) <opcode_print_table>: Remove.
3799 * breakpoint.c (update_watchpoint, watchpoint_check)
3800 (watchpoint_exp_is_const, watch_command_1): Update.
3801 * ax-gdb.h (union exp_element): Don't declare.
3802 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3803 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3804 (gen_expr_binop_rest): Remove.
3805 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3806 * ada-lang.c (ada_op_print_tab): Remove.
3807 (class ada_language) <post_parser, opcode_print_table>: Remove.
3808
f2a98603
TT
38092021-03-08 Tom Tromey <tom@tromey.com>
3810
3811 * go-lang.c (go_language::expression_ops): Don't declare.
3812 * go-lang.h (class go_language) <expression_ops>: Remove.
3813 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3814 Remove.
3815 (class opencl_language) <expression_ops>: Remove.
3816 * d-lang.c (class d_language) <expression_ops>: Remove.
3817 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3818 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3819 (class c_language, class cplus_language, class asm_language)
3820 (class minimal_language) <expression_ops>: Remove.
3821
d3c54a1c
TT
38222021-03-08 Tom Tromey <tom@tromey.com>
3823
3824 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3825 (evaluate_subexp_type, assign_aggregate)
3826 (aggregate_assign_positional, aggregate_assign_from_choices)
3827 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3828 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3829 (ada_operator_check, ada_forward_operator_length)
3830 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3831 Remove.
3832 (post_parser): Update.
3833 (class ada_language) <expresssion_ops>: Remove.
3834
5871f0a3
TT
38352021-03-08 Tom Tromey <tom@tromey.com>
3836
3837 * m2-lang.h (class m2_language) <expresssion_ops,
3838 exp_descriptor_modula2>: Remove.
3839 * m2-lang.c (evaluate_subexp_modula2)
3840 (m2_language::exp_descriptor_modula2): Remove.
3841
a99be8c1
TT
38422021-03-08 Tom Tromey <tom@tromey.com>
3843
3844 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3845 <exp_descriptor_tab>: Remove.
3846 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3847 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3848 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3849 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3850 Remove.
3851
aa1da9ed
TT
38522021-03-08 Tom Tromey <tom@tromey.com>
3853
3854 * rust-lang.h (class rust_language) <expression_ops,
3855 exp_descriptor_tab>: Remove.
3856 * rust-lang.c (rust_evaluate_funcall): Remove.
3857 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3858 EVAL_SKIP.
3859 (rust_evaluate_subexp): Remove.
3860 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3861 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3862 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3863
08a057e6
TT
38642021-03-08 Tom Tromey <tom@tromey.com>
3865
3866 * ada-exp.y: Create operations.
3867 (empty_stoken): Remove.
3868 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3869 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3870 (components): New global.
3871 (push_component, choice_component, pop_component, pop_components):
3872 New functions.
3873 (associations): New global
3874 (push_association, pop_association, pop_associations): New
3875 functions.
3876 (ada_parse): Update.
3877 (write_var_from_sym, write_int): Create operations.
3878 (write_exp_op_with_string): Remove.
3879 (write_object_renaming, write_selectors, write_ambiguous_var)
3880 (write_var_or_type, write_name_assoc): Create operations.
3881 * ada-lang.h (ada_index_type): Declare.
3882 * ada-lang.c (ada_index_type): No longer static.
3883
d308ba78
TT
38842021-03-08 Tom Tromey <tom@tromey.com>
3885
3886 * f-exp.y: Create operations.
3887 (f_language::parser): Update.
3888
f1b8ceef
TT
38892021-03-08 Tom Tromey <tom@tromey.com>
3890
3891 * m2-exp.y: Create operations.
3892 (m2_language::parser): Update.
3893
3163898e
TT
38942021-03-08 Tom Tromey <tom@tromey.com>
3895
3896 * p-exp.y: Create operations.
3897 (pascal_language::parser): Update.
3898
9412fdcc
TT
38992021-03-08 Tom Tromey <tom@tromey.com>
3900
3901 * d-exp.y: Create operations.
3902 (d_parse): Update.
3903
bb4e0574
TT
39042021-03-08 Tom Tromey <tom@tromey.com>
3905
3906 * go-exp.y: Create operations.
3907 (go_language::parser): Update.
3908
d182f279
TT
39092021-03-08 Tom Tromey <tom@tromey.com>
3910
3911 * objc-lang.c (end_msglist): Create operations.
3912 * c-exp.y: Change parser to create operations.
3913 (write_destructor_name): Remove.
3914 (c_parse): Update.
3915
c1299a23
TT
39162021-03-08 Tom Tromey <tom@tromey.com>
3917
3918 * rust-exp.y: Create operations.
3919 (rust_parser::convert_params_to_expression): Change return type.
3920 (binop_maker_ftype): New typedef.
3921 (maker_map): New global.
3922 (rust_parser::convert_ast_to_expression): Change return type.
3923 (rust_language::parser): Update.
3924 (_initialize_rust_exp): Initialize maker_map.
3925
4c5e7a93
TT
39262021-03-08 Tom Tromey <tom@tromey.com>
3927
3928 * stap-probe.c (binop_maker_ftype): New typedef.
3929 (stap_maker_map): New global.
3930 (stap_make_binop): New function.
3931 (stap_parse_register_operand): Return operation_up.
3932 (stap_parse_single_operand, stap_parse_argument_conditionally)
3933 (stap_parse_argument_1): Likewise.
3934 (stap_parse_argument): Create operations.
3935 (stap_probe::parse_arguments): Update.
3936 (_initialize_stap_probe): Initialize stap_maker_map.
3937 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3938 type.
3939 * i386-tdep.h (i386_stap_parse_special_token): Change return
3940 type.
3941 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3942 (i386_stap_parse_special_token_three_arg_disp)
3943 (i386_stap_parse_special_token): Change return type.
3944 * gdbarch.sh (stap_parse_special_token): Change return type.
3945 * gdbarch.c: Rebuild.
3946 * gdbarch.h: Rebuild.
3947 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3948 type.
3949 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3950 return type.
3951
482ddd69
TT
39522021-03-08 Tom Tromey <tom@tromey.com>
3953
3954 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3955 * gdbarch.h: Rebuild.
3956 * gdbarch.c: Rebuild.
3957 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3958 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3959 return type.
3960 (amd64_dtrace_parse_probe_argument): Update.
3961
8227d9e2
TT
39622021-03-08 Tom Tromey <tom@tromey.com>
3963
3964 * parser-defs.h (struct parser_state) <push, push_new,
3965 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3966 wrap2>: New methods.
3967 <m_operations>: New member.
3968 * parse.c (parser_state::push_c_string)
3969 (parser_state::push_symbol, parser_state::push_dollar): New
3970 methods.
3971
4933522d
TT
39722021-03-08 Tom Tromey <tom@tromey.com>
3973
3974 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3975 New member.
3976 (struct parser_state) <mark_struct_expression>: New method.
3977 * parse.c (parser_state::mark_struct_expression): Update assert.
3978 (parser_state::mark_struct_expression): New method.
3979 (parser_state::mark_completion_tag): Update assert.
3980 (parse_expression_for_completion): Handle expout_last_op.
3981
413403fc
TT
39822021-03-08 Tom Tromey <tom@tromey.com>
3983
3984 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3985 now in superclass.
3986 * value.h (fetch_subexp_value): Add "op" parameter.
3987 * value.c (init_if_undefined_command): Update.
3988 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3989 * stap-probe.c (stap_probe::compile_to_ax): Update.
3990 * printcmd.c (set_command): Update.
3991 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3992 Update.
3993 * parser-defs.h (struct expr_builder) <set_operation>: New
3994 method.
3995 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3996 * expression.h (struct expression) <first_opcode>: Update.
3997 <op>: New member.
3998 * expprint.c (dump_raw_expression, dump_prefix_expression):
3999 Update.
4000 * expop.h (class var_value_operation) <get_symbol>: New method.
4001 (class register_operation) <get_name>: New method.
4002 (class equal_operation): No longer a typedef, now a subclass.
4003 (class unop_memval_operation) <get_type>: New method.
4004 (class assign_operation) <get_lhs>: New method.
4005 (class unop_cast_operation) <get_type>: New method.
4006 * eval.c (evaluate_expression, evaluate_type)
4007 (evaluate_subexpression_type): Update.
4008 (fetch_subexp_value): Add "op" parameter.
4009 (parse_and_eval_type): Update.
4010 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4011 * breakpoint.c (update_watchpoint, watchpoint_check)
4012 (watchpoint_exp_is_const, watch_command_1): Update.
4013 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4014 Update.
4015
b0f9164c
TT
40162021-03-08 Tom Tromey <tom@tromey.com>
4017
4018 * ada-lang.c (ada_value_binop): Do not use op_string.
4019
a88c4354
TT
40202021-03-08 Tom Tromey <tom@tromey.com>
4021
4022 * expprint.c (dump_for_expression): New overload.
4023 * expop.h (check_objfile, dump_for_expression): Declare new
4024 overloads.
4025 * ada-lang.c (check_objfile): New overload.
4026 (assign_component, ada_aggregate_component::uses_objfile)
4027 (ada_aggregate_component::dump, ada_aggregate_component::assign)
4028 (ada_aggregate_component::assign_aggregate)
4029 (ada_positional_component::uses_objfile)
4030 (ada_positional_component::dump, ada_positional_component::assign)
4031 (ada_discrete_range_association::uses_objfile)
4032 (ada_discrete_range_association::dump)
4033 (ada_discrete_range_association::assign)
4034 (ada_name_association::uses_objfile, ada_name_association::dump)
4035 (ada_name_association::assign)
4036 (ada_choices_component::uses_objfile, ada_choices_component::dump)
4037 (ada_choices_component::assign)
4038 (ada_others_component::uses_objfile, ada_others_component::dump)
4039 (ada_others_component::assign, ada_assign_operation::evaluate):
4040 New methods.
4041 * ada-exp.h (ada_string_operation) <get_name>: New method.
4042 (class ada_assign_operation): New.
4043 (class ada_component): New.
4044 (ada_component_up): New typedef.
4045 (class ada_aggregate_operation, class ada_aggregate_component)
4046 (class ada_positional_component, class ada_others_component)
4047 (class ada_association): New.
4048 (ada_association_up): New typedef.
4049 (class ada_choices_component)
4050 (class ada_discrete_range_association)
4051 (class ada_name_association): New.
4052
d8a4ed8a
TT
40532021-03-08 Tom Tromey <tom@tromey.com>
4054
4055 * ada-lang.c (ada_var_value_operation::resolve)
4056 (ada_funcall_operation::resolve)
4057 (ada_ternop_slice_operation::resolve): New methods.
4058 * ada-exp.h (struct ada_resolvable): New.
4059 (class ada_var_value_operation): Derive from ada_resolvable.
4060 <get_block, resolve>: New methods.
4061 (class ada_funcall_operation): Derive from ada_resolvable.
4062 <resolve>: New method.
4063 (class ada_ternop_slice_operation): Derive from ada_resolvable.
4064 <resolve>: New method.
4065
efe3af2f
TT
40662021-03-08 Tom Tromey <tom@tromey.com>
4067
4068 * ada-lang.c (ada_funcall_operation::evaluate): New method.
4069 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4070 method.
4071 (class ada_funcall_operation): New.
4072
ebc06ad8
TT
40732021-03-08 Tom Tromey <tom@tromey.com>
4074
4075 * ada-lang.c (ada_structop_operation::evaluate): New method.
4076 * ada-exp.h (class ada_structop_operation): New.
4077
e8c33fa1
TT
40782021-03-08 Tom Tromey <tom@tromey.com>
4079
4080 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4081 * ada-exp.h (class ada_unop_ind_operation): New.
4082
065ec826
TT
40832021-03-08 Tom Tromey <tom@tromey.com>
4084
4085 * ada-lang.c (ada_binop_exp): No longer static.
4086 * ada-exp.h (ada_binop_exp_operation): New typedef.
4087
9e99f48f
TT
40882021-03-08 Tom Tromey <tom@tromey.com>
4089
4090 * ada-lang.c (ada_val_atr): No longer static.
4091 (ada_atr_val_operation::evaluate): New method.
4092 * ada-exp.h (class ada_atr_val_operation): New.
4093
7631cf6c
TT
40942021-03-08 Tom Tromey <tom@tromey.com>
4095
4096 * ada-lang.c (ada_pos_atr): No longer static.
4097 * ada-exp.h (ada_pos_operation): New typedef.
4098
7992accc
TT
40992021-03-08 Tom Tromey <tom@tromey.com>
4100
4101 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4102 parameters.
4103 (ada_evaluate_subexp): Use it.
4104
6ad3b8bf
TT
41052021-03-08 Tom Tromey <tom@tromey.com>
4106
4107 * ada-lang.c (ada_binop_minmax): No longer static.
4108 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4109 New typedefs.
4110
3f4a0053
TT
41112021-03-08 Tom Tromey <tom@tromey.com>
4112
4113 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4114 New method.
4115 * ada-exp.h (class ada_var_msym_value_operation): New.
4116
99a3b1e7
TT
41172021-03-08 Tom Tromey <tom@tromey.com>
4118
4119 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4120 (ada_var_value_operation::evaluate): New methods.
4121 * ada-exp.h (class ada_var_value_operation): New.
4122
60fa02ca
TT
41232021-03-08 Tom Tromey <tom@tromey.com>
4124
4125 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4126 * ada-exp.h (class ada_unop_atr_operation): New.
4127
82c3886e
TT
41282021-03-08 Tom Tromey <tom@tromey.com>
4129
4130 * ada-lang.c (ada_binop_in_bounds): No longer static.
4131 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4132
1b1ebfab
TT
41332021-03-08 Tom Tromey <tom@tromey.com>
4134
4135 * ada-lang.c (ada_ternop_slice): No longer static.
4136 * ada-exp.h (class ada_ternop_slice_operation): New.
4137
039e4b76
TT
41382021-03-08 Tom Tromey <tom@tromey.com>
4139
4140 * ada-exp.h (ada_bitwise_operation): New template class.
4141 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4142 (ada_bitwise_xor_operation): New typedefs.
4143
6e8fb7b7
TT
41442021-03-08 Tom Tromey <tom@tromey.com>
4145
4146 * ada-lang.c (ada_equal_binop): No longer static.
4147 * ada-exp.h (class ada_binop_equal_operation): New.
4148
d9e7db06
TT
41492021-03-08 Tom Tromey <tom@tromey.com>
4150
4151 * ada-lang.c (ada_mult_binop): No longer static.
4152 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4153 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4154
73796c73
TT
41552021-03-08 Tom Tromey <tom@tromey.com>
4156
4157 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4158 * ada-exp.h (class ada_binop_addsub_operation): New.
4159
cd9a3148
TT
41602021-03-08 Tom Tromey <tom@tromey.com>
4161
4162 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4163 (ada_resolve_variable): Declare.
4164 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4165 (ada_resolve_variable): New functions.
4166 (resolve_subexp): Update.
4167
cf12b17f
TT
41682021-03-08 Tom Tromey <tom@tromey.com>
4169
4170 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4171 method.
4172 * c-exp.h (class opencl_ternop_cond_operation): New.
4173
944fd3b8
TT
41742021-03-08 Tom Tromey <tom@tromey.com>
4175
4176 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4177 method.
4178 * c-exp.h (class opencl_logical_binop_operation): New.
4179
33b79214
TT
41802021-03-08 Tom Tromey <tom@tromey.com>
4181
4182 * opencl-lang.c (opencl_structop_operation::evaluate): New
4183 method.
4184 * c-exp.h (class opencl_structop_operation): New.
4185
2492ba36
TT
41862021-03-08 Tom Tromey <tom@tromey.com>
4187
4188 * opencl-lang.c (opencl_logical_not): No longer static. Change
4189 parameters.
4190 (evaluate_subexp_opencl): Update.
4191 * c-exp.h (opencl_notequal_operation): New typedef.
4192
a88c3c8d
TT
41932021-03-08 Tom Tromey <tom@tromey.com>
4194
4195 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4196 static. Change parameters.
4197 (eval_opencl_assign): No longer static. Add "op" parameter.
4198 (evaluate_subexp_opencl): Update.
4199 * c-exp.h (opencl_binop_operation): New template class.
4200 (opencl_assign_operation, opencl_equal_operation)
4201 (opencl_notequal_operation, opencl_less_operation)
4202 (opencl_gtr_operation, opencl_geq_operation)
4203 (opencl_leq_operation): New typedefs.
4204
e9677704
TT
42052021-03-08 Tom Tromey <tom@tromey.com>
4206
4207 * opencl-lang.c (opencl_value_cast): No longer static.
4208 * c-exp.h (opencl_cast_type_operation): New typedef.
4209
f403a4e4
TT
42102021-03-08 Tom Tromey <tom@tromey.com>
4211
4212 * f-exp.h (eval_op_f_allocated): Declare.
4213 (fortran_allocated_operation): New typedef.
4214 * f-lang.c (eval_op_f_allocated): No longer static.
4215
eb4c9271
TT
42162021-03-08 Tom Tromey <tom@tromey.com>
4217
4218 * f-lang.c (eval_op_f_associated): New functions.
4219 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4220 typedefs.
4221
58a76c72
TT
42222021-03-08 Tom Tromey <tom@tromey.com>
4223
4224 * f-lang.c (fortran_bound_1arg::evaluate)
4225 (fortran_bound_2arg::evaluate): New methods.
4226 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4227 New.
4228
2f98abe1
TT
42292021-03-08 Tom Tromey <tom@tromey.com>
4230
4231 * expop.h (class unop_addr_operation) <get_expression>: New
4232 method.
4233 * f-lang.c (fortran_undetermined::value_subarray)
4234 (fortran_undetermined::evaluate): New methods.
4235 (fortran_prepare_argument): New overload.
4236 * f-exp.h (class fortran_range_operation)
4237 (class fortran_undetermined): New classes.
4238
638fd74a
TT
42392021-03-08 Tom Tromey <tom@tromey.com>
4240
4241 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4242 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4243 method.
4244
a00b7254
TT
42452021-03-08 Tom Tromey <tom@tromey.com>
4246
4247 * expression.h (class operation) <evaluate_funcall>: New methods.
4248 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4249 (class var_value_operation) <evaluate_funcall>: New method.
4250 (class structop_base_operation) <evaluate_funcall>: New method.
4251 (class var_msym_value_operation) <evaluate_funcall>: New method.
4252 (class structop_member_base): New class.
4253 (class structop_member_operation): Derive from
4254 structop_member_base.
4255 (class structop_mptr_operation): Derive from
4256 structop_member_base.
4257 (class funcall_operation): New class.
4258 * eval.c (operation::evaluate_funcall)
4259 (var_value_operation::evaluate_funcall)
4260 (scope_operation::evaluate_funcall)
4261 (structop_member_base::evaluate_funcall)
4262 (structop_base_operation::evaluate_funcall): New methods.
4263
1c02eb30
TT
42642021-03-08 Tom Tromey <tom@tromey.com>
4265
4266 * expop.h (class array_operation): New.
4267 * eval.c (array_operation::evaluate_struct_tuple)
4268 (array_operation::evaluate): New methods.
4269
e4479080
TT
42702021-03-08 Tom Tromey <tom@tromey.com>
4271
4272 * expop.h (class adl_func_operation): New.
4273 * eval.c (adl_func_operation::evaluate): New method.
4274
95d49dfb
TT
42752021-03-08 Tom Tromey <tom@tromey.com>
4276
4277 * ada-lang.c (ada_unop_in_range): No longer static.
4278 * ada-exp.h (class ada_unop_range_operation): New.
4279
7c15d377
TT
42802021-03-08 Tom Tromey <tom@tromey.com>
4281
4282 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4283 No longer static.
4284 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4285 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4286
5019124b
TT
42872021-03-08 Tom Tromey <tom@tromey.com>
4288
4289 * expop.h (class logical_and_operation)
4290 (class logical_or_operation): New.
4291 * eval.c (logical_and_operation::evaluate)
4292 (logical_or_operation::evaluate): New methods.
4293 * ax-gdb.c (logical_and_operation::do_generate_ax)
4294 (logical_or_operation::do_generate_ax): New methods.
4295
2bc9b40c
TT
42962021-03-08 Tom Tromey <tom@tromey.com>
4297
4298 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4299 static.
4300 * m2-exp.h: New file.
4301
5947d337
TT
43022021-03-08 Tom Tromey <tom@tromey.com>
4303
4304 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4305 * rust-exp.h (class rust_aggregate_operation): New.
4306
e4407a20
TT
43072021-03-08 Tom Tromey <tom@tromey.com>
4308
4309 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4310 No longer static.
4311 * rust-exp.h (class rust_struct_anon): New.
4312 (class rust_structop): New.
4313
9db6b6dd
TT
43142021-03-08 Tom Tromey <tom@tromey.com>
4315
4316 * rust-lang.c (rust_range): No longer static.
4317 * rust-exp.h (class rust_range_operation): New.
4318
6ce1ad67
TT
43192021-03-08 Tom Tromey <tom@tromey.com>
4320
4321 * rust-lang.c (rust_subscript): No longer static.
4322 * rust-exp.h (class rust_subscript_operation): New.
4323
11dd3dce
TT
43242021-03-08 Tom Tromey <tom@tromey.com>
4325
4326 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4327 parameter.
4328 (rust_evaluate_subexp): Update.
4329 * rust-exp.h (class rust_unop_ind_operation): New.
4330
6fab4359
TT
43312021-03-08 Tom Tromey <tom@tromey.com>
4332
4333 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4334 longer static. Add "opcode" parameter.
4335 (rust_evaluate_subexp): Update.
4336 * rust-exp.h: New file.
4337
9dcd3e29
TT
43382021-03-08 Tom Tromey <tom@tromey.com>
4339
4340 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4341 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4342 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4343 (evaluate_subexp_f): Update.
4344 * f-exp.h: New file.
4345
fc715eb2
TT
43462021-03-08 Tom Tromey <tom@tromey.com>
4347
4348 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4349 * ada-exp.h (class ada_ternop_range_operation): New.
4350
cc6bd32e
TT
43512021-03-08 Tom Tromey <tom@tromey.com>
4352
4353 * ada-lang.c (ada_qual_operation::evaluate): New method.
4354 * ada-exp.h (class ada_qual_operation): New.
4355
42fecb61
TT
43562021-03-08 Tom Tromey <tom@tromey.com>
4357
4358 * ada-lang.c (ada_string_operation::evaluate): New method.
4359 * ada-exp.h (class ada_string_operation): New.
4360
03070ee9
TT
43612021-03-08 Tom Tromey <tom@tromey.com>
4362
4363 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4364 * ada-exp.h: New file.
4365
821e72d7
TT
43662021-03-08 Tom Tromey <tom@tromey.com>
4367
4368 * expop.h (class multi_subscript_operation): New.
4369 * eval.c (multi_subscript_operation::evaluate): New method.
4370
085734dd
TT
43712021-03-08 Tom Tromey <tom@tromey.com>
4372
4373 * eval.c (objc_msgcall_operation::evaluate): New method.
4374 * c-exp.h (class objc_msgcall_operation): New.
4375
e82a5afc
TT
43762021-03-08 Tom Tromey <tom@tromey.com>
4377
4378 * expop.h (class var_value_operation): New.
4379 * eval.c (var_value_operation::evaluate)
4380 (var_value_operation::evaluate_for_address)
4381 (var_value_operation::evaluate_with_coercion)
4382 (var_value_operation::evaluate_for_sizeof)
4383 (var_value_operation::evaluate_for_cast): New methods.
4384 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4385
d9ad79d8
TT
43862021-03-08 Tom Tromey <tom@tromey.com>
4387
4388 * expop.h (cxx_cast_ftype): New typedef.
4389 (cxx_cast_operation): New template.
4390 (dynamic_cast_operation, reinterpret_cast_operation): New
4391 typedefs.
4392
292382f4
TT
43932021-03-08 Tom Tromey <tom@tromey.com>
4394
4395 * expop.h (class unop_cast_type_operation): New.
4396 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4397 method.
4398
165a813a
TT
43992021-03-08 Tom Tromey <tom@tromey.com>
4400
4401 * expop.h (class unop_cast_operation): New.
4402 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4403
e5946e16
TT
44042021-03-08 Tom Tromey <tom@tromey.com>
4405
4406 * expop.h (class assign_modify_operation): New.
4407 * eval.c (eval_binop_assign_modify): No longer static.
4408 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4409
40786782
TT
44102021-03-08 Tom Tromey <tom@tromey.com>
4411
4412 * expop.h (class assign_operation): New.
4413 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4414
44b675c8
TT
44152021-03-08 Tom Tromey <tom@tromey.com>
4416
4417 * expop.h (class type_instance_operation): New.
4418 * eval.c (type_instance_operation::evaluate): New method.
4419
f6b42326
TT
44202021-03-08 Tom Tromey <tom@tromey.com>
4421
4422 * expop.h (class op_this_operation): New.
4423 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4424
cbc18219
TT
44252021-03-08 Tom Tromey <tom@tromey.com>
4426
4427 * expop.h (class unop_memval_operation)
4428 (class unop_memval_type_operation): New.
4429 * eval.c (eval_op_memval): No longer static.
4430 (unop_memval_operation::evaluate_for_address)
4431 (unop_memval_type_operation::evaluate_for_address)
4432 (unop_memval_operation::evaluate_for_sizeof)
4433 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4434 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4435 (unop_memval_type_operation::do_generate_ax): New methods.
4436
ae4bb61e
TT
44372021-03-08 Tom Tromey <tom@tromey.com>
4438
4439 * expop.h (class unop_alignof_operation): New.
4440 * eval.c (eval_op_alignof): No longer static.
4441
85d23bda
TT
44422021-03-08 Tom Tromey <tom@tromey.com>
4443
4444 * expop.h (class unop_sizeof_operation): New.
4445 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4446
14aff815
TT
44472021-03-08 Tom Tromey <tom@tromey.com>
4448
4449 * expop.h (class unop_addr_operation): New.
4450 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4451
929f3aa7
TT
44522021-03-08 Tom Tromey <tom@tromey.com>
4453
4454 * expop.h (class typeid_operation): New.
4455
0af8829e
TT
44562021-03-08 Tom Tromey <tom@tromey.com>
4457
4458 * expop.h (class decltype_operation): New.
4459
4efc574c
TT
44602021-03-08 Tom Tromey <tom@tromey.com>
4461
4462 * expop.h (class typeof_operation): New.
4463
5b5f5140
TT
44642021-03-08 Tom Tromey <tom@tromey.com>
4465
4466 * expop.h (class type_operation): New.
4467 * eval.c (eval_op_type): No longer static.
4468
876469ff
TT
44692021-03-08 Tom Tromey <tom@tromey.com>
4470
4471 * expop.h (class unop_ind_base_operation)
4472 (class unop_ind_operation): New.
4473 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4474 (unop_ind_base_operation::evaluate_for_address)
4475 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4476 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4477
6d89e296
TT
44782021-03-08 Tom Tromey <tom@tromey.com>
4479
4480 * expop.h (unop_incr_operation): New template.
4481 (preinc_operation, predec_operation, postinc_operation)
4482 (postdec_operation): New typedefs.
4483 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4484 (eval_op_postdec): No longer static.
4485
9307d17b
TT
44862021-03-08 Tom Tromey <tom@tromey.com>
4487
4488 * expop.h (unary_ftype): New typedef.
4489 (unop_operation, usual_ax_binop_operation): New templates.
4490 (unary_plus_operation, unary_neg_operation)
4491 (unary_complement_operation, unary_logical_not_operation): New
4492 typedefs.
4493 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4494 (eval_op_lognot): No longer static.
4495 * ax-gdb.c (gen_expr_unop): New function.
4496
ae64ba58
TT
44972021-03-08 Tom Tromey <tom@tromey.com>
4498
4499 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4500
d4eff4c1
TT
45012021-03-08 Tom Tromey <tom@tromey.com>
4502
4503 * expop.h (class repeat_operation): New.
4504 * eval.c (eval_op_repeat): No longer static. Remove "op"
4505 parameter.
4506 (evaluate_subexp_standard): Update.
4507 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4508
46916f2b
TT
45092021-03-08 Tom Tromey <tom@tromey.com>
4510
4511 * expop.h (class comparison_operation): New.
4512 (equal_operation, notequal_operation, less_operation)
4513 (gtr_operation, geq_operation, leq_operation): New typedefs.
4514 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4515 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4516
224d6424
TT
45172021-03-08 Tom Tromey <tom@tromey.com>
4518
4519 * expop.h (class subscript_operation): New.
4520 * eval.c (eval_op_subscript): No longer static.
4521
373907ff
TT
45222021-03-08 Tom Tromey <tom@tromey.com>
4523
4524 * expop.h (class binop_operation, class usual_ax_binop_operation):
4525 New.
4526 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4527 (div_operation, rem_operation, lsh_operation, rsh_operation)
4528 (bitwise_and_operation, bitwise_ior_operation)
4529 (bitwise_xor_operation): New typedefs.
4530 * eval.c (eval_op_binary): No longer static.
4531
5133d78b
TT
45322021-03-08 Tom Tromey <tom@tromey.com>
4533
4534 * expop.h (class sub_operation): New.
4535 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4536 (evaluate_subexp_standard): Update.
4537
a94323b6
TT
45382021-03-08 Tom Tromey <tom@tromey.com>
4539
4540 * expop.h (class add_operation): New.
4541 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4542 (evaluate_subexp_standard): Update.
4543
e51e26a0
TT
45442021-03-08 Tom Tromey <tom@tromey.com>
4545
4546 * expop.h (class concat_operation): New.
4547 * eval.c (eval_op_concat): No longer static. Remove "op"
4548 parameter.
4549 (evaluate_subexp_standard): Update.
4550
07f724a8
TT
45512021-03-08 Tom Tromey <tom@tromey.com>
4552
4553 * expop.h (class structop_member_operation)
4554 (class structop_mptr_operation): New.
4555 * eval.c (eval_op_member): No longer static.
4556
ab0609be
TT
45572021-03-08 Tom Tromey <tom@tromey.com>
4558
4559 * expop.h (class structop_ptr_operation): New.
4560 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4561 parameter.
4562
808b22cf
TT
45632021-03-08 Tom Tromey <tom@tromey.com>
4564
4565 * expop.h (class structop_base_operation)
4566 (class structop_operation): New.
4567 * eval.c (eval_op_structop_struct): No longer static.
4568
8cfd3e95
TT
45692021-03-08 Tom Tromey <tom@tromey.com>
4570
4571 * expop.h (class complex_operation): New.
4572
09db3700
TT
45732021-03-08 Tom Tromey <tom@tromey.com>
4574
4575 * eval.c (eval_op_objc_selector): No longer static.
4576 * c-exp.h (class objc_selector_operation): New.
4577
06dc61b9
TT
45782021-03-08 Tom Tromey <tom@tromey.com>
4579
4580 * eval.c: Include c-exp.h.
4581 * c-exp.h (class objc_nsstring_operation): New.
4582
72d0a711
TT
45832021-03-08 Tom Tromey <tom@tromey.com>
4584
4585 * c-lang.c (c_string_operation::evaluate): New method.
4586 * c-exp.h: New file.
4587
9186293f
TT
45882021-03-08 Tom Tromey <tom@tromey.com>
4589
4590 * expop.h (class ternop_cond_operation): New.
4591 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4592
1594e0bb
TT
45932021-03-08 Tom Tromey <tom@tromey.com>
4594
4595 * expop.h (class ternop_slice_operation): New.
4596 * eval.c (eval_op_ternop): No longer static.
4597
b50db09f
TT
45982021-03-08 Tom Tromey <tom@tromey.com>
4599
4600 * expop.h (class string_operation): New.
4601 * eval.c (eval_op_string): No longer static.
4602
e6e01e16
TT
46032021-03-08 Tom Tromey <tom@tromey.com>
4604
4605 * expop.h (class internalvar_operation): New.
4606 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4607
e6985c5e
TT
46082021-03-08 Tom Tromey <tom@tromey.com>
4609
4610 * expop.h (class bool_operation): New.
4611
55bdbff8
TT
46122021-03-08 Tom Tromey <tom@tromey.com>
4613
4614 * expop.h (class register_operation): New.
4615 * eval.c (eval_op_register): No longer static.
4616 * ax-gdb.c (register_operation::do_generate_ax): New method.
4617
247d935b
TT
46182021-03-08 Tom Tromey <tom@tromey.com>
4619
4620 * expop.h (class last_operation): New.
4621
17679395
TT
46222021-03-08 Tom Tromey <tom@tromey.com>
4623
4624 * expop.h (class func_static_var_operation): New.
4625 * eval.c (eval_op_func_static_var): No longer static.
4626
b5cc3923
TT
46272021-03-08 Tom Tromey <tom@tromey.com>
4628
4629 * expop.h (class var_entry_value_operation): New.
4630 * eval.c (eval_op_var_entry_value): No longer static.
4631
0c8effa3
TT
46322021-03-08 Tom Tromey <tom@tromey.com>
4633
4634 * expression.h (class operation) <set_outermost>: New method.
4635 * expop.h (class var_msym_value_operation): New.
4636 * eval.c (eval_op_var_msym_value): No longer static.
4637 (var_msym_value_operation::evaluate_for_address)
4638 (var_msym_value_operation::evaluate_for_sizeof)
4639 (var_msym_value_operation::evaluate_for_cast): New methods.
4640 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4641 method.
4642
d336c29e
TT
46432021-03-08 Tom Tromey <tom@tromey.com>
4644
4645 * expop.h (class long_const_operation): New.
4646 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4647
d5ab122c
TT
46482021-03-08 Tom Tromey <tom@tromey.com>
4649
4650 * expop.h (class scope_operation): New.
4651 * eval.c (eval_op_scope): No longer static.
4652 (scope_operation::evaluate_for_address): New method.
4653 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4654
cae26a0c
TT
46552021-03-08 Tom Tromey <tom@tromey.com>
4656
4657 * expprint.c (float_const_operation::dump): New method.
4658 * expop.h (float_data): New typedef.
4659 (class float_const_operation): New.
4660
75f9892d
TT
46612021-03-08 Tom Tromey <tom@tromey.com>
4662
4663 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4664 * ax-gdb.c (gen_expr_binop): New function.
4665 (gen_expr_structop): Likewise.
4666
de401988
TT
46672021-03-08 Tom Tromey <tom@tromey.com>
4668
4669 * expprint.c (expr::dump_for_expression): New functions.
4670 * expop.h (dump_for_expression): New overloads.
4671 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4672 Update.
4673
e2803273
TT
46742021-03-08 Tom Tromey <tom@tromey.com>
4675
4676 * expression.h (expr::operation): New class.
4677 (expr::make_operation): New function.
4678 (expr::operation_up): New typedef.
4679 * expop.h: New file.
4680 * eval.c (operation::evaluate_for_cast)
4681 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4682 New methods.
4683 * ax-gdb.c (operation::generate_ax): New method.
4684
e18c58f2
TT
46852021-03-08 Tom Tromey <tom@tromey.com>
4686
4687 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4688 (gen_expr_binop_rest): New overload.
4689
c0d7ed8c
TT
46902021-03-08 Tom Tromey <tom@tromey.com>
4691
4692 * eval.c (eval_multi_subscript): New function.
4693 (evaluate_subexp_standard): Use it.
4694
dd5fd283
TT
46952021-03-08 Tom Tromey <tom@tromey.com>
4696
4697 * ada-lang.c (ada_binop_exp): New function.
4698 (ada_evaluate_subexp): Use it.
4699
3848abd6
TT
47002021-03-08 Tom Tromey <tom@tromey.com>
4701
4702 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4703 parameters.
4704 (ada_evaluate_subexp): Use it.
4705
38dc70cf
TT
47062021-03-08 Tom Tromey <tom@tromey.com>
4707
4708 * ada-lang.c (ada_binop_minmax): New function.
4709 (ada_evaluate_subexp): Use it.
4710
b84564fc
TT
47112021-03-08 Tom Tromey <tom@tromey.com>
4712
4713 * ada-lang.c (ada_unop_atr): New function.
4714 (ada_evaluate_subexp): Use it.
4715
b467efaa
TT
47162021-03-08 Tom Tromey <tom@tromey.com>
4717
4718 * ada-lang.c (ada_binop_in_bounds): New function.
4719 (ada_evaluate_subexp): Use it.
4720
5ce19db8
TT
47212021-03-08 Tom Tromey <tom@tromey.com>
4722
4723 * ada-lang.c (ada_ternop_slice): New function.
4724 (ada_evaluate_subexp): Use it.
4725
214b13ac
TT
47262021-03-08 Tom Tromey <tom@tromey.com>
4727
4728 * ada-lang.c (ada_equal_binop): New function.
4729 (ada_evaluate_subexp): Use it.
4730
faa1dfd7
TT
47312021-03-08 Tom Tromey <tom@tromey.com>
4732
4733 * ada-lang.c (ada_mult_binop): New function.
4734 (ada_evaluate_subexp): Use it.
4735
d05e24e6
TT
47362021-03-08 Tom Tromey <tom@tromey.com>
4737
4738 * ada-lang.c (ada_abs): New function.
4739 (ada_evaluate_subexp): Use it.
4740
68c75735
TT
47412021-03-08 Tom Tromey <tom@tromey.com>
4742
4743 * ada-lang.c (ada_atr_size): New function.
4744 (ada_evaluate_subexp): Use it.
4745
020dbabe
TT
47462021-03-08 Tom Tromey <tom@tromey.com>
4747
4748 * ada-lang.c (ada_atr_tag): New function.
4749 (ada_evaluate_subexp): Use it.
4750
7efc87ff
TT
47512021-03-08 Tom Tromey <tom@tromey.com>
4752
4753 * ada-lang.c (ada_unop_in_range): New function.
4754 (ada_evaluate_subexp): Use it.
4755
82390ab8
TT
47562021-03-08 Tom Tromey <tom@tromey.com>
4757
4758 * ada-lang.c (ada_unop_neg): New function.
4759 (ada_evaluate_subexp): Use it.
4760
62d4bd94
TT
47612021-03-08 Tom Tromey <tom@tromey.com>
4762
4763 * ada-lang.c (eval_ternop_in_range): New function.
4764 (ada_evaluate_subexp): Use it.
4765
3634f669
TT
47662021-03-08 Tom Tromey <tom@tromey.com>
4767
4768 * opencl-lang.c (eval_opencl_assign): New function.
4769 (evaluate_subexp_opencl): Use it.
4770
5e80600e
TT
47712021-03-08 Tom Tromey <tom@tromey.com>
4772
4773 * eval.c (eval_op_objc_msgcall): New function.
4774 (evaluate_subexp_standard): Use it.
4775
fb5ba2ab
TT
47762021-03-08 Tom Tromey <tom@tromey.com>
4777
4778 * eval.c (eval_binop_assign_modify): New function.
4779 (evaluate_subexp_standard): Use it.
4780
a49881f7
TT
47812021-03-08 Tom Tromey <tom@tromey.com>
4782
4783 * m2-lang.c (eval_op_m2_subscript): New function.
4784 (evaluate_subexp_modula2): Use it.
4785
41bdced5
TT
47862021-03-08 Tom Tromey <tom@tromey.com>
4787
4788 * m2-lang.c (eval_op_m2_high): New function.
4789 (evaluate_subexp_modula2): Use it.
4790
13ea014a
TT
47912021-03-08 Tom Tromey <tom@tromey.com>
4792
4793 * eval.c (evaluate_subexp_for_address_base): New function.
4794 (evaluate_subexp_for_address): Use it.
4795 (evaluate_subexp_for_sizeof_base): New function.
4796 (evaluate_subexp_for_sizeof): Use it.
4797
1fa41fc7
TT
47982021-03-08 Tom Tromey <tom@tromey.com>
4799
4800 * rust-lang.c (eval_op_rust_structop): New function.
4801 (rust_evaluate_subexp): Use it.
4802
575cae23
TT
48032021-03-08 Tom Tromey <tom@tromey.com>
4804
4805 * rust-lang.c (eval_op_rust_struct_anon): New function.
4806 (rust_evaluate_subexp): Use it.
4807
05104233
TT
48082021-03-08 Tom Tromey <tom@tromey.com>
4809
4810 * rust-lang.c (eval_op_rust_array): New function.
4811 (rust_evaluate_subexp): Use it.
4812
6fa9831f
TT
48132021-03-08 Tom Tromey <tom@tromey.com>
4814
4815 * rust-lang.c (eval_op_rust_complement): New function.
4816 (rust_evaluate_subexp): Use it.
4817
d123f9e4
TT
48182021-03-08 Tom Tromey <tom@tromey.com>
4819
4820 * rust-lang.c (eval_op_rust_ind): New function.
4821 (rust_evaluate_subexp): Use it.
4822
984af2cb
TT
48232021-03-08 Tom Tromey <tom@tromey.com>
4824
4825 * rust-lang.c (rust_subscript): Change parameters.
4826 (rust_evaluate_subexp): Update.
4827
d148f803
TT
48282021-03-08 Tom Tromey <tom@tromey.com>
4829
4830 * rust-lang.c (rust_range): Change parameters.
4831 (rust_evaluate_subexp): Update.
4832
9cbd1c20
TT
48332021-03-08 Tom Tromey <tom@tromey.com>
4834
4835 * f-lang.c (eval_op_f_allocated): New function.
4836 (evaluate_subexp_f): Use it.
4837
3c18c49c
TT
48382021-03-08 Tom Tromey <tom@tromey.com>
4839
4840 * f-lang.c (fortran_require_array): New function.
4841 (evaluate_subexp_f): Use it.
4842
216f6fcb
TT
48432021-03-08 Tom Tromey <tom@tromey.com>
4844
4845 * f-lang.c (eval_op_f_kind): New function.
4846 (evaluate_subexp_f): Use it.
4847
00f2db6f
TT
48482021-03-08 Tom Tromey <tom@tromey.com>
4849
4850 * f-lang.c (eval_op_f_cmplx): New function.
4851 (evaluate_subexp_f): Use it.
4852
93b2b5fa
TT
48532021-03-08 Tom Tromey <tom@tromey.com>
4854
4855 * f-lang.c (eval_op_f_modulo): New function.
4856 (evaluate_subexp_f): Use it.
4857
9f1a1f3c
TT
48582021-03-08 Tom Tromey <tom@tromey.com>
4859
4860 * f-lang.c (eval_op_f_floor): New function.
4861 (evaluate_subexp_f): Use it.
4862
3dc41f3c
TT
48632021-03-08 Tom Tromey <tom@tromey.com>
4864
4865 * f-lang.c (eval_op_f_ceil): New function.
4866 (evaluate_subexp_f): Use it.
4867
e08109f2
TT
48682021-03-08 Tom Tromey <tom@tromey.com>
4869
4870 * f-lang.c (eval_op_f_mod): New function.
4871 (evaluate_subexp_f): Use it.
4872
cc05c68e
TT
48732021-03-08 Tom Tromey <tom@tromey.com>
4874
4875 * f-lang.c (eval_op_f_abs): New function.
4876 (evaluate_subexp_f): Use it.
4877
aec95807
TT
48782021-03-08 Tom Tromey <tom@tromey.com>
4879
4880 * eval.c (eval_op_type): New function.
4881 (evaluate_subexp_standard): Use it.
4882
a220ead5
TT
48832021-03-08 Tom Tromey <tom@tromey.com>
4884
4885 * eval.c (eval_op_postdec): New function.
4886 (evaluate_subexp_standard): Use it.
4887
abffe116
TT
48882021-03-08 Tom Tromey <tom@tromey.com>
4889
4890 * eval.c (eval_op_postinc): New function.
4891 (evaluate_subexp_standard): Use it.
4892
9e1361b7
TT
48932021-03-08 Tom Tromey <tom@tromey.com>
4894
4895 * eval.c (eval_op_predec): New file.
4896 (evaluate_subexp_standard): Use it.
4897
00f50884
TT
48982021-03-08 Tom Tromey <tom@tromey.com>
4899
4900 * eval.c (eval_op_preinc): New function.
4901 (evaluate_subexp_standard): Use it.
4902
3aef2a07
TT
49032021-03-08 Tom Tromey <tom@tromey.com>
4904
4905 * eval.c (eval_op_memval): New function.
4906 (evaluate_subexp_standard): Use it.
4907
acee9468
TT
49082021-03-08 Tom Tromey <tom@tromey.com>
4909
4910 * eval.c (eval_op_alignof): New function.
4911 (evaluate_subexp_standard): Use it.
4912
786f70ee
TT
49132021-03-08 Tom Tromey <tom@tromey.com>
4914
4915 * eval.c (eval_op_ind): New function.
4916 (evaluate_subexp_standard): Use it.
4917
24338fb9
TT
49182021-03-08 Tom Tromey <tom@tromey.com>
4919
4920 * eval.c (eval_op_lognot): New function.
4921 (evaluate_subexp_standard): Use it.
4922
1f09ec81
TT
49232021-03-08 Tom Tromey <tom@tromey.com>
4924
4925 * eval.c (eval_op_complement): New function.
4926 (evaluate_subexp_standard): Use it.
4927
606d105f
TT
49282021-03-08 Tom Tromey <tom@tromey.com>
4929
4930 * eval.c (eval_op_neg): New function.
4931 (evaluate_subexp_standard): Use it.
4932
39f288be
TT
49332021-03-08 Tom Tromey <tom@tromey.com>
4934
4935 * eval.c (eval_op_plus): New function.
4936 (evaluate_subexp_standard): Use it.
4937
eed70b1c
TT
49382021-03-08 Tom Tromey <tom@tromey.com>
4939
4940 * eval.c (eval_op_repeat): New function.
4941 (evaluate_subexp_standard): Use it.
4942
60cdd487
TT
49432021-03-08 Tom Tromey <tom@tromey.com>
4944
4945 * eval.c (eval_op_leq): New function.
4946 (evaluate_subexp_standard): Use it.
4947
96e3efd9
TT
49482021-03-08 Tom Tromey <tom@tromey.com>
4949
4950 * eval.c (eval_op_geq): New function.
4951 (evaluate_subexp_standard): Use it.
4952
1f78d732
TT
49532021-03-08 Tom Tromey <tom@tromey.com>
4954
4955 * eval.c (eval_op_gtr): New function.
4956 (evaluate_subexp_standard): Use it.
4957
6cad1349
TT
49582021-03-08 Tom Tromey <tom@tromey.com>
4959
4960 * eval.c (eval_op_less): New function.
4961 (evaluate_subexp_standard): Use it.
4962
1fcb3559
TT
49632021-03-08 Tom Tromey <tom@tromey.com>
4964
4965 * eval.c (eval_op_notequal): New function.
4966 (evaluate_subexp_standard): Use it.
4967
0cc96de8
TT
49682021-03-08 Tom Tromey <tom@tromey.com>
4969
4970 * eval.c (eval_op_equal): New function.
4971 (evaluate_subexp_standard): Use it.
4972
288d26bc
TT
49732021-03-08 Tom Tromey <tom@tromey.com>
4974
4975 * eval.c (eval_op_subscript): New function.
4976 (evaluate_subexp_standard): Use it.
4977
7cdcdd02
TT
49782021-03-08 Tom Tromey <tom@tromey.com>
4979
4980 * eval.c (eval_op_binary): New function.
4981 (evaluate_subexp_standard): Use it.
4982
d9790e22
TT
49832021-03-08 Tom Tromey <tom@tromey.com>
4984
4985 * eval.c (eval_op_sub): New function.
4986 (evaluate_subexp_standard): Use it.
4987
aedaf9ac
TT
49882021-03-08 Tom Tromey <tom@tromey.com>
4989
4990 * eval.c (eval_op_add): New function.
4991 (evaluate_subexp_standard): Use it.
4992
b7a96ed2
TT
49932021-03-08 Tom Tromey <tom@tromey.com>
4994
4995 * eval.c (eval_op_member): New function.
4996 (evaluate_subexp_standard): Use it.
4997
fb461aa3
TT
49982021-03-08 Tom Tromey <tom@tromey.com>
4999
5000 * eval.c (eval_op_structop_ptr): New function.
5001 (evaluate_subexp_standard): Use it.
5002
3e96c4fc
TT
50032021-03-08 Tom Tromey <tom@tromey.com>
5004
5005 * eval.c (eval_op_structop_struct): New function.
5006 (evaluate_subexp_standard): Use it.
5007
f960a617
TT
50082021-03-08 Tom Tromey <tom@tromey.com>
5009
5010 * eval.c (eval_op_ternop): New function.
5011 (evaluate_subexp_standard): Use it.
5012
5c2f201e
TT
50132021-03-08 Tom Tromey <tom@tromey.com>
5014
5015 * eval.c (eval_op_concat): New function.
5016 (evaluate_subexp_standard): Use it.
5017
f871bae1
TT
50182021-03-08 Tom Tromey <tom@tromey.com>
5019
5020 * eval.c (eval_op_objc_selector): New function.
5021 (evaluate_subexp_standard): Use it.
5022
14a1c64a
TT
50232021-03-08 Tom Tromey <tom@tromey.com>
5024
5025 * eval.c (eval_op_string): New function.
5026 (evaluate_subexp_standard): Use it.
5027
ffff730b
TT
50282021-03-08 Tom Tromey <tom@tromey.com>
5029
5030 * eval.c (eval_op_register): New function.
5031 (evaluate_subexp_standard): Use it.
5032
9b1d8af6
TT
50332021-03-08 Tom Tromey <tom@tromey.com>
5034
5035 * eval.c (eval_op_func_static_var): New function.
5036 (evaluate_subexp_standard): Use it.
5037
c0df9289
TT
50382021-03-08 Tom Tromey <tom@tromey.com>
5039
5040 * eval.c (eval_op_var_msym_value): New function.
5041 (evaluate_subexp_standard): Use it.
5042
50b98adc
TT
50432021-03-08 Tom Tromey <tom@tromey.com>
5044
5045 * eval.c (eval_op_var_entry_value): New function.
5046 (evaluate_subexp_standard): Use it.
5047
ea2d29f7
TT
50482021-03-08 Tom Tromey <tom@tromey.com>
5049
5050 * eval.c (eval_op_scope): New function.
5051 (evaluate_subexp_standard): Use it.
5052
01573d73
TT
50532021-03-06 Chernov Sergey <klen_s@mail.ru>
5054
5055 PR gdb/27528:
5056 * ada-lang.c (ada_fold_name): Use gdb::to_string.
5057
9938d15a
TT
50582021-03-06 Tom Tromey <tom@tromey.com>
5059
5060 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5061 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5062 * dwarf2/read.c (dwarf2_elf_names): No longer static.
5063 (locate_dwz_sections, dwz_search_other_debugdirs)
5064 (dwarf2_get_dwz_file): Move to dwz.c.
5065 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5066 read.h.
5067 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5068 (dwarf2_get_dwz_file): Move from read.c.
5069
18035655
TT
50702021-03-06 Tom Tromey <tom@tromey.com>
5071
5072 * debuginfod-support.h: Include scoped_fd.h.
5073
a7308ce0
TT
50742021-03-06 Tom Tromey <tom@tromey.com>
5075
5076 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5077 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5078 (get_abbrev_section_for_cu, read_attribute_value)
5079 (get_debug_line_section): Update.
5080 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5081
fbedd546
TT
50822021-03-06 Tom Tromey <tom@tromey.com>
5083
5084 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5085 method.
5086 * dwarf2/read.c (section_is_p): Remove.
5087 (dwarf2_per_bfd::locate_sections)
5088 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5089 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5090 (dwarf2_locate_common_dwp_sections)
5091 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5092 Update.
5093
c2a62a3d
TT
50942021-03-06 Tom Tromey <tom@tromey.com>
5095
5096 * xcoffread.c: Include sect-names.h.
5097 * symfile.h (struct dwarf2_section_names, struct
5098 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5099 * dwarf2/sect-names.h: New file, from symfile.h.
5100 * dwarf2/read.c: Include sect-names.h.
5101
4444f407
TT
51022021-03-06 Tom Tromey <tom@tromey.com>
5103
5104 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5105 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5106 (abbrev_table::read): Update.
5107 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5108 (struct abbrev_info): Reformat.
5109 <attrs>: Now an array.
5110 (struct abbrev_table) <alloc_abbrev>: Remove.
5111
dd99cf0c
WP
51122021-03-06 Weimin Pan <weimin.pan@oracle.com>
5113
5114 * ctfread.c (ctf_psymtab_add_enums): New function.
5115 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5116
844be3f2
WP
51172021-03-06 Weimin Pan <weimin.pan@oracle.com>
5118
5119 * ctfread.c (read_func_kind_type): Set up function arguments.
5120
b2668f28
AB
51212021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5122 Andrew Burgess <andrew.burgess@embecosm.com>
5123
5124 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5125 includes.
5126 (riscv_csrset): New static global.
5127 (riscv_update_csrmap): New function.
5128 (riscv_iterate_over_regset_sections): Process CSRs.
5129
d782d24b
AB
51302021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5131
5132 * riscv-tdep.c (riscv_feature_name_csr): Define.
5133 (riscv_feature_name_cpu): Define.
5134 (riscv_feature_name_fpu): Define.
5135 (riscv_feature_name_virtual): Define.
5136 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5137 (riscv_freg_feature): Use riscv_feature_name_fpu.
5138 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5139 (riscv_csr_feature): Use riscv_feature_name_csr.
5140 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5141
fb8f3fc0
AB
51422021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5143 Craig Blackmore <craig.blackmore@embecosm.com>
5144
5145 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5146 (ALLDEPFILES): Add riscv-none-tdep.c.
5147 * configure: Regenerate.
5148 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5149 support.
5150 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5151 * elf-none-tdep.c: New file.
5152 * elf-none-tdep.h: New file.
5153 * riscv-none-tdep.c: New file.
5154
95ce627a
AB
51552021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5156 Andrew Burgess <andrew.burgess@embecosm.com>
5157
5158 * corelow.c: Add 'xml-tdesc.h' include.
5159 (core_target::read_description): Load the target description from
5160 the core file when possible.
5161 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5162 note.
5163 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5164 (gcore_elf_make_tdesc_note): New function.
5165 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5166 * linux-tdep.c (linux_make_corefile_notes): Add target description
5167 note.
5168
f3a5df7b
AB
51692021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5170
5171 * Makefile.in (SFILES): Add gcore-elf.c.
5172 (HFILES_NO_SRCDIR): Add gcore-elf.h
5173 * configure: Regenerate.
5174 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5175 support.
5176 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5177 (struct fbsd_collect_regset_section_cb_data): Delete.
5178 (fbsd_collect_regset_section_cb): Delete.
5179 (fbsd_collect_thread_registers): Delete.
5180 (struct fbsd_corefile_thread_data): Delete.
5181 (fbsd_corefile_thread): Delete.
5182 (fbsd_make_corefile_notes): Call
5183 gcore_elf_build_thread_register_notes instead of the now deleted
5184 FreeBSD code.
5185 * gcore-elf.c: New file, the content was moved here from
5186 linux-tdep.c, functions were renamed and given minor cleanup.
5187 * gcore-elf.h: New file.
5188 * gcore.c (gcore_find_signalled_thread): Moved here from
5189 linux-tdep.c and given a new name. Minor cleanups.
5190 * gcore.h (gcore_find_signalled_thread): Declare.
5191 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5192 (struct linux_collect_regset_section_cb_data): Delete.
5193 (linux_collect_regset_section_cb): Delete.
5194 (linux_collect_thread_registers): Delete.
5195 (linux_corefile_thread): Call
5196 gcore_elf_build_thread_register_notes.
5197 (find_signalled_thread): Delete.
5198 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5199
d1e93af6
SM
52002021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5201
5202 PR gdb/27147
5203 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5204 process_stratum_target parameter,
5205 sparc_store_inferior_registers): update callers.
5206 * sparc-nat.c (sparc_fetch_inferior_registers,
5207 sparc_store_inferior_registers): Add process_stratum_target
5208 parameter. Switch current thread before calling
5209 sparc_supply_gregset / sparc_collect_rwindow.
5210 (sparc_store_inferior_registers): Likewise.
5211 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5212 (sparc32obsd_collect_uthread): Likewise.
5213 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5214 Add assertion.
5215 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5216 sparc64obsd_supply_uthread): Add assertion.
5217
1178743e
TT
52182021-03-04 Tom Tromey <tromey@adacore.com>
5219
5220 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5221 (aux_add_nonlocal_symbols): Update.
5222 (ada_add_block_symbols): Change "found_sym" to bool.
5223
1bfa81ac
TT
52242021-03-03 Tom Tromey <tromey@adacore.com>
5225
5226 * ada-lang.c (ada_resolve_function): Update comment.
5227 (is_nonfunction, add_symbols_from_enclosing_procs)
5228 (remove_extra_symbols): Likewise.
5229 (struct match_data): Add constructor, initializers.
5230 (add_nonlocal_symbols): Remove memset.
5231 (aux_add_nonlocal_symbols): Update comment.
5232 (ada_add_block_renamings, add_nonlocal_symbols)
5233 (ada_add_all_symbols): Likewise.
5234 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5235
bbcdf9ab
TT
52362021-03-02 Tom Tromey <tromey@adacore.com>
5237
5238 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5239 (cast_to_gnat_encoded_fixed_point_type): Remove.
5240 (ada_value_cast, ada_evaluate_subexp): Update.
5241 (gnat_encoded_fixed_point_type_info)
5242 (ada_is_gnat_encoded_fixed_point_type)
5243 (gnat_encoded_fixed_point_delta)
5244 (gnat_encoded_fixed_point_scaling_factor): Remove.
5245 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5246 (gnat_encoded_fixed_point_delta)
5247 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5248 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5249 (ada_print_type): Update.
5250 * ada-valprint.c (ada_value_print_num): Update.
5251 * dwarf2/read.c (ada_get_gnat_encoded_number)
5252 (ada_get_gnat_encoded_ratio): New functions.
5253 (finish_fixed_point_type): Use them. Add parameters.
5254 (GNAT_FIXED_POINT_SUFFIX): New define.
5255 (gnat_encoded_fixed_point_type_info): New function.
5256 (read_base_type): Handle gnat encodings.
5257
5f9febe0
TT
52582021-03-02 Tom Tromey <tromey@adacore.com>
5259
5260 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5261 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5262 std::string.
5263 (GROW_VECT): Remove.
5264 (grow_vect): Remove.
5265
d1183b06
TT
52662021-03-02 Tom Tromey <tromey@adacore.com>
5267
5268 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5269 * ada-lang.c (resolve_subexp): Update.
5270 (ada_resolve_function): Accept a vector.
5271 (is_nonfunction, add_defn_to_vec)
5272 (add_symbols_from_enclosing_procs): Likewise.
5273 (num_defns_collected, defns_collected): Remove.
5274 (remove_extra_symbols): Return a vector.
5275 (remove_irrelevant_renamings): Return void.
5276 (ada_add_local_symbols): Accept a vector.
5277 (struct match_data) <obstackp>: Remove.
5278 <resultp>: New member.
5279 (aux_add_nonlocal_symbols): Update.
5280 (ada_add_block_renamings, add_nonlocal_symbols)
5281 (ada_add_all_symbols): Accept a vector.
5282 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5283 vector.
5284 (ada_lookup_symbol): Update.
5285 (ada_add_block_symbols): Accept a vector.
5286 (get_var_value, iterate_over_symbols): Update.
5287 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5288 Update.
5289
886d459f
TT
52902021-03-02 Tom Tromey <tromey@adacore.com>
5291
5292 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5293
bdcccc56
TT
52942021-03-02 Tom Tromey <tromey@adacore.com>
5295
5296 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5297 auto_obstack.
5298 <root>: Initialize.
5299 (ada_pspace_data): Remove destructor.
5300 <sym_cache>: Now a unique_ptr.
5301 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5302 (ada_get_symbol_cache): Use 'new'.
5303 (ada_clear_symbol_cache): Rewrite.
5304
1228719f
TT
53052021-03-02 Tom Tromey <tromey@adacore.com>
5306
5307 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5308 is null.
5309
bb3a4efe
LS
53102021-02-27 Lancelot Six <lsix@lancelotsix.com>
5311
5312 PR gdb/27393
5313 * source.c (add_path): Skip empty dirnames.
5314
26b43ca6 53152021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
5316
5317 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5318 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5319
dffdd8b5
SM
53202021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5321
5322 PR gdb/26861
5323 * target.c (target_mourn_inferior): Only compare pids in
5324 target_mourn_inferior.
5325
64d38fdd
JM
53262021-02-25 Jan Matyas <jmatyas@codasip.com>
5327
5328 PR gdb/26819
5329 * remote.c (remote_target::start_remote): Ensure the single
5330 thread, automatically added for remote targets without the
5331 concept of threading, is initially in set to the "resumed"
5332 state.
5333 * remote.c (remote_target::add_current_inferior_and_thread):
5334 Add return value - return the main thread.
5335
2450ad54
JV
53362021-02-25 Jan Vrany <jan.vrany@labware.com>
5337
5338 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5339 (mi_tsv_created): Likewise.
5340 (mi_tsv_deleted): Likewise.
5341
30c80d88
TV
53422021-02-25 Tom de Vries <tdevries@suse.de>
5343
5344 PR symtab/27354
5345 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5346 section_kind for &dwo_file->sections.info.
5347
68337b8b
AB
53482021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5349
5350 PR fortran/26155
5351 * f-lang.c (fortran_argument_convert): Delete declaration.
5352 (fortran_prepare_argument): New function.
5353 (evaluate_subexp_f): Move logic to new function
5354 fortran_prepare_argument.
5355
faeb9f13
AB
53562021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5357
5358 * f-exp.y (f77_keywords): Add 'associated'.
5359 * f-lang.c (fortran_associated): New function.
5360 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5361 (operator_length_f): Likewise.
5362 (print_unop_or_binop_subexp_f): New function.
5363 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5364 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5365 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5366 (operator_check_f): Likewise.
5367 * std-operator.def: Add FORTRAN_ASSOCIATED.
5368
170f4b23
AB
53692021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5370
5371 * f-exp.y (fortran_operators): Add ".xor.".
5372
aa659cfa
TV
53732021-02-24 Tom de Vries <tdevries@suse.de>
5374
5375 PR symtab/27336
5376 * dwarf2/attribute.c (attribute::form_is_signed): New function
5377 factored out of ...
5378 * dwarf2/attribute.h (attribute::as_signed): ... here.
5379 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5380 (attribute::form_is_signed): Declare.
5381 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5382 for DW_AT_decl_file.
5383
268c77c1
KB
53842021-02-24 Kevin Buettner <kevinb@redhat.com>
5385
5386 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5387 order for <sys/ptrace.h> and <asm/ptrace.h>.
5388
665af52e
KB
53892021-02-24 Kevin Buettner <kevinb@redhat.com>
5390
5391 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5392 <sys/ptrace.h>.
5393
dd80d750
AB
53942021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5395
5396 * exec.c (set_section_command): Move variable declarations into
5397 the function body, and use std::string instead of a fixed size
5398 buffer.
5399
336aa7b7
AB
54002021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5401
5402 * exec.c (exec_target::get_section_table): Delete member function.
5403 (section_table_read_available_memory): Use current_top_target, not
5404 just the exec_ops target.
5405 * target-delegates.c: Regenerate.
5406 * target.c (default_get_section_table): New function.
5407 * target.h (target_ops::get_section_table): Change default
5408 behaviour to call default_get_section_table.
5409 (default_get_section_table): Declare.
5410
02f7d26b
AB
54112021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5412
5413 * exec.c (exec_target::close): Call new clear_target_sections
5414 function.
5415 (program_space::add_target_sections): Update name of member
5416 variable.
5417 (program_space::add_target_sections): Update name of member
5418 variable.
5419 (program_space::remove_target_sections): Likewise.
5420 (exec_one_fork): Use new target_sections member function.
5421 (exec_target::get_section_table): Likewise.
5422 (exec_target::files_info): Likewise.
5423 (set_section_command): Likewise.
5424 (exec_set_section_address): Likewise.
5425 (exec_target::has_memory): Use new target_sections member
5426 function.
5427 * progspace.h (program_space::clear_target_sections): New member
5428 function.
5429 (program_space::target_sections): Rename member variable to
5430 m_target_sections, replace with a new member function.
5431 (program_space::m_target_sections): New member variable.
5432 * solib-dsbt.c (scan_dyntag): Use new member function.
5433 * solib-svr4.c (scan_dyntag): Likewise.
5434
19cf757a
AB
54352021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5436
5437 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5438 return type const.
5439 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5440 (section_table_read_available_memory): Make local const.
5441 (exec_target::xfer_partial): Make local const.
5442 (print_section_info): Make parameter const.
5443 * gdb/exec.h (print_section_info): Likewise.
5444 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5445 const.
5446 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5447 Likewise.
5448 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5449 Likewise.
5450 * gdb/s390-tdep.c (s390_load): Likewise.
5451 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5452 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5453 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5454 Rename to...
5455 (target_debug_print_const_target_section_table_p): ...this.
5456 * gdb/target-delegates.c: Regenerate.
5457 * gdb/target.c (target_get_section_table): Make return type const.
5458 (target_section_by_addr): Likewise. Also make some locals const.
5459 (memory_xfer_partial_1): Make some locals const.
5460 * gdb/target.h (struct target_ops) <get_section_table>: Make
5461 return type const.
5462 (target_section_by_addr): Likewise.
5463 (target_get_section_table): Likewise.
5464
02a79309
AB
54652021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5466
5467 * NEWS: Mention new 'maint info target-sections' command.
5468 * maint.c (maintenance_info_target_sections): New function.
5469 (_initialize_maint_cmds): Register new command.
5470
895b7b4e
AB
54712021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5472
5473 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5474 (riscv_features_from_bfd): ...this. Change parameter type to
5475 'bfd*', and update as required.
5476 (riscv_find_default_target_description): Update call to
5477 riscv_features_from_bfd. Select a default xlen based on
5478 info.bfd_arch_info.
5479 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5480
bc3c0632
AB
54812021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5482
5483 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5484 dynamic types in UNOP_IND.
5485
08ac5771
SM
54862021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5487
5488 PR gdb/26828
5489 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5490 Instantiate queue.
5491 (~dwarf2_queue_guard): Clear queue.
5492 (queue_comp_unit): Assert that queue is
5493 instantiated.
5494 (process_queue): Adjust.
5495 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5496
616c069a
SM
54972021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5498
5499 PR gdb/26828
5500 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5501 to decide whether or not to enqueue it for expansion.
5502 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5503 after calling maybe_queue_comp_unit.
5504
897608ed
SM
55052021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5506
5507 * linux-nat.c (linux_nat_filter_event): Return void.
5508
15908a11
TT
55092021-02-22 Tom Tromey <tromey@adacore.com>
5510
5511 * solib-svr4.c (enable_break): Update.
5512 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5513 type.
5514 (target_bfd_reopen): Change parameter type.
5515 * bfd-target.h (target_bfd_reopen): Change parameter type.
5516
f53fc427
SM
55172021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5518
5519 * thread.c (add_thread_silent): Add assert.
5520 (find_thread_ptid): Add assert.
5521
de146e19
SM
55222021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5523
5524 PR gdb/27435
5525 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5526 (target_unpush_up): Likewise.
5527 * procfs.c (procfs_target::attach): Push target early. Use
5528 target_unpush_up to unpush target in case of error.
5529 * target.h (struct target_unpusher): Move here.
5530 (target_unpush_up): Likewise.
5531
8488c357
KB
55322021-02-19 Kevin Buettner <kevinb@redhat.com>
5533
5534 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5535 (which in turn includes <gnulib/config.h>) before include
5536 of <signal.h>.
5537
5a9f5403
NC
55382021-02-19 Nelson Chu <nelson.chu@sifive.com>
5539
5540 PR 27158
5541 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5542 (decode_j_type_insn): Likewise.
5543 (decode_cj_type_insn): Likewise.
5544 (decode_b_type_insn): Likewise.
5545 (decode): Likewise.
5546
26f53cd3
TT
55472021-02-18 Tom Tromey <tom@tromey.com>
5548
5549 * expression.h (struct expression) <evaluate>: Declare method.
5550 * eval.c (evaluate_subexp): Simplify.
5551 (expression::evaluate): New method.
5552 (evaluate_expression, evaluate_type): Use expression::evaluate.
5553
6a780b67
KB
55542021-02-17 Kevin Buettner <kevinb@redhat.com>
5555
5556 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5557 to accessing it.
5558 (ada_lookup_name_info): Likewise.
5559
adeab0c5
MF
55602021-02-13 Mike Frysinger <vapier@gentoo.org>
5561
5562 * aclocal.m4: Regenerate.
5563
089436f7
TV
55642021-02-12 Tom de Vries <tdevries@suse.de>
5565
5566 PR threads/26228
5567 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5568 (lin_thread_signals): New static var.
5569 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5570 New function.
5571 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5572 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5573 Declare.
5574 * linux-thread-db.c (check_thread_signals): Use
5575 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5576
96df3e28
AB
55772021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5578
5579 * f-exp.y (f77_keywords): Add allocated.
5580 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5581 (operator_length_f): Likewise.
5582 (print_subexp_f): Likewise.
5583 (dump_subexp_body_f): Likewise.
5584 (operator_check_f): Likewise.
5585 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5586
05f68f52
TV
55872021-02-11 Tom de Vries <tdevries@suse.de>
5588
5589 PR symtab/27353
5590 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5591 Return true for DW_FORM_strx.
5592
b260f8d6
TT
55932021-02-11 Tom Tromey <tromey@adacore.com>
5594
5595 PR gdb/27383:
5596 * parse.c (write_exp_symbol_reference): Write sym.block.
5597
bf3386f0
AB
55982021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5599
5600 * NEWS: Mention changes to 'maint info sections'.
5601 * maint.c (match_substring): Return a bool, fix whitespace issue.
5602 (struct single_bfd_flag_info): New struct.
5603 (bfd_flag_info): New static global.
5604 (match_bfd_flags): Return a bool, use bfd_flag_info.
5605 (print_bfd_flags): Use bfd_flag_info.
5606 (maint_print_section_info): Delete trailing whitespace.
5607 (struct maint_info_sections_opts): New struct.
5608 (maint_info_sections_option_defs): New static global.
5609 (maint_info_sections_completer): New function.
5610 (maintenance_info_sections): Use option parsing mechanism.
5611 (_initialize_maint_cmds): Update command help text for 'maint info
5612 sections' and register a command completer.
5613
4790db14
AB
56142021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5615
5616 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5617 functionality merged into...
5618 (maint_print_all_sections): ...this new function.
5619 (maintenance_info_sections): Make use of maint_print_all_sections,
5620 allow all objects to be printed even where there's no executable.
5621
1db66e34
AB
56222021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5623
5624 * breakpoint.c (resolve_sal_pc): Make use of
5625 bound_minimal_symbol::obj_section.
5626 * maint.c (maintenance_translate_address): Likewise.
5627 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5628 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5629 member function.
5630 * printcmd.c (info_address_command): Make use of
5631 bound_minimal_symbol::obj_section.
5632
18b8df43
AM
56332021-02-11 Alan Modra <amodra@gmail.com>
5634
5635 * arm-symbian-tdep.c: Delete.
5636 * NEWS: Mention arm-symbian removal.
5637 * Makefile.in: Remove arm-symbian-tdep entries.
5638 * configure.tgt: Remove arm*-*-symbianelf*.
5639 * doc/gdb.texinfo: Remove mention of SymbianOS.
5640 * osabi.c (gdb_osabi_names): Remove "Symbian".
5641 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5642 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5643 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5644 handling.
5645 * testsuite/gdb.base/dup-sect.exp: Likewise.
5646 * testsuite/gdb.base/long_long.exp: Likewise.
5647 * testsuite/gdb.base/solib-weak.exp: Likewise.
5648 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5649 * testsuite/gdb.python/py-section-script.exp: Likewise.
5650 * testsuite/lib/dwarf.exp: Likewise.
5651 * testsuite/lib/gdb.exp: Likewise.
5652
e92c8eb8
AB
56532021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5654
5655 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5656 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5657 (one_or_two_args): New pattern.
5658 (f77_keywords): Add lbound and ubound.
5659 * f-lang.c (fortran_bounds_all_dims): New function.
5660 (fortran_bounds_for_dimension): New function.
5661 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5662 (operator_length_f): Likewise.
5663 (print_subexp_f): Likewise.
5664 (dump_subexp_body_f): Likewise.
5665 (operator_check_f): Likewise.
5666 * std-operator.def (FORTRAN_LBOUND): Define.
5667 (FORTRAN_UBOUND): Define.
5668
a52d653e
AB
56692021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5670
5671 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5672 and set_section_index member functions where appropriate.
5673 * coffread.c (coff_symtab_read): Likewise.
5674 (process_coff_symbol): Likewise.
5675 * ctfread.c (set_symbol_address): Likewise.
5676 * dwarf2/read.c (add_partial_symbol): Likewise.
5677 (var_decode_location): Likewise.
5678 * language.c: Likewise.
5679 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5680 (compact_minimal_symbols): Likewise.
5681 (minimal_symbol_upper_bound): Likewise.
5682 * objfiles.c (relocate_one_symbol): Likewise.
5683 * psympriv.h (partial_symbol::obj_section): Likewise.
5684 (partial_symbol::address): Likewise.
5685 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5686 * stabsread.c (scan_file_globals): Likewise.
5687 * symmisc.c (dump_msymbols): Likewise.
5688 * symtab.c (general_symbol_info::obj_section): Likewise.
5689 (fixup_section): Likewise.
5690 (get_msymbol_address): Likewise.
5691 * symtab.h (general_symbol_info::section): Rename to...
5692 (general_symbol_info::m_section): ...this.
5693 (general_symbol_info::set_section_index): New member function.
5694 (general_symbol_info::section_index): Likewise.
5695 (SYMBOL_SECTION): Delete.
5696 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5697 set_section_index member functions where appropriate.
5698 (MSYMBOL_SECTION): Delete.
5699 (symbol::symbol): Update to initialize 'm_section'.
5700 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5701 (process_xcoff_symbol): Likewise.
5702
ebbc3a7d
AB
57032021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5704
5705 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5706 MSYMBOL_OBJ_SECTION.
5707 * findvar.c (language_defn::read_var_value): Likewise.
5708 * infcmd.c (jump_command): Likewise.
5709 * linespec.c (minsym_found): Likewise.
5710 * maint.c (maintenance_translate_address): Likewise.
5711 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5712 (minimal_symbol_upper_bound): Likewise.
5713 * parse.c (find_minsym_type_and_address): Likewise.
5714 (operator_check_standard): Likewise.
5715 * printcmd.c (info_address_command): Likewise.
5716 * symmisc.c (dump_msymbols): Likewise.
5717 (print_symbol): Likewise.
5718 * symtab.c (general_symbol_info::obj_section): Define new
5719 function.
5720 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5721 (find_pc_sect_compunit_symtab): Likewise.
5722 (find_function_start_sal): Likewise.
5723 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5724 MSYMBOL_OBJ_SECTION.
5725 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5726 function.
5727 (SYMBOL_OBJ_SECTION): Delete.
5728 (MSYMBOL_OBJ_SECTION): Delete.
5729
9bb305b3
TT
57302021-02-09 Tom Tromey <tom@tromey.com>
5731
5732 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5733
cf2b2075
TV
57342021-02-09 Tom de Vries <tdevries@suse.de>
5735
5736 PR symtab/27341
5737 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5738 construct an array type. Add assert to ensure that element_type is
5739 not being modified.
5740
03642b71
AB
57412021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5742
5743 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5744 (gcore_collect_regset_section_cb): Delete.
5745 (gcore_collect_thread_registers): Delete.
5746 (gcore_build_thread_register_notes): Delete.
5747 (gcore_find_signalled_thread): Delete.
5748 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5749 'gdbarch' and 'thread_info' declarations.
5750 (gcore_build_thread_register_notes): Delete declaration.
5751 (gcore_find_signalled_thread): Likewise.
5752 * fbsd-tdep.c: Remove 'gcore.h' include.
5753 (struct fbsd_collect_regset_section_cb_data): New struct.
5754 (fbsd_collect_regset_section_cb): New function.
5755 (fbsd_collect_thread_registers): New function.
5756 (struct fbsd_corefile_thread_data): New struct.
5757 (fbsd_corefile_thread): New function.
5758 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5759 * linux-tdep.c: Remove 'gcore.h' include.
5760 (struct linux_collect_regset_section_cb_data): New struct.
5761 (linux_collect_regset_section_cb): New function.
5762 (linux_collect_thread_registers): New function.
5763 (linux_corefile_thread): Call Linux specific code.
5764 (find_signalled_thread): New function.
5765 (linux_make_corefile_notes): Call find_signalled_thread.
5766
f73e424f
TT
57672021-02-09 Tom Tromey <tromey@adacore.com>
5768
5769 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5770 not_lval value.
5771 * value.c (value_contents_copy_raw): Now static.
5772 * value.h (value_contents_copy_raw): Don't declare.
5773
a4f0544b
TT
57742021-02-09 Tom Tromey <tromey@adacore.com>
5775
5776 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5777 fields.
5778
9b3e4b5d
SV
57792021-02-08 Shahab Vahedi <shahab@synopsys.com>
5780
5781 PR tdep/27369
5782 * arc-linux-tdep.c (handle_atomic_sequence): New.
5783 (arc_linux_software_single_step): Call handle_atomic_sequence().
5784
29db1eb3
AB
57852021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5786
5787 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5788 function.
5789 (REQUIRE_WINDOW): Call is_valid member function.
5790 (REQUIRE_WINDOW_FOR_SETTER): New define.
5791 (gdbpy_tui_is_valid): Call is_valid member function.
5792 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5793 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5794 tui_active too.
5795 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5796 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5797 the function.
5798
e0c23e11
AB
57992021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5800
5801 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5802 for the title is not nullptr.
5803
1cf23996
AB
58042021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5805
5806 * tui-layout.c (saved_tui_windows): Delete.
5807 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5808 call new get_windows member function instead.
5809 (tui_get_window_by_name): Check in tui_windows.
5810 (tui_layout_window::apply): Don't add to tui_windows.
5811 * tui-layout.h (tui_layout_base::get_windows): New member function.
5812 (tui_layout_window::get_windows): Likewise.
5813 (tui_layout_split::get_windows): Likewise.
5814
a53a2657
AB
58152021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5816
5817 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5818 of the window objects.
5819
2708dbbd
AB
58202021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5821
5822 * python/python.c (gdbpy_print_stack): Reformat an error message.
5823
cd074e04
AB
58242021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5825
5826 * tui/tui-interp.c (tui_command_line_handler): New function.
5827 (tui_interp::resume): Register tui_command_line_handler as the
5828 input_handler.
5829 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5830 function.
5831 (tui_getc_1): Delete handling of '\n' and '\r'.
5832 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5833
4cf28e91
HD
58342021-02-07 Hannes Domani <ssbssa@yahoo.de>
5835
5836 * tui/tui-regs.c (tui_data_window::display_registers_from):
5837 Mark invisible register sub windows.
5838 (tui_data_window::check_register_values): Ignore invisible
5839 register sub windows.
5840
3537bc23
HD
58412021-02-07 Hannes Domani <ssbssa@yahoo.de>
5842
5843 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5844 n_spaces with a negative value.
5845
5fc2d6aa
HD
58462021-02-07 Hannes Domani <ssbssa@yahoo.de>
5847
5848 * tui/tui-regs.c (tui_data_window::display_registers_from):
5849 Add refresh_window call.
5850
83962f83
HD
58512021-02-07 Hannes Domani <ssbssa@yahoo.de>
5852
5853 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5854
0110ec82
SM
58552021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5856
5857 * symmisc.c (std_in, std_out, std_err): Remove.
5858 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5859
7c6944ab
TV
58602021-02-05 Tom de Vries <tdevries@suse.de>
5861
5862 PR breakpoints/27330
5863 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5864 glibc object file has debug info.
5865
e77b0004
TV
58662021-02-05 Tom de Vries <tdevries@suse.de>
5867
5868 PR symtab/27333
5869 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5870
0e857c82
TV
58712021-02-05 Tom de Vries <tdevries@suse.de>
5872
5873 PR breakpoints/27313
5874 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5875 syscall numbers.
5876
bdfea17e
TT
58772021-02-05 Tom Tromey <tom@tromey.com>
5878
5879 * compile/compile-c-support.c (get_compile_context)
5880 (c_get_compile_context, cplus_get_compile_context): Change return
5881 type.
5882 * language.c (language_defn::get_compile_instance): New method.
5883 * language.h (language_defn::get_compile_instance): Change return
5884 type. No longer inline.
5885 * c-lang.c (c_language::get_compile_instance): Change return type.
5886 (cplus_language::get_compile_instance): Change return type.
5887 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5888 Change return type.
5889 * compile/compile.c (compile_to_object): Update.
5890
1b30f421
TT
58912021-02-05 Tom Tromey <tom@tromey.com>
5892
5893 * parser-defs.h (write_exp_symbol_reference): Declare.
5894 * parse.c (write_exp_symbol_reference): New function.
5895 * p-exp.y (variable): Use write_exp_symbol_reference.
5896 * m2-exp.y (variable): Use write_exp_symbol_reference.
5897 * f-exp.y (variable): Use write_exp_symbol_reference.
5898 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5899 * c-exp.y (variable): Use write_exp_symbol_reference.
5900
ae710496
TV
59012021-02-05 Tom de Vries <tdevries@suse.de>
5902
5903 PR exp/27265
5904 * valarith.c (complex_binop): Throw an error if complex type can't
5905 be created.
5906
d3b54e63
TV
59072021-02-05 Tom de Vries <tdevries@suse.de>
5908
5909 PR symtab/27307
5910 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5911 return.
5912
fc9a13fb
TV
59132021-02-05 Tom de Vries <tdevries@suse.de>
5914
5915 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5916
04b4939b
MF
59172021-02-04 Mike Frysinger <vapier@gentoo.org>
5918
5919 * configure.tgt (riscv*-*-*): Set gdb_sim.
5920
6ff267e1
SM
59212021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5922
5923 * target.c (target_is_non_stop_p): Return bool.
5924 * target.h (target_is_non_stop_p): Return bool.
5925
fdbc5215
SM
59262021-02-04 Simon Marchi <simon.marchi@efficios.com>
5927
5928 * record-full.c (record_full_async_inferior_event_handler):
5929 Don't clear async event handler.
5930 (record_full_base_target::wait): Clear async event handler at
5931 beginning.
5932
85d3ad8e
SM
59332021-02-04 Simon Marchi <simon.marchi@efficios.com>
5934
5935 * record-btrace.c (record_btrace_handle_async_inferior_event):
5936 Don't clear async event handler.
5937 (record_btrace_target::wait): Clear async event handler at
5938 beginning.
5939
baa8575b
SM
59402021-02-04 Simon Marchi <simon.marchi@efficios.com>
5941
5942 * remote.c (remote_target::wait): Clear async event handler at
5943 beginning, mark if needed at the end.
5944 (remote_async_inferior_event_handler): Don't set or clear async
5945 event handler.
5946
6b36ddeb
SM
59472021-02-04 Simon Marchi <simon.marchi@efficios.com>
5948
5949 * async-event.h (async_event_handler_func): Add documentation.
5950 * async-event.c (check_async_event_handlers): Don't clear
5951 async_event_handler ready flag.
5952 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5953 flag.
5954 * record-btrace.c (record_btrace_handle_async_inferior_event):
5955 Likewise.
5956 * record-full.c (record_full_async_inferior_event_handler):
5957 Likewise.
5958 * remote-notif.c (remote_async_get_pending_events_handler):
5959 Likewise.
5960 * remote.c (remote_async_inferior_event_handler): Likewise.
5961
72d383bb
SM
59622021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5963
5964 * infrun.c (handle_inferior_event): Move stop_soon variable to
5965 inner scope.
5966
408f6686
PA
59672021-02-03 Pedro Alves <pedro@palves.net>
5968
5969 * infcmd.c (detach_command): Hold strong reference to target, and
5970 if all-stop on entry, restart threads on exit.
5971 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5972 (restart_stepped_thread): ... this new function. Also handle
5973 trap_expected.
5974 (restart_after_all_stop_detach): New function.
5975 * infrun.h (restart_after_all_stop_detach): Declare.
5976
ac7d717c
PA
59772021-02-03 Pedro Alves <pedro@palves.net>
5978
5979 * infrun.c (struct step_over_info): Initialize fields.
5980 (prepare_for_detach): Handle ongoing in-line step over.
5981
e87f0fe8
PA
59822021-02-03 Pedro Alves <pedro@palves.net>
5983
5984 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5985 here...
5986 * remote.c (remote_target::remote_detach_1): ... and here ...
5987 * target.c (target_detach): ... instead of here.
5988 * target.h (target_ops::detach): Add comment.
5989
8ff53139
PA
59902021-02-03 Pedro Alves <pedro@palves.net>
5991
5992 * infrun.c (struct wait_one_event): Move higher up.
5993 (prepare_for_detach): Abort in-progress displaced steps instead of
5994 letting them complete.
5995 (handle_one): If the inferior is detaching, don't add the thread
5996 back to the global step-over chain.
5997 (restart_threads): Don't restart threads if detaching.
5998 (handle_signal_stop): Remove inferior::detaching reference.
5999
91475068
PA
60002021-02-03 Pedro Alves <pedro@palves.net>
6001
6002 * infrun.c (prepare_for_detach): Don't release scoped_restore
6003 before returning.
6004
d758e62c
PA
60052021-02-03 Pedro Alves <pedro@palves.net>
6006
6007 * infrun.c (handle_one): New function, factored out from ...
6008 (stop_all_threads): ... here.
6009
b0083dd7
PA
60102021-02-03 Pedro Alves <pedro@palves.net>
6011
6012 * remote.c (remote_notif_stop_ack): Don't error out on
6013 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6014 (remote_target::discard_pending_stop_replies): Don't delete
6015 in-flight notification; instead, clear its contents.
6016
621cc310
PA
60172021-02-03 Pedro Alves <pedro@palves.net>
6018
6019 * remote.c (extended_remote_target::attach): Set target async in
6020 the target-non-stop path too.
6021
2ab76a18
PA
60222021-02-03 Pedro Alves <pedro@palves.net>
6023
6024 PR gdb/27055
6025 * infrun.c (handle_signal_stop): Move main context_switch call
6026 earlier, before STOP_QUIETLY_NO_SIGSTOP.
6027
2e3773ff
LS
60282021-02-02 Lancelot SIX <lsix@lancelotsix.com>
6029
6030 * NEWS (Changed commands): Add entry for the behavior change of
6031 the inferior command.
6032 * inferior.c (inferior_command): When no argument is given to the
6033 inferior command, display info about the currently selected
6034 inferior.
6035
e57933dc
SM
60362021-02-02 Simon Marchi <simon.marchi@efficios.com>
6037
6038 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6039 a sect_offset.
6040 (read_attribute_reprocess): Adjust.
6041
2b0c7f41
SM
60422021-02-02 Simon Marchi <simon.marchi@efficios.com>
6043
6044 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6045 <gnu_ranges_base>: ... this...
6046 <rnglists_base>: ... and this.
6047 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6048 <gnu_ranges_base>: ... this...
6049 <rnglists_base>: ... and this.
6050 (read_cutu_die_from_dwo): Adjust
6051 (dwarf2_get_pc_bounds): Adjust
6052 (dwarf2_record_block_ranges): Adjust.
6053 (read_full_die_1): Adjust
6054 (partial_die_info::read): Adjust.
6055 (read_rnglist_index): Adjust.
6056
a1c40103
SM
60572021-02-02 Simon Marchi <simon.marchi@efficios.com>
6058
6059 PR gdb/26813
6060 * dwarf2/read.c (read_loclists_rnglists_header): Add
6061 header_offset parameter and use it.
6062 (read_loclist_index): Read header of the current contribution,
6063 not the one at the beginning of the section.
6064 (read_rnglist_index): Likewise.
6065
b1829e1b
SM
60662021-02-02 Simon Marchi <simon.marchi@efficios.com>
6067
6068 PR gdb/26813
6069 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6070 requires_reprocessing flag.
6071 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6072 DW_FORM_loclistx.
6073 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6074 and DW_FORM_loclistx.
6075 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6076 instead of set_address for DW_FORM_loclistx and
6077 DW_FORM_rnglistx.
6078
0c800c6e
SM
60792021-02-02 Simon Marchi <simon.marchi@efficios.com>
6080
6081 * dwarf2/read.c (read_loclist_index): Remove bound check for
6082 start of offset.
6083 (read_rnglist_index): Likewise.
6084
05787bad
SM
60852021-02-02 Simon Marchi <simon.marchi@efficios.com>
6086
6087 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6088 of the offset.
6089
5e4d9bbc
SM
60902021-02-02 Simon Marchi <simon.marchi@efficios.com>
6091
6092 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6093
a0c1eeba
SM
60942021-02-02 Simon Marchi <simon.marchi@efficios.com>
6095
6096 * dwarf2/read.c (read_loclist_index): Change complaints into
6097 errors.
6098
2bd3e4b8
TV
60992021-02-02 Tom de Vries <tdevries@suse.de>
6100
6101 PR symtab/24620
6102 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6103 psymtab == nullptr.
6104
82a1fd3a
AB
61052021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6106
6107 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6108 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6109 here from linux-tdep.c and given a new name. Minor cleanups.
6110 (gcore_collect_regset_section_cb): Likewise.
6111 (gcore_collect_thread_registers): Likewise.
6112 (gcore_build_thread_register_notes): Likewise.
6113 (gcore_find_signalled_thread): Likewise.
6114 * gcore.h (gcore_build_thread_register_notes): Declare.
6115 (gcore_find_signalled_thread): Declare.
6116 * fbsd-tdep.c: Add 'gcore.h' include.
6117 (struct fbsd_collect_regset_section_cb_data): Delete.
6118 (fbsd_collect_regset_section_cb): Delete.
6119 (fbsd_collect_thread_registers): Delete.
6120 (struct fbsd_corefile_thread_data): Delete.
6121 (fbsd_corefile_thread): Delete.
6122 (fbsd_make_corefile_notes): Call
6123 gcore_build_thread_register_notes instead of the now deleted
6124 FreeBSD code.
6125 * linux-tdep.c: Add 'gcore.h' include.
6126 (struct linux_collect_regset_section_cb_data): Delete.
6127 (linux_collect_regset_section_cb): Delete.
6128 (linux_collect_thread_registers): Delete.
6129 (linux_corefile_thread): Call
6130 gcore_build_thread_register_notes.
6131 (find_signalled_thread): Delete.
6132 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6133
ebde6f2d
TV
61342021-01-29 Tom de Vries <tdevries@suse.de>
6135
6136 PR breakpoints/26063
6137 * infrun.c (process_event_stop_test): Reset
6138 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6139 changed.
6140
0f93c3a2
AB
61412021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6142
6143 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6144 assert. Extend the header comment.
6145
f237f998
AB
61462021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6147
6148 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6149 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6150 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6151 (tui_locator_win_info_ptr): Delete declaration.
6152 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6153 (tui_disasm_window::set_contents): Fetch state from tui_location
6154 global.
6155 (tui_get_begin_asm_address): Likewise.
6156 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6157 for locator window.
6158 (get_locator_window): Delete.
6159 (initialize_known_windows): Treat locator window just like all the
6160 rest.
6161 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6162 (tui_source_window::set_contents): Fetch state from tui_location
6163 global.
6164 (tui_source_window::showing_source_p): Likewise.
6165 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6166 (_locator): Delete.
6167 (tui_locator_win_info_ptr): Delete.
6168 (tui_locator_window::make_status_line): Fetch state from
6169 tui_location global.
6170 (tui_locator_window::rerender): Remove check of 'handle',
6171 reindent function body.
6172 (tui_locator_window::set_locator_fullname): Delete.
6173 (tui_locator_window::set_locator_info): Delete.
6174 (tui_update_locator_fullname): Delete.
6175 (tui_show_frame_info): Likewise.
6176 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6177 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6178 tui/tui-location.h and renamed to
6179 tui_location_tracker::set_location.
6180 (tui_locator_window::set_locator_fullname): Moved to
6181 tui/tui-location.h and renamed to
6182 tui_location_tracker::set_fullname.
6183 (tui_locator_window::full_name): Delete.
6184 (tui_locator_window::proc_name): Delete.
6185 (tui_locator_window::line_no): Delete.
6186 (tui_locator_window::addr): Delete.
6187 (tui_locator_window::gdbarch): Delete.
6188 (tui_update_locator_fullname): Delete declaration.
6189 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6190 for locator window.
6191 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6192 (tui_display_main): Call function on tui_location directly.
6193 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6194 * tui/tui-location.c: New file.
6195 * tui/tui-location.h: New file.
6196
8ee511af
SM
61972021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6198
6199 * gdbtypes.h (get_type_arch): Rename to...
6200 (struct type) <arch>: ... this, update all users.
6201
6ac37371
SM
62022021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6203
6204 * gdbtypes.h (struct type) <arch>: Rename to...
6205 <arch_owner>: ... this, update all users.
6206 <objfile>: Rename to...
6207 <objfile_owner>: ... this, update all users.
6208
24cf6389
AB
62092021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6210
6211 * gdbcmd.h (execute_command_to_string): Update comment.
6212 * top.c (execute_command_to_string): Update header comment.
6213
2a7f6487
TV
62142021-01-28 Tom de Vries <tdevries@suse.de>
6215
6216 PR breakpoints/27205
6217 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6218 (create_longjmp_master_breakpoint_names): New function, factored out
6219 of ...
6220 (create_longjmp_master_breakpoint): ... here. Only try to install
6221 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6222 breakpoint in libc.so failed.
6223
59b59f08
LS
62242021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6225
6226 PR gdb/27133
6227 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6228 unique_ptr is released when the wrapped pointer is kept for later
6229 use.
6230
807f647c
MM
62312021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6232
6233 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6234 BLR and BR instructions.
6235 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6236 (enum aarch64_masks): New.
6237
4ef367bf
TT
62382021-01-26 Tom Tromey <tromey@adacore.com>
6239
6240 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6241 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6242 (windows_init_thread_list, windows_nat::handle_load_dll)
6243 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6244 (windows_nat_target::resume)
6245 (windows_nat_target::get_windows_debug_event)
6246 (windows_nat_target::interrupt, windows_xfer_memory)
6247 (windows_nat_target::close): Update.
6248 * nat/windows-nat.c (DEBUG_EVENTS): Use
6249 debug_prefixed_printf_cond.
6250 (matching_pending_stop, fetch_pending_stop)
6251 (continue_last_debug_event): Update.
6252
4cb1265b
MS
62532020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6254
6255 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6256 elfcore_write_file_note.
6257
d0cc52bd
SV
62582021-01-26 Shahab Vahedi <shahab@synopsys.com>
6259
6260 * arc-tdep.c (arc_add_reggroups): New function.
6261 (arc_gdbarch_init): Call arc_add_reggroups.
6262
ac3571d9 62632021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
6264
6265 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6266
9f6c202e
TV
62672021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6268 Simon Marchi <simon.marchi@polymtl.ca>
6269 Tom de Vries <tdevries@suse.de>
6270
6271 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6272 DW_AT_ranges.
6273
a625a8c9
TT
62742021-01-25 Tom Tromey <tromey@adacore.com>
6275
6276 * dwarf2/read.c (get_mpz): New function.
6277 (get_dwarf2_rational_constant): Use it.
6278
19184910
TT
62792021-01-25 Tom Tromey <tromey@adacore.com>
6280
6281 * ada-lang.c (resolve_subexp): Handle array context.
6282
b10bae18
TT
62832021-01-23 Tom Tromey <tom@tromey.com>
6284
6285 PR compile/25575
6286 * compile/compile-loc2c.c (note_register): New function.
6287 (pushf_register_address, pushf_register): Use it.
6288
3637a558
TT
62892021-01-23 Tom Tromey <tom@tromey.com>
6290
6291 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6292 Change type of "registers_used".
6293 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6294 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6295 (locexpr_generate_c_location, loclist_generate_c_location): Change
6296 type of "registers_used".
6297 * compile/compile.h (compile_dwarf_expr_to_c)
6298 (compile_dwarf_bounds_to_c): Update.
6299 * compile/compile-loc2c.c (pushf_register_address)
6300 (pushf_register, do_compile_dwarf_expr_to_c)
6301 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6302 of "registers_used".
6303 * compile/compile-c.h (generate_c_for_variable_locations):
6304 Update.
6305 * compile/compile-c-symbols.c (generate_vla_size)
6306 (generate_c_for_for_one_variable): Change type of
6307 "registers_used".
6308 (generate_c_for_variable_locations): Return std::vector.
6309 * compile/compile-c-support.c (generate_register_struct): Change
6310 type of "registers_used".
6311 (compute): Update.
6312
9f7f6cb8
TT
63132021-01-23 Tom Tromey <tom@tromey.com>
6314
6315 * compile/compile-internal.h (class compile_instance)
6316 <set_arguments>: Change return type.
6317 * compile/compile.c (compile_to_object): Remove call to reset.
6318 (compile_instance::set_arguments): Change return type.
6319
dd5ca05f
SM
63202021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6321
6322 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6323 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6324
d3ee35db
LS
63252021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6326
6327 * Makefile.in (SELFTESTS_SRCS): Add
6328 unittests/gdb_tilde_expand-selftests.c.
6329 * unittests/gdb_tilde_expand-selftests.c: New file.
6330
9d2d8a16
AB
63312021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6332
6333 PR cli/25956
6334 * NEWS: Mention new command.
6335 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6336 (version_style): Define.
6337 (cli_style_option::cli_style_option): Add intensity parameter, and
6338 use as appropriate.
6339 (_initialize_cli_style): Register version style set/show commands.
6340 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6341 (version_style): Declare.
6342 * top.c (print_gdb_version): Use version_stype, and styled_string
6343 to print the GDB version string.
6344
e7b43072
AB
63452021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6346
6347 * utils.c (emit_style_escape): Only emit an escape sequence if the
6348 requested style is different than the current applied style.
6349 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6350 current applied_style.
6351 (fputs_styled): Remove is_default check.
6352 (fputs_styled_unfiltered): Likewise.
6353 (vfprintf_styled_no_gdbfmt): Likewise.
6354
2189c312
SM
63552021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6356
6357 * remote.h (remote_debug_printf): New.
6358 (remote_debug_printf_nofunc): New.
6359 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6360 * remote.c: Use above macros throughout file.
6361
02349803
SM
63622021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6363
6364 * remote.h (remote_debug): Change to bool.
6365 * remote.c (remote_debug): Change to bool.
6366 (_initialize_remote): Adjust.
6367
cda09ec9
SM
63682021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6369
6370 * target.h (remote_debug): Move to...
6371 * remote.h (remote_debug): ... here.
6372 * top.c (remote_debug): Move to...
6373 * remote.c (remote_debug): ... here.
6374 * remote-sim.c: Include remote.h.
6375
baf2b57f
SM
63762021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6377
6378 * cli/cli-cmds.c (show_remote_debug): Remove.
6379 (show_remote_timeout): Remove.
6380 (_initialize_cli_cmds): Don't register commands.
6381 * remote.c (show_remote_debug): Move here.
6382 (show_remote_timeout): Move here.
6383 (_initialize_remote): Register commands.
6384
344e9841
SM
63852021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6386
6387 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6388 type::objfile method instead.
6389
30625020
SM
63902021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6391
6392 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6393 use the type::is_objfile_owned method.
6394
5b7d941b
SM
63952021-01-22 Simon Marchi <simon.marchi@efficios.com>
6396
6397 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6398 (TYPE_OWNER): Remove.
6399 (TYPE_OBJFILE): Adjust.
6400 (struct main_type) <flag_objfile_owned>: Rename to...
6401 <m_flag_objfile_owned>: ... this.
6402 <owner>: Rename to...
6403 <m_owner>: ... this.
6404 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6405 methods.
6406 (TYPE_ALLOC): Adjust.
6407 * gdbtypes.c (alloc_type): Adjust.
6408 (alloc_type_arch): Adjust.
6409 (alloc_type_copy): Adjust.
6410 (get_type_arch): Adjust.
6411 (smash_type): Adjust.
6412 (lookup_array_range_type): Adjust.
6413 (recursive_dump_type): Adjust.
6414 (copy_type_recursive): Adjust.
6415 * compile/compile-c-types.c (convert_func): Adjust.
6416 (convert_type_basic): Adjust.
6417 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6418 Adjust.
6419 * language.c
6420 (language_arch_info::type_and_symbol::alloc_type_symbol):
6421 Adjust.
6422
d5d24e12
LM
64232021-01-21 Luis Machado <luis.machado@linaro.org>
6424
6425 * coffread.c (enter_linenos): Passing string to complaint.
6426 * valops.c (value_assign): Make array view.
6427
a59902a7
SM
64282021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6429
6430 * auto-load.h (debug_auto_load): Move here.
6431 (auto_load_debug_printf): New.
6432 * auto-load.c: Use auto_load_debug_printf.
6433 (debug_auto_load): Move to header.
6434 * linux-thread-db.c (try_thread_db_load): Use
6435 auto_load_debug_printf.
6436 * main.c (captured_main_1): Likewise.
6437
d3abc0ce
SM
64382021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6439
6440 * f-valprint.c (f77_array_offset_tbl): Remove.
6441
1e15fcac
SM
64422021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6443
6444 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6445
439706e6
SM
64462021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6447
6448 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6449 of gdb_select.
6450
325d39e4
HD
64512021-01-21 Hannes Domani <ssbssa@yahoo.de>
6452
6453 PR python/19151
6454 * python/py-breakpoint.c (bppy_get_location): Handle
6455 bp_hardware_breakpoint.
6456 (bppy_init): Likewise.
6457 (gdbpy_breakpoint_created): Likewise.
6458
7cb6d92a
SM
64592021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6460
6461 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6462
d4dd4fca
SM
64632021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6464
6465 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6466 (_initialize_gdb_bfd): Adjust.
6467
de53369b
SM
64682021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6469
6470 PR gdb/26828
6471 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6472
17e593e9
SM
64732021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6474
6475 * dwarf2/read.c (follow_die_offset): Add logging.
6476 (dwarf2_per_objfile::age_comp_units): Add logging.
6477
6bd434d6
SM
64782021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6479
6480 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6481 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6482 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6483 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6484 * arm-tdep.c (struct frame_unwind): Make static.
6485 * auto-load.c (auto_load_safe_path_vec): Make static.
6486 * csky-tdep.c (csky_stub_unwind): Make static.
6487 * gdbarch.c (gdbarch_data_registry): Make static.
6488 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6489 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6490 * i386-tdep.c (i386_frame_setup_skip_insns,
6491 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6492 Make static.
6493 * infrun.c (observer_mode): Make static.
6494 * linux-nat.c (sigchld_action): Make static.
6495 * linux-thread-db.c (thread_db_list): Make static.
6496 * maint-test-options.c (maintenance_test_options_list):
6497 * mep-tdep.c (mep_csr_registers): Make static.
6498 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6499 (stats): Make static.
6500 * nat/linux-osdata.c (struct osdata_type): Make static.
6501 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6502 * progspace.c (last_program_space_num): Make static.
6503 * python/py-param.c (struct parm_constant): Remove struct type
6504 name.
6505 (parm_constants): Make static.
6506 * python/py-record-btrace.c (btpy_list_methods): Make static.
6507 * python/py-record.c (recpy_gap_type): Make static.
6508 * record.c (record_goto_cmdlist): Make static.
6509 * regcache.c (regcache_descr_handle): Make static.
6510 * registry.h (DEFINE_REGISTRY): Make definition static.
6511 * symmisc.c (std_in, std_out, std_err): Make static.
6512 * top.c (previous_saved_command_line): Make static.
6513 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6514 static.
6515 * unittests/command-def-selftests.c (nr_duplicates,
6516 nr_invalid_prefixcmd, lists): Make static.
6517 * unittests/observable-selftests.c (test_notification): Make
6518 static.
6519 * unittests/optional/assignment/1.cc (counter): Make static.
6520 * unittests/optional/assignment/2.cc (counter): Make static.
6521 * unittests/optional/assignment/3.cc (counter): Make static.
6522 * unittests/optional/assignment/4.cc (counter): Make static.
6523 * unittests/optional/assignment/5.cc (counter): Make static.
6524 * unittests/optional/assignment/6.cc (counter): Make static.
6525
a6c11cbb
JS
65262021-01-20 Joel Sherrill <joel@rtems.org>
6527
6528 PR gdb/27219
6529 * remote.c (struct remote_thread_info) <resume_state>: Rename
6530 to...
6531 <get_resume_state>: ... this.
6532 (remote_target::resume): Adjust.
6533 (remote_target::commit_resume): Adjust.
6534 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6535
6f52fdf4
SDJ
65362021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6537 Tom Tromey <tom@tromey.com>
6538
6539 * stap-probe.c (stap_parse_single_operand): Handle '!'
6540 operator.
6541 (stap_parse_argument_conditionally): Likewise.
6542 Skip spaces after processing open-parenthesis sub-expression.
6543 (stap_parse_argument_1): Skip spaces after call to
6544 stap_parse_argument_conditionally.
6545 Handle case when right-side expression is a parenthesized
6546 sub-expression.
6547 Skip spaces after call to stap_parse_argument_1.
6548
1c3b85ad
LS
65492021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6550
6551 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6552
a9a87d35
LM
65532021-01-19 Luis Machado <luis.machado@linaro.org>
6554
6555 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6556 memory and save data.
6557 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6558 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6559 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6560 (trad_frame_value_bytes_p): Remove.
6561 (trad_frame_reset_saved_regs): Adjust documentation.
6562 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6563 constructor and reset the state of the registers.
6564 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6565 (trad_frame_value_bytes_p, trad_frame_set_value)
6566 (trad_frame_set_realreg, trad_frame_set_addr)
6567 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6568 (trad_frame_set_reg_realreg): Update to call member function.
6569 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6570 (trad_frame_get_prev_register): Likewise.
6571
6572 * aarch64-tdep.c (aarch64_analyze_prologue)
6573 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6574 (aarch64_prologue_prev_register): Update to use member functions.
6575 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6576 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6577 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6578 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6579 (arm_make_epilogue_frame_cache): Likewise.
6580 * avr-tdep.c (avr_frame_unwind_cache)
6581 (avr_frame_prev_register): Likewise.
6582 * cris-tdep.c (cris_scan_prologue): Likewise.
6583 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6584 * frv-tdep.c (frv_analyze_prologue): Likewise.
6585 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6586 * lm32-tdep.c (lm32_frame_cache): Likewise.
6587 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6588 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6589 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6590 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6591 (reset_saved_regs): Adjust to set realreg.
6592 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6593 call member functions.
6594 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6595 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6596 (s390_backchain_frame_unwind_cache): Likewise.
6597 * score-tdep.c (score7_analyze_prologue)
6598 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6599 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6600 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6601 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6602 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6603 * tilegx-tdep.c (tilegx_analyze_prologue)
6604 (tilegx_frame_cache): Likewise.
6605 * v850-tdep.c (v850_frame_cache): Likewise.
6606 * vax-tdep.c (vax_frame_cache): Likewise.
6607
bdec2917
LM
66082021-01-19 Luis Machado <luis.machado@linaro.org>
6609
6610 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6611 of buffer + length.
6612 (put_frame_register_bytes): Likewise.
6613 Adjust documentation.
6614 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6615 (safe_frame_unwind_memory): Likewise.
6616 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6617 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6618 gdb::array_view.
6619 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6620 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6621 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6622 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6623 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6624 * dwarf2/loc.c (rw_pieced_value): Likewise.
6625 * hppa-tdep.c (hppa_frame_cache): Likewise.
6626 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6627 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6628 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6629 (i386_linux_rt_sigtramp_start): Likewise.
6630 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6631 * i386-tdep.c (i386_register_to_value): Likewise.
6632 * i387-tdep.c (i387_register_to_value): Likewise.
6633 * ia64-tdep.c (ia64_register_to_value): Likewise.
6634 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6635 (m32r_linux_rt_sigtramp_start): Likewise.
6636 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6637 * m68k-tdep.c (m68k_register_to_value): Likewise.
6638 * mips-tdep.c (mips_register_to_value)
6639 (mips_value_to_register): Likewise.
6640 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6641 (ppcfbsd_sigtramp_frame_cache): Likewise.
6642 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6643 (ppcobsd_sigtramp_frame_cache): Likewise.
6644 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6645 (rs6000_register_to_value): Likewise.
6646 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6647 * tramp-frame.c (tramp_frame_start): Likewise.
6648 * valops.c (value_assign): Likewise.
6649
ccbe4c82
LM
66502021-01-19 Luis Machado <luis.machado@linaro.org>
6651
6652 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6653 array_view.
6654 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6655 instead of buffer and size.
6656 (trad_frame_set_reg_value_bytes): Likewise.
6657 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6658 (trad_frame_set_value_bytes): Likewise.
6659
0e7620dc
MF
66602021-01-18 Mike Frysinger <vapier@gentoo.org>
6661
6662 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6663
6a9ad81c
AB
66642021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6665
6666 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6667 (riscv_fbsd_gregset): Use riscv_supply_regset.
6668 (riscv_fbsd_fpregset): Likewise.
6669 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6670 (riscv_linux_fregset): Likewise.
6671 * riscv-tdep.c (riscv_supply_regset): Define new function.
6672 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6673
d3d7d1ba
TV
66742021-01-18 Tom de Vries <tdevries@suse.de>
6675
6676 PR tdep/27172
6677 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6678 New macro.
6679 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6680 for SEGV_BNDERR.
6681
aa2838cc
SM
66822021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6683
6684 * remote.c (class remote_target) <remote_hostio_send_command,
6685 remote_hostio_parse_result>: Constify parameter.
6686 (remote_hostio_parse_result): Likewise.
6687 (remote_target::remote_hostio_send_command): Adjust.
6688 (remote_target::remote_hostio_pread_vFile): Adjust.
6689 (remote_target::fileio_readlink): Adjust.
6690 (remote_target::fileio_fstat): Adjust.
6691
b5c8f22d
SM
66922021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6693
6694 * remote.c (remote_target::start_remote): Move wait_status to
6695 narrower scope.
6696
e3b2741b
SM
66972021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6698
6699 * remote.c (class remote_target):
6700 <add_current_inferior_and_thread>: Constify parameter.
6701 (stop_reply_extract_thread): Likewise.
6702 (remote_target::get_current_thread): Likewise.
6703 (remote_target::add_current_inferior_and_thread): Likewise.
6704
cecb1912
SM
67052021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6706
6707 * remote.c (class remote_target)
6708 <remote_unpack_thread_info_response,
6709 parse_threadlist_response>: Constify parameter and/or return
6710 value and or local variable.
6711 (stub_unpack_int): Likewise.
6712 (unpack_nibble): Likewise.
6713 (unpack_byte): Likewise.
6714 (unpack_int): Likewise.
6715 (unpack_string): Likewise.
6716 (unpack_threadid): Likewise.
6717 (remote_target::remote_unpack_thread_info_response): Likewise.
6718 (remote_target::parse_threadlist_response): Likewise.
6719
5a11fff0
AB
67202021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6721
6722 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6723
17e89137
LS
67242021-01-14 Lancelot Six <lsix@lancelotsix.com>
6725
6726 * MAINTAINERS (Write After Approval): Add myself.
6727
58eadc4b
BE
67282021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6729
6730 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6731 because is_trivially_default_constructible was first implemented with
6732 gcc-5.
6733
5fae2a2c
TV
67342021-01-14 Tom de Vries <tdevries@suse.de>
6735
6736 PR breakpoints/27151
6737 * objfiles.h (in_plt_section): Handle .plt.sec.
6738
8f66807b
AB
67392021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6740
6741 PR gdb/26819
6742 * remote.c
6743 (remote_target::select_thread_for_ambiguous_stop_reply): New
6744 member function.
6745 (remote_target::process_stop_reply): Call
6746 select_thread_for_ambiguous_stop_reply.
6747
bd497355
SM
67482021-01-13 Simon Marchi <simon.marchi@efficios.com>
6749
6750 * record-btrace.c (class record_btrace_target): Remove.
6751 (record_btrace_target::commit_resume): Remove.
6752 * record-full.c (class record_full_target): Remove.
6753 (record_full_target::commit_resume): Remove.
6754
c9d22089
SM
67552021-01-13 Simon Marchi <simon.marchi@efficios.com>
6756
6757 * remote.c (enum class resume_state): New.
6758 (struct resumed_pending_vcont_info): New.
6759 (struct remote_thread_info) <resume_state, set_not_resumed,
6760 set_resumed_pending_vcont, resumed_pending_vcont_info,
6761 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6762 New.
6763 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6764 (remote_target::remote_add_thread): Adjust.
6765 (remote_target::process_initial_stop_replies): Adjust.
6766 (remote_target::resume): Adjust.
6767 (remote_target::commit_resume): Rely on state in
6768 remote_thread_info and not on tp->executing.
6769 (remote_target::process_stop_reply): Adjust.
6770
d8d1feb4
SM
67712021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6772
6773 * arc-tdep.h (arc_debug_printf): New.
6774 * arc-tdep.c: Use arc_debug_printf.
6775 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6776 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6777 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6778
fb0f5031
SM
67792021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6780
6781 * arc-tdep.h (arc_debug): Change type to bool.
6782 * arc-tdep.c (arc_debug): Change type to bool.
6783 (arc_analyze_prologue): Adjust.
6784 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6785 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6786
5bf7e91b
SM
67872021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6788
6789 * auto-load.c (auto_load_objfile_script_1): Use bool.
6790 (execute_script_contents): Use bool.
6791
db972fce
SM
67922021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6793
6794 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6795 comment here.
6796 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6797 comment to header.
6798 * extension-priv.h (struct extension_language_script_ops)
6799 <auto_load_enabled>: Return bool.
6800 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6801 comment here.
6802 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6803 comment to header.
6804 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6805 move comment here.
6806 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6807 move comment to header.
6808 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6809 move comment here.
6810 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6811 move comment to header.
6812
5e12f48f
SM
68132021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6814
6815 * auto-load.h (file_is_auto_load_safe): Change return type to
6816 bool, move comment here.
6817 * auto-load.c (file_is_auto_load_safe): Change return type and
6818 advice_printed to bool. Move comment to header.
6819
54ca9002
SM
68202021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6821
6822 * jit.c (jit_debug_printf): New, use throughout file.
6823
24a7f1b5
SM
68242021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6825
6826 * infrun.c (normal_stop): Fix indentation.
6827
fe7a351a
SM
68282021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6829
6830 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6831 declarations to ...
6832 * symfile.h: ... here.
6833 * symfile.c: Update doc.
6834
16e9019e
SM
68352021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6836
6837 * target.h (baud_rate, serial_parity): Move declarations...
6838 * serial.h: ... here.
6839 * main.c: Include serial.h.
6840 * serial.c (baud_rate, serial_parity): Update doc.
6841
b2f2ae0d
SM
68422021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6843
6844 * top.c (pre_init_ui_hook): Remove.
6845
5291fe3c
SP
68462021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6847
6848 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6849 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6850 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6851 * features/aarch64-fpu.xml: Add bfloat16 type.
6852
ce38f5ed
AB
68532021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6854
6855 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6856
7c654b71
AB
68572021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6858
6859 * f-exp.y (dot_ops): Rename to...
6860 (fortran_operators): ...this. Add a header comment. Add symbol
6861 based operators.
6862 (yylex): Update to use fortran_operators not dot_ops. Remove
6863 special handling for '**', this is now included in
6864 fortran_operators.
6865
c6185dce
SM
68662021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6867
6868 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6869 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6870 * aarch64-tdep.c: Use aarch64_debug_printf.
6871
eef401dc
SM
68722021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6873
6874 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6875 file.
6876
062eaacb
SM
68772021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6878
6879 * jit.c (jit_debug): Change type to bool.
6880 (_initialize_jit): Adjust.
6881
54585eee
TT
68822021-01-09 Tom Tromey <tom@tromey.com>
6883
6884 PR compile/23672
6885 * compile/compile.c (compile_to_object): Avoid crash when
6886 osabi_triplet_regexp returns NULL.
6887
bc167b6b
TT
68882021-01-09 Tom Tromey <tom@tromey.com>
6889
6890 * tracepoint.h (class collection_list) <append_exp>: Take a
6891 std::string.
6892 * tracepoint.c (collection_list::append_exp): Take a std::string.
6893 (encode_actions_1): Update.
6894
8fc48b79
TT
68952021-01-08 Tom Tromey <tromey@adacore.com>
6896
6897 * parse.c (parse_expression): Add void_context_p parameter. Use
6898 parse_exp_in_context.
6899 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6900 parse_expression.
6901 (print_command, call_command): Update.
6902 * expression.h (parse_expression): Add void_context_p parameter.
6903
3c8c6de2
AB
69042021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6905
6906 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6907 for internalvar components that have a dynamic location.
6908
1940319c
TV
69092021-01-08 Tom de Vries <tdevries@suse.de>
6910
6911 PR gdb/26881
6912 * breakpoint.c (create_exception_master_breakpoint_probe)
6913 (create_exception_master_breakpoint_hook): Factor out
6914 of ...
6915 (create_exception_master_breakpoint): ... here. Only try to install
6916 the master exception breakpoint in objfile.debug using the
6917 _Unwind_DebugHook method, if the install using probes in objfile
6918 failed.
6919
e3436813
AB
69202021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6921
6922 * f-lang.c (fortran_value_subarray): Call value_from_component.
6923
e904f56d
MF
69242021-01-07 Mike Frysinger <vapier@gentoo.org>
6925
6926 * remote-sim.c: Include memory-map.h.
6927 (gdbsim_target): Define memory_map override.
6928 (gdbsim_target::memory_map): Define.
6929
959d6a67
TT
69302021-01-07 Tom Tromey <tromey@adacore.com>
6931
6932 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6933
d4813f10
TT
69342021-01-07 Tom Tromey <tromey@adacore.com>
6935
6936 * ada-lang.c (add_component_interval): Start loop using vector's
6937 updated size.
6938
b49180ac
TT
69392021-01-06 Tom Tromey <tromey@adacore.com>
6940
6941 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6942 Do not cast result.
6943 * valarith.c (fixed_point_binop): Handle multiplication
6944 and division specially.
6945 * valops.c (value_to_gdb_mpq): New function.
6946 (value_cast_to_fixed_point): Use it.
6947
55195361
HD
69482021-01-05 Hannes Domani <ssbssa@yahoo.de>
6949
6950 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6951 Call wnoutrefresh instead of tui_win_info::refresh_window.
6952
1b6d4bb2
HD
69532021-01-05 Hannes Domani <ssbssa@yahoo.de>
6954
6955 * tui/tui-source.c (tui_source_window::show_line_number):
6956 Redraw second space after line number.
6957
b5ff370e
HD
69582021-01-05 Hannes Domani <ssbssa@yahoo.de>
6959
6960 PR tui/26927
6961 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6962 Fix source pad size in prefresh.
6963 (tui_source_window_base::show_source_content): Grow source pad
6964 if necessary.
6965
c68ea49f
MF
69662021-01-04 Mike Frysinger <vapier@gentoo.org>
6967
6968 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6969 (bfin_frame_align): Use align_down.
6970
e4ad960a
TV
69712021-01-04 Tom de Vries <tdevries@suse.de>
6972
6973 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6974 terminators that do not terminate anything.
6975
3ec3145c
SM
69762021-01-04 Simon Marchi <simon.marchi@efficios.com>
6977
6978 * debug.c (debug_print_depth): New.
6979 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6980 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6981 * infrun.c (start_step_over): Use
6982 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6983 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6984 INFRUN_SCOPED_DEBUG_START_END.
6985 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6986
e71daf80
SM
69872021-01-04 Simon Marchi <simon.marchi@efficios.com>
6988
6989 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6990
335709bc
SM
69912021-01-04 Simon Marchi <simon.marchi@efficios.com>
6992
6993 * utils.c (vfprintf_unfiltered): Print timestamp only when
6994 previous debug output ended with a newline.
6995
098caef4
LM
69962021-01-04 Luis Machado <luis.machado@linaro.org>
6997
6998 Update all users of trad_frame_saved_reg to use the new member
6999 functions.
7000
7001 Remote all struct keywords from declarations of trad_frame_saved_reg
7002 types, except on forward declarations.
7003
7004 * aarch64-tdep.c: Update.
7005 * alpha-mdebug-tdep.c: Update.
7006 * alpha-tdep.c: Update.
7007 * arc-tdep.c: Update.
7008 * arm-tdep.c: Update.
7009 * avr-tdep.c: Update.
7010 * cris-tdep.c: Update.
7011 * csky-tdep.c: Update.
7012 * frv-tdep.c: Update.
7013 * hppa-linux-tdep.c: Update.
7014 * hppa-tdep.c: Update.
7015 * hppa-tdep.h: Update.
7016 * lm32-tdep.c: Update.
7017 * m32r-linux-tdep.c: Update.
7018 * m32r-tdep.c: Update.
7019 * m68hc11-tdep.c: Update.
7020 * mips-tdep.c: Update.
7021 * moxie-tdep.c: Update.
7022 * riscv-tdep.c: Update.
7023 * rs6000-tdep.c: Update.
7024 * s390-linux-tdep.c: Update.
7025 * s390-tdep.c: Update.
7026 * score-tdep.c: Update.
7027 * sparc-netbsd-tdep.c: Update.
7028 * sparc-sol2-tdep.c: Update.
7029 * sparc64-fbsd-tdep.c: Update.
7030 * sparc64-netbsd-tdep.c: Update.
7031 * sparc64-obsd-tdep.c: Update.
7032 * sparc64-sol2-tdep.c: Update.
7033 * tilegx-tdep.c: Update.
7034 * v850-tdep.c: Update.
7035 * vax-tdep.c: Update.
7036
7037 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7038 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
7039
7040 * trad-frame.c: Update.
7041 Remove TF_REG_* enum.
7042 (trad_frame_alloc_saved_regs): Add a static assertion to check for
7043 a trivially-constructible struct.
7044 (trad_frame_reset_saved_regs): Adjust to use member function.
7045 (trad_frame_value_p): Likewise.
7046 (trad_frame_addr_p): Likewise.
7047 (trad_frame_realreg_p): Likewise.
7048 (trad_frame_value_bytes_p): Likewise.
7049 (trad_frame_set_value): Likewise.
7050 (trad_frame_set_realreg): Likewise.
7051 (trad_frame_set_addr): Likewise.
7052 (trad_frame_set_unknown): Likewise.
7053 (trad_frame_set_value_bytes): Likewise.
7054 (trad_frame_get_prev_register): Likewise.
7055 * trad-frame.h: Update.
7056 (trad_frame_saved_reg_kind): New enum.
7057 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7058 <m_kind, m_reg>: New member fields.
7059 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7060 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7061 <is_addr, is_unknown, is_value_bytes>: New member functions.
7062
9898e882
SM
70632021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
7064
7065 * target-float.c: Fix typos.
7066
b66b4e65
HD
70672021-01-02 Hannes Domani <ssbssa@yahoo.de>
7068
7069 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7070
b5b5650a
JB
70712021-01-01 Joel Brobecker <brobecker@adacore.com>
7072
7073 * gdbarch.sh: Update copyright year range.
7074
3666a048
JB
70752021-01-01 Joel Brobecker <brobecker@adacore.com>
7076
7077 Update copyright year range in copyright header of all GDB files.
7078
ff7e39b6
JB
70792021-01-01 Joel Brobecker <brobecker@adacore.com>
7080
7081 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7082 to the list of directories to update.
7083
2b47c078
JB
70842021-01-01 Joel Brobecker <brobecker@adacore.com>
7085
7086 * top.c (print_gdb_version): Update copyright year.
7087
9e5e03df 70882021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 7089
476923f1 7090 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 7091
476923f1 7092For older changes see ChangeLog-2020.
c906108c
SS
7093\f
7094Local Variables:
7095mode: change-log
7096left-margin: 8
7097fill-column: 74
7098version-control: never
57da7796 7099coding: utf-8
c906108c 7100End: