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