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