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