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