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