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