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