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