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