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