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