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