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