gdb/fortran: print function arguments when printing function type
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
2 Chris January <chris.january@arm.com>
3
4 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
5 function arguments.
6
72019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * f-lang.c (build_fortran_types): Change name of void type to
10 lower case.
11 * f-typeprint.c (f_type_print_base): Print the name of the void
12 type, rather than a fixed string.
13 * f-valprint.c (f_decorations): Use lower case void string.
14
152019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
16 Chris January <chris.january@arm.com>
17
18 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
19 types for Fortran.
20
212019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
22 Chris January <chris.january@arm.com>
23 David Lecomber <david.lecomber@arm.com>
24
25 * f-exp.y (BINOP_INTRINSIC): New token.
26 (exp): New parser rule handling BINOP_INTRINSIC.
27 (f77_keywords): Add new builtin procedures.
28 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
29 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
30 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
31 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
32 (print_unop_subexp_f): New function.
33 (print_binop_subexp_f): New function.
34 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
35 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
36 (dump_subexp_body_f): Likewise.
37 (operator_check_f): Likewise.
38 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
39 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
40
412019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
44 UNOP_KIND.
45 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
46 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
47 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
48 (operator_length_f): New fuction.
49 (print_subexp_f): New function.
50 (op_name_f): New function.
51 (dump_subexp_body_f): New function.
52 (operator_check_f): New function.
53 (exp_descriptor_f): Replace standard expression handling functions
54 with new functions.
55 * gdb/fortran-operator.def: New file.
56 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
57 * gdb/std-operator.def: Remove UNOP_KIND.
58
592019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
60
61 * std-operator.def: Remove unbalanced, stray double quote
62 character.
63
642019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
65 Chris January <chris.january@arm.com>
66 Daniel Everett <daniel.everett@arm.com>
67 Nick Forrington <nick.forrington@arm.com>
68 Richard Bunt <richard.bunt@arm.com>
69
70 * cp-valprint.c (cp_print_value_fields): Allow an additional level
71 of depth when printing anonymous structs or unions.
72 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
73 Don't print either the top-level value, or the children if the
74 max-depth is exceeded.
75 (ppscm_print_children): When printing the key of a map, allow one
76 extra level of depth.
77 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
78 print either the top-level value, or the children if the max-depth
79 is exceeded.
80 (print_children): When printing the key of a map, allow one extra
81 level of depth.
82 * python/py-value.c (valpy_format_string): Add max_depth keyword.
83 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
84 (user_print_options): Initialise max_depth field.
85 (val_print_scalar_or_string_type_p): New function.
86 (val_print): Check to see if the max depth has been reached.
87 (val_print_check_max_depth): Define new function.
88 (show_print_max_depth): New function.
89 (_initialize_valprint): Add 'print max-depth' option.
90 * valprint.h (struct value_print_options) <max_depth>: New field.
91 (val_print_check_max_depth): Declare new function.
92 * NEWS: Document new feature.
93
942019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
95
96 * ada-lang.c (ada_language_defn): Initialise new field.
97 * c-lang.c (c_is_string_type_p): New function.
98 (c_language_defn): Initialise new field.
99 (cplus_language_defn): Initialise new field.
100 (asm_language_defn): Initialise new field.
101 (minimal_language_defn): Initialise new field.
102 * c-lang.h (c_is_string_type_p): Declare new function.
103 * d-lang.c (d_language_defn): Initialise new field.
104 * f-lang.c (f_is_string_type_p): New function.
105 (f_language_defn): Initialise new field.
106 * go-lang.c (go_is_string_type_p): New function.
107 (go_language_defn): Initialise new field.
108 * language.c (default_is_string_type_p): New function.
109 (unknown_language_defn): Initialise new field.
110 (auto_language_defn): Initialise new field.
111 * language.h (struct language_defn) <la_is_string_type_p>: New
112 member variable.
113 (default_is_string_type_p): Declare new function.
114 * m2-lang.c (m2_language_defn): Initialise new field.
115 * objc-lang.c (objc_language_defn): Initialise new field.
116 * opencl-lang.c (opencl_language_defn): Initialise new field.
117 * p-lang.c (pascal_is_string_type_p): New function.
118 (pascal_language_defn): Initialise new field.
119 * rust-lang.c (rust_is_string_type_p): New function.
120 (rust_language_defn): Initialise new field.
121
1222019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
125 New field.
126 * ada-lang.c (ada_language_defn): Initialise new field.
127 * c-lang.c (c_language_defn): Likewise.
128 (cplus_language_defn): Likewise.
129 (asm_language_defn): Likewise.
130 (minimal_language_defn): Likewise.
131 * d-lang.c (d_language_defn): Likewise.
132 * f-lang.c (f_language_defn): Likewise.
133 * go-lang.c (go_language_defn): Likewise.
134 * language.c (unknown_language_defn): Likewise.
135 (auto_language_defn): Likewise.
136 * m2-lang.c (m2_language_defn): Likewise.
137 * objc-lang.c (objc_language_defn): Likewise.
138 * opencl-lang.c (opencl_language_defn): Likewise.
139 * p-lang.c (pascal_language_defn): Likewise.
140 * rust-lang.c (rust_language_defn): Likewise.
141
1422019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
143
144 * ada-lang.c (ada_is_character_type): Change return type to bool.
145 (ada_is_string_type): Likewise.
146 * ada-lang.h (ada_is_character_type): Update declaration
147 (ada_is_string_type): Likewise.
148
1492019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
150
151 Support style in 'frame|thread apply'
152
153 * gdbcmd.h (execute_command_to_string): New term_out parameter.
154 * record.c (record_start, record_stop): Update callers of
155 execute_command_to_string with false.
156 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
157 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
158 methods.
159 (class string_file): New constructor with term_out parameter.
160 Override methods term_out and can_emit_style_escape. New member
161 term_out.
162 (class stdio_file): Override can_emit_style_escape.
163 (class tee_file): Override term_out and can_emit_style_escape.
164 * utils.h (can_emit_style_escape): Remove.
165 * utils.c (can_emit_style_escape): Likewise.
166 Update all callers of can_emit_style_escape (SOMESTREAM) to
167 SOMESTREAM->can_emit_style_escape.
168 * source-cache.c (source_cache::get_source_lines): Likewise.
169 * stack.c (frame_apply_command_count): Call execute_command_to_string
170 passing the term_out characteristic of the current gdb_stdout.
171 * thread.c (thr_try_catch_cmd): Likewise.
172 * top.c (execute_command_to_string): pass term_out parameter
173 to construct the string_file for the command output.
174 * ui-file.c (term_cli_styling): New function (most code moved
175 from utils.c can_emit_style_escape).
176 (string_file::string_file, string_file::can_emit_style_escape,
177 stdio_file::can_emit_style_escape, tee_file::term_out,
178 tee_file::can_emit_style_escape): New functions.
179
1802019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
181
182 * NEWS: Mention the new set|show may-call-functions.
183 * infcall.c (may_call_functions_p): New variable.
184 (show_may_call_functions_p): New function.
185 (call_function_by_hand_dummy): Throws an error if not
186 may-call-functions.
187 (_initialize_infcall): Call add_setshow_boolean_cmd for
188 may-call-functions.
189
1902019-04-25 Keith Seitz <keiths@redhat.com>
191
192 PR c++/24367
193 * cp-support.c (inspect_type): Don't attempt substitutions
194 of symbol with the same name.
195
1962019-04-25 Tom Tromey <tromey@adacore.com>
197
198 PR gdb/24475:
199 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
200 static.
201
2022019-04-25 Tom Tromey <tromey@adacore.com>
203
204 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
205 rvalue reference.
206 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
207 (gdb_xml_parser::parse): Use std::move.
208 * python/python-internal.h (gdbpy_convert_exception): Take a const
209 reference.
210 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
211 std::move.
212 * python/py-utils.c (gdbpy_convert_exception): Take a const
213 reference.
214 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
215 Use std::move.
216 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
217 Use std::move.
218 * mi/mi-main.c (mi_print_exception): Take a const reference.
219 * main.c (handle_command_errors): Take a const reference.
220 * linespec.c (parse_linespec): Use std::move.
221 * infcall.c (run_inferior_call): Use std::move.
222 (call_function_by_hand_dummy): Use std::move.
223 * exec.c (try_open_exec_file): Use std::move.
224 * exceptions.h (exception_print, exception_fprintf)
225 (exception_print_same): Update.
226 * exceptions.c (print_exception, exception_print)
227 (exception_fprintf, exception_print_same): Change parameters to
228 const reference.
229 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
230 * common/new-op.c: Use std::move.
231 * common/common-exceptions.h (struct gdb_exception): Add move
232 constructor.
233 (struct gdb_exception_error, struct gdb_exception_quit, struct
234 gdb_quit_bad_alloc): Change constructor to move constructor.
235 (throw_exception): Change parameter to rvalue reference.
236 * common/common-exceptions.c (throw_exception): Take rvalue
237 reference.
238 * cli/cli-interp.c (safe_execute_command): Use std::move.
239 * breakpoint.c (insert_bp_location, location_to_sals): Use
240 std::move.
241
2422019-04-25 Tom Tromey <tromey@adacore.com>
243
244 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
245 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
246 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
247 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
248 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
249 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
250 guile/scm-value.c: Use unpack.
251 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
252 gdbscm_gdb_exception.
253 (gdbscm_throw_gdb_exception): Likewise.
254 (struct gdbscm_gdb_exception): New.
255 (unpack): New function.
256 (gdbscm_wrap): Use unpack.
257
2582019-04-25 Tom Tromey <tromey@adacore.com>
259
260 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
261 (gdb_rl_callback_handler): Use std::move.
262 * common/common-exceptions.h (struct gdb_exception): Add move
263 assignment operator.
264 (throw_exception_sjlj): Change "exception" to const reference.
265 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
266 (throw_exception_sjlj): Change "exception" to const reference.
267
2682019-04-25 Tom Tromey <tromey@adacore.com>
269
270 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
271 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
272 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
273 Update.
274 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
275 Update.
276 * mi/mi-interp.c (mi_interp::exec): Update.
277 * linespec.c (parse_linespec): Update.
278 * infcall.c (run_inferior_call): Update.
279 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
280 * guile/scm-symbol.c (gdbscm_lookup_symbol)
281 (gdbscm_lookup_global_symbol): Update.
282 * guile/scm-param.c (gdbscm_parameter_value): Update.
283 * guile/scm-frame.c (gdbscm_frame_read_register)
284 (gdbscm_frame_read_var): Update.
285 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
286 * exec.c (try_open_exec_file): Update.
287 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
288 (gdb_rl_callback_handler): Update.
289 * common/common-exceptions.h (exception_none): Don't declare.
290 * common/common-exceptions.c (exception_none): Don't define.
291 (struct catcher) <exception>: Update.
292 * cli/cli-interp.c (safe_execute_command): Update.
293 * breakpoint.c (insert_bp_location, location_to_sals): Update.
294
2952019-04-25 Ali Tamur <tamur@google.com>
296
297 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
298 (read_attribute_value): Likewise.
299 (dwarf2_read_addr_index): Update comment.
300 (read_str_index): Add DW_FORM_strx.
301 (dwarf2_string_attr): Likewise.
302 (dwarf2_const_value_attr): Likewise.
303 (dump_die_shallow): Likewise.
304 (dwarf2_fetch_constant_bytes): Likewise.
305 (skip_form_bytes): Likewise.
306 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
307
3082019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
309
310 PR corefiles/11608
311 PR corefiles/18187
312 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
313 OFFSET. Verify if current mapping contains an ELF header.
314 (linux_find_memory_regions_full): Adjust call to
315 dump_mapping_p.
316
3172019-04-25 Sandra Loosemore <sandra@codesourcery.com>
318 Kang Li <kanglictf@gmail.com>
319
320 PR gdb/21600
321
322 * dwarf2-frame.c (read_initial_length): Be consistent about using
323 unsigned representation of length.
324 (decode_frame_entry_1): Likewise. Check for wraparound of
325 end pointer as well as buffer overflow.
326
3272019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
328
329 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
330 "vq".
331
3322019-04-24 Tom Tromey <tromey@adacore.com>
333
334 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
335
3362019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
337
338 * s12z-tdep.c (s12z_unwind_pc): Delete.
339 (s12z_unwind_sp): Delete.
340 (s12z_gdbarch_init): Don't register deleted functions with
341 gdbarch.
342
3432019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
344
345 * rl78-tdep.c (rl78_unwind_sp): Delete.
346 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
347
3482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
349
350 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
351 (xstormy16_unwind_pc): Delete.
352 (xstormy16_dummy_id): Delete.
353 (xstormy16_gdbarch_init): Don't register deleted functions with
354 gdbarch.
355
3562019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * vax-tdep.c (vax_unwind_pc): Delete.
359 (vax_gdbarch_init): Don't register deleted function with gdbarch.
360
3612019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
362
363 * v850-tdep.c (v850_unwind_sp): Delete.
364 (v850_unwind_pc): Delete.
365 (v850_dummy_id): Delete.
366 (v850_gdbarch_init): Don't register deleted functions with
367 gdbarch.
368
3692019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
370
371 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
372 (tilegx_unwind_pc): Delete.
373 (tilegx_unwind_dummy_id): Delete.
374 (tilegx_gdbarch_init): Don't register deleted functions with
375 gdbarch.
376
3772019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
378
379 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
380 (tic6x_dummy_id): Delete.
381 (tic6x_gdbarch_init): Don't register deleted functions with
382 gdbarch.
383
3842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
385
386 * sparc-tdep.c (sparc_unwind_pc): Delete.
387 (sparc32_gdbarch_init): Don't register deleted function with
388 gdbarch.
389
3902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
391
392 * sh-tdep.c (sh_unwind_sp): Delete.
393 (sh_unwind_pc): Delete.
394 (sh_dummy_id): Delete.
395 (sh_gdbarch_init): Don't register deleted functions with
396 gdbarch.
397
3982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
399
400 * score-tdep.c (score_unwind_sp): Delete.
401 (score_unwind_pc): Delete.
402 (score_dummy_id): Delete.
403 (score_gdbarch_init): Don't register deleted functions with
404 gdbarch.
405
4062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
407
408 * rx-tdep.c (rx_unwind_pc): Delete.
409 (rx_unwind_sp): Delete.
410 (rx_dummy_id): Delete.
411 (rx_gdbarch_init): Don't register deleted functions with
412 gdbarch. Update comment.
413
4142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
415
416 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
417 (rs6000_dummy_id): Delete.
418 (rs6000_gdbarch_init): Don't register deleted functions with
419 gdbarch.
420
4212019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
422
423 * or1k-tdep.c (or1k_dummy_id): Delete.
424 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
425
4262019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
427
428 * nios2-tdep.c (nios2_dummy_id): Delete.
429 (nios2_unwind_sp): Delete.
430 (nios2_gdbarch_init): Don't register deleted functions with
431 gdbarch.
432
4332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
434
435 * nds32-tdep.c (nds32_dummy_id): Delete.
436 (nds32_unwind_pc): Delete.
437 (nds32_unwind_sp): Delete.
438 (nds32_gdbarch_init): Don't register deleted functions with
439 gdbarch.
440
4412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
442
443 * msp430-tdep.c (msp430_unwind_pc): Delete.
444 (msp430_unwind_sp): Delete.
445 (msp430_dummy_id): Delete.
446 (msp430_gdbarch_init): Don't register deleted functions with
447 gdbarch.
448
4492019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 * moxie-tdep.c (moxie_unwind_sp): Delete.
452 (moxie_unwind_pc): Delete.
453 (moxie_dummy_id): Delete.
454 (moxie_gdbarch_init): Don't register deleted functions with
455 gdbarch.
456
4572019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
458
459 * mn10300-tdep.c (mn10300_dummy_id): Delete.
460 (mn10300_unwind_pc): Delete.
461 (mn10300_unwind_sp): Delete.
462 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
463 mn10300_unwind_sp.
464 (mn10300_frame_unwind_init): Don't register deleted functions with
465 gdbarch.
466
4672019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
468
469 * mep-tdep.c (mep_unwind_pc): Delete.
470 (mep_unwind_sp): Delete.
471 (mep_dummy_id): Delete.
472 (mep_gdbarch_init): Don't register deleted functions with
473 gdbarch.
474
4752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
476
477 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
478 (m68hc11_unwind_sp): Delete.
479 (m68hc11_gdbarch_init): Don't register deleted functions with
480 gdbarch.
481
4822019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
483
484 * m32r-tdep.c (m32r_unwind_sp): Delete.
485 (m32r_unwind_pc): Delete.
486 (m32r_dummy_id): Delete.
487 (m32r_gdbarch_init): Don't register deleted functions with
488 gdbarch.
489
4902019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
491
492 * m32c-tdep.c (m32c_unwind_pc): Delete.
493 (m32c_unwind_sp): Delete.
494 (m32c_dummy_id): Delete.
495 (m32c_gdbarch_init): Don't register deleted functions with
496 gdbarch.
497
4982019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
499
500 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
501 (lm32_unwind_pc): Delete.
502 (lm32_dummy_id): Delete.
503 (lm32_gdbarch_init): Don't register deleted functions with
504 gdbarch.
505
5062019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
507
508 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
509 (iq2000_unwind_pc): Delete.
510 (iq2000_dummy_id): Delete.
511 (iq2000_gdbarch_init): Don't register deleted functions with
512 gdbarch.
513
5142019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
515
516 * nds32-tdep.c (nds32_type_align): Delete.
517 (nds32_push_dummy_call): Use type_align instead.
518
5192019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
520
521 * arm-tdep.c (arm_type_align): Only handle vector override case.
522 (arm_push_dummy_call): Use type_align.
523 (arm_gdbarch_init): Register arm_type_align gdbarch function.
524
5252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
526
527 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
528 case.
529 (pass_on_stack): Use type_align.
530 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
531 function.
532
5332019-04-23 Tom Tromey <tromey@adacore.com>
534
535 * dwarf2read.c (line_header::file_name_at): Remove unused
536 overload.
537
5382019-04-23 Tom de Vries <tdevries@suse.de>
539
540 PR gdb/24438
541 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
542 invocation.
543
544
5452019-03-27 Ali Tamur <tamur@google.com>
546
547 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
548 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
549 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
550 (dwarf_expr_context::get_addr_index): Likewise
551 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
552 (symbol_needs_eval_context::get_addr_index): Likewise
553 (disassemble_dwarf_expression): Add DW_OP_addrx
554 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
555 (read_cutu_die_from_dwo): Update comment
556 (skip_one_die): Add DW_FORM_addrx
557 (read_attribute_value): Likewise
558 (var_decode_location): Add DW_OP_addrx
559 (dwarf2_const_value_attr): Add DW_FORM_addrx
560 (dump_die_shallow): Likewise
561 (dwarf2_fetch_constant_bytes): Likewise
562 (decode_locdesc): Add DW_OP_addrx
563 (skip_form_bytes): Add DW_FORM_addrx
564
5652019-04-22 Ali Tamur <tamur@google.com>
566
567 * MAINTAINERS (Write After Approval): Add self.
568
5692019-04-22 Simon Marchi <simon.marchi@efficios.com>
570
571 * solib-svr4.c (get_svr4_info): Add pspace parameter.
572 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
573 (open_symbol_file_object): Likewise.
574 (svr4_default_sos): Add info parameter.
575 (svr4_read_so_list): Likewise.
576 (svr4_current_sos_direct): Adjust functions calls to pass down
577 info.
578 (svr4_current_sos_1): Add info parameter.
579 (svr4_current_sos): Call get_svr4_info, pass info down to
580 svr4_current_sos_1.
581 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
582 get_svr4_info.
583 (svr4_in_dynsym_resolve_code): Pass current_program_space to
584 get_svr4_info.
585 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
586 to get_svr4_info.
587 (probes_table_remove_objfile_probes): Likewise.
588 (register_solib_event_probe): Add info parameter.
589 (solist_update_incremental): Pass info parameter down to
590 svr4_read_so_list.
591 (disable_probes_interface): Add info parameter.
592 (svr4_handle_solib_event): Pass current_program_space to
593 get_svr4_info. Adjust disable_probes_interface cleanup.
594 (svr4_create_probe_breakpoints): Add info parameter, pass it
595 down to register_solib_event_probe.
596 (svr4_create_solib_event_breakpoints): Add info parameter,
597 pass it down to svr4_create_probe_breakpoints.
598 (enable_break): Pass info down to
599 svr4_create_solib_event_breakpoints.
600 (svr4_solib_create_inferior_hook): Pass current_program_space to
601 get_svr4_info.
602 (svr4_clear_solib): Likewise.
603
6042019-04-22 Pedro Alves <palves@redhat.com>
605
606 * solib-svr4.c (svr4_free_objfile_observer): New.
607 (probe_and_action::objfile): New field.
608 (probes_table_htab_remove_objfile_probes)
609 (probes_table_remove_objfile_probes): New functions.
610 (register_solib_event_probe): Add 'objfile' parameter. Store it
611 in the new probe_and_action. Don't store the probe in 'lookup'.
612 (svr4_create_probe_breakpoints): Pass objfile to
613 register_solib_event_probe.
614 (_initialize_svr4_solib): Register a free_objfile observer.
615
6162019-04-19 Tom Tromey <tom@tromey.com>
617
618 * common/queue.h: Remove.
619
6202019-04-19 Tom Tromey <tom@tromey.com>
621
622 * event-loop.c: Don't include "common/queue.h".
623
6242019-04-19 Tom Tromey <tom@tromey.com>
625
626 * remote.c (remote_target): Use delete.
627 * remote-notif.h: Include <list>, not "common/queue.h".
628 (notif_client_p): Remove typedef.
629 (remote_notif_state): Add constructor, destructor, initializer.
630 <notif_queue>: Now a std::list.
631 (remote_notif_state_xfree): Don't declare.
632 * remote-notif.c (remote_notif_process, handle_notification)
633 (remote_notif_state_allocate): Update.
634 (~remote_notif_state): Rename from remote_notif_state_xfree.
635
6362019-04-19 Tom Tromey <tom@tromey.com>
637
638 * symfile.c (reread_symbols): Update.
639 * objfiles.c (objfile_register_static_link)
640 (objfile_lookup_static_link): Update
641 (~objfile) Don't delete static_links.
642 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
643
6442019-04-19 Tom Tromey <tom@tromey.com>
645
646 * type-stack.h (struct type_stack) <insert>: Constify string.
647 * type-stack.c (type_stack::insert): Constify string.
648 * gdbtypes.h (lookup_template_type): Update.
649 (address_space_name_to_int): Update.
650 * gdbtypes.c (address_space_name_to_int): Make space_identifier
651 const.
652 (lookup_template_type): Make name const.
653 * c-exp.y: Update rules.
654 (lex_one_token, classify_name, classify_inner_name)
655 (c_print_token): Update.
656 * p-exp.y: Update rules.
657 (yylex): Update.
658 * f-exp.y: Update rules.
659 (yylex): Update.
660 * d-exp.y: Update rules.
661 (lex_one_token, classify_name, classify_inner_name): Update.
662 * parse.c (write_dollar_variable, copy_name): Return std::string.
663 * parser-defs.h (copy_name): Change return type.
664 * m2-exp.y: Update rules.
665 (yylex): Update.
666 * go-exp.y (lex_one_token): Update.
667 Update rules.
668 (classify_unsafe_function, classify_packaged_name)
669 (classify_name, yylex): Update.
670
6712019-04-19 Sergei Trofimovich <siarheit@google.com>
672
673 * configure.ac: add --enable-source-highlight switch.
674 * configure: Regenerate.
675 * top.c (print_gdb_version): plumb --enable-source-highlight
676 status to "show configuration".
677
6782019-04-19 Tom Tromey <tromey@adacore.com>
679
680 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
681 Check ADA_TYPE_P.
682 (empty_record, ada_template_to_fixed_record_type_1)
683 (template_to_static_fixed_type)
684 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
685 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
686 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
687 macros.
688
6892019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
690
691 PR symtab/24423:
692 * source.c (print_source_lines_base): Advance "iter" when a
693 control character is seen.
694
6952019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
696
697 * inferior.h (struct infcall_suspend_state_deleter):
698 Catch exception in destructor to avoid crash.
699
7002019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
701
702 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
703 close to the add_com "shell".
704
7052019-04-18 Tom Tromey <tromey@adacore.com>
706
707 * process-stratum-target.h (class process_stratum_target)
708 <stratum>: Add "final".
709
7102019-04-17 Tom Tromey <tromey@adacore.com>
711
712 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
713 against nullptr before use.
714
7152019-04-17 Alan Hayward <alan.hayward@arm.com>
716
717 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
718
7192019-04-17 Jim Wilson <jimw@sifive.com>
720 Andrew Burgess <andrew.burgess@embecosm.com>
721
722 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
723 code read might fail, assume 4-byte breakpoint in that case.
724
7252019-04-15 Leszek Swirski <leszeks@google.com>
726
727 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
728 rather than a hand-rolled POD check when checking for forced MEMORY
729 classification.
730
7312019-04-15 Alan Hayward <alan.hayward@arm.com>
732
733 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
734 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
735 function.
736 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
737 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
738 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
739 declaration.
740
7412019-04-15 Alan Hayward <alan.hayward@arm.com>
742
743 * aarch64-linux-nat.c
744 (aarch64_linux_nat_target::thread_architecture): Add override.
745 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
746 each VQ.
747
7482019-04-15 Alan Hayward <alan.hayward@arm.com>
749
750 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
751
7522019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
753
754 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
755 target types of size 96-bits, add some additional comments, and
756 check that the builtin type we found was the correct size.
757
7582019-04-12 Eli Zaretskii <eliz@gnu.org>
759
760 * utils.c (prompt_for_continue): Don't restore the styling at the
761 end, as applied_style has the wrong value. This fixes styling in
762 long lists of file names that are interrupted by the "Continue?"
763 prompt.
764
7652019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
766
767 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
768 * c-lang.c (c_language_defn): Likewise.
769 (cplus_language_defn): Likewise.
770 (asm_language_defn): Likewise.
771 (minimal_language_defn): Likewise.
772 * d-lang.c (d_language_defn): Likewise.
773 * f-lang.c (f_language_defn): Likewise.
774 * go-lang.c (go_language_defn): Likewise.
775 * language.c (unknown_language_defn): Likewise.
776 (auto_language_defn): Likewise.
777 * language.h (struct language_defn): Remove la_magic field.
778 (LANG_MAGIC): Delete.
779 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
780 * objc-lang.c (objc_language_defn): Likewise.
781 * opencl-lang.c (opencl_language_defn): Likewise.
782 * p-lang.c (pascal_language_defn): Likewise.
783 * rust-lang.c (rust_language_defn): Likewise.
784
7852019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
786
787 * riscv-tdep.c (riscv_type_align): New function.
788 (riscv_type_alignment): Delete.
789 (riscv_arg_location): Use 'type_align'.
790 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
791
7922019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
793
794 * gdbtypes.c (type_align): A struct with no non-static fields also
795 has alignment of 1.
796
7972019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
798
799 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
800 component to 0.
801 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
802 member.
803 (riscv_struct_info::analyse): New implementation using new
804 analyse_inner member function.
805 (riscv_struct_info::field_offset): New member function.
806 (riscv_struct_info::m_offsets): New member variable.
807 (riscv_struct_info::analyse_inner): New private member function,
808 takes the old implementation of riscv_struct_info::analyse but
809 extended to track field offsets.
810 (riscv_call_arg_struct): Update the struct folding special cases
811 to handle cases where empty C++ structs, which are non-zero
812 length, are found.
813 (riscv_arg_location): Initialise the length of each location, a
814 non-zero length now indicates the location is in use.
815 (riscv_push_dummy_call): Allow for the first location having a
816 non-zero offset when setting up arguments.
817 (riscv_return_value): Likewise, but for return values.
818
8192019-04-11 Tom Tromey <tromey@adacore.com>
820
821 * utils.c (internal_vproblem): Make "msg" const.
822
8232019-04-11 Alan Hayward <alan.hayward@arm.com>
824
825 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
826 * trad-frame.c (trad_frame_reset_saved_regs): New function.
827 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
828 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
829
8302019-04-10 Kevin Buettner <kevinb@redhat.com>
831
832 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
833 function.
834 (fill_gregset): Call amd64_linux_collect_native_gregset instead
835 of amd64_collect_native_gregset.
836 (amd64_linux_nat_target::store_registers): Likewise.
837
8382019-04-10 Tom Tromey <tom@tromey.com>
839
840 * symtab.c (lookup_global_symbol_from_objfile)
841 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
842 * objfiles.h (class separate_debug_iterator): New.
843 (class separate_debug_range): New.
844 (struct objfile) <separate_debug_objfiles>: New method.
845 (objfile_separate_debug_iterate): Don't declare.
846 * objfiles.c (separate_debug_iterator::operator++): Rename from
847 objfile_separate_debug_iterate.
848 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
849 iterator.
850 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
851 iterator.
852
8532019-04-10 Tom Tromey <tom@tromey.com>
854
855 * symfile.c (reread_symbols): Remove old comment.
856 * objfiles.c (free_all_objfiles): Fix a typo.
857
8582019-04-10 Tom Tromey <tom@tromey.com>
859
860 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
861 * minsyms.c (lookup_minimal_symbol): Use foreach.
862 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
863 (lookup_minimal_symbol_solib_trampoline): Likewise.
864 * symfile.c (reread_symbols): Use foreach.
865
8662019-04-09 Ivan Begert <ivanbegert@gmail.com>
867 Tom Tromey <tromey@adacore.com>
868
869 PR rust/24414:
870 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
871 (rust_lex_int_test): Change "value" to be LONGEST.
872 (rust_lex_tests): Add test for long integer literal.
873
8742019-04-09 Tom Tromey <tromey@adacore.com>
875
876 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
877 to bool.
878 (extended_remote_target::attach): Update.
879 (remote_target::remote_notice_new_inferior): Update.
880 (remote_target::add_current_inferior_and_thread): Update.
881 * inferior.c (exit_inferior_1): Use "false".
882 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
883
8842019-04-09 Simon Marchi <simon.marchi@efficios.com>
885
886 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
887 the "start" command.
888
8892019-04-08 Kevin Buettner <kevinb@redhat.com>
890
891 * python/py-inferior.c (infpy_thread_from_thread_handle):
892 Adjust comments to reflect renaming of thread_from_thread_handle
893 to thread_from_handle. Adjust keywords. Fix type error message.
894 (inferior_object_methods): Add thread_from_handle. Retain
895 thread_from_thread_handle, but mark it as deprecated.
896
8972019-04-08 Kevin Buettner <kevinb@redhat.com>
898
899 * gdbthread.h (find_thread_by_handle): Revise declaration.
900 * thread.c (find_thread_by_handle): Likewise. Adjust
901 implementation too.
902 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
903 support for buffer objects as handles.
904
9052019-04-08 Kevin Buettner <kevinb@redhat.com>
906
907 * python/py-infthread.c (thpy_thread_handle): New function.
908 (thread_object_methods): Register thpy_thread_handle.
909
9102019-04-08 Kevin Buettner <kevinb@redhat.com>
911
912 * gdbthread.h (thread_to_thread_handle): Declare.
913 * thread.c (gdbtypes.h): Include.
914 (thread_to_thread_handle): New function.
915
916 * target.h (struct target_ops): Add thread_info_to_thread_handle.
917 (target_thread_info_to_thread_handle): Declare.
918 * target.c (target_thread_info_to_thread_handle): New function.
919 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
920 * target-delegates.c: Regenerate.
921
922 * linux-thread-db.c (class thread_db_target): Add method
923 thread_info_to_thread_handle.
924 (thread_db_target::thread_info_to_thread_handle): Define.
925 * remote.c (class remote_target): Add new method
926 thread_info_to_thread_handle.
927 (remote_target::thread_info_to_thread_handle): Define.
928
9292019-04-08 Pedro Alves <palves@redhat.com>
930
931 * common/common-exceptions.c (throw_exception): Don't create
932 named object to throw; throw directly.
933 (throw_it): Likewise. Don't initialize gdb_exception::message
934 here, with new; pass FMT and AP to the ctor instead.
935 * common/common-exceptions.h: Include <string>.
936 (gdb_exception::gdb_exception(enum return_reason, enum errors,
937 const char *, va_list)): New ctor. Use std::make_shared.
938 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
939 errors)): Delete.
940 (gdb_exception_error::gdb_exception_error(enum errors, const char
941 *, va_list)): New.
942 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
943 Add assertion.
944 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
945 errors)): Delete.
946 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
947 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
948 Add assertion.
949
9502019-04-08 Tom Tromey <tom@tromey.com>
951
952 * valops.c (value_rtti_indirect_type): Replace throw_exception
953 with throw.
954 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
955 with throw.
956 * thread.c (thr_try_catch_cmd): Replace throw_exception with
957 throw.
958 * target.c (target_translate_tls_address): Replace throw_exception
959 with throw.
960 * stack.c (frame_apply_command_count): Replace throw_exception
961 with throw.
962 * solib-spu.c (append_ocl_sos): Replace throw_exception with
963 throw.
964 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
965 with throw.
966 * rs6000-tdep.c (rs6000_frame_cache)
967 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
968 * remote.c: Replace throw_exception with throw.
969 * record-full.c (record_full_message, record_full_wait_1)
970 (record_full_restore): Replace throw_exception with throw.
971 * record-btrace.c:
972 (get_thread_current_frame_id, record_btrace_start_replaying)
973 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
974 (cmd_record_btrace_start): Replace throw_exception with throw.
975 * parse.c (parse_exp_in_context_1): Replace throw_exception with
976 throw.
977 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
978 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
979 * linespec.c:
980 (find_linespec_symbols): Replace throw_exception with throw.
981 * infrun.c (displaced_step_prepare, resume): Replace
982 throw_exception with throw.
983 * infcmd.c (post_create_inferior): Replace throw_exception with
984 throw.
985 * inf-loop.c (inferior_event_handler): Replace throw_exception
986 with throw.
987 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
988 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
989 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
990 (get_prev_frame_always, get_frame_pc_if_available)
991 (get_frame_address_in_block_if_available, get_frame_language):
992 Replace throw_exception with throw.
993 * frame-unwind.c (frame_unwind_try_unwinder): Replace
994 throw_exception with throw.
995 * eval.c (fetch_subexp_value, evaluate_var_value)
996 (evaluate_funcall, evaluate_subexp_standard): Replace
997 throw_exception with throw.
998 * dwarf2loc.c (call_site_find_chain)
999 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
1000 Replace throw_exception with throw.
1001 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
1002 with throw.
1003 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
1004 throw.
1005 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
1006 * completer.c (complete_line_internal): Replace throw_exception
1007 with throw.
1008 * compile/compile-object-run.c (compile_object_run): Replace
1009 throw_exception with throw.
1010 * cli/cli-script.c (process_next_line): Replace throw_exception
1011 with throw.
1012 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
1013 (btrace_enable, btrace_maint_update_pt_packets): Replace
1014 throw_exception with throw.
1015 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
1016 throw_exception with throw.
1017 * break-catch-throw.c (re_set_exception_catchpoint): Replace
1018 throw_exception with throw.
1019 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1020 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
1021 * aarch64-tdep.c (aarch64_make_prologue_cache)
1022 (aarch64_make_stub_cache): Replace throw_exception with throw.
1023
10242019-04-08 Tom Tromey <tom@tromey.com>
1025
1026 * common/common-exceptions.c (throw_exception): Rename from
1027 throw_exception_cxx. Remove old copy. Make argument const.
1028 (throw_it): Create and throw exception objects directly.
1029 * common/common-exceptions.h (throw_exception): Make argument
1030 const.
1031 (struct gdb_exception_error): Add constructor.
1032 (struct gdb_exception_quit): Add constructor.
1033
10342019-04-08 Tom Tromey <tom@tromey.com>
1035
1036 * common/common-exceptions.h (exception_rethrow): Don't declare.
1037 (TRY_SJLJ): Update comment.
1038 (TRY, CATCH, END_CATCH): Remove.
1039 * common/common-exceptions.c (exception_rethrow): Remove.
1040
10412019-04-08 Tom Tromey <tom@tromey.com>
1042
1043 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
1044 Remove.
1045 (gdb_exception_error): Rename from
1046 gdb_exception_RETURN_MASK_ERROR.
1047 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
1048 (gdb_quit_bad_alloc): Update.
1049 * aarch64-tdep.c: Update.
1050 * ada-lang.c: Update.
1051 * ada-typeprint.c: Update.
1052 * ada-valprint.c: Update.
1053 * amd64-tdep.c: Update.
1054 * arch-utils.c: Update.
1055 * break-catch-throw.c: Update.
1056 * breakpoint.c: Update.
1057 * btrace.c: Update.
1058 * c-varobj.c: Update.
1059 * cli/cli-cmds.c: Update.
1060 * cli/cli-interp.c: Update.
1061 * cli/cli-script.c: Update.
1062 * common/common-exceptions.c: Update.
1063 * common/new-op.c: Update.
1064 * common/selftest.c: Update.
1065 * compile/compile-c-symbols.c: Update.
1066 * compile/compile-cplus-symbols.c: Update.
1067 * compile/compile-object-load.c: Update.
1068 * compile/compile-object-run.c: Update.
1069 * completer.c: Update.
1070 * corelow.c: Update.
1071 * cp-abi.c: Update.
1072 * cp-support.c: Update.
1073 * cp-valprint.c: Update.
1074 * darwin-nat.c: Update.
1075 * disasm-selftests.c: Update.
1076 * dtrace-probe.c: Update.
1077 * dwarf-index-cache.c: Update.
1078 * dwarf-index-write.c: Update.
1079 * dwarf2-frame-tailcall.c: Update.
1080 * dwarf2-frame.c: Update.
1081 * dwarf2loc.c: Update.
1082 * dwarf2read.c: Update.
1083 * eval.c: Update.
1084 * event-loop.c: Update.
1085 * event-top.c: Update.
1086 * exec.c: Update.
1087 * f-valprint.c: Update.
1088 * fbsd-tdep.c: Update.
1089 * frame-unwind.c: Update.
1090 * frame.c: Update.
1091 * gdbtypes.c: Update.
1092 * gnu-v3-abi.c: Update.
1093 * guile/guile-internal.h: Update.
1094 * guile/scm-block.c: Update.
1095 * guile/scm-breakpoint.c: Update.
1096 * guile/scm-cmd.c: Update.
1097 * guile/scm-disasm.c: Update.
1098 * guile/scm-frame.c: Update.
1099 * guile/scm-lazy-string.c: Update.
1100 * guile/scm-math.c: Update.
1101 * guile/scm-param.c: Update.
1102 * guile/scm-ports.c: Update.
1103 * guile/scm-pretty-print.c: Update.
1104 * guile/scm-symbol.c: Update.
1105 * guile/scm-symtab.c: Update.
1106 * guile/scm-type.c: Update.
1107 * guile/scm-value.c: Update.
1108 * i386-linux-tdep.c: Update.
1109 * i386-tdep.c: Update.
1110 * inf-loop.c: Update.
1111 * infcall.c: Update.
1112 * infcmd.c: Update.
1113 * infrun.c: Update.
1114 * jit.c: Update.
1115 * language.c: Update.
1116 * linespec.c: Update.
1117 * linux-fork.c: Update.
1118 * linux-nat.c: Update.
1119 * linux-tdep.c: Update.
1120 * linux-thread-db.c: Update.
1121 * main.c: Update.
1122 * mi/mi-cmd-break.c: Update.
1123 * mi/mi-cmd-stack.c: Update.
1124 * mi/mi-interp.c: Update.
1125 * mi/mi-main.c: Update.
1126 * objc-lang.c: Update.
1127 * p-valprint.c: Update.
1128 * parse.c: Update.
1129 * ppc-linux-tdep.c: Update.
1130 * printcmd.c: Update.
1131 * python/py-arch.c: Update.
1132 * python/py-breakpoint.c: Update.
1133 * python/py-cmd.c: Update.
1134 * python/py-finishbreakpoint.c: Update.
1135 * python/py-frame.c: Update.
1136 * python/py-framefilter.c: Update.
1137 * python/py-gdb-readline.c: Update.
1138 * python/py-inferior.c: Update.
1139 * python/py-infthread.c: Update.
1140 * python/py-lazy-string.c: Update.
1141 * python/py-linetable.c: Update.
1142 * python/py-objfile.c: Update.
1143 * python/py-param.c: Update.
1144 * python/py-prettyprint.c: Update.
1145 * python/py-progspace.c: Update.
1146 * python/py-record-btrace.c: Update.
1147 * python/py-record.c: Update.
1148 * python/py-symbol.c: Update.
1149 * python/py-type.c: Update.
1150 * python/py-unwind.c: Update.
1151 * python/py-utils.c: Update.
1152 * python/py-value.c: Update.
1153 * python/python.c: Update.
1154 * record-btrace.c: Update.
1155 * record-full.c: Update.
1156 * remote-fileio.c: Update.
1157 * remote.c: Update.
1158 * riscv-tdep.c: Update.
1159 * rs6000-aix-tdep.c: Update.
1160 * rs6000-tdep.c: Update.
1161 * rust-exp.y: Update.
1162 * rust-lang.c: Update.
1163 * s390-tdep.c: Update.
1164 * selftest-arch.c: Update.
1165 * solib-dsbt.c: Update.
1166 * solib-frv.c: Update.
1167 * solib-spu.c: Update.
1168 * solib-svr4.c: Update.
1169 * solib.c: Update.
1170 * sparc64-linux-tdep.c: Update.
1171 * stack.c: Update.
1172 * symfile-mem.c: Update.
1173 * symmisc.c: Update.
1174 * target.c: Update.
1175 * thread.c: Update.
1176 * top.c: Update.
1177 * tracefile-tfile.c: Update.
1178 * tui/tui.c: Update.
1179 * typeprint.c: Update.
1180 * unittests/cli-utils-selftests.c: Update.
1181 * unittests/parse-connection-spec-selftests.c: Update.
1182 * valops.c: Update.
1183 * valprint.c: Update.
1184 * value.c: Update.
1185 * varobj.c: Update.
1186 * windows-nat.c: Update.
1187 * x86-linux-nat.c: Update.
1188 * xml-support.c: Update.
1189
11902019-04-08 Tom Tromey <tom@tromey.com>
1191
1192 * xml-support.c: Use C++ exception handling.
1193 * x86-linux-nat.c: Use C++ exception handling.
1194 * windows-nat.c: Use C++ exception handling.
1195 * varobj.c: Use C++ exception handling.
1196 * value.c: Use C++ exception handling.
1197 * valprint.c: Use C++ exception handling.
1198 * valops.c: Use C++ exception handling.
1199 * unittests/parse-connection-spec-selftests.c: Use C++ exception
1200 handling.
1201 * unittests/cli-utils-selftests.c: Use C++ exception handling.
1202 * typeprint.c: Use C++ exception handling.
1203 * tui/tui.c: Use C++ exception handling.
1204 * tracefile-tfile.c: Use C++ exception handling.
1205 * top.c: Use C++ exception handling.
1206 * thread.c: Use C++ exception handling.
1207 * target.c: Use C++ exception handling.
1208 * symmisc.c: Use C++ exception handling.
1209 * symfile-mem.c: Use C++ exception handling.
1210 * stack.c: Use C++ exception handling.
1211 * sparc64-linux-tdep.c: Use C++ exception handling.
1212 * solib.c: Use C++ exception handling.
1213 * solib-svr4.c: Use C++ exception handling.
1214 * solib-spu.c: Use C++ exception handling.
1215 * solib-frv.c: Use C++ exception handling.
1216 * solib-dsbt.c: Use C++ exception handling.
1217 * selftest-arch.c: Use C++ exception handling.
1218 * s390-tdep.c: Use C++ exception handling.
1219 * rust-lang.c: Use C++ exception handling.
1220 * rust-exp.y: Use C++ exception handling.
1221 * rs6000-tdep.c: Use C++ exception handling.
1222 * rs6000-aix-tdep.c: Use C++ exception handling.
1223 * riscv-tdep.c: Use C++ exception handling.
1224 * remote.c: Use C++ exception handling.
1225 * remote-fileio.c: Use C++ exception handling.
1226 * record-full.c: Use C++ exception handling.
1227 * record-btrace.c: Use C++ exception handling.
1228 * python/python.c: Use C++ exception handling.
1229 * python/py-value.c: Use C++ exception handling.
1230 * python/py-utils.c: Use C++ exception handling.
1231 * python/py-unwind.c: Use C++ exception handling.
1232 * python/py-type.c: Use C++ exception handling.
1233 * python/py-symbol.c: Use C++ exception handling.
1234 * python/py-record.c: Use C++ exception handling.
1235 * python/py-record-btrace.c: Use C++ exception handling.
1236 * python/py-progspace.c: Use C++ exception handling.
1237 * python/py-prettyprint.c: Use C++ exception handling.
1238 * python/py-param.c: Use C++ exception handling.
1239 * python/py-objfile.c: Use C++ exception handling.
1240 * python/py-linetable.c: Use C++ exception handling.
1241 * python/py-lazy-string.c: Use C++ exception handling.
1242 * python/py-infthread.c: Use C++ exception handling.
1243 * python/py-inferior.c: Use C++ exception handling.
1244 * python/py-gdb-readline.c: Use C++ exception handling.
1245 * python/py-framefilter.c: Use C++ exception handling.
1246 * python/py-frame.c: Use C++ exception handling.
1247 * python/py-finishbreakpoint.c: Use C++ exception handling.
1248 * python/py-cmd.c: Use C++ exception handling.
1249 * python/py-breakpoint.c: Use C++ exception handling.
1250 * python/py-arch.c: Use C++ exception handling.
1251 * printcmd.c: Use C++ exception handling.
1252 * ppc-linux-tdep.c: Use C++ exception handling.
1253 * parse.c: Use C++ exception handling.
1254 * p-valprint.c: Use C++ exception handling.
1255 * objc-lang.c: Use C++ exception handling.
1256 * mi/mi-main.c: Use C++ exception handling.
1257 * mi/mi-interp.c: Use C++ exception handling.
1258 * mi/mi-cmd-stack.c: Use C++ exception handling.
1259 * mi/mi-cmd-break.c: Use C++ exception handling.
1260 * main.c: Use C++ exception handling.
1261 * linux-thread-db.c: Use C++ exception handling.
1262 * linux-tdep.c: Use C++ exception handling.
1263 * linux-nat.c: Use C++ exception handling.
1264 * linux-fork.c: Use C++ exception handling.
1265 * linespec.c: Use C++ exception handling.
1266 * language.c: Use C++ exception handling.
1267 * jit.c: Use C++ exception handling.
1268 * infrun.c: Use C++ exception handling.
1269 * infcmd.c: Use C++ exception handling.
1270 * infcall.c: Use C++ exception handling.
1271 * inf-loop.c: Use C++ exception handling.
1272 * i386-tdep.c: Use C++ exception handling.
1273 * i386-linux-tdep.c: Use C++ exception handling.
1274 * guile/scm-value.c: Use C++ exception handling.
1275 * guile/scm-type.c: Use C++ exception handling.
1276 * guile/scm-symtab.c: Use C++ exception handling.
1277 * guile/scm-symbol.c: Use C++ exception handling.
1278 * guile/scm-pretty-print.c: Use C++ exception handling.
1279 * guile/scm-ports.c: Use C++ exception handling.
1280 * guile/scm-param.c: Use C++ exception handling.
1281 * guile/scm-math.c: Use C++ exception handling.
1282 * guile/scm-lazy-string.c: Use C++ exception handling.
1283 * guile/scm-frame.c: Use C++ exception handling.
1284 * guile/scm-disasm.c: Use C++ exception handling.
1285 * guile/scm-cmd.c: Use C++ exception handling.
1286 * guile/scm-breakpoint.c: Use C++ exception handling.
1287 * guile/scm-block.c: Use C++ exception handling.
1288 * guile/guile-internal.h: Use C++ exception handling.
1289 * gnu-v3-abi.c: Use C++ exception handling.
1290 * gdbtypes.c: Use C++ exception handling.
1291 * frame.c: Use C++ exception handling.
1292 * frame-unwind.c: Use C++ exception handling.
1293 * fbsd-tdep.c: Use C++ exception handling.
1294 * f-valprint.c: Use C++ exception handling.
1295 * exec.c: Use C++ exception handling.
1296 * event-top.c: Use C++ exception handling.
1297 * event-loop.c: Use C++ exception handling.
1298 * eval.c: Use C++ exception handling.
1299 * dwarf2read.c: Use C++ exception handling.
1300 * dwarf2loc.c: Use C++ exception handling.
1301 * dwarf2-frame.c: Use C++ exception handling.
1302 * dwarf2-frame-tailcall.c: Use C++ exception handling.
1303 * dwarf-index-write.c: Use C++ exception handling.
1304 * dwarf-index-cache.c: Use C++ exception handling.
1305 * dtrace-probe.c: Use C++ exception handling.
1306 * disasm-selftests.c: Use C++ exception handling.
1307 * darwin-nat.c: Use C++ exception handling.
1308 * cp-valprint.c: Use C++ exception handling.
1309 * cp-support.c: Use C++ exception handling.
1310 * cp-abi.c: Use C++ exception handling.
1311 * corelow.c: Use C++ exception handling.
1312 * completer.c: Use C++ exception handling.
1313 * compile/compile-object-run.c: Use C++ exception handling.
1314 * compile/compile-object-load.c: Use C++ exception handling.
1315 * compile/compile-cplus-symbols.c: Use C++ exception handling.
1316 * compile/compile-c-symbols.c: Use C++ exception handling.
1317 * common/selftest.c: Use C++ exception handling.
1318 * common/new-op.c: Use C++ exception handling.
1319 * cli/cli-script.c: Use C++ exception handling.
1320 * cli/cli-interp.c: Use C++ exception handling.
1321 * cli/cli-cmds.c: Use C++ exception handling.
1322 * c-varobj.c: Use C++ exception handling.
1323 * btrace.c: Use C++ exception handling.
1324 * breakpoint.c: Use C++ exception handling.
1325 * break-catch-throw.c: Use C++ exception handling.
1326 * arch-utils.c: Use C++ exception handling.
1327 * amd64-tdep.c: Use C++ exception handling.
1328 * ada-valprint.c: Use C++ exception handling.
1329 * ada-typeprint.c: Use C++ exception handling.
1330 * ada-lang.c: Use C++ exception handling.
1331 * aarch64-tdep.c: Use C++ exception handling.
1332
13332019-04-08 Tom Tromey <tom@tromey.com>
1334
1335 * xml-support.c (gdb_xml_parser::parse): Update.
1336 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
1337 * value.c (show_convenience): Update.
1338 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
1339 (test_parse_flags_qcs): Update.
1340 * thread.c (thr_try_catch_cmd): Update.
1341 * target.c (target_translate_tls_address): Update.
1342 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1343 (info_frame_command_core, frame_apply_command_count): Update.
1344 * rust-exp.y (rust_lex_exception_test): Update.
1345 * riscv-tdep.c (riscv_print_one_register_info): Update.
1346 * remote.c (remote_target::enable_btrace): Update.
1347 * record-btrace.c (record_btrace_enable_warn): Update.
1348 * python/py-utils.c (gdbpy_convert_exception): Update.
1349 * printcmd.c (do_one_display, print_variable_and_value): Update.
1350 * mi/mi-main.c (mi_print_exception): Update.
1351 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
1352 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1353 * linux-nat.c (linux_nat_target::attach): Update.
1354 * linux-fork.c (class scoped_switch_fork_info): Update.
1355 * infrun.c (displaced_step_prepare): Update.
1356 * infcall.c (call_function_by_hand_dummy): Update.
1357 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
1358 * gnu-v3-abi.c (print_one_vtable): Update.
1359 * frame.c (get_prev_frame_always): Update.
1360 * f-valprint.c (info_common_command_for_block): Update.
1361 * exec.c (try_open_exec_file): Update.
1362 * exceptions.c (print_exception, exception_print)
1363 (exception_fprintf, exception_print_same): Update.
1364 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
1365 * dwarf-index-cache.c (index_cache::store)
1366 (index_cache::lookup_gdb_index): Update.
1367 * darwin-nat.c (maybe_cache_shell): Update.
1368 * cp-valprint.c (cp_print_value_fields): Update.
1369 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
1370 (gcc_cplus_symbol_address): Update.
1371 * compile/compile-c-symbols.c (gcc_convert_symbol)
1372 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
1373 * common/selftest.c: Update.
1374 * common/common-exceptions.h (struct gdb_exception) <message>: Now
1375 a std::string.
1376 (exception_try_scope_entry, exception_try_scope_exit): Don't
1377 declare.
1378 (struct exception_try_scope): Remove.
1379 (TRY): Don't use exception_try_scope.
1380 (struct gdb_exception): Add constructor, operator=.
1381 <what>: New method.
1382 (struct gdb_exception_RETURN_MASK_ALL)
1383 (struct gdb_exception_RETURN_MASK_ERROR)
1384 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
1385 (struct gdb_quit_bad_alloc): Update.
1386 * common/common-exceptions.c (exception_none): Change
1387 initializer.
1388 (struct catcher) <state, exception>: Initialize inline.
1389 <prev>: Remove member.
1390 (current_catcher): Remove.
1391 (catchers): New global.
1392 (exceptions_state_mc_init): Simplify.
1393 (catcher_pop): Remove.
1394 (exceptions_state_mc, exceptions_state_mc_catch): Update.
1395 (try_scope_depth, exception_try_scope_entry)
1396 (exception_try_scope_exit): Remove.
1397 (throw_exception_sjlj): Update.
1398 (exception_messages, exception_messages_size): Remove.
1399 (throw_it): Simplify.
1400 (gdb_exception_sliced_copy): Remove.
1401 (throw_exception_cxx): Update.
1402 * cli/cli-script.c (script_from_file): Update.
1403 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
1404 Update.
1405 * ada-valprint.c (ada_val_print): Update.
1406 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
1407 (create_excep_cond_exprs): Update.
1408
14092019-04-08 Tom Tromey <tom@tromey.com>
1410
1411 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
1412 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
1413 (TRY, CATCH, END_CATCH): Remove some definitions.
1414 * common/common-exceptions.c: Don't use GDB_XCPT.
1415 (catcher_list_size): Remove.
1416 (throw_exception, throw_it): Simplify.
1417
14182019-04-05 Tom Tromey <tom@tromey.com>
1419
1420 Revert the header-sorting patch.
1421 * ft32-tdep.c: Revert.
1422 * frv-tdep.c: Revert.
1423 * frv-linux-tdep.c: Revert.
1424 * frame.c: Revert.
1425 * frame-unwind.c: Revert.
1426 * frame-base.c: Revert.
1427 * fork-child.c: Revert.
1428 * findvar.c: Revert.
1429 * findcmd.c: Revert.
1430 * filesystem.c: Revert.
1431 * filename-seen-cache.h: Revert.
1432 * filename-seen-cache.c: Revert.
1433 * fbsd-tdep.c: Revert.
1434 * fbsd-nat.h: Revert.
1435 * fbsd-nat.c: Revert.
1436 * f-valprint.c: Revert.
1437 * f-typeprint.c: Revert.
1438 * f-lang.c: Revert.
1439 * extension.h: Revert.
1440 * extension.c: Revert.
1441 * extension-priv.h: Revert.
1442 * expprint.c: Revert.
1443 * exec.h: Revert.
1444 * exec.c: Revert.
1445 * exceptions.c: Revert.
1446 * event-top.c: Revert.
1447 * event-loop.c: Revert.
1448 * eval.c: Revert.
1449 * elfread.c: Revert.
1450 * dwarf2read.h: Revert.
1451 * dwarf2read.c: Revert.
1452 * dwarf2loc.c: Revert.
1453 * dwarf2expr.h: Revert.
1454 * dwarf2expr.c: Revert.
1455 * dwarf2-frame.c: Revert.
1456 * dwarf2-frame-tailcall.c: Revert.
1457 * dwarf-index-write.h: Revert.
1458 * dwarf-index-write.c: Revert.
1459 * dwarf-index-common.c: Revert.
1460 * dwarf-index-cache.h: Revert.
1461 * dwarf-index-cache.c: Revert.
1462 * dummy-frame.c: Revert.
1463 * dtrace-probe.c: Revert.
1464 * disasm.h: Revert.
1465 * disasm.c: Revert.
1466 * disasm-selftests.c: Revert.
1467 * dictionary.c: Revert.
1468 * dicos-tdep.c: Revert.
1469 * demangle.c: Revert.
1470 * dcache.h: Revert.
1471 * dcache.c: Revert.
1472 * darwin-nat.h: Revert.
1473 * darwin-nat.c: Revert.
1474 * darwin-nat-info.c: Revert.
1475 * d-valprint.c: Revert.
1476 * d-namespace.c: Revert.
1477 * d-lang.c: Revert.
1478 * ctf.c: Revert.
1479 * csky-tdep.c: Revert.
1480 * csky-linux-tdep.c: Revert.
1481 * cris-tdep.c: Revert.
1482 * cris-linux-tdep.c: Revert.
1483 * cp-valprint.c: Revert.
1484 * cp-support.c: Revert.
1485 * cp-namespace.c: Revert.
1486 * cp-abi.c: Revert.
1487 * corelow.c: Revert.
1488 * corefile.c: Revert.
1489 * continuations.c: Revert.
1490 * completer.h: Revert.
1491 * completer.c: Revert.
1492 * complaints.c: Revert.
1493 * coffread.c: Revert.
1494 * coff-pe-read.c: Revert.
1495 * cli-out.h: Revert.
1496 * cli-out.c: Revert.
1497 * charset.c: Revert.
1498 * c-varobj.c: Revert.
1499 * c-valprint.c: Revert.
1500 * c-typeprint.c: Revert.
1501 * c-lang.c: Revert.
1502 * buildsym.c: Revert.
1503 * buildsym-legacy.c: Revert.
1504 * build-id.h: Revert.
1505 * build-id.c: Revert.
1506 * btrace.c: Revert.
1507 * bsd-uthread.c: Revert.
1508 * breakpoint.h: Revert.
1509 * breakpoint.c: Revert.
1510 * break-catch-throw.c: Revert.
1511 * break-catch-syscall.c: Revert.
1512 * break-catch-sig.c: Revert.
1513 * blockframe.c: Revert.
1514 * block.c: Revert.
1515 * bfin-tdep.c: Revert.
1516 * bfin-linux-tdep.c: Revert.
1517 * bfd-target.c: Revert.
1518 * bcache.c: Revert.
1519 * ax-general.c: Revert.
1520 * ax-gdb.h: Revert.
1521 * ax-gdb.c: Revert.
1522 * avr-tdep.c: Revert.
1523 * auxv.c: Revert.
1524 * auto-load.c: Revert.
1525 * arm-wince-tdep.c: Revert.
1526 * arm-tdep.c: Revert.
1527 * arm-symbian-tdep.c: Revert.
1528 * arm-pikeos-tdep.c: Revert.
1529 * arm-obsd-tdep.c: Revert.
1530 * arm-nbsd-tdep.c: Revert.
1531 * arm-nbsd-nat.c: Revert.
1532 * arm-linux-tdep.c: Revert.
1533 * arm-linux-nat.c: Revert.
1534 * arm-fbsd-tdep.c: Revert.
1535 * arm-fbsd-nat.c: Revert.
1536 * arm-bsd-tdep.c: Revert.
1537 * arch-utils.c: Revert.
1538 * arc-tdep.c: Revert.
1539 * arc-newlib-tdep.c: Revert.
1540 * annotate.h: Revert.
1541 * annotate.c: Revert.
1542 * amd64-windows-tdep.c: Revert.
1543 * amd64-windows-nat.c: Revert.
1544 * amd64-tdep.c: Revert.
1545 * amd64-sol2-tdep.c: Revert.
1546 * amd64-obsd-tdep.c: Revert.
1547 * amd64-obsd-nat.c: Revert.
1548 * amd64-nbsd-tdep.c: Revert.
1549 * amd64-nbsd-nat.c: Revert.
1550 * amd64-nat.c: Revert.
1551 * amd64-linux-tdep.c: Revert.
1552 * amd64-linux-nat.c: Revert.
1553 * amd64-fbsd-tdep.c: Revert.
1554 * amd64-fbsd-nat.c: Revert.
1555 * amd64-dicos-tdep.c: Revert.
1556 * amd64-darwin-tdep.c: Revert.
1557 * amd64-bsd-nat.c: Revert.
1558 * alpha-tdep.c: Revert.
1559 * alpha-obsd-tdep.c: Revert.
1560 * alpha-nbsd-tdep.c: Revert.
1561 * alpha-mdebug-tdep.c: Revert.
1562 * alpha-linux-tdep.c: Revert.
1563 * alpha-linux-nat.c: Revert.
1564 * alpha-bsd-tdep.c: Revert.
1565 * alpha-bsd-nat.c: Revert.
1566 * aix-thread.c: Revert.
1567 * agent.c: Revert.
1568 * addrmap.c: Revert.
1569 * ada-varobj.c: Revert.
1570 * ada-valprint.c: Revert.
1571 * ada-typeprint.c: Revert.
1572 * ada-tasks.c: Revert.
1573 * ada-lang.c: Revert.
1574 * aarch64-tdep.c: Revert.
1575 * aarch64-ravenscar-thread.c: Revert.
1576 * aarch64-newlib-tdep.c: Revert.
1577 * aarch64-linux-tdep.c: Revert.
1578 * aarch64-linux-nat.c: Revert.
1579 * aarch64-fbsd-tdep.c: Revert.
1580 * aarch64-fbsd-nat.c: Revert.
1581 * aarch32-linux-nat.c: Revert.
1582
15832019-04-05 Tom Tromey <tom@tromey.com>
1584
1585 * ft32-tdep.c: Sort headers.
1586 * frv-tdep.c: Sort headers.
1587 * frv-linux-tdep.c: Sort headers.
1588 * frame.c: Sort headers.
1589 * frame-unwind.c: Sort headers.
1590 * frame-base.c: Sort headers.
1591 * fork-child.c: Sort headers.
1592 * findvar.c: Sort headers.
1593 * findcmd.c: Sort headers.
1594 * filesystem.c: Sort headers.
1595 * filename-seen-cache.h: Sort headers.
1596 * filename-seen-cache.c: Sort headers.
1597 * fbsd-tdep.c: Sort headers.
1598 * fbsd-nat.h: Sort headers.
1599 * fbsd-nat.c: Sort headers.
1600 * f-valprint.c: Sort headers.
1601 * f-typeprint.c: Sort headers.
1602 * f-lang.c: Sort headers.
1603 * extension.h: Sort headers.
1604 * extension.c: Sort headers.
1605 * extension-priv.h: Sort headers.
1606 * expprint.c: Sort headers.
1607 * exec.h: Sort headers.
1608 * exec.c: Sort headers.
1609 * exceptions.c: Sort headers.
1610 * event-top.c: Sort headers.
1611 * event-loop.c: Sort headers.
1612 * eval.c: Sort headers.
1613 * elfread.c: Sort headers.
1614 * dwarf2read.h: Sort headers.
1615 * dwarf2read.c: Sort headers.
1616 * dwarf2loc.c: Sort headers.
1617 * dwarf2expr.h: Sort headers.
1618 * dwarf2expr.c: Sort headers.
1619 * dwarf2-frame.c: Sort headers.
1620 * dwarf2-frame-tailcall.c: Sort headers.
1621 * dwarf-index-write.h: Sort headers.
1622 * dwarf-index-write.c: Sort headers.
1623 * dwarf-index-common.c: Sort headers.
1624 * dwarf-index-cache.h: Sort headers.
1625 * dwarf-index-cache.c: Sort headers.
1626 * dummy-frame.c: Sort headers.
1627 * dtrace-probe.c: Sort headers.
1628 * disasm.h: Sort headers.
1629 * disasm.c: Sort headers.
1630 * disasm-selftests.c: Sort headers.
1631 * dictionary.c: Sort headers.
1632 * dicos-tdep.c: Sort headers.
1633 * demangle.c: Sort headers.
1634 * dcache.h: Sort headers.
1635 * dcache.c: Sort headers.
1636 * darwin-nat.h: Sort headers.
1637 * darwin-nat.c: Sort headers.
1638 * darwin-nat-info.c: Sort headers.
1639 * d-valprint.c: Sort headers.
1640 * d-namespace.c: Sort headers.
1641 * d-lang.c: Sort headers.
1642 * ctf.c: Sort headers.
1643 * csky-tdep.c: Sort headers.
1644 * csky-linux-tdep.c: Sort headers.
1645 * cris-tdep.c: Sort headers.
1646 * cris-linux-tdep.c: Sort headers.
1647 * cp-valprint.c: Sort headers.
1648 * cp-support.c: Sort headers.
1649 * cp-namespace.c: Sort headers.
1650 * cp-abi.c: Sort headers.
1651 * corelow.c: Sort headers.
1652 * corefile.c: Sort headers.
1653 * continuations.c: Sort headers.
1654 * completer.h: Sort headers.
1655 * completer.c: Sort headers.
1656 * complaints.c: Sort headers.
1657 * coffread.c: Sort headers.
1658 * coff-pe-read.c: Sort headers.
1659 * cli-out.h: Sort headers.
1660 * cli-out.c: Sort headers.
1661 * charset.c: Sort headers.
1662 * c-varobj.c: Sort headers.
1663 * c-valprint.c: Sort headers.
1664 * c-typeprint.c: Sort headers.
1665 * c-lang.c: Sort headers.
1666 * buildsym.c: Sort headers.
1667 * buildsym-legacy.c: Sort headers.
1668 * build-id.h: Sort headers.
1669 * build-id.c: Sort headers.
1670 * btrace.c: Sort headers.
1671 * bsd-uthread.c: Sort headers.
1672 * breakpoint.h: Sort headers.
1673 * breakpoint.c: Sort headers.
1674 * break-catch-throw.c: Sort headers.
1675 * break-catch-syscall.c: Sort headers.
1676 * break-catch-sig.c: Sort headers.
1677 * blockframe.c: Sort headers.
1678 * block.c: Sort headers.
1679 * bfin-tdep.c: Sort headers.
1680 * bfin-linux-tdep.c: Sort headers.
1681 * bfd-target.c: Sort headers.
1682 * bcache.c: Sort headers.
1683 * ax-general.c: Sort headers.
1684 * ax-gdb.h: Sort headers.
1685 * ax-gdb.c: Sort headers.
1686 * avr-tdep.c: Sort headers.
1687 * auxv.c: Sort headers.
1688 * auto-load.c: Sort headers.
1689 * arm-wince-tdep.c: Sort headers.
1690 * arm-tdep.c: Sort headers.
1691 * arm-symbian-tdep.c: Sort headers.
1692 * arm-pikeos-tdep.c: Sort headers.
1693 * arm-obsd-tdep.c: Sort headers.
1694 * arm-nbsd-tdep.c: Sort headers.
1695 * arm-nbsd-nat.c: Sort headers.
1696 * arm-linux-tdep.c: Sort headers.
1697 * arm-linux-nat.c: Sort headers.
1698 * arm-fbsd-tdep.c: Sort headers.
1699 * arm-fbsd-nat.c: Sort headers.
1700 * arm-bsd-tdep.c: Sort headers.
1701 * arch-utils.c: Sort headers.
1702 * arc-tdep.c: Sort headers.
1703 * arc-newlib-tdep.c: Sort headers.
1704 * annotate.h: Sort headers.
1705 * annotate.c: Sort headers.
1706 * amd64-windows-tdep.c: Sort headers.
1707 * amd64-windows-nat.c: Sort headers.
1708 * amd64-tdep.c: Sort headers.
1709 * amd64-sol2-tdep.c: Sort headers.
1710 * amd64-obsd-tdep.c: Sort headers.
1711 * amd64-obsd-nat.c: Sort headers.
1712 * amd64-nbsd-tdep.c: Sort headers.
1713 * amd64-nbsd-nat.c: Sort headers.
1714 * amd64-nat.c: Sort headers.
1715 * amd64-linux-tdep.c: Sort headers.
1716 * amd64-linux-nat.c: Sort headers.
1717 * amd64-fbsd-tdep.c: Sort headers.
1718 * amd64-fbsd-nat.c: Sort headers.
1719 * amd64-dicos-tdep.c: Sort headers.
1720 * amd64-darwin-tdep.c: Sort headers.
1721 * amd64-bsd-nat.c: Sort headers.
1722 * alpha-tdep.c: Sort headers.
1723 * alpha-obsd-tdep.c: Sort headers.
1724 * alpha-nbsd-tdep.c: Sort headers.
1725 * alpha-mdebug-tdep.c: Sort headers.
1726 * alpha-linux-tdep.c: Sort headers.
1727 * alpha-linux-nat.c: Sort headers.
1728 * alpha-bsd-tdep.c: Sort headers.
1729 * alpha-bsd-nat.c: Sort headers.
1730 * aix-thread.c: Sort headers.
1731 * agent.c: Sort headers.
1732 * addrmap.c: Sort headers.
1733 * ada-varobj.c: Sort headers.
1734 * ada-valprint.c: Sort headers.
1735 * ada-typeprint.c: Sort headers.
1736 * ada-tasks.c: Sort headers.
1737 * ada-lang.c: Sort headers.
1738 * aarch64-tdep.c: Sort headers.
1739 * aarch64-ravenscar-thread.c: Sort headers.
1740 * aarch64-newlib-tdep.c: Sort headers.
1741 * aarch64-linux-tdep.c: Sort headers.
1742 * aarch64-linux-nat.c: Sort headers.
1743 * aarch64-fbsd-tdep.c: Sort headers.
1744 * aarch64-fbsd-nat.c: Sort headers.
1745 * aarch32-linux-nat.c: Sort headers.
1746
17472019-04-04 Tom Tromey <tom@tromey.com>
1748
1749 * varobj.c (varobj_create): Update.
1750 * rust-exp.y (struct rust_parser) <update_innermost_block,
1751 lookup_symbol>: New methods.
1752 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
1753 Rename.
1754 (rust_parser::rust_lookup_type)
1755 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1756 * printcmd.c (display_command, do_one_display): Update.
1757 * parser-defs.h (struct parser_state) <parser_state>: Add
1758 "tracker" parameter.
1759 (block_tracker): New member.
1760 (class innermost_block_tracker) <innermost_block_tracker>: Add
1761 "types" parameter.
1762 <reset>: Remove method.
1763 (innermost_block): Don't declare.
1764 (null_post_parser): Update.
1765 * parse.c (innermost_block): Remove global.
1766 (write_dollar_variable): Update.
1767 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
1768 Remove "tracker_types" parameter.
1769 (parse_expression): Add "tracker" parameter.
1770 (parse_expression_for_completion): Update.
1771 (null_post_parser): Add "tracker" parameter.
1772 * p-exp.y: Update rules.
1773 * m2-exp.y: Update rules.
1774 * language.h (struct language_defn) <la_post_parser>: Add
1775 "tracker" parameter.
1776 * go-exp.y: Update rules.
1777 * f-exp.y: Update rules.
1778 * expression.h (parse_expression, parse_exp_1): Add "tracker"
1779 parameter.
1780 * d-exp.y: Update rules.
1781 * c-exp.y: Update rules.
1782 * breakpoint.c (set_breakpoint_condition): Create an
1783 innermost_block_tracker.
1784 (watch_command_1): Likewise.
1785 * ada-lang.c (resolve): Add "tracker" parameter.
1786 (resolve_subexp): Likewise.
1787 * ada-exp.y (write_var_from_sym): Update.
1788
17892019-04-04 Tom Tromey <tom@tromey.com>
1790
1791 * type-stack.h: New file.
1792 * type-stack.c: New file.
1793 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
1794 type-stack.h.
1795 (insert_into_type_stack, insert_type, push_type, push_type_int)
1796 (insert_type_address_space, pop_type, pop_type_int)
1797 (pop_typelist, pop_type_stack, append_type_stack)
1798 (push_type_stack, get_type_stack, push_typelist)
1799 (follow_type_instance_flags, follow_types): Don't declare.
1800 * parse.c (type_stack): Remove global.
1801 (parse_exp_in_context): Update.
1802 (insert_into_type_stack, insert_type, push_type, push_type_int)
1803 (insert_type_address_space, pop_type, pop_type_int)
1804 (pop_typelist, pop_type_stack, append_type_stack)
1805 (push_type_stack, get_type_stack, push_typelist)
1806 (follow_type_instance_flags, follow_types): Remove (moved to
1807 type-stack.c).
1808 * f-exp.y (type_stack): New global.
1809 Update rules.
1810 (push_kind_type, f_parse): Update.
1811 * d-exp.y (type_stack): New global.
1812 Update rules.
1813 (d_parse): Update.
1814 * c-exp.y (struct c_parse_state) <type_stack>: New member.
1815 Update rules.
1816 * Makefile.in (COMMON_SFILES): Add type-stack.c.
1817 (HFILES_NO_SRCDIR): Add type-stack.h.
1818
18192019-04-04 Tom Tromey <tom@tromey.com>
1820
1821 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
1822 (rust_parser::convert_ast_to_expression, rust_parse)
1823 (rust_lex_test_completion, rust_lex_tests): Update.
1824 * parser-defs.h (struct expr_completion_state): New.
1825 (struct parser_state) <parser_state>: Add completion parameter.
1826 <mark_struct_expression, mark_completion_tag>: New methods.
1827 <parse_completion, m_completion_state>: New members.
1828 (prefixify_expression, null_post_parser): Update.
1829 (mark_struct_expression, mark_completion_tag): Don't declare.
1830 * parse.c (parse_completion, expout_last_struct)
1831 (expout_tag_completion_type, expout_completion_name): Remove
1832 globals.
1833 (parser_state::mark_struct_expression)
1834 (parser_state::mark_completion_tag): Now methods.
1835 (prefixify_expression): Add last_struct parameter.
1836 (prefixify_subexp): Likewise.
1837 (parse_exp_1): Update.
1838 (parse_exp_in_context): Add cstate parameter. Update.
1839 (parse_expression_for_completion): Create an
1840 expr_completion_state.
1841 (null_post_parser): Add "completion" parameter.
1842 * p-exp.y: Update rules.
1843 (yylex): Update.
1844 * language.h (struct language_defn) <la_post_parser>: Add
1845 "completing" parameter.
1846 * go-exp.y: Update rules.
1847 (lex_one_token): Update.
1848 * expression.h (parse_completion): Don't declare.
1849 * d-exp.y: Update rules.
1850 (lex_one_token): Update rules.
1851 * c-exp.y: Update rules.
1852 (lex_one_token): Update.
1853 * ada-lang.c (resolve): Add "parse_completion" parameter.
1854 (resolve_subexp): Likewise.
1855 (ada_resolve_function): Likewise.
1856
18572019-04-04 Tom Tromey <tom@tromey.com>
1858
1859 * parser-defs.h (struct parser_state) <start_arglist,
1860 end_arglist>: New methods.
1861 <arglist_len, m_funcall_chain>: New members.
1862 (arglist_len, start_arglist, end_arglist): Don't declare.
1863 * parse.c (arglist_len, funcall_chain): Remove global.
1864 (start_arglist, end_arglist): Remove functions.
1865 (parse_exp_in_context): Update.
1866 * p-exp.y: Update rules.
1867 * m2-exp.y: Update rules.
1868 * go-exp.y: Update rules.
1869 * f-exp.y: Update rules.
1870 * d-exp.y: Update rules.
1871 * c-exp.y: Update rules.
1872
18732019-04-04 Tom Tromey <tom@tromey.com>
1874
1875 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
1876 lex_operator, push_back>: New methods.
1877 Update all rules.
1878 (rust_parser::lex_hex, lex_escape): Rename and update.
1879 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
1880 (rust_parser::lex_operator): Rename and update.
1881 (rust_parser::lex_number, rustyylex, rustyyerror)
1882 (rust_lex_test_init, rust_lex_test_sequence)
1883 (rust_lex_test_push_back, rust_lex_tests): Update.
1884 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
1885 parameter.
1886 <lexptr, prev_lexptr>: New members.
1887 (lexptr, prev_lexptr): Don't declare.
1888 * parse.c (lexptr, prev_lexptr): Remove globals.
1889 (parse_exp_in_context): Update.
1890 * p-exp.y (yylex, yyerror): Update.
1891 * m2-exp.y (parse_number, yylex, yyerror): Update.
1892 * go-exp.y (lex_one_token, yyerror): Update.
1893 * f-exp.y (match_string_literal, yylex, yyerror): Update.
1894 * d-exp.y (lex_one_token, yyerror): Update.
1895 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
1896 (lex_one_token, yyerror): Update.
1897 * ada-lex.l (YY_INPUT): Update.
1898 (rewind_to_char): Update.
1899 * ada-exp.y (yyerror): Update.
1900
19012019-04-04 Tom Tromey <tom@tromey.com>
1902
1903 * rust-exp.y (rustyylex, rust_lex_tests): Update.
1904 * parser-defs.h (struct parser_state) <parser_state>: Add new
1905 parameter.
1906 <comma_terminates>: New member.
1907 (comma_terminates): Don't declare global.
1908 * parse.c (comma_terminates): Remove global.
1909 (parse_exp_in_context): Update.
1910 * p-exp.y (yylex): Update.
1911 * m2-exp.y (yylex): Update.
1912 * go-exp.y (lex_one_token): Update.
1913 * f-exp.y (yylex): Update.
1914 * d-exp.y (lex_one_token): Update.
1915 * c-exp.y (lex_one_token): Update.
1916 * ada-lex.l: Update.
1917
19182019-04-04 Tom Tromey <tom@tromey.com>
1919
1920 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
1921 (rustyylex, rust_lex_test_init, rust_lex_test_one)
1922 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
1923 * parser-defs.h (paren_depth): Don't declare.
1924 * parse.c (paren_depth): Remove global.
1925 (parse_exp_in_context): Update.
1926 * p-exp.y (paren_depth): New global.
1927 (pascal_parse): Initialize it.
1928 * m2-exp.y (paren_depth): New global.
1929 (m2_parse): Initialize it.
1930 * go-exp.y (paren_depth): New global.
1931 (go_parse): Initialize it.
1932 * f-exp.y (paren_depth): New global.
1933 (f_parse): Initialize it.
1934 * d-exp.y (paren_depth): New global.
1935 (d_parse): Initialize it.
1936 * c-exp.y (paren_depth): New global.
1937 (c_parse): Initialize it.
1938 * ada-lex.l (paren_depth): New global.
1939 (lexer_init): Initialize it.
1940
19412019-04-04 Tom Tromey <tom@tromey.com>
1942
1943 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
1944 (rust_parser::convert_ast_to_type)
1945 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
1946 * parser-defs.h (struct parser_state) <parser_state>: Add
1947 parameters. Initialize new members.
1948 <expression_context_block, expression_context_pc>: New members.
1949 * parse.c (expression_context_block, expression_context_pc):
1950 Remove globals.
1951 (parse_exp_in_context): Update.
1952 * p-exp.y: Update all rules.
1953 (yylex): Update.
1954 * m2-exp.y: Update all rules.
1955 (yylex): Update.
1956 * go-exp.y (yylex): Update.
1957 * f-exp.y (yylex): Update.
1958 * d-exp.y: Update all rules.
1959 (yylex): Update.
1960 * c-exp.y: Update all rules.
1961 (lex_one_token, classify_name, yylex, c_parse): Update.
1962 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
1963
19642019-04-04 Tom Tromey <tom@tromey.com>
1965
1966 * gdbarch.h, gdbarch.c: Rebuild.
1967 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
1968 * stap-probe.h:
1969 (struct stap_parse_info): Replace "parser_state" with
1970 "expr_builder".
1971 * parser-defs.h (struct expr_builder): Rename from "parser_state".
1972 (parser_state): New class.
1973 * parse.c (expr_builder): Rename.
1974 (expr_builder::release): Rename.
1975 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1976 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1977 (write_exp_elt_longcst, write_exp_elt_floatcst)
1978 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1979 (write_exp_string_vector, write_exp_bitstring)
1980 (write_exp_msymbol, mark_struct_expression)
1981 (write_dollar_variable)
1982 (insert_type_address_space, increase_expout_size): Replace
1983 "parser_state" with "expr_builder".
1984 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
1985 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
1986 "parser_state" with "expr_builder".
1987
19882019-04-04 Tom Tromey <tom@tromey.com>
1989
1990 * rust-exp.y: Replace "parse_language" with method call.
1991 * p-exp.y:
1992 (yylex): Replace "parse_language" with method call.
1993 * m2-exp.y:
1994 (yylex): Replace "parse_language" with method call.
1995 * go-exp.y (classify_name): Replace "parse_language" with method
1996 call.
1997 * f-exp.y (yylex): Replace "parse_language" with method call.
1998 * d-exp.y (lex_one_token): Replace "parse_language" with method
1999 call.
2000 * c-exp.y:
2001 (lex_one_token, classify_name, yylex): Replace "parse_language"
2002 with method call.
2003 * ada-exp.y (find_primitive_type, type_char)
2004 (type_system_address): Replace "parse_language" with method call.
2005
20062019-04-04 Tom Tromey <tom@tromey.com>
2007
2008 * rust-exp.y: Replace "parse_gdbarch" with method call.
2009 * parse.c (write_dollar_variable, insert_type_address_space):
2010 Replace "parse_gdbarch" with method call.
2011 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
2012 call.
2013 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
2014 call.
2015 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
2016 "parse_gdbarch" with method call.
2017 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
2018 with method call.
2019 * f-exp.y (parse_type, parse_f_type, yylex): Replace
2020 "parse_gdbarch" with method call.
2021 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
2022 "parse_gdbarch" with method call.
2023 * c-exp.y (parse_type, parse_number, classify_name): Replace
2024 "parse_gdbarch" with method call.
2025 * ada-lex.l: Replace "parse_gdbarch" with method call.
2026 * ada-exp.y (parse_type, find_primitive_type, type_char)
2027 (type_system_address): Replace "parse_gdbarch" with method call.
2028
20292019-04-04 Tom Tromey <tom@tromey.com>
2030
2031 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2032 * stap-probe.c (stap_parse_argument): Update.
2033 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
2034 initial_size parameter.
2035 * rust-exp.y (rust_lex_tests): Update.
2036 * parse.c (parser_state): Update.
2037 (parse_exp_in_context): Update.
2038 * parser-defs.h (struct parser_state) <parser_state>: Remove
2039 "initial_size" parameter.
2040
20412019-04-04 Tom Tromey <tom@tromey.com>
2042
2043 * parser-defs.h (increase_expout_size): Don't declare.
2044 * parse.c (increase_expout_size): Now static.
2045
20462019-04-04 Thomas Schwinge <thomas@codesourcery.com>
2047
2048 * gnu-nat.c (gnu_nat_target::wait): Fix
2049 target_waitstatus_to_string call.
2050
20512019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2052
2053 * eval.c (evaluate_subexp_standard): Handle internal functions
2054 during Fortran function call handling.
2055
20562019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2057
2058 * NEWS: Mention new internal functions.
2059 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
2060 (read_base_type): Use dwarf2_init_complex_target_type.
2061 * value.c (creal_internal_fn): New function.
2062 (cimag_internal_fn): New function.
2063 (_initialize_values): Register new internal functions.
2064
20652019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2066
2067 * infrun.c (stop_all_threads): If debug_infrun, always
2068 trace the wait status after wait_one, using
2069 target_waitstatus_to_string and target_pid_to_str.
2070 (handle_inferior_event): Replace various trace of
2071 wait status kind by a single trace.
2072 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
2073 wait status kind image by target_waitstatus_to_string.
2074 * target/waitstatus.c (target_waitstatus_to_string): Fix
2075 obsolete comment.
2076
20772019-04-01 Tom Tromey <tromey@adacore.com>
2078
2079 PR symtab/23331:
2080 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
2081
20822019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
2083 Pedro Alves <palves@redhat.com>
2084
2085 * top.c (quit_force): Call 'finalize_values'.
2086 * value.c (finalize_values): New function.
2087 * value.h (finalize_values): Declare.
2088
20892019-03-30 Eli Zaretskii <eliz@gnu.org>
2090
2091 * NEWS: Announce $_gdb_major and $_gdb_minor.
2092
2093 * top.c (init_gdb_version_vars): New function.
2094 (gdb_init): Call init_gdb_version_vars.
2095
20962019-03-29 Tom Tromey <tromey@adacore.com>
2097
2098 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
2099 help text. Remove dead code.
2100
21012019-03-29 Keith Seitz <keiths@redhat.com>
2102
2103 From Siddhesh Poyarekar:
2104 * f-lang.h (f77_get_upperbound): Return LONGEST.
2105 (f77_get_lowerbound): Likewise.
2106 * f-typeprint.c (f_type_print_varspec_suffix): Expand
2107 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
2108 print them.
2109 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
2110 plongest to format print it.
2111 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
2112 (f77_get_upperbound): Likewise.
2113 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
2114 LOWER_BOUND to LONGEST.
2115 (f77_create_arrayprint_offset_tbl): Likewise.
2116
21172019-03-29 Keith Seitz <keiths@redhat.com>
2118
2119 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2120 %s/pulongest for TYPE_LENGTH instead of %d in format
2121 strings.
2122 * ada-typerint.c (ada_print_type): Likewise.
2123 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
2124 * compile/compile-c-support.c (generate_register_struct): Likewise.
2125 * gdbtypes.c (recursive_dump_type): Likewise.
2126 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
2127 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
2128 instead of %d in format strings.
2129 * riscv-tdep.c (riscv_type_alignment): Cast second argument
2130 to std::min to ULONGEST.
2131 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
2132 instead of %d in format strings.
2133 * tracepoint.c (info_scope_command): Likewise.
2134 * typeprint.c (print_offset_data::update)
2135 (print_offset_data::finish): Likewise.
2136 * xtensa-tdep.c (xtensa_store_return_value)
2137 (xtensa_push_dummy_call): Likewise.
2138
21392019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
2140
2141 * windows-nat.c (display_selector): Fixed format specifications
2142 for 64-bit Cygwin.
2143
21442019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2145
2146 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
2147
21482019-03-28 Sandra Loosemore <sandra@codesourcery.com>
2149
2150 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
2151 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
2152 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
2153 (nios2_linux_init_abi): Install it.
2154
21552019-03-28 Alan Hayward <alan.hayward@arm.com>
2156
2157 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
2158
21592019-03-28 Alan Hayward <alan.hayward@arm.com>
2160
2161 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
2162
21632019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2164 Tom Tromey <tromey@adacore.com>
2165
2166 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
2167
21682019-03-26 Joel Brobecker <brobecker@adacore.com>
2169
2170 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
2171 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
2172 method to compute the bounds of range types. Also print "[evaluated]"
2173 if the bounds' values come from a dynamic evaluation.
2174
21752019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
2176
2177 * cp-valprint.c (cp_print_value_fields): Don't print trailing
2178 whitespace when pretty printing is on.
2179
21802019-03-26 Alan Hayward <alan.hayward@arm.com>
2181
2182 * ppc-linux-nat.c: Add include.
2183
21842019-03-26 Alan Hayward <alan.hayward@arm.com>
2185
2186 * NEWS: Mention AArch64 Pointer Authentication.
2187
21882019-03-26 Alan Hayward <alan.hayward@arm.com>
2189
2190 * arm-linux-nat.c: Add include.
2191
21922019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
2193
2194 * source-cache.c (source_cache::get_source_lines): Re-read
2195 fullname after calling open_source_file.
2196
21972019-03-25 John Baldwin <jhb@FreeBSD.org>
2198
2199 * NEWS: Mention TLS support for FreeBSD.
2200
22012019-03-25 Tom Tromey <tromey@adacore.com>
2202
2203 * minsyms.c (BUNCH_SIZE): Update comment.
2204 (~minimal_symbol_reader): Remove old comment.
2205 (compact_minimal_symbols): Update comment.
2206 (minimal_symbol_reader::install): Remove old comment. Update
2207 other comments.
2208
22092019-03-25 Alan Hayward <alan.hayward@arm.com>
2210
2211 * s390-linux-nat.c: Add include.
2212
22132019-03-25 Alan Hayward <alan.hayward@arm.com>
2214
2215 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2216 Call linux_get_hwcap.
2217 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2218 Likewise.
2219 (aarch64_linux_get_hwcap): Remove function.
2220 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
2221 declaration.
2222 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
2223 linux_get_hwcap.
2224 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2225 * linux-tdep.c (linux_get_hwcap): Add function.
2226 (linux_get_hwcap2): Likewise.
2227 * linux-tdep.h (linux_get_hwcap): Add declaration.
2228 (linux_get_hwcap2): Likewise.
2229 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
2230 (ppc_linux_get_hwcap2): Likewise.
2231 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
2232 linux_get_hwcap.
2233 (ppc_linux_nat_target::insert_watchpoint): Likewise.
2234 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
2235 (ppc_linux_nat_target::read_description): Likewise.
2236 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
2237 * s390-linux-nat.c: Likewise.
2238 * s390-linux-tdep.c (s390_core_read_description): Likewise.
2239
22402019-03-24 Tom Tromey <tom@tromey.com>
2241
2242 * ada-lang.c (standard_lookup): Simplify initialization.
2243 (ada_lookup_symbol_nonlocal): Simplify return.
2244 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
2245 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
2246 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
2247 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
2248 initialization.
2249 * solib.c (solib_global_lookup): Simplify.
2250 * symtab.c (null_block_symbol): Remove.
2251 (symbol_cache_lookup): Simplify returns.
2252 (lookup_language_this): Simplify returns.
2253 (lookup_symbol_aux): Simplify return.
2254 (lookup_local_symbol): Simplify returns.
2255 (lookup_global_symbol_from_objfile): Simplify return.
2256 (lookup_symbol_in_objfile_symtabs)
2257 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
2258 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
2259 (lookup_static_symbol, lookup_global_symbol): Simplify return.
2260 * cp-namespace.c (cp_lookup_bare_symbol)
2261 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
2262 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
2263 (cp_lookup_nested_symbol): Don't use null_block_symbol.
2264 (cp_lookup_symbol_via_imports): Simplify initialization.
2265 (find_symbol_in_baseclass): Likewise.
2266 * symtab.h (null_block_symbol): Remove.
2267 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
2268 (d_lookup_nested_symbol, d_lookup_symbol_imports)
2269 (d_lookup_symbol_module): Likewise.
2270 (find_symbol_in_baseclass): Simplify initialization.
2271
22722019-03-24 Tom Tromey <tom@tromey.com>
2273
2274 * expression.h: Don't include symtab.h.
2275 (struct block): Forward declare.
2276
22772019-03-24 Tom Tromey <tom@tromey.com>
2278
2279 * c-exp.y (typebase): Remove casts.
2280 * gdbtypes.c (lookup_unsigned_typename, )
2281 (lookup_signed_typename): Remove cast.
2282 * eval.c (parse_to_comma_and_eval): Remove cast.
2283 * parse.c (write_dollar_variable): Remove cast.
2284 * block.h (struct block) <superblock>: Now const.
2285 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
2286 * psymtab.c (psym_map_matching_symbols): Make "block" const.
2287 (map_block): Make "block" const.
2288 * symfile.h (struct quick_symbol_functions)
2289 <map_matching_symbols>: Constify block argument to "callback".
2290 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
2291 const.
2292 (find_pc_sect_compunit_symtab): Make "b" const.
2293 (find_symbol_at_address): Likewise.
2294 (search_symbols): Likewise.
2295 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
2296 (dw2_debug_names_lookup_symbol): Likewise.
2297 (dw2_map_matching_symbols): Update.
2298 * p-valprint.c (pascal_val_print): Remove "block".
2299 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
2300 (aux_add_nonlocal_symbols): Make "block" const.
2301 (resolve_subexp): Remove cast.
2302 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
2303 const.
2304 (iterate_over_file_blocks): Likewise.
2305 * f-exp.y (%union) <bval>: Remove.
2306 * coffread.c (patch_opaque_types): Make "b" const.
2307 * spu-tdep.c (spu_catch_start): Make "block" const.
2308 * c-valprint.c (print_unpacked_pointer): Remove "block".
2309 * symmisc.c (dump_symtab_1): Make "b" const.
2310 (block_depth): Make "block" const.
2311 * d-exp.y (%union) <bval>: Remove.
2312 * cp-support.h (cp_lookup_rtti_type): Update.
2313 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
2314 * psymtab.c (psym_lookup_symbol): Make "block" const.
2315 (maintenance_check_psymtabs): Make "b" const.
2316 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
2317 (enumerate_locals, enumerate_args): Update.
2318 * python/py-symtab.c (stpy_global_block): Make "block" const.
2319 (stpy_static_block): Likewise.
2320 * inline-frame.c (block_starting_point_at): Make "new_block"
2321 const.
2322 * block.c (find_block_in_blockvector): Make return type const.
2323 (blockvector_for_pc_sect): Make "b" const.
2324 (find_block_in_blockvector): Make "b" const.
2325
23262019-03-23 Tom Tromey <tom@tromey.com>
2327
2328 * varobj.c (varobj_create): Update.
2329 * symfile.c (clear_symtab_users): Don't reset innermost_block.
2330 * printcmd.c (display_command, do_one_display): Don't reset
2331 innermost_block.
2332 * parser-defs.h (enum innermost_block_tracker_type): Move to
2333 expression.h.
2334 (innermost_block): Update comment.
2335 * parse.c (parse_exp_1): Add tracker_types parameter.
2336 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
2337 tracker_types parameter. Reset innermost_block.
2338 (parse_exp_in_context): Remove.
2339 (parse_expression_for_completion): Update.
2340 * objfiles.c (~objfile): Don't reset expression_context_block or
2341 innermost_block.
2342 * expression.h (enum innermost_block_tracker_type): Move from
2343 parser-defs.h.
2344 (parse_exp_1): Add tracker_types parameter.
2345 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
2346 reset innermost_block.
2347
23482019-03-23 Tom Tromey <tom@tromey.com>
2349
2350 * objfiles.h: Include bcache.h.
2351
23522019-03-23 Tom Tromey <tom@tromey.com>
2353
2354 * linespec.c (get_current_search_block): Use
2355 scoped_restore_current_language.
2356 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
2357
23582019-03-22 Alan Hayward <alan.hayward@arm.com>
2359 Jiong Wang <jiong.wang@arm.com>
2360
2361 * aarch64-linux-tdep.c
2362 (aarch64_linux_iterate_over_regset_sections): Check for pauth
2363 section.
2364 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
2365
23662019-03-22 Alan Hayward <alan.hayward@arm.com>
2367 Jiong Wang <jiong.wang@arm.com>
2368
2369 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
2370 instructions.
2371 (aarch64_analyze_prologue_test): Add PACIASP test.
2372 (aarch64_prologue_prev_register): Unmask PC value.
2373
23742019-03-22 Alan Hayward <alan.hayward@arm.com>
2375 Jiong Wang <jiong.wang@arm.com>
2376
2377 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
2378 (aarch64_dwarf2_prev_register): Unmask PC value.
2379 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
2380 (aarch64_execute_dwarf_cfa_vendor_op): Check for
2381 DW_CFA_AARCH64_negate_ra_state.
2382 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
2383
23842019-03-22 Alan Hayward <alan.hayward@arm.com>
2385 Jiong Wang <jiong.wang@arm.com>
2386
2387 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
2388 registers.
2389 (aarch64_pseudo_register_name): Likewise.
2390 (aarch64_pseudo_register_type): Likewise.
2391 (aarch64_pseudo_register_reggroup_p): Likewise.
2392 (aarch64_gdbarch_init): Add pauth registers.
2393 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
2394 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
2395 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
2396 (struct gdbarch_tdep): Add regnum for ra_state.
2397
23982019-03-22 Alan Hayward <alan.hayward@arm.com>
2399 Jiong Wang <jiong.wang@arm.com>
2400
2401 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
2402
24032019-03-22 Alan Hayward <alan.hayward@arm.com>
2404 Jiong Wang <jiong.wang@arm.com>
2405
2406 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
2407 function.
2408 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
2409 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
2410 (aarch64_gdbarch_init): Add puth registers.
2411 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
2412 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
2413 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
2414
24152019-03-22 Alan Hayward <alan.hayward@arm.com>
2416 Jiong Wang <jiong.wang@arm.com>
2417
2418 * aarch64-linux-nat.c
2419 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
2420 * aarch64-linux-tdep.c
2421 (aarch64_linux_core_read_description): Likewise.
2422 (aarch64_linux_get_hwcap): New function.
2423 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
2424 (aarch64_linux_get_hwcap): New declaration.
2425
24262019-03-22 Alan Hayward <alan.hayward@arm.com>
2427 Jiong Wang <jiong.wang@arm.com>
2428
2429 * aarch64-linux-nat.c
2430 (aarch64_linux_nat_target::read_description): Add pauth param.
2431 * aarch64-linux-tdep.c
2432 (aarch64_linux_core_read_description): Likewise.
2433 * aarch64-tdep.c (struct target_desc): Add in pauth.
2434 (aarch64_read_description): Add pauth param.
2435 (aarch64_gdbarch_init): Likewise.
2436 * aarch64-tdep.h (aarch64_read_description): Likewise.
2437 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2438 * arch/aarch64.h (aarch64_create_target_description): Likewise.
2439 * features/Makefile: Add new files.
2440 * features/aarch64-pauth.c: New file.
2441 * features/aarch64-pauth.xml: New file.
2442
24432019-03-20 Tom Tromey <tromey@adacore.com>
2444
2445 * infrun.c (handle_inferior_event): Rename from
2446 handle_inferior_event_1. Create a scoped_value_mark.
2447 (handle_inferior_event): Remove.
2448
24492019-03-19 Tom Tromey <tromey@adacore.com>
2450
2451 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
2452 * infrun.h (print_stop_event): Add "displays" parameter.
2453 * infrun.c (print_stop_event): Add "displays" parameter.
2454
24552019-03-19 Pedro Alves <palves@redhat.com>
2456
2457 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
2458 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
2459 to -1. Fix TABs vs spaces.
2460 (tui_ui_out::tui_ui_out): Don't initialize fields here.
2461 * tui/tui-out.h (tui_ui_out) Add intro comments.
2462 <m_line, m_start_of_line>: In-class initialize, and add describing
2463 comment.
2464
24652019-03-18 Alan Hayward <alan.hayward@arm.com>
2466
2467 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
2468 variable names.
2469 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
2470
24712019-03-18 Pedro Alves <palves@redhat.com>
2472 Eli Zaretskii <eliz@gnu.org>
2473
2474 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
2475 m_line and m_start_of_line.
2476
24772019-03-18 Eli Zaretskii <eliz@gnu.org>
2478
2479 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
2480 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
2481 it returns a newline. This fixes a regression in TU mode, whereby
2482 the next line is output on the same screen line as the user input.
2483
24842019-03-18 Tom Tromey <tromey@adacore.com>
2485
2486 * minsyms.c (minimal_symbol_reader::install): Remove call to
2487 obstack_blank.
2488
24892019-03-18 Pedro Alves <palves@redhat.com>
2490
2491 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
2492 New globals.
2493 (apply_style): New, factored out from ...
2494 (apply_ansi_escape): ... this. Handle reverse video mode.
2495 (tui_set_reverse_mode): New function.
2496 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
2497 * tui/tui-winsource.c (tui_show_source_line): Use
2498 tui_set_reverse_mode instead of setting A_STANDOUT.
2499 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
2500 New setter methods.
2501
25022019-03-18 Hannes Domani <ssbssa@yahoo.de>
2503
2504 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
2505 Handle tabs.
2506
25072019-03-18 Tom Tromey <tromey@adacore.com>
2508
2509 * ada-lang.c (empty_array): Add "high" parameter.
2510 (ada_evaluate_subexp): Update.
2511
25122019-03-17 Sergei Trofimovich <siarheit@google.com>
2513
2514 * unittests/string_view-selftests.c: Define
2515 _initialize_string_view_selftests unconditionally.
2516
25172019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2518
2519 PR gdb/24350
2520 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
2521
25222019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
2523
2524 PR gdb/24351
2525 * windows-nat.c (display_selector): Fix format specifiers.
2526
25272019-03-17 Eli Zaretskii <eliz@gnu.org>
2528
2529 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
2530 tui_refill_source_window instead of tui_refresh_win, to update the
2531 current execution line. This fixes redisplay of the current line
2532 when stepping through the code with "next" or "step".
2533
25342019-03-16 Eli Zaretskii <eliz@gnu.org>
2535
2536 * source-cache.c (source_cache::get_source_lines): Call
2537 find_source_lines to initialize s->nlines. This fixes vertical
2538 scrolling of TUI source window when the DOWN arrow is pressed.
2539
25402019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2541
2542 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
2543 linux-thread-db.c (_initialize_thread_db): Likewise.
2544
25452019-03-16 Eli Zaretskii <eliz@gnu.org>
2546
2547 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
2548 wclrtoeol in tui_show_source_line". This reverts changes made in
2549 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
2550
25512019-03-15 Tom Tromey <tom@tromey.com>
2552
2553 * symtab.h (struct minimal_symbol): Derive from
2554 general_symbol_info.
2555 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
2556 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2557 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2558 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2559 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
2560 (MSYMBOL_SEARCH_NAME): Update.
2561 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
2562 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
2563 * minsyms.c (minimal_symbol_reader::record_full): Update.
2564
25652019-03-15 Tom Tromey <tom@tromey.com>
2566
2567 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
2568
25692019-03-15 Tom Tromey <tom@tromey.com>
2570
2571 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
2572 unique_xmalloc_ptr.
2573 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
2574 Update.
2575 * minsyms.c (lookup_minimal_symbol_by_pc_section)
2576 (build_minimal_symbol_hash_tables)
2577 (minimal_symbol_reader::install): Update.
2578
25792019-03-15 Tom Tromey <tom@tromey.com>
2580
2581 * symtab.c (create_demangled_names_hash): Update.
2582 (symbol_set_names): Update.
2583 * objfiles.h (struct objfile_per_bfd_storage)
2584 <demangled_names_hash>: Now an htab_up.
2585 * objfiles.c (objfile_per_bfd_storage): Simplify.
2586
25872019-03-15 Tom Tromey <tom@tromey.com>
2588
2589 * objfiles.h (struct objfile_per_bfd_storage): Declare
2590 destructor.
2591 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
2592 New.
2593 (get_objfile_bfd_data): Use new. Don't initialize
2594 language_of_main.
2595 (free_objfile_per_bfd_storage): Remove.
2596 (objfile_bfd_data_free, objfile::~objfile): Use delete.
2597
25982019-03-15 Tom Tromey <tom@tromey.com>
2599
2600 * symfile.c (reread_symbols): Update.
2601 * objfiles.c (objfile::objfile): Update.
2602 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
2603 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
2604 comment.
2605 (minimal_symbol_reader::install): Update.
2606 (terminate_minimal_symbol_table): Remove.
2607 * jit.c (jit_object_close_impl): Update.
2608
26092019-03-15 Tom Tromey <tom@tromey.com>
2610
2611 * minsyms.c (minimal_symbol_reader::record_full): Remove some
2612 initializations.
2613
26142019-03-15 Tom Tromey <tom@tromey.com>
2615
2616 * objfiles.h (struct objfile_per_bfd_storage)
2617 <demangled_hash_languages>: Now a bitset.
2618 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
2619 (lookup_minimal_symbol): Update.
2620
26212019-03-15 Tom Tromey <tom@tromey.com>
2622
2623 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
2624 Don't return the symbol.
2625 * coffread.c (record_minimal_symbol): Use record_full.
2626
26272019-03-14 Eli Zaretskii <eliz@gnu.org>
2628
2629 The MS-Windows port of ncurses fails to switch to a color pair if
2630 one or both of the colors are the implicit default colors. This
2631 change records the default colors when TUI is initialized, and
2632 then specifies them explicitly when a color pair uses the default
2633 colors. This allows color styling in TUI mode on MS-Windows.
2634
2635 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
2636 ncurses_norm_attr.
2637 (tui_initialize_io) [__MINGW32__]: Record the default terminal
2638 colors in ncurses_norm_attr.
2639 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
2640 "none", replace it with the default color recorded in
2641 ncurses_norm_attr.
2642
26432019-03-14 Tom Tromey <tromey@adacore.com>
2644
2645 * source-cache.h (class source_cache) <get_source_lines>: Return
2646 std::string.
2647 * source-cache.c (source_cache::extract_lines): Handle case where
2648 first_pos==npos. Return std::string.
2649 (source_cache::get_source_lines): Update.
2650
26512019-03-14 Tom Tromey <tromey@adacore.com>
2652
2653 * NEWS: Add item for "style sources" commands.
2654 * source-cache.c (source_cache::get_source_lines): Check
2655 source_styling.
2656 * cli/cli-style.c (source_styling): New global.
2657 (_initialize_cli_style): Add "style sources" commands.
2658 (show_style_sources): New function.
2659 * cli/cli-style.h (source_styling): Declare.
2660
26612019-03-14 Pedro Alves <palves@redhat.com>
2662 Tom Tromey <tromey@adacore.com>
2663
2664 * tui/tui-winsource.h (tui_refill_source_window): Declare.
2665 * tui/tui-winsource.c (tui_refill_source_window): New function,
2666 from...
2667 (tui_horizontal_source_scroll): ... here. Move some logic.
2668 * cli/cli-style.c (set_style_enabled): Notify new observable.
2669 * tui/tui-hooks.c (tui_redisplay_source): New function.
2670 (tui_attach_detach_observers): Attach or detach
2671 tui_redisplay_source.
2672 * observable.h (source_styling_changed): New observable.
2673 * observable.c: Define source_styling_changed observable.
2674
26752019-03-13 Tom Tromey <tromey@adacore.com>
2676
2677 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
2678 (i386_gnu_nat_target::store_registers): Update.
2679 * target-debug.h (target_debug_print_std_string): New macro.
2680 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
2681 * windows-tdep.c (display_one_tib): Update.
2682 * tui/tui-stack.c (tui_make_status_line): Update.
2683 * top.c (print_inferior_quit_action): Update.
2684 * thread.c (thr_try_catch_cmd): Update.
2685 (add_thread_with_info): Update.
2686 (thread_target_id_str): Update.
2687 (thr_try_catch_cmd): Update.
2688 (thread_command): Update.
2689 (thread_find_command): Update.
2690 * record-btrace.c (record_btrace_target::info_record)
2691 (record_btrace_resume_thread, record_btrace_target::resume)
2692 (record_btrace_cancel_resume, record_btrace_step_thread)
2693 (record_btrace_target::wait, record_btrace_target::wait)
2694 (record_btrace_target::wait, record_btrace_target::stop): Update.
2695 * progspace.c (print_program_space): Update.
2696 * process-stratum-target.c
2697 (process_stratum_target::thread_address_space): Update.
2698 * linux-fork.c (linux_fork_mourn_inferior)
2699 (detach_checkpoint_command, info_checkpoints_command)
2700 (linux_fork_context): Update.
2701 (linux_fork_detach): Update.
2702 (class scoped_switch_fork_info): Update.
2703 (delete_checkpoint_command): Update.
2704 * infrun.c (follow_fork_inferior): Update.
2705 (follow_fork_inferior): Update.
2706 (proceed_after_vfork_done): Update.
2707 (handle_vfork_child_exec_or_exit): Update.
2708 (follow_exec): Update.
2709 (displaced_step_prepare_throw): Update.
2710 (displaced_step_restore): Update.
2711 (start_step_over): Update.
2712 (resume_1): Update.
2713 (clear_proceed_status_thread): Update.
2714 (proceed): Update.
2715 (print_target_wait_results): Update.
2716 (do_target_wait): Update.
2717 (context_switch): Update.
2718 (stop_all_threads): Update.
2719 (restart_threads): Update.
2720 (finish_step_over): Update.
2721 (handle_signal_stop): Update.
2722 (switch_back_to_stepped_thread): Update.
2723 (keep_going_pass_signal): Update.
2724 (print_exited_reason): Update.
2725 (normal_stop): Update.
2726 * inferior.c (inferior_pid_to_str): Change return type.
2727 (print_selected_inferior): Update.
2728 (add_inferior): Update.
2729 (detach_inferior): Update.
2730 * dummy-frame.c (fprint_dummy_frames): Update.
2731 * dcache.c (dcache_info_1): Update.
2732 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
2733 (btrace_fetch, btrace_clear): Update.
2734 * linux-tdep.c (linux_core_pid_to_str): Change return type.
2735 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
2736 type.
2737 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
2738 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
2739 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
2740 * gdbarch.c, gdbarch.h: Rebuild.
2741 * gdbarch.sh (core_pid_to_str): Change return type.
2742 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
2743 return type.
2744 (windows_nat_target::pid_to_str): Change return type.
2745 (windows_delete_thread): Update.
2746 (windows_nat_target::attach): Update.
2747 (windows_nat_target::files_info): Update.
2748 * target-delegates.c: Rebuild.
2749 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
2750 return type.
2751 (sol_thread_target::pid_to_str): Change return type.
2752 * remote.c (class remote_target) <pid_to_str>: Change return
2753 type.
2754 (remote_target::pid_to_str): Change return type.
2755 (extended_remote_target::attach, remote_target::remote_stop_ns)
2756 (remote_target::remote_notif_remove_queued_reply)
2757 (remote_target::push_stop_reply, remote_target::disable_btrace):
2758 Update.
2759 (extended_remote_target::attach): Update.
2760 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
2761 type.
2762 (gdbsim_target::pid_to_str): Change return type.
2763 * ravenscar-thread.c (struct ravenscar_thread_target)
2764 <pid_to_str>: Change return type.
2765 (ravenscar_thread_target::pid_to_str): Change return type.
2766 * procfs.c (class procfs_target) <pid_to_str>: Change return
2767 type.
2768 (procfs_target::pid_to_str): Change return type.
2769 (procfs_target::attach): Update.
2770 (procfs_target::detach): Update.
2771 (procfs_target::fetch_registers): Update.
2772 (procfs_target::store_registers): Update.
2773 (procfs_target::wait): Update.
2774 (procfs_target::files_info): Update.
2775 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
2776 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
2777 return type.
2778 (nto_procfs_target::pid_to_str): Change return type.
2779 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
2780 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
2781 return type.
2782 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
2783 (exit_lwp): Update.
2784 (attach_proc_task_lwp_callback, get_detach_signal)
2785 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
2786 (linux_nat_target::resume, wait_lwp, stop_callback)
2787 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
2788 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
2789 (linux_nat_wait_1, resume_stopped_resumed_lwps)
2790 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
2791 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
2792 type.
2793 (inf_ptrace_target::attach): Update.
2794 (inf_ptrace_target::files_info): Update.
2795 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
2796 type.
2797 (go32_nat_target::pid_to_str): Change return type.
2798 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
2799 (gnu_nat_target::wait): Update.
2800 (gnu_nat_target::wait): Update.
2801 (gnu_nat_target::resume): Update.
2802 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
2803 (fbsd_nat_target::wait): Update.
2804 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
2805 type.
2806 (darwin_nat_target::attach): Update.
2807 * corelow.c (class core_target) <pid_to_str>: Change return type.
2808 (core_target::pid_to_str): Change return type.
2809 * target.c (normal_pid_to_str): Change return type.
2810 (default_pid_to_str): Likewise.
2811 (target_pid_to_str): Change return type.
2812 (target_translate_tls_address): Update.
2813 (target_announce_detach): Update.
2814 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
2815 return type.
2816 (bsd_uthread_target::pid_to_str): Change return type.
2817 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
2818 type.
2819 (bsd_kvm_target::pid_to_str): Change return type.
2820 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
2821 return type.
2822 (aix_thread_target::pid_to_str): Change return type.
2823 * target.h (struct target_ops) <pid_to_str>: Change return type.
2824 (target_pid_to_str, normal_pid_to_str): Likewise.
2825 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
2826 type.
2827 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
2828 type.
2829 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
2830 return type.
2831 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
2832 type.
2833 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
2834 type.
2835 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
2836 return type.
2837
28382019-03-13 Simon Marchi <simon.marchi@ericsson.com>
2839
2840 * NEWS: Mention that the new default MI version is 3. Mention
2841 changes to the output of commands and events that deal with
2842 multi-location breakpoints.
2843 * breakpoint.c: Include "mi/mi-out.h".
2844 (print_one_breakpoint): Change output syntax if using MI version
2845 >= 3.
2846 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
2847 New.
2848 (mi_multi_location_breakpoint_output_fixed): New.
2849 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
2850 (mi_cmd_fix_multi_location_breakpoint_output): New.
2851 (mi_multi_location_breakpoint_output_fixed): New.
2852 * mi/mi-cmds.c (mi_cmds): Register command
2853 -fix-multi-location-breakpoint-output.
2854 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
2855 interpreter "mi".
2856
28572019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
2858
2859 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
2860 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
2861 instantiate mi_ui_out based on interpreter name.
2862 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
2863 * mi/mi-main.c (mi_load_progress): Likewise.
2864
28652019-03-12 John Baldwin <jhb@FreeBSD.org>
2866
2867 * NEWS: Combine separate "New targets" sections for 8.3.
2868
28692019-03-12 John Baldwin <jhb@FreeBSD.org>
2870
2871 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
2872 (ppcfbsd_init_abi): Install gdbarch
2873 "fetch_tls_load_module_address" and "get_thread_local_address"
2874 methods.
2875
28762019-03-12 John Baldwin <jhb@FreeBSD.org>
2877
2878 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
2879 (riscv_fbsd_init_abi): Install gdbarch
2880 "fetch_tls_load_module_address" and "get_thread_local_address"
2881 methods.
2882
28832019-03-12 John Baldwin <jhb@FreeBSD.org>
2884
2885 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
2886 (i386fbsd_init_abi): Install gdbarch
2887 "fetch_tls_load_module_address" and "get_thread_local_address"
2888 methods.
2889
28902019-03-12 John Baldwin <jhb@FreeBSD.org>
2891
2892 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
2893 (amd64fbsd_init_abi): Install gdbarch
2894 "fetch_tls_load_module_address" and "get_thread_local_address"
2895 methods.
2896
28972019-03-12 John Baldwin <jhb@FreeBSD.org>
2898
2899 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
2900 (struct fbsd_pspace_data): New type.
2901 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
2902 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
2903 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
2904 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
2905 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
2906
29072019-03-12 John Baldwin <jhb@FreeBSD.org>
2908
2909 * gdbtypes.c (lookup_struct_elt): New function.
2910 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
2911 * gdbtypes.h (struct struct_elt): New type.
2912 (lookup_struct_elt): New prototype.
2913
29142019-03-12 John Baldwin <jhb@FreeBSD.org>
2915
2916 * gdbtypes.c (lookup_struct_elt_type): Update comment and
2917 remove disabled code block.
2918
29192019-03-12 John Baldwin <jhb@FreeBSD.org>
2920
2921 * gdbarch.sh (get_thread_local_address): New method.
2922 * gdbarch.h, gdbarch.c: Regenerate.
2923 * target.c (target_translate_tls_address): Use
2924 gdbarch_get_thread_local_address if present instead of
2925 target::get_thread_local_address.
2926
29272019-03-12 John Baldwin <jhb@FreeBSD.org>
2928
2929 * target.h (target::get_thread_local_address): Update comment.
2930
29312019-03-12 John Baldwin <jhb@FreeBSD.org>
2932
2933 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
2934 objfile->separate_debug_objfile_backlink if not NULL.
2935
29362019-03-12 John Baldwin <jhb@FreeBSD.org>
2937
2938 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
2939 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
2940 (amd64bsd_store_inferior_registers): Likewise.
2941 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2942 Enable segment base registers.
2943 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
2944 PT_GETFSBASE and PT_GETGSBASE.
2945 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
2946 PT_SETGSBASE.
2947 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
2948 segment base registers.
2949 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2950
29512019-03-12 John Baldwin <jhb@FreeBSD.org>
2952
2953 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
2954 Update calls to i386_target_description to add 'segments'
2955 parameter.
2956 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
2957 add segment base registers.
2958 * arch/i386.c (i386_create_target_description): Add 'segments'
2959 parameter to enable segment base registers.
2960 * arch/i386.h (i386_create_target_description): Likewise.
2961 * features/i386/32bit-segments.xml: New file.
2962 * features/i386/32bit-segments.c: Generate.
2963 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
2964 call to i386_target_description to add 'segments' parameter.
2965 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
2966 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
2967 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
2968 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
2969 if feature is present.
2970 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
2971 Add 'segments' parameter to call to i386_target_description.
2972 (i386_target_description): Add 'segments' parameter to enable
2973 segment base registers.
2974 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
2975 to call to i386_target_description.
2976 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
2977 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
2978 Define I386_NUM_REGS.
2979 (i386_target_description): Add 'segments' parameter to enable
2980 segment base registers.
2981
29822019-03-12 Eli Zaretskii <eliz@gnu.org>
2983
2984 PR/24325
2985 * source-cache.c: #undef open and close, to avoid unresolved
2986 externals during linking.
2987
29882019-03-12 Tom Tromey <tromey@adacore.com>
2989
2990 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
2991 const. Add initializers.
2992 (_initialize_remote): Don't initialize ptid globals.
2993
29942019-03-12 Pedro Alves <palves@redhat.com>
2995
2996 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
2997
29982019-03-12 Pedro Alves <palves@redhat.com>
2999
3000 * cp-name-parser.y (main): Remove unused 'len' variable.
3001
30022019-03-12 Tom Tromey <tromey@adacore.com>
3003
3004 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
3005 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
3006
30072019-03-12 Tom Tromey <tromey@adacore.com>
3008
3009 * linux-nat.c (iterate_over_lwps): Update.
3010 (stop_callback): Remove parameter.
3011 (stop_wait_callback, detach_callback, resume_set_callback)
3012 (select_singlestep_lwp_callback, set_ignore_sigint)
3013 (status_callback, resumed_callback, resume_clear_callback)
3014 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
3015 data parameter.
3016 (linux_nat_target::detach, linux_nat_target::resume)
3017 (linux_stop_and_wait_all_lwps, select_event_lwp)
3018 (linux_nat_filter_event, linux_nat_wait_1)
3019 (linux_nat_target::kill, linux_nat_target::stop)
3020 (linux_nat_target::stop): Update.
3021 (linux_nat_resume_callback): Change type.
3022 (resume_stopped_resumed_lwps, count_events_callback)
3023 (select_event_lwp_callback): Likewise.
3024 (linux_stop_lwp, linux_nat_stop_lwp): Update.
3025 * arm-linux-nat.c (struct update_registers_data): Remove.
3026 (update_registers_callback): Change type.
3027 (arm_linux_insert_hw_breakpoint1): Update.
3028 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
3029 parameter.
3030 (x86_linux_dr_set_addr): Update.
3031 (x86_linux_dr_set_control): Update.
3032 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
3033 (iterate_over_lwps): Use gdb::function_view.
3034 * nat/aarch64-linux-hw-point.c (struct
3035 aarch64_dr_update_callback_param): Remove.
3036 (debug_reg_change_callback): Change type.
3037 (aarch64_notify_debug_reg_change): Update.
3038 * s390-linux-nat.c (s390_refresh_per_info): Update.
3039
30402019-03-11 Tom Tromey <tromey@adacore.com>
3041
3042 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
3043 redundant assignment to "this_cu".
3044
30452019-03-08 Simon Marchi <simon.marchi@efficios.com>
3046
3047 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
3048
30492019-03-08 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * gdbtypes.c (rank_one_type_parm_set): New function extracted
3052 from...
3053 (rank_one_type): ... this.
3054
30552019-03-08 Simon Marchi <simon.marchi@efficios.com>
3056
3057 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
3058 from...
3059 (rank_one_type): ... this.
3060
30612019-03-08 Simon Marchi <simon.marchi@efficios.com>
3062
3063 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
3064 from...
3065 (rank_one_type): ... this.
3066
30672019-03-08 Simon Marchi <simon.marchi@efficios.com>
3068
3069 * gdbtypes.c (rank_one_type_parm_float): New function extracted
3070 from...
3071 (rank_one_type): ... this.
3072
30732019-03-08 Simon Marchi <simon.marchi@efficios.com>
3074
3075 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
3076 from...
3077 (rank_one_type): ... this.
3078
30792019-03-08 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * gdbtypes.c (rank_one_type_parm_range): New function extracted
3082 from...
3083 (rank_one_type): ... this.
3084
30852019-03-08 Simon Marchi <simon.marchi@efficios.com>
3086
3087 * gdbtypes.c (rank_one_type_parm_char): New function extracted
3088 from...
3089 (rank_one_type): ... this.
3090
30912019-03-08 Simon Marchi <simon.marchi@efficios.com>
3092
3093 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
3094 from...
3095 (rank_one_type): ... this.
3096
30972019-03-08 Simon Marchi <simon.marchi@efficios.com>
3098
3099 * gdbtypes.c (rank_one_type_parm_int): New function extracted
3100 from...
3101 (rank_one_type): ... this.
3102
31032019-03-08 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * gdbtypes.c (rank_one_type_parm_func): New function extracted
3106 from...
3107 (rank_one_type): ... this.
3108
31092019-03-08 Simon Marchi <simon.marchi@efficios.com>
3110
3111 * gdbtypes.c (rank_one_type_parm_array): New function extracted
3112 from...
3113 (rank_one_type): ... this.
3114
31152019-03-08 Simon Marchi <simon.marchi@efficios.com>
3116
3117 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
3118 from...
3119 (rank_one_type): ... this.
3120
31212019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3122
3123 * inferior.c (initialize_inferiors): Ensure 'help set/show print
3124 inferior-events' shows the example events.
3125
31262019-03-08 Eli Zaretskii <eliz@gnu.org>
3127
3128 Support styling on native MS-Windows console
3129
3130 PR/24315
3131 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
3132 on MS-Windows if $TERM is not defined.
3133
3134 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
3135
3136 * posix-hdep.c (gdb_console_fputs):
3137 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
3138 functions.
3139 * ui-file.h (gdb_console_fputs): Add prototype.
3140
3141 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
3142 back to fputs only if the former returns zero.
3143
31442019-03-07 Tom Tromey <tom@tromey.com>
3145
3146 * symmisc.c (print_symbol_bcache_statistics): Update.
3147 (print_objfile_statistics): Update.
3148 * symfile.c (allocate_symtab): Update.
3149 * stabsread.c: Don't include bcache.h.
3150 * psymtab.h (struct psymbol_bcache): Don't declare.
3151 (class psymtab_storage) <psymbol_cache>: Now a bcache.
3152 (psymbol_bcache_init, psymbol_bcache_free)
3153 (psymbol_bcache_get_bcache): Don't declare.
3154 * psymtab.c (struct psymbol_bcache): Remove.
3155 (psymtab_storage::psymtab_storage): Update.
3156 (psymtab_storage::~psymtab_storage): Update.
3157 (psymbol_bcache_init, psymbol_bcache_free)
3158 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
3159 (add_psymbol_to_bcache): Update.
3160 (allocate_psymtab): Update.
3161 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3162 macro_cache>: No longer pointers.
3163 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
3164 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
3165 * macrotab.c (macro_bcache): Update.
3166 * macroexp.c: Don't include bcache.h.
3167 * gdbtypes.c (check_types_worklist): Update.
3168 (types_deeply_equal): Remove TRY/CATCH. Update.
3169 * elfread.c (elf_symtab_read): Update.
3170 * dwarf2read.c: Don't include bcache.h.
3171 * buildsym.c (buildsym_compunit::get_macro_table): Update.
3172 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
3173 (print_bcache_statistics, bcache_memory_used): Don't declare.
3174 (struct bcache): Move from bcache.c. Add constructor, destructor,
3175 methods. Rename all data members.
3176 * bcache.c (struct bcache): Move to bcache.h.
3177 (bcache::expand_hash_table): Rename from expand_hash_table.
3178 (bcache): Remove.
3179 (bcache::insert): Rename from bcache_full.
3180 (bcache::compare): Rename from bcache_compare.
3181 (bcache_xmalloc): Remove.
3182 (bcache::~bcache): Rename from bcache_xfree.
3183 (bcache::print_statistics): Rename from print_bcache_statistics.
3184 (bcache::memory_used): Rename from bcache_memory_used.
3185
31862019-03-07 Pedro Alves <palves@redhat.com>
3187
3188 * infrun.c (normal_stop): Also check for
3189 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
3190
31912019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3192
3193 * f-lang.c (value_from_host_double): Moved to...
3194 * value.c (value_from_host_double): ...here.
3195 * value.h (value_from_host_double): Declare.
3196 * guile/scm-math.c (vlscm_convert_typed_number): Use
3197 value_from_host_double.
3198 (vlscm_convert_number): Likewise.
3199 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
3200 * python/py-value.c (convert_value_from_python): Likewise.
3201
32022019-03-06 Tom Tromey <tom@tromey.com>
3203
3204 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
3205
32062019-03-06 Tom Tromey <tom@tromey.com>
3207
3208 * utils.h (free_current_contents): Don't declare.
3209 * utils.c (free_current_contents): Remove.
3210
32112019-03-06 Tom Tromey <tom@tromey.com>
3212
3213 * top.c (quit_force): Update.
3214 * main.c (captured_command_loop): Update.
3215 * common/new-op.c (operator new): Update.
3216 * common/common-exceptions.c (struct catcher)
3217 <save_cleanup_chain>: Remove member.
3218 (exceptions_state_mc_init): Update.
3219 (exception_try_scope_entry): Return nullptr.
3220 (exception_try_scope_exit, exception_rethrow)
3221 (throw_exception_sjlj, throw_exception_cxx): Update.
3222 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
3223 (all_cleanups, do_cleanups, discard_cleanups)
3224 (discard_final_cleanups, save_cleanups, save_final_cleanups)
3225 (restore_cleanups, restore_final_cleanups): Don't declare.
3226 (do_final_cleanups): Remove parameter.
3227 * common/cleanups.c (cleanup_chain, make_cleanup)
3228 (make_cleanup_dtor, all_cleanups, do_cleanups)
3229 (discard_my_cleanups, discard_cleanups)
3230 (discard_final_cleanups, save_my_cleanups, save_cleanups)
3231 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
3232 (null_cleanup): Remove.
3233 (do_final_cleanups): Remove parameter.
3234
32352019-03-06 Tom Tromey <tom@tromey.com>
3236
3237 * remote.c (remote_target::remote_parse_stop_reply): Use
3238 unique_xmalloc_ptr.
3239
32402019-03-06 Tom Tromey <tom@tromey.com>
3241
3242 * stabsread.c (struct stabs_field_info): Rename from field_info.
3243 <list, fnlist>: Add initializers.
3244 <obstack>: New member.
3245 (read_member_functions, read_struct_fields, read_baseclasses):
3246 Allocate on obstack. Don't use cleanups.
3247 (read_one_struct_field, read_member_functions, read_struct_fields)
3248 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
3249 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
3250 (read_struct_type): Update.
3251
32522019-03-06 Tom Tromey <tom@tromey.com>
3253
3254 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
3255 * common/filestuff.h (make_cleanup_close): Don't declare.
3256 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
3257 Remove.
3258
32592019-03-06 Tom Tromey <tom@tromey.com>
3260
3261 * solib-aix.c: Use make_scope_exit.
3262
32632019-03-06 Tom Tromey <tom@tromey.com>
3264
3265 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
3266 Use make_scope_exit.
3267
32682019-03-06 Tom Tromey <tom@tromey.com>
3269
3270 * solib-svr4.c (disable_probes_interface): Remove parameter.
3271 (svr4_handle_solib_event): Use make_scope_exit.
3272
32732019-03-06 Tom Tromey <tom@tromey.com>
3274
3275 * remote.c (struct stop_reply_deleter): Remove.
3276 (stop_reply_up): Update.
3277 (struct stop_reply): Derive from notif_event. Don't typedef.
3278 <regcache>: Now a std::vector.
3279 (stop_reply_xfree): Remove.
3280 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
3281 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
3282 (remote_target::discard_pending_stop_replies): Use delete.
3283 (remote_target::remote_parse_stop_reply): Update.
3284 (remote_target::process_stop_reply): Update.
3285 * remote-notif.h (struct notif_event): Add virtual destructor.
3286 Remove "dtr" member.
3287 (struct notif_client) <alloc_event>: Return a unique_ptr.
3288 (notif_event_xfree): Don't declare.
3289 (notif_event_up): New typedef.
3290 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
3291 (notif_event_xfree, do_notif_event_xfree): Remove.
3292 (remote_notif_state_xfree): Update.
3293
32942019-03-06 Tom Tromey <tom@tromey.com>
3295
3296 * infrun.c (displaced_step_clear_cleanup): Now a
3297 forward_scope_exit type.
3298 (displaced_step_prepare_throw): Update.
3299 (displaced_step_fixup): Update.
3300
33012019-03-06 Tom Tromey <tom@tromey.com>
3302
3303 * inferior.h (class inferior): Update comment.
3304 * gdbthread.h (class thread_info): Update comment.
3305
33062019-03-06 Joel Brobecker <brobecker@adacore.com>
3307 Tom Tromey <tom@tromey.com>
3308
3309 * stabsread.h (struct stab_section_list): Remove.
3310 (coffstab_build_psymtabs): Update.
3311 * dbxread.c (symbuf_sections): Now a std::vector.
3312 (sect_idx): New global.
3313 (fill_symbuf): Update.
3314 (coffstab_build_psymtabs): Change type of stabsects parameter.
3315 Update.
3316 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
3317 std::vector.
3318 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
3319 (coff_locate_sections): Update.
3320 (coff_symfile_read): Remove cleanups. Update.
3321 (init_stringtab): Add storage parameter.
3322 (free_stringtab, free_stringtab_cleanup): Remove.
3323 (init_lineno): Add storage parameter.
3324 (free_linetab, free_linetab_cleanup): Remove.
3325
33262019-03-06 Pedro Alves <palves@redhat.com>
3327
3328 * linux-fork.c (fork_info::clobber_regs): Delete.
3329 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
3330 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
3331 comment. Adjust.
3332 (scoped_switch_fork_info::scoped_switch_fork_info)
3333 (checkpoint_command, linux_fork_context): Adjust
3334 fork_save_infrun_state calls.
3335
33362019-03-06 Pedro Alves <palves@redhat.com>
3337
3338 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
3339 (inf_has_multiple_threads): Return 'bool' and rewrite using
3340 inferior_info::threads().
3341
33422019-03-06 Pedro Alves <palves@redhat.com>
3343
3344 * linux-fork.c: Include <list>.
3345 (fork_list): Now a std::list instance.
3346 (fork_info): Add ctor, dtor, and in-class initialize all fields.
3347 (forks_exist_p, find_last_fork): Adjust.
3348 (new_fork): Delete.
3349 (one_fork_p): New.
3350 (add_fork): Adjust.
3351 (free_fork): Delete, folded into fork_info::~fork_info().
3352 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
3353 Adjust.
3354 (init_fork_list): Delete.
3355 (linux_fork_killall, linux_fork_mourn_inferior)
3356 (linux_fork_detach, info_checkpoints_command): Adjust.
3357 (_initialize_linux_fork): No longer call init_fork_list.
3358
33592019-03-06 Pedro Alves <palves@redhat.com>
3360
3361 * linux-fork.c (new_fork): New, split out of ...
3362 (add_fork): ... this. Return void. Move "first fork" special
3363 case from here, to ...
3364 (checkpoint_command): ... here.
3365 * linux-linux.h (add_fork): Return void.
3366
33672019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3368
3369 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
3370
33712019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3372 Chris January <chris.january@arm.com>
3373 David Lecomber <david.lecomber@arm.com>
3374
3375 * f-exp.y: New token, UNOP_INTRINSIC.
3376 (exp): New pattern using UNOP_INTRINSIC token.
3377 (f77_keywords): Add 'abs' keyword.
3378 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
3379 (value_from_host_double): New function.
3380 (evaluate_subexp_f): Support UNOP_ABS.
3381
33822019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3383
3384 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
3385 types.
3386
33872019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3388
3389 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
3390 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
3391 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
3392
33932019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3394
3395 * f-exp.y (convert_to_kind_type): Handle more type kinds.
3396
33972019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3398 Chris January <chris.january@arm.com>
3399
3400 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
3401 * f-exp.y: Define 'KIND' token.
3402 (exp): New pattern for KIND expressions.
3403 (ptype): Handle types with a kind extension.
3404 (direct_abs_decl): Extend to spot kind extensions.
3405 (f77_keywords): Add 'kind' to the list.
3406 (push_kind_type): New function.
3407 (convert_to_kind_type): New function.
3408 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
3409 * parse.c (operator_length_standard): Likewise.
3410 * parser-defs.h (enum type_pieces): Add tp_kind.
3411 * std-operator.def: Add UNOP_KIND.
3412
34132019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3414
3415 * f-exp.y (f_parse): Set yydebug.
3416
34172019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3418
3419 * f-lang.c (evaluate_subexp_f): New function.
3420 (exp_descriptor_f): New global.
3421 (f_language_defn): Use exp_descriptor_f instead of
3422 exp_descriptor_standard.
3423
34242019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3425
3426 * f-exp.y (struct token): Add comments.
3427 (dot_ops): Remove uppercase versions and the end marker.
3428 (f77_keywords): Likewise.
3429 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
3430 entries in the dot_ops array are case insensitive, and use
3431 strncasecmp to compare strings. Also some whitespace cleanup in
3432 this area. Similar for the f77_keywords array, except entries in
3433 this list might be case sensitive.
3434
34352019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3436
3437 * f-exp.y (struct f77_boolean_val): Add comments.
3438 (boolean_values): Remove uppercase versions, and end marker.
3439 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
3440 and use strncasecmp to achieve case insensitivity. Additionally,
3441 perform whitespace cleanup around this code.
3442
34432019-03-06 Tom Tromey <tromey@adacore.com>
3444
3445 * remote-sim.c (gdbsim_target_open): Use result of
3446 gdb_argv::release.
3447
34482019-03-06 Richard Bunt <richard.bunt@arm.com>
3449 Dirk Schubert <dirk.schubert@arm.com>
3450 Chris January <chris.january@arm.com>
3451
3452 * eval.c (evaluate_subexp_standard): Call Fortran argument
3453 wrapping logic.
3454 * f-lang.c (struct value): A value which can be passed into a
3455 Fortran function call.
3456 (fortran_argument_convert): Wrap Fortran arguments in a pointer
3457 where appropriate.
3458 (struct type): Value ready for a Fortran function call.
3459 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
3460 is needed.
3461 * f-lang.h (fortran_argument_convert): Declaration.
3462 (fortran_preserve_arg_pointer): Declaration.
3463 * infcall.c (value_arg_coerce): Call Fortran argument logic.
3464
34652019-03-05 Tom Tromey <tromey@adacore.com>
3466
3467 * python/py-prettyprint.c (print_string_repr): Remove #if.
3468 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
3469
34702019-03-05 Tom Tromey <tromey@adacore.com>
3471
3472 * target.c (the_dummy_target): Move later. Change type to
3473 "dummy_target".
3474 (initialize_targets): Don't initialize the_dummy_target.
3475
34762019-03-05 Tom Tromey <tromey@adacore.com>
3477
3478 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
3479 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
3480
34812019-03-05 Tom Tromey <tromey@adacore.com>
3482
3483 * windows-nat.c (windows_nat_target::attach)
3484 (windows_nat_target::detach): Don't call gdb_flush.
3485 * valprint.c (generic_val_print, val_print, val_print_string):
3486 Don't call gdb_flush.
3487 * utils.c (defaulted_query): Don't call gdb_flush.
3488 * typeprint.c (print_type_scalar): Don't call gdb_flush.
3489 * target.c (target_announce_detach): Don't call gdb_flush.
3490 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
3491 * remote.c (extended_remote_target::attach): Don't call
3492 gdb_flush.
3493 * procfs.c (procfs_target::detach): Don't call gdb_flush.
3494 * printcmd.c (do_examine): Don't call gdb_flush.
3495 (info_display_command): Don't call gdb_flush.
3496 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
3497 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
3498 * memattr.c (info_mem_command): Don't call gdb_flush.
3499 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
3500 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
3501 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
3502 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
3503 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
3504 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
3505 (gnu_nat_target::detach): Don't call gdb_flush.
3506 * f-valprint.c (f_val_print): Don't call gdb_flush.
3507 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
3508 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
3509 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
3510 gdb_flush.
3511 * c-valprint.c (c_val_print): Don't call gdb_flush.
3512 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
3513
35142019-03-05 Tom Tromey <tromey@adacore.com>
3515
3516 * varobj.c (update_dynamic_varobj_children): Update.
3517 (install_default_visualizer): Use reset, not release.
3518 * value.c (set_internalvar): Update.
3519 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
3520 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
3521 ATTRIBUTE_UNUSED_RESULT.
3522
35232019-03-05 Tom Tromey <tromey@adacore.com>
3524
3525 * remote.c (class scoped_remote_fd) <release>: Add
3526 ATTRIBUTE_UNUSED_RESULT.
3527
35282019-03-05 Tom Tromey <tromey@adacore.com>
3529
3530 * macroexp.c (struct macro_buffer) <release>: Add
3531 ATTRIBUTE_UNUSED_RESULT.
3532
35332019-03-05 Tom Tromey <tromey@adacore.com>
3534
3535 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
3536 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
3537 ATTRIBUTE_UNUSED_RESULT.
3538
35392019-03-05 Tom Tromey <tromey@adacore.com>
3540
3541 * common/scoped_fd.h (class scoped_fd) <release>: Add
3542 ATTRIBUTE_UNUSED_RESULT.
3543
35442019-03-05 Tom Tromey <tromey@adacore.com>
3545
3546 * parser-defs.h (struct parser_state) <release>: Add
3547 ATTRIBUTE_UNUSED_RESULT.
3548
35492019-03-05 Tom Tromey <tromey@adacore.com>
3550
3551 * utils.h (class gdb_argv) <release>: Add
3552 ATTRIBUTE_UNUSED_RESULT.
3553 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
3554
35552019-03-02 Eli Zaretskii <eliz@gnu.org>
3556
3557 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
3558 for-loop range, to avoid compiler warnings.
3559
3560 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
3561 avoid compiler warnings about unused variables.
3562
3563 * NEWS: Mention end of support for native debugging on MS-Windows
3564 before XP.
3565
3566 PR gdb/24292
3567 * common/netstuff.c:
3568 * gdbserver/gdbreplay.c
3569 * gdbserver/remote-utils.c:
3570 * ser-tcp.c:
3571 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
3572 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
3573 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
3574 'getaddrinfo' and 'freeaddrinfo' were not available before
3575 Windows XP, and mingw.org's MinGW headers by default define
3576 _WIN32_WINNT to 0x500.
3577
35782019-03-01 Gary Benson <gbenson@redhat.com>
3579
3580 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
3581
35822019-02-28 Brian Vandenberg <phantall@gmail.com>
3583 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3584
3585 PR gdb/8527
3586 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
3587 set_sigint_trap, clear_sigint_trap.
3588
35892019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3590
3591 * target.c (target_detach): Clear the regcache and the
3592 frame cache.
3593
35942019-02-27 Pedro Alves <palves@redhat.com>
3595
3596 * utils.c (set_screen_size): When we cap the height/width sizes,
3597 tweak the corresponding command variable to show "unlimited":
3598
35992019-02-27 Saagar Jha <saagar@saagarjha.com>
3600 Pedro Alves <palves@redhat.com>
3601
3602 * utils.c (set_screen_size): Reduce "infinite" rows and columns
3603 before calling rl_set_screen_size.
3604
36052019-02-27 Tom Tromey <tromey@adacore.com>
3606
3607 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
3608 define.
3609 * python/py-value.c: Remove Python 2.4 workaround.
3610 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
3611 workaround.
3612 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
3613 Python 2.4 workaround.
3614 * python/python-internal.h: Remove Python 2.4 comment.
3615 (Py_ssize_t): Don't define.
3616 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
3617 (gdb_Py_DECREF): Remove Python 2.4 workaround.
3618 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
3619 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
3620 * python/python.c (do_start_initialization): Remove Python 2.4
3621 workaround.
3622 * python/py-prettyprint.c (class dummy_python_frame): Remove.
3623 (print_children): Remove Python 2.4 workaround.
3624 * python/py-inferior.c (buffer_procs): Remove Python 2.4
3625 workaround.
3626 (CHARBUFFERPROC_NAME): Remove.
3627 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
3628 Python 2.4 workaround.
3629
36302019-02-27 Kevin Buettner <kevinb@redhat.com>
3631
3632 * NEWS: Note minimum Python version.
3633
36342019-02-27 Kevin Buettner <kevinb@redhat.com>
3635
3636 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
3637 code from these functions. Remove corresponding ifdefs. Use
3638 Py_buffer_up instead of explicit calls to PyBuffer_Release.
3639 Remove gotos and target of gotos.
3640 (infpy_search_memory): Likewise.
3641
36422019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3643
3644 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
3645 (hppa_gdbarch_init): Don't register deleted functions with
3646 gdbarch.
3647
36482019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3649
3650 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
3651 (h8300_unwind_sp): Delete.
3652 (h8300_dummy_id): Delete.
3653 (h8300_gdbarch_init): Don't register deleted functions with
3654 gdbarch.
3655
36562019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3657
3658 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
3659 (ft32_unwind_pc): Delete.
3660 (ft32_unwind_sp): Delete.
3661 (ft32_gdbarch_init): Don't register deleted functions with
3662 gdbarch.
3663
36642019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3665
3666 * gdb/frv-tdep.c (frv_dummy_id): Delete.
3667 (frv_unwind_pc): Delete.
3668 (frv_unwind_sp): Delete.
3669 (frv_gdbarch_init): Don't register deleted functions with
3670 gdbarch.
3671
36722019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3673
3674 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
3675 (riscv_unwind_pc): Delete.
3676 (riscv_unwind_sp): Delete.
3677 (riscv_gdbarch_init): Don't register deleted functions with
3678 gdbarch.
3679
36802019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3681
3682 * gdb/csky-tdep.c (csky_dummy_id): Delete.
3683 (csky_unwind_pc): Delete.
3684 (csky_unwind_sp): Delete.
3685 (csky_gdbarch_init): Don't register deleted functions with
3686 gdbarch.
3687
36882019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3689
3690 * gdb/cris-tdep.c (cris_dummy_id): Delete.
3691 (cris_unwind_pc): Delete.
3692 (cris_unwind_sp): Delete.
3693 (cris_gdbarch_init): Don't register deleted functions with
3694 gdbarch.
3695
36962019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3697
3698 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
3699 (bfin_unwind_pc): Delete.
3700 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
3701
37022019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3703
3704 * gdb/arm-tdep.c (arm_dummy_id): Delete.
3705 (arm_unwind_pc): Delete.
3706 (arm_unwind_sp): Delete.
3707 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
3708
37092019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3710
3711 * gdb/arc-tdep.c (arc_dummy_id): Delete.
3712 (arc_unwind_pc): Delete.
3713 (arc_unwind_sp): Delete.
3714 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
3715
37162019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3717
3718 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
3719 (alpha_unwind_pc): Delete.
3720 (alpha_gdbarch_init): Don't register deleted functions with
3721 gdbarch.
3722
37232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3724
3725 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
3726 (aarch64_unwind_pc): Delete.
3727 (aarch64_unwind_sp): Delete.
3728 (aarch64_gdbarch_init): Don't register deleted functions with
3729 gdbarch.
3730
37312019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3732
3733 * gdbtypes.c (type_align): Don't consider static members when
3734 computing structure alignment.
3735
37362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3737
3738 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
3739 return 0 for other types.
3740 * arch-utils.c (default_type_align): Always return 0.
3741 * gdbarch.h: Regenerate.
3742 * gdbarch.sh (type_align): Extend comment.
3743 * gdbtypes.c (type_align): Add additional comments, always call
3744 gdbarch_type_align before applying the default rules.
3745 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
3746 generic code will then apply a suitable default.
3747 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
3748 types, return 0 for other types.
3749
37502019-02-27 Joel Brobecker <brobecker@adacore.com>
3751
3752 * NEWS: Create a new section for the next release branch.
3753 Rename the section of the current branch, now that it has
3754 been cut.
3755
37562019-02-27 Joel Brobecker <brobecker@adacore.com>
3757
3758 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
3759 * version.in: Bump version to 8.3.50.DATE-git.
3760
37612019-02-26 Simon Marchi <simon.marchi@efficios.com>
3762
3763 * aix-thread.c (ptid_cmp): Remove unused variable.
3764 (get_signaled_thread): Likewise.
3765 (store_regs_user_thread): Likewise.
3766 (store_regs_kernel_thread): Likewise.
3767 (fetch_regs_kernel_thread): Remove shadowed variable.
3768
37692019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
3770
3771 * features/riscv/32bit-cpu.xml: Add register numbers.
3772 * features/riscv/32bit-fpu.c: Regenerate.
3773 * features/riscv/32bit-fpu.xml: Add register numbers.
3774 * features/riscv/64bit-cpu.xml: Add register numbers.
3775 * features/riscv/64bit-fpu.c: Regenerate.
3776 * features/riscv/64bit-fpu.xml: Add register numbers.
3777
37782019-02-26 Kevin Buettner <kevinb@redhat.com>
3779
3780 * NEWS: Mention two argument form of gdb.Value constructor.
3781 * python/py-value.c (convert_buffer_and_type_to_value): New
3782 function.
3783 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
3784 Add support for handling an optional second argument. Call
3785 convert_buffer_and_type_to_value as appropriate.
3786 * python/python-internal.h (Py_buffer_deleter): New struct.
3787 (Py_buffer_up): New typedef.
3788
37892019-02-25 John Baldwin <jhb@FreeBSD.org>
3790
3791 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
3792 instead of releasing ownership.
3793
37942019-02-25 Jordan Rupprecht <rupprecht@google.com>
3795
3796 * dwarf2read.c (open_and_init_dwp_file): Call
3797 elf_numsections instead of bfd_count_sections to initialize
3798 dwp_file->num_sections.
3799
38002019-02-25 Tom Tromey <tromey@adacore.com>
3801
3802 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
3803
38042019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
3805
3806 * gcore.in: Add '--readnever' option when invoking GDB.
3807
38082019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3809
3810 * MAINTAINERS: Update my email address.
3811
38122019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3813
3814 * build-id.c (build_id_to_debug_bfd_1): New function.
3815 (build_id_to_debug_bfd): Look for separate debug file in
3816 sysroot.
3817
38182019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * gdbarch.sh: Update the copyright year range that is placed into
3821 generated files.
3822
38232019-02-22 Keith Seitz <keiths@redhat.com>
3824
3825 PR symtab/23853
3826 * linespec.c (create_sals_line_offset): Search for the default
3827 symtab's filename instead of its fullname.
3828
38292019-02-21 Alan Hayward <alan.hayward@arm.com>
3830
3831 * NEWS: Update style defaults.
3832
38332019-02-21 Alan Hayward <alan.hayward@arm.com>
3834
3835 * main.c (captured_main_1): Disable styling in batch mode.
3836
38372019-02-20 Tom Tromey <tom@tromey.com>
3838
3839 * symtab.c (symtab_symbol_info): Fix typos.
3840
38412019-02-20 Tom Tromey <tromey@adacore.com>
3842
3843 * findcmd.c (_initialize_mem_search): Use upper case for
3844 metasyntactic variables.
3845
38462019-02-20 Alan Hayward <alan.hayward@arm.com>
3847
3848 * aarch64-tdep.c (aarch64_add_reggroups): New function.
3849 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
3850
38512019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
3852
3853 * top.h (source_file_name): Change to std::string.
3854 * top.c (source_file_name): Likewise.
3855 (command_line_input): Adjust.
3856 * cli/cli-script.c (script_from_file): Adjust.
3857
38582019-02-19 Tom Tromey <tromey@adacore.com>
3859
3860 * ravenscar-thread.c
3861 (ravenscar_thread_target::update_thread_list): Don't call
3862 ada_build_task_list.
3863 * ada-lang.h (ada_build_task_list): Don't declare.
3864 * ada-tasks.c (struct ada_tasks_inferior_data)
3865 <task_list_valid_p>: Now bool.
3866 (read_known_tasks, ada_task_list_changed)
3867 (ada_tasks_invalidate_inferior_data): Update.
3868 (read_known_tasks_array): Return bool.
3869 (read_known_tasks_list): Likewise.
3870 (read_known_tasks): Return void.
3871 (ada_build_task_list): Now static.
3872
38732019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
3874
3875 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
3876 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
3877
38782019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3879
3880 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
3881 variant for ada_tasks_pspace_data_handle and
3882 ada_tasks_inferior_data_handle.
3883 (ada_tasks_pspace_data_cleanup): New function.
3884 (ada_tasks_inferior_data_cleanup): New function.
3885
38862019-02-17 Tom Tromey <tom@tromey.com>
3887
3888 * macrotab.h (macro_source_fullname): Return a std::string.
3889 * macrotab.c (macro_include, check_for_redefinition)
3890 (macro_undef, macro_lookup_definition, foreach_macro)
3891 (foreach_macro_in_scope): Update.
3892 (macro_source_fullname): Return a std::string.
3893 * macrocmd.c (show_pp_source_pos): Update.
3894
38952019-02-17 Tom Tromey <tom@tromey.com>
3896
3897 * macrocmd.c (show_pp_source_pos): Style the file names.
3898
38992019-02-17 Tom Tromey <tom@tromey.com>
3900
3901 PR tui/24197:
3902 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
3903
39042019-02-17 Tom Tromey <tom@tromey.com>
3905
3906 * ada-lang.c (user_select_syms): Use filtered printing.
3907 * utils.c (wrap_style): New global.
3908 (desired_style): Remove.
3909 (emit_style_escape): Add stream parameter.
3910 (set_output_style, reset_terminal_style, prompt_for_continue):
3911 Update.
3912 (flush_wrap_buffer): Only flush gdb_stdout.
3913 (wrap_here): Set wrap_style.
3914 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
3915 treat escape sequences as a character. Change when wrap buffer is
3916 flushed.
3917 (fputs_styled): Do not set the output style when the default is
3918 requested.
3919 * ui-style.h (struct ui_file_style) <is_default>: New method.
3920 * source.c (print_source_lines_base): Emit escape sequences in one
3921 piece.
3922
39232019-02-17 Joel Brobecker <brobecker@adacore.com>
3924
3925 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
3926 integers and enumeration types.
3927
39282019-02-17 Joel Brobecker <brobecker@adacore.com>
3929
3930 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
3931 instead of lookup_symbol_in_language
3932 (do_exact_match): New function.
3933 (ada_get_symbol_name_matcher): Return do_exact_match when
3934 doing a verbatim match.
3935
39362019-02-15 Tom Tromey <tromey@adacore.com>
3937
3938 * ravenscar-thread.c (ravenscar_thread_target::resume)
3939 (ravenscar_thread_target::wait): Special case wildcard requests.
3940
39412019-02-15 Tom Tromey <tromey@adacore.com>
3942
3943 * ravenscar-thread.c (base_ptid): Remove.
3944 (struct ravenscar_thread_target) <close>: New method.
3945 <m_base_ptid>: New member.
3946 <update_inferior_ptid, active_task, task_is_currently_active,
3947 runtime_initialized>: Declare methods.
3948 <ravenscar_thread_target>: Add constructor.
3949 (ravenscar_thread_target::task_is_currently_active)
3950 (ravenscar_thread_target::update_inferior_ptid)
3951 (ravenscar_runtime_initialized): Rename. Now methods.
3952 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
3953 (ravenscar_thread_target::update_thread_list): Update.
3954 (ravenscar_thread_target::active_task): Now method.
3955 (ravenscar_thread_target::store_registers)
3956 (ravenscar_thread_target::prepare_to_store)
3957 (ravenscar_thread_target::prepare_to_store)
3958 (ravenscar_thread_target::mourn_inferior): Update.
3959 (ravenscar_inferior_created): Use "new" to create target.
3960 (ravenscar_thread_target::get_ada_task_ptid): Update.
3961 (_initialize_ravenscar): Don't initialize base_ptid.
3962 (ravenscar_ops): Remove global.
3963
39642019-02-15 Tom Tromey <tromey@adacore.com>
3965
3966 * target.h (push_target): Declare new overload.
3967 * target.c (push_target): New overload, taking an rvalue reference.
3968 * remote.c (remote_target::open_1): Use push_target overload.
3969 * corelow.c (core_target_open): Use push_target overload.
3970
39712019-02-15 Tom Tromey <tromey@adacore.com>
3972
3973 * ravenscar-thread.c (is_ravenscar_task)
3974 (ravenscar_task_is_currently_active): Return bool.
3975 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
3976 (_initialize_ravenscar): Remove "(void)".
3977 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
3978 Return bool.
3979
39802019-02-15 Tom Tromey <tromey@adacore.com>
3981
3982 * ravenscar-thread.c (ravenscar_runtime_initializer)
3983 (has_ravenscar_runtime, get_running_thread_id)
3984 (ravenscar_thread_target::resume): Fix indentation.
3985
39862019-02-15 Tom Tromey <tromey@adacore.com>
3987
3988 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
3989 from ravenscar_arch_ops.
3990 (sparc_ravenscar_ops::fetch_registers)
3991 (sparc_ravenscar_ops::store_registers): Now methods.
3992 (sparc_ravenscar_prepare_to_store): Remove.
3993 (sparc_ravenscar_ops): Redefine.
3994 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
3995 methods and destructor. Remove members.
3996 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
3997 (ravenscar_thread_target::store_registers)
3998 (ravenscar_thread_target::prepare_to_store): Update.
3999 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
4000 Remove.
4001 (struct ppc_ravenscar_powerpc_ops): Derive from
4002 ravenscar_arch_ops.
4003 (ppc_ravenscar_powerpc_ops::fetch_registers)
4004 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
4005 (ppc_ravenscar_powerpc_ops): Redefine.
4006 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
4007 (ppc_ravenscar_e500_ops::fetch_registers)
4008 (ppc_ravenscar_e500_ops::store_registers): Now methods.
4009 (ppc_ravenscar_e500_ops): Redefine.
4010 * aarch64-ravenscar-thread.c
4011 (aarch64_ravenscar_generic_prepare_to_store): Remove.
4012 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
4013 (aarch64_ravenscar_fetch_registers)
4014 (aarch64_ravenscar_store_registers): Now methods.
4015 (aarch64_ravenscar_ops): Redefine.
4016
40172019-02-15 Tom Tromey <tromey@adacore.com>
4018
4019 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
4020 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4021 (ravenscar_thread_target::stopped_by_watchpoint)
4022 (ravenscar_thread_target::stopped_data_address)
4023 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
4024
40252019-02-15 Tom Tromey <tromey@adacore.com>
4026
4027 * ravenscar-thread.c: Fix some typos.
4028
40292019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4030 Tom Tromey <tromey@adacore.com>
4031
4032 * ada-lang.c (ada_exception_sal): Change addr_string to a
4033 std::string.
4034 (create_ada_exception_catchpoint): Update.
4035
40362019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4037 Tom Tromey <tromey@adacore.com>
4038
4039 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
4040 (bp_location_ops): Remove.
4041 (base_breakpoint_allocate_location): Update.
4042 (free_bp_location): Update.
4043 * ada-lang.c (class ada_catchpoint_location)
4044 <ada_catchpoint_location>: Remove ops parameter.
4045 (ada_catchpoint_location_dtor): Remove.
4046 (ada_catchpoint_location_ops): Remove.
4047 (allocate_location_exception): Update.
4048 * breakpoint.h (struct bp_location_ops): Remove.
4049 (class bp_location) <bp_location>: Remove bp_location_ops
4050 parameter.
4051 <~bp_location>: Add destructor.
4052 <ops>: Remove.
4053
40542019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4055 Pedro Alves <palves@redhat.com>
4056
4057 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
4058 'PATH_MAX'.
4059
40602019-02-14 David Michael <fedora.dm0@gmail.com>
4061 Samuel Thibault <samuel.thibault@gnu.org>
4062 Thomas Schwinge <thomas@codesourcery.com>
4063
4064 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
4065 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
4066
40672019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4068
4069 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
4070 (check_empty): Use "const char *".
4071
4072 * gnu-nat.c (gnu_nat_target::detach): Instead of
4073 'detach_inferior (pid)' call
4074 'detach_inferior (find_inferior_pid (pid))'.
4075
4076 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
4077 'nat/fork-inferior.o'.
4078 * gnu-nat.c: #include "nat/fork-inferior.h".
4079
4080 * gnu-nat.c (gnu_nat_target::detach): Instead of
4081 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
4082 * gnu-nat.h: #include "inf-child.h".
4083 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
4084 'i386_gnu_nat_target::fetch_registers'.
4085 (gnu_store_registers): Rename/move to
4086 'i386_gnu_nat_target::store_registers'.
4087
4088 * config/i386/nm-i386gnu.h: Don't "#include" any files.
4089 * gnu-nat.h (mach_thread_info): New function.
4090 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
4091
4092 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
4093
40942019-02-14 Frederic Konrad <konrad@adacore.com>
4095
4096 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
4097
40982019-02-14 Joel Brobecker <brobecker@adacore.com>
4099
4100 * windows-nat.c (windows_add_thread): Add new parameter
4101 "main_thread_p" with default value set to false. Update
4102 function documentation as well as all callers.
4103 (windows_delete_thread): Likewise.
4104 (fake_create_process): Update call to windows_add_thread.
4105 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
4106 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
4107 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
4108 call to windows_delete_thread.
4109
41102019-02-13 Simon Marchi <simon.marchi@ericsson.com>
4111
4112 * MAINTAINERS: Add Andrew Burgess as global maintainer.
4113
41142019-02-12 John Baldwin <jhb@FreeBSD.org>
4115
4116 * symfile.c (find_separate_debug_file): Use canonical path of
4117 sysroot with child_path instead of gdb_sysroot if it is valid.
4118
41192019-02-12 John Baldwin <jhb@FreeBSD.org>
4120
4121 * symfile.c (find_separate_debug_file): Use child_path to
4122 determine if an object file is under a sysroot.
4123
41242019-02-12 John Baldwin <jhb@FreeBSD.org>
4125
4126 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4127 unittests/child-path-selftests.c.
4128 * common/pathstuff.c (child_path): New function.
4129 * common/pathstuff.h (child_path): New prototype.
4130 * unittests/child-path-selftests.c: New file.
4131
41322019-02-12 John Baldwin <jhb@FreeBSD.org>
4133
4134 * symfile.c (find_separate_debug_file): Look for separate debug
4135 files in debug directories under the sysroot.
4136
41372019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4138
4139 * symtab.h (struct minimal_symbol data_p): New const method.
4140 (struct minimal_symbol text_p): Likewise.
4141 * symtab.c (output_source_filename): Use file name style
4142 to print file name.
4143 (print_symbol_info): Likewise.
4144 (print_msymbol_info): Use address style to print addresses.
4145 Use function name style to print executable text symbols.
4146 (expand_symtab_containing_pc): Use data_p.
4147 (find_pc_sect_compunit_symtab): Likewise.
4148
41492019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4150
4151 * breakpoint.c (describe_other_breakpoints): Use address style
4152 to print addresses.
4153 (say_where): Likewise.
4154
41552019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4156
4157 * ada-typeprint.c (print_func_type): Print function name
4158 style to print function name.
4159 * c-typeprint.c (c_print_type_1): Likewise.
4160
41612019-02-11 Alan Hayward <alan.hayward@arm.com>
4162
4163 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
4164 for execve.
4165
41662019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4167
4168 * c-exp.y (direct_abs_decl): Use emplace_back to record the
4169 type_stack.
4170
41712019-02-10 Joel Brobecker <brobecker@adacore.com>
4172
4173 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
4174 TYPE_CODE_REF types.
4175
41762019-02-08 Jim Wilson <jimw@sifive.com>
4177
4178 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
4179 (riscv_linux_fregset): New.
4180 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
4181
41822019-02-07 Tom Tromey <tom@tromey.com>
4183
4184 * thread.c (thread_cancel_execution_command): Update.
4185 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
4186 methods.
4187 (struct thread_fsm_ops): Remove.
4188 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
4189 (thread_fsm_should_stop, thread_fsm_return_value)
4190 (thread_fsm_set_finished, thread_fsm_finished_p)
4191 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
4192 Don't declare.
4193 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
4194 * infrun.c (clear_proceed_status_thread)
4195 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
4196 (print_stop_event): Update.
4197 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
4198 Add constructor.
4199 (step_command_fsm_ops): Remove.
4200 (new_step_command_fsm): Remove.
4201 (step_1): Update.
4202 (step_command_fsm::should_stop): Rename from
4203 step_command_fsm_should_stop.
4204 (step_command_fsm::clean_up): Rename from
4205 step_command_fsm_clean_up.
4206 (step_command_fsm::do_async_reply_reason): Rename from
4207 step_command_fsm_async_reply_reason.
4208 (struct until_next_fsm): Inherit from thread_fsm. Add
4209 constructor.
4210 (until_next_fsm_ops): Remove.
4211 (new_until_next_fsm): Remove.
4212 (until_next_fsm::should_stop): Rename from
4213 until_next_fsm_should_stop.
4214 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
4215 (until_next_fsm::do_async_reply_reason): Rename from
4216 until_next_fsm_async_reply_reason.
4217 (struct finish_command_fsm): Inherit from thread_fsm. Add
4218 constructor. Change type of breakpoint.
4219 (finish_command_fsm_ops): Remove.
4220 (new_finish_command_fsm): Remove.
4221 (finish_command_fsm::should_stop): Rename from
4222 finish_command_fsm_should_stop.
4223 (finish_command_fsm::clean_up): Rename from
4224 finish_command_fsm_clean_up.
4225 (finish_command_fsm::return_value): Rename from
4226 finish_command_fsm_return_value.
4227 (finish_command_fsm::do_async_reply_reason): Rename from
4228 finish_command_fsm_async_reply_reason.
4229 (finish_command): Update.
4230 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
4231 Add constructor.
4232 (call_thread_fsm_ops): Remove.
4233 (call_thread_fsm::call_thread_fsm): Rename from
4234 new_call_thread_fsm.
4235 (call_thread_fsm::should_stop): Rename from
4236 call_thread_fsm_should_stop.
4237 (call_thread_fsm::should_notify_stop): Rename from
4238 call_thread_fsm_should_notify_stop.
4239 (run_inferior_call, call_function_by_hand_dummy): Update.
4240 * cli/cli-interp.c (should_print_stop_to_console): Update.
4241 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
4242 Add constructor. Change type of location_breakpoint,
4243 caller_breakpoint.
4244 (until_break_fsm_ops): Remove.
4245 (new_until_break_fsm): Remove.
4246 (until_break_fsm::should_stop): Rename from
4247 until_break_fsm_should_stop.
4248 (until_break_fsm::clean_up): Rename from
4249 until_break_fsm_clean_up.
4250 (until_break_fsm::do_async_reply_reason): Rename from
4251 until_break_fsm_async_reply_reason.
4252 (until_break_command): Update.
4253 * thread-fsm.c: Remove.
4254 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
4255
42562019-02-07 Tom Tromey <tom@tromey.com>
4257
4258 * yy-remap.h: Add include guard.
4259 * xtensa-tdep.h: Add include guard.
4260 * xcoffread.h: Rename include guard.
4261 * varobj-iter.h: Add include guard.
4262 * tui/tui.h: Rename include guard.
4263 * tui/tui-winsource.h: Rename include guard.
4264 * tui/tui-wingeneral.h: Rename include guard.
4265 * tui/tui-windata.h: Rename include guard.
4266 * tui/tui-win.h: Rename include guard.
4267 * tui/tui-stack.h: Rename include guard.
4268 * tui/tui-source.h: Rename include guard.
4269 * tui/tui-regs.h: Rename include guard.
4270 * tui/tui-out.h: Rename include guard.
4271 * tui/tui-layout.h: Rename include guard.
4272 * tui/tui-io.h: Rename include guard.
4273 * tui/tui-hooks.h: Rename include guard.
4274 * tui/tui-file.h: Rename include guard.
4275 * tui/tui-disasm.h: Rename include guard.
4276 * tui/tui-data.h: Rename include guard.
4277 * tui/tui-command.h: Rename include guard.
4278 * tic6x-tdep.h: Add include guard.
4279 * target/waitstatus.h: Rename include guard.
4280 * target/wait.h: Rename include guard.
4281 * target/target.h: Rename include guard.
4282 * target/resume.h: Rename include guard.
4283 * target-float.h: Rename include guard.
4284 * stabsread.h: Add include guard.
4285 * rs6000-tdep.h: Add include guard.
4286 * riscv-fbsd-tdep.h: Add include guard.
4287 * regformats/regdef.h: Rename include guard.
4288 * record.h: Rename include guard.
4289 * python/python.h: Rename include guard.
4290 * python/python-internal.h: Rename include guard.
4291 * python/py-stopevent.h: Rename include guard.
4292 * python/py-ref.h: Rename include guard.
4293 * python/py-record.h: Rename include guard.
4294 * python/py-record-full.h: Rename include guard.
4295 * python/py-record-btrace.h: Rename include guard.
4296 * python/py-instruction.h: Rename include guard.
4297 * python/py-events.h: Rename include guard.
4298 * python/py-event.h: Rename include guard.
4299 * procfs.h: Add include guard.
4300 * proc-utils.h: Add include guard.
4301 * p-lang.h: Add include guard.
4302 * or1k-tdep.h: Rename include guard.
4303 * observable.h: Rename include guard.
4304 * nto-tdep.h: Rename include guard.
4305 * nat/x86-linux.h: Rename include guard.
4306 * nat/x86-linux-dregs.h: Rename include guard.
4307 * nat/x86-gcc-cpuid.h: Add include guard.
4308 * nat/x86-dregs.h: Rename include guard.
4309 * nat/x86-cpuid.h: Rename include guard.
4310 * nat/ppc-linux.h: Rename include guard.
4311 * nat/mips-linux-watch.h: Rename include guard.
4312 * nat/linux-waitpid.h: Rename include guard.
4313 * nat/linux-ptrace.h: Rename include guard.
4314 * nat/linux-procfs.h: Rename include guard.
4315 * nat/linux-osdata.h: Rename include guard.
4316 * nat/linux-nat.h: Rename include guard.
4317 * nat/linux-namespaces.h: Rename include guard.
4318 * nat/linux-btrace.h: Rename include guard.
4319 * nat/glibc_thread_db.h: Rename include guard.
4320 * nat/gdb_thread_db.h: Rename include guard.
4321 * nat/gdb_ptrace.h: Rename include guard.
4322 * nat/fork-inferior.h: Rename include guard.
4323 * nat/amd64-linux-siginfo.h: Rename include guard.
4324 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
4325 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
4326 * nat/aarch64-linux.h: Rename include guard.
4327 * nat/aarch64-linux-hw-point.h: Rename include guard.
4328 * mn10300-tdep.h: Add include guard.
4329 * mips-linux-tdep.h: Add include guard.
4330 * mi/mi-parse.h: Rename include guard.
4331 * mi/mi-out.h: Rename include guard.
4332 * mi/mi-main.h: Rename include guard.
4333 * mi/mi-interp.h: Rename include guard.
4334 * mi/mi-getopt.h: Rename include guard.
4335 * mi/mi-console.h: Rename include guard.
4336 * mi/mi-common.h: Rename include guard.
4337 * mi/mi-cmds.h: Rename include guard.
4338 * mi/mi-cmd-break.h: Rename include guard.
4339 * m2-lang.h: Add include guard.
4340 * location.h: Rename include guard.
4341 * linux-record.h: Rename include guard.
4342 * linux-nat.h: Add include guard.
4343 * linux-fork.h: Add include guard.
4344 * i386-darwin-tdep.h: Rename include guard.
4345 * hppa-linux-offsets.h: Add include guard.
4346 * guile/guile.h: Rename include guard.
4347 * guile/guile-internal.h: Rename include guard.
4348 * gnu-nat.h: Rename include guard.
4349 * gdb-stabs.h: Rename include guard.
4350 * frv-tdep.h: Add include guard.
4351 * f-lang.h: Add include guard.
4352 * event-loop.h: Add include guard.
4353 * darwin-nat.h: Rename include guard.
4354 * cp-abi.h: Rename include guard.
4355 * config/sparc/nm-sol2.h: Rename include guard.
4356 * config/nm-nto.h: Rename include guard.
4357 * config/nm-linux.h: Add include guard.
4358 * config/i386/nm-i386gnu.h: Rename include guard.
4359 * config/djgpp/nl_types.h: Rename include guard.
4360 * config/djgpp/langinfo.h: Rename include guard.
4361 * compile/gcc-cp-plugin.h: Add include guard.
4362 * compile/gcc-c-plugin.h: Add include guard.
4363 * compile/compile.h: Rename include guard.
4364 * compile/compile-object-run.h: Rename include guard.
4365 * compile/compile-object-load.h: Rename include guard.
4366 * compile/compile-internal.h: Rename include guard.
4367 * compile/compile-cplus.h: Rename include guard.
4368 * compile/compile-c.h: Rename include guard.
4369 * common/xml-utils.h: Rename include guard.
4370 * common/x86-xstate.h: Rename include guard.
4371 * common/version.h: Rename include guard.
4372 * common/vec.h: Rename include guard.
4373 * common/tdesc.h: Rename include guard.
4374 * common/selftest.h: Rename include guard.
4375 * common/scoped_restore.h: Rename include guard.
4376 * common/scoped_mmap.h: Rename include guard.
4377 * common/scoped_fd.h: Rename include guard.
4378 * common/safe-iterator.h: Rename include guard.
4379 * common/run-time-clock.h: Rename include guard.
4380 * common/refcounted-object.h: Rename include guard.
4381 * common/queue.h: Rename include guard.
4382 * common/ptid.h: Rename include guard.
4383 * common/print-utils.h: Rename include guard.
4384 * common/preprocessor.h: Rename include guard.
4385 * common/pathstuff.h: Rename include guard.
4386 * common/observable.h: Rename include guard.
4387 * common/netstuff.h: Rename include guard.
4388 * common/job-control.h: Rename include guard.
4389 * common/host-defs.h: Rename include guard.
4390 * common/gdb_wait.h: Rename include guard.
4391 * common/gdb_vecs.h: Rename include guard.
4392 * common/gdb_unlinker.h: Rename include guard.
4393 * common/gdb_unique_ptr.h: Rename include guard.
4394 * common/gdb_tilde_expand.h: Rename include guard.
4395 * common/gdb_sys_time.h: Rename include guard.
4396 * common/gdb_string_view.h: Rename include guard.
4397 * common/gdb_splay_tree.h: Rename include guard.
4398 * common/gdb_setjmp.h: Rename include guard.
4399 * common/gdb_ref_ptr.h: Rename include guard.
4400 * common/gdb_optional.h: Rename include guard.
4401 * common/gdb_locale.h: Rename include guard.
4402 * common/gdb_assert.h: Rename include guard.
4403 * common/filtered-iterator.h: Rename include guard.
4404 * common/filestuff.h: Rename include guard.
4405 * common/fileio.h: Rename include guard.
4406 * common/environ.h: Rename include guard.
4407 * common/common-utils.h: Rename include guard.
4408 * common/common-types.h: Rename include guard.
4409 * common/common-regcache.h: Rename include guard.
4410 * common/common-inferior.h: Rename include guard.
4411 * common/common-gdbthread.h: Rename include guard.
4412 * common/common-exceptions.h: Rename include guard.
4413 * common/common-defs.h: Rename include guard.
4414 * common/common-debug.h: Rename include guard.
4415 * common/cleanups.h: Rename include guard.
4416 * common/buffer.h: Rename include guard.
4417 * common/btrace-common.h: Rename include guard.
4418 * common/break-common.h: Rename include guard.
4419 * cli/cli-utils.h: Rename include guard.
4420 * cli/cli-style.h: Rename include guard.
4421 * cli/cli-setshow.h: Rename include guard.
4422 * cli/cli-script.h: Rename include guard.
4423 * cli/cli-interp.h: Rename include guard.
4424 * cli/cli-decode.h: Rename include guard.
4425 * cli/cli-cmds.h: Rename include guard.
4426 * charset-list.h: Add include guard.
4427 * buildsym-legacy.h: Rename include guard.
4428 * bfin-tdep.h: Add include guard.
4429 * ax.h: Rename include guard.
4430 * arm-linux-tdep.h: Add include guard.
4431 * arm-fbsd-tdep.h: Add include guard.
4432 * arch/xtensa.h: Rename include guard.
4433 * arch/tic6x.h: Add include guard.
4434 * arch/i386.h: Add include guard.
4435 * arch/arm.h: Rename include guard.
4436 * arch/arm-linux.h: Rename include guard.
4437 * arch/arm-get-next-pcs.h: Rename include guard.
4438 * arch/amd64.h: Add include guard.
4439 * arch/aarch64-insn.h: Rename include guard.
4440 * arch-utils.h: Rename include guard.
4441 * annotate.h: Add include guard.
4442 * amd64-darwin-tdep.h: Rename include guard.
4443 * aarch64-linux-tdep.h: Add include guard.
4444 * aarch64-fbsd-tdep.h: Add include guard.
4445 * aarch32-linux-nat.h: Add include guard.
4446
44472019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4448
4449 * macrotab.c (macro_define_internal): New function that
4450 factorizes macro_define_object_internal and macro_define_function
4451 code.
4452 (macro_define_object_internal): Use macro_define_internal.
4453 (macro_define_function): Likewise.
4454
44552019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4456
4457 * macrocmd.c (extract_identifier): Return
4458 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
4459 callers.
4460
44612019-02-06 John Baldwin <jhb@FreeBSD.org>
4462
4463 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
4464
44652019-02-05 Tom Tromey <tom@tromey.com>
4466
4467 * target.c (target_stack::unpush): Move assertion earlier.
4468
44692019-01-30 Tom Tromey <tom@tromey.com>
4470
4471 PR python/23615:
4472 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
4473 (gdbpy_parse_and_eval): Likewise.
4474 * python/python-internal.h (gdbpy_allow_threads): New class.
4475
44762019-01-28 John Baldwin <jhb@FreeBSD.org>
4477
4478 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
4479 (aarch64_fbsd_fpregmap): Move earlier.
4480 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
4481 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4482 instead of individual calls to trad_frame_set_reg_addr.
4483 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
4484 earlier.
4485 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
4486 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
4487 instead of individual calls to trad_frame_set_reg_addr.
4488
44892019-01-28 Alan Hayward <alan.hayward@arm.com>
4490
4491 * CONTRIBUTE: Replace contribution list with wiki link.
4492
44932019-01-25 Tom Tromey <tom@tromey.com>
4494
4495 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
4496
44972019-01-25 Tom Tromey <tom@tromey.com>
4498
4499 * xtensa-linux-nat.c: Fix common/ includes.
4500 * xml-support.h: Fix common/ includes.
4501 * xml-support.c: Fix common/ includes.
4502 * x86-linux-nat.c: Fix common/ includes.
4503 * windows-nat.c: Fix common/ includes.
4504 * varobj.h: Fix common/ includes.
4505 * varobj.c: Fix common/ includes.
4506 * value.c: Fix common/ includes.
4507 * valops.c: Fix common/ includes.
4508 * utils.c: Fix common/ includes.
4509 * unittests/xml-utils-selftests.c: Fix common/ includes.
4510 * unittests/utils-selftests.c: Fix common/ includes.
4511 * unittests/unpack-selftests.c: Fix common/ includes.
4512 * unittests/tracepoint-selftests.c: Fix common/ includes.
4513 * unittests/style-selftests.c: Fix common/ includes.
4514 * unittests/string_view-selftests.c: Fix common/ includes.
4515 * unittests/scoped_restore-selftests.c: Fix common/ includes.
4516 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
4517 * unittests/scoped_fd-selftests.c: Fix common/ includes.
4518 * unittests/rsp-low-selftests.c: Fix common/ includes.
4519 * unittests/parse-connection-spec-selftests.c: Fix common/
4520 includes.
4521 * unittests/optional-selftests.c: Fix common/ includes.
4522 * unittests/offset-type-selftests.c: Fix common/ includes.
4523 * unittests/observable-selftests.c: Fix common/ includes.
4524 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
4525 * unittests/memrange-selftests.c: Fix common/ includes.
4526 * unittests/memory-map-selftests.c: Fix common/ includes.
4527 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
4528 * unittests/function-view-selftests.c: Fix common/ includes.
4529 * unittests/environ-selftests.c: Fix common/ includes.
4530 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
4531 * unittests/common-utils-selftests.c: Fix common/ includes.
4532 * unittests/cli-utils-selftests.c: Fix common/ includes.
4533 * unittests/array-view-selftests.c: Fix common/ includes.
4534 * ui-file.c: Fix common/ includes.
4535 * tui/tui-io.c: Fix common/ includes.
4536 * tracepoint.h: Fix common/ includes.
4537 * tracepoint.c: Fix common/ includes.
4538 * tracefile-tfile.c: Fix common/ includes.
4539 * top.h: Fix common/ includes.
4540 * top.c: Fix common/ includes.
4541 * thread.c: Fix common/ includes.
4542 * target/waitstatus.h: Fix common/ includes.
4543 * target/waitstatus.c: Fix common/ includes.
4544 * target.h: Fix common/ includes.
4545 * target.c: Fix common/ includes.
4546 * target-memory.c: Fix common/ includes.
4547 * target-descriptions.c: Fix common/ includes.
4548 * symtab.h: Fix common/ includes.
4549 * symfile.c: Fix common/ includes.
4550 * stap-probe.c: Fix common/ includes.
4551 * spu-linux-nat.c: Fix common/ includes.
4552 * sparc-nat.c: Fix common/ includes.
4553 * source.c: Fix common/ includes.
4554 * solib.c: Fix common/ includes.
4555 * solib-target.c: Fix common/ includes.
4556 * ser-unix.c: Fix common/ includes.
4557 * ser-tcp.c: Fix common/ includes.
4558 * ser-pipe.c: Fix common/ includes.
4559 * ser-base.c: Fix common/ includes.
4560 * selftest-arch.c: Fix common/ includes.
4561 * s12z-tdep.c: Fix common/ includes.
4562 * rust-exp.y: Fix common/ includes.
4563 * rs6000-aix-tdep.c: Fix common/ includes.
4564 * riscv-tdep.c: Fix common/ includes.
4565 * remote.c: Fix common/ includes.
4566 * remote-notif.h: Fix common/ includes.
4567 * remote-fileio.h: Fix common/ includes.
4568 * remote-fileio.c: Fix common/ includes.
4569 * regcache.h: Fix common/ includes.
4570 * regcache.c: Fix common/ includes.
4571 * record-btrace.c: Fix common/ includes.
4572 * python/python.c: Fix common/ includes.
4573 * python/py-type.c: Fix common/ includes.
4574 * python/py-inferior.c: Fix common/ includes.
4575 * progspace.h: Fix common/ includes.
4576 * producer.c: Fix common/ includes.
4577 * procfs.c: Fix common/ includes.
4578 * proc-api.c: Fix common/ includes.
4579 * printcmd.c: Fix common/ includes.
4580 * ppc-linux-nat.c: Fix common/ includes.
4581 * parser-defs.h: Fix common/ includes.
4582 * osdata.c: Fix common/ includes.
4583 * obsd-nat.c: Fix common/ includes.
4584 * nat/x86-linux.c: Fix common/ includes.
4585 * nat/x86-linux-dregs.c: Fix common/ includes.
4586 * nat/x86-dregs.h: Fix common/ includes.
4587 * nat/x86-dregs.c: Fix common/ includes.
4588 * nat/ppc-linux.c: Fix common/ includes.
4589 * nat/mips-linux-watch.h: Fix common/ includes.
4590 * nat/mips-linux-watch.c: Fix common/ includes.
4591 * nat/linux-waitpid.c: Fix common/ includes.
4592 * nat/linux-ptrace.h: Fix common/ includes.
4593 * nat/linux-ptrace.c: Fix common/ includes.
4594 * nat/linux-procfs.c: Fix common/ includes.
4595 * nat/linux-personality.c: Fix common/ includes.
4596 * nat/linux-osdata.c: Fix common/ includes.
4597 * nat/linux-namespaces.c: Fix common/ includes.
4598 * nat/linux-btrace.h: Fix common/ includes.
4599 * nat/linux-btrace.c: Fix common/ includes.
4600 * nat/fork-inferior.c: Fix common/ includes.
4601 * nat/amd64-linux-siginfo.c: Fix common/ includes.
4602 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
4603 * nat/aarch64-linux.c: Fix common/ includes.
4604 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
4605 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
4606 * namespace.h: Fix common/ includes.
4607 * mips-linux-tdep.c: Fix common/ includes.
4608 * minsyms.c: Fix common/ includes.
4609 * mi/mi-parse.h: Fix common/ includes.
4610 * mi/mi-main.c: Fix common/ includes.
4611 * mi/mi-cmd-env.c: Fix common/ includes.
4612 * memrange.h: Fix common/ includes.
4613 * memattr.c: Fix common/ includes.
4614 * maint.h: Fix common/ includes.
4615 * maint.c: Fix common/ includes.
4616 * main.c: Fix common/ includes.
4617 * machoread.c: Fix common/ includes.
4618 * location.c: Fix common/ includes.
4619 * linux-thread-db.c: Fix common/ includes.
4620 * linux-nat.c: Fix common/ includes.
4621 * linux-fork.c: Fix common/ includes.
4622 * inline-frame.c: Fix common/ includes.
4623 * infrun.c: Fix common/ includes.
4624 * inflow.c: Fix common/ includes.
4625 * inferior.h: Fix common/ includes.
4626 * inferior.c: Fix common/ includes.
4627 * infcmd.c: Fix common/ includes.
4628 * inf-ptrace.c: Fix common/ includes.
4629 * inf-child.c: Fix common/ includes.
4630 * ia64-linux-nat.c: Fix common/ includes.
4631 * i387-tdep.c: Fix common/ includes.
4632 * i386-tdep.c: Fix common/ includes.
4633 * i386-linux-tdep.c: Fix common/ includes.
4634 * i386-linux-nat.c: Fix common/ includes.
4635 * i386-go32-tdep.c: Fix common/ includes.
4636 * i386-fbsd-tdep.c: Fix common/ includes.
4637 * i386-fbsd-nat.c: Fix common/ includes.
4638 * guile/scm-type.c: Fix common/ includes.
4639 * guile/guile.c: Fix common/ includes.
4640 * go32-nat.c: Fix common/ includes.
4641 * gnu-nat.c: Fix common/ includes.
4642 * gdbthread.h: Fix common/ includes.
4643 * gdbarch-selftests.c: Fix common/ includes.
4644 * gdb_usleep.c: Fix common/ includes.
4645 * gdb_select.h: Fix common/ includes.
4646 * gdb_bfd.c: Fix common/ includes.
4647 * gcore.c: Fix common/ includes.
4648 * fork-child.c: Fix common/ includes.
4649 * findvar.c: Fix common/ includes.
4650 * fbsd-nat.c: Fix common/ includes.
4651 * event-top.c: Fix common/ includes.
4652 * event-loop.c: Fix common/ includes.
4653 * dwarf2read.c: Fix common/ includes.
4654 * dwarf2loc.c: Fix common/ includes.
4655 * dwarf2-frame.c: Fix common/ includes.
4656 * dwarf-index-cache.c: Fix common/ includes.
4657 * dtrace-probe.c: Fix common/ includes.
4658 * disasm-selftests.c: Fix common/ includes.
4659 * defs.h: Fix common/ includes.
4660 * csky-tdep.c: Fix common/ includes.
4661 * cp-valprint.c: Fix common/ includes.
4662 * cp-support.h: Fix common/ includes.
4663 * cp-support.c: Fix common/ includes.
4664 * corelow.c: Fix common/ includes.
4665 * completer.h: Fix common/ includes.
4666 * completer.c: Fix common/ includes.
4667 * compile/compile.c: Fix common/ includes.
4668 * compile/compile-loc2c.c: Fix common/ includes.
4669 * compile/compile-cplus-types.c: Fix common/ includes.
4670 * compile/compile-cplus-symbols.c: Fix common/ includes.
4671 * command.h: Fix common/ includes.
4672 * cli/cli-dump.c: Fix common/ includes.
4673 * cli/cli-cmds.c: Fix common/ includes.
4674 * charset.c: Fix common/ includes.
4675 * build-id.c: Fix common/ includes.
4676 * btrace.h: Fix common/ includes.
4677 * btrace.c: Fix common/ includes.
4678 * breakpoint.h: Fix common/ includes.
4679 * breakpoint.c: Fix common/ includes.
4680 * ax.h:
4681 (enum agent_op): Fix common/ includes.
4682 * ax-general.c (struct aop_map): Fix common/ includes.
4683 * ax-gdb.c: Fix common/ includes.
4684 * auxv.c: Fix common/ includes.
4685 * auto-load.c: Fix common/ includes.
4686 * arm-tdep.c: Fix common/ includes.
4687 * arch/riscv.c: Fix common/ includes.
4688 * arch/ppc-linux-common.c: Fix common/ includes.
4689 * arch/i386.c: Fix common/ includes.
4690 * arch/arm.c: Fix common/ includes.
4691 * arch/arm-linux.c: Fix common/ includes.
4692 * arch/arm-get-next-pcs.c: Fix common/ includes.
4693 * arch/amd64.c: Fix common/ includes.
4694 * arch/aarch64.c: Fix common/ includes.
4695 * arch/aarch64-insn.c: Fix common/ includes.
4696 * arch-utils.c: Fix common/ includes.
4697 * amd64-windows-tdep.c: Fix common/ includes.
4698 * amd64-tdep.c: Fix common/ includes.
4699 * amd64-sol2-tdep.c: Fix common/ includes.
4700 * amd64-obsd-tdep.c: Fix common/ includes.
4701 * amd64-nbsd-tdep.c: Fix common/ includes.
4702 * amd64-linux-tdep.c: Fix common/ includes.
4703 * amd64-linux-nat.c: Fix common/ includes.
4704 * amd64-fbsd-tdep.c: Fix common/ includes.
4705 * amd64-fbsd-nat.c: Fix common/ includes.
4706 * amd64-dicos-tdep.c: Fix common/ includes.
4707 * amd64-darwin-tdep.c: Fix common/ includes.
4708 * agent.c: Fix common/ includes.
4709 * ada-lang.h: Fix common/ includes.
4710 * ada-lang.c: Fix common/ includes.
4711 * aarch64-tdep.c: Fix common/ includes.
4712
47132019-01-25 Tom Tromey <tom@tromey.com>
4714
4715 * common/create-version.sh: Use common/version.h.
4716
47172019-01-24 Pedro Alves <palves@redhat.com>
4718
4719 * infrun.c (signal_stop, signal_print, signal_program)
4720 (signal_catch, signal_pass): Now arrays instead of pointers.
4721 (update_signals_program_target, do_target_resume)
4722 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
4723 * linux-nat.c (linux_nat_target::pass_signals)
4724 (linux_nat_target::create_inferior, linux_nat_target::attach):
4725 Adjust.
4726 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
4727 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
4728 * procfs.c (procfs_target::pass_signals): Adjust.
4729 * record-full.c (record_full_target::resume): Adjust.
4730 * remote.c (remote_target::pass_signals)
4731 (remote_target::program_signals): Adjust.
4732 * target-debug.h (target_debug_print_signals): Now takes a
4733 gdb::array_view as parameter. Adjust.
4734 * target.h (target_ops) <pass_signals, program_signals>: Replace
4735 pointer and length parameters with gdb::array_view.
4736 (target_pass_signals, target_program_signals): Likewise.
4737 * target-delegates.c: Regenerate.
4738
47392019-01-24 Pedro Alves <palves@redhat.com>
4740
4741 * common/forward-scope-exit.h
4742 (forward_scope_exit::forward_scope_exit): Pass arguments to
4743 m_bind_function directly, instead of creating a std::bind and
4744 copying that.
4745
47462019-01-24 Alan Hayward <alan.hayward@arm.com>
4747
4748 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4749 for static members.
4750 (pass_in_v_vfp_candidate): Likewise.
4751
47522019-01-23 Tom Tromey <tom@tromey.com>
4753 Pedro Alves <palves@redhat.com>
4754
4755 * regcache.c (class regcache_invalidator): Remove.
4756 (regcache::raw_write): Use make_scope_exit.
4757
47582019-01-23 Tom Tromey <tom@tromey.com>
4759
4760 * ui-out.h (class ui_out_emit_type): Update comment.
4761
47622019-01-23 Tom Tromey <tom@tromey.com>
4763
4764 * infrun.c (fetch_inferior_event): Update comment.
4765
47662019-01-23 Tom Tromey <tom@tromey.com>
4767 Pedro Alves <palves@redhat.com>
4768
4769 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
4770 parameter.
4771 (fetch_inferior_event): Use SCOPE_EXIT.
4772
4773
47742019-01-23 Tom Tromey <tom@tromey.com>
4775 Pedro Alves <palves@redhat.com>
4776
4777 * infrun.c (disable_thread_events): Delete.
4778 (stop_all_threads): Use SCOPE_EXIT.
4779
47802019-01-23 Tom Tromey <tom@tromey.com>
4781 Pedro Alves <palves@redhat.com>
4782
4783 * symfile.c: Include forward-scope-exit.h.
4784 (clear_symtab_users_cleanup): Replace forward declaration with
4785 a FORWARD_SCOPE_EXIT.
4786 (syms_from_objfile_1): Use the forward_scope_exit and
4787 gdb::optional instead of cleanup_function.
4788 (reread_symbols): Use the forward_scope_exit instead of
4789 cleanup_function.
4790 (clear_symtab_users_cleanup): Remove function.
4791
47922019-01-23 Tom Tromey <tom@tromey.com>
4793 Pedro Alves <palves@redhat.com>
4794
4795 * linux-nat.c: Include scope-exit.h.
4796 (cleanup_target_stop): Remove.
4797 (linux_nat_target::static_tracepoint_markers_by_strid): Use
4798 SCOPE_EXIT.
4799
48002019-01-23 Tom Tromey <tom@tromey.com>
4801 Pedro Alves <palves@redhat.com>
4802
4803 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
4804 (call_function_by_hand_dummy): Use SCOPE_EXIT.
4805
48062019-01-23 Tom Tromey <tom@tromey.com>
4807 Andrew Burgess <andrew.burgess@embecosm.com>
4808 Pedro Alves <palves@redhat.com>
4809
4810 * infrun.c (fetch_inferior_event): Use scope_exit.
4811 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
4812 * top.c (execute_command): Use scope_exit.
4813 * breakpoint.c (bpstat_do_actions): Use scope_exit.
4814 * utils.c (do_bpstat_clear_actions_cleanup)
4815 (make_bpstat_clear_actions_cleanup): Remove.
4816
48172019-01-23 Tom Tromey <tom@tromey.com>
4818 Pedro Alves <palves@redhat.com>
4819
4820 * infrun.c: Include "common/scope-exit.h"
4821 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
4822 (wait_for_inferior): Use SCOPE_EXIT.
4823 (fetch_inferior_event): Use scope_exit.
4824
48252019-01-23 Tom Tromey <tom@tromey.com>
4826 Pedro Alves <palves@redhat.com>
4827
4828 * breakpoint.c (create_breakpoint): Remove cleanup.
4829
48302019-01-23 Tom Tromey <tom@tromey.com>
4831 Andrew Burgess <andrew.burgess@embecosm.com>
4832 Pedro Alves <palves@redhat.com>
4833
48342019-01-23 Pedro Alves <palves@redhat.com>
4835
4836 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
4837
48382019-01-23 Pedro Alves <palves@redhat.com>
4839 Andrew Burgess <andrew.burgess@embecosm.com>
4840
4841 * gdbthread.h: Include "common/forward-scope-exit.h".
4842 (scoped_finish_thread_state): Redefine custom class in terms of
4843 forward_scope_exit.
4844
48452019-01-23 Pedro Alves <palves@redhat.com>
4846 Andrew Burgess <andrew.burgess@embecosm.com>
4847
4848 * common/forward-scope-exit.h: New file.
4849
48502019-01-23 Pedro Alves <palves@redhat.com>
4851 Andrew Burgess <andrew.burgess@embecosm.com>
4852 Tom Tromey <tom@tromey.com>
4853
4854 * common/scope-exit.h: New file.
4855
48562019-01-23 Pedro Alves <palves@redhat.com>
4857
4858 * common/preprocessor.h (ESC): Rename to ...
4859 (ESC_PARENS): ... this.
4860 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
4861 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
4862
48632019-01-23 Tom Tromey <tom@tromey.com>
4864
4865 * language.h (class scoped_switch_to_sym_language_if_auto):
4866 Initialize m_lang in both cases.
4867
48682019-01-23 Alan Hayward <alan.hayward@arm.com>
4869
4870 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
4871 with XCNEW.
4872
48732019-01-22 Tom Tromey <tom@tromey.com>
4874
4875 * corelow.c: Do not include sys/file.h.
4876
48772019-01-22 Tom Tromey <tom@tromey.com>
4878
4879 * tui/tui-wingeneral.h: Include gdb_curses.h.
4880
48812019-01-22 Tom Tromey <tom@tromey.com>
4882
4883 * source-cache.h (class source_cache) <get_source_lines,
4884 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
4885
48862019-01-22 Tom Tromey <tom@tromey.com>
4887
4888 * remote-fileio.h (struct remote_target): Declare.
4889
48902019-01-22 Tom Tromey <tom@tromey.com>
4891
4892 * python/py-arch.c: Do not include py-ref.h.
4893 * python/py-bpevent.c: Do not include py-ref.h.
4894 * python/py-cmd.c: Do not include py-ref.h.
4895 * python/py-continueevent.c: Do not include py-ref.h.
4896 * python/py-event.h: Do not include py-ref.h.
4897 * python/py-evtregistry.c: Do not include py-ref.h.
4898 * python/py-finishbreakpoint.c: Do not include py-ref.h.
4899 * python/py-frame.c: Do not include py-ref.h.
4900 * python/py-framefilter.c: Do not include py-ref.h.
4901 * python/py-function.c: Do not include py-ref.h.
4902 * python/py-infevents.c: Do not include py-ref.h.
4903 * python/py-linetable.c: Do not include py-ref.h.
4904 * python/py-objfile.c: Do not include py-ref.h.
4905 * python/py-param.c: Do not include py-ref.h.
4906 * python/py-prettyprint.c: Do not include py-ref.h.
4907 * python/py-progspace.c: Do not include py-ref.h.
4908 * python/py-symbol.c: Do not include py-ref.h.
4909 * python/py-symtab.c: Do not include py-ref.h.
4910 * python/py-type.c: Do not include py-ref.h.
4911 * python/py-unwind.c: Do not include py-ref.h.
4912 * python/py-utils.c: Do not include py-ref.h.
4913 * python/py-value.c: Do not include py-ref.h.
4914 * python/py-varobj.c: Do not include py-ref.h.
4915 * python/py-xmethods.c: Do not include py-ref.h.
4916 * python/python.c: Do not include py-ref.h.
4917 * varobj.c: Do not include py-ref.h.
4918
49192019-01-22 Tom Tromey <tom@tromey.com>
4920
4921 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
4922 keyword for bcache.
4923
49242019-01-22 Tom Tromey <tom@tromey.com>
4925
4926 * compile/compile-cplus-types.c: Remove a comment by #include.
4927
49282019-01-22 Tom Tromey <tom@tromey.com>
4929
4930 * compile/gcc-c-plugin.h: Include compile-internal.h.
4931
49322019-01-22 Tom Tromey <tom@tromey.com>
4933
4934 * stabsread.c (EXTERN): Do not define.
4935 (symnum, next_symbol_text_func, processing_gcc_compilation)
4936 (within_function, global_sym_chain, global_stabs)
4937 (previous_stab_code, this_object_header_files)
4938 (n_this_object_header_files)
4939 (n_allocated_this_object_header_files): Define.
4940 * stabsread.h (EXTERN): Never define. Use "extern".
4941
49422019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4943
4944 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
4945 history_value.
4946
49472019-01-21 Tom Tromey <tom@tromey.com>
4948
4949 * ui-out.c: Fix includes.
4950 * tui/tui-source.c: Fix includes.
4951 * target.c: Fix includes.
4952 * remote.c: Fix includes.
4953 * regcache.c: Fix includes.
4954 * python/py-block.c: Fix includes.
4955 * printcmd.c: Fix includes.
4956 * or1k-tdep.c: Fix includes.
4957 * mi/mi-main.c: Fix includes.
4958 * m32r-tdep.c: Fix includes.
4959 * csky-tdep.c: Fix includes.
4960 * compile/compile-cplus-types.c: Fix includes.
4961 * cli/cli-interp.c: Fix includes.
4962
49632019-01-21 Alan Hayward <alan.hayward@arm.com>
4964
4965 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
4966 for padding.
4967
49682019-01-16 Tom Tromey <tom@tromey.com>
4969
4970 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
4971 earlier.
4972 (struct objfile) <msymbols_range>: Move from top level.
4973 <msymbols>: New method.
4974 (class objfile_msymbols): Remove.
4975 * symtab.c (default_collect_symbol_completion_matches_break_on):
4976 Update.
4977 * symmisc.c (dump_msymbols): Update.
4978 * stabsread.c (scan_file_globals): Update.
4979 * objc-lang.c (info_selectors_command, info_classes_command)
4980 (find_methods): Update.
4981 * minsyms.c (find_solib_trampoline_target): Update.
4982 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
4983 * coffread.c (coff_symfile_read): Update.
4984 * ada-lang.c (ada_lookup_simple_minsym)
4985 (ada_collect_symbol_completion_matches): Update.
4986
49872019-01-16 Tom Tromey <tom@tromey.com>
4988
4989 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
4990 type. Remove no-argument constructor.
4991 <iterator::operator++>: Simplify.
4992 <begin>: Update.
4993 <end>: Use minimal_symbol_count.
4994
49952019-01-16 Tom Tromey <tom@tromey.com>
4996
4997 * objfiles.h (struct objfile) <psymtabs>: New method.
4998 (class objfile_psymtabs): Remove.
4999 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
5000 typedef.
5001 <range>: New method.
5002 (require_partial_symbols): Change return type.
5003 * psymtab.c (require_partial_symbols)
5004 (psym_expand_symtabs_matching): Update.
5005 * mdebugread.c (parse_partial_symbols): Update.
5006 * dbxread.c (dbx_end_psymtab): Update.
5007
50082019-01-15 Tom Tromey <tom@tromey.com>
5009
5010 * symtab.c (lookup_objfile_from_block)
5011 (lookup_symbol_in_objfile_symtabs)
5012 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
5013 (find_line_symtab, info_sources_command)
5014 (default_collect_symbol_completion_matches_break_on)
5015 (make_source_files_completion_list): Update.
5016 * symmisc.c (print_objfile_statistics, dump_objfile)
5017 (maintenance_print_symbols, maintenance_info_symtabs)
5018 (maintenance_check_symtabs, maintenance_info_line_tables):
5019 Update.
5020 * source.c (select_source_symtab)
5021 (forget_cached_source_info_for_objfile): Update.
5022 * objfiles.h (class objfile_compunits): Remove.
5023 (struct objfile) <compunits_range>: New typedef.
5024 (compunits): New method.
5025 * objfiles.c (objfile_relocate1): Update.
5026 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5027 * maint.c (count_symtabs_and_blocks): Update.
5028 * linespec.c (iterate_over_all_matching_symtabs): Update.
5029 * cp-support.c (add_symbol_overload_list_qualified): Update.
5030 * coffread.c (coff_symtab_read): Update.
5031 * ada-lang.c (add_nonlocal_symbols)
5032 (ada_collect_symbol_completion_matches)
5033 (ada_add_global_exceptions): Update.
5034
50352019-01-15 Tom Tromey <tom@tromey.com>
5036
5037 * progspace.h (program_space) <objfiles_safe_range>: New
5038 typedef.
5039 <objfiles_safe>: New method.
5040 * objfiles.h (class all_objfiles_safe): Remove.
5041 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
5042 * jit.c (jit_inferior_exit_hook): Update.
5043
50442019-01-17 Tom Tromey <tom@tromey.com>
5045
5046 * progspace.h (program_space) <objfiles_range>: New typedef.
5047 <objfiles>: New method.
5048 <objfiles_head>: Rename from objfiles.
5049 (object_files): Update.
5050 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
5051 * guile/scm-pretty-print.c
5052 (ppscm_find_pretty_printer_from_objfiles): Update.
5053 * guile/scm-objfile.c (gdbscm_objfiles): Update.
5054 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
5055 Update.
5056 * python/py-progspace.c (pspy_get_objfiles): Update.
5057 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5058 Update.
5059 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5060 (objfpy_lookup_objfile_by_build_id): Update.
5061 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5062 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5063 Update.
5064 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5065 (expand_symtab_containing_pc, lookup_objfile_from_block)
5066 (lookup_static_symbol, basic_lookup_transparent_type)
5067 (find_pc_sect_compunit_symtab, find_symbol_at_address)
5068 (find_line_symtab, info_sources_command)
5069 (default_collect_symbol_completion_matches_break_on)
5070 (make_source_files_completion_list, find_main_name): Update.
5071 * symmisc.c (print_symbol_bcache_statistics)
5072 (print_objfile_statistics, maintenance_print_symbols)
5073 (maintenance_print_msymbols, maintenance_print_objfiles)
5074 (maintenance_info_symtabs, maintenance_check_symtabs)
5075 (maintenance_expand_symtabs, maintenance_info_line_tables):
5076 Update.
5077 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
5078 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
5079 (map_overlay_command, unmap_overlay_command)
5080 (simple_overlay_update, expand_symtabs_matching)
5081 (map_symbol_filenames): Update.
5082 * symfile-debug.c (set_debug_symfile): Update.
5083 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
5084 Update.
5085 * source.c (select_source_symtab, forget_cached_source_info):
5086 Update.
5087 * solib.c (solib_read_symbols): Update.
5088 * solib-spu.c (append_ocl_sos): Update.
5089 * psymtab.c (maintenance_print_psymbols)
5090 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5091 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
5092 * printcmd.c (info_symbol_command): Update.
5093 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
5094 Update.
5095 * objfiles.h (class all_objfiles): Remove.
5096 * objfiles.c (have_partial_symbols, have_full_symbols)
5097 (have_minimal_symbols, qsort_cmp, update_section_map)
5098 (shared_objfile_contains_address_p)
5099 (default_iterate_over_objfiles_in_search_order): Update.
5100 * objc-lang.c (info_selectors_command, info_classes_command)
5101 (find_methods): Update.
5102 * minsyms.c (find_solib_trampoline_target): Update.
5103 * maint.c (maintenance_info_sections)
5104 (maintenance_translate_address, count_symtabs_and_blocks):
5105 Update.
5106 * main.c (captured_main_1): Update.
5107 * linux-thread-db.c (try_thread_db_load_from_pdir)
5108 (has_libpthread): Update.
5109 * linespec.c (iterate_over_all_matching_symtabs)
5110 (search_minsyms_for_name): Update.
5111 * jit.c (jit_find_objf_with_entry_addr): Update.
5112 * hppa-tdep.c (find_unwind_entry)
5113 (hppa_lookup_stub_minimal_symbol): Update.
5114 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
5115 Update.
5116 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5117 (elf_gnu_ifunc_resolve_by_got): Update.
5118 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
5119 * dwarf-index-write.c (save_gdb_index_command): Update.
5120 * cp-support.c (add_symbol_overload_list_qualified): Update.
5121 * breakpoint.c (create_overlay_event_breakpoint)
5122 (create_longjmp_master_breakpoint)
5123 (create_std_terminate_master_breakpoint)
5124 (create_exception_master_breakpoint): Update.
5125 * blockframe.c (find_pc_partial_function): Update.
5126 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
5127 (ada_collect_symbol_completion_matches)
5128 (ada_add_global_exceptions): Update.
5129
51302019-01-17 Tom Tromey <tom@tromey.com>
5131
5132 * solib-target.c (lm_info_target_p): Remove typedef. Don't
5133 declare VEC.
5134 (solib_target_parse_libraries): Change return type.
5135 (library_list_start_segment, library_list_start_section)
5136 (library_list_end_library, library_list_start_library); Update.
5137 (solib_target_free_library_list): Remove.
5138 (solib_target_parse_libraries): Remove cleanup. Change return
5139 type.
5140 (solib_target_current_sos): Update.
5141
51422019-01-17 Tom Tromey <tromey@bapiya>
5143
5144 * valprint.c: Replace "the the" with "the".
5145 * symtab.c: Replace "the the" with "the".
5146 * solib.c: Replace "the the" with "the".
5147 * solib-dsbt.c: Replace "the the" with "the".
5148 * linespec.c: Replace "the the" with "the".
5149 * dwarf2loc.h: Replace "the the" with "the".
5150 * amd64-windows-tdep.c: Replace "the the" with "the".
5151 * aarch64-tdep.c: Replace "the the" with "the".
5152
51532019-01-16 Keith Seitz <keiths@redhat.com>
5154
5155 PR gdb/23773
5156 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
5157 <builder>: Rename to ..
5158 <m_builder>: ... this and make private.
5159 (dwarf2_cu::get_builder): New method. Change all users of
5160 `builder' to use this method.
5161 (dwarf2_start_symtab): Move to ...
5162 (dwarf2_cu::start_symtab): ... here. Update all callers
5163 (setup_type_unit_groups): Move to ...
5164 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
5165 callers.
5166 (dwarf2_cu::reset_builder): New method.
5167 (process_full_compunit, process_full_type_unit): Use
5168 dwarf2_cu::reset_builder.
5169 (follow_die_offset): Record the ancestor CU if it is different
5170 from the followed DIE's CU.
5171 (follow_die_sig_1): Likewise.
5172
51732019-01-15 Tom Tromey <tom@tromey.com>
5174
5175 * remote.c (class remote_state) <buf>: Now a char_vector.
5176 <buf_size>: Remove.
5177 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
5178 parameter.
5179 (remote_target::getpkt_or_notif_sane_1)
5180 (remote_target::getpkt_sane)
5181 (remote_target::getpkt_or_notif_sane): Likewise.
5182 (class remote_target) <putpkt>: New overload.
5183 (remote_target::read_frame): Change type of "buf_p". Remove
5184 sizeof_p parameter.
5185 (packet_ok): New overload.
5186 (packet_check_result): New overload.
5187 Update all uses.
5188
51892019-01-14 Tom Tromey <tom@tromey.com>
5190
5191 * remote-notif.c (handle_notification, remote_notif_ack)
5192 (remote_notif_parse): Make "buf" const.
5193 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
5194 const.
5195 (remote_notif_parse, remote_notif_ack, handle_notification):
5196 Likewise.
5197 * remote.c (remote_notif_stop_parse): Make "buf" const.
5198 (remote_target::remote_parse_stop_reply): Make "buf" const.
5199 (remote_notif_stop_ack): Make "buf" const.
5200
52012019-01-14 Tom Tromey <tom@tromey.com>
5202
5203 * remote.c (remote_console_output): Make parameter const.
5204
52052019-01-14 Tom Tromey <tom@tromey.com>
5206
5207 * target-debug.h (target_debug_print_signals): Constify.
5208 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5209 * procfs.c (procfs_target::pass_signals): Update.
5210 * linux-nat.c (linux_nat_target::pass_signals): Update.
5211 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
5212 * target-delegates.c: Rebuild.
5213 * remote.c (remote_target::program_signals): Update.
5214 (remote_target::pass_signals): Update.
5215 * target.c (target_pass_signals): Constify argument.
5216 (target_program_signals): Likewise.
5217 * target.h (struct target_ops) <pass_signals, program_signals>:
5218 Constify argument.
5219 (target_pass_signals, target_program_signals): Constify argument.
5220
52212019-01-14 Tom Tromey <tom@tromey.com>
5222
5223 PR tui/28819:
5224 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
5225
52262019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5227
5228 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
5229 field.
5230 * rs6000-tdep.c: Include reggroups.h.
5231 (IS_V_ALIAS_PSEUDOREG): Define.
5232 (rs6000_register_name): Return names for the "vX" aliases.
5233 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
5234 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
5235 aliases. Call default_register_reggroup_p for all other
5236 pseudo-registers.
5237 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
5238 New functions.
5239 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
5240 Handle "vX" aliases.
5241 (v_alias_pseudo_register_collect): New function.
5242 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
5243 (rs6000_gdbarch_init): Initialize "vX" aliases as
5244 pseudo-registers. Restore registration of
5245 rs6000_pseudo_register_reggroup_p with
5246 set_tdesc_pseudo_register_reggroup_p.
5247
52482019-01-13 Max Filippov <jcmvbkbc@gmail.com>
5249
5250 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
5251 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
5252 set_gdbarch_num_pseudo_regs.
5253
52542019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5255
5256 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
5257 Remove arg prefixname, add do_set and do_show.
5258 Add member functions set_list and show_list.
5259 * cli/cli-style.c (class cli_style_option): Update accordingly.
5260 (style_set_list): Move to file scope.
5261 (style_show_list): Likewise.
5262 (set_style): Call help_list.
5263 (show_style): Call cmd_show_list.
5264 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
5265 Update to use the new macro.
5266
52672019-10-12 Joel Brobecker <brobecker@adacore.com>
5268
5269 * ada-lang.c (_initialize_ada_language): Expand the help text
5270 for the "catch exception" command.
5271
52722019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5273
5274 * symtab.c (matching_obj_sections): Initialize obj,
5275 declare it closer to its usage.
5276
52772019-01-10 Tom Tromey <tom@tromey.com>
5278
5279 * thread-iter.h (inf_threads_iterator): Use next_iterator.
5280 (basic_inf_threads_range): Remove.
5281 (inf_threads_range, inf_non_exited_threads_range)
5282 (safe_inf_threads_range): Use next_adapter.
5283
52842019-01-10 Keith Seitz <keiths@redhat.com>
5285
5286 PR gdb/23712
5287 PR symtab/23010
5288 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
5289 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
5290
52912019-01-10 Keith Seitz <keiths@redhat.com>
5292
5293 PR gdb/23712
5294 PR symtab/23010
5295 * dictionary.c (pending_to_vector): Remove.
5296 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5297 Remove _1 suffix, replacing functions of the same name. Update
5298 all callers.
5299 (dict_create_hashed, dict_create_hashed_expandable)
5300 (dict_create_linear, dict_create_linear_expandable, dict_free)
5301 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
5302 Make functions static.
5303
53042019-01-10 Keith Seitz <keiths@redhat.com>
5305
5306 PR gdb/23712
5307 PR symtab/23010
5308 * dictionary.h (struct dictionary): Replace declaration with
5309 multidictionary.
5310 (dict_create_hashed, dict_create_hashed_expandable)
5311 (dict_create_linear, dict_create_linear_expandable)
5312 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
5313 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
5314 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
5315 taking multidictionary argument.
5316 [ALL_DICT_SYMBOLS]: Update for multidictionary.
5317 * block.h (struct block) <dict>: Change to multidictionary
5318 and rename `multidict'.
5319 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
5320 symmisc.c: Update all dictionary references to multidictionary.
5321
53222019-01-10 Keith Seitz <keiths@redhat.com>
5323
5324 PR gdb/23712
5325 PR symtab/23010
5326 * dictionary.c: Include unordered_map.
5327 (pending_to_vector): New function.
5328 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5329 Rewrite the non-"_1" functions to take vector instead
5330 of linked list.
5331 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
5332 "new" _1 versions of the same name.
5333 (multidictionary): Define.
5334 (std::hash<enum language): New definition.
5335 (collate_pending_symbols_by_language, mdict_create_hashed)
5336 (mdict_create_hashed_expandable, mdict_create_linear)
5337 (mdict_create_linear_expandable, mdict_free)
5338 (find_language_dictionary, create_new_language_dictionary)
5339 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
5340 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
5341 (mdict_size, mdict_empty): New functions.
5342 * dictionary.h (mdict_iterator): Define.
5343
53442019-01-10 Pedro Alves <palves@redhat.com>
5345
5346 * breakpoint.c (read_uploaded_action)
5347 (create_tracepoint_from_upload): Adjust to use
5348 gdb::unique_xmalloc_ptr.
5349 * ctf.c (ctf_write_uploaded_tp):
5350 (SET_ARRAY_FIELD): Use emplace_back.
5351 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
5352 * tracefile-tfile.c (tfile_write_uploaded_tp):
5353 * tracepoint.c (parse_tracepoint_definition): Adjust to use
5354 gdb::unique_xmalloc_ptr.
5355 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
5356 at_string, cond_string, cmd_strings>: Replace char pointers
5357 with gdb::unique_xmalloc_ptr.
5358
53592019-01-10 Pedro Alves <palves@redhat.com>
5360
5361 * solib-target.c (library_list_start_library): Don't xstrdup name.
5362
53632019-01-10 Pedro Alves <palves@redhat.com>
5364
5365 * mdebugread.c (parse_partial_symbols): Use
5366 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
5367
53682019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5369
5370 * linux-fork.c (scoped_switch_fork_info)
5371 <~scoped_switch_fork_info>: Fix incorrect variable name.
5372
53732019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5374
5375 * linux-fork.c (scoped_switch_fork_info)
5376 <scoped_switch_fork_info>: Make explicit.
5377 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
5378
53792019-01-10 Tom Tromey <tom@tromey.com>
5380
5381 * objfiles.h (objfile::reset_psymtabs): Update.
5382 * objfiles.c (objfile::objfile): Update.
5383 * psymtab.h (psymtab_storage::obstack): Update.
5384 (psymtab_storage::m_obstack): Use gdb::optional.
5385 (class psymtab_storage): Update comment. Remove objfile
5386 parameter.
5387 * psymtab.c (psymtab_storage::psymtab_storage): Update.
5388
53892019-01-10 Tom Tromey <tom@tromey.com>
5390
5391 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
5392 <free_psymtabs>: Now private.
5393 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
5394 (allocate_psymtab): Use new method.
5395
53962019-01-10 Tom Tromey <tom@tromey.com>
5397
5398 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
5399 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
5400 * mdebugread.c (parse_partial_symbols): Use
5401 allocate_dependencies.
5402 * dwarf2read.c (dwarf2_create_include_psymtab): Use
5403 allocate_dependencies.
5404 (process_psymtab_comp_unit_reader)
5405 (build_type_psymtab_dependencies): Likewise.
5406 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
5407
54082019-01-10 Tom Tromey <tom@tromey.com>
5409
5410 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
5411 PSYMBOL_SET_LANGUAGE.
5412 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
5413
54142019-01-10 Tom Tromey <tom@tromey.com>
5415
5416 * psymtab.h (psymtab_storage::obstack): New method.
5417 <m_obstack>: Rename from obstack; now private.
5418 * psymtab.c (psymtab_storage): Update.
5419 * dwarf2read.c (create_addrmap_from_index)
5420 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
5421 Update.
5422
54232019-01-10 Tom Tromey <tom@tromey.com>
5424
5425 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
5426 * objfiles.h (objfile::reset_psymtabs): New method.
5427
54282019-01-10 Tom Tromey <tom@tromey.com>
5429
5430 * symmisc.c (print_symbol_bcache_statistics): Update.
5431 (print_objfile_statistics): Update.
5432 * symfile.c (reread_symbols): Update.
5433 * psymtab.h (class psymtab_storage): New.
5434 * psymtab.c (psymtab_storage): New constructor.
5435 (~psymtab_storage): New destructor.
5436 (require_partial_symbols): Update.
5437 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
5438 (find_pc_sect_psymtab, find_pc_sect_psymbol)
5439 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
5440 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
5441 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
5442 (start_psymtab_common, end_psymtab_common)
5443 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
5444 (allocate_psymtab): Update.
5445 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
5446 Update.
5447 (dump_psymtab_addrmap, maintenance_print_psymbols)
5448 (maintenance_check_psymtabs): Update.
5449 (class objfile_psymtabs): Move to objfiles.h.
5450 * psympriv.h (discard_psymtab): Now inline.
5451 (psymtab_discarder::psymtab_discarder): Update.
5452 (psymtab_discarder::~psymtab_discarder): Update.
5453 (ALL_OBJFILE_PSYMTABS): Rewrite.
5454 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
5455 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
5456 Remove fields.
5457 <partial_symtabs>: New field.
5458 (class objfile_psymtabs): Move from psymtab.h. Update.
5459 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
5460 psymbol_cache.
5461 (objfile::~objfile): Don't destroy psymbol_cache.
5462 * mdebugread.c (parse_partial_symbols): Update.
5463 * dwarf2read.c (create_addrmap_from_index)
5464 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5465 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
5466 (add_partial_subprogram, dwarf2_ranges_read): Update.
5467 * dwarf-index-write.c (write_address_map)
5468 (write_one_signatured_type, recursively_write_psymbols)
5469 (class debug_names, class debug_names, write_psymtabs_to_index):
5470 Update.
5471
54722019-01-10 Tom Tromey <tom@tromey.com>
5473
5474 * symtab.h (SYMBOL_SET_NAMES): Update.
5475 (symbol_set_names): Update.
5476 (MSYMBOL_SET_NAMES): Update.
5477 * symtab.c (symbol_set_names): Change argument to be an
5478 objfile_per_bfd_storage.
5479 * psymtab.c (add_psymbol_to_bcache): Update.
5480 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
5481
54822019-01-10 Tom Tromey <tom@tromey.com>
5483
5484 * symtab.c (create_demangled_names_hash): Change argument to be an
5485 objfile_per_bfd_storage.
5486 (symbol_set_names): Update.
5487
54882019-01-10 Tom Tromey <tom@tromey.com>
5489
5490 * xcoffread.c (xcoff_initial_scan): Unconditionally call
5491 init_psymbol_list.
5492 * psymtab.c (init_psymbol_list): Do nothing if already called.
5493 * psympriv.h (init_psymbol_list): Add comment.
5494 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
5495 init_psymbol_list.
5496 * dbxread.c (dbx_symfile_read): Unconditionally call
5497 init_psymbol_list.
5498
54992019-01-10 Tom Tromey <tom@tromey.com>
5500
5501 * xcoffread.c (scan_xcoff_symtab): Update.
5502 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
5503 "where".
5504 * mdebugread.c (parse_partial_symbols)
5505 (handle_psymbol_enumerators): Update.
5506 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
5507 * dbxread.c (read_dbx_symtab): Update.
5508 * psympriv.h (psymbol_placement): New enum.
5509 (add_psymbol_to_list): Update.
5510
55112019-01-10 Tom Tromey <tom@tromey.com>
5512
5513 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
5514 static_psymbols parameters.
5515 (scan_xcoff_symtab): Update.
5516 * psymtab.c (start_psymtab_common): Remove global_psymbols and
5517 static_psymbols parameters.
5518 * psympriv.h (start_psymtab_common): Update.
5519 * mdebugread.c (parse_partial_symbols): Update.
5520 * dwarf2read.c (create_partial_symtab): Update.
5521 * dbxread.c (read_dbx_symtab): Update.
5522 (start_psymtab): Remove global_psymbols and static_psymbols
5523 parameters.
5524
55252019-01-10 Tom Tromey <tom@tromey.com>
5526
5527 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
5528 * psymtab.c (allocate_psymtab): Add comment.
5529 * psympriv.h (allocate_psymtab): Add comment.
5530 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
5531 initializations.
5532 * dbxread.c (dbx_end_psymtab): Remove some initializations.
5533
55342019-01-10 Tom Tromey <tom@tromey.com>
5535
5536 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5537 Don't declare.
5538 * mipsread.c: Include mdebugread.h.
5539 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
5540 Declare.
5541 * elfread.c: Include mdebugread.h.
5542
55432019-01-09 Tom Tromey <tom@tromey.com>
5544
5545 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
5546 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
5547 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
5548 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
5549 (psym_lookup_symbol, psym_find_last_source_symtab)
5550 (psym_forget_cached_source_info, psym_print_stats)
5551 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
5552 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
5553 (psym_map_matching_symbols, psym_expand_symtabs_matching)
5554 (psym_find_compunit_symtab_by_address)
5555 (maintenance_print_psymbols, maintenance_info_psymtabs)
5556 (maintenance_check_psymtabs): Use ranged for.
5557 * psymtab.h (class objfile_psymtabs): New.
5558 (require_partial_symbols): Return objfile_psymtabs.
5559 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
5560
55612019-01-09 Tom Tromey <tom@tromey.com>
5562
5563 * symfile.c (overlay_invalidate_all, find_pc_overlay)
5564 (find_pc_mapped_section, list_overlays_command)
5565 (map_overlay_command, unmap_overlay_command)
5566 (simple_overlay_update): Use all_objfiles.
5567 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
5568 * printcmd.c (info_symbol_command): Use all_objfiles.
5569 * objfiles.h (ALL_OBJSECTIONS): Remove.
5570 * maint.c (maintenance_translate_address): Use all_objfiles.
5571 * gcore.c (gcore_create_callback): Use all_objfiles.
5572 (objfile_find_memory_regions): Likewise.
5573
55742019-01-09 Tom Tromey <tom@tromey.com>
5575
5576 * symtab.c (find_line_symtab, info_sources_command)
5577 (make_source_files_completion_list): Use objfile_compunits.
5578 * source.c (select_source_symtab): Use objfile_compunits.
5579 * objfiles.h (struct objfile): Update comment.
5580 (ALL_OBJFILES): Remove.
5581 (ALL_FILETABS): Remove.
5582 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
5583 objfile_compunits.
5584
55852019-01-09 Tom Tromey <tom@tromey.com>
5586
5587 * symmisc.c (print_objfile_statistics, dump_objfile)
5588 (maintenance_print_symbols): Use compunit_filetabs.
5589 * source.c (forget_cached_source_info_for_objfile): Use
5590 compunit_filetabs.
5591 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
5592 (ALL_FILETABS): Use compunit_filetabs.
5593 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
5594 * coffread.c (coff_symtab_read): Use compunit_filetabs.
5595
55962019-01-09 Tom Tromey <tom@tromey.com>
5597
5598 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
5599 (compunit_filetabs): New.
5600 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
5601 compunit_filetabs.
5602 (info_sources_command, make_source_files_completion_list): Remove
5603 declaration.
5604 * symmisc.c (print_objfile_statistics, dump_objfile)
5605 (maintenance_print_symbols): Remove declaration.
5606 (maintenance_info_symtabs): Use compunit_filetabs.
5607 (maintenance_info_line_tables): Likewise.
5608 * source.c (select_source_symtab): Change local variable name.
5609 (forget_cached_source_info_for_objfile): Remove declaration.
5610 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
5611 * objfiles.c (objfile_relocate1): Remove declaration.
5612 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5613 declaration.
5614 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
5615 * coffread.c (coff_symtab_read): Remove declaration.
5616 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
5617 compunit_filetabs.
5618
56192019-01-09 Tom Tromey <tom@tromey.com>
5620
5621 * symtab.c (lookup_objfile_from_block)
5622 (find_pc_sect_compunit_symtab, search_symbols)
5623 (default_collect_symbol_completion_matches_break_on): Use
5624 objfile_compunits.
5625 * objfiles.h (ALL_COMPUNITS): Remove.
5626 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
5627 * cp-support.c (add_symbol_overload_list_qualified): Use
5628 objfile_compunits.
5629 * ada-lang.c (ada_collect_symbol_completion_matches)
5630 (ada_add_global_exceptions): Use objfile_compunits.
5631
56322019-01-09 Tom Tromey <tom@tromey.com>
5633
5634 * source.c (select_source_symtab)
5635 (forget_cached_source_info_for_objfile): Remove declaration.
5636 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
5637 declaration.
5638 * maint.c (count_symtabs_and_blocks): Remove declaration.
5639 * cp-support.c (add_symbol_overload_list_qualified): Remove
5640 declaration.
5641 * coffread.c (coff_symtab_read): Remove declaration.
5642 * symtab.c (lookup_symbol_in_objfile_symtabs)
5643 (basic_lookup_transparent_type_1): Use objfile_compunits.
5644 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
5645 (info_sources_command, search_symbols)
5646 (default_collect_symbol_completion_matches_break_on)
5647 (make_source_files_completion_list): Remove declaration.
5648 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
5649 (ada_collect_symbol_completion_matches)
5650 (ada_add_global_exceptions): Remove declaration.
5651 * linespec.c (iterate_over_all_matching_symtabs): Use
5652 objfile_compunits.
5653 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
5654 (class objfile_compunits): New.
5655 (ALL_COMPUNITS): Use objfile_compunits.
5656 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
5657 (maintenance_check_symtabs, maintenance_info_line_tables): Use
5658 objfile_compunits.
5659 * objfiles.c (objfile_relocate1): Use objfile_compunits.
5660
56612019-01-09 Tom Tromey <tom@tromey.com>
5662
5663 * symtab.c (search_symbols)
5664 (default_collect_symbol_completion_matches_break_on): Use
5665 objfile_msymbols.
5666 * ada-lang.c (ada_lookup_simple_minsym)
5667 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
5668 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
5669 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
5670 objfile_msymbols.
5671 * coffread.c (coff_symfile_read): Use objfile_msymbols.
5672 * symmisc.c (dump_msymbols): Use objfile_msymbols.
5673 * objc-lang.c (find_methods): Use objfile_msymbols.
5674 (info_selectors_command, info_classes_command): Likewise.
5675 * stabsread.c (scan_file_globals): Use objfile_msymbols.
5676 * objfiles.h (class objfile_msymbols): New.
5677 (ALL_OBJFILE_MSYMBOLS): Remove.
5678 (ALL_MSYMBOLS): Remove.
5679
56802019-01-09 Tom Tromey <tom@tromey.com>
5681
5682 * common/next-iterator.h (next_adapter): Add Iterator template
5683 parameter.
5684 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
5685 (class all_objfiles_safe): New.
5686 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
5687 * objfiles.c (put_objfile_before): Update comment.
5688 (add_separate_debug_objfile): Likewise.
5689 (free_all_objfiles): Use all_objfiles_safe.
5690 (objfile_purge_solibs): Likewise.
5691
56922019-01-09 Tom Tromey <tom@tromey.com>
5693
5694 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5695 (expand_symtab_containing_pc, lookup_static_symbol)
5696 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
5697 (find_symbol_at_address, find_line_symtab, find_main_name): Use
5698 all_objfiles.
5699 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
5700 * breakpoint.c (create_overlay_event_breakpoint)
5701 (create_longjmp_master_breakpoint)
5702 (create_std_terminate_master_breakpoint)
5703 (create_exception_master_breakpoint): Use all_objfiles.
5704 * linux-thread-db.c (try_thread_db_load_from_pdir)
5705 (has_libpthread): Use all_objfiles.
5706 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
5707 * linespec.c (iterate_over_all_matching_symtabs)
5708 (search_minsyms_for_name): Use all_objfiles.
5709 * maint.c (maintenance_info_sections): Use all_objfiles.
5710 * main.c (captured_main_1): Use all_objfiles.
5711 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
5712 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
5713 * guile/scm-pretty-print.c
5714 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
5715 * solib-spu.c (append_ocl_sos): Use all_objfiles.
5716 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
5717 (maintenance_print_msymbols): Use all_objfiles.
5718 * source.c (select_source_symtab): Use all_objfiles.
5719 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
5720 * symfile.c (remove_symbol_file_command)
5721 (expand_symtabs_matching, map_symbol_filenames): Use
5722 all_objfiles.
5723 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
5724 all_objfiles.
5725 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
5726 * objc-lang.c (find_methods): Use all_objfiles.
5727 * objfiles.c (have_partial_symbols, have_full_symbols)
5728 (have_minimal_symbols, qsort_cmp)
5729 (default_iterate_over_objfiles_in_search_order): Use
5730 all_objfiles.
5731 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
5732 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
5733 (maintenance_check_psymtabs): Use all_objfiles.
5734 (ALL_PSYMTABS): Remove.
5735 * compile/compile-object-run.c (do_module_cleanup): Use
5736 all_objfiles.
5737 * blockframe.c (find_pc_partial_function): Use all_objfiles.
5738 * cp-support.c (add_symbol_overload_list_qualified): Use
5739 all_objfiles.
5740 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5741 Use all_objfiles.
5742 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
5743 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
5744 all_objfiles.
5745 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5746 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
5747 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5748 Uses all_objfiles.
5749 * solib.c (solib_read_symbols): Use all_objfiles
5750
57512019-01-09 Tom Tromey <tom@tromey.com>
5752
5753 * probe.c (parse_probes_in_pspace): Use all_objfiles.
5754 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
5755 all_objfiles.
5756 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
5757 * symmisc.c (print_symbol_bcache_statistics)
5758 (print_objfile_statistics, maintenance_print_objfiles)
5759 (maintenance_info_symtabs, maintenance_check_symtabs)
5760 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
5761 all_objfiles.
5762 * source.c (forget_cached_source_info): Use all_objfiles.
5763 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
5764 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5765 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
5766 * objfiles.c (update_section_map): Use all_objfiles.
5767 (shared_objfile_contains_address_p): Likewise.
5768 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
5769 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
5770
57712019-01-09 Tom Tromey <tom@tromey.com>
5772
5773 * common/next-iterator.h: New file.
5774 * objfiles.h (class all_objfiles): New.
5775 (struct objfile_iterator): New.
5776
57772019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5778
5779 * NEWS: Move the description of the changed "frame", "select-frame",
5780 and "info frame" commands to the Changed commands section.
5781
57822019-01-09 Simon Marchi <simon.marchi@ericsson.com>
5783
5784 * gdbtypes.c (check_stub_method_group): Remove handling of old
5785 mangling schemes.
5786 * linespec.c (find_methods): Likewise.
5787 * stabsread.c (read_member_functions): Likewise.
5788 * valops.c (search_struct_method): Likewise.
5789 (value_struct_elt_for_reference): Likewise.
5790 * NEWS: Mention this change.
5791
57922019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
5793
5794 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
5795 print_source_lines.
5796 * source.c (print_source_lines_base): Update line number check.
5797 (print_source_lines): New function.
5798 (source_lines_range::source_lines_range): New function.
5799 * source.h (class source_lines_range): New class.
5800 (print_source_lines): New declaration.
5801
58022019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5803
5804 * linespec.c (linespec_state_destructor): Free self->canonical_names.
5805
58062019-01-08 Tom Tromey <tom@tromey.com>
5807 Simon Marchi <simon.marchi@ericsson.com>
5808
5809 PR gdb/24060
5810 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
5811 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
5812 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5813 * f-exp.y (DOLLAR_VARIABLE): Likewise.
5814 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
5815 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
5816
58172019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5818
5819 * source.c (select_source_symtab): Move header comment to
5820 declaration in source.h.
5821 (forget_cached_source_info_for_objfile): Likewise.
5822 (forget_cached_source_info): Likewise.
5823 (identify_source_line): Likewise.
5824 * source.h (identify_source_line): Move declaration from symtab.h
5825 and add comment from source.c
5826 (print_source_lines): Likewise.
5827 (forget_cached_source_info_for_objfile): Likewise.
5828 (forget_cached_source_info): Likewise.
5829 (select_source_symtab): Likewise.
5830 (enum print_source_lines_flag): Move definition from symtab.h.
5831 * symtab.h (identify_source_line): Move declaration to source.h.
5832 (print_source_lines): Likewise.
5833 (forget_cached_source_info_for_objfile): Likewise.
5834 (forget_cached_source_info): Likewise.
5835 (select_source_symtab): Likewise.
5836 (enum print_source_lines_flag): Move definition to source.h.
5837 * tui/tui-hooks.c: Add 'source.h' include.
5838
58392019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5840
5841 * source.c (print_source_lines_base): Handle requests to print
5842 reverse line number sequences, and guard against empty lines
5843 string.
5844
58452019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5846
5847 * source.c (print_source_lines_base): Fix skip of '\r' if next
5848 character is '\n'.
5849
58502019-01-06 Tom Tromey <tom@tromey.com>
5851
5852 * c-exp.y (struct c_parse_state) <macro_original_text,
5853 expansion_obstack>: New member.
5854 (macro_original_text, expansion_obstack): Remove globals.
5855 (scan_macro_expansion, scanning_macro_expansion)
5856 (finished_macro_expansion): Update.
5857 (scan_macro_cleanup): Remove.
5858 (yylex, c_parse): Update.
5859
58602019-01-06 Tom Tromey <tom@tromey.com>
5861
5862 * c-exp.y (struct c_parse_state) <strings>: New member.
5863 (operator_stoken): Update.
5864
58652019-01-06 Tom Tromey <tom@tromey.com>
5866
5867 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
5868 (union type_stack_elt) <typelist_val>: Now a pointer to
5869 std::vector.
5870 (type_stack_cleanup): Don't declare.
5871 (push_typelist): Update.
5872 * parse.c (pop_typelist): Return a std::vector.
5873 (push_typelist): Take a std::vector.
5874 (follow_types): Update. Do not free args.
5875 (type_stack_cleanup): Remove.
5876 * c-exp.y (struct c_parse_state): New.
5877 (cpstate): New global.
5878 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
5879 (nonempty_typelist): Update.
5880 (func_mod): Create a new vector.
5881 (c_parse): Create a c_parse_state.
5882 (check_parameter_typelist): Do not delete params.
5883 (function_method): Update. Do not delete type_list.
5884
58852019-01-06 Tom Tromey <tom@tromey.com>
5886
5887 PR gdb/28155:
5888 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
5889 check_typedef.
5890 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
5891 (print_return_value): Likewise.
5892
58932019-01-05 Tom Tromey <tom@tromey.com>
5894
5895 * contrib/cleanup_check.py: Remove.
5896 * contrib/gcc-with-excheck: Remove.
5897 * contrib/exsummary.py: Remove.
5898 * contrib/excheck.py: Remove.
5899
59002019-01-05 Joel Brobecker <brobecker@adacore.com>
5901
5902 * thread.c (delete_thread_1): Add gdb_assert that THR is not
5903 NULL. Initialize tpprev to NULL instead of assigning it
5904 to NULL on the next statement.
5905 * windows-nat.c (windows_delete_thread): Remove check for
5906 main_thread_id before printing thread exit notifications.
5907 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
5908 Remove thread ID check against main_thread_id.
5909 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
5910 windows_delete_thread.
5911 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
5912
59132019-01-04 Tom Tromey <tom@tromey.com>
5914
5915 * compile/compile.c (_initialize_compile): Use upper case for
5916 metasyntactic variables.
5917 * symmisc.c (_initialize_symmisc): Use upper case for
5918 metasyntactic variables.
5919 * psymtab.c (_initialize_psymtab): Use upper case for
5920 metasyntactic variables.
5921 * demangle.c (demangle_command): Use upper case for metasyntactic
5922 variables.
5923 (_initialize_demangler): Likewise.
5924 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
5925 variables.
5926
59272019-01-03 Tom Tromey <tom@tromey.com>
5928
5929 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
5930
59312019-01-03 Tom Tromey <tom@tromey.com>
5932
5933 * python/py-symtab.c (salpy_str): Update.
5934 (struct salpy_sal_object) <symtab>: Now a PyObject.
5935 (salpy_dealloc): Update.
5936 (del_objfile_sal): Use gdbpy_ref.
5937
59382019-01-03 Tom Tromey <tom@tromey.com>
5939
5940 * python/py-type.c (convert_field): Use new_reference. Return
5941 gdbpy_ref.
5942 (make_fielditem): Return gdbpy_ref.
5943 (typy_fields): Update.
5944 (typy_getitem): Update.
5945 (field_name): Return gdbpy_ref. Use new_reference.
5946 (typy_iterator_iternext): Update.
5947
59482019-01-03 Tom Tromey <tom@tromey.com>
5949
5950 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
5951
59522019-01-03 Tom Tromey <tom@tromey.com>
5953
5954 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
5955 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
5956 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
5957 (pspy_set_frame_filters, pspy_set_frame_unwinders)
5958 (pspy_set_type_printers): Likewise.
5959 * python/py-function.c (fnpy_init): Use gdbpy_ref.
5960 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
5961 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
5962 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
5963 (objfpy_set_type_printers): Likewise.
5964
59652019-01-03 Tom Tromey <tom@tromey.com>
5966
5967 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
5968 (gdbpy_print_stack): Use gdbpy_err_fetch.
5969 * python/python-internal.h (class gdbpy_err_fetch): New class.
5970 (class gdbpy_enter) <m_error_type, m_error_value,
5971 m_error_traceback>: Remove.
5972 <m_error>: New member.
5973 (gdbpy_exception_to_string): Don't declare.
5974 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
5975 * python/py-value.c (convert_value_from_python): Use
5976 gdbpy_err_fetch.
5977 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
5978 gdbpy_exception_to_string.
5979 (gdbpy_handle_exception): Use gdbpy_err_fetch.
5980 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
5981 gdbpy_err_fetch.
5982
59832019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5984
5985 * linux-nat.c (delete_lwp_cleanup): Delete.
5986 (struct lwp_deleter): New struct.
5987 (lwp_info_up): New typedef.
5988 (linux_nat_target::follow_fork): Delete cleanup, and make use of
5989 lwp_info_up.
5990
59912019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5992
5993 * linux-fork.c (class scoped_switch_fork_info): New class.
5994 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
5995
59962019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
5997
5998 * valops.c (find_overload_match): Remove use of null_cleanup, and
5999 calls to do_cleanups.
6000
60012019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6002
6003 * compile/compile-cplus-types.c
6004 (compile_cplus_instance::decl_name): Handle changes to
6005 cp_func_name.
6006 * cp-support.c (cp_func_name): Update header comment, update
6007 return type.
6008 * cp-support.h (cp_func_name): Update return type in declaration.
6009 * valops.c (find_overload_match): Move temp_func local to top
6010 level of function and change its type. Use temp_func to hold and
6011 delete temporary string obtained from cp_func_name.
6012
60132019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6014
6015 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
6016 gdb::char_vector, remove cleanup, and update uses of `msg`.
6017
60182019-01-03 Jim Wilson <jimw@sifive.com>
6019
6020 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
6021
60222019-01-02 Tom Tromey <tom@tromey.com>
6023
6024 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
6025 (tdesc_parse_xml): Remove cleanups.
6026 * target-descriptions.h (make_cleanup_free_target_description):
6027 Don't declare.
6028 (target_desc_deleter): New struct.
6029 (target_desc_up): New typedef.
6030 * target-descriptions.c (target_desc_deleter::operator()): Rename
6031 from free_target_description.
6032 (make_cleanup_free_target_description): Remove.
6033
60342019-01-02 Tom Tromey <tom@tromey.com>
6035
6036 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
6037 constructor, destructor.
6038 (linespec_parser): Remove typedef.
6039 (~linespec_parser): Rename from linespec_parser_delete.
6040 (linespec_lex_to_end, linespec_complete_label)
6041 (linespec_complete): Update.
6042 (decode_line_full): Remove cleanups.
6043 (decode_line_1): Update.
6044
60452019-01-02 Tom Tromey <tom@tromey.com>
6046
6047 * python/python-internal.h (inferior_to_inferior_object): Change
6048 return type.
6049 * python/py-exitedevent.c (create_exited_event_object): Update.
6050 * python/py-inferior.c (inferior_to_inferior_object): Return
6051 gdbpy_ref.
6052 (python_new_inferior, python_inferior_deleted)
6053 (thread_to_thread_object, delete_thread_object)
6054 (build_inferior_list, gdbpy_selected_inferior): Update.
6055 * python/py-infthread.c (create_thread_object): Update. Also fail
6056 if inferior_to_inferior_object fails.
6057
60582019-01-02 Simon Marchi <simon.marchi@ericsson.com>
6059
6060 * inferior.h (class inferior) <displaced_step_state>: New field.
6061 * infrun.h (struct displaced_step_state): Move here from
6062 infrun.c. Initialize fields, add constructor.
6063 <inf>: Remove field.
6064 <reset>: New method.
6065 * infrun.c (struct displaced_step_inferior_state): Move to
6066 infrun.h.
6067 (displaced_step_inferior_states): Remove.
6068 (get_displaced_stepping_state): Adust.
6069 (displaced_step_in_progress_any_inferior): Adjust.
6070 (displaced_step_in_progress_thread): Adjust.
6071 (displaced_step_in_progress): Adjust.
6072 (add_displaced_stepping_state): Remove.
6073 (get_displaced_step_closure_by_addr): Adjust.
6074 (remove_displaced_stepping_state): Remove.
6075 (infrun_inferior_exit): Call displaced_step_state.reset.
6076 (use_displaced_stepping): Don't check for NULL.
6077 (displaced_step_prepare_throw): Call
6078 get_displaced_stepping_state.
6079 (displaced_step_fixup): Don't check for NULL.
6080 (prepare_for_detach): Don't check for NULL.
6081
60822019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6083
6084 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
6085 in case of call that did not complete.
6086
60872019-01-02 Andrey Utkin <autkin@undo.io>
6088
6089 * symfile.c (find_separate_debug_file): Fix search of debug files for
6090 remote debuggee.
6091
60922019-01-02 Tom Tromey <tom@tromey.com>
6093
6094 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
6095 indentation.
6096 * python/py-frame.c (frapy_older): Remove cast.
6097 (frapy_newer): Likewise.
6098 * python/py-breakpoint.c (local_setattro): Remove cast.
6099 * python/py-arch.c (archpy_name): Remove local variable.
6100 * python/py-type.c (gdbpy_lookup_type): Remove cast.
6101
61022019-01-02 Joel Brobecker <brobecker@adacore.com>
6103
6104 * unittests/basic_string_view/element_access/char/empty.cc:
6105 Fix year range in copyright header.
6106
61072019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
6108
6109 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
6110 Delete.
6111 <operator==>: Update with for removed field.
6112 <hash>: Likewise.
6113 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
6114 <isa_features>: ...this.
6115 <abi_features>: New field.
6116 (riscv_isa_flen): Update comment.
6117 (riscv_abi_xlen): New declaration.
6118 (riscv_abi_flen): New declaration.
6119 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
6120 isa_features.
6121 (riscv_abi_xlen): New function.
6122 (riscv_isa_flen): Update to get answer from isa_features.
6123 (riscv_abi_flen): New function.
6124 (riscv_has_fp_abi): Update to get answer from abi_features.
6125 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
6126 xlen and flen.
6127 (riscv_call_info) <xlen, flen>: Update comment.
6128 (riscv_call_arg_struct): Remove invalid assertions
6129 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
6130 is removed.
6131 (riscv_gdbarch_init): Gather isa features and abi features
6132 separately, ensure both match on the gdbarch when reusing an old
6133 gdbarch. Relax an error check to allow 32-bit abi float to run on
6134 a target with 64-bit float hardware.
6135
61362019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6137
6138 * source.c (search_command_helper): Stop reverse search
6139 when line 1 has been searched.
6140
61412019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6142
6143 * record-full.c (record_full_base_target::close): Rewrite
6144 record_full_core_buf_list free logic.
6145
61462019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6147
6148 * break-catch-syscall.c (print_one_catch_syscall): xfree
6149 the last text.
6150
61512019-01-01 Joel Brobecker <brobecker@adacore.com>
6152
6153 * top.c (print_gdb_version): Update Copyright year in version
6154 message.
6155
61562019-01-01 Joel Brobecker <brobecker@adacore.com>
6157
6158 Update copyright year range in all GDB files.
6159
61602019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
6161
6162 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
6163
6164For older changes see ChangeLog-2018.
6165\f
6166Local Variables:
6167mode: change-log
6168left-margin: 8
6169fill-column: 74
6170version-control: never
6171coding: utf-8
6172End:
6173
This page took 0.04532 seconds and 4 git commands to generate.