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