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