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