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