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