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