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