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