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