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