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