Inherit vax_bsd_nat_target from nbsd_nat_target
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d5be5fa4
KR
12020-03-14 Kamil Rytarowski <n54@gmx.com>
2
3 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
4 instead of inf_ptrace_target.
5 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
6 nbsd_nat_target.
7
8110f842
KR
82020-03-14 Kamil Rytarowski <n54@gmx.com>
9
10 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11 register_t.
12
52feded7
KR
132020-03-14 Kamil Rytarowski <n54@gmx.com>
14
15 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
16 register_t.
17
25567eee
KR
182020-03-14 Kamil Rytarowski <n54@gmx.com>
19
20 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
21 register_t.
22
426a9c18
TT
232020-03-13 Tom Tromey <tom@tromey.com>
24
25 * value.h (val_print): Don't declare.
26 * valprint.h (val_print_array_elements)
27 (val_print_scalar_formatted, generic_val_print): Don't declare.
28 * valprint.c (generic_val_print_array): Take a struct value.
29 (generic_val_print_ptr, generic_val_print_memberptr)
30 (generic_val_print_bool, generic_val_print_int)
31 (generic_val_print_char, generic_val_print_complex)
32 (generic_val_print): Remove.
33 (generic_value_print): Update.
34 (do_val_print): Remove unused parameters. Don't call
35 la_val_print.
36 (val_print): Remove.
37 (common_val_print): Update. Don't call value_check_printable.
38 (val_print_scalar_formatted, val_print_array_elements): Remove.
39 * rust-lang.c (rust_val_print): Remove.
40 (rust_language_defn): Update.
41 * p-valprint.c (pascal_val_print): Remove.
42 (pascal_value_print_inner): Update.
43 (pascal_object_print_val_fields, pascal_object_print_val):
44 Remove.
45 (pascal_object_print_static_field): Update.
46 * p-lang.h (pascal_val_print): Don't declare.
47 * p-lang.c (pascal_language_defn): Update.
48 * opencl-lang.c (opencl_language_defn): Update.
49 * objc-lang.c (objc_language_defn): Update.
50 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
51 * m2-lang.h (m2_val_print): Don't declare.
52 * m2-lang.c (m2_language_defn): Update.
53 * language.h (struct language_defn) <la_val_print>: Remove.
54 * language.c (unk_lang_value_print_inner): Rename. Change
55 argument types.
56 (unknown_language_defn, auto_language_defn): Update.
57 * go-valprint.c (go_val_print): Remove.
58 * go-lang.h (go_val_print): Don't declare.
59 * go-lang.c (go_language_defn): Update.
60 * f-valprint.c (f_val_print): Remove.
61 * f-lang.h (f_value_print): Don't declare.
62 * f-lang.c (f_language_defn): Update.
63 * d-valprint.c (d_val_print): Remove.
64 * d-lang.h (d_value_print): Don't declare.
65 * d-lang.c (d_language_defn): Update.
66 * cp-valprint.c (cp_print_value_fields)
67 (cp_print_value_fields_rtti, cp_print_value): Remove.
68 (cp_print_static_field): Update.
69 * c-valprint.c (c_val_print_array, c_val_print_ptr)
70 (c_val_print_struct, c_val_print_union, c_val_print_int)
71 (c_val_print_memberptr, c_val_print): Remove.
72 * c-lang.h (c_val_print_array, cp_print_value_fields)
73 (cp_print_value_fields_rtti): Don't declare.
74 * c-lang.c (c_language_defn, cplus_language_defn)
75 (asm_language_defn, minimal_language_defn): Update.
76 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
77 (ada_val_print_enum): Take a struct value.
78 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
79 (ada_val_print): Remove.
80 (ada_value_print_1): Update.
81 (printable_val_type): Remove.
82 * ada-lang.h (ada_val_print): Don't declare.
83 * ada-lang.c (ada_language_defn): Update.
84
42331a1e
TT
852020-03-13 Tom Tromey <tom@tromey.com>
86
87 * valprint.c (do_val_print): Update.
88 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
89 a struct value.
90 (value_to_value_object_no_release): Declare.
91 * python/py-value.c (value_to_value_object_no_release): New
92 function.
93 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
94 struct value.
95 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
96 function.
97 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
98 a struct value.
99 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
100 Declare.
101 (gdbscm_apply_val_pretty_printer): Take a struct value.
102 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
103 value.
104 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
105 value.
106 * extension-priv.h (struct extension_language_ops)
107 <apply_val_pretty_printer>: Take a struct value.
108 * cp-valprint.c (cp_print_value): Create a struct value.
109 (cp_print_value): Update.
110
3a916a97
TT
1112020-03-13 Tom Tromey <tom@tromey.com>
112
113 * ada-valprint.c (print_field_values): Call common_val_print.
114
b59eac37
TT
1152020-03-13 Tom Tromey <tom@tromey.com>
116
117 * ada-valprint.c (val_print_packed_array_elements): Remove
118 bitoffset and val parameters. Call common_val_print.
119 (ada_val_print_string): Remove offset, address, and original_value
120 parameters.
121 (ada_val_print_array): Update.
122 (ada_value_print_array): New function.
123 (ada_value_print_1): Call it.
124
03371129
TT
1252020-03-13 Tom Tromey <tom@tromey.com>
126
127 * ada-valprint.c (ada_value_print): Use common_val_print.
128
2e088f8b
TT
1292020-03-13 Tom Tromey <tom@tromey.com>
130
131 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
132
39ef85a8
TT
1332020-03-13 Tom Tromey <tom@tromey.com>
134
135 * ada-valprint.c (ada_value_print_num): New function.
136 (ada_value_print_1): Use it.
137
b9fa6e07
TT
1382020-03-13 Tom Tromey <tom@tromey.com>
139
140 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
141
416595d6
TT
1422020-03-13 Tom Tromey <tom@tromey.com>
143
144 * ada-valprint.c (ada_value_print_ptr): New function.
145 (ada_value_print_1): Use it.
146
5b5e15ec
TT
1472020-03-13 Tom Tromey <tom@tromey.com>
148
149 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
150 call common_val_print.
151 (ada_val_print_1): Update.
152 (ada_value_print_1): New function.
153 (ada_value_print_inner): Rewrite.
154
fbf54e75
TT
1552020-03-13 Tom Tromey <tom@tromey.com>
156
157 * cp-valprint.c (cp_print_value_fields): Update.
158 (cp_print_value): New function.
159
64b653ca
TT
1602020-03-13 Tom Tromey <tom@tromey.com>
161
162 * m2-valprint.c (m2_value_print_inner): Use
163 cp_print_value_fields.
164 * cp-valprint.c (cp_print_value_fields): New function.
165 * c-valprint.c (c_value_print_struct): New function.
166 (c_value_print_inner): Use c_value_print_struct.
167 * c-lang.h (cp_print_value_fields): Declare.
168
6999f067
TT
1692020-03-13 Tom Tromey <tom@tromey.com>
170
171 * c-valprint.c (c_value_print_array): New function.
172 (c_value_print_inner): Use it.
173
ce80b8bd
TT
1742020-03-13 Tom Tromey <tom@tromey.com>
175
176 * c-valprint.c (c_value_print_memberptr): New function.
177 (c_value_print_inner): Use it.
178
2faac269
TT
1792020-03-13 Tom Tromey <tom@tromey.com>
180
181 * c-valprint.c (c_value_print_int): New function.
182 (c_value_print_inner): Use it.
183
da3e2c29
TT
1842020-03-13 Tom Tromey <tom@tromey.com>
185
186 * c-valprint.c (c_value_print_ptr): New function.
187 (c_value_print_inner): Use it.
188
50836231
TT
1892020-03-13 Tom Tromey <tom@tromey.com>
190
191 * c-valprint.c (c_value_print_inner): Rewrite.
192
4f412b6e
TT
1932020-03-13 Tom Tromey <tom@tromey.com>
194
195 * valprint.c (generic_value_print_complex): New function.
196 (generic_value_print): Use it.
197
f5354008
TT
1982020-03-13 Tom Tromey <tom@tromey.com>
199
200 * valprint.c (generic_val_print_float): Don't call
201 val_print_scalar_formatted.
202 (generic_val_print, generic_value_print): Update.
203
3eec3b05
TT
2042020-03-13 Tom Tromey <tom@tromey.com>
205
206 * valprint.c (generic_value_print_char): New function
207 (generic_value_print): Use it.
208
fdddfccb
TT
2092020-03-13 Tom Tromey <tom@tromey.com>
210
211 * valprint.c (generic_value_print_int): New function.
212 (generic_value_print): Use it.
213
6dde7521
TT
2142020-03-13 Tom Tromey <tom@tromey.com>
215
216 * valprint.c (generic_value_print_bool): New function.
217 (generic_value_print): Use it.
218
4112d2e6
TT
2192020-03-13 Tom Tromey <tom@tromey.com>
220
221 * valprint.c (generic_val_print_func): Simplify.
222 (generic_val_print, generic_value_print): Update.
223
65786af6
TT
2242020-03-13 Tom Tromey <tom@tromey.com>
225
226 * valprint.c (generic_val_print_flags): Remove.
227 (generic_val_print, generic_value_print): Update.
228 (val_print_type_code_flags): Add original_value parameter.
229
40f3ce18
TT
2302020-03-13 Tom Tromey <tom@tromey.com>
231
232 * valprint.c (generic_val_print): Update.
233 (generic_value_print): Update.
234 * valprint.c (generic_val_print_enum): Don't call
235 val_print_scalar_formatted.
236
2a5b130b
TT
2372020-03-13 Tom Tromey <tom@tromey.com>
238
239 * valprint.c (generic_value_print): Call generic_value_print_ptr.
240 * valprint.c (generic_value_print_ptr): New function.
241
abc66ce9
TT
2422020-03-13 Tom Tromey <tom@tromey.com>
243
244 * valprint.c (generic_value_print): Rewrite.
245
07a32858
TT
2462020-03-13 Tom Tromey <tom@tromey.com>
247
248 * p-valprint.c (pascal_object_print_value_fields)
249 (pascal_object_print_value): New functions.
250
64d64d3a
TT
2512020-03-13 Tom Tromey <tom@tromey.com>
252
253 * p-valprint.c (pascal_value_print_inner): Rewrite.
254
6a95a1f5
TT
2552020-03-13 Tom Tromey <tom@tromey.com>
256
257 * f-valprint.c (f_value_print_innner): Rewrite.
258
59fcdac6
TT
2592020-03-13 Tom Tromey <tom@tromey.com>
260
261 * m2-valprint.c (m2_print_unbounded_array): New overload.
262 (m2_print_unbounded_array): Update.
263 (m2_print_array_contents): Take a struct value.
264 (m2_value_print_inner): Rewrite.
265
d133c3e1
TT
2662020-03-13 Tom Tromey <tom@tromey.com>
267
268 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
269 (d_value_print_inner): New function.
270 * d-lang.h (d_value_print_inner): Declare.
271 * d-lang.c (d_language_defn): Use d_value_print_inner.
272
23b0f06b
TT
2732020-03-13 Tom Tromey <tom@tromey.com>
274
275 * go-valprint.c (go_value_print_inner): New function.
276 * go-lang.h (go_value_print_inner): Declare.
277 * go-lang.c (go_language_defn): Use go_value_print_inner.
278
5f56f7cb
TT
2792020-03-13 Tom Tromey <tom@tromey.com>
280
281 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
282 API.
283 (rust_val_print): Rewrite.
284 (rust_value_print_inner): New function, from rust_val_print.
285 (rust_language_defn): Use rust_value_print_inner.
286
26792ee0
TT
2872020-03-13 Tom Tromey <tom@tromey.com>
288
289 * ada-valprint.c (ada_value_print_inner): New function.
290 * ada-lang.h (ada_value_print_inner): Declare.
291 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
292
24051bbe
TT
2932020-03-13 Tom Tromey <tom@tromey.com>
294
295 * f-valprint.c (f_value_print_innner): New function.
296 * f-lang.h (f_value_print_innner): Declare.
297 * f-lang.c (f_language_defn): Use f_value_print_innner.
298
c0941be6
TT
2992020-03-13 Tom Tromey <tom@tromey.com>
300
301 * p-valprint.c (pascal_value_print_inner): New function.
302 * p-lang.h (pascal_value_print_inner): Declare.
303 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
304
62c4663d
TT
3052020-03-13 Tom Tromey <tom@tromey.com>
306
307 * m2-valprint.c (m2_value_print_inner): New function.
308 * m2-lang.h (m2_value_print_inner): Declare.
309 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
310
62182190
TT
3112020-03-13 Tom Tromey <tom@tromey.com>
312
313 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
314 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
315 * c-valprint.c (c_value_print_inner): New function.
316 * c-lang.h (c_value_print_inner): Declare.
317 * c-lang.c (c_language_defn, cplus_language_defn)
318 (asm_language_defn, minimal_language_defn): Use
319 c_value_print_inner.
320
1e592a8a
TT
3212020-03-13 Tom Tromey <tom@tromey.com>
322
323 * p-valprint.c (pascal_object_print_value_fields): Now static.
324 * p-lang.h (pascal_object_print_value_fields): Don't declare.
325
7fe471e9
TT
3262020-03-13 Tom Tromey <tom@tromey.com>
327
328 * c-valprint.c (c_val_print_array): Simplify.
329
d121c6ce
TT
3302020-03-13 Tom Tromey <tom@tromey.com>
331
332 * valprint.c (value_print_array_elements): New function.
333 * valprint.h (value_print_array_elements): Declare.
334
4dba70ee
TT
3352020-03-13 Tom Tromey <tom@tromey.com>
336
337 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
338 * mips-tdep.c (mips_print_register): Use
339 value_print_scalar_formatted.
340
4f9ae810
TT
3412020-03-13 Tom Tromey <tom@tromey.com>
342
343 * valprint.h (value_print_scalar_formatted): Declare.
344 * valprint.c (value_print_scalar_formatted): New function.
345
156bfec9
TT
3462020-03-13 Tom Tromey <tom@tromey.com>
347
348 * valprint.h (generic_value_print): Declare.
349 * valprint.c (generic_value_print): New function.
350
2b4e573d
TT
3512020-03-13 Tom Tromey <tom@tromey.com>
352
353 * valprint.c (do_val_print): Call la_value_print_inner, if
354 available.
355 * rust-lang.c (rust_language_defn): Update.
356 * p-lang.c (pascal_language_defn): Update.
357 * opencl-lang.c (opencl_language_defn): Update.
358 * objc-lang.c (objc_language_defn): Update.
359 * m2-lang.c (m2_language_defn): Update.
360 * language.h (struct language_defn) <la_value_print_inner>: New
361 member.
362 * language.c (unknown_language_defn, auto_language_defn): Update.
363 * go-lang.c (go_language_defn): Update.
364 * f-lang.c (f_language_defn): Update.
365 * d-lang.c (d_language_defn): Update.
366 * c-lang.c (c_language_defn, cplus_language_defn)
367 (asm_language_defn, minimal_language_defn): Update.
368 * ada-lang.c (ada_language_defn): Update.
369
a1f6a07c
TT
3702020-03-13 Tom Tromey <tom@tromey.com>
371
372 * c-valprint.c (c_value_print): Use common_val_print.
373
410cf315
TT
3742020-03-13 Tom Tromey <tom@tromey.com>
375
376 * cp-valprint.c (cp_print_static_field): Use common_val_print.
377
72a45c93
TT
3782020-03-13 Tom Tromey <tom@tromey.com>
379
380 * f-valprint.c (f77_print_array_1, f_val_print): Use
381 common_val_print.
382
040f66bd
TT
3832020-03-13 Tom Tromey <tom@tromey.com>
384
385 * riscv-tdep.c (riscv_print_one_register_info): Use
386 common_val_print.
387
a6e05a6c
TT
3882020-03-13 Tom Tromey <tom@tromey.com>
389
390 * mi/mi-main.c (output_register): Use common_val_print.
391
3444c526
TT
3922020-03-13 Tom Tromey <tom@tromey.com>
393
394 * infcmd.c (default_print_one_register_info): Use
395 common_val_print.
396
c2a44efe
TT
3972020-03-13 Tom Tromey <tom@tromey.com>
398
399 * valprint.h (common_val_print_checked): Declare.
400 * valprint.c (common_val_print_checked): New function.
401 * stack.c (print_frame_arg): Use common_val_print_checked.
402
b0c26e99
TT
4032020-03-13 Tom Tromey <tom@tromey.com>
404
405 * valprint.c (do_val_print): New function, from val_print.
406 (val_print): Use do_val_print.
407 (common_val_print): Use do_val_print.
408
ce3acbe9
TT
4092020-03-13 Tom Tromey <tom@tromey.com>
410
411 * valprint.c (value_print): Use scoped_value_mark.
412
96c7f873
TV
4132020-03-13 Tom de Vries <tdevries@suse.de>
414
415 PR symtab/25646
416 * psymtab.c (partial_symtab::partial_symtab): Don't set
417 globals_offset and statics_offset. Push element onto
418 current_global_psymbols and current_static_psymbols stacks.
419 (concat): New function.
420 (end_psymtab_common): Set globals_offset and statics_offset. Pop
421 element from current_global_psymbols and current_static_psymbols
422 stacks. Concat popped elements to global_psymbols and
423 static_symbols.
424 (add_psymbol_to_list): Use current_global_psymbols and
425 current_static_psymbols stacks.
426 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
427 current_static_psymbols fields.
428
6ba0a321
CB
4292020-03-12 Christian Biesinger <cbiesinger@google.com>
430
431 * corelow.c (sniff_core_bfd): Remove.
432 (class core_target) <m_core_vec>: Remove.
433 (core_target::core_target): Update.
434 (core_file_fns): Remove.
435 (deprecated_add_core_fns): Remove.
436 (default_core_sniffer): Remove.
437 (sniff_core_bfd): Remove.
438 (default_check_format): Remove.
439 (gdb_check_format): Remove.
440 (core_target_open): Update.
441 (core_target::get_core_register_section): Update.
442 (get_core_registers_cb): Update.
443 (core_target::fetch_registers): Update.
444 * gdbcore.h (struct core_fns): Remove.
445 (deprecated_add_core_fns): Remove.
446 (default_core_sniffer): Remove.
447 (default_check_format): Remove.
448
227031b2
TT
4492020-03-12 Tom Tromey <tom@tromey.com>
450
451 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
452 CORE_ADDR.
453 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
454
53807e9f
TT
4552020-03-12 Tom Tromey <tom@tromey.com>
456
457 * remote.c (remote_target::download_tracepoint)
458 (remote_target::enable_tracepoint)
459 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
460 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
461 sprintf_vma.
462
64f25102
TT
4632020-03-12 Tom Tromey <tom@tromey.com>
464
465 * symfile-mem.c: Update CORE_ADDR size assert.
466
272cd5a3
SM
4672020-03-12 Simon Marchi <simon.marchi@efficios.com>
468
469 * selftest.m4: Move to gdbsupport/.
470 * acinclude.m4: Update path to selftest.m4.
471
74cd3f9d
SM
4722020-03-12 Simon Marchi <simon.marchi@efficios.com>
473
474 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
475 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
476 gdbarch-selfselftests.c and selftest-arch.c.
477 (SUBDIR_UNITTESTS_OBS): Rename to...
478 (SELFTESTS_OBS): ... this.
479 (COMMON_SFILES): Remove disasm-selftests.c and
480 gdbarch-selftests.c.
481 * configure.ac: Don't add selftest-arch.{c,o} to
482 CONFIG_{SRCS,OBS}.
483 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
484 preprocessor conditions.
485
db6878ac
SM
4862020-03-12 Simon Marchi <simon.marchi@efficios.com>
487
488 * configure.ac: Don't source bfd/development.sh.
489 * selftest.m4: Modify comment.
490 * configure: Re-generate.
491
4d696a5c
SM
4922020-03-12 Simon Marchi <simon.marchi@efficios.com>
493
494 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
495 not "true" or "false".
496 * configure: Re-generate.
497
8dd8e1c7
CB
4982020-03-12 Christian Biesinger <cbiesinger@google.com>
499
500 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
501 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
502 renamed to arm_nbsd_supply_gregset.
503 (fetch_register): Update to call arm_nbsd_supply_gregset.
504 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
505 (arm_netbsd_nat_target::fetch_registers): Update.
506 (fetch_elfcore_registers): Removed.
507 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
508 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
509 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
510 not require NetBSD system headers.
511 (arm_nbsd_regset): New struct.
512 (arm_nbsd_iterate_over_regset_sections): New function.
513 (arm_netbsd_init_abi_common): Updated to call
514 set_gdbarch_iterate_over_regset_sections.
515 * arm-nbsd-tdep.h: New file.
516
dd69bf7a
KB
5172020-03-11 Kevin Buettner <kevinb@redhat.com>
518
519 * symtab.c (find_pc_sect_line): Add check which prevents infinite
520 recursion.
521
a0761e34
SM
5222020-03-11 Simon Marchi <simon.marchi@efficios.com>
523
524 * configure: Re-generate.
525
e7a82140
TT
5262020-03-11 Tom Tromey <tromey@adacore.com>
527
528 * ada-typeprint.c (print_choices): Fix comment.
529
dcc050c8
AB
5302020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
533 previous item in the list, when the list has no items.
534
1c33af77
TV
5352020-03-11 Tom de Vries <tdevries@suse.de>
536
537 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
538 PROP_LOCLIST handling code.
539
8c95582d
AB
5402020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
541
542 * buildsym-legacy.c (record_line): Pass extra parameter to
543 record_line.
544 * buildsym.c (buildsym_compunit::record_line): Take an extra
545 parameter, reduce duplication in the line table, and record the
546 is_stmt flag in the line table.
547 * buildsym.h (buildsym_compunit::record_line): Add extra
548 parameter.
549 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
550 non-statement lines.
551 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
552 this to the symtab builder.
553 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
554 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
555 through to dwarf_record_line_1.
556 * infrun.c (process_event_stop_test): When stepping, don't stop at
557 a non-statement instruction, and only refresh the step info when
558 we land in the middle of a line's range. Also add an extra
559 comment.
560 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
561 field.
562 * record-btrace.c (btrace_find_line_range): Only record lines
563 marked as is-statement.
564 * stack.c (frame_show_address): Show the frame address if we are
565 in a non-statement sal.
566 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
567 (maintenance_print_one_line_table): Print a header for the is_stmt
568 column, and include is_stmt information in the output.
569 * symtab.c (find_pc_sect_line): Find lines marked as statements in
570 preference to non-statements.
571 (find_pcs_for_symtab_line): Prefer is-statement entries.
572 (find_line_common): Likewise.
573 * symtab.h (struct linetable_entry): Add is_stmt field.
574 (struct symtab_and_line): Likewise.
575 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
576 arranging the line table.
577
e4003a34
TV
5782020-03-07 Tom de Vries <tdevries@suse.de>
579
580 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
581 DIE.
582
e8932576
TT
5832020-03-07 Tom Tromey <tom@tromey.com>
584
585 * valops.c (value_literal_complex): Remove obsolete comment.
586 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
587 comment.
588
29734269
SM
5892020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
590
591 * infrun.h: Forward-declare thread_info.
592 (set_step_info): Add thread_info parameter, add doc.
593 * infrun.c (set_step_info): Add thread_info parameter, move doc
594 to header.
595 * infrun.c (process_event_stop_test): Pass thread to
596 set_step_info call.
597 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
598 set_step_info.
599 (prepare_one_step): Add thread_info parameter, pass it to
600 set_step_frame and prepare_one_step (recursive) call.
601 (step_1): Pass thread to prepare_one_step call.
602 (step_command_fsm::should_stop): Pass thread to
603 prepare_one_step.
604 (until_next_fsm): Pass thread to set_step_frame call.
605 (finish_command): Pass thread to set_step_info call.
606
b7d64b29
HD
6072020-03-06 Hannes Domani <ssbssa@yahoo.de>
608
609 * windows-tdep.c (windows_solib_create_inferior_hook):
610 Check if inferior is running.
611
09f2921c
TV
6122020-03-06 Tom de Vries <tdevries@suse.de>
613
614 * NEWS: Fix "the the".
615 * ctfread.c: Same.
616
fd760e79
TV
6172020-03-06 Tom de Vries <tdevries@suse.de>
618
619 * psymtab.c (psymtab_to_symtab): Don't print "done.".
620
20ea4a60
AB
6212020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
622
623 * .dir-locals.el: Add a comment referencing the other copies of
624 this file.
625
0afbabf0
JB
6262020-03-05 John Baldwin <jhb@FreeBSD.org>
627
628 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
629 psargs.
630
842806cb
TBA
6312020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
632
633 * .gitattributes: New file.
634
be1e3d3e
TT
6352020-03-04 Tom Tromey <tom@tromey.com>
636
637 * symmisc.c (print_symbol_bcache_statistics)
638 (print_objfile_statistics): Update.
639 * symfile.c (allocate_symtab): Use intern.
640 * psymtab.c (partial_symtab::partial_symtab): Use intern.
641 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
642 macro_cache>: Remove.
643 <string_cache>: New member.
644 (struct objfile) <intern>: New methods.
645 * elfread.c (elf_symtab_read): Use intern.
646 * dwarf2/read.c (fixup_go_packaging): Intern package name.
647 (dwarf2_compute_name, dwarf2_physname)
648 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
649 names.
650 (guess_partial_die_structure_name): Update.
651 (partial_die_info::fixup): Intern name.
652 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
653 name.
654 (dwarf2_name): Intern name. Update.
655 * buildsym.c (buildsym_compunit::get_macro_table): Use
656 string_cache.
657
4e7625fd
TT
6582020-03-04 Tom Tromey <tom@tromey.com>
659
660 * jit.c (bfd_open_from_target_memory): Make "target" const.
661 * corefile.c (gnutarget): Now const.
662 * gdbcore.h (gnutarget): Now const.
663
46f9f931
HD
6642020-03-04 Hannes Domani <ssbssa@yahoo.de>
665
666 * NEWS: Mention support for WOW64 processes.
667 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
668 (amd64_windows_segment_register_p): Remove static.
669 (_initialize_amd64_windows_nat): Update.
670 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
671 * i386-windows-nat.c (context_offset): Update.
672 (i386_mappings): Rename and remove static.
673 (i386_windows_segment_register_p): Remove static.
674 (_initialize_i386_windows_nat): Update.
675 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
676 (STATUS_WX86_SINGLE_STEP): New macro.
677 (EnumProcessModulesEx): New macro.
678 (Wow64SuspendThread): New macro.
679 (Wow64GetThreadContext): New macro.
680 (Wow64SetThreadContext): New macro.
681 (Wow64GetThreadSelectorEntry): New macro.
682 (windows_set_context_register_offsets): Add static.
683 (windows_set_segment_register_p): Likewise.
684 (windows_add_thread): Adapt for WOW64 processes.
685 (windows_fetch_one_register): Likewise.
686 (windows_nat_target::fetch_registers): Likewise.
687 (windows_store_one_register): Likewise.
688 (display_selector): Likewise.
689 (display_selectors): Likewise.
690 (handle_exception): Likewise.
691 (windows_continue): Likewise.
692 (windows_nat_target::resume): Likewise.
693 (windows_add_all_dlls): Likewise.
694 (do_initial_windows_stuff): Likewise.
695 (windows_nat_target::attach): Likewise.
696 (windows_get_exec_module_filename): Likewise.
697 (windows_nat_target::create_inferior): Likewise.
698 (windows_xfer_siginfo): Likewise.
699 (_initialize_loadable): Initialize Wow64SuspendThread,
700 Wow64GetThreadContext, Wow64SetThreadContext,
701 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
702 * windows-nat.h (windows_set_context_register_offsets):
703 Remove declaration.
704 (windows_set_segment_register_p): Likewise.
705 (i386_windows_segment_register_p): Add declaration.
706 (amd64_windows_segment_register_p): Likewise.
707
440cf44e
LM
7082020-03-04 Luis Machado <luis.machado@linaro.org>
709
710 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
711 in "info registers" for AArch64/ARM.
712
713 The change caused "info registers" to not print GPR's.
714
715 gdb/ChangeLog:
716
717 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
718
719 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
720 when reg->group is empty and reggroup is not.
721
1009d92f
TT
7222020-03-03 Tom Tromey <tromey@adacore.com>
723
724 * dwarf2/frame.c (struct dwarf2_frame_cache)
725 <checked_tailcall_bottom, entry_cfa_sp_offset,
726 entry_cfa_sp_offset_p>: Remove members.
727 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
728 (dwarf2_frame_prev_register): Don't call
729 dwarf2_tailcall_sniffer_first.
730 (dwarf2_append_unwinders): Don't append tailcall unwinder.
731 * frame-unwind.c (add_unwinder): New fuction.
732 (frame_unwind_init): Use it. Add tailcall unwinder.
733
5e5d66b6
AB
7342020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
735 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
736
737 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
738 value should be printed as true.
739
584cf46d
HD
7402020-03-03 Hannes Domani <ssbssa@yahoo.de>
741
742 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
743 (windows_init_abi): Set and use windows_so_ops.
744
7b973adc
SDJ
7452020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
746
747 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
748 when verifying if dealing with a convenience variable.
749
bb7b70ab
LM
7502020-03-03 Luis Machado <luis.machado@linaro.org>
751
752 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
753
9822cb57
SM
7542020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
755
756 * infrun.c (gdbarch_supports_displaced_stepping): New.
757 (use_displaced_stepping): Break up conditions in smaller pieces.
758 Use gdbarch_supports_displaced_stepping.
759 (displaced_step_prepare_throw): Use
760 gdbarch_supports_displaced_stepping.
761
63e163f2
AB
7622020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
763
764 * NEWS: Mention new behaviour of the history filename.
765 * top.c (write_history_p): Add comment.
766 (show_write_history_p): Add header comment, give a different
767 message when history writing is on, but the history filename is
768 empty.
769 (history_filename): Add comment.
770 (history_filename_empty): New function.
771 (show_history_filename): Add header comment, give a different
772 message when the filename is empty.
773 (init_history): Compare history_filename against nullptr, and only
774 read history if the filename is not empty.
775 (set_history_filename): Add header comment, and only make
776 non-empty filenames absolute.
777 (init_main): Make the filename argument to 'set history filename'
778 optional.
779
81b86b97
CB
7802020-03-02 Christian Biesinger <cbiesinger@google.com>
781
782 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
783 (arm_supply_vfpregset): ...this, and update to use VFP registers.
784 (fetch_fp_register): Update.
785 (fetch_fp_regs): Update.
786 (store_fp_register): Update.
787 (store_fp_regs): Update.
788 (arm_netbsd_nat_target::read_description): New function.
789 (fetch_elfcore_registers): Update.
790
24ed6739
AB
7912020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
792
793 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
794 general_thread if the stop reply is missing a thread-id.
795 (remote_target::process_stop_reply): Use the first non-exited
796 thread if the target didn't pass a thread-id.
797 * infrun.c (do_target_wait): Move call to
798 switch_to_inferior_no_thread to ....
799 (do_target_wait_1): ... here.
800
a84bb2a0
JT
8012020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
802
803 * debuginfod-support.c: Include defs.h first.
804
658dadf0
TV
8052020-02-28 Tom de Vries <tdevries@suse.de>
806
807 * symfile.c (set_initial_language): Use default language for lookup.
808
4ebe4877
SM
8092020-02-28 Simon Marchi <simon.marchi@efficios.com>
810
811 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
812 reader variable, pass `this` to read_cutu_die_from_dwo.
813
e5da1139
AM
8142020-02-27 Aaron Merey <amerey@redhat.com>
815
816 * source.c (open_source_file): Check for nullptr when computing
817 srcpath.
818
317f7127
TT
8192020-02-27 Tom Tromey <tromey@adacore.com>
820
821 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
822 member.
823 (dwarf2_add_field): Don't update nfields.
824 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
825
3104d9ee
AB
8262020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
827
828 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
829 abs.
830
b83470bf
TT
8312020-02-26 Tom Tromey <tom@tromey.com>
832
833 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
834 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
835 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
836 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
837 per_cu_data.
838
edfe0a0c
TT
8392020-02-26 Tom Tromey <tom@tromey.com>
840
841 * dwarf2/index-write.c (psym_index_map): Change type.
842 (add_address_entry_worker, write_one_signatured_type)
843 (recursively_count_psymbols, recursively_write_psymbols)
844 (class debug_names, psyms_seen_size, write_gdbindex)
845 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
846
0d79cdc4
AM
8472020-02-26 Aaron Merey <amerey@redhat.com>
848
849 * Makefile.in: Handle optional debuginfod support.
850 * NEWS: Update.
851 * README: Add --with-debuginfod summary.
852 * config.in: Regenerate.
853 * configure: Regenerate.
854 * configure.ac: Handle optional debuginfod support.
855 * debuginfod-support.c: debuginfod helper functions.
856 * debuginfod-support.h: Ditto.
857 * doc/gdb.texinfo: Add --with-debuginfod to configure options
858 summary.
859 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
860 when a dwz file cannot be found.
861 * elfread.c (elf_symfile_read): Query debuginfod servers when a
862 debuginfo file cannot be found.
863 * source.c (open_source_file): Query debuginfod servers when a
864 source file cannot be found.
865 * top.c (print_gdb_configuration): Include
866 --{with,without}-debuginfod in the output.
867
b65ce565
JG
8682020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
869
870 * thread.c (thr_try_catch_cmd): Print thread name.
871
d4c9a4f8
SM
8722020-02-26 Simon Marchi <simon.marchi@efficios.com>
873
874 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
875 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
876 dwarf2_fetch_die_type_sect_off): Move to...
877 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
878 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
879 dwarf2_fetch_die_type_sect_off): ... here.
880 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
881 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
882 dwarf2_fetch_die_type_sect_off): Move doc to header file.
883
0dce4280
TV
8842020-02-26 Tom de Vries <tdevries@suse.de>
885
886 PR gdb/25603
887 * symfile.c (set_initial_language): Exit-early if
888 language_mode == language_mode_manual.
889
450a1bfc
SM
8902020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
891
892 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
893 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
894 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
895
9e80cfa1
AB
8962020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
897
898 * gdbtypes.c (create_array_type_with_stride): Handle negative
899 array strides.
900 * valarith.c (value_subscripted_rvalue): Likewise.
901
09624f1f
LM
9022020-02-25 Luis Machado <luis.machado@linaro.org>
903
904 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
905
8cb5117c
SM
9062020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
907
908 * loc.h (dwarf2_get_die_type): Move to...
909 * read.h (dwarf2_get_die_type): ... here.
910 * read.c (dwarf2_get_die_type): Move doc to header.
911
c325c44e
JB
9122020-02-25 Joel Brobecker <brobecker@adacore.com>
913
914 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
915 'gnulib/Makefile.in' to the list.
916
4ac93832
TT
9172020-02-24 Tom Tromey <tom@tromey.com>
918
919 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
920 Remove.
921 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
922 XOBNEWVEC.
923
197400e8
TT
9242020-02-24 Tom Tromey <tom@tromey.com>
925
926 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
927 New method.
928 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
929 (dw2_do_instantiate_symtab, dw2_get_file_names)
930 (build_type_psymtab_dependencies, load_full_type_unit): Update.
931
76935768
TT
9322020-02-24 Tom Tromey <tom@tromey.com>
933
934 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
935 make_scoped_restore.
936 (dwarf2_psymtab::read_symtab): Don't clear
937 reading_partial_symbols.
938
a88ef40d
TV
9392020-02-24 Tom de Vries <tdevries@suse.de>
940
941 PR gdb/25592
942 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
943
c9af6521
TV
9442020-02-24 Tom de Vries <tdevries@suse.de>
945
946 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
947 commands layout next/prev/regs.
948
5707a07a
TT
9492020-02-22 Tom Tromey <tom@tromey.com>
950
951 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
952 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
953
3b0fb49e
TT
9542020-02-22 Tom Tromey <tom@tromey.com>
955
956 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
957
283be8bf
TT
9582020-02-22 Tom Tromey <tom@tromey.com>
959
960 * tui/tui-win.c (_initialize_tui_win): Add usage text.
961 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
962 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
963 * tui/tui.c (_initialize_tui): Add usage text.
964
ca793b96
TT
9652020-02-22 Tom Tromey <tom@tromey.com>
966
967 * tui/tui-win.c (tui_set_focus_command)
968 (tui_set_win_height_command): Use error_no_arg.
969 (_initialize_tui_win): Update help text.
970 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
971
432b5c40
TT
9722020-02-22 Tom Tromey <tom@tromey.com>
973
974 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
975 * tui/tui-disasm.h (struct tui_disasm_window)
976 <display_start_addr>: Declare.
977 * tui/tui-source.h (struct tui_source_window)
978 <display_start_addr>: Declare.
979 * tui/tui-winsource.h (struct tui_source_window_base)
980 <show_source_line, display_start_addr>: New methods.
981 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
982 Rename and move to protected section.
983 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
984 (tui_source_window_base::do_erase_source_content): Update.
985 (tui_source_window_base::show_source_line): Now a method.
986 (tui_source_window_base::show_source_content)
987 (tui_source_window_base::tui_source_window_base)
988 (tui_source_window_base::rerender)
989 (tui_source_window_base::refill)
990 (tui_source_window_base::do_scroll_horizontal)
991 (tui_source_window_base::set_is_exec_point_at)
992 (tui_source_window_base::update_breakpoint_info)
993 (tui_source_window_base::update_exec_info): Update.
994 * tui/tui-source.c (tui_source_window::set_contents)
995 (tui_source_window::showing_source_p)
996 (tui_source_window::do_scroll_vertical)
997 (tui_source_window::location_matches_p)
998 (tui_source_window::line_is_displayed): Update.
999 (tui_source_window::display_start_addr): New method.
1000 * tui/tui-disasm.c (tui_disasm_window::set_contents)
1001 (tui_disasm_window::do_scroll_vertical)
1002 (tui_disasm_window::location_matches_p): Update.
1003 (tui_disasm_window::display_start_addr): New method.
1004
01b1af32
TT
10052020-02-22 Tom Tromey <tom@tromey.com>
1006
1007 * NEWS: Add entry for gdb.register_window_type.
1008 * tui/tui-layout.h (window_factory): New typedef.
1009 (tui_register_window): Declare.
1010 * tui/tui-layout.c (saved_tui_windows): New global.
1011 (tui_apply_current_layout): Use it.
1012 (tui_register_window): New function.
1013 * python/python.c (do_start_initialization): Call
1014 gdbpy_initialize_tui.
1015 (python_GdbMethods): Add "register_window_type" function.
1016 * python/python-internal.h (gdbpy_register_tui_window)
1017 (gdbpy_initialize_tui): Declare.
1018 * python/py-tui.c: New file.
1019 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
1020
fc96d20b
TT
10212020-02-22 Tom Tromey <tom@tromey.com>
1022
1023 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
1024
935c78c0
TT
10252020-02-22 Tom Tromey <tom@tromey.com>
1026
1027 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
1028 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
1029 * tui/tui-data.c (tui_set_win_with_focus): Remove.
1030 (tui_set_win_focus_to): Move from tui-win.c.
1031
0240c8f1
TT
10322020-02-22 Tom Tromey <tom@tromey.com>
1033
1034 * tui/tui-layout.c (make_standard_window, get_locator_window): New
1035 functions.
1036 (known_window_types): New global.
1037 (tui_get_window_by_name): Reimplement.
1038 (initialize_known_windows): New function.
1039 (validate_window_name): Rewrite.
1040 (_initialize_tui_layout): Call initialize_known_windows.
1041
fdb01f0c
TT
10422020-02-22 Tom Tromey <tom@tromey.com>
1043
1044 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
1045 Remove constants.
1046 * tui/tui-winsource.h (struct tui_source_window_base)
1047 <tui_source_window_base>: Remove parameter.
1048 * tui/tui-winsource.c
1049 (tui_source_window_base::tui_source_window_base): Remove
1050 parameter.
1051 (tui_source_window_base::refill): Update.
1052 * tui/tui-stack.h (struct tui_locator_window)
1053 <tui_locator_window>: Update.
1054 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
1055 Default the constructor.
1056 * tui/tui-regs.h (struct tui_data_item_window)
1057 <tui_data_item_window>: Default the constructor.
1058 (struct tui_data_window) <tui_data_window>: Likewise.
1059 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
1060 Default the constructor.
1061 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
1062 Default the constructor.
1063 <type>: Remove.
1064 (struct tui_win_info) <tui_win_info>: Default the constructor.
1065 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
1066 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1067 Default the constructor.
1068
865a5aec
TT
10692020-02-22 Tom Tromey <tom@tromey.com>
1070
1071 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
1072 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
1073 * tui/tui-win.c (tui_resize_all): Don't call
1074 tui_delete_invisible_windows.
1075 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
1076 done.
1077 (tui_set_layout): Update.
1078 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
1079 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
1080 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
1081
e098d18c
TT
10822020-02-22 Tom Tromey <tom@tromey.com>
1083
1084 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
1085 correctly.
1086
eb9c8874
TT
10872020-02-22 Tom Tromey <tom@tromey.com>
1088
1089 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
1090
7eed1a8e
TT
10912020-02-22 Tom Tromey <tom@tromey.com>
1092
1093 * tui/tui-winsource.h (struct tui_source_window_iterator)
1094 <inner_iterator>: New etytypedef.
1095 <tui_source_window_iterator>: Take "end" parameter.
1096 <tui_source_window_iterator>: Take iterator.
1097 <operator*, advance>: Update.
1098 <m_iter>: Change type.
1099 <m_end>: New field.
1100 (struct tui_source_windows) <begin, end>: Update.
1101 * tui/tui-layout.c (tui_windows): New global.
1102 (tui_apply_current_layout): Clear tui_windows.
1103 (tui_layout_window::apply): Update tui_windows.
1104 * tui/tui-data.h (tui_windows): Declare.
1105 (all_tui_windows): Now inline function.
1106 (class tui_window_iterator, struct all_tui_windows): Remove.
1107
7c043ba6
TT
11082020-02-22 Tom Tromey <tom@tromey.com>
1109
1110 PR tui/17850:
1111 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
1112 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
1113 "height" argument.
1114 (class tui_layout_window) <get_sizes>: Likewise.
1115 (class tui_layout_split) <tui_layout_split>: Add "vertical"
1116 argument.
1117 <get_sizes>: Add "height" argument.
1118 <m_vertical>: New field.
1119 * tui/tui-layout.c (tui_layout_split::clone): Update.
1120 (tui_layout_split::get_sizes): Add "height" argument.
1121 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
1122 (tui_new_layout_command): Parse "-horizontal".
1123 (_initialize_tui_layout): Update help string.
1124 (tui_layout_split::specification): Add "-horizontal" when needed.
1125 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
1126 argument.
1127 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
1128 New methods.
1129
6bc56648
TT
11302020-02-22 Tom Tromey <tom@tromey.com>
1131
1132 * tui/tui-layout.h (enum tui_adjust_result): New.
1133 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
1134 (class tui_layout_window) <adjust_size>: Return
1135 tui_adjust_result. Rewrite.
1136 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
1137 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
1138
c22fef7e
TT
11392020-02-22 Tom Tromey <tom@tromey.com>
1140
1141 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
1142 parameter and return types.
1143 (class tui_layout_base) <specification>: Add "depth".
1144 (class tui_layout_window) <specification>: Add "depth".
1145 (class tui_layout_split) <specification>: Add "depth".
1146 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
1147 and return types.
1148 (tui_new_layout_command): Parse sub-layouts.
1149 (_initialize_tui_layout): Update help string.
1150 (tui_layout_window::specification): Add "depth".
1151 (add_layout_command): Update.
1152
ee325b61
TT
11532020-02-22 Tom Tromey <tom@tromey.com>
1154
1155 * NEWS: Add "tui new-layout" item.
1156 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
1157 Add new-layout command to help text.
1158 (validate_window_name): New function.
1159 (tui_new_layout_command): New function.
1160 (_initialize_tui_layout): Register "new-layout".
1161 (tui_layout_window::specification): New method.
1162 (tui_layout_window::specification): New method.
1163 * tui/tui-layout.h (class tui_layout_base) <specification>: New
1164 method.
1165 (class tui_layout_window) <specification>: New method.
1166 (class tui_layout_split) <specification>: New method.
1167
416eb92d
TT
11682020-02-22 Tom Tromey <tom@tromey.com>
1169
1170 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
1171 * tui/tui-win.c (window_name_completer): Update comment.
1172 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
1173 Declare method.
1174 (class tui_layout_window) <replace_window>: Likewise.
1175 (class tui_layout_split) <replace_window>: Likewise.
1176 (tui_set_layout): Don't declare.
1177 (tui_set_initial_layout): Declare function.
1178 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
1179 (asm_regs_layout): New globals.
1180 (tui_current_layout, show_layout): Remove.
1181 (tui_set_layout, tui_add_win_to_layout): Rewrite.
1182 (find_layout, tui_apply_layout): New function.
1183 (layout_completer): Remove.
1184 (tui_next_layout): Reimplement.
1185 (tui_next_layout_command): New function.
1186 (tui_set_initial_layout, tui_prev_layout_command): New functions.
1187 (tui_regs_layout): Reimplement.
1188 (tui_regs_layout_command): New function.
1189 (extract_display_start_addr): Rewrite.
1190 (next_layout, prev_layout): Remove.
1191 (tui_layout_window::replace_window): New method.
1192 (tui_layout_split::replace_window): New method.
1193 (destroy_layout): New function.
1194 (layout_list): New global.
1195 (add_layout_command): New function.
1196 (initialize_layouts): Update.
1197 (tui_layout_command): New function.
1198 (_initialize_tui_layout): Install "layout" commands.
1199 * tui/tui-data.h (enum tui_layout_type): Remove.
1200 (tui_current_layout): Don't declare.
1201
0dbc2fc7
TT
12022020-02-22 Tom Tromey <tom@tromey.com>
1203
1204 * tui/tui-regs.c (tui_reg_layout): Remove.
1205 (tui_reg_command): Use tui_regs_layout.
1206 * tui/tui-layout.h (tui_reg_command): Declare.
1207 * tui/tui-layout.c (tui_reg_command): New function.
1208
5afe342e
TT
12092020-02-22 Tom Tromey <tom@tromey.com>
1210
1211 * tui/tui.c (tui_rl_delete_other_windows): Call
1212 tui_remove_some_windows.
1213 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
1214 Declare method.
1215 (class tui_layout_window) <remove_windows>: New method.
1216 (class tui_layout_split) <remove_windows>: Declare.
1217 (tui_remove_some_windows): Declare.
1218 * tui/tui-layout.c (tui_remove_some_windows): New function.
1219 (tui_layout_split::remove_windows): New method.
1220
427326a8
TT
12212020-02-22 Tom Tromey <tom@tromey.com>
1222
1223 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
1224 * tui/tui-layout.h (tui_next_layout): Declare.
1225 * tui/tui-layout.c (tui_next_layout): New function.
1226
3fe12b6d
TT
12272020-02-22 Tom Tromey <tom@tromey.com>
1228
1229 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
1230 correct coordinates.
1231
59b8b5d2
TT
12322020-02-22 Tom Tromey <tom@tromey.com>
1233
1234 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
1235 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
1236 DATA_WIN case.
1237
2a3d458b
TT
12382020-02-22 Tom Tromey <tom@tromey.com>
1239
1240 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
1241 TUI_DISASM_WIN, not tui_win_list.
1242
3f0cbb04
TT
12432020-02-22 Tom Tromey <tom@tromey.com>
1244
1245 * valprint.c (generic_val_print_enum_1)
1246 (val_print_type_code_flags): Style member names.
1247 * rust-lang.c (val_print_struct, rust_print_enum)
1248 (rust_print_struct_def, rust_internal_print_type): Style member
1249 names.
1250 * p-valprint.c (pascal_object_print_value_fields): Style member
1251 names. Only call fprintf_symbol_filtered for static members.
1252 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
1253 * f-valprint.c (f_val_print): Style member names.
1254 * f-typeprint.c (f_type_print_base): Style member names.
1255 * cp-valprint.c (cp_print_value_fields): Style member names. Only
1256 call fprintf_symbol_filtered for static members.
1257 (cp_print_class_member): Style member names.
1258 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
1259 member names.
1260 * ada-valprint.c (ada_print_scalar): Style enum names.
1261 (ada_val_print_enum): Likewise.
1262 * ada-typeprint.c (print_enum_type): Style enum names.
1263
d4d947ae
TT
12642020-02-21 Tom Tromey <tom@tromey.com>
1265
1266 * psympriv.h (struct partial_symtab): Update comment.
1267
e94e944b
TT
12682020-02-21 Tom Tromey <tromey@adacore.com>
1269
1270 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
1271 type is CORE_ADDR.
1272
1eb73179
TV
12732020-02-21 Tom de Vries <tdevries@suse.de>
1274
1275 PR gdb/25534
1276 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
1277 if dependencies[i]->user != NULL.
1278
4f180d53
AT
12792020-02-21 Ali Tamur <tamur@google.com>
1280
1281 * dwarf2/read.c (dwarf2_name): Add null check.
1282
22b6cd70
TT
12832020-02-20 Tom Tromey <tom@tromey.com>
1284
1285 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
1286 ">=", in binary search.
1287 (dwarf2_find_containing_comp_unit): New overload.
1288 (run_test): New self-test.
1289 (_initialize_dwarf2_read): Register new test.
1290
bd0cf5a6
NC
12912020-02-20 Nelson Chu <nelson.chu@sifive.com>
1292
1293 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
1294 * riscv-tdep.h: Likewise.
1295 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
1296 rv32-only CSR.
1297 * features/riscv/64bit-csr.xml: Regenerated.
1298
3f702acd
SDJ
12992020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1300 Tom Tromey <tom@tromey.com>
1301
1302 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
1303 of 'fputc_unfiltered'.
1304 (putchar_unfiltered): Call 'fputc_unfiltered'.
1305 (fputc_unfiltered): Call 'fputs_unfiltered'.
1306
d13c7322
AB
13072020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
1308
1309 * config.in: Regenerate.
1310 * configure: Regenerate.
1311 * configure.ac: Add --with-python-libdir option.
1312 * main.c: Use WITH_PYTHON_LIBDIR.
1313
869d8950
TT
13142020-02-19 Tom Tromey <tom@tromey.com>
1315
1316 * symtab.c (general_symbol_info::compute_and_set_names): Use
1317 obstack_strndup. Simplify call to symbol_set_demangled_name.
1318
298e9637
SM
13192020-02-19 Simon Marchi <simon.marchi@efficios.com>
1320
1321 * dwarf2/read.c (allocate_signatured_type_table,
1322 allocate_dwo_unit_table, allocate_type_unit_groups_table,
1323 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
1324 Remove objfile parameter, update all callers.
1325
08410482
DE
13262020-02-19 Doug Evans <dje@google.com>
1327
1328 PR rust/25535
1329 * rust-lang.c (rust_print_enum): Apply embedded_offset to
1330 rust_enum_variant calculation.
1331
dfdeeca1
TT
13322020-02-19 Tom Tromey <tromey@adacore.com>
1333
1334 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
1335
2ef5453b
TT
13362020-02-19 Tom Tromey <tromey@adacore.com>
1337
1338 * ada-lang.c (cache_symbol): Use obstack_strdup.
1339
9f1528a1
AB
13402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1341
1342 * configure: Regenerate.
1343
d3c22fa8
TT
13442020-02-19 Tom Tromey <tromey@adacore.com>
1345
1346 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
1347 NULL check.
1348
bf84f706
MR
13492020-02-19 Maciej W. Rozycki <macro@wdc.com>
1350
1351 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
1352
d1c9b20f
AB
13532020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1354
1355 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
1356 if GDBSERVER is not defined.
1357 (riscv_tdesc_cache): Likewise, also store const target_desc.
1358 (STATIC_IN_GDB): Define.
1359 (riscv_create_target_description): Update declaration with
1360 STATIC_IN_GDB.
1361 (riscv_lookup_target_description): New function, only define if
1362 GDBSERVER is not defined.
1363 * arch/riscv.h (riscv_create_target_description): Declare only
1364 when GDBSERVER is defined.
1365 (riscv_lookup_target_description): New declaration when GDBSERVER
1366 is not defined.
1367 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
1368 (riscv_linux_read_features): ...this, and return
1369 riscv_gdbarch_features instead of target_desc.
1370 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
1371 (riscv_linux_read_description): Rename to...
1372 (riscv_linux_read_features): ...this.
1373 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
1374 Update to use riscv_gdbarch_features and
1375 riscv_lookup_target_description.
1376 * riscv-tdep.c (riscv_find_default_target_description): Use
1377 riscv_lookup_target_description instead of
1378 riscv_create_target_description.
1379
373d7ac0
SM
13802020-02-18 Simon Marchi <simon.marchi@efficios.com>
1381
1382 * valprint.c (generic_val_print_enum_1): When printing a flag
1383 enum with value 0 and there is no enumerator with value 0, print
1384 just "0" instead of "(unknown: 0x0)".
1385
b29a2df0
SM
13862020-02-18 Simon Marchi <simon.marchi@efficios.com>
1387
1388 * valprint.c (generic_val_print_enum_1): Print unknown part of
1389 flag enum in hex.
1390
6740f0cc
SM
13912020-02-18 Simon Marchi <simon.marchi@efficios.com>
1392
1393 * dwarf2/read.c (update_enumeration_type_from_children): Allow
1394 flag enums to contain duplicate enumerators.
1395 * valprint.c (generic_val_print_enum_1): Update comment.
1396
edd45eb0
SM
13972020-02-18 Simon Marchi <simon.marchi@efficios.com>
1398
1399 * dwarf2/read.c: Include "count-one-bits.h".
1400 (update_enumeration_type_from_children): If an enumerator has
1401 multiple bits set, don't treat the enumeration as a "flag enum".
1402 * valprint.c (generic_val_print_enum_1): Assert that enumerators
1403 of flag enums have 0 or 1 bit set.
1404
6d0cf446
BE
14052020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
1406
1407 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
1408 conversion.
1409 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
1410 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
1411 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1412 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1413 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
1414
7001c1b7
SM
14152020-02-18 Simon Marchi <simon.marchi@efficios.com>
1416
1417 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
1418
fdb61c6c
SM
14192020-02-14 Simon Marchi <simon.marchi@efficios.com>
1420
1421 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
1422 displaced_step_closure_up.
1423 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
1424 (struct displaced_step_closure_up):
1425 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
1426 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
1427 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
1428 Likewise.
1429 * gdbarch.sh (displaced_step_copy_insn): Likewise.
1430 * gdbarch.c, gdbarch.h: Re-generate.
1431 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
1432 displaced_step_closure_up.
1433 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1434 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
1435 * infrun.h (displaced_step_closure_up): New type alias.
1436 (struct displaced_step_inferior_state) <step_closure>: Change
1437 type to displaced_step_closure_up.
1438 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
1439 displaced_step_closure_up.
1440 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
1441
a4a38eb4
TT
14422020-02-14 Tom Tromey <tom@tromey.com>
1443
1444 * minidebug.c (gnu_debug_key): New global.
1445 (find_separate_debug_file_in_section): Use it.
1446
e8217e61
SM
14472020-02-14 Simon Marchi <simon.marchi@efficios.com>
1448
1449 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
1450 std::unique_ptr.
1451 * gdbarch.c: Re-generate.
1452 * gdbarch.h: Re-generate.
1453 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
1454 change.
1455 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
1456 type to std::unique_ptr.
1457 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
1458 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
1459 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
1460 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
1461 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
1462 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1463 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
1464 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1465 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
1466
d8d83535
SM
14672020-02-14 Simon Marchi <simon.marchi@efficios.com>
1468
1469 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
1470 std::unique_ptr.
1471 (displaced_step_clear): Rename to...
1472 (displaced_step_reset): ... this. Just call displaced->reset ().
1473 (displaced_step_clear_cleanup): Rename to...
1474 (displaced_step_reset_cleanup): ... this.
1475 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
1476 (displaced_step_fixup): Likewise.
1477 (resume_1): Likewise.
1478 (handle_inferior_event): Restore child's memory before calling
1479 displaced_step_fixup on the parent.
1480 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
1481 to std::unique_ptr.
1482 <step_closure>: Change type to std::unique_ptr.
1483
5f661e03
SM
14842020-02-14 Simon Marchi <simon.marchi@efficios.com>
1485
1486 * arm-tdep.c: Include count-one-bits.h.
1487 (cleanup_block_store_pc): Use count_one_bits.
1488 (cleanup_block_load_pc): Use count_one_bits.
1489 (arm_copy_block_xfer): Use count_one_bits.
1490 (thumb2_copy_block_xfer): Use count_one_bits.
1491 (thumb_copy_pop_pc_16bit): Use count_one_bits.
1492 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
1493 (thumb_get_next_pcs_raw): Use count_one_bits.
1494 (arm_get_next_pcs_raw): Use count_one_bits_l.
1495 * arch/arm.c (bitcount): Remove.
1496 * arch/arm.h (bitcount): Remove.
1497
8084e579
TT
14982020-02-14 Tom Tromey <tromey@adacore.com>
1499
1500 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
1501 Update.
1502 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
1503 * dwarf2/loc.c (call_site_find_chain_1): Return
1504 unique_xmalloc_ptr.
1505 (call_site_find_chain): Likewise.
1506
258bf0ee
RB
15072020-02-14 Richard Biener <rguenther@suse.de>
1508
1509 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
1510 on expression with division operators.
1511
f98a8458
AKS
15122020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1513
1514 * MAINTAINERS (Write After Approval): Adding myself.
1515
d1437c0e
TT
15162020-02-12 Tom Tromey <tom@tromey.com>
1517
1518 * event-loop.c (event_data, gdb_event, event_handler_func):
1519 Remove.
1520
3d4560f7
TT
15212020-02-12 Tom Tromey <tom@tromey.com>
1522
1523 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
1524 (dwarf2_frame_objfile_data): Add comment.
1525 (find_comp_unit, set_comp_unit): New functions.
1526 (dwarf2_frame_find_fde): Use find_comp_unit.
1527 (dwarf2_build_frame_info): Use set_comp_unit.
1528
21982304
TT
15292020-02-12 Tom Tromey <tom@tromey.com>
1530
1531 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
1532 (comp_unit): Don't initialize objfile.
1533 (execute_cfa_program): Add text_offset parameter.
1534 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
1535 (dwarf2_frame_cache): Update.
1536 (dwarf2_build_frame_info): Don't set "objfile" member.
1537
4debb237
TT
15382020-02-12 Tom Tromey <tom@tromey.com>
1539
1540 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
1541 (decode_frame_entry): Likewise.
1542 (dwarf2_build_frame_info): Update.
1543
0d404d44
TT
15442020-02-12 Tom Tromey <tom@tromey.com>
1545
1546 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
1547 (decode_frame_entry_1): Use the comp_unit obstack.
1548
a7a3ae5c
TT
15492020-02-12 Tom Tromey <tom@tromey.com>
1550
1551 * dwarf2/frame.c (struct comp_unit): Add initializers and
1552 constructor.
1553 (dwarf2_frame_objfile_data): Store a comp_unit.
1554 (dwarf2_frame_find_fde): Update.
1555 (dwarf2_build_frame_info): Use "new".
1556
a9d65418
TT
15572020-02-12 Tom Tromey <tom@tromey.com>
1558
1559 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
1560 (dwarf2_fde_table): Typedef for std::vector.
1561 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
1562 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
1563 (decode_frame_entry): Update.
1564 (dwarf2_build_frame_info): Use "new".
1565
7559c217
CB
15662020-02-12 Christian Biesinger <cbiesinger@google.com>
1567
1568 * arm-tdep.c (arm_gdbarch_init): Update.
1569 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
1570 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
1571 have_neon, is_m>: Change to bool.
1572
aeefc73c
CB
15732020-02-12 Christian Biesinger <cbiesinger@google.com>
1574
1575 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
1576
d27b8e5f
TT
15772020-02-12 Tom Tromey <tom@tromey.com>
1578
1579 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
1580
cd5900f3
HD
15812020-02-12 Hannes Domani <ssbssa@yahoo.de>
1582
1583 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
1584 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
1585
f056b22b
TT
15862020-02-11 Tom Tromey <tom@tromey.com>
1587
1588 * psymtab.h: Update comment.
1589
f92ff6b5
TT
15902020-02-11 Tom Tromey <tom@tromey.com>
1591
1592 * gdb_obstack.h (struct auto_obstack): Use
1593 DISABLE_COPY_AND_ASSIGN.
1594
3fd6912b
TT
15952020-02-11 Tom Tromey <tom@tromey.com>
1596
1597 * dwarf2/frame.h (struct objfile): Don't forward declare.
1598
69ed9b74
CB
15992020-02-11 Christian Biesinger <cbiesinger@google.com>
1600
1601 * cris-tdep.c (cris_supply_gregset): Change signature to match
1602 what struct regset expects.
1603 (cris_regset): New struct.
1604 (fetch_core_registers): Remove.
1605 (cris_iterate_over_regset_sections): New function.
1606 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
1607 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
1608
bda874f6
CB
16092020-02-11 Christian Biesinger <cbiesinger@google.com>
1610
1611 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
1612 registers.
1613
754e1564
CB
16142020-02-11 Christian Biesinger <cbiesinger@google.com>
1615
1616 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
1617
8ddd8e0e
SM
16182020-02-11 Simon Marchi <simon.marchi@efficios.com>
1619
1620 * configure: Re-generate.
1621
898e7f60
SM
16222020-02-11 Simon Marchi <simon.marchi@efficios.com>
1623
1624 * configure: Re-generate.
1625
58df732b
SM
16262020-02-11 Simon Marchi <simon.marchi@efficios.com>
1627
1628 * acinclude: Update warning.m4 path.
1629 * warning.m4: Move to gdbsupport.
1630
da5bd37e
TT
16312020-02-11 Tom Tromey <tromey@adacore.com>
1632
1633 * remote.c (remote_console_output): Update.
1634 * printcmd.c (printf_command): Update.
1635 * event-loop.c (gdb_wait_for_event): Update.
1636 * linux-nat.c (sigchld_handler): Update.
1637 * remote-sim.c (gdb_os_write_stdout): Update.
1638 (gdb_os_flush_stdout): Update.
1639 (gdb_os_flush_stderr): Update.
1640 (gdb_os_write_stderr): Update.
1641 * exceptions.c (print_exception): Update.
1642 * remote-fileio.c (remote_fileio_func_read): Update.
1643 (remote_fileio_func_write): Update.
1644 * tui/tui.c (tui_enable): Update.
1645 * tui/tui-interp.c (tui_interp::init): Update.
1646 * utils.c (init_page_info): Update.
1647 (putchar_unfiltered, fputc_unfiltered): Update.
1648 (gdb_flush): Update.
1649 (emit_style_escape): Update.
1650 (flush_wrap_buffer, fputs_maybe_filtered): Update.
1651 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
1652 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
1653 (stderr_file::write): Update.
1654 (stderr_file::puts): Update.
1655 * ui-file.h (ui_file_isatty, ui_file_write)
1656 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
1657 (ui_file_puts): Don't declare.
1658
85f0dd3c
TV
16592020-02-10 Tom de Vries <tdevries@suse.de>
1660
1661 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
1662 sentinel to char *.
1663
2e927613
TV
16642020-02-09 Tom de Vries <tdevries@suse.de>
1665
1666 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
1667 filename if it matches "<artificial>".
1668
6bafc845
HD
16692020-02-09 Hannes Domani <ssbssa@yahoo.de>
1670
1671 * windows-tdep.c (struct enum_value_name): New struct.
1672 (create_enum): New function.
1673 (windows_get_siginfo_type): Create and use enum types.
1674
7928d571
HD
16752020-02-09 Hannes Domani <ssbssa@yahoo.de>
1676
1677 * NEWS: Mention $_siginfo support for Windows.
1678 * windows-nat.c (handle_exception): Set siginfo_er.
1679 (windows_nat_target::mourn_inferior): Reset siginfo_er.
1680 (windows_xfer_siginfo): New function.
1681 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
1682 * windows-tdep.c (struct windows_gdbarch_data): New struct.
1683 (init_windows_gdbarch_data): New function.
1684 (get_windows_gdbarch_data): New function.
1685 (windows_get_siginfo_type): New function.
1686 (windows_init_abi): Register windows_get_siginfo_type.
1687 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
1688
6751ebae
TT
16892020-02-08 Tom Tromey <tom@tromey.com>
1690
1691 * dwarf2/read.c (class cutu_reader) <cutu_reader,
1692 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
1693 <keep>: Declare method.
1694 <m_keep>: Remove member.
1695 <~cutu_reader>: Remove.
1696 (cutu_reader::init_tu_and_read_dwo_dies): Update.
1697 (cutu_reader::cutu_reader): Update.
1698 (cutu_reader::keep): Rename from ~cutu_reader.
1699 (process_psymtab_comp_unit, build_type_psymtabs_1)
1700 (process_skeletonless_type_unit, load_partial_comp_unit)
1701 (load_full_comp_unit, dwarf2_read_addr_index)
1702 (read_signatured_type): Update.
1703
135f5437
TT
17042020-02-08 Tom Tromey <tom@tromey.com>
1705
1706 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
1707 "want_partial_unit" parameter.
1708 (process_psymtab_comp_unit): Change want_partial_unit to bool.
1709 Inline check for DW_TAG_partial_unit.
1710 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
1711
9f66ff1c
TT
17122020-02-08 Tom Tromey <tom@tromey.com>
1713
1714 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
1715 read.c.
1716 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
1717 read.c.
1718
c8a7a66f
TT
17192020-02-08 Tom Tromey <tom@tromey.com>
1720
1721 * dwarf2/read.c (read_address): Move to comp-unit.c.
1722 (dwarf2_rnglists_process, dwarf2_ranges_process)
1723 (read_attribute_value, dwarf_decode_lines_1)
1724 (var_decode_location, decode_locdesc): Update.
1725 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
1726 read.c. Remove "cu" parameter.
1727 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
1728 method.
1729
8266302d
TT
17302020-02-08 Tom Tromey <tom@tromey.com>
1731
1732 * dwarf2/read.c (read_attribute_value, read_indirect_string)
1733 (read_indirect_line_string): Update.
1734 * dwarf2/comp-unit.c (read_offset): Remove.
1735 (read_comp_unit_head): Update.
1736 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
1737 method.
1738 (read_offset): Don't declare.
1739
4057dfde
TT
17402020-02-08 Tom Tromey <tom@tromey.com>
1741
1742 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
1743 * dwarf2/read.c (struct comp_unit_head): Move to
1744 dwarf2/comp-unit.h.
1745 (enum class rcuh_kind): Move to comp-unit.h.
1746 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
1747 (read_comp_unit_head, error_check_comp_unit_head)
1748 (read_and_check_comp_unit_head): Move to comp-unit.c.
1749 (read_offset, dwarf_unit_type_name): Likewise.
1750 (create_debug_type_hash_table, read_cutu_die_from_dwo)
1751 (cutu_reader::cutu_reader, read_call_site_scope)
1752 (find_partial_die, follow_die_offset): Update.
1753 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
1754
24aa364d
TT
17552020-02-08 Tom Tromey <tom@tromey.com>
1756
1757 * dwarf2/read.c (read_offset_1): Move to leb.c.
1758 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
1759 (dwarf_decode_macro_bytes): Update.
1760 * dwarf2/leb.c (read_offset): Rename; move from read.c.
1761 * dwarf2/leb.h (read_offset): Declare.
1762
2c7d5afc
TT
17632020-02-08 Tom Tromey <tom@tromey.com>
1764
1765 * dwarf2/read.c (dwarf2_section_size): Remove.
1766 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
1767 Update.
1768 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
1769
4075cb26
TT
17702020-02-08 Tom Tromey <tom@tromey.com>
1771
1772 * dwarf2/read.c (read_initial_length): Move to leb.c.
1773 * dwarf2/leb.h (read_initial_length): Declare.
1774 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
1775 handle_nonstd parameter.
1776 * dwarf2/frame.c (read_initial_length): Remove.
1777 (decode_frame_entry_1): Update.
1778
09ba997f
TT
17792020-02-08 Tom Tromey <tom@tromey.com>
1780
1781 * dwarf2/loc.c (dwarf2_find_location_expression)
1782 (dwarf_evaluate_loc_desc::get_tls_address)
1783 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
1784 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
1785 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
1786 (dwarf2_compile_property_to_c)
1787 (dwarf2_loc_desc_get_symbol_read_needs)
1788 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
1789 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
1790 (loclist_describe_location, loclist_tracepoint_var_ref)
1791 (loclist_generate_c_location): Update.
1792 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1793 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
1794 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
1795 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
1796 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
1797 (dwarf2_per_cu_data::addr_size)
1798 (dwarf2_per_cu_data::ref_addr_size)
1799 (dwarf2_per_cu_data::text_offset)
1800 (dwarf2_per_cu_data::addr_type): Now methods.
1801 (per_cu_header_read_in): Make per_cu "const".
1802 (dwarf2_version): Remove.
1803 (dwarf2_per_cu_data::int_type): Now a method.
1804 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
1805 (set_die_type, read_array_type, read_subrange_index_type)
1806 (read_tag_string_type, read_subrange_type): Update.
1807 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
1808 offset_size, ref_addr_size, text_offset, addr_type, version,
1809 objfile, int_type, addr_sized_int_type>: Declare methods.
1810
96c738c0
TT
18112020-02-08 Tom Tromey <tom@tromey.com>
1812
1813 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
1814 Move earlier.
1815
8fdd972c
TT
18162020-02-08 Tom Tromey <tom@tromey.com>
1817
1818 * dwarf2/read.h (dwarf_line_debug): Declare.
1819 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
1820 * dwarf2/read.c: Move line_header code to new files.
1821 (dwarf_line_debug): No longer static.
1822 * dwarf2/line-header.c: New file.
1823 * dwarf2/line-header.h: New file.
1824
03075812
TT
18252020-02-08 Tom Tromey <tom@tromey.com>
1826
1827 * dwarf2/read.c (struct line_header) <file_full_name,
1828 file_file_name>: Return unique_xmalloc_ptr.
1829 (line_header::file_file_name): Update.
1830 (line_header::file_full_name): Update.
1831 (dw2_get_file_names_reader): Update.
1832 (macro_start_file): Update.
1833
bb822404
TT
18342020-02-08 Tom Tromey <tom@tromey.com>
1835
1836 * dwarf2/read.c (struct line_header) <file_full_name,
1837 file_file_name>: Declare methods.
1838 (dw2_get_file_names_reader): Update.
1839 (file_file_name): Now a method.
1840 (file_full_name): Likewise.
1841 (macro_start_file): Update.
1842
009b64fc
TT
18432020-02-08 Tom Tromey <tom@tromey.com>
1844
1845 * dwarf2/read.c (dwarf_always_disassemble)
1846 (show_dwarf_always_disassemble): Move to loc.c.
1847 (_initialize_dwarf2_read): Move "always-disassemble" registration
1848 to loc.c.
1849 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
1850 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
1851 static.
1852 (show_dwarf_always_disassemble): Move from read.c.
1853 (_initialize_dwarf2loc): Move always-disassemble from read.c.
1854
5895093f
TT
18552020-02-08 Tom Tromey <tom@tromey.com>
1856
1857 * dwarf2/read.c (~dwarf2_per_objfile): Update.
1858 (create_quick_file_names_table): Return htab_up.
1859 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
1860 Update.
1861 * dwarf2/read.h (struct dwarf2_per_objfile)
1862 <quick_file_names_table>: Now htab_up.
1863
b3b32279
TT
18642020-02-08 Tom Tromey <tom@tromey.com>
1865
1866 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
1867
1d33d811
TT
18682020-02-08 Tom Tromey <tom@tromey.com>
1869
1870 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
1871 Rewrite.
1872 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
1873 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
1874 (abbrev_table::abbrev_table): No longer inline.
1875 (ABBREV_HASH_SIZE): Remove.
1876 (abbrev_table::m_abbrevs): Now an htab_up.
1877
86de1d91
TT
18782020-02-08 Tom Tromey <tom@tromey.com>
1879
1880 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
1881 (cutu_reader): Update.
1882 (build_type_psymtabs_1): Update.
1883 * dwarf2/abbrev.c (abbrev_table::read): Rename.
1884 (abbrev_table::alloc_abbrev): Update.
1885 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
1886 (abbrev_table::read): New static method, renamed from
1887 abbrev_table_read_table.
1888 (abbrev_table::alloc_abbrev)
1889 (abbrev_table::add_abbrev): Now private.
1890 (abbrev_table::abbrev_table): Now private.
1891 (abbrev_table::m_abbrev_obstack): Now private. Rename.
1892
0335378b
TT
18932020-02-08 Tom Tromey <tom@tromey.com>
1894
1895 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
1896 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
1897 htab_up.
1898
48b490f2
TT
18992020-02-08 Tom Tromey <tom@tromey.com>
1900
1901 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
1902 htab_up.
1903 (lookup_dwo_unit_in_dwp): Update.
1904 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
1905 on obstack.
1906
bc68fb19
TT
19072020-02-08 Tom Tromey <tom@tromey.com>
1908
1909 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
1910 obstack.
1911
d15acc42
TT
19122020-02-08 Tom Tromey <tom@tromey.com>
1913
1914 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
1915 line_header_hash.
1916 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
1917 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
1918 Change type to htab_up.
1919
eaa5fa8b
TT
19202020-02-08 Tom Tromey <tom@tromey.com>
1921
1922 * dwarf2/read.c (allocate_type_unit_groups_table): Return
1923 htab_up. Don't allocate on obstack.
1924 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
1925 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
1926 Change type to htab_up.
1927
b0b6a987
TT
19282020-02-08 Tom Tromey <tom@tromey.com>
1929
1930 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
1931 Change type to htab_up.
1932 * dwarf2/read.c (create_signatured_type_table_from_index)
1933 (create_signatured_type_table_from_debug_names)
1934 (create_all_type_units, add_type_unit)
1935 (lookup_dwo_signatured_type, lookup_signatured_type)
1936 (process_skeletonless_type_unit): Update.
1937 (create_debug_type_hash_table, create_debug_types_hash_table):
1938 Change type of types_htab.
1939 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
1940 htab_up. Don't allocate on obstack.
1941 (create_cus_hash_table): Change type of cus_htab parameter.
1942 (struct dwo_file) <cus, tus>: Now htab_up.
1943 (lookup_dwo_signatured_type, lookup_dwo_cutu)
1944 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
1945 (queue_and_load_all_dwo_tus): Update.
1946 * dwarf2/index-write.c (write_gdbindex): Update.
1947 (write_debug_names): Update.
1948
39856def
TT
19492020-02-08 Tom Tromey <tom@tromey.com>
1950
1951 * dwarf2/read.h (struct dwarf2_queue_item): Move from
1952 dwarf2/read.c. Remove "next" member. Add constructor ntad
1953 destructor.
1954 (struct dwarf2_per_objfile) <queue>: New member.
1955 * dwarf2/read.c (struct dwarf2_queue_item): Move to
1956 dwarf2/read.h.
1957 (dwarf2_queue, dwarf2_queue_tail): Remove.
1958 (class dwarf2_queue_guard): Add parameter to constructor. Use
1959 DISABLE_COPY_AND_ASSIGN.
1960 <m_per_objfile>: New member.
1961 <~dwarf2_queue_guard>: Rewrite.
1962 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
1963 Update.
1964 (~dwarf2_queue_item): New.
1965
3e225074
TT
19662020-02-08 Tom Tromey <tom@tromey.com>
1967
1968 * dwarf2/read.c (struct die_info) <has_children>: New member.
1969 (dw2_get_file_names_reader): Remove has_children.
1970 (dw2_get_file_names): Update.
1971 (read_cutu_die_from_dwo): Remove has_children.
1972 (cutu_reader::init_tu_and_read_dwo_dies)
1973 (cutu_reader::cutu_reader): Update.
1974 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
1975 Remove has_children.
1976 (build_type_psymtabs_1, process_skeletonless_type_unit)
1977 (load_partial_comp_unit, load_full_comp_unit): Update.
1978 (create_dwo_cu_reader): Remove has_children.
1979 (create_cus_hash_table, read_die_and_children): Update.
1980 (read_full_die_1,read_full_die): Remove has_children.
1981 (read_signatured_type): Update.
1982 (class cutu_reader) <has_children>: Remove.
1983
82ca8957
TT
19842020-02-08 Tom Tromey <tom@tromey.com>
1985
1986 * dwarf2/expr.c: Rename from dwarf2expr.c.
1987 * dwarf2/expr.h: Rename from dwarf2expr.h.
1988 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
1989 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
1990 * dwarf2/frame.c: Rename from dwarf2-frame.c.
1991 * dwarf2/frame.h: Rename from dwarf2-frame.h.
1992 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
1993 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
1994 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
1995 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
1996 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
1997 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
1998 * dwarf2/loc.c: Rename from dwarf2loc.c.
1999 * dwarf2/loc.h: Rename from dwarf2loc.h.
2000 * dwarf2/read.c: Rename from dwarf2read.c.
2001 * dwarf2/read.h: Rename from dwarf2read.h.
2002 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
2003 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
2004 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
2005 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
2006 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
2007 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
2008 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
2009 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
2010 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
2011 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
2012 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
2013 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
2014 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
2015 Update.
2016 * Makefile.in (COMMON_SFILES): Update.
2017 (HFILES_NO_SRCDIR): Update.
2018
9e35d499
TT
20192020-02-08 Tom Tromey <tom@tromey.com>
2020
2021 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
2022 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
2023
1eba2311
TT
20242020-02-08 Tom Tromey <tom@tromey.com>
2025
2026 * dwarf2read.h (struct die_info): Don't declare.
2027
e41c2da2
TT
20282020-02-08 Tom Tromey <tom@tromey.com>
2029
2030 * dwarf2read.h (die_info_ptr): Remove typedef.
2031
4fc6c0d5
TT
20322020-02-08 Tom Tromey <tom@tromey.com>
2033
2034 * dwarf2read.c (read_call_site_scope)
2035 (handle_data_member_location, dwarf2_add_member_fn)
2036 (mark_common_block_symbol_computed, read_common_block)
2037 (attr_to_dynamic_prop, partial_die_info::read)
2038 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
2039 (dwarf2_symbol_mark_computed, set_die_type): Update.
2040 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
2041 method.
2042 (attr_form_is_block): Don't declare.
2043 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
2044
cd6c91b4
TT
20452020-02-08 Tom Tromey <tom@tromey.com>
2046
2047 * dwarf2read.c (dwarf2_find_base_address, )
2048 (read_call_site_scope, rust_containing_type)
2049 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2050 (handle_data_member_location, dwarf2_add_member_fn)
2051 (get_alignment, read_structure_type, process_structure_scope)
2052 (mark_common_block_symbol_computed, read_common_block)
2053 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
2054 (partial_die_info::read, read_attribute_value, new_symbol)
2055 (lookup_die_type, dwarf2_get_ref_die_offset)
2056 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
2057 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
2058 (dwarf2_symbol_mark_computed): Update.
2059 * dwarf2/attribute.h (struct attribute) <value_as_address,
2060 form_is_section_offset, form_is_constant, form_is_ref>: Declare
2061 methods.
2062 (value_as_address, attr_form_is_section_offset)
2063 (attr_form_is_constant, attr_form_is_ref): Don't declare.
2064 * dwarf2/attribute.c (attribute::value_as_address)
2065 (attribute::form_is_section_offset, attribute::form_is_constant)
2066 (attribute::form_is_ref): Now methods.
2067
162dce55
TT
20682020-02-08 Tom Tromey <tom@tromey.com>
2069
2070 * dwarf2read.c (struct attribute, DW_STRING)
2071 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
2072 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
2073 (attr_form_is_block, attr_form_is_section_offset)
2074 (attr_form_is_constant, attr_form_is_ref): Move.
2075 * dwarf2/attribute.h: New file.
2076 * dwarf2/attribute.c: New file, from dwarf2read.c.
2077 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
2078
3054dd54
TT
20792020-02-08 Tom Tromey <tom@tromey.com>
2080
2081 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
2082 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
2083 Move.
2084 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
2085 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
2086 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
2087 abbrev.c.
2088 * dwarf2/abbrev.h: New file.
2089 * dwarf2/abbrev.c: New file, from dwarf2read.c.
2090 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
2091
96b79293
TT
20922020-02-08 Tom Tromey <tom@tromey.com>
2093
2094 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
2095 (dwarf2_section_size, dwarf2_get_section_info)
2096 (create_signatured_type_table_from_debug_names)
2097 (create_addrmap_from_aranges, read_debug_names_from_section)
2098 (get_gdb_index_contents_from_section, read_comp_unit_head)
2099 (error_check_comp_unit_head, read_abbrev_offset)
2100 (create_debug_type_hash_table, init_cu_die_reader)
2101 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
2102 (read_comp_units_from_section, create_cus_hash_table)
2103 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2104 (create_dwp_v2_section, dwarf2_rnglists_process)
2105 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
2106 (abbrev_table_read_table, read_indirect_string_at_offset_from)
2107 (read_indirect_string_from_dwz, read_addr_index_1)
2108 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
2109 (dwarf_decode_macro_bytes, dwarf_decode_macros)
2110 (fill_in_loclist_baton): Update.
2111 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
2112 get_containing_section, get_bfd_owner, get_bfd_section,
2113 get_file_name, get_id, get_flags, empty, read>: Declare methods.
2114 (dwarf2_read_section, get_section_name, get_section_file_name)
2115 (get_containing_section, get_section_bfd_owner)
2116 (get_section_bfd_section, get_section_name, get_section_file_name)
2117 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
2118 declare.
2119 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
2120 (dwarf2_section_info::get_bfd_owner)
2121 (dwarf2_section_info::get_bfd_section)
2122 (dwarf2_section_info::get_name)
2123 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
2124 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
2125 (dwarf2_section_info::read): Now methods.
2126 * dwarf-index-write.c (class debug_names): Update.
2127
2c86cff9
TT
21282020-02-08 Tom Tromey <tom@tromey.com>
2129
2130 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
2131 Move to dwarf2/section.h.
2132 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
2133 (get_section_bfd_section, get_section_name)
2134 (get_section_file_name, get_section_id, get_section_flags)
2135 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
2136 dwarf2/section.c.
2137 * dwarf2/section.h: New file.
2138 * dwarf2/section.c: New file, from dwarf2read.c.
2139 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
2140
f4382c45
TT
21412020-02-08 Tom Tromey <tom@tromey.com>
2142
2143 * dwarf2read.h (read_unsigned_leb128): Don't declare.
2144 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
2145 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
2146 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
2147 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
2148 * dwarf2/leb.h: New file, from dwarf2read.c.
2149 * dwarf2/leb.c: New file, from dwarf2read.c.
2150 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
2151 Remove.
2152 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
2153 (COMMON_SFILES): Add dwarf2/leb.c.
2154
01840b7a
JB
21552020-02-08 Joel Brobecker <brobecker@adacore.com>
2156
2157 GDB 9.1 released.
2158
dfcb27e4
IB
21592020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
2160
2161 PR gdb/25190:
2162 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
2163 * gdb/remote.c (remote_console_output): Update.
2164 * gdb/ui-file.c (fputs_unfiltered): Rename to...
2165 (ui_file_puts): ...this.
2166 * gdb/ui-file.h (ui_file_puts): Add declaration.
2167 * gdb/utils.c (emit_style_escape): Update.
2168 (flush_wrap_buffer): Update.
2169 (fputs_maybe_filtered): Update.
2170 (fputs_unfiltered): Add function.
2171
faa17681
IB
21722020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
2173
2174 * gdb/event-loop.c (gdb_wait_for_event): Update.
2175 * gdb/printcmd.c (printf_command): Update.
2176 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
2177 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
2178 (gdb_os_flush_stderr): Update.
2179 * gdb/remote.c (remote_console_output): Update.
2180 * gdb/ui-file.c (gdb_flush): Rename to...
2181 (ui_file_flush): ...this.
2182 (stderr_file::write): Update.
2183 (stderr_file::puts): Update.
2184 * gdb/ui-file.h (gdb_flush): Rename to...
2185 (ui_file_flush): ...this.
2186 * gdb/utils.c (gdb_flush): Add function.
2187 * gdb/utils.h (gdb_flush): Add declaration.
2188
5abbbe1d
TT
21892020-02-07 Tom Tromey <tromey@adacore.com>
2190
2191 PR breakpoints/24915:
2192 * source.c (find_and_open_source): Do not check basenames_may_differ.
2193
919adfe8
TT
21942020-02-07 Tom Tromey <tom@tromey.com>
2195
2196 * README: Update gdbserver documentation.
2197 * gdbserver: Move to top level.
2198 * configure.tgt (build_gdbserver): Remove.
2199 * configure.ac: Remove --enable-gdbserver.
2200 * configure: Rebuild.
2201 * Makefile.in (distclean): Don't mention gdbserver.
2202
1d5d29e7
SV
22032020-02-06 Shahab Vahedi <shahab@synopsys.com>
2204
2205 * source-cache.c (source_cache::ensure): Surround
2206 get_plain_source_lines with a try/catch.
2207 (source_cache::get_line_charpos): Get rid of try/catch
2208 and only check for the return value of "ensure".
2209 * tui/tui-source.c (tui_source_window::set_contents):
2210 Simplify "nlines" calculation.
2211
6eb1129c
SV
22122020-02-06 Shahab Vahedi <shahab@synopsys.com>
2213
2214 * MAINTAINERS (Write After Approval): Add myself.
2215
c6a42d11
CB
22162020-02-05 Christian Biesinger <cbiesinger@google.com>
2217
2218 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
2219 function call.
2220
c8ecdda6
CB
22212020-02-05 Christian Biesinger <cbiesinger@google.com>
2222
2223 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
2224
f6480e70
MR
22252020-02-05 Maciej W. Rozycki <macro@wdc.com>
2226
2227 * nat/riscv-linux-tdesc.h: New file.
2228 * nat/riscv-linux-tdesc.c: New file, taking code from...
2229 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
2230 ... here.
2231 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
2232 NATDEPFILES.
2233
dcc9fbc6
AB
22342020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
2235
2236 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
2237 we don't set the fake simulator ptid to the null_ptid.
2238
719546c4
SM
22392020-02-03 Simon Marchi <simon.marchi@efficios.com>
2240
2241 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
2242 * gdbthread.h (class thread_info) <resumed>: Likewise.
2243 * infrun.c (resume_1): Likewise.
2244 (proceed): Likewise.
2245 (infrun_thread_stop_requested): Likewise.
2246 (stop_all_threads): Likewise.
2247 (handle_inferior_event): Likewise.
2248 (restart_threads): Likewise.
2249 (finish_step_over): Likewise.
2250 (keep_going_stepped_thread): Likewise.
2251 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
2252 (linux_handle_extended_wait): Likewise.
2253 * record-btrace.c (get_thread_current_frame_id): Likewise.
2254 * record-full.c (record_full_wait_1): Likewise.
2255 * remote.c (remote_target::process_initial_stop_replies): Likewise.
2256 * target.c (target_resume): Likewise.
2257 * thread.c (set_running_thread): Likewise.
2258
e409c542
AKS
22592020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2260
2261 * f-valprint.c (f77_print_array_1): Changed datatype of index
2262 variable to LONGEST from int to enable it to contain bound
2263 values correctly.
2264
ee98c0da
MR
22652020-02-03 Maciej W. Rozycki <macro@wdc.com>
2266
2267 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
2268 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
2269 offsets according to FLEN determined.
2270 (riscv_linux_nat_target::read_description): Determine FLEN
2271 dynamically.
2272 (riscv_linux_nat_target::fetch_registers): Size regset buffer
2273 according to FLEN determined.
2274 (riscv_linux_nat_target::store_registers): Likewise.
2275
aa66aac4
SV
22762020-02-01 Shahab Vahedi <shahab@synopsys.com>
2277
2278 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
2279 when reg->group is empty and reggroup is not.
2280
fd9faca8
TT
22812020-01-31 Tom Tromey <tromey@adacore.com>
2282
2283 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
2284 Call beneath target's mourn_inferior after unpushing.
2285
42330a68
AB
22862020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
2287
2288 PR tui/9765
2289 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
2290 have enough lines to fill the screen, still return the lowest
2291 address we found.
2292
7a27a45b
AB
22932020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
2294
2295 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
2296 '-', '<', and '>' commands.
2297
c47f70e2
PA
22982020-01-29 Pedro Alves <palves@redhat.com>
2299 Sergio Durigan Junior <sergiodj@redhat.com>
2300
2301 * infcmd.c (construct_inferior_arguments): Assert that
2302 'argc' is greater than 0.
2303
5133a315
LM
23042020-01-29 Luis Machado <luis.machado@linaro.org>
2305
2306 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
2307 (BRK_INSN_MASK): Define to 0xd4200000.
2308 (aarch64_program_breakpoint_here_p): New function.
2309 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
2310 * arch-utils.c (default_program_breakpoint_here_p): Moved from
2311 breakpoint.c.
2312 * arch-utils.h (default_program_breakpoint_here_p): Moved from
2313 breakpoint.h
2314 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
2315 call gdbarch_program_breakpoint_here_p.
2316 (program_breakpoint_here): Moved to arch-utils.c, renamed to
2317 default_program_breakpoint_here_p, changed return type to bool and
2318 simplified.
2319 * breakpoint.h (program_breakpoint_here): Moved prototype to
2320 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
2321 return type to bool.
2322 * gdbarch.c: Regenerate.
2323 * gdbarch.h: Regenerate.
2324 * gdbarch.sh (program_breakpoint_here_p): New method.
2325 * infrun.c (handle_signal_stop): Call
2326 gdbarch_program_breakpoint_here_p.
2327
168f8c6b
TT
23282020-01-26 Tom Tromey <tom@tromey.com>
2329
2330 * ctfread.c (struct ctf_fp_info): Reindent.
2331 (_initialize_ctfread): Remove.
2332
128a391f
TT
23332020-01-26 Tom Tromey <tom@tromey.com>
2334
2335 * psymtab.c (partial_map_expand_apply)
2336 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2337 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2338 (psym_print_stats, psym_expand_symtabs_for_function)
2339 (psym_map_symbol_filenames, psym_map_matching_symbols)
2340 (psym_expand_symtabs_matching)
2341 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2342 (maintenance_check_psymtabs): Use new methods.
2343 * psympriv.h (struct partial_symtab) <readin_p,
2344 get_compunit_symtab>: New methods.
2345 <readin, compunit_symtab>: Remove members.
2346 (struct standard_psymtab): New.
2347 (struct legacy_psymtab): Derive from standard_psymtab.
2348 * dwarf2read.h (struct dwarf2_psymtab): Derive from
2349 standard_psymtab.
2350 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
2351
0494dbec
TT
23522020-01-26 Tom Tromey <tom@tromey.com>
2353
2354 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
2355 read_dependencies. Add assert.
2356 * psymtab.c (partial_symtab::read_dependencies): New method.
2357 * psympriv.h (struct partial_symtab) <read_dependencies>: New
2358 method.
2359 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
2360 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
2361 read_dependencies.
2362 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
2363 Add assert.
2364
8566b89b
TT
23652020-01-26 Tom Tromey <tom@tromey.com>
2366
2367 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
2368 Call expand_psymtab.
2369 (xcoff_read_symtab): Call expand_psymtab.
2370 (xcoff_start_psymtab, xcoff_end_psymtab): Set
2371 legacy_expand_psymtab.
2372 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
2373 method.
2374 (struct legacy_psymtab) <expand_psymtab>: Implement.
2375 <legacy_expand_psymtab>: New member.
2376 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
2377 (parse_partial_symbols): Set legacy_expand_psymtab.
2378 (psymtab_to_symtab_1): Change argument order. Call
2379 expand_psymtab.
2380 (new_psymtab): Set legacy_expand_psymtab.
2381 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
2382 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
2383 expand_psymtab.
2384 (dwarf2_psymtab::expand_psymtab): Rename from
2385 psymtab_to_symtab_1. Call expand_psymtab.
2386 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
2387 (dbx_end_psymtab): Likewise.
2388 (dbx_psymtab_to_symtab_1): Change argument order. Call
2389 expand_psymtab.
2390 (dbx_read_symtab): Call expand_psymtab.
2391 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
2392 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
2393 (ctf_psymtab::read_symtab): Call expand_psymtab.
2394
077cbab2
TT
23952020-01-26 Tom Tromey <tom@tromey.com>
2396
2397 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
2398 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
2399 messages.
2400 * mdebugread.c (mdebug_read_symtab): Remove prints.
2401 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
2402 assert.
2403 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
2404
891813be
TT
24052020-01-26 Tom Tromey <tom@tromey.com>
2406
2407 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
2408 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
2409 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
2410 legacy_symtab.
2411 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
2412 * psymtab.c (psymtab_to_symtab): Call method.
2413 (dump_psymtab): Update.
2414 * psympriv.h (struct partial_symtab): Add virtual destructor.
2415 <read_symtab>: New method.
2416 (struct legacy_symtab): New.
2417 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
2418 (struct pst_map) <pst>: Now a legacy_psymtab.
2419 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
2420 (new_psymtab): Use legacy_psymtab.
2421 * dwarf2read.h (struct dwarf2_psymtab): New.
2422 (struct dwarf2_per_cu_data) <psymtab>: Use it.
2423 * dwarf2read.c (dwarf2_create_include_psymtab)
2424 (dwarf2_build_include_psymtabs, create_type_unit_group)
2425 (create_partial_symtab, process_psymtab_comp_unit_reader)
2426 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
2427 (set_partial_user): Use dwarf2_psymtab.
2428 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
2429 (psymtab_to_symtab_1, process_full_comp_unit)
2430 (process_full_type_unit, dwarf2_ranges_read)
2431 (dwarf2_get_pc_bounds, psymtab_include_file_name)
2432 (dwarf_decode_lines): Use dwarf2_psymtab.
2433 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
2434 (add_address_entry_worker, write_one_signatured_type)
2435 (recursively_count_psymbols, recursively_write_psymbols)
2436 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
2437 (write_debug_names): Likewise.
2438 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
2439 <pst>: Now a legacy_psymtab.
2440 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
2441 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
2442 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
2443 * ctfread.c (struct ctf_psymtab): New.
2444 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
2445 ctf_psymtab.
2446 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
2447 (create_partial_symtab): Return a ctf_psymtab.
2448 (scan_partial_symbols): Update.
2449
c3693a1d
TT
24502020-01-26 Tom Tromey <tom@tromey.com>
2451
2452 * xcoffread.c (xcoff_start_psymtab): Use new.
2453 * psymtab.c (partial_symtab::partial_symtab): New constructor,
2454 renamed from start_psymtab_common.
2455 * psympriv.h (struct partial_symtab): Add new constructor.
2456 (start_psymtab_common): Don't declare.
2457 * mdebugread.c (parse_partial_symbols): Use new.
2458 * dwarf2read.c (create_partial_symtab): Use new.
2459 * dbxread.c (start_psymtab): Use new.
2460 * ctfread.c (create_partial_symtab): Use new.
2461
32caafd0
TT
24622020-01-26 Tom Tromey <tom@tromey.com>
2463
2464 * xcoffread.c (xcoff_end_psymtab): Use new.
2465 * psymtab.c (start_psymtab_common): Use new.
2466 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
2467 Update.
2468 * psympriv.h (struct partial_symtab): Add parameters to
2469 constructor. Don't inline.
2470 (allocate_psymtab): Don't declare.
2471 * mdebugread.c (new_psymtab): Use new.
2472 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
2473 * dbxread.c (dbx_end_psymtab): Use new.
2474
abaa2f23
TT
24752020-01-26 Tom Tromey <tom@tromey.com>
2476
2477 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
2478 allocate_psymtab. Update documentation.
2479 * psymtab.c (psymtab_storage::install_psymtab): Rename from
2480 allocate_psymtab. Do not use new.
2481 (allocate_psymtab): Use new. Update.
2482
6d94535f
TT
24832020-01-26 Tom Tromey <tom@tromey.com>
2484
2485 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2486 * psymtab.c (psym_print_stats): Update.
2487 * psympriv.h (struct partial_symtab) <readin,
2488 psymtabs_addrmap_supported, anonymous>: Now bool.
2489 * mdebugread.c (psymtab_to_symtab_1): Update.
2490 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
2491 (build_type_psymtabs_reader, psymtab_to_symtab_1)
2492 (process_full_comp_unit, process_full_type_unit): Update.
2493 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
2494 * ctfread.c (psymtab_to_symtab): Update.
2495
6f17252b
TT
24962020-01-26 Tom Tromey <tom@tromey.com>
2497
2498 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
2499 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
2500 * psymtab.c (psymtab_storage): Delete psymtabs.
2501 (psymtab_storage::allocate_psymtab): Use new.
2502 (psymtab_storage::discard_psymtab): Use delete.
2503 * psympriv.h (struct partial_symtab): Add constructor and
2504 initializers.
2505
f6f1cebc
TT
25062020-01-26 Tom Tromey <tom@tromey.com>
2507
2508 * machoread.c: Do not include psympriv.h.
2509
e47e48f6
PW
25102020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2511
2512 * NEWS: Mention the new option and the set/show commands.
2513
a2fedca9
PW
25142020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2515
2516 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
2517 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
2518 (validate_exec_file): New variables, enums, functions.
2519 (exec_file_locate_attach, print_section_info): Style the filenames.
2520 (_initialize_exec): Install show_exec_file_mismatch_command and
2521 set_exec_file_mismatch_command.
2522 * gdbcore.h (validate_exec_file): Declare.
2523 * infcmd.c (attach_command): Call validate_exec_file.
2524 * remote.c ( remote_target::remote_add_inferior): Likewise.
2525
7ffa82e1
AB
25262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2527
2528 * frame.c (find_frame_sal): Move call to get_next_frame into more
2529 inner scope.
2530 * inline-frame.c (inilne_state) <inline_state>: Update argument
2531 types.
2532 (inilne_state) <skipped_symbol>: Rename to...
2533 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
2534 (skip_inline_frames): Build vector of skipped symbols and use this
2535 to reate the inline_state.
2536 (inline_skipped_symbol): Add a comment and some assertions, fetch
2537 skipped symbol from the list.
2538
3d92a3e3
AB
25392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * buildsym.c (lte_is_less_than): Delete.
2542 (buildsym_compunit::end_symtab_with_blockvector): Create local
2543 lambda function to sort line table entries, and use
2544 std::stable_sort instead of std::sort.
2545 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
2546 markers when looking for a previous line.
2547
94a72be7
AB
25482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2549
2550 * dwarf2read.c (lnp_state_machine::record_line): Include
2551 end_sequence parameter in debug print out. Record the line if we
2552 are at an end_sequence marker even if it's not the start of a
2553 statement.
2554 * symmisc.c (maintenance_print_one_line_table): Print end of
2555 sequence markers with 'END' not '0'.
2556
53af73bf
PA
25572020-01-24 Pedro Alves <palves@redhat.com>
2558
2559 PR gdb/25410
2560 * thread.c (scoped_restore_current_thread::restore): Use
2561 switch_to_inferior_no_thread.
2562 * exec.c: Include "progspace-and-thread.h".
2563 (add_target_sections, remove_target_sections):
2564 scoped_restore_current_pspace_and_thread instead of
2565 scoped_restore_current_thread.
2566 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
2567 and aspace to the inferior before calling clone_program_space.
2568 Remove stale comment.
2569
3050c6f4
CB
25702020-01-24 Christian Biesinger <cbiesinger@google.com>
2571
2572 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
2573 (arm_netbsd_nat_target::fetch_registers): ...this.
2574 (arm_nbsd_nat_target::store_registers): Rename to...
2575 (arm_netbsd_nat_target::store_registers): ...this.
2576
73685c7e
CB
25772020-01-24 Christian Biesinger <cbiesinger@google.com>
2578
2579 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2580 register_t.
2581
89203d40
CB
25822020-01-24 Christian Biesinger <cbiesinger@google.com>
2583
2584 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
2585 Update comment.
2586 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
2587 Likewise.
2588 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
2589 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
2590 the correct replacement (iterate_over_regset_sections).
2591 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
2592 Update comment.
2593
1ba1ac88
AB
25942020-01-24 Graham Markall <graham.markall@embecosm.com>
2595
2596 PR gdb/23718
2597 * gdb/python/python.c (execute_gdb_command): Call
2598 async_enable_stdin in catch block.
2599
f3364a6d
AB
26002020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2601
2602 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
2603 SWITCH_THRU_ALL_UIS.
2604
733d0a67
AB
26052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2606
2607 PR tui/9765
2608 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
2609 comment, add extra parameter, and update to store previous symbol
2610 when appropriate.
2611 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
2612 add extra parameter.
2613 * tui/tui-disasm.c (tui_disassemble): Update header comment,
2614 remove unneeded parameter, add try/catch around gdb_print_insn,
2615 rewrite to add items to asm_lines vector.
2616 (tui_find_backward_disassembly_start_address): New function.
2617 (tui_find_disassembly_address): Updated throughout.
2618 (tui_disasm_window::set_contents): Update for changes to
2619 tui_disassemble.
2620 (tui_disasm_window::do_scroll_vertical): No need to adjust the
2621 number of lines to scroll.
2622
b3b3bada
SM
26232020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2624
2625 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
2626 (SECT_OFF_DATA): Likewise.
2627 (SECT_OFF_RODATA): Likewise.
2628 (SECT_OFF_TEXT): Likewise.
2629 (SECT_OFF_BSS): Likewise.
2630 (struct objfile) <text_section_offset, data_section_offset>: New
2631 methods.
2632 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
2633 objfile::text_section_offset.
2634 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2635 * coffread.c (coff_symtab_read): Likewise.
2636 (enter_linenos): Likewise.
2637 (process_coff_symbol): Likewise.
2638 * ctfread.c (get_objfile_text_range): Likewise.
2639 * dtrace-probe.c (dtrace_probe::get_relocated_address):
2640 Use objfile::data_section_offset.
2641 * dwarf2-frame.c (execute_cfa_program): Use
2642 objfile::text_section_offset.
2643 (dwarf2_frame_find_fde): Likewise.
2644 * dwarf2read.c (create_addrmap_from_index): Likewise.
2645 (create_addrmap_from_aranges): Likewise.
2646 (dw2_find_pc_sect_compunit_symtab): Likewise.
2647 (process_psymtab_comp_unit_reader): Likewise.
2648 (add_partial_symbol): Likewise.
2649 (add_partial_subprogram): Likewise.
2650 (process_full_comp_unit): Likewise.
2651 (read_file_scope): Likewise.
2652 (read_func_scope): Likewise.
2653 (read_lexical_block_scope): Likewise.
2654 (read_call_site_scope): Likewise.
2655 (dwarf2_rnglists_process): Likewise.
2656 (dwarf2_ranges_process): Likewise.
2657 (dwarf2_ranges_read): Likewise.
2658 (dwarf_decode_lines_1): Likewise.
2659 (new_symbol): Likewise.
2660 (dwarf2_fetch_die_loc_sect_off): Likewise.
2661 (dwarf2_per_cu_text_offset): Likewise.
2662 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2663 * hppa-tdep.c (read_unwind_info): Likewise.
2664 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
2665 * psympriv.h (struct partial_symtab): Likewise.
2666 * psymtab.c (find_pc_sect_psymtab): Likewise.
2667 * solib-svr4.c (enable_break): Likewise.
2668 * stap-probe.c (relocate_address): Use
2669 objfile::data_section_offset.
2670 * xcoffread.c (enter_line_range): Use
2671 objfile::text_section_offset.
2672 (read_xcoff_symtab): Likewise.
2673
ab53f382
SM
26742020-01-23 Simon Marchi <simon.marchi@efficios.com>
2675
2676 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
2677 declaration to narrower scopes.
2678
e7eee665
SM
26792020-01-23 Simon Marchi <simon.marchi@efficios.com>
2680
2681 * darwin-nat.h (struct darwin_exception_msg, enum
2682 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
2683 Move up.
2684 (class darwin_nat_target) <wait_1, check_new_threads,
2685 decode_exception_message, decode_message, stop_inferior,
2686 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
2687 * darwin-nat.c (darwin_check_new_threads): Rename to...
2688 (darwin_nat_target::check_new_threads): ... this.
2689 (darwin_suspend_inferior_it): Remove.
2690 (darwin_decode_exception_message): Rename to...
2691 (darwin_nat_target::decode_exception_message): ... this.
2692 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
2693 (darwin_decode_message): Rename to...
2694 (darwin_nat_target::decode_message): ... this.
2695 (cancel_breakpoint): Rename to...
2696 (darwin_nat_target::cancel_breakpoint): ... this.
2697 (darwin_wait): Rename to...
2698 (darwin_nat_target::wait_1): ... this. Use range-based for loop
2699 instead of iterate_over_inferiors.
2700 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
2701 (darwin_stop_inferior): Rename to...
2702 (darwin_nat_target::stop_inferior): ... this.
2703 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
2704 (darwin_init_thread_list): Rename to...
2705 (darwin_nat_target::init_thread_list): ... this.
2706 (darwin_ptrace_him): Rename to...
2707 (darwin_nat_target::ptrace_him): ... this.
2708 (darwin_nat_target::create_inferior): Pass lambda function to
2709 fork_inferior.
2710 (darwin_nat_target::detach): Call stop_inferior instead of
2711 darwin_stop_inferior.
2712 * fork-inferior.h (fork_inferior): Change init_trace_fun
2713 parameter to gdb::function_view.
2714 * fork-inferior.c (fork_inferior): Likewise.
2715
c162ed3e
HD
27162020-01-23 Hannes Domani <ssbssa@yahoo.de>
2717
2718 * i386-cygwin-tdep.c (core_process_module_section): Update.
2719 * windows-nat.c (struct lm_info_windows): Add text_offset.
2720 (windows_xfer_shared_libraries): Update.
2721 * windows-tdep.c (windows_xfer_shared_library):
2722 Add text_offset_cached argument.
2723 * windows-tdep.h (windows_xfer_shared_library): Update.
2724
a1237872
SM
27252020-01-21 Simon Marchi <simon.marchi@efficios.com>
2726
2727 * gdbarch.sh: Add declaration for _initialize_gdbarch.
2728
b3ee6dd9
SM
27292020-01-21 Simon Marchi <simon.marchi@efficios.com>
2730
2731 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
2732 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
2733 replace with range-based for.
2734 (gdbsim_interrupt_inferior): Remove.
2735 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
2736 with a range-based for. Inline code from
2737 gdbsim_interrupt_inferior.
2738
f9fac3c8
SM
27392020-01-21 Simon Marchi <simon.marchi@efficios.com>
2740
2741 * infrun.c (proceed): Fix indentation.
2742
f6474de9
TT
27432020-01-21 Tom Tromey <tromey@adacore.com>
2744
2745 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
2746 * python/python.c (python_extension_ops): Update.
2747 (gdbpy_colorize): New function.
2748 * python/lib/gdb/__init__.py (colorize): New function.
2749 * extension.h (ext_lang_colorize): Declare.
2750 * extension.c (ext_lang_colorize): New function.
2751 * extension-priv.h (struct extension_language_ops) <colorize>: New
2752 member.
2753 * cli/cli-style.c (_initialize_cli_style): Update help text.
2754
f0c702d4
LM
27552020-01-21 Luis Machado <luis.machado@linaro.org>
2756
2757 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
2758 <cond>: Change type to bool.
2759 (aarch64_displaced_step_b_cond): Update cond to use bool type.
2760 (aarch64_displaced_step_cb): Likewise.
2761 (aarch64_displaced_step_tb): Likewise.
2762
1ab139e5
LM
27632020-01-21 Luis Machado <luis.machado@linaro.org>
2764
2765 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
2766 output.
2767
0c271889
LM
27682020-01-21 Luis Machado <luis.machado@linaro.org>
2769
2770 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
2771 <pc_adjust>: Adjust the documentation.
2772 (aarch64_displaced_step_fixup): Check if PC really moved before
2773 adjusting it.
2774
4d89c1c7
TT
27752020-01-19 Tom Tromey <tom@tromey.com>
2776
2777 * disasm.c (~gdb_disassembler): New destructor.
2778 (gdb_buffered_insn_length): Call disassemble_free_target.
2779 * disasm.h (class gdb_disassembler): Declare destructor. Use
2780 DISABLE_COPY_AND_ASSIGN.
2781
c0ab21c2
TT
27822020-01-19 Tom Tromey <tom@tromey.com>
2783
2784 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
2785 (die_reader_func_ftype): Remove.
2786 (cutu_reader): New class.
2787 (dw2_get_file_names_reader): Remove "data" parameter.
2788 (dw2_get_file_names): Use cutu_reader.
2789 (create_debug_type_hash_table): Update.
2790 (read_cutu_die_from_dwo): Update comment.
2791 (lookup_dwo_unit): Add dwo_name parameter.
2792 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
2793 die_reader_func_ftype and data parameters.
2794 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
2795 Remove die_reader_func_ftype and data parameters.
2796 (~cutu_reader): New; from init_cutu_and_read_dies.
2797 (cutu_reader::cutu_reader): Rename from
2798 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
2799 and data parameters.
2800 (init_cutu_and_read_dies_simple): Remove.
2801 (struct process_psymtab_comp_unit_data): Remove.
2802 (process_psymtab_comp_unit_reader): Remove data parameter; add
2803 want_partial_unit and pretend_language parameters.
2804 (process_psymtab_comp_unit): Use cutu_reader.
2805 (build_type_psymtabs_reader): Remove data parameter.
2806 (build_type_psymtabs_1): Use cutu_reader.
2807 (process_skeletonless_type_unit): Likewise.
2808 (load_partial_comp_unit_reader): Remove.
2809 (load_partial_comp_unit): Use cutu_reader.
2810 (load_full_comp_unit_reader): Remove.
2811 (load_full_comp_unit): Use cutu_reader.
2812 (struct create_dwo_cu_data): Remove.
2813 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
2814 dwo_unit parameters.
2815 (create_cus_hash_table): Use cutu_reader.
2816 (struct dwarf2_read_addr_index_data): Remove.
2817 (dwarf2_read_addr_index_reader): Remove.
2818 (dwarf2_read_addr_index): Use cutu_reader.
2819 (read_signatured_type_reader): Remove.
2820 (read_signatured_type): Use cutu_reader.
2821
45bbae5c
TT
28222020-01-19 Tom Tromey <tom@tromey.com>
2823
2824 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
2825 * tui/tui-wingeneral.h (class tui_suppress_output): New.
2826 (tui_wrefresh): Declare.
2827 * tui/tui-wingeneral.c (suppress_output): New global.
2828 (tui_suppress_output, ~tui_suppress_output): New constructor and
2829 destructor.
2830 (tui_wrefresh): New function.
2831 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
2832 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
2833 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
2834 method.
2835 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
2836 tui_wrefresh.
2837 (tui_data_window::no_refresh): New method.
2838 (tui_data_item_window::refresh_window): Call tui_wrefresh.
2839 (tui_reg_command): Use tui_suppress_output
2840 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
2841 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
2842 method.
2843 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
2844
4f13c1c0
TT
28452020-01-19 Tom Tromey <tom@tromey.com>
2846
2847 * tui/tui-winsource.c (tui_update_source_windows_with_line):
2848 Handle case where symtab is null.
2849
fa47e446
SM
28502020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
2851
2852 * linux-fork.c (one_fork_p): Simplify.
2853
26f42329
SM
28542020-01-17 Simon Marchi <simon.marchi@efficios.com>
2855
2856 * top.c (struct qt_args): Remove.
2857 (kill_or_detach): Change return type to void, replace `void *`
2858 parameter with a proper one.
2859 (print_inferior_quit_action): Likewise.
2860 (quit_confirm): Use range-based for loop to iterate over inferiors.
2861 (quit_force): Likewise.
2862
a9ac81b1
SM
28632020-01-17 Simon Marchi <simon.marchi@efficios.com>
2864
2865 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
2866 `void *` parameter with proper parameters.
2867 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
2868 (print_one_inferior): Change return type to void, replace `void *`
2869 parameter with proper parameters.
2870 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
2871 inferiors.
2872 (get_other_inferior): Remove.
2873 (mi_cmd_remove_inferior): Use range-based loop to iterate over
2874 inferiors.
2875
788eca49
SM
28762020-01-17 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * mi/mi-interp.c (report_initial_inferior): Remove.
2879 (mi_interp::init): Use range-based for to iterate over inferiors.
2880
d9bc85b6
SM
28812020-01-17 Simon Marchi <simon.marchi@efficios.com>
2882
2883 * python/py-inferior.c (build_inferior_list): Remove.
2884 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
2885
40c94099
CB
28862020-01-16 Christian Biesinger <cbiesinger@google.com>
2887
2888 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
2889 (btrace_stitch_trace): Likewise.
2890 * charset.c (intermediate_encoding): Likewise (vaild).
2891 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
2892 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
2893 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
2894
e0cdfe3c
HD
28952020-01-16 Hannes Domani <ssbssa@yahoo.de>
2896
2897 * windows-tdep.c (windows_get_tlb_type):
2898 Add rtl_user_process_parameters type.
2899
790f1718
PA
29002020-01-16 Pedro Alves <palves@redhat.com>
2901 Norbert Lange <nolange79@gmail.com>
2902
2903 PR build/24805
2904 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
2905 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
2906 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
2907 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
2908 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
2909 (ps_plog): Redeclare exported functions with default visibility.
2910
3112ed97
NA
29112020-01-16 Nitika Achra <Nitika.Achra@amd.com>
2912
2913 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
2914 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
2915
8dc3273e
SM
29162020-01-15 Simon Marchi <simon.marchi@efficios.com>
2917
2918 * infcmd.c (post_create_inferior): Use get_thread_regcache
2919 instead of get_current_regcache.
2920
ff47f4f0
TT
29212020-01-14 Tom Tromey <tom@tromey.com>
2922
2923 PR symtab/12535:
2924 * python/python.c (gdbpy_decode_line): Treat empty string the same
2925 as no argument.
2926
975f45b7
TT
29272020-01-14 Tom Tromey <tom@tromey.com>
2928
2929 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
2930
25e57356
TT
29312020-01-14 Tom Tromey <tom@tromey.com>
2932
2933 * nat/linux-btrace.c: Don't include <config.h>.
2934 * nat/linux-ptrace.c: Don't include <config.h>.
2935 * nat/x86-linux-dregs.c: Don't include <config.h>.
2936
05ea2a05
TT
29372020-01-14 Tom Tromey <tom@tromey.com>
2938
2939 * configure: Rebuild.
2940 * configure.ac: Move many checks to ../gdbsupport/common.m4.
2941
01027315
TT
29422020-01-14 Tom Tromey <tom@tromey.com>
2943
2944 * nat/x86-linux-dregs.c: Include configh.h.
2945 * nat/linux-ptrace.c: Include configh.h.
2946 * nat/linux-btrace.c: Include configh.h.
2947 * defs.h: Include config.h, bfd.h.
2948 * configure.ac: Don't source common.host.
2949 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
2950 * configure: Rebuild.
2951 * acinclude.m4: Update path.
2952 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
2953 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
2954 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
2955 (CLIBS): Add LIBSUPPORT.
2956 (CDEPS): Likewise.
2957 (COMMON_SFILES): Remove gdbsupport files.
2958 (HFILES_NO_SRCDIR): Likewise.
2959 (stamp-version): Update path to create-version.sh.
2960 (ALLDEPFILES): Remove gdbsupport files.
2961
b2ceabe8
TT
29622020-01-14 Tom Tromey <tom@tromey.com>
2963
2964 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
2965 USE_WIN32API when needed.
2966 * configure.ac (USE_WIN32API): Don't define.
2967 (WIN32LIBS): Use WIN32APILIBS.
2968 * configure: Rebuild.
2969
25c51f71
TT
29702020-01-14 Tom Tromey <tom@tromey.com>
2971
2972 * configure: Rebuild.
2973 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
2974
717c684d
BE
29752020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2976
2977 * skip.c (skip_function_command): Make skip w/o arguments use the
2978 name of the inlined function if pc is inside any inlined function.
2979
7da6a5b9
LM
29802020-01-14 Luis Machado <luis.machado@linaro.org>
2981
2982 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
2983 * infrun.c (resume_1): Likewise.
2984 (handle_inferior_event): Remove stale comment.
2985 * linux-nat.c (linux_nat_target::resume): Update comments.
2986 (save_stop_reason): Likewise.
2987 (linux_nat_filter_event): Likewise.
2988 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
2989
44e4c775
AB
29902020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2991
2992 * elfread.c (record_minimal_symbol): Set section index to 0 for
2993 non-allocatable sections.
2994
18a8505e
AT
2995
29962020-01-13 Ali Tamur <tamur@google.com>
2997
2998 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
2999 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
3000 to gdb::optional. Update comments.
3001 (dwo_file): Update comments.
3002 (read_attribute): Update API to take an additional out parameter,
3003 need_reprocess. This is used to mark attributes that need other
3004 attributes (e.g. str_offsets_base) for correct computation which may not
3005 have been read yet.
3006 (read_attribute_reprocess): New function declaration.
3007 (read_addr_index): Likewise.
3008 (read_dwo_str_index): Likewise.
3009 (read_stub_str_index): Likewise.
3010 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
3011 (lookup_addr_base): New function definition.
3012 (lookup_ranges_base): Likewise.
3013 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
3014 lookup_ranges_base.
3015 (init_cutu_and_read_dies): Update comments.
3016 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
3017 unit. This is used to inherit parent's str_offsets_base and addr_base.
3018 Update comments.
3019 (init_cutu_and_read_dies_simple): Reflect API changes.
3020 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
3021 (create_cus_hash_table): Change API to take parent compile unit.
3022 Reflect API changes.
3023 (open_and_init_dwo_file): Reflect API changes.
3024 (dwarf2_get_pc_bounds): Update comments.
3025 (dwarf2_record_block_ranges): Likewise.
3026 (read_full_die_1): Change implementation to reprocess attributes that
3027 need str_offsets_base and addr_base.
3028 (partial_die_info::read): Likewise.
3029 (read_attribute_reprocess): New function definition.
3030 (read_attribute_value): Change API to take an additional out parameter,
3031 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
3032 when a non-dwo compile unit has index based attributes.
3033 (read_attribute): Reflect API changes.
3034 (read_addr_index_1): Reflect API changes. Update comments.
3035 (dwarf2_read_addr_index_data): Reflect API changes.
3036 (dwarf2_read_addr_index): Likewise.
3037 (read_str_index): Change API and implementation. This becomes a helper
3038 to be used by the new string index related methods. Update error
3039 message and comments.
3040 (read_dwo_str_index): New function definition.
3041 (read_stub_str_index): Likewise.
3042 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
3043 * symfile.h (dwarf2_debug_sections): Likewise.
3044 * xcoffread.c (dwarf2_debug_sections): Likewise.
3045
0cac9354
SM
30462020-01-13 Simon Marchi <simon.marchi@efficios.com>
3047
3048 * gdbcore.h (struct core_fns) <core_read_registers>: Change
3049 core_reg_sect type to gdb_byte *.
3050 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
3051 * cris-tdep.c (fetch_core_registers): Likewise.
3052 * corelow.c (core_target::get_core_register_section): Change
3053 type of `contents` to gdb::byte_vector.
3054
9a6d629c
AB
30552020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3056
3057 * tui/tui-wingeneral.c (box_win): Position the title in the center
3058 of the border.
3059
d8b2f9e3
SM
30602020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3061
3062 * corelow.c (core_target::get_core_register_section): Use
3063 std::vector instead of alloca.
3064
bb564c58
SM
30652020-01-13 Simon Marchi <simon.marchi@efficios.com>
3066
3067 * warning.m4: Add -Wmissing-declarations to build_warnings.
3068 * configure: Re-generate.
3069
6b366111
SM
30702020-01-13 Simon Marchi <simon.marchi@efficios.com>
3071
3072 * python/python.c (init__gdb_module): Add declaration.
3073
6c265988
SM
30742020-01-13 Simon Marchi <simon.marchi@efficios.com>
3075
3076 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
3077 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
3078 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
3079 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
3080 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
3081 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
3082 * ada-exp.y (_initialize_ada_exp): Add declaration.
3083 * ada-lang.c (_initialize_ada_language): Add declaration.
3084 * ada-tasks.c (_initialize_tasks): Add declaration.
3085 * agent.c (_initialize_agent): Add declaration.
3086 * aix-thread.c (_initialize_aix_thread): Add declaration.
3087 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
3088 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
3089 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
3090 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
3091 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
3092 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3093 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
3094 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
3095 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
3096 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
3097 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
3098 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
3099 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
3100 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
3101 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
3102 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
3103 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
3104 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
3105 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
3106 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
3107 * annotate.c (_initialize_annotate): Add declaration.
3108 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
3109 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
3110 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
3111 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
3112 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
3113 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
3114 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
3115 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
3116 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
3117 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
3118 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
3119 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
3120 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3121 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
3122 * auto-load.c (_initialize_auto_load): Add declaration.
3123 * auxv.c (_initialize_auxv): Add declaration.
3124 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
3125 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
3126 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
3127 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
3128 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
3129 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
3130 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
3131 * breakpoint.c (_initialize_breakpoint): Add declaration.
3132 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
3133 * btrace.c (_initialize_btrace): Add declaration.
3134 * charset.c (_initialize_charset): Add declaration.
3135 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
3136 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3137 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3138 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
3139 * cli/cli-script.c (_initialize_cli_script): Add declaration.
3140 * cli/cli-style.c (_initialize_cli_style): Add declaration.
3141 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
3142 * coffread.c (_initialize_coffread): Add declaration.
3143 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
3144 * compile/compile.c (_initialize_compile): Add declaration.
3145 * complaints.c (_initialize_complaints): Add declaration.
3146 * completer.c (_initialize_completer): Add declaration.
3147 * copying.c (_initialize_copying): Add declaration.
3148 * corefile.c (_initialize_core): Add declaration.
3149 * corelow.c (_initialize_corelow): Add declaration.
3150 * cp-abi.c (_initialize_cp_abi): Add declaration.
3151 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
3152 * cp-support.c (_initialize_cp_support): Add declaration.
3153 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
3154 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
3155 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
3156 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
3157 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
3158 * ctfread.c (_initialize_ctfread): Add declaration.
3159 * d-lang.c (_initialize_d_language): Add declaration.
3160 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
3161 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
3162 * dbxread.c (_initialize_dbxread): Add declaration.
3163 * dcache.c (_initialize_dcache): Add declaration.
3164 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
3165 * disasm.c (_initialize_disasm): Add declaration.
3166 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
3167 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
3168 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
3169 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
3170 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
3171 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
3172 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
3173 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
3174 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
3175 * elfread.c (_initialize_elfread): Add declaration.
3176 * exec.c (_initialize_exec): Add declaration.
3177 * extension.c (_initialize_extension): Add declaration.
3178 * f-lang.c (_initialize_f_language): Add declaration.
3179 * f-valprint.c (_initialize_f_valprint): Add declaration.
3180 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
3181 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
3182 * filesystem.c (_initialize_filesystem): Add declaration.
3183 * findcmd.c (_initialize_mem_search): Add declaration.
3184 * findvar.c (_initialize_findvar): Add declaration.
3185 * fork-child.c (_initialize_fork_child): Add declaration.
3186 * frame-base.c (_initialize_frame_base): Add declaration.
3187 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3188 * frame.c (_initialize_frame): Add declaration.
3189 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
3190 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
3191 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
3192 * gcore.c (_initialize_gcore): Add declaration.
3193 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
3194 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
3195 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
3196 * gdbarch.c (_initialize_gdbarch): Add declaration.
3197 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
3198 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
3199 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
3200 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
3201 * go-lang.c (_initialize_go_language): Add declaration.
3202 * go32-nat.c (_initialize_go32_nat): Add declaration.
3203 * guile/guile.c (_initialize_guile): Add declaration.
3204 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3205 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
3206 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
3207 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
3208 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
3209 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
3210 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
3211 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
3212 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
3213 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
3214 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
3215 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
3216 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
3217 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
3218 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
3219 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
3220 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
3221 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
3222 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
3223 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
3224 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
3225 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
3226 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
3227 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
3228 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
3229 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
3230 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
3231 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
3232 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
3233 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
3234 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
3235 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
3236 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
3237 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
3238 * infcall.c (_initialize_infcall): Add declaration.
3239 * infcmd.c (_initialize_infcmd): Add declaration.
3240 * inflow.c (_initialize_inflow): Add declaration.
3241 * infrun.c (_initialize_infrun): Add declaration.
3242 * interps.c (_initialize_interpreter): Add declaration.
3243 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
3244 * jit.c (_initialize_jit): Add declaration.
3245 * language.c (_initialize_language): Add declaration.
3246 * linux-fork.c (_initialize_linux_fork): Add declaration.
3247 * linux-nat.c (_initialize_linux_nat): Add declaration.
3248 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
3249 * linux-thread-db.c (_initialize_thread_db): Add declaration.
3250 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
3251 * m2-lang.c (_initialize_m2_language): Add declaration.
3252 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
3253 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
3254 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
3255 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
3256 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3257 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
3258 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
3259 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
3260 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
3261 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3262 * machoread.c (_initialize_machoread): Add declaration.
3263 * macrocmd.c (_initialize_macrocmd): Add declaration.
3264 * macroscope.c (_initialize_macroscope): Add declaration.
3265 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
3266 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
3267 * maint.c (_initialize_maint_cmds): Add declaration.
3268 * mdebugread.c (_initialize_mdebugread): Add declaration.
3269 * memattr.c (_initialize_mem): Add declaration.
3270 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
3271 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
3272 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
3273 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
3274 * mi/mi-main.c (_initialize_mi_main): Add declaration.
3275 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
3276 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
3277 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
3278 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
3279 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
3280 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
3281 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
3282 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
3283 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
3284 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3285 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
3286 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
3287 * mipsread.c (_initialize_mipsread): Add declaration.
3288 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
3289 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
3290 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
3291 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
3292 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
3293 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
3294 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
3295 * nto-procfs.c (_initialize_procfs): Add declaration.
3296 * objc-lang.c (_initialize_objc_language): Add declaration.
3297 * observable.c (_initialize_observer): Add declaration.
3298 * opencl-lang.c (_initialize_opencl_language): Add declaration.
3299 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
3300 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
3301 * osabi.c (_initialize_gdb_osabi): Add declaration.
3302 * osdata.c (_initialize_osdata): Add declaration.
3303 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3304 * parse.c (_initialize_parse): Add declaration.
3305 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
3306 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
3307 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
3308 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
3309 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
3310 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
3311 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
3312 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
3313 * printcmd.c (_initialize_printcmd): Add declaration.
3314 * probe.c (_initialize_probe): Add declaration.
3315 * proc-api.c (_initialize_proc_api): Add declaration.
3316 * proc-events.c (_initialize_proc_events): Add declaration.
3317 * proc-service.c (_initialize_proc_service): Add declaration.
3318 * procfs.c (_initialize_procfs): Add declaration.
3319 * producer.c (_initialize_producer): Add declaration.
3320 * psymtab.c (_initialize_psymtab): Add declaration.
3321 * python/python.c (_initialize_python): Add declaration.
3322 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
3323 * record-btrace.c (_initialize_record_btrace): Add declaration.
3324 * record-full.c (_initialize_record_full): Add declaration.
3325 * record.c (_initialize_record): Add declaration.
3326 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
3327 * regcache.c (_initialize_regcache): Add declaration.
3328 * reggroups.c (_initialize_reggroup): Add declaration.
3329 * remote-notif.c (_initialize_notif): Add declaration.
3330 * remote-sim.c (_initialize_remote_sim): Add declaration.
3331 * remote.c (_initialize_remote): Add declaration.
3332 * reverse.c (_initialize_reverse): Add declaration.
3333 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
3334 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
3335 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
3336 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
3337 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
3338 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
3339 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
3340 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
3341 Add declaration.
3342 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
3343 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
3344 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
3345 * rust-exp.y (_initialize_rust_exp): Add declaration.
3346 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
3347 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
3348 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
3349 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
3350 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
3351 * score-tdep.c (_initialize_score_tdep): Add declaration.
3352 * ser-go32.c (_initialize_ser_dos): Add declaration.
3353 * ser-mingw.c (_initialize_ser_windows): Add declaration.
3354 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
3355 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
3356 * ser-uds.c (_initialize_ser_socket): Add declaration.
3357 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
3358 * serial.c (_initialize_serial): Add declaration.
3359 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
3360 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
3361 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
3362 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
3363 * skip.c (_initialize_step_skip): Add declaration.
3364 * sol-thread.c (_initialize_sol_thread): Add declaration.
3365 * solib-aix.c (_initialize_solib_aix): Add declaration.
3366 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
3367 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
3368 * solib-frv.c (_initialize_frv_solib): Add declaration.
3369 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3370 * solib-target.c (_initialize_solib_target): Add declaration.
3371 * solib.c (_initialize_solib): Add declaration.
3372 * source-cache.c (_initialize_source_cache): Add declaration.
3373 * source.c (_initialize_source): Add declaration.
3374 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
3375 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
3376 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
3377 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
3378 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
3379 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
3380 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
3381 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
3382 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
3383 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
3384 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
3385 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
3386 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
3387 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
3388 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
3389 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
3390 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
3391 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
3392 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
3393 * stabsread.c (_initialize_stabsread): Add declaration.
3394 * stack.c (_initialize_stack): Add declaration.
3395 * stap-probe.c (_initialize_stap_probe): Add declaration.
3396 * std-regs.c (_initialize_frame_reg): Add declaration.
3397 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
3398 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
3399 * symfile.c (_initialize_symfile): Add declaration.
3400 * symmisc.c (_initialize_symmisc): Add declaration.
3401 * symtab.c (_initialize_symtab): Add declaration.
3402 * target.c (_initialize_target): Add declaration.
3403 * target-connection.c (_initialize_target_connection): Add
3404 declaration.
3405 * target-dcache.c (_initialize_target_dcache): Add declaration.
3406 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
3407 * thread.c (_initialize_thread): Add declaration.
3408 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
3409 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
3410 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
3411 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
3412 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
3413 * tracectf.c (_initialize_ctf): Add declaration.
3414 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
3415 * tracefile.c (_initialize_tracefile): Add declaration.
3416 * tracepoint.c (_initialize_tracepoint): Add declaration.
3417 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
3418 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
3419 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
3420 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
3421 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
3422 * tui/tui-win.c (_initialize_tui_win): Add declaration.
3423 * tui/tui.c (_initialize_tui): Add declaration.
3424 * typeprint.c (_initialize_typeprint): Add declaration.
3425 * ui-style.c (_initialize_ui_style): Add declaration.
3426 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
3427 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
3428 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
3429 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
3430 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
3431 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
3432 * unittests/filtered_iterator-selftests.c
3433 (_initialize_filtered_iterator_selftests): Add declaration.
3434 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
3435 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
3436 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
3437 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
3438 * unittests/main-thread-selftests.c
3439 (_initialize_main_thread_selftests): Add declaration.
3440 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
3441 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
3442 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
3443 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
3444 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
3445 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
3446 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
3447 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
3448 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
3449 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
3450 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
3451 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
3452 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
3453 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
3454 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
3455 declaration.
3456 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
3457 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
3458 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
3459 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
3460 * user-regs.c (_initialize_user_regs): Add declaration.
3461 * utils.c (_initialize_utils): Add declaration.
3462 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
3463 * valops.c (_initialize_valops): Add declaration.
3464 * valprint.c (_initialize_valprint): Add declaration.
3465 * value.c (_initialize_values): Add declaration.
3466 * varobj.c (_initialize_varobj): Add declaration.
3467 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
3468 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
3469 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3470 * windows-nat.c (_initialize_windows_nat): Add declaration.
3471 (_initialize_check_for_gdb_ini): Add declaration.
3472 (_initialize_loadable): Add declaration.
3473 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
3474 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
3475 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
3476 * xcoffread.c (_initialize_xcoffread): Add declaration.
3477 * xml-support.c (_initialize_xml_support): Add declaration.
3478 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
3479 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
3480 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
3481 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
3482
e2de1eec
SM
34832020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3484
3485 * regformats/regdat.sh: Generate declaration for init function.
3486
e0037b4c
SM
34872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3488
3489 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
3490 up.
3491 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
3492 close_one_inferior>: New methods.
3493 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
3494 pass down target to find_inferior_pid.
3495 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
3496 Pass down target to find_inferior_ptid.
3497 (gdbsim_target::create_inferior): Pass down target to
3498 add_thread_silent.
3499 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
3500 target down to find_inferior_ptid and switch_to_thread.
3501 (gdbsim_target::close): Update to call close_one_inferior.
3502 (struct resume_data): Remove.
3503 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
3504 directly, rather than through a void pointer.
3505 (gdbsim_target::resume): Update to call resume_one_inferior.
3506
58920b5b
SM
35072020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3508
3509 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
3510
4ec89149
PA
35112020-01-12 Pedro Alves <palves@redhat.com>
3512
3513 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
3514 directly for the current inferior instead of
3515 discard_all_inferiors.
3516 (discard_all_inferiors): Delete.
3517
7c392d1d
TT
35182020-01-11 Tom Tromey <tom@tromey.com>
3519
3520 * tui/tui-wingeneral.c (box_win): Check cli_styling.
3521 * tui/tui-winsource.c (tui_source_window_base::refill): Use
3522 deprecated_safe_get_selected_frame.
3523
d9ebdab7
TBA
35242020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3525
3526 * inferior.c (print_inferior): Switch inferior before printing it.
3527
f3c469b9
PA
35282020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
3529 Pedro Alves <palves@redhat.com>
3530
3531 * progspace-and-thread.c (switch_to_program_space_and_thread):
3532 Assert there's an inferior for PSPACE. Use
3533 switch_to_inferior_no_thread to switch the inferior too.
3534 * progspace.c (program_space::~program_space): Call
3535 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
3536 (program_space::free_all_objfiles): Don't call clear_symtab_users
3537 here.
3538 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
3539
65c574f6
PA
35402020-01-10 Pedro Alves <palves@redhat.com>
3541
3542 * NEWS: Mention multi-target debugging, "info connections", and
3543 "add-inferior -no-connection".
3544
2f4fcf00
PA
35452020-01-10 Pedro Alves <palves@redhat.com>
3546
3547 * infrun.c: Include "target-connection.h".
3548 (check_multi_target_resumption): New.
3549 (proceed): Call it.
3550 * target-connection.c (make_target_connection_string): Make
3551 extern.
3552 * target-connection.h (make_target_connection_string): Declare.
3553
121b3efd
PA
35542020-01-10 Pedro Alves <palves@redhat.com>
3555
3556 * Makefile.in (COMMON_SFILES): Add target-connection.c.
3557 * inferior.c (uiout_field_connection): New function.
3558 (print_inferior): Add new "connection-id" column.
3559 (add_inferior_command): Show connection number/string of added
3560 inferior.
3561 * process-stratum-target.h
3562 (process_stratum_target::connection_string): New virtual method.
3563 (process_stratum_target::connection_number): New field.
3564 * remote.c (remote_target::connection_string): New override.
3565 * target-connection.c: New file.
3566 * target-connection.h: New file.
3567 * target.c (decref_target): Remove process_stratum targets from
3568 the connection list.
3569 (target_stack::push): Add process_stratum targets to the
3570 connection list.
3571
4f837581
PA
35722020-01-10 Pedro Alves <palves@redhat.com>
3573
3574 Revert:
3575 2016-04-12 Pedro Alves <palves@redhat.com>
3576 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
3577 Remove references to name.
3578 * serial.h (struct serial) <name>: Delete.
3579
f4ec508e
PA
35802020-01-10 Pedro Alves <palves@redhat.com>
3581
3582 * gdbarch-selftests.c (register_to_value_test): Remove "target
3583 already pushed" check.
3584
5b6d1e4f
PA
35852020-01-10 Pedro Alves <palves@redhat.com>
3586 John Baldwin <jhb@FreeBSD.org>
3587
3588 * aarch64-linux-nat.c
3589 (aarch64_linux_nat_target::thread_architecture): Adjust.
3590 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
3591 (task_command_1): Likewise.
3592 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
3593 (aix_thread_target::wait, aix_thread_target::fetch_registers)
3594 (aix_thread_target::store_registers)
3595 (aix_thread_target::thread_alive): Adjust.
3596 * amd64-fbsd-tdep.c: Include "inferior.h".
3597 (amd64fbsd_get_thread_local_address): Pass down target.
3598 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
3599 thread's gdbarch instead of target_gdbarch.
3600 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
3601 get_last_target_status.
3602 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
3603 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
3604 inferiors.
3605 (update_inserted_breakpoint_locations): Skip if inferiors with no
3606 execution.
3607 (update_global_location_list): When handling moribund locations,
3608 find representative inferior for location's pspace, and use thread
3609 count of its process_stratum target.
3610 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
3611 * bsd-uthread.c (bsd_uthread_target::wait): Use
3612 as_process_stratum_target and adjust thread_change_ptid and
3613 add_thread calls.
3614 (bsd_uthread_target::update_thread_list): Use
3615 as_process_stratum_target and adjust find_thread_ptid,
3616 thread_change_ptid and add_thread calls.
3617 * btrace.c (maint_btrace_packet_history_cmd): Adjust
3618 find_thread_ptid call.
3619 * corelow.c (add_to_thread_list): Adjust add_thread call.
3620 (core_target_open): Adjust add_thread_silent and thread_count
3621 calls.
3622 (core_target::pid_to_str): Adjust find_inferior_ptid call.
3623 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
3624 * event-top.c (async_disconnect): Pop targets from all inferiors.
3625 * exec.c (add_target_sections): Push exec target on all inferiors
3626 sharing the program space.
3627 (remove_target_sections): Remove the exec target from all
3628 inferiors sharing the program space.
3629 (exec_on_vfork): New.
3630 * exec.h (exec_on_vfork): Declare.
3631 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
3632 Pass it down.
3633 (fbsd_nat_target::update_thread_list): Adjust.
3634 (fbsd_nat_target::resume): Adjust.
3635 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
3636 down.
3637 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
3638 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
3639 get_thread_arch_regcache call.
3640 * fork-child.c (gdb_startup_inferior): Pass target down to
3641 startup_inferior and set_executing.
3642 * gdbthread.h (struct process_stratum_target): Forward declare.
3643 (add_thread, add_thread_silent, add_thread_with_info)
3644 (in_thread_list): Add process_stratum_target parameter.
3645 (find_thread_ptid(inferior*, ptid_t)): New overload.
3646 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
3647 parameter.
3648 (all_threads()): Delete overload.
3649 (all_threads, all_non_exited_threads): Add process_stratum_target
3650 parameter.
3651 (all_threads_safe): Use brace initialization.
3652 (thread_count): Add process_stratum_target parameter.
3653 (set_resumed, set_running, set_stop_requested, set_executing)
3654 (threads_are_executing, finish_thread_state): Add
3655 process_stratum_target parameter.
3656 (switch_to_thread): Use is_current_thread.
3657 * i386-fbsd-tdep.c: Include "inferior.h".
3658 (i386fbsd_get_thread_local_address): Pass down target.
3659 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
3660 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
3661 have_inferiors check.
3662 * inf-ptrace.c (inf_ptrace_target::create_inferior)
3663 (inf_ptrace_target::attach): Adjust.
3664 * infcall.c (run_inferior_call): Adjust.
3665 * infcmd.c (run_command_1): Pass target to
3666 scoped_finish_thread_state.
3667 (proceed_thread_callback): Skip inferiors with no execution.
3668 (continue_command): Rename 'all_threads' local to avoid hiding
3669 'all_threads' function. Adjust get_last_target_status call.
3670 (prepare_one_step): Adjust set_running call.
3671 (signal_command): Use user_visible_resume_target. Compare thread
3672 pointers instead of inferior_ptid.
3673 (info_program_command): Adjust to pass down target.
3674 (attach_command): Mark target's 'thread_executing' flag.
3675 (stop_current_target_threads_ns): New, factored out from ...
3676 (interrupt_target_1): ... this. Switch inferior before making
3677 target calls.
3678 * inferior-iter.h
3679 (struct all_inferiors_iterator, struct all_inferiors_range)
3680 (struct all_inferiors_safe_range)
3681 (struct all_non_exited_inferiors_range): Filter on
3682 process_stratum_target too. Remove explicit.
3683 * inferior.c (inferior::inferior): Push dummy target on target
3684 stack.
3685 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
3686 Add process_stratum_target parameter, and pass it down.
3687 (have_live_inferiors): Adjust.
3688 (switch_to_inferior_and_push_target): New.
3689 (add_inferior_command, clone_inferior_command): Handle
3690 "-no-connection" parameter. Use
3691 switch_to_inferior_and_push_target.
3692 (_initialize_inferior): Mention "-no-connection" option in
3693 the help of "add-inferior" and "clone-inferior" commands.
3694 * inferior.h: Include "process-stratum-target.h".
3695 (interrupt_target_1): Use bool.
3696 (struct inferior) <push_target, unpush_target, target_is_pushed,
3697 find_target_beneath, top_target, process_target, target_at,
3698 m_stack>: New.
3699 (discard_all_inferiors): Delete.
3700 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
3701 (all_inferiors, all_non_exited_inferiors): Add
3702 process_stratum_target parameter.
3703 * infrun.c: Include "gdb_select.h" and <unordered_map>.
3704 (target_last_proc_target): New global.
3705 (follow_fork_inferior): Push target on new inferior. Pass target
3706 to add_thread_silent. Call exec_on_vfork. Handle target's
3707 reference count.
3708 (follow_fork): Adjust get_last_target_status call. Also consider
3709 target.
3710 (follow_exec): Push target on new inferior.
3711 (struct execution_control_state) <target>: New field.
3712 (user_visible_resume_target): New.
3713 (do_target_resume): Call target_async.
3714 (resume_1): Set target's threads_executing flag. Consider resume
3715 target.
3716 (commit_resume_all_targets): New.
3717 (proceed): Also consider resume target. Skip threads of inferiors
3718 with no execution. Commit resumtion in all targets.
3719 (start_remote): Pass current inferior to wait_for_inferior.
3720 (infrun_thread_stop_requested): Consider target as well. Pass
3721 thread_info pointer to clear_inline_frame_state instead of ptid.
3722 (infrun_thread_thread_exit): Consider target as well.
3723 (random_pending_event_thread): New inferior parameter. Use it.
3724 (do_target_wait): Rename to ...
3725 (do_target_wait_1): ... this. Add inferior parameter, and pass it
3726 down.
3727 (threads_are_resumed_pending_p, do_target_wait): New.
3728 (prepare_for_detach): Adjust calls.
3729 (wait_for_inferior): New inferior parameter. Handle it. Use
3730 do_target_wait_1 instead of do_target_wait.
3731 (fetch_inferior_event): Adjust. Switch to representative
3732 inferior. Pass target down.
3733 (set_last_target_status): Add process_stratum_target parameter.
3734 Save target in global.
3735 (get_last_target_status): Add process_stratum_target parameter and
3736 handle it.
3737 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
3738 (context_switch): Check inferior_ptid == null_ptid before calling
3739 inferior_thread().
3740 (get_inferior_stop_soon): Pass down target.
3741 (wait_one): Rename to ...
3742 (poll_one_curr_target): ... this.
3743 (struct wait_one_event): New.
3744 (wait_one): New.
3745 (stop_all_threads): Adjust.
3746 (handle_no_resumed, handle_inferior_event): Adjust to consider the
3747 event's target.
3748 (switch_back_to_stepped_thread): Also consider target.
3749 (print_stop_event): Update.
3750 (normal_stop): Update. Also consider the resume target.
3751 * infrun.h (wait_for_inferior): Remove declaration.
3752 (user_visible_resume_target): New declaration.
3753 (get_last_target_status, set_last_target_status): New
3754 process_stratum_target parameter.
3755 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
3756 process_stratum_target parameter, and use it.
3757 (clear_inline_frame_state (thread_info*)): New.
3758 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
3759 process_stratum_target parameter.
3760 (clear_inline_frame_state (thread_info*)): Declare.
3761 * linux-fork.c (delete_checkpoint_command): Pass target down to
3762 find_thread_ptid.
3763 (checkpoint_command): Adjust.
3764 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
3765 instead of just tweaking inferior_ptid.
3766 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
3767 (exit_lwp): Pass target down to find_thread_ptid.
3768 (attach_proc_task_lwp_callback): Pass target down to
3769 add_thread/set_running/set_executing.
3770 (linux_nat_target::attach): Pass target down to
3771 thread_change_ptid.
3772 (get_detach_signal): Pass target down to find_thread_ptid.
3773 Consider last target status's target.
3774 (linux_resume_one_lwp_throw, resume_lwp)
3775 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
3776 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
3777 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
3778 (linux_nat_target::async_wait_fd): New.
3779 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
3780 target down.
3781 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
3782 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
3783 * linux-thread-db.c (struct thread_db_info::process_target): New
3784 field.
3785 (add_thread_db_info): Save target.
3786 (get_thread_db_info): New process_stratum_target parameter. Also
3787 match target.
3788 (delete_thread_db_info): New process_stratum_target parameter.
3789 Also match target.
3790 (thread_from_lwp): Adjust to pass down target.
3791 (thread_db_notice_clone): Pass down target.
3792 (check_thread_db_callback): Pass down target.
3793 (try_thread_db_load_1): Always push the thread_db target.
3794 (try_thread_db_load, record_thread): Pass target down.
3795 (thread_db_target::detach): Pass target down. Always unpush the
3796 thread_db target.
3797 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
3798 target down. Always unpush the thread_db target.
3799 (find_new_threads_callback, thread_db_find_new_threads_2)
3800 (thread_db_target::update_thread_list): Pass target down.
3801 (thread_db_target::pid_to_str): Pass current inferior down.
3802 (thread_db_target::get_thread_local_address): Pass target down.
3803 (thread_db_target::resume, maintenance_check_libthread_db): Pass
3804 target down.
3805 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
3806 * procfs.c (procfs_target::procfs_init_inferior): Declare.
3807 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
3808 (procfs_init_inferior): Rename to ...
3809 (procfs_target::procfs_init_inferior): ... this and adjust.
3810 (procfs_target::create_inferior, procfs_notice_thread)
3811 (procfs_do_thread_registers): Adjust.
3812 * ppc-fbsd-tdep.c: Include "inferior.h".
3813 (ppcfbsd_get_thread_local_address): Pass down target.
3814 * proc-service.c (ps_xfer_memory): Switch current inferior and
3815 program space as well.
3816 (get_ps_regcache): Pass target down.
3817 * process-stratum-target.c
3818 (process_stratum_target::thread_address_space)
3819 (process_stratum_target::thread_architecture): Pass target down.
3820 * process-stratum-target.h
3821 (process_stratum_target::threads_executing): New field.
3822 (as_process_stratum_target): New.
3823 * ravenscar-thread.c
3824 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
3825 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
3826 down.
3827 * record-btrace.c (record_btrace_target::info_record): Adjust.
3828 (record_btrace_target::record_method)
3829 (record_btrace_target::record_is_replaying)
3830 (record_btrace_target::fetch_registers)
3831 (get_thread_current_frame_id, record_btrace_target::resume)
3832 (record_btrace_target::wait, record_btrace_target::stop): Pass
3833 target down.
3834 * record-full.c (record_full_wait_1): Switch to event thread.
3835 Pass target down.
3836 * regcache.c (regcache::regcache)
3837 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
3838 process_stratum_target parameter and handle it.
3839 (current_thread_target): New global.
3840 (get_thread_regcache): Add process_stratum_target parameter and
3841 handle it. Switch inferior before calling target method.
3842 (get_thread_regcache): Pass target down.
3843 (get_thread_regcache_for_ptid): Pass target down.
3844 (registers_changed_ptid): Add process_stratum_target parameter and
3845 handle it.
3846 (registers_changed_thread, registers_changed): Pass target down.
3847 (test_get_thread_arch_aspace_regcache): New.
3848 (current_regcache_test): Define a couple local test_target_ops
3849 instances and use them for testing.
3850 (readwrite_regcache): Pass process_stratum_target parameter.
3851 (cooked_read_test, cooked_write_test): Pass mock_target down.
3852 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
3853 (get_thread_arch_aspace_regcache): Add process_stratum_target
3854 parameter.
3855 (regcache::target): New method.
3856 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
3857 (regcache::registers_changed_ptid): Add process_stratum_target
3858 parameter.
3859 (regcache::m_target): New field.
3860 (registers_changed_ptid): Add process_stratum_target parameter.
3861 * remote.c (remote_state::supports_vCont_probed): New field.
3862 (remote_target::async_wait_fd): New method.
3863 (remote_unpush_and_throw): Add remote_target parameter.
3864 (get_current_remote_target): Adjust.
3865 (remote_target::remote_add_inferior): Push target.
3866 (remote_target::remote_add_thread)
3867 (remote_target::remote_notice_new_inferior)
3868 (get_remote_thread_info): Pass target down.
3869 (remote_target::update_thread_list): Skip threads of inferiors
3870 bound to other targets. (remote_target::close): Don't discard
3871 inferiors. (remote_target::add_current_inferior_and_thread)
3872 (remote_target::process_initial_stop_replies)
3873 (remote_target::start_remote)
3874 (remote_target::remote_serial_quit_handler): Pass down target.
3875 (remote_target::remote_unpush_target): New remote_target
3876 parameter. Unpush the target from all inferiors.
3877 (remote_target::remote_unpush_and_throw): New remote_target
3878 parameter. Pass it down.
3879 (remote_target::open_1): Check whether the current inferior has
3880 execution instead of checking whether any inferior is live. Pass
3881 target down.
3882 (remote_target::remote_detach_1): Pass down target. Use
3883 remote_unpush_target.
3884 (extended_remote_target::attach): Pass down target.
3885 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
3886 (remote_target::append_resumption): Pass down target.
3887 (remote_target::append_pending_thread_resumptions)
3888 (remote_target::remote_resume_with_hc, remote_target::resume)
3889 (remote_target::commit_resume): Pass down target.
3890 (remote_target::remote_stop_ns): Check supports_vCont_probed.
3891 (remote_target::interrupt_query)
3892 (remote_target::remove_new_fork_children)
3893 (remote_target::check_pending_events_prevent_wildcard_vcont)
3894 (remote_target::remote_parse_stop_reply)
3895 (remote_target::process_stop_reply): Pass down target.
3896 (first_remote_resumed_thread): New remote_target parameter. Pass
3897 it down.
3898 (remote_target::wait_as): Pass down target.
3899 (unpush_and_perror): New remote_target parameter. Pass it down.
3900 (remote_target::readchar, remote_target::remote_serial_write)
3901 (remote_target::getpkt_or_notif_sane_1)
3902 (remote_target::kill_new_fork_children, remote_target::kill): Pass
3903 down target.
3904 (remote_target::mourn_inferior): Pass down target. Use
3905 remote_unpush_target.
3906 (remote_target::core_of_thread)
3907 (remote_target::remote_btrace_maybe_reopen): Pass down target.
3908 (remote_target::pid_to_exec_file)
3909 (remote_target::thread_handle_to_thread_info): Pass down target.
3910 (remote_target::async_wait_fd): New.
3911 * riscv-fbsd-tdep.c: Include "inferior.h".
3912 (riscv_fbsd_get_thread_local_address): Pass down target.
3913 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
3914 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
3915 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
3916 Adjust.
3917 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
3918 * solib-svr4.c (enable_break): Pass down target.
3919 * spu-multiarch.c (parse_spufs_run): Pass down target.
3920 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
3921 * target-delegates.c: Regenerate.
3922 * target.c (g_target_stack): Delete.
3923 (current_top_target): Return the current inferior's top target.
3924 (target_has_execution_1): Refer to the passed-in inferior's top
3925 target.
3926 (target_supports_terminal_ours): Check whether the initial
3927 inferior was already created.
3928 (decref_target): New.
3929 (target_stack::push): Incref/decref the target.
3930 (push_target, push_target, unpush_target): Adjust.
3931 (target_stack::unpush): Defref target.
3932 (target_is_pushed): Return bool. Adjust to refer to the current
3933 inferior's target stack.
3934 (dispose_inferior): Delete, and inline parts ...
3935 (target_preopen): ... here. Only dispose of the current inferior.
3936 (target_detach): Hold strong target reference while detaching.
3937 Pass target down.
3938 (target_thread_name): Add assertion.
3939 (target_resume): Pass down target.
3940 (target_ops::beneath, find_target_at): Adjust to refer to the
3941 current inferior's target stack.
3942 (get_dummy_target): New.
3943 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
3944 has a thread running.
3945 (initialize_targets): Rename to ...
3946 (_initialize_target): ... this.
3947 * target.h: Include "gdbsupport/refcounted-object.h".
3948 (struct target_ops): Inherit refcounted_object.
3949 (target_ops::shortname, target_ops::longname): Make const.
3950 (target_ops::async_wait_fd): New method.
3951 (decref_target): Declare.
3952 (struct target_ops_ref_policy): New.
3953 (target_ops_ref): New typedef.
3954 (get_dummy_target): Declare function.
3955 (target_is_pushed): Return bool.
3956 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
3957 (all_matching_threads_iterator::all_matching_threads_iterator):
3958 Handle filter target.
3959 * thread-iter.h (struct all_matching_threads_iterator, struct
3960 all_matching_threads_range, class all_non_exited_threads_range):
3961 Filter by target too. Remove explicit.
3962 * thread.c (threads_executing): Delete.
3963 (inferior_thread): Pass down current inferior.
3964 (clear_thread_inferior_resources): Pass down thread pointer
3965 instead of ptid_t.
3966 (add_thread_silent, add_thread_with_info, add_thread): Add
3967 process_stratum_target parameter. Use it for thread and inferior
3968 searches.
3969 (is_current_thread): New.
3970 (thread_info::deletable): Use it.
3971 (find_thread_ptid, thread_count, in_thread_list)
3972 (thread_change_ptid, set_resumed, set_running): New
3973 process_stratum_target parameter. Pass it down.
3974 (set_executing): New process_stratum_target parameter. Pass it
3975 down. Adjust reference to 'threads_executing'.
3976 (threads_are_executing): New process_stratum_target parameter.
3977 Adjust reference to 'threads_executing'.
3978 (set_stop_requested, finish_thread_state): New
3979 process_stratum_target parameter. Pass it down.
3980 (switch_to_thread): Also match inferior.
3981 (switch_to_thread): New process_stratum_target parameter. Pass it
3982 down.
3983 (update_threads_executing): Reimplement.
3984 * top.c (quit_force): Pop targets from all inferior.
3985 (gdb_init): Don't call initialize_targets.
3986 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
3987 Declare.
3988 (windows_add_thread, windows_delete_thread): Adjust.
3989 (get_windows_debug_event): Rename to ...
3990 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
3991 * tracefile-tfile.c (tfile_target_open): Pass down target.
3992 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
3993 Forward declare.
3994 (switch_to_thread): Add process_stratum_target parameter.
3995 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
3996 parameter. Use it.
3997 (mi_on_resume): Pass target down.
3998 * nat/fork-inferior.c (startup_inferior): Add
3999 process_stratum_target parameter. Pass it down.
4000 * nat/fork-inferior.h (startup_inferior): Add
4001 process_stratum_target parameter.
4002 * python/py-threadevent.c (py_get_event_thread): Pass target down.
4003
75c6c844
PA
40042020-01-10 Pedro Alves <palves@redhat.com>
4005
4006 * remote.c (remote_target::start_remote): Don't set inferior_ptid
4007 directly. Instead find the first thread in the thread list and
4008 use switch_to_thread.
4009
78f2c40a
PA
40102020-01-10 Pedro Alves <palves@redhat.com>
4011
4012 * remote.c (remote_target::remote_add_inferior): Don't bind a
4013 process to the current inferior if the current inferior is already
4014 bound to a process.
4015
e7af6c70
TBA
40162020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4017 Pedro Alves <palves@redhat.com>
4018
4019 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
4020 If no process is specified, return null_ptid instead of
4021 inferior_ptid.
4022 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
4023 TARGET_WAITKIND_SIGNALLED with no pid.
4024
31ba933e
PA
40252020-01-10 Pedro Alves <palves@redhat.com>
4026
4027 * remote.c (first_remote_resumed_thread): New.
4028 (remote_target::wait_as): Use it as default event_ptid instead of
4029 inferior_ptid.
4030
735fc2ca
PA
40312020-01-10 Pedro Alves <palves@redhat.com>
4032
4033 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
4034
c17e02e1
PA
40352020-01-10 Pedro Alves <palves@redhat.com>
4036
4037 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
4038 not -1.
4039
ab1ddbcf
PA
40402020-01-10 Pedro Alves <palves@redhat.com>
4041
4042 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
4043 ptid to get_last_target_status.
4044 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
4045 ptid to get_last_target_status.
4046 * infcmd.c (continue_command): Don't pass a target_waitstatus to
4047 get_last_target_status.
4048 (info_program_command): Don't pass a target_waitstatus to
4049 get_last_target_status.
4050 * infrun.c (init_wait_for_inferior): Use
4051 nullify_last_target_wait_ptid.
4052 (get_last_target_status): Handle nullptr arguments.
4053 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
4054 (print_stop_event): Don't pass a ptid to get_last_target_status.
4055 (normal_stop): Don't pass a ptid to get_last_target_status.
4056 * infrun.h (get_last_target_status, set_last_target_status): Move
4057 comments here and update.
4058 (nullify_last_target_wait_ptid): Declare.
4059 * linux-fork.c (fork_load_infrun_state): Remove local extern
4060 declaration of nullify_last_target_wait_ptid.
4061 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
4062 to get_last_target_status.
4063
f3f8ece4
PA
40642020-01-10 Pedro Alves <palves@redhat.com>
4065
4066 * gdbthread.h (scoped_restore_current_thread)
4067 <dont_restore, restore, m_dont_restore>: Declare.
4068 * thread.c (thread_alive): Add assertion. Return bool.
4069 (switch_to_thread_if_alive): New.
4070 (prune_threads): Switch inferior/thread.
4071 (print_thread_info_1): Switch thread before calling target methods.
4072 (scoped_restore_current_thread::restore): New, factored out from
4073 ...
4074 (scoped_restore_current_thread::~scoped_restore_current_thread):
4075 ... this.
4076 (scoped_restore_current_thread::scoped_restore_current_thread):
4077 Add assertion.
4078 (thread_apply_all_command, thread_select): Use
4079 switch_to_thread_if_alive.
4080 * infrun.c (proceed, restart_threads, handle_signal_stop)
4081 (switch_back_to_stepped_thread): Switch current thread before
4082 calling target methods.
4083
db2d40f7
PA
40842020-01-10 Pedro Alves <palves@redhat.com>
4085
4086 * inferior.c (switch_to_inferior_no_thread): New function,
4087 factored out from ...
4088 (inferior_command): ... here.
4089 * inferior.h (switch_to_inferior_no_thread): Declare.
4090 * mi/mi-main.c (run_one_inferior): Use
4091 switch_to_inferior_no_thread.
4092
bd420a2d
PA
40932020-01-10 Pedro Alves <palves@redhat.com>
4094
4095 * infcmd.c (kill_command): Remove dead code.
4096
ddf5db90
PA
40972020-01-10 Pedro Alves <palves@redhat.com>
4098
4099 * remote.c (remote_target::mourn_inferior): No longer check
4100 whether the target is running.
4101
5018ce90
PA
41022020-01-10 Pedro Alves <palves@redhat.com>
4103
4104 * corelow.c (core_target::has_execution): Change parameter type to
4105 inferior pointer.
4106 * inferior.c (number_of_live_inferiors): Use
4107 inferior::has_execution instead of target_has_execution_1.
4108 * inferior.h (inferior::has_execution): New.
4109 * linux-thread-db.c (thread_db_target::update_thread_list): Use
4110 inferior::has_execution instead of target_has_execution_1.
4111 * process-stratum-target.c
4112 (process_stratum_target::has_execution): Change parameter type to
4113 inferior pointer. Check the inferior's PID instead of
4114 inferior_ptid.
4115 * process-stratum-target.h
4116 (process_stratum_target::has_execution): Change parameter type to
4117 inferior pointer.
4118 * record-full.c (record_full_core_target::has_execution): Change
4119 parameter type to inferior pointer.
4120 * target.c (target_has_execution_1): Change parameter type to
4121 inferior pointer.
4122 (target_has_execution_current): Adjust.
4123 * target.h (target_ops::has_execution): Change parameter type to
4124 inferior pointer.
4125 (target_has_execution_1): Change parameter type to inferior
4126 pointer. Change return type to bool.
4127 * tracefile.h (tracefile_target::has_execution): Change parameter
4128 type to inferior pointer.
4129
74375d18
PA
41302020-01-10 Pedro Alves <palves@redhat.com>
4131
4132 * exceptions.c (print_flush): Remove current_top_target() check.
4133
acdf84a6
PA
41342020-01-10 Pedro Alves <palves@redhat.com>
4135
4136 * remote.c (show_remote_exec_file): Show the current inferior's
4137 exec-file instead of the command variable's value.
4138
ec506636
PA
41392020-01-10 Pedro Alves <palves@redhat.com>
4140
4141 * record-full.c (record_full_resume_ptid): New global.
4142 (record_full_target::resume): Set it.
4143 (record_full_wait_1): Use record_full_resume_ptid instead of
4144 inferior_ptid.
4145
873657b9
PA
41462020-01-10 Pedro Alves <palves@redhat.com>
4147
4148 * gdbthread.h (scoped_restore_current_thread)
4149 <dont_restore, restore, m_dont_restore>: Declare.
4150 * thread.c (thread_alive): Add assertion. Return bool.
4151 (switch_to_thread_if_alive): New.
4152 (prune_threads): Switch inferior/thread.
4153 (print_thread_info_1): Switch thread before calling target methods.
4154 (scoped_restore_current_thread::restore): New, factored out from
4155 ...
4156 (scoped_restore_current_thread::~scoped_restore_current_thread):
4157 ... this.
4158 (scoped_restore_current_thread::scoped_restore_current_thread):
4159 Add assertion.
4160 (thread_apply_all_command, thread_select): Use
4161 switch_to_thread_if_alive.
4162
7f0ae84c
GB
41632020-01-10 George Barrett <bob@bob131.so>
4164
4165 * stap-probe.c (stap_modify_semaphore): Don't check for null
4166 semaphores.
4167 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
4168 for null semaphores.
4169
f5a7c406
AB
41702020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
4171
4172 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
4173 all source windows, and maintain horizontal scroll status while
4174 doing so.
4175
9ae6bf64
TT
41762020-01-09 Tom Tromey <tom@tromey.com>
4177
4178 PR tui/18932:
4179 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
4180 update_source_window, not print_source_lines.
4181
b2efe70c
AB
41822020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
4183
4184 * tui/tui.c (tui_enable): Register tui hooks after calling
4185 tui_display_main.
4186
5f23a082
CB
41872020-01-09 Christian Biesinger <cbiesinger@google.com>
4188
4189 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
4190
3061113b
SM
41912020-01-08 Simon Marchi <simon.marchi@efficios.com>
4192
4193 * thread.c (print_thread_info_1): Fix indentation.
4194
57d75002
CB
41952020-01-09 Christian Biesinger <cbiesinger@google.com>
4196
4197 * symtab.c (general_symbol_info::compute_and_set_names): Move the
4198 unique_xmalloc_ptr outside the if to always free the demangled name.
4199
6a053cb1
TT
42002020-01-08 Tom Tromey <tromey@adacore.com>
4201
4202 * xcoffread.c (enter_line_range, read_xcoff_symtab)
4203 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
4204 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
4205 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
4206 Remove.
4207 (section_offsets): New typedef.
4208 * symtab.c (fixup_section, get_msymbol_address): Update.
4209 * symmisc.c (dump_msymbols): Update.
4210 * symfile.h (relative_addr_info_to_section_offsets)
4211 (symfile_map_offsets_to_segments): Update.
4212 * symfile.c (build_section_addr_info_from_objfile)
4213 (init_objfile_sect_indices): Update.
4214 (struct place_section_arg): Change type of "offsets".
4215 (place_section): Update.
4216 (relative_addr_info_to_section_offsets): Change type of
4217 "section_offsets". Remove "num_sections" parameter.
4218 (default_symfile_offsets, syms_from_objfile_1)
4219 (set_objfile_default_section_offset): Update.
4220 (reread_symbols): No need to preserve section offsets by hand.
4221 (symfile_map_offsets_to_segments): Change type of "offsets".
4222 * stap-probe.c (relocate_address): Update.
4223 * stabsread.h (process_one_symbol): Update.
4224 * solib-target.c (struct lm_info_target) <offsets>: Change type.
4225 (solib_target_relocate_section_addresses): Update.
4226 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
4227 Update.
4228 * solib-frv.c (frv_relocate_main_executable): Update.
4229 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
4230 * solib-aix.c (solib_aix_get_section_offsets): Change return
4231 type.
4232 (solib_aix_solib_create_inferior_hook): Update.
4233 * remote.c (remote_target::get_offsets): Update.
4234 * psymtab.c (find_pc_sect_psymtab): Update.
4235 * psympriv.h (struct partial_symbol) <address, text_low,
4236 text_high>: Update.
4237 * objfiles.h (obj_section_offset): Update.
4238 (struct objfile) <section_offsets>: Change type.
4239 <num_sections>: Remove.
4240 (objfile_relocate): Update.
4241 * objfiles.c (entry_point_address_query): Update
4242 (relocate_one_symbol): Change type of "section_offsets".
4243 (objfile_relocate1, objfile_relocate1): Change type of
4244 "new_offsets".
4245 (objfile_rebase1): Update.
4246 * mipsread.c (mipscoff_symfile_read): Update.
4247 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
4248 parameter.
4249 * mdebugread.c (parse_symbol): Change type of "section_offsets".
4250 (parse_external, psymtab_to_symtab_1): Update.
4251 * machoread.c (macho_symfile_offsets): Update.
4252 * ia64-tdep.c (ia64_find_unwind_table): Update.
4253 * hppa-tdep.c (read_unwind_info): Update.
4254 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
4255 * dwarf2read.c (create_addrmap_from_index)
4256 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4257 (process_psymtab_comp_unit_reader, add_partial_symbol)
4258 (add_partial_subprogram, process_full_comp_unit)
4259 (read_file_scope, read_func_scope, read_lexical_block_scope)
4260 (read_call_site_scope, dwarf2_rnglists_process)
4261 (dwarf2_ranges_process, dwarf2_ranges_read)
4262 (dwarf_decode_lines_1, var_decode_location, new_symbol)
4263 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
4264 Update.
4265 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
4266 Update.
4267 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
4268 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
4269 (process_one_symbol): Change type of "section_offsets".
4270 * ctfread.c (get_objfile_text_range): Update.
4271 * coffread.c (coff_symtab_read, enter_linenos)
4272 (process_coff_symbol): Update.
4273 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4274 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
4275
456e800a
TT
42762020-01-08 Tom Tromey <tromey@adacore.com>
4277
4278 * dwarf2read.c (parse_macro_definition): Use std::string.
4279 (parse_macro_definition): Likewise.
4280
6dfa2fc2
TT
42812020-01-08 Tom Tromey <tromey@adacore.com>
4282
4283 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
4284 (ATTR_ALLOC_CHUNK): Remove.
4285
421d1616
TT
42862020-01-08 Tom Tromey <tromey@adacore.com>
4287
4288 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
4289
43816ebc
TT
42902020-01-08 Tom Tromey <tromey@adacore.com>
4291
4292 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
4293 (dwarf2_compute_name, open_dwo_file): Likewise.
4294 (process_enumeration_scope): Use std::vector.
4295 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
4296 (partial_die_info::fixup, dwarf2_start_subfile)
4297 (guess_full_die_structure_name, dwarf2_name): Likewise.
4298 (determine_prefix): Update.
4299 (guess_full_die_structure_name): Make return type const.
4300 (partial_die_full_name): Return unique_xmalloc_ptr.
4301 (DW_FIELD_ALLOC_CHUNK): Remove.
4302
4212d509
TT
43032020-01-07 Tom Tromey <tromey@adacore.com>
4304
4305 PR build/24937:
4306 * stap-probe.c (class stap_static_probe_ops): Add constructor.
4307
06a6207a
JT
43082020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
4309
4310 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
4311
153d79c4
AB
43122020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
4313
4314 * stack.c (print_frame_info): Move disassemble_next_line code
4315 inside source_print block.
4316
66182876
EZ
43172020-01-06 Eli Zaretskii <eliz@gnu.org>
4318
4319 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
4320 gdb/signals.h, as we are now using native signal symbols.
4321
cbfa8581
SV
43222020-01-06 Shahab Vahedi <shahab@synopsys.com>
4323
4324 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
4325 overflow by an early check of content vs threshold.
4326 * tui/tui-source.c (tui_source_window::line_is_displayed):
4327 Likewise.
4328
3f602821
EZ
43292020-01-06 Eli Zaretskii <eliz@gnu.org>
4330
4331 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
4332
a08c904d
JT
43332020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
4334
4335 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
4336 export table if no section contains it's RVA.
4337
89a65580
EZ
43382020-01-06 Eli Zaretskii <eliz@gnu.org>
4339
4340 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
4341
8b7fcda2
HD
43422020-01-06 Hannes Domani <ssbssa@yahoo.de>
4343
4344 * source.c (print_source_lines_base): Set last_line_listed.
4345
a61b4f69
SV
43462020-01-06 Shahab Vahedi <shahab@synopsys.com>
4347
4348 * tui/tui-disasm.c: Remove trailing spaces.
4349
559e7e50
EZ
43502020-01-06 Eli Zaretskii <eliz@gnu.org>
4351 Pedro Alves <palves@redhat.com>
4352
4353 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
4354 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
4355 (windows_gdb_signal_to_target): New function, uses the above
4356 enumeration to convert GDB internal signal codes to equivalent
4357 Windows codes.
4358 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
4359 * windows-nat.c: Include "gdb_wait.h".
4360 (get_windows_debug_event): Extract the fatal exception from the
4361 exit status and convert to the equivalent Posix signal number.
4362 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
4363 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
4364 * gdbsupport/gdb_wait.c: New file, implements
4365 windows_status_to_termsig.
4366 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
4367 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
4368
f2302a34
AB
43692020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
4370
4371 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
4372 show_layout.
4373
6a5206eb
LM
43742020-01-05 Luis Machado <luis.machado@linaro.org>
4375
4376 * aarch64-linux-nat.c
4377 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
4378 and bfd_mach_aarch64.
4379
6ec1d75e
PW
43802020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4381
4382 * ui-file.c (stdio_file::can_emit_style_escape)
4383 (tee_file::can_emit_style_escape): Ensure style is used also on
4384 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
4385 to gdb_stdout.
4386 * main.c (set_gdb_data_directory): Use file style to output the
4387 warning that the given pathname is not a directory.
4388 * top.c (show_history_filename, gdb_safe_append_history)
4389 (show_gdb_datadir): Use file style.
4390
44f81a76
HD
43912020-01-03 Hannes Domani <ssbssa@yahoo.de>
4392
4393 * solib-target.c (struct lm_info_target):
4394 Change offsets to be a unique_xmalloc_ptr.
4395 (solib_target_relocate_section_addresses): Update.
4396
25057eb0
HD
43972020-01-03 Hannes Domani <ssbssa@yahoo.de>
4398
4399 * windows-nat.c (windows_clear_solib): Free so_list linked list.
4400
6e2118f5
BE
44012020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4402
4403 * MAINTAINERS (Write After Approval): Add myself.
4404
8133c7dc
LM
44052020-01-02 Luis Machado <luis.machado@linaro.org>
4406
4407 * proc-service.c (get_ps_regcache): Remove reference to obsolete
4408 Cell BE architecture.
4409 * target.h (struct target_ops) <thread_architecture>: Likewise.
4410
48189bec
HD
44112020-01-01 Hannes Domani <ssbssa@yahoo.de>
4412
4413 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4414
ead1063b
HD
44152020-01-01 Hannes Domani <ssbssa@yahoo.de>
4416
4417 * MAINTAINERS (Write After Approval): Add myself.
4418
e5d78223
JB
44192020-01-01 Joel Brobecker <brobecker@adacore.com>
4420
4421 * gdbarch.sh: Update copyright year range of generated files.
4422
b811d2c2
JB
44232020-01-01 Joel Brobecker <brobecker@adacore.com>
4424
4425 Update copyright year range in all GDB files.
4426
5f4def5c
JB
44272020-01-01 Joel Brobecker <brobecker@adacore.com>
4428
4429 * copyright.py: Convert to Python 3.
4430
51fd4002
JB
44312020-01-01 Joel Brobecker <brobecker@adacore.com>
4432
4433 * copyright.py: Adapt after move of gnulib directory from gdb
4434 directory to toplevel directory.
4435
5fb651f2
JB
44362020-01-01 Joel Brobecker <brobecker@adacore.com>
4437
4438 * copyright.py (main): Exit if run from the wrong directory.
4439
5dd8bf88
JB
44402020-01-01 Joel Brobecker <brobecker@adacore.com>
4441
4442 * top.c (print_gdb_version): Change copyright year to 2020.
4443
9f71dacb 44442020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 4445
9f71dacb 4446 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 4447
9f71dacb 4448For older changes see ChangeLog-2019.
c906108c
SS
4449\f
4450Local Variables:
4451mode: change-log
4452left-margin: 8
4453fill-column: 74
4454version-control: never
57da7796 4455coding: utf-8
c906108c 4456End:
This page took 3.370564 seconds and 4 git commands to generate.