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