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