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