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