Commit | Line | Data |
---|---|---|
e758e19c TT |
1 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
2 | ||
3 | * windows-nat.c (windows_continue): Use matching_pending_stop and | |
4 | continue_last_debug_event. | |
5 | * nat/windows-nat.h (matching_pending_stop) | |
6 | (continue_last_debug_event): Declare. | |
7 | * nat/windows-nat.c (DEBUG_EVENTS): New define. | |
8 | (matching_pending_stop, continue_last_debug_event): New | |
9 | functions. | |
10 | ||
8d30e395 TT |
11 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
12 | ||
13 | * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c. | |
14 | (handle_exception_result): Move to nat/windows-nat.h. | |
15 | (DEBUG_EXCEPTION_SIMPLE): Remove. | |
16 | (windows_nat::handle_ms_vc_exception): New function. | |
17 | (handle_exception): Move to nat/windows-nat.c. | |
18 | (get_windows_debug_event): Update. | |
19 | (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to | |
20 | nat/windows-nat.c. | |
21 | * nat/windows-nat.h (handle_ms_vc_exception): Declare. | |
22 | (handle_exception_result): Move from windows-nat.c. | |
23 | (handle_exception): Declare. | |
24 | * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception) | |
25 | (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from | |
26 | windows-nat.c. | |
27 | ||
29de418d TT |
28 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
29 | ||
30 | * windows-nat.c (exception_count, event_count): Remove. | |
31 | (handle_exception, get_windows_debug_event) | |
32 | (do_initial_windows_stuff): Update. | |
33 | ||
a816ba18 TT |
34 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
35 | ||
36 | * windows-nat.c (windows_nat::handle_load_dll) | |
37 | (windows_nat::handle_unload_dll): Rename. No longer static. | |
38 | * nat/windows-nat.h (handle_load_dll, handle_unload_dll): | |
39 | Declare. | |
40 | ||
a00caa12 TT |
41 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
42 | ||
43 | * complaints.h (stop_whining): Declare at top-level. | |
44 | (complaint): Don't declare stop_whining. | |
45 | ||
d41b524f TT |
46 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
47 | ||
48 | * windows-nat.c (windows_nat::handle_output_debug_string): | |
49 | Rename. No longer static. | |
50 | * nat/windows-nat.h (handle_output_debug_string): Declare. | |
51 | ||
3c76026d TT |
52 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
53 | ||
54 | * windows-nat.c (current_process_handle, current_process_id) | |
55 | (main_thread_id, last_sig, current_event, last_wait_event) | |
56 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
57 | (struct pending_stop, siginfo_er): Move to nat/windows-nat.c. | |
58 | (display_selectors, fake_create_process) | |
59 | (get_windows_debug_event): Update. | |
60 | * nat/windows-nat.h (current_process_handle, current_process_id) | |
61 | (main_thread_id, last_sig, current_event, last_wait_event) | |
62 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
63 | (struct pending_stop, siginfo_er): Move from windows-nat.c. | |
64 | * nat/windows-nat.c (current_process_handle, current_process_id) | |
65 | (main_thread_id, last_sig, current_event, last_wait_event) | |
66 | (current_windows_thread, desired_stop_thread_id, pending_stops) | |
67 | (siginfo_er): New globals. Move from windows-nat.c. | |
68 | ||
9d8679cc TT |
69 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
70 | ||
71 | * windows-nat.c (get_image_name): Move to nat/windows-nat.c. | |
72 | (handle_load_dll): Update. | |
73 | * nat/windows-nat.c (get_image_name): Move from windows-nat.c. | |
74 | ||
28688adf TT |
75 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
76 | ||
77 | * windows-nat.c (enum thread_disposition_type): Move to | |
78 | nat/windows-nat.h. | |
79 | (windows_nat::thread_rec): Rename from thread_rec. No longer | |
80 | static. | |
81 | (windows_add_thread, windows_nat_target::fetch_registers) | |
82 | (windows_nat_target::store_registers, handle_exception) | |
83 | (windows_nat_target::resume, get_windows_debug_event) | |
84 | (windows_nat_target::get_tib_address) | |
85 | (windows_nat_target::thread_name) | |
86 | (windows_nat_target::thread_alive): Update. | |
87 | * nat/windows-nat.h (enum thread_disposition_type): Move from | |
88 | windows-nat.c. | |
89 | (thread_rec): Declare. | |
90 | ||
4834dad0 TT |
91 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
92 | ||
93 | * windows-nat.c: Add "using namespace". | |
94 | * nat/windows-nat.h: Wrap contents in windows_nat namespace. | |
95 | * nat/windows-nat.c: Wrap contents in windows_nat namespace. | |
96 | ||
65bafd5b TT |
97 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
98 | ||
99 | * nat/windows-nat.h (struct windows_thread_info): Declare | |
100 | destructor. | |
101 | * nat/windows-nat.c (~windows_thread_info): New. | |
102 | ||
0a4afda3 TT |
103 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
104 | ||
105 | PR gdb/22992 | |
106 | * windows-nat.c (current_event): Update comment. | |
107 | (last_wait_event, desired_stop_thread_id): New globals. | |
108 | (struct pending_stop): New. | |
109 | (pending_stops): New global. | |
110 | (windows_nat_target) <stopped_by_sw_breakpoint> | |
111 | <supports_stopped_by_sw_breakpoint>: New methods. | |
112 | (windows_fetch_one_register): Add assertions. Adjust PC. | |
113 | (windows_continue): Handle pending stops. Suspend other threads | |
114 | when stepping. Use last_wait_event | |
115 | (wait_for_debug_event): New function. | |
116 | (get_windows_debug_event): Use wait_for_debug_event. Handle | |
117 | pending stops. Queue spurious stops. | |
118 | (windows_nat_target::wait): Set stopped_at_software_breakpoint. | |
119 | (windows_nat_target::kill): Use wait_for_debug_event. | |
120 | * nat/windows-nat.h (struct windows_thread_info) | |
121 | <stopped_at_software_breakpoint>: New field. | |
122 | * nat/windows-nat.c (windows_thread_info::resume): Clear | |
123 | stopped_at_software_breakpoint. | |
124 | ||
8e61ebec TT |
125 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
126 | ||
127 | * windows-nat.c (enum thread_disposition_type): New. | |
128 | (thread_rec): Replace "get_context" parameter with "disposition"; | |
129 | change type. | |
130 | (windows_add_thread, windows_nat_target::fetch_registers) | |
131 | (windows_nat_target::store_registers, handle_exception) | |
132 | (windows_nat_target::resume, get_windows_debug_event) | |
133 | (windows_nat_target::get_tib_address) | |
134 | (windows_nat_target::thread_name) | |
135 | (windows_nat_target::thread_alive): Update. | |
136 | ||
98a03287 TT |
137 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
138 | ||
139 | * windows-nat.c (thread_rec): Use windows_thread_info::suspend. | |
140 | (windows_continue): Use windows_continue::resume. | |
141 | * nat/windows-nat.h (struct windows_thread_info) <suspend, | |
142 | resume>: Declare new methods. | |
143 | * nat/windows-nat.c: New file. | |
144 | * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed. | |
145 | ||
7c7411bc TT |
146 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
147 | ||
148 | * windows-nat.c (windows_add_thread, windows_delete_thread) | |
149 | (windows_nat_target::fetch_registers) | |
150 | (windows_nat_target::store_registers, fake_create_process) | |
151 | (windows_nat_target::resume, windows_nat_target::resume) | |
152 | (get_windows_debug_event, windows_nat_target::wait) | |
153 | (windows_nat_target::pid_to_str) | |
154 | (windows_nat_target::get_tib_address) | |
155 | (windows_nat_target::get_ada_task_ptid) | |
156 | (windows_nat_target::thread_name) | |
157 | (windows_nat_target::thread_alive): Use lwp, not tid. | |
158 | ||
2950fdf7 TT |
159 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
160 | ||
161 | * windows-nat.c (handle_exception) | |
162 | (windows_nat_target::thread_name): Update. | |
163 | * nat/windows-nat.h (windows_thread_info): Remove destructor. | |
164 | <name>: Now unique_xmalloc_ptr. | |
165 | ||
62fe396b TT |
166 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
167 | ||
168 | * windows-nat.c (thread_rec) | |
169 | (windows_nat_target::fetch_registers): Update. | |
170 | * nat/windows-nat.h (struct windows_thread_info) <suspended>: | |
171 | Update comment. | |
172 | <debug_registers_changed, reload_context>: Now bool. | |
173 | ||
e9534bd2 TT |
174 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
175 | ||
176 | * windows-nat.c (windows_add_thread): Use new. | |
177 | (windows_init_thread_list, windows_delete_thread): Use delete. | |
178 | (get_windows_debug_event): Update. | |
179 | * nat/windows-nat.h (struct windows_thread_info): Add constructor, | |
180 | destructor, and initializers. | |
181 | ||
ae1f8880 TT |
182 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
183 | ||
184 | * windows-nat.c (struct windows_thread_info): Remove. | |
185 | * nat/windows-nat.h: New file. | |
186 | ||
55a1e039 TT |
187 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
188 | ||
189 | * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id". | |
190 | (thread_rec, windows_add_thread, windows_delete_thread) | |
191 | (windows_continue): Update. | |
192 | ||
93366324 TT |
193 | 2020-04-08 Tom Tromey <tromey@adacore.com> |
194 | ||
195 | * windows-nat.c (struct windows_thread_info): Remove typedef. | |
196 | (thread_head): Remove. | |
197 | (thread_list): New global. | |
198 | (thread_rec, windows_add_thread, windows_init_thread_list) | |
199 | (windows_delete_thread, windows_continue): Update. | |
200 | ||
0f2265e2 SM |
201 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
202 | ||
203 | * windows-tdep.h (windows_init_abi): Add comment. | |
204 | (cygwin_init_abi): New declaration. | |
205 | * windows-tdep.c: Split signal enumeration in two, one for | |
206 | Windows and one for Cygwin. | |
207 | (windows_gdb_signal_to_target): Only deal with signal of the | |
208 | Windows OS ABI. | |
209 | (cygwin_gdb_signal_to_target): New function. | |
210 | (windows_init_abi): Rename to windows_init_abi_common, don't set | |
211 | gdb_signal_to_target gdbarch method. Add new new function with | |
212 | this name. | |
213 | (cygwin_init_abi): New function. | |
214 | * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add | |
215 | comment. Don't call windows_init_abi. | |
216 | (amd64_windows_init_abi): Add comment, call windows_init_abi. | |
217 | (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi. | |
218 | * i386-windows-tdep.c (i386_windows_init_abi): Rename to | |
219 | i386_windows_init_abi_common, don't call windows_init_abi. Add | |
220 | a new function of this name. | |
221 | (i386_cygwin_init_abi): New function. | |
222 | (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to | |
223 | OS ABI Cygwin. | |
224 | ||
3810f182 SM |
225 | 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca> |
226 | ||
227 | * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile | |
228 | parameter.c. | |
229 | (dwarf2_read_gdb_index): Update. | |
230 | ||
063f8e80 KR |
231 | 2020-04-07 Kamil Rytarowski <n54@gmx.com> |
232 | ||
233 | * nbsd-tdep.c: Include "objfiles.h". | |
234 | (nbsd_skip_solib_resolver): New. | |
235 | (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver(). | |
236 | ||
85a9510c | 237 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
238 | ||
239 | * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_ | |
240 | addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair | |
241 | with DW_LLE_base_addressx are being emitted in DWARFv5. | |
242 | Add the newly added kind DW_LOC_OFFSET_PAIR also. | |
243 | The length of location description is an unsigned ULEB integer in DWARFv5 instead of | |
244 | unsigned integer. | |
245 | ||
9fc3eaae | 246 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
247 | ||
248 | * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR. | |
249 | (dwarf2_find_location_expression): Call the function decode_debug_loclists_ | |
250 | addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair | |
251 | with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*. | |
252 | Add applicable base address if the entry is DW_LLE_offset_pair from DWO. | |
253 | (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of | |
254 | DEBUG_LOC_START_END in case of DW_LLE_offset_pair. | |
255 | ||
256 | ||
41144253 | 257 | 2020-04-07 Nitika Achra <Nitika.Achra@amd.com> |
258 | ||
259 | * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function. | |
260 | (read_loclist_index): New function definition. | |
261 | (lookup_loclist_base): New function definition. | |
262 | (read_loclist_header): New function definition. | |
263 | (dwarf2_cu): Add loclist_base and loclist_header field. | |
264 | (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section. | |
265 | (read_full_die_1): Read the value of DW_AT_loclists_base. | |
266 | (read_attribute_reprocess): Handle DW_FORM_loclistx. | |
267 | (read_attribute_value): Handle DW_FORM_loclistx. | |
268 | (skip_one_die): Handle DW_FORM_loclistx. | |
269 | (loclist_header): New structure declaration. | |
270 | * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx. | |
271 | ||
9f4e76a4 SM |
272 | 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca> |
273 | ||
274 | * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters | |
275 | constructor. Remove `addr` parameter from other constructor and | |
276 | add `per_cu` parameter. | |
277 | * dwarf2/read.c (create_partial_symtab): Update. | |
278 | ||
25c11aca TV |
279 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
280 | ||
281 | PR symtab/25796 | |
282 | * dwarf2/read.c (can_have_DW_AT_const_value_p): New function. | |
283 | (partial_die_info::fixup): Inherit has_const_value. | |
284 | ||
5707e24b TV |
285 | 2020-04-07 Tom de Vries <tdevries@suse.de> |
286 | ||
287 | * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK | |
288 | symbols without address. | |
289 | ||
05f00e22 KR |
290 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
291 | ||
292 | * nbsd-nat.h (struct thread_info): Add forward declaration. | |
293 | (nbsd_nat_target::thread_alive): Add. | |
294 | (nbsd_nat_target::thread_name): Likewise. | |
295 | (nbsd_nat_target::update_thread_list): Likewise. | |
296 | (update_thread_list::post_attach): Likewise. | |
297 | (post_attach::pid_to_str): Likewise. | |
298 | * nbsd-nat.c: Include "gdbthread.h" and "inferior.h". | |
299 | (nbsd_thread_lister): Add. | |
300 | (nbsd_nat_target::thread_alive): Likewise. | |
301 | (nbsd_nat_target::thread_name): Likewise. | |
302 | (nbsd_add_threads): Likewise. | |
303 | (update_thread_list::post_attach): Likewise. | |
304 | (nbsd_nat_target::update_thread_list): Likewise. | |
305 | (post_attach::pid_to_str): Likewise. | |
306 | ||
6ee448cc TT |
307 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
308 | ||
309 | * ada-valprint.c (print_variant_part): Extract the variant field. | |
310 | (print_field_values): Use the field as the outer value when | |
311 | recursing. | |
312 | ||
dea34e8c TT |
313 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
314 | ||
315 | * sh-nbsd-tdep.c: Include nbsd-tdep.h. | |
316 | * ppc-nbsd-tdep.c: Include nbsd-tdep.h. | |
317 | * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";". | |
318 | * arm-nbsd-tdep.c: Include nbsd-tdep.h. | |
319 | * hppa-nbsd-tdep.c: Include nbsd-tdep.h. | |
320 | ||
93689ce9 TT |
321 | 2020-04-06 Tom Tromey <tromey@adacore.com> |
322 | ||
323 | * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle | |
324 | TYPE_CODE_ERROR. | |
325 | ||
79743962 KR |
326 | 2020-04-06 Kamil Rytarowski <n54@gmx.com> |
327 | ||
328 | * nbsd-tdep.c: Include "gdbarch.h". | |
329 | Define enum with NetBSD signal numbers. | |
330 | (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New. | |
331 | * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi(). | |
332 | * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise. | |
333 | * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise. | |
334 | * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise. | |
335 | * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise. | |
336 | * mips-nbsd-tdep.c (nbsd_init_abi): Likewise. | |
337 | * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise. | |
338 | * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise. | |
339 | * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise. | |
340 | * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise. | |
341 | * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise. | |
342 | ||
9e7c9a03 HD |
343 | 2020-04-03 Hannes Domani <ssbssa@yahoo.de> |
344 | ||
345 | PR gdb/25325 | |
346 | * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes. | |
347 | ||
d9e49b61 TT |
348 | 2020-04-03 Tom Tromey <tromey@adacore.com> |
349 | ||
350 | * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>: | |
351 | Read constant block. | |
352 | ||
e0fc5c3f SM |
353 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
354 | ||
355 | * gdb_bfd.h: Include gdbsupport/byte-vector.h. | |
356 | (gdb_bfd_get_full_section_contents): New declaration. | |
357 | * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function. | |
358 | * windows-tdep.c (is_linked_with_cygwin_dll): Use | |
359 | gdb_bfd_get_full_section_contents. | |
360 | ||
e2ff18a0 SM |
361 | 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca> |
362 | ||
363 | * exec.c (build_section_table): Replace internal_error with | |
364 | gdb_assert. | |
365 | (section_table_xfer_memory_partial): Likewise. | |
366 | * mdebugread.c (parse_partial_symbols): Likewise. | |
367 | * psymtab.c (lookup_partial_symbol): Likewise. | |
368 | * utils.c (wrap_here): Likewise. | |
369 | ||
0830d301 TT |
370 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
371 | ||
372 | * f-lang.c (build_fortran_types): Use arch_type to initialize | |
373 | builtin_complex_s32 in the TYPE_CODE_ERROR case. | |
374 | ||
e7da7f8f TT |
375 | 2020-04-02 Tom Tromey <tromey@adacore.com> |
376 | ||
377 | * dwarf2/read.c (partial_die_info::read): Do not create a vector | |
378 | of attributes. | |
379 | ||
c90d28ac AB |
380 | 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com> |
381 | Bernd Edlinger <bernd.edlinger@hotmail.de> | |
382 | Tom Tromey <tromey@adacore.com> | |
383 | ||
384 | * buildsym.c (buildsym_compunit::record_line): Remove | |
385 | deduplication code. | |
386 | ||
1aa98955 TV |
387 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
388 | ||
389 | PR ada/24671 | |
390 | * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow. | |
391 | ||
d3214198 TV |
392 | 2020-04-02 Tom de Vries <tdevries@suse.de> |
393 | ||
394 | * dwarf2/read.c (dwarf2_gdb_index_functions, | |
395 | dwarf2_debug_names_functions): Init lookup_global_symbol_language with | |
396 | NULL. | |
397 | * psymtab.c (psym_lookup_global_symbol_language): New function. | |
398 | (psym_functions): Init psym_lookup_global_symbol_language with | |
399 | psym_lookup_global_symbol_language. | |
400 | * symfile-debug.c (debug_sym_quick_functions): Init | |
401 | lookup_global_symbol_language with NULL. | |
402 | * symfile.c (set_initial_language): Remove fixme comment. | |
403 | * symfile.h (struct quick_symbol_functions): Add | |
404 | lookup_global_symbol_language. | |
405 | * symtab.c (find_quick_global_symbol_language): New function. | |
406 | (find_main_name): Use find_quick_global_symbol_language. | |
407 | ||
2836752f SM |
408 | 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca> |
409 | ||
410 | * windows-tdep.c (is_linked_with_cygwin_dll): Fix style. | |
411 | ||
64dc2d4b BE |
412 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
413 | ||
414 | * buildsym.c (record_line): Fix undefined behavior and preserve | |
415 | lines at eof. | |
416 | ||
bbe3dc41 BE |
417 | 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de> |
418 | ||
419 | * buildsym.c (record_line): Fix the resizing condition. | |
420 | ||
6b4a335b TT |
421 | 2020-04-01 Tom Tromey <tom@tromey.com> |
422 | ||
423 | * value.h (value_literal_complex): Add comment. | |
424 | * valops.c (value_literal_complex): Refer to value.h. | |
425 | ||
3638a098 TT |
426 | 2020-04-01 Tom Tromey <tom@tromey.com> |
427 | ||
428 | * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens. | |
429 | (scalar_type): New rule, from typebase. | |
430 | (typebase): Use scalar_type. Recognize complex types. | |
431 | (field_name): Handle FLOAT_KEYWORD. | |
432 | (ident_tokens): Add _Complex and __complex__. | |
433 | ||
c34e8714 TT |
434 | 2020-04-01 Tom Tromey <tom@tromey.com> |
435 | ||
436 | PR exp/25299: | |
437 | * valarith.c (promotion_type, complex_binop): New functions. | |
438 | (scalar_binop): Handle complex numbers. Use promotion_type. | |
439 | (value_pos, value_neg, value_complement): Handle complex numbers. | |
440 | ||
fa649bb7 TT |
441 | 2020-04-01 Tom Tromey <tom@tromey.com> |
442 | ||
443 | * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens. | |
444 | (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules. | |
445 | (parse_number): Handle complex numbers. | |
446 | ||
981c08ce TT |
447 | 2020-04-01 Tom Tromey <tom@tromey.com> |
448 | ||
449 | * c-valprint.c (c_decorations): Change complex suffix to "i". | |
450 | ||
4c99290d TT |
451 | 2020-04-01 Tom Tromey <tom@tromey.com> |
452 | ||
453 | * valprint.c (generic_value_print_complex): Use accessors. | |
454 | * value.h (value_real_part, value_imaginary_part): Declare. | |
455 | * valops.c (value_real_part, value_imaginary_part): New | |
456 | functions. | |
457 | * value.c (creal_internal_fn, cimag_internal_fn): Use accessors. | |
458 | ||
5b930b45 TT |
459 | 2020-04-01 Tom Tromey <tom@tromey.com> |
460 | ||
461 | * stabsread.c (rs6000_builtin_type, read_sun_floating_type) | |
462 | (read_range_type): Update. | |
463 | * mdebugread.c (basic_type): Update. | |
464 | * go-lang.c (build_go_types): Use init_complex_type. | |
465 | * gdbtypes.h (struct main_type) <complex_type>: New member. | |
466 | (init_complex_type): Update. | |
467 | (arch_complex_type): Don't declare. | |
468 | * gdbtypes.c (init_complex_type): Remove "objfile" parameter. | |
469 | Make name if none given. Use alloc_type_copy. Look for cached | |
470 | complex type. | |
471 | (arch_complex_type): Remove. | |
472 | (gdbtypes_post_init): Use init_complex_type. | |
473 | * f-lang.c (build_fortran_types): Use init_complex_type. | |
474 | * dwarf2/read.c (read_base_type): Update. | |
475 | * d-lang.c (build_d_types): Use init_complex_type. | |
476 | * ctfread.c (read_base_type): Update. | |
477 | ||
53cccef1 TBA |
478 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
479 | ||
480 | * infrun.c (stop_all_threads): Update assertion, plus when | |
481 | stopping threads, take into account that we might be trying | |
482 | to stop an all-stop target. | |
483 | (stop_waiting): Call 'stop_all_threads' if there exists a | |
484 | non-stop target. | |
485 | ||
a0714d30 TBA |
486 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
487 | ||
488 | * target.h (exists_non_stop_target): New function declaration. | |
489 | * target.c (exists_non_stop_target): New function. | |
490 | ||
60e22c1e HD |
491 | 2020-04-01 Hannes Domani <ssbssa@yahoo.de> |
492 | ||
493 | PR gdb/24789 | |
494 | * eval.c (is_integral_or_integral_reference): New function. | |
495 | (evaluate_subexp_standard): Allow integer references in | |
496 | pointer arithmetic. | |
497 | ||
e139a727 TBA |
498 | 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
499 | ||
500 | * remote.c (remote_target::remote_parse_stop_reply): Remove the | |
501 | check for no ptid in the stop reply when the target is non-stop. | |
502 | ||
e0802d59 TT |
503 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
504 | ||
505 | * symtab.h (class lookup_name_info) <lookup_name_info>: Change | |
506 | "name" parameter to rvalue reference. Initialize m_name_holder. | |
507 | <lookup_name_info>: New overloads. | |
508 | <name>: Return gdb::string_view. | |
509 | <c_str>: New method. | |
510 | <make_ignore_params>: Update. | |
511 | <search_name_hash>: Update. | |
512 | <language_lookup_name>: Return const char *. | |
513 | <m_name>: Change type. | |
514 | * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info) | |
515 | (demangle_for_lookup_info::demangle_for_lookup_info): Update. | |
516 | (lookup_name_info::match_any): Update. | |
517 | * psymtab.c (match_partial_symbol, lookup_partial_symbol): | |
518 | Update. | |
519 | * minsyms.c (linkage_name_str): Update. | |
520 | * language.c (default_symbol_name_matcher): Update. | |
521 | * dwarf2/read.c (mapped_index_base::find_name_components_bounds): | |
522 | Update. | |
523 | * ada-lang.c (ada_fold_name): Change parameter to string_view. | |
524 | (ada_lookup_name_info::ada_lookup_name_info): Update. | |
525 | (literal_symbol_name_matcher): Update. | |
526 | ||
8c072cb6 TT |
527 | 2020-04-01 Tom Tromey <tromey@adacore.com> |
528 | ||
529 | * psymtab.c (psymtab_search_name): Remove function. | |
530 | (psym_lookup_symbol): Create search name and lookup name here. | |
531 | (lookup_partial_symbol): Remove "name" parameter; add | |
532 | lookup_name. | |
533 | (psym_expand_symtabs_for_function): Update. | |
534 | ||
6f29a534 TT |
535 | 2020-03-31 Joel Jones <joelkevinjones@gmail.com> |
536 | ||
537 | PR tui/25597: | |
538 | * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI. | |
539 | ||
af62665e TT |
540 | 2020-03-31 Tom Tromey <tromey@adacore.com> |
541 | ||
542 | * dwarf2/abbrev.c (abbrev_table::read): Conditionally call | |
543 | memcpy. | |
544 | ||
d1a89da5 NC |
545 | 2020-03-30 Nelson Chu <nelson.chu@sifive.com> |
546 | ||
547 | * features/riscv/32bit-csr.xml: Regenerated. | |
548 | * features/riscv/64bit-csr.xml: Regenerated. | |
549 | ||
d8af9068 TT |
550 | 2020-03-30 Tom Tromey <tromey@adacore.com> |
551 | ||
552 | * ada-valprint.c (print_variant_part): Update. | |
553 | * ada-lang.h (ada_which_variant_applies): Update. | |
554 | * ada-lang.c (ada_which_variant_applies): Remove outer_type and | |
555 | outer_valaddr parameters; replace with "outer" value parameter. | |
556 | (to_fixed_variant_branch_type): Update. | |
557 | ||
227c0bf4 PFC |
558 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
559 | ||
560 | * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and | |
561 | <list>. Remove inclusion of observable.h. | |
562 | (PPC_DEBUG_CURRENT_VERSION): Move up define. | |
563 | (struct arch_lwp_info): New struct. | |
564 | (class ppc_linux_dreg_interface): New class. | |
565 | (struct ppc_linux_process_info): New struct. | |
566 | (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork> | |
567 | <low_new_clone, low_forget_process, low_prepare_to_resume> | |
568 | <copy_thread_dreg_state, mark_thread_stale> | |
569 | <mark_debug_registers_changed, register_hw_breakpoint> | |
570 | <clear_hw_breakpoint, register_wp, clear_wp> | |
571 | <can_use_watchpoint_cond_accel, calculate_dvc, check_condition> | |
572 | <num_memory_accesses, get_trigger_type> | |
573 | <create_watchpoint_request, hwdebug_point_cmp> | |
574 | <init_arch_lwp_info, get_arch_lwp_info> | |
575 | <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as | |
576 | methods. | |
577 | <struct ptid_hash>: New inner struct. | |
578 | <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare | |
579 | members. | |
580 | (saved_dabr_value, hwdebug_info, max_slots_number) | |
581 | (struct hw_break_tuple, struct thread_points, ppc_threads) | |
582 | (have_ptrace_hwdebug_interface) | |
583 | (hwdebug_find_thread_points_by_tid) | |
584 | (hwdebug_insert_point, hwdebug_remove_point): Remove. | |
585 | (ppc_linux_nat_target::can_use_hw_breakpoint): Use | |
586 | m_dreg_interface, remove call to PTRACE_SET_DEBUGREG. | |
587 | (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment, | |
588 | use m_dreg_interface. | |
589 | (hwdebug_point_cmp): Change to... | |
590 | (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use | |
591 | reference arguments instead of pointers. | |
592 | (ppc_linux_nat_target::ranged_break_num_registers): Use | |
593 | m_dreg_interface. | |
594 | (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use | |
595 | m_dreg_interface. Call register_hw_breakpoint. | |
596 | (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use | |
597 | m_dreg_interface. Call clear_hw_breakpoint. | |
598 | (get_trigger_type): Change to... | |
599 | (ppc_linux_nat_target::get_trigger_type): ...this method. Add | |
600 | comment. | |
601 | (ppc_linux_nat_target::insert_mask_watchpoint): Update comment, | |
602 | use m_dreg_interface. Call register_hw_breakpoint. | |
603 | (ppc_linux_nat_target::remove_mask_watchpoint): Update comment, | |
604 | use m_dreg_interface. Call clear_hw_breakpoint. | |
605 | (can_use_watchpoint_cond_accel): Change to... | |
606 | (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this | |
607 | method. Update comment, use m_dreg_interface and | |
608 | m_process_info. | |
609 | (calculate_dvc): Change to... | |
610 | (ppc_linux_nat_target::calculate_dvc): ...this method. Use | |
611 | m_dreg_interface. | |
612 | (num_memory_accesses): Change to... | |
613 | (ppc_linux_nat_target::num_memory_accesses): ...this method. | |
614 | (check_condition): Change to... | |
615 | (ppc_linux_nat_target::check_condition): ...this method. | |
616 | (ppc_linux_nat_target::can_accel_watchpoint_condition): Update | |
617 | comment, use m_dreg_interface. | |
618 | (create_watchpoint_request): Change to... | |
619 | (ppc_linux_nat_target::create_watchpoint_request): ...this | |
620 | method. Use m_dreg_interface. | |
621 | (ppc_linux_nat_target::insert_watchpoint): Add comment, use | |
622 | m_dreg_interface. Call register_hw_breakpoint or register_wp. | |
623 | (ppc_linux_nat_target::remove_watchpoint): Add comment, use | |
624 | m_dreg_interface. Call clear_hw_breakpoint or clear_wp. | |
625 | (ppc_linux_nat_target::low_forget_process) | |
626 | (ppc_linux_nat_target::low_new_fork) | |
627 | (ppc_linux_nat_target::low_new_clone) | |
628 | (ppc_linux_nat_target::low_delete_thread) | |
629 | (ppc_linux_nat_target::low_prepare_to_resume): New methods. | |
630 | (ppc_linux_nat_target::low_new_thread): Remove previous logic, | |
631 | only call mark_thread_stale. | |
632 | (ppc_linux_thread_exit): Remove. | |
633 | (ppc_linux_nat_target::stopped_data_address): Change to... | |
634 | (ppc_linux_nat_target::low_stopped_data_address): This. Add | |
635 | comment, use m_dreg_interface and m_thread_hw_breakpoints. | |
636 | (ppc_linux_nat_target::stopped_by_watchpoint): Change to... | |
637 | (ppc_linux_nat_target::stopped_by_watchpoint): This. Add | |
638 | comment. Call low_stopped_data_address. | |
639 | (ppc_linux_nat_target::watchpoint_addr_within_range): Use | |
640 | m_dreg_interface. | |
641 | (ppc_linux_nat_target::masked_watch_num_registers): Use | |
642 | m_dreg_interface. | |
643 | (ppc_linux_nat_target::copy_thread_dreg_state) | |
644 | (ppc_linux_nat_target::mark_thread_stale) | |
645 | (ppc_linux_nat_target::mark_debug_registers_changed) | |
646 | (ppc_linux_nat_target::register_hw_breakpoint) | |
647 | (ppc_linux_nat_target::clear_hw_breakpoint) | |
648 | (ppc_linux_nat_target::register_wp) | |
649 | (ppc_linux_nat_target::clear_wp) | |
650 | (ppc_linux_nat_target::init_arch_lwp_info) | |
651 | (ppc_linux_nat_target::get_arch_lwp_info): New methods. | |
652 | (_initialize_ppc_linux_nat): Remove observer callback. | |
653 | ||
4db10d8f PFC |
654 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
655 | ||
656 | * ppc-linux-nat.c (ppc_linux_nat_target::store_registers) | |
657 | (ppc_linux_nat_target::auxv_parse) | |
658 | (ppc_linux_nat_target::read_description) | |
659 | (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): | |
660 | Move up. | |
661 | ||
1310c1b0 PFC |
662 | 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com> |
663 | ||
664 | * linux-nat.h (low_new_clone): New method. | |
665 | * linux-nat.c (linux_handle_extended_wait): Call low_new_clone. | |
666 | ||
69b037c3 SM |
667 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
668 | ||
669 | * dbxread.c (dbx_psymtab_to_symtab_1): Rename to... | |
670 | (dbx_expand_psymtab): ... this. | |
671 | (start_psymtab): Update. | |
672 | * mdebugread.c (psymtab_to_symtab_1): Rename to... | |
673 | (mdebug_expand_psymtab): ... this. | |
674 | (parse_partial_symbols): Update. | |
675 | (new_psymtab): Update. | |
676 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to... | |
677 | (xcoff_expand_psymtab): ... this. | |
678 | (xcoff_start_psymtab): Update. | |
679 | ||
48993951 SM |
680 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
681 | ||
682 | * psympriv.h (partial_symtab) <read_dependencies>: Rename to... | |
683 | <expand_dependencies>: ... this. | |
684 | * psymtab.c (partial_symtab::read_dependencies): Rename to... | |
685 | (partial_symtab::expand_dependencies): ... this. | |
686 | * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>: | |
687 | Update. | |
688 | (dwarf2_psymtab::expand_psymtab): Update. | |
689 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
690 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
691 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
692 | ||
3ad83046 SM |
693 | 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca> |
694 | ||
695 | * psympriv.h (discard_psymtab): Remove. | |
696 | * dbxread.c (dbx_end_psymtab): Update. | |
697 | * xcoffread.c (xcoff_end_psymtab): Update. | |
698 | ||
4d1b9ab6 TT |
699 | 2020-03-28 Tom Tromey <tom@tromey.com> |
700 | ||
701 | * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update | |
702 | comment. | |
703 | ||
f1749218 TT |
704 | 2020-03-28 Tom Tromey <tom@tromey.com> |
705 | ||
706 | * dwarf2/read.c (read_attribute_reprocess): Fix formatting. | |
707 | ||
ebea7626 HD |
708 | 2020-03-27 Hannes Domani <ssbssa@yahoo.de> |
709 | ||
710 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
711 | ||
a879b4d5 JB |
712 | 2020-03-26 John Baldwin <jhb@FreeBSD.org> |
713 | ||
714 | * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS. | |
715 | ||
0826b30a TT |
716 | 2020-03-26 Tom Tromey <tom@tromey.com> |
717 | ||
718 | * dwarf2/read.c (handle_data_member_location, dwarf2_add_field) | |
719 | (mark_common_block_symbol_computed, read_tag_string_type) | |
720 | (attr_to_dynamic_prop, read_subrange_type): Update. | |
721 | (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move | |
722 | to be methods on struct attribute. | |
723 | (skip_one_die, process_imported_unit_die, read_namespace_alias) | |
724 | (read_call_site_scope, partial_die_info::read) | |
725 | (partial_die_info::read, lookup_die_type, follow_die_ref): | |
726 | Update. | |
727 | * dwarf2/attribute.c (attribute::get_ref_die_offset): New method, | |
728 | from dwarf2_get_ref_die_offset. | |
729 | (attribute::constant_value): New method, from | |
730 | dwarf2_get_attr_constant_value. | |
731 | * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>: | |
732 | Declare method. | |
733 | <constant_value>: New method. | |
734 | ||
2b2558bf TT |
735 | 2020-03-26 Tom Tromey <tom@tromey.com> |
736 | ||
737 | * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name) | |
738 | (dwarf_attr_name, dwarf_form_name, dwarf_bool_name) | |
739 | (dwarf_type_encoding_name): Move to stringify.c. | |
740 | * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c. | |
741 | * dwarf2/stringify.c: New file. | |
742 | * dwarf2/stringify.h: New file. | |
743 | ||
eeb64781 TT |
744 | 2020-03-26 Tom Tromey <tom@tromey.com> |
745 | ||
746 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: | |
747 | Rewrite. | |
748 | ||
a39fdb41 TT |
749 | 2020-03-26 Tom Tromey <tom@tromey.com> |
750 | ||
751 | * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New | |
752 | methods. | |
753 | * dwarf2/read.c (lookup_addr_base): Move to die.h. | |
754 | (lookup_ranges_base): Likewise. | |
755 | (read_cutu_die_from_dwo, read_full_die_1): Update. | |
756 | ||
436c571c TT |
757 | 2020-03-26 Tom Tromey <tom@tromey.com> |
758 | ||
759 | * dwarf2/read.c (read_import_statement, read_file_scope) | |
760 | (read_type_unit_scope, inherit_abstract_dies, read_func_scope) | |
761 | (read_lexical_block_scope, read_call_site_scope) | |
762 | (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds) | |
763 | (handle_struct_member_die, process_structure_scope) | |
764 | (update_enumeration_type_from_children) | |
765 | (process_enumeration_scope, read_array_type, read_common_block) | |
766 | (read_namespace, read_module, read_subroutine_type): Update. | |
767 | (sibling_die): Remove. | |
768 | ||
052c8bb8 TT |
769 | 2020-03-26 Tom Tromey <tom@tromey.com> |
770 | ||
771 | * dwarf2/read.c (lookup_addr_base, lookup_ranges_base) | |
772 | (build_type_psymtabs_reader, read_structure_type) | |
773 | (read_enumeration_type, read_full_die_1): Update. | |
774 | (dwarf2_attr_no_follow): Move to die.h. | |
775 | * dwarf2/die.h (struct die_info) <attr>: New method. | |
776 | ||
2b24b6e4 TT |
777 | 2020-03-26 Tom Tromey <tom@tromey.com> |
778 | ||
779 | * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove. | |
780 | <base_address>: Now an optional. | |
781 | (dwarf2_find_base_address, dwarf2_rnglists_process) | |
782 | (dwarf2_ranges_process, fill_in_loclist_baton) | |
783 | (dwarf2_symbol_mark_computed): Update. | |
784 | ||
c2d50fd0 TT |
785 | 2020-03-26 Tom Tromey <tom@tromey.com> |
786 | ||
787 | * dwarf2/read.c (struct die_info): Move to die.h. | |
788 | * dwarf2/die.h: New file. | |
789 | ||
0df7ad3a TT |
790 | 2020-03-26 Tom Tromey <tom@tromey.com> |
791 | ||
792 | * dwarf2/line-header.h (dwarf_decode_line_header): Declare. | |
793 | * dwarf2/read.c | |
794 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
795 | Move to line-header.c. | |
796 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
797 | Likewise. | |
798 | (dwarf_decode_line_header): Split into two. | |
799 | * dwarf2/line-header.c | |
800 | (dwarf2_statement_list_fits_in_line_number_section_complaint): | |
801 | Move from read.c. | |
802 | (read_checked_initial_length_and_offset, read_formatted_entries): | |
803 | Likewise. | |
804 | (dwarf_decode_line_header): New function, split from read.c. | |
805 | ||
86c0bb4c TT |
806 | 2020-03-26 Tom Tromey <tom@tromey.com> |
807 | ||
808 | * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>: | |
809 | Declare method. | |
810 | * dwarf2/read.c (read_attribute_value): Update. | |
811 | (dwarf2_per_objfile::read_line_string): Rename from | |
812 | read_indirect_line_string. | |
813 | (read_formatted_entries): Update. | |
814 | ||
2ef46c2f TT |
815 | 2020-03-26 Tom Tromey <tom@tromey.com> |
816 | ||
817 | * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local | |
818 | variable. | |
819 | ||
4f9c1eda TT |
820 | 2020-03-26 Tom Tromey <tom@tromey.com> |
821 | ||
822 | * dwarf2/macro.h (dwarf_decode_macros): Make section parameter | |
823 | const. | |
824 | * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode) | |
825 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section | |
826 | parameter const. | |
827 | ||
5a0e026f TT |
828 | 2020-03-26 Tom Tromey <tom@tromey.com> |
829 | ||
830 | * dwarf2/read.c (dwarf_decode_macros): Make "lh" const. | |
831 | * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter. | |
832 | * dwarf2/macro.c (macro_start_file): Constify "lh" parameter. | |
833 | (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise. | |
834 | ||
8844c11b TT |
835 | 2020-03-26 Tom Tromey <tom@tromey.com> |
836 | ||
837 | * dwarf2/line-header.h (struct line_header) <is_valid_file_index, | |
838 | file_names_size, file_full_name, file_file_name>: Use const. | |
839 | <file_name_at, file_names>: Add const overload. | |
840 | * dwarf2/line-header.c (line_header::file_file_name) | |
841 | (line_header::file_full_name): Update. | |
842 | ||
c90ec28a TT |
843 | 2020-03-26 Tom Tromey <tom@tromey.com> |
844 | ||
845 | * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint) | |
846 | (macro_start_file, consume_improper_spaces) | |
847 | (parse_macro_definition, skip_form_bytes, skip_unknown_opcode) | |
848 | (dwarf_parse_macro_header, dwarf_decode_macro_bytes) | |
849 | (dwarf_decode_macros): Move to macro.c. | |
850 | * dwarf2/macro.c: New file. | |
851 | * dwarf2/macro.h: New file. | |
852 | * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c. | |
853 | ||
4f44ae6c TT |
854 | 2020-03-26 Tom Tromey <tom@tromey.com> |
855 | ||
856 | * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New | |
857 | method. | |
858 | * dwarf2/section.c: New method. From | |
859 | read_indirect_string_at_offset_from. | |
860 | * dwarf2/read.c (mapped_debug_names::namei_to_name): Update. | |
861 | (read_indirect_string_at_offset_from): Move to section.c. | |
862 | (read_indirect_string_at_offset): Rewrite. | |
863 | (read_indirect_line_string_at_offset): Remove. | |
864 | (read_indirect_string, read_indirect_line_string) | |
865 | (dwarf_decode_macro_bytes): Update. | |
866 | ||
a0194fa8 TT |
867 | 2020-03-26 Tom Tromey <tom@tromey.com> |
868 | ||
869 | * dwarf2/section.h (struct dwarf2_section_info) | |
870 | <overload_complaint>: Declare. | |
871 | (dwarf2_section_buffer_overflow_complaint): Don't declare. | |
872 | * dwarf2/section.c (dwarf2_section_info::overflow_complaint): | |
873 | Rename from dwarf2_section_buffer_overflow_complaint. | |
874 | * dwarf2/read.c (skip_one_die, partial_die_info::read) | |
875 | (skip_form_bytes, dwarf_decode_macro_bytes): Update. | |
876 | ||
3d27bbdb TT |
877 | 2020-03-26 Tom Tromey <tom@tromey.com> |
878 | ||
879 | * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint): | |
880 | Declare. | |
881 | * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint): | |
882 | Move from read.c. | |
883 | * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move | |
884 | to section.c. | |
885 | ||
9eac9650 TT |
886 | 2020-03-26 Tom Tromey <tom@tromey.com> |
887 | ||
888 | * dwarf2/read.c (dwarf_decode_macros): Split into two overloads. | |
889 | ||
bf80d710 TT |
890 | 2020-03-26 Tom Tromey <tom@tromey.com> |
891 | ||
892 | * dwarf2/read.c (macro_start_file): Change "cu" parameter to | |
893 | "builder". | |
894 | (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile | |
895 | parameter. | |
896 | (dwarf_decode_macros): Update. | |
897 | ||
0314b390 TT |
898 | 2020-03-26 Tom Tromey <tom@tromey.com> |
899 | ||
900 | * dwarf2/read.c (read_attribute_value): Update. | |
901 | (read_indirect_string_from_dwz): Move to dwz.c; change into | |
902 | method. | |
903 | (dwarf_decode_macro_bytes): Update. | |
904 | * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method. | |
905 | * dwarf2/dwz.c: New file. | |
906 | * Makefile.in (COMMON_SFILES): Add dwz.c. | |
907 | ||
9fda78b6 TT |
908 | 2020-03-26 Tom Tromey <tom@tromey.com> |
909 | ||
910 | * dwarf2/read.h (struct dwz_file): Move to dwz.h. | |
911 | * dwarf2/read.c: Add include. | |
912 | * dwarf2/index-write.c: Add include. | |
913 | * dwarf2/index-cache.c: Add include. | |
914 | * dwarf2/dwz.h: New file. | |
915 | ||
33aa3c10 TT |
916 | 2020-03-25 Tom Tromey <tom@tromey.com> |
917 | ||
918 | * compile/compile-object-load.c (get_out_value_type): Mention | |
919 | correct symbol name in error message. | |
920 | ||
d503b685 HD |
921 | 2020-03-25 Hannes Domani <ssbssa@yahoo.de> |
922 | ||
923 | * windows-nat.c (windows_add_all_dlls): Fix system dll paths. | |
924 | ||
7b1eff95 TV |
925 | 2020-03-25 Tom de Vries <tdevries@suse.de> |
926 | ||
927 | * symtab.h (is_main_symtab_of_compunit_symtab): New function. | |
928 | * symmisc.c (dump_symtab_1): Print user and includes fields. | |
929 | (maintenance_info_symtabs): Same. | |
930 | ||
dd895392 AB |
931 | 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com> |
932 | ||
933 | PR gdb/25534 | |
934 | * riscv-tdep.c (riscv_arg_info::c_offset): Update comment. | |
935 | (riscv_regcache_cooked_write): New function. | |
936 | (riscv_push_dummy_call): Use new function. | |
937 | (riscv_return_value): Likewise. | |
938 | ||
5ab2fbf1 SM |
939 | 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca> |
940 | ||
941 | * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int. | |
942 | * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise. | |
943 | * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise. | |
944 | * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise. | |
945 | * infrun.c (follow_fork): Likewise. | |
946 | (follow_fork_inferior): Likewise. | |
947 | * linux-nat.c (linux_nat_target::follow_fork): Likewise. | |
948 | * linux-nat.h (class linux_nat_target): Likewise. | |
949 | * remote.c (class remote_target) <follow_fork>: Likewise. | |
950 | (remote_target::follow_fork): Likewise. | |
951 | * target-delegates.c: Re-generate. | |
952 | * target.c (default_follow_fork): Likewise. | |
953 | (target_follow_fork): Likewise. | |
954 | * target.h (struct target_ops) <follow_fork>: Likewise. | |
955 | (target_follow_fork): Likewise. | |
956 | ||
a64fafb5 TV |
957 | 2020-03-24 Tom de Vries <tdevries@suse.de> |
958 | ||
959 | * psymtab.c (maintenance_info_psymtabs): Print user field. | |
960 | ||
fe26d3a3 TT |
961 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
962 | ||
963 | * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack" | |
964 | const. | |
965 | * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack" | |
966 | const. | |
967 | ||
c884cc46 SM |
968 | 2020-03-20 Simon Marchi <simon.marchi@efficios.com> |
969 | ||
970 | * ptrace.m4: Don't check for ptrace declaration. | |
971 | * config.in: Re-generate. | |
972 | * configure: Re-generate. | |
973 | * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is | |
974 | not defined. | |
975 | ||
1ff700c2 KR |
976 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
977 | ||
978 | * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to | |
979 | `PTRACE_TYPE_RET'. | |
980 | * i386-bsd-nat.c (gdb_ptrace): Likewise. | |
981 | * sparc-nat.c (gdb_ptrace): Likewise. | |
982 | * x86-bsd-nat.c (gdb_ptrace): Likewise. | |
983 | ||
f7d4f0b1 TT |
984 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
985 | ||
986 | * c-exp.y (lex_one_token): Fix assert. | |
987 | ||
f67210ff TT |
988 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
989 | ||
990 | * ada-tasks.c (read_atcb): Use smaller length in strncpy call. | |
991 | * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in | |
992 | strncpy call. | |
993 | ||
1773be9e TT |
994 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
995 | ||
996 | * symmisc.c (maintenance_print_one_line_table): Use ui_out. | |
997 | ||
70304be9 TT |
998 | 2020-03-20 Tom Tromey <tromey@adacore.com> |
999 | ||
1000 | * ada-valprint.c (print_variant_part): Remove parameters; switch | |
1001 | to value-based API. | |
1002 | (print_field_values): Likewise. | |
1003 | (ada_val_print_struct_union): Likewise. | |
1004 | (ada_value_print_1): Update. | |
1005 | ||
9faa006d KR |
1006 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
1007 | ||
1008 | * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from | |
1009 | nbsd_nat_target instead of inf_ptrace_target. | |
1010 | * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
1011 | nbsd_nat_target. | |
1012 | ||
4a90f062 KR |
1013 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> |
1014 | ||
1015 | * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
1016 | it to the ptrace call. | |
1017 | * (store_registers): Likewise. | |
1018 | ||
1019 | 2020-03-20 Kamil Rytarowski <n54@gmx.com> | |
c7da12c7 KR |
1020 | |
1021 | * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
1022 | it to the ptrace call. | |
1023 | * (store_registers): Likewise. | |
1024 | ||
2d07da27 LM |
1025 | 2020-03-19 Luis Machado <luis.machado@linaro.org> |
1026 | ||
1027 | * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not | |
1028 | valid, fetch vg value from ptrace. | |
1029 | ||
f09db380 KR |
1030 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
1031 | * inf-ptrace.h: Disable get_ptrace_pid on NetBSD. | |
1032 | * inf-ptrace.c: Likewise. | |
1033 | * (gdb_ptrace): Add. | |
1034 | * (inf_ptrace_target::resume): Update. | |
1035 | * (inf_ptrace_target::xfer_partial): Likewise. | |
1036 | * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'. | |
1037 | * (inf_ptrace_peek_poke): Update. | |
1038 | ||
fcc7376e KR |
1039 | 2020-03-19 Kamil Rytarowski <n54@gmx.com> |
1040 | ||
1041 | * x86-bsd-nat.c (gdb_ptrace): New. | |
1042 | * (x86bsd_dr_set): Add new argument `ptid'. | |
1043 | * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control, | |
1044 | x86bsd_dr_set_addr): Update. | |
1045 | ||
cada5fc9 AB |
1046 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
1047 | ||
1048 | * remote.c (remote_target::process_stop_reply): Handle events for | |
1049 | all threads differently. | |
1050 | ||
19a2740f AB |
1051 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
1052 | ||
1053 | * completer.c (completion_tracker::remove_completion): Define new | |
1054 | function. | |
1055 | * completer.h (completion_tracker::remove_completion): Declare new | |
1056 | function. | |
1057 | * symtab.c (completion_list_add_symbol): Remove aliasing msymbols | |
1058 | when adding a C++ function symbol. | |
1059 | ||
724fd9ba AB |
1060 | 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com> |
1061 | ||
1062 | * completer.c (completion_tracker::completion_hash_entry): Define | |
1063 | new class. | |
1064 | (advance_to_filename_complete_word_point): Call | |
1065 | recompute_lowest_common_denominator. | |
1066 | (completion_tracker::completion_tracker): Call discard_completions | |
1067 | to setup the hash table. | |
1068 | (completion_tracker::discard_completions): Allow for being called | |
1069 | from the constructor, pass new equal function, and element deleter | |
1070 | when constructing the hash table. Initialise new class member | |
1071 | variables. | |
1072 | (completion_tracker::maybe_add_completion): Remove use of | |
1073 | m_entries_vec, and store more information into m_entries_hash. | |
1074 | (completion_tracker::recompute_lcd_visitor): New function, most | |
1075 | content taken from... | |
1076 | (completion_tracker::recompute_lowest_common_denominator): | |
1077 | ...here, this now just visits each item in the hash calling the | |
1078 | above visitor. | |
1079 | (completion_tracker::build_completion_result): Remove use of | |
1080 | m_entries_vec, call recompute_lowest_common_denominator. | |
1081 | * completer.h (completion_tracker::have_completions): Remove use | |
1082 | of m_entries_vec. | |
1083 | (completion_tracker::completion_hash_entry): Declare new class. | |
1084 | (completion_tracker::recompute_lowest_common_denominator): Change | |
1085 | function signature. | |
1086 | (completion_tracker::recompute_lcd_visitor): Declare new function. | |
1087 | (completion_tracker::m_entries_vec): Delete. | |
1088 | (completion_tracker::m_entries_hash): Initialize to NULL. | |
1089 | (completion_tracker::m_lowest_common_denominator_valid): New | |
1090 | member variable. | |
1091 | (completion_tracker::m_lowest_common_denominator_max_length): New | |
1092 | member variable. | |
1093 | ||
5a82b8a1 KR |
1094 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
1095 | ||
1096 | * regformats/regdef.h: Put reg in gdb namespace. | |
1097 | ||
fb516a69 KR |
1098 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
1099 | ||
1100 | * i386-bsd-nat.c (gdb_ptrace): New. | |
1101 | * (i386bsd_fetch_inferior_registers, | |
1102 | i386bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
1103 | * (i386bsd_fetch_inferior_registers, | |
1104 | i386bsd_store_inferior_registers) Use gdb_ptrace. | |
1105 | ||
1c0aa1fb KR |
1106 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
1107 | ||
1108 | * amd64-bsd-nat.c (gdb_ptrace): New. | |
1109 | * (amd64bsd_fetch_inferior_registers, | |
1110 | amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t. | |
1111 | * (amd64bsd_fetch_inferior_registers, | |
1112 | amd64bsd_store_inferior_registers) Use gdb_ptrace. | |
1113 | ||
5ccd2fb7 KR |
1114 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
1115 | ||
1116 | * user-regs.c (user_reg::read): Rename to... | |
1117 | (user_reg::xread): ...this. | |
1118 | * (append_user_reg): Rename argument `read' to `xread'. | |
1119 | * (user_reg_add_builtin): Likewise. | |
1120 | * (user_reg_add): Likewise. | |
1121 | * (value_of_user_reg): Likewise. | |
1122 | ||
2108a63a KR |
1123 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
1124 | ||
1125 | * sparc-nat.c (gdb_ptrace): New. | |
1126 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
1127 | (sparc_store_inferior_registers) Remove obsolete comment. | |
1128 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
1129 | (sparc_store_inferior_registers) Switch from pid_t to ptid_t. | |
1130 | * sparc-nat.c (sparc_fetch_inferior_registers) | |
1131 | (sparc_store_inferior_registers) Use gdb_ptrace. | |
1132 | ||
a225c9a8 KR |
1133 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
1134 | ||
1135 | * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass | |
1136 | it to the ptrace call. | |
1137 | * sh-nbsd-nat.c (store_registers): Likewise. | |
1138 | ||
98097623 KR |
1139 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
1140 | ||
1141 | * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from | |
1142 | nbsd_nat_target instead of inf_ptrace_target. | |
1143 | * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
1144 | nbsd_nat_target. | |
1145 | ||
9e38d619 KR |
1146 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
1147 | ||
1148 | * amd64-bsd-nat.c: Include amd64-bsd-nat.h". | |
1149 | ||
a2ecbe9f KR |
1150 | 2020-03-17 Kamil Rytarowski <n54@gmx.com> |
1151 | ||
1152 | * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and | |
1153 | <sys/sysctl.h>. | |
1154 | * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. | |
1155 | ||
58990295 TV |
1156 | 2020-03-17 Tom de Vries <tdevries@suse.de> |
1157 | ||
1158 | PR gdb/23710 | |
1159 | * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang | |
1160 | fields. | |
1161 | * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang | |
1162 | fields. | |
1163 | (process_imported_unit_die): Skip import of c++ CUs. | |
1164 | ||
771dd3a8 TT |
1165 | 2020-03-16 Tom Tromey <tom@tromey.com> |
1166 | ||
1167 | * p-valprint.c (pascal_object_print_value): Initialize | |
1168 | base_value. | |
1169 | ||
817a7585 AK |
1170 | 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com> |
1171 | Shahab Vahedi <shahab@synopsys.com> | |
1172 | ||
1173 | * Makefile.in: Add arch/arc.o | |
1174 | * configure.tgt: Likewise. | |
1175 | * arc-tdep.c (arc_tdesc_init): Use arc_read_description. | |
1176 | (_initialize_arc_tdep): Don't initialize old target descriptions. | |
1177 | (arc_read_description): New function to cache target descriptions. | |
1178 | * arc-tdep.h (arc_read_description): Add proto type. | |
1179 | * arch/arc.c: New file. | |
1180 | * arch/arc.h: Likewise. | |
1181 | * features/Makefile: Replace old target descriptions with new. | |
1182 | * features/arc-arcompact.c: Remove. | |
1183 | * features/arc-arcompact.xml: Likewise. | |
1184 | * features/arc-v2.c: Likewise | |
1185 | * features/arc-v2.xml: Likewise | |
1186 | * features/arc/aux-arcompact.xml: New file. | |
1187 | * features/arc/aux-v2.xml: Likewise. | |
1188 | * features/arc/core-arcompact.xml: Likewise. | |
1189 | * features/arc/core-v2.xml: Likewise. | |
1190 | * features/arc/aux-arcompact.c: Generate. | |
1191 | * features/arc/aux-v2.c: Likewise. | |
1192 | * features/arc/core-arcompact.c: Likewise. | |
1193 | * features/arc/core-v2.c: Likewise. | |
1194 | * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features. | |
1195 | ||
67430cd0 TT |
1196 | 2020-03-16 Tom Tromey <tromey@adacore.com> |
1197 | ||
1198 | PR gdb/25663: | |
1199 | * dwarf2/read.c (dwarf2_name): Strip leading namespaces after | |
1200 | putting value into bcache. | |
1201 | ||
30efb6c7 SM |
1202 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
1203 | ||
1204 | PR gdb/21500 | |
1205 | * amd64-windows-tdep.c (amd64_windows_init_abi): Rename | |
1206 | to... | |
1207 | (amd64_windows_init_abi_common): ... this. Don't set size of | |
1208 | long type. | |
1209 | (amd64_windows_init_abi): New function. | |
1210 | (amd64_cygwin_init_abi): New function. | |
1211 | (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for | |
1212 | the Cygwin OS ABI. | |
1213 | * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify | |
1214 | comment. | |
1215 | ||
8db52437 SM |
1216 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
1217 | ||
1218 | * windows-tdep.h (is_linked_with_cygwin_dll): New declaration. | |
1219 | * windows-tdep.c (CYGWIN_DLL_NAME): New. | |
1220 | (pe_import_directory_entry): New struct type. | |
1221 | (is_linked_with_cygwin_dll): New function. | |
1222 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select | |
1223 | GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL. | |
1224 | * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise. | |
1225 | ||
5982a56a SM |
1226 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
1227 | ||
1228 | * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except | |
1229 | i386_cygwin_core_osabi_sniffer. | |
1230 | ||
7a1998df SM |
1231 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
1232 | ||
1233 | * i386-cygwin-tdep.c: Rename to... | |
1234 | * i386-windows-tdep.c: ... this. | |
1235 | * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to | |
1236 | i386-windows-tdep.c. | |
1237 | * configure.tgt: Likewise. | |
1238 | ||
053205cc SM |
1239 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
1240 | ||
1241 | * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS. | |
1242 | * osabi.c (gdb_osabi_names): Add "Windows". | |
1243 | * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return | |
1244 | GDB_OSABI_WINDOWS when the binary's target is "pei-i386". | |
1245 | (i386_cygwin_core_osabi_sniffer): New function, extracted from | |
1246 | i386_cygwin_osabi_sniffer. | |
1247 | (_initialize_i386_cygwin_tdep): Register OS ABI | |
1248 | GDB_OSABI_WINDOWS for i386. | |
1249 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return | |
1250 | GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64". | |
1251 | (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS | |
1252 | for x86-64. | |
1253 | * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI | |
1254 | when the target matches '*-*-mingw*'. | |
1255 | ||
fe4b2ee6 SM |
1256 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
1257 | ||
1258 | * defs.h (enum gdb_osabi): Move to... | |
1259 | * osabi.h (enum gdb_osabi): ... here. | |
1260 | * gdbarch.sh: Include osabi.h in gdbarch.h. | |
1261 | * gdbarch.h: Re-generate. | |
1262 | ||
cb9b645d SM |
1263 | 2020-03-16 Simon Marchi <simon.marchi@efficios.com> |
1264 | ||
1265 | * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New | |
1266 | function. | |
1267 | (_initialize_amd64_windows_tdep): Register osabi sniffer. | |
1268 | ||
3293bbaf TT |
1269 | 2020-03-14 Tom Tromey <tom@tromey.com> |
1270 | ||
1271 | * c-typeprint.c (cp_type_print_method_args): Print "__restrict__" | |
1272 | for C++. | |
1273 | (c_type_print_modifier): Likewise. Add "language" parameter. | |
1274 | (c_type_print_varspec_prefix, c_type_print_base_struct_union) | |
1275 | (c_type_print_base_1): Update. | |
1276 | * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New | |
1277 | constants. | |
1278 | * type-stack.c (type_stack::insert): Handle tp_atomic and | |
1279 | tp_restrict. | |
1280 | (type_stack::follow_type_instance_flags): Likewise. | |
1281 | (type_stack::follow_types): Likewise. Merge type-following code. | |
1282 | * c-exp.y (RESTRICT, ATOMIC): New tokens. | |
1283 | (space_identifier, cv_with_space_id) | |
1284 | (const_or_volatile_or_space_identifier_noopt) | |
1285 | (const_or_volatile_or_space_identifier): Remove. | |
1286 | (single_qualifier, qualifier_seq_noopt, qualifier_seq): New | |
1287 | rules. | |
1288 | (ptr_operator, typebase): Update. | |
1289 | (enum token_flag) <FLAG_C>: New constant. | |
1290 | (ident_tokens): Add "restrict", "__restrict__", "__restrict", and | |
1291 | "_Atomic". | |
1292 | (lex_one_token): Handle FLAG_C. | |
1293 | ||
154151a6 KR |
1294 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1295 | ||
1296 | * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass | |
1297 | it to the ptrace call. | |
1298 | * m68k-bsd-nat.c (store_registers): Likewise. | |
1299 | ||
bc107784 KR |
1300 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1301 | ||
1302 | * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to | |
1303 | gdb_byte *. | |
1304 | * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise. | |
1305 | * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise. | |
1306 | * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *. | |
1307 | ||
01a80117 KR |
1308 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1309 | ||
1310 | * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from | |
1311 | nbsd_nat_target instead of inf_ptrace_target. | |
1312 | * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
1313 | nbsd_nat_target. | |
1314 | ||
f90280ca KR |
1315 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1316 | ||
1317 | * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
1318 | register_t. | |
1319 | ||
6def66f1 KR |
1320 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1321 | ||
1322 | * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass | |
1323 | it to the ptrace call. | |
1324 | * alpha-bsd-nat.c (store_registers): Likewise. | |
1325 | ||
66eaca97 KR |
1326 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1327 | ||
1328 | * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from | |
1329 | includes. | |
1330 | * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove. | |
1331 | * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset, | |
1332 | fill_fpregset): Likewise. | |
1333 | ||
4fed520b KR |
1334 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1335 | ||
1336 | * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from | |
1337 | nbsd_nat_target instead of inf_ptrace_target. | |
1338 | * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
1339 | nbsd_nat_target. | |
1340 | ||
2190cf06 KR |
1341 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1342 | ||
1343 | * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
1344 | register_t. | |
1345 | ||
75c56d3d KR |
1346 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1347 | ||
1348 | * arm-nbsd-nat.c (fetch_register): New variable lwp and pass | |
1349 | it to the ptrace call. | |
1350 | * arm-nbsd-nat.c (fetch_fp_register): Likewise. | |
1351 | * arm-nbsd-nat.c (fetch_fp_regs): Likewise. | |
1352 | * arm-nbsd-nat.c (store_register): Likewise. | |
1353 | * arm-nbsd-nat.c (store_regs): Likewise. | |
1354 | * arm-nbsd-nat.c (store_fp_register): Likewise. | |
1355 | * arm-nbsd-nat.c (store_fp_regs): Likewise. | |
1356 | ||
6018d381 KR |
1357 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1358 | ||
1359 | * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from | |
1360 | nbsd_nat_target instead of inf_ptrace_target. | |
1361 | * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using | |
1362 | nbsd_nat_target. | |
1363 | ||
013f99f0 KR |
1364 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1365 | ||
1366 | * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass | |
1367 | it to the ptrace call. | |
1368 | * x86-bsd-nat.c (x86bsd_dr_set): Likewise. | |
1369 | ||
12753073 KR |
1370 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1371 | ||
6227b330 KR |
1372 | * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass |
1373 | it to the ptrace call. | |
1374 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise. | |
1375 | ||
1376 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> | |
1377 | ||
1378 | * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const | |
1379 | gdb_byte *. | |
12753073 KR |
1380 | * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *. |
1381 | ||
d5be5fa4 KR |
1382 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1383 | ||
1384 | * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target | |
1385 | instead of inf_ptrace_target. | |
1386 | * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using | |
1387 | nbsd_nat_target. | |
1388 | ||
8110f842 KR |
1389 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1390 | ||
1391 | * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
1392 | register_t. | |
1393 | ||
52feded7 KR |
1394 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1395 | ||
1396 | * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
1397 | register_t. | |
1398 | ||
25567eee KR |
1399 | 2020-03-14 Kamil Rytarowski <n54@gmx.com> |
1400 | ||
1401 | * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of | |
1402 | register_t. | |
1403 | ||
426a9c18 TT |
1404 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1405 | ||
1406 | * value.h (val_print): Don't declare. | |
1407 | * valprint.h (val_print_array_elements) | |
1408 | (val_print_scalar_formatted, generic_val_print): Don't declare. | |
1409 | * valprint.c (generic_val_print_array): Take a struct value. | |
1410 | (generic_val_print_ptr, generic_val_print_memberptr) | |
1411 | (generic_val_print_bool, generic_val_print_int) | |
1412 | (generic_val_print_char, generic_val_print_complex) | |
1413 | (generic_val_print): Remove. | |
1414 | (generic_value_print): Update. | |
1415 | (do_val_print): Remove unused parameters. Don't call | |
1416 | la_val_print. | |
1417 | (val_print): Remove. | |
1418 | (common_val_print): Update. Don't call value_check_printable. | |
1419 | (val_print_scalar_formatted, val_print_array_elements): Remove. | |
1420 | * rust-lang.c (rust_val_print): Remove. | |
1421 | (rust_language_defn): Update. | |
1422 | * p-valprint.c (pascal_val_print): Remove. | |
1423 | (pascal_value_print_inner): Update. | |
1424 | (pascal_object_print_val_fields, pascal_object_print_val): | |
1425 | Remove. | |
1426 | (pascal_object_print_static_field): Update. | |
1427 | * p-lang.h (pascal_val_print): Don't declare. | |
1428 | * p-lang.c (pascal_language_defn): Update. | |
1429 | * opencl-lang.c (opencl_language_defn): Update. | |
1430 | * objc-lang.c (objc_language_defn): Update. | |
1431 | * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove. | |
1432 | * m2-lang.h (m2_val_print): Don't declare. | |
1433 | * m2-lang.c (m2_language_defn): Update. | |
1434 | * language.h (struct language_defn) <la_val_print>: Remove. | |
1435 | * language.c (unk_lang_value_print_inner): Rename. Change | |
1436 | argument types. | |
1437 | (unknown_language_defn, auto_language_defn): Update. | |
1438 | * go-valprint.c (go_val_print): Remove. | |
1439 | * go-lang.h (go_val_print): Don't declare. | |
1440 | * go-lang.c (go_language_defn): Update. | |
1441 | * f-valprint.c (f_val_print): Remove. | |
1442 | * f-lang.h (f_value_print): Don't declare. | |
1443 | * f-lang.c (f_language_defn): Update. | |
1444 | * d-valprint.c (d_val_print): Remove. | |
1445 | * d-lang.h (d_value_print): Don't declare. | |
1446 | * d-lang.c (d_language_defn): Update. | |
1447 | * cp-valprint.c (cp_print_value_fields) | |
1448 | (cp_print_value_fields_rtti, cp_print_value): Remove. | |
1449 | (cp_print_static_field): Update. | |
1450 | * c-valprint.c (c_val_print_array, c_val_print_ptr) | |
1451 | (c_val_print_struct, c_val_print_union, c_val_print_int) | |
1452 | (c_val_print_memberptr, c_val_print): Remove. | |
1453 | * c-lang.h (c_val_print_array, cp_print_value_fields) | |
1454 | (cp_print_value_fields_rtti): Don't declare. | |
1455 | * c-lang.c (c_language_defn, cplus_language_defn) | |
1456 | (asm_language_defn, minimal_language_defn): Update. | |
1457 | * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove. | |
1458 | (ada_val_print_enum): Take a struct value. | |
1459 | (ada_val_print_flt, ada_val_print_array, ada_val_print_1) | |
1460 | (ada_val_print): Remove. | |
1461 | (ada_value_print_1): Update. | |
1462 | (printable_val_type): Remove. | |
1463 | * ada-lang.h (ada_val_print): Don't declare. | |
1464 | * ada-lang.c (ada_language_defn): Update. | |
1465 | ||
42331a1e TT |
1466 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1467 | ||
1468 | * valprint.c (do_val_print): Update. | |
1469 | * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take | |
1470 | a struct value. | |
1471 | (value_to_value_object_no_release): Declare. | |
1472 | * python/py-value.c (value_to_value_object_no_release): New | |
1473 | function. | |
1474 | * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a | |
1475 | struct value. | |
1476 | * guile/scm-value.c (vlscm_scm_from_value_no_release): New | |
1477 | function. | |
1478 | * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take | |
1479 | a struct value. | |
1480 | * guile/guile-internal.h (vlscm_scm_from_value_no_release): | |
1481 | Declare. | |
1482 | (gdbscm_apply_val_pretty_printer): Take a struct value. | |
1483 | * extension.h (apply_ext_lang_val_pretty_printer): Take a struct | |
1484 | value. | |
1485 | * extension.c (apply_ext_lang_val_pretty_printer): Take a struct | |
1486 | value. | |
1487 | * extension-priv.h (struct extension_language_ops) | |
1488 | <apply_val_pretty_printer>: Take a struct value. | |
1489 | * cp-valprint.c (cp_print_value): Create a struct value. | |
1490 | (cp_print_value): Update. | |
1491 | ||
3a916a97 TT |
1492 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1493 | ||
1494 | * ada-valprint.c (print_field_values): Call common_val_print. | |
1495 | ||
b59eac37 TT |
1496 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1497 | ||
1498 | * ada-valprint.c (val_print_packed_array_elements): Remove | |
1499 | bitoffset and val parameters. Call common_val_print. | |
1500 | (ada_val_print_string): Remove offset, address, and original_value | |
1501 | parameters. | |
1502 | (ada_val_print_array): Update. | |
1503 | (ada_value_print_array): New function. | |
1504 | (ada_value_print_1): Call it. | |
1505 | ||
03371129 TT |
1506 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1507 | ||
1508 | * ada-valprint.c (ada_value_print): Use common_val_print. | |
1509 | ||
2e088f8b TT |
1510 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1511 | ||
1512 | * ada-valprint.c (ada_val_print_ref): Use common_val_print. | |
1513 | ||
39ef85a8 TT |
1514 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1515 | ||
1516 | * ada-valprint.c (ada_value_print_num): New function. | |
1517 | (ada_value_print_1): Use it. | |
1518 | ||
b9fa6e07 TT |
1519 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1520 | ||
1521 | * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite. | |
1522 | ||
416595d6 TT |
1523 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1524 | ||
1525 | * ada-valprint.c (ada_value_print_ptr): New function. | |
1526 | (ada_value_print_1): Use it. | |
1527 | ||
5b5e15ec TT |
1528 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1529 | ||
1530 | * ada-valprint.c (ada_val_print_gnat_array): Take a struct value; | |
1531 | call common_val_print. | |
1532 | (ada_val_print_1): Update. | |
1533 | (ada_value_print_1): New function. | |
1534 | (ada_value_print_inner): Rewrite. | |
1535 | ||
fbf54e75 TT |
1536 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1537 | ||
1538 | * cp-valprint.c (cp_print_value_fields): Update. | |
1539 | (cp_print_value): New function. | |
1540 | ||
64b653ca TT |
1541 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1542 | ||
1543 | * m2-valprint.c (m2_value_print_inner): Use | |
1544 | cp_print_value_fields. | |
1545 | * cp-valprint.c (cp_print_value_fields): New function. | |
1546 | * c-valprint.c (c_value_print_struct): New function. | |
1547 | (c_value_print_inner): Use c_value_print_struct. | |
1548 | * c-lang.h (cp_print_value_fields): Declare. | |
1549 | ||
6999f067 TT |
1550 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1551 | ||
1552 | * c-valprint.c (c_value_print_array): New function. | |
1553 | (c_value_print_inner): Use it. | |
1554 | ||
ce80b8bd TT |
1555 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1556 | ||
1557 | * c-valprint.c (c_value_print_memberptr): New function. | |
1558 | (c_value_print_inner): Use it. | |
1559 | ||
2faac269 TT |
1560 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1561 | ||
1562 | * c-valprint.c (c_value_print_int): New function. | |
1563 | (c_value_print_inner): Use it. | |
1564 | ||
da3e2c29 TT |
1565 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1566 | ||
1567 | * c-valprint.c (c_value_print_ptr): New function. | |
1568 | (c_value_print_inner): Use it. | |
1569 | ||
50836231 TT |
1570 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1571 | ||
1572 | * c-valprint.c (c_value_print_inner): Rewrite. | |
1573 | ||
4f412b6e TT |
1574 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1575 | ||
1576 | * valprint.c (generic_value_print_complex): New function. | |
1577 | (generic_value_print): Use it. | |
1578 | ||
f5354008 TT |
1579 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1580 | ||
1581 | * valprint.c (generic_val_print_float): Don't call | |
1582 | val_print_scalar_formatted. | |
1583 | (generic_val_print, generic_value_print): Update. | |
1584 | ||
3eec3b05 TT |
1585 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1586 | ||
1587 | * valprint.c (generic_value_print_char): New function | |
1588 | (generic_value_print): Use it. | |
1589 | ||
fdddfccb TT |
1590 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1591 | ||
1592 | * valprint.c (generic_value_print_int): New function. | |
1593 | (generic_value_print): Use it. | |
1594 | ||
6dde7521 TT |
1595 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1596 | ||
1597 | * valprint.c (generic_value_print_bool): New function. | |
1598 | (generic_value_print): Use it. | |
1599 | ||
4112d2e6 TT |
1600 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1601 | ||
1602 | * valprint.c (generic_val_print_func): Simplify. | |
1603 | (generic_val_print, generic_value_print): Update. | |
1604 | ||
65786af6 TT |
1605 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1606 | ||
1607 | * valprint.c (generic_val_print_flags): Remove. | |
1608 | (generic_val_print, generic_value_print): Update. | |
1609 | (val_print_type_code_flags): Add original_value parameter. | |
1610 | ||
40f3ce18 TT |
1611 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1612 | ||
1613 | * valprint.c (generic_val_print): Update. | |
1614 | (generic_value_print): Update. | |
1615 | * valprint.c (generic_val_print_enum): Don't call | |
1616 | val_print_scalar_formatted. | |
1617 | ||
2a5b130b TT |
1618 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1619 | ||
1620 | * valprint.c (generic_value_print): Call generic_value_print_ptr. | |
1621 | * valprint.c (generic_value_print_ptr): New function. | |
1622 | ||
abc66ce9 TT |
1623 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1624 | ||
1625 | * valprint.c (generic_value_print): Rewrite. | |
1626 | ||
07a32858 TT |
1627 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1628 | ||
1629 | * p-valprint.c (pascal_object_print_value_fields) | |
1630 | (pascal_object_print_value): New functions. | |
1631 | ||
64d64d3a TT |
1632 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1633 | ||
1634 | * p-valprint.c (pascal_value_print_inner): Rewrite. | |
1635 | ||
6a95a1f5 TT |
1636 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1637 | ||
1638 | * f-valprint.c (f_value_print_innner): Rewrite. | |
1639 | ||
59fcdac6 TT |
1640 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1641 | ||
1642 | * m2-valprint.c (m2_print_unbounded_array): New overload. | |
1643 | (m2_print_unbounded_array): Update. | |
1644 | (m2_print_array_contents): Take a struct value. | |
1645 | (m2_value_print_inner): Rewrite. | |
1646 | ||
d133c3e1 TT |
1647 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1648 | ||
1649 | * d-valprint.c (dynamic_array_type): Call d_value_print_inner. | |
1650 | (d_value_print_inner): New function. | |
1651 | * d-lang.h (d_value_print_inner): Declare. | |
1652 | * d-lang.c (d_language_defn): Use d_value_print_inner. | |
1653 | ||
23b0f06b TT |
1654 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1655 | ||
1656 | * go-valprint.c (go_value_print_inner): New function. | |
1657 | * go-lang.h (go_value_print_inner): Declare. | |
1658 | * go-lang.c (go_language_defn): Use go_value_print_inner. | |
1659 | ||
5f56f7cb TT |
1660 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1661 | ||
1662 | * rust-lang.c (val_print_struct, rust_print_enum): Use the value | |
1663 | API. | |
1664 | (rust_val_print): Rewrite. | |
1665 | (rust_value_print_inner): New function, from rust_val_print. | |
1666 | (rust_language_defn): Use rust_value_print_inner. | |
1667 | ||
26792ee0 TT |
1668 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1669 | ||
1670 | * ada-valprint.c (ada_value_print_inner): New function. | |
1671 | * ada-lang.h (ada_value_print_inner): Declare. | |
1672 | * ada-lang.c (ada_language_defn): Use ada_value_print_inner. | |
1673 | ||
24051bbe TT |
1674 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1675 | ||
1676 | * f-valprint.c (f_value_print_innner): New function. | |
1677 | * f-lang.h (f_value_print_innner): Declare. | |
1678 | * f-lang.c (f_language_defn): Use f_value_print_innner. | |
1679 | ||
c0941be6 TT |
1680 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1681 | ||
1682 | * p-valprint.c (pascal_value_print_inner): New function. | |
1683 | * p-lang.h (pascal_value_print_inner): Declare. | |
1684 | * p-lang.c (pascal_language_defn): Use pascal_value_print_inner. | |
1685 | ||
62c4663d TT |
1686 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1687 | ||
1688 | * m2-valprint.c (m2_value_print_inner): New function. | |
1689 | * m2-lang.h (m2_value_print_inner): Declare. | |
1690 | * m2-lang.c (m2_language_defn): Use m2_value_print_inner. | |
1691 | ||
62182190 TT |
1692 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1693 | ||
1694 | * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. | |
1695 | * objc-lang.c (objc_language_defn): Use c_value_print_inner. | |
1696 | * c-valprint.c (c_value_print_inner): New function. | |
1697 | * c-lang.h (c_value_print_inner): Declare. | |
1698 | * c-lang.c (c_language_defn, cplus_language_defn) | |
1699 | (asm_language_defn, minimal_language_defn): Use | |
1700 | c_value_print_inner. | |
1701 | ||
1e592a8a TT |
1702 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1703 | ||
1704 | * p-valprint.c (pascal_object_print_value_fields): Now static. | |
1705 | * p-lang.h (pascal_object_print_value_fields): Don't declare. | |
1706 | ||
7fe471e9 TT |
1707 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1708 | ||
1709 | * c-valprint.c (c_val_print_array): Simplify. | |
1710 | ||
d121c6ce TT |
1711 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1712 | ||
1713 | * valprint.c (value_print_array_elements): New function. | |
1714 | * valprint.h (value_print_array_elements): Declare. | |
1715 | ||
4dba70ee TT |
1716 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1717 | ||
1718 | * printcmd.c (print_formatted): Use value_print_scalar_formatted. | |
1719 | * mips-tdep.c (mips_print_register): Use | |
1720 | value_print_scalar_formatted. | |
1721 | ||
4f9ae810 TT |
1722 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1723 | ||
1724 | * valprint.h (value_print_scalar_formatted): Declare. | |
1725 | * valprint.c (value_print_scalar_formatted): New function. | |
1726 | ||
156bfec9 TT |
1727 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1728 | ||
1729 | * valprint.h (generic_value_print): Declare. | |
1730 | * valprint.c (generic_value_print): New function. | |
1731 | ||
2b4e573d TT |
1732 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1733 | ||
1734 | * valprint.c (do_val_print): Call la_value_print_inner, if | |
1735 | available. | |
1736 | * rust-lang.c (rust_language_defn): Update. | |
1737 | * p-lang.c (pascal_language_defn): Update. | |
1738 | * opencl-lang.c (opencl_language_defn): Update. | |
1739 | * objc-lang.c (objc_language_defn): Update. | |
1740 | * m2-lang.c (m2_language_defn): Update. | |
1741 | * language.h (struct language_defn) <la_value_print_inner>: New | |
1742 | member. | |
1743 | * language.c (unknown_language_defn, auto_language_defn): Update. | |
1744 | * go-lang.c (go_language_defn): Update. | |
1745 | * f-lang.c (f_language_defn): Update. | |
1746 | * d-lang.c (d_language_defn): Update. | |
1747 | * c-lang.c (c_language_defn, cplus_language_defn) | |
1748 | (asm_language_defn, minimal_language_defn): Update. | |
1749 | * ada-lang.c (ada_language_defn): Update. | |
1750 | ||
a1f6a07c TT |
1751 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1752 | ||
1753 | * c-valprint.c (c_value_print): Use common_val_print. | |
1754 | ||
410cf315 TT |
1755 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1756 | ||
1757 | * cp-valprint.c (cp_print_static_field): Use common_val_print. | |
1758 | ||
72a45c93 TT |
1759 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1760 | ||
1761 | * f-valprint.c (f77_print_array_1, f_val_print): Use | |
1762 | common_val_print. | |
1763 | ||
040f66bd TT |
1764 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1765 | ||
1766 | * riscv-tdep.c (riscv_print_one_register_info): Use | |
1767 | common_val_print. | |
1768 | ||
a6e05a6c TT |
1769 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1770 | ||
1771 | * mi/mi-main.c (output_register): Use common_val_print. | |
1772 | ||
3444c526 TT |
1773 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1774 | ||
1775 | * infcmd.c (default_print_one_register_info): Use | |
1776 | common_val_print. | |
1777 | ||
c2a44efe TT |
1778 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1779 | ||
1780 | * valprint.h (common_val_print_checked): Declare. | |
1781 | * valprint.c (common_val_print_checked): New function. | |
1782 | * stack.c (print_frame_arg): Use common_val_print_checked. | |
1783 | ||
b0c26e99 TT |
1784 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1785 | ||
1786 | * valprint.c (do_val_print): New function, from val_print. | |
1787 | (val_print): Use do_val_print. | |
1788 | (common_val_print): Use do_val_print. | |
1789 | ||
ce3acbe9 TT |
1790 | 2020-03-13 Tom Tromey <tom@tromey.com> |
1791 | ||
1792 | * valprint.c (value_print): Use scoped_value_mark. | |
1793 | ||
96c7f873 TV |
1794 | 2020-03-13 Tom de Vries <tdevries@suse.de> |
1795 | ||
1796 | PR symtab/25646 | |
1797 | * psymtab.c (partial_symtab::partial_symtab): Don't set | |
1798 | globals_offset and statics_offset. Push element onto | |
1799 | current_global_psymbols and current_static_psymbols stacks. | |
1800 | (concat): New function. | |
1801 | (end_psymtab_common): Set globals_offset and statics_offset. Pop | |
1802 | element from current_global_psymbols and current_static_psymbols | |
1803 | stacks. Concat popped elements to global_psymbols and | |
1804 | static_symbols. | |
1805 | (add_psymbol_to_list): Use current_global_psymbols and | |
1806 | current_static_psymbols stacks. | |
1807 | * psymtab.h (class psymtab_storage): Add current_global_psymbols and | |
1808 | current_static_psymbols fields. | |
1809 | ||
6ba0a321 CB |
1810 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
1811 | ||
1812 | * corelow.c (sniff_core_bfd): Remove. | |
1813 | (class core_target) <m_core_vec>: Remove. | |
1814 | (core_target::core_target): Update. | |
1815 | (core_file_fns): Remove. | |
1816 | (deprecated_add_core_fns): Remove. | |
1817 | (default_core_sniffer): Remove. | |
1818 | (sniff_core_bfd): Remove. | |
1819 | (default_check_format): Remove. | |
1820 | (gdb_check_format): Remove. | |
1821 | (core_target_open): Update. | |
1822 | (core_target::get_core_register_section): Update. | |
1823 | (get_core_registers_cb): Update. | |
1824 | (core_target::fetch_registers): Update. | |
1825 | * gdbcore.h (struct core_fns): Remove. | |
1826 | (deprecated_add_core_fns): Remove. | |
1827 | (default_core_sniffer): Remove. | |
1828 | (default_check_format): Remove. | |
1829 | ||
227031b2 TT |
1830 | 2020-03-12 Tom Tromey <tom@tromey.com> |
1831 | ||
1832 | * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a | |
1833 | CORE_ADDR. | |
1834 | (struct arm_exidx_entry) <addr>: Now a CORE_ADDR. | |
1835 | ||
53807e9f TT |
1836 | 2020-03-12 Tom Tromey <tom@tromey.com> |
1837 | ||
1838 | * remote.c (remote_target::download_tracepoint) | |
1839 | (remote_target::enable_tracepoint) | |
1840 | (remote_target::disable_tracepoint): Use phex, not sprintf_vma. | |
1841 | * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not | |
1842 | sprintf_vma. | |
1843 | ||
64f25102 TT |
1844 | 2020-03-12 Tom Tromey <tom@tromey.com> |
1845 | ||
1846 | * symfile-mem.c: Update CORE_ADDR size assert. | |
1847 | ||
272cd5a3 SM |
1848 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
1849 | ||
1850 | * selftest.m4: Move to gdbsupport/. | |
1851 | * acinclude.m4: Update path to selftest.m4. | |
1852 | ||
74cd3f9d SM |
1853 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
1854 | ||
1855 | * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to... | |
1856 | (SELFTESTS_SRCS): ... this. Add disasm-selftests.c, | |
1857 | gdbarch-selfselftests.c and selftest-arch.c. | |
1858 | (SUBDIR_UNITTESTS_OBS): Rename to... | |
1859 | (SELFTESTS_OBS): ... this. | |
1860 | (COMMON_SFILES): Remove disasm-selftests.c and | |
1861 | gdbarch-selftests.c. | |
1862 | * configure.ac: Don't add selftest-arch.{c,o} to | |
1863 | CONFIG_{SRCS,OBS}. | |
1864 | * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST | |
1865 | preprocessor conditions. | |
1866 | ||
db6878ac SM |
1867 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
1868 | ||
1869 | * configure.ac: Don't source bfd/development.sh. | |
1870 | * selftest.m4: Modify comment. | |
1871 | * configure: Re-generate. | |
1872 | ||
4d696a5c SM |
1873 | 2020-03-12 Simon Marchi <simon.marchi@efficios.com> |
1874 | ||
1875 | * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is | |
1876 | not "true" or "false". | |
1877 | * configure: Re-generate. | |
1878 | ||
8dd8e1c7 CB |
1879 | 2020-03-12 Christian Biesinger <cbiesinger@google.com> |
1880 | ||
1881 | * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file. | |
1882 | * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and | |
1883 | renamed to arm_nbsd_supply_gregset. | |
1884 | (fetch_register): Update to call arm_nbsd_supply_gregset. | |
1885 | (fetch_regs): Remove in favor of fetch_register with a -1 regno. | |
1886 | (arm_netbsd_nat_target::fetch_registers): Update. | |
1887 | (fetch_elfcore_registers): Removed. | |
1888 | (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns. | |
1889 | * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct. | |
1890 | (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to | |
1891 | not require NetBSD system headers. | |
1892 | (arm_nbsd_regset): New struct. | |
1893 | (arm_nbsd_iterate_over_regset_sections): New function. | |
1894 | (arm_netbsd_init_abi_common): Updated to call | |
1895 | set_gdbarch_iterate_over_regset_sections. | |
1896 | * arm-nbsd-tdep.h: New file. | |
1897 | ||
dd69bf7a KB |
1898 | 2020-03-11 Kevin Buettner <kevinb@redhat.com> |
1899 | ||
1900 | * symtab.c (find_pc_sect_line): Add check which prevents infinite | |
1901 | recursion. | |
1902 | ||
a0761e34 SM |
1903 | 2020-03-11 Simon Marchi <simon.marchi@efficios.com> |
1904 | ||
1905 | * configure: Re-generate. | |
1906 | ||
e7a82140 TT |
1907 | 2020-03-11 Tom Tromey <tromey@adacore.com> |
1908 | ||
1909 | * ada-typeprint.c (print_choices): Fix comment. | |
1910 | ||
dcc050c8 AB |
1911 | 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com> |
1912 | ||
1913 | * buildsyms.c (buildsym_compunit::record_line): Avoid accessing | |
1914 | previous item in the list, when the list has no items. | |
1915 | ||
1c33af77 TV |
1916 | 2020-03-11 Tom de Vries <tdevries@suse.de> |
1917 | ||
1918 | * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in | |
1919 | PROP_LOCLIST handling code. | |
1920 | ||
8c95582d AB |
1921 | 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com> |
1922 | ||
1923 | * buildsym-legacy.c (record_line): Pass extra parameter to | |
1924 | record_line. | |
1925 | * buildsym.c (buildsym_compunit::record_line): Take an extra | |
1926 | parameter, reduce duplication in the line table, and record the | |
1927 | is_stmt flag in the line table. | |
1928 | * buildsym.h (buildsym_compunit::record_line): Add extra | |
1929 | parameter. | |
1930 | * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore | |
1931 | non-statement lines. | |
1932 | * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass | |
1933 | this to the symtab builder. | |
1934 | (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1. | |
1935 | (lnp_state_machine::record_line): Pass a suitable is_stmt flag | |
1936 | through to dwarf_record_line_1. | |
1937 | * infrun.c (process_event_stop_test): When stepping, don't stop at | |
1938 | a non-statement instruction, and only refresh the step info when | |
1939 | we land in the middle of a line's range. Also add an extra | |
1940 | comment. | |
1941 | * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt | |
1942 | field. | |
1943 | * record-btrace.c (btrace_find_line_range): Only record lines | |
1944 | marked as is-statement. | |
1945 | * stack.c (frame_show_address): Show the frame address if we are | |
1946 | in a non-statement sal. | |
1947 | * symmisc.c (dump_symtab_1): Print the is_stmt flag. | |
1948 | (maintenance_print_one_line_table): Print a header for the is_stmt | |
1949 | column, and include is_stmt information in the output. | |
1950 | * symtab.c (find_pc_sect_line): Find lines marked as statements in | |
1951 | preference to non-statements. | |
1952 | (find_pcs_for_symtab_line): Prefer is-statement entries. | |
1953 | (find_line_common): Likewise. | |
1954 | * symtab.h (struct linetable_entry): Add is_stmt field. | |
1955 | (struct symtab_and_line): Likewise. | |
1956 | * xcoffread.c (arrange_linetable): Initialise is_stmt field when | |
1957 | arranging the line table. | |
1958 | ||
e4003a34 TV |
1959 | 2020-03-07 Tom de Vries <tdevries@suse.de> |
1960 | ||
1961 | * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder | |
1962 | DIE. | |
1963 | ||
e8932576 TT |
1964 | 2020-03-07 Tom Tromey <tom@tromey.com> |
1965 | ||
1966 | * valops.c (value_literal_complex): Remove obsolete comment. | |
1967 | * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete | |
1968 | comment. | |
1969 | ||
29734269 SM |
1970 | 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca> |
1971 | ||
1972 | * infrun.h: Forward-declare thread_info. | |
1973 | (set_step_info): Add thread_info parameter, add doc. | |
1974 | * infrun.c (set_step_info): Add thread_info parameter, move doc | |
1975 | to header. | |
1976 | * infrun.c (process_event_stop_test): Pass thread to | |
1977 | set_step_info call. | |
1978 | * infcmd.c (set_step_frame): Add thread_info pointer, pass it to | |
1979 | set_step_info. | |
1980 | (prepare_one_step): Add thread_info parameter, pass it to | |
1981 | set_step_frame and prepare_one_step (recursive) call. | |
1982 | (step_1): Pass thread to prepare_one_step call. | |
1983 | (step_command_fsm::should_stop): Pass thread to | |
1984 | prepare_one_step. | |
1985 | (until_next_fsm): Pass thread to set_step_frame call. | |
1986 | (finish_command): Pass thread to set_step_info call. | |
1987 | ||
b7d64b29 HD |
1988 | 2020-03-06 Hannes Domani <ssbssa@yahoo.de> |
1989 | ||
1990 | * windows-tdep.c (windows_solib_create_inferior_hook): | |
1991 | Check if inferior is running. | |
1992 | ||
09f2921c TV |
1993 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
1994 | ||
1995 | * NEWS: Fix "the the". | |
1996 | * ctfread.c: Same. | |
1997 | ||
fd760e79 TV |
1998 | 2020-03-06 Tom de Vries <tdevries@suse.de> |
1999 | ||
2000 | * psymtab.c (psymtab_to_symtab): Don't print "done.". | |
2001 | ||
20ea4a60 AB |
2002 | 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2003 | ||
2004 | * .dir-locals.el: Add a comment referencing the other copies of | |
2005 | this file. | |
2006 | ||
0afbabf0 JB |
2007 | 2020-03-05 John Baldwin <jhb@FreeBSD.org> |
2008 | ||
2009 | * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for | |
2010 | psargs. | |
2011 | ||
842806cb TBA |
2012 | 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
2013 | ||
2014 | * .gitattributes: New file. | |
2015 | ||
be1e3d3e TT |
2016 | 2020-03-04 Tom Tromey <tom@tromey.com> |
2017 | ||
2018 | * symmisc.c (print_symbol_bcache_statistics) | |
2019 | (print_objfile_statistics): Update. | |
2020 | * symfile.c (allocate_symtab): Use intern. | |
2021 | * psymtab.c (partial_symtab::partial_symtab): Use intern. | |
2022 | * objfiles.h (struct objfile_per_bfd_storage) <filename_cache, | |
2023 | macro_cache>: Remove. | |
2024 | <string_cache>: New member. | |
2025 | (struct objfile) <intern>: New methods. | |
2026 | * elfread.c (elf_symtab_read): Use intern. | |
2027 | * dwarf2/read.c (fixup_go_packaging): Intern package name. | |
2028 | (dwarf2_compute_name, dwarf2_physname) | |
2029 | (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern | |
2030 | names. | |
2031 | (guess_partial_die_structure_name): Update. | |
2032 | (partial_die_info::fixup): Intern name. | |
2033 | (dwarf2_canonicalize_name): Change parameter to objfile. Intern | |
2034 | name. | |
2035 | (dwarf2_name): Intern name. Update. | |
2036 | * buildsym.c (buildsym_compunit::get_macro_table): Use | |
2037 | string_cache. | |
2038 | ||
4e7625fd TT |
2039 | 2020-03-04 Tom Tromey <tom@tromey.com> |
2040 | ||
2041 | * jit.c (bfd_open_from_target_memory): Make "target" const. | |
2042 | * corefile.c (gnutarget): Now const. | |
2043 | * gdbcore.h (gnutarget): Now const. | |
2044 | ||
46f9f931 HD |
2045 | 2020-03-04 Hannes Domani <ssbssa@yahoo.de> |
2046 | ||
2047 | * NEWS: Mention support for WOW64 processes. | |
2048 | * amd64-windows-nat.c (amd64_mappings): Rename and remove static. | |
2049 | (amd64_windows_segment_register_p): Remove static. | |
2050 | (_initialize_amd64_windows_nat): Update. | |
2051 | * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o. | |
2052 | * i386-windows-nat.c (context_offset): Update. | |
2053 | (i386_mappings): Rename and remove static. | |
2054 | (i386_windows_segment_register_p): Remove static. | |
2055 | (_initialize_i386_windows_nat): Update. | |
2056 | * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro. | |
2057 | (STATUS_WX86_SINGLE_STEP): New macro. | |
2058 | (EnumProcessModulesEx): New macro. | |
2059 | (Wow64SuspendThread): New macro. | |
2060 | (Wow64GetThreadContext): New macro. | |
2061 | (Wow64SetThreadContext): New macro. | |
2062 | (Wow64GetThreadSelectorEntry): New macro. | |
2063 | (windows_set_context_register_offsets): Add static. | |
2064 | (windows_set_segment_register_p): Likewise. | |
2065 | (windows_add_thread): Adapt for WOW64 processes. | |
2066 | (windows_fetch_one_register): Likewise. | |
2067 | (windows_nat_target::fetch_registers): Likewise. | |
2068 | (windows_store_one_register): Likewise. | |
2069 | (display_selector): Likewise. | |
2070 | (display_selectors): Likewise. | |
2071 | (handle_exception): Likewise. | |
2072 | (windows_continue): Likewise. | |
2073 | (windows_nat_target::resume): Likewise. | |
2074 | (windows_add_all_dlls): Likewise. | |
2075 | (do_initial_windows_stuff): Likewise. | |
2076 | (windows_nat_target::attach): Likewise. | |
2077 | (windows_get_exec_module_filename): Likewise. | |
2078 | (windows_nat_target::create_inferior): Likewise. | |
2079 | (windows_xfer_siginfo): Likewise. | |
2080 | (_initialize_loadable): Initialize Wow64SuspendThread, | |
2081 | Wow64GetThreadContext, Wow64SetThreadContext, | |
2082 | Wow64GetThreadSelectorEntry and EnumProcessModulesEx. | |
2083 | * windows-nat.h (windows_set_context_register_offsets): | |
2084 | Remove declaration. | |
2085 | (windows_set_segment_register_p): Likewise. | |
2086 | (i386_windows_segment_register_p): Add declaration. | |
2087 | (amd64_windows_segment_register_p): Likewise. | |
2088 | ||
440cf44e LM |
2089 | 2020-03-04 Luis Machado <luis.machado@linaro.org> |
2090 | ||
2091 | Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions | |
2092 | in "info registers" for AArch64/ARM. | |
2093 | ||
2094 | The change caused "info registers" to not print GPR's. | |
2095 | ||
2096 | gdb/ChangeLog: | |
2097 | ||
2098 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> | |
2099 | ||
2100 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
2101 | when reg->group is empty and reggroup is not. | |
2102 | ||
1009d92f TT |
2103 | 2020-03-03 Tom Tromey <tromey@adacore.com> |
2104 | ||
2105 | * dwarf2/frame.c (struct dwarf2_frame_cache) | |
2106 | <checked_tailcall_bottom, entry_cfa_sp_offset, | |
2107 | entry_cfa_sp_offset_p>: Remove members. | |
2108 | (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first. | |
2109 | (dwarf2_frame_prev_register): Don't call | |
2110 | dwarf2_tailcall_sniffer_first. | |
2111 | (dwarf2_append_unwinders): Don't append tailcall unwinder. | |
2112 | * frame-unwind.c (add_unwinder): New fuction. | |
2113 | (frame_unwind_init): Use it. Add tailcall unwinder. | |
2114 | ||
5e5d66b6 AB |
2115 | 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com> |
2116 | Alok Kumar Sharma <AlokKumar.Sharma@amd.com> | |
2117 | ||
2118 | * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero | |
2119 | value should be printed as true. | |
2120 | ||
584cf46d HD |
2121 | 2020-03-03 Hannes Domani <ssbssa@yahoo.de> |
2122 | ||
2123 | * windows-tdep.c (windows_solib_create_inferior_hook): New function. | |
2124 | (windows_init_abi): Set and use windows_so_ops. | |
2125 | ||
7b973adc SDJ |
2126 | 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com> |
2127 | ||
2128 | * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR | |
2129 | when verifying if dealing with a convenience variable. | |
2130 | ||
bb7b70ab LM |
2131 | 2020-03-03 Luis Machado <luis.machado@linaro.org> |
2132 | ||
2133 | * auxv.c (default_print_auxv_entry): Add new AUXV entries. | |
2134 | ||
9822cb57 SM |
2135 | 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca> |
2136 | ||
2137 | * infrun.c (gdbarch_supports_displaced_stepping): New. | |
2138 | (use_displaced_stepping): Break up conditions in smaller pieces. | |
2139 | Use gdbarch_supports_displaced_stepping. | |
2140 | (displaced_step_prepare_throw): Use | |
2141 | gdbarch_supports_displaced_stepping. | |
2142 | ||
63e163f2 AB |
2143 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
2144 | ||
2145 | * NEWS: Mention new behaviour of the history filename. | |
2146 | * top.c (write_history_p): Add comment. | |
2147 | (show_write_history_p): Add header comment, give a different | |
2148 | message when history writing is on, but the history filename is | |
2149 | empty. | |
2150 | (history_filename): Add comment. | |
2151 | (history_filename_empty): New function. | |
2152 | (show_history_filename): Add header comment, give a different | |
2153 | message when the filename is empty. | |
2154 | (init_history): Compare history_filename against nullptr, and only | |
2155 | read history if the filename is not empty. | |
2156 | (set_history_filename): Add header comment, and only make | |
2157 | non-empty filenames absolute. | |
2158 | (init_main): Make the filename argument to 'set history filename' | |
2159 | optional. | |
2160 | ||
81b86b97 CB |
2161 | 2020-03-02 Christian Biesinger <cbiesinger@google.com> |
2162 | ||
2163 | * arm-nbsd-nat.c (arm_supply_fparegset): Rename to... | |
2164 | (arm_supply_vfpregset): ...this, and update to use VFP registers. | |
2165 | (fetch_fp_register): Update. | |
2166 | (fetch_fp_regs): Update. | |
2167 | (store_fp_register): Update. | |
2168 | (store_fp_regs): Update. | |
2169 | (arm_netbsd_nat_target::read_description): New function. | |
2170 | (fetch_elfcore_registers): Update. | |
2171 | ||
24ed6739 AB |
2172 | 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com> |
2173 | ||
2174 | * remote.c (remote_target::remote_parse_stop_reply): Don't use the | |
2175 | general_thread if the stop reply is missing a thread-id. | |
2176 | (remote_target::process_stop_reply): Use the first non-exited | |
2177 | thread if the target didn't pass a thread-id. | |
2178 | * infrun.c (do_target_wait): Move call to | |
2179 | switch_to_inferior_no_thread to .... | |
2180 | (do_target_wait_1): ... here. | |
2181 | ||
a84bb2a0 JT |
2182 | 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk> |
2183 | ||
2184 | * debuginfod-support.c: Include defs.h first. | |
2185 | ||
658dadf0 TV |
2186 | 2020-02-28 Tom de Vries <tdevries@suse.de> |
2187 | ||
2188 | * symfile.c (set_initial_language): Use default language for lookup. | |
2189 | ||
4ebe4877 SM |
2190 | 2020-02-28 Simon Marchi <simon.marchi@efficios.com> |
2191 | ||
2192 | * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove | |
2193 | reader variable, pass `this` to read_cutu_die_from_dwo. | |
2194 | ||
e5da1139 AM |
2195 | 2020-02-27 Aaron Merey <amerey@redhat.com> |
2196 | ||
2197 | * source.c (open_source_file): Check for nullptr when computing | |
2198 | srcpath. | |
2199 | ||
317f7127 TT |
2200 | 2020-02-27 Tom Tromey <tromey@adacore.com> |
2201 | ||
2202 | * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a | |
2203 | member. | |
2204 | (dwarf2_add_field): Don't update nfields. | |
2205 | (dwarf2_attach_fields_to_type, process_structure_scope): Update. | |
2206 | ||
3104d9ee AB |
2207 | 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com> |
2208 | ||
2209 | * gdbtypes.c (create_array_type_with_stride): Use std::abs not | |
2210 | abs. | |
2211 | ||
b83470bf TT |
2212 | 2020-02-26 Tom Tromey <tom@tromey.com> |
2213 | ||
2214 | * dwarf2/read.c (struct dwarf2_include_psymtab): New. | |
2215 | (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab. | |
2216 | (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p) | |
2217 | (dwarf2_psymtab::get_compunit_symtab): Remove null checks for | |
2218 | per_cu_data. | |
2219 | ||
edfe0a0c TT |
2220 | 2020-02-26 Tom Tromey <tom@tromey.com> |
2221 | ||
2222 | * dwarf2/index-write.c (psym_index_map): Change type. | |
2223 | (add_address_entry_worker, write_one_signatured_type) | |
2224 | (recursively_count_psymbols, recursively_write_psymbols) | |
2225 | (class debug_names, psyms_seen_size, write_gdbindex) | |
2226 | (write_debug_names): Use partial_symtab, not dwarf2_psymtab. | |
2227 | ||
0d79cdc4 AM |
2228 | 2020-02-26 Aaron Merey <amerey@redhat.com> |
2229 | ||
2230 | * Makefile.in: Handle optional debuginfod support. | |
2231 | * NEWS: Update. | |
2232 | * README: Add --with-debuginfod summary. | |
2233 | * config.in: Regenerate. | |
2234 | * configure: Regenerate. | |
2235 | * configure.ac: Handle optional debuginfod support. | |
2236 | * debuginfod-support.c: debuginfod helper functions. | |
2237 | * debuginfod-support.h: Ditto. | |
2238 | * doc/gdb.texinfo: Add --with-debuginfod to configure options | |
2239 | summary. | |
2240 | * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers | |
2241 | when a dwz file cannot be found. | |
2242 | * elfread.c (elf_symfile_read): Query debuginfod servers when a | |
2243 | debuginfo file cannot be found. | |
2244 | * source.c (open_source_file): Query debuginfod servers when a | |
2245 | source file cannot be found. | |
2246 | * top.c (print_gdb_configuration): Include | |
2247 | --{with,without}-debuginfod in the output. | |
2248 | ||
b65ce565 JG |
2249 | 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com> |
2250 | ||
2251 | * thread.c (thr_try_catch_cmd): Print thread name. | |
2252 | ||
d4c9a4f8 SM |
2253 | 2020-02-26 Simon Marchi <simon.marchi@efficios.com> |
2254 | ||
2255 | * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off, | |
2256 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
2257 | dwarf2_fetch_die_type_sect_off): Move to... | |
2258 | * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off, | |
2259 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
2260 | dwarf2_fetch_die_type_sect_off): ... here. | |
2261 | * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off, | |
2262 | dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes, | |
2263 | dwarf2_fetch_die_type_sect_off): Move doc to header file. | |
2264 | ||
0dce4280 TV |
2265 | 2020-02-26 Tom de Vries <tdevries@suse.de> |
2266 | ||
2267 | PR gdb/25603 | |
2268 | * symfile.c (set_initial_language): Exit-early if | |
2269 | language_mode == language_mode_manual. | |
2270 | ||
450a1bfc SM |
2271 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
2272 | ||
2273 | * dwarf2/loc.h (dwarf2_read_addr_index): Move... | |
2274 | * dwarf2/read.h (dwarf2_read_addr_index): ... here. | |
2275 | * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header. | |
2276 | ||
9e80cfa1 AB |
2277 | 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com> |
2278 | ||
2279 | * gdbtypes.c (create_array_type_with_stride): Handle negative | |
2280 | array strides. | |
2281 | * valarith.c (value_subscripted_rvalue): Likewise. | |
2282 | ||
09624f1f LM |
2283 | 2020-02-25 Luis Machado <luis.machado@linaro.org> |
2284 | ||
2285 | * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo. | |
2286 | ||
8cb5117c SM |
2287 | 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca> |
2288 | ||
2289 | * loc.h (dwarf2_get_die_type): Move to... | |
2290 | * read.h (dwarf2_get_die_type): ... here. | |
2291 | * read.c (dwarf2_get_die_type): Move doc to header. | |
2292 | ||
c325c44e JB |
2293 | 2020-02-25 Joel Brobecker <brobecker@adacore.com> |
2294 | ||
2295 | * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and | |
2296 | 'gnulib/Makefile.in' to the list. | |
2297 | ||
4ac93832 TT |
2298 | 2020-02-24 Tom Tromey <tom@tromey.com> |
2299 | ||
2300 | * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>: | |
2301 | Remove. | |
2302 | * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use | |
2303 | XOBNEWVEC. | |
2304 | ||
197400e8 TT |
2305 | 2020-02-24 Tom Tromey <tom@tromey.com> |
2306 | ||
2307 | * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>: | |
2308 | New method. | |
2309 | * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove. | |
2310 | (dw2_do_instantiate_symtab, dw2_get_file_names) | |
2311 | (build_type_psymtab_dependencies, load_full_type_unit): Update. | |
2312 | ||
76935768 TT |
2313 | 2020-02-24 Tom Tromey <tom@tromey.com> |
2314 | ||
2315 | * dwarf2read.c (dwarf2_build_psymtabs_hard): Use | |
2316 | make_scoped_restore. | |
2317 | (dwarf2_psymtab::read_symtab): Don't clear | |
2318 | reading_partial_symbols. | |
2319 | ||
a88ef40d TV |
2320 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
2321 | ||
2322 | PR gdb/25592 | |
2323 | * stack.c (iterate_over_block_locals): Handle LOC_CONST. | |
2324 | ||
c9af6521 TV |
2325 | 2020-02-24 Tom de Vries <tdevries@suse.de> |
2326 | ||
2327 | * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for | |
2328 | commands layout next/prev/regs. | |
2329 | ||
5707a07a TT |
2330 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2331 | ||
2332 | * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare. | |
2333 | * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static. | |
2334 | ||
3b0fb49e TT |
2335 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2336 | ||
2337 | * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window. | |
2338 | ||
283be8bf TT |
2339 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2340 | ||
2341 | * tui/tui-win.c (_initialize_tui_win): Add usage text. | |
2342 | * tui/tui-stack.c (_initialize_tui_stack): Add usage text. | |
2343 | * tui/tui-regs.c (_initialize_tui_regs): Add usage text. | |
2344 | * tui/tui.c (_initialize_tui): Add usage text. | |
2345 | ||
ca793b96 TT |
2346 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2347 | ||
2348 | * tui/tui-win.c (tui_set_focus_command) | |
2349 | (tui_set_win_height_command): Use error_no_arg. | |
2350 | (_initialize_tui_win): Update help text. | |
2351 | (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define. | |
2352 | ||
432b5c40 TT |
2353 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2354 | ||
2355 | * tui/tui-layout.c (extract_display_start_addr): Rewrite. | |
2356 | * tui/tui-disasm.h (struct tui_disasm_window) | |
2357 | <display_start_addr>: Declare. | |
2358 | * tui/tui-source.h (struct tui_source_window) | |
2359 | <display_start_addr>: Declare. | |
2360 | * tui/tui-winsource.h (struct tui_source_window_base) | |
2361 | <show_source_line, display_start_addr>: New methods. | |
2362 | <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>: | |
2363 | Rename and move to protected section. | |
2364 | * tui/tui-winsource.c (tui_source_window_base::update_source_window) | |
2365 | (tui_source_window_base::do_erase_source_content): Update. | |
2366 | (tui_source_window_base::show_source_line): Now a method. | |
2367 | (tui_source_window_base::show_source_content) | |
2368 | (tui_source_window_base::tui_source_window_base) | |
2369 | (tui_source_window_base::rerender) | |
2370 | (tui_source_window_base::refill) | |
2371 | (tui_source_window_base::do_scroll_horizontal) | |
2372 | (tui_source_window_base::set_is_exec_point_at) | |
2373 | (tui_source_window_base::update_breakpoint_info) | |
2374 | (tui_source_window_base::update_exec_info): Update. | |
2375 | * tui/tui-source.c (tui_source_window::set_contents) | |
2376 | (tui_source_window::showing_source_p) | |
2377 | (tui_source_window::do_scroll_vertical) | |
2378 | (tui_source_window::location_matches_p) | |
2379 | (tui_source_window::line_is_displayed): Update. | |
2380 | (tui_source_window::display_start_addr): New method. | |
2381 | * tui/tui-disasm.c (tui_disasm_window::set_contents) | |
2382 | (tui_disasm_window::do_scroll_vertical) | |
2383 | (tui_disasm_window::location_matches_p): Update. | |
2384 | (tui_disasm_window::display_start_addr): New method. | |
2385 | ||
01b1af32 TT |
2386 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2387 | ||
2388 | * NEWS: Add entry for gdb.register_window_type. | |
2389 | * tui/tui-layout.h (window_factory): New typedef. | |
2390 | (tui_register_window): Declare. | |
2391 | * tui/tui-layout.c (saved_tui_windows): New global. | |
2392 | (tui_apply_current_layout): Use it. | |
2393 | (tui_register_window): New function. | |
2394 | * python/python.c (do_start_initialization): Call | |
2395 | gdbpy_initialize_tui. | |
2396 | (python_GdbMethods): Add "register_window_type" function. | |
2397 | * python/python-internal.h (gdbpy_register_tui_window) | |
2398 | (gdbpy_initialize_tui): Declare. | |
2399 | * python/py-tui.c: New file. | |
2400 | * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c. | |
2401 | ||
fc96d20b TT |
2402 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2403 | ||
2404 | * tui/tui-io.c (do_tui_putc): Don't omit annotations. | |
2405 | ||
935c78c0 TT |
2406 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2407 | ||
2408 | * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c. | |
2409 | * tui/tui-data.h (tui_set_win_with_focus): Don't declare. | |
2410 | * tui/tui-data.c (tui_set_win_with_focus): Remove. | |
2411 | (tui_set_win_focus_to): Move from tui-win.c. | |
2412 | ||
0240c8f1 TT |
2413 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2414 | ||
2415 | * tui/tui-layout.c (make_standard_window, get_locator_window): New | |
2416 | functions. | |
2417 | (known_window_types): New global. | |
2418 | (tui_get_window_by_name): Reimplement. | |
2419 | (initialize_known_windows): New function. | |
2420 | (validate_window_name): Rewrite. | |
2421 | (_initialize_tui_layout): Call initialize_known_windows. | |
2422 | ||
fdb01f0c TT |
2423 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2424 | ||
2425 | * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>: | |
2426 | Remove constants. | |
2427 | * tui/tui-winsource.h (struct tui_source_window_base) | |
2428 | <tui_source_window_base>: Remove parameter. | |
2429 | * tui/tui-winsource.c | |
2430 | (tui_source_window_base::tui_source_window_base): Remove | |
2431 | parameter. | |
2432 | (tui_source_window_base::refill): Update. | |
2433 | * tui/tui-stack.h (struct tui_locator_window) | |
2434 | <tui_locator_window>: Update. | |
2435 | * tui/tui-source.h (struct tui_source_window) <tui_source_window>: | |
2436 | Default the constructor. | |
2437 | * tui/tui-regs.h (struct tui_data_item_window) | |
2438 | <tui_data_item_window>: Default the constructor. | |
2439 | (struct tui_data_window) <tui_data_window>: Likewise. | |
2440 | * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>: | |
2441 | Default the constructor. | |
2442 | * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>: | |
2443 | Default the constructor. | |
2444 | <type>: Remove. | |
2445 | (struct tui_win_info) <tui_win_info>: Default the constructor. | |
2446 | * tui/tui-data.c (tui_win_info::tui_win_info): Remove. | |
2447 | * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>: | |
2448 | Default the constructor. | |
2449 | ||
865a5aec TT |
2450 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2451 | ||
2452 | * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare. | |
2453 | * tui/tui-wingeneral.c (tui_make_all_invisible): Remove. | |
2454 | * tui/tui-win.c (tui_resize_all): Don't call | |
2455 | tui_delete_invisible_windows. | |
2456 | * tui/tui-layout.c (tui_apply_current_layout): Delete windows when | |
2457 | done. | |
2458 | (tui_set_layout): Update. | |
2459 | (tui_add_win_to_layout): Don't call tui_delete_invisible_windows. | |
2460 | * tui/tui-data.h (tui_delete_invisible_windows): Don't declare. | |
2461 | * tui/tui-data.c (tui_delete_invisible_windows): Remove. | |
2462 | ||
e098d18c TT |
2463 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2464 | ||
2465 | * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity | |
2466 | correctly. | |
2467 | ||
eb9c8874 TT |
2468 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2469 | ||
2470 | * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement. | |
2471 | ||
7eed1a8e TT |
2472 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2473 | ||
2474 | * tui/tui-winsource.h (struct tui_source_window_iterator) | |
2475 | <inner_iterator>: New etytypedef. | |
2476 | <tui_source_window_iterator>: Take "end" parameter. | |
2477 | <tui_source_window_iterator>: Take iterator. | |
2478 | <operator*, advance>: Update. | |
2479 | <m_iter>: Change type. | |
2480 | <m_end>: New field. | |
2481 | (struct tui_source_windows) <begin, end>: Update. | |
2482 | * tui/tui-layout.c (tui_windows): New global. | |
2483 | (tui_apply_current_layout): Clear tui_windows. | |
2484 | (tui_layout_window::apply): Update tui_windows. | |
2485 | * tui/tui-data.h (tui_windows): Declare. | |
2486 | (all_tui_windows): Now inline function. | |
2487 | (class tui_window_iterator, struct all_tui_windows): Remove. | |
2488 | ||
7c043ba6 TT |
2489 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2490 | ||
2491 | PR tui/17850: | |
2492 | * tui/tui-win.c (tui_gen_win_info::max_width): New method. | |
2493 | * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add | |
2494 | "height" argument. | |
2495 | (class tui_layout_window) <get_sizes>: Likewise. | |
2496 | (class tui_layout_split) <tui_layout_split>: Add "vertical" | |
2497 | argument. | |
2498 | <get_sizes>: Add "height" argument. | |
2499 | <m_vertical>: New field. | |
2500 | * tui/tui-layout.c (tui_layout_split::clone): Update. | |
2501 | (tui_layout_split::get_sizes): Add "height" argument. | |
2502 | (tui_layout_split::adjust_size, tui_layout_split::apply): Update. | |
2503 | (tui_new_layout_command): Parse "-horizontal". | |
2504 | (_initialize_tui_layout): Update help string. | |
2505 | (tui_layout_split::specification): Add "-horizontal" when needed. | |
2506 | * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height" | |
2507 | argument. | |
2508 | * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>: | |
2509 | New methods. | |
2510 | ||
6bc56648 TT |
2511 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2512 | ||
2513 | * tui/tui-layout.h (enum tui_adjust_result): New. | |
2514 | (class tui_layout_base) <adjust_size>: Return tui_adjust_result. | |
2515 | (class tui_layout_window) <adjust_size>: Return | |
2516 | tui_adjust_result. Rewrite. | |
2517 | (class tui_layout_split) <adjust_size>: Return tui_adjust_result. | |
2518 | * tui/tui-layout.c (tui_layout_split::adjust_size): Update. | |
2519 | ||
c22fef7e TT |
2520 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2521 | ||
2522 | * tui/tui-layout.h (class tui_layout_split) <add_split>: Change | |
2523 | parameter and return types. | |
2524 | (class tui_layout_base) <specification>: Add "depth". | |
2525 | (class tui_layout_window) <specification>: Add "depth". | |
2526 | (class tui_layout_split) <specification>: Add "depth". | |
2527 | * tui/tui-layout.c (tui_layout_split::add_split): Change parameter | |
2528 | and return types. | |
2529 | (tui_new_layout_command): Parse sub-layouts. | |
2530 | (_initialize_tui_layout): Update help string. | |
2531 | (tui_layout_window::specification): Add "depth". | |
2532 | (add_layout_command): Update. | |
2533 | ||
ee325b61 TT |
2534 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2535 | ||
2536 | * NEWS: Add "tui new-layout" item. | |
2537 | * tui/tui-layout.c (add_layout_command): Return cmd_list_element. | |
2538 | Add new-layout command to help text. | |
2539 | (validate_window_name): New function. | |
2540 | (tui_new_layout_command): New function. | |
2541 | (_initialize_tui_layout): Register "new-layout". | |
2542 | (tui_layout_window::specification): New method. | |
2543 | (tui_layout_window::specification): New method. | |
2544 | * tui/tui-layout.h (class tui_layout_base) <specification>: New | |
2545 | method. | |
2546 | (class tui_layout_window) <specification>: New method. | |
2547 | (class tui_layout_split) <specification>: New method. | |
2548 | ||
416eb92d TT |
2549 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2550 | ||
2551 | * tui/tui.c (tui_enable): Call tui_set_initial_layout. | |
2552 | * tui/tui-win.c (window_name_completer): Update comment. | |
2553 | * tui/tui-layout.h (class tui_layout_base) <replace_window>: | |
2554 | Declare method. | |
2555 | (class tui_layout_window) <replace_window>: Likewise. | |
2556 | (class tui_layout_split) <replace_window>: Likewise. | |
2557 | (tui_set_layout): Don't declare. | |
2558 | (tui_set_initial_layout): Declare function. | |
2559 | * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout) | |
2560 | (asm_regs_layout): New globals. | |
2561 | (tui_current_layout, show_layout): Remove. | |
2562 | (tui_set_layout, tui_add_win_to_layout): Rewrite. | |
2563 | (find_layout, tui_apply_layout): New function. | |
2564 | (layout_completer): Remove. | |
2565 | (tui_next_layout): Reimplement. | |
2566 | (tui_next_layout_command): New function. | |
2567 | (tui_set_initial_layout, tui_prev_layout_command): New functions. | |
2568 | (tui_regs_layout): Reimplement. | |
2569 | (tui_regs_layout_command): New function. | |
2570 | (extract_display_start_addr): Rewrite. | |
2571 | (next_layout, prev_layout): Remove. | |
2572 | (tui_layout_window::replace_window): New method. | |
2573 | (tui_layout_split::replace_window): New method. | |
2574 | (destroy_layout): New function. | |
2575 | (layout_list): New global. | |
2576 | (add_layout_command): New function. | |
2577 | (initialize_layouts): Update. | |
2578 | (tui_layout_command): New function. | |
2579 | (_initialize_tui_layout): Install "layout" commands. | |
2580 | * tui/tui-data.h (enum tui_layout_type): Remove. | |
2581 | (tui_current_layout): Don't declare. | |
2582 | ||
0dbc2fc7 TT |
2583 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2584 | ||
2585 | * tui/tui-regs.c (tui_reg_layout): Remove. | |
2586 | (tui_reg_command): Use tui_regs_layout. | |
2587 | * tui/tui-layout.h (tui_reg_command): Declare. | |
2588 | * tui/tui-layout.c (tui_reg_command): New function. | |
2589 | ||
5afe342e TT |
2590 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2591 | ||
2592 | * tui/tui.c (tui_rl_delete_other_windows): Call | |
2593 | tui_remove_some_windows. | |
2594 | * tui/tui-layout.h (class tui_layout_base) <remove_windows>: | |
2595 | Declare method. | |
2596 | (class tui_layout_window) <remove_windows>: New method. | |
2597 | (class tui_layout_split) <remove_windows>: Declare. | |
2598 | (tui_remove_some_windows): Declare. | |
2599 | * tui/tui-layout.c (tui_remove_some_windows): New function. | |
2600 | (tui_layout_split::remove_windows): New method. | |
2601 | ||
427326a8 TT |
2602 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2603 | ||
2604 | * tui/tui.c (tui_rl_change_windows): Call tui_next_layout. | |
2605 | * tui/tui-layout.h (tui_next_layout): Declare. | |
2606 | * tui/tui-layout.c (tui_next_layout): New function. | |
2607 | ||
3fe12b6d TT |
2608 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2609 | ||
2610 | * tui/tui-regs.c (tui_data_window::display_registers_from): Use | |
2611 | correct coordinates. | |
2612 | ||
59b8b5d2 TT |
2613 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2614 | ||
2615 | * tui/tui-layout.h (tui_add_win_to_layout): Add comment. | |
2616 | * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove | |
2617 | DATA_WIN case. | |
2618 | ||
2a3d458b TT |
2619 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2620 | ||
2621 | * tui/tui-disasm.c (tui_get_low_disassembly_address): Use | |
2622 | TUI_DISASM_WIN, not tui_win_list. | |
2623 | ||
3f0cbb04 TT |
2624 | 2020-02-22 Tom Tromey <tom@tromey.com> |
2625 | ||
2626 | * valprint.c (generic_val_print_enum_1) | |
2627 | (val_print_type_code_flags): Style member names. | |
2628 | * rust-lang.c (val_print_struct, rust_print_enum) | |
2629 | (rust_print_struct_def, rust_internal_print_type): Style member | |
2630 | names. | |
2631 | * p-valprint.c (pascal_object_print_value_fields): Style member | |
2632 | names. Only call fprintf_symbol_filtered for static members. | |
2633 | * m2-typeprint.c (m2_record_fields, m2_enum): Style member names. | |
2634 | * f-valprint.c (f_val_print): Style member names. | |
2635 | * f-typeprint.c (f_type_print_base): Style member names. | |
2636 | * cp-valprint.c (cp_print_value_fields): Style member names. Only | |
2637 | call fprintf_symbol_filtered for static members. | |
2638 | (cp_print_class_member): Style member names. | |
2639 | * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style | |
2640 | member names. | |
2641 | * ada-valprint.c (ada_print_scalar): Style enum names. | |
2642 | (ada_val_print_enum): Likewise. | |
2643 | * ada-typeprint.c (print_enum_type): Style enum names. | |
2644 | ||
d4d947ae TT |
2645 | 2020-02-21 Tom Tromey <tom@tromey.com> |
2646 | ||
2647 | * psympriv.h (struct partial_symtab): Update comment. | |
2648 | ||
e94e944b TT |
2649 | 2020-02-21 Tom Tromey <tromey@adacore.com> |
2650 | ||
2651 | * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter | |
2652 | type is CORE_ADDR. | |
2653 | ||
1eb73179 TV |
2654 | 2020-02-21 Tom de Vries <tdevries@suse.de> |
2655 | ||
2656 | PR gdb/25534 | |
2657 | * psymtab.c (partial_symtab::read_dependencies): Don't read dependency | |
2658 | if dependencies[i]->user != NULL. | |
2659 | ||
4f180d53 AT |
2660 | 2020-02-21 Ali Tamur <tamur@google.com> |
2661 | ||
2662 | * dwarf2/read.c (dwarf2_name): Add null check. | |
2663 | ||
22b6cd70 TT |
2664 | 2020-02-20 Tom Tromey <tom@tromey.com> |
2665 | ||
2666 | * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not | |
2667 | ">=", in binary search. | |
2668 | (dwarf2_find_containing_comp_unit): New overload. | |
2669 | (run_test): New self-test. | |
2670 | (_initialize_dwarf2_read): Register new test. | |
2671 | ||
bd0cf5a6 NC |
2672 | 2020-02-20 Nelson Chu <nelson.chu@sifive.com> |
2673 | ||
2674 | * riscv-tdep.c: Updated since the DECLARE_CSR is changed. | |
2675 | * riscv-tdep.h: Likewise. | |
2676 | * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without | |
2677 | rv32-only CSR. | |
2678 | * features/riscv/64bit-csr.xml: Regenerated. | |
2679 | ||
3f702acd SDJ |
2680 | 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com> |
2681 | Tom Tromey <tom@tromey.com> | |
2682 | ||
2683 | * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead | |
2684 | of 'fputc_unfiltered'. | |
2685 | (putchar_unfiltered): Call 'fputc_unfiltered'. | |
2686 | (fputc_unfiltered): Call 'fputs_unfiltered'. | |
2687 | ||
d13c7322 AB |
2688 | 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com> |
2689 | ||
2690 | * config.in: Regenerate. | |
2691 | * configure: Regenerate. | |
2692 | * configure.ac: Add --with-python-libdir option. | |
2693 | * main.c: Use WITH_PYTHON_LIBDIR. | |
2694 | ||
869d8950 TT |
2695 | 2020-02-19 Tom Tromey <tom@tromey.com> |
2696 | ||
2697 | * symtab.c (general_symbol_info::compute_and_set_names): Use | |
2698 | obstack_strndup. Simplify call to symbol_set_demangled_name. | |
2699 | ||
298e9637 SM |
2700 | 2020-02-19 Simon Marchi <simon.marchi@efficios.com> |
2701 | ||
2702 | * dwarf2/read.c (allocate_signatured_type_table, | |
2703 | allocate_dwo_unit_table, allocate_type_unit_groups_table, | |
2704 | allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table): | |
2705 | Remove objfile parameter, update all callers. | |
2706 | ||
08410482 DE |
2707 | 2020-02-19 Doug Evans <dje@google.com> |
2708 | ||
2709 | PR rust/25535 | |
2710 | * rust-lang.c (rust_print_enum): Apply embedded_offset to | |
2711 | rust_enum_variant calculation. | |
2712 | ||
dfdeeca1 TT |
2713 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
2714 | ||
2715 | * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR. | |
2716 | ||
2ef5453b TT |
2717 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
2718 | ||
2719 | * ada-lang.c (cache_symbol): Use obstack_strdup. | |
2720 | ||
9f1528a1 AB |
2721 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
2722 | ||
2723 | * configure: Regenerate. | |
2724 | ||
d3c22fa8 TT |
2725 | 2020-02-19 Tom Tromey <tromey@adacore.com> |
2726 | ||
2727 | * python/python.c (do_start_initialization): Use XNEWVEC. Remove | |
2728 | NULL check. | |
2729 | ||
bf84f706 MR |
2730 | 2020-02-19 Maciej W. Rozycki <macro@wdc.com> |
2731 | ||
2732 | * NEWS: Mention RISC-V GNU/Linux GDBserver support. | |
2733 | ||
d1c9b20f AB |
2734 | 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com> |
2735 | ||
2736 | * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define | |
2737 | if GDBSERVER is not defined. | |
2738 | (riscv_tdesc_cache): Likewise, also store const target_desc. | |
2739 | (STATIC_IN_GDB): Define. | |
2740 | (riscv_create_target_description): Update declaration with | |
2741 | STATIC_IN_GDB. | |
2742 | (riscv_lookup_target_description): New function, only define if | |
2743 | GDBSERVER is not defined. | |
2744 | * arch/riscv.h (riscv_create_target_description): Declare only | |
2745 | when GDBSERVER is defined. | |
2746 | (riscv_lookup_target_description): New declaration when GDBSERVER | |
2747 | is not defined. | |
2748 | * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to... | |
2749 | (riscv_linux_read_features): ...this, and return | |
2750 | riscv_gdbarch_features instead of target_desc. | |
2751 | * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'. | |
2752 | (riscv_linux_read_description): Rename to... | |
2753 | (riscv_linux_read_features): ...this. | |
2754 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
2755 | Update to use riscv_gdbarch_features and | |
2756 | riscv_lookup_target_description. | |
2757 | * riscv-tdep.c (riscv_find_default_target_description): Use | |
2758 | riscv_lookup_target_description instead of | |
2759 | riscv_create_target_description. | |
2760 | ||
373d7ac0 SM |
2761 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
2762 | ||
2763 | * valprint.c (generic_val_print_enum_1): When printing a flag | |
2764 | enum with value 0 and there is no enumerator with value 0, print | |
2765 | just "0" instead of "(unknown: 0x0)". | |
2766 | ||
b29a2df0 SM |
2767 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
2768 | ||
2769 | * valprint.c (generic_val_print_enum_1): Print unknown part of | |
2770 | flag enum in hex. | |
2771 | ||
6740f0cc SM |
2772 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
2773 | ||
2774 | * dwarf2/read.c (update_enumeration_type_from_children): Allow | |
2775 | flag enums to contain duplicate enumerators. | |
2776 | * valprint.c (generic_val_print_enum_1): Update comment. | |
2777 | ||
edd45eb0 SM |
2778 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
2779 | ||
2780 | * dwarf2/read.c: Include "count-one-bits.h". | |
2781 | (update_enumeration_type_from_children): If an enumerator has | |
2782 | multiple bits set, don't treat the enumeration as a "flag enum". | |
2783 | * valprint.c (generic_val_print_enum_1): Assert that enumerators | |
2784 | of flag enums have 0 or 1 bit set. | |
2785 | ||
6d0cf446 BE |
2786 | 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2787 | ||
2788 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit | |
2789 | conversion. | |
2790 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
2791 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
2792 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
2793 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
2794 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
2795 | ||
7001c1b7 SM |
2796 | 2020-02-18 Simon Marchi <simon.marchi@efficios.com> |
2797 | ||
2798 | * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com. | |
2799 | ||
fdb61c6c SM |
2800 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
2801 | ||
2802 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use | |
2803 | displaced_step_closure_up. | |
2804 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
2805 | (struct displaced_step_closure_up): | |
2806 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
2807 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
2808 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): | |
2809 | Likewise. | |
2810 | * gdbarch.sh (displaced_step_copy_insn): Likewise. | |
2811 | * gdbarch.c, gdbarch.h: Re-generate. | |
2812 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use | |
2813 | displaced_step_closure_up. | |
2814 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
2815 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
2816 | * infrun.h (displaced_step_closure_up): New type alias. | |
2817 | (struct displaced_step_inferior_state) <step_closure>: Change | |
2818 | type to displaced_step_closure_up. | |
2819 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use | |
2820 | displaced_step_closure_up. | |
2821 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
2822 | ||
a4a38eb4 TT |
2823 | 2020-02-14 Tom Tromey <tom@tromey.com> |
2824 | ||
2825 | * minidebug.c (gnu_debug_key): New global. | |
2826 | (find_separate_debug_file_in_section): Use it. | |
2827 | ||
e8217e61 SM |
2828 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
2829 | ||
2830 | * gdbarch.sh (displaced_step_copy_insn): Change return type to an | |
2831 | std::unique_ptr. | |
2832 | * gdbarch.c: Re-generate. | |
2833 | * gdbarch.h: Re-generate. | |
2834 | * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr | |
2835 | change. | |
2836 | * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return | |
2837 | type to std::unique_ptr. | |
2838 | * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise. | |
2839 | * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise. | |
2840 | * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise. | |
2841 | * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise. | |
2842 | * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise. | |
2843 | * i386-tdep.c (i386_displaced_step_copy_insn): Likewise. | |
2844 | * i386-tdep.h (i386_displaced_step_copy_insn): Likewise. | |
2845 | * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise. | |
2846 | * s390-tdep.c (s390_displaced_step_copy_insn): Likewise. | |
2847 | ||
d8d83535 SM |
2848 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
2849 | ||
2850 | * infrun.c (get_displaced_step_closure_by_addr): Adjust to | |
2851 | std::unique_ptr. | |
2852 | (displaced_step_clear): Rename to... | |
2853 | (displaced_step_reset): ... this. Just call displaced->reset (). | |
2854 | (displaced_step_clear_cleanup): Rename to... | |
2855 | (displaced_step_reset_cleanup): ... this. | |
2856 | (displaced_step_prepare_throw): Adjust to std::unique_ptr. | |
2857 | (displaced_step_fixup): Likewise. | |
2858 | (resume_1): Likewise. | |
2859 | (handle_inferior_event): Restore child's memory before calling | |
2860 | displaced_step_fixup on the parent. | |
2861 | * infrun.h (displaced_step_inferior_state) <reset>: Adjust | |
2862 | to std::unique_ptr. | |
2863 | <step_closure>: Change type to std::unique_ptr. | |
2864 | ||
5f661e03 SM |
2865 | 2020-02-14 Simon Marchi <simon.marchi@efficios.com> |
2866 | ||
2867 | * arm-tdep.c: Include count-one-bits.h. | |
2868 | (cleanup_block_store_pc): Use count_one_bits. | |
2869 | (cleanup_block_load_pc): Use count_one_bits. | |
2870 | (arm_copy_block_xfer): Use count_one_bits. | |
2871 | (thumb2_copy_block_xfer): Use count_one_bits. | |
2872 | (thumb_copy_pop_pc_16bit): Use count_one_bits. | |
2873 | * arch/arm-get-next-pcs.c: Include count-one-bits.h. | |
2874 | (thumb_get_next_pcs_raw): Use count_one_bits. | |
2875 | (arm_get_next_pcs_raw): Use count_one_bits_l. | |
2876 | * arch/arm.c (bitcount): Remove. | |
2877 | * arch/arm.h (bitcount): Remove. | |
2878 | ||
8084e579 TT |
2879 | 2020-02-14 Tom Tromey <tromey@adacore.com> |
2880 | ||
2881 | * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): | |
2882 | Update. | |
2883 | * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr. | |
2884 | * dwarf2/loc.c (call_site_find_chain_1): Return | |
2885 | unique_xmalloc_ptr. | |
2886 | (call_site_find_chain): Likewise. | |
2887 | ||
258bf0ee RB |
2888 | 2020-02-14 Richard Biener <rguenther@suse.de> |
2889 | ||
2890 | * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE | |
2891 | on expression with division operators. | |
2892 | ||
f98a8458 AKS |
2893 | 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
2894 | ||
2895 | * MAINTAINERS (Write After Approval): Adding myself. | |
2896 | ||
d1437c0e TT |
2897 | 2020-02-12 Tom Tromey <tom@tromey.com> |
2898 | ||
2899 | * event-loop.c (event_data, gdb_event, event_handler_func): | |
2900 | Remove. | |
2901 | ||
3d4560f7 TT |
2902 | 2020-02-12 Tom Tromey <tom@tromey.com> |
2903 | ||
2904 | * dwarf2/frame.c (dwarf2_frame_bfd_data): New global. | |
2905 | (dwarf2_frame_objfile_data): Add comment. | |
2906 | (find_comp_unit, set_comp_unit): New functions. | |
2907 | (dwarf2_frame_find_fde): Use find_comp_unit. | |
2908 | (dwarf2_build_frame_info): Use set_comp_unit. | |
2909 | ||
21982304 TT |
2910 | 2020-02-12 Tom Tromey <tom@tromey.com> |
2911 | ||
2912 | * dwarf2/frame.c (struct comp_unit) <objfile>: Remove. | |
2913 | (comp_unit): Don't initialize objfile. | |
2914 | (execute_cfa_program): Add text_offset parameter. | |
2915 | (execute_cfa_program_test, dwarf2_fetch_cfa_info) | |
2916 | (dwarf2_frame_cache): Update. | |
2917 | (dwarf2_build_frame_info): Don't set "objfile" member. | |
2918 | ||
4debb237 TT |
2919 | 2020-02-12 Tom Tromey <tom@tromey.com> |
2920 | ||
2921 | * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter. | |
2922 | (decode_frame_entry): Likewise. | |
2923 | (dwarf2_build_frame_info): Update. | |
2924 | ||
0d404d44 TT |
2925 | 2020-02-12 Tom Tromey <tom@tromey.com> |
2926 | ||
2927 | * dwarf2/frame.c (struct comp_unit) <obstack>: New member. | |
2928 | (decode_frame_entry_1): Use the comp_unit obstack. | |
2929 | ||
a7a3ae5c TT |
2930 | 2020-02-12 Tom Tromey <tom@tromey.com> |
2931 | ||
2932 | * dwarf2/frame.c (struct comp_unit): Add initializers and | |
2933 | constructor. | |
2934 | (dwarf2_frame_objfile_data): Store a comp_unit. | |
2935 | (dwarf2_frame_find_fde): Update. | |
2936 | (dwarf2_build_frame_info): Use "new". | |
2937 | ||
a9d65418 TT |
2938 | 2020-02-12 Tom Tromey <tom@tromey.com> |
2939 | ||
2940 | * dwarf2/frame.c (struct dwarf2_fde_table): Remove. | |
2941 | (dwarf2_fde_table): Typedef for std::vector. | |
2942 | (dwarf2_frame_objfile_data): Remove the deleter. Now static. | |
2943 | (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1) | |
2944 | (decode_frame_entry): Update. | |
2945 | (dwarf2_build_frame_info): Use "new". | |
2946 | ||
7559c217 CB |
2947 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
2948 | ||
2949 | * arm-tdep.c (arm_gdbarch_init): Update. | |
2950 | * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers, | |
2951 | have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos, | |
2952 | have_neon, is_m>: Change to bool. | |
2953 | ||
aeefc73c CB |
2954 | 2020-02-12 Christian Biesinger <cbiesinger@google.com> |
2955 | ||
2956 | * arm-tdep.c (arm_dump_tdep): Print more fields of tdep. | |
2957 | ||
d27b8e5f TT |
2958 | 2020-02-12 Tom Tromey <tom@tromey.com> |
2959 | ||
2960 | * dwarf2/loc.c (struct dwarf_expr_baton): Remove. | |
2961 | ||
cd5900f3 HD |
2962 | 2020-02-12 Hannes Domani <ssbssa@yahoo.de> |
2963 | ||
2964 | * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type. | |
2965 | (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type. | |
2966 | ||
f056b22b TT |
2967 | 2020-02-11 Tom Tromey <tom@tromey.com> |
2968 | ||
2969 | * psymtab.h: Update comment. | |
2970 | ||
f92ff6b5 TT |
2971 | 2020-02-11 Tom Tromey <tom@tromey.com> |
2972 | ||
2973 | * gdb_obstack.h (struct auto_obstack): Use | |
2974 | DISABLE_COPY_AND_ASSIGN. | |
2975 | ||
3fd6912b TT |
2976 | 2020-02-11 Tom Tromey <tom@tromey.com> |
2977 | ||
2978 | * dwarf2/frame.h (struct objfile): Don't forward declare. | |
2979 | ||
69ed9b74 CB |
2980 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
2981 | ||
2982 | * cris-tdep.c (cris_supply_gregset): Change signature to match | |
2983 | what struct regset expects. | |
2984 | (cris_regset): New struct. | |
2985 | (fetch_core_registers): Remove. | |
2986 | (cris_iterate_over_regset_sections): New function. | |
2987 | (_initialize_cris_tdep): Don't call deprecated_add_core_fns. | |
2988 | (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections. | |
2989 | ||
bda874f6 CB |
2990 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
2991 | ||
2992 | * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7 | |
2993 | registers. | |
2994 | ||
754e1564 CB |
2995 | 2020-02-11 Christian Biesinger <cbiesinger@google.com> |
2996 | ||
2997 | * arm-tdep.c (arm_dump_tdep): Add \n in fprintf. | |
2998 | ||
8ddd8e0e SM |
2999 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
3000 | ||
3001 | * configure: Re-generate. | |
3002 | ||
898e7f60 SM |
3003 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
3004 | ||
3005 | * configure: Re-generate. | |
3006 | ||
58df732b SM |
3007 | 2020-02-11 Simon Marchi <simon.marchi@efficios.com> |
3008 | ||
3009 | * acinclude: Update warning.m4 path. | |
3010 | * warning.m4: Move to gdbsupport. | |
3011 | ||
da5bd37e TT |
3012 | 2020-02-11 Tom Tromey <tromey@adacore.com> |
3013 | ||
3014 | * remote.c (remote_console_output): Update. | |
3015 | * printcmd.c (printf_command): Update. | |
3016 | * event-loop.c (gdb_wait_for_event): Update. | |
3017 | * linux-nat.c (sigchld_handler): Update. | |
3018 | * remote-sim.c (gdb_os_write_stdout): Update. | |
3019 | (gdb_os_flush_stdout): Update. | |
3020 | (gdb_os_flush_stderr): Update. | |
3021 | (gdb_os_write_stderr): Update. | |
3022 | * exceptions.c (print_exception): Update. | |
3023 | * remote-fileio.c (remote_fileio_func_read): Update. | |
3024 | (remote_fileio_func_write): Update. | |
3025 | * tui/tui.c (tui_enable): Update. | |
3026 | * tui/tui-interp.c (tui_interp::init): Update. | |
3027 | * utils.c (init_page_info): Update. | |
3028 | (putchar_unfiltered, fputc_unfiltered): Update. | |
3029 | (gdb_flush): Update. | |
3030 | (emit_style_escape): Update. | |
3031 | (flush_wrap_buffer, fputs_maybe_filtered): Update. | |
3032 | * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write) | |
3033 | (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove. | |
3034 | (stderr_file::write): Update. | |
3035 | (stderr_file::puts): Update. | |
3036 | * ui-file.h (ui_file_isatty, ui_file_write) | |
3037 | (ui_file_write_async_safe, ui_file_read, ui_file_flush) | |
3038 | (ui_file_puts): Don't declare. | |
3039 | ||
85f0dd3c TV |
3040 | 2020-02-10 Tom de Vries <tdevries@suse.de> |
3041 | ||
3042 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL | |
3043 | sentinel to char *. | |
3044 | ||
2e927613 TV |
3045 | 2020-02-09 Tom de Vries <tdevries@suse.de> |
3046 | ||
3047 | * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to | |
3048 | filename if it matches "<artificial>". | |
3049 | ||
6bafc845 HD |
3050 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
3051 | ||
3052 | * windows-tdep.c (struct enum_value_name): New struct. | |
3053 | (create_enum): New function. | |
3054 | (windows_get_siginfo_type): Create and use enum types. | |
3055 | ||
7928d571 HD |
3056 | 2020-02-09 Hannes Domani <ssbssa@yahoo.de> |
3057 | ||
3058 | * NEWS: Mention $_siginfo support for Windows. | |
3059 | * windows-nat.c (handle_exception): Set siginfo_er. | |
3060 | (windows_nat_target::mourn_inferior): Reset siginfo_er. | |
3061 | (windows_xfer_siginfo): New function. | |
3062 | (windows_nat_target::xfer_partial): Call windows_xfer_siginfo. | |
3063 | * windows-tdep.c (struct windows_gdbarch_data): New struct. | |
3064 | (init_windows_gdbarch_data): New function. | |
3065 | (get_windows_gdbarch_data): New function. | |
3066 | (windows_get_siginfo_type): New function. | |
3067 | (windows_init_abi): Register windows_get_siginfo_type. | |
3068 | (_initialize_windows_tdep): Register init_windows_gdbarch_data. | |
3069 | ||
6751ebae TT |
3070 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3071 | ||
3072 | * dwarf2/read.c (class cutu_reader) <cutu_reader, | |
3073 | init_tu_and_read_dwo_dies>: Remove "keep" parameter. | |
3074 | <keep>: Declare method. | |
3075 | <m_keep>: Remove member. | |
3076 | <~cutu_reader>: Remove. | |
3077 | (cutu_reader::init_tu_and_read_dwo_dies): Update. | |
3078 | (cutu_reader::cutu_reader): Update. | |
3079 | (cutu_reader::keep): Rename from ~cutu_reader. | |
3080 | (process_psymtab_comp_unit, build_type_psymtabs_1) | |
3081 | (process_skeletonless_type_unit, load_partial_comp_unit) | |
3082 | (load_full_comp_unit, dwarf2_read_addr_index) | |
3083 | (read_signatured_type): Update. | |
3084 | ||
135f5437 TT |
3085 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3086 | ||
3087 | * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove | |
3088 | "want_partial_unit" parameter. | |
3089 | (process_psymtab_comp_unit): Change want_partial_unit to bool. | |
3090 | Inline check for DW_TAG_partial_unit. | |
3091 | (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update. | |
3092 | ||
9f66ff1c TT |
3093 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3094 | ||
3095 | * dwarf2/read.c (read_n_bytes, read_direct_string): Move to | |
3096 | read.c. | |
3097 | * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from | |
3098 | read.c. | |
3099 | ||
c8a7a66f TT |
3100 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3101 | ||
3102 | * dwarf2/read.c (read_address): Move to comp-unit.c. | |
3103 | (dwarf2_rnglists_process, dwarf2_ranges_process) | |
3104 | (read_attribute_value, dwarf_decode_lines_1) | |
3105 | (var_decode_location, decode_locdesc): Update. | |
3106 | * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from | |
3107 | read.c. Remove "cu" parameter. | |
3108 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New | |
3109 | method. | |
3110 | ||
8266302d TT |
3111 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3112 | ||
3113 | * dwarf2/read.c (read_attribute_value, read_indirect_string) | |
3114 | (read_indirect_line_string): Update. | |
3115 | * dwarf2/comp-unit.c (read_offset): Remove. | |
3116 | (read_comp_unit_head): Update. | |
3117 | * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New | |
3118 | method. | |
3119 | (read_offset): Don't declare. | |
3120 | ||
4057dfde TT |
3121 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3122 | ||
3123 | * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c. | |
3124 | * dwarf2/read.c (struct comp_unit_head): Move to | |
3125 | dwarf2/comp-unit.h. | |
3126 | (enum class rcuh_kind): Move to comp-unit.h. | |
3127 | (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head. | |
3128 | (read_comp_unit_head, error_check_comp_unit_head) | |
3129 | (read_and_check_comp_unit_head): Move to comp-unit.c. | |
3130 | (read_offset, dwarf_unit_type_name): Likewise. | |
3131 | (create_debug_type_hash_table, read_cutu_die_from_dwo) | |
3132 | (cutu_reader::cutu_reader, read_call_site_scope) | |
3133 | (find_partial_die, follow_die_offset): Update. | |
3134 | * dwarf2/comp-unit.h: New file, from dwarf2read.c. | |
3135 | ||
24aa364d TT |
3136 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3137 | ||
3138 | * dwarf2/read.c (read_offset_1): Move to leb.c. | |
3139 | (read_abbrev_offset, read_offset, dwarf_decode_line_header) | |
3140 | (dwarf_decode_macro_bytes): Update. | |
3141 | * dwarf2/leb.c (read_offset): Rename; move from read.c. | |
3142 | * dwarf2/leb.h (read_offset): Declare. | |
3143 | ||
2c7d5afc TT |
3144 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3145 | ||
3146 | * dwarf2/read.c (dwarf2_section_size): Remove. | |
3147 | (error_check_comp_unit_head, dwarf2_symbol_mark_computed): | |
3148 | Update. | |
3149 | * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method. | |
3150 | ||
4075cb26 TT |
3151 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3152 | ||
3153 | * dwarf2/read.c (read_initial_length): Move to leb.c. | |
3154 | * dwarf2/leb.h (read_initial_length): Declare. | |
3155 | * dwarf2/leb.c (read_initial_length): Move from read.c. Add | |
3156 | handle_nonstd parameter. | |
3157 | * dwarf2/frame.c (read_initial_length): Remove. | |
3158 | (decode_frame_entry_1): Update. | |
3159 | ||
09ba997f TT |
3160 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3161 | ||
3162 | * dwarf2/loc.c (dwarf2_find_location_expression) | |
3163 | (dwarf_evaluate_loc_desc::get_tls_address) | |
3164 | (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value) | |
3165 | (rw_pieced_value, dwarf2_evaluate_loc_desc_full) | |
3166 | (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property) | |
3167 | (dwarf2_compile_property_to_c) | |
3168 | (dwarf2_loc_desc_get_symbol_read_needs) | |
3169 | (dwarf2_compile_expr_to_ax, locexpr_describe_location) | |
3170 | (locexpr_tracepoint_var_ref, locexpr_generate_c_location) | |
3171 | (loclist_describe_location, loclist_tracepoint_var_ref) | |
3172 | (loclist_generate_c_location): Update. | |
3173 | * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update. | |
3174 | * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size) | |
3175 | (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size) | |
3176 | (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare. | |
3177 | * dwarf2/read.c (dwarf2_per_cu_data::objfile) | |
3178 | (dwarf2_per_cu_data::addr_size) | |
3179 | (dwarf2_per_cu_data::ref_addr_size) | |
3180 | (dwarf2_per_cu_data::text_offset) | |
3181 | (dwarf2_per_cu_data::addr_type): Now methods. | |
3182 | (per_cu_header_read_in): Make per_cu "const". | |
3183 | (dwarf2_version): Remove. | |
3184 | (dwarf2_per_cu_data::int_type): Now a method. | |
3185 | (dwarf2_per_cu_data::_addr_sized_int_type): Likewise. | |
3186 | (set_die_type, read_array_type, read_subrange_index_type) | |
3187 | (read_tag_string_type, read_subrange_type): Update. | |
3188 | * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size, | |
3189 | offset_size, ref_addr_size, text_offset, addr_type, version, | |
3190 | objfile, int_type, addr_sized_int_type>: Declare methods. | |
3191 | ||
96c738c0 TT |
3192 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3193 | ||
3194 | * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>: | |
3195 | Move earlier. | |
3196 | ||
8fdd972c TT |
3197 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3198 | ||
3199 | * dwarf2/read.h (dwarf_line_debug): Declare. | |
3200 | * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c. | |
3201 | * dwarf2/read.c: Move line_header code to new files. | |
3202 | (dwarf_line_debug): No longer static. | |
3203 | * dwarf2/line-header.c: New file. | |
3204 | * dwarf2/line-header.h: New file. | |
3205 | ||
03075812 TT |
3206 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3207 | ||
3208 | * dwarf2/read.c (struct line_header) <file_full_name, | |
3209 | file_file_name>: Return unique_xmalloc_ptr. | |
3210 | (line_header::file_file_name): Update. | |
3211 | (line_header::file_full_name): Update. | |
3212 | (dw2_get_file_names_reader): Update. | |
3213 | (macro_start_file): Update. | |
3214 | ||
bb822404 TT |
3215 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3216 | ||
3217 | * dwarf2/read.c (struct line_header) <file_full_name, | |
3218 | file_file_name>: Declare methods. | |
3219 | (dw2_get_file_names_reader): Update. | |
3220 | (file_file_name): Now a method. | |
3221 | (file_full_name): Likewise. | |
3222 | (macro_start_file): Update. | |
3223 | ||
009b64fc TT |
3224 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3225 | ||
3226 | * dwarf2/read.c (dwarf_always_disassemble) | |
3227 | (show_dwarf_always_disassemble): Move to loc.c. | |
3228 | (_initialize_dwarf2_read): Move "always-disassemble" registration | |
3229 | to loc.c. | |
3230 | * dwarf2/read.h (dwarf_always_disassemble): Don't declare. | |
3231 | * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now | |
3232 | static. | |
3233 | (show_dwarf_always_disassemble): Move from read.c. | |
3234 | (_initialize_dwarf2loc): Move always-disassemble from read.c. | |
3235 | ||
5895093f TT |
3236 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3237 | ||
3238 | * dwarf2/read.c (~dwarf2_per_objfile): Update. | |
3239 | (create_quick_file_names_table): Return htab_up. | |
3240 | (dw2_get_file_names_reader, dw2_forget_cached_source_info): | |
3241 | Update. | |
3242 | * dwarf2/read.h (struct dwarf2_per_objfile) | |
3243 | <quick_file_names_table>: Now htab_up. | |
3244 | ||
b3b32279 TT |
3245 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3246 | ||
3247 | * dwarf2/abbrev.c (abbrev_table::read): Simplify. | |
3248 | ||
1d33d811 TT |
3249 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3250 | ||
3251 | * dwarf2/abbrev.c (abbrev_table): Move constructor from header. | |
3252 | Rewrite. | |
3253 | (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite. | |
3254 | * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove. | |
3255 | (abbrev_table::abbrev_table): No longer inline. | |
3256 | (ABBREV_HASH_SIZE): Remove. | |
3257 | (abbrev_table::m_abbrevs): Now an htab_up. | |
3258 | ||
86de1d91 TT |
3259 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3260 | ||
3261 | * dwarf2/read.c (read_cutu_die_from_dwo): Update. | |
3262 | (cutu_reader): Update. | |
3263 | (build_type_psymtabs_1): Update. | |
3264 | * dwarf2/abbrev.c (abbrev_table::read): Rename. | |
3265 | (abbrev_table::alloc_abbrev): Update. | |
3266 | * dwarf2/abbrev.h (abbrev_table_up): Move earlier. | |
3267 | (abbrev_table::read): New static method, renamed from | |
3268 | abbrev_table_read_table. | |
3269 | (abbrev_table::alloc_abbrev) | |
3270 | (abbrev_table::add_abbrev): Now private. | |
3271 | (abbrev_table::abbrev_table): Now private. | |
3272 | (abbrev_table::m_abbrev_obstack): Now private. Rename. | |
3273 | ||
0335378b TT |
3274 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3275 | ||
3276 | * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update. | |
3277 | * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now | |
3278 | htab_up. | |
3279 | ||
48b490f2 TT |
3280 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3281 | ||
3282 | * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now | |
3283 | htab_up. | |
3284 | (lookup_dwo_unit_in_dwp): Update. | |
3285 | (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate | |
3286 | on obstack. | |
3287 | ||
bc68fb19 TT |
3288 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3289 | ||
3290 | * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on | |
3291 | obstack. | |
3292 | ||
d15acc42 TT |
3293 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3294 | ||
3295 | * dwarf2/read.c (~dwarf2_per_objfile): Don't delete | |
3296 | line_header_hash. | |
3297 | (handle_DW_AT_stmt_list): Update. Don't allocate on obstack. | |
3298 | * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>: | |
3299 | Change type to htab_up. | |
3300 | ||
eaa5fa8b TT |
3301 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3302 | ||
3303 | * dwarf2/read.c (allocate_type_unit_groups_table): Return | |
3304 | htab_up. Don't allocate on obstack. | |
3305 | (get_type_unit_group, dwarf2_build_psymtabs_hard): Update. | |
3306 | * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>: | |
3307 | Change type to htab_up. | |
3308 | ||
b0b6a987 TT |
3309 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3310 | ||
3311 | * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>: | |
3312 | Change type to htab_up. | |
3313 | * dwarf2/read.c (create_signatured_type_table_from_index) | |
3314 | (create_signatured_type_table_from_debug_names) | |
3315 | (create_all_type_units, add_type_unit) | |
3316 | (lookup_dwo_signatured_type, lookup_signatured_type) | |
3317 | (process_skeletonless_type_unit): Update. | |
3318 | (create_debug_type_hash_table, create_debug_types_hash_table): | |
3319 | Change type of types_htab. | |
3320 | (allocate_signatured_type_table, allocate_dwo_unit_table): Return | |
3321 | htab_up. Don't allocate on obstack. | |
3322 | (create_cus_hash_table): Change type of cus_htab parameter. | |
3323 | (struct dwo_file) <cus, tus>: Now htab_up. | |
3324 | (lookup_dwo_signatured_type, lookup_dwo_cutu) | |
3325 | (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu) | |
3326 | (queue_and_load_all_dwo_tus): Update. | |
3327 | * dwarf2/index-write.c (write_gdbindex): Update. | |
3328 | (write_debug_names): Update. | |
3329 | ||
39856def TT |
3330 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3331 | ||
3332 | * dwarf2/read.h (struct dwarf2_queue_item): Move from | |
3333 | dwarf2/read.c. Remove "next" member. Add constructor ntad | |
3334 | destructor. | |
3335 | (struct dwarf2_per_objfile) <queue>: New member. | |
3336 | * dwarf2/read.c (struct dwarf2_queue_item): Move to | |
3337 | dwarf2/read.h. | |
3338 | (dwarf2_queue, dwarf2_queue_tail): Remove. | |
3339 | (class dwarf2_queue_guard): Add parameter to constructor. Use | |
3340 | DISABLE_COPY_AND_ASSIGN. | |
3341 | <m_per_objfile>: New member. | |
3342 | <~dwarf2_queue_guard>: Rewrite. | |
3343 | (dw2_do_instantiate_symtab, queue_comp_unit, process_queue): | |
3344 | Update. | |
3345 | (~dwarf2_queue_item): New. | |
3346 | ||
3e225074 TT |
3347 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3348 | ||
3349 | * dwarf2/read.c (struct die_info) <has_children>: New member. | |
3350 | (dw2_get_file_names_reader): Remove has_children. | |
3351 | (dw2_get_file_names): Update. | |
3352 | (read_cutu_die_from_dwo): Remove has_children. | |
3353 | (cutu_reader::init_tu_and_read_dwo_dies) | |
3354 | (cutu_reader::cutu_reader): Update. | |
3355 | (process_psymtab_comp_unit_reader, build_type_psymtabs_reader): | |
3356 | Remove has_children. | |
3357 | (build_type_psymtabs_1, process_skeletonless_type_unit) | |
3358 | (load_partial_comp_unit, load_full_comp_unit): Update. | |
3359 | (create_dwo_cu_reader): Remove has_children. | |
3360 | (create_cus_hash_table, read_die_and_children): Update. | |
3361 | (read_full_die_1,read_full_die): Remove has_children. | |
3362 | (read_signatured_type): Update. | |
3363 | (class cutu_reader) <has_children>: Remove. | |
3364 | ||
82ca8957 TT |
3365 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3366 | ||
3367 | * dwarf2/expr.c: Rename from dwarf2expr.c. | |
3368 | * dwarf2/expr.h: Rename from dwarf2expr.h. | |
3369 | * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c. | |
3370 | * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h. | |
3371 | * dwarf2/frame.c: Rename from dwarf2-frame.c. | |
3372 | * dwarf2/frame.h: Rename from dwarf2-frame.h. | |
3373 | * dwarf2/index-cache.c: Rename from dwarf-index-cache.c. | |
3374 | * dwarf2/index-cache.h: Rename from dwarf-index-cache.h. | |
3375 | * dwarf2/index-common.c: Rename from dwarf-index-common.c. | |
3376 | * dwarf2/index-common.h: Rename from dwarf-index-common.h. | |
3377 | * dwarf2/index-write.c: Rename from dwarf-index-write.c. | |
3378 | * dwarf2/index-write.h: Rename from dwarf-index-write.h. | |
3379 | * dwarf2/loc.c: Rename from dwarf2loc.c. | |
3380 | * dwarf2/loc.h: Rename from dwarf2loc.h. | |
3381 | * dwarf2/read.c: Rename from dwarf2read.c. | |
3382 | * dwarf2/read.h: Rename from dwarf2read.h. | |
3383 | * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c, | |
3384 | amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c, | |
3385 | compile/compile-c-symbols.c, compile/compile-cplus-symbols.c, | |
3386 | compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c, | |
3387 | gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c, | |
3388 | hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c, | |
3389 | i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c, | |
3390 | m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c, | |
3391 | msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c, | |
3392 | riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c, | |
3393 | s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c, | |
3394 | sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c, | |
3395 | tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c: | |
3396 | Update. | |
3397 | * Makefile.in (COMMON_SFILES): Update. | |
3398 | (HFILES_NO_SRCDIR): Update. | |
3399 | ||
9e35d499 TT |
3400 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3401 | ||
3402 | * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove. | |
3403 | (init_cu_die_reader, read_cutu_die_from_dwo): Update. | |
3404 | ||
1eba2311 TT |
3405 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3406 | ||
3407 | * dwarf2read.h (struct die_info): Don't declare. | |
3408 | ||
e41c2da2 TT |
3409 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3410 | ||
3411 | * dwarf2read.h (die_info_ptr): Remove typedef. | |
3412 | ||
4fc6c0d5 TT |
3413 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3414 | ||
3415 | * dwarf2read.c (read_call_site_scope) | |
3416 | (handle_data_member_location, dwarf2_add_member_fn) | |
3417 | (mark_common_block_symbol_computed, read_common_block) | |
3418 | (attr_to_dynamic_prop, partial_die_info::read) | |
3419 | (var_decode_location, dwarf2_fetch_die_loc_sect_off) | |
3420 | (dwarf2_symbol_mark_computed, set_die_type): Update. | |
3421 | * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare | |
3422 | method. | |
3423 | (attr_form_is_block): Don't declare. | |
3424 | * dwarf2/attribute.c (attribute::form_is_block): Now a method. | |
3425 | ||
cd6c91b4 TT |
3426 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3427 | ||
3428 | * dwarf2read.c (dwarf2_find_base_address, ) | |
3429 | (read_call_site_scope, rust_containing_type) | |
3430 | (dwarf2_get_pc_bounds, dwarf2_record_block_ranges) | |
3431 | (handle_data_member_location, dwarf2_add_member_fn) | |
3432 | (get_alignment, read_structure_type, process_structure_scope) | |
3433 | (mark_common_block_symbol_computed, read_common_block) | |
3434 | (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type) | |
3435 | (partial_die_info::read, read_attribute_value, new_symbol) | |
3436 | (lookup_die_type, dwarf2_get_ref_die_offset) | |
3437 | (dwarf2_get_attr_constant_value, follow_die_ref_or_sig) | |
3438 | (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type) | |
3439 | (dwarf2_symbol_mark_computed): Update. | |
3440 | * dwarf2/attribute.h (struct attribute) <value_as_address, | |
3441 | form_is_section_offset, form_is_constant, form_is_ref>: Declare | |
3442 | methods. | |
3443 | (value_as_address, attr_form_is_section_offset) | |
3444 | (attr_form_is_constant, attr_form_is_ref): Don't declare. | |
3445 | * dwarf2/attribute.c (attribute::value_as_address) | |
3446 | (attribute::form_is_section_offset, attribute::form_is_constant) | |
3447 | (attribute::form_is_ref): Now methods. | |
3448 | ||
162dce55 TT |
3449 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3450 | ||
3451 | * dwarf2read.c (struct attribute, DW_STRING) | |
3452 | (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR) | |
3453 | (DW_SIGNATURE, struct dwarf_block, attr_value_as_address) | |
3454 | (attr_form_is_block, attr_form_is_section_offset) | |
3455 | (attr_form_is_constant, attr_form_is_ref): Move. | |
3456 | * dwarf2/attribute.h: New file. | |
3457 | * dwarf2/attribute.c: New file, from dwarf2read.c. | |
3458 | * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c. | |
3459 | ||
3054dd54 TT |
3460 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3461 | ||
3462 | * dwarf2read.c (abbrev_table_up, struct abbrev_info) | |
3463 | (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table): | |
3464 | Move. | |
3465 | (read_cutu_die_from_dwo, build_type_psymtabs_1): Update. | |
3466 | (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev) | |
3467 | (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to | |
3468 | abbrev.c. | |
3469 | * dwarf2/abbrev.h: New file. | |
3470 | * dwarf2/abbrev.c: New file, from dwarf2read.c. | |
3471 | * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c. | |
3472 | ||
96b79293 TT |
3473 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3474 | ||
3475 | * dwarf2read.c (dwarf2_section_buffer_overflow_complaint) | |
3476 | (dwarf2_section_size, dwarf2_get_section_info) | |
3477 | (create_signatured_type_table_from_debug_names) | |
3478 | (create_addrmap_from_aranges, read_debug_names_from_section) | |
3479 | (get_gdb_index_contents_from_section, read_comp_unit_head) | |
3480 | (error_check_comp_unit_head, read_abbrev_offset) | |
3481 | (create_debug_type_hash_table, init_cu_die_reader) | |
3482 | (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard) | |
3483 | (read_comp_units_from_section, create_cus_hash_table) | |
3484 | (create_dwp_hash_table, create_dwo_unit_in_dwp_v1) | |
3485 | (create_dwp_v2_section, dwarf2_rnglists_process) | |
3486 | (dwarf2_ranges_process, read_die_and_siblings, read_full_die) | |
3487 | (abbrev_table_read_table, read_indirect_string_at_offset_from) | |
3488 | (read_indirect_string_from_dwz, read_addr_index_1) | |
3489 | (read_str_index, dwarf_decode_line_header, skip_form_bytes) | |
3490 | (dwarf_decode_macro_bytes, dwarf_decode_macros) | |
3491 | (fill_in_loclist_baton): Update. | |
3492 | * dwarf2/section.h (struct dwarf2_section_info) <get_name, | |
3493 | get_containing_section, get_bfd_owner, get_bfd_section, | |
3494 | get_file_name, get_id, get_flags, empty, read>: Declare methods. | |
3495 | (dwarf2_read_section, get_section_name, get_section_file_name) | |
3496 | (get_containing_section, get_section_bfd_owner) | |
3497 | (get_section_bfd_section, get_section_name, get_section_file_name) | |
3498 | (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't | |
3499 | declare. | |
3500 | * dwarf2/section.c (dwarf2_section_info::get_containing_section) | |
3501 | (dwarf2_section_info::get_bfd_owner) | |
3502 | (dwarf2_section_info::get_bfd_section) | |
3503 | (dwarf2_section_info::get_name) | |
3504 | (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id) | |
3505 | (dwarf2_section_info::get_flags, dwarf2_section_info::empty) | |
3506 | (dwarf2_section_info::read): Now methods. | |
3507 | * dwarf-index-write.c (class debug_names): Update. | |
3508 | ||
2c86cff9 TT |
3509 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3510 | ||
3511 | * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section): | |
3512 | Move to dwarf2/section.h. | |
3513 | * dwarf2read.c (get_containing_section, get_section_bfd_owner) | |
3514 | (get_section_bfd_section, get_section_name) | |
3515 | (get_section_file_name, get_section_id, get_section_flags) | |
3516 | (dwarf2_section_empty_p, dwarf2_read_section): Moe to | |
3517 | dwarf2/section.c. | |
3518 | * dwarf2/section.h: New file. | |
3519 | * dwarf2/section.c: New file, from dwarf2read.c. | |
3520 | * Makefile.in (COMMON_SFILES): Add dwarf2/section.c. | |
3521 | ||
f4382c45 TT |
3522 | 2020-02-08 Tom Tromey <tom@tromey.com> |
3523 | ||
3524 | * dwarf2read.h (read_unsigned_leb128): Don't declare. | |
3525 | * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes) | |
3526 | (read_2_signed_bytes, read_3_bytes, read_4_bytes) | |
3527 | (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h. | |
3528 | (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c. | |
3529 | * dwarf2/leb.h: New file, from dwarf2read.c. | |
3530 | * dwarf2/leb.c: New file, from dwarf2read.c. | |
3531 | * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes): | |
3532 | Remove. | |
3533 | * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2. | |
3534 | (COMMON_SFILES): Add dwarf2/leb.c. | |
3535 | ||
01840b7a JB |
3536 | 2020-02-08 Joel Brobecker <brobecker@adacore.com> |
3537 | ||
3538 | GDB 9.1 released. | |
3539 | ||
dfcb27e4 IB |
3540 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
3541 | ||
3542 | PR gdb/25190: | |
3543 | * gdb/remote-sim.c (gdb_os_write_stderr): Update. | |
3544 | * gdb/remote.c (remote_console_output): Update. | |
3545 | * gdb/ui-file.c (fputs_unfiltered): Rename to... | |
3546 | (ui_file_puts): ...this. | |
3547 | * gdb/ui-file.h (ui_file_puts): Add declaration. | |
3548 | * gdb/utils.c (emit_style_escape): Update. | |
3549 | (flush_wrap_buffer): Update. | |
3550 | (fputs_maybe_filtered): Update. | |
3551 | (fputs_unfiltered): Add function. | |
3552 | ||
faa17681 IB |
3553 | 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org> |
3554 | ||
3555 | * gdb/event-loop.c (gdb_wait_for_event): Update. | |
3556 | * gdb/printcmd.c (printf_command): Update. | |
3557 | * gdb/remote-fileio.c (remote_fileio_func_write): Update. | |
3558 | * gdb/remote-sim.c (gdb_os_flush_stdout): Update. | |
3559 | (gdb_os_flush_stderr): Update. | |
3560 | * gdb/remote.c (remote_console_output): Update. | |
3561 | * gdb/ui-file.c (gdb_flush): Rename to... | |
3562 | (ui_file_flush): ...this. | |
3563 | (stderr_file::write): Update. | |
3564 | (stderr_file::puts): Update. | |
3565 | * gdb/ui-file.h (gdb_flush): Rename to... | |
3566 | (ui_file_flush): ...this. | |
3567 | * gdb/utils.c (gdb_flush): Add function. | |
3568 | * gdb/utils.h (gdb_flush): Add declaration. | |
3569 | ||
5abbbe1d TT |
3570 | 2020-02-07 Tom Tromey <tromey@adacore.com> |
3571 | ||
3572 | PR breakpoints/24915: | |
3573 | * source.c (find_and_open_source): Do not check basenames_may_differ. | |
3574 | ||
919adfe8 TT |
3575 | 2020-02-07 Tom Tromey <tom@tromey.com> |
3576 | ||
3577 | * README: Update gdbserver documentation. | |
3578 | * gdbserver: Move to top level. | |
3579 | * configure.tgt (build_gdbserver): Remove. | |
3580 | * configure.ac: Remove --enable-gdbserver. | |
3581 | * configure: Rebuild. | |
3582 | * Makefile.in (distclean): Don't mention gdbserver. | |
3583 | ||
1d5d29e7 SV |
3584 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
3585 | ||
3586 | * source-cache.c (source_cache::ensure): Surround | |
3587 | get_plain_source_lines with a try/catch. | |
3588 | (source_cache::get_line_charpos): Get rid of try/catch | |
3589 | and only check for the return value of "ensure". | |
3590 | * tui/tui-source.c (tui_source_window::set_contents): | |
3591 | Simplify "nlines" calculation. | |
3592 | ||
6eb1129c SV |
3593 | 2020-02-06 Shahab Vahedi <shahab@synopsys.com> |
3594 | ||
3595 | * MAINTAINERS (Write After Approval): Add myself. | |
3596 | ||
c6a42d11 CB |
3597 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
3598 | ||
3599 | * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class | |
3600 | function call. | |
3601 | ||
c8ecdda6 CB |
3602 | 2020-02-05 Christian Biesinger <cbiesinger@google.com> |
3603 | ||
3604 | * ppc-nbsd-tdep.h: Fix macro name in #endif comment. | |
3605 | ||
f6480e70 MR |
3606 | 2020-02-05 Maciej W. Rozycki <macro@wdc.com> |
3607 | ||
3608 | * nat/riscv-linux-tdesc.h: New file. | |
3609 | * nat/riscv-linux-tdesc.c: New file, taking code from... | |
3610 | * riscv-linux-nat.c (riscv_linux_nat_target::read_description): | |
3611 | ... here. | |
3612 | * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to | |
3613 | NATDEPFILES. | |
3614 | ||
dcc9fbc6 AB |
3615 | 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com> |
3616 | ||
3617 | * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that | |
3618 | we don't set the fake simulator ptid to the null_ptid. | |
3619 | ||
719546c4 SM |
3620 | 2020-02-03 Simon Marchi <simon.marchi@efficios.com> |
3621 | ||
3622 | * fork-child.c (gdb_startup_inferior): Use bool instead of int. | |
3623 | * gdbthread.h (class thread_info) <resumed>: Likewise. | |
3624 | * infrun.c (resume_1): Likewise. | |
3625 | (proceed): Likewise. | |
3626 | (infrun_thread_stop_requested): Likewise. | |
3627 | (stop_all_threads): Likewise. | |
3628 | (handle_inferior_event): Likewise. | |
3629 | (restart_threads): Likewise. | |
3630 | (finish_step_over): Likewise. | |
3631 | (keep_going_stepped_thread): Likewise. | |
3632 | * linux-nat.c (attach_proc_task_lwp_callback): Likewise. | |
3633 | (linux_handle_extended_wait): Likewise. | |
3634 | * record-btrace.c (get_thread_current_frame_id): Likewise. | |
3635 | * record-full.c (record_full_wait_1): Likewise. | |
3636 | * remote.c (remote_target::process_initial_stop_replies): Likewise. | |
3637 | * target.c (target_resume): Likewise. | |
3638 | * thread.c (set_running_thread): Likewise. | |
3639 | ||
e409c542 AKS |
3640 | 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com> |
3641 | ||
3642 | * f-valprint.c (f77_print_array_1): Changed datatype of index | |
3643 | variable to LONGEST from int to enable it to contain bound | |
3644 | values correctly. | |
3645 | ||
ee98c0da MR |
3646 | 2020-02-03 Maciej W. Rozycki <macro@wdc.com> |
3647 | ||
3648 | * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro. | |
3649 | (supply_fpregset_regnum, fill_fpregset): Handle regset buffer | |
3650 | offsets according to FLEN determined. | |
3651 | (riscv_linux_nat_target::read_description): Determine FLEN | |
3652 | dynamically. | |
3653 | (riscv_linux_nat_target::fetch_registers): Size regset buffer | |
3654 | according to FLEN determined. | |
3655 | (riscv_linux_nat_target::store_registers): Likewise. | |
3656 | ||
aa66aac4 SV |
3657 | 2020-02-01 Shahab Vahedi <shahab@synopsys.com> |
3658 | ||
3659 | * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 | |
3660 | when reg->group is empty and reggroup is not. | |
3661 | ||
fd9faca8 TT |
3662 | 2020-01-31 Tom Tromey <tromey@adacore.com> |
3663 | ||
3664 | * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior): | |
3665 | Call beneath target's mourn_inferior after unpushing. | |
3666 | ||
42330a68 AB |
3667 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
3668 | ||
3669 | PR tui/9765 | |
3670 | * tui/tui-disasm.c (tui_find_disassembly_address): If we don't | |
3671 | have enough lines to fill the screen, still return the lowest | |
3672 | address we found. | |
3673 | ||
7a27a45b AB |
3674 | 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com> |
3675 | ||
3676 | * tui/tui-win.c (_initialize_tui_win): Update help text for '+', | |
3677 | '-', '<', and '>' commands. | |
3678 | ||
c47f70e2 PA |
3679 | 2020-01-29 Pedro Alves <palves@redhat.com> |
3680 | Sergio Durigan Junior <sergiodj@redhat.com> | |
3681 | ||
3682 | * infcmd.c (construct_inferior_arguments): Assert that | |
3683 | 'argc' is greater than 0. | |
3684 | ||
5133a315 LM |
3685 | 2020-01-29 Luis Machado <luis.machado@linaro.org> |
3686 | ||
3687 | * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f. | |
3688 | (BRK_INSN_MASK): Define to 0xd4200000. | |
3689 | (aarch64_program_breakpoint_here_p): New function. | |
3690 | (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook. | |
3691 | * arch-utils.c (default_program_breakpoint_here_p): Moved from | |
3692 | breakpoint.c. | |
3693 | * arch-utils.h (default_program_breakpoint_here_p): Moved from | |
3694 | breakpoint.h | |
3695 | * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and | |
3696 | call gdbarch_program_breakpoint_here_p. | |
3697 | (program_breakpoint_here): Moved to arch-utils.c, renamed to | |
3698 | default_program_breakpoint_here_p, changed return type to bool and | |
3699 | simplified. | |
3700 | * breakpoint.h (program_breakpoint_here): Moved prototype to | |
3701 | arch-utils.h, renamed to default_program_breakpoint_here_p and changed | |
3702 | return type to bool. | |
3703 | * gdbarch.c: Regenerate. | |
3704 | * gdbarch.h: Regenerate. | |
3705 | * gdbarch.sh (program_breakpoint_here_p): New method. | |
3706 | * infrun.c (handle_signal_stop): Call | |
3707 | gdbarch_program_breakpoint_here_p. | |
3708 | ||
168f8c6b TT |
3709 | 2020-01-26 Tom Tromey <tom@tromey.com> |
3710 | ||
3711 | * ctfread.c (struct ctf_fp_info): Reindent. | |
3712 | (_initialize_ctfread): Remove. | |
3713 | ||
128a391f TT |
3714 | 2020-01-26 Tom Tromey <tom@tromey.com> |
3715 | ||
3716 | * psymtab.c (partial_map_expand_apply) | |
3717 | (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol) | |
3718 | (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab) | |
3719 | (psym_print_stats, psym_expand_symtabs_for_function) | |
3720 | (psym_map_symbol_filenames, psym_map_matching_symbols) | |
3721 | (psym_expand_symtabs_matching) | |
3722 | (partial_symtab::read_dependencies, maintenance_info_psymtabs) | |
3723 | (maintenance_check_psymtabs): Use new methods. | |
3724 | * psympriv.h (struct partial_symtab) <readin_p, | |
3725 | get_compunit_symtab>: New methods. | |
3726 | <readin, compunit_symtab>: Remove members. | |
3727 | (struct standard_psymtab): New. | |
3728 | (struct legacy_psymtab): Derive from standard_psymtab. | |
3729 | * dwarf2read.h (struct dwarf2_psymtab): Derive from | |
3730 | standard_psymtab. | |
3731 | * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab. | |
3732 | ||
0494dbec TT |
3733 | 2020-01-26 Tom Tromey <tom@tromey.com> |
3734 | ||
3735 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Call | |
3736 | read_dependencies. Add assert. | |
3737 | * psymtab.c (partial_symtab::read_dependencies): New method. | |
3738 | * psympriv.h (struct partial_symtab) <read_dependencies>: New | |
3739 | method. | |
3740 | * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies. | |
3741 | * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call | |
3742 | read_dependencies. | |
3743 | * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies. | |
3744 | Add assert. | |
3745 | ||
8566b89b TT |
3746 | 2020-01-26 Tom Tromey <tom@tromey.com> |
3747 | ||
3748 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order. | |
3749 | Call expand_psymtab. | |
3750 | (xcoff_read_symtab): Call expand_psymtab. | |
3751 | (xcoff_start_psymtab, xcoff_end_psymtab): Set | |
3752 | legacy_expand_psymtab. | |
3753 | * psympriv.h (struct partial_symtab) <expand_psymtab>: New | |
3754 | method. | |
3755 | (struct legacy_psymtab) <expand_psymtab>: Implement. | |
3756 | <legacy_expand_psymtab>: New member. | |
3757 | * mdebugread.c (mdebug_read_symtab): Call expand_psymtab. | |
3758 | (parse_partial_symbols): Set legacy_expand_psymtab. | |
3759 | (psymtab_to_symtab_1): Change argument order. Call | |
3760 | expand_psymtab. | |
3761 | (new_psymtab): Set legacy_expand_psymtab. | |
3762 | * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare. | |
3763 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Call | |
3764 | expand_psymtab. | |
3765 | (dwarf2_psymtab::expand_psymtab): Rename from | |
3766 | psymtab_to_symtab_1. Call expand_psymtab. | |
3767 | * dbxread.c (start_psymtab): Set legacy_expand_psymtab. | |
3768 | (dbx_end_psymtab): Likewise. | |
3769 | (dbx_psymtab_to_symtab_1): Change argument order. Call | |
3770 | expand_psymtab. | |
3771 | (dbx_read_symtab): Call expand_psymtab. | |
3772 | * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare. | |
3773 | (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab. | |
3774 | (ctf_psymtab::read_symtab): Call expand_psymtab. | |
3775 | ||
077cbab2 TT |
3776 | 2020-01-26 Tom Tromey <tom@tromey.com> |
3777 | ||
3778 | * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert. | |
3779 | * psymtab.c (psymtab_to_symtab): Print verbose "Reading" | |
3780 | messages. | |
3781 | * mdebugread.c (mdebug_read_symtab): Remove prints. | |
3782 | * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add | |
3783 | assert. | |
3784 | * dbxread.c (dbx_read_symtab): Remove prints. Add assert. | |
3785 | ||
891813be TT |
3786 | 2020-01-26 Tom Tromey <tom@tromey.com> |
3787 | ||
3788 | * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab) | |
3789 | (xcoff_psymtab_to_symtab_1, xcoff_read_symtab) | |
3790 | (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use | |
3791 | legacy_symtab. | |
3792 | * stabsread.h (dbx_end_psymtab): Use legacy_symtab. | |
3793 | * psymtab.c (psymtab_to_symtab): Call method. | |
3794 | (dump_psymtab): Update. | |
3795 | * psympriv.h (struct partial_symtab): Add virtual destructor. | |
3796 | <read_symtab>: New method. | |
3797 | (struct legacy_symtab): New. | |
3798 | * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab. | |
3799 | (struct pst_map) <pst>: Now a legacy_psymtab. | |
3800 | (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1) | |
3801 | (new_psymtab): Use legacy_psymtab. | |
3802 | * dwarf2read.h (struct dwarf2_psymtab): New. | |
3803 | (struct dwarf2_per_cu_data) <psymtab>: Use it. | |
3804 | * dwarf2read.c (dwarf2_create_include_psymtab) | |
3805 | (dwarf2_build_include_psymtabs, create_type_unit_group) | |
3806 | (create_partial_symtab, process_psymtab_comp_unit_reader) | |
3807 | (build_type_psymtabs_reader, build_type_psymtab_dependencies) | |
3808 | (set_partial_user): Use dwarf2_psymtab. | |
3809 | (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab. | |
3810 | (psymtab_to_symtab_1, process_full_comp_unit) | |
3811 | (process_full_type_unit, dwarf2_ranges_read) | |
3812 | (dwarf2_get_pc_bounds, psymtab_include_file_name) | |
3813 | (dwarf_decode_lines): Use dwarf2_psymtab. | |
3814 | * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab. | |
3815 | (add_address_entry_worker, write_one_signatured_type) | |
3816 | (recursively_count_psymbols, recursively_write_psymbols) | |
3817 | (write_one_signatured_type, psyms_seen_size, write_gdbindex) | |
3818 | (write_debug_names): Likewise. | |
3819 | * dbxread.c (struct header_file_location): Take a legacy_psymtab. | |
3820 | <pst>: Now a legacy_psymtab. | |
3821 | (find_corresponding_bincl_psymtab): Return a legacy_psymtab. | |
3822 | (read_dbx_symtab, start_psymtab, dbx_end_psymtab) | |
3823 | (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab. | |
3824 | * ctfread.c (struct ctf_psymtab): New. | |
3825 | (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a | |
3826 | ctf_psymtab. | |
3827 | (ctf_psymtab::read_symtab): Rename from ctf_read_symtab. | |
3828 | (create_partial_symtab): Return a ctf_psymtab. | |
3829 | (scan_partial_symbols): Update. | |
3830 | ||
c3693a1d TT |
3831 | 2020-01-26 Tom Tromey <tom@tromey.com> |
3832 | ||
3833 | * xcoffread.c (xcoff_start_psymtab): Use new. | |
3834 | * psymtab.c (partial_symtab::partial_symtab): New constructor, | |
3835 | renamed from start_psymtab_common. | |
3836 | * psympriv.h (struct partial_symtab): Add new constructor. | |
3837 | (start_psymtab_common): Don't declare. | |
3838 | * mdebugread.c (parse_partial_symbols): Use new. | |
3839 | * dwarf2read.c (create_partial_symtab): Use new. | |
3840 | * dbxread.c (start_psymtab): Use new. | |
3841 | * ctfread.c (create_partial_symtab): Use new. | |
3842 | ||
32caafd0 TT |
3843 | 2020-01-26 Tom Tromey <tom@tromey.com> |
3844 | ||
3845 | * xcoffread.c (xcoff_end_psymtab): Use new. | |
3846 | * psymtab.c (start_psymtab_common): Use new. | |
3847 | (partial_symtab::partial_symtab): Rename from allocate_psymtab. | |
3848 | Update. | |
3849 | * psympriv.h (struct partial_symtab): Add parameters to | |
3850 | constructor. Don't inline. | |
3851 | (allocate_psymtab): Don't declare. | |
3852 | * mdebugread.c (new_psymtab): Use new. | |
3853 | * dwarf2read.c (dwarf2_create_include_psymtab): Use new. | |
3854 | * dbxread.c (dbx_end_psymtab): Use new. | |
3855 | ||
abaa2f23 TT |
3856 | 2020-01-26 Tom Tromey <tom@tromey.com> |
3857 | ||
3858 | * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from | |
3859 | allocate_psymtab. Update documentation. | |
3860 | * psymtab.c (psymtab_storage::install_psymtab): Rename from | |
3861 | allocate_psymtab. Do not use new. | |
3862 | (allocate_psymtab): Use new. Update. | |
3863 | ||
6d94535f TT |
3864 | 2020-01-26 Tom Tromey <tom@tromey.com> |
3865 | ||
3866 | * xcoffread.c (xcoff_psymtab_to_symtab_1): Update. | |
3867 | * psymtab.c (psym_print_stats): Update. | |
3868 | * psympriv.h (struct partial_symtab) <readin, | |
3869 | psymtabs_addrmap_supported, anonymous>: Now bool. | |
3870 | * mdebugread.c (psymtab_to_symtab_1): Update. | |
3871 | * dwarf2read.c (create_type_unit_group, create_partial_symtab) | |
3872 | (build_type_psymtabs_reader, psymtab_to_symtab_1) | |
3873 | (process_full_comp_unit, process_full_type_unit): Update. | |
3874 | * dbxread.c (dbx_psymtab_to_symtab_1): Update. | |
3875 | * ctfread.c (psymtab_to_symtab): Update. | |
3876 | ||
6f17252b TT |
3877 | 2020-01-26 Tom Tromey <tom@tromey.com> |
3878 | ||
3879 | * mdebugread.c (parse_partial_symbols): Use discard_psymtab. | |
3880 | * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove. | |
3881 | * psymtab.c (psymtab_storage): Delete psymtabs. | |
3882 | (psymtab_storage::allocate_psymtab): Use new. | |
3883 | (psymtab_storage::discard_psymtab): Use delete. | |
3884 | * psympriv.h (struct partial_symtab): Add constructor and | |
3885 | initializers. | |
3886 | ||
f6f1cebc TT |
3887 | 2020-01-26 Tom Tromey <tom@tromey.com> |
3888 | ||
3889 | * machoread.c: Do not include psympriv.h. | |
3890 | ||
e47e48f6 PW |
3891 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3892 | ||
3893 | * NEWS: Mention the new option and the set/show commands. | |
3894 | ||
a2fedca9 PW |
3895 | 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
3896 | ||
3897 | * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode) | |
3898 | (show_exec_file_mismatch_command, set_exec_file_mismatch_command) | |
3899 | (validate_exec_file): New variables, enums, functions. | |
3900 | (exec_file_locate_attach, print_section_info): Style the filenames. | |
3901 | (_initialize_exec): Install show_exec_file_mismatch_command and | |
3902 | set_exec_file_mismatch_command. | |
3903 | * gdbcore.h (validate_exec_file): Declare. | |
3904 | * infcmd.c (attach_command): Call validate_exec_file. | |
3905 | * remote.c ( remote_target::remote_add_inferior): Likewise. | |
3906 | ||
7ffa82e1 AB |
3907 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3908 | ||
3909 | * frame.c (find_frame_sal): Move call to get_next_frame into more | |
3910 | inner scope. | |
3911 | * inline-frame.c (inilne_state) <inline_state>: Update argument | |
3912 | types. | |
3913 | (inilne_state) <skipped_symbol>: Rename to... | |
3914 | (inilne_state) <skipped_symbols>: ...this, and change to a vector. | |
3915 | (skip_inline_frames): Build vector of skipped symbols and use this | |
3916 | to reate the inline_state. | |
3917 | (inline_skipped_symbol): Add a comment and some assertions, fetch | |
3918 | skipped symbol from the list. | |
3919 | ||
3d92a3e3 AB |
3920 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3921 | ||
3922 | * buildsym.c (lte_is_less_than): Delete. | |
3923 | (buildsym_compunit::end_symtab_with_blockvector): Create local | |
3924 | lambda function to sort line table entries, and use | |
3925 | std::stable_sort instead of std::sort. | |
3926 | * symtab.c (find_pc_sect_line): Skip backward over end of sequence | |
3927 | markers when looking for a previous line. | |
3928 | ||
94a72be7 AB |
3929 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3930 | ||
3931 | * dwarf2read.c (lnp_state_machine::record_line): Include | |
3932 | end_sequence parameter in debug print out. Record the line if we | |
3933 | are at an end_sequence marker even if it's not the start of a | |
3934 | statement. | |
3935 | * symmisc.c (maintenance_print_one_line_table): Print end of | |
3936 | sequence markers with 'END' not '0'. | |
3937 | ||
53af73bf PA |
3938 | 2020-01-24 Pedro Alves <palves@redhat.com> |
3939 | ||
3940 | PR gdb/25410 | |
3941 | * thread.c (scoped_restore_current_thread::restore): Use | |
3942 | switch_to_inferior_no_thread. | |
3943 | * exec.c: Include "progspace-and-thread.h". | |
3944 | (add_target_sections, remove_target_sections): | |
3945 | scoped_restore_current_pspace_and_thread instead of | |
3946 | scoped_restore_current_thread. | |
3947 | * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace | |
3948 | and aspace to the inferior before calling clone_program_space. | |
3949 | Remove stale comment. | |
3950 | ||
3050c6f4 CB |
3951 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
3952 | ||
3953 | * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to... | |
3954 | (arm_netbsd_nat_target::fetch_registers): ...this. | |
3955 | (arm_nbsd_nat_target::store_registers): Rename to... | |
3956 | (arm_netbsd_nat_target::store_registers): ...this. | |
3957 | ||
73685c7e CB |
3958 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
3959 | ||
3960 | * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of | |
3961 | register_t. | |
3962 | ||
89203d40 CB |
3963 | 2020-01-24 Christian Biesinger <cbiesinger@google.com> |
3964 | ||
3965 | * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections): | |
3966 | Update comment. | |
3967 | * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections): | |
3968 | Likewise. | |
3969 | * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise. | |
3970 | * gdbcore.h (deprecated_add_core_fns): Update comment to point to | |
3971 | the correct replacement (iterate_over_regset_sections). | |
3972 | * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections): | |
3973 | Update comment. | |
3974 | ||
1ba1ac88 AB |
3975 | 2020-01-24 Graham Markall <graham.markall@embecosm.com> |
3976 | ||
3977 | PR gdb/23718 | |
3978 | * gdb/python/python.c (execute_gdb_command): Call | |
3979 | async_enable_stdin in catch block. | |
3980 | ||
f3364a6d AB |
3981 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3982 | ||
3983 | * event-loop.c (start_event_loop): Wrap async_enable_stdin with | |
3984 | SWITCH_THRU_ALL_UIS. | |
3985 | ||
733d0a67 AB |
3986 | 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com> |
3987 | ||
3988 | PR tui/9765 | |
3989 | * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header | |
3990 | comment, add extra parameter, and update to store previous symbol | |
3991 | when appropriate. | |
3992 | * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment, | |
3993 | add extra parameter. | |
3994 | * tui/tui-disasm.c (tui_disassemble): Update header comment, | |
3995 | remove unneeded parameter, add try/catch around gdb_print_insn, | |
3996 | rewrite to add items to asm_lines vector. | |
3997 | (tui_find_backward_disassembly_start_address): New function. | |
3998 | (tui_find_disassembly_address): Updated throughout. | |
3999 | (tui_disasm_window::set_contents): Update for changes to | |
4000 | tui_disassemble. | |
4001 | (tui_disasm_window::do_scroll_vertical): No need to adjust the | |
4002 | number of lines to scroll. | |
4003 | ||
b3b3bada SM |
4004 | 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca> |
4005 | ||
4006 | * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up. | |
4007 | (SECT_OFF_DATA): Likewise. | |
4008 | (SECT_OFF_RODATA): Likewise. | |
4009 | (SECT_OFF_TEXT): Likewise. | |
4010 | (SECT_OFF_BSS): Likewise. | |
4011 | (struct objfile) <text_section_offset, data_section_offset>: New | |
4012 | methods. | |
4013 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use | |
4014 | objfile::text_section_offset. | |
4015 | * coff-pe-read.c (add_pe_forwarded_sym): Likewise. | |
4016 | * coffread.c (coff_symtab_read): Likewise. | |
4017 | (enter_linenos): Likewise. | |
4018 | (process_coff_symbol): Likewise. | |
4019 | * ctfread.c (get_objfile_text_range): Likewise. | |
4020 | * dtrace-probe.c (dtrace_probe::get_relocated_address): | |
4021 | Use objfile::data_section_offset. | |
4022 | * dwarf2-frame.c (execute_cfa_program): Use | |
4023 | objfile::text_section_offset. | |
4024 | (dwarf2_frame_find_fde): Likewise. | |
4025 | * dwarf2read.c (create_addrmap_from_index): Likewise. | |
4026 | (create_addrmap_from_aranges): Likewise. | |
4027 | (dw2_find_pc_sect_compunit_symtab): Likewise. | |
4028 | (process_psymtab_comp_unit_reader): Likewise. | |
4029 | (add_partial_symbol): Likewise. | |
4030 | (add_partial_subprogram): Likewise. | |
4031 | (process_full_comp_unit): Likewise. | |
4032 | (read_file_scope): Likewise. | |
4033 | (read_func_scope): Likewise. | |
4034 | (read_lexical_block_scope): Likewise. | |
4035 | (read_call_site_scope): Likewise. | |
4036 | (dwarf2_rnglists_process): Likewise. | |
4037 | (dwarf2_ranges_process): Likewise. | |
4038 | (dwarf2_ranges_read): Likewise. | |
4039 | (dwarf_decode_lines_1): Likewise. | |
4040 | (new_symbol): Likewise. | |
4041 | (dwarf2_fetch_die_loc_sect_off): Likewise. | |
4042 | (dwarf2_per_cu_text_offset): Likewise. | |
4043 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise. | |
4044 | * hppa-tdep.c (read_unwind_info): Likewise. | |
4045 | * ia64-tdep.c (ia64_find_unwind_table): Likewise. | |
4046 | * psympriv.h (struct partial_symtab): Likewise. | |
4047 | * psymtab.c (find_pc_sect_psymtab): Likewise. | |
4048 | * solib-svr4.c (enable_break): Likewise. | |
4049 | * stap-probe.c (relocate_address): Use | |
4050 | objfile::data_section_offset. | |
4051 | * xcoffread.c (enter_line_range): Use | |
4052 | objfile::text_section_offset. | |
4053 | (read_xcoff_symtab): Likewise. | |
4054 | ||
ab53f382 SM |
4055 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
4056 | ||
4057 | * darwin-nat.c (darwin_nat_target::wait_1): Move `inf` | |
4058 | declaration to narrower scopes. | |
4059 | ||
e7eee665 SM |
4060 | 2020-01-23 Simon Marchi <simon.marchi@efficios.com> |
4061 | ||
4062 | * darwin-nat.h (struct darwin_exception_msg, enum | |
4063 | darwin_msg_state, struct darwin_thread_info, darwin_thread_t): | |
4064 | Move up. | |
4065 | (class darwin_nat_target) <wait_1, check_new_threads, | |
4066 | decode_exception_message, decode_message, stop_inferior, | |
4067 | init_thread_list, ptrace_him, cancel_breakpoint>: Declare. | |
4068 | * darwin-nat.c (darwin_check_new_threads): Rename to... | |
4069 | (darwin_nat_target::check_new_threads): ... this. | |
4070 | (darwin_suspend_inferior_it): Remove. | |
4071 | (darwin_decode_exception_message): Rename to... | |
4072 | (darwin_nat_target::decode_exception_message): ... this. | |
4073 | (darwin_nat_target::resume): Pass target to find_inferior_ptid. | |
4074 | (darwin_decode_message): Rename to... | |
4075 | (darwin_nat_target::decode_message): ... this. | |
4076 | (cancel_breakpoint): Rename to... | |
4077 | (darwin_nat_target::cancel_breakpoint): ... this. | |
4078 | (darwin_wait): Rename to... | |
4079 | (darwin_nat_target::wait_1): ... this. Use range-based for loop | |
4080 | instead of iterate_over_inferiors. | |
4081 | (darwin_nat_target::wait): Call wait_1 instead of darwin_wait. | |
4082 | (darwin_stop_inferior): Rename to... | |
4083 | (darwin_nat_target::stop_inferior): ... this. | |
4084 | (darwin_nat_target::kill): Call wait_1 instead of darwin_wait. | |
4085 | (darwin_init_thread_list): Rename to... | |
4086 | (darwin_nat_target::init_thread_list): ... this. | |
4087 | (darwin_ptrace_him): Rename to... | |
4088 | (darwin_nat_target::ptrace_him): ... this. | |
4089 | (darwin_nat_target::create_inferior): Pass lambda function to | |
4090 | fork_inferior. | |
4091 | (darwin_nat_target::detach): Call stop_inferior instead of | |
4092 | darwin_stop_inferior. | |
4093 | * fork-inferior.h (fork_inferior): Change init_trace_fun | |
4094 | parameter to gdb::function_view. | |
4095 | * fork-inferior.c (fork_inferior): Likewise. | |
4096 | ||
c162ed3e HD |
4097 | 2020-01-23 Hannes Domani <ssbssa@yahoo.de> |
4098 | ||
4099 | * i386-cygwin-tdep.c (core_process_module_section): Update. | |
4100 | * windows-nat.c (struct lm_info_windows): Add text_offset. | |
4101 | (windows_xfer_shared_libraries): Update. | |
4102 | * windows-tdep.c (windows_xfer_shared_library): | |
4103 | Add text_offset_cached argument. | |
4104 | * windows-tdep.h (windows_xfer_shared_library): Update. | |
4105 | ||
a1237872 SM |
4106 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
4107 | ||
4108 | * gdbarch.sh: Add declaration for _initialize_gdbarch. | |
4109 | ||
b3ee6dd9 SM |
4110 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
4111 | ||
4112 | * remote-sim.c (check_for_duplicate_sim_descriptor): Remove. | |
4113 | (get_sim_inferior_data): Remove use of iterate_over_inferiors, | |
4114 | replace with range-based for. | |
4115 | (gdbsim_interrupt_inferior): Remove. | |
4116 | (gdbsim_target::interrupt): Replace iterate_over_inferiors use | |
4117 | with a range-based for. Inline code from | |
4118 | gdbsim_interrupt_inferior. | |
4119 | ||
f9fac3c8 SM |
4120 | 2020-01-21 Simon Marchi <simon.marchi@efficios.com> |
4121 | ||
4122 | * infrun.c (proceed): Fix indentation. | |
4123 | ||
f6474de9 TT |
4124 | 2020-01-21 Tom Tromey <tromey@adacore.com> |
4125 | ||
4126 | * source-cache.c (source_cache::ensure): Call ext_lang_colorize. | |
4127 | * python/python.c (python_extension_ops): Update. | |
4128 | (gdbpy_colorize): New function. | |
4129 | * python/lib/gdb/__init__.py (colorize): New function. | |
4130 | * extension.h (ext_lang_colorize): Declare. | |
4131 | * extension.c (ext_lang_colorize): New function. | |
4132 | * extension-priv.h (struct extension_language_ops) <colorize>: New | |
4133 | member. | |
4134 | * cli/cli-style.c (_initialize_cli_style): Update help text. | |
4135 | ||
f0c702d4 LM |
4136 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
4137 | ||
4138 | * aarch64-tdep.c (struct aarch64_displaced_step_closure) | |
4139 | <cond>: Change type to bool. | |
4140 | (aarch64_displaced_step_b_cond): Update cond to use bool type. | |
4141 | (aarch64_displaced_step_cb): Likewise. | |
4142 | (aarch64_displaced_step_tb): Likewise. | |
4143 | ||
1ab139e5 LM |
4144 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
4145 | ||
4146 | * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging | |
4147 | output. | |
4148 | ||
0c271889 LM |
4149 | 2020-01-21 Luis Machado <luis.machado@linaro.org> |
4150 | ||
4151 | * aarch64-tdep.c (struct aarch64_displaced_step_closure ) | |
4152 | <pc_adjust>: Adjust the documentation. | |
4153 | (aarch64_displaced_step_fixup): Check if PC really moved before | |
4154 | adjusting it. | |
4155 | ||
4d89c1c7 TT |
4156 | 2020-01-19 Tom Tromey <tom@tromey.com> |
4157 | ||
4158 | * disasm.c (~gdb_disassembler): New destructor. | |
4159 | (gdb_buffered_insn_length): Call disassemble_free_target. | |
4160 | * disasm.h (class gdb_disassembler): Declare destructor. Use | |
4161 | DISABLE_COPY_AND_ASSIGN. | |
4162 | ||
c0ab21c2 TT |
4163 | 2020-01-19 Tom Tromey <tom@tromey.com> |
4164 | ||
4165 | * dwarf2read.c (abbrev_table_up): Move typedef earlier. | |
4166 | (die_reader_func_ftype): Remove. | |
4167 | (cutu_reader): New class. | |
4168 | (dw2_get_file_names_reader): Remove "data" parameter. | |
4169 | (dw2_get_file_names): Use cutu_reader. | |
4170 | (create_debug_type_hash_table): Update. | |
4171 | (read_cutu_die_from_dwo): Update comment. | |
4172 | (lookup_dwo_unit): Add dwo_name parameter. | |
4173 | (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove | |
4174 | die_reader_func_ftype and data parameters. | |
4175 | (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies. | |
4176 | Remove die_reader_func_ftype and data parameters. | |
4177 | (~cutu_reader): New; from init_cutu_and_read_dies. | |
4178 | (cutu_reader::cutu_reader): Rename from | |
4179 | init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype | |
4180 | and data parameters. | |
4181 | (init_cutu_and_read_dies_simple): Remove. | |
4182 | (struct process_psymtab_comp_unit_data): Remove. | |
4183 | (process_psymtab_comp_unit_reader): Remove data parameter; add | |
4184 | want_partial_unit and pretend_language parameters. | |
4185 | (process_psymtab_comp_unit): Use cutu_reader. | |
4186 | (build_type_psymtabs_reader): Remove data parameter. | |
4187 | (build_type_psymtabs_1): Use cutu_reader. | |
4188 | (process_skeletonless_type_unit): Likewise. | |
4189 | (load_partial_comp_unit_reader): Remove. | |
4190 | (load_partial_comp_unit): Use cutu_reader. | |
4191 | (load_full_comp_unit_reader): Remove. | |
4192 | (load_full_comp_unit): Use cutu_reader. | |
4193 | (struct create_dwo_cu_data): Remove. | |
4194 | (create_dwo_cu_reader): Remove datap parameter; add dwo_file and | |
4195 | dwo_unit parameters. | |
4196 | (create_cus_hash_table): Use cutu_reader. | |
4197 | (struct dwarf2_read_addr_index_data): Remove. | |
4198 | (dwarf2_read_addr_index_reader): Remove. | |
4199 | (dwarf2_read_addr_index): Use cutu_reader. | |
4200 | (read_signatured_type_reader): Remove. | |
4201 | (read_signatured_type): Use cutu_reader. | |
4202 | ||
45bbae5c TT |
4203 | 2020-01-19 Tom Tromey <tom@tromey.com> |
4204 | ||
4205 | * tui/tui.c (tui_show_assembly): Use tui_suppress_output. | |
4206 | * tui/tui-wingeneral.h (class tui_suppress_output): New. | |
4207 | (tui_wrefresh): Declare. | |
4208 | * tui/tui-wingeneral.c (suppress_output): New global. | |
4209 | (tui_suppress_output, ~tui_suppress_output): New constructor and | |
4210 | destructor. | |
4211 | (tui_wrefresh): New function. | |
4212 | (tui_gen_win_info::refresh_window): Use tui_wrefresh. | |
4213 | (tui_gen_win_info::make_window): Call wnoutrefresh when needed. | |
4214 | * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare | |
4215 | method. | |
4216 | * tui/tui-regs.c (tui_data_window::erase_data_content): Call | |
4217 | tui_wrefresh. | |
4218 | (tui_data_window::no_refresh): New method. | |
4219 | (tui_data_item_window::refresh_window): Call tui_wrefresh. | |
4220 | (tui_reg_command): Use tui_suppress_output | |
4221 | * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output. | |
4222 | * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New | |
4223 | method. | |
4224 | * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh. | |
4225 | ||
4f13c1c0 TT |
4226 | 2020-01-19 Tom Tromey <tom@tromey.com> |
4227 | ||
4228 | * tui/tui-winsource.c (tui_update_source_windows_with_line): | |
4229 | Handle case where symtab is null. | |
4230 | ||
fa47e446 SM |
4231 | 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca> |
4232 | ||
4233 | * linux-fork.c (one_fork_p): Simplify. | |
4234 | ||
26f42329 SM |
4235 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
4236 | ||
4237 | * top.c (struct qt_args): Remove. | |
4238 | (kill_or_detach): Change return type to void, replace `void *` | |
4239 | parameter with a proper one. | |
4240 | (print_inferior_quit_action): Likewise. | |
4241 | (quit_confirm): Use range-based for loop to iterate over inferiors. | |
4242 | (quit_force): Likewise. | |
4243 | ||
a9ac81b1 SM |
4244 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
4245 | ||
4246 | * mi/mi-main.c (run_one_inferior): Change return type to void, replace | |
4247 | `void *` parameter with proper parameters. | |
4248 | (mi_cmd_exec_run): Use range-based loop to iterate over inferiors. | |
4249 | (print_one_inferior): Change return type to void, replace `void *` | |
4250 | parameter with proper parameters. | |
4251 | (mi_cmd_list_thread_groups): Use range-based loop to iterate over | |
4252 | inferiors. | |
4253 | (get_other_inferior): Remove. | |
4254 | (mi_cmd_remove_inferior): Use range-based loop to iterate over | |
4255 | inferiors. | |
4256 | ||
788eca49 SM |
4257 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
4258 | ||
4259 | * mi/mi-interp.c (report_initial_inferior): Remove. | |
4260 | (mi_interp::init): Use range-based for to iterate over inferiors. | |
4261 | ||
d9bc85b6 SM |
4262 | 2020-01-17 Simon Marchi <simon.marchi@efficios.com> |
4263 | ||
4264 | * python/py-inferior.c (build_inferior_list): Remove. | |
4265 | (gdbpy_ref): Use range-based for loop to iterate over inferiors. | |
4266 | ||
40c94099 CB |
4267 | 2020-01-16 Christian Biesinger <cbiesinger@google.com> |
4268 | ||
4269 | * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown). | |
4270 | (btrace_stitch_trace): Likewise. | |
4271 | * charset.c (intermediate_encoding): Likewise (vaild). | |
4272 | * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown). | |
4273 | * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences). | |
4274 | * record-btrace.c (record_btrace_print_conf): Likewise (unkown). | |
4275 | ||
e0cdfe3c HD |
4276 | 2020-01-16 Hannes Domani <ssbssa@yahoo.de> |
4277 | ||
4278 | * windows-tdep.c (windows_get_tlb_type): | |
4279 | Add rtl_user_process_parameters type. | |
4280 | ||
790f1718 PA |
4281 | 2020-01-16 Pedro Alves <palves@redhat.com> |
4282 | Norbert Lange <nolange79@gmail.com> | |
4283 | ||
4284 | PR build/24805 | |
4285 | * gdbsupport/gdb_proc_service.h (PS_EXPORT): New. | |
4286 | (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs) | |
4287 | (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue) | |
4288 | (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread) | |
4289 | (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs) | |
4290 | (ps_plog): Redeclare exported functions with default visibility. | |
4291 | ||
3112ed97 NA |
4292 | 2020-01-16 Nitika Achra <Nitika.Achra@amd.com> |
4293 | ||
4294 | * dwarf2loc.c (decode_debug_loclists_addresses): Handle | |
4295 | DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length. | |
4296 | ||
8dc3273e SM |
4297 | 2020-01-15 Simon Marchi <simon.marchi@efficios.com> |
4298 | ||
4299 | * infcmd.c (post_create_inferior): Use get_thread_regcache | |
4300 | instead of get_current_regcache. | |
4301 | ||
ff47f4f0 TT |
4302 | 2020-01-14 Tom Tromey <tom@tromey.com> |
4303 | ||
4304 | PR symtab/12535: | |
4305 | * python/python.c (gdbpy_decode_line): Treat empty string the same | |
4306 | as no argument. | |
4307 | ||
975f45b7 TT |
4308 | 2020-01-14 Tom Tromey <tom@tromey.com> |
4309 | ||
4310 | * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY). | |
4311 | ||
25e57356 TT |
4312 | 2020-01-14 Tom Tromey <tom@tromey.com> |
4313 | ||
4314 | * nat/linux-btrace.c: Don't include <config.h>. | |
4315 | * nat/linux-ptrace.c: Don't include <config.h>. | |
4316 | * nat/x86-linux-dregs.c: Don't include <config.h>. | |
4317 | ||
05ea2a05 TT |
4318 | 2020-01-14 Tom Tromey <tom@tromey.com> |
4319 | ||
4320 | * configure: Rebuild. | |
4321 | * configure.ac: Move many checks to ../gdbsupport/common.m4. | |
4322 | ||
01027315 TT |
4323 | 2020-01-14 Tom Tromey <tom@tromey.com> |
4324 | ||
4325 | * nat/x86-linux-dregs.c: Include configh.h. | |
4326 | * nat/linux-ptrace.c: Include configh.h. | |
4327 | * nat/linux-btrace.c: Include configh.h. | |
4328 | * defs.h: Include config.h, bfd.h. | |
4329 | * configure.ac: Don't source common.host. | |
4330 | (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files. | |
4331 | * configure: Rebuild. | |
4332 | * acinclude.m4: Update path. | |
4333 | * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables. | |
4334 | (CONFIG_SRC_SUBDIR): Remove gdbsupport. | |
4335 | (INTERNAL_CFLAGS_BASE): Add INCSUPPORT. | |
4336 | (CLIBS): Add LIBSUPPORT. | |
4337 | (CDEPS): Likewise. | |
4338 | (COMMON_SFILES): Remove gdbsupport files. | |
4339 | (HFILES_NO_SRCDIR): Likewise. | |
4340 | (stamp-version): Update path to create-version.sh. | |
4341 | (ALLDEPFILES): Remove gdbsupport files. | |
4342 | ||
b2ceabe8 TT |
4343 | 2020-01-14 Tom Tromey <tom@tromey.com> |
4344 | ||
4345 | * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and | |
4346 | USE_WIN32API when needed. | |
4347 | * configure.ac (USE_WIN32API): Don't define. | |
4348 | (WIN32LIBS): Use WIN32APILIBS. | |
4349 | * configure: Rebuild. | |
4350 | ||
25c51f71 TT |
4351 | 2020-01-14 Tom Tromey <tom@tromey.com> |
4352 | ||
4353 | * configure: Rebuild. | |
4354 | * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation. | |
4355 | ||
717c684d BE |
4356 | 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4357 | ||
4358 | * skip.c (skip_function_command): Make skip w/o arguments use the | |
4359 | name of the inlined function if pc is inside any inlined function. | |
4360 | ||
7da6a5b9 LM |
4361 | 2020-01-14 Luis Machado <luis.machado@linaro.org> |
4362 | ||
4363 | * inf-ptrace.c (inf_ptrace_target::resume): Update comments. | |
4364 | * infrun.c (resume_1): Likewise. | |
4365 | (handle_inferior_event): Remove stale comment. | |
4366 | * linux-nat.c (linux_nat_target::resume): Update comments. | |
4367 | (save_stop_reason): Likewise. | |
4368 | (linux_nat_filter_event): Likewise. | |
4369 | * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise. | |
4370 | ||
44e4c775 AB |
4371 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
4372 | ||
4373 | * elfread.c (record_minimal_symbol): Set section index to 0 for | |
4374 | non-allocatable sections. | |
4375 | ||
18a8505e AT |
4376 | |
4377 | 2020-01-13 Ali Tamur <tamur@google.com> | |
4378 | ||
4379 | * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections. | |
4380 | (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base | |
4381 | to gdb::optional. Update comments. | |
4382 | (dwo_file): Update comments. | |
4383 | (read_attribute): Update API to take an additional out parameter, | |
4384 | need_reprocess. This is used to mark attributes that need other | |
4385 | attributes (e.g. str_offsets_base) for correct computation which may not | |
4386 | have been read yet. | |
4387 | (read_attribute_reprocess): New function declaration. | |
4388 | (read_addr_index): Likewise. | |
4389 | (read_dwo_str_index): Likewise. | |
4390 | (read_stub_str_index): Likewise. | |
4391 | (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section. | |
4392 | (lookup_addr_base): New function definition. | |
4393 | (lookup_ranges_base): Likewise. | |
4394 | (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base, | |
4395 | lookup_ranges_base. | |
4396 | (init_cutu_and_read_dies): Update comments. | |
4397 | (init_cutu_and_read_dies_no_follow): Change API to take parent compile | |
4398 | unit. This is used to inherit parent's str_offsets_base and addr_base. | |
4399 | Update comments. | |
4400 | (init_cutu_and_read_dies_simple): Reflect API changes. | |
4401 | (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx. | |
4402 | (create_cus_hash_table): Change API to take parent compile unit. | |
4403 | Reflect API changes. | |
4404 | (open_and_init_dwo_file): Reflect API changes. | |
4405 | (dwarf2_get_pc_bounds): Update comments. | |
4406 | (dwarf2_record_block_ranges): Likewise. | |
4407 | (read_full_die_1): Change implementation to reprocess attributes that | |
4408 | need str_offsets_base and addr_base. | |
4409 | (partial_die_info::read): Likewise. | |
4410 | (read_attribute_reprocess): New function definition. | |
4411 | (read_attribute_value): Change API to take an additional out parameter, | |
4412 | need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error | |
4413 | when a non-dwo compile unit has index based attributes. | |
4414 | (read_attribute): Reflect API changes. | |
4415 | (read_addr_index_1): Reflect API changes. Update comments. | |
4416 | (dwarf2_read_addr_index_data): Reflect API changes. | |
4417 | (dwarf2_read_addr_index): Likewise. | |
4418 | (read_str_index): Change API and implementation. This becomes a helper | |
4419 | to be used by the new string index related methods. Update error | |
4420 | message and comments. | |
4421 | (read_dwo_str_index): New function definition. | |
4422 | (read_stub_str_index): Likewise. | |
4423 | * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field. | |
4424 | * symfile.h (dwarf2_debug_sections): Likewise. | |
4425 | * xcoffread.c (dwarf2_debug_sections): Likewise. | |
4426 | ||
0cac9354 SM |
4427 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
4428 | ||
4429 | * gdbcore.h (struct core_fns) <core_read_registers>: Change | |
4430 | core_reg_sect type to gdb_byte *. | |
4431 | * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise. | |
4432 | * cris-tdep.c (fetch_core_registers): Likewise. | |
4433 | * corelow.c (core_target::get_core_register_section): Change | |
4434 | type of `contents` to gdb::byte_vector. | |
4435 | ||
9a6d629c AB |
4436 | 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com> |
4437 | ||
4438 | * tui/tui-wingeneral.c (box_win): Position the title in the center | |
4439 | of the border. | |
4440 | ||
d8b2f9e3 SM |
4441 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
4442 | ||
4443 | * corelow.c (core_target::get_core_register_section): Use | |
4444 | std::vector instead of alloca. | |
4445 | ||
bb564c58 SM |
4446 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
4447 | ||
4448 | * warning.m4: Add -Wmissing-declarations to build_warnings. | |
4449 | * configure: Re-generate. | |
4450 | ||
6b366111 SM |
4451 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
4452 | ||
4453 | * python/python.c (init__gdb_module): Add declaration. | |
4454 | ||
6c265988 SM |
4455 | 2020-01-13 Simon Marchi <simon.marchi@efficios.com> |
4456 | ||
4457 | * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration. | |
4458 | * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration. | |
4459 | * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration. | |
4460 | * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration. | |
4461 | * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration. | |
4462 | * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration. | |
4463 | * ada-exp.y (_initialize_ada_exp): Add declaration. | |
4464 | * ada-lang.c (_initialize_ada_language): Add declaration. | |
4465 | * ada-tasks.c (_initialize_tasks): Add declaration. | |
4466 | * agent.c (_initialize_agent): Add declaration. | |
4467 | * aix-thread.c (_initialize_aix_thread): Add declaration. | |
4468 | * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration. | |
4469 | * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration. | |
4470 | * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration. | |
4471 | * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration. | |
4472 | * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration. | |
4473 | * alpha-tdep.c (_initialize_alpha_tdep): Add declaration. | |
4474 | * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration. | |
4475 | * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration. | |
4476 | * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration. | |
4477 | * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration. | |
4478 | * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration. | |
4479 | * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration. | |
4480 | * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration. | |
4481 | * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration. | |
4482 | * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration. | |
4483 | * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration. | |
4484 | * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration. | |
4485 | * amd64-tdep.c (_initialize_amd64_tdep): Add declaration. | |
4486 | * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration. | |
4487 | * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration. | |
4488 | * annotate.c (_initialize_annotate): Add declaration. | |
4489 | * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration. | |
4490 | * arc-tdep.c (_initialize_arc_tdep): Add declaration. | |
4491 | * arch-utils.c (_initialize_gdbarch_utils): Add declaration. | |
4492 | * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration. | |
4493 | * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration. | |
4494 | * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration. | |
4495 | * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration. | |
4496 | * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration. | |
4497 | * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration. | |
4498 | * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration. | |
4499 | * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration. | |
4500 | * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration. | |
4501 | * arm-tdep.c (_initialize_arm_tdep): Add declaration. | |
4502 | * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration. | |
4503 | * auto-load.c (_initialize_auto_load): Add declaration. | |
4504 | * auxv.c (_initialize_auxv): Add declaration. | |
4505 | * avr-tdep.c (_initialize_avr_tdep): Add declaration. | |
4506 | * ax-gdb.c (_initialize_ax_gdb): Add declaration. | |
4507 | * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration. | |
4508 | * bfin-tdep.c (_initialize_bfin_tdep): Add declaration. | |
4509 | * break-catch-sig.c (_initialize_break_catch_sig): Add declaration. | |
4510 | * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration. | |
4511 | * break-catch-throw.c (_initialize_break_catch_throw): Add declaration. | |
4512 | * breakpoint.c (_initialize_breakpoint): Add declaration. | |
4513 | * bsd-uthread.c (_initialize_bsd_uthread): Add declaration. | |
4514 | * btrace.c (_initialize_btrace): Add declaration. | |
4515 | * charset.c (_initialize_charset): Add declaration. | |
4516 | * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration. | |
4517 | * cli/cli-dump.c (_initialize_cli_dump): Add declaration. | |
4518 | * cli/cli-interp.c (_initialize_cli_interp): Add declaration. | |
4519 | * cli/cli-logging.c (_initialize_cli_logging): Add declaration. | |
4520 | * cli/cli-script.c (_initialize_cli_script): Add declaration. | |
4521 | * cli/cli-style.c (_initialize_cli_style): Add declaration. | |
4522 | * coff-pe-read.c (_initialize_coff_pe_read): Add declaration. | |
4523 | * coffread.c (_initialize_coffread): Add declaration. | |
4524 | * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration. | |
4525 | * compile/compile.c (_initialize_compile): Add declaration. | |
4526 | * complaints.c (_initialize_complaints): Add declaration. | |
4527 | * completer.c (_initialize_completer): Add declaration. | |
4528 | * copying.c (_initialize_copying): Add declaration. | |
4529 | * corefile.c (_initialize_core): Add declaration. | |
4530 | * corelow.c (_initialize_corelow): Add declaration. | |
4531 | * cp-abi.c (_initialize_cp_abi): Add declaration. | |
4532 | * cp-namespace.c (_initialize_cp_namespace): Add declaration. | |
4533 | * cp-support.c (_initialize_cp_support): Add declaration. | |
4534 | * cp-valprint.c (_initialize_cp_valprint): Add declaration. | |
4535 | * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration. | |
4536 | * cris-tdep.c (_initialize_cris_tdep): Add declaration. | |
4537 | * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration. | |
4538 | * csky-tdep.c (_initialize_csky_tdep): Add declaration. | |
4539 | * ctfread.c (_initialize_ctfread): Add declaration. | |
4540 | * d-lang.c (_initialize_d_language): Add declaration. | |
4541 | * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration. | |
4542 | * darwin-nat.c (_initialize_darwin_nat): Add declaration. | |
4543 | * dbxread.c (_initialize_dbxread): Add declaration. | |
4544 | * dcache.c (_initialize_dcache): Add declaration. | |
4545 | * disasm-selftests.c (_initialize_disasm_selftests): Add declaration. | |
4546 | * disasm.c (_initialize_disasm): Add declaration. | |
4547 | * dtrace-probe.c (_initialize_dtrace_probe): Add declaration. | |
4548 | * dummy-frame.c (_initialize_dummy_frame): Add declaration. | |
4549 | * dwarf-index-cache.c (_initialize_index_cache): Add declaration. | |
4550 | * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration. | |
4551 | * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration. | |
4552 | * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration. | |
4553 | * dwarf2expr.c (_initialize_dwarf2expr): Add declaration. | |
4554 | * dwarf2loc.c (_initialize_dwarf2loc): Add declaration. | |
4555 | * dwarf2read.c (_initialize_dwarf2_read): Add declaration. | |
4556 | * elfread.c (_initialize_elfread): Add declaration. | |
4557 | * exec.c (_initialize_exec): Add declaration. | |
4558 | * extension.c (_initialize_extension): Add declaration. | |
4559 | * f-lang.c (_initialize_f_language): Add declaration. | |
4560 | * f-valprint.c (_initialize_f_valprint): Add declaration. | |
4561 | * fbsd-nat.c (_initialize_fbsd_nat): Add declaration. | |
4562 | * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration. | |
4563 | * filesystem.c (_initialize_filesystem): Add declaration. | |
4564 | * findcmd.c (_initialize_mem_search): Add declaration. | |
4565 | * findvar.c (_initialize_findvar): Add declaration. | |
4566 | * fork-child.c (_initialize_fork_child): Add declaration. | |
4567 | * frame-base.c (_initialize_frame_base): Add declaration. | |
4568 | * frame-unwind.c (_initialize_frame_unwind): Add declaration. | |
4569 | * frame.c (_initialize_frame): Add declaration. | |
4570 | * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration. | |
4571 | * frv-tdep.c (_initialize_frv_tdep): Add declaration. | |
4572 | * ft32-tdep.c (_initialize_ft32_tdep): Add declaration. | |
4573 | * gcore.c (_initialize_gcore): Add declaration. | |
4574 | * gdb-demangle.c (_initialize_gdb_demangle): Add declaration. | |
4575 | * gdb_bfd.c (_initialize_gdb_bfd): Add declaration. | |
4576 | * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration. | |
4577 | * gdbarch.c (_initialize_gdbarch): Add declaration. | |
4578 | * gdbtypes.c (_initialize_gdbtypes): Add declaration. | |
4579 | * gnu-nat.c (_initialize_gnu_nat): Add declaration. | |
4580 | * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration. | |
4581 | * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration. | |
4582 | * go-lang.c (_initialize_go_language): Add declaration. | |
4583 | * go32-nat.c (_initialize_go32_nat): Add declaration. | |
4584 | * guile/guile.c (_initialize_guile): Add declaration. | |
4585 | * h8300-tdep.c (_initialize_h8300_tdep): Add declaration. | |
4586 | * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration. | |
4587 | * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration. | |
4588 | * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration. | |
4589 | * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration. | |
4590 | * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration. | |
4591 | * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration. | |
4592 | * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. | |
4593 | * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration. | |
4594 | * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration. | |
4595 | * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration. | |
4596 | * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration. | |
4597 | * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration. | |
4598 | * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration. | |
4599 | * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration. | |
4600 | * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration. | |
4601 | * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration. | |
4602 | * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration. | |
4603 | * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration. | |
4604 | * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration. | |
4605 | * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration. | |
4606 | * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration. | |
4607 | * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration. | |
4608 | * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration. | |
4609 | * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration. | |
4610 | * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration. | |
4611 | * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration. | |
4612 | * i386-tdep.c (_initialize_i386_tdep): Add declaration. | |
4613 | * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration. | |
4614 | * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration. | |
4615 | * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration. | |
4616 | * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration. | |
4617 | * ia64-tdep.c (_initialize_ia64_tdep): Add declaration. | |
4618 | * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration. | |
4619 | * infcall.c (_initialize_infcall): Add declaration. | |
4620 | * infcmd.c (_initialize_infcmd): Add declaration. | |
4621 | * inflow.c (_initialize_inflow): Add declaration. | |
4622 | * infrun.c (_initialize_infrun): Add declaration. | |
4623 | * interps.c (_initialize_interpreter): Add declaration. | |
4624 | * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration. | |
4625 | * jit.c (_initialize_jit): Add declaration. | |
4626 | * language.c (_initialize_language): Add declaration. | |
4627 | * linux-fork.c (_initialize_linux_fork): Add declaration. | |
4628 | * linux-nat.c (_initialize_linux_nat): Add declaration. | |
4629 | * linux-tdep.c (_initialize_linux_tdep): Add declaration. | |
4630 | * linux-thread-db.c (_initialize_thread_db): Add declaration. | |
4631 | * lm32-tdep.c (_initialize_lm32_tdep): Add declaration. | |
4632 | * m2-lang.c (_initialize_m2_language): Add declaration. | |
4633 | * m32c-tdep.c (_initialize_m32c_tdep): Add declaration. | |
4634 | * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration. | |
4635 | * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration. | |
4636 | * m32r-tdep.c (_initialize_m32r_tdep): Add declaration. | |
4637 | * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration. | |
4638 | * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration. | |
4639 | * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration. | |
4640 | * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration. | |
4641 | * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration. | |
4642 | * m68k-tdep.c (_initialize_m68k_tdep): Add declaration. | |
4643 | * machoread.c (_initialize_machoread): Add declaration. | |
4644 | * macrocmd.c (_initialize_macrocmd): Add declaration. | |
4645 | * macroscope.c (_initialize_macroscope): Add declaration. | |
4646 | * maint-test-options.c (_initialize_maint_test_options): Add declaration. | |
4647 | * maint-test-settings.c (_initialize_maint_test_settings): Add declaration. | |
4648 | * maint.c (_initialize_maint_cmds): Add declaration. | |
4649 | * mdebugread.c (_initialize_mdebugread): Add declaration. | |
4650 | * memattr.c (_initialize_mem): Add declaration. | |
4651 | * mep-tdep.c (_initialize_mep_tdep): Add declaration. | |
4652 | * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration. | |
4653 | * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration. | |
4654 | * mi/mi-interp.c (_initialize_mi_interp): Add declaration. | |
4655 | * mi/mi-main.c (_initialize_mi_main): Add declaration. | |
4656 | * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration. | |
4657 | * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration. | |
4658 | * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration. | |
4659 | * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration. | |
4660 | * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration. | |
4661 | * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration. | |
4662 | * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration. | |
4663 | * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration. | |
4664 | * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration. | |
4665 | * mips-tdep.c (_initialize_mips_tdep): Add declaration. | |
4666 | * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration. | |
4667 | * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration. | |
4668 | * mipsread.c (_initialize_mipsread): Add declaration. | |
4669 | * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration. | |
4670 | * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration. | |
4671 | * moxie-tdep.c (_initialize_moxie_tdep): Add declaration. | |
4672 | * msp430-tdep.c (_initialize_msp430_tdep): Add declaration. | |
4673 | * nds32-tdep.c (_initialize_nds32_tdep): Add declaration. | |
4674 | * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration. | |
4675 | * nios2-tdep.c (_initialize_nios2_tdep): Add declaration. | |
4676 | * nto-procfs.c (_initialize_procfs): Add declaration. | |
4677 | * objc-lang.c (_initialize_objc_language): Add declaration. | |
4678 | * observable.c (_initialize_observer): Add declaration. | |
4679 | * opencl-lang.c (_initialize_opencl_language): Add declaration. | |
4680 | * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration. | |
4681 | * or1k-tdep.c (_initialize_or1k_tdep): Add declaration. | |
4682 | * osabi.c (_initialize_gdb_osabi): Add declaration. | |
4683 | * osdata.c (_initialize_osdata): Add declaration. | |
4684 | * p-valprint.c (_initialize_pascal_valprint): Add declaration. | |
4685 | * parse.c (_initialize_parse): Add declaration. | |
4686 | * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration. | |
4687 | * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration. | |
4688 | * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration. | |
4689 | * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration. | |
4690 | * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration. | |
4691 | * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration. | |
4692 | * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration. | |
4693 | * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration. | |
4694 | * printcmd.c (_initialize_printcmd): Add declaration. | |
4695 | * probe.c (_initialize_probe): Add declaration. | |
4696 | * proc-api.c (_initialize_proc_api): Add declaration. | |
4697 | * proc-events.c (_initialize_proc_events): Add declaration. | |
4698 | * proc-service.c (_initialize_proc_service): Add declaration. | |
4699 | * procfs.c (_initialize_procfs): Add declaration. | |
4700 | * producer.c (_initialize_producer): Add declaration. | |
4701 | * psymtab.c (_initialize_psymtab): Add declaration. | |
4702 | * python/python.c (_initialize_python): Add declaration. | |
4703 | * ravenscar-thread.c (_initialize_ravenscar): Add declaration. | |
4704 | * record-btrace.c (_initialize_record_btrace): Add declaration. | |
4705 | * record-full.c (_initialize_record_full): Add declaration. | |
4706 | * record.c (_initialize_record): Add declaration. | |
4707 | * regcache-dump.c (_initialize_regcache_dump): Add declaration. | |
4708 | * regcache.c (_initialize_regcache): Add declaration. | |
4709 | * reggroups.c (_initialize_reggroup): Add declaration. | |
4710 | * remote-notif.c (_initialize_notif): Add declaration. | |
4711 | * remote-sim.c (_initialize_remote_sim): Add declaration. | |
4712 | * remote.c (_initialize_remote): Add declaration. | |
4713 | * reverse.c (_initialize_reverse): Add declaration. | |
4714 | * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration. | |
4715 | * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration. | |
4716 | * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration. | |
4717 | * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration. | |
4718 | * riscv-tdep.c (_initialize_riscv_tdep): Add declaration. | |
4719 | * rl78-tdep.c (_initialize_rl78_tdep): Add declaration. | |
4720 | * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration. | |
4721 | * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep): | |
4722 | Add declaration. | |
4723 | * rs6000-nat.c (_initialize_rs6000_nat): Add declaration. | |
4724 | * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration. | |
4725 | * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration. | |
4726 | * rust-exp.y (_initialize_rust_exp): Add declaration. | |
4727 | * rx-tdep.c (_initialize_rx_tdep): Add declaration. | |
4728 | * s12z-tdep.c (_initialize_s12z_tdep): Add declaration. | |
4729 | * s390-linux-nat.c (_initialize_s390_nat): Add declaration. | |
4730 | * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration. | |
4731 | * s390-tdep.c (_initialize_s390_tdep): Add declaration. | |
4732 | * score-tdep.c (_initialize_score_tdep): Add declaration. | |
4733 | * ser-go32.c (_initialize_ser_dos): Add declaration. | |
4734 | * ser-mingw.c (_initialize_ser_windows): Add declaration. | |
4735 | * ser-pipe.c (_initialize_ser_pipe): Add declaration. | |
4736 | * ser-tcp.c (_initialize_ser_tcp): Add declaration. | |
4737 | * ser-uds.c (_initialize_ser_socket): Add declaration. | |
4738 | * ser-unix.c (_initialize_ser_hardwire): Add declaration. | |
4739 | * serial.c (_initialize_serial): Add declaration. | |
4740 | * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration. | |
4741 | * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration. | |
4742 | * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration. | |
4743 | * sh-tdep.c (_initialize_sh_tdep): Add declaration. | |
4744 | * skip.c (_initialize_step_skip): Add declaration. | |
4745 | * sol-thread.c (_initialize_sol_thread): Add declaration. | |
4746 | * solib-aix.c (_initialize_solib_aix): Add declaration. | |
4747 | * solib-darwin.c (_initialize_darwin_solib): Add declaration. | |
4748 | * solib-dsbt.c (_initialize_dsbt_solib): Add declaration. | |
4749 | * solib-frv.c (_initialize_frv_solib): Add declaration. | |
4750 | * solib-svr4.c (_initialize_svr4_solib): Add declaration. | |
4751 | * solib-target.c (_initialize_solib_target): Add declaration. | |
4752 | * solib.c (_initialize_solib): Add declaration. | |
4753 | * source-cache.c (_initialize_source_cache): Add declaration. | |
4754 | * source.c (_initialize_source): Add declaration. | |
4755 | * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration. | |
4756 | * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration. | |
4757 | * sparc-nat.c (_initialize_sparc_nat): Add declaration. | |
4758 | * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration. | |
4759 | * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration. | |
4760 | * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration. | |
4761 | * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration. | |
4762 | * sparc-tdep.c (_initialize_sparc_tdep): Add declaration. | |
4763 | * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration. | |
4764 | * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration. | |
4765 | * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration. | |
4766 | * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration. | |
4767 | * sparc64-nat.c (_initialize_sparc64_nat): Add declaration. | |
4768 | * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration. | |
4769 | * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration. | |
4770 | * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration. | |
4771 | * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration. | |
4772 | * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration. | |
4773 | * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration. | |
4774 | * stabsread.c (_initialize_stabsread): Add declaration. | |
4775 | * stack.c (_initialize_stack): Add declaration. | |
4776 | * stap-probe.c (_initialize_stap_probe): Add declaration. | |
4777 | * std-regs.c (_initialize_frame_reg): Add declaration. | |
4778 | * symfile-debug.c (_initialize_symfile_debug): Add declaration. | |
4779 | * symfile-mem.c (_initialize_symfile_mem): Add declaration. | |
4780 | * symfile.c (_initialize_symfile): Add declaration. | |
4781 | * symmisc.c (_initialize_symmisc): Add declaration. | |
4782 | * symtab.c (_initialize_symtab): Add declaration. | |
4783 | * target.c (_initialize_target): Add declaration. | |
4784 | * target-connection.c (_initialize_target_connection): Add | |
4785 | declaration. | |
4786 | * target-dcache.c (_initialize_target_dcache): Add declaration. | |
4787 | * target-descriptions.c (_initialize_target_descriptions): Add declaration. | |
4788 | * thread.c (_initialize_thread): Add declaration. | |
4789 | * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration. | |
4790 | * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration. | |
4791 | * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration. | |
4792 | * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration. | |
4793 | * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration. | |
4794 | * tracectf.c (_initialize_ctf): Add declaration. | |
4795 | * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration. | |
4796 | * tracefile.c (_initialize_tracefile): Add declaration. | |
4797 | * tracepoint.c (_initialize_tracepoint): Add declaration. | |
4798 | * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration. | |
4799 | * tui/tui-interp.c (_initialize_tui_interp): Add declaration. | |
4800 | * tui/tui-layout.c (_initialize_tui_layout): Add declaration. | |
4801 | * tui/tui-regs.c (_initialize_tui_regs): Add declaration. | |
4802 | * tui/tui-stack.c (_initialize_tui_stack): Add declaration. | |
4803 | * tui/tui-win.c (_initialize_tui_win): Add declaration. | |
4804 | * tui/tui.c (_initialize_tui): Add declaration. | |
4805 | * typeprint.c (_initialize_typeprint): Add declaration. | |
4806 | * ui-style.c (_initialize_ui_style): Add declaration. | |
4807 | * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration. | |
4808 | * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration. | |
4809 | * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration. | |
4810 | * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration. | |
4811 | * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration. | |
4812 | * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration. | |
4813 | * unittests/filtered_iterator-selftests.c | |
4814 | (_initialize_filtered_iterator_selftests): Add declaration. | |
4815 | * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration. | |
4816 | * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration. | |
4817 | * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration. | |
4818 | * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration. | |
4819 | * unittests/main-thread-selftests.c | |
4820 | (_initialize_main_thread_selftests): Add declaration. | |
4821 | * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration. | |
4822 | * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration. | |
4823 | * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration. | |
4824 | * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration. | |
4825 | * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration. | |
4826 | * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration. | |
4827 | * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration. | |
4828 | * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration. | |
4829 | * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration. | |
4830 | * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration. | |
4831 | * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration. | |
4832 | * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration. | |
4833 | * unittests/style-selftests.c (_initialize_style_selftest): Add declaration. | |
4834 | * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration. | |
4835 | * unittests/tui-selftests.c (_initialize_tui_selftest): Add | |
4836 | declaration. | |
4837 | * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration. | |
4838 | * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration. | |
4839 | * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration. | |
4840 | * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration. | |
4841 | * user-regs.c (_initialize_user_regs): Add declaration. | |
4842 | * utils.c (_initialize_utils): Add declaration. | |
4843 | * v850-tdep.c (_initialize_v850_tdep): Add declaration. | |
4844 | * valops.c (_initialize_valops): Add declaration. | |
4845 | * valprint.c (_initialize_valprint): Add declaration. | |
4846 | * value.c (_initialize_values): Add declaration. | |
4847 | * varobj.c (_initialize_varobj): Add declaration. | |
4848 | * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration. | |
4849 | * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration. | |
4850 | * vax-tdep.c (_initialize_vax_tdep): Add declaration. | |
4851 | * windows-nat.c (_initialize_windows_nat): Add declaration. | |
4852 | (_initialize_check_for_gdb_ini): Add declaration. | |
4853 | (_initialize_loadable): Add declaration. | |
4854 | * windows-tdep.c (_initialize_windows_tdep): Add declaration. | |
4855 | * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration. | |
4856 | * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration. | |
4857 | * xcoffread.c (_initialize_xcoffread): Add declaration. | |
4858 | * xml-support.c (_initialize_xml_support): Add declaration. | |
4859 | * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration. | |
4860 | * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration. | |
4861 | * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration. | |
4862 | * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration. | |
4863 | ||
e2de1eec SM |
4864 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
4865 | ||
4866 | * regformats/regdat.sh: Generate declaration for init function. | |
4867 | ||
e0037b4c SM |
4868 | 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca> |
4869 | ||
4870 | * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move | |
4871 | up. | |
4872 | (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior, | |
4873 | close_one_inferior>: New methods. | |
4874 | (get_sim_inferior_data_by_ptid): Move to gdbsim_target, | |
4875 | pass down target to find_inferior_pid. | |
4876 | (gdbsim_target::fetch_registers, gdbsim_target::store_registers): | |
4877 | Pass down target to find_inferior_ptid. | |
4878 | (gdbsim_target::create_inferior): Pass down target to | |
4879 | add_thread_silent. | |
4880 | (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass | |
4881 | target down to find_inferior_ptid and switch_to_thread. | |
4882 | (gdbsim_target::close): Update to call close_one_inferior. | |
4883 | (struct resume_data): Remove. | |
4884 | (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments | |
4885 | directly, rather than through a void pointer. | |
4886 | (gdbsim_target::resume): Update to call resume_one_inferior. | |
4887 | ||
58920b5b SM |
4888 | 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca> |
4889 | ||
4890 | * gdbsupport/gdb_wait.c: Include gdb_wait.h. | |
4891 | ||
4ec89149 PA |
4892 | 2020-01-12 Pedro Alves <palves@redhat.com> |
4893 | ||
4894 | * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent | |
4895 | directly for the current inferior instead of | |
4896 | discard_all_inferiors. | |
4897 | (discard_all_inferiors): Delete. | |
4898 | ||
7c392d1d TT |
4899 | 2020-01-11 Tom Tromey <tom@tromey.com> |
4900 | ||
4901 | * tui/tui-wingeneral.c (box_win): Check cli_styling. | |
4902 | * tui/tui-winsource.c (tui_source_window_base::refill): Use | |
4903 | deprecated_safe_get_selected_frame. | |
4904 | ||
d9ebdab7 TBA |
4905 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
4906 | ||
4907 | * inferior.c (print_inferior): Switch inferior before printing it. | |
4908 | ||
f3c469b9 PA |
4909 | 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com> |
4910 | Pedro Alves <palves@redhat.com> | |
4911 | ||
4912 | * progspace-and-thread.c (switch_to_program_space_and_thread): | |
4913 | Assert there's an inferior for PSPACE. Use | |
4914 | switch_to_inferior_no_thread to switch the inferior too. | |
4915 | * progspace.c (program_space::~program_space): Call | |
4916 | clear_symtab_users here, with SYMFILE_DEFER_BP_RESET. | |
4917 | (program_space::free_all_objfiles): Don't call clear_symtab_users | |
4918 | here. | |
4919 | * symfile.c (symbol_file_clear): Call clear_symtab_users here. | |
4920 | ||
65c574f6 PA |
4921 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4922 | ||
4923 | * NEWS: Mention multi-target debugging, "info connections", and | |
4924 | "add-inferior -no-connection". | |
4925 | ||
2f4fcf00 PA |
4926 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4927 | ||
4928 | * infrun.c: Include "target-connection.h". | |
4929 | (check_multi_target_resumption): New. | |
4930 | (proceed): Call it. | |
4931 | * target-connection.c (make_target_connection_string): Make | |
4932 | extern. | |
4933 | * target-connection.h (make_target_connection_string): Declare. | |
4934 | ||
121b3efd PA |
4935 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4936 | ||
4937 | * Makefile.in (COMMON_SFILES): Add target-connection.c. | |
4938 | * inferior.c (uiout_field_connection): New function. | |
4939 | (print_inferior): Add new "connection-id" column. | |
4940 | (add_inferior_command): Show connection number/string of added | |
4941 | inferior. | |
4942 | * process-stratum-target.h | |
4943 | (process_stratum_target::connection_string): New virtual method. | |
4944 | (process_stratum_target::connection_number): New field. | |
4945 | * remote.c (remote_target::connection_string): New override. | |
4946 | * target-connection.c: New file. | |
4947 | * target-connection.h: New file. | |
4948 | * target.c (decref_target): Remove process_stratum targets from | |
4949 | the connection list. | |
4950 | (target_stack::push): Add process_stratum targets to the | |
4951 | connection list. | |
4952 | ||
4f837581 PA |
4953 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4954 | ||
4955 | Revert: | |
4956 | 2016-04-12 Pedro Alves <palves@redhat.com> | |
4957 | * serial.c (serial_open, serial_fdopen_ops, do_serial_close): | |
4958 | Remove references to name. | |
4959 | * serial.h (struct serial) <name>: Delete. | |
4960 | ||
f4ec508e PA |
4961 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4962 | ||
4963 | * gdbarch-selftests.c (register_to_value_test): Remove "target | |
4964 | already pushed" check. | |
4965 | ||
5b6d1e4f PA |
4966 | 2020-01-10 Pedro Alves <palves@redhat.com> |
4967 | John Baldwin <jhb@FreeBSD.org> | |
4968 | ||
4969 | * aarch64-linux-nat.c | |
4970 | (aarch64_linux_nat_target::thread_architecture): Adjust. | |
4971 | * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call. | |
4972 | (task_command_1): Likewise. | |
4973 | * aix-thread.c (sync_threadlists, aix_thread_target::resume) | |
4974 | (aix_thread_target::wait, aix_thread_target::fetch_registers) | |
4975 | (aix_thread_target::store_registers) | |
4976 | (aix_thread_target::thread_alive): Adjust. | |
4977 | * amd64-fbsd-tdep.c: Include "inferior.h". | |
4978 | (amd64fbsd_get_thread_local_address): Pass down target. | |
4979 | * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle | |
4980 | thread's gdbarch instead of target_gdbarch. | |
4981 | * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to | |
4982 | get_last_target_status. | |
4983 | * break-catch-syscall.c (print_it_catch_syscall): Likewise. | |
4984 | * breakpoint.c (breakpoints_should_be_inserted_now): Consider all | |
4985 | inferiors. | |
4986 | (update_inserted_breakpoint_locations): Skip if inferiors with no | |
4987 | execution. | |
4988 | (update_global_location_list): When handling moribund locations, | |
4989 | find representative inferior for location's pspace, and use thread | |
4990 | count of its process_stratum target. | |
4991 | * bsd-kvm.c (bsd_kvm_target_open): Pass target down. | |
4992 | * bsd-uthread.c (bsd_uthread_target::wait): Use | |
4993 | as_process_stratum_target and adjust thread_change_ptid and | |
4994 | add_thread calls. | |
4995 | (bsd_uthread_target::update_thread_list): Use | |
4996 | as_process_stratum_target and adjust find_thread_ptid, | |
4997 | thread_change_ptid and add_thread calls. | |
4998 | * btrace.c (maint_btrace_packet_history_cmd): Adjust | |
4999 | find_thread_ptid call. | |
5000 | * corelow.c (add_to_thread_list): Adjust add_thread call. | |
5001 | (core_target_open): Adjust add_thread_silent and thread_count | |
5002 | calls. | |
5003 | (core_target::pid_to_str): Adjust find_inferior_ptid call. | |
5004 | * ctf.c (ctf_target_open): Adjust add_thread_silent call. | |
5005 | * event-top.c (async_disconnect): Pop targets from all inferiors. | |
5006 | * exec.c (add_target_sections): Push exec target on all inferiors | |
5007 | sharing the program space. | |
5008 | (remove_target_sections): Remove the exec target from all | |
5009 | inferiors sharing the program space. | |
5010 | (exec_on_vfork): New. | |
5011 | * exec.h (exec_on_vfork): Declare. | |
5012 | * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter. | |
5013 | Pass it down. | |
5014 | (fbsd_nat_target::update_thread_list): Adjust. | |
5015 | (fbsd_nat_target::resume): Adjust. | |
5016 | (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it | |
5017 | down. | |
5018 | (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust. | |
5019 | * fbsd-tdep.c (fbsd_corefile_thread): Adjust | |
5020 | get_thread_arch_regcache call. | |
5021 | * fork-child.c (gdb_startup_inferior): Pass target down to | |
5022 | startup_inferior and set_executing. | |
5023 | * gdbthread.h (struct process_stratum_target): Forward declare. | |
5024 | (add_thread, add_thread_silent, add_thread_with_info) | |
5025 | (in_thread_list): Add process_stratum_target parameter. | |
5026 | (find_thread_ptid(inferior*, ptid_t)): New overload. | |
5027 | (find_thread_ptid, thread_change_ptid): Add process_stratum_target | |
5028 | parameter. | |
5029 | (all_threads()): Delete overload. | |
5030 | (all_threads, all_non_exited_threads): Add process_stratum_target | |
5031 | parameter. | |
5032 | (all_threads_safe): Use brace initialization. | |
5033 | (thread_count): Add process_stratum_target parameter. | |
5034 | (set_resumed, set_running, set_stop_requested, set_executing) | |
5035 | (threads_are_executing, finish_thread_state): Add | |
5036 | process_stratum_target parameter. | |
5037 | (switch_to_thread): Use is_current_thread. | |
5038 | * i386-fbsd-tdep.c: Include "inferior.h". | |
5039 | (i386fbsd_get_thread_local_address): Pass down target. | |
5040 | * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust. | |
5041 | * inf-child.c (inf_child_target::maybe_unpush_target): Remove | |
5042 | have_inferiors check. | |
5043 | * inf-ptrace.c (inf_ptrace_target::create_inferior) | |
5044 | (inf_ptrace_target::attach): Adjust. | |
5045 | * infcall.c (run_inferior_call): Adjust. | |
5046 | * infcmd.c (run_command_1): Pass target to | |
5047 | scoped_finish_thread_state. | |
5048 | (proceed_thread_callback): Skip inferiors with no execution. | |
5049 | (continue_command): Rename 'all_threads' local to avoid hiding | |
5050 | 'all_threads' function. Adjust get_last_target_status call. | |
5051 | (prepare_one_step): Adjust set_running call. | |
5052 | (signal_command): Use user_visible_resume_target. Compare thread | |
5053 | pointers instead of inferior_ptid. | |
5054 | (info_program_command): Adjust to pass down target. | |
5055 | (attach_command): Mark target's 'thread_executing' flag. | |
5056 | (stop_current_target_threads_ns): New, factored out from ... | |
5057 | (interrupt_target_1): ... this. Switch inferior before making | |
5058 | target calls. | |
5059 | * inferior-iter.h | |
5060 | (struct all_inferiors_iterator, struct all_inferiors_range) | |
5061 | (struct all_inferiors_safe_range) | |
5062 | (struct all_non_exited_inferiors_range): Filter on | |
5063 | process_stratum_target too. Remove explicit. | |
5064 | * inferior.c (inferior::inferior): Push dummy target on target | |
5065 | stack. | |
5066 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors): | |
5067 | Add process_stratum_target parameter, and pass it down. | |
5068 | (have_live_inferiors): Adjust. | |
5069 | (switch_to_inferior_and_push_target): New. | |
5070 | (add_inferior_command, clone_inferior_command): Handle | |
5071 | "-no-connection" parameter. Use | |
5072 | switch_to_inferior_and_push_target. | |
5073 | (_initialize_inferior): Mention "-no-connection" option in | |
5074 | the help of "add-inferior" and "clone-inferior" commands. | |
5075 | * inferior.h: Include "process-stratum-target.h". | |
5076 | (interrupt_target_1): Use bool. | |
5077 | (struct inferior) <push_target, unpush_target, target_is_pushed, | |
5078 | find_target_beneath, top_target, process_target, target_at, | |
5079 | m_stack>: New. | |
5080 | (discard_all_inferiors): Delete. | |
5081 | (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors) | |
5082 | (all_inferiors, all_non_exited_inferiors): Add | |
5083 | process_stratum_target parameter. | |
5084 | * infrun.c: Include "gdb_select.h" and <unordered_map>. | |
5085 | (target_last_proc_target): New global. | |
5086 | (follow_fork_inferior): Push target on new inferior. Pass target | |
5087 | to add_thread_silent. Call exec_on_vfork. Handle target's | |
5088 | reference count. | |
5089 | (follow_fork): Adjust get_last_target_status call. Also consider | |
5090 | target. | |
5091 | (follow_exec): Push target on new inferior. | |
5092 | (struct execution_control_state) <target>: New field. | |
5093 | (user_visible_resume_target): New. | |
5094 | (do_target_resume): Call target_async. | |
5095 | (resume_1): Set target's threads_executing flag. Consider resume | |
5096 | target. | |
5097 | (commit_resume_all_targets): New. | |
5098 | (proceed): Also consider resume target. Skip threads of inferiors | |
5099 | with no execution. Commit resumtion in all targets. | |
5100 | (start_remote): Pass current inferior to wait_for_inferior. | |
5101 | (infrun_thread_stop_requested): Consider target as well. Pass | |
5102 | thread_info pointer to clear_inline_frame_state instead of ptid. | |
5103 | (infrun_thread_thread_exit): Consider target as well. | |
5104 | (random_pending_event_thread): New inferior parameter. Use it. | |
5105 | (do_target_wait): Rename to ... | |
5106 | (do_target_wait_1): ... this. Add inferior parameter, and pass it | |
5107 | down. | |
5108 | (threads_are_resumed_pending_p, do_target_wait): New. | |
5109 | (prepare_for_detach): Adjust calls. | |
5110 | (wait_for_inferior): New inferior parameter. Handle it. Use | |
5111 | do_target_wait_1 instead of do_target_wait. | |
5112 | (fetch_inferior_event): Adjust. Switch to representative | |
5113 | inferior. Pass target down. | |
5114 | (set_last_target_status): Add process_stratum_target parameter. | |
5115 | Save target in global. | |
5116 | (get_last_target_status): Add process_stratum_target parameter and | |
5117 | handle it. | |
5118 | (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'. | |
5119 | (context_switch): Check inferior_ptid == null_ptid before calling | |
5120 | inferior_thread(). | |
5121 | (get_inferior_stop_soon): Pass down target. | |
5122 | (wait_one): Rename to ... | |
5123 | (poll_one_curr_target): ... this. | |
5124 | (struct wait_one_event): New. | |
5125 | (wait_one): New. | |
5126 | (stop_all_threads): Adjust. | |
5127 | (handle_no_resumed, handle_inferior_event): Adjust to consider the | |
5128 | event's target. | |
5129 | (switch_back_to_stepped_thread): Also consider target. | |
5130 | (print_stop_event): Update. | |
5131 | (normal_stop): Update. Also consider the resume target. | |
5132 | * infrun.h (wait_for_inferior): Remove declaration. | |
5133 | (user_visible_resume_target): New declaration. | |
5134 | (get_last_target_status, set_last_target_status): New | |
5135 | process_stratum_target parameter. | |
5136 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
5137 | process_stratum_target parameter, and use it. | |
5138 | (clear_inline_frame_state (thread_info*)): New. | |
5139 | * inline-frame.c (clear_inline_frame_state(ptid_t)): Add | |
5140 | process_stratum_target parameter. | |
5141 | (clear_inline_frame_state (thread_info*)): Declare. | |
5142 | * linux-fork.c (delete_checkpoint_command): Pass target down to | |
5143 | find_thread_ptid. | |
5144 | (checkpoint_command): Adjust. | |
5145 | * linux-nat.c (linux_nat_target::follow_fork): Switch to thread | |
5146 | instead of just tweaking inferior_ptid. | |
5147 | (linux_nat_switch_fork): Pass target down to thread_change_ptid. | |
5148 | (exit_lwp): Pass target down to find_thread_ptid. | |
5149 | (attach_proc_task_lwp_callback): Pass target down to | |
5150 | add_thread/set_running/set_executing. | |
5151 | (linux_nat_target::attach): Pass target down to | |
5152 | thread_change_ptid. | |
5153 | (get_detach_signal): Pass target down to find_thread_ptid. | |
5154 | Consider last target status's target. | |
5155 | (linux_resume_one_lwp_throw, resume_lwp) | |
5156 | (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp) | |
5157 | (stop_wait_callback, save_stop_reason, linux_nat_filter_event) | |
5158 | (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down. | |
5159 | (linux_nat_target::async_wait_fd): New. | |
5160 | (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass | |
5161 | target down. | |
5162 | * linux-nat.h (linux_nat_target::async_wait_fd): Declare. | |
5163 | * linux-tdep.c (get_thread_arch_regcache): Pass target down. | |
5164 | * linux-thread-db.c (struct thread_db_info::process_target): New | |
5165 | field. | |
5166 | (add_thread_db_info): Save target. | |
5167 | (get_thread_db_info): New process_stratum_target parameter. Also | |
5168 | match target. | |
5169 | (delete_thread_db_info): New process_stratum_target parameter. | |
5170 | Also match target. | |
5171 | (thread_from_lwp): Adjust to pass down target. | |
5172 | (thread_db_notice_clone): Pass down target. | |
5173 | (check_thread_db_callback): Pass down target. | |
5174 | (try_thread_db_load_1): Always push the thread_db target. | |
5175 | (try_thread_db_load, record_thread): Pass target down. | |
5176 | (thread_db_target::detach): Pass target down. Always unpush the | |
5177 | thread_db target. | |
5178 | (thread_db_target::wait, thread_db_target::mourn_inferior): Pass | |
5179 | target down. Always unpush the thread_db target. | |
5180 | (find_new_threads_callback, thread_db_find_new_threads_2) | |
5181 | (thread_db_target::update_thread_list): Pass target down. | |
5182 | (thread_db_target::pid_to_str): Pass current inferior down. | |
5183 | (thread_db_target::get_thread_local_address): Pass target down. | |
5184 | (thread_db_target::resume, maintenance_check_libthread_db): Pass | |
5185 | target down. | |
5186 | * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust. | |
5187 | * procfs.c (procfs_target::procfs_init_inferior): Declare. | |
5188 | (proc_set_current_signal, do_attach, procfs_target::wait): Adjust. | |
5189 | (procfs_init_inferior): Rename to ... | |
5190 | (procfs_target::procfs_init_inferior): ... this and adjust. | |
5191 | (procfs_target::create_inferior, procfs_notice_thread) | |
5192 | (procfs_do_thread_registers): Adjust. | |
5193 | * ppc-fbsd-tdep.c: Include "inferior.h". | |
5194 | (ppcfbsd_get_thread_local_address): Pass down target. | |
5195 | * proc-service.c (ps_xfer_memory): Switch current inferior and | |
5196 | program space as well. | |
5197 | (get_ps_regcache): Pass target down. | |
5198 | * process-stratum-target.c | |
5199 | (process_stratum_target::thread_address_space) | |
5200 | (process_stratum_target::thread_architecture): Pass target down. | |
5201 | * process-stratum-target.h | |
5202 | (process_stratum_target::threads_executing): New field. | |
5203 | (as_process_stratum_target): New. | |
5204 | * ravenscar-thread.c | |
5205 | (ravenscar_thread_target::update_inferior_ptid): Pass target down. | |
5206 | (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target | |
5207 | down. | |
5208 | * record-btrace.c (record_btrace_target::info_record): Adjust. | |
5209 | (record_btrace_target::record_method) | |
5210 | (record_btrace_target::record_is_replaying) | |
5211 | (record_btrace_target::fetch_registers) | |
5212 | (get_thread_current_frame_id, record_btrace_target::resume) | |
5213 | (record_btrace_target::wait, record_btrace_target::stop): Pass | |
5214 | target down. | |
5215 | * record-full.c (record_full_wait_1): Switch to event thread. | |
5216 | Pass target down. | |
5217 | * regcache.c (regcache::regcache) | |
5218 | (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add | |
5219 | process_stratum_target parameter and handle it. | |
5220 | (current_thread_target): New global. | |
5221 | (get_thread_regcache): Add process_stratum_target parameter and | |
5222 | handle it. Switch inferior before calling target method. | |
5223 | (get_thread_regcache): Pass target down. | |
5224 | (get_thread_regcache_for_ptid): Pass target down. | |
5225 | (registers_changed_ptid): Add process_stratum_target parameter and | |
5226 | handle it. | |
5227 | (registers_changed_thread, registers_changed): Pass target down. | |
5228 | (test_get_thread_arch_aspace_regcache): New. | |
5229 | (current_regcache_test): Define a couple local test_target_ops | |
5230 | instances and use them for testing. | |
5231 | (readwrite_regcache): Pass process_stratum_target parameter. | |
5232 | (cooked_read_test, cooked_write_test): Pass mock_target down. | |
5233 | * regcache.h (get_thread_regcache, get_thread_arch_regcache) | |
5234 | (get_thread_arch_aspace_regcache): Add process_stratum_target | |
5235 | parameter. | |
5236 | (regcache::target): New method. | |
5237 | (regcache::regcache, regcache::get_thread_arch_aspace_regcache) | |
5238 | (regcache::registers_changed_ptid): Add process_stratum_target | |
5239 | parameter. | |
5240 | (regcache::m_target): New field. | |
5241 | (registers_changed_ptid): Add process_stratum_target parameter. | |
5242 | * remote.c (remote_state::supports_vCont_probed): New field. | |
5243 | (remote_target::async_wait_fd): New method. | |
5244 | (remote_unpush_and_throw): Add remote_target parameter. | |
5245 | (get_current_remote_target): Adjust. | |
5246 | (remote_target::remote_add_inferior): Push target. | |
5247 | (remote_target::remote_add_thread) | |
5248 | (remote_target::remote_notice_new_inferior) | |
5249 | (get_remote_thread_info): Pass target down. | |
5250 | (remote_target::update_thread_list): Skip threads of inferiors | |
5251 | bound to other targets. (remote_target::close): Don't discard | |
5252 | inferiors. (remote_target::add_current_inferior_and_thread) | |
5253 | (remote_target::process_initial_stop_replies) | |
5254 | (remote_target::start_remote) | |
5255 | (remote_target::remote_serial_quit_handler): Pass down target. | |
5256 | (remote_target::remote_unpush_target): New remote_target | |
5257 | parameter. Unpush the target from all inferiors. | |
5258 | (remote_target::remote_unpush_and_throw): New remote_target | |
5259 | parameter. Pass it down. | |
5260 | (remote_target::open_1): Check whether the current inferior has | |
5261 | execution instead of checking whether any inferior is live. Pass | |
5262 | target down. | |
5263 | (remote_target::remote_detach_1): Pass down target. Use | |
5264 | remote_unpush_target. | |
5265 | (extended_remote_target::attach): Pass down target. | |
5266 | (remote_target::remote_vcont_probe): Set supports_vCont_probed. | |
5267 | (remote_target::append_resumption): Pass down target. | |
5268 | (remote_target::append_pending_thread_resumptions) | |
5269 | (remote_target::remote_resume_with_hc, remote_target::resume) | |
5270 | (remote_target::commit_resume): Pass down target. | |
5271 | (remote_target::remote_stop_ns): Check supports_vCont_probed. | |
5272 | (remote_target::interrupt_query) | |
5273 | (remote_target::remove_new_fork_children) | |
5274 | (remote_target::check_pending_events_prevent_wildcard_vcont) | |
5275 | (remote_target::remote_parse_stop_reply) | |
5276 | (remote_target::process_stop_reply): Pass down target. | |
5277 | (first_remote_resumed_thread): New remote_target parameter. Pass | |
5278 | it down. | |
5279 | (remote_target::wait_as): Pass down target. | |
5280 | (unpush_and_perror): New remote_target parameter. Pass it down. | |
5281 | (remote_target::readchar, remote_target::remote_serial_write) | |
5282 | (remote_target::getpkt_or_notif_sane_1) | |
5283 | (remote_target::kill_new_fork_children, remote_target::kill): Pass | |
5284 | down target. | |
5285 | (remote_target::mourn_inferior): Pass down target. Use | |
5286 | remote_unpush_target. | |
5287 | (remote_target::core_of_thread) | |
5288 | (remote_target::remote_btrace_maybe_reopen): Pass down target. | |
5289 | (remote_target::pid_to_exec_file) | |
5290 | (remote_target::thread_handle_to_thread_info): Pass down target. | |
5291 | (remote_target::async_wait_fd): New. | |
5292 | * riscv-fbsd-tdep.c: Include "inferior.h". | |
5293 | (riscv_fbsd_get_thread_local_address): Pass down target. | |
5294 | * sol2-tdep.c (sol2_core_pid_to_str): Pass down target. | |
5295 | * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs) | |
5296 | (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback): | |
5297 | Adjust. | |
5298 | * solib-spu.c (spu_skip_standalone_loader): Pass down target. | |
5299 | * solib-svr4.c (enable_break): Pass down target. | |
5300 | * spu-multiarch.c (parse_spufs_run): Pass down target. | |
5301 | * spu-tdep.c (spu2ppu_sniffer): Pass down target. | |
5302 | * target-delegates.c: Regenerate. | |
5303 | * target.c (g_target_stack): Delete. | |
5304 | (current_top_target): Return the current inferior's top target. | |
5305 | (target_has_execution_1): Refer to the passed-in inferior's top | |
5306 | target. | |
5307 | (target_supports_terminal_ours): Check whether the initial | |
5308 | inferior was already created. | |
5309 | (decref_target): New. | |
5310 | (target_stack::push): Incref/decref the target. | |
5311 | (push_target, push_target, unpush_target): Adjust. | |
5312 | (target_stack::unpush): Defref target. | |
5313 | (target_is_pushed): Return bool. Adjust to refer to the current | |
5314 | inferior's target stack. | |
5315 | (dispose_inferior): Delete, and inline parts ... | |
5316 | (target_preopen): ... here. Only dispose of the current inferior. | |
5317 | (target_detach): Hold strong target reference while detaching. | |
5318 | Pass target down. | |
5319 | (target_thread_name): Add assertion. | |
5320 | (target_resume): Pass down target. | |
5321 | (target_ops::beneath, find_target_at): Adjust to refer to the | |
5322 | current inferior's target stack. | |
5323 | (get_dummy_target): New. | |
5324 | (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that | |
5325 | has a thread running. | |
5326 | (initialize_targets): Rename to ... | |
5327 | (_initialize_target): ... this. | |
5328 | * target.h: Include "gdbsupport/refcounted-object.h". | |
5329 | (struct target_ops): Inherit refcounted_object. | |
5330 | (target_ops::shortname, target_ops::longname): Make const. | |
5331 | (target_ops::async_wait_fd): New method. | |
5332 | (decref_target): Declare. | |
5333 | (struct target_ops_ref_policy): New. | |
5334 | (target_ops_ref): New typedef. | |
5335 | (get_dummy_target): Declare function. | |
5336 | (target_is_pushed): Return bool. | |
5337 | * thread-iter.c (all_matching_threads_iterator::m_inf_matches) | |
5338 | (all_matching_threads_iterator::all_matching_threads_iterator): | |
5339 | Handle filter target. | |
5340 | * thread-iter.h (struct all_matching_threads_iterator, struct | |
5341 | all_matching_threads_range, class all_non_exited_threads_range): | |
5342 | Filter by target too. Remove explicit. | |
5343 | * thread.c (threads_executing): Delete. | |
5344 | (inferior_thread): Pass down current inferior. | |
5345 | (clear_thread_inferior_resources): Pass down thread pointer | |
5346 | instead of ptid_t. | |
5347 | (add_thread_silent, add_thread_with_info, add_thread): Add | |
5348 | process_stratum_target parameter. Use it for thread and inferior | |
5349 | searches. | |
5350 | (is_current_thread): New. | |
5351 | (thread_info::deletable): Use it. | |
5352 | (find_thread_ptid, thread_count, in_thread_list) | |
5353 | (thread_change_ptid, set_resumed, set_running): New | |
5354 | process_stratum_target parameter. Pass it down. | |
5355 | (set_executing): New process_stratum_target parameter. Pass it | |
5356 | down. Adjust reference to 'threads_executing'. | |
5357 | (threads_are_executing): New process_stratum_target parameter. | |
5358 | Adjust reference to 'threads_executing'. | |
5359 | (set_stop_requested, finish_thread_state): New | |
5360 | process_stratum_target parameter. Pass it down. | |
5361 | (switch_to_thread): Also match inferior. | |
5362 | (switch_to_thread): New process_stratum_target parameter. Pass it | |
5363 | down. | |
5364 | (update_threads_executing): Reimplement. | |
5365 | * top.c (quit_force): Pop targets from all inferior. | |
5366 | (gdb_init): Don't call initialize_targets. | |
5367 | * windows-nat.c (windows_nat_target) <get_windows_debug_event>: | |
5368 | Declare. | |
5369 | (windows_add_thread, windows_delete_thread): Adjust. | |
5370 | (get_windows_debug_event): Rename to ... | |
5371 | (windows_nat_target::get_windows_debug_event): ... this. Adjust. | |
5372 | * tracefile-tfile.c (tfile_target_open): Pass down target. | |
5373 | * gdbsupport/common-gdbthread.h (struct process_stratum_target): | |
5374 | Forward declare. | |
5375 | (switch_to_thread): Add process_stratum_target parameter. | |
5376 | * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target | |
5377 | parameter. Use it. | |
5378 | (mi_on_resume): Pass target down. | |
5379 | * nat/fork-inferior.c (startup_inferior): Add | |
5380 | process_stratum_target parameter. Pass it down. | |
5381 | * nat/fork-inferior.h (startup_inferior): Add | |
5382 | process_stratum_target parameter. | |
5383 | * python/py-threadevent.c (py_get_event_thread): Pass target down. | |
5384 | ||
75c6c844 PA |
5385 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5386 | ||
5387 | * remote.c (remote_target::start_remote): Don't set inferior_ptid | |
5388 | directly. Instead find the first thread in the thread list and | |
5389 | use switch_to_thread. | |
5390 | ||
78f2c40a PA |
5391 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5392 | ||
5393 | * remote.c (remote_target::remote_add_inferior): Don't bind a | |
5394 | process to the current inferior if the current inferior is already | |
5395 | bound to a process. | |
5396 | ||
e7af6c70 TBA |
5397 | 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com> |
5398 | Pedro Alves <palves@redhat.com> | |
5399 | ||
5400 | * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>: | |
5401 | If no process is specified, return null_ptid instead of | |
5402 | inferior_ptid. | |
5403 | (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED / | |
5404 | TARGET_WAITKIND_SIGNALLED with no pid. | |
5405 | ||
31ba933e PA |
5406 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5407 | ||
5408 | * remote.c (first_remote_resumed_thread): New. | |
5409 | (remote_target::wait_as): Use it as default event_ptid instead of | |
5410 | inferior_ptid. | |
5411 | ||
735fc2ca PA |
5412 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5413 | ||
5414 | * infrun.c (handle_no_resumed): Use all_non_exited_inferiors. | |
5415 | ||
c17e02e1 PA |
5416 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5417 | ||
5418 | * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is | |
5419 | not -1. | |
5420 | ||
ab1ddbcf PA |
5421 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5422 | ||
5423 | * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a | |
5424 | ptid to get_last_target_status. | |
5425 | * break-catch-syscall.c (print_it_catch_syscall): Don't pass a | |
5426 | ptid to get_last_target_status. | |
5427 | * infcmd.c (continue_command): Don't pass a target_waitstatus to | |
5428 | get_last_target_status. | |
5429 | (info_program_command): Don't pass a target_waitstatus to | |
5430 | get_last_target_status. | |
5431 | * infrun.c (init_wait_for_inferior): Use | |
5432 | nullify_last_target_wait_ptid. | |
5433 | (get_last_target_status): Handle nullptr arguments. | |
5434 | (nullify_last_target_wait_ptid): Clear target_last_waitstatus. | |
5435 | (print_stop_event): Don't pass a ptid to get_last_target_status. | |
5436 | (normal_stop): Don't pass a ptid to get_last_target_status. | |
5437 | * infrun.h (get_last_target_status, set_last_target_status): Move | |
5438 | comments here and update. | |
5439 | (nullify_last_target_wait_ptid): Declare. | |
5440 | * linux-fork.c (fork_load_infrun_state): Remove local extern | |
5441 | declaration of nullify_last_target_wait_ptid. | |
5442 | * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus | |
5443 | to get_last_target_status. | |
5444 | ||
f3f8ece4 PA |
5445 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5446 | ||
5447 | * gdbthread.h (scoped_restore_current_thread) | |
5448 | <dont_restore, restore, m_dont_restore>: Declare. | |
5449 | * thread.c (thread_alive): Add assertion. Return bool. | |
5450 | (switch_to_thread_if_alive): New. | |
5451 | (prune_threads): Switch inferior/thread. | |
5452 | (print_thread_info_1): Switch thread before calling target methods. | |
5453 | (scoped_restore_current_thread::restore): New, factored out from | |
5454 | ... | |
5455 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
5456 | ... this. | |
5457 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
5458 | Add assertion. | |
5459 | (thread_apply_all_command, thread_select): Use | |
5460 | switch_to_thread_if_alive. | |
5461 | * infrun.c (proceed, restart_threads, handle_signal_stop) | |
5462 | (switch_back_to_stepped_thread): Switch current thread before | |
5463 | calling target methods. | |
5464 | ||
db2d40f7 PA |
5465 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5466 | ||
5467 | * inferior.c (switch_to_inferior_no_thread): New function, | |
5468 | factored out from ... | |
5469 | (inferior_command): ... here. | |
5470 | * inferior.h (switch_to_inferior_no_thread): Declare. | |
5471 | * mi/mi-main.c (run_one_inferior): Use | |
5472 | switch_to_inferior_no_thread. | |
5473 | ||
bd420a2d PA |
5474 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5475 | ||
5476 | * infcmd.c (kill_command): Remove dead code. | |
5477 | ||
ddf5db90 PA |
5478 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5479 | ||
5480 | * remote.c (remote_target::mourn_inferior): No longer check | |
5481 | whether the target is running. | |
5482 | ||
5018ce90 PA |
5483 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5484 | ||
5485 | * corelow.c (core_target::has_execution): Change parameter type to | |
5486 | inferior pointer. | |
5487 | * inferior.c (number_of_live_inferiors): Use | |
5488 | inferior::has_execution instead of target_has_execution_1. | |
5489 | * inferior.h (inferior::has_execution): New. | |
5490 | * linux-thread-db.c (thread_db_target::update_thread_list): Use | |
5491 | inferior::has_execution instead of target_has_execution_1. | |
5492 | * process-stratum-target.c | |
5493 | (process_stratum_target::has_execution): Change parameter type to | |
5494 | inferior pointer. Check the inferior's PID instead of | |
5495 | inferior_ptid. | |
5496 | * process-stratum-target.h | |
5497 | (process_stratum_target::has_execution): Change parameter type to | |
5498 | inferior pointer. | |
5499 | * record-full.c (record_full_core_target::has_execution): Change | |
5500 | parameter type to inferior pointer. | |
5501 | * target.c (target_has_execution_1): Change parameter type to | |
5502 | inferior pointer. | |
5503 | (target_has_execution_current): Adjust. | |
5504 | * target.h (target_ops::has_execution): Change parameter type to | |
5505 | inferior pointer. | |
5506 | (target_has_execution_1): Change parameter type to inferior | |
5507 | pointer. Change return type to bool. | |
5508 | * tracefile.h (tracefile_target::has_execution): Change parameter | |
5509 | type to inferior pointer. | |
5510 | ||
74375d18 PA |
5511 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5512 | ||
5513 | * exceptions.c (print_flush): Remove current_top_target() check. | |
5514 | ||
acdf84a6 PA |
5515 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5516 | ||
5517 | * remote.c (show_remote_exec_file): Show the current inferior's | |
5518 | exec-file instead of the command variable's value. | |
5519 | ||
ec506636 PA |
5520 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5521 | ||
5522 | * record-full.c (record_full_resume_ptid): New global. | |
5523 | (record_full_target::resume): Set it. | |
5524 | (record_full_wait_1): Use record_full_resume_ptid instead of | |
5525 | inferior_ptid. | |
5526 | ||
873657b9 PA |
5527 | 2020-01-10 Pedro Alves <palves@redhat.com> |
5528 | ||
5529 | * gdbthread.h (scoped_restore_current_thread) | |
5530 | <dont_restore, restore, m_dont_restore>: Declare. | |
5531 | * thread.c (thread_alive): Add assertion. Return bool. | |
5532 | (switch_to_thread_if_alive): New. | |
5533 | (prune_threads): Switch inferior/thread. | |
5534 | (print_thread_info_1): Switch thread before calling target methods. | |
5535 | (scoped_restore_current_thread::restore): New, factored out from | |
5536 | ... | |
5537 | (scoped_restore_current_thread::~scoped_restore_current_thread): | |
5538 | ... this. | |
5539 | (scoped_restore_current_thread::scoped_restore_current_thread): | |
5540 | Add assertion. | |
5541 | (thread_apply_all_command, thread_select): Use | |
5542 | switch_to_thread_if_alive. | |
5543 | ||
7f0ae84c GB |
5544 | 2020-01-10 George Barrett <bob@bob131.so> |
5545 | ||
5546 | * stap-probe.c (stap_modify_semaphore): Don't check for null | |
5547 | semaphores. | |
5548 | (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check | |
5549 | for null semaphores. | |
5550 | ||
f5a7c406 AB |
5551 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
5552 | ||
5553 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update | |
5554 | all source windows, and maintain horizontal scroll status while | |
5555 | doing so. | |
5556 | ||
9ae6bf64 TT |
5557 | 2020-01-09 Tom Tromey <tom@tromey.com> |
5558 | ||
5559 | PR tui/18932: | |
5560 | * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call | |
5561 | update_source_window, not print_source_lines. | |
5562 | ||
b2efe70c AB |
5563 | 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com> |
5564 | ||
5565 | * tui/tui.c (tui_enable): Register tui hooks after calling | |
5566 | tui_display_main. | |
5567 | ||
5f23a082 CB |
5568 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
5569 | ||
5570 | * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW. | |
5571 | ||
3061113b SM |
5572 | 2020-01-08 Simon Marchi <simon.marchi@efficios.com> |
5573 | ||
5574 | * thread.c (print_thread_info_1): Fix indentation. | |
5575 | ||
57d75002 CB |
5576 | 2020-01-09 Christian Biesinger <cbiesinger@google.com> |
5577 | ||
5578 | * symtab.c (general_symbol_info::compute_and_set_names): Move the | |
5579 | unique_xmalloc_ptr outside the if to always free the demangled name. | |
5580 | ||
6a053cb1 TT |
5581 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
5582 | ||
5583 | * xcoffread.c (enter_line_range, read_xcoff_symtab) | |
5584 | (process_xcoff_symbol, xcoff_symfile_offsets): Update. | |
5585 | * symtab.h (MSYMBOL_VALUE_ADDRESS): Update. | |
5586 | (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS): | |
5587 | Remove. | |
5588 | (section_offsets): New typedef. | |
5589 | * symtab.c (fixup_section, get_msymbol_address): Update. | |
5590 | * symmisc.c (dump_msymbols): Update. | |
5591 | * symfile.h (relative_addr_info_to_section_offsets) | |
5592 | (symfile_map_offsets_to_segments): Update. | |
5593 | * symfile.c (build_section_addr_info_from_objfile) | |
5594 | (init_objfile_sect_indices): Update. | |
5595 | (struct place_section_arg): Change type of "offsets". | |
5596 | (place_section): Update. | |
5597 | (relative_addr_info_to_section_offsets): Change type of | |
5598 | "section_offsets". Remove "num_sections" parameter. | |
5599 | (default_symfile_offsets, syms_from_objfile_1) | |
5600 | (set_objfile_default_section_offset): Update. | |
5601 | (reread_symbols): No need to preserve section offsets by hand. | |
5602 | (symfile_map_offsets_to_segments): Change type of "offsets". | |
5603 | * stap-probe.c (relocate_address): Update. | |
5604 | * stabsread.h (process_one_symbol): Update. | |
5605 | * solib-target.c (struct lm_info_target) <offsets>: Change type. | |
5606 | (solib_target_relocate_section_addresses): Update. | |
5607 | * solib-svr4.c (enable_break, svr4_relocate_main_executable): | |
5608 | Update. | |
5609 | * solib-frv.c (frv_relocate_main_executable): Update. | |
5610 | * solib-dsbt.c (dsbt_relocate_main_executable): Update. | |
5611 | * solib-aix.c (solib_aix_get_section_offsets): Change return | |
5612 | type. | |
5613 | (solib_aix_solib_create_inferior_hook): Update. | |
5614 | * remote.c (remote_target::get_offsets): Update. | |
5615 | * psymtab.c (find_pc_sect_psymtab): Update. | |
5616 | * psympriv.h (struct partial_symbol) <address, text_low, | |
5617 | text_high>: Update. | |
5618 | * objfiles.h (obj_section_offset): Update. | |
5619 | (struct objfile) <section_offsets>: Change type. | |
5620 | <num_sections>: Remove. | |
5621 | (objfile_relocate): Update. | |
5622 | * objfiles.c (entry_point_address_query): Update | |
5623 | (relocate_one_symbol): Change type of "section_offsets". | |
5624 | (objfile_relocate1, objfile_relocate1): Change type of | |
5625 | "new_offsets". | |
5626 | (objfile_rebase1): Update. | |
5627 | * mipsread.c (mipscoff_symfile_read): Update. | |
5628 | (read_alphacoff_dynamic_symtab): Remove "section_offsets" | |
5629 | parameter. | |
5630 | * mdebugread.c (parse_symbol): Change type of "section_offsets". | |
5631 | (parse_external, psymtab_to_symtab_1): Update. | |
5632 | * machoread.c (macho_symfile_offsets): Update. | |
5633 | * ia64-tdep.c (ia64_find_unwind_table): Update. | |
5634 | * hppa-tdep.c (read_unwind_info): Update. | |
5635 | * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update. | |
5636 | * dwarf2read.c (create_addrmap_from_index) | |
5637 | (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab) | |
5638 | (process_psymtab_comp_unit_reader, add_partial_symbol) | |
5639 | (add_partial_subprogram, process_full_comp_unit) | |
5640 | (read_file_scope, read_func_scope, read_lexical_block_scope) | |
5641 | (read_call_site_scope, dwarf2_rnglists_process) | |
5642 | (dwarf2_ranges_process, dwarf2_ranges_read) | |
5643 | (dwarf_decode_lines_1, var_decode_location, new_symbol) | |
5644 | (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset): | |
5645 | Update. | |
5646 | * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde): | |
5647 | Update. | |
5648 | * dtrace-probe.c (dtrace_probe::get_relocated_address): Update. | |
5649 | * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update. | |
5650 | (process_one_symbol): Change type of "section_offsets". | |
5651 | * ctfread.c (get_objfile_text_range): Update. | |
5652 | * coffread.c (coff_symtab_read, enter_linenos) | |
5653 | (process_coff_symbol): Update. | |
5654 | * coff-pe-read.c (add_pe_forwarded_sym): Update. | |
5655 | * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update. | |
5656 | ||
456e800a TT |
5657 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
5658 | ||
5659 | * dwarf2read.c (parse_macro_definition): Use std::string. | |
5660 | (parse_macro_definition): Likewise. | |
5661 | ||
6dfa2fc2 TT |
5662 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
5663 | ||
5664 | * dwarf2read.c (abbrev_table_read_table): Use std::vector. | |
5665 | (ATTR_ALLOC_CHUNK): Remove. | |
5666 | ||
421d1616 TT |
5667 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
5668 | ||
5669 | * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr. | |
5670 | ||
43816ebc TT |
5671 | 2020-01-08 Tom Tromey <tromey@adacore.com> |
5672 | ||
5673 | * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr. | |
5674 | (dwarf2_compute_name, open_dwo_file): Likewise. | |
5675 | (process_enumeration_scope): Use std::vector. | |
5676 | (guess_partial_die_structure_name): Use unique_xmalloc_ptr. | |
5677 | (partial_die_info::fixup, dwarf2_start_subfile) | |
5678 | (guess_full_die_structure_name, dwarf2_name): Likewise. | |
5679 | (determine_prefix): Update. | |
5680 | (guess_full_die_structure_name): Make return type const. | |
5681 | (partial_die_full_name): Return unique_xmalloc_ptr. | |
5682 | (DW_FIELD_ALLOC_CHUNK): Remove. | |
5683 | ||
4212d509 TT |
5684 | 2020-01-07 Tom Tromey <tromey@adacore.com> |
5685 | ||
5686 | PR build/24937: | |
5687 | * stap-probe.c (class stap_static_probe_ops): Add constructor. | |
5688 | ||
06a6207a JT |
5689 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
5690 | ||
5691 | * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build. | |
5692 | ||
153d79c4 AB |
5693 | 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com> |
5694 | ||
5695 | * stack.c (print_frame_info): Move disassemble_next_line code | |
5696 | inside source_print block. | |
5697 | ||
66182876 EZ |
5698 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
5699 | ||
5700 | * gdbsupport/gdb_wait.c: Include <signal.h> instead of | |
5701 | gdb/signals.h, as we are now using native signal symbols. | |
5702 | ||
cbfa8581 SV |
5703 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
5704 | ||
5705 | * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid | |
5706 | overflow by an early check of content vs threshold. | |
5707 | * tui/tui-source.c (tui_source_window::line_is_displayed): | |
5708 | Likewise. | |
5709 | ||
3f602821 EZ |
5710 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
5711 | ||
5712 | * NEWS: Mention the recent fix of $_exitsignal on MS-Windows. | |
5713 | ||
a08c904d JT |
5714 | 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk> |
5715 | ||
5716 | * coff-pe-read.c (read_pe_exported_syms): Don't try to read the | |
5717 | export table if no section contains it's RVA. | |
5718 | ||
89a65580 EZ |
5719 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
5720 | ||
5721 | * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT. | |
5722 | ||
8b7fcda2 HD |
5723 | 2020-01-06 Hannes Domani <ssbssa@yahoo.de> |
5724 | ||
5725 | * source.c (print_source_lines_base): Set last_line_listed. | |
5726 | ||
a61b4f69 SV |
5727 | 2020-01-06 Shahab Vahedi <shahab@synopsys.com> |
5728 | ||
5729 | * tui/tui-disasm.c: Remove trailing spaces. | |
5730 | ||
559e7e50 EZ |
5731 | 2020-01-06 Eli Zaretskii <eliz@gnu.org> |
5732 | Pedro Alves <palves@redhat.com> | |
5733 | ||
5734 | * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c. | |
5735 | * windows-tdep.c: New enumeration of WINDOWS_SIG* signals. | |
5736 | (windows_gdb_signal_to_target): New function, uses the above | |
5737 | enumeration to convert GDB internal signal codes to equivalent | |
5738 | Windows codes. | |
5739 | (windows_init_abi): Call set_gdbarch_gdb_signal_to_target. | |
5740 | * windows-nat.c: Include "gdb_wait.h". | |
5741 | (get_windows_debug_event): Extract the fatal exception from the | |
5742 | exit status and convert to the equivalent Posix signal number. | |
5743 | * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the | |
5744 | possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN. | |
5745 | * gdbsupport/gdb_wait.c: New file, implements | |
5746 | windows_status_to_termsig. | |
5747 | * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS) | |
5748 | (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW. | |
5749 | ||
f2302a34 AB |
5750 | 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com> |
5751 | ||
5752 | * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not | |
5753 | show_layout. | |
5754 | ||
6a5206eb LM |
5755 | 2020-01-05 Luis Machado <luis.machado@linaro.org> |
5756 | ||
5757 | * aarch64-linux-nat.c | |
5758 | (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64 | |
5759 | and bfd_mach_aarch64. | |
5760 | ||
6ec1d75e PW |
5761 | 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be> |
5762 | ||
5763 | * ui-file.c (stdio_file::can_emit_style_escape) | |
5764 | (tee_file::can_emit_style_escape): Ensure style is used also on | |
5765 | gdb_stderr when gdb_stderr is a tty supporting styling, similarly | |
5766 | to gdb_stdout. | |
5767 | * main.c (set_gdb_data_directory): Use file style to output the | |
5768 | warning that the given pathname is not a directory. | |
5769 | * top.c (show_history_filename, gdb_safe_append_history) | |
5770 | (show_gdb_datadir): Use file style. | |
5771 | ||
44f81a76 HD |
5772 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
5773 | ||
5774 | * solib-target.c (struct lm_info_target): | |
5775 | Change offsets to be a unique_xmalloc_ptr. | |
5776 | (solib_target_relocate_section_addresses): Update. | |
5777 | ||
25057eb0 HD |
5778 | 2020-01-03 Hannes Domani <ssbssa@yahoo.de> |
5779 | ||
5780 | * windows-nat.c (windows_clear_solib): Free so_list linked list. | |
5781 | ||
6e2118f5 BE |
5782 | 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de> |
5783 | ||
5784 | * MAINTAINERS (Write After Approval): Add myself. | |
5785 | ||
8133c7dc LM |
5786 | 2020-01-02 Luis Machado <luis.machado@linaro.org> |
5787 | ||
5788 | * proc-service.c (get_ps_regcache): Remove reference to obsolete | |
5789 | Cell BE architecture. | |
5790 | * target.h (struct target_ops) <thread_architecture>: Likewise. | |
5791 | ||
48189bec HD |
5792 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
5793 | ||
5794 | * Makefile.in: Use INSTALL_PROGRAM_ENV. | |
5795 | ||
ead1063b HD |
5796 | 2020-01-01 Hannes Domani <ssbssa@yahoo.de> |
5797 | ||
5798 | * MAINTAINERS (Write After Approval): Add myself. | |
5799 | ||
e5d78223 JB |
5800 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
5801 | ||
5802 | * gdbarch.sh: Update copyright year range of generated files. | |
5803 | ||
b811d2c2 JB |
5804 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
5805 | ||
5806 | Update copyright year range in all GDB files. | |
5807 | ||
5f4def5c JB |
5808 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
5809 | ||
5810 | * copyright.py: Convert to Python 3. | |
5811 | ||
51fd4002 JB |
5812 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
5813 | ||
5814 | * copyright.py: Adapt after move of gnulib directory from gdb | |
5815 | directory to toplevel directory. | |
5816 | ||
5fb651f2 JB |
5817 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
5818 | ||
5819 | * copyright.py (main): Exit if run from the wrong directory. | |
5820 | ||
5dd8bf88 JB |
5821 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
5822 | ||
5823 | * top.c (print_gdb_version): Change copyright year to 2020. | |
5824 | ||
9f71dacb | 5825 | 2020-01-01 Joel Brobecker <brobecker@adacore.com> |
3d34df0a | 5826 | |
9f71dacb | 5827 | * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019. |
3d34df0a | 5828 | |
9f71dacb | 5829 | For older changes see ChangeLog-2019. |
c906108c SS |
5830 | \f |
5831 | Local Variables: | |
5832 | mode: change-log | |
5833 | left-margin: 8 | |
5834 | fill-column: 74 | |
5835 | version-control: never | |
57da7796 | 5836 | coding: utf-8 |
c906108c | 5837 | End: |