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