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