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