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